@cloudflare/kumo 1.6.0 → 1.8.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/CHANGELOG.md +47 -0
- package/ai/component-registry.json +30 -35
- package/ai/component-registry.md +54 -117
- package/ai/schemas.ts +4 -2
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +11 -3
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/banner-BKDBfLHA.js +75 -0
- package/dist/banner-BKDBfLHA.js.map +1 -0
- package/dist/catalog.js +1 -1
- package/dist/{checkbox-Dt8iSNOg.js → checkbox-BUV90tNU.js} +56 -56
- package/dist/checkbox-BUV90tNU.js.map +1 -0
- package/dist/{clipboard-text-Bw5rKPXz.js → clipboard-text-BVKGunue.js} +4 -4
- package/dist/{clipboard-text-Bw5rKPXz.js.map → clipboard-text-BVKGunue.js.map} +1 -1
- package/dist/{combobox-BIC-YZ2L.js → combobox-DyTgHki4.js} +83 -61
- package/dist/combobox-DyTgHki4.js.map +1 -0
- package/dist/{command-palette-D3MNR7w9.js → command-palette-B2hkPSQm.js} +2 -2
- package/dist/{command-palette-D3MNR7w9.js.map → command-palette-B2hkPSQm.js.map} +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.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/field.js +1 -1
- package/dist/components/flow.js +5640 -0
- package/dist/components/flow.js.map +1 -0
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.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/tabs.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/date-range-picker-CbKEQ9pi.js.map +1 -1
- package/dist/{dialog-toS9krNF.js → dialog-B2EHaSoL.js} +2 -2
- package/dist/{dialog-toS9krNF.js.map → dialog-B2EHaSoL.js.map} +1 -1
- package/dist/{dropdown-BquiYKKC.js → dropdown-mGDt95gv.js} +3 -3
- package/dist/{dropdown-BquiYKKC.js.map → dropdown-mGDt95gv.js.map} +1 -1
- package/dist/{field-DCq04TgZ.js → field-Bkh5pJay.js} +3 -3
- package/dist/{field-DCq04TgZ.js.map → field-Bkh5pJay.js.map} +1 -1
- package/dist/index.js +37 -35
- package/dist/index.js.map +1 -1
- package/dist/{input-CCR8NGG7.js → input-DjItb3_k.js} +3 -3
- package/dist/{input-CCR8NGG7.js.map → input-DjItb3_k.js.map} +1 -1
- package/dist/{input-area-DU2Yvp_t.js → input-area-BcidmGaO.js} +3 -3
- package/dist/{input-area-DU2Yvp_t.js.map → input-area-BcidmGaO.js.map} +1 -1
- package/dist/{input-group-C365-qBq.js → input-group-CMAvOKIV.js} +2 -2
- package/dist/{input-group-C365-qBq.js.map → input-group-CMAvOKIV.js.map} +1 -1
- package/dist/{label-zjtV7oXa.js → label-Cjpb7l1F.js} +2 -2
- package/dist/{label-zjtV7oXa.js.map → label-Cjpb7l1F.js.map} +1 -1
- package/dist/{link-C8pUZ4Q-.js → link-DUqZGMVk.js} +2 -2
- package/dist/{link-C8pUZ4Q-.js.map → link-DUqZGMVk.js.map} +1 -1
- package/dist/{menubar-D7WvAf6x.js → menubar-bgBP3EJi.js} +2 -2
- package/dist/{menubar-D7WvAf6x.js.map → menubar-bgBP3EJi.js.map} +1 -1
- package/dist/{meter-jQGKS1z4.js → meter-BziPAH9D.js} +2 -2
- package/dist/{meter-jQGKS1z4.js.map → meter-BziPAH9D.js.map} +1 -1
- package/dist/{pagination-BN80iKY6.js → pagination-dNzgZRjV.js} +2 -2
- package/dist/{pagination-BN80iKY6.js.map → pagination-dNzgZRjV.js.map} +1 -1
- package/dist/{popover-syU1104E.js → popover-C2w2uRlu.js} +2 -2
- package/dist/{popover-syU1104E.js.map → popover-C2w2uRlu.js.map} +1 -1
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/{radio-CWMtSx65.js → radio-B8Jk1PFe.js} +2 -2
- package/dist/{radio-CWMtSx65.js.map → radio-B8Jk1PFe.js.map} +1 -1
- package/dist/{schemas-DbIwo0ET.js → schemas-DKFFjjzb.js} +216 -213
- package/dist/{schemas-DbIwo0ET.js.map → schemas-DKFFjjzb.js.map} +1 -1
- package/dist/{select-G6JqBVkg.js → select-BWTULnCR.js} +3 -3
- package/dist/{select-G6JqBVkg.js.map → select-BWTULnCR.js.map} +1 -1
- package/dist/{sensitive-input-DNFpycoy.js → sensitive-input-CgjTfZLO.js} +4 -4
- package/dist/{sensitive-input-DNFpycoy.js.map → sensitive-input-CgjTfZLO.js.map} +1 -1
- package/dist/src/components/banner/banner.d.ts +28 -11
- package/dist/src/components/banner/banner.d.ts.map +1 -1
- package/dist/src/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/src/components/combobox/combobox.d.ts +4 -1
- package/dist/src/components/combobox/combobox.d.ts.map +1 -1
- package/dist/src/components/date-range-picker/date-range-picker.d.ts +7 -0
- package/dist/src/components/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/src/components/date-range-picker/index.d.ts +3 -0
- package/dist/src/components/date-range-picker/index.d.ts.map +1 -1
- package/dist/src/components/flow/connectors.d.ts +35 -0
- package/dist/src/components/flow/connectors.d.ts.map +1 -0
- package/dist/src/components/flow/diagram.d.ts +62 -0
- package/dist/src/components/flow/diagram.d.ts.map +1 -0
- package/dist/src/components/flow/index.d.ts +26 -0
- package/dist/src/components/flow/index.d.ts.map +1 -0
- package/dist/src/components/flow/node.d.ts +52 -0
- package/dist/src/components/flow/node.d.ts.map +1 -0
- package/dist/src/components/flow/parallel.d.ts +5 -0
- package/dist/src/components/flow/parallel.d.ts.map +1 -0
- package/dist/src/components/flow/use-children.d.ts +69 -0
- package/dist/src/components/flow/use-children.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-kumo.css +1 -1
- package/dist/{switch-CmsZ4z-g.js → switch-DdjM7eh6.js} +3 -3
- package/dist/{switch-CmsZ4z-g.js.map → switch-DdjM7eh6.js.map} +1 -1
- package/dist/{table-Dc0AGcLV.js → table-D1EXUDHL.js} +2 -2
- package/dist/{table-Dc0AGcLV.js.map → table-D1EXUDHL.js.map} +1 -1
- package/dist/{tabs-BpD1iUiz.js → tabs-Bs43O3E4.js} +2 -2
- package/dist/{tabs-BpD1iUiz.js.map → tabs-Bs43O3E4.js.map} +1 -1
- package/dist/{toast-BrR0pjLE.js → toast-BqZw7a2p.js} +2 -2
- package/dist/{toast-BrR0pjLE.js.map → toast-BqZw7a2p.js.map} +1 -1
- package/dist/{tooltip-daVJYtXY.js → tooltip-BwOFPK5h.js} +2 -2
- package/dist/{tooltip-daVJYtXY.js.map → tooltip-BwOFPK5h.js.map} +1 -1
- package/dist/{vendor-base-ui-9w7J6BvW.js → vendor-base-ui-B61LL9jT.js} +3 -3
- package/dist/{vendor-base-ui-9w7J6BvW.js.map → vendor-base-ui-B61LL9jT.js.map} +1 -1
- package/package.json +7 -1
- package/scripts/theme-generator/config.ts +1 -1
- package/dist/banner-4fkH6Sbt.js +0 -51
- package/dist/banner-4fkH6Sbt.js.map +0 -1
- package/dist/checkbox-Dt8iSNOg.js.map +0 -1
- package/dist/combobox-BIC-YZ2L.js.map +0 -1
|
@@ -13,8 +13,8 @@ function d(e, t, o) {
|
|
|
13
13
|
u._zod.traits.add(e), t(u, l);
|
|
14
14
|
const p = i.prototype, f = Object.keys(p);
|
|
15
15
|
for (let m = 0; m < f.length; m++) {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const k = f[m];
|
|
17
|
+
k in u || (u[k] = p[k].bind(u));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
const r = o?.Parent ?? Object;
|
|
@@ -155,7 +155,7 @@ function J(e, t, o) {
|
|
|
155
155
|
const n = new e._zod.constr(t ?? e._zod.def);
|
|
156
156
|
return (!t || o?.parent) && (n._zod.parent = e), n;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function b(e) {
|
|
159
159
|
const t = e;
|
|
160
160
|
if (!t)
|
|
161
161
|
return {};
|
|
@@ -774,17 +774,17 @@ const Do = {
|
|
|
774
774
|
continue;
|
|
775
775
|
} else if (p)
|
|
776
776
|
continue;
|
|
777
|
-
const
|
|
777
|
+
const k = i.issues.length, $ = m._zod.check(i);
|
|
778
778
|
if ($ instanceof Promise && l?.async === !1)
|
|
779
779
|
throw new q();
|
|
780
780
|
if (f || $ instanceof Promise)
|
|
781
781
|
f = (f ?? Promise.resolve()).then(async () => {
|
|
782
|
-
await $, i.issues.length !==
|
|
782
|
+
await $, i.issues.length !== k && (p || (p = K(i, k)));
|
|
783
783
|
});
|
|
784
784
|
else {
|
|
785
|
-
if (i.issues.length ===
|
|
785
|
+
if (i.issues.length === k)
|
|
786
786
|
continue;
|
|
787
|
-
p || (p = K(i,
|
|
787
|
+
p || (p = K(i, k));
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
return f ? f.then(() => i) : i;
|
|
@@ -1140,8 +1140,8 @@ function pt(e, t, o, n, r, a) {
|
|
|
1140
1140
|
i.push(m);
|
|
1141
1141
|
continue;
|
|
1142
1142
|
}
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1143
|
+
const k = l.run({ value: t[m], issues: [] }, n);
|
|
1144
|
+
k instanceof Promise ? e.push(k.then(($) => se($, o, m, t, f))) : se(k, o, m, t, f);
|
|
1145
1145
|
}
|
|
1146
1146
|
return i.length && o.issues.push({
|
|
1147
1147
|
code: "unrecognized_keys",
|
|
@@ -1189,15 +1189,15 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
|
|
|
1189
1189
|
}), u;
|
|
1190
1190
|
u.value = {};
|
|
1191
1191
|
const f = [], m = i.shape;
|
|
1192
|
-
for (const
|
|
1193
|
-
const $ = m[
|
|
1194
|
-
N instanceof Promise ? f.push(N.then((ee) => se(ee, u,
|
|
1192
|
+
for (const k of i.keys) {
|
|
1193
|
+
const $ = m[k], E = $._zod.optout === "optional", N = $._zod.run({ value: p[k], issues: [] }, l);
|
|
1194
|
+
N instanceof Promise ? f.push(N.then((ee) => se(ee, u, k, p, E))) : se(N, u, k, p, E);
|
|
1195
1195
|
}
|
|
1196
1196
|
return a ? pt(f, p, u, l, n.value, e) : f.length ? Promise.all(f).then(() => u) : u;
|
|
1197
1197
|
};
|
|
1198
1198
|
}), vn = /* @__PURE__ */ d("$ZodObjectJIT", (e, t) => {
|
|
1199
1199
|
_n.init(e, t);
|
|
1200
|
-
const o = e._zod.parse, n = be(() => lt(t)), r = (
|
|
1200
|
+
const o = e._zod.parse, n = be(() => lt(t)), r = (k) => {
|
|
1201
1201
|
const $ = new Ro(["shape", "payload", "ctx"]), E = n.value, N = (D) => {
|
|
1202
1202
|
const A = Pe(D);
|
|
1203
1203
|
return `shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`;
|
|
@@ -1209,7 +1209,7 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
|
|
|
1209
1209
|
ee[D] = `key_${$t++}`;
|
|
1210
1210
|
$.write("const newResult = {};");
|
|
1211
1211
|
for (const D of E.keys) {
|
|
1212
|
-
const A = ee[D], R = Pe(D), Zt =
|
|
1212
|
+
const A = ee[D], R = Pe(D), Zt = k[D]?._zod?.optout === "optional";
|
|
1213
1213
|
$.write(`const ${A} = ${N(D)};`), Zt ? $.write(`
|
|
1214
1214
|
if (${A}.issues.length) {
|
|
1215
1215
|
if (${R} in input) {
|
|
@@ -1248,20 +1248,20 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
$.write("payload.value = newResult;"), $.write("return payload;");
|
|
1250
1250
|
const St = $.compile();
|
|
1251
|
-
return (D, A) => St(
|
|
1251
|
+
return (D, A) => St(k, D, A);
|
|
1252
1252
|
};
|
|
1253
1253
|
let a;
|
|
1254
1254
|
const i = ae, u = !qe.jitless, p = u && Tt.value, f = t.catchall;
|
|
1255
1255
|
let m;
|
|
1256
|
-
e._zod.parse = (
|
|
1256
|
+
e._zod.parse = (k, $) => {
|
|
1257
1257
|
m ?? (m = n.value);
|
|
1258
|
-
const E =
|
|
1259
|
-
return i(E) ? u && p && $?.async === !1 && $.jitless !== !0 ? (a || (a = r(t.shape)),
|
|
1258
|
+
const E = k.value;
|
|
1259
|
+
return i(E) ? u && p && $?.async === !1 && $.jitless !== !0 ? (a || (a = r(t.shape)), k = a(k, $), f ? pt([], E, k, $, m, e) : k) : o(k, $) : (k.issues.push({
|
|
1260
1260
|
expected: "object",
|
|
1261
1261
|
code: "invalid_type",
|
|
1262
1262
|
input: E,
|
|
1263
1263
|
inst: e
|
|
1264
|
-
}),
|
|
1264
|
+
}), k);
|
|
1265
1265
|
};
|
|
1266
1266
|
});
|
|
1267
1267
|
function Ie(e, t, o, n) {
|
|
@@ -1404,17 +1404,17 @@ const zn = /* @__PURE__ */ d("$ZodTuple", (e, t) => {
|
|
|
1404
1404
|
value: a[p],
|
|
1405
1405
|
issues: []
|
|
1406
1406
|
}, r);
|
|
1407
|
-
m instanceof Promise ? i.push(m.then((
|
|
1407
|
+
m instanceof Promise ? i.push(m.then((k) => oe(k, n, p))) : oe(m, n, p);
|
|
1408
1408
|
}
|
|
1409
1409
|
if (t.rest) {
|
|
1410
1410
|
const f = a.slice(o.length);
|
|
1411
1411
|
for (const m of f) {
|
|
1412
1412
|
p++;
|
|
1413
|
-
const
|
|
1413
|
+
const k = t.rest._zod.run({
|
|
1414
1414
|
value: m,
|
|
1415
1415
|
issues: []
|
|
1416
1416
|
}, r);
|
|
1417
|
-
|
|
1417
|
+
k instanceof Promise ? i.push(k.then(($) => oe($, n, p))) : oe(k, n, p);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
return i.length ? Promise.all(i).then(() => n) : n;
|
|
@@ -1671,7 +1671,7 @@ const Y = globalThis.__zod_globalRegistry;
|
|
|
1671
1671
|
function Rn(e, t) {
|
|
1672
1672
|
return new e({
|
|
1673
1673
|
type: "string",
|
|
1674
|
-
...
|
|
1674
|
+
...b(t)
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1681,7 +1681,7 @@ function Dn(e, t) {
|
|
|
1681
1681
|
format: "email",
|
|
1682
1682
|
check: "string_format",
|
|
1683
1683
|
abort: !1,
|
|
1684
|
-
...
|
|
1684
|
+
...b(t)
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1691,7 +1691,7 @@ function De(e, t) {
|
|
|
1691
1691
|
format: "guid",
|
|
1692
1692
|
check: "string_format",
|
|
1693
1693
|
abort: !1,
|
|
1694
|
-
...
|
|
1694
|
+
...b(t)
|
|
1695
1695
|
});
|
|
1696
1696
|
}
|
|
1697
1697
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1701,7 +1701,7 @@ function Un(e, t) {
|
|
|
1701
1701
|
format: "uuid",
|
|
1702
1702
|
check: "string_format",
|
|
1703
1703
|
abort: !1,
|
|
1704
|
-
...
|
|
1704
|
+
...b(t)
|
|
1705
1705
|
});
|
|
1706
1706
|
}
|
|
1707
1707
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1712,7 +1712,7 @@ function Fn(e, t) {
|
|
|
1712
1712
|
check: "string_format",
|
|
1713
1713
|
abort: !1,
|
|
1714
1714
|
version: "v4",
|
|
1715
|
-
...
|
|
1715
|
+
...b(t)
|
|
1716
1716
|
});
|
|
1717
1717
|
}
|
|
1718
1718
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1723,7 +1723,7 @@ function Ln(e, t) {
|
|
|
1723
1723
|
check: "string_format",
|
|
1724
1724
|
abort: !1,
|
|
1725
1725
|
version: "v6",
|
|
1726
|
-
...
|
|
1726
|
+
...b(t)
|
|
1727
1727
|
});
|
|
1728
1728
|
}
|
|
1729
1729
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1734,7 +1734,7 @@ function Mn(e, t) {
|
|
|
1734
1734
|
check: "string_format",
|
|
1735
1735
|
abort: !1,
|
|
1736
1736
|
version: "v7",
|
|
1737
|
-
...
|
|
1737
|
+
...b(t)
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
1740
1740
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1744,7 +1744,7 @@ function Jn(e, t) {
|
|
|
1744
1744
|
format: "url",
|
|
1745
1745
|
check: "string_format",
|
|
1746
1746
|
abort: !1,
|
|
1747
|
-
...
|
|
1747
|
+
...b(t)
|
|
1748
1748
|
});
|
|
1749
1749
|
}
|
|
1750
1750
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1754,7 +1754,7 @@ function Bn(e, t) {
|
|
|
1754
1754
|
format: "emoji",
|
|
1755
1755
|
check: "string_format",
|
|
1756
1756
|
abort: !1,
|
|
1757
|
-
...
|
|
1757
|
+
...b(t)
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
1760
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1764,7 +1764,7 @@ function Vn(e, t) {
|
|
|
1764
1764
|
format: "nanoid",
|
|
1765
1765
|
check: "string_format",
|
|
1766
1766
|
abort: !1,
|
|
1767
|
-
...
|
|
1767
|
+
...b(t)
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
1770
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1774,7 +1774,7 @@ function Wn(e, t) {
|
|
|
1774
1774
|
format: "cuid",
|
|
1775
1775
|
check: "string_format",
|
|
1776
1776
|
abort: !1,
|
|
1777
|
-
...
|
|
1777
|
+
...b(t)
|
|
1778
1778
|
});
|
|
1779
1779
|
}
|
|
1780
1780
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1784,7 +1784,7 @@ function Kn(e, t) {
|
|
|
1784
1784
|
format: "cuid2",
|
|
1785
1785
|
check: "string_format",
|
|
1786
1786
|
abort: !1,
|
|
1787
|
-
...
|
|
1787
|
+
...b(t)
|
|
1788
1788
|
});
|
|
1789
1789
|
}
|
|
1790
1790
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1794,7 +1794,7 @@ function qn(e, t) {
|
|
|
1794
1794
|
format: "ulid",
|
|
1795
1795
|
check: "string_format",
|
|
1796
1796
|
abort: !1,
|
|
1797
|
-
...
|
|
1797
|
+
...b(t)
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
1800
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1804,7 +1804,7 @@ function Gn(e, t) {
|
|
|
1804
1804
|
format: "xid",
|
|
1805
1805
|
check: "string_format",
|
|
1806
1806
|
abort: !1,
|
|
1807
|
-
...
|
|
1807
|
+
...b(t)
|
|
1808
1808
|
});
|
|
1809
1809
|
}
|
|
1810
1810
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1814,7 +1814,7 @@ function Xn(e, t) {
|
|
|
1814
1814
|
format: "ksuid",
|
|
1815
1815
|
check: "string_format",
|
|
1816
1816
|
abort: !1,
|
|
1817
|
-
...
|
|
1817
|
+
...b(t)
|
|
1818
1818
|
});
|
|
1819
1819
|
}
|
|
1820
1820
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1824,7 +1824,7 @@ function Yn(e, t) {
|
|
|
1824
1824
|
format: "ipv4",
|
|
1825
1825
|
check: "string_format",
|
|
1826
1826
|
abort: !1,
|
|
1827
|
-
...
|
|
1827
|
+
...b(t)
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
1830
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1834,7 +1834,7 @@ function Hn(e, t) {
|
|
|
1834
1834
|
format: "ipv6",
|
|
1835
1835
|
check: "string_format",
|
|
1836
1836
|
abort: !1,
|
|
1837
|
-
...
|
|
1837
|
+
...b(t)
|
|
1838
1838
|
});
|
|
1839
1839
|
}
|
|
1840
1840
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1844,7 +1844,7 @@ function Qn(e, t) {
|
|
|
1844
1844
|
format: "cidrv4",
|
|
1845
1845
|
check: "string_format",
|
|
1846
1846
|
abort: !1,
|
|
1847
|
-
...
|
|
1847
|
+
...b(t)
|
|
1848
1848
|
});
|
|
1849
1849
|
}
|
|
1850
1850
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1854,7 +1854,7 @@ function er(e, t) {
|
|
|
1854
1854
|
format: "cidrv6",
|
|
1855
1855
|
check: "string_format",
|
|
1856
1856
|
abort: !1,
|
|
1857
|
-
...
|
|
1857
|
+
...b(t)
|
|
1858
1858
|
});
|
|
1859
1859
|
}
|
|
1860
1860
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1864,7 +1864,7 @@ function tr(e, t) {
|
|
|
1864
1864
|
format: "base64",
|
|
1865
1865
|
check: "string_format",
|
|
1866
1866
|
abort: !1,
|
|
1867
|
-
...
|
|
1867
|
+
...b(t)
|
|
1868
1868
|
});
|
|
1869
1869
|
}
|
|
1870
1870
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1874,7 +1874,7 @@ function or(e, t) {
|
|
|
1874
1874
|
format: "base64url",
|
|
1875
1875
|
check: "string_format",
|
|
1876
1876
|
abort: !1,
|
|
1877
|
-
...
|
|
1877
|
+
...b(t)
|
|
1878
1878
|
});
|
|
1879
1879
|
}
|
|
1880
1880
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1884,7 +1884,7 @@ function nr(e, t) {
|
|
|
1884
1884
|
format: "e164",
|
|
1885
1885
|
check: "string_format",
|
|
1886
1886
|
abort: !1,
|
|
1887
|
-
...
|
|
1887
|
+
...b(t)
|
|
1888
1888
|
});
|
|
1889
1889
|
}
|
|
1890
1890
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1894,7 +1894,7 @@ function rr(e, t) {
|
|
|
1894
1894
|
format: "jwt",
|
|
1895
1895
|
check: "string_format",
|
|
1896
1896
|
abort: !1,
|
|
1897
|
-
...
|
|
1897
|
+
...b(t)
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
1900
1900
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1906,7 +1906,7 @@ function ir(e, t) {
|
|
|
1906
1906
|
offset: !1,
|
|
1907
1907
|
local: !1,
|
|
1908
1908
|
precision: null,
|
|
1909
|
-
...
|
|
1909
|
+
...b(t)
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
1912
1912
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1915,7 +1915,7 @@ function ar(e, t) {
|
|
|
1915
1915
|
type: "string",
|
|
1916
1916
|
format: "date",
|
|
1917
1917
|
check: "string_format",
|
|
1918
|
-
...
|
|
1918
|
+
...b(t)
|
|
1919
1919
|
});
|
|
1920
1920
|
}
|
|
1921
1921
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1925,7 +1925,7 @@ function sr(e, t) {
|
|
|
1925
1925
|
format: "time",
|
|
1926
1926
|
check: "string_format",
|
|
1927
1927
|
precision: null,
|
|
1928
|
-
...
|
|
1928
|
+
...b(t)
|
|
1929
1929
|
});
|
|
1930
1930
|
}
|
|
1931
1931
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1934,7 +1934,7 @@ function cr(e, t) {
|
|
|
1934
1934
|
type: "string",
|
|
1935
1935
|
format: "duration",
|
|
1936
1936
|
check: "string_format",
|
|
1937
|
-
...
|
|
1937
|
+
...b(t)
|
|
1938
1938
|
});
|
|
1939
1939
|
}
|
|
1940
1940
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1942,7 +1942,7 @@ function ur(e, t) {
|
|
|
1942
1942
|
return new e({
|
|
1943
1943
|
type: "number",
|
|
1944
1944
|
checks: [],
|
|
1945
|
-
...
|
|
1945
|
+
...b(t)
|
|
1946
1946
|
});
|
|
1947
1947
|
}
|
|
1948
1948
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1952,21 +1952,21 @@ function lr(e, t) {
|
|
|
1952
1952
|
check: "number_format",
|
|
1953
1953
|
abort: !1,
|
|
1954
1954
|
format: "safeint",
|
|
1955
|
-
...
|
|
1955
|
+
...b(t)
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
1958
|
// @__NO_SIDE_EFFECTS__
|
|
1959
1959
|
function pr(e, t) {
|
|
1960
1960
|
return new e({
|
|
1961
1961
|
type: "boolean",
|
|
1962
|
-
...
|
|
1962
|
+
...b(t)
|
|
1963
1963
|
});
|
|
1964
1964
|
}
|
|
1965
1965
|
// @__NO_SIDE_EFFECTS__
|
|
1966
1966
|
function dr(e, t) {
|
|
1967
1967
|
return new e({
|
|
1968
1968
|
type: "null",
|
|
1969
|
-
...
|
|
1969
|
+
...b(t)
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1979,14 +1979,14 @@ function fr(e) {
|
|
|
1979
1979
|
function hr(e, t) {
|
|
1980
1980
|
return new e({
|
|
1981
1981
|
type: "never",
|
|
1982
|
-
...
|
|
1982
|
+
...b(t)
|
|
1983
1983
|
});
|
|
1984
1984
|
}
|
|
1985
1985
|
// @__NO_SIDE_EFFECTS__
|
|
1986
1986
|
function Ue(e, t) {
|
|
1987
1987
|
return new at({
|
|
1988
1988
|
check: "less_than",
|
|
1989
|
-
...
|
|
1989
|
+
...b(t),
|
|
1990
1990
|
value: e,
|
|
1991
1991
|
inclusive: !1
|
|
1992
1992
|
});
|
|
@@ -1995,7 +1995,7 @@ function Ue(e, t) {
|
|
|
1995
1995
|
function he(e, t) {
|
|
1996
1996
|
return new at({
|
|
1997
1997
|
check: "less_than",
|
|
1998
|
-
...
|
|
1998
|
+
...b(t),
|
|
1999
1999
|
value: e,
|
|
2000
2000
|
inclusive: !0
|
|
2001
2001
|
});
|
|
@@ -2004,7 +2004,7 @@ function he(e, t) {
|
|
|
2004
2004
|
function Fe(e, t) {
|
|
2005
2005
|
return new st({
|
|
2006
2006
|
check: "greater_than",
|
|
2007
|
-
...
|
|
2007
|
+
...b(t),
|
|
2008
2008
|
value: e,
|
|
2009
2009
|
inclusive: !1
|
|
2010
2010
|
});
|
|
@@ -2013,7 +2013,7 @@ function Fe(e, t) {
|
|
|
2013
2013
|
function me(e, t) {
|
|
2014
2014
|
return new st({
|
|
2015
2015
|
check: "greater_than",
|
|
2016
|
-
...
|
|
2016
|
+
...b(t),
|
|
2017
2017
|
value: e,
|
|
2018
2018
|
inclusive: !0
|
|
2019
2019
|
});
|
|
@@ -2022,7 +2022,7 @@ function me(e, t) {
|
|
|
2022
2022
|
function Le(e, t) {
|
|
2023
2023
|
return new So({
|
|
2024
2024
|
check: "multiple_of",
|
|
2025
|
-
...
|
|
2025
|
+
...b(t),
|
|
2026
2026
|
value: e
|
|
2027
2027
|
});
|
|
2028
2028
|
}
|
|
@@ -2030,7 +2030,7 @@ function Le(e, t) {
|
|
|
2030
2030
|
function ft(e, t) {
|
|
2031
2031
|
return new Po({
|
|
2032
2032
|
check: "max_length",
|
|
2033
|
-
...
|
|
2033
|
+
...b(t),
|
|
2034
2034
|
maximum: e
|
|
2035
2035
|
});
|
|
2036
2036
|
}
|
|
@@ -2038,7 +2038,7 @@ function ft(e, t) {
|
|
|
2038
2038
|
function ce(e, t) {
|
|
2039
2039
|
return new Oo({
|
|
2040
2040
|
check: "min_length",
|
|
2041
|
-
...
|
|
2041
|
+
...b(t),
|
|
2042
2042
|
minimum: e
|
|
2043
2043
|
});
|
|
2044
2044
|
}
|
|
@@ -2046,7 +2046,7 @@ function ce(e, t) {
|
|
|
2046
2046
|
function ht(e, t) {
|
|
2047
2047
|
return new To({
|
|
2048
2048
|
check: "length_equals",
|
|
2049
|
-
...
|
|
2049
|
+
...b(t),
|
|
2050
2050
|
length: e
|
|
2051
2051
|
});
|
|
2052
2052
|
}
|
|
@@ -2055,7 +2055,7 @@ function mr(e, t) {
|
|
|
2055
2055
|
return new Io({
|
|
2056
2056
|
check: "string_format",
|
|
2057
2057
|
format: "regex",
|
|
2058
|
-
...
|
|
2058
|
+
...b(t),
|
|
2059
2059
|
pattern: e
|
|
2060
2060
|
});
|
|
2061
2061
|
}
|
|
@@ -2064,7 +2064,7 @@ function gr(e) {
|
|
|
2064
2064
|
return new No({
|
|
2065
2065
|
check: "string_format",
|
|
2066
2066
|
format: "lowercase",
|
|
2067
|
-
...
|
|
2067
|
+
...b(e)
|
|
2068
2068
|
});
|
|
2069
2069
|
}
|
|
2070
2070
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2072,7 +2072,7 @@ function _r(e) {
|
|
|
2072
2072
|
return new Eo({
|
|
2073
2073
|
check: "string_format",
|
|
2074
2074
|
format: "uppercase",
|
|
2075
|
-
...
|
|
2075
|
+
...b(e)
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
2078
2078
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2080,7 +2080,7 @@ function vr(e, t) {
|
|
|
2080
2080
|
return new Co({
|
|
2081
2081
|
check: "string_format",
|
|
2082
2082
|
format: "includes",
|
|
2083
|
-
...
|
|
2083
|
+
...b(t),
|
|
2084
2084
|
includes: e
|
|
2085
2085
|
});
|
|
2086
2086
|
}
|
|
@@ -2089,7 +2089,7 @@ function br(e, t) {
|
|
|
2089
2089
|
return new Ao({
|
|
2090
2090
|
check: "string_format",
|
|
2091
2091
|
format: "starts_with",
|
|
2092
|
-
...
|
|
2092
|
+
...b(t),
|
|
2093
2093
|
prefix: e
|
|
2094
2094
|
});
|
|
2095
2095
|
}
|
|
@@ -2098,7 +2098,7 @@ function yr(e, t) {
|
|
|
2098
2098
|
return new xo({
|
|
2099
2099
|
check: "string_format",
|
|
2100
2100
|
format: "ends_with",
|
|
2101
|
-
...
|
|
2101
|
+
...b(t),
|
|
2102
2102
|
suffix: e
|
|
2103
2103
|
});
|
|
2104
2104
|
}
|
|
@@ -2137,7 +2137,7 @@ function Zr(e, t, o) {
|
|
|
2137
2137
|
// get element() {
|
|
2138
2138
|
// return element;
|
|
2139
2139
|
// },
|
|
2140
|
-
...
|
|
2140
|
+
...b(o)
|
|
2141
2141
|
});
|
|
2142
2142
|
}
|
|
2143
2143
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2146,7 +2146,7 @@ function Pr(e, t, o) {
|
|
|
2146
2146
|
type: "custom",
|
|
2147
2147
|
check: "custom",
|
|
2148
2148
|
fn: t,
|
|
2149
|
-
...
|
|
2149
|
+
...b(o)
|
|
2150
2150
|
});
|
|
2151
2151
|
}
|
|
2152
2152
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2165,7 +2165,7 @@ function Or(e) {
|
|
|
2165
2165
|
function Tr(e, t) {
|
|
2166
2166
|
const o = new x({
|
|
2167
2167
|
check: "custom",
|
|
2168
|
-
...
|
|
2168
|
+
...b(t)
|
|
2169
2169
|
});
|
|
2170
2170
|
return o._zod.check = e, o;
|
|
2171
2171
|
}
|
|
@@ -2205,10 +2205,10 @@ function T(e, t, o = { path: [], schemaPath: [] }) {
|
|
|
2205
2205
|
if (e._zod.processJSONSchema)
|
|
2206
2206
|
e._zod.processJSONSchema(t, i.schema, f);
|
|
2207
2207
|
else {
|
|
2208
|
-
const
|
|
2208
|
+
const k = i.schema, $ = t.processors[r.type];
|
|
2209
2209
|
if (!$)
|
|
2210
2210
|
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);
|
|
2211
|
-
$(e, t,
|
|
2211
|
+
$(e, t, k, f);
|
|
2212
2212
|
}
|
|
2213
2213
|
const m = e._zod.parent;
|
|
2214
2214
|
m && (i.ref || (i.ref = m), T(m, t, f), t.seen.get(m).isParent = !0);
|
|
@@ -2233,11 +2233,11 @@ function gt(e, t) {
|
|
|
2233
2233
|
const r = (i) => {
|
|
2234
2234
|
const u = e.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2235
2235
|
if (e.external) {
|
|
2236
|
-
const m = e.external.registry.get(i[0])?.id,
|
|
2236
|
+
const m = e.external.registry.get(i[0])?.id, k = e.external.uri ?? ((E) => E);
|
|
2237
2237
|
if (m)
|
|
2238
|
-
return { ref:
|
|
2238
|
+
return { ref: k(m) };
|
|
2239
2239
|
const $ = i[1].defId ?? i[1].schema.id ?? `schema${e.counter++}`;
|
|
2240
|
-
return i[1].defId = $, { defId: $, ref: `${
|
|
2240
|
+
return i[1].defId = $, { defId: $, ref: `${k("__shared")}#/${u}/${$}` };
|
|
2241
2241
|
}
|
|
2242
2242
|
if (i[1] === o)
|
|
2243
2243
|
return { ref: "#" };
|
|
@@ -2299,21 +2299,21 @@ function _t(e, t) {
|
|
|
2299
2299
|
const l = u.def ?? u.schema, p = { ...l }, f = u.ref;
|
|
2300
2300
|
if (u.ref = null, f) {
|
|
2301
2301
|
n(f);
|
|
2302
|
-
const
|
|
2302
|
+
const k = e.seen.get(f), $ = k.schema;
|
|
2303
2303
|
if ($.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (l.allOf = l.allOf ?? [], l.allOf.push($)) : Object.assign(l, $), Object.assign(l, p), i._zod.parent === f)
|
|
2304
2304
|
for (const N in l)
|
|
2305
2305
|
N === "$ref" || N === "allOf" || N in p || delete l[N];
|
|
2306
|
-
if ($.$ref &&
|
|
2306
|
+
if ($.$ref && k.def)
|
|
2307
2307
|
for (const N in l)
|
|
2308
|
-
N === "$ref" || N === "allOf" || N in
|
|
2308
|
+
N === "$ref" || N === "allOf" || N in k.def && JSON.stringify(l[N]) === JSON.stringify(k.def[N]) && delete l[N];
|
|
2309
2309
|
}
|
|
2310
2310
|
const m = i._zod.parent;
|
|
2311
2311
|
if (m && m !== f) {
|
|
2312
2312
|
n(m);
|
|
2313
|
-
const
|
|
2314
|
-
if (
|
|
2313
|
+
const k = e.seen.get(m);
|
|
2314
|
+
if (k?.schema.$ref && (l.$ref = k.schema.$ref, k.def))
|
|
2315
2315
|
for (const $ in l)
|
|
2316
|
-
$ === "$ref" || $ === "allOf" || $ in
|
|
2316
|
+
$ === "$ref" || $ === "allOf" || $ in k.def && JSON.stringify(l[$]) === JSON.stringify(k.def[$]) && delete l[$];
|
|
2317
2317
|
}
|
|
2318
2318
|
e.override({
|
|
2319
2319
|
zodSchema: i,
|
|
@@ -2482,7 +2482,7 @@ const Ir = (e, t = {}) => (o) => {
|
|
|
2482
2482
|
}, Vr = (e, t, o, n) => {
|
|
2483
2483
|
const r = o, a = e._zod.def;
|
|
2484
2484
|
r.type = "array";
|
|
2485
|
-
const i = t.target === "draft-2020-12" ? "prefixItems" : "items", u = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", l = a.items.map((
|
|
2485
|
+
const i = t.target === "draft-2020-12" ? "prefixItems" : "items", u = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", l = a.items.map((k, $) => T(k, t, {
|
|
2486
2486
|
...n,
|
|
2487
2487
|
path: [...n.path, i, $]
|
|
2488
2488
|
})), p = a.rest ? T(a.rest, t, {
|
|
@@ -2636,7 +2636,7 @@ const bt = (e, t) => {
|
|
|
2636
2636
|
]
|
|
2637
2637
|
}), {
|
|
2638
2638
|
parent: !0
|
|
2639
|
-
}), e.with = e.check, e.clone = (o, n) => J(e, o, n), e.brand = () => e, e.register = ((o, n) => (o.add(e, n), e)), e.parse = (o, n) => li(e, o, n, { callee: e.parse }), e.safeParse = (o, n) => di(e, o, n), e.parseAsync = async (o, n) => pi(e, o, n, { callee: e.parseAsync }), e.safeParseAsync = async (o, n) => fi(e, o, n), e.spa = e.safeParseAsync, e.encode = (o, n) => hi(e, o, n), e.decode = (o, n) => mi(e, o, n), e.encodeAsync = async (o, n) => gi(e, o, n), e.decodeAsync = async (o, n) => _i(e, o, n), e.safeEncode = (o, n) => vi(e, o, n), e.safeDecode = (o, n) => bi(e, o, n), e.safeEncodeAsync = async (o, n) => yi(e, o, n), e.safeDecodeAsync = async (o, n) => zi(e, o, n), e.refine = (o, n) => e.check(_a(o, n)), e.superRefine = (o) => e.check(va(o)), e.overwrite = (o) => e.check(/* @__PURE__ */ X(o)), e.optional = () => Be(e), e.exactOptional = () => oa(e), e.nullable = () => Ve(e), e.nullish = () => Be(Ve(e)), e.nonoptional = (o) => ca(e, o), e.array = () => L(e), e.or = (o) =>
|
|
2639
|
+
}), e.with = e.check, e.clone = (o, n) => J(e, o, n), e.brand = () => e, e.register = ((o, n) => (o.add(e, n), e)), e.parse = (o, n) => li(e, o, n, { callee: e.parse }), e.safeParse = (o, n) => di(e, o, n), e.parseAsync = async (o, n) => pi(e, o, n, { callee: e.parseAsync }), e.safeParseAsync = async (o, n) => fi(e, o, n), e.spa = e.safeParseAsync, e.encode = (o, n) => hi(e, o, n), e.decode = (o, n) => mi(e, o, n), e.encodeAsync = async (o, n) => gi(e, o, n), e.decodeAsync = async (o, n) => _i(e, o, n), e.safeEncode = (o, n) => vi(e, o, n), e.safeDecode = (o, n) => bi(e, o, n), e.safeEncodeAsync = async (o, n) => yi(e, o, n), e.safeDecodeAsync = async (o, n) => zi(e, o, n), e.refine = (o, n) => e.check(_a(o, n)), e.superRefine = (o) => e.check(va(o)), e.overwrite = (o) => e.check(/* @__PURE__ */ X(o)), e.optional = () => Be(e), e.exactOptional = () => oa(e), e.nullable = () => Ve(e), e.nullish = () => Be(Ve(e)), e.nonoptional = (o) => ca(e, o), e.array = () => L(e), e.or = (o) => z([e, o]), e.and = (o) => Xi(e, o), e.transform = (o) => We(e, ea(o)), e.default = (o) => ia(e, o), e.prefault = (o) => sa(e, o), e.catch = (o) => la(e, o), e.pipe = (o) => We(e, o), e.readonly = () => fa(e), e.describe = (o) => {
|
|
2640
2640
|
const n = e.clone();
|
|
2641
2641
|
return Y.add(n, { description: o }), n;
|
|
2642
2642
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2704,7 +2704,7 @@ const I = /* @__PURE__ */ d("ZodStringFormat", (e, t) => {
|
|
|
2704
2704
|
const o = e._zod.bag;
|
|
2705
2705
|
e.minValue = Math.max(o.minimum ?? Number.NEGATIVE_INFINITY, o.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(o.maximum ?? Number.POSITIVE_INFINITY, o.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (o.format ?? "").includes("int") || Number.isSafeInteger(o.multipleOf ?? 0.5), e.isFinite = !0, e.format = o.format ?? null;
|
|
2706
2706
|
});
|
|
2707
|
-
function
|
|
2707
|
+
function v(e) {
|
|
2708
2708
|
return /* @__PURE__ */ ur(zt, e);
|
|
2709
2709
|
}
|
|
2710
2710
|
const Fi = /* @__PURE__ */ d("ZodNumberFormat", (e, t) => {
|
|
@@ -2744,24 +2744,24 @@ function L(e, t) {
|
|
|
2744
2744
|
return /* @__PURE__ */ Zr(Wi, e, t);
|
|
2745
2745
|
}
|
|
2746
2746
|
const Ki = /* @__PURE__ */ d("ZodObject", (e, t) => {
|
|
2747
|
-
vn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Mr(e, o, n, r), S(e, "shape", () => t.shape), e.keyof = () =>
|
|
2747
|
+
vn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Mr(e, o, n, r), S(e, "shape", () => t.shape), e.keyof = () => y(Object.keys(e._zod.def.shape)), e.catchall = (o) => e.clone({ ...e._zod.def, catchall: o }), 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: Vi() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (o) => xt(e, o), e.safeExtend = (o) => jt(e, o), e.merge = (o) => Rt(e, o), e.pick = (o) => Ct(e, o), e.omit = (o) => At(e, o), e.partial = (...o) => Dt(kt, e, o[0]), e.required = (...o) => Ut(wt, e, o[0]);
|
|
2748
2748
|
});
|
|
2749
2749
|
function _(e, t) {
|
|
2750
2750
|
const o = {
|
|
2751
2751
|
type: "object",
|
|
2752
2752
|
shape: e ?? {},
|
|
2753
|
-
...
|
|
2753
|
+
...b(t)
|
|
2754
2754
|
};
|
|
2755
2755
|
return new Ki(o);
|
|
2756
2756
|
}
|
|
2757
2757
|
const qi = /* @__PURE__ */ d("ZodUnion", (e, t) => {
|
|
2758
2758
|
bn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Jr(e, o, n, r), e.options = t.options;
|
|
2759
2759
|
});
|
|
2760
|
-
function
|
|
2760
|
+
function z(e, t) {
|
|
2761
2761
|
return new qi({
|
|
2762
2762
|
type: "union",
|
|
2763
2763
|
options: e,
|
|
2764
|
-
...
|
|
2764
|
+
...b(t)
|
|
2765
2765
|
});
|
|
2766
2766
|
}
|
|
2767
2767
|
const Gi = /* @__PURE__ */ d("ZodIntersection", (e, t) => {
|
|
@@ -2786,7 +2786,7 @@ function W(e, t, o) {
|
|
|
2786
2786
|
type: "tuple",
|
|
2787
2787
|
items: e,
|
|
2788
2788
|
rest: a,
|
|
2789
|
-
...
|
|
2789
|
+
...b(r)
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
2792
|
const Hi = /* @__PURE__ */ d("ZodRecord", (e, t) => {
|
|
@@ -2797,7 +2797,7 @@ function H(e, t, o) {
|
|
|
2797
2797
|
type: "record",
|
|
2798
2798
|
keyType: e,
|
|
2799
2799
|
valueType: t,
|
|
2800
|
-
...
|
|
2800
|
+
...b(o)
|
|
2801
2801
|
});
|
|
2802
2802
|
}
|
|
2803
2803
|
const ve = /* @__PURE__ */ d("ZodEnum", (e, t) => {
|
|
@@ -2813,7 +2813,7 @@ const ve = /* @__PURE__ */ d("ZodEnum", (e, t) => {
|
|
|
2813
2813
|
return new ve({
|
|
2814
2814
|
...t,
|
|
2815
2815
|
checks: [],
|
|
2816
|
-
...
|
|
2816
|
+
...b(r),
|
|
2817
2817
|
entries: a
|
|
2818
2818
|
});
|
|
2819
2819
|
}, e.exclude = (n, r) => {
|
|
@@ -2826,17 +2826,17 @@ const ve = /* @__PURE__ */ d("ZodEnum", (e, t) => {
|
|
|
2826
2826
|
return new ve({
|
|
2827
2827
|
...t,
|
|
2828
2828
|
checks: [],
|
|
2829
|
-
...
|
|
2829
|
+
...b(r),
|
|
2830
2830
|
entries: a
|
|
2831
2831
|
});
|
|
2832
2832
|
};
|
|
2833
2833
|
});
|
|
2834
|
-
function
|
|
2834
|
+
function y(e, t) {
|
|
2835
2835
|
const o = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
|
|
2836
2836
|
return new ve({
|
|
2837
2837
|
type: "enum",
|
|
2838
2838
|
entries: o,
|
|
2839
|
-
...
|
|
2839
|
+
...b(t)
|
|
2840
2840
|
});
|
|
2841
2841
|
}
|
|
2842
2842
|
const Qi = /* @__PURE__ */ d("ZodTransform", (e, t) => {
|
|
@@ -2919,7 +2919,7 @@ function ca(e, t) {
|
|
|
2919
2919
|
return new wt({
|
|
2920
2920
|
type: "nonoptional",
|
|
2921
2921
|
innerType: e,
|
|
2922
|
-
...
|
|
2922
|
+
...b(t)
|
|
2923
2923
|
});
|
|
2924
2924
|
}
|
|
2925
2925
|
const ua = /* @__PURE__ */ d("ZodCatch", (e, t) => {
|
|
@@ -2970,14 +2970,14 @@ function _a(e, t = {}) {
|
|
|
2970
2970
|
function va(e) {
|
|
2971
2971
|
return /* @__PURE__ */ Or(e);
|
|
2972
2972
|
}
|
|
2973
|
-
const g =
|
|
2973
|
+
const g = z([
|
|
2974
2974
|
c(),
|
|
2975
|
-
|
|
2975
|
+
v(),
|
|
2976
2976
|
h(),
|
|
2977
2977
|
w(),
|
|
2978
2978
|
_({ path: c() })
|
|
2979
2979
|
]), ie = ma(
|
|
2980
|
-
() =>
|
|
2980
|
+
() => z([
|
|
2981
2981
|
_({ and: L(ie) }),
|
|
2982
2982
|
_({ or: L(ie) }),
|
|
2983
2983
|
_({ not: ie }),
|
|
@@ -2989,15 +2989,15 @@ const g = k([
|
|
|
2989
2989
|
_({ lt: W([g, g]) }),
|
|
2990
2990
|
_({ lte: W([g, g]) })
|
|
2991
2991
|
])
|
|
2992
|
-
), ba =
|
|
2992
|
+
), ba = z([
|
|
2993
2993
|
h(),
|
|
2994
2994
|
_({ path: c() }),
|
|
2995
|
-
_({ auth:
|
|
2995
|
+
_({ auth: y(["signedIn", "signedOut"]) }),
|
|
2996
2996
|
ie
|
|
2997
2997
|
]), ya = _({
|
|
2998
2998
|
title: c(),
|
|
2999
2999
|
message: c(),
|
|
3000
|
-
variant:
|
|
3000
|
+
variant: y(["default", "danger"]).optional(),
|
|
3001
3001
|
confirmLabel: c().optional(),
|
|
3002
3002
|
cancelLabel: c().optional()
|
|
3003
3003
|
}), za = _({
|
|
@@ -3007,35 +3007,38 @@ const g = k([
|
|
|
3007
3007
|
onSuccess: _({ set: H(c(), g) }).optional(),
|
|
3008
3008
|
onError: _({ set: H(c(), g) }).optional()
|
|
3009
3009
|
}), ka = _({
|
|
3010
|
-
variant:
|
|
3010
|
+
variant: y(["primary", "secondary", "destructive", "outline", "beta"]).optional(),
|
|
3011
3011
|
// Visual style of the badge. - `"primary"` — High-emphasis badge for important labels - `"secondary"` — Subtle badge for secondary information - `"destructive"` — Error or danger state indicator - `"outline"` — Bordered badge with transparent background - `"beta"` — Dashed-border badge for beta/experimental features
|
|
3012
3012
|
className: c().optional(),
|
|
3013
3013
|
// Additional CSS classes merged via `cn()`.
|
|
3014
|
-
children:
|
|
3014
|
+
children: z([c(), v(), h(), w(), g]).optional()
|
|
3015
3015
|
// Content rendered inside the badge.
|
|
3016
3016
|
}), wa = _({
|
|
3017
|
-
icon:
|
|
3018
|
-
// Icon element rendered before the banner
|
|
3017
|
+
icon: z([c(), v(), h(), w(), g]).optional(),
|
|
3018
|
+
// Icon element rendered before the banner content (e.g. from `@phosphor-icons/react`).
|
|
3019
|
+
title: c().optional(),
|
|
3020
|
+
// Primary heading text for the banner. Use for i18n string injection.
|
|
3021
|
+
description: z([c(), v(), h(), w(), g]).optional(),
|
|
3022
|
+
// Secondary description text displayed below the title. Use for i18n string injection.
|
|
3019
3023
|
text: c().optional(),
|
|
3020
|
-
children:
|
|
3021
|
-
|
|
3022
|
-
variant: b(["default", "alert", "error"]).optional(),
|
|
3024
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3025
|
+
variant: y(["default", "alert", "error"]).optional(),
|
|
3023
3026
|
// 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
|
|
3024
3027
|
className: c().optional()
|
|
3025
3028
|
// Additional CSS classes merged via `cn()`.
|
|
3026
3029
|
}), $a = _({
|
|
3027
|
-
size:
|
|
3030
|
+
size: y(["sm", "base"]).optional(),
|
|
3028
3031
|
// Size of the breadcrumbs. - `"sm"` — Compact breadcrumbs for dense UIs - `"base"` — Default breadcrumbs size
|
|
3029
|
-
children:
|
|
3032
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3030
3033
|
className: c().optional()
|
|
3031
3034
|
// Additional CSS classes merged via `cn()`.
|
|
3032
3035
|
}), Sa = _({
|
|
3033
|
-
shape:
|
|
3034
|
-
size:
|
|
3035
|
-
variant:
|
|
3036
|
-
children:
|
|
3036
|
+
shape: y(["base", "square", "circle"]).optional(),
|
|
3037
|
+
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3038
|
+
variant: y(["primary", "secondary", "ghost", "destructive", "secondary-destructive", "outline"]).optional(),
|
|
3039
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3037
3040
|
className: c().optional(),
|
|
3038
|
-
icon:
|
|
3041
|
+
icon: z([c(), v(), h(), w(), g]).optional(),
|
|
3039
3042
|
// Icon from `@phosphor-icons/react` or a React element. Rendered before children.
|
|
3040
3043
|
loading: h().optional(),
|
|
3041
3044
|
// Shows a loading spinner and disables interaction.
|
|
@@ -3044,14 +3047,14 @@ const g = k([
|
|
|
3044
3047
|
title: c().optional(),
|
|
3045
3048
|
disabled: h().optional(),
|
|
3046
3049
|
name: c().optional(),
|
|
3047
|
-
type:
|
|
3050
|
+
type: y(["submit", "reset", "button"]).optional(),
|
|
3048
3051
|
value: s().optional()
|
|
3049
3052
|
}), Za = _({
|
|
3050
|
-
variant:
|
|
3053
|
+
variant: y(["default", "error"]).optional(),
|
|
3051
3054
|
// Visual variant: "default" or "error" for validation failures (visual only, no error text)
|
|
3052
|
-
label:
|
|
3055
|
+
label: z([c(), v(), h(), w(), g]).optional(),
|
|
3053
3056
|
// Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
|
|
3054
|
-
labelTooltip:
|
|
3057
|
+
labelTooltip: z([c(), v(), h(), w(), g]).optional(),
|
|
3055
3058
|
// Tooltip content to display next to the label via an info icon
|
|
3056
3059
|
controlFirst: h().optional(),
|
|
3057
3060
|
// When true (default), checkbox appears before label. When false, label appears before checkbox.
|
|
@@ -3070,7 +3073,7 @@ const g = k([
|
|
|
3070
3073
|
onValueChange: s().optional()
|
|
3071
3074
|
// Callback when checkbox value changes
|
|
3072
3075
|
}), Pa = _({
|
|
3073
|
-
size:
|
|
3076
|
+
size: y(["sm", "base", "lg"]).optional(),
|
|
3074
3077
|
// 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
|
|
3075
3078
|
text: c(),
|
|
3076
3079
|
// The text to display and copy to clipboard.
|
|
@@ -3081,7 +3084,7 @@ const g = k([
|
|
|
3081
3084
|
labels: s().optional()
|
|
3082
3085
|
// Accessible labels for i18n.
|
|
3083
3086
|
}), Oa = _({
|
|
3084
|
-
children:
|
|
3087
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3085
3088
|
className: c().optional(),
|
|
3086
3089
|
height: s().optional(),
|
|
3087
3090
|
id: c().optional(),
|
|
@@ -3093,13 +3096,13 @@ const g = k([
|
|
|
3093
3096
|
type: c().optional(),
|
|
3094
3097
|
width: s().optional(),
|
|
3095
3098
|
accentHeight: s().optional(),
|
|
3096
|
-
accumulate:
|
|
3097
|
-
additive:
|
|
3098
|
-
alignmentBaseline:
|
|
3099
|
-
allowReorder:
|
|
3099
|
+
accumulate: y(["none", "sum"]).optional(),
|
|
3100
|
+
additive: y(["replace", "sum"]).optional(),
|
|
3101
|
+
alignmentBaseline: y(["auto", "baseline", "before-edge", "text-before-edge", "middle", "central", "after-edge", "text-after-edge", "ideographic", "alphabetic", "hanging", "mathematical", "inherit"]).optional(),
|
|
3102
|
+
allowReorder: y(["no", "yes"]).optional(),
|
|
3100
3103
|
alphabetic: s().optional(),
|
|
3101
3104
|
amplitude: s().optional(),
|
|
3102
|
-
arabicForm:
|
|
3105
|
+
arabicForm: y(["initial", "medial", "terminal", "isolated"]).optional(),
|
|
3103
3106
|
ascent: s().optional(),
|
|
3104
3107
|
attributeName: c().optional(),
|
|
3105
3108
|
attributeType: c().optional(),
|
|
@@ -3119,7 +3122,7 @@ const g = k([
|
|
|
3119
3122
|
clipPathUnits: s().optional(),
|
|
3120
3123
|
clipRule: s().optional(),
|
|
3121
3124
|
colorInterpolation: s().optional(),
|
|
3122
|
-
colorInterpolationFilters:
|
|
3125
|
+
colorInterpolationFilters: y(["auto", "sRGB", "linearRGB", "inherit"]).optional(),
|
|
3123
3126
|
colorProfile: s().optional(),
|
|
3124
3127
|
colorRendering: s().optional(),
|
|
3125
3128
|
contentScriptType: s().optional(),
|
|
@@ -3134,7 +3137,7 @@ const g = k([
|
|
|
3134
3137
|
direction: s().optional(),
|
|
3135
3138
|
display: s().optional(),
|
|
3136
3139
|
divisor: s().optional(),
|
|
3137
|
-
dominantBaseline:
|
|
3140
|
+
dominantBaseline: y(["auto", "use-script", "no-change", "reset-size", "ideographic", "alphabetic", "hanging", "mathematical", "central", "middle", "text-after-edge", "text-before-edge", "inherit"]).optional(),
|
|
3138
3141
|
dur: s().optional(),
|
|
3139
3142
|
dx: s().optional(),
|
|
3140
3143
|
dy: s().optional(),
|
|
@@ -3146,7 +3149,7 @@ const g = k([
|
|
|
3146
3149
|
externalResourcesRequired: s().optional(),
|
|
3147
3150
|
fill: c().optional(),
|
|
3148
3151
|
fillOpacity: s().optional(),
|
|
3149
|
-
fillRule:
|
|
3152
|
+
fillRule: y(["nonzero", "evenodd", "inherit"]).optional(),
|
|
3150
3153
|
filter: c().optional(),
|
|
3151
3154
|
filterRes: s().optional(),
|
|
3152
3155
|
filterUnits: s().optional(),
|
|
@@ -3271,8 +3274,8 @@ const g = k([
|
|
|
3271
3274
|
stroke: c().optional(),
|
|
3272
3275
|
strokeDasharray: s().optional(),
|
|
3273
3276
|
strokeDashoffset: s().optional(),
|
|
3274
|
-
strokeLinecap:
|
|
3275
|
-
strokeLinejoin:
|
|
3277
|
+
strokeLinecap: y(["butt", "round", "square", "inherit"]).optional(),
|
|
3278
|
+
strokeLinejoin: y(["miter", "round", "bevel", "inherit"]).optional(),
|
|
3276
3279
|
strokeMiterlimit: s().optional(),
|
|
3277
3280
|
strokeOpacity: s().optional(),
|
|
3278
3281
|
strokeWidth: s().optional(),
|
|
@@ -3281,7 +3284,7 @@ const g = k([
|
|
|
3281
3284
|
tableValues: s().optional(),
|
|
3282
3285
|
targetX: s().optional(),
|
|
3283
3286
|
targetY: s().optional(),
|
|
3284
|
-
textAnchor:
|
|
3287
|
+
textAnchor: y(["start", "middle", "end", "inherit"]).optional(),
|
|
3285
3288
|
textDecoration: s().optional(),
|
|
3286
3289
|
textLength: s().optional(),
|
|
3287
3290
|
textRendering: s().optional(),
|
|
@@ -3334,10 +3337,10 @@ const g = k([
|
|
|
3334
3337
|
yChannelSelector: c().optional(),
|
|
3335
3338
|
z: s().optional(),
|
|
3336
3339
|
zoomAndPan: c().optional(),
|
|
3337
|
-
variant:
|
|
3340
|
+
variant: y(["glyph", "full"]).optional()
|
|
3338
3341
|
// Logo variant - `glyph`: Cloud icon only - `full`: Cloud icon with "CLOUDFLARE" wordmark below
|
|
3339
3342
|
}), Ta = _({
|
|
3340
|
-
lang:
|
|
3343
|
+
lang: y(["ts", "tsx", "jsonc", "bash", "css"]).optional(),
|
|
3341
3344
|
// Language hint for the code content. - `"ts"` — TypeScript code - `"tsx"` — TypeScript JSX code - `"jsonc"` — JSON with comments - `"bash"` — Shell/Bash commands - `"css"` — CSS styles
|
|
3342
3345
|
code: c(),
|
|
3343
3346
|
// The code string to display.
|
|
@@ -3346,7 +3349,7 @@ const g = k([
|
|
|
3346
3349
|
className: c().optional()
|
|
3347
3350
|
// Additional CSS classes merged via `cn()`.
|
|
3348
3351
|
}), Ia = _({
|
|
3349
|
-
children:
|
|
3352
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3350
3353
|
label: c(),
|
|
3351
3354
|
// Text label displayed in the trigger button
|
|
3352
3355
|
open: h().optional(),
|
|
@@ -3356,23 +3359,23 @@ const g = k([
|
|
|
3356
3359
|
onOpenChange: s().optional()
|
|
3357
3360
|
// Callback when collapsed state changes
|
|
3358
3361
|
}), Na = _({
|
|
3359
|
-
inputSide:
|
|
3362
|
+
inputSide: y(["right", "top"]).optional(),
|
|
3360
3363
|
// Position of the text input relative to chips in multi-select mode. - `"right"` — Input inline to the right of chips - `"top"` — Input above chips
|
|
3361
3364
|
items: L(s()),
|
|
3362
3365
|
// Array of items to display in the dropdown
|
|
3363
3366
|
value: L(s()).optional(),
|
|
3364
3367
|
// Currently selected value(s)
|
|
3365
|
-
children:
|
|
3368
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3366
3369
|
// Combobox content (trigger, content, items)
|
|
3367
3370
|
className: c().optional(),
|
|
3368
3371
|
// Additional CSS classes
|
|
3369
|
-
label:
|
|
3372
|
+
label: z([c(), v(), h(), w(), g]).optional(),
|
|
3370
3373
|
// Label content for the combobox (enables Field wrapper) - can be a string or any React node
|
|
3371
3374
|
required: h().optional(),
|
|
3372
3375
|
// Whether the combobox is required
|
|
3373
|
-
labelTooltip:
|
|
3376
|
+
labelTooltip: z([c(), v(), h(), w(), g]).optional(),
|
|
3374
3377
|
// Tooltip content to display next to the label via an info icon
|
|
3375
|
-
description:
|
|
3378
|
+
description: z([c(), v(), h(), w(), g]).optional(),
|
|
3376
3379
|
// Helper text displayed below the combobox
|
|
3377
3380
|
error: s().optional(),
|
|
3378
3381
|
// Error message or validation error object
|
|
@@ -3385,17 +3388,17 @@ const g = k([
|
|
|
3385
3388
|
}), Ea = _({
|
|
3386
3389
|
open: h(),
|
|
3387
3390
|
// Whether the dialog is open
|
|
3388
|
-
children:
|
|
3391
|
+
children: z([c(), v(), h(), w(), g]).optional()
|
|
3389
3392
|
// Child content - typically one or more Panel components
|
|
3390
3393
|
}), Ca = _({
|
|
3391
3394
|
className: c().optional(),
|
|
3392
3395
|
// Additional CSS classes
|
|
3393
|
-
children:
|
|
3396
|
+
children: z([c(), v(), h(), w(), g]).optional()
|
|
3394
3397
|
// Child elements
|
|
3395
3398
|
}), Aa = _({
|
|
3396
|
-
size:
|
|
3399
|
+
size: y(["sm", "base", "lg"]).optional(),
|
|
3397
3400
|
// Calendar size. - `"sm"` — Compact calendar for tight spaces - `"base"` — Default calendar size - `"lg"` — Large calendar for prominent date selection
|
|
3398
|
-
variant:
|
|
3401
|
+
variant: y(["default", "subtle"]).optional(),
|
|
3399
3402
|
// Visual variant. - `"default"` — Standard appearance with overlay background - `"subtle"` — Minimal background
|
|
3400
3403
|
timezone: c().optional(),
|
|
3401
3404
|
// Display timezone string shown in the footer.
|
|
@@ -3408,17 +3411,17 @@ const g = k([
|
|
|
3408
3411
|
}), xa = _({
|
|
3409
3412
|
className: c().optional(),
|
|
3410
3413
|
// Additional CSS classes merged via `cn()`.
|
|
3411
|
-
children:
|
|
3414
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3412
3415
|
// Dialog content (typically Title, Description, Close, and action buttons).
|
|
3413
|
-
size:
|
|
3416
|
+
size: y(["base", "sm", "lg", "xl"]).optional()
|
|
3414
3417
|
// 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
|
|
3415
3418
|
}), ja = _({
|
|
3416
|
-
variant:
|
|
3419
|
+
variant: y(["default", "danger"]).optional()
|
|
3417
3420
|
// Visual style of the dropdown item. - `"default"` — Standard item appearance - `"danger"` — Destructive action with red text
|
|
3418
3421
|
}), Ra = _({
|
|
3419
|
-
size:
|
|
3422
|
+
size: y(["sm", "base", "lg"]).optional(),
|
|
3420
3423
|
// 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
|
|
3421
|
-
icon:
|
|
3424
|
+
icon: z([c(), v(), h(), w(), g]).optional(),
|
|
3422
3425
|
// Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`).
|
|
3423
3426
|
title: c(),
|
|
3424
3427
|
// Primary heading text for the empty state.
|
|
@@ -3426,27 +3429,27 @@ const g = k([
|
|
|
3426
3429
|
// Secondary description text displayed below the title.
|
|
3427
3430
|
commandLine: c().optional(),
|
|
3428
3431
|
// Shell command displayed in a copyable code block.
|
|
3429
|
-
contents:
|
|
3432
|
+
contents: z([c(), v(), h(), w(), g]).optional(),
|
|
3430
3433
|
// Additional content (buttons, links) rendered below the description.
|
|
3431
3434
|
className: c().optional()
|
|
3432
3435
|
// Additional CSS classes merged via `cn()`.
|
|
3433
3436
|
}), Da = _({
|
|
3434
3437
|
controlFirst: h().optional(),
|
|
3435
3438
|
// When `true`, places the control before the label (for checkbox/switch layouts).
|
|
3436
|
-
children:
|
|
3439
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3437
3440
|
// The form control element(s) to wrap (Input, Select, Checkbox, etc.).
|
|
3438
|
-
label:
|
|
3441
|
+
label: z([c(), v(), h(), w(), g]).optional(),
|
|
3439
3442
|
// The label content — can be a string or any React node.
|
|
3440
3443
|
required: h().optional(),
|
|
3441
3444
|
// When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
|
|
3442
|
-
labelTooltip:
|
|
3445
|
+
labelTooltip: z([c(), v(), h(), w(), g]).optional(),
|
|
3443
3446
|
// Tooltip content displayed next to the label via an info icon.
|
|
3444
3447
|
error: s().optional(),
|
|
3445
3448
|
// Validation error with a message and a browser `ValidityState` match key.
|
|
3446
|
-
description:
|
|
3449
|
+
description: z([c(), v(), h(), w(), g]).optional()
|
|
3447
3450
|
// Helper text displayed below the control (hidden when `error` is present).
|
|
3448
3451
|
}), Ua = _({
|
|
3449
|
-
children:
|
|
3452
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3450
3453
|
// Grid items to render.
|
|
3451
3454
|
className: c().optional(),
|
|
3452
3455
|
// Additional CSS classes merged via `cn()`.
|
|
@@ -3455,29 +3458,29 @@ const g = k([
|
|
|
3455
3458
|
title: c().optional(),
|
|
3456
3459
|
mobileDivider: h().optional(),
|
|
3457
3460
|
// Show dividers between grid items on mobile (only works with `"4up"` variant).
|
|
3458
|
-
gap:
|
|
3461
|
+
gap: y(["none", "sm", "base", "lg"]).optional(),
|
|
3459
3462
|
// Gap size between grid items. - `"none"` — No gap - `"sm"` — 12px gap - `"base"` — Responsive gap (8px → 24px → 32px) - `"lg"` — 32px gap
|
|
3460
|
-
variant:
|
|
3463
|
+
variant: y(["2up", "side-by-side", "2-1", "1-2", "1-3up", "3up", "4up", "6up", "1-2-4up"]).optional()
|
|
3461
3464
|
// 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
|
|
3462
3465
|
}), Fa = _({
|
|
3463
|
-
label:
|
|
3466
|
+
label: z([c(), v(), h(), w(), g]).optional(),
|
|
3464
3467
|
// Label content for the input (enables Field wrapper) - can be a string or any React node
|
|
3465
|
-
labelTooltip:
|
|
3468
|
+
labelTooltip: z([c(), v(), h(), w(), g]).optional(),
|
|
3466
3469
|
// Tooltip content to display next to the label via an info icon
|
|
3467
|
-
description:
|
|
3470
|
+
description: z([c(), v(), h(), w(), g]).optional(),
|
|
3468
3471
|
// Helper text displayed below the input
|
|
3469
3472
|
error: s().optional(),
|
|
3470
3473
|
// Error message or validation error object
|
|
3471
|
-
size:
|
|
3474
|
+
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3472
3475
|
// Input size. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default size - `"lg"` — Large for prominent fields
|
|
3473
|
-
variant:
|
|
3476
|
+
variant: y(["default", "error"]).optional()
|
|
3474
3477
|
// Visual variant. - `"default"` — Standard input - `"error"` — Error state for validation failures
|
|
3475
3478
|
}), La = _({}), Ma = _({
|
|
3476
|
-
children:
|
|
3479
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3477
3480
|
// The label content — can be a string or any React node.
|
|
3478
3481
|
showOptional: h().optional(),
|
|
3479
3482
|
// When `true`, shows gray "(optional)" text after the label.
|
|
3480
|
-
tooltip:
|
|
3483
|
+
tooltip: z([c(), v(), h(), w(), g]).optional(),
|
|
3481
3484
|
// Tooltip content displayed next to the label via an info icon.
|
|
3482
3485
|
className: c().optional(),
|
|
3483
3486
|
// Additional CSS classes merged via `cn()`.
|
|
@@ -3486,14 +3489,14 @@ const g = k([
|
|
|
3486
3489
|
asContent: h().optional()
|
|
3487
3490
|
// 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.
|
|
3488
3491
|
}), Ja = _({
|
|
3489
|
-
children:
|
|
3492
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3490
3493
|
className: c().optional()
|
|
3491
3494
|
// Additional CSS classes merged via `cn()`.
|
|
3492
3495
|
}), Ba = _({
|
|
3493
|
-
variant:
|
|
3496
|
+
variant: y(["inline", "current", "plain"]).optional(),
|
|
3494
3497
|
// 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
|
|
3495
3498
|
to: c().optional(),
|
|
3496
|
-
children:
|
|
3499
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3497
3500
|
className: c().optional(),
|
|
3498
3501
|
id: c().optional(),
|
|
3499
3502
|
lang: c().optional(),
|
|
@@ -3505,13 +3508,13 @@ const g = k([
|
|
|
3505
3508
|
ping: c().optional(),
|
|
3506
3509
|
target: s().optional(),
|
|
3507
3510
|
type: c().optional(),
|
|
3508
|
-
referrerPolicy:
|
|
3509
|
-
render:
|
|
3511
|
+
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(),
|
|
3512
|
+
render: z([c(), v(), h(), w(), g]).optional()
|
|
3510
3513
|
// 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.
|
|
3511
3514
|
}), Va = _({
|
|
3512
3515
|
className: c().optional(),
|
|
3513
3516
|
// Additional CSS classes merged via `cn()`.
|
|
3514
|
-
size:
|
|
3517
|
+
size: y(["sm", "base", "lg"]).optional()
|
|
3515
3518
|
// 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
|
|
3516
3519
|
}), Wa = _({
|
|
3517
3520
|
className: c().optional(),
|
|
@@ -3533,43 +3536,43 @@ const g = k([
|
|
|
3533
3536
|
// Additional CSS classes for the track (background bar).
|
|
3534
3537
|
indicatorClassName: c().optional(),
|
|
3535
3538
|
// Additional CSS classes for the indicator (filled bar).
|
|
3536
|
-
value:
|
|
3539
|
+
value: v().optional(),
|
|
3537
3540
|
// Current value of the meter
|
|
3538
|
-
max:
|
|
3541
|
+
max: v().optional(),
|
|
3539
3542
|
// Maximum value of the meter (default: 100)
|
|
3540
|
-
min:
|
|
3543
|
+
min: v().optional()
|
|
3541
3544
|
// Minimum value of the meter (default: 0)
|
|
3542
3545
|
}), qa = _({
|
|
3543
|
-
controls:
|
|
3546
|
+
controls: y(["full", "simple"]).optional(),
|
|
3544
3547
|
setPage: s(),
|
|
3545
3548
|
// Callback when page changes
|
|
3546
|
-
page:
|
|
3549
|
+
page: v().optional(),
|
|
3547
3550
|
// Current page number (1-indexed).
|
|
3548
|
-
perPage:
|
|
3551
|
+
perPage: v().optional(),
|
|
3549
3552
|
// Number of items displayed per page.
|
|
3550
|
-
totalCount:
|
|
3553
|
+
totalCount: v().optional(),
|
|
3551
3554
|
// Total number of items across all pages.
|
|
3552
3555
|
text: s().optional()
|
|
3553
3556
|
// Method to provide custom pagination text
|
|
3554
3557
|
}), Ga = _({
|
|
3555
|
-
side:
|
|
3558
|
+
side: y(["top", "bottom", "left", "right"]).optional()
|
|
3556
3559
|
// 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
|
|
3557
3560
|
}), Xa = _({
|
|
3558
3561
|
legend: c(),
|
|
3559
3562
|
// Legend text for the group (required for accessibility)
|
|
3560
|
-
children:
|
|
3563
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3561
3564
|
// Child Radio.Item components
|
|
3562
|
-
orientation:
|
|
3565
|
+
orientation: y(["vertical", "horizontal"]).optional(),
|
|
3563
3566
|
// Layout direction of the radio items
|
|
3564
3567
|
error: c().optional(),
|
|
3565
3568
|
// Error message for the group
|
|
3566
|
-
description:
|
|
3569
|
+
description: z([c(), v(), h(), w(), g]).optional(),
|
|
3567
3570
|
// Helper text for the group
|
|
3568
3571
|
value: c().optional(),
|
|
3569
3572
|
// Value of the radio that should be selected (controlled)
|
|
3570
3573
|
disabled: h().optional(),
|
|
3571
3574
|
// Whether all radios in the group are disabled
|
|
3572
|
-
controlPosition:
|
|
3575
|
+
controlPosition: y(["start", "end"]).optional(),
|
|
3573
3576
|
// Position of radio control relative to label: "start" (default) puts radio before label, "end" puts label before radio
|
|
3574
3577
|
name: c().optional(),
|
|
3575
3578
|
// Form submission name for the radio group
|
|
@@ -3578,7 +3581,7 @@ const g = k([
|
|
|
3578
3581
|
}), Ya = _({
|
|
3579
3582
|
className: c().optional(),
|
|
3580
3583
|
// Additional CSS classes merged via `cn()`.
|
|
3581
|
-
label:
|
|
3584
|
+
label: z([c(), v(), h(), w(), g]).optional(),
|
|
3582
3585
|
// Label content for the select (enables Field wrapper) — can be a string or any React node.
|
|
3583
3586
|
hideLabel: h().optional(),
|
|
3584
3587
|
// Visually hide the label while keeping it accessible to screen readers. Set to `false` to show a visible label above the select via the Field wrapper.
|
|
@@ -3590,13 +3593,13 @@ const g = k([
|
|
|
3590
3593
|
// Whether the select is disabled.
|
|
3591
3594
|
required: h().optional(),
|
|
3592
3595
|
// Whether the select is required. When `false`, shows "(optional)" text.
|
|
3593
|
-
labelTooltip:
|
|
3596
|
+
labelTooltip: z([c(), v(), h(), w(), g]).optional(),
|
|
3594
3597
|
// Tooltip content displayed next to the label via an info icon.
|
|
3595
3598
|
value: c().optional(),
|
|
3596
3599
|
// Currently selected value (controlled mode).
|
|
3597
|
-
children:
|
|
3600
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3598
3601
|
// `Select.Option` elements to render in the dropdown.
|
|
3599
|
-
description:
|
|
3602
|
+
description: z([c(), v(), h(), w(), g]).optional(),
|
|
3600
3603
|
// Helper text displayed below the select.
|
|
3601
3604
|
error: s().optional(),
|
|
3602
3605
|
// Error message string or validation error object with `match` key.
|
|
@@ -3620,18 +3623,18 @@ const g = k([
|
|
|
3620
3623
|
id: c().optional(),
|
|
3621
3624
|
lang: c().optional(),
|
|
3622
3625
|
title: c().optional(),
|
|
3623
|
-
children:
|
|
3626
|
+
children: z([c(), v(), h(), w(), g]).optional(),
|
|
3624
3627
|
value: c().optional(),
|
|
3625
3628
|
// Controlled value
|
|
3626
|
-
size:
|
|
3629
|
+
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3627
3630
|
// Size of the input. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default input size - `"lg"` — Large for prominent fields
|
|
3628
|
-
variant:
|
|
3631
|
+
variant: y(["default", "error"]).optional(),
|
|
3629
3632
|
// Style variant of the input. - `"default"` — Default input appearance - `"error"` — Error state for validation failures
|
|
3630
|
-
label:
|
|
3633
|
+
label: z([c(), v(), h(), w(), g]).optional(),
|
|
3631
3634
|
// Label content for the input (enables Field wrapper and sets masked state label) - can be a string or any React node
|
|
3632
|
-
labelTooltip:
|
|
3635
|
+
labelTooltip: z([c(), v(), h(), w(), g]).optional(),
|
|
3633
3636
|
// Tooltip content to display next to the label via an info icon
|
|
3634
|
-
description:
|
|
3637
|
+
description: z([c(), v(), h(), w(), g]).optional(),
|
|
3635
3638
|
// Helper text displayed below the input
|
|
3636
3639
|
error: s().optional()
|
|
3637
3640
|
// Error message or validation error object
|
|
@@ -3640,25 +3643,25 @@ const g = k([
|
|
|
3640
3643
|
// The HTML element type to render as (e.g. `"div"`, `"section"`, `"article"`).
|
|
3641
3644
|
className: c().optional(),
|
|
3642
3645
|
// Additional CSS classes merged via `cn()`.
|
|
3643
|
-
children:
|
|
3646
|
+
children: z([c(), v(), h(), w(), g]).optional()
|
|
3644
3647
|
// Content rendered inside the surface.
|
|
3645
3648
|
}), es = _({
|
|
3646
|
-
variant:
|
|
3649
|
+
variant: y(["default", "error"]).optional(),
|
|
3647
3650
|
// Visual variant: "default" or "error" for validation failures (visual only, no error text)
|
|
3648
|
-
label:
|
|
3651
|
+
label: z([c(), v(), h(), w(), g]).optional(),
|
|
3649
3652
|
// 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.
|
|
3650
|
-
labelTooltip:
|
|
3653
|
+
labelTooltip: z([c(), v(), h(), w(), g]).optional(),
|
|
3651
3654
|
// Tooltip content to display next to the label via an info icon
|
|
3652
3655
|
required: h().optional(),
|
|
3653
3656
|
// Whether the switch is required. When explicitly false, shows "(optional)" text after the label.
|
|
3654
3657
|
controlFirst: h().optional(),
|
|
3655
3658
|
// When true (default), switch appears before label. When false, label appears before switch.
|
|
3656
|
-
size:
|
|
3659
|
+
size: y(["sm", "base", "lg"]).optional(),
|
|
3657
3660
|
checked: h().optional(),
|
|
3658
3661
|
disabled: h().optional(),
|
|
3659
3662
|
transitioning: h().optional(),
|
|
3660
3663
|
name: c().optional(),
|
|
3661
|
-
type:
|
|
3664
|
+
type: y(["submit", "reset", "button"]).optional(),
|
|
3662
3665
|
value: s().optional(),
|
|
3663
3666
|
className: c().optional(),
|
|
3664
3667
|
id: c().optional(),
|
|
@@ -3667,11 +3670,11 @@ const g = k([
|
|
|
3667
3670
|
onClick: s()
|
|
3668
3671
|
// Callback when switch is clicked
|
|
3669
3672
|
}), ts = _({
|
|
3670
|
-
layout:
|
|
3671
|
-
variant:
|
|
3673
|
+
layout: y(["auto", "fixed"]).optional(),
|
|
3674
|
+
variant: y(["default", "selected"]).optional(),
|
|
3672
3675
|
className: c().optional(),
|
|
3673
3676
|
// Additional CSS classes
|
|
3674
|
-
children:
|
|
3677
|
+
children: z([c(), v(), h(), w(), g]).optional()
|
|
3675
3678
|
// Child elements
|
|
3676
3679
|
}), os = _({
|
|
3677
3680
|
tabs: L(s()).optional(),
|
|
@@ -3688,39 +3691,39 @@ const g = k([
|
|
|
3688
3691
|
// Additional CSS classes for the tab list element.
|
|
3689
3692
|
indicatorClassName: c().optional(),
|
|
3690
3693
|
// Additional CSS classes for the indicator element.
|
|
3691
|
-
variant:
|
|
3694
|
+
variant: y(["segmented", "underline"]).optional(),
|
|
3692
3695
|
// Tab style. - `"segmented"` — Pill-shaped indicator on a filled track - `"underline"` — Underline indicator below tab text
|
|
3693
3696
|
onValueChange: s().optional()
|
|
3694
3697
|
// Callback when active tab changes
|
|
3695
3698
|
}), ns = _({
|
|
3696
|
-
variant:
|
|
3699
|
+
variant: y(["heading1", "heading2", "heading3", "body", "secondary", "success", "error", "mono", "mono-secondary"]).optional(),
|
|
3697
3700
|
// Text style variant. Determines color, font, and weight. - `"heading1"` — Large page title (30px, semibold) - `"heading2"` — Section title (24px, semibold) - `"heading3"` — Subsection title (18px, semibold) - `"body"` — Default body text - `"secondary"` — Muted text for secondary information - `"success"` — Success state text - `"error"` — Error state text - `"mono"` — Monospace text for code - `"mono-secondary"` — Muted monospace text
|
|
3698
|
-
size:
|
|
3701
|
+
size: y(["xs", "sm", "base", "lg"]).optional(),
|
|
3699
3702
|
// Text size (only applies to body/secondary/success/error variants). - `"xs"` — 12px - `"sm"` — 14px - `"base"` — 16px - `"lg"` — 18px
|
|
3700
3703
|
bold: h().optional(),
|
|
3701
3704
|
// Whether to use bold font weight (only applies to body variants).
|
|
3702
3705
|
as: s().optional(),
|
|
3703
3706
|
// The HTML element type to render as (e.g. `"span"`, `"p"`, `"h1"`). Auto-selected based on variant if omitted.
|
|
3704
|
-
children:
|
|
3707
|
+
children: z([c(), v(), h(), w(), g]).optional()
|
|
3705
3708
|
// Text content.
|
|
3706
3709
|
}), rs = _({
|
|
3707
|
-
variant:
|
|
3710
|
+
variant: y(["default", "error", "warning"]).optional(),
|
|
3708
3711
|
className: c().optional(),
|
|
3709
3712
|
// Additional CSS classes
|
|
3710
|
-
children:
|
|
3713
|
+
children: z([c(), v(), h(), w(), g]).optional()
|
|
3711
3714
|
// Child elements
|
|
3712
3715
|
}), is = _({
|
|
3713
|
-
align:
|
|
3716
|
+
align: y(["start", "center", "end"]).optional(),
|
|
3714
3717
|
// Alignment on the axis perpendicular to `side`. - `"start"` — Align to the start edge - `"center"` — Center-aligned - `"end"` — Align to the end edge
|
|
3715
3718
|
asChild: h().optional(),
|
|
3716
3719
|
// When `true`, the trigger wraps the child element instead of adding a wrapper.
|
|
3717
3720
|
className: c().optional(),
|
|
3718
3721
|
// Additional CSS classes merged via `cn()`.
|
|
3719
|
-
side:
|
|
3722
|
+
side: y(["top", "bottom", "left", "right"]).optional(),
|
|
3720
3723
|
// Preferred side of the trigger to render the tooltip. - `"top"` — Tooltip appears above the trigger - `"bottom"` — Tooltip appears below the trigger - `"left"` — Tooltip appears to the left of the trigger - `"right"` — Tooltip appears to the right of the trigger
|
|
3721
|
-
content:
|
|
3724
|
+
content: z([c(), v(), h(), w(), g])
|
|
3722
3725
|
// Content to display in the tooltip
|
|
3723
|
-
}), as =
|
|
3726
|
+
}), as = y([
|
|
3724
3727
|
"Badge",
|
|
3725
3728
|
"Banner",
|
|
3726
3729
|
"Breadcrumbs",
|
|
@@ -3869,4 +3872,4 @@ export {
|
|
|
3869
3872
|
ps as validateElementProps,
|
|
3870
3873
|
ds as validateUITree
|
|
3871
3874
|
};
|
|
3872
|
-
//# sourceMappingURL=schemas-
|
|
3875
|
+
//# sourceMappingURL=schemas-DKFFjjzb.js.map
|