@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
package/ai/component-registry.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
### Autocomplete
|
|
8
8
|
|
|
9
|
-
Autocomplete — free-form text input with an optional filtered suggestion list.
|
|
9
|
+
Autocomplete — free-form text input with an optional filtered suggestion list.
|
|
10
10
|
|
|
11
11
|
**Type:** component
|
|
12
12
|
|
|
@@ -300,7 +300,7 @@ Small status label for categorizing or highlighting content.
|
|
|
300
300
|
|
|
301
301
|
**Colors (kumo tokens used):**
|
|
302
302
|
|
|
303
|
-
`bg-kumo-badge-blue`, `bg-kumo-badge-inverted`, `bg-kumo-badge-neutral`, `bg-kumo-badge-orange`, `bg-kumo-badge-purple`, `bg-kumo-badge-red`, `bg-kumo-badge-teal`, `bg-kumo-badge-teal-subtle`, `bg-kumo-danger-tint`, `bg-kumo-fill`, `bg-kumo-info-tint`, `bg-kumo-success`, `bg-kumo-success-tint`, `bg-kumo-warning-tint`, `border-kumo-brand`, `border-kumo-fill`, `ring-kumo-hairline`, `text-kumo-badge-inverted`, `text-kumo-badge-neutral-subtle`, `text-kumo-badge-teal-subtle`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-info`, `text-kumo-link`, `text-kumo-success`, `text-kumo-warning`
|
|
303
|
+
`bg-kumo-badge-blue`, `bg-kumo-badge-green`, `bg-kumo-badge-inverted`, `bg-kumo-badge-neutral`, `bg-kumo-badge-orange`, `bg-kumo-badge-purple`, `bg-kumo-badge-red`, `bg-kumo-badge-teal`, `bg-kumo-badge-teal-subtle`, `bg-kumo-danger-tint`, `bg-kumo-fill`, `bg-kumo-info-tint`, `bg-kumo-success`, `bg-kumo-success-tint`, `bg-kumo-warning-tint`, `border-kumo-brand`, `border-kumo-fill`, `ring-kumo-hairline`, `text-kumo-badge-inverted`, `text-kumo-badge-neutral-subtle`, `text-kumo-badge-teal-subtle`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-info`, `text-kumo-link`, `text-kumo-success`, `text-kumo-warning`
|
|
304
304
|
|
|
305
305
|
**Examples:**
|
|
306
306
|
|
|
@@ -321,6 +321,7 @@ Small status label for categorizing or highlighting content.
|
|
|
321
321
|
<div className="flex flex-wrap items-center gap-2">
|
|
322
322
|
<Badge variant="neutral">Neutral</Badge>
|
|
323
323
|
<Badge variant="red">Red</Badge>
|
|
324
|
+
<Badge variant="green">Green</Badge>
|
|
324
325
|
<Badge variant="orange">Orange</Badge>
|
|
325
326
|
<Badge variant="teal">Teal</Badge>
|
|
326
327
|
<Badge variant="blue">Blue</Badge>
|
|
@@ -628,8 +629,9 @@ Primary action trigger. Supports multiple variants, sizes, shapes, icons, and lo
|
|
|
628
629
|
|
|
629
630
|
**State Classes:**
|
|
630
631
|
- `"primary"`:
|
|
631
|
-
- `
|
|
632
|
-
- `
|
|
632
|
+
- `focus`: `focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring)`
|
|
633
|
+
- `active`: `active:ring-(--kumo-button-emphasis-ring)`
|
|
634
|
+
- `disabled`: `disabled:opacity-50`
|
|
633
635
|
- `"secondary"`:
|
|
634
636
|
- `not-disabled`: `not-disabled:hover:bg-kumo-tint`
|
|
635
637
|
- `disabled`: `disabled:bg-kumo-base/50 disabled:!text-kumo-default/70`
|
|
@@ -637,7 +639,9 @@ Primary action trigger. Supports multiple variants, sizes, shapes, icons, and lo
|
|
|
637
639
|
- `"ghost"`:
|
|
638
640
|
- `hover`: `hover:bg-kumo-tint`
|
|
639
641
|
- `"destructive"`:
|
|
640
|
-
- `
|
|
642
|
+
- `focus`: `focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring)`
|
|
643
|
+
- `active`: `active:ring-(--kumo-button-emphasis-ring)`
|
|
644
|
+
- `disabled`: `disabled:opacity-50`
|
|
641
645
|
- `"secondary-destructive"`:
|
|
642
646
|
- `not-disabled`: `not-disabled:hover:!text-kumo-danger not-disabled:hover:ring-kumo-danger/30`
|
|
643
647
|
- `disabled`: `disabled:bg-kumo-base/50 disabled:!text-kumo-danger/70`
|
|
@@ -660,7 +664,7 @@ Primary action trigger. Supports multiple variants, sizes, shapes, icons, and lo
|
|
|
660
664
|
|
|
661
665
|
**Colors (kumo tokens used):**
|
|
662
666
|
|
|
663
|
-
`bg-kumo-base`, `bg-kumo-
|
|
667
|
+
`bg-kumo-base`, `bg-kumo-tint`, `ring-kumo-brand`, `ring-kumo-danger`, `ring-kumo-focus`, `ring-kumo-line`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-strong`, `text-kumo-subtle`
|
|
664
668
|
|
|
665
669
|
**Examples:**
|
|
666
670
|
|
|
@@ -1464,7 +1468,7 @@ Props:
|
|
|
1464
1468
|
|
|
1465
1469
|
### Collapsible
|
|
1466
1470
|
|
|
1467
|
-
Collapsible — a composable disclosure component for showing/hiding content.
|
|
1471
|
+
Collapsible — a composable disclosure component for showing/hiding content.
|
|
1468
1472
|
|
|
1469
1473
|
**Type:** component
|
|
1470
1474
|
|
|
@@ -1615,7 +1619,7 @@ Props:
|
|
|
1615
1619
|
|
|
1616
1620
|
### Combobox
|
|
1617
1621
|
|
|
1618
|
-
Combobox — autocomplete input with filterable dropdown list.
|
|
1622
|
+
Combobox — autocomplete input with filterable dropdown list.
|
|
1619
1623
|
|
|
1620
1624
|
**Type:** component
|
|
1621
1625
|
|
|
@@ -2119,7 +2123,7 @@ Icon sub-component (wraps ComboboxBase)
|
|
|
2119
2123
|
|
|
2120
2124
|
### CommandPalette
|
|
2121
2125
|
|
|
2122
|
-
CommandPalette — accessible command palette / spotlight search overlay.
|
|
2126
|
+
CommandPalette — accessible command palette / spotlight search overlay.
|
|
2123
2127
|
|
|
2124
2128
|
**Type:** component
|
|
2125
2129
|
|
|
@@ -2424,7 +2428,7 @@ CommandPalette — accessible command palette / spotlight search overlay. Compo
|
|
|
2424
2428
|
|
|
2425
2429
|
### DatePicker
|
|
2426
2430
|
|
|
2427
|
-
DatePicker — a date selection calendar.
|
|
2431
|
+
DatePicker — a date selection calendar.
|
|
2428
2432
|
|
|
2429
2433
|
**Type:** component
|
|
2430
2434
|
|
|
@@ -2603,7 +2607,7 @@ DatePicker — a date selection calendar. Built on [react-day-picker](https://d
|
|
|
2603
2607
|
|
|
2604
2608
|
### DateRangePicker
|
|
2605
2609
|
|
|
2606
|
-
DateRangePicker — dual-calendar date range selector.
|
|
2610
|
+
DateRangePicker — dual-calendar date range selector.
|
|
2607
2611
|
|
|
2608
2612
|
**Type:** component
|
|
2609
2613
|
|
|
@@ -2688,10 +2692,10 @@ Dialog component
|
|
|
2688
2692
|
- `container`: PortalContainer
|
|
2689
2693
|
Container element for the portal. Use this to render the dialog inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
2690
2694
|
- `size`: enum [default: base]
|
|
2691
|
-
- `"base"`: Default dialog width
|
|
2692
|
-
- `"sm"`: Small dialog for simple confirmations
|
|
2693
|
-
- `"lg"`: Large dialog for complex content
|
|
2694
|
-
- `"xl"`: Extra large dialog for detailed views
|
|
2695
|
+
- `"base"`: Default dialog width (384px)
|
|
2696
|
+
- `"sm"`: Small dialog for simple confirmations (288px)
|
|
2697
|
+
- `"lg"`: Large dialog for complex content (512px)
|
|
2698
|
+
- `"xl"`: Extra large dialog for detailed views (768px)
|
|
2695
2699
|
|
|
2696
2700
|
**Colors (kumo tokens used):**
|
|
2697
2701
|
|
|
@@ -3023,12 +3027,92 @@ Close sub-component
|
|
|
3023
3027
|
</Dialog.Root>
|
|
3024
3028
|
```
|
|
3025
3029
|
|
|
3030
|
+
```tsx
|
|
3031
|
+
<div className="flex flex-wrap gap-2">
|
|
3032
|
+
{sizes.map(({ size, label, width }) => (
|
|
3033
|
+
<Dialog.Root key={size}>
|
|
3034
|
+
<Dialog.Trigger
|
|
3035
|
+
render={(p) => (
|
|
3036
|
+
<Button variant="secondary" {...p}>
|
|
3037
|
+
{label} ({width})
|
|
3038
|
+
</Button>
|
|
3039
|
+
)}
|
|
3040
|
+
/>
|
|
3041
|
+
<Dialog size={size} className="p-8">
|
|
3042
|
+
<div className="mb-4 flex items-start justify-between gap-4">
|
|
3043
|
+
<Dialog.Title className="text-2xl font-semibold">
|
|
3044
|
+
{label} Dialog
|
|
3045
|
+
</Dialog.Title>
|
|
3046
|
+
<Dialog.Close
|
|
3047
|
+
aria-label="Close"
|
|
3048
|
+
render={(props) => (
|
|
3049
|
+
<Button
|
|
3050
|
+
{...props}
|
|
3051
|
+
variant="secondary"
|
|
3052
|
+
shape="square"
|
|
3053
|
+
icon={<X />}
|
|
3054
|
+
aria-label="Close"
|
|
3055
|
+
/>
|
|
3056
|
+
)}
|
|
3057
|
+
/>
|
|
3058
|
+
</div>
|
|
3059
|
+
<Dialog.Description className="text-kumo-subtle">
|
|
3060
|
+
This <code>size="{size}"</code> dialog should stay at {width} wide
|
|
3061
|
+
regardless of the content below.
|
|
3062
|
+
</Dialog.Description>
|
|
3063
|
+
<div className="mt-4 overflow-auto rounded-md border border-kumo-line">
|
|
3064
|
+
<table className="w-max text-sm">
|
|
3065
|
+
<thead className="bg-kumo-elevated text-left">
|
|
3066
|
+
<tr>
|
|
3067
|
+
<th className="px-3 py-2">Resource</th>
|
|
3068
|
+
<th className="px-3 py-2">Region</th>
|
|
3069
|
+
<th className="px-3 py-2">Status</th>
|
|
3070
|
+
<th className="px-3 py-2">Latency</th>
|
|
3071
|
+
<th className="px-3 py-2">Requests</th>
|
|
3072
|
+
<th className="px-3 py-2">Last Deployed</th>
|
|
3073
|
+
</tr>
|
|
3074
|
+
</thead>
|
|
3075
|
+
<tbody className="divide-y divide-kumo-hairline">
|
|
3076
|
+
<tr>
|
|
3077
|
+
<td className="px-3 py-2">api-gateway-prod</td>
|
|
3078
|
+
<td className="px-3 py-2">us-east-1</td>
|
|
3079
|
+
<td className="px-3 py-2 text-kumo-success">Healthy</td>
|
|
3080
|
+
<td className="px-3 py-2">12ms</td>
|
|
3081
|
+
<td className="px-3 py-2">1,234,567</td>
|
|
3082
|
+
<td className="px-3 py-2">2026-06-23</td>
|
|
3083
|
+
</tr>
|
|
3084
|
+
<tr>
|
|
3085
|
+
<td className="px-3 py-2">worker-analytics</td>
|
|
3086
|
+
<td className="px-3 py-2">eu-west-1</td>
|
|
3087
|
+
<td className="px-3 py-2 text-kumo-warning">Degraded</td>
|
|
3088
|
+
<td className="px-3 py-2">89ms</td>
|
|
3089
|
+
<td className="px-3 py-2">456,789</td>
|
|
3090
|
+
<td className="px-3 py-2">2026-06-22</td>
|
|
3091
|
+
</tr>
|
|
3092
|
+
</tbody>
|
|
3093
|
+
</table>
|
|
3094
|
+
</div>
|
|
3095
|
+
<div className="mt-6 flex justify-end gap-2">
|
|
3096
|
+
<Dialog.Close
|
|
3097
|
+
render={(props) => (
|
|
3098
|
+
<Button variant="secondary" {...props}>
|
|
3099
|
+
Close
|
|
3100
|
+
</Button>
|
|
3101
|
+
)}
|
|
3102
|
+
/>
|
|
3103
|
+
</div>
|
|
3104
|
+
</Dialog>
|
|
3105
|
+
</Dialog.Root>
|
|
3106
|
+
))}
|
|
3107
|
+
</div>
|
|
3108
|
+
```
|
|
3109
|
+
|
|
3026
3110
|
|
|
3027
3111
|
---
|
|
3028
3112
|
|
|
3029
3113
|
### DropdownMenu
|
|
3030
3114
|
|
|
3031
|
-
DropdownMenu — accessible dropdown menu anchored to a trigger.
|
|
3115
|
+
DropdownMenu — accessible dropdown menu anchored to a trigger.
|
|
3032
3116
|
|
|
3033
3117
|
**Type:** component
|
|
3034
3118
|
|
|
@@ -3333,6 +3417,17 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
3333
3417
|
</DropdownMenu>
|
|
3334
3418
|
```
|
|
3335
3419
|
|
|
3420
|
+
```tsx
|
|
3421
|
+
<DropdownMenu>
|
|
3422
|
+
<DropdownMenu.Trigger render={<Button>Open long list</Button>} />
|
|
3423
|
+
<DropdownMenu.Content>
|
|
3424
|
+
{items.map((item) => (
|
|
3425
|
+
<DropdownMenu.Item key={item}>{item}</DropdownMenu.Item>
|
|
3426
|
+
))}
|
|
3427
|
+
</DropdownMenu.Content>
|
|
3428
|
+
</DropdownMenu>
|
|
3429
|
+
```
|
|
3430
|
+
|
|
3336
3431
|
```tsx
|
|
3337
3432
|
<DropdownMenu>
|
|
3338
3433
|
<DropdownMenu.Trigger render={<Button>Resources</Button>} />
|
|
@@ -4353,7 +4448,7 @@ Description sub-component
|
|
|
4353
4448
|
|
|
4354
4449
|
### Label
|
|
4355
4450
|
|
|
4356
|
-
Label component for form fields.
|
|
4451
|
+
Label component for form fields.
|
|
4357
4452
|
|
|
4358
4453
|
**Type:** component
|
|
4359
4454
|
|
|
@@ -4697,7 +4792,7 @@ Animated circular spinner for indicating loading states.
|
|
|
4697
4792
|
|
|
4698
4793
|
### MenuBar
|
|
4699
4794
|
|
|
4700
|
-
MenuBar — horizontal icon-button toolbar with keyboard arrow-key navigation.
|
|
4795
|
+
MenuBar — horizontal icon-button toolbar with keyboard arrow-key navigation.
|
|
4701
4796
|
|
|
4702
4797
|
**Type:** component
|
|
4703
4798
|
|
|
@@ -5293,7 +5388,7 @@ Close sub-component
|
|
|
5293
5388
|
|
|
5294
5389
|
### Radio
|
|
5295
5390
|
|
|
5296
|
-
Radio — radio button group for single-select choices.
|
|
5391
|
+
Radio — radio button group for single-select choices.
|
|
5297
5392
|
|
|
5298
5393
|
**Type:** component
|
|
5299
5394
|
|
|
@@ -5303,12 +5398,9 @@ Radio — radio button group for single-select choices. Compound component: `Ra
|
|
|
5303
5398
|
|
|
5304
5399
|
**Props:**
|
|
5305
5400
|
|
|
5306
|
-
- `
|
|
5307
|
-
|
|
5308
|
-
- `
|
|
5309
|
-
Child Radio.Item components (and optionally a Radio.Legend)
|
|
5310
|
-
- `orientation`: enum
|
|
5311
|
-
Layout direction of the radio items
|
|
5401
|
+
- `variant`: enum [default: default]
|
|
5402
|
+
- `"default"`: Default radio appearance
|
|
5403
|
+
- `"error"`: Error state for validation failures
|
|
5312
5404
|
- `appearance`: enum [default: default]
|
|
5313
5405
|
- `"default"`: Standard inline radio item
|
|
5314
5406
|
- `"card"`: Choice card appearance with border, padding, and highlighted selection state
|
|
@@ -5316,20 +5408,16 @@ Radio — radio button group for single-select choices. Compound component: `Ra
|
|
|
5316
5408
|
**State Classes:**
|
|
5317
5409
|
- `"card"`:
|
|
5318
5410
|
- `hover`: `hover:bg-kumo-tint`
|
|
5319
|
-
- `error`: string
|
|
5320
|
-
Error message for the group
|
|
5321
|
-
- `description`: ReactNode
|
|
5322
|
-
Helper text for the group
|
|
5323
|
-
- `value`: string
|
|
5324
|
-
Value of the radio that should be selected (controlled)
|
|
5325
|
-
- `disabled`: boolean
|
|
5326
|
-
Whether all radios in the group are disabled
|
|
5327
|
-
- `controlPosition`: enum
|
|
5328
|
-
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.
|
|
5329
|
-
- `name`: string
|
|
5330
|
-
Form submission name for the radio group
|
|
5331
5411
|
- `className`: string
|
|
5332
5412
|
Additional CSS classes
|
|
5413
|
+
- `children`: ReactNode
|
|
5414
|
+
Child elements
|
|
5415
|
+
- `value`: T
|
|
5416
|
+
The controlled value of the selected radio item.
|
|
5417
|
+
- `defaultValue`: T
|
|
5418
|
+
The uncontrolled initial value of the selected radio item.
|
|
5419
|
+
- `onValueChange`: (value: T, eventDetails: RadioGroupChangeEventDetails) => void
|
|
5420
|
+
Callback fired when the selected value changes. The second argument carries native event details about the interaction.
|
|
5333
5421
|
|
|
5334
5422
|
**Colors (kumo tokens used):**
|
|
5335
5423
|
|
|
@@ -5348,18 +5436,9 @@ Item sub-component
|
|
|
5348
5436
|
Group sub-component
|
|
5349
5437
|
|
|
5350
5438
|
Props:
|
|
5351
|
-
- `
|
|
5352
|
-
- `
|
|
5353
|
-
- `
|
|
5354
|
-
- `appearance`: KumoRadioAppearance
|
|
5355
|
-
- `error`: string
|
|
5356
|
-
- `description`: ReactNode
|
|
5357
|
-
- `value`: string
|
|
5358
|
-
- `disabled`: boolean
|
|
5359
|
-
- `label`: "start" puts radio before label (required)
|
|
5360
|
-
- `controlPosition`: RadioControlPosition
|
|
5361
|
-
- `name`: string
|
|
5362
|
-
- `className`: string
|
|
5439
|
+
- `value`: T - The controlled value of the selected radio item.
|
|
5440
|
+
- `defaultValue`: T - The uncontrolled initial value of the selected radio item.
|
|
5441
|
+
- `onValueChange`: (value: T, eventDetails: RadioGroupChangeEventDetails) => void - Callback fired when the selected value changes. The second argument carries native event details about the interaction.
|
|
5363
5442
|
|
|
5364
5443
|
#### Radio.Legend
|
|
5365
5444
|
|
|
@@ -5564,6 +5643,29 @@ Props:
|
|
|
5564
5643
|
</Radio.Group>
|
|
5565
5644
|
```
|
|
5566
5645
|
|
|
5646
|
+
```tsx
|
|
5647
|
+
<div className="grid grid-cols-2 gap-6">
|
|
5648
|
+
<Radio.Group<number>
|
|
5649
|
+
legend="Items per page"
|
|
5650
|
+
value={pageSize}
|
|
5651
|
+
onValueChange={setPageSize}
|
|
5652
|
+
>
|
|
5653
|
+
<Radio.Item<number> label="10" value={10} />
|
|
5654
|
+
<Radio.Item<number> label="25" value={25} />
|
|
5655
|
+
<Radio.Item<number> label="50" value={50} />
|
|
5656
|
+
</Radio.Group>
|
|
5657
|
+
<Radio.Group<ThemeType>
|
|
5658
|
+
legend="Theme"
|
|
5659
|
+
value={theme}
|
|
5660
|
+
onValueChange={setTheme}
|
|
5661
|
+
>
|
|
5662
|
+
<Radio.Item<ThemeType> label="Light" value={ThemeType.light} />
|
|
5663
|
+
<Radio.Item<ThemeType> label="Dark" value={ThemeType.dark} />
|
|
5664
|
+
<Radio.Item<ThemeType> label="System" value={ThemeType.system} />
|
|
5665
|
+
</Radio.Group>
|
|
5666
|
+
</div>
|
|
5667
|
+
```
|
|
5668
|
+
|
|
5567
5669
|
```tsx
|
|
5568
5670
|
<Radio.Group
|
|
5569
5671
|
legend="Choose a plan"
|
|
@@ -6153,7 +6255,7 @@ Password/secret input that masks its value by default and reveals on click. Incl
|
|
|
6153
6255
|
|
|
6154
6256
|
### Sidebar
|
|
6155
6257
|
|
|
6156
|
-
Sidebar — responsive navigation panel with expand/collapse support.
|
|
6258
|
+
Sidebar — responsive navigation panel with expand/collapse support.
|
|
6157
6259
|
|
|
6158
6260
|
**Type:** component
|
|
6159
6261
|
|
|
@@ -7176,7 +7278,7 @@ Props:
|
|
|
7176
7278
|
|
|
7177
7279
|
### Table
|
|
7178
7280
|
|
|
7179
|
-
Table — semantic HTML table with styled rows, cells, and selection support.
|
|
7281
|
+
Table — semantic HTML table with styled rows, cells, and selection support.
|
|
7180
7282
|
|
|
7181
7283
|
**Type:** component
|
|
7182
7284
|
|
|
@@ -7631,7 +7733,7 @@ ResizeHandle sub-component
|
|
|
7631
7733
|
|
|
7632
7734
|
### TableOfContents
|
|
7633
7735
|
|
|
7634
|
-
TableOfContents — presentational compound component for section navigation.
|
|
7736
|
+
TableOfContents — presentational compound component for section navigation.
|
|
7635
7737
|
|
|
7636
7738
|
**Type:** component
|
|
7637
7739
|
|
|
@@ -8111,7 +8213,7 @@ Text component
|
|
|
8111
8213
|
|
|
8112
8214
|
### Toasty
|
|
8113
8215
|
|
|
8114
|
-
Toasty — toast notification provider and viewport.
|
|
8216
|
+
Toasty — toast notification provider and viewport.
|
|
8115
8217
|
|
|
8116
8218
|
**Type:** component
|
|
8117
8219
|
|
|
@@ -8134,7 +8236,7 @@ Toasty — toast notification provider and viewport. Renders a `Toast.Provider`
|
|
|
8134
8236
|
|
|
8135
8237
|
**Colors (kumo tokens used):**
|
|
8136
8238
|
|
|
8137
|
-
`bg-kumo-base`, `bg-kumo-
|
|
8239
|
+
`bg-kumo-base`, `bg-kumo-control`, `bg-kumo-danger-tint`, `bg-kumo-info-tint`, `bg-kumo-success-tint`, `bg-kumo-warning-tint`, `border-kumo-fill`, `ring-kumo-danger`, `ring-kumo-hairline`, `ring-kumo-info`, `ring-kumo-line`, `ring-kumo-success`, `ring-kumo-warning`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-info`, `text-kumo-subtle`, `text-kumo-success`, `text-kumo-warning`
|
|
8138
8240
|
|
|
8139
8241
|
**Styling:**
|
|
8140
8242
|
|
|
@@ -8148,6 +8250,117 @@ Toasty — toast notification provider and viewport. Renders a `Toast.Provider`
|
|
|
8148
8250
|
```
|
|
8149
8251
|
|
|
8150
8252
|
|
|
8253
|
+
---
|
|
8254
|
+
|
|
8255
|
+
### Toolbar
|
|
8256
|
+
|
|
8257
|
+
Toolbar component
|
|
8258
|
+
|
|
8259
|
+
**Type:** component
|
|
8260
|
+
|
|
8261
|
+
**Import:** `import { Toolbar } from "@cloudflare/kumo";`
|
|
8262
|
+
|
|
8263
|
+
**Category:** Other
|
|
8264
|
+
|
|
8265
|
+
**Props:**
|
|
8266
|
+
|
|
8267
|
+
- `disabled`: boolean
|
|
8268
|
+
- `orientation`: ToolbarRoot.Orientation
|
|
8269
|
+
The orientation of the toolbar.
|
|
8270
|
+
- `loopFocus`: boolean
|
|
8271
|
+
If `true`, using keyboard navigation will wrap focus to the other end of the toolbar once the end is reached.
|
|
8272
|
+
- `id`: string
|
|
8273
|
+
- `lang`: string
|
|
8274
|
+
- `title`: string
|
|
8275
|
+
- `className`: string | object
|
|
8276
|
+
CSS class applied to the element, or a function that returns a class based on the component's state.
|
|
8277
|
+
- `render`: ReactNode
|
|
8278
|
+
Allows you to replace the component's HTML element with a different tag, or compose it with another component.
|
|
8279
|
+
|
|
8280
|
+
Accepts a `ReactElement` or a function that returns the element to render.
|
|
8281
|
+
- `children`: ReactNode
|
|
8282
|
+
Toolbar controls rendered as one grouped card.
|
|
8283
|
+
- `size`: enum [default: base]
|
|
8284
|
+
- `"xs"`: Extra small toolbar for compact UIs
|
|
8285
|
+
- `"sm"`: Small toolbar for secondary controls
|
|
8286
|
+
- `"base"`: Default toolbar size
|
|
8287
|
+
- `"lg"`: Large toolbar for prominent controls
|
|
8288
|
+
|
|
8289
|
+
**Colors (kumo tokens used):**
|
|
8290
|
+
|
|
8291
|
+
`bg-kumo-control`, `border-kumo-line`, `ring-kumo-brand`, `ring-kumo-focus`, `ring-kumo-line`
|
|
8292
|
+
|
|
8293
|
+
**Sub-Components:**
|
|
8294
|
+
|
|
8295
|
+
This is a compound component. Use these sub-components:
|
|
8296
|
+
|
|
8297
|
+
#### Toolbar.Button
|
|
8298
|
+
|
|
8299
|
+
Button sub-component
|
|
8300
|
+
|
|
8301
|
+
#### Toolbar.Input
|
|
8302
|
+
|
|
8303
|
+
Input sub-component
|
|
8304
|
+
|
|
8305
|
+
#### Toolbar.InputGroup
|
|
8306
|
+
|
|
8307
|
+
InputGroup sub-component
|
|
8308
|
+
|
|
8309
|
+
|
|
8310
|
+
**Examples:**
|
|
8311
|
+
|
|
8312
|
+
```tsx
|
|
8313
|
+
<Toolbar className="w-full max-w-md">
|
|
8314
|
+
<Toolbar.InputGroup aria-label="Search DNS records" className="flex-1">
|
|
8315
|
+
<InputGroup.Addon>
|
|
8316
|
+
<MagnifyingGlassIcon />
|
|
8317
|
+
</InputGroup.Addon>
|
|
8318
|
+
<InputGroup.Input placeholder="Search DNS records" />
|
|
8319
|
+
</Toolbar.InputGroup>
|
|
8320
|
+
<Toolbar.Button icon={FunnelSimpleIcon} aria-label="Filter" />
|
|
8321
|
+
<Toolbar.Button icon={GearSixIcon} aria-label="Settings" />
|
|
8322
|
+
</Toolbar>
|
|
8323
|
+
```
|
|
8324
|
+
|
|
8325
|
+
```tsx
|
|
8326
|
+
<div className="grid gap-3">
|
|
8327
|
+
{(["xs", "sm", "base", "lg"] as const).map((size) => (
|
|
8328
|
+
<div key={size} className="flex items-center gap-3">
|
|
8329
|
+
<span className="w-10 text-sm text-kumo-subtle">{size}</span>
|
|
8330
|
+
<Toolbar size={size} className="w-fit">
|
|
8331
|
+
<Toolbar.Input aria-label={`${size} search`} placeholder="Search..." />
|
|
8332
|
+
<Toolbar.Button>Apply</Toolbar.Button>
|
|
8333
|
+
</Toolbar>
|
|
8334
|
+
</div>
|
|
8335
|
+
))}
|
|
8336
|
+
</div>
|
|
8337
|
+
```
|
|
8338
|
+
|
|
8339
|
+
```tsx
|
|
8340
|
+
<Toolbar className="w-full max-w-lg">
|
|
8341
|
+
<Toolbar.InputGroup aria-label="Worker subdomain" className="flex-1">
|
|
8342
|
+
<InputGroup.Input placeholder="my-worker" />
|
|
8343
|
+
<InputGroup.Suffix>.workers.dev</InputGroup.Suffix>
|
|
8344
|
+
</Toolbar.InputGroup>
|
|
8345
|
+
<Toolbar.Button>Visit</Toolbar.Button>
|
|
8346
|
+
</Toolbar>
|
|
8347
|
+
```
|
|
8348
|
+
|
|
8349
|
+
```tsx
|
|
8350
|
+
<Toolbar>
|
|
8351
|
+
<Toolbar.Button icon={UploadSimpleIcon}>Upload</Toolbar.Button>
|
|
8352
|
+
<Toolbar.Button icon={DownloadSimpleIcon}>Download</Toolbar.Button>
|
|
8353
|
+
</Toolbar>
|
|
8354
|
+
```
|
|
8355
|
+
|
|
8356
|
+
```tsx
|
|
8357
|
+
<Toolbar className="w-full max-w-lg">
|
|
8358
|
+
<Toolbar.Input aria-label="Search records" className="flex-1" placeholder="Search" />
|
|
8359
|
+
<Toolbar.Button icon={MagnifyingGlassIcon} aria-label="Search" />
|
|
8360
|
+
</Toolbar>
|
|
8361
|
+
```
|
|
8362
|
+
|
|
8363
|
+
|
|
8151
8364
|
---
|
|
8152
8365
|
|
|
8153
8366
|
### Tooltip
|
|
@@ -8329,7 +8542,7 @@ Multi-line textarea input with Input variants and InputArea-specific dimensions
|
|
|
8329
8542
|
## Quick Reference
|
|
8330
8543
|
|
|
8331
8544
|
**Components by Category:**
|
|
8332
|
-
- **Other:** Autocomplete, CloudflareLogo, DatePicker, Label, Link, SensitiveInput, Sidebar, Table, TableOfContents, DeleteResource
|
|
8545
|
+
- **Other:** Autocomplete, CloudflareLogo, DatePicker, Label, Link, SensitiveInput, Sidebar, Table, TableOfContents, Toolbar, DeleteResource
|
|
8333
8546
|
- **Display:** Badge, Breadcrumbs, Code, Collapsible, Empty, LayerCard, Meter, Text
|
|
8334
8547
|
- **Feedback:** Banner, Loader, Toasty
|
|
8335
8548
|
- **Action:** Button, ClipboardText
|
package/ai/schemas.ts
CHANGED
|
@@ -498,7 +498,7 @@ export const DialogPropsSchema = z.object({
|
|
|
498
498
|
className: z.string().optional(), // Additional CSS classes merged via `cn()`.
|
|
499
499
|
children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Dialog content (typically Title, Description, Close, and action buttons).
|
|
500
500
|
container: z.unknown().optional(), // Container element for the portal. Use this to render the dialog inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
501
|
-
size: z.enum(["base", "sm", "lg", "xl"]).optional(), // Dialog width. - `"sm"` — Small (
|
|
501
|
+
size: z.enum(["base", "sm", "lg", "xl"]).optional(), // Dialog width. - `"sm"` — Small (288px) for simple confirmations - `"base"` — Default (384px) - `"lg"` — Large (512px) for complex content - `"xl"` — Extra large (768px) for detailed views
|
|
502
502
|
});
|
|
503
503
|
|
|
504
504
|
export const DropdownMenuPropsSchema = z.object({
|
|
@@ -641,17 +641,13 @@ export const PopoverPropsSchema = z.object({
|
|
|
641
641
|
});
|
|
642
642
|
|
|
643
643
|
export const RadioPropsSchema = z.object({
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
orientation: z.enum(["vertical", "horizontal"]).optional(), // Layout direction of the radio items
|
|
647
|
-
appearance: z.enum(["default", "card"]).optional(), // Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state Individual items can override this with their own `appearance` prop.
|
|
648
|
-
error: z.string().optional(), // Error message for the group
|
|
649
|
-
description: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Helper text for the group
|
|
650
|
-
value: z.string().optional(), // Value of the radio that should be selected (controlled)
|
|
651
|
-
disabled: z.boolean().optional(), // Whether all radios in the group are disabled
|
|
652
|
-
controlPosition: z.enum(["start", "end"]).optional(), // 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.
|
|
653
|
-
name: z.string().optional(), // Form submission name for the radio group
|
|
644
|
+
variant: z.enum(["default", "error"]).optional(),
|
|
645
|
+
appearance: z.enum(["default", "card"]).optional(),
|
|
654
646
|
className: z.string().optional(), // Additional CSS classes
|
|
647
|
+
children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Child elements
|
|
648
|
+
value: z.unknown().optional(), // The controlled value of the selected radio item.
|
|
649
|
+
defaultValue: z.unknown().optional(), // The uncontrolled initial value of the selected radio item.
|
|
650
|
+
onValueChange: z.unknown().optional(), // Callback fired when the selected value changes. The second argument carries native event details about the interaction.
|
|
655
651
|
});
|
|
656
652
|
|
|
657
653
|
export const SelectPropsSchema = z.object({
|
|
@@ -793,6 +789,19 @@ export const ToastyPropsSchema = z.object({
|
|
|
793
789
|
children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Child elements
|
|
794
790
|
});
|
|
795
791
|
|
|
792
|
+
export const ToolbarPropsSchema = z.object({
|
|
793
|
+
disabled: z.boolean().optional(),
|
|
794
|
+
orientation: z.unknown().optional(), // The orientation of the toolbar.
|
|
795
|
+
loopFocus: z.boolean().optional(), // If `true`, using keyboard navigation will wrap focus to the other end of the toolbar once the end is reached.
|
|
796
|
+
id: z.string().optional(),
|
|
797
|
+
lang: z.string().optional(),
|
|
798
|
+
title: z.string().optional(),
|
|
799
|
+
className: z.unknown().optional(), // CSS class applied to the element, or a function that returns a class based on the component's state.
|
|
800
|
+
render: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // 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.
|
|
801
|
+
children: z.union([z.string(), z.number(), z.boolean(), z.null(), DynamicValueSchema]).optional(), // Toolbar controls rendered as one grouped card.
|
|
802
|
+
size: z.enum(["xs", "sm", "base", "lg"]).optional(), // Locks every toolbar item to this size.
|
|
803
|
+
});
|
|
804
|
+
|
|
796
805
|
export const TooltipPropsSchema = z.object({
|
|
797
806
|
side: z.enum(["top", "bottom", "left", "right"]).optional(),
|
|
798
807
|
className: z.string().optional(), // Additional CSS classes
|
|
@@ -807,7 +816,7 @@ export const TooltipPropsSchema = z.object({
|
|
|
807
816
|
/**
|
|
808
817
|
* All valid component type names
|
|
809
818
|
*/
|
|
810
|
-
export type KumoComponentType = "Autocomplete" | "Badge" | "Banner" | "Breadcrumbs" | "Button" | "Checkbox" | "ClipboardText" | "CloudflareLogo" | "Code" | "Collapsible" | "Combobox" | "CommandPalette" | "DatePicker" | "DateRangePicker" | "Dialog" | "DropdownMenu" | "Empty" | "Field" | "Grid" | "Input" | "InputArea" | "InputGroup" | "Label" | "LayerCard" | "Link" | "Loader" | "MenuBar" | "Meter" | "Pagination" | "Popover" | "Radio" | "Select" | "SensitiveInput" | "Sidebar" | "Surface" | "Switch" | "Table" | "TableOfContents" | "Tabs" | "Text" | "Toasty" | "Tooltip";
|
|
819
|
+
export type KumoComponentType = "Autocomplete" | "Badge" | "Banner" | "Breadcrumbs" | "Button" | "Checkbox" | "ClipboardText" | "CloudflareLogo" | "Code" | "Collapsible" | "Combobox" | "CommandPalette" | "DatePicker" | "DateRangePicker" | "Dialog" | "DropdownMenu" | "Empty" | "Field" | "Grid" | "Input" | "InputArea" | "InputGroup" | "Label" | "LayerCard" | "Link" | "Loader" | "MenuBar" | "Meter" | "Pagination" | "Popover" | "Radio" | "Select" | "SensitiveInput" | "Sidebar" | "Surface" | "Switch" | "Table" | "TableOfContents" | "Tabs" | "Text" | "Toasty" | "Toolbar" | "Tooltip";
|
|
811
820
|
|
|
812
821
|
export const KumoComponentTypeSchema = z.enum([
|
|
813
822
|
"Autocomplete",
|
|
@@ -851,6 +860,7 @@ export const KumoComponentTypeSchema = z.enum([
|
|
|
851
860
|
"Tabs",
|
|
852
861
|
"Text",
|
|
853
862
|
"Toasty",
|
|
863
|
+
"Toolbar",
|
|
854
864
|
"Tooltip",
|
|
855
865
|
]);
|
|
856
866
|
|
|
@@ -899,6 +909,7 @@ export const ComponentPropsSchemas = {
|
|
|
899
909
|
Tabs: TabsPropsSchema,
|
|
900
910
|
Text: TextPropsSchema,
|
|
901
911
|
Toasty: ToastyPropsSchema,
|
|
912
|
+
Toolbar: ToolbarPropsSchema,
|
|
902
913
|
Tooltip: TooltipPropsSchema,
|
|
903
914
|
} as const;
|
|
904
915
|
|
|
@@ -956,4 +967,4 @@ export function validateUITree(tree: unknown): SafeParseResult<UITree> {
|
|
|
956
967
|
/**
|
|
957
968
|
* List of all component names (for catalog generation)
|
|
958
969
|
*/
|
|
959
|
-
export const KUMO_COMPONENT_NAMES = ["Autocomplete", "Badge", "Banner", "Breadcrumbs", "Button", "Checkbox", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "Grid", "Input", "InputArea", "InputGroup", "Label", "LayerCard", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "Select", "SensitiveInput", "Sidebar", "Surface", "Switch", "Table", "TableOfContents", "Tabs", "Text", "Toasty", "Tooltip"] as const;
|
|
970
|
+
export const KUMO_COMPONENT_NAMES = ["Autocomplete", "Badge", "Banner", "Breadcrumbs", "Button", "Checkbox", "ClipboardText", "CloudflareLogo", "Code", "Collapsible", "Combobox", "CommandPalette", "DatePicker", "DateRangePicker", "Dialog", "DropdownMenu", "Empty", "Field", "Grid", "Input", "InputArea", "InputGroup", "Label", "LayerCard", "Link", "Loader", "MenuBar", "Meter", "Pagination", "Popover", "Radio", "Select", "SensitiveInput", "Sidebar", "Surface", "Switch", "Table", "TableOfContents", "Tabs", "Text", "Toasty", "Toolbar", "Tooltip"] as const;
|
package/dist/.build-complete
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1783356823391
|