@cloudflare/kumo 1.5.1 → 1.6.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 +90 -0
- package/ai/component-registry.json +52 -3
- package/ai/component-registry.md +291 -2
- package/ai/schemas.ts +11 -2
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +24 -5
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/catalog.js +1 -1
- package/dist/{checkbox-CWANiedi.js → checkbox-Dt8iSNOg.js} +3 -3
- package/dist/{checkbox-CWANiedi.js.map → checkbox-Dt8iSNOg.js.map} +1 -1
- package/dist/clipboard-text-Bw5rKPXz.js +185 -0
- package/dist/clipboard-text-Bw5rKPXz.js.map +1 -0
- package/dist/{combobox-C9koouxM.js → combobox-BIC-YZ2L.js} +41 -41
- package/dist/combobox-BIC-YZ2L.js.map +1 -0
- package/dist/command-line/cli.js +88 -30
- package/dist/command-line/commands/add.js +88 -30
- package/dist/{command-palette-TGXgr6Vq.js → command-palette-D3MNR7w9.js} +31 -31
- package/dist/{command-palette-TGXgr6Vq.js.map → command-palette-D3MNR7w9.js.map} +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/date-picker.js +6 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/tooltip.js +1 -1
- package/dist/date-picker-M6uNX5Ca.js +2921 -0
- package/dist/date-picker-M6uNX5Ca.js.map +1 -0
- package/dist/{dialog-CpCeOqSZ.js → dialog-toS9krNF.js} +17 -17
- package/dist/dialog-toS9krNF.js.map +1 -0
- package/dist/{dropdown-DFeFcKfn.js → dropdown-BquiYKKC.js} +38 -38
- package/dist/dropdown-BquiYKKC.js.map +1 -0
- package/dist/{field-Dt-XuSaQ.js → field-DCq04TgZ.js} +3 -3
- package/dist/{field-Dt-XuSaQ.js.map → field-DCq04TgZ.js.map} +1 -1
- package/dist/index.js +51 -49
- package/dist/index.js.map +1 -1
- package/dist/{input-GZAWBXYX.js → input-CCR8NGG7.js} +3 -3
- package/dist/{input-GZAWBXYX.js.map → input-CCR8NGG7.js.map} +1 -1
- package/dist/{input-area-CS1-ceY4.js → input-area-DU2Yvp_t.js} +3 -3
- package/dist/{input-area-CS1-ceY4.js.map → input-area-DU2Yvp_t.js.map} +1 -1
- package/dist/{input-group-COo-wz5O.js → input-group-C365-qBq.js} +2 -2
- package/dist/{input-group-COo-wz5O.js.map → input-group-C365-qBq.js.map} +1 -1
- package/dist/{label-ChZ2Pp5p.js → label-zjtV7oXa.js} +2 -2
- package/dist/{label-ChZ2Pp5p.js.map → label-zjtV7oXa.js.map} +1 -1
- package/dist/{link-Mj2WM1AS.js → link-C8pUZ4Q-.js} +8 -8
- package/dist/{link-Mj2WM1AS.js.map → link-C8pUZ4Q-.js.map} +1 -1
- package/dist/{menubar-CbXWXQYR.js → menubar-D7WvAf6x.js} +6 -6
- package/dist/menubar-D7WvAf6x.js.map +1 -0
- package/dist/{meter-Bu5f3mAc.js → meter-jQGKS1z4.js} +4 -4
- package/dist/{meter-Bu5f3mAc.js.map → meter-jQGKS1z4.js.map} +1 -1
- package/dist/{pagination-Cf-yRO-n.js → pagination-BN80iKY6.js} +2 -2
- package/dist/{pagination-Cf-yRO-n.js.map → pagination-BN80iKY6.js.map} +1 -1
- package/dist/{popover-D7yeRosi.js → popover-syU1104E.js} +4 -4
- package/dist/{popover-D7yeRosi.js.map → popover-syU1104E.js.map} +1 -1
- package/dist/primitives/accordion.js +1 -1
- package/dist/primitives/alert-dialog.js +1 -1
- package/dist/primitives/autocomplete.js +1 -1
- package/dist/primitives/avatar.js +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/checkbox-group.js +1 -1
- package/dist/primitives/checkbox.js +1 -1
- package/dist/primitives/collapsible.js +1 -1
- package/dist/primitives/combobox.js +1 -1
- package/dist/primitives/context-menu.js +1 -1
- package/dist/primitives/dialog.js +1 -1
- package/dist/primitives/direction-provider.js +1 -1
- package/dist/primitives/field.js +1 -1
- package/dist/primitives/fieldset.js +1 -1
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +1 -1
- package/dist/primitives/menu.js +1 -1
- package/dist/primitives/menubar.js +1 -1
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +1 -1
- package/dist/primitives/number-field.js +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.js +1 -1
- package/dist/{radio-CKn09bGo.js → radio-CWMtSx65.js} +8 -8
- package/dist/{radio-CKn09bGo.js.map → radio-CWMtSx65.js.map} +1 -1
- package/dist/{schemas-H10xB2M_.js → schemas-DbIwo0ET.js} +251 -239
- package/dist/{schemas-H10xB2M_.js.map → schemas-DbIwo0ET.js.map} +1 -1
- package/dist/{select-DvpgiOau.js → select-G6JqBVkg.js} +37 -37
- package/dist/{select-DvpgiOau.js.map → select-G6JqBVkg.js.map} +1 -1
- package/dist/{sensitive-input-BuYT6U6C.js → sensitive-input-DNFpycoy.js} +4 -4
- package/dist/{sensitive-input-BuYT6U6C.js.map → sensitive-input-DNFpycoy.js.map} +1 -1
- package/dist/src/command-line/utils/transformer.d.ts +8 -4
- package/dist/src/command-line/utils/transformer.d.ts.map +1 -1
- package/dist/src/components/clipboard-text/clipboard-text.d.ts +23 -0
- package/dist/src/components/clipboard-text/clipboard-text.d.ts.map +1 -1
- package/dist/src/components/date-picker/date-picker.d.ts +65 -0
- package/dist/src/components/date-picker/date-picker.d.ts.map +1 -0
- package/dist/src/components/date-picker/index.d.ts +4 -0
- package/dist/src/components/date-picker/index.d.ts.map +1 -0
- package/dist/src/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles/kumo-binding.css +0 -4
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/kumo.css +541 -0
- package/dist/{switch-Tu34uFoa.js → switch-CmsZ4z-g.js} +9 -9
- package/dist/{switch-Tu34uFoa.js.map → switch-CmsZ4z-g.js.map} +1 -1
- package/dist/{table-DtUrZ2Rj.js → table-Dc0AGcLV.js} +2 -2
- package/dist/{table-DtUrZ2Rj.js.map → table-Dc0AGcLV.js.map} +1 -1
- package/dist/{tabs-B7THfqHW.js → tabs-BpD1iUiz.js} +2 -2
- package/dist/{tabs-B7THfqHW.js.map → tabs-BpD1iUiz.js.map} +1 -1
- package/dist/{toast-Du4y8qng.js → toast-BrR0pjLE.js} +8 -8
- package/dist/{toast-Du4y8qng.js.map → toast-BrR0pjLE.js.map} +1 -1
- package/dist/{tooltip-BxV1H6AV.js → tooltip-daVJYtXY.js} +2 -2
- package/dist/{tooltip-BxV1H6AV.js.map → tooltip-daVJYtXY.js.map} +1 -1
- package/dist/{vendor-base-ui-CQ6wEonS.js → vendor-base-ui-9w7J6BvW.js} +7246 -7245
- package/dist/{vendor-base-ui-CQ6wEonS.js.map → vendor-base-ui-9w7J6BvW.js.map} +1 -1
- package/package.json +6 -1
- package/scripts/component-registry/discovery.ts +1 -7
- package/dist/clipboard-text-B32_yb2r.js +0 -108
- package/dist/clipboard-text-B32_yb2r.js.map +0 -1
- package/dist/combobox-C9koouxM.js.map +0 -1
- package/dist/dialog-CpCeOqSZ.js.map +0 -1
- package/dist/dropdown-DFeFcKfn.js.map +0 -1
- package/dist/menubar-CbXWXQYR.js.map +0 -1
|
@@ -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 v(e) {
|
|
159
159
|
const t = e;
|
|
160
160
|
if (!t)
|
|
161
161
|
return {};
|
|
@@ -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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(t),
|
|
2008
2008
|
value: e,
|
|
2009
2009
|
inclusive: !1
|
|
2010
2010
|
});
|
|
@@ -2013,7 +2013,7 @@ function Fe(e, t) {
|
|
|
2013
2013
|
function me(e, t) {
|
|
2014
2014
|
return new st({
|
|
2015
2015
|
check: "greater_than",
|
|
2016
|
-
...
|
|
2016
|
+
...v(t),
|
|
2017
2017
|
value: e,
|
|
2018
2018
|
inclusive: !0
|
|
2019
2019
|
});
|
|
@@ -2022,7 +2022,7 @@ function me(e, t) {
|
|
|
2022
2022
|
function Le(e, t) {
|
|
2023
2023
|
return new So({
|
|
2024
2024
|
check: "multiple_of",
|
|
2025
|
-
...
|
|
2025
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(t),
|
|
2102
2102
|
suffix: e
|
|
2103
2103
|
});
|
|
2104
2104
|
}
|
|
@@ -2137,7 +2137,7 @@ function Zr(e, t, o) {
|
|
|
2137
2137
|
// get element() {
|
|
2138
2138
|
// return element;
|
|
2139
2139
|
// },
|
|
2140
|
-
...
|
|
2140
|
+
...v(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
|
+
...v(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
|
+
...v(t)
|
|
2169
2169
|
});
|
|
2170
2170
|
return o._zod.check = e, o;
|
|
2171
2171
|
}
|
|
@@ -2744,13 +2744,13 @@ function L(e, t) {
|
|
|
2744
2744
|
return /* @__PURE__ */ Zr(Wi, e, t);
|
|
2745
2745
|
}
|
|
2746
2746
|
const Ki = /* @__PURE__ */ d("ZodObject", (e, t) => {
|
|
2747
|
-
vn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Mr(e, o, n, r), S(e, "shape", () => t.shape), e.keyof = () =>
|
|
2747
|
+
vn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (o, n, r) => Mr(e, o, n, r), S(e, "shape", () => t.shape), e.keyof = () => b(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 _(e, t) {
|
|
2750
2750
|
const o = {
|
|
2751
2751
|
type: "object",
|
|
2752
2752
|
shape: e ?? {},
|
|
2753
|
-
...
|
|
2753
|
+
...v(t)
|
|
2754
2754
|
};
|
|
2755
2755
|
return new Ki(o);
|
|
2756
2756
|
}
|
|
@@ -2761,7 +2761,7 @@ function k(e, t) {
|
|
|
2761
2761
|
return new qi({
|
|
2762
2762
|
type: "union",
|
|
2763
2763
|
options: e,
|
|
2764
|
-
...
|
|
2764
|
+
...v(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
|
+
...v(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
|
+
...v(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
|
+
...v(r),
|
|
2817
2817
|
entries: a
|
|
2818
2818
|
});
|
|
2819
2819
|
}, e.exclude = (n, r) => {
|
|
@@ -2826,17 +2826,17 @@ const ve = /* @__PURE__ */ d("ZodEnum", (e, t) => {
|
|
|
2826
2826
|
return new ve({
|
|
2827
2827
|
...t,
|
|
2828
2828
|
checks: [],
|
|
2829
|
-
...
|
|
2829
|
+
...v(r),
|
|
2830
2830
|
entries: a
|
|
2831
2831
|
});
|
|
2832
2832
|
};
|
|
2833
2833
|
});
|
|
2834
|
-
function
|
|
2834
|
+
function b(e, t) {
|
|
2835
2835
|
const o = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
|
|
2836
2836
|
return new ve({
|
|
2837
2837
|
type: "enum",
|
|
2838
2838
|
entries: o,
|
|
2839
|
-
...
|
|
2839
|
+
...v(t)
|
|
2840
2840
|
});
|
|
2841
2841
|
}
|
|
2842
2842
|
const Qi = /* @__PURE__ */ d("ZodTransform", (e, t) => {
|
|
@@ -2919,7 +2919,7 @@ function ca(e, t) {
|
|
|
2919
2919
|
return new wt({
|
|
2920
2920
|
type: "nonoptional",
|
|
2921
2921
|
innerType: e,
|
|
2922
|
-
...
|
|
2922
|
+
...v(t)
|
|
2923
2923
|
});
|
|
2924
2924
|
}
|
|
2925
2925
|
const ua = /* @__PURE__ */ d("ZodCatch", (e, t) => {
|
|
@@ -2975,64 +2975,64 @@ const g = k([
|
|
|
2975
2975
|
y(),
|
|
2976
2976
|
h(),
|
|
2977
2977
|
w(),
|
|
2978
|
-
|
|
2978
|
+
_({ path: c() })
|
|
2979
2979
|
]), ie = ma(
|
|
2980
2980
|
() => k([
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2981
|
+
_({ and: L(ie) }),
|
|
2982
|
+
_({ or: L(ie) }),
|
|
2983
|
+
_({ not: ie }),
|
|
2984
|
+
_({ path: c() }),
|
|
2985
|
+
_({ eq: W([g, g]) }),
|
|
2986
|
+
_({ neq: W([g, g]) }),
|
|
2987
|
+
_({ gt: W([g, g]) }),
|
|
2988
|
+
_({ gte: W([g, g]) }),
|
|
2989
|
+
_({ lt: W([g, g]) }),
|
|
2990
|
+
_({ lte: W([g, g]) })
|
|
2991
2991
|
])
|
|
2992
2992
|
), ba = k([
|
|
2993
2993
|
h(),
|
|
2994
|
-
|
|
2995
|
-
|
|
2994
|
+
_({ path: c() }),
|
|
2995
|
+
_({ auth: b(["signedIn", "signedOut"]) }),
|
|
2996
2996
|
ie
|
|
2997
|
-
]), ya =
|
|
2997
|
+
]), ya = _({
|
|
2998
2998
|
title: c(),
|
|
2999
2999
|
message: c(),
|
|
3000
|
-
variant:
|
|
3000
|
+
variant: b(["default", "danger"]).optional(),
|
|
3001
3001
|
confirmLabel: c().optional(),
|
|
3002
3002
|
cancelLabel: c().optional()
|
|
3003
|
-
}), za =
|
|
3003
|
+
}), za = _({
|
|
3004
3004
|
name: c(),
|
|
3005
3005
|
params: H(c(), g).optional(),
|
|
3006
3006
|
confirm: ya.optional(),
|
|
3007
|
-
onSuccess:
|
|
3008
|
-
onError:
|
|
3009
|
-
}), ka =
|
|
3010
|
-
variant:
|
|
3007
|
+
onSuccess: _({ set: H(c(), g) }).optional(),
|
|
3008
|
+
onError: _({ set: H(c(), g) }).optional()
|
|
3009
|
+
}), ka = _({
|
|
3010
|
+
variant: b(["primary", "secondary", "destructive", "outline", "beta"]).optional(),
|
|
3011
3011
|
// Visual style of the badge. - `"primary"` — High-emphasis badge for important labels - `"secondary"` — Subtle badge for secondary information - `"destructive"` — Error or danger state indicator - `"outline"` — Bordered badge with transparent background - `"beta"` — Dashed-border badge for beta/experimental features
|
|
3012
3012
|
className: c().optional(),
|
|
3013
3013
|
// Additional CSS classes merged via `cn()`.
|
|
3014
3014
|
children: k([c(), y(), h(), w(), g]).optional()
|
|
3015
3015
|
// Content rendered inside the badge.
|
|
3016
|
-
}), wa =
|
|
3016
|
+
}), wa = _({
|
|
3017
3017
|
icon: k([c(), y(), h(), w(), g]).optional(),
|
|
3018
3018
|
// Icon element rendered before the banner text (e.g. from `@phosphor-icons/react`).
|
|
3019
3019
|
text: c().optional(),
|
|
3020
3020
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3021
3021
|
// Banner message content. Accepts strings or custom React elements.
|
|
3022
|
-
variant:
|
|
3022
|
+
variant: b(["default", "alert", "error"]).optional(),
|
|
3023
3023
|
// Visual style of the banner. - `"default"` — Informational blue banner for general messages - `"alert"` — Warning yellow banner for cautionary messages - `"error"` — Error red banner for critical issues
|
|
3024
3024
|
className: c().optional()
|
|
3025
3025
|
// Additional CSS classes merged via `cn()`.
|
|
3026
|
-
}), $a =
|
|
3027
|
-
size:
|
|
3026
|
+
}), $a = _({
|
|
3027
|
+
size: b(["sm", "base"]).optional(),
|
|
3028
3028
|
// Size of the breadcrumbs. - `"sm"` — Compact breadcrumbs for dense UIs - `"base"` — Default breadcrumbs size
|
|
3029
3029
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3030
3030
|
className: c().optional()
|
|
3031
3031
|
// Additional CSS classes merged via `cn()`.
|
|
3032
|
-
}), Sa =
|
|
3033
|
-
shape:
|
|
3034
|
-
size:
|
|
3035
|
-
variant:
|
|
3032
|
+
}), Sa = _({
|
|
3033
|
+
shape: b(["base", "square", "circle"]).optional(),
|
|
3034
|
+
size: b(["xs", "sm", "base", "lg"]).optional(),
|
|
3035
|
+
variant: b(["primary", "secondary", "ghost", "destructive", "secondary-destructive", "outline"]).optional(),
|
|
3036
3036
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3037
3037
|
className: c().optional(),
|
|
3038
3038
|
icon: k([c(), y(), h(), w(), g]).optional(),
|
|
@@ -3044,10 +3044,10 @@ const g = k([
|
|
|
3044
3044
|
title: c().optional(),
|
|
3045
3045
|
disabled: h().optional(),
|
|
3046
3046
|
name: c().optional(),
|
|
3047
|
-
type:
|
|
3047
|
+
type: b(["submit", "reset", "button"]).optional(),
|
|
3048
3048
|
value: s().optional()
|
|
3049
|
-
}), Za =
|
|
3050
|
-
variant:
|
|
3049
|
+
}), Za = _({
|
|
3050
|
+
variant: b(["default", "error"]).optional(),
|
|
3051
3051
|
// Visual variant: "default" or "error" for validation failures (visual only, no error text)
|
|
3052
3052
|
label: k([c(), y(), h(), w(), g]).optional(),
|
|
3053
3053
|
// Label content for the checkbox (enables built-in Field wrapper) - can be a string or any React node
|
|
@@ -3069,14 +3069,18 @@ const g = k([
|
|
|
3069
3069
|
// Additional class name
|
|
3070
3070
|
onValueChange: s().optional()
|
|
3071
3071
|
// Callback when checkbox value changes
|
|
3072
|
-
}), Pa =
|
|
3073
|
-
size:
|
|
3072
|
+
}), Pa = _({
|
|
3073
|
+
size: b(["sm", "base", "lg"]).optional(),
|
|
3074
3074
|
// Size of the clipboard text field. - `"sm"` — Small clipboard text for compact UIs - `"base"` — Default clipboard text size - `"lg"` — Large clipboard text for prominent display
|
|
3075
3075
|
text: c(),
|
|
3076
3076
|
// The text to display and copy to clipboard.
|
|
3077
|
-
className: c().optional()
|
|
3077
|
+
className: c().optional(),
|
|
3078
3078
|
// Additional CSS classes merged via `cn()`.
|
|
3079
|
-
|
|
3079
|
+
tooltip: s().optional(),
|
|
3080
|
+
// Tooltip config. Shows tooltip on hover, anchored toast on click.
|
|
3081
|
+
labels: s().optional()
|
|
3082
|
+
// Accessible labels for i18n.
|
|
3083
|
+
}), Oa = _({
|
|
3080
3084
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3081
3085
|
className: c().optional(),
|
|
3082
3086
|
height: s().optional(),
|
|
@@ -3089,13 +3093,13 @@ const g = k([
|
|
|
3089
3093
|
type: c().optional(),
|
|
3090
3094
|
width: s().optional(),
|
|
3091
3095
|
accentHeight: s().optional(),
|
|
3092
|
-
accumulate:
|
|
3093
|
-
additive:
|
|
3094
|
-
alignmentBaseline:
|
|
3095
|
-
allowReorder:
|
|
3096
|
+
accumulate: b(["none", "sum"]).optional(),
|
|
3097
|
+
additive: b(["replace", "sum"]).optional(),
|
|
3098
|
+
alignmentBaseline: b(["auto", "baseline", "before-edge", "text-before-edge", "middle", "central", "after-edge", "text-after-edge", "ideographic", "alphabetic", "hanging", "mathematical", "inherit"]).optional(),
|
|
3099
|
+
allowReorder: b(["no", "yes"]).optional(),
|
|
3096
3100
|
alphabetic: s().optional(),
|
|
3097
3101
|
amplitude: s().optional(),
|
|
3098
|
-
arabicForm:
|
|
3102
|
+
arabicForm: b(["initial", "medial", "terminal", "isolated"]).optional(),
|
|
3099
3103
|
ascent: s().optional(),
|
|
3100
3104
|
attributeName: c().optional(),
|
|
3101
3105
|
attributeType: c().optional(),
|
|
@@ -3115,7 +3119,7 @@ const g = k([
|
|
|
3115
3119
|
clipPathUnits: s().optional(),
|
|
3116
3120
|
clipRule: s().optional(),
|
|
3117
3121
|
colorInterpolation: s().optional(),
|
|
3118
|
-
colorInterpolationFilters:
|
|
3122
|
+
colorInterpolationFilters: b(["auto", "sRGB", "linearRGB", "inherit"]).optional(),
|
|
3119
3123
|
colorProfile: s().optional(),
|
|
3120
3124
|
colorRendering: s().optional(),
|
|
3121
3125
|
contentScriptType: s().optional(),
|
|
@@ -3130,7 +3134,7 @@ const g = k([
|
|
|
3130
3134
|
direction: s().optional(),
|
|
3131
3135
|
display: s().optional(),
|
|
3132
3136
|
divisor: s().optional(),
|
|
3133
|
-
dominantBaseline:
|
|
3137
|
+
dominantBaseline: b(["auto", "use-script", "no-change", "reset-size", "ideographic", "alphabetic", "hanging", "mathematical", "central", "middle", "text-after-edge", "text-before-edge", "inherit"]).optional(),
|
|
3134
3138
|
dur: s().optional(),
|
|
3135
3139
|
dx: s().optional(),
|
|
3136
3140
|
dy: s().optional(),
|
|
@@ -3142,7 +3146,7 @@ const g = k([
|
|
|
3142
3146
|
externalResourcesRequired: s().optional(),
|
|
3143
3147
|
fill: c().optional(),
|
|
3144
3148
|
fillOpacity: s().optional(),
|
|
3145
|
-
fillRule:
|
|
3149
|
+
fillRule: b(["nonzero", "evenodd", "inherit"]).optional(),
|
|
3146
3150
|
filter: c().optional(),
|
|
3147
3151
|
filterRes: s().optional(),
|
|
3148
3152
|
filterUnits: s().optional(),
|
|
@@ -3267,8 +3271,8 @@ const g = k([
|
|
|
3267
3271
|
stroke: c().optional(),
|
|
3268
3272
|
strokeDasharray: s().optional(),
|
|
3269
3273
|
strokeDashoffset: s().optional(),
|
|
3270
|
-
strokeLinecap:
|
|
3271
|
-
strokeLinejoin:
|
|
3274
|
+
strokeLinecap: b(["butt", "round", "square", "inherit"]).optional(),
|
|
3275
|
+
strokeLinejoin: b(["miter", "round", "bevel", "inherit"]).optional(),
|
|
3272
3276
|
strokeMiterlimit: s().optional(),
|
|
3273
3277
|
strokeOpacity: s().optional(),
|
|
3274
3278
|
strokeWidth: s().optional(),
|
|
@@ -3277,7 +3281,7 @@ const g = k([
|
|
|
3277
3281
|
tableValues: s().optional(),
|
|
3278
3282
|
targetX: s().optional(),
|
|
3279
3283
|
targetY: s().optional(),
|
|
3280
|
-
textAnchor:
|
|
3284
|
+
textAnchor: b(["start", "middle", "end", "inherit"]).optional(),
|
|
3281
3285
|
textDecoration: s().optional(),
|
|
3282
3286
|
textLength: s().optional(),
|
|
3283
3287
|
textRendering: s().optional(),
|
|
@@ -3330,10 +3334,10 @@ const g = k([
|
|
|
3330
3334
|
yChannelSelector: c().optional(),
|
|
3331
3335
|
z: s().optional(),
|
|
3332
3336
|
zoomAndPan: c().optional(),
|
|
3333
|
-
variant:
|
|
3337
|
+
variant: b(["glyph", "full"]).optional()
|
|
3334
3338
|
// Logo variant - `glyph`: Cloud icon only - `full`: Cloud icon with "CLOUDFLARE" wordmark below
|
|
3335
|
-
}), Ta =
|
|
3336
|
-
lang:
|
|
3339
|
+
}), Ta = _({
|
|
3340
|
+
lang: b(["ts", "tsx", "jsonc", "bash", "css"]).optional(),
|
|
3337
3341
|
// Language hint for the code content. - `"ts"` — TypeScript code - `"tsx"` — TypeScript JSX code - `"jsonc"` — JSON with comments - `"bash"` — Shell/Bash commands - `"css"` — CSS styles
|
|
3338
3342
|
code: c(),
|
|
3339
3343
|
// The code string to display.
|
|
@@ -3341,7 +3345,7 @@ const g = k([
|
|
|
3341
3345
|
// Template values for `{{key}}` interpolation. Values with `highlight: true` are visually emphasized.
|
|
3342
3346
|
className: c().optional()
|
|
3343
3347
|
// Additional CSS classes merged via `cn()`.
|
|
3344
|
-
}), Ia =
|
|
3348
|
+
}), Ia = _({
|
|
3345
3349
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3346
3350
|
label: c(),
|
|
3347
3351
|
// Text label displayed in the trigger button
|
|
@@ -3351,8 +3355,8 @@ const g = k([
|
|
|
3351
3355
|
// Additional CSS classes for the content panel
|
|
3352
3356
|
onOpenChange: s().optional()
|
|
3353
3357
|
// Callback when collapsed state changes
|
|
3354
|
-
}), Na =
|
|
3355
|
-
inputSide:
|
|
3358
|
+
}), Na = _({
|
|
3359
|
+
inputSide: b(["right", "top"]).optional(),
|
|
3356
3360
|
// Position of the text input relative to chips in multi-select mode. - `"right"` — Input inline to the right of chips - `"top"` — Input above chips
|
|
3357
3361
|
items: L(s()),
|
|
3358
3362
|
// Array of items to display in the dropdown
|
|
@@ -3378,15 +3382,20 @@ const g = k([
|
|
|
3378
3382
|
// Allow multiple selections
|
|
3379
3383
|
isItemEqualToValue: s().optional()
|
|
3380
3384
|
// Custom equality function for comparing items
|
|
3381
|
-
}), Ea =
|
|
3385
|
+
}), Ea = _({
|
|
3382
3386
|
open: h(),
|
|
3383
3387
|
// Whether the dialog is open
|
|
3384
3388
|
children: k([c(), y(), h(), w(), g]).optional()
|
|
3385
3389
|
// Child content - typically one or more Panel components
|
|
3386
|
-
}), Ca =
|
|
3387
|
-
|
|
3390
|
+
}), Ca = _({
|
|
3391
|
+
className: c().optional(),
|
|
3392
|
+
// Additional CSS classes
|
|
3393
|
+
children: k([c(), y(), h(), w(), g]).optional()
|
|
3394
|
+
// Child elements
|
|
3395
|
+
}), Aa = _({
|
|
3396
|
+
size: b(["sm", "base", "lg"]).optional(),
|
|
3388
3397
|
// Calendar size. - `"sm"` — Compact calendar for tight spaces - `"base"` — Default calendar size - `"lg"` — Large calendar for prominent date selection
|
|
3389
|
-
variant:
|
|
3398
|
+
variant: b(["default", "subtle"]).optional(),
|
|
3390
3399
|
// Visual variant. - `"default"` — Standard appearance with overlay background - `"subtle"` — Minimal background
|
|
3391
3400
|
timezone: c().optional(),
|
|
3392
3401
|
// Display timezone string shown in the footer.
|
|
@@ -3396,18 +3405,18 @@ const g = k([
|
|
|
3396
3405
|
// Callback when start date changes
|
|
3397
3406
|
onEndDateChange: s().optional()
|
|
3398
3407
|
// Callback when end date changes
|
|
3399
|
-
}),
|
|
3408
|
+
}), xa = _({
|
|
3400
3409
|
className: c().optional(),
|
|
3401
3410
|
// Additional CSS classes merged via `cn()`.
|
|
3402
3411
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3403
3412
|
// Dialog content (typically Title, Description, Close, and action buttons).
|
|
3404
|
-
size:
|
|
3413
|
+
size: b(["base", "sm", "lg", "xl"]).optional()
|
|
3405
3414
|
// 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
|
|
3406
|
-
}),
|
|
3407
|
-
variant:
|
|
3415
|
+
}), ja = _({
|
|
3416
|
+
variant: b(["default", "danger"]).optional()
|
|
3408
3417
|
// Visual style of the dropdown item. - `"default"` — Standard item appearance - `"danger"` — Destructive action with red text
|
|
3409
|
-
}),
|
|
3410
|
-
size:
|
|
3418
|
+
}), Ra = _({
|
|
3419
|
+
size: b(["sm", "base", "lg"]).optional(),
|
|
3411
3420
|
// 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
|
|
3412
3421
|
icon: k([c(), y(), h(), w(), g]).optional(),
|
|
3413
3422
|
// Decorative icon displayed above the title (e.g. from `@phosphor-icons/react`).
|
|
@@ -3421,7 +3430,7 @@ const g = k([
|
|
|
3421
3430
|
// Additional content (buttons, links) rendered below the description.
|
|
3422
3431
|
className: c().optional()
|
|
3423
3432
|
// Additional CSS classes merged via `cn()`.
|
|
3424
|
-
}),
|
|
3433
|
+
}), Da = _({
|
|
3425
3434
|
controlFirst: h().optional(),
|
|
3426
3435
|
// When `true`, places the control before the label (for checkbox/switch layouts).
|
|
3427
3436
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
@@ -3436,7 +3445,7 @@ const g = k([
|
|
|
3436
3445
|
// Validation error with a message and a browser `ValidityState` match key.
|
|
3437
3446
|
description: k([c(), y(), h(), w(), g]).optional()
|
|
3438
3447
|
// Helper text displayed below the control (hidden when `error` is present).
|
|
3439
|
-
}),
|
|
3448
|
+
}), Ua = _({
|
|
3440
3449
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3441
3450
|
// Grid items to render.
|
|
3442
3451
|
className: c().optional(),
|
|
@@ -3446,11 +3455,11 @@ const g = k([
|
|
|
3446
3455
|
title: c().optional(),
|
|
3447
3456
|
mobileDivider: h().optional(),
|
|
3448
3457
|
// Show dividers between grid items on mobile (only works with `"4up"` variant).
|
|
3449
|
-
gap:
|
|
3458
|
+
gap: b(["none", "sm", "base", "lg"]).optional(),
|
|
3450
3459
|
// Gap size between grid items. - `"none"` — No gap - `"sm"` — 12px gap - `"base"` — Responsive gap (8px → 24px → 32px) - `"lg"` — 32px gap
|
|
3451
|
-
variant:
|
|
3460
|
+
variant: b(["2up", "side-by-side", "2-1", "1-2", "1-3up", "3up", "4up", "6up", "1-2-4up"]).optional()
|
|
3452
3461
|
// 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
|
|
3453
|
-
}),
|
|
3462
|
+
}), Fa = _({
|
|
3454
3463
|
label: k([c(), y(), h(), w(), g]).optional(),
|
|
3455
3464
|
// Label content for the input (enables Field wrapper) - can be a string or any React node
|
|
3456
3465
|
labelTooltip: k([c(), y(), h(), w(), g]).optional(),
|
|
@@ -3459,11 +3468,11 @@ const g = k([
|
|
|
3459
3468
|
// Helper text displayed below the input
|
|
3460
3469
|
error: s().optional(),
|
|
3461
3470
|
// Error message or validation error object
|
|
3462
|
-
size:
|
|
3471
|
+
size: b(["xs", "sm", "base", "lg"]).optional(),
|
|
3463
3472
|
// Input size. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default size - `"lg"` — Large for prominent fields
|
|
3464
|
-
variant:
|
|
3473
|
+
variant: b(["default", "error"]).optional()
|
|
3465
3474
|
// Visual variant. - `"default"` — Standard input - `"error"` — Error state for validation failures
|
|
3466
|
-
}),
|
|
3475
|
+
}), La = _({}), Ma = _({
|
|
3467
3476
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3468
3477
|
// The label content — can be a string or any React node.
|
|
3469
3478
|
showOptional: h().optional(),
|
|
@@ -3476,12 +3485,12 @@ const g = k([
|
|
|
3476
3485
|
// The id of the form element this label is associated with
|
|
3477
3486
|
asContent: h().optional()
|
|
3478
3487
|
// 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.
|
|
3479
|
-
}),
|
|
3488
|
+
}), Ja = _({
|
|
3480
3489
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3481
3490
|
className: c().optional()
|
|
3482
3491
|
// Additional CSS classes merged via `cn()`.
|
|
3483
|
-
}),
|
|
3484
|
-
variant:
|
|
3492
|
+
}), Ba = _({
|
|
3493
|
+
variant: b(["inline", "current", "plain"]).optional(),
|
|
3485
3494
|
// 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
|
|
3486
3495
|
to: c().optional(),
|
|
3487
3496
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
@@ -3496,15 +3505,15 @@ const g = k([
|
|
|
3496
3505
|
ping: c().optional(),
|
|
3497
3506
|
target: s().optional(),
|
|
3498
3507
|
type: c().optional(),
|
|
3499
|
-
referrerPolicy:
|
|
3508
|
+
referrerPolicy: b(["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"]).optional(),
|
|
3500
3509
|
render: k([c(), y(), h(), w(), g]).optional()
|
|
3501
3510
|
// 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.
|
|
3502
|
-
}),
|
|
3511
|
+
}), Va = _({
|
|
3503
3512
|
className: c().optional(),
|
|
3504
3513
|
// Additional CSS classes merged via `cn()`.
|
|
3505
|
-
size:
|
|
3514
|
+
size: b(["sm", "base", "lg"]).optional()
|
|
3506
3515
|
// 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
|
|
3507
|
-
}),
|
|
3516
|
+
}), Wa = _({
|
|
3508
3517
|
className: c().optional(),
|
|
3509
3518
|
// Additional CSS classes merged via `cn()`.
|
|
3510
3519
|
isActive: s().optional(),
|
|
@@ -3513,7 +3522,7 @@ const g = k([
|
|
|
3513
3522
|
// Array of menu option configurations.
|
|
3514
3523
|
optionIds: h().optional()
|
|
3515
3524
|
// When true, each option's `id` field is used for matching instead of its array index.
|
|
3516
|
-
}),
|
|
3525
|
+
}), Ka = _({
|
|
3517
3526
|
customValue: c().optional(),
|
|
3518
3527
|
// Custom formatted value text (e.g. "750 / 1,000") displayed instead of percentage.
|
|
3519
3528
|
label: c(),
|
|
@@ -3530,8 +3539,8 @@ const g = k([
|
|
|
3530
3539
|
// Maximum value of the meter (default: 100)
|
|
3531
3540
|
min: y().optional()
|
|
3532
3541
|
// Minimum value of the meter (default: 0)
|
|
3533
|
-
}),
|
|
3534
|
-
controls:
|
|
3542
|
+
}), qa = _({
|
|
3543
|
+
controls: b(["full", "simple"]).optional(),
|
|
3535
3544
|
setPage: s(),
|
|
3536
3545
|
// Callback when page changes
|
|
3537
3546
|
page: y().optional(),
|
|
@@ -3542,15 +3551,15 @@ const g = k([
|
|
|
3542
3551
|
// Total number of items across all pages.
|
|
3543
3552
|
text: s().optional()
|
|
3544
3553
|
// Method to provide custom pagination text
|
|
3545
|
-
}),
|
|
3546
|
-
side:
|
|
3554
|
+
}), Ga = _({
|
|
3555
|
+
side: b(["top", "bottom", "left", "right"]).optional()
|
|
3547
3556
|
// 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
|
|
3548
|
-
}),
|
|
3557
|
+
}), Xa = _({
|
|
3549
3558
|
legend: c(),
|
|
3550
3559
|
// Legend text for the group (required for accessibility)
|
|
3551
3560
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3552
3561
|
// Child Radio.Item components
|
|
3553
|
-
orientation:
|
|
3562
|
+
orientation: b(["vertical", "horizontal"]).optional(),
|
|
3554
3563
|
// Layout direction of the radio items
|
|
3555
3564
|
error: c().optional(),
|
|
3556
3565
|
// Error message for the group
|
|
@@ -3560,13 +3569,13 @@ const g = k([
|
|
|
3560
3569
|
// Value of the radio that should be selected (controlled)
|
|
3561
3570
|
disabled: h().optional(),
|
|
3562
3571
|
// Whether all radios in the group are disabled
|
|
3563
|
-
controlPosition:
|
|
3572
|
+
controlPosition: b(["start", "end"]).optional(),
|
|
3564
3573
|
// Position of radio control relative to label: "start" (default) puts radio before label, "end" puts label before radio
|
|
3565
3574
|
name: c().optional(),
|
|
3566
3575
|
// Form submission name for the radio group
|
|
3567
3576
|
className: c().optional()
|
|
3568
3577
|
// Additional CSS classes
|
|
3569
|
-
}),
|
|
3578
|
+
}), Ya = _({
|
|
3570
3579
|
className: c().optional(),
|
|
3571
3580
|
// Additional CSS classes merged via `cn()`.
|
|
3572
3581
|
label: k([c(), y(), h(), w(), g]).optional(),
|
|
@@ -3595,7 +3604,7 @@ const g = k([
|
|
|
3595
3604
|
// Callback when selection changes
|
|
3596
3605
|
defaultValue: c().optional()
|
|
3597
3606
|
// Initial value for uncontrolled mode
|
|
3598
|
-
}),
|
|
3607
|
+
}), Ha = _({
|
|
3599
3608
|
alt: c().optional(),
|
|
3600
3609
|
autoComplete: s().optional(),
|
|
3601
3610
|
checked: h().optional(),
|
|
@@ -3614,9 +3623,9 @@ const g = k([
|
|
|
3614
3623
|
children: k([c(), y(), h(), w(), g]).optional(),
|
|
3615
3624
|
value: c().optional(),
|
|
3616
3625
|
// Controlled value
|
|
3617
|
-
size:
|
|
3626
|
+
size: b(["xs", "sm", "base", "lg"]).optional(),
|
|
3618
3627
|
// Size of the input. - `"xs"` — Extra small for compact UIs - `"sm"` — Small for secondary fields - `"base"` — Default input size - `"lg"` — Large for prominent fields
|
|
3619
|
-
variant:
|
|
3628
|
+
variant: b(["default", "error"]).optional(),
|
|
3620
3629
|
// Style variant of the input. - `"default"` — Default input appearance - `"error"` — Error state for validation failures
|
|
3621
3630
|
label: k([c(), y(), h(), w(), g]).optional(),
|
|
3622
3631
|
// Label content for the input (enables Field wrapper and sets masked state label) - can be a string or any React node
|
|
@@ -3626,15 +3635,15 @@ const g = k([
|
|
|
3626
3635
|
// Helper text displayed below the input
|
|
3627
3636
|
error: s().optional()
|
|
3628
3637
|
// Error message or validation error object
|
|
3629
|
-
}),
|
|
3638
|
+
}), Qa = _({
|
|
3630
3639
|
as: s().optional(),
|
|
3631
3640
|
// The HTML element type to render as (e.g. `"div"`, `"section"`, `"article"`).
|
|
3632
3641
|
className: c().optional(),
|
|
3633
3642
|
// Additional CSS classes merged via `cn()`.
|
|
3634
3643
|
children: k([c(), y(), h(), w(), g]).optional()
|
|
3635
3644
|
// Content rendered inside the surface.
|
|
3636
|
-
}),
|
|
3637
|
-
variant:
|
|
3645
|
+
}), es = _({
|
|
3646
|
+
variant: b(["default", "error"]).optional(),
|
|
3638
3647
|
// Visual variant: "default" or "error" for validation failures (visual only, no error text)
|
|
3639
3648
|
label: k([c(), y(), h(), w(), g]).optional(),
|
|
3640
3649
|
// 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.
|
|
@@ -3644,12 +3653,12 @@ const g = k([
|
|
|
3644
3653
|
// Whether the switch is required. When explicitly false, shows "(optional)" text after the label.
|
|
3645
3654
|
controlFirst: h().optional(),
|
|
3646
3655
|
// When true (default), switch appears before label. When false, label appears before switch.
|
|
3647
|
-
size:
|
|
3656
|
+
size: b(["sm", "base", "lg"]).optional(),
|
|
3648
3657
|
checked: h().optional(),
|
|
3649
3658
|
disabled: h().optional(),
|
|
3650
3659
|
transitioning: h().optional(),
|
|
3651
3660
|
name: c().optional(),
|
|
3652
|
-
type:
|
|
3661
|
+
type: b(["submit", "reset", "button"]).optional(),
|
|
3653
3662
|
value: s().optional(),
|
|
3654
3663
|
className: c().optional(),
|
|
3655
3664
|
id: c().optional(),
|
|
@@ -3657,14 +3666,14 @@ const g = k([
|
|
|
3657
3666
|
title: c().optional(),
|
|
3658
3667
|
onClick: s()
|
|
3659
3668
|
// Callback when switch is clicked
|
|
3660
|
-
}),
|
|
3661
|
-
layout:
|
|
3662
|
-
variant:
|
|
3669
|
+
}), ts = _({
|
|
3670
|
+
layout: b(["auto", "fixed"]).optional(),
|
|
3671
|
+
variant: b(["default", "selected"]).optional(),
|
|
3663
3672
|
className: c().optional(),
|
|
3664
3673
|
// Additional CSS classes
|
|
3665
3674
|
children: k([c(), y(), h(), w(), g]).optional()
|
|
3666
3675
|
// Child elements
|
|
3667
|
-
}),
|
|
3676
|
+
}), os = _({
|
|
3668
3677
|
tabs: L(s()).optional(),
|
|
3669
3678
|
// Array of tab items to render.
|
|
3670
3679
|
value: c().optional(),
|
|
@@ -3679,14 +3688,14 @@ const g = k([
|
|
|
3679
3688
|
// Additional CSS classes for the tab list element.
|
|
3680
3689
|
indicatorClassName: c().optional(),
|
|
3681
3690
|
// Additional CSS classes for the indicator element.
|
|
3682
|
-
variant:
|
|
3691
|
+
variant: b(["segmented", "underline"]).optional(),
|
|
3683
3692
|
// Tab style. - `"segmented"` — Pill-shaped indicator on a filled track - `"underline"` — Underline indicator below tab text
|
|
3684
3693
|
onValueChange: s().optional()
|
|
3685
3694
|
// Callback when active tab changes
|
|
3686
|
-
}),
|
|
3687
|
-
variant:
|
|
3695
|
+
}), ns = _({
|
|
3696
|
+
variant: b(["heading1", "heading2", "heading3", "body", "secondary", "success", "error", "mono", "mono-secondary"]).optional(),
|
|
3688
3697
|
// 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
|
|
3689
|
-
size:
|
|
3698
|
+
size: b(["xs", "sm", "base", "lg"]).optional(),
|
|
3690
3699
|
// Text size (only applies to body/secondary/success/error variants). - `"xs"` — 12px - `"sm"` — 14px - `"base"` — 16px - `"lg"` — 18px
|
|
3691
3700
|
bold: h().optional(),
|
|
3692
3701
|
// Whether to use bold font weight (only applies to body variants).
|
|
@@ -3694,24 +3703,24 @@ const g = k([
|
|
|
3694
3703
|
// The HTML element type to render as (e.g. `"span"`, `"p"`, `"h1"`). Auto-selected based on variant if omitted.
|
|
3695
3704
|
children: k([c(), y(), h(), w(), g]).optional()
|
|
3696
3705
|
// Text content.
|
|
3697
|
-
}),
|
|
3698
|
-
variant:
|
|
3706
|
+
}), rs = _({
|
|
3707
|
+
variant: b(["default", "error", "warning"]).optional(),
|
|
3699
3708
|
className: c().optional(),
|
|
3700
3709
|
// Additional CSS classes
|
|
3701
3710
|
children: k([c(), y(), h(), w(), g]).optional()
|
|
3702
3711
|
// Child elements
|
|
3703
|
-
}),
|
|
3704
|
-
align:
|
|
3712
|
+
}), is = _({
|
|
3713
|
+
align: b(["start", "center", "end"]).optional(),
|
|
3705
3714
|
// Alignment on the axis perpendicular to `side`. - `"start"` — Align to the start edge - `"center"` — Center-aligned - `"end"` — Align to the end edge
|
|
3706
3715
|
asChild: h().optional(),
|
|
3707
3716
|
// When `true`, the trigger wraps the child element instead of adding a wrapper.
|
|
3708
3717
|
className: c().optional(),
|
|
3709
3718
|
// Additional CSS classes merged via `cn()`.
|
|
3710
|
-
side:
|
|
3719
|
+
side: b(["top", "bottom", "left", "right"]).optional(),
|
|
3711
3720
|
// Preferred side of the trigger to render the tooltip. - `"top"` — Tooltip appears above the trigger - `"bottom"` — Tooltip appears below the trigger - `"left"` — Tooltip appears to the left of the trigger - `"right"` — Tooltip appears to the right of the trigger
|
|
3712
3721
|
content: k([c(), y(), h(), w(), g])
|
|
3713
3722
|
// Content to display in the tooltip
|
|
3714
|
-
}),
|
|
3723
|
+
}), as = b([
|
|
3715
3724
|
"Badge",
|
|
3716
3725
|
"Banner",
|
|
3717
3726
|
"Breadcrumbs",
|
|
@@ -3723,6 +3732,7 @@ const g = k([
|
|
|
3723
3732
|
"Collapsible",
|
|
3724
3733
|
"Combobox",
|
|
3725
3734
|
"CommandPalette",
|
|
3735
|
+
"DatePicker",
|
|
3726
3736
|
"DateRangePicker",
|
|
3727
3737
|
"Dialog",
|
|
3728
3738
|
"DropdownMenu",
|
|
@@ -3749,7 +3759,7 @@ const g = k([
|
|
|
3749
3759
|
"Text",
|
|
3750
3760
|
"Toasty",
|
|
3751
3761
|
"Tooltip"
|
|
3752
|
-
]),
|
|
3762
|
+
]), ss = {
|
|
3753
3763
|
Badge: ka,
|
|
3754
3764
|
Banner: wa,
|
|
3755
3765
|
Breadcrumbs: $a,
|
|
@@ -3761,52 +3771,53 @@ const g = k([
|
|
|
3761
3771
|
Collapsible: Ia,
|
|
3762
3772
|
Combobox: Na,
|
|
3763
3773
|
CommandPalette: Ea,
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3774
|
+
DatePicker: Ca,
|
|
3775
|
+
DateRangePicker: Aa,
|
|
3776
|
+
Dialog: xa,
|
|
3777
|
+
DropdownMenu: ja,
|
|
3778
|
+
Empty: Ra,
|
|
3779
|
+
Field: Da,
|
|
3780
|
+
Grid: Ua,
|
|
3781
|
+
Input: Fa,
|
|
3782
|
+
InputArea: La,
|
|
3783
|
+
Label: Ma,
|
|
3784
|
+
LayerCard: Ja,
|
|
3785
|
+
Link: Ba,
|
|
3786
|
+
Loader: Va,
|
|
3787
|
+
MenuBar: Wa,
|
|
3788
|
+
Meter: Ka,
|
|
3789
|
+
Pagination: qa,
|
|
3790
|
+
Popover: Ga,
|
|
3791
|
+
Radio: Xa,
|
|
3792
|
+
Select: Ya,
|
|
3793
|
+
SensitiveInput: Ha,
|
|
3794
|
+
Surface: Qa,
|
|
3795
|
+
Switch: es,
|
|
3796
|
+
Table: ts,
|
|
3797
|
+
Tabs: os,
|
|
3798
|
+
Text: ns,
|
|
3799
|
+
Toasty: rs,
|
|
3800
|
+
Tooltip: is
|
|
3801
|
+
}, cs = _({
|
|
3791
3802
|
key: c(),
|
|
3792
|
-
type:
|
|
3803
|
+
type: as,
|
|
3793
3804
|
props: H(c(), s()),
|
|
3794
3805
|
children: L(c()).optional(),
|
|
3795
3806
|
parentKey: c().nullable().optional(),
|
|
3796
3807
|
visible: ba.optional(),
|
|
3797
3808
|
action: za.optional()
|
|
3798
|
-
}),
|
|
3809
|
+
}), us = _({
|
|
3799
3810
|
root: c(),
|
|
3800
|
-
elements: H(c(),
|
|
3811
|
+
elements: H(c(), cs)
|
|
3801
3812
|
});
|
|
3802
|
-
function
|
|
3803
|
-
const t =
|
|
3813
|
+
function ps(e) {
|
|
3814
|
+
const t = ss[e.type];
|
|
3804
3815
|
return t ? t.safeParse(e.props) : { success: !1, error: new ui([{ code: "custom", message: `Unknown component type: ${e.type}`, path: ["type"] }]) };
|
|
3805
3816
|
}
|
|
3806
|
-
function
|
|
3807
|
-
return
|
|
3817
|
+
function ds(e) {
|
|
3818
|
+
return us.safeParse(e);
|
|
3808
3819
|
}
|
|
3809
|
-
const
|
|
3820
|
+
const fs = ["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", "Surface", "Switch", "Table", "Tabs", "Text", "Toasty", "Tooltip"];
|
|
3810
3821
|
export {
|
|
3811
3822
|
ya as ActionConfirmSchema,
|
|
3812
3823
|
za as ActionSchema,
|
|
@@ -3821,40 +3832,41 @@ export {
|
|
|
3821
3832
|
Ia as CollapsiblePropsSchema,
|
|
3822
3833
|
Na as ComboboxPropsSchema,
|
|
3823
3834
|
Ea as CommandPalettePropsSchema,
|
|
3824
|
-
|
|
3825
|
-
Ca as
|
|
3826
|
-
Aa as
|
|
3827
|
-
xa as
|
|
3835
|
+
ss as ComponentPropsSchemas,
|
|
3836
|
+
Ca as DatePickerPropsSchema,
|
|
3837
|
+
Aa as DateRangePickerPropsSchema,
|
|
3838
|
+
xa as DialogPropsSchema,
|
|
3839
|
+
ja as DropdownMenuPropsSchema,
|
|
3828
3840
|
g as DynamicValueSchema,
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3841
|
+
Ra as EmptyPropsSchema,
|
|
3842
|
+
Da as FieldPropsSchema,
|
|
3843
|
+
Ua as GridPropsSchema,
|
|
3844
|
+
La as InputAreaPropsSchema,
|
|
3845
|
+
Fa as InputPropsSchema,
|
|
3846
|
+
fs as KUMO_COMPONENT_NAMES,
|
|
3847
|
+
as as KumoComponentTypeSchema,
|
|
3848
|
+
Ma as LabelPropsSchema,
|
|
3849
|
+
Ja as LayerCardPropsSchema,
|
|
3850
|
+
Ba as LinkPropsSchema,
|
|
3851
|
+
Va as LoaderPropsSchema,
|
|
3852
|
+
Wa as MenuBarPropsSchema,
|
|
3853
|
+
Ka as MeterPropsSchema,
|
|
3854
|
+
qa as PaginationPropsSchema,
|
|
3855
|
+
Ga as PopoverPropsSchema,
|
|
3856
|
+
Xa as RadioPropsSchema,
|
|
3857
|
+
Ya as SelectPropsSchema,
|
|
3858
|
+
Ha as SensitiveInputPropsSchema,
|
|
3859
|
+
Qa as SurfacePropsSchema,
|
|
3860
|
+
es as SwitchPropsSchema,
|
|
3861
|
+
ts as TablePropsSchema,
|
|
3862
|
+
os as TabsPropsSchema,
|
|
3863
|
+
ns as TextPropsSchema,
|
|
3864
|
+
rs as ToastyPropsSchema,
|
|
3865
|
+
is as TooltipPropsSchema,
|
|
3866
|
+
cs as UIElementBaseSchema,
|
|
3867
|
+
us as UITreeSchema,
|
|
3856
3868
|
ba as VisibilityConditionSchema,
|
|
3857
|
-
|
|
3858
|
-
|
|
3869
|
+
ps as validateElementProps,
|
|
3870
|
+
ds as validateUITree
|
|
3859
3871
|
};
|
|
3860
|
-
//# sourceMappingURL=schemas-
|
|
3872
|
+
//# sourceMappingURL=schemas-DbIwo0ET.js.map
|