@cloudflare/kumo 2.5.2 → 2.7.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 +58 -0
- package/ai/component-registry.json +182 -131
- package/ai/component-registry.md +268 -55
- package/ai/schemas.ts +24 -13
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +75 -48
- package/dist/ai/schemas.d.ts.map +1 -1
- package/dist/ai/schemas.js +208 -198
- package/dist/ai/schemas.js.map +1 -1
- package/dist/chunks/Maps-fkiyllhs5w0qzw1y.js +2155 -0
- package/dist/chunks/Maps-fkiyllhs5w0qzw1y.js.map +1 -0
- package/dist/chunks/{autocomplete-d52negr21cedr4rm.js → autocomplete-a4gvspveibfuod24.js} +19 -19
- package/dist/chunks/{autocomplete-d52negr21cedr4rm.js.map → autocomplete-a4gvspveibfuod24.js.map} +1 -1
- package/dist/chunks/{badge-c1th6h6ahz7eu49q.js → badge-dfc1r37osagi3rs4.js} +9 -9
- package/dist/chunks/{badge-c1th6h6ahz7eu49q.js.map → badge-dfc1r37osagi3rs4.js.map} +1 -1
- package/dist/chunks/{banner-es5iwuk4pf25e29e.js → banner-j52y8l13puk7dybi.js} +2 -2
- package/dist/chunks/{banner-es5iwuk4pf25e29e.js.map → banner-j52y8l13puk7dybi.js.map} +1 -1
- package/dist/chunks/{breadcrumbs-bfuf7g8hh36rg7h8.js → breadcrumbs-js59m7m57bdsveew.js} +4 -4
- package/dist/chunks/{breadcrumbs-bfuf7g8hh36rg7h8.js.map → breadcrumbs-js59m7m57bdsveew.js.map} +1 -1
- package/dist/chunks/button-ebfdg9mkhojue36n.js +237 -0
- package/dist/chunks/button-ebfdg9mkhojue36n.js.map +1 -0
- package/dist/chunks/{checkbox-bt4nfv1i2142kykg.js → checkbox-k355pnfisqt0h4eg.js} +4 -4
- package/dist/chunks/{checkbox-bt4nfv1i2142kykg.js.map → checkbox-k355pnfisqt0h4eg.js.map} +1 -1
- package/dist/chunks/{clipboard-text-h3oi6wm5vj2q7q4h.js → clipboard-text-isb05zkg2aox0tp6.js} +5 -5
- package/dist/chunks/{clipboard-text-h3oi6wm5vj2q7q4h.js.map → clipboard-text-isb05zkg2aox0tp6.js.map} +1 -1
- package/dist/chunks/{cloudflare-logo-fya2cd2ljozkzjh8.js → cloudflare-logo-fiuocxdxqrxawjfv.js} +2 -2
- package/dist/chunks/{cloudflare-logo-fya2cd2ljozkzjh8.js.map → cloudflare-logo-fiuocxdxqrxawjfv.js.map} +1 -1
- package/dist/chunks/{cn-ct4n7r74mh8y0f48.js → cn-bo7ya7641lkickbt.js} +6 -10
- package/dist/chunks/cn-bo7ya7641lkickbt.js.map +1 -0
- package/dist/chunks/{code-bbnjm8vk9hxl129r.js → code-pbkfdfat0yilg6dx.js} +2 -2
- package/dist/chunks/{code-bbnjm8vk9hxl129r.js.map → code-pbkfdfat0yilg6dx.js.map} +1 -1
- package/dist/chunks/{collapsible-nzqcf9zwnjkxqzr6.js → collapsible-f9hgtc1u6xvqrgt8.js} +5 -5
- package/dist/chunks/{collapsible-nzqcf9zwnjkxqzr6.js.map → collapsible-f9hgtc1u6xvqrgt8.js.map} +1 -1
- package/dist/chunks/{combobox-l6qcou2s3xmsbplp.js → combobox-hc9wi9nwsyyli8ur.js} +5 -5
- package/dist/chunks/{combobox-l6qcou2s3xmsbplp.js.map → combobox-hc9wi9nwsyyli8ur.js.map} +1 -1
- package/dist/chunks/{command-palette-fqhyacp33fhyf696.js → command-palette-c03zze4ayuytwxjg.js} +22 -22
- package/dist/chunks/{command-palette-fqhyacp33fhyf696.js.map → command-palette-c03zze4ayuytwxjg.js.map} +1 -1
- package/dist/chunks/{date-picker-mjocqqbggb76n8rt.js → date-picker-bffp889exjixmgz3.js} +8 -8
- package/dist/chunks/{date-picker-mjocqqbggb76n8rt.js.map → date-picker-bffp889exjixmgz3.js.map} +1 -1
- package/dist/chunks/{date-range-picker-o8uyril1kogvhoei.js → date-range-picker-oks2r14lbbukd545.js} +2 -2
- package/dist/chunks/{date-range-picker-o8uyril1kogvhoei.js.map → date-range-picker-oks2r14lbbukd545.js.map} +1 -1
- package/dist/chunks/{dialog-3mpu1i1wssrsz8i6.js → dialog-ovhmzfuppr5xix0e.js} +19 -19
- package/dist/chunks/dialog-ovhmzfuppr5xix0e.js.map +1 -0
- package/dist/chunks/{dropdown-g4sb4cw9ffqaw5gx.js → dropdown-iey8f344rd5dgahz.js} +42 -34
- package/dist/chunks/dropdown-iey8f344rd5dgahz.js.map +1 -0
- package/dist/chunks/{empty-frsjvok4w6i0fyex.js → empty-k83r53jh5utqvv7w.js} +3 -3
- package/dist/chunks/{empty-frsjvok4w6i0fyex.js.map → empty-k83r53jh5utqvv7w.js.map} +1 -1
- package/dist/chunks/{field-m57qcw5b1zt1ohfz.js → field-bmglk138wa8bf3ei.js} +4 -4
- package/dist/chunks/{field-m57qcw5b1zt1ohfz.js.map → field-bmglk138wa8bf3ei.js.map} +1 -1
- package/dist/chunks/{grid-do93dv1rjggqxx7p.js → grid-jze04557ljywg3uc.js} +2 -2
- package/dist/chunks/{grid-do93dv1rjggqxx7p.js.map → grid-jze04557ljywg3uc.js.map} +1 -1
- package/dist/chunks/{input-area-o2avpahffav0gydf.js → input-area-ixtj4e8eny58nbf9.js} +12 -12
- package/dist/chunks/{input-area-o2avpahffav0gydf.js.map → input-area-ixtj4e8eny58nbf9.js.map} +1 -1
- package/dist/chunks/{input-iahz0dpc9xdar2ju.js → input-ckl5misj0jd9cu5r.js} +4 -4
- package/dist/chunks/{input-iahz0dpc9xdar2ju.js.map → input-ckl5misj0jd9cu5r.js.map} +1 -1
- package/dist/chunks/{input-group-os810pmsqcftt6mq.js → input-group-bflx1m6ki55e99vf.js} +6 -6
- package/dist/chunks/{input-group-os810pmsqcftt6mq.js.map → input-group-bflx1m6ki55e99vf.js.map} +1 -1
- package/dist/chunks/{label-kib2hn4pkbn28c31.js → label-i1xbmg8y1n0tbtkx.js} +4 -4
- package/dist/chunks/{label-kib2hn4pkbn28c31.js.map → label-i1xbmg8y1n0tbtkx.js.map} +1 -1
- package/dist/chunks/{layer-card-er4flkcxmzfug8jw.js → layer-card-m6h85dpadvee39h2.js} +3 -3
- package/dist/chunks/{layer-card-er4flkcxmzfug8jw.js.map → layer-card-m6h85dpadvee39h2.js.map} +1 -1
- package/dist/chunks/{link-i6vnwyjcwvjz5btm.js → link-j93fl5m8zrcfivsr.js} +5 -5
- package/dist/chunks/{link-i6vnwyjcwvjz5btm.js.map → link-j93fl5m8zrcfivsr.js.map} +1 -1
- package/dist/chunks/{menubar-ng5if56amh1tto4j.js → menubar-opzxfzylaatfz4nv.js} +8 -8
- package/dist/chunks/{menubar-ng5if56amh1tto4j.js.map → menubar-opzxfzylaatfz4nv.js.map} +1 -1
- package/dist/chunks/{meter-d5igshkjqttl1fdj.js → meter-6br6z5ekw41trxeh.js} +5 -5
- package/dist/chunks/{meter-d5igshkjqttl1fdj.js.map → meter-6br6z5ekw41trxeh.js.map} +1 -1
- package/dist/chunks/{pagination-mvvg7qfvoqr5l4vt.js → pagination-j33ntwqmm9qskfgv.js} +4 -4
- package/dist/chunks/{pagination-mvvg7qfvoqr5l4vt.js.map → pagination-j33ntwqmm9qskfgv.js.map} +1 -1
- package/dist/chunks/{popover-ozf1j7oi7pxiudyz.js → popover-cqdmpp8i4hg8gzzx.js} +19 -19
- package/dist/chunks/{popover-ozf1j7oi7pxiudyz.js.map → popover-cqdmpp8i4hg8gzzx.js.map} +1 -1
- package/dist/chunks/radio-ejey7i6r4tq314av.js +226 -0
- package/dist/chunks/radio-ejey7i6r4tq314av.js.map +1 -0
- package/dist/chunks/{select-c79vjqmcytn2oujb.js → select-p8adn2tnpom25hpl.js} +8 -8
- package/dist/chunks/{select-c79vjqmcytn2oujb.js.map → select-p8adn2tnpom25hpl.js.map} +1 -1
- package/dist/chunks/{sensitive-input-mxbd0ayw2mbju4ii.js → sensitive-input-it1hsswlccq3u7g6.js} +5 -5
- package/dist/chunks/{sensitive-input-mxbd0ayw2mbju4ii.js.map → sensitive-input-it1hsswlccq3u7g6.js.map} +1 -1
- package/dist/chunks/{sidebar-dqw2uxx6xqln639l.js → sidebar-ctd980heycmxsux1.js} +49 -49
- package/dist/chunks/sidebar-ctd980heycmxsux1.js.map +1 -0
- package/dist/chunks/{skeleton-line-epxenksfesr2fkcv.js → skeleton-line-omxgxia23vpav94x.js} +2 -2
- package/dist/chunks/{skeleton-line-epxenksfesr2fkcv.js.map → skeleton-line-omxgxia23vpav94x.js.map} +1 -1
- package/dist/chunks/{surface-iyejjbqogjbo7ise.js → surface-gc2gblserrxcb1eg.js} +5 -5
- package/dist/chunks/{surface-iyejjbqogjbo7ise.js.map → surface-gc2gblserrxcb1eg.js.map} +1 -1
- package/dist/chunks/{switch-dld1q6qdzhe1uip7.js → switch-ljsq915e0l1a5mjd.js} +4 -4
- package/dist/chunks/{switch-dld1q6qdzhe1uip7.js.map → switch-ljsq915e0l1a5mjd.js.map} +1 -1
- package/dist/chunks/{table-of-contents-jco9kvt48d34dwsw.js → table-of-contents-cghjqyk43nj5zmlw.js} +2 -2
- package/dist/chunks/{table-of-contents-jco9kvt48d34dwsw.js.map → table-of-contents-cghjqyk43nj5zmlw.js.map} +1 -1
- package/dist/chunks/{table-l64wm81r9t67mtzm.js → table-ojjjeqszmt9jgnug.js} +3 -3
- package/dist/chunks/{table-l64wm81r9t67mtzm.js.map → table-ojjjeqszmt9jgnug.js.map} +1 -1
- package/dist/chunks/{tabs-ho9t1gkq22jb855l.js → tabs-kemdy19kfesj2xjr.js} +3 -3
- package/dist/chunks/{tabs-ho9t1gkq22jb855l.js.map → tabs-kemdy19kfesj2xjr.js.map} +1 -1
- package/dist/chunks/{text-be7ehenoyldhyjma.js → text-oqp48b9m5u6t62b4.js} +2 -2
- package/dist/chunks/{text-be7ehenoyldhyjma.js.map → text-oqp48b9m5u6t62b4.js.map} +1 -1
- package/dist/chunks/{toast-gewrapiiy5x9ak0o.js → toast-ldj9zi940w83ub90.js} +98 -82
- package/dist/chunks/toast-ldj9zi940w83ub90.js.map +1 -0
- package/dist/chunks/toolbar-lmylyrod70sn0q4i.js +172 -0
- package/dist/chunks/toolbar-lmylyrod70sn0q4i.js.map +1 -0
- package/dist/chunks/{tooltip-ken77ixya0qpidie.js → tooltip-mooldq78tg77ekvv.js} +6 -6
- package/dist/chunks/tooltip-mooldq78tg77ekvv.js.map +1 -0
- package/dist/chunks/vendor-base-ui-elpbzr8xeffrz4h2.js +25027 -0
- package/dist/chunks/vendor-base-ui-elpbzr8xeffrz4h2.js.map +1 -0
- package/dist/chunks/{vendor-floating-ui-c4mwmh0xmfzevy9l.js → vendor-floating-ui-k1zjlb8fkwtcw4k5.js} +22 -23
- package/dist/chunks/{vendor-floating-ui-c4mwmh0xmfzevy9l.js.map → vendor-floating-ui-k1zjlb8fkwtcw4k5.js.map} +1 -1
- package/dist/chunks/vendor-styling-ofvnbcuht98q88oo.js +3252 -0
- package/dist/chunks/vendor-styling-ofvnbcuht98q88oo.js.map +1 -0
- package/dist/code.js +2 -2
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.js +6 -4
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/cloudflare-logo.js +1 -1
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.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 +345 -336
- package/dist/components/flow.js.map +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/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 +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table-of-contents.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/toolbar.js +8 -0
- package/dist/components/toolbar.js.map +1 -0
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +208 -202
- 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/otp-field.js +3 -2
- 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 +27 -26
- package/dist/scripts/theme-generator/config.d.ts.map +1 -1
- package/dist/scripts/theme-generator/config.js +13 -2
- package/dist/scripts/theme-generator/config.js.map +1 -1
- package/dist/src/components/button/button.d.ts +2 -2
- package/dist/src/components/button/button.d.ts.map +1 -1
- package/dist/src/components/chart/Color.d.ts +16 -0
- package/dist/src/components/chart/Color.d.ts.map +1 -1
- package/dist/src/components/chart/EChart.d.ts +19 -4
- package/dist/src/components/chart/EChart.d.ts.map +1 -1
- package/dist/src/components/chart/Legend.d.ts +11 -2
- package/dist/src/components/chart/Legend.d.ts.map +1 -1
- package/dist/src/components/chart/Maps.d.ts +211 -0
- package/dist/src/components/chart/Maps.d.ts.map +1 -0
- package/dist/src/components/chart/SankeyChart.d.ts.map +1 -1
- package/dist/src/components/chart/TimeseriesChart.d.ts +15 -1
- package/dist/src/components/chart/TimeseriesChart.d.ts.map +1 -1
- package/dist/src/components/chart/index.d.ts +1 -0
- package/dist/src/components/chart/index.d.ts.map +1 -1
- package/dist/src/components/chart/tooltip-utils.d.ts +4 -0
- package/dist/src/components/chart/tooltip-utils.d.ts.map +1 -0
- package/dist/src/components/dialog/dialog.d.ts +12 -12
- package/dist/src/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/src/components/flow/diagram.d.ts +5 -3
- package/dist/src/components/flow/diagram.d.ts.map +1 -1
- package/dist/src/components/radio/index.d.ts +1 -1
- package/dist/src/components/radio/index.d.ts.map +1 -1
- package/dist/src/components/radio/radio.d.ts +49 -10
- package/dist/src/components/radio/radio.d.ts.map +1 -1
- package/dist/src/components/radio/radio.type-spec.d.ts +12 -0
- package/dist/src/components/radio/radio.type-spec.d.ts.map +1 -0
- package/dist/src/components/toast/toast.d.ts +2 -2
- package/dist/src/components/toast/toast.d.ts.map +1 -1
- package/dist/src/components/toolbar/index.d.ts +2 -0
- package/dist/src/components/toolbar/index.d.ts.map +1 -0
- package/dist/src/components/toolbar/toolbar.d.ts +50 -0
- package/dist/src/components/toolbar/toolbar.d.ts.map +1 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/primitives/index.d.ts +1 -0
- package/dist/src/primitives/index.d.ts.map +1 -1
- package/dist/src/primitives/otp-field.d.ts +1 -0
- package/dist/src/primitives/otp-field.d.ts.map +1 -1
- package/dist/src/utils/cn.d.ts +1 -2
- package/dist/src/utils/cn.d.ts.map +1 -1
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-kumo.css +11 -4
- package/dist/utils.js +8 -7
- package/dist/utils.js.map +1 -1
- package/package.json +10 -5
- package/scripts/component-registry/discovery.ts +16 -11
- package/scripts/component-registry/metadata.ts +30 -0
- package/scripts/generate-primitives.ts +9 -0
- package/scripts/theme-generator/config.ts +14 -2
- package/dist/chunks/SankeyChart-i1m7zv0lys3j0iq6.js +0 -775
- package/dist/chunks/SankeyChart-i1m7zv0lys3j0iq6.js.map +0 -1
- package/dist/chunks/button-ov39dxshqbqrthhd.js +0 -210
- package/dist/chunks/button-ov39dxshqbqrthhd.js.map +0 -1
- package/dist/chunks/cn-ct4n7r74mh8y0f48.js.map +0 -1
- package/dist/chunks/dialog-3mpu1i1wssrsz8i6.js.map +0 -1
- package/dist/chunks/dropdown-g4sb4cw9ffqaw5gx.js.map +0 -1
- package/dist/chunks/radio-gpg6kmzonr2cayq1.js +0 -218
- package/dist/chunks/radio-gpg6kmzonr2cayq1.js.map +0 -1
- package/dist/chunks/sidebar-dqw2uxx6xqln639l.js.map +0 -1
- package/dist/chunks/toast-gewrapiiy5x9ak0o.js.map +0 -1
- package/dist/chunks/tooltip-ken77ixya0qpidie.js.map +0 -1
- package/dist/chunks/vendor-base-ui-knphx7dts1vm1x37.js +0 -24710
- package/dist/chunks/vendor-base-ui-knphx7dts1vm1x37.js.map +0 -1
- package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js +0 -2775
- package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js.map +0 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"Autocomplete": {
|
|
5
5
|
"name": "Autocomplete",
|
|
6
6
|
"type": "component",
|
|
7
|
-
"description": "Autocomplete — free-form text input with an optional filtered suggestion list.
|
|
7
|
+
"description": "Autocomplete — free-form text input with an optional filtered suggestion list.",
|
|
8
8
|
"importPath": "@cloudflare/kumo",
|
|
9
9
|
"category": "Other",
|
|
10
10
|
"props": {
|
|
@@ -266,12 +266,13 @@
|
|
|
266
266
|
},
|
|
267
267
|
"examples": [
|
|
268
268
|
"<div className=\"flex flex-wrap items-center gap-2\">\n <Badge variant=\"primary\">Primary</Badge>\n <Badge variant=\"secondary\">Secondary</Badge>\n <Badge variant=\"error\">Error</Badge>\n <Badge variant=\"success\">Success</Badge>\n <Badge variant=\"warning\">Warning</Badge>\n <Badge variant=\"info\">Info</Badge>\n <Badge variant=\"outline\">Outline</Badge>\n <Badge variant=\"beta\">Beta</Badge>\n </div>",
|
|
269
|
-
"<div className=\"flex flex-wrap items-center gap-2\">\n <Badge variant=\"neutral\">Neutral</Badge>\n <Badge variant=\"red\">Red</Badge>\n <Badge variant=\"orange\">Orange</Badge>\n <Badge variant=\"teal\">Teal</Badge>\n <Badge variant=\"blue\">Blue</Badge>\n <Badge variant=\"purple\">Purple</Badge>\n </div>",
|
|
269
|
+
"<div className=\"flex flex-wrap items-center gap-2\">\n <Badge variant=\"neutral\">Neutral</Badge>\n <Badge variant=\"red\">Red</Badge>\n <Badge variant=\"green\">Green</Badge>\n <Badge variant=\"orange\">Orange</Badge>\n <Badge variant=\"teal\">Teal</Badge>\n <Badge variant=\"blue\">Blue</Badge>\n <Badge variant=\"purple\">Purple</Badge>\n </div>",
|
|
270
270
|
"<p className=\"flex items-center gap-2\">\n Workers\n <Badge variant=\"secondary\">New</Badge>\n </p>",
|
|
271
271
|
"<div className=\"flex flex-wrap items-center gap-2\">\n <Badge variant=\"success\" appearance=\"dot\">Healthy</Badge>\n <Badge variant=\"warning\" appearance=\"dot\">Warning</Badge>\n <Badge variant=\"error\" appearance=\"dot\">Error</Badge>\n <Badge variant=\"neutral\" appearance=\"dot\">Neutral</Badge>\n </div>"
|
|
272
272
|
],
|
|
273
273
|
"colors": [
|
|
274
274
|
"bg-kumo-badge-blue",
|
|
275
|
+
"bg-kumo-badge-green",
|
|
275
276
|
"bg-kumo-badge-inverted",
|
|
276
277
|
"bg-kumo-badge-neutral",
|
|
277
278
|
"bg-kumo-badge-orange",
|
|
@@ -560,17 +561,18 @@
|
|
|
560
561
|
"outline": "Bordered button with transparent background"
|
|
561
562
|
},
|
|
562
563
|
"classes": {
|
|
563
|
-
"primary": "bg-kumo-
|
|
564
|
+
"primary": "relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring) active:ring-(--kumo-button-emphasis-ring) disabled:opacity-50",
|
|
564
565
|
"secondary": "bg-kumo-base !text-kumo-default ring not-disabled:hover:bg-kumo-tint disabled:bg-kumo-base/50 disabled:!text-kumo-default/70 ring-kumo-line data-[state=open]:bg-kumo-base",
|
|
565
566
|
"ghost": "text-kumo-default hover:bg-kumo-tint shadow-none bg-inherit",
|
|
566
|
-
"destructive": "bg-kumo-
|
|
567
|
+
"destructive": "relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring) active:ring-(--kumo-button-emphasis-ring) disabled:opacity-50",
|
|
567
568
|
"secondary-destructive": "bg-kumo-base !text-kumo-danger ring not-disabled:hover:!text-kumo-danger not-disabled:hover:ring-kumo-danger/30 disabled:bg-kumo-base/50 disabled:!text-kumo-danger/70 ring-kumo-line data-[state=open]:bg-kumo-base",
|
|
568
569
|
"outline": "bg-transparent text-kumo-default ring ring-kumo-line transition-colors not-disabled:hover:text-kumo-strong not-disabled:hover:ring-kumo-focus/25"
|
|
569
570
|
},
|
|
570
571
|
"stateClasses": {
|
|
571
572
|
"primary": {
|
|
572
|
-
"
|
|
573
|
-
"
|
|
573
|
+
"focus": "focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring)",
|
|
574
|
+
"active": "active:ring-(--kumo-button-emphasis-ring)",
|
|
575
|
+
"disabled": "disabled:opacity-50"
|
|
574
576
|
},
|
|
575
577
|
"secondary": {
|
|
576
578
|
"not-disabled": "not-disabled:hover:bg-kumo-tint",
|
|
@@ -581,7 +583,9 @@
|
|
|
581
583
|
"hover": "hover:bg-kumo-tint"
|
|
582
584
|
},
|
|
583
585
|
"destructive": {
|
|
584
|
-
"
|
|
586
|
+
"focus": "focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring)",
|
|
587
|
+
"active": "active:ring-(--kumo-button-emphasis-ring)",
|
|
588
|
+
"disabled": "disabled:opacity-50"
|
|
585
589
|
},
|
|
586
590
|
"secondary-destructive": {
|
|
587
591
|
"not-disabled": "not-disabled:hover:!text-kumo-danger not-disabled:hover:ring-kumo-danger/30",
|
|
@@ -665,9 +669,6 @@
|
|
|
665
669
|
],
|
|
666
670
|
"colors": [
|
|
667
671
|
"bg-kumo-base",
|
|
668
|
-
"bg-kumo-brand",
|
|
669
|
-
"bg-kumo-brand-hover",
|
|
670
|
-
"bg-kumo-danger",
|
|
671
672
|
"bg-kumo-tint",
|
|
672
673
|
"ring-kumo-brand",
|
|
673
674
|
"ring-kumo-danger",
|
|
@@ -2255,7 +2256,7 @@
|
|
|
2255
2256
|
"Collapsible": {
|
|
2256
2257
|
"name": "Collapsible",
|
|
2257
2258
|
"type": "component",
|
|
2258
|
-
"description": "Collapsible — a composable disclosure component for showing/hiding content.
|
|
2259
|
+
"description": "Collapsible — a composable disclosure component for showing/hiding content.",
|
|
2259
2260
|
"importPath": "@cloudflare/kumo",
|
|
2260
2261
|
"category": "Display",
|
|
2261
2262
|
"props": {
|
|
@@ -2345,7 +2346,7 @@
|
|
|
2345
2346
|
"Combobox": {
|
|
2346
2347
|
"name": "Combobox",
|
|
2347
2348
|
"type": "component",
|
|
2348
|
-
"description": "Combobox — autocomplete input with filterable dropdown list.
|
|
2349
|
+
"description": "Combobox — autocomplete input with filterable dropdown list.",
|
|
2349
2350
|
"importPath": "@cloudflare/kumo",
|
|
2350
2351
|
"category": "Input",
|
|
2351
2352
|
"props": {
|
|
@@ -2582,7 +2583,7 @@
|
|
|
2582
2583
|
"CommandPalette": {
|
|
2583
2584
|
"name": "CommandPalette",
|
|
2584
2585
|
"type": "component",
|
|
2585
|
-
"description": "CommandPalette — accessible command palette / spotlight search overlay.
|
|
2586
|
+
"description": "CommandPalette — accessible command palette / spotlight search overlay.",
|
|
2586
2587
|
"importPath": "@cloudflare/kumo",
|
|
2587
2588
|
"category": "Navigation",
|
|
2588
2589
|
"props": {
|
|
@@ -2623,7 +2624,7 @@
|
|
|
2623
2624
|
"DatePicker": {
|
|
2624
2625
|
"name": "DatePicker",
|
|
2625
2626
|
"type": "component",
|
|
2626
|
-
"description": "DatePicker — a date selection calendar.
|
|
2627
|
+
"description": "DatePicker — a date selection calendar.",
|
|
2627
2628
|
"importPath": "@cloudflare/kumo",
|
|
2628
2629
|
"category": "Other",
|
|
2629
2630
|
"props": {
|
|
@@ -2653,7 +2654,7 @@
|
|
|
2653
2654
|
"DateRangePicker": {
|
|
2654
2655
|
"name": "DateRangePicker",
|
|
2655
2656
|
"type": "component",
|
|
2656
|
-
"description": "DateRangePicker — dual-calendar date range selector.
|
|
2657
|
+
"description": "DateRangePicker — dual-calendar date range selector.",
|
|
2657
2658
|
"importPath": "@cloudflare/kumo",
|
|
2658
2659
|
"category": "Input",
|
|
2659
2660
|
"props": {
|
|
@@ -2796,7 +2797,7 @@
|
|
|
2796
2797
|
"size": {
|
|
2797
2798
|
"type": "enum",
|
|
2798
2799
|
"optional": true,
|
|
2799
|
-
"description": "Dialog width.\n- `\"sm\"` — Small (
|
|
2800
|
+
"description": "Dialog width.\n- `\"sm\"` — Small (288px) for simple confirmations\n- `\"base\"` — Default (384px)\n- `\"lg\"` — Large (512px) for complex content\n- `\"xl\"` — Extra large (768px) for detailed views",
|
|
2800
2801
|
"values": [
|
|
2801
2802
|
"base",
|
|
2802
2803
|
"sm",
|
|
@@ -2804,16 +2805,16 @@
|
|
|
2804
2805
|
"xl"
|
|
2805
2806
|
],
|
|
2806
2807
|
"descriptions": {
|
|
2807
|
-
"base": "Default dialog width",
|
|
2808
|
-
"sm": "Small dialog for simple confirmations",
|
|
2809
|
-
"lg": "Large dialog for complex content",
|
|
2810
|
-
"xl": "Extra large dialog for detailed views"
|
|
2808
|
+
"base": "Default dialog width (384px)",
|
|
2809
|
+
"sm": "Small dialog for simple confirmations (288px)",
|
|
2810
|
+
"lg": "Large dialog for complex content (512px)",
|
|
2811
|
+
"xl": "Extra large dialog for detailed views (768px)"
|
|
2811
2812
|
},
|
|
2812
2813
|
"classes": {
|
|
2813
|
-
"base": "sm:
|
|
2814
|
-
"sm": "
|
|
2815
|
-
"lg": "
|
|
2816
|
-
"xl": "
|
|
2814
|
+
"base": "sm:w-96",
|
|
2815
|
+
"sm": "sm:w-72",
|
|
2816
|
+
"lg": "sm:w-[32rem]",
|
|
2817
|
+
"xl": "sm:w-[48rem]"
|
|
2817
2818
|
},
|
|
2818
2819
|
"default": "base"
|
|
2819
2820
|
}
|
|
@@ -2826,7 +2827,8 @@
|
|
|
2826
2827
|
"<Dialog.Root role=\"alertdialog\">\n <Dialog.Trigger\n render={(p) => (\n <Button {...p} variant=\"destructive\">\n Delete Account\n </Button>\n )}\n />\n <Dialog className=\"p-8\">\n <div className=\"mb-4 flex items-center gap-3\">\n <div className=\"flex h-10 w-10 items-center justify-center rounded-full bg-kumo-danger/20\">\n <Warning size={20} className=\"text-kumo-danger\" weight=\"fill\" />\n </div>\n <Dialog.Title className=\"text-xl font-semibold\">\n Delete Account?\n </Dialog.Title>\n </div>\n <Dialog.Description className=\"text-kumo-subtle\">\n This action cannot be undone. All your data will be permanently\n removed from our servers. Are you sure you want to proceed?\n </Dialog.Description>\n <div className=\"mt-8 flex justify-end gap-2\">\n <Dialog.Close\n render={(props) => (\n <Button variant=\"secondary\" {...props}>\n Cancel\n </Button>\n )}\n />\n <Dialog.Close\n render={(props) => (\n <Button variant=\"destructive\" {...props}>\n Delete Account\n </Button>\n )}\n />\n </div>\n </Dialog>\n </Dialog.Root>",
|
|
2827
2828
|
"<Dialog.Root>\n <Dialog.Trigger render={(p) => <Button {...p}>Open Form</Button>} />\n <Dialog className=\"p-8\">\n <div className=\"mb-4 flex items-start justify-between gap-4\">\n <Dialog.Title className=\"text-2xl font-semibold\">\n Create Resource\n </Dialog.Title>\n <Dialog.Close\n aria-label=\"Close\"\n render={(props) => (\n <Button\n {...props}\n variant=\"secondary\"\n shape=\"square\"\n icon={<X />}\n aria-label=\"Close\"\n />\n )}\n />\n </div>\n <Dialog.Description className=\"mb-4 text-kumo-subtle\">\n Select a region for your new resource.\n </Dialog.Description>\n <Select\n className=\"w-full\"\n placeholder=\"Select region...\"\n renderValue={(v) =>\n regions.find((r) => r.value === v)?.label\n }\n >\n {regions.map((region) => (\n <Select.Option key={region.value} value={region.value}>\n {region.label}\n </Select.Option>\n ))}\n </Select>\n <div className=\"mt-8 flex justify-end gap-2\">\n <Dialog.Close\n render={(props) => (\n <Button variant=\"secondary\" {...props}>\n Cancel\n </Button>\n )}\n />\n <Button variant=\"primary\">Create</Button>\n </div>\n </Dialog>\n </Dialog.Root>",
|
|
2828
2829
|
"<Dialog.Root>\n <Dialog.Trigger render={(p) => <Button {...p}>Open Form</Button>} />\n <Dialog className=\"p-8\">\n <div className=\"mb-4 flex items-start justify-between gap-4\">\n <Dialog.Title className=\"text-2xl font-semibold\">\n Create Resource\n </Dialog.Title>\n <Dialog.Close\n aria-label=\"Close\"\n render={(props) => (\n <Button\n {...props}\n variant=\"secondary\"\n shape=\"square\"\n icon={<X />}\n aria-label=\"Close\"\n />\n )}\n />\n </div>\n <Dialog.Description className=\"mb-4 text-kumo-subtle\">\n Search and select a region for your new resource.\n </Dialog.Description>\n <Combobox value={value} onValueChange={setValue} items={regions}>\n <Combobox.TriggerInput\n className=\"w-full\"\n placeholder=\"Search regions...\"\n />\n <Combobox.Content>\n <Combobox.Empty>No regions found</Combobox.Empty>\n <Combobox.List>\n {(item: { value: string; label: string }) => (\n <Combobox.Item key={item.value} value={item}>\n {item.label}\n </Combobox.Item>\n )}\n </Combobox.List>\n </Combobox.Content>\n </Combobox>\n <div className=\"mt-8 flex justify-end gap-2\">\n <Dialog.Close\n render={(props) => (\n <Button variant=\"secondary\" {...props}>\n Cancel\n </Button>\n )}\n />\n <Button variant=\"primary\">Create</Button>\n </div>\n </Dialog>\n </Dialog.Root>",
|
|
2829
|
-
"<Dialog.Root>\n <Dialog.Trigger render={(p) => <Button {...p}>Open Form</Button>} />\n <Dialog className=\"p-8\">\n <div className=\"mb-4 flex items-start justify-between gap-4\">\n <Dialog.Title className=\"text-2xl font-semibold\">\n Resource Actions\n </Dialog.Title>\n <Dialog.Close\n aria-label=\"Close\"\n render={(props) => (\n <Button\n {...props}\n variant=\"secondary\"\n shape=\"square\"\n icon={<X />}\n aria-label=\"Close\"\n />\n )}\n />\n </div>\n <Dialog.Description className=\"mb-4 text-kumo-subtle\">\n Choose an action for the selected resource.\n </Dialog.Description>\n <DropdownMenu>\n <DropdownMenu.Trigger render={<Button>Actions</Button>} />\n <DropdownMenu.Content>\n <DropdownMenu.Item>Edit</DropdownMenu.Item>\n <DropdownMenu.Item>Duplicate</DropdownMenu.Item>\n <DropdownMenu.Separator />\n <DropdownMenu.Item variant=\"danger\">Delete</DropdownMenu.Item>\n </DropdownMenu.Content>\n </DropdownMenu>\n <div className=\"mt-8 flex justify-end\">\n <Dialog.Close\n render={(props) => (\n <Button variant=\"secondary\" {...props}>\n Close\n </Button>\n )}\n />\n </div>\n </Dialog>\n </Dialog.Root>"
|
|
2830
|
+
"<Dialog.Root>\n <Dialog.Trigger render={(p) => <Button {...p}>Open Form</Button>} />\n <Dialog className=\"p-8\">\n <div className=\"mb-4 flex items-start justify-between gap-4\">\n <Dialog.Title className=\"text-2xl font-semibold\">\n Resource Actions\n </Dialog.Title>\n <Dialog.Close\n aria-label=\"Close\"\n render={(props) => (\n <Button\n {...props}\n variant=\"secondary\"\n shape=\"square\"\n icon={<X />}\n aria-label=\"Close\"\n />\n )}\n />\n </div>\n <Dialog.Description className=\"mb-4 text-kumo-subtle\">\n Choose an action for the selected resource.\n </Dialog.Description>\n <DropdownMenu>\n <DropdownMenu.Trigger render={<Button>Actions</Button>} />\n <DropdownMenu.Content>\n <DropdownMenu.Item>Edit</DropdownMenu.Item>\n <DropdownMenu.Item>Duplicate</DropdownMenu.Item>\n <DropdownMenu.Separator />\n <DropdownMenu.Item variant=\"danger\">Delete</DropdownMenu.Item>\n </DropdownMenu.Content>\n </DropdownMenu>\n <div className=\"mt-8 flex justify-end\">\n <Dialog.Close\n render={(props) => (\n <Button variant=\"secondary\" {...props}>\n Close\n </Button>\n )}\n />\n </div>\n </Dialog>\n </Dialog.Root>",
|
|
2831
|
+
"<div className=\"flex flex-wrap gap-2\">\n {sizes.map(({ size, label, width }) => (\n <Dialog.Root key={size}>\n <Dialog.Trigger\n render={(p) => (\n <Button variant=\"secondary\" {...p}>\n {label} ({width})\n </Button>\n )}\n />\n <Dialog size={size} className=\"p-8\">\n <div className=\"mb-4 flex items-start justify-between gap-4\">\n <Dialog.Title className=\"text-2xl font-semibold\">\n {label} Dialog\n </Dialog.Title>\n <Dialog.Close\n aria-label=\"Close\"\n render={(props) => (\n <Button\n {...props}\n variant=\"secondary\"\n shape=\"square\"\n icon={<X />}\n aria-label=\"Close\"\n />\n )}\n />\n </div>\n <Dialog.Description className=\"text-kumo-subtle\">\n This <code>size=\"{size}\"</code> dialog should stay at {width} wide\n regardless of the content below.\n </Dialog.Description>\n <div className=\"mt-4 overflow-auto rounded-md border border-kumo-line\">\n <table className=\"w-max text-sm\">\n <thead className=\"bg-kumo-elevated text-left\">\n <tr>\n <th className=\"px-3 py-2\">Resource</th>\n <th className=\"px-3 py-2\">Region</th>\n <th className=\"px-3 py-2\">Status</th>\n <th className=\"px-3 py-2\">Latency</th>\n <th className=\"px-3 py-2\">Requests</th>\n <th className=\"px-3 py-2\">Last Deployed</th>\n </tr>\n </thead>\n <tbody className=\"divide-y divide-kumo-hairline\">\n <tr>\n <td className=\"px-3 py-2\">api-gateway-prod</td>\n <td className=\"px-3 py-2\">us-east-1</td>\n <td className=\"px-3 py-2 text-kumo-success\">Healthy</td>\n <td className=\"px-3 py-2\">12ms</td>\n <td className=\"px-3 py-2\">1,234,567</td>\n <td className=\"px-3 py-2\">2026-06-23</td>\n </tr>\n <tr>\n <td className=\"px-3 py-2\">worker-analytics</td>\n <td className=\"px-3 py-2\">eu-west-1</td>\n <td className=\"px-3 py-2 text-kumo-warning\">Degraded</td>\n <td className=\"px-3 py-2\">89ms</td>\n <td className=\"px-3 py-2\">456,789</td>\n <td className=\"px-3 py-2\">2026-06-22</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div className=\"mt-6 flex justify-end gap-2\">\n <Dialog.Close\n render={(props) => (\n <Button variant=\"secondary\" {...props}>\n Close\n </Button>\n )}\n />\n </div>\n </Dialog>\n </Dialog.Root>\n ))}\n </div>"
|
|
2830
2832
|
],
|
|
2831
2833
|
"colors": [
|
|
2832
2834
|
"bg-kumo-base",
|
|
@@ -2936,7 +2938,7 @@
|
|
|
2936
2938
|
"DropdownMenu": {
|
|
2937
2939
|
"name": "DropdownMenu",
|
|
2938
2940
|
"type": "component",
|
|
2939
|
-
"description": "DropdownMenu — accessible dropdown menu anchored to a trigger.
|
|
2941
|
+
"description": "DropdownMenu — accessible dropdown menu anchored to a trigger.",
|
|
2940
2942
|
"importPath": "@cloudflare/kumo",
|
|
2941
2943
|
"category": "Overlay",
|
|
2942
2944
|
"props": {
|
|
@@ -2965,6 +2967,7 @@
|
|
|
2965
2967
|
"<DropdownMenu>\n <DropdownMenu.Trigger render={<Button>Edit</Button>} />\n <DropdownMenu.Content>\n <DropdownMenu.Item icon={PencilSimpleIcon}>Rename</DropdownMenu.Item>\n <DropdownMenu.Item icon={CopyIcon}>Duplicate</DropdownMenu.Item>\n <DropdownMenu.Separator />\n <DropdownMenu.Item inset>Move to folder</DropdownMenu.Item>\n <DropdownMenu.Item inset>Add to favorites</DropdownMenu.Item>\n <DropdownMenu.Separator />\n <DropdownMenu.Item icon={TrashIcon} variant=\"danger\">\n Delete\n </DropdownMenu.Item>\n </DropdownMenu.Content>\n </DropdownMenu>",
|
|
2966
2968
|
"<div className=\"flex flex-col items-start gap-2\">\n <DropdownMenu>\n <DropdownMenu.Trigger render={<Button>Actions</Button>} />\n <DropdownMenu.Content>\n <DropdownMenu.Item\n icon={CopyIcon}\n onClick={() => setLastAction(\"Duplicated\")}\n >\n Duplicate\n </DropdownMenu.Item>\n <DropdownMenu.Item\n icon={PencilSimpleIcon}\n onClick={() => setLastAction(\"Renamed\")}\n >\n Rename\n </DropdownMenu.Item>\n <DropdownMenu.Separator />\n <DropdownMenu.Item\n icon={TrashIcon}\n variant=\"danger\"\n onClick={() => setLastAction(\"Deleted\")}\n >\n Delete\n </DropdownMenu.Item>\n </DropdownMenu.Content>\n </DropdownMenu>\n {lastAction && (\n <p className=\"text-sm text-kumo-subtle\">\n Last action: <span className=\"text-kumo-default\">{lastAction}</span>\n </p>\n )}\n </div>",
|
|
2967
2969
|
"<DropdownMenu>\n <DropdownMenu.Trigger\n render={<button type=\"button\" className=\"rounded-full\" />}\n >\n <span className=\"flex h-8 w-8 items-center justify-center rounded-full bg-kumo-brand text-sm font-medium text-white\">\n MR\n </span>\n </DropdownMenu.Trigger>\n <DropdownMenu.Content>\n <DropdownMenu.Item icon={UserIcon}>Profile</DropdownMenu.Item>\n <DropdownMenu.Item icon={GearIcon}>Settings</DropdownMenu.Item>\n <DropdownMenu.Separator />\n <DropdownMenu.Item icon={SignOutIcon} variant=\"danger\">\n Log out\n </DropdownMenu.Item>\n </DropdownMenu.Content>\n </DropdownMenu>",
|
|
2970
|
+
"<DropdownMenu>\n <DropdownMenu.Trigger render={<Button>Open long list</Button>} />\n <DropdownMenu.Content>\n {items.map((item) => (\n <DropdownMenu.Item key={item}>{item}</DropdownMenu.Item>\n ))}\n </DropdownMenu.Content>\n </DropdownMenu>",
|
|
2968
2971
|
"<DropdownMenu>\n <DropdownMenu.Trigger render={<Button>Resources</Button>} />\n <DropdownMenu.Content>\n <DropdownMenu.LinkItem href=\"/settings\" icon={GearIcon}>\n Settings\n </DropdownMenu.LinkItem>\n <DropdownMenu.LinkItem href=\"/docs\" icon={BookOpenIcon}>\n Documentation\n </DropdownMenu.LinkItem>\n <DropdownMenu.Separator />\n <DropdownMenu.LinkItem\n href=\"https://developers.cloudflare.com\"\n target=\"_blank\"\n icon={ArrowSquareOutIcon}\n >\n Developer Docs\n </DropdownMenu.LinkItem>\n </DropdownMenu.Content>\n </DropdownMenu>"
|
|
2969
2972
|
],
|
|
2970
2973
|
"colors": [
|
|
@@ -3784,7 +3787,7 @@
|
|
|
3784
3787
|
"Label": {
|
|
3785
3788
|
"name": "Label",
|
|
3786
3789
|
"type": "component",
|
|
3787
|
-
"description": "Label component for form fields.
|
|
3790
|
+
"description": "Label component for form fields.",
|
|
3788
3791
|
"importPath": "@cloudflare/kumo",
|
|
3789
3792
|
"category": "Other",
|
|
3790
3793
|
"props": {
|
|
@@ -4072,7 +4075,7 @@
|
|
|
4072
4075
|
"MenuBar": {
|
|
4073
4076
|
"name": "MenuBar",
|
|
4074
4077
|
"type": "component",
|
|
4075
|
-
"description": "MenuBar — horizontal icon-button toolbar with keyboard arrow-key navigation.
|
|
4078
|
+
"description": "MenuBar — horizontal icon-button toolbar with keyboard arrow-key navigation.",
|
|
4076
4079
|
"importPath": "@cloudflare/kumo",
|
|
4077
4080
|
"category": "Navigation",
|
|
4078
4081
|
"props": {
|
|
@@ -4430,37 +4433,33 @@
|
|
|
4430
4433
|
"Radio": {
|
|
4431
4434
|
"name": "Radio",
|
|
4432
4435
|
"type": "component",
|
|
4433
|
-
"description": "Radio — radio button group for single-select choices.
|
|
4436
|
+
"description": "Radio — radio button group for single-select choices.",
|
|
4434
4437
|
"importPath": "@cloudflare/kumo",
|
|
4435
4438
|
"category": "Input",
|
|
4436
4439
|
"props": {
|
|
4437
|
-
"
|
|
4438
|
-
"type": "string",
|
|
4439
|
-
"optional": true,
|
|
4440
|
-
"description": "Legend text for the group (required for accessibility). For more control over legend styling, omit this prop and use `<Radio.Legend>` as a child instead."
|
|
4441
|
-
},
|
|
4442
|
-
"children": {
|
|
4443
|
-
"type": "ReactNode",
|
|
4444
|
-
"optional": true,
|
|
4445
|
-
"description": "Child Radio.Item components (and optionally a Radio.Legend)"
|
|
4446
|
-
},
|
|
4447
|
-
"orientation": {
|
|
4440
|
+
"variant": {
|
|
4448
4441
|
"type": "enum",
|
|
4449
|
-
"optional": true,
|
|
4450
|
-
"description": "Layout direction of the radio items",
|
|
4451
4442
|
"values": [
|
|
4452
|
-
"
|
|
4453
|
-
"
|
|
4454
|
-
]
|
|
4443
|
+
"default",
|
|
4444
|
+
"error"
|
|
4445
|
+
],
|
|
4446
|
+
"default": "default",
|
|
4447
|
+
"descriptions": {
|
|
4448
|
+
"default": "Default radio appearance",
|
|
4449
|
+
"error": "Error state for validation failures"
|
|
4450
|
+
},
|
|
4451
|
+
"classes": {
|
|
4452
|
+
"default": "ring-kumo-hairline",
|
|
4453
|
+
"error": "ring-kumo-danger"
|
|
4454
|
+
}
|
|
4455
4455
|
},
|
|
4456
4456
|
"appearance": {
|
|
4457
4457
|
"type": "enum",
|
|
4458
|
-
"optional": true,
|
|
4459
|
-
"description": "Visual appearance applied to all Radio.Item children.\n- `\"default\"` — Standard inline radio items\n- `\"card\"` — Choice card with border, padding, and highlighted selection state\n\nIndividual items can override this with their own `appearance` prop.",
|
|
4460
4458
|
"values": [
|
|
4461
4459
|
"default",
|
|
4462
4460
|
"card"
|
|
4463
4461
|
],
|
|
4462
|
+
"default": "default",
|
|
4464
4463
|
"descriptions": {
|
|
4465
4464
|
"default": "Standard inline radio item",
|
|
4466
4465
|
"card": "Choice card appearance with border, padding, and highlighted selection state"
|
|
@@ -4472,47 +4471,27 @@
|
|
|
4472
4471
|
"card": {
|
|
4473
4472
|
"hover": "hover:bg-kumo-tint"
|
|
4474
4473
|
}
|
|
4475
|
-
}
|
|
4476
|
-
"default": "default"
|
|
4474
|
+
}
|
|
4477
4475
|
},
|
|
4478
|
-
"
|
|
4476
|
+
"className": {
|
|
4479
4477
|
"type": "string",
|
|
4480
|
-
"
|
|
4481
|
-
"description": "Error message for the group"
|
|
4478
|
+
"description": "Additional CSS classes"
|
|
4482
4479
|
},
|
|
4483
|
-
"
|
|
4480
|
+
"children": {
|
|
4484
4481
|
"type": "ReactNode",
|
|
4485
|
-
"
|
|
4486
|
-
"description": "Helper text for the group"
|
|
4482
|
+
"description": "Child elements"
|
|
4487
4483
|
},
|
|
4488
4484
|
"value": {
|
|
4489
|
-
"type": "
|
|
4490
|
-
"
|
|
4491
|
-
"description": "Value of the radio that should be selected (controlled)"
|
|
4492
|
-
},
|
|
4493
|
-
"disabled": {
|
|
4494
|
-
"type": "boolean",
|
|
4495
|
-
"optional": true,
|
|
4496
|
-
"description": "Whether all radios in the group are disabled"
|
|
4497
|
-
},
|
|
4498
|
-
"controlPosition": {
|
|
4499
|
-
"type": "enum",
|
|
4500
|
-
"optional": true,
|
|
4501
|
-
"description": "Position of radio control relative to label: \"start\" puts radio before label, \"end\" puts label before radio. Defaults to \"start\" for default appearance and \"end\" for card appearance.",
|
|
4502
|
-
"values": [
|
|
4503
|
-
"start",
|
|
4504
|
-
"end"
|
|
4505
|
-
]
|
|
4485
|
+
"type": "T",
|
|
4486
|
+
"description": "The controlled value of the selected radio item."
|
|
4506
4487
|
},
|
|
4507
|
-
"
|
|
4508
|
-
"type": "
|
|
4509
|
-
"
|
|
4510
|
-
"description": "Form submission name for the radio group"
|
|
4488
|
+
"defaultValue": {
|
|
4489
|
+
"type": "T",
|
|
4490
|
+
"description": "The uncontrolled initial value of the selected radio item."
|
|
4511
4491
|
},
|
|
4512
|
-
"
|
|
4513
|
-
"type": "
|
|
4514
|
-
"
|
|
4515
|
-
"description": "Additional CSS classes"
|
|
4492
|
+
"onValueChange": {
|
|
4493
|
+
"type": "(value: T, eventDetails: RadioGroupChangeEventDetails) => void",
|
|
4494
|
+
"description": "Callback fired when the selected value changes. The second argument carries native event details about the interaction."
|
|
4516
4495
|
}
|
|
4517
4496
|
},
|
|
4518
4497
|
"examples": [
|
|
@@ -4527,6 +4506,7 @@
|
|
|
4527
4506
|
"<Radio.Group defaultValue=\"all\" value={value} onValueChange={setValue}>\n <Radio.Legend className=\"sr-only\">Paths</Radio.Legend>\n <Radio.Item label=\"Allow all paths\" value=\"all\" />\n <Radio.Item label=\"Restrict to specific paths\" value=\"specific\" />\n </Radio.Group>",
|
|
4528
4507
|
"<Radio.Group value={value} onValueChange={setValue}>\n <Radio.Legend className=\"text-sm font-normal text-kumo-subtle\">\n Notification preference\n </Radio.Legend>\n <Radio.Item label=\"Email\" value=\"email\" />\n <Radio.Item label=\"SMS\" value=\"sms\" />\n <Radio.Item label=\"Push notification\" value=\"push\" />\n </Radio.Group>",
|
|
4529
4508
|
"<Radio.Group\n legend=\"Choose a plan\"\n appearance=\"card\"\n controlPosition=\"start\"\n value={value}\n onValueChange={setValue}\n >\n <Radio.Item\n label=\"Free\"\n description=\"For personal or hobby projects that aren't business-critical.\"\n value=\"free\"\n />\n <Radio.Item\n label=\"Pro\"\n description=\"For professional websites that aren't business-critical.\"\n value=\"pro\"\n />\n </Radio.Group>",
|
|
4509
|
+
"<div className=\"grid grid-cols-2 gap-6\">\n <Radio.Group<number>\n legend=\"Items per page\"\n value={pageSize}\n onValueChange={setPageSize}\n >\n <Radio.Item<number> label=\"10\" value={10} />\n <Radio.Item<number> label=\"25\" value={25} />\n <Radio.Item<number> label=\"50\" value={50} />\n </Radio.Group>\n <Radio.Group<ThemeType>\n legend=\"Theme\"\n value={theme}\n onValueChange={setTheme}\n >\n <Radio.Item<ThemeType> label=\"Light\" value={ThemeType.light} />\n <Radio.Item<ThemeType> label=\"Dark\" value={ThemeType.dark} />\n <Radio.Item<ThemeType> label=\"System\" value={ThemeType.system} />\n </Radio.Group>\n </div>",
|
|
4530
4510
|
"<Radio.Group\n legend=\"Choose a plan\"\n appearance=\"card\"\n value={value}\n onValueChange={setValue}\n >\n <Radio.Item\n label={\n <span className=\"flex items-center gap-2\">\n Free\n <Badge variant=\"neutral\">$0</Badge>\n </span>\n }\n description=\"For personal or hobby projects.\"\n value=\"free\"\n />\n <Radio.Item\n label={\n <span className=\"flex items-center gap-2\">\n Pro\n <Badge variant=\"primary\">Popular</Badge>\n </span>\n }\n description=\"For professional websites.\"\n value=\"pro\"\n />\n </Radio.Group>",
|
|
4531
4511
|
"<Radio.Group\n legend=\"Choose a plan\"\n appearance=\"card\"\n orientation=\"horizontal\"\n value={value}\n onValueChange={setValue}\n >\n <Radio.Item\n label=\"Free\"\n description=\"For personal or hobby projects that aren't business-critical.\"\n value=\"free\"\n />\n <Radio.Item\n label=\"Pro\"\n description=\"For professional websites that aren't business-critical.\"\n value=\"pro\"\n />\n <Radio.Item\n label=\"Business\"\n description=\"For small businesses operating online.\"\n value=\"business\"\n />\n <Radio.Item\n label=\"Contract\"\n description=\"For mission-critical applications that are core to your business.\"\n value=\"contract\"\n />\n </Radio.Group>"
|
|
4532
4512
|
],
|
|
@@ -4556,53 +4536,17 @@
|
|
|
4556
4536
|
"name": "Group",
|
|
4557
4537
|
"description": "Group sub-component",
|
|
4558
4538
|
"props": {
|
|
4559
|
-
"legend": {
|
|
4560
|
-
"type": "string",
|
|
4561
|
-
"optional": true
|
|
4562
|
-
},
|
|
4563
|
-
"children": {
|
|
4564
|
-
"type": "ReactNode",
|
|
4565
|
-
"required": true
|
|
4566
|
-
},
|
|
4567
|
-
"orientation": {
|
|
4568
|
-
"type": "\"vertical\" | \"horizontal\"",
|
|
4569
|
-
"optional": true
|
|
4570
|
-
},
|
|
4571
|
-
"appearance": {
|
|
4572
|
-
"type": "KumoRadioAppearance",
|
|
4573
|
-
"optional": true
|
|
4574
|
-
},
|
|
4575
|
-
"error": {
|
|
4576
|
-
"type": "string",
|
|
4577
|
-
"optional": true
|
|
4578
|
-
},
|
|
4579
|
-
"description": {
|
|
4580
|
-
"type": "ReactNode",
|
|
4581
|
-
"optional": true
|
|
4582
|
-
},
|
|
4583
4539
|
"value": {
|
|
4584
|
-
"type": "
|
|
4585
|
-
"
|
|
4540
|
+
"type": "T",
|
|
4541
|
+
"description": "The controlled value of the selected radio item."
|
|
4586
4542
|
},
|
|
4587
|
-
"
|
|
4588
|
-
"type": "
|
|
4589
|
-
"
|
|
4590
|
-
},
|
|
4591
|
-
"label": {
|
|
4592
|
-
"type": "\"start\" puts radio before label",
|
|
4593
|
-
"required": true
|
|
4594
|
-
},
|
|
4595
|
-
"controlPosition": {
|
|
4596
|
-
"type": "RadioControlPosition",
|
|
4597
|
-
"optional": true
|
|
4598
|
-
},
|
|
4599
|
-
"name": {
|
|
4600
|
-
"type": "string",
|
|
4601
|
-
"optional": true
|
|
4543
|
+
"defaultValue": {
|
|
4544
|
+
"type": "T",
|
|
4545
|
+
"description": "The uncontrolled initial value of the selected radio item."
|
|
4602
4546
|
},
|
|
4603
|
-
"
|
|
4604
|
-
"type": "
|
|
4605
|
-
"
|
|
4547
|
+
"onValueChange": {
|
|
4548
|
+
"type": "(value: T, eventDetails: RadioGroupChangeEventDetails) => void",
|
|
4549
|
+
"description": "Callback fired when the selected value changes. The second argument carries native event details about the interaction."
|
|
4606
4550
|
}
|
|
4607
4551
|
}
|
|
4608
4552
|
},
|
|
@@ -4961,7 +4905,7 @@
|
|
|
4961
4905
|
"Sidebar": {
|
|
4962
4906
|
"name": "Sidebar",
|
|
4963
4907
|
"type": "component",
|
|
4964
|
-
"description": "Sidebar — responsive navigation panel with expand/collapse support.
|
|
4908
|
+
"description": "Sidebar — responsive navigation panel with expand/collapse support.",
|
|
4965
4909
|
"importPath": "@cloudflare/kumo",
|
|
4966
4910
|
"category": "Other",
|
|
4967
4911
|
"props": {
|
|
@@ -5689,7 +5633,7 @@
|
|
|
5689
5633
|
"Table": {
|
|
5690
5634
|
"name": "Table",
|
|
5691
5635
|
"type": "component",
|
|
5692
|
-
"description": "Table — semantic HTML table with styled rows, cells, and selection support.
|
|
5636
|
+
"description": "Table — semantic HTML table with styled rows, cells, and selection support.",
|
|
5693
5637
|
"importPath": "@cloudflare/kumo",
|
|
5694
5638
|
"category": "Other",
|
|
5695
5639
|
"props": {
|
|
@@ -5818,7 +5762,7 @@
|
|
|
5818
5762
|
"TableOfContents": {
|
|
5819
5763
|
"name": "TableOfContents",
|
|
5820
5764
|
"type": "component",
|
|
5821
|
-
"description": "TableOfContents — presentational compound component for section navigation.
|
|
5765
|
+
"description": "TableOfContents — presentational compound component for section navigation.",
|
|
5822
5766
|
"importPath": "@cloudflare/kumo",
|
|
5823
5767
|
"category": "Other",
|
|
5824
5768
|
"props": {
|
|
@@ -6169,7 +6113,7 @@
|
|
|
6169
6113
|
"Toasty": {
|
|
6170
6114
|
"name": "Toasty",
|
|
6171
6115
|
"type": "component",
|
|
6172
|
-
"description": "Toasty — toast notification provider and viewport.
|
|
6116
|
+
"description": "Toasty — toast notification provider and viewport.",
|
|
6173
6117
|
"importPath": "@cloudflare/kumo",
|
|
6174
6118
|
"category": "Feedback",
|
|
6175
6119
|
"props": {
|
|
@@ -6222,10 +6166,8 @@
|
|
|
6222
6166
|
],
|
|
6223
6167
|
"colors": [
|
|
6224
6168
|
"bg-kumo-base",
|
|
6225
|
-
"bg-kumo-contrast",
|
|
6226
6169
|
"bg-kumo-control",
|
|
6227
6170
|
"bg-kumo-danger-tint",
|
|
6228
|
-
"bg-kumo-fill-hover",
|
|
6229
6171
|
"bg-kumo-info-tint",
|
|
6230
6172
|
"bg-kumo-success-tint",
|
|
6231
6173
|
"bg-kumo-warning-tint",
|
|
@@ -6274,6 +6216,112 @@
|
|
|
6274
6216
|
}
|
|
6275
6217
|
}
|
|
6276
6218
|
},
|
|
6219
|
+
"Toolbar": {
|
|
6220
|
+
"name": "Toolbar",
|
|
6221
|
+
"type": "component",
|
|
6222
|
+
"description": "Toolbar component",
|
|
6223
|
+
"importPath": "@cloudflare/kumo",
|
|
6224
|
+
"category": "Other",
|
|
6225
|
+
"props": {
|
|
6226
|
+
"disabled": {
|
|
6227
|
+
"type": "boolean",
|
|
6228
|
+
"optional": true
|
|
6229
|
+
},
|
|
6230
|
+
"orientation": {
|
|
6231
|
+
"type": "ToolbarRoot.Orientation",
|
|
6232
|
+
"optional": true,
|
|
6233
|
+
"description": "The orientation of the toolbar."
|
|
6234
|
+
},
|
|
6235
|
+
"loopFocus": {
|
|
6236
|
+
"type": "boolean",
|
|
6237
|
+
"optional": true,
|
|
6238
|
+
"description": "If `true`, using keyboard navigation will wrap focus to the other end of the toolbar once the end is reached."
|
|
6239
|
+
},
|
|
6240
|
+
"id": {
|
|
6241
|
+
"type": "string",
|
|
6242
|
+
"optional": true
|
|
6243
|
+
},
|
|
6244
|
+
"lang": {
|
|
6245
|
+
"type": "string",
|
|
6246
|
+
"optional": true
|
|
6247
|
+
},
|
|
6248
|
+
"title": {
|
|
6249
|
+
"type": "string",
|
|
6250
|
+
"optional": true
|
|
6251
|
+
},
|
|
6252
|
+
"className": {
|
|
6253
|
+
"type": "string | object",
|
|
6254
|
+
"optional": true,
|
|
6255
|
+
"description": "CSS class applied to the element, or a function that returns a class based on the component's state."
|
|
6256
|
+
},
|
|
6257
|
+
"render": {
|
|
6258
|
+
"type": "ReactNode",
|
|
6259
|
+
"optional": true,
|
|
6260
|
+
"description": "Allows you to replace the component's HTML element with a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
|
|
6261
|
+
},
|
|
6262
|
+
"children": {
|
|
6263
|
+
"type": "ReactNode",
|
|
6264
|
+
"optional": true,
|
|
6265
|
+
"description": "Toolbar controls rendered as one grouped card."
|
|
6266
|
+
},
|
|
6267
|
+
"size": {
|
|
6268
|
+
"type": "enum",
|
|
6269
|
+
"optional": true,
|
|
6270
|
+
"description": "Locks every toolbar item to this size.",
|
|
6271
|
+
"values": [
|
|
6272
|
+
"xs",
|
|
6273
|
+
"sm",
|
|
6274
|
+
"base",
|
|
6275
|
+
"lg"
|
|
6276
|
+
],
|
|
6277
|
+
"descriptions": {
|
|
6278
|
+
"xs": "Extra small toolbar for compact UIs",
|
|
6279
|
+
"sm": "Small toolbar for secondary controls",
|
|
6280
|
+
"base": "Default toolbar size",
|
|
6281
|
+
"lg": "Large toolbar for prominent controls"
|
|
6282
|
+
},
|
|
6283
|
+
"classes": {
|
|
6284
|
+
"xs": "text-xs",
|
|
6285
|
+
"sm": "text-xs",
|
|
6286
|
+
"base": "text-base",
|
|
6287
|
+
"lg": "text-base"
|
|
6288
|
+
},
|
|
6289
|
+
"default": "base"
|
|
6290
|
+
}
|
|
6291
|
+
},
|
|
6292
|
+
"examples": [
|
|
6293
|
+
"<Toolbar className=\"w-full max-w-md\">\n <Toolbar.InputGroup aria-label=\"Search DNS records\" className=\"flex-1\">\n <InputGroup.Addon>\n <MagnifyingGlassIcon />\n </InputGroup.Addon>\n <InputGroup.Input placeholder=\"Search DNS records\" />\n </Toolbar.InputGroup>\n <Toolbar.Button icon={FunnelSimpleIcon} aria-label=\"Filter\" />\n <Toolbar.Button icon={GearSixIcon} aria-label=\"Settings\" />\n </Toolbar>",
|
|
6294
|
+
"<div className=\"grid gap-3\">\n {([\"xs\", \"sm\", \"base\", \"lg\"] as const).map((size) => (\n <div key={size} className=\"flex items-center gap-3\">\n <span className=\"w-10 text-sm text-kumo-subtle\">{size}</span>\n <Toolbar size={size} className=\"w-fit\">\n <Toolbar.Input aria-label={`${size} search`} placeholder=\"Search...\" />\n <Toolbar.Button>Apply</Toolbar.Button>\n </Toolbar>\n </div>\n ))}\n </div>",
|
|
6295
|
+
"<Toolbar className=\"w-full max-w-md\">\n <Toolbar.Input\n aria-label=\"Search DNS records\"\n placeholder=\"Search DNS records\"\n className=\"flex-1\"\n />\n <Toolbar.Button icon={FunnelSimpleIcon} aria-label=\"Filter\" />\n <Toolbar.Button icon={GearSixIcon} aria-label=\"Settings\" />\n </Toolbar>",
|
|
6296
|
+
"<Toolbar className=\"w-full max-w-lg\">\n <Toolbar.InputGroup aria-label=\"Worker subdomain\" className=\"flex-1\">\n <InputGroup.Input placeholder=\"my-worker\" />\n <InputGroup.Suffix>.workers.dev</InputGroup.Suffix>\n </Toolbar.InputGroup>\n <Toolbar.Button>Visit</Toolbar.Button>\n </Toolbar>",
|
|
6297
|
+
"<Toolbar>\n <Toolbar.Button icon={UploadSimpleIcon}>Upload</Toolbar.Button>\n <Toolbar.Button icon={DownloadSimpleIcon}>Download</Toolbar.Button>\n </Toolbar>",
|
|
6298
|
+
"<Toolbar className=\"w-full max-w-lg\">\n <Toolbar.Input aria-label=\"Search records\" className=\"flex-1\" placeholder=\"Search\" />\n <Toolbar.Button icon={MagnifyingGlassIcon} aria-label=\"Search\" />\n </Toolbar>"
|
|
6299
|
+
],
|
|
6300
|
+
"colors": [
|
|
6301
|
+
"bg-kumo-control",
|
|
6302
|
+
"border-kumo-line",
|
|
6303
|
+
"ring-kumo-brand",
|
|
6304
|
+
"ring-kumo-focus",
|
|
6305
|
+
"ring-kumo-line"
|
|
6306
|
+
],
|
|
6307
|
+
"subComponents": {
|
|
6308
|
+
"Button": {
|
|
6309
|
+
"name": "Button",
|
|
6310
|
+
"description": "Button sub-component",
|
|
6311
|
+
"props": {}
|
|
6312
|
+
},
|
|
6313
|
+
"Input": {
|
|
6314
|
+
"name": "Input",
|
|
6315
|
+
"description": "Input sub-component",
|
|
6316
|
+
"props": {}
|
|
6317
|
+
},
|
|
6318
|
+
"InputGroup": {
|
|
6319
|
+
"name": "InputGroup",
|
|
6320
|
+
"description": "InputGroup sub-component",
|
|
6321
|
+
"props": {}
|
|
6322
|
+
}
|
|
6323
|
+
}
|
|
6324
|
+
},
|
|
6277
6325
|
"Tooltip": {
|
|
6278
6326
|
"name": "Tooltip",
|
|
6279
6327
|
"type": "component",
|
|
@@ -6555,7 +6603,7 @@
|
|
|
6555
6603
|
"ResourceListPage": {
|
|
6556
6604
|
"name": "ResourceListPage",
|
|
6557
6605
|
"type": "block",
|
|
6558
|
-
"description": "ResourceListPage - A layout component for resource list pages
|
|
6606
|
+
"description": "ResourceListPage - A layout component for resource list pages",
|
|
6559
6607
|
"importPath": "@cloudflare/kumo",
|
|
6560
6608
|
"category": "Layout",
|
|
6561
6609
|
"props": {
|
|
@@ -6616,6 +6664,7 @@
|
|
|
6616
6664
|
"Sidebar",
|
|
6617
6665
|
"Table",
|
|
6618
6666
|
"TableOfContents",
|
|
6667
|
+
"Toolbar",
|
|
6619
6668
|
"DeleteResource"
|
|
6620
6669
|
],
|
|
6621
6670
|
"Display": [
|
|
@@ -6711,6 +6760,7 @@
|
|
|
6711
6760
|
"Tabs",
|
|
6712
6761
|
"Text",
|
|
6713
6762
|
"Toasty",
|
|
6763
|
+
"Toolbar",
|
|
6714
6764
|
"Tooltip"
|
|
6715
6765
|
],
|
|
6716
6766
|
"byType": {
|
|
@@ -6755,6 +6805,7 @@
|
|
|
6755
6805
|
"Tabs",
|
|
6756
6806
|
"Text",
|
|
6757
6807
|
"Toasty",
|
|
6808
|
+
"Toolbar",
|
|
6758
6809
|
"Tooltip"
|
|
6759
6810
|
],
|
|
6760
6811
|
"block": [
|