@cloudflare/kumo 1.15.0 → 1.17.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 +144 -0
- package/ai/USAGE.md +3 -1
- package/ai/component-registry.json +511 -66
- package/ai/component-registry.md +776 -59
- package/ai/schemas.ts +33 -7
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +158 -39
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/ai/schemas.js +456 -418
- package/dist/ai/schemas.js.map +1 -1
- package/dist/chunks/{Legend-mkh1v83sz972e29d.js → Legend-o0ntojbaplmszwk0.js} +115 -101
- package/dist/chunks/Legend-o0ntojbaplmszwk0.js.map +1 -0
- package/dist/chunks/badge-n80t3z8u9ttlxi20.js +120 -0
- package/dist/chunks/badge-n80t3z8u9ttlxi20.js.map +1 -0
- package/dist/chunks/banner-nz0eryqnz3qd86ln.js +79 -0
- package/dist/chunks/banner-nz0eryqnz3qd86ln.js.map +1 -0
- package/dist/chunks/{breadcrumbs-m79gm4gjwbfajpna.js → breadcrumbs-cjgn3w4drahvqnuj.js} +3 -3
- package/dist/chunks/{breadcrumbs-m79gm4gjwbfajpna.js.map → breadcrumbs-cjgn3w4drahvqnuj.js.map} +1 -1
- package/dist/chunks/{button-j0hi0afn33w9lxgi.js → button-odxi0hp4fvi5i2w3.js} +50 -48
- package/dist/chunks/button-odxi0hp4fvi5i2w3.js.map +1 -0
- package/dist/chunks/{checkbox-bvzuggmadtqawis4.js → checkbox-dx8x0rzv582yjv7n.js} +38 -47
- package/dist/chunks/{checkbox-bvzuggmadtqawis4.js.map → checkbox-dx8x0rzv582yjv7n.js.map} +1 -1
- package/dist/chunks/{clipboard-text-mwcknzn75qdvigrd.js → clipboard-text-kyk51d1ze7zvdn4q.js} +55 -54
- package/dist/chunks/clipboard-text-kyk51d1ze7zvdn4q.js.map +1 -0
- package/dist/chunks/{combobox-ndbaroqh1c0u49ye.js → combobox-9fhjzprab46csmon.js} +97 -82
- package/dist/chunks/combobox-9fhjzprab46csmon.js.map +1 -0
- package/dist/chunks/{command-palette-ejoszjfivybu9yi5.js → command-palette-kenx2bbdzd4kpx36.js} +158 -154
- package/dist/chunks/command-palette-kenx2bbdzd4kpx36.js.map +1 -0
- package/dist/chunks/{dialog-gkmecnx48ge38jrr.js → dialog-e05ysa8t2fklw065.js} +22 -20
- package/dist/chunks/dialog-e05ysa8t2fklw065.js.map +1 -0
- package/dist/chunks/{dropdown-i8n7nv3cvkvb1x3e.js → dropdown-g587px7zv3ssaxr4.js} +96 -90
- package/dist/chunks/dropdown-g587px7zv3ssaxr4.js.map +1 -0
- package/dist/chunks/{empty-hrwtammqp0b2nvtf.js → empty-fuz1un7r7mbz0kim.js} +2 -2
- package/dist/chunks/{empty-hrwtammqp0b2nvtf.js.map → empty-fuz1un7r7mbz0kim.js.map} +1 -1
- package/dist/chunks/{field-lweivfadxgpqhuqi.js → field-fq504lyu7ttsh5m9.js} +3 -3
- package/dist/chunks/{field-lweivfadxgpqhuqi.js.map → field-fq504lyu7ttsh5m9.js.map} +1 -1
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js +8 -0
- package/dist/chunks/hcl-hcu7d6ja6t540ijn.js.map +1 -0
- package/dist/chunks/{input-area-obli4ufvu40bfpgp.js → input-area-nq40szg9110on89c.js} +4 -4
- package/dist/chunks/{input-area-obli4ufvu40bfpgp.js.map → input-area-nq40szg9110on89c.js.map} +1 -1
- package/dist/chunks/{input-group-dwtsd04lzf2bcsdo.js → input-group-hbebbyh8fo6aqydn.js} +3 -3
- package/dist/chunks/{input-group-dwtsd04lzf2bcsdo.js.map → input-group-hbebbyh8fo6aqydn.js.map} +1 -1
- package/dist/chunks/{input-ko2dne1givlxq7sz.js → input-kvhyo3p4859bexvx.js} +4 -4
- package/dist/chunks/input-kvhyo3p4859bexvx.js.map +1 -0
- package/dist/chunks/{label-kjahhybc191quieo.js → label-j9owppbgnn35mebg.js} +3 -3
- package/dist/chunks/{label-kjahhybc191quieo.js.map → label-j9owppbgnn35mebg.js.map} +1 -1
- package/dist/chunks/{layer-card-mu2w82x6ko1nhhtr.js → layer-card-l5yjvrxry1dhte57.js} +8 -8
- package/dist/chunks/{layer-card-mu2w82x6ko1nhhtr.js.map → layer-card-l5yjvrxry1dhte57.js.map} +1 -1
- package/dist/chunks/{link-lpzl5s47pmobk361.js → link-hmmf3k1xn6rm72rt.js} +2 -2
- package/dist/chunks/{link-lpzl5s47pmobk361.js.map → link-hmmf3k1xn6rm72rt.js.map} +1 -1
- package/dist/chunks/{menubar-ifxxdoa35zz79z1q.js → menubar-abojnm0uwjuni8ok.js} +20 -20
- package/dist/chunks/menubar-abojnm0uwjuni8ok.js.map +1 -0
- package/dist/chunks/{meter-fbtqfg0okpwmaiju.js → meter-i84dte2f82qmvn7y.js} +2 -2
- package/dist/chunks/{meter-fbtqfg0okpwmaiju.js.map → meter-i84dte2f82qmvn7y.js.map} +1 -1
- package/dist/chunks/{pagination-eo0gzzm7v5w8niqe.js → pagination-pbd7qqik97ac0l7m.js} +3 -3
- package/dist/chunks/{pagination-eo0gzzm7v5w8niqe.js.map → pagination-pbd7qqik97ac0l7m.js.map} +1 -1
- package/dist/chunks/{popover-dd7hi5ajeoq9od1i.js → popover-i951xjcgezeqr4iv.js} +31 -28
- package/dist/chunks/popover-i951xjcgezeqr4iv.js.map +1 -0
- package/dist/chunks/portal-provider-hwmkdmkpvct0cb76.js +18 -0
- package/dist/chunks/portal-provider-hwmkdmkpvct0cb76.js.map +1 -0
- package/dist/chunks/{radio-oi9iw7ls1t04j377.js → radio-l2vkcue40d84fmo1.js} +13 -16
- package/dist/chunks/{radio-oi9iw7ls1t04j377.js.map → radio-l2vkcue40d84fmo1.js.map} +1 -1
- package/dist/chunks/{select-0m0xklfwdlx8dwba.js → select-paedwa3nlhpq82ua.js} +39 -37
- package/dist/chunks/select-paedwa3nlhpq82ua.js.map +1 -0
- package/dist/chunks/{sensitive-input-rjpykxn2llh0thx1.js → sensitive-input-kznmknpp5h1grc6k.js} +97 -91
- package/dist/chunks/sensitive-input-kznmknpp5h1grc6k.js.map +1 -0
- package/dist/chunks/sidebar-jepeq7gaf4issuw6.js +875 -0
- package/dist/chunks/sidebar-jepeq7gaf4issuw6.js.map +1 -0
- package/dist/chunks/skeleton-line-epxenksfesr2fkcv.js +33 -0
- package/dist/chunks/skeleton-line-epxenksfesr2fkcv.js.map +1 -0
- package/dist/chunks/surface-blo81kgy9g0sexgm.js +36 -0
- package/dist/chunks/surface-blo81kgy9g0sexgm.js.map +1 -0
- package/dist/chunks/{switch-lv4mrrkfl5uc99xo.js → switch-i0zwcp3wq6vsxm1c.js} +64 -64
- package/dist/chunks/{switch-lv4mrrkfl5uc99xo.js.map → switch-i0zwcp3wq6vsxm1c.js.map} +1 -1
- package/dist/chunks/table-nrcw19tlpduayukl.js +183 -0
- package/dist/chunks/table-nrcw19tlpduayukl.js.map +1 -0
- package/dist/chunks/tabs-bw92jb303zxw7w4f.js +92 -0
- package/dist/chunks/{tabs-hy6oa7xtf96d9mxt.js.map → tabs-bw92jb303zxw7w4f.js.map} +1 -1
- package/dist/chunks/{text-gzt92mlji1lug13d.js → text-nmyi1rkwdj37f30f.js} +24 -22
- package/dist/chunks/text-nmyi1rkwdj37f30f.js.map +1 -0
- package/dist/chunks/{toast-kswfqmjysxcrwij3.js → toast-lrnwby56drs7vtae.js} +61 -59
- package/dist/chunks/toast-lrnwby56drs7vtae.js.map +1 -0
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js +8 -0
- package/dist/chunks/toml-nczb2z9n0o23o3ci.js.map +1 -0
- package/dist/chunks/{tooltip-k68wcv9mrigb7rcb.js → tooltip-cit9ltlxfuhwctuj.js} +24 -21
- package/dist/chunks/tooltip-cit9ltlxfuhwctuj.js.map +1 -0
- package/dist/chunks/{vendor-base-ui-cpvkrhz4zgw9nw2b.js → vendor-base-ui-n30qblevnpk9cc5c.js} +551 -549
- package/dist/chunks/{vendor-base-ui-cpvkrhz4zgw9nw2b.js.map → vendor-base-ui-n30qblevnpk9cc5c.js.map} +1 -1
- package/dist/code/server.js +11 -9
- package/dist/code/server.js.map +1 -1
- package/dist/code.js +16 -14
- package/dist/code.js.map +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/chart.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/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/flow.js +2142 -2090
- package/dist/components/flow.js.map +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loader.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/sidebar.js +35 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/surface.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/text.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +192 -159
- package/dist/index.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/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/drawer.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/scripts/theme-generator/config.d.ts.map +1 -1
- package/dist/scripts/theme-generator/config.js +288 -24
- package/dist/scripts/theme-generator/config.js.map +1 -1
- package/dist/src/code/provider.d.ts.map +1 -1
- package/dist/src/code/server.d.ts.map +1 -1
- package/dist/src/code/types.d.ts +1 -1
- package/dist/src/code/types.d.ts.map +1 -1
- package/dist/src/components/badge/badge.d.ts +95 -22
- package/dist/src/components/badge/badge.d.ts.map +1 -1
- package/dist/src/components/banner/banner.d.ts +2 -0
- package/dist/src/components/banner/banner.d.ts.map +1 -1
- package/dist/src/components/button/button.d.ts +2 -0
- package/dist/src/components/button/button.d.ts.map +1 -1
- package/dist/src/components/chart/EChart.d.ts.map +1 -1
- package/dist/src/components/chart/TimeseriesChart.d.ts +11 -1
- package/dist/src/components/chart/TimeseriesChart.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 +2 -0
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -1
- package/dist/src/components/combobox/combobox.d.ts +8 -1
- package/dist/src/components/combobox/combobox.d.ts.map +1 -1
- package/dist/src/components/command-palette/command-palette.d.ts +9 -2
- package/dist/src/components/command-palette/command-palette.d.ts.map +1 -1
- package/dist/src/components/command-palette/types.d.ts +7 -0
- package/dist/src/components/command-palette/types.d.ts.map +1 -1
- package/dist/src/components/dialog/dialog.d.ts +8 -1
- package/dist/src/components/dialog/dialog.d.ts.map +1 -1
- package/dist/src/components/dropdown/dropdown.d.ts +17 -2
- package/dist/src/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/src/components/flow/diagram.d.ts.map +1 -1
- package/dist/src/components/flow/node.d.ts.map +1 -1
- package/dist/src/components/flow/parallel.d.ts.map +1 -1
- package/dist/src/components/loader/skeleton-line.d.ts +2 -1
- package/dist/src/components/loader/skeleton-line.d.ts.map +1 -1
- package/dist/src/components/popover/popover.d.ts +8 -1
- package/dist/src/components/popover/popover.d.ts.map +1 -1
- package/dist/src/components/radio/radio.d.ts.map +1 -1
- package/dist/src/components/select/select.d.ts +8 -1
- package/dist/src/components/select/select.d.ts.map +1 -1
- package/dist/src/components/sensitive-input/sensitive-input.d.ts.map +1 -1
- package/dist/src/components/sidebar/index.d.ts +2 -0
- package/dist/src/components/sidebar/index.d.ts.map +1 -0
- package/dist/src/components/sidebar/sidebar.d.ts +556 -0
- package/dist/src/components/sidebar/sidebar.d.ts.map +1 -0
- package/dist/src/components/surface/surface.d.ts +23 -23
- package/dist/src/components/surface/surface.d.ts.map +1 -1
- package/dist/src/components/table/table.d.ts +34 -2
- package/dist/src/components/table/table.d.ts.map +1 -1
- package/dist/src/components/tabs/tabs.d.ts.map +1 -1
- package/dist/src/components/text/text.d.ts +5 -0
- package/dist/src/components/text/text.d.ts.map +1 -1
- package/dist/src/components/toast/toast.d.ts +16 -9
- package/dist/src/components/toast/toast.d.ts.map +1 -1
- package/dist/src/components/tooltip/tooltip.d.ts +11 -6
- package/dist/src/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/portal-provider.d.ts +56 -0
- package/dist/src/utils/portal-provider.d.ts.map +1 -0
- package/dist/styles/kumo-binding.css +49 -46
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-fedramp.css +3 -3
- package/dist/styles/theme-kumo.css +202 -22
- package/dist/utils.js +8 -6
- package/dist/utils.js.map +1 -1
- package/package.json +7 -3
- package/scripts/component-registry/index.ts +12 -0
- package/scripts/theme-generator/config.ts +298 -24
- package/dist/chunks/Legend-mkh1v83sz972e29d.js.map +0 -1
- package/dist/chunks/badge-mrshucy2530o70cq.js +0 -56
- package/dist/chunks/badge-mrshucy2530o70cq.js.map +0 -1
- package/dist/chunks/banner-vzdjbqsb6em7tmdk.js +0 -75
- package/dist/chunks/banner-vzdjbqsb6em7tmdk.js.map +0 -1
- package/dist/chunks/button-j0hi0afn33w9lxgi.js.map +0 -1
- package/dist/chunks/clipboard-text-mwcknzn75qdvigrd.js.map +0 -1
- package/dist/chunks/combobox-ndbaroqh1c0u49ye.js.map +0 -1
- package/dist/chunks/command-palette-ejoszjfivybu9yi5.js.map +0 -1
- package/dist/chunks/dialog-gkmecnx48ge38jrr.js.map +0 -1
- package/dist/chunks/dropdown-i8n7nv3cvkvb1x3e.js.map +0 -1
- package/dist/chunks/input-ko2dne1givlxq7sz.js.map +0 -1
- package/dist/chunks/menubar-ifxxdoa35zz79z1q.js.map +0 -1
- package/dist/chunks/popover-dd7hi5ajeoq9od1i.js.map +0 -1
- package/dist/chunks/select-0m0xklfwdlx8dwba.js.map +0 -1
- package/dist/chunks/sensitive-input-rjpykxn2llh0thx1.js.map +0 -1
- package/dist/chunks/skeleton-line-1j5exu6vv07mmhfb.js +0 -28
- package/dist/chunks/skeleton-line-1j5exu6vv07mmhfb.js.map +0 -1
- package/dist/chunks/surface-dhshylwccuaz91d1.js +0 -21
- package/dist/chunks/surface-dhshylwccuaz91d1.js.map +0 -1
- package/dist/chunks/table-fh7jmfip27vdapxm.js +0 -155
- package/dist/chunks/table-fh7jmfip27vdapxm.js.map +0 -1
- package/dist/chunks/tabs-hy6oa7xtf96d9mxt.js +0 -86
- package/dist/chunks/text-gzt92mlji1lug13d.js.map +0 -1
- package/dist/chunks/toast-kswfqmjysxcrwij3.js.map +0 -1
- package/dist/chunks/tooltip-k68wcv9mrigb7rcb.js.map +0 -1
package/dist/ai/schemas.js
CHANGED
|
@@ -11,10 +11,10 @@ function d(e, t, o) {
|
|
|
11
11
|
}), u._zod.traits.has(e))
|
|
12
12
|
return;
|
|
13
13
|
u._zod.traits.add(e), t(u, l);
|
|
14
|
-
const p = i.prototype,
|
|
15
|
-
for (let
|
|
16
|
-
const
|
|
17
|
-
|
|
14
|
+
const p = i.prototype, h = Object.keys(p);
|
|
15
|
+
for (let g = 0; g < h.length; g++) {
|
|
16
|
+
const w = h[g];
|
|
17
|
+
w in u || (u[w] = p[w].bind(u));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
const r = o?.Parent ?? Object;
|
|
@@ -25,8 +25,8 @@ function d(e, t, o) {
|
|
|
25
25
|
var l;
|
|
26
26
|
const p = o?.Parent ? new a() : this;
|
|
27
27
|
n(p, u), (l = p._zod).deferred ?? (l.deferred = []);
|
|
28
|
-
for (const
|
|
29
|
-
|
|
28
|
+
for (const h of p._zod.deferred)
|
|
29
|
+
h();
|
|
30
30
|
return p;
|
|
31
31
|
}
|
|
32
32
|
return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
|
|
@@ -82,7 +82,7 @@ function Pt(e, t) {
|
|
|
82
82
|
return i % u / 10 ** a;
|
|
83
83
|
}
|
|
84
84
|
const Ze = Symbol("evaluating");
|
|
85
|
-
function
|
|
85
|
+
function $(e, t, o) {
|
|
86
86
|
let n;
|
|
87
87
|
Object.defineProperty(e, t, {
|
|
88
88
|
get() {
|
|
@@ -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 z(e) {
|
|
159
159
|
const t = e;
|
|
160
160
|
if (!t)
|
|
161
161
|
return {};
|
|
@@ -394,7 +394,7 @@ const we = (e) => (t, o, n, r) => {
|
|
|
394
394
|
throw Xe(u, r?.callee), u;
|
|
395
395
|
}
|
|
396
396
|
return i.value;
|
|
397
|
-
},
|
|
397
|
+
}, Se = (e) => async (t, o, n, r) => {
|
|
398
398
|
const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
399
399
|
let i = t._zod.run({ value: o, issues: [] }, a);
|
|
400
400
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
@@ -422,8 +422,8 @@ const we = (e) => (t, o, n, r) => {
|
|
|
422
422
|
return we(e)(t, o, r);
|
|
423
423
|
}, Vt = (e) => (t, o, n) => we(e)(t, o, n), Wt = (e) => async (t, o, n) => {
|
|
424
424
|
const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
|
|
425
|
-
return
|
|
426
|
-
}, Kt = (e) => async (t, o, n) =>
|
|
425
|
+
return Se(e)(t, o, r);
|
|
426
|
+
}, Kt = (e) => async (t, o, n) => Se(e)(t, o, n), qt = (e) => (t, o, n) => {
|
|
427
427
|
const r = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
|
|
428
428
|
return pe(e)(t, o, r);
|
|
429
429
|
}, Gt = (e) => (t, o, n) => pe(e)(t, o, n), Xt = (e) => async (t, o, n) => {
|
|
@@ -450,7 +450,7 @@ function vo(e) {
|
|
|
450
450
|
const bo = (e) => {
|
|
451
451
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
452
452
|
return new RegExp(`^${t}$`);
|
|
453
|
-
}, yo = /^-?\d+$/, rt = /^-?\d+(?:\.\d+)?$/, zo = /^(?:true|false)$/i, ko = /^null$/i, wo = /^[^A-Z]*$/,
|
|
453
|
+
}, yo = /^-?\d+$/, rt = /^-?\d+(?:\.\d+)?$/, zo = /^(?:true|false)$/i, ko = /^null$/i, wo = /^[^A-Z]*$/, So = /^[^a-z]*$/, x = /* @__PURE__ */ d("$ZodCheck", (e, t) => {
|
|
454
454
|
var o;
|
|
455
455
|
e._zod ?? (e._zod = {}), e._zod.def = t, (o = e._zod).onattach ?? (o.onattach = []);
|
|
456
456
|
}), it = {
|
|
@@ -491,7 +491,7 @@ const bo = (e) => {
|
|
|
491
491
|
continue: !t.abort
|
|
492
492
|
});
|
|
493
493
|
};
|
|
494
|
-
}),
|
|
494
|
+
}), $o = /* @__PURE__ */ d("$ZodCheckMultipleOf", (e, t) => {
|
|
495
495
|
x.init(e, t), e._zod.onattach.push((o) => {
|
|
496
496
|
var n;
|
|
497
497
|
(n = o._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
@@ -669,7 +669,7 @@ const bo = (e) => {
|
|
|
669
669
|
}), No = /* @__PURE__ */ d("$ZodCheckLowerCase", (e, t) => {
|
|
670
670
|
t.pattern ?? (t.pattern = wo), fe.init(e, t);
|
|
671
671
|
}), Eo = /* @__PURE__ */ d("$ZodCheckUpperCase", (e, t) => {
|
|
672
|
-
t.pattern ?? (t.pattern =
|
|
672
|
+
t.pattern ?? (t.pattern = So), fe.init(e, t);
|
|
673
673
|
}), Co = /* @__PURE__ */ d("$ZodCheckIncludes", (e, t) => {
|
|
674
674
|
x.init(e, t);
|
|
675
675
|
const o = le(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${o}` : o);
|
|
@@ -767,27 +767,27 @@ const Do = {
|
|
|
767
767
|
});
|
|
768
768
|
else {
|
|
769
769
|
const r = (i, u, l) => {
|
|
770
|
-
let p = K(i),
|
|
771
|
-
for (const
|
|
772
|
-
if (
|
|
773
|
-
if (!
|
|
770
|
+
let p = K(i), h;
|
|
771
|
+
for (const g of u) {
|
|
772
|
+
if (g._zod.def.when) {
|
|
773
|
+
if (!g._zod.def.when(i))
|
|
774
774
|
continue;
|
|
775
775
|
} else if (p)
|
|
776
776
|
continue;
|
|
777
|
-
const
|
|
778
|
-
if (
|
|
777
|
+
const w = i.issues.length, S = g._zod.check(i);
|
|
778
|
+
if (S instanceof Promise && l?.async === !1)
|
|
779
779
|
throw new q();
|
|
780
|
-
if (
|
|
781
|
-
|
|
782
|
-
await
|
|
780
|
+
if (h || S instanceof Promise)
|
|
781
|
+
h = (h ?? Promise.resolve()).then(async () => {
|
|
782
|
+
await S, i.issues.length !== w && (p || (p = K(i, w)));
|
|
783
783
|
});
|
|
784
784
|
else {
|
|
785
|
-
if (i.issues.length ===
|
|
785
|
+
if (i.issues.length === w)
|
|
786
786
|
continue;
|
|
787
|
-
p || (p = K(i,
|
|
787
|
+
p || (p = K(i, w));
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
return
|
|
790
|
+
return h ? h.then(() => i) : i;
|
|
791
791
|
}, a = (i, u, l) => {
|
|
792
792
|
if (K(i))
|
|
793
793
|
return i.aborted = !0, i;
|
|
@@ -795,7 +795,7 @@ const Do = {
|
|
|
795
795
|
if (p instanceof Promise) {
|
|
796
796
|
if (l.async === !1)
|
|
797
797
|
throw new q();
|
|
798
|
-
return p.then((
|
|
798
|
+
return p.then((h) => e._zod.parse(h, l));
|
|
799
799
|
}
|
|
800
800
|
return e._zod.parse(p, l);
|
|
801
801
|
};
|
|
@@ -804,7 +804,7 @@ const Do = {
|
|
|
804
804
|
return e._zod.parse(i, u);
|
|
805
805
|
if (u.direction === "backward") {
|
|
806
806
|
const p = e._zod.parse({ value: i.value, issues: [] }, { ...u, skipChecks: !0 });
|
|
807
|
-
return p instanceof Promise ? p.then((
|
|
807
|
+
return p instanceof Promise ? p.then((h) => a(h, i, u)) : a(p, i, u);
|
|
808
808
|
}
|
|
809
809
|
const l = e._zod.parse(i, u);
|
|
810
810
|
if (l instanceof Promise) {
|
|
@@ -815,7 +815,7 @@ const Do = {
|
|
|
815
815
|
return r(l, n, u);
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
|
-
|
|
818
|
+
$(e, "~standard", () => ({
|
|
819
819
|
validate: (r) => {
|
|
820
820
|
try {
|
|
821
821
|
const a = Mt(e, r);
|
|
@@ -827,7 +827,7 @@ const Do = {
|
|
|
827
827
|
vendor: "zod",
|
|
828
828
|
version: 1
|
|
829
829
|
}));
|
|
830
|
-
}),
|
|
830
|
+
}), $e = /* @__PURE__ */ d("$ZodString", (e, t) => {
|
|
831
831
|
Z.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? bo(e._zod.bag), e._zod.parse = (o, n) => {
|
|
832
832
|
if (t.coerce)
|
|
833
833
|
try {
|
|
@@ -842,7 +842,7 @@ const Do = {
|
|
|
842
842
|
}), o;
|
|
843
843
|
};
|
|
844
844
|
}), O = /* @__PURE__ */ d("$ZodStringFormat", (e, t) => {
|
|
845
|
-
fe.init(e, t),
|
|
845
|
+
fe.init(e, t), $e.init(e, t);
|
|
846
846
|
}), Uo = /* @__PURE__ */ d("$ZodGUID", (e, t) => {
|
|
847
847
|
t.pattern ?? (t.pattern = io), O.init(e, t);
|
|
848
848
|
}), Fo = /* @__PURE__ */ d("$ZodUUID", (e, t) => {
|
|
@@ -1132,16 +1132,16 @@ function lt(e) {
|
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
1134
|
function pt(e, t, o, n, r, a) {
|
|
1135
|
-
const i = [], u = r.keySet, l = r.catchall._zod, p = l.def.type,
|
|
1136
|
-
for (const
|
|
1137
|
-
if (u.has(
|
|
1135
|
+
const i = [], u = r.keySet, l = r.catchall._zod, p = l.def.type, h = l.optout === "optional";
|
|
1136
|
+
for (const g in t) {
|
|
1137
|
+
if (u.has(g))
|
|
1138
1138
|
continue;
|
|
1139
1139
|
if (p === "never") {
|
|
1140
|
-
i.push(
|
|
1140
|
+
i.push(g);
|
|
1141
1141
|
continue;
|
|
1142
1142
|
}
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1143
|
+
const w = l.run({ value: t[g], issues: [] }, n);
|
|
1144
|
+
w instanceof Promise ? e.push(w.then((S) => se(S, o, g, t, h))) : se(w, o, g, t, h);
|
|
1145
1145
|
}
|
|
1146
1146
|
return i.length && o.issues.push({
|
|
1147
1147
|
code: "unrecognized_keys",
|
|
@@ -1163,14 +1163,14 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
|
|
|
1163
1163
|
});
|
|
1164
1164
|
}
|
|
1165
1165
|
const n = be(() => lt(t));
|
|
1166
|
-
|
|
1166
|
+
$(e._zod, "propValues", () => {
|
|
1167
1167
|
const u = t.shape, l = {};
|
|
1168
1168
|
for (const p in u) {
|
|
1169
|
-
const
|
|
1170
|
-
if (
|
|
1169
|
+
const h = u[p]._zod;
|
|
1170
|
+
if (h.values) {
|
|
1171
1171
|
l[p] ?? (l[p] = /* @__PURE__ */ new Set());
|
|
1172
|
-
for (const
|
|
1173
|
-
l[p].add(
|
|
1172
|
+
for (const g of h.values)
|
|
1173
|
+
l[p].add(g);
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
return l;
|
|
@@ -1188,29 +1188,29 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
|
|
|
1188
1188
|
inst: e
|
|
1189
1189
|
}), u;
|
|
1190
1190
|
u.value = {};
|
|
1191
|
-
const
|
|
1192
|
-
for (const
|
|
1193
|
-
const
|
|
1194
|
-
N instanceof Promise ?
|
|
1191
|
+
const h = [], g = i.shape;
|
|
1192
|
+
for (const w of i.keys) {
|
|
1193
|
+
const S = g[w], E = S._zod.optout === "optional", N = S._zod.run({ value: p[w], issues: [] }, l);
|
|
1194
|
+
N instanceof Promise ? h.push(N.then((ee) => se(ee, u, w, p, E))) : se(N, u, w, p, E);
|
|
1195
1195
|
}
|
|
1196
|
-
return a ? pt(
|
|
1196
|
+
return a ? pt(h, p, u, l, n.value, e) : h.length ? Promise.all(h).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 = (
|
|
1201
|
-
const
|
|
1200
|
+
const o = e._zod.parse, n = be(() => lt(t)), r = (w) => {
|
|
1201
|
+
const S = 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)`;
|
|
1204
1204
|
};
|
|
1205
|
-
|
|
1205
|
+
S.write("const input = payload.value;");
|
|
1206
1206
|
const ee = /* @__PURE__ */ Object.create(null);
|
|
1207
|
-
let
|
|
1207
|
+
let St = 0;
|
|
1208
1208
|
for (const D of E.keys)
|
|
1209
|
-
ee[D] = `key_${
|
|
1210
|
-
|
|
1209
|
+
ee[D] = `key_${St++}`;
|
|
1210
|
+
S.write("const newResult = {};");
|
|
1211
1211
|
for (const D of E.keys) {
|
|
1212
|
-
const A = ee[D], R = Pe(D), Zt =
|
|
1213
|
-
|
|
1212
|
+
const A = ee[D], R = Pe(D), Zt = w[D]?._zod?.optout === "optional";
|
|
1213
|
+
S.write(`const ${A} = ${N(D)};`), Zt ? S.write(`
|
|
1214
1214
|
if (${A}.issues.length) {
|
|
1215
1215
|
if (${R} in input) {
|
|
1216
1216
|
payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
|
|
@@ -1228,7 +1228,7 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
|
|
|
1228
1228
|
newResult[${R}] = ${A}.value;
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
|
-
`) :
|
|
1231
|
+
`) : S.write(`
|
|
1232
1232
|
if (${A}.issues.length) {
|
|
1233
1233
|
payload.issues = payload.issues.concat(${A}.issues.map(iss => ({
|
|
1234
1234
|
...iss,
|
|
@@ -1246,22 +1246,22 @@ const _n = /* @__PURE__ */ d("$ZodObject", (e, t) => {
|
|
|
1246
1246
|
|
|
1247
1247
|
`);
|
|
1248
1248
|
}
|
|
1249
|
-
|
|
1250
|
-
const
|
|
1251
|
-
return (D, A) =>
|
|
1249
|
+
S.write("payload.value = newResult;"), S.write("return payload;");
|
|
1250
|
+
const $t = S.compile();
|
|
1251
|
+
return (D, A) => $t(w, D, A);
|
|
1252
1252
|
};
|
|
1253
1253
|
let a;
|
|
1254
|
-
const i = ae, u = !qe.jitless, p = u && Tt.value,
|
|
1255
|
-
let
|
|
1256
|
-
e._zod.parse = (
|
|
1257
|
-
|
|
1258
|
-
const E =
|
|
1259
|
-
return i(E) ? u && p &&
|
|
1254
|
+
const i = ae, u = !qe.jitless, p = u && Tt.value, h = t.catchall;
|
|
1255
|
+
let g;
|
|
1256
|
+
e._zod.parse = (w, S) => {
|
|
1257
|
+
g ?? (g = n.value);
|
|
1258
|
+
const E = w.value;
|
|
1259
|
+
return i(E) ? u && p && S?.async === !1 && S.jitless !== !0 ? (a || (a = r(t.shape)), w = a(w, S), h ? pt([], E, w, S, g, e) : w) : o(w, S) : (w.issues.push({
|
|
1260
1260
|
expected: "object",
|
|
1261
1261
|
code: "invalid_type",
|
|
1262
1262
|
input: E,
|
|
1263
1263
|
inst: e
|
|
1264
|
-
}),
|
|
1264
|
+
}), w);
|
|
1265
1265
|
};
|
|
1266
1266
|
});
|
|
1267
1267
|
function Ie(e, t, o, n) {
|
|
@@ -1277,10 +1277,10 @@ function Ie(e, t, o, n) {
|
|
|
1277
1277
|
}), t);
|
|
1278
1278
|
}
|
|
1279
1279
|
const bn = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
|
|
1280
|
-
Z.init(e, t),
|
|
1280
|
+
Z.init(e, t), $(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), $(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), $(e._zod, "values", () => {
|
|
1281
1281
|
if (t.options.every((r) => r._zod.values))
|
|
1282
1282
|
return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
|
|
1283
|
-
}),
|
|
1283
|
+
}), $(e._zod, "pattern", () => {
|
|
1284
1284
|
if (t.options.every((r) => r._zod.pattern)) {
|
|
1285
1285
|
const r = t.options.map((a) => a._zod.pattern);
|
|
1286
1286
|
return new RegExp(`^(${r.map((a) => ze(a.source)).join("|")})$`);
|
|
@@ -1385,36 +1385,36 @@ const zn = /* @__PURE__ */ d("$ZodTuple", (e, t) => {
|
|
|
1385
1385
|
code: "invalid_type"
|
|
1386
1386
|
}), n;
|
|
1387
1387
|
n.value = [];
|
|
1388
|
-
const i = [], u = [...o].reverse().findIndex((
|
|
1388
|
+
const i = [], u = [...o].reverse().findIndex((h) => h._zod.optin !== "optional"), l = u === -1 ? 0 : o.length - u;
|
|
1389
1389
|
if (!t.rest) {
|
|
1390
|
-
const
|
|
1391
|
-
if (
|
|
1390
|
+
const h = a.length > o.length, g = a.length < l - 1;
|
|
1391
|
+
if (h || g)
|
|
1392
1392
|
return n.issues.push({
|
|
1393
|
-
...
|
|
1393
|
+
...h ? { code: "too_big", maximum: o.length, inclusive: !0 } : { code: "too_small", minimum: o.length },
|
|
1394
1394
|
input: a,
|
|
1395
1395
|
inst: e,
|
|
1396
1396
|
origin: "array"
|
|
1397
1397
|
}), n;
|
|
1398
1398
|
}
|
|
1399
1399
|
let p = -1;
|
|
1400
|
-
for (const
|
|
1400
|
+
for (const h of o) {
|
|
1401
1401
|
if (p++, p >= a.length && p >= l)
|
|
1402
1402
|
continue;
|
|
1403
|
-
const
|
|
1403
|
+
const g = h._zod.run({
|
|
1404
1404
|
value: a[p],
|
|
1405
1405
|
issues: []
|
|
1406
1406
|
}, r);
|
|
1407
|
-
|
|
1407
|
+
g instanceof Promise ? i.push(g.then((w) => oe(w, n, p))) : oe(g, n, p);
|
|
1408
1408
|
}
|
|
1409
1409
|
if (t.rest) {
|
|
1410
|
-
const
|
|
1411
|
-
for (const
|
|
1410
|
+
const h = a.slice(o.length);
|
|
1411
|
+
for (const g of h) {
|
|
1412
1412
|
p++;
|
|
1413
|
-
const
|
|
1414
|
-
value:
|
|
1413
|
+
const w = t.rest._zod.run({
|
|
1414
|
+
value: g,
|
|
1415
1415
|
issues: []
|
|
1416
1416
|
}, r);
|
|
1417
|
-
|
|
1417
|
+
w instanceof Promise ? i.push(w.then((S) => oe(S, n, p))) : oe(w, n, p);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
return i.length ? Promise.all(i).then(() => n) : n;
|
|
@@ -1440,10 +1440,10 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
|
|
|
1440
1440
|
for (const p of i)
|
|
1441
1441
|
if (typeof p == "string" || typeof p == "number" || typeof p == "symbol") {
|
|
1442
1442
|
u.add(typeof p == "number" ? p.toString() : p);
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
})) : (
|
|
1443
|
+
const h = t.valueType._zod.run({ value: r[p], issues: [] }, n);
|
|
1444
|
+
h instanceof Promise ? a.push(h.then((g) => {
|
|
1445
|
+
g.issues.length && o.issues.push(...B(p, g.issues)), o.value[p] = g.value;
|
|
1446
|
+
})) : (h.issues.length && o.issues.push(...B(p, h.issues)), o.value[p] = h.value);
|
|
1447
1447
|
}
|
|
1448
1448
|
let l;
|
|
1449
1449
|
for (const p in r)
|
|
@@ -1463,26 +1463,26 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
|
|
|
1463
1463
|
if (l instanceof Promise)
|
|
1464
1464
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1465
1465
|
if (typeof u == "string" && rt.test(u) && l.issues.length) {
|
|
1466
|
-
const
|
|
1467
|
-
if (
|
|
1466
|
+
const g = t.keyType._zod.run({ value: Number(u), issues: [] }, n);
|
|
1467
|
+
if (g instanceof Promise)
|
|
1468
1468
|
throw new Error("Async schemas not supported in object keys currently");
|
|
1469
|
-
|
|
1469
|
+
g.issues.length === 0 && (l = g);
|
|
1470
1470
|
}
|
|
1471
1471
|
if (l.issues.length) {
|
|
1472
1472
|
t.mode === "loose" ? o.value[u] = r[u] : o.issues.push({
|
|
1473
1473
|
code: "invalid_key",
|
|
1474
1474
|
origin: "record",
|
|
1475
|
-
issues: l.issues.map((
|
|
1475
|
+
issues: l.issues.map((g) => F(g, n, U())),
|
|
1476
1476
|
input: u,
|
|
1477
1477
|
path: [u],
|
|
1478
1478
|
inst: e
|
|
1479
1479
|
});
|
|
1480
1480
|
continue;
|
|
1481
1481
|
}
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
})) : (
|
|
1482
|
+
const h = t.valueType._zod.run({ value: r[u], issues: [] }, n);
|
|
1483
|
+
h instanceof Promise ? a.push(h.then((g) => {
|
|
1484
|
+
g.issues.length && o.issues.push(...B(u, g.issues)), o.value[l.value] = g.value;
|
|
1485
|
+
})) : (h.issues.length && o.issues.push(...B(u, h.issues)), o.value[l.value] = h.value);
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
return a.length ? Promise.all(a).then(() => o) : o;
|
|
@@ -1499,7 +1499,7 @@ const kn = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
|
|
|
1499
1499
|
inst: e
|
|
1500
1500
|
}), r;
|
|
1501
1501
|
};
|
|
1502
|
-
}),
|
|
1502
|
+
}), Sn = /* @__PURE__ */ d("$ZodTransform", (e, t) => {
|
|
1503
1503
|
Z.init(e, t), e._zod.parse = (o, n) => {
|
|
1504
1504
|
if (n.direction === "backward")
|
|
1505
1505
|
throw new Ke(e.constructor.name);
|
|
@@ -1515,7 +1515,7 @@ function Ee(e, t) {
|
|
|
1515
1515
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1516
1516
|
}
|
|
1517
1517
|
const dt = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
|
|
1518
|
-
Z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional",
|
|
1518
|
+
Z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", $(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), $(e._zod, "pattern", () => {
|
|
1519
1519
|
const o = t.innerType._zod.pattern;
|
|
1520
1520
|
return o ? new RegExp(`^(${ze(o.source)})?$`) : void 0;
|
|
1521
1521
|
}), e._zod.parse = (o, n) => {
|
|
@@ -1525,15 +1525,15 @@ const dt = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
return o.value === void 0 ? o : t.innerType._zod.run(o, n);
|
|
1527
1527
|
};
|
|
1528
|
-
}),
|
|
1529
|
-
dt.init(e, t),
|
|
1528
|
+
}), $n = /* @__PURE__ */ d("$ZodExactOptional", (e, t) => {
|
|
1529
|
+
dt.init(e, t), $(e._zod, "values", () => t.innerType._zod.values), $(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (o, n) => t.innerType._zod.run(o, n);
|
|
1530
1530
|
}), Zn = /* @__PURE__ */ d("$ZodNullable", (e, t) => {
|
|
1531
|
-
Z.init(e, t),
|
|
1531
|
+
Z.init(e, t), $(e._zod, "optin", () => t.innerType._zod.optin), $(e._zod, "optout", () => t.innerType._zod.optout), $(e._zod, "pattern", () => {
|
|
1532
1532
|
const o = t.innerType._zod.pattern;
|
|
1533
1533
|
return o ? new RegExp(`^(${ze(o.source)}|null)$`) : void 0;
|
|
1534
|
-
}),
|
|
1534
|
+
}), $(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (o, n) => o.value === null ? o : t.innerType._zod.run(o, n);
|
|
1535
1535
|
}), Pn = /* @__PURE__ */ d("$ZodDefault", (e, t) => {
|
|
1536
|
-
Z.init(e, t), e._zod.optin = "optional",
|
|
1536
|
+
Z.init(e, t), e._zod.optin = "optional", $(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => {
|
|
1537
1537
|
if (n.direction === "backward")
|
|
1538
1538
|
return t.innerType._zod.run(o, n);
|
|
1539
1539
|
if (o.value === void 0)
|
|
@@ -1546,9 +1546,9 @@ function Ce(e, t) {
|
|
|
1546
1546
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1547
1547
|
}
|
|
1548
1548
|
const On = /* @__PURE__ */ d("$ZodPrefault", (e, t) => {
|
|
1549
|
-
Z.init(e, t), e._zod.optin = "optional",
|
|
1549
|
+
Z.init(e, t), e._zod.optin = "optional", $(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => (n.direction === "backward" || o.value === void 0 && (o.value = t.defaultValue), t.innerType._zod.run(o, n));
|
|
1550
1550
|
}), Tn = /* @__PURE__ */ d("$ZodNonOptional", (e, t) => {
|
|
1551
|
-
Z.init(e, t),
|
|
1551
|
+
Z.init(e, t), $(e._zod, "values", () => {
|
|
1552
1552
|
const o = t.innerType._zod.values;
|
|
1553
1553
|
return o ? new Set([...o].filter((n) => n !== void 0)) : void 0;
|
|
1554
1554
|
}), e._zod.parse = (o, n) => {
|
|
@@ -1565,7 +1565,7 @@ function Ae(e, t) {
|
|
|
1565
1565
|
}), e;
|
|
1566
1566
|
}
|
|
1567
1567
|
const In = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
|
|
1568
|
-
Z.init(e, t),
|
|
1568
|
+
Z.init(e, t), $(e._zod, "optin", () => t.innerType._zod.optin), $(e._zod, "optout", () => t.innerType._zod.optout), $(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (o, n) => {
|
|
1569
1569
|
if (n.direction === "backward")
|
|
1570
1570
|
return t.innerType._zod.run(o, n);
|
|
1571
1571
|
const r = t.innerType._zod.run(o, n);
|
|
@@ -1584,7 +1584,7 @@ const In = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
|
|
|
1584
1584
|
}), o.issues = []), o);
|
|
1585
1585
|
};
|
|
1586
1586
|
}), Nn = /* @__PURE__ */ d("$ZodPipe", (e, t) => {
|
|
1587
|
-
Z.init(e, t),
|
|
1587
|
+
Z.init(e, t), $(e._zod, "values", () => t.in._zod.values), $(e._zod, "optin", () => t.in._zod.optin), $(e._zod, "optout", () => t.out._zod.optout), $(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (o, n) => {
|
|
1588
1588
|
if (n.direction === "backward") {
|
|
1589
1589
|
const a = t.out._zod.run(o, n);
|
|
1590
1590
|
return a instanceof Promise ? a.then((i) => ne(i, t.in, n)) : ne(a, t.in, n);
|
|
@@ -1597,7 +1597,7 @@ function ne(e, t, o) {
|
|
|
1597
1597
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, o);
|
|
1598
1598
|
}
|
|
1599
1599
|
const En = /* @__PURE__ */ d("$ZodReadonly", (e, t) => {
|
|
1600
|
-
Z.init(e, t),
|
|
1600
|
+
Z.init(e, t), $(e._zod, "propValues", () => t.innerType._zod.propValues), $(e._zod, "values", () => t.innerType._zod.values), $(e._zod, "optin", () => t.innerType?._zod?.optin), $(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (o, n) => {
|
|
1601
1601
|
if (n.direction === "backward")
|
|
1602
1602
|
return t.innerType._zod.run(o, n);
|
|
1603
1603
|
const r = t.innerType._zod.run(o, n);
|
|
@@ -1608,7 +1608,7 @@ function xe(e) {
|
|
|
1608
1608
|
return e.value = Object.freeze(e.value), e;
|
|
1609
1609
|
}
|
|
1610
1610
|
const Cn = /* @__PURE__ */ d("$ZodLazy", (e, t) => {
|
|
1611
|
-
Z.init(e, t),
|
|
1611
|
+
Z.init(e, t), $(e._zod, "innerType", () => t.getter()), $(e._zod, "pattern", () => e._zod.innerType?._zod?.pattern), $(e._zod, "propValues", () => e._zod.innerType?._zod?.propValues), $(e._zod, "optin", () => e._zod.innerType?._zod?.optin ?? void 0), $(e._zod, "optout", () => e._zod.innerType?._zod?.optout ?? void 0), e._zod.parse = (o, n) => e._zod.innerType._zod.run(o, n);
|
|
1612
1612
|
}), An = /* @__PURE__ */ d("$ZodCustom", (e, t) => {
|
|
1613
1613
|
x.init(e, t), Z.init(e, t), e._zod.parse = (o, n) => o, e._zod.check = (o) => {
|
|
1614
1614
|
const n = o.value, r = t.fn(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(t),
|
|
2008
2008
|
value: e,
|
|
2009
2009
|
inclusive: !1
|
|
2010
2010
|
});
|
|
@@ -2013,16 +2013,16 @@ function Fe(e, t) {
|
|
|
2013
2013
|
function me(e, t) {
|
|
2014
2014
|
return new st({
|
|
2015
2015
|
check: "greater_than",
|
|
2016
|
-
...
|
|
2016
|
+
...z(t),
|
|
2017
2017
|
value: e,
|
|
2018
2018
|
inclusive: !0
|
|
2019
2019
|
});
|
|
2020
2020
|
}
|
|
2021
2021
|
// @__NO_SIDE_EFFECTS__
|
|
2022
2022
|
function Le(e, t) {
|
|
2023
|
-
return new
|
|
2023
|
+
return new $o({
|
|
2024
2024
|
check: "multiple_of",
|
|
2025
|
-
...
|
|
2025
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(t),
|
|
2102
2102
|
suffix: e
|
|
2103
2103
|
});
|
|
2104
2104
|
}
|
|
@@ -2122,11 +2122,11 @@ function wr() {
|
|
|
2122
2122
|
return /* @__PURE__ */ X((e) => e.toLowerCase());
|
|
2123
2123
|
}
|
|
2124
2124
|
// @__NO_SIDE_EFFECTS__
|
|
2125
|
-
function
|
|
2125
|
+
function Sr() {
|
|
2126
2126
|
return /* @__PURE__ */ X((e) => e.toUpperCase());
|
|
2127
2127
|
}
|
|
2128
2128
|
// @__NO_SIDE_EFFECTS__
|
|
2129
|
-
function
|
|
2129
|
+
function $r() {
|
|
2130
2130
|
return /* @__PURE__ */ X((e) => Ot(e));
|
|
2131
2131
|
}
|
|
2132
2132
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2137,7 +2137,7 @@ function Zr(e, t, o) {
|
|
|
2137
2137
|
// get element() {
|
|
2138
2138
|
// return element;
|
|
2139
2139
|
// },
|
|
2140
|
-
...
|
|
2140
|
+
...z(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
|
+
...z(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
|
+
...z(t)
|
|
2169
2169
|
});
|
|
2170
2170
|
return o._zod.check = e, o;
|
|
2171
2171
|
}
|
|
@@ -2197,21 +2197,21 @@ function T(e, t, o = { path: [], schemaPath: [] }) {
|
|
|
2197
2197
|
if (u)
|
|
2198
2198
|
i.schema = u;
|
|
2199
2199
|
else {
|
|
2200
|
-
const
|
|
2200
|
+
const h = {
|
|
2201
2201
|
...o,
|
|
2202
2202
|
schemaPath: [...o.schemaPath, e],
|
|
2203
2203
|
path: o.path
|
|
2204
2204
|
};
|
|
2205
2205
|
if (e._zod.processJSONSchema)
|
|
2206
|
-
e._zod.processJSONSchema(t, i.schema,
|
|
2206
|
+
e._zod.processJSONSchema(t, i.schema, h);
|
|
2207
2207
|
else {
|
|
2208
|
-
const
|
|
2209
|
-
if (
|
|
2208
|
+
const w = i.schema, S = t.processors[r.type];
|
|
2209
|
+
if (!S)
|
|
2210
2210
|
throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);
|
|
2211
|
-
|
|
2211
|
+
S(e, t, w, h);
|
|
2212
2212
|
}
|
|
2213
|
-
const
|
|
2214
|
-
|
|
2213
|
+
const g = e._zod.parent;
|
|
2214
|
+
g && (i.ref || (i.ref = g), T(g, t, h), t.seen.get(g).isParent = !0);
|
|
2215
2215
|
}
|
|
2216
2216
|
const l = t.metadataRegistry.get(e);
|
|
2217
2217
|
return l && Object.assign(i.schema, l), t.io === "input" && C(e) && (delete i.schema.examples, delete i.schema.default), t.io === "input" && i.schema._prefault && ((n = i.schema).default ?? (n.default = i.schema._prefault)), delete i.schema._prefault, t.seen.get(e).schema;
|
|
@@ -2233,25 +2233,25 @@ 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
|
|
2237
|
-
if (
|
|
2238
|
-
return { ref:
|
|
2239
|
-
const
|
|
2240
|
-
return i[1].defId =
|
|
2236
|
+
const g = e.external.registry.get(i[0])?.id, w = e.external.uri ?? ((E) => E);
|
|
2237
|
+
if (g)
|
|
2238
|
+
return { ref: w(g) };
|
|
2239
|
+
const S = i[1].defId ?? i[1].schema.id ?? `schema${e.counter++}`;
|
|
2240
|
+
return i[1].defId = S, { defId: S, ref: `${w("__shared")}#/${u}/${S}` };
|
|
2241
2241
|
}
|
|
2242
2242
|
if (i[1] === o)
|
|
2243
2243
|
return { ref: "#" };
|
|
2244
|
-
const p = `#/${u}/`,
|
|
2245
|
-
return { defId:
|
|
2244
|
+
const p = `#/${u}/`, h = i[1].schema.id ?? `__schema${e.counter++}`;
|
|
2245
|
+
return { defId: h, ref: p + h };
|
|
2246
2246
|
}, a = (i) => {
|
|
2247
2247
|
if (i[1].schema.$ref)
|
|
2248
2248
|
return;
|
|
2249
2249
|
const u = i[1], { ref: l, defId: p } = r(i);
|
|
2250
2250
|
u.def = { ...u.schema }, p && (u.defId = p);
|
|
2251
|
-
const
|
|
2252
|
-
for (const
|
|
2253
|
-
delete
|
|
2254
|
-
|
|
2251
|
+
const h = u.schema;
|
|
2252
|
+
for (const g in h)
|
|
2253
|
+
delete h[g];
|
|
2254
|
+
h.$ref = l;
|
|
2255
2255
|
};
|
|
2256
2256
|
if (e.cycles === "throw")
|
|
2257
2257
|
for (const i of e.seen.entries()) {
|
|
@@ -2296,24 +2296,24 @@ function _t(e, t) {
|
|
|
2296
2296
|
const u = e.seen.get(i);
|
|
2297
2297
|
if (u.ref === null)
|
|
2298
2298
|
return;
|
|
2299
|
-
const l = u.def ?? u.schema, p = { ...l },
|
|
2300
|
-
if (u.ref = null,
|
|
2301
|
-
n(
|
|
2302
|
-
const
|
|
2303
|
-
if (
|
|
2299
|
+
const l = u.def ?? u.schema, p = { ...l }, h = u.ref;
|
|
2300
|
+
if (u.ref = null, h) {
|
|
2301
|
+
n(h);
|
|
2302
|
+
const w = e.seen.get(h), S = w.schema;
|
|
2303
|
+
if (S.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (l.allOf = l.allOf ?? [], l.allOf.push(S)) : Object.assign(l, S), Object.assign(l, p), i._zod.parent === h)
|
|
2304
2304
|
for (const N in l)
|
|
2305
2305
|
N === "$ref" || N === "allOf" || N in p || delete l[N];
|
|
2306
|
-
if (
|
|
2306
|
+
if (S.$ref && w.def)
|
|
2307
2307
|
for (const N in l)
|
|
2308
|
-
N === "$ref" || N === "allOf" || N in
|
|
2308
|
+
N === "$ref" || N === "allOf" || N in w.def && JSON.stringify(l[N]) === JSON.stringify(w.def[N]) && delete l[N];
|
|
2309
2309
|
}
|
|
2310
|
-
const
|
|
2311
|
-
if (
|
|
2312
|
-
n(
|
|
2313
|
-
const
|
|
2314
|
-
if (
|
|
2315
|
-
for (const
|
|
2316
|
-
|
|
2310
|
+
const g = i._zod.parent;
|
|
2311
|
+
if (g && g !== h) {
|
|
2312
|
+
n(g);
|
|
2313
|
+
const w = e.seen.get(g);
|
|
2314
|
+
if (w?.schema.$ref && (l.$ref = w.schema.$ref, w.def))
|
|
2315
|
+
for (const S in l)
|
|
2316
|
+
S === "$ref" || S === "allOf" || S in w.def && JSON.stringify(l[S]) === JSON.stringify(w.def[S]) && delete l[S];
|
|
2317
2317
|
}
|
|
2318
2318
|
e.override({
|
|
2319
2319
|
zodSchema: i,
|
|
@@ -2414,17 +2414,17 @@ const Ir = (e, t = {}) => (o) => {
|
|
|
2414
2414
|
r.type = "string";
|
|
2415
2415
|
const { minimum: a, maximum: i, format: u, patterns: l, contentEncoding: p } = e._zod.bag;
|
|
2416
2416
|
if (typeof a == "number" && (r.minLength = a), typeof i == "number" && (r.maxLength = i), u && (r.format = Nr[u] ?? u, r.format === "" && delete r.format, u === "time" && delete r.format), p && (r.contentEncoding = p), l && l.size > 0) {
|
|
2417
|
-
const
|
|
2418
|
-
|
|
2419
|
-
...
|
|
2417
|
+
const h = [...l];
|
|
2418
|
+
h.length === 1 ? r.pattern = h[0].source : h.length > 1 && (r.allOf = [
|
|
2419
|
+
...h.map((g) => ({
|
|
2420
2420
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
2421
|
-
pattern:
|
|
2421
|
+
pattern: g.source
|
|
2422
2422
|
}))
|
|
2423
2423
|
]);
|
|
2424
2424
|
}
|
|
2425
2425
|
}, Cr = (e, t, o, n) => {
|
|
2426
|
-
const r = o, { minimum: a, maximum: i, format: u, multipleOf: l, exclusiveMaximum: p, exclusiveMinimum:
|
|
2427
|
-
typeof u == "string" && u.includes("int") ? r.type = "integer" : r.type = "number", typeof
|
|
2426
|
+
const r = o, { minimum: a, maximum: i, format: u, multipleOf: l, exclusiveMaximum: p, exclusiveMinimum: h } = e._zod.bag;
|
|
2427
|
+
typeof u == "string" && u.includes("int") ? r.type = "integer" : r.type = "number", typeof h == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (r.minimum = h, r.exclusiveMinimum = !0) : r.exclusiveMinimum = h), typeof a == "number" && (r.minimum = a, typeof h == "number" && t.target !== "draft-04" && (h >= a ? delete r.minimum : delete r.exclusiveMinimum)), typeof p == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (r.maximum = p, r.exclusiveMaximum = !0) : r.exclusiveMaximum = p), typeof i == "number" && (r.maximum = i, typeof p == "number" && t.target !== "draft-04" && (p <= i ? delete r.maximum : delete r.exclusiveMaximum)), typeof l == "number" && (r.multipleOf = l);
|
|
2428
2428
|
}, Ar = (e, t, o, n) => {
|
|
2429
2429
|
o.type = "boolean";
|
|
2430
2430
|
}, xr = (e, t, o, n) => {
|
|
@@ -2454,8 +2454,8 @@ const Ir = (e, t = {}) => (o) => {
|
|
|
2454
2454
|
path: [...n.path, "properties", p]
|
|
2455
2455
|
});
|
|
2456
2456
|
const u = new Set(Object.keys(i)), l = new Set([...u].filter((p) => {
|
|
2457
|
-
const
|
|
2458
|
-
return t.io === "input" ?
|
|
2457
|
+
const h = a.shape[p]._zod;
|
|
2458
|
+
return t.io === "input" ? h.optin === void 0 : h.optout === void 0;
|
|
2459
2459
|
}));
|
|
2460
2460
|
l.size > 0 && (r.required = Array.from(l)), a.catchall?._zod.def.type === "never" ? r.additionalProperties = !1 : a.catchall ? a.catchall && (r.additionalProperties = T(a.catchall, t, {
|
|
2461
2461
|
...n,
|
|
@@ -2482,9 +2482,9 @@ 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((w, S) => T(w, t, {
|
|
2486
2486
|
...n,
|
|
2487
|
-
path: [...n.path, i,
|
|
2487
|
+
path: [...n.path, i, S]
|
|
2488
2488
|
})), p = a.rest ? T(a.rest, t, {
|
|
2489
2489
|
...n,
|
|
2490
2490
|
path: [...n.path, u, ...t.target === "openapi-3.0" ? [a.items.length] : []]
|
|
@@ -2492,20 +2492,20 @@ const Ir = (e, t = {}) => (o) => {
|
|
|
2492
2492
|
t.target === "draft-2020-12" ? (r.prefixItems = l, p && (r.items = p)) : t.target === "openapi-3.0" ? (r.items = {
|
|
2493
2493
|
anyOf: l
|
|
2494
2494
|
}, p && r.items.anyOf.push(p), r.minItems = l.length, p || (r.maxItems = l.length)) : (r.items = l, p && (r.additionalItems = p));
|
|
2495
|
-
const { minimum:
|
|
2496
|
-
typeof
|
|
2495
|
+
const { minimum: h, maximum: g } = e._zod.bag;
|
|
2496
|
+
typeof h == "number" && (r.minItems = h), typeof g == "number" && (r.maxItems = g);
|
|
2497
2497
|
}, Wr = (e, t, o, n) => {
|
|
2498
2498
|
const r = o, a = e._zod.def;
|
|
2499
2499
|
r.type = "object";
|
|
2500
2500
|
const i = a.keyType, l = i._zod.bag?.patterns;
|
|
2501
2501
|
if (a.mode === "loose" && l && l.size > 0) {
|
|
2502
|
-
const
|
|
2502
|
+
const h = T(a.valueType, t, {
|
|
2503
2503
|
...n,
|
|
2504
2504
|
path: [...n.path, "patternProperties", "*"]
|
|
2505
2505
|
});
|
|
2506
2506
|
r.patternProperties = {};
|
|
2507
|
-
for (const
|
|
2508
|
-
r.patternProperties[
|
|
2507
|
+
for (const g of l)
|
|
2508
|
+
r.patternProperties[g.source] = h;
|
|
2509
2509
|
} else
|
|
2510
2510
|
(t.target === "draft-07" || t.target === "draft-2020-12") && (r.propertyNames = T(a.keyType, t, {
|
|
2511
2511
|
...n,
|
|
@@ -2516,8 +2516,8 @@ const Ir = (e, t = {}) => (o) => {
|
|
|
2516
2516
|
});
|
|
2517
2517
|
const p = i._zod.values;
|
|
2518
2518
|
if (p) {
|
|
2519
|
-
const
|
|
2520
|
-
|
|
2519
|
+
const h = [...p].filter((g) => typeof g == "string" || typeof g == "number");
|
|
2520
|
+
h.length > 0 && (r.required = h);
|
|
2521
2521
|
}
|
|
2522
2522
|
}, Kr = (e, t, o, n) => {
|
|
2523
2523
|
const r = e._zod.def, a = T(r.innerType, t, n), i = t.seen.get(e);
|
|
@@ -2624,7 +2624,7 @@ const bt = (e, t) => {
|
|
|
2624
2624
|
});
|
|
2625
2625
|
}, ui = d("ZodError", bt), j = d("ZodError", bt, {
|
|
2626
2626
|
Parent: Error
|
|
2627
|
-
}), li = /* @__PURE__ */ we(j), pi = /* @__PURE__ */
|
|
2627
|
+
}), li = /* @__PURE__ */ we(j), pi = /* @__PURE__ */ Se(j), di = /* @__PURE__ */ pe(j), fi = /* @__PURE__ */ de(j), hi = /* @__PURE__ */ Bt(j), mi = /* @__PURE__ */ Vt(j), gi = /* @__PURE__ */ Wt(j), _i = /* @__PURE__ */ Kt(j), vi = /* @__PURE__ */ qt(j), bi = /* @__PURE__ */ Gt(j), yi = /* @__PURE__ */ Xt(j), zi = /* @__PURE__ */ Yt(j), P = /* @__PURE__ */ d("ZodType", (e, t) => (Z.init(e, t), Object.assign(e["~standard"], {
|
|
2628
2628
|
jsonSchema: {
|
|
2629
2629
|
input: ue(e, "input"),
|
|
2630
2630
|
output: ue(e, "output")
|
|
@@ -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) => b([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", {
|
|
@@ -2650,11 +2650,11 @@ const bt = (e, t) => {
|
|
|
2650
2650
|
const n = e.clone();
|
|
2651
2651
|
return Y.add(n, o[0]), n;
|
|
2652
2652
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (o) => o(e), e)), yt = /* @__PURE__ */ d("_ZodString", (e, t) => {
|
|
2653
|
-
|
|
2653
|
+
$e.init(e, t), P.init(e, t), e._zod.processJSONSchema = (n, r, a) => Er(e, n, r);
|
|
2654
2654
|
const o = e._zod.bag;
|
|
2655
|
-
e.format = o.format ?? null, e.minLength = o.minimum ?? null, e.maxLength = o.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__ */ ft(...n)), e.length = (...n) => e.check(/* @__PURE__ */ ht(...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__ */
|
|
2655
|
+
e.format = o.format ?? null, e.minLength = o.minimum ?? null, e.maxLength = o.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__ */ ft(...n)), e.length = (...n) => e.check(/* @__PURE__ */ ht(...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, t) => {
|
|
2657
|
-
|
|
2657
|
+
$e.init(e, t), yt.init(e, t), e.email = (o) => e.check(/* @__PURE__ */ Dn(wi, o)), e.url = (o) => e.check(/* @__PURE__ */ Jn(Si, o)), e.jwt = (o) => e.check(/* @__PURE__ */ rr(Ui, o)), e.emoji = (o) => e.check(/* @__PURE__ */ Bn($i, o)), e.guid = (o) => e.check(/* @__PURE__ */ De(Me, o)), e.uuid = (o) => e.check(/* @__PURE__ */ Un(re, o)), e.uuidv4 = (o) => e.check(/* @__PURE__ */ Fn(re, o)), e.uuidv6 = (o) => e.check(/* @__PURE__ */ Ln(re, o)), e.uuidv7 = (o) => e.check(/* @__PURE__ */ Mn(re, o)), e.nanoid = (o) => e.check(/* @__PURE__ */ Vn(Zi, o)), e.guid = (o) => e.check(/* @__PURE__ */ De(Me, o)), e.cuid = (o) => e.check(/* @__PURE__ */ Wn(Pi, o)), e.cuid2 = (o) => e.check(/* @__PURE__ */ Kn(Oi, o)), e.ulid = (o) => e.check(/* @__PURE__ */ qn(Ti, o)), e.base64 = (o) => e.check(/* @__PURE__ */ tr(ji, o)), e.base64url = (o) => e.check(/* @__PURE__ */ or(Ri, o)), e.xid = (o) => e.check(/* @__PURE__ */ Gn(Ii, o)), e.ksuid = (o) => e.check(/* @__PURE__ */ Xn(Ni, o)), e.ipv4 = (o) => e.check(/* @__PURE__ */ Yn(Ei, o)), e.ipv6 = (o) => e.check(/* @__PURE__ */ Hn(Ci, o)), e.cidrv4 = (o) => e.check(/* @__PURE__ */ Qn(Ai, o)), e.cidrv6 = (o) => e.check(/* @__PURE__ */ er(xi, o)), e.e164 = (o) => e.check(/* @__PURE__ */ nr(Di, o)), e.datetime = (o) => e.check(oi(o)), e.date = (o) => e.check(ri(o)), e.time = (o) => e.check(ai(o)), e.duration = (o) => e.check(ci(o));
|
|
2658
2658
|
});
|
|
2659
2659
|
function c(e) {
|
|
2660
2660
|
return /* @__PURE__ */ Rn(ki, e);
|
|
@@ -2667,9 +2667,9 @@ const I = /* @__PURE__ */ d("ZodStringFormat", (e, t) => {
|
|
|
2667
2667
|
Uo.init(e, t), I.init(e, t);
|
|
2668
2668
|
}), re = /* @__PURE__ */ d("ZodUUID", (e, t) => {
|
|
2669
2669
|
Fo.init(e, t), I.init(e, t);
|
|
2670
|
-
}),
|
|
2670
|
+
}), Si = /* @__PURE__ */ d("ZodURL", (e, t) => {
|
|
2671
2671
|
Mo.init(e, t), I.init(e, t);
|
|
2672
|
-
}),
|
|
2672
|
+
}), $i = /* @__PURE__ */ d("ZodEmoji", (e, t) => {
|
|
2673
2673
|
Jo.init(e, t), I.init(e, t);
|
|
2674
2674
|
}), Zi = /* @__PURE__ */ d("ZodNanoID", (e, t) => {
|
|
2675
2675
|
Bo.init(e, t), I.init(e, t);
|
|
@@ -2716,13 +2716,13 @@ function Je(e) {
|
|
|
2716
2716
|
const Li = /* @__PURE__ */ d("ZodBoolean", (e, t) => {
|
|
2717
2717
|
dn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Ar(e, o, n);
|
|
2718
2718
|
});
|
|
2719
|
-
function
|
|
2719
|
+
function f(e) {
|
|
2720
2720
|
return /* @__PURE__ */ pr(Li, e);
|
|
2721
2721
|
}
|
|
2722
2722
|
const Mi = /* @__PURE__ */ d("ZodNull", (e, t) => {
|
|
2723
2723
|
fn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => xr(e, o, n);
|
|
2724
2724
|
});
|
|
2725
|
-
function
|
|
2725
|
+
function k(e) {
|
|
2726
2726
|
return /* @__PURE__ */ dr(Mi, e);
|
|
2727
2727
|
}
|
|
2728
2728
|
const Ji = /* @__PURE__ */ d("ZodUnknown", (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),
|
|
2747
|
+
vn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Mr(e, o, n, r), $(e, "shape", () => t.shape), e.keyof = () => v(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
|
-
function
|
|
2749
|
+
function y(e, t) {
|
|
2750
2750
|
const o = {
|
|
2751
2751
|
type: "object",
|
|
2752
2752
|
shape: e ?? {},
|
|
2753
|
-
...
|
|
2753
|
+
...z(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 b(e, t) {
|
|
2761
2761
|
return new qi({
|
|
2762
2762
|
type: "union",
|
|
2763
2763
|
options: e,
|
|
2764
|
-
...
|
|
2764
|
+
...z(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
|
+
...z(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
|
+
...z(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
|
+
...z(r),
|
|
2817
2817
|
entries: a
|
|
2818
2818
|
});
|
|
2819
2819
|
}, e.exclude = (n, r) => {
|
|
@@ -2826,7 +2826,7 @@ const ve = /* @__PURE__ */ d("ZodEnum", (e, t) => {
|
|
|
2826
2826
|
return new ve({
|
|
2827
2827
|
...t,
|
|
2828
2828
|
checks: [],
|
|
2829
|
-
...
|
|
2829
|
+
...z(r),
|
|
2830
2830
|
entries: a
|
|
2831
2831
|
});
|
|
2832
2832
|
};
|
|
@@ -2836,11 +2836,11 @@ function v(e, t) {
|
|
|
2836
2836
|
return new ve({
|
|
2837
2837
|
type: "enum",
|
|
2838
2838
|
entries: o,
|
|
2839
|
-
...
|
|
2839
|
+
...z(t)
|
|
2840
2840
|
});
|
|
2841
2841
|
}
|
|
2842
2842
|
const Qi = /* @__PURE__ */ d("ZodTransform", (e, t) => {
|
|
2843
|
-
|
|
2843
|
+
Sn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Fr(e, o), e._zod.parse = (o, n) => {
|
|
2844
2844
|
if (n.direction === "backward")
|
|
2845
2845
|
throw new Ke(e.constructor.name);
|
|
2846
2846
|
o.addIssue = (a) => {
|
|
@@ -2871,7 +2871,7 @@ function Be(e) {
|
|
|
2871
2871
|
});
|
|
2872
2872
|
}
|
|
2873
2873
|
const ta = /* @__PURE__ */ d("ZodExactOptional", (e, t) => {
|
|
2874
|
-
|
|
2874
|
+
$n.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => vt(e, o, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2875
2875
|
});
|
|
2876
2876
|
function oa(e) {
|
|
2877
2877
|
return new ta({
|
|
@@ -2919,7 +2919,7 @@ function ca(e, t) {
|
|
|
2919
2919
|
return new wt({
|
|
2920
2920
|
type: "nonoptional",
|
|
2921
2921
|
innerType: e,
|
|
2922
|
-
...
|
|
2922
|
+
...z(t)
|
|
2923
2923
|
});
|
|
2924
2924
|
}
|
|
2925
2925
|
const ua = /* @__PURE__ */ d("ZodCatch", (e, t) => {
|
|
@@ -2970,121 +2970,125 @@ function _a(e, t = {}) {
|
|
|
2970
2970
|
function va(e) {
|
|
2971
2971
|
return /* @__PURE__ */ Or(e);
|
|
2972
2972
|
}
|
|
2973
|
-
const
|
|
2973
|
+
const m = b([
|
|
2974
2974
|
c(),
|
|
2975
2975
|
_(),
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2976
|
+
f(),
|
|
2977
|
+
k(),
|
|
2978
|
+
y({ path: c() })
|
|
2979
2979
|
]), ie = ma(
|
|
2980
|
-
() =>
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2980
|
+
() => b([
|
|
2981
|
+
y({ and: L(ie) }),
|
|
2982
|
+
y({ or: L(ie) }),
|
|
2983
|
+
y({ not: ie }),
|
|
2984
|
+
y({ path: c() }),
|
|
2985
|
+
y({ eq: W([m, m]) }),
|
|
2986
|
+
y({ neq: W([m, m]) }),
|
|
2987
|
+
y({ gt: W([m, m]) }),
|
|
2988
|
+
y({ gte: W([m, m]) }),
|
|
2989
|
+
y({ lt: W([m, m]) }),
|
|
2990
|
+
y({ lte: W([m, m]) })
|
|
2991
2991
|
])
|
|
2992
|
-
), ba =
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2992
|
+
), ba = b([
|
|
2993
|
+
f(),
|
|
2994
|
+
y({ path: c() }),
|
|
2995
|
+
y({ auth: v(["signedIn", "signedOut"]) }),
|
|
2996
2996
|
ie
|
|
2997
|
-
]), ya =
|
|
2997
|
+
]), ya = y({
|
|
2998
2998
|
title: c(),
|
|
2999
2999
|
message: c(),
|
|
3000
3000
|
variant: v(["default", "danger"]).optional(),
|
|
3001
3001
|
confirmLabel: c().optional(),
|
|
3002
3002
|
cancelLabel: c().optional()
|
|
3003
|
-
}), za =
|
|
3003
|
+
}), za = y({
|
|
3004
3004
|
name: c(),
|
|
3005
|
-
params: H(c(),
|
|
3005
|
+
params: H(c(), m).optional(),
|
|
3006
3006
|
confirm: ya.optional(),
|
|
3007
|
-
onSuccess:
|
|
3008
|
-
onError:
|
|
3009
|
-
}), ka =
|
|
3010
|
-
variant: v(["
|
|
3011
|
-
//
|
|
3007
|
+
onSuccess: y({ set: H(c(), m) }).optional(),
|
|
3008
|
+
onError: y({ set: H(c(), m) }).optional()
|
|
3009
|
+
}), ka = y({
|
|
3010
|
+
variant: v(["red", "red-subtle", "orange", "orange-subtle", "yellow", "yellow-subtle", "green", "green-subtle", "teal", "teal-subtle", "blue", "blue-subtle", "neutral", "neutral-subtle", "inverted", "outline", "beta", "primary", "secondary", "destructive", "success"]).optional(),
|
|
3011
|
+
// Color variant of the badge. - `"red"` / `"red-subtle"` — Red badge - `"orange"` / `"orange-subtle"` — Orange badge - `"yellow"` / `"yellow-subtle"` — Yellow badge - `"green"` / `"green-subtle"` — Green badge (emerald scale) - `"teal"` / `"teal-subtle"` — Teal badge - `"blue"` / `"blue-subtle"` — Blue badge - `"neutral"` / `"neutral-subtle"` — Neutral badge - `"inverted"` — Inverted badge (near-black, white in dark mode) - `"outline"` — Bordered badge with transparent background - `"beta"` — Dashed-border badge for beta/experimental features - `"primary"` — **Deprecated.** Use `"inverted"` instead. - `"secondary"` — **Deprecated.** Use `"neutral"` instead. - `"destructive"` — **Deprecated.** Use `"red"` instead. - `"success"` — **Deprecated.** Use `"green"` instead.
|
|
3012
3012
|
className: c().optional(),
|
|
3013
3013
|
// Additional CSS classes merged via `cn()`.
|
|
3014
|
-
children:
|
|
3014
|
+
children: b([c(), _(), f(), k(), m]).optional()
|
|
3015
3015
|
// Content rendered inside the badge.
|
|
3016
|
-
}), wa =
|
|
3017
|
-
icon:
|
|
3016
|
+
}), wa = y({
|
|
3017
|
+
icon: b([c(), _(), f(), k(), m]).optional(),
|
|
3018
3018
|
// Icon element rendered before the banner content (e.g. from `@phosphor-icons/react`).
|
|
3019
3019
|
title: c().optional(),
|
|
3020
3020
|
// Primary heading text for the banner. Use for i18n string injection.
|
|
3021
|
-
description:
|
|
3021
|
+
description: b([c(), _(), f(), k(), m]).optional(),
|
|
3022
3022
|
// Secondary description text displayed below the title. Use for i18n string injection.
|
|
3023
|
+
action: b([c(), _(), f(), k(), m]).optional(),
|
|
3024
|
+
// 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`).
|
|
3023
3025
|
text: c().optional(),
|
|
3024
|
-
children:
|
|
3026
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3025
3027
|
variant: v(["default", "alert", "error"]).optional(),
|
|
3026
3028
|
// 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
|
|
3027
3029
|
className: c().optional()
|
|
3028
3030
|
// Additional CSS classes merged via `cn()`.
|
|
3029
|
-
}),
|
|
3031
|
+
}), Sa = y({
|
|
3030
3032
|
size: v(["sm", "base"]).optional(),
|
|
3031
3033
|
// Size of the breadcrumbs. - `"sm"` — Compact breadcrumbs for dense UIs - `"base"` — Default breadcrumbs size
|
|
3032
|
-
children:
|
|
3034
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3033
3035
|
className: c().optional()
|
|
3034
3036
|
// Additional CSS classes merged via `cn()`.
|
|
3035
|
-
}),
|
|
3037
|
+
}), $a = y({
|
|
3036
3038
|
shape: v(["base", "square", "circle"]).optional(),
|
|
3037
3039
|
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3038
3040
|
variant: v(["primary", "secondary", "ghost", "destructive", "secondary-destructive", "outline"]).optional(),
|
|
3039
|
-
children:
|
|
3041
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3040
3042
|
className: c().optional(),
|
|
3041
|
-
icon:
|
|
3043
|
+
icon: b([c(), _(), f(), k(), m]).optional(),
|
|
3042
3044
|
// Icon from `@phosphor-icons/react` or a React element. Rendered before children.
|
|
3043
|
-
loading:
|
|
3045
|
+
loading: f().optional(),
|
|
3044
3046
|
// Shows a loading spinner and disables interaction.
|
|
3047
|
+
title: c().optional(),
|
|
3045
3048
|
id: c().optional(),
|
|
3046
3049
|
lang: c().optional(),
|
|
3047
|
-
|
|
3048
|
-
disabled: h().optional(),
|
|
3050
|
+
disabled: f().optional(),
|
|
3049
3051
|
name: c().optional(),
|
|
3050
3052
|
type: v(["submit", "reset", "button"]).optional(),
|
|
3051
3053
|
value: s().optional()
|
|
3052
|
-
}), Za =
|
|
3054
|
+
}), Za = y({
|
|
3053
3055
|
variant: v(["default", "error"]).optional(),
|
|
3054
3056
|
// Visual variant: "default" or "error" for validation failures (visual only, no error text)
|
|
3055
|
-
label:
|
|
3057
|
+
label: b([c(), _(), f(), k(), m]).optional(),
|
|
3056
3058
|
// Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
|
|
3057
|
-
labelTooltip:
|
|
3059
|
+
labelTooltip: b([c(), _(), f(), k(), m]).optional(),
|
|
3058
3060
|
// Tooltip content to display next to the label via an info icon
|
|
3059
|
-
controlFirst:
|
|
3061
|
+
controlFirst: f().optional(),
|
|
3060
3062
|
// When true (default), checkbox appears before label. When false, label appears before checkbox.
|
|
3061
|
-
checked:
|
|
3063
|
+
checked: f().optional(),
|
|
3062
3064
|
// Whether the checkbox is checked (controlled)
|
|
3063
|
-
indeterminate:
|
|
3065
|
+
indeterminate: f().optional(),
|
|
3064
3066
|
// Whether the checkbox is in indeterminate state
|
|
3065
|
-
disabled:
|
|
3067
|
+
disabled: f().optional(),
|
|
3066
3068
|
// Whether the checkbox is disabled
|
|
3067
3069
|
name: c().optional(),
|
|
3068
3070
|
// Name for form submission
|
|
3069
|
-
required:
|
|
3071
|
+
required: f().optional(),
|
|
3070
3072
|
// Whether the field is required
|
|
3071
3073
|
className: c().optional(),
|
|
3072
3074
|
// Additional class name
|
|
3073
3075
|
onValueChange: s().optional()
|
|
3074
3076
|
// Callback when checkbox value changes
|
|
3075
|
-
}), Pa =
|
|
3077
|
+
}), Pa = y({
|
|
3076
3078
|
size: v(["sm", "base", "lg"]).optional(),
|
|
3077
3079
|
// 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
|
|
3078
3080
|
text: c(),
|
|
3079
3081
|
// The text to display and copy to clipboard.
|
|
3082
|
+
textToCopy: c().optional(),
|
|
3083
|
+
// If provided, this text will be copied to clipboard instead of the `text` prop.
|
|
3080
3084
|
className: c().optional(),
|
|
3081
3085
|
// Additional CSS classes merged via `cn()`.
|
|
3082
3086
|
tooltip: s().optional(),
|
|
3083
3087
|
// Tooltip config. Shows tooltip on hover, anchored toast on click.
|
|
3084
3088
|
labels: s().optional()
|
|
3085
3089
|
// Accessible labels for i18n.
|
|
3086
|
-
}), Oa =
|
|
3087
|
-
children:
|
|
3090
|
+
}), Oa = y({
|
|
3091
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3088
3092
|
className: c().optional(),
|
|
3089
3093
|
height: s().optional(),
|
|
3090
3094
|
id: c().optional(),
|
|
@@ -3339,7 +3343,7 @@ const g = z([
|
|
|
3339
3343
|
zoomAndPan: c().optional(),
|
|
3340
3344
|
variant: v(["glyph", "full"]).optional()
|
|
3341
3345
|
// Logo variant - `glyph`: Cloud icon only - `full`: Cloud icon with "CLOUDFLARE" wordmark below
|
|
3342
|
-
}), Ta =
|
|
3346
|
+
}), Ta = y({
|
|
3343
3347
|
lang: v(["ts", "tsx", "jsonc", "bash", "css"]).optional(),
|
|
3344
3348
|
// Language hint for the code content. - `"ts"` — TypeScript code - `"tsx"` — TypeScript JSX code - `"jsonc"` — JSON with comments - `"bash"` — Shell/Bash commands - `"css"` — CSS styles
|
|
3345
3349
|
code: c(),
|
|
@@ -3348,17 +3352,17 @@ const g = z([
|
|
|
3348
3352
|
// Template values for `{{key}}` interpolation. Values with `highlight: true` are visually emphasized.
|
|
3349
3353
|
className: c().optional()
|
|
3350
3354
|
// Additional CSS classes merged via `cn()`.
|
|
3351
|
-
}), Ia =
|
|
3352
|
-
children:
|
|
3355
|
+
}), Ia = y({
|
|
3356
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3353
3357
|
label: c(),
|
|
3354
3358
|
// Text label displayed in the trigger button
|
|
3355
|
-
open:
|
|
3359
|
+
open: f().optional(),
|
|
3356
3360
|
// Whether the collapsible content is visible
|
|
3357
3361
|
className: c().optional(),
|
|
3358
3362
|
// Additional CSS classes for the content panel
|
|
3359
3363
|
onOpenChange: s().optional()
|
|
3360
3364
|
// Callback when collapsed state changes
|
|
3361
|
-
}), Na =
|
|
3365
|
+
}), Na = y({
|
|
3362
3366
|
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3363
3367
|
// 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)
|
|
3364
3368
|
inputSide: v(["right", "top"]).optional(),
|
|
@@ -3367,37 +3371,39 @@ const g = z([
|
|
|
3367
3371
|
// Array of items to display in the dropdown
|
|
3368
3372
|
value: L(s()).optional(),
|
|
3369
3373
|
// Currently selected value(s)
|
|
3370
|
-
children:
|
|
3374
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3371
3375
|
// Combobox content (trigger, content, items)
|
|
3372
3376
|
className: c().optional(),
|
|
3373
3377
|
// Additional CSS classes
|
|
3374
|
-
label:
|
|
3378
|
+
label: b([c(), _(), f(), k(), m]).optional(),
|
|
3375
3379
|
// Label content for the combobox (enables Field wrapper) - can be a string or any React node
|
|
3376
|
-
required:
|
|
3380
|
+
required: f().optional(),
|
|
3377
3381
|
// Whether the combobox is required
|
|
3378
|
-
labelTooltip:
|
|
3382
|
+
labelTooltip: b([c(), _(), f(), k(), m]).optional(),
|
|
3379
3383
|
// Tooltip content to display next to the label via an info icon
|
|
3380
|
-
description:
|
|
3384
|
+
description: b([c(), _(), f(), k(), m]).optional(),
|
|
3381
3385
|
// Helper text displayed below the combobox
|
|
3382
3386
|
error: s().optional(),
|
|
3383
3387
|
// Error message or validation error object
|
|
3384
3388
|
onValueChange: s().optional(),
|
|
3385
3389
|
// Callback when selection changes
|
|
3386
|
-
multiple:
|
|
3390
|
+
multiple: f().optional(),
|
|
3387
3391
|
// Allow multiple selections
|
|
3388
3392
|
isItemEqualToValue: s().optional()
|
|
3389
3393
|
// Custom equality function for comparing items
|
|
3390
|
-
}), Ea =
|
|
3391
|
-
open:
|
|
3394
|
+
}), Ea = y({
|
|
3395
|
+
open: f(),
|
|
3392
3396
|
// Whether the dialog is open
|
|
3393
|
-
children:
|
|
3397
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3394
3398
|
// Child content - typically one or more Panel components
|
|
3395
|
-
|
|
3399
|
+
container: s().optional()
|
|
3400
|
+
// Container element for the portal. Use this to render the command palette inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
3401
|
+
}), Ca = y({
|
|
3396
3402
|
className: c().optional(),
|
|
3397
3403
|
// Additional CSS classes
|
|
3398
|
-
children:
|
|
3404
|
+
children: b([c(), _(), f(), k(), m]).optional()
|
|
3399
3405
|
// Child elements
|
|
3400
|
-
}), Aa =
|
|
3406
|
+
}), Aa = y({
|
|
3401
3407
|
size: v(["sm", "base", "lg"]).optional(),
|
|
3402
3408
|
// Calendar size. - `"sm"` — Compact calendar for tight spaces - `"base"` — Default calendar size - `"lg"` — Large calendar for prominent date selection
|
|
3403
3409
|
variant: v(["default", "subtle"]).optional(),
|
|
@@ -3410,20 +3416,22 @@ const g = z([
|
|
|
3410
3416
|
// Callback when start date changes
|
|
3411
3417
|
onEndDateChange: s().optional()
|
|
3412
3418
|
// Callback when end date changes
|
|
3413
|
-
}), xa =
|
|
3419
|
+
}), xa = y({
|
|
3414
3420
|
className: c().optional(),
|
|
3415
3421
|
// Additional CSS classes merged via `cn()`.
|
|
3416
|
-
children:
|
|
3422
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3417
3423
|
// Dialog content (typically Title, Description, Close, and action buttons).
|
|
3424
|
+
container: s().optional(),
|
|
3425
|
+
// Container element for the portal. Use this to render the dialog inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
3418
3426
|
size: v(["base", "sm", "lg", "xl"]).optional()
|
|
3419
3427
|
// 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
|
|
3420
|
-
}), ja =
|
|
3428
|
+
}), ja = y({
|
|
3421
3429
|
variant: v(["default", "danger"]).optional()
|
|
3422
3430
|
// Visual style of the dropdown item. - `"default"` — Standard item appearance - `"danger"` — Destructive action with red text
|
|
3423
|
-
}), Ra =
|
|
3431
|
+
}), Ra = y({
|
|
3424
3432
|
size: v(["sm", "base", "lg"]).optional(),
|
|
3425
3433
|
// 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
|
|
3426
|
-
icon:
|
|
3434
|
+
icon: b([c(), _(), f(), k(), m]).optional(),
|
|
3427
3435
|
// Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`).
|
|
3428
3436
|
title: c(),
|
|
3429
3437
|
// Primary heading text for the empty state.
|
|
@@ -3431,45 +3439,45 @@ const g = z([
|
|
|
3431
3439
|
// Secondary description text displayed below the title.
|
|
3432
3440
|
commandLine: c().optional(),
|
|
3433
3441
|
// Shell command displayed in a copyable code block.
|
|
3434
|
-
contents:
|
|
3442
|
+
contents: b([c(), _(), f(), k(), m]).optional(),
|
|
3435
3443
|
// Additional content (buttons, links) rendered below the description.
|
|
3436
3444
|
className: c().optional()
|
|
3437
3445
|
// Additional CSS classes merged via `cn()`.
|
|
3438
|
-
}), Da =
|
|
3439
|
-
controlFirst:
|
|
3446
|
+
}), Da = y({
|
|
3447
|
+
controlFirst: f().optional(),
|
|
3440
3448
|
// When `true`, places the control before the label (for checkbox/switch layouts).
|
|
3441
|
-
children:
|
|
3449
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3442
3450
|
// The form control element(s) to wrap (Input, Select, Checkbox, etc.).
|
|
3443
|
-
label:
|
|
3451
|
+
label: b([c(), _(), f(), k(), m]).optional(),
|
|
3444
3452
|
// The label content — can be a string or any React node.
|
|
3445
|
-
required:
|
|
3453
|
+
required: f().optional(),
|
|
3446
3454
|
// When explicitly `false`, shows gray "(optional)" text after the label. When `true` or `undefined`, no indicator is shown.
|
|
3447
|
-
labelTooltip:
|
|
3455
|
+
labelTooltip: b([c(), _(), f(), k(), m]).optional(),
|
|
3448
3456
|
// Tooltip content displayed next to the label via an info icon.
|
|
3449
3457
|
error: s().optional(),
|
|
3450
3458
|
// Validation error with a message and a browser `ValidityState` match key.
|
|
3451
|
-
description:
|
|
3459
|
+
description: b([c(), _(), f(), k(), m]).optional()
|
|
3452
3460
|
// Helper text displayed below the control (hidden when `error` is present).
|
|
3453
|
-
}), Ua =
|
|
3454
|
-
children:
|
|
3461
|
+
}), Ua = y({
|
|
3462
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3455
3463
|
// Grid items to render.
|
|
3456
3464
|
className: c().optional(),
|
|
3457
3465
|
// Additional CSS classes merged via `cn()`.
|
|
3458
3466
|
id: c().optional(),
|
|
3459
3467
|
lang: c().optional(),
|
|
3460
3468
|
title: c().optional(),
|
|
3461
|
-
mobileDivider:
|
|
3469
|
+
mobileDivider: f().optional(),
|
|
3462
3470
|
// Show dividers between grid items on mobile (only works with `"4up"` variant).
|
|
3463
3471
|
gap: v(["none", "sm", "base", "lg"]).optional(),
|
|
3464
3472
|
// Gap size between grid items. - `"none"` — No gap - `"sm"` — 12px gap - `"base"` — Responsive gap (8px → 24px → 32px) - `"lg"` — 32px gap
|
|
3465
3473
|
variant: v(["2up", "side-by-side", "2-1", "1-2", "1-3up", "3up", "4up", "6up", "1-2-4up"]).optional()
|
|
3466
3474
|
// 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
|
|
3467
|
-
}), Fa =
|
|
3468
|
-
label:
|
|
3475
|
+
}), Fa = y({
|
|
3476
|
+
label: b([c(), _(), f(), k(), m]).optional(),
|
|
3469
3477
|
// Label content for the input (enables Field wrapper) - can be a string or any React node
|
|
3470
|
-
labelTooltip:
|
|
3478
|
+
labelTooltip: b([c(), _(), f(), k(), m]).optional(),
|
|
3471
3479
|
// Tooltip content to display next to the label via an info icon
|
|
3472
|
-
description:
|
|
3480
|
+
description: b([c(), _(), f(), k(), m]).optional(),
|
|
3473
3481
|
// Helper text displayed below the input
|
|
3474
3482
|
error: s().optional(),
|
|
3475
3483
|
// Error message or validation error object
|
|
@@ -3477,28 +3485,28 @@ const g = z([
|
|
|
3477
3485
|
// Input size. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default size - `"lg"` — Large for prominent fields
|
|
3478
3486
|
variant: v(["default", "error"]).optional()
|
|
3479
3487
|
// Visual variant. - `"default"` — Standard input - `"error"` — Error state for validation failures
|
|
3480
|
-
}), La =
|
|
3481
|
-
children:
|
|
3488
|
+
}), La = y({}), Ma = y({
|
|
3489
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3482
3490
|
// The label content — can be a string or any React node.
|
|
3483
|
-
showOptional:
|
|
3491
|
+
showOptional: f().optional(),
|
|
3484
3492
|
// When `true`, shows gray "(optional)" text after the label.
|
|
3485
|
-
tooltip:
|
|
3493
|
+
tooltip: b([c(), _(), f(), k(), m]).optional(),
|
|
3486
3494
|
// Tooltip content displayed next to the label via an info icon.
|
|
3487
3495
|
className: c().optional(),
|
|
3488
3496
|
// Additional CSS classes merged via `cn()`.
|
|
3489
3497
|
htmlFor: c().optional(),
|
|
3490
3498
|
// The id of the form element this label is associated with
|
|
3491
|
-
asContent:
|
|
3499
|
+
asContent: f().optional()
|
|
3492
3500
|
// 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.
|
|
3493
|
-
}), Ja =
|
|
3494
|
-
children:
|
|
3501
|
+
}), Ja = y({
|
|
3502
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3495
3503
|
className: c().optional()
|
|
3496
3504
|
// Additional CSS classes merged via `cn()`.
|
|
3497
|
-
}), Ba =
|
|
3505
|
+
}), Ba = y({
|
|
3498
3506
|
variant: v(["inline", "current", "plain"]).optional(),
|
|
3499
3507
|
// 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
|
|
3500
3508
|
to: c().optional(),
|
|
3501
|
-
children:
|
|
3509
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3502
3510
|
className: c().optional(),
|
|
3503
3511
|
id: c().optional(),
|
|
3504
3512
|
lang: c().optional(),
|
|
@@ -3511,28 +3519,28 @@ const g = z([
|
|
|
3511
3519
|
target: s().optional(),
|
|
3512
3520
|
type: c().optional(),
|
|
3513
3521
|
referrerPolicy: v(["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"]).optional(),
|
|
3514
|
-
render:
|
|
3522
|
+
render: b([c(), _(), f(), k(), m]).optional()
|
|
3515
3523
|
// 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.
|
|
3516
|
-
}), Va =
|
|
3524
|
+
}), Va = y({
|
|
3517
3525
|
className: c().optional(),
|
|
3518
3526
|
// Additional CSS classes merged via `cn()`.
|
|
3519
3527
|
size: v(["sm", "base", "lg"]).optional()
|
|
3520
3528
|
// 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
|
|
3521
|
-
}), Wa =
|
|
3529
|
+
}), Wa = y({
|
|
3522
3530
|
className: c().optional(),
|
|
3523
3531
|
// Additional CSS classes merged via `cn()`.
|
|
3524
3532
|
isActive: s().optional(),
|
|
3525
3533
|
// The currently active option value — matched against option index or `id`.
|
|
3526
3534
|
options: L(s()),
|
|
3527
3535
|
// Array of menu option configurations.
|
|
3528
|
-
optionIds:
|
|
3536
|
+
optionIds: f().optional()
|
|
3529
3537
|
// When true, each option's `id` field is used for matching instead of its array index.
|
|
3530
|
-
}), Ka =
|
|
3538
|
+
}), Ka = y({
|
|
3531
3539
|
customValue: c().optional(),
|
|
3532
3540
|
// Custom formatted value text (e.g. "750 / 1,000") displayed instead of percentage.
|
|
3533
3541
|
label: c(),
|
|
3534
3542
|
// Label text displayed above the meter track.
|
|
3535
|
-
showValue:
|
|
3543
|
+
showValue: f().optional(),
|
|
3536
3544
|
// Whether to display the percentage value next to the label.
|
|
3537
3545
|
trackClassName: c().optional(),
|
|
3538
3546
|
// Additional CSS classes for the track (background bar).
|
|
@@ -3544,7 +3552,7 @@ const g = z([
|
|
|
3544
3552
|
// Maximum value of the meter (default: 100)
|
|
3545
3553
|
min: _().optional()
|
|
3546
3554
|
// Minimum value of the meter (default: 0)
|
|
3547
|
-
}), qa =
|
|
3555
|
+
}), qa = y({
|
|
3548
3556
|
setPage: s(),
|
|
3549
3557
|
// Callback when page changes
|
|
3550
3558
|
page: _().optional(),
|
|
@@ -3555,17 +3563,17 @@ const g = z([
|
|
|
3555
3563
|
// Total number of items across all pages.
|
|
3556
3564
|
className: c().optional(),
|
|
3557
3565
|
// Additional CSS classes for the container
|
|
3558
|
-
children:
|
|
3566
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3559
3567
|
// Compound component children for custom layouts. Use Pagination.Info, Pagination.PageSize, Pagination.Controls, and Pagination.Separator.
|
|
3560
3568
|
controls: v(["full", "simple"]).optional(),
|
|
3561
3569
|
text: s().optional()
|
|
3562
|
-
}), Ga =
|
|
3570
|
+
}), Ga = y({
|
|
3563
3571
|
side: v(["top", "bottom", "left", "right"]).optional()
|
|
3564
3572
|
// 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
|
|
3565
|
-
}), Xa =
|
|
3573
|
+
}), Xa = y({
|
|
3566
3574
|
legend: c(),
|
|
3567
3575
|
// Legend text for the group (required for accessibility)
|
|
3568
|
-
children:
|
|
3576
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3569
3577
|
// Child Radio.Item components
|
|
3570
3578
|
orientation: v(["vertical", "horizontal"]).optional(),
|
|
3571
3579
|
// Layout direction of the radio items
|
|
@@ -3573,11 +3581,11 @@ const g = z([
|
|
|
3573
3581
|
// 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.
|
|
3574
3582
|
error: c().optional(),
|
|
3575
3583
|
// Error message for the group
|
|
3576
|
-
description:
|
|
3584
|
+
description: b([c(), _(), f(), k(), m]).optional(),
|
|
3577
3585
|
// Helper text for the group
|
|
3578
3586
|
value: c().optional(),
|
|
3579
3587
|
// Value of the radio that should be selected (controlled)
|
|
3580
|
-
disabled:
|
|
3588
|
+
disabled: f().optional(),
|
|
3581
3589
|
// Whether all radios in the group are disabled
|
|
3582
3590
|
controlPosition: v(["start", "end"]).optional(),
|
|
3583
3591
|
// Position of radio control relative to label: "start" (default) puts radio before label, "end" puts label before radio. Note: In card appearance, the control is always positioned at the end.
|
|
@@ -3585,27 +3593,27 @@ const g = z([
|
|
|
3585
3593
|
// Form submission name for the radio group
|
|
3586
3594
|
className: c().optional()
|
|
3587
3595
|
// Additional CSS classes
|
|
3588
|
-
}), Ya =
|
|
3596
|
+
}), Ya = y({
|
|
3589
3597
|
className: c().optional(),
|
|
3590
3598
|
// Additional CSS classes merged via `cn()`.
|
|
3591
|
-
label:
|
|
3599
|
+
label: b([c(), _(), f(), k(), m]).optional(),
|
|
3592
3600
|
// 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.
|
|
3593
|
-
hideLabel:
|
|
3601
|
+
hideLabel: f().optional(),
|
|
3594
3602
|
placeholder: c().optional(),
|
|
3595
3603
|
// Placeholder text shown when no value is selected.
|
|
3596
|
-
loading:
|
|
3604
|
+
loading: f().optional(),
|
|
3597
3605
|
// When `true`, shows a skeleton loader in place of the selected value.
|
|
3598
|
-
disabled:
|
|
3606
|
+
disabled: f().optional(),
|
|
3599
3607
|
// Whether the select is disabled.
|
|
3600
|
-
required:
|
|
3608
|
+
required: f().optional(),
|
|
3601
3609
|
// Whether the select is required. When `false`, shows "(optional)" text.
|
|
3602
|
-
labelTooltip:
|
|
3610
|
+
labelTooltip: b([c(), _(), f(), k(), m]).optional(),
|
|
3603
3611
|
// Tooltip content displayed next to the label via an info icon.
|
|
3604
3612
|
value: c().optional(),
|
|
3605
3613
|
// Currently selected value (controlled mode).
|
|
3606
|
-
children:
|
|
3614
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3607
3615
|
// `Select.Option` elements to render in the dropdown.
|
|
3608
|
-
description:
|
|
3616
|
+
description: b([c(), _(), f(), k(), m]).optional(),
|
|
3609
3617
|
// Helper text displayed below the select.
|
|
3610
3618
|
error: s().optional(),
|
|
3611
3619
|
// Error message string or validation error object with `match` key.
|
|
@@ -3613,59 +3621,83 @@ const g = z([
|
|
|
3613
3621
|
// Callback when selection changes
|
|
3614
3622
|
defaultValue: c().optional()
|
|
3615
3623
|
// Initial value for uncontrolled mode
|
|
3616
|
-
}), Ha =
|
|
3624
|
+
}), Ha = y({
|
|
3617
3625
|
alt: c().optional(),
|
|
3618
3626
|
autoComplete: s().optional(),
|
|
3619
|
-
checked:
|
|
3620
|
-
disabled:
|
|
3627
|
+
checked: f().optional(),
|
|
3628
|
+
disabled: f().optional(),
|
|
3621
3629
|
height: s().optional(),
|
|
3622
3630
|
list: c().optional(),
|
|
3623
3631
|
name: c().optional(),
|
|
3624
3632
|
placeholder: c().optional(),
|
|
3625
|
-
readOnly:
|
|
3626
|
-
required:
|
|
3633
|
+
readOnly: f().optional(),
|
|
3634
|
+
required: f().optional(),
|
|
3627
3635
|
width: s().optional(),
|
|
3628
3636
|
className: c().optional(),
|
|
3629
3637
|
id: c().optional(),
|
|
3630
3638
|
lang: c().optional(),
|
|
3631
3639
|
title: c().optional(),
|
|
3632
|
-
children:
|
|
3640
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3633
3641
|
value: c().optional(),
|
|
3634
3642
|
// Controlled value
|
|
3635
3643
|
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3636
3644
|
// Size of the input. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default input size - `"lg"` — Large for prominent fields
|
|
3637
3645
|
variant: v(["default", "error"]).optional(),
|
|
3638
3646
|
// Style variant of the input. - `"default"` — Default input appearance - `"error"` — Error state for validation failures
|
|
3639
|
-
label:
|
|
3647
|
+
label: b([c(), _(), f(), k(), m]).optional(),
|
|
3640
3648
|
// Label content for the input (enables Field wrapper and sets masked state label) - can be a string or any React node
|
|
3641
|
-
labelTooltip:
|
|
3649
|
+
labelTooltip: b([c(), _(), f(), k(), m]).optional(),
|
|
3642
3650
|
// Tooltip content to display next to the label via an info icon
|
|
3643
|
-
description:
|
|
3651
|
+
description: b([c(), _(), f(), k(), m]).optional(),
|
|
3644
3652
|
// Helper text displayed below the input
|
|
3645
3653
|
error: s().optional()
|
|
3646
3654
|
// Error message or validation error object
|
|
3647
|
-
}), Qa =
|
|
3655
|
+
}), Qa = y({
|
|
3656
|
+
defaultOpen: f().optional(),
|
|
3657
|
+
// Initial open state when uncontrolled.
|
|
3658
|
+
open: f().optional(),
|
|
3659
|
+
// Controlled open state.
|
|
3660
|
+
variant: v(["sidebar", "floating", "inset"]).optional(),
|
|
3661
|
+
// Sidebar layout variant.
|
|
3662
|
+
side: v(["left", "right"]).optional(),
|
|
3663
|
+
// Which side the sidebar is on.
|
|
3664
|
+
collapsible: v(["icon", "offcanvas", "none"]).optional(),
|
|
3665
|
+
resizable: f().optional(),
|
|
3666
|
+
// Enable drag-to-resize on the sidebar edge.
|
|
3667
|
+
defaultWidth: _().optional(),
|
|
3668
|
+
// Initial width in pixels when resizable.
|
|
3669
|
+
minWidth: _().optional(),
|
|
3670
|
+
// Minimum width in pixels when resizing.
|
|
3671
|
+
maxWidth: _().optional(),
|
|
3672
|
+
// Maximum width in pixels when resizing.
|
|
3673
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3674
|
+
// Content — typically `<Sidebar>` + main content.
|
|
3675
|
+
className: c().optional()
|
|
3676
|
+
// Additional CSS classes for the wrapper div.
|
|
3677
|
+
}), es = y({
|
|
3648
3678
|
as: s().optional(),
|
|
3649
|
-
|
|
3679
|
+
render: b([c(), _(), f(), k(), m]).optional(),
|
|
3680
|
+
// 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.
|
|
3681
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3650
3682
|
className: c().optional(),
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
}),
|
|
3683
|
+
id: c().optional(),
|
|
3684
|
+
lang: c().optional(),
|
|
3685
|
+
title: c().optional()
|
|
3686
|
+
}), ts = y({
|
|
3655
3687
|
variant: v(["default", "neutral"]).optional(),
|
|
3656
3688
|
// Visual variant: "default" (pill, brand color) or "neutral" (squircle, monochrome)
|
|
3657
|
-
label:
|
|
3689
|
+
label: b([c(), _(), f(), k(), m]).optional(),
|
|
3658
3690
|
// 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.
|
|
3659
|
-
labelTooltip:
|
|
3691
|
+
labelTooltip: b([c(), _(), f(), k(), m]).optional(),
|
|
3660
3692
|
// Tooltip content to display next to the label via an info icon
|
|
3661
|
-
required:
|
|
3693
|
+
required: f().optional(),
|
|
3662
3694
|
// Whether the switch is required. When explicitly false, shows "(optional)" text after the label.
|
|
3663
|
-
controlFirst:
|
|
3695
|
+
controlFirst: f().optional(),
|
|
3664
3696
|
// When true (default), switch appears before label. When false, label appears before switch.
|
|
3665
3697
|
size: v(["sm", "base", "lg"]).optional(),
|
|
3666
|
-
checked:
|
|
3667
|
-
disabled:
|
|
3668
|
-
transitioning:
|
|
3698
|
+
checked: f().optional(),
|
|
3699
|
+
disabled: f().optional(),
|
|
3700
|
+
transitioning: f().optional(),
|
|
3669
3701
|
name: c().optional(),
|
|
3670
3702
|
type: v(["submit", "reset", "button"]).optional(),
|
|
3671
3703
|
value: s().optional(),
|
|
@@ -3675,21 +3707,22 @@ const g = z([
|
|
|
3675
3707
|
title: c().optional(),
|
|
3676
3708
|
onClick: s()
|
|
3677
3709
|
// Callback when switch is clicked
|
|
3678
|
-
}),
|
|
3710
|
+
}), os = y({
|
|
3679
3711
|
layout: v(["auto", "fixed"]).optional(),
|
|
3680
3712
|
variant: v(["default", "selected"]).optional(),
|
|
3713
|
+
sticky: v(["left", "right"]).optional(),
|
|
3681
3714
|
className: c().optional(),
|
|
3682
3715
|
// Additional CSS classes
|
|
3683
|
-
children:
|
|
3716
|
+
children: b([c(), _(), f(), k(), m]).optional()
|
|
3684
3717
|
// Child elements
|
|
3685
|
-
}),
|
|
3718
|
+
}), ns = y({
|
|
3686
3719
|
tabs: L(s()).optional(),
|
|
3687
3720
|
// Array of tab items to render.
|
|
3688
3721
|
value: c().optional(),
|
|
3689
3722
|
// Controlled value. When set, component becomes controlled.
|
|
3690
3723
|
selectedValue: c().optional(),
|
|
3691
3724
|
// Default selected value for uncontrolled mode. Ignored when `value` is set.
|
|
3692
|
-
activateOnFocus:
|
|
3725
|
+
activateOnFocus: f().optional(),
|
|
3693
3726
|
// When `true`, tabs are activated immediately upon receiving focus via arrow keys. When `false` (default), tabs receive focus but require Enter/Space to activate.
|
|
3694
3727
|
className: c().optional(),
|
|
3695
3728
|
// Additional CSS classes for the root element.
|
|
@@ -3701,32 +3734,34 @@ const g = z([
|
|
|
3701
3734
|
// Tab style. - `"segmented"` — Pill-shaped indicator on a filled track - `"underline"` — Underline indicator below tab text
|
|
3702
3735
|
onValueChange: s().optional()
|
|
3703
3736
|
// Callback when active tab changes
|
|
3704
|
-
}),
|
|
3737
|
+
}), rs = y({
|
|
3705
3738
|
variant: v(["heading1", "heading2", "heading3", "body", "secondary", "success", "error", "mono", "mono-secondary"]).optional(),
|
|
3706
3739
|
// 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
|
|
3707
3740
|
size: v(["xs", "sm", "base", "lg"]).optional(),
|
|
3708
3741
|
// Text size (only applies to body/secondary/success/error variants). - `"xs"` — 12px - `"sm"` — 14px - `"base"` — 16px - `"lg"` — 18px
|
|
3709
|
-
bold:
|
|
3742
|
+
bold: f().optional(),
|
|
3710
3743
|
// Whether to use bold font weight (only applies to body variants).
|
|
3744
|
+
truncate: f().optional(),
|
|
3745
|
+
// Whether to truncate overflowing text with an ellipsis. Adds `truncate min-w-0` classes.
|
|
3711
3746
|
as: s().optional(),
|
|
3712
3747
|
// The HTML element type to render as (e.g. `"span"`, `"p"`, `"h1"`). Auto-selected based on variant if omitted.
|
|
3713
|
-
children:
|
|
3748
|
+
children: b([c(), _(), f(), k(), m]).optional()
|
|
3714
3749
|
// Text content.
|
|
3715
|
-
}),
|
|
3750
|
+
}), is = y({
|
|
3716
3751
|
variant: v(["default", "success", "error", "warning", "info"]).optional(),
|
|
3717
3752
|
className: c().optional(),
|
|
3718
3753
|
// Additional CSS classes
|
|
3719
|
-
children:
|
|
3754
|
+
children: b([c(), _(), f(), k(), m]).optional()
|
|
3720
3755
|
// Child elements
|
|
3721
|
-
}),
|
|
3756
|
+
}), as = y({
|
|
3722
3757
|
side: v(["top", "bottom", "left", "right"]).optional(),
|
|
3723
3758
|
className: c().optional(),
|
|
3724
3759
|
// Additional CSS classes
|
|
3725
|
-
children:
|
|
3760
|
+
children: b([c(), _(), f(), k(), m]).optional(),
|
|
3726
3761
|
// Child elements
|
|
3727
|
-
content:
|
|
3762
|
+
content: b([c(), _(), f(), k(), m])
|
|
3728
3763
|
// Content to display in the tooltip
|
|
3729
|
-
}),
|
|
3764
|
+
}), ss = v([
|
|
3730
3765
|
"Badge",
|
|
3731
3766
|
"Banner",
|
|
3732
3767
|
"Breadcrumbs",
|
|
@@ -3758,6 +3793,7 @@ const g = z([
|
|
|
3758
3793
|
"Radio",
|
|
3759
3794
|
"Select",
|
|
3760
3795
|
"SensitiveInput",
|
|
3796
|
+
"Sidebar",
|
|
3761
3797
|
"Surface",
|
|
3762
3798
|
"Switch",
|
|
3763
3799
|
"Table",
|
|
@@ -3765,11 +3801,11 @@ const g = z([
|
|
|
3765
3801
|
"Text",
|
|
3766
3802
|
"Toasty",
|
|
3767
3803
|
"Tooltip"
|
|
3768
|
-
]),
|
|
3804
|
+
]), cs = {
|
|
3769
3805
|
Badge: ka,
|
|
3770
3806
|
Banner: wa,
|
|
3771
|
-
Breadcrumbs:
|
|
3772
|
-
Button:
|
|
3807
|
+
Breadcrumbs: Sa,
|
|
3808
|
+
Button: $a,
|
|
3773
3809
|
Checkbox: Za,
|
|
3774
3810
|
ClipboardText: Pa,
|
|
3775
3811
|
CloudflareLogo: Oa,
|
|
@@ -3797,40 +3833,41 @@ const g = z([
|
|
|
3797
3833
|
Radio: Xa,
|
|
3798
3834
|
Select: Ya,
|
|
3799
3835
|
SensitiveInput: Ha,
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3836
|
+
Sidebar: Qa,
|
|
3837
|
+
Surface: es,
|
|
3838
|
+
Switch: ts,
|
|
3839
|
+
Table: os,
|
|
3840
|
+
Tabs: ns,
|
|
3841
|
+
Text: rs,
|
|
3842
|
+
Toasty: is,
|
|
3843
|
+
Tooltip: as
|
|
3844
|
+
}, us = y({
|
|
3808
3845
|
key: c(),
|
|
3809
|
-
type:
|
|
3846
|
+
type: ss,
|
|
3810
3847
|
props: H(c(), s()),
|
|
3811
3848
|
children: L(c()).optional(),
|
|
3812
3849
|
parentKey: c().nullable().optional(),
|
|
3813
3850
|
visible: ba.optional(),
|
|
3814
3851
|
action: za.optional()
|
|
3815
|
-
}),
|
|
3852
|
+
}), ls = y({
|
|
3816
3853
|
root: c(),
|
|
3817
|
-
elements: H(c(),
|
|
3854
|
+
elements: H(c(), us)
|
|
3818
3855
|
});
|
|
3819
|
-
function
|
|
3820
|
-
const t =
|
|
3856
|
+
function ds(e) {
|
|
3857
|
+
const t = cs[e.type];
|
|
3821
3858
|
return t ? t.safeParse(e.props) : { success: !1, error: new ui([{ code: "custom", message: `Unknown component type: ${e.type}`, path: ["type"] }]) };
|
|
3822
3859
|
}
|
|
3823
|
-
function
|
|
3824
|
-
return
|
|
3860
|
+
function fs(e) {
|
|
3861
|
+
return ls.safeParse(e);
|
|
3825
3862
|
}
|
|
3826
|
-
const
|
|
3863
|
+
const hs = ["Badge", "Banner", "Breadcrumbs", "Button", "Checkbox", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "Grid", "Input", "InputArea", "Label", "LayerCard", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "Select", "SensitiveInput", "Sidebar", "Surface", "Switch", "Table", "Tabs", "Text", "Toasty", "Tooltip"];
|
|
3827
3864
|
export {
|
|
3828
3865
|
ya as ActionConfirmSchema,
|
|
3829
3866
|
za as ActionSchema,
|
|
3830
3867
|
ka as BadgePropsSchema,
|
|
3831
3868
|
wa as BannerPropsSchema,
|
|
3832
|
-
|
|
3833
|
-
|
|
3869
|
+
Sa as BreadcrumbsPropsSchema,
|
|
3870
|
+
$a as ButtonPropsSchema,
|
|
3834
3871
|
Za as CheckboxPropsSchema,
|
|
3835
3872
|
Pa as ClipboardTextPropsSchema,
|
|
3836
3873
|
Oa as CloudflareLogoPropsSchema,
|
|
@@ -3838,19 +3875,19 @@ export {
|
|
|
3838
3875
|
Ia as CollapsiblePropsSchema,
|
|
3839
3876
|
Na as ComboboxPropsSchema,
|
|
3840
3877
|
Ea as CommandPalettePropsSchema,
|
|
3841
|
-
|
|
3878
|
+
cs as ComponentPropsSchemas,
|
|
3842
3879
|
Ca as DatePickerPropsSchema,
|
|
3843
3880
|
Aa as DateRangePickerPropsSchema,
|
|
3844
3881
|
xa as DialogPropsSchema,
|
|
3845
3882
|
ja as DropdownMenuPropsSchema,
|
|
3846
|
-
|
|
3883
|
+
m as DynamicValueSchema,
|
|
3847
3884
|
Ra as EmptyPropsSchema,
|
|
3848
3885
|
Da as FieldPropsSchema,
|
|
3849
3886
|
Ua as GridPropsSchema,
|
|
3850
3887
|
La as InputAreaPropsSchema,
|
|
3851
3888
|
Fa as InputPropsSchema,
|
|
3852
|
-
|
|
3853
|
-
|
|
3889
|
+
hs as KUMO_COMPONENT_NAMES,
|
|
3890
|
+
ss as KumoComponentTypeSchema,
|
|
3854
3891
|
Ma as LabelPropsSchema,
|
|
3855
3892
|
Ja as LayerCardPropsSchema,
|
|
3856
3893
|
Ba as LinkPropsSchema,
|
|
@@ -3862,17 +3899,18 @@ export {
|
|
|
3862
3899
|
Xa as RadioPropsSchema,
|
|
3863
3900
|
Ya as SelectPropsSchema,
|
|
3864
3901
|
Ha as SensitiveInputPropsSchema,
|
|
3865
|
-
Qa as
|
|
3866
|
-
es as
|
|
3867
|
-
ts as
|
|
3868
|
-
os as
|
|
3869
|
-
ns as
|
|
3870
|
-
rs as
|
|
3871
|
-
is as
|
|
3872
|
-
|
|
3873
|
-
us as
|
|
3902
|
+
Qa as SidebarPropsSchema,
|
|
3903
|
+
es as SurfacePropsSchema,
|
|
3904
|
+
ts as SwitchPropsSchema,
|
|
3905
|
+
os as TablePropsSchema,
|
|
3906
|
+
ns as TabsPropsSchema,
|
|
3907
|
+
rs as TextPropsSchema,
|
|
3908
|
+
is as ToastyPropsSchema,
|
|
3909
|
+
as as TooltipPropsSchema,
|
|
3910
|
+
us as UIElementBaseSchema,
|
|
3911
|
+
ls as UITreeSchema,
|
|
3874
3912
|
ba as VisibilityConditionSchema,
|
|
3875
|
-
|
|
3876
|
-
|
|
3913
|
+
ds as validateElementProps,
|
|
3914
|
+
fs as validateUITree
|
|
3877
3915
|
};
|
|
3878
3916
|
//# sourceMappingURL=schemas.js.map
|