@cloudflare/kumo 2.6.0 → 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 +34 -0
- package/ai/component-registry.json +18 -14
- package/ai/component-registry.md +100 -5
- package/ai/schemas.ts +1 -1
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.js +1 -1
- 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-hgprlcuf0ixbbo6d.js → autocomplete-a4gvspveibfuod24.js} +5 -5
- package/dist/chunks/{autocomplete-hgprlcuf0ixbbo6d.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-lyj8ljudrm2owx5y.js → breadcrumbs-js59m7m57bdsveew.js} +4 -4
- package/dist/chunks/{breadcrumbs-lyj8ljudrm2owx5y.js.map → breadcrumbs-js59m7m57bdsveew.js.map} +1 -1
- package/dist/chunks/{button-gtdhvogt5rlrf1is.js → button-ebfdg9mkhojue36n.js} +80 -80
- package/dist/chunks/button-ebfdg9mkhojue36n.js.map +1 -0
- package/dist/chunks/{checkbox-byg8t8r9vbmif696.js → checkbox-k355pnfisqt0h4eg.js} +4 -4
- package/dist/chunks/{checkbox-byg8t8r9vbmif696.js.map → checkbox-k355pnfisqt0h4eg.js.map} +1 -1
- package/dist/chunks/{clipboard-text-lf909phvldd8rfk8.js → clipboard-text-isb05zkg2aox0tp6.js} +5 -5
- package/dist/chunks/{clipboard-text-lf909phvldd8rfk8.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-dl61f8gd4j897hmv.js → collapsible-f9hgtc1u6xvqrgt8.js} +3 -3
- package/dist/chunks/{collapsible-dl61f8gd4j897hmv.js.map → collapsible-f9hgtc1u6xvqrgt8.js.map} +1 -1
- package/dist/chunks/{combobox-dxff22zxzq846nec.js → combobox-hc9wi9nwsyyli8ur.js} +5 -5
- package/dist/chunks/{combobox-dxff22zxzq846nec.js.map → combobox-hc9wi9nwsyyli8ur.js.map} +1 -1
- package/dist/chunks/{command-palette-i4r0402b838wiy0j.js → command-palette-c03zze4ayuytwxjg.js} +4 -4
- package/dist/chunks/{command-palette-i4r0402b838wiy0j.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-g1b8161nbyixdit0.js → dialog-ovhmzfuppr5xix0e.js} +15 -15
- package/dist/chunks/dialog-ovhmzfuppr5xix0e.js.map +1 -0
- package/dist/chunks/{dropdown-irp18txvgz8590e9.js → dropdown-iey8f344rd5dgahz.js} +24 -16
- package/dist/chunks/dropdown-iey8f344rd5dgahz.js.map +1 -0
- package/dist/chunks/{empty-daa6d7u9oleaw24a.js → empty-k83r53jh5utqvv7w.js} +3 -3
- package/dist/chunks/{empty-daa6d7u9oleaw24a.js.map → empty-k83r53jh5utqvv7w.js.map} +1 -1
- package/dist/chunks/{field-f1hy08um3jf9jos6.js → field-bmglk138wa8bf3ei.js} +4 -4
- package/dist/chunks/{field-f1hy08um3jf9jos6.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-bwyujceeulpfkpxv.js → input-area-ixtj4e8eny58nbf9.js} +12 -12
- package/dist/chunks/{input-area-bwyujceeulpfkpxv.js.map → input-area-ixtj4e8eny58nbf9.js.map} +1 -1
- package/dist/chunks/{input-f2ct7obgdzypjmp2.js → input-ckl5misj0jd9cu5r.js} +4 -4
- package/dist/chunks/{input-f2ct7obgdzypjmp2.js.map → input-ckl5misj0jd9cu5r.js.map} +1 -1
- package/dist/chunks/{input-group-kcd3jin5pbdijmw8.js → input-group-bflx1m6ki55e99vf.js} +6 -6
- package/dist/chunks/{input-group-kcd3jin5pbdijmw8.js.map → input-group-bflx1m6ki55e99vf.js.map} +1 -1
- package/dist/chunks/{label-himqjkdhh0hgfdsa.js → label-i1xbmg8y1n0tbtkx.js} +4 -4
- package/dist/chunks/{label-himqjkdhh0hgfdsa.js.map → label-i1xbmg8y1n0tbtkx.js.map} +1 -1
- package/dist/chunks/{layer-card-cshi5vydqg3phyfx.js → layer-card-m6h85dpadvee39h2.js} +3 -3
- package/dist/chunks/{layer-card-cshi5vydqg3phyfx.js.map → layer-card-m6h85dpadvee39h2.js.map} +1 -1
- package/dist/chunks/{link-bw21ofmgg58igq5n.js → link-j93fl5m8zrcfivsr.js} +3 -3
- package/dist/chunks/{link-bw21ofmgg58igq5n.js.map → link-j93fl5m8zrcfivsr.js.map} +1 -1
- package/dist/chunks/{menubar-m12wcbbucuszspw4.js → menubar-opzxfzylaatfz4nv.js} +8 -8
- package/dist/chunks/{menubar-m12wcbbucuszspw4.js.map → menubar-opzxfzylaatfz4nv.js.map} +1 -1
- package/dist/chunks/{meter-dn8vgc0smpk0du75.js → meter-6br6z5ekw41trxeh.js} +3 -3
- package/dist/chunks/{meter-dn8vgc0smpk0du75.js.map → meter-6br6z5ekw41trxeh.js.map} +1 -1
- package/dist/chunks/{pagination-oafyxvdndm9m8250.js → pagination-j33ntwqmm9qskfgv.js} +4 -4
- package/dist/chunks/{pagination-oafyxvdndm9m8250.js.map → pagination-j33ntwqmm9qskfgv.js.map} +1 -1
- package/dist/chunks/{popover-bbxr39l1lx175hum.js → popover-cqdmpp8i4hg8gzzx.js} +3 -3
- package/dist/chunks/{popover-bbxr39l1lx175hum.js.map → popover-cqdmpp8i4hg8gzzx.js.map} +1 -1
- package/dist/chunks/{radio-ffx05ih9nc764evh.js → radio-ejey7i6r4tq314av.js} +3 -3
- package/dist/chunks/{radio-ffx05ih9nc764evh.js.map → radio-ejey7i6r4tq314av.js.map} +1 -1
- package/dist/chunks/{select-kl1skfh3pmwc33rp.js → select-p8adn2tnpom25hpl.js} +8 -8
- package/dist/chunks/{select-kl1skfh3pmwc33rp.js.map → select-p8adn2tnpom25hpl.js.map} +1 -1
- package/dist/chunks/{sensitive-input-izmbyk1t7r56ciiq.js → sensitive-input-it1hsswlccq3u7g6.js} +5 -5
- package/dist/chunks/{sensitive-input-izmbyk1t7r56ciiq.js.map → sensitive-input-it1hsswlccq3u7g6.js.map} +1 -1
- package/dist/chunks/{sidebar-ior8rnhsd7gy5am5.js → sidebar-ctd980heycmxsux1.js} +4 -4
- package/dist/chunks/{sidebar-ior8rnhsd7gy5am5.js.map → sidebar-ctd980heycmxsux1.js.map} +1 -1
- 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-g5a1buofz4erjov2.js → surface-gc2gblserrxcb1eg.js} +5 -5
- package/dist/chunks/{surface-g5a1buofz4erjov2.js.map → surface-gc2gblserrxcb1eg.js.map} +1 -1
- package/dist/chunks/{switch-kh8a6l3l0hszm9h4.js → switch-ljsq915e0l1a5mjd.js} +4 -4
- package/dist/chunks/{switch-kh8a6l3l0hszm9h4.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-dz2k55oab66h2vi9.js → table-ojjjeqszmt9jgnug.js} +3 -3
- package/dist/chunks/{table-dz2k55oab66h2vi9.js.map → table-ojjjeqszmt9jgnug.js.map} +1 -1
- package/dist/chunks/{tabs-kcw98wibdz4mhpkc.js → tabs-kemdy19kfesj2xjr.js} +3 -3
- package/dist/chunks/{tabs-kcw98wibdz4mhpkc.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-dkdo1lu72tnefya6.js → toast-ldj9zi940w83ub90.js} +97 -81
- package/dist/chunks/toast-ldj9zi940w83ub90.js.map +1 -0
- package/dist/chunks/{toolbar-o7xe6pd189evdd53.js → toolbar-lmylyrod70sn0q4i.js} +6 -6
- package/dist/chunks/{toolbar-o7xe6pd189evdd53.js.map → toolbar-lmylyrod70sn0q4i.js.map} +1 -1
- package/dist/chunks/{tooltip-eqnhjdbvwapy8gj4.js → tooltip-mooldq78tg77ekvv.js} +4 -4
- 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 +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/index.js +128 -126
- 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/src/components/button/button.d.ts +2 -2
- 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 +7 -0
- package/dist/src/components/chart/EChart.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/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/toast/toast.d.ts +2 -2
- package/dist/src/components/toast/toast.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- 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/utils.js +8 -7
- package/dist/utils.js.map +1 -1
- package/package.json +6 -5
- package/scripts/generate-primitives.ts +9 -0
- package/dist/chunks/SankeyChart-g1tng405ml2e0qg2.js +0 -890
- package/dist/chunks/SankeyChart-g1tng405ml2e0qg2.js.map +0 -1
- package/dist/chunks/button-gtdhvogt5rlrf1is.js.map +0 -1
- package/dist/chunks/cn-ct4n7r74mh8y0f48.js.map +0 -1
- package/dist/chunks/dialog-g1b8161nbyixdit0.js.map +0 -1
- package/dist/chunks/dropdown-irp18txvgz8590e9.js.map +0 -1
- package/dist/chunks/toast-dkdo1lu72tnefya6.js.map +0 -1
- package/dist/chunks/tooltip-eqnhjdbvwapy8gj4.js.map +0 -1
- package/dist/chunks/vendor-base-ui-f9z44m829vvptrg0.js +0 -24712
- package/dist/chunks/vendor-base-ui-f9z44m829vvptrg0.js.map +0 -1
- package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js +0 -2775
- package/dist/chunks/vendor-styling-gobnkhsy0rva4qd3.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @cloudflare/kumo
|
|
2
2
|
|
|
3
|
+
## 2.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8f8f898: Add `ChoroplethMap`, a GeoJSON region choropleth chart component that joins data rows to features by `name`/`nameProperty` and shades regions with a continuous `visualMap` scale. Includes Kumo light/dark map colours, tooltip formatting, optional legend, hover/click callbacks, roam controls, docs, and demos.
|
|
8
|
+
|
|
9
|
+
Both `BubbleMap` and `ChoroplethMap` now apply a d3-geo `projection` (latitude-clamped Mercator by default; pass another d3-geo projection or `null` for raw plotting) and size by `aspectRatio` so the map fills its container without letterboxing. The container height now derives from the projected window's aspect ratio by default; pass an explicit `height` to opt back into a fixed pixel height.
|
|
10
|
+
|
|
11
|
+
Update `BubbleMap` viewport behavior to avoid resetting user pan and zoom while refreshing bubble data.
|
|
12
|
+
|
|
13
|
+
`BubbleMap` now defaults `roam` to `false` to avoid accidental pan and zoom interactions. Consumers that want drag-to-pan or scroll-to-zoom can pass `roam={true}`.
|
|
14
|
+
|
|
15
|
+
- 6d366d9: Add `orientation="vertical"` support to `Flow` for laying out nodes top-to-bottom. The `align` prop now controls cross-axis alignment in both orientations.
|
|
16
|
+
- ebc5cf8: feat(chart): add `BubbleMap` chart component
|
|
17
|
+
|
|
18
|
+
New `BubbleMap` component renders proportional bubbles over a registered
|
|
19
|
+
geographic map using ECharts' scatter series. Includes value-based radius
|
|
20
|
+
scaling, a `mapColors` palette addition to `ChartPalette`, and supporting
|
|
21
|
+
types. Also extracts `escapeHtml` / `defaultValueFormat` tooltip helpers into a
|
|
22
|
+
shared `tooltip-utils` module reused by `SankeyChart`.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- dd1a0b5: Keep primary and destructive button active/focus rings matched to their variant color.
|
|
27
|
+
- 8463c38: Use the Button component for Toast close controls and match the hover tint to the toast variant.
|
|
28
|
+
- 3aa0d9a: Limit Dropdown content height to available viewport space to prevent overflow.
|
|
29
|
+
- 25b2ab1: Replace the internal class merging implementation with cnfast.
|
|
30
|
+
- 6232d34: fix(button): resolve Firefox rendering artifact when Turnstile is present
|
|
31
|
+
|
|
32
|
+
Replace `translate-y-px` with `box-shadow: inset 0 1px 0 0 var(--kumo-button-emphasis-bg)` on the primary/destructive button emphasis overlay span. The transform triggered a rendering bug in Firefox on pages with Turnstile's `contain: strict` CSS. The box-shadow achieves the same visual depth effect without the rendering issue.
|
|
33
|
+
|
|
34
|
+
- a74bd9c: Fix Dialog `size` prop to set a fixed width instead of only a minimum width. Previously, dialog content could stretch the dialog beyond its intended size.
|
|
35
|
+
- 4dd1398: Update Base UI to 1.6.0.
|
|
36
|
+
|
|
3
37
|
## 2.6.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
|
@@ -561,15 +561,17 @@
|
|
|
561
561
|
"outline": "Bordered button with transparent background"
|
|
562
562
|
},
|
|
563
563
|
"classes": {
|
|
564
|
-
"primary": "relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) disabled:opacity-50",
|
|
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",
|
|
565
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",
|
|
566
566
|
"ghost": "text-kumo-default hover:bg-kumo-tint shadow-none bg-inherit",
|
|
567
|
-
"destructive": "relative overflow-hidden bg-(--kumo-button-emphasis-bg) !text-white ring ring-(--kumo-button-emphasis-ring) disabled:opacity-50",
|
|
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",
|
|
568
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",
|
|
569
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"
|
|
570
570
|
},
|
|
571
571
|
"stateClasses": {
|
|
572
572
|
"primary": {
|
|
573
|
+
"focus": "focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring)",
|
|
574
|
+
"active": "active:ring-(--kumo-button-emphasis-ring)",
|
|
573
575
|
"disabled": "disabled:opacity-50"
|
|
574
576
|
},
|
|
575
577
|
"secondary": {
|
|
@@ -581,6 +583,8 @@
|
|
|
581
583
|
"hover": "hover:bg-kumo-tint"
|
|
582
584
|
},
|
|
583
585
|
"destructive": {
|
|
586
|
+
"focus": "focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring)",
|
|
587
|
+
"active": "active:ring-(--kumo-button-emphasis-ring)",
|
|
584
588
|
"disabled": "disabled:opacity-50"
|
|
585
589
|
},
|
|
586
590
|
"secondary-destructive": {
|
|
@@ -2793,7 +2797,7 @@
|
|
|
2793
2797
|
"size": {
|
|
2794
2798
|
"type": "enum",
|
|
2795
2799
|
"optional": true,
|
|
2796
|
-
"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",
|
|
2797
2801
|
"values": [
|
|
2798
2802
|
"base",
|
|
2799
2803
|
"sm",
|
|
@@ -2801,16 +2805,16 @@
|
|
|
2801
2805
|
"xl"
|
|
2802
2806
|
],
|
|
2803
2807
|
"descriptions": {
|
|
2804
|
-
"base": "Default dialog width",
|
|
2805
|
-
"sm": "Small dialog for simple confirmations",
|
|
2806
|
-
"lg": "Large dialog for complex content",
|
|
2807
|
-
"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)"
|
|
2808
2812
|
},
|
|
2809
2813
|
"classes": {
|
|
2810
|
-
"base": "sm:
|
|
2811
|
-
"sm": "
|
|
2812
|
-
"lg": "
|
|
2813
|
-
"xl": "
|
|
2814
|
+
"base": "sm:w-96",
|
|
2815
|
+
"sm": "sm:w-72",
|
|
2816
|
+
"lg": "sm:w-[32rem]",
|
|
2817
|
+
"xl": "sm:w-[48rem]"
|
|
2814
2818
|
},
|
|
2815
2819
|
"default": "base"
|
|
2816
2820
|
}
|
|
@@ -2823,7 +2827,8 @@
|
|
|
2823
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>",
|
|
2824
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>",
|
|
2825
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>",
|
|
2826
|
-
"<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>"
|
|
2827
2832
|
],
|
|
2828
2833
|
"colors": [
|
|
2829
2834
|
"bg-kumo-base",
|
|
@@ -2962,6 +2967,7 @@
|
|
|
2962
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>",
|
|
2963
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>",
|
|
2964
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>",
|
|
2965
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>"
|
|
2966
2972
|
],
|
|
2967
2973
|
"colors": [
|
|
@@ -6160,10 +6166,8 @@
|
|
|
6160
6166
|
],
|
|
6161
6167
|
"colors": [
|
|
6162
6168
|
"bg-kumo-base",
|
|
6163
|
-
"bg-kumo-contrast",
|
|
6164
6169
|
"bg-kumo-control",
|
|
6165
6170
|
"bg-kumo-danger-tint",
|
|
6166
|
-
"bg-kumo-fill-hover",
|
|
6167
6171
|
"bg-kumo-info-tint",
|
|
6168
6172
|
"bg-kumo-success-tint",
|
|
6169
6173
|
"bg-kumo-warning-tint",
|
package/ai/component-registry.md
CHANGED
|
@@ -629,6 +629,8 @@ Primary action trigger. Supports multiple variants, sizes, shapes, icons, and lo
|
|
|
629
629
|
|
|
630
630
|
**State Classes:**
|
|
631
631
|
- `"primary"`:
|
|
632
|
+
- `focus`: `focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring)`
|
|
633
|
+
- `active`: `active:ring-(--kumo-button-emphasis-ring)`
|
|
632
634
|
- `disabled`: `disabled:opacity-50`
|
|
633
635
|
- `"secondary"`:
|
|
634
636
|
- `not-disabled`: `not-disabled:hover:bg-kumo-tint`
|
|
@@ -637,6 +639,8 @@ Primary action trigger. Supports multiple variants, sizes, shapes, icons, and lo
|
|
|
637
639
|
- `"ghost"`:
|
|
638
640
|
- `hover`: `hover:bg-kumo-tint`
|
|
639
641
|
- `"destructive"`:
|
|
642
|
+
- `focus`: `focus:ring-(--kumo-button-emphasis-ring) focus-visible:ring-(--kumo-button-emphasis-ring)`
|
|
643
|
+
- `active`: `active:ring-(--kumo-button-emphasis-ring)`
|
|
640
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`
|
|
@@ -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,6 +3027,86 @@ 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
|
|
|
@@ -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>} />
|
|
@@ -8141,7 +8236,7 @@ Toasty — toast notification provider and viewport.
|
|
|
8141
8236
|
|
|
8142
8237
|
**Colors (kumo tokens used):**
|
|
8143
8238
|
|
|
8144
|
-
`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`
|
|
8145
8240
|
|
|
8146
8241
|
**Styling:**
|
|
8147
8242
|
|
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({
|
package/dist/.build-complete
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1783356823391
|
package/dist/ai/schemas.js
CHANGED
|
@@ -3442,7 +3442,7 @@ const m = _([
|
|
|
3442
3442
|
container: s().optional(),
|
|
3443
3443
|
// Container element for the portal. Use this to render the dialog inside a Shadow DOM or custom container. Overrides `KumoPortalProvider` context.
|
|
3444
3444
|
size: b(["base", "sm", "lg", "xl"]).optional()
|
|
3445
|
-
// Dialog width. - `"sm"` — Small (
|
|
3445
|
+
// Dialog width. - `"sm"` — Small (288px) for simple confirmations - `"base"` — Default (384px) - `"lg"` — Large (512px) for complex content - `"xl"` — Extra large (768px) for detailed views
|
|
3446
3446
|
}), Ra = z({
|
|
3447
3447
|
variant: b(["default", "danger"]).optional()
|
|
3448
3448
|
// Visual style of the dropdown item. - `"default"` — Standard item appearance - `"danger"` — Destructive action with red text
|