@cloudflare/kumo 2.13.2 → 2.14.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 +25 -0
- package/README.md +2 -2
- package/ai/component-registry.json +548 -8
- package/ai/component-registry.md +853 -19
- package/ai/schemas.ts +90 -2
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +311 -69
- package/dist/ai/schemas.js +185 -23
- package/dist/catalog.d.ts +11 -11
- package/dist/chunks/{AlertDialogTrigger-k3f8nevrda6awa4s.js → AlertDialogTrigger-dkihgpvj12si73w3.js} +5 -5
- package/dist/chunks/{AutocompleteItem-ksckpihly1c23f3j.js → AutocompleteItem-drxau0wm3735nihq.js} +17 -29
- package/dist/chunks/AutocompleteSeparator-hqtaxxxye1rfezfg.js +12 -0
- package/dist/chunks/{Button-oczevl8g75m85ew9.js → Button-ccl5r1xlbe3gh998.js} +3 -3
- package/dist/chunks/{CSPContext-guqghj8kxoukvlky.js → CSPContext-ctyrgg64girv38ls.js} +1 -7
- package/dist/chunks/{CSPProvider-f3it239kgztzgryk.js → CSPProvider-p9ensukmowjpkgc0.js} +2 -2
- package/dist/chunks/{CheckboxGroup-g5xn5gnq8ocqyoum.js → CheckboxGroup-knvypu2d1s0iz86k.js} +63 -45
- package/dist/chunks/{CheckboxGroupContext-f9wox07n2u5moq4h.js → CheckboxGroupContext-lgc9dwxou662i6zo.js} +3 -5
- package/dist/chunks/{CheckboxRoot-o5bfpje6e4p6pdgm.js → CheckboxIndicator-n982pbktfkxsa5zz.js} +128 -132
- package/dist/chunks/{CollapsiblePanel-e80n35tnsb2cskt9.js → CollapsiblePanel-jm0ni90g7wz7ppkc.js} +33 -36
- package/dist/chunks/{ComboboxClear-glm805v81uaaf3su.js → ComboboxClear-c2kvjkh9yc6xfl38.js} +83 -98
- package/dist/chunks/{ComboboxEmpty-hwv2kjxnf9un635e.js → ComboboxEmpty-o0q20j2l2syar9kx.js} +662 -586
- package/dist/chunks/{ComboboxPopup-fx7xex6g75t9u0gm.js → ComboboxPopup-oxgggc2wxy6bfmru.js} +57 -57
- package/dist/chunks/{CompositeItem-l7zee38lq5m224d5.js → CompositeItem-hzuk5x3e5zsfgnyj.js} +4 -7
- package/dist/chunks/CompositeList-lbr4enu6yzek7oa9.js +180 -0
- package/dist/chunks/{CompositeListContext-oetjj2x8li8678as.js → CompositeListContext-m9frxn53kkmr23d0.js} +2 -5
- package/dist/chunks/{CompositeRoot-l6ot8jo0umdics5m.js → CompositeRoot-g72lchaerolf5dc9.js} +61 -63
- package/dist/chunks/{CompositeRootContext-ofhzmevv7hadjhyy.js → CompositeRootContext-ixz4myr7uwvavx6w.js} +1 -1
- package/dist/chunks/DialogHandle-klk7uo1q1y8ghyx5.js +68 -0
- package/dist/chunks/{DialogPopup-mp89aob2nown2akq.js → DialogPopup-olsvyf7ulia6ekb1.js} +28 -71
- package/dist/chunks/DialogRoot-hl3genvzl9h8ridm.js +16 -0
- package/dist/chunks/{DialogTrigger-cmok07cf3ks0kzug.js → DialogTrigger-g44cuem7n4wez533.js} +23 -20
- package/dist/chunks/DialogViewport-e1tqfisqexc7o9z8.js +42 -0
- package/dist/chunks/{DirectionContext-jc1g0w645603sd6p.js → DirectionContext-opvqcb794uxicri4.js} +1 -4
- package/dist/chunks/{DirectionProvider-ihtfgxd5qpm6oth1.js → DirectionProvider-er2gibtc9a1f0kep.js} +2 -2
- package/dist/chunks/DrawerViewport-eqzib92gukr4qap3.js +1483 -0
- package/dist/chunks/{FieldControl-oz007qbkl6ejp7di.js → FieldControl-c5sahhd5xg3nr2x7.js} +58 -31
- package/dist/chunks/{FieldDescription-ju607ea6gwgzga8p.js → FieldDescription-ldfiii5bvssfib3d.js} +13 -12
- package/dist/chunks/{FieldItemContext-j85dc0ihramj5ezs.js → FieldItemContext-kpsmvqm5a98m8zpx.js} +1 -1
- package/dist/chunks/FieldLabel-j9teqs9f1exqv346.js +351 -0
- package/dist/chunks/{FieldsetLegend-j5piwq1giyhrr8s4.js → FieldsetLegend-jyy40ylt2ynkvgob.js} +7 -14
- package/dist/chunks/{FieldsetRootContext-b633e9uzilttuyfi.js → FieldsetRootContext-7nlstw7wronafxhw.js} +1 -1
- package/dist/chunks/{FloatingPortalLite-mlt7ztrvhzepwi5y.js → FloatingPortalLite-da0wdcmem7ahkle6.js} +3 -3
- package/dist/chunks/{FloatingTree-oosjswl1s9q4obvg.js → FloatingTree-lhdqtlu8s6m66n7l.js} +6 -6
- package/dist/chunks/Form-fjfbann47c7ws316.js +113 -0
- package/dist/chunks/{FormContext-xz0b4h7ue30fkkn1.js → FormContext-bsu99v8i8pwu1yxc.js} +4 -3
- package/dist/chunks/{Input-ovqfhsmpfcrg5czm.js → Input-irwtufp5t73pwnoj.js} +2 -2
- package/dist/chunks/{LabelableContext-hetas2e4y0kywfas.js → LabelableContext-ccxbhu73vrk089m1.js} +18 -45
- package/dist/chunks/ListboxSeparator-nfyv54r2v5qtmosj.js +21 -0
- package/dist/chunks/{MenuBackdrop-dlntmavtopj7wv0l.js → MenuBackdrop-ouznwyglg27bosoj.js} +7 -12
- package/dist/chunks/{MenuSubmenuTrigger-fzubf5xr7ohsgsi7.js → MenuSubmenuTrigger-mbbda6ucik6nphbq.js} +378 -292
- package/dist/chunks/{MenuTrigger-ntugq34yppc8ouwe.js → MenuTrigger-disngqnt74owi30p.js} +32 -41
- package/dist/chunks/{Menubar-d57cyjuztbge4dvv.js → Menubar-fluuxyn8c2zuz5pr.js} +12 -23
- package/dist/chunks/{MenubarContext-ei2r6vu6lmsspozo.js → MenubarContext-blatefsj42br7jh8.js} +1 -1
- package/dist/chunks/{MeterLabel-c40b0q8r81cftkjj.js → MeterLabel-k6no448jvaidaptf.js} +15 -18
- package/dist/chunks/NullStore-jwgpmovsgl47g9bv.js +109 -0
- package/dist/chunks/{PopoverClose-e91n3nkw16qnyese.js → PopoverClose-kpyt8hbqc52lnjb8.js} +183 -190
- package/dist/chunks/PrehydrationScript-j6zlrxmojrqni6b9.js +63 -0
- package/dist/chunks/{RadioGroup-lsix4haqxfigpuv8.js → RadioGroup-pok1e5qbnbujrz1e.js} +38 -35
- package/dist/chunks/{RadioGroupContext-ft0nndmzqynjz8a2.js → RadioGroupContext-galfnl2el7y2krov.js} +1 -1
- package/dist/chunks/{RadioIndicator-mwkahpwyqfc6yk1i.js → RadioIndicator-jd511oajbwmyjxbg.js} +49 -102
- package/dist/chunks/{ScrollAreaThumb-kmhan411yxfo0362.js → ScrollAreaThumb-eed3hf0pmrblshfw.js} +298 -385
- package/dist/chunks/{SelectGroupLabel-m4h5hrft9043nsd1.js → SelectSeparator-mrjooj7vmjez6fua.js} +447 -502
- package/dist/chunks/{Separator-b8wf5rea6m1cei8k.js → Separator-bcm4ezllqxvtpvuj.js} +2 -2
- package/dist/chunks/{SwitchRoot-e3hnyh3mf8qd30hj.js → SwitchRoot-gahuqddsq1s55p8m.js} +40 -85
- package/dist/chunks/{TabsList-c0inft3sf8gi2o4v.js → TabsList-ebl0v8gu8wn28zss.js} +204 -175
- package/dist/chunks/{Toggle-c8p9m3puz8l4mav7.js → Toggle-mbshs50266z9hgxp.js} +12 -13
- package/dist/chunks/{ToggleGroup-xz9zrh7t1htn6ht4.js → ToggleGroup-k2caz2ghv6zbzp5l.js} +13 -38
- package/dist/chunks/{ToggleGroupContext-cdk2zo6ciddpockn.js → ToggleGroupContext-h4v7jaf77rp2xng9.js} +3 -5
- package/dist/chunks/{ToolbarGroupContext-nriz3632ymugfj6h.js → ToolbarGroupContext-e5cg7needj0edodc.js} +3 -5
- package/dist/chunks/{ToolbarInput-er5t9irqvuwcjrir.js → ToolbarInput-i4h95tes75w0p5y2.js} +28 -33
- package/dist/chunks/{ToolbarRootContext-lvi96r1vvs93rhde.js → ToolbarRootContext-eqk40r8uh4h6r211.js} +1 -1
- package/dist/chunks/{TooltipPopup-l2zrbjavf1cqclfx.js → TooltipPopup-dm4y0hbdeylzp22y.js} +125 -127
- package/dist/chunks/{TooltipProvider-eyhgia63aq2x4frl.js → TooltipProvider-h40qf9wcn0atj15v.js} +14 -17
- package/dist/chunks/adaptiveOriginMiddleware-b8ztjthe278xq7lm.js +51 -0
- package/dist/chunks/{addEventListener-lhqvk2ahlzjsanyg.js → addEventListener-l40nxvf06iukgvnj.js} +1 -1
- package/dist/chunks/areArraysEqual-bcx201k1x9ziizym.js +15 -0
- package/dist/chunks/{autocomplete-dn6g4rc8bktdl4an.js → autocomplete-m6h1pbygknrz5div.js} +7 -7
- package/dist/chunks/{badge-xw5ydgdjx2o5qxbl.js → badge-dq8bx752b9dp7dst.js} +2 -1
- package/dist/chunks/{banner-n1ekcvrwashsgv93.js → banner-msnmqm7of2lck01x.js} +2 -2
- package/dist/chunks/{breadcrumbs-ffwe8tzqzmpyikq5.js → breadcrumbs-lhi1qrdh74mb4zsx.js} +4 -3
- package/dist/chunks/button-group-i9dh83xutyuxyry7.js +59 -0
- package/dist/chunks/{button-h36q7tklakhd38nx.js → button-pa1bq9b85hawg41a.js} +1 -1
- package/dist/chunks/{chart-qmls2klknm1pd6hs.js → chart-kd1xd6crso2i956o.js} +936 -49
- package/dist/chunks/{checkbox-jachq6akfh72x12r.js → checkbox-lbo436duy7krxcsk.js} +6 -7
- package/dist/chunks/clamp-jcjhzx71s6wt1rnc.js +7 -0
- package/dist/chunks/{clipboard-text-ms46uaujvkjmjnng.js → clipboard-text-gd6s3n1bqse9zgt8.js} +5 -5
- package/dist/chunks/{collapsible-jyajpe40jcca357s.js → collapsible-l8g94on4w7qfosmn.js} +1 -1
- package/dist/chunks/{combobox-hxarufzb1z61xnbv.js → combobox-hdxtsm2gqcxxgfju.js} +12 -11
- package/dist/chunks/{command-palette-iomiziccabzh4ogg.js → command-palette-crtm3nd32yjhuax1.js} +7 -7
- package/dist/chunks/{composite-o65hjzwwzb4kvl4w.js → composite-ab8dmdfoj6tmhcn1.js} +9 -21
- package/dist/chunks/{constants-j09lrtg73n4vlx5x.js → constants-flxfd6q03phtu007.js} +1 -1
- package/dist/chunks/{core-kjfqbvgicl9i3abf.js → core-n0de50o00ej2ecfe.js} +69 -55
- package/dist/chunks/createBaseUIEventDetails-3ob3qgs95ffm8l0w.js +49 -0
- package/dist/chunks/{ComboboxChipRemove-ksyozjezihhstmbu.js → createItems-b8n8vigg5nak6j9s.js} +113 -57
- package/dist/chunks/{createToastManager-kv89sv0xhhsvmq54.js → createToastManager-onmoqrmr8zo02rif.js} +305 -357
- package/dist/chunks/{css-d3t41yfupsmz7l1a.js → css-j501gxq1am2gnikh.js} +1 -1
- package/dist/chunks/{date-picker-fwe3vllwco4u1utz.js → date-picker-cotkexrpqu5tjikv.js} +54 -49
- package/dist/chunks/{date-range-picker-iymdx410i1hpvxai.js → date-range-picker-i6d8y1yemm7x5ins.js} +15 -14
- package/dist/chunks/{dialog-o0164pgcyc74lvp9.js → dialog-glpnivujociqs9lh.js} +13 -10
- package/dist/chunks/{dropdown-d5qrzj1w1a96w2we.js → dropdown-m53ji1d66mws89wh.js} +4 -4
- package/dist/chunks/{empty-ox60d384lkwbj5n4.js → empty-hkvg3is3uc6dj1at.js} +46 -38
- package/dist/chunks/{engine-io35xsj9fgfxtihg.js → engine-g5egnkub1ikv3wvy.js} +2 -2
- package/dist/chunks/{engine-javascript-d795u677f1802oaf.js → engine-javascript-e9xj8hhz9xfqhpnu.js} +200 -185
- package/dist/chunks/{engine-oniguruma-xjlw46ay321yj1av.js → engine-oniguruma-ias56ildu01gf939.js} +8 -7
- package/dist/chunks/error-f4f6l13zx6tynxmy.js +6 -0
- package/dist/chunks/{field-kgz7w7yixmtpg010.js → field-oqtso1v0oszlxi0e.js} +3 -3
- package/dist/chunks/{flow-fmfb3ri8cxo7w9ci.js → flow-iz8sn24h5q6q4b10.js} +76 -60
- package/dist/chunks/formatNumber-kcnmauoqxku5a84c.js +21 -0
- package/dist/chunks/{getCssDimensions-mi941fe1jvztqm6b.js → getCssDimensions-olosvhh5husavesv.js} +2 -2
- package/dist/chunks/getElementTransform-cuiqmjglkrz4db6c.js +38 -0
- package/dist/chunks/{getPseudoElementBounds-jg72lmrlwgbqhmjh.js → getPseudoElementBounds-x7b9uqi5hdb1lq2r.js} +13 -4
- package/dist/chunks/{github-light-kb466scjoy42qxpu.js → github-light-hir7yctc38258pwt.js} +1 -1
- package/dist/chunks/{graphql-gtqr4wytdf0qjybo.js → graphql-n9vlzkvcp2j19p7a.js} +1 -1
- package/dist/chunks/{html-ijyj3f9k0foag15c.js → html-nimj6ljkkifnc9ni.js} +2 -2
- package/dist/chunks/{index.parts-i4iu310eo65d7lfc.js → index.parts-b9zmk3ta77w8dy9f.js} +86 -34
- package/dist/chunks/{index.parts-mr7tgwe4pgfozkt5.js → index.parts-bq90erougcgrwlgk.js} +47 -50
- package/dist/chunks/{index.parts-7z8hqx6zl9yajzvs.js → index.parts-c1ocmbxanagpan6d.js} +206 -366
- package/dist/chunks/{index.parts-nd3mitrhxf806lsa.js → index.parts-cc0yi5vo7s4x3r9p.js} +140 -145
- package/dist/chunks/{index.parts-j2ecf25zajyd5ia3.js → index.parts-cdxa6fwtp3lpkpp4.js} +2 -2
- package/dist/chunks/{index.parts-komdbdvf823cm5jw.js → index.parts-cl2xux9bjec6cibd.js} +14 -11
- package/dist/chunks/{index.parts-bv57na43ve93uz3x.js → index.parts-d4wim8mcnl9a2n9d.js} +67 -36
- package/dist/chunks/{index.parts-gslyp9n88qdh38n1.js → index.parts-e9s1lqq3qa9l6ndm.js} +2 -2
- package/dist/chunks/{index.parts-i4lbjqdnhsnjtny6.js → index.parts-eks3uafpskcxle6j.js} +33 -22
- package/dist/chunks/{index2.parts-kiwz8e3k8utvm4zb.js → index.parts-fbip2x29k5okvypg.js} +9 -12
- package/dist/chunks/index.parts-fhza3s183grld7zq.js +102 -0
- package/dist/chunks/{index.parts-lz9cnngidxppvhz7.js → index.parts-ftxrjoy00esi3aau.js} +27 -40
- package/dist/chunks/{index.parts-kt0w73ciea6adi2i.js → index.parts-g390bxx23hdko02m.js} +2 -2
- package/dist/chunks/{index.parts-fl4zaorc97ed3keb.js → index.parts-gf9v1piz8xxt8ap1.js} +197 -244
- package/dist/chunks/{index.parts-ef9111sjk9e3al87.js → index.parts-h7wtkrxpz4m8eqn9.js} +63 -83
- package/dist/chunks/index.parts-hmx3qlh517ii56yi.js +116 -0
- package/dist/chunks/{index2.parts-mv7x6w0p2splvf6b.js → index.parts-i6gbeimeit8gzhvi.js} +2 -2
- package/dist/chunks/{index.parts-gj1k50tf9fcs7nru.js → index.parts-ioii4acz2bjrf6sb.js} +17 -21
- package/dist/chunks/{index.parts-i5twygaksh86erb7.js → index.parts-iq66xivmdw2mouvx.js} +7 -6
- package/dist/chunks/{index.parts-hxjt52jbictdzgad.js → index.parts-j6kbr29a542ya81m.js} +275 -388
- package/dist/chunks/{index.parts-lhpuh6pw7rjcddnl.js → index.parts-jjup1zgnozoxi7ky.js} +41 -57
- package/dist/chunks/index.parts-jknln7yxhdokkvd6.js +991 -0
- package/dist/chunks/{index.parts-nzwjx603vcq1kryz.js → index.parts-jpm6c0fe0gyky12m.js} +22 -54
- package/dist/chunks/{index.parts-jmb5ztstw4xlfyp9.js → index.parts-kgiqby97w6tn6jw7.js} +15 -20
- package/dist/chunks/{index.parts-c5yto0l67i7ok5fd.js → index.parts-lpafjiz853r94ydb.js} +59 -59
- package/dist/chunks/{index.parts-cpviii2nt413tb8k.js → index.parts-moguar0t0u4aumou.js} +6 -5
- package/dist/chunks/{index.parts-ieuelcd4z5e0mcb7.js → index.parts-mw0e646n3qp6v1qe.js} +11 -11
- package/dist/chunks/{index.parts-nc6jzjq91z2nye75.js → index.parts-olcmo45gi8e1qma1.js} +2 -3
- package/dist/chunks/{index.parts-bmzuqorz0tmneh7t.js → index.parts-p2lcxzhh1ll3584m.js} +41 -39
- package/dist/chunks/{inertValue-f9pgp32jxnm88df3.js → inertValue-e0o6qvuef83v78fk.js} +2 -2
- package/dist/chunks/inline-copy-text-gbd7jhwpor27l4rq.js +104 -0
- package/dist/chunks/{input-pehjmr1q131tz38w.js → input-c8lv9ulv0kortliq.js} +2 -2
- package/dist/chunks/{input-group-kshukialqry0fmra.js → input-group-fjr4r5ax0x78ppax.js} +10 -7
- package/dist/chunks/{input-ikfimmpl5sngvh9s.js → input-h5ox92gf13ge04hp.js} +11 -10
- package/dist/chunks/{isElementDisabled-ffsy1y4adxocmexb.js → isElementDisabled-o0j7po84u0xjuwgg.js} +1 -1
- package/dist/chunks/{label-ie2gpde0nco1avi7.js → label-gzyfw17u08irhdo8.js} +2 -2
- package/dist/chunks/{layer-card-dnikj7emx8qeaspz.js → layer-card-idh3863vdgprgqai.js} +5 -3
- package/dist/chunks/layer-dialog-j5ywmzs46ccg6oqy.js +381 -0
- package/dist/chunks/{link-gp4swsrd3vfnvori.js → link-cqyfjezntvr53rh7.js} +2 -2
- package/dist/chunks/locale-provider-kjlnws7jln3ak0dr.js +29 -0
- package/dist/chunks/{menubar-ljbsj2ulayebjyza.js → menubar-fjhotkmndttb8mua.js} +13 -12
- package/dist/chunks/{mergeCleanups-pexn3wul6a4zn873.js → mergeCleanups-ix8l84cgutsbotpd.js} +1 -1
- package/dist/chunks/{meter-fl03ece4glrrzizj.js → meter-majprsslwmpbmkzg.js} +1 -1
- package/dist/chunks/{pagination-i3jewbdolgru0xnr.js → pagination-oaenm9t7ou3lmcgw.js} +2 -2
- package/dist/chunks/{popover-jal8z9sv176703lf.js → popover-hr0bfgg48xzjggky.js} +2 -2
- package/dist/chunks/popupHandle-7ghmro8a5uerjwu5.js +177 -0
- package/dist/chunks/{popupStoreUtils-jrxqkz5jmlijlr91.js → popupStoreUtils-i0y57dvmcnqrh4pv.js} +178 -101
- package/dist/chunks/{popupStateMapping-hdv48wmkzb2mqful.js → popupTriggerMap-ehv0fuhnmy59j3pn.js} +167 -193
- package/dist/chunks/{portal-provider-gznk6snyqj6egd6d.js → portal-provider-eveknxf26oudn7pp.js} +4 -0
- package/dist/chunks/{radio-gvy6ekh5hu9awlru.js → radio-35dx7y6rjrezbjsp.js} +4 -4
- package/dist/chunks/reason-parts-m5ishukzeux3q0pc.js +39 -0
- package/dist/chunks/{resolveAriaLabelledBy-h9qwvo10ftlj6t9k.js → resolveAriaLabelledBy-nc8mdie5shy87nsb.js} +1 -1
- package/dist/chunks/{resolveValueLabel-bq3nrzord518kp9q.js → resolveValueLabel-hpmsash3ektitvnb.js} +44 -10
- package/dist/chunks/{safePolygon-szbj0u31i6mpt36d.js → safePolygon-kmd5wsz26l4xtj6c.js} +35 -29
- package/dist/chunks/{safeReact-bavzz23j5tex60z2.js → safeReact-hpp4cck3y2s5jg75.js} +2 -2
- package/dist/chunks/scrollable-b6m9ze1u7ps0q1qn.js +34 -0
- package/dist/chunks/{select-ndqpqpmqtmn497rq.js → select-futox5zqr3r80y9a.js} +8 -9
- package/dist/chunks/{sensitive-input-jtbp3mvdynz9wewu.js → sensitive-input-cw33yncetxk3fbrl.js} +3 -3
- package/dist/chunks/{serializeValue-ci3kihruew64i36f.js → serializeValue-ipcakiw32jb7kany.js} +1 -1
- package/dist/chunks/{sidebar-icky50wdc2b1biw8.js → sidebar-in9zhvr473afsjpp.js} +104 -31
- package/dist/chunks/{skeleton-line-hlk5vauzo7xsalbo.js → skeleton-line-m9dyh126t9k07jvg.js} +8 -5
- package/dist/chunks/{sql-do9h6435gka97c4c.js → sql-hqp2eekl7qhmxe92.js} +1 -1
- package/dist/chunks/{stringifyLocale-cl8et9xf6zon4qbs.js → stringifyLocale-bxsgxdnzaef2vcar.js} +1 -1
- package/dist/chunks/{styles-dbhgpd8fm76fdfo3.js → styles-kl02oyrlnld7arja.js} +2 -2
- package/dist/chunks/{surface-ef2kr5pn7r1y3ipk.js → surface-irf0af2mfglu4p0j.js} +1 -1
- package/dist/chunks/{switch-oghrd7f6i5jqar59.js → switch-cqsvolm7h69z7vgg.js} +3 -3
- package/dist/chunks/{table-miggde3uqhhrd5at.js → table-yf8ul2e5nbemioi1.js} +1 -1
- package/dist/chunks/{tabs-mr2dsloqfe0io4a5.js → tabs-gf57qqf1wcclaejq.js} +1 -1
- package/dist/chunks/tag-input-ohfybx5dbxy3houy.js +139 -0
- package/dist/chunks/{text-jzp4mdlr222iuzxt.js → text-f1wxz183ckq7qtl7.js} +3 -2
- package/dist/chunks/{toast-g435fvt74w5orxqo.js → toast-bzaothy2yrezh787.js} +7 -6
- package/dist/chunks/{toolbar-e0b61hr6ys6dmwhv.js → toolbar-h213d8e22yjh5cwq.js} +6 -5
- package/dist/chunks/{tooltip-jq15p5jzgfrhslpo.js → tooltip-o4natsv01lpq8oq2.js} +3 -3
- package/dist/chunks/{useAnchoredPopupScrollLock-lbrqp1zm5z821z20.js → useAnchoredPopupScrollLock-kp3kai20u91sdm7v.js} +4 -4
- package/dist/chunks/{useAnimationFrame-ssgc72hyq6sg3yit.js → useAnimationFrame-0tt315hl9n3jzl86.js} +5 -4
- package/dist/chunks/{useAriaLabelledBy-bvw56m1d7czf0w3f.js → useAriaLabelledBy-ox8dum59shmgypq1.js} +3 -6
- package/dist/chunks/{useBaseUiId-gqkl5ep5pn6hd0rw.js → useBaseUiId-lg1teubxudgin0w2.js} +2 -2
- package/dist/chunks/{useButton-cpo6u2idqcnou6vy.js → useButton-h7s9aq1sfw6arawe.js} +56 -21
- package/dist/chunks/{useClick-fvwb39qgead2jyft.js → useClick-l0p0endoxrlp0ae5.js} +8 -7
- package/dist/chunks/{useCollapsiblePanel-bw63vwvq9a3sj73q.js → useCollapsiblePanel-g6t146nqj521pild.js} +60 -71
- package/dist/chunks/{useCompositeItem-esr3n4pmlssiuxuy.js → useCompositeItem-p7090ga00dpqcg5j.js} +4 -4
- package/dist/chunks/useCompositeListItem-odg6yo4h8866b37o.js +54 -0
- package/dist/chunks/{useControlled-nlx0kk1ksgk0auvi.js → useControlled-lfns1ot6kwowa4t4.js} +3 -3
- package/dist/chunks/{useDismiss-kbtx2o3ruyh3jwgn.js → useDismiss-me91ertzzz3gly12.js} +54 -23
- package/dist/chunks/useFieldValidation-e5pc8loiwzd68g4f.js +224 -0
- package/dist/chunks/{useFilteredItems-ns32d3hpp626kt73.js → useFilteredItems-kw2za6m9bng7twr0.js} +36 -38
- package/dist/chunks/{useFloatingRootContext-o6mk8fvodtbbm2v1.js → useFloatingRootContext-c849wtis7gx013m8.js} +7 -7
- package/dist/chunks/{useFocus-gdfx28bn90keg8cf.js → useFocus-lqwrnfa1svv3bcx1.js} +14 -10
- package/dist/chunks/{useForcedRerendering-el1fbg3ib5yo0v7k.js → useForcedRerendering-i3n4ms0xose8borh.js} +1 -1
- package/dist/chunks/{useId-l9soitgw3e4jk5ie.js → useId-f8w657f9yys10abm.js} +2 -2
- package/dist/chunks/{useLabel-nh9hf8h7o6oquqn5.js → useLabel-kcggu762z3z2taeb.js} +10 -9
- package/dist/chunks/useLabelableId-gqiiuqqn2k0u62r4.js +56 -0
- package/dist/chunks/{useListNavigation-jnxpvegv3ak857b1.js → useListNavigation-3nyjs362qcau34in.js} +51 -39
- package/dist/chunks/{useOnMount-j4wobeq47l3u9olo.js → useOnMount-hadwgyauanbzrvem.js} +3 -3
- package/dist/chunks/{useOpenChangeComplete-dpkex2e23s1evpol.js → useOpenChangeComplete-lk2gfu250t7r20c6.js} +48 -38
- package/dist/chunks/usePopupHandleStore-hx871cmn66j0q7wz.js +27 -0
- package/dist/chunks/{usePopupViewport-hu0kn0ziyf1vqzrs.js → usePopupViewport-iy5j9zawjrr3pcs0.js} +89 -57
- package/dist/chunks/{usePositioner-fz9uswhkhg22lo42.js → usePositioner-k9nc7cl550bgfwzs.js} +151 -142
- package/dist/chunks/{usePreviousValue-le0grv8f43vmunn1.js → usePreviousValue-io5t1pdxehw21l85.js} +2 -2
- package/dist/chunks/{useRegisterFieldControl-m1rxsuvtpau2341n.js → useRegisterFieldControl-lvusf6vc963clx02.js} +16 -10
- package/dist/chunks/{useRegisteredLabelId-dh83mybmzy75waje.js → useRegisteredLabelId-hw6b87h1k7kow1o2.js} +4 -4
- package/dist/chunks/{useRender-gtnbrp1ityffi4xf.js → useRender-onwjigxa00uch2ip.js} +2 -2
- package/dist/chunks/{useRenderDialogRoot-hhowqeoreyr6uuc7.js → useRenderDialogRoot-lddunc01twftravv.js} +123 -110
- package/dist/chunks/{useRenderElement-m8kc7jyuczp71mq8.js → useRenderElement-lrvp2pwrpt5zq1zd.js} +56 -46
- package/dist/chunks/{useScrollLock-mpns3u42eks8hhex.js → useScrollLock-buonkbwuland9wl3.js} +65 -38
- package/dist/chunks/{useStableCallback-ninxmksdjvwl6ejj.js → useStableCallback-b1i1ghzd9k75bb85.js} +3 -3
- package/dist/chunks/{useSwipeDismiss-bpbyw2ihsw3fw6y9.js → useSwipeDismiss-m1s13x9t9ey9ax3p.js} +73 -175
- package/dist/chunks/{useTimeout-oqptmu2xmyv5ccic.js → useTimeout-cpql3c8p250cr093.js} +3 -3
- package/dist/chunks/{useTransitionStatus-ig4waxl2kervpyw4.js → useTransitionStatus-bwqaavnekreihom2.js} +9 -5
- package/dist/chunks/{useTriggerFocusGuards-j8nano0pqu9dscrz.js → useTriggerFocusGuards-lz7wt484xltizro4.js} +4 -3
- package/dist/chunks/{useTypeahead-onenwjyhgw955ygx.js → useTypeahead-kvag4w6hu2g1kbwt.js} +10 -17
- package/dist/chunks/{useValueAsRef-lrn42zari17368c9.js → useValueAsRef-o4s9ohb3aczypmnk.js} +3 -3
- package/dist/chunks/{useValueChanged-kthmz4wk7ywnjwtx.js → useValueChanged-cz5wflhe8g15n6w1.js} +5 -8
- package/dist/chunks/{valueToPercent-henpkkj3juy3ukeu.js → valueToPercent-d7gbqk1umostj7ch.js} +1 -1
- package/dist/chunks/{vendor-floating-ui-dsysdmve7iazaaes.js → vendor-floating-ui-fqblx3wa0r71mjoo.js} +87 -187
- package/dist/chunks/{vendor-utils-luqsvbyuig727bnr.js → vendor-utils-ecfbsk425x1bm0gh.js} +119 -29
- package/dist/chunks/vesper-g839e590k3dxnwh3.js +5 -0
- package/dist/chunks/{visuallyHidden-n14xllazfozg55ox.js → visuallyHidden-nous086atnlxtf74.js} +1 -1
- package/dist/chunks/{wasm-nfbosyhilcq70atf.js → wasm-cpasy0o9lsjrm39j.js} +1 -1
- package/dist/code/server.d.ts +9 -10
- package/dist/code/server.js +8 -7
- package/dist/code.d.ts +8 -8
- package/dist/code.js +18 -16
- 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-group.d.ts +2 -0
- package/dist/components/button-group.js +3 -0
- package/dist/components/button.js +1 -1
- package/dist/components/chart.d.ts +2 -2
- package/dist/components/chart.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.d.ts +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.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.d.ts +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 +1 -1
- package/dist/components/inline-copy-text.d.ts +2 -0
- package/dist/components/inline-copy-text.js +3 -0
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.d.ts +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/layer-dialog.d.ts +2 -0
- package/dist/components/layer-dialog.js +3 -0
- package/dist/components/link.d.ts +8 -9
- 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.d.ts +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.d.ts +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.d.ts +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table-of-contents.d.ts +1 -1
- package/dist/components/table.d.ts +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag-input.d.ts +2 -0
- package/dist/components/tag-input.js +3 -0
- package/dist/components/text.d.ts +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toolbar.d.ts +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-BXsHCLB82.d.ts → index--RbAKeBL.d.ts} +1 -1
- package/dist/{index-CeBzVJP8.d.ts → index-BK1tZgmP.d.ts} +1 -1
- package/dist/{index-CGbkysYW2.d.ts → index-BMe3cpLB.d.ts} +5 -4
- package/dist/{index-Di3sC6UF.d.ts → index-C0d8uwYO.d.ts} +4 -4
- package/dist/index-C7RoG_CH.d.ts +57 -0
- package/dist/{index-DBlw3E9m.d.ts → index-CNJRbVxG.d.ts} +1 -1
- package/dist/{index-BcRyiNd72.d.ts → index-ChGFA5-n.d.ts} +5 -1
- package/dist/index-CiwC1j1N.d.ts +37 -0
- package/dist/{index-BoPqM1Ia2.d.ts → index-Cqrye3KD.d.ts} +1 -1
- package/dist/{index-Bw3M24Mi.d.ts → index-CrQi3QCY.d.ts} +2 -1
- package/dist/{index-BlEUcijd.d.ts → index-CtTNoYA2.d.ts} +69 -1
- package/dist/{index-D97n4Bpf2.d.ts → index-DWZia2ui.d.ts} +1 -1
- package/dist/index-NqlNd7cQ.d.ts +144 -0
- package/dist/index-jNWPjJl9.d.ts +75 -0
- package/dist/index.d.ts +31 -26
- package/dist/index.js +49 -44
- package/dist/{input-group-DpGSsAZy.d.ts → input-group-B3M_WRqm.d.ts} +1 -1
- package/dist/locale-provider-BLGya10h.d.ts +28 -0
- package/dist/{portal-provider-4AHCxYE6.d.ts → portal-provider-BAqPpq_a.d.ts} +4 -0
- 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 +2 -2
- 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 +1 -1
- package/dist/primitives/popover.js +1 -1
- package/dist/primitives/preview-card.js +1 -1
- package/dist/primitives/progress.js +1 -1
- package/dist/primitives/radio-group.js +1 -1
- package/dist/primitives/radio.js +1 -1
- package/dist/primitives/scroll-area.js +1 -1
- package/dist/primitives/select.js +1 -1
- package/dist/primitives/separator.js +1 -1
- package/dist/primitives/slider.js +1 -1
- package/dist/primitives/switch.js +1 -1
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast.js +1 -1
- package/dist/primitives/toggle-group.js +1 -1
- package/dist/primitives/toggle.js +1 -1
- package/dist/primitives/toolbar.js +1 -1
- package/dist/primitives/tooltip.js +1 -1
- package/dist/primitives.d.ts +1 -1
- package/dist/primitives.js +41 -41
- package/dist/scripts/theme-generator/config.d.ts +4 -5
- package/dist/scripts/theme-generator/types.d.ts +12 -13
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/{index-Dzzi1o7w2.d.ts → text-B4l7S5Z0.d.ts} +60 -1
- package/dist/{tooltip-BuCo6Ki4.d.ts → tooltip-D_vhi1PN.d.ts} +1 -1
- package/dist/{types-C402rKiz.d.ts → types-C6in2C8V.d.ts} +6 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +3 -2
- package/package.json +22 -5
- package/scripts/component-registry/discovery.ts +3 -0
- package/scripts/component-registry/metadata.ts +37 -0
- package/scripts/generate-globe-land-mask.mjs +80 -0
- package/dist/chunks/CheckboxIndicator-igofmpn0wcfdqooa.js +0 -49
- package/dist/chunks/CompositeList-tx08unuok7wsl2d9.js +0 -129
- package/dist/chunks/DialogHandle-b3froel96o9fwjmm.js +0 -139
- package/dist/chunks/DialogRoot-fp7d16uxogvye294.js +0 -15
- package/dist/chunks/FieldLabel-f6vwzm8nefzxwlh8.js +0 -558
- package/dist/chunks/Form-is7d5c1kbk1wn39s.js +0 -102
- package/dist/chunks/areArraysEqual-nlbeaqlzf4274zr3.js +0 -7
- package/dist/chunks/clamp-kvu4wtr1dw6b3pnd.js +0 -7
- package/dist/chunks/createBaseUIEventDetails-ddivuhl74gni72qn.js +0 -86
- package/dist/chunks/error-mm98alb8acdy93vq.js +0 -15
- package/dist/chunks/formatNumber-hjijm58g645q6a0n.js +0 -26
- package/dist/chunks/getEmptyRootContext-ekvv3rp5w16ewoqx.js +0 -18
- package/dist/chunks/index.parts-hve0zir3biaolih0.js +0 -128
- package/dist/chunks/index.parts-jv5kiaeixrjah9js.js +0 -119
- package/dist/chunks/index.parts-k7ezm98skegahepw.js +0 -2464
- package/dist/chunks/store-9b2cp7rx1dvq90fp.js +0 -88
- package/dist/chunks/useCompositeListItem-0exfww37ospqz69b.js +0 -75
- package/dist/chunks/useIsHydrating-b6whcsimonagru6u.js +0 -22
- package/dist/chunks/useLabelableId-b1kwq9st3rjrtakn.js +0 -60
- package/dist/chunks/vesper-ho3j3gt6ilwfuc1g.js +0 -5
- package/dist/cn-DCSItmT-.d.ts +0 -5
- /package/dist/{index-AMEc1MEg2.d.ts → index-AMEc1MEg.d.ts} +0 -0
- /package/dist/{index-D2Gvly0i2.d.ts → index-D2Gvly0i.d.ts} +0 -0
- /package/dist/{index-DIV3riUd2.d.ts → index-DIV3riUd.d.ts} +0 -0
- /package/dist/{index-FCkuxSvs2.d.ts → index-FCkuxSvs.d.ts} +0 -0
- /package/dist/{index-_Sl5wohy2.d.ts → index-_Sl5wohy.d.ts} +0 -0
- /package/dist/{index-bAud6rG22.d.ts → index-bAud6rG2.d.ts} +0 -0
package/ai/component-registry.md
CHANGED
|
@@ -952,6 +952,85 @@ Primary action trigger. Supports multiple variants, sizes, shapes, icons, and lo
|
|
|
952
952
|
```
|
|
953
953
|
|
|
954
954
|
|
|
955
|
+
---
|
|
956
|
+
|
|
957
|
+
### ButtonGroup
|
|
958
|
+
|
|
959
|
+
Joins a small set of tightly-coupled buttons into a single control — most commonly a **split button**: a primary action next to a dropdown trigger for related, secondary actions.
|
|
960
|
+
|
|
961
|
+
**Type:** component
|
|
962
|
+
|
|
963
|
+
**Import:** `import { ButtonGroup } from "@cloudflare/kumo";`
|
|
964
|
+
|
|
965
|
+
**Category:** Action
|
|
966
|
+
|
|
967
|
+
**Props:**
|
|
968
|
+
|
|
969
|
+
- `className`: string
|
|
970
|
+
Additional CSS classes merged via `cn()`. Use kumo semantic tokens only.
|
|
971
|
+
- `id`: string
|
|
972
|
+
- `lang`: string
|
|
973
|
+
- `title`: string
|
|
974
|
+
- `children`: ReactNode
|
|
975
|
+
The tightly-coupled controls to join. Typically two `Button`s: a primary action and a dropdown trigger (a "split button").
|
|
976
|
+
|
|
977
|
+
**Examples:**
|
|
978
|
+
|
|
979
|
+
```tsx
|
|
980
|
+
<ButtonGroup aria-label="Deploy">
|
|
981
|
+
<Button variant="primary">Deploy</Button>
|
|
982
|
+
<DropdownMenu>
|
|
983
|
+
<DropdownMenu.Trigger
|
|
984
|
+
render={
|
|
985
|
+
<Button
|
|
986
|
+
variant="primary"
|
|
987
|
+
shape="square"
|
|
988
|
+
aria-label="More deploy options"
|
|
989
|
+
>
|
|
990
|
+
<CaretDownIcon />
|
|
991
|
+
</Button>
|
|
992
|
+
}
|
|
993
|
+
/>
|
|
994
|
+
<DropdownMenu.Content>
|
|
995
|
+
<DropdownMenu.Item>Deploy to staging</DropdownMenu.Item>
|
|
996
|
+
<DropdownMenu.Item>Deploy and tail logs</DropdownMenu.Item>
|
|
997
|
+
<DropdownMenu.Item>Schedule deploy…</DropdownMenu.Item>
|
|
998
|
+
</DropdownMenu.Content>
|
|
999
|
+
</DropdownMenu>
|
|
1000
|
+
</ButtonGroup>
|
|
1001
|
+
```
|
|
1002
|
+
|
|
1003
|
+
```tsx
|
|
1004
|
+
<div className="flex flex-wrap items-center gap-4">
|
|
1005
|
+
{sizes.map((size) => (
|
|
1006
|
+
<ButtonGroup key={size} aria-label="Deploy">
|
|
1007
|
+
<Button size={size} variant="primary">
|
|
1008
|
+
Deploy
|
|
1009
|
+
</Button>
|
|
1010
|
+
<DropdownMenu>
|
|
1011
|
+
<DropdownMenu.Trigger
|
|
1012
|
+
render={
|
|
1013
|
+
<Button
|
|
1014
|
+
size={size}
|
|
1015
|
+
variant="primary"
|
|
1016
|
+
shape="square"
|
|
1017
|
+
aria-label="More deploy options"
|
|
1018
|
+
>
|
|
1019
|
+
<CaretDownIcon />
|
|
1020
|
+
</Button>
|
|
1021
|
+
}
|
|
1022
|
+
/>
|
|
1023
|
+
<DropdownMenu.Content>
|
|
1024
|
+
<DropdownMenu.Item>Deploy to staging</DropdownMenu.Item>
|
|
1025
|
+
<DropdownMenu.Item>Schedule deploy…</DropdownMenu.Item>
|
|
1026
|
+
</DropdownMenu.Content>
|
|
1027
|
+
</DropdownMenu>
|
|
1028
|
+
</ButtonGroup>
|
|
1029
|
+
))}
|
|
1030
|
+
</div>
|
|
1031
|
+
```
|
|
1032
|
+
|
|
1033
|
+
|
|
955
1034
|
---
|
|
956
1035
|
|
|
957
1036
|
### Chart
|
|
@@ -1002,6 +1081,17 @@ Chart — a low-level wrapper around [Apache ECharts](https://echarts.apache.org
|
|
|
1002
1081
|
/>
|
|
1003
1082
|
```
|
|
1004
1083
|
|
|
1084
|
+
```tsx
|
|
1085
|
+
<TimeseriesChart
|
|
1086
|
+
echarts={echarts}
|
|
1087
|
+
isDarkMode={isDarkMode}
|
|
1088
|
+
data={data}
|
|
1089
|
+
xAxisName="Time (UTC)"
|
|
1090
|
+
yAxisName="Requests"
|
|
1091
|
+
yAxisMinInterval={1}
|
|
1092
|
+
/>
|
|
1093
|
+
```
|
|
1094
|
+
|
|
1005
1095
|
```tsx
|
|
1006
1096
|
<TimeseriesChart
|
|
1007
1097
|
echarts={echarts}
|
|
@@ -1248,6 +1338,7 @@ Chart — a low-level wrapper around [Apache ECharts](https://echarts.apache.org
|
|
|
1248
1338
|
isDarkMode={isDarkMode}
|
|
1249
1339
|
data={data}
|
|
1250
1340
|
height={300}
|
|
1341
|
+
tooltipFooter="Percentiles use a five-minute rolling window."
|
|
1251
1342
|
/>
|
|
1252
1343
|
</LayerCard.Primary>
|
|
1253
1344
|
</LayerCard>
|
|
@@ -2512,17 +2603,20 @@ Icon sub-component (wraps ComboboxBase)
|
|
|
2512
2603
|
```tsx
|
|
2513
2604
|
<Combobox
|
|
2514
2605
|
value={value}
|
|
2515
|
-
onValueChange={(
|
|
2516
|
-
items={
|
|
2606
|
+
onValueChange={(nextValue) => setValue(nextValue as DatabaseItem | null)}
|
|
2607
|
+
items={databaseItems}
|
|
2517
2608
|
>
|
|
2518
|
-
<Combobox.TriggerValue
|
|
2609
|
+
<Combobox.TriggerValue
|
|
2610
|
+
className="w-[240px]"
|
|
2611
|
+
placeholder="Select a database"
|
|
2612
|
+
/>
|
|
2519
2613
|
<Combobox.Content>
|
|
2520
|
-
<Combobox.Input placeholder="Search
|
|
2521
|
-
<Combobox.Empty
|
|
2614
|
+
<Combobox.Input placeholder="Search databases" />
|
|
2615
|
+
<Combobox.Empty>No databases found.</Combobox.Empty>
|
|
2522
2616
|
<Combobox.List>
|
|
2523
|
-
{(
|
|
2524
|
-
<Combobox.Item key={
|
|
2525
|
-
{
|
|
2617
|
+
{(database: DatabaseItem) => (
|
|
2618
|
+
<Combobox.Item key={database.value} value={database}>
|
|
2619
|
+
{database.label}
|
|
2526
2620
|
</Combobox.Item>
|
|
2527
2621
|
)}
|
|
2528
2622
|
</Combobox.List>
|
|
@@ -2533,13 +2627,10 @@ Icon sub-component (wraps ComboboxBase)
|
|
|
2533
2627
|
```tsx
|
|
2534
2628
|
<Combobox
|
|
2535
2629
|
value={value}
|
|
2536
|
-
onValueChange={(v) => setValue(v as Language
|
|
2630
|
+
onValueChange={(v) => setValue(v as Language)}
|
|
2537
2631
|
items={languages}
|
|
2538
2632
|
>
|
|
2539
|
-
<Combobox.TriggerValue
|
|
2540
|
-
className="w-[200px]"
|
|
2541
|
-
placeholder="Select a language"
|
|
2542
|
-
/>
|
|
2633
|
+
<Combobox.TriggerValue className="w-[200px]" />
|
|
2543
2634
|
<Combobox.Content>
|
|
2544
2635
|
<Combobox.Input placeholder="Search languages" />
|
|
2545
2636
|
<Combobox.Empty />
|
|
@@ -4213,7 +4304,7 @@ Placeholder shown when a list, table, or page has no content to display.
|
|
|
4213
4304
|
|
|
4214
4305
|
**Colors (kumo tokens used):**
|
|
4215
4306
|
|
|
4216
|
-
`bg-kumo-control`, `bg-kumo-overlay`, `border-kumo-fill`, `
|
|
4307
|
+
`bg-kumo-control`, `bg-kumo-overlay`, `border-kumo-fill`, `ring-kumo-line`, `text-kumo-default`, `text-kumo-subtle`, `text-kumo-success`
|
|
4217
4308
|
|
|
4218
4309
|
**Examples:**
|
|
4219
4310
|
|
|
@@ -4336,6 +4427,71 @@ Form field wrapper that provides a label, optional description, and error displa
|
|
|
4336
4427
|
|
|
4337
4428
|
`text-kumo-danger`, `text-kumo-default`, `text-kumo-subtle`
|
|
4338
4429
|
|
|
4430
|
+
---
|
|
4431
|
+
|
|
4432
|
+
### GlobeMap
|
|
4433
|
+
|
|
4434
|
+
GlobeMap — an SVG orthographic globe with hatched land and geographic markers. Rendering is SVG-only and does not use WebGL.
|
|
4435
|
+
|
|
4436
|
+
**Type:** component
|
|
4437
|
+
|
|
4438
|
+
**Import:** `import { GlobeMap } from "@cloudflare/kumo";`
|
|
4439
|
+
|
|
4440
|
+
**Category:** Data Visualization
|
|
4441
|
+
|
|
4442
|
+
**Props:**
|
|
4443
|
+
|
|
4444
|
+
- `landColor`: string
|
|
4445
|
+
Stroke color for the hatched land. Defaults to the neutral Kumo map area color.
|
|
4446
|
+
- `landHatchSpacing`: number
|
|
4447
|
+
Spacing between land hatch lines in view-box pixels. Default: `10`.
|
|
4448
|
+
- `oceanColor`: string
|
|
4449
|
+
Fill behind the land and graticule. Default: the Kumo base surface.
|
|
4450
|
+
- `markers`: GlobeMapMarker[]
|
|
4451
|
+
Geographic points drawn above the land. Points fade at the horizon and back-facing points are hidden.
|
|
4452
|
+
- `markerColor`: string
|
|
4453
|
+
Default marker fill. Defaults to the Kumo chart blue.
|
|
4454
|
+
- `markerRadius`: number
|
|
4455
|
+
Default marker radius in view-box pixels. Default: `7`.
|
|
4456
|
+
- `defaultRotation`: number[]
|
|
4457
|
+
Initial globe rotation as `[longitude, latitude, roll]`.
|
|
4458
|
+
- `autoRotate`: boolean
|
|
4459
|
+
Continuously rotate the globe horizontally. Default: `false`.
|
|
4460
|
+
- `autoRotateSpeed`: number
|
|
4461
|
+
Horizontal auto-rotation speed in degrees per second. Default: `4`.
|
|
4462
|
+
- `showGraticule`: boolean
|
|
4463
|
+
Draw latitude and longitude guides. Default: `false`.
|
|
4464
|
+
- `showTooltip`: boolean
|
|
4465
|
+
Show the Kumo-styled marker tooltip. Default: `true`.
|
|
4466
|
+
- `height`: number
|
|
4467
|
+
Fixed component height. Otherwise the globe uses a square aspect ratio.
|
|
4468
|
+
- `className`: string
|
|
4469
|
+
- `isDarkMode`: boolean
|
|
4470
|
+
|
|
4471
|
+
**Colors (kumo tokens used):**
|
|
4472
|
+
|
|
4473
|
+
`bg-kumo-base`, `border-kumo-line`, `text-kumo-default`, `text-kumo-subtle`
|
|
4474
|
+
|
|
4475
|
+
**Examples:**
|
|
4476
|
+
|
|
4477
|
+
```tsx
|
|
4478
|
+
<div className="mx-auto max-w-xl">
|
|
4479
|
+
<GlobeMap
|
|
4480
|
+
markers={cloudflareAvailabilityLocations}
|
|
4481
|
+
landColor="var(--text-color-kumo-inactive)"
|
|
4482
|
+
landHatchSpacing={8}
|
|
4483
|
+
oceanColor="transparent"
|
|
4484
|
+
showGraticule
|
|
4485
|
+
markerColor="var(--color-kumo-brand)"
|
|
4486
|
+
markerRadius={8}
|
|
4487
|
+
autoRotate
|
|
4488
|
+
aria-label="Cloudflare availability locations"
|
|
4489
|
+
isDarkMode={isDarkMode}
|
|
4490
|
+
/>
|
|
4491
|
+
</div>
|
|
4492
|
+
```
|
|
4493
|
+
|
|
4494
|
+
|
|
4339
4495
|
---
|
|
4340
4496
|
|
|
4341
4497
|
### Grid
|
|
@@ -4625,6 +4781,94 @@ Responsive CSS grid layout container with preset column configurations.
|
|
|
4625
4781
|
```
|
|
4626
4782
|
|
|
4627
4783
|
|
|
4784
|
+
---
|
|
4785
|
+
|
|
4786
|
+
### InlineCopyText
|
|
4787
|
+
|
|
4788
|
+
Compact, borderless copy control for IDs and other short values displayed inline or inside dense table cells.
|
|
4789
|
+
|
|
4790
|
+
**Type:** component
|
|
4791
|
+
|
|
4792
|
+
**Import:** `import { InlineCopyText } from "@cloudflare/kumo";`
|
|
4793
|
+
|
|
4794
|
+
**Category:** Action
|
|
4795
|
+
|
|
4796
|
+
**Props:**
|
|
4797
|
+
|
|
4798
|
+
- `labels`: InlineCopyTextLabels
|
|
4799
|
+
Accessible labels for localization.
|
|
4800
|
+
- `children`: ReactNode
|
|
4801
|
+
Content to display. String children are copied unless `value` is provided.
|
|
4802
|
+
- `value`: string
|
|
4803
|
+
The value to copy. Required when `children` is not a string.
|
|
4804
|
+
- `size`: "xs" | "sm" | "base" | "lg"
|
|
4805
|
+
Text size. Supported values depend on the text variant.
|
|
4806
|
+
- `bold`: boolean
|
|
4807
|
+
Whether to use medium font weight. Only applies to body text variants.
|
|
4808
|
+
- `as`: enum
|
|
4809
|
+
The HTML element to render. Accepts headings (`"h1"`–`"h6"`), block text (`"p"`, `"pre"`), inline text (`"span"`, `"code"`, `"em"`, `"strong"`, `"small"`, `"abbr"`, `"time"`), form-related (`"label"`, `"legend"`), list/definition (`"dt"`, `"dd"`, `"li"`), and `"figcaption"`.
|
|
4810
|
+
|
|
4811
|
+
- **Optional** for `"heading"` (defaults to `"span"`). Pass the heading element that reflects this text's place in the document outline.
|
|
4812
|
+
- **Required** for deprecated heading variants (`"heading1"`, `"heading2"`, `"heading3"`).
|
|
4813
|
+
- **Optional** for body variants (defaults to `"p"`) and monospace variants (defaults to `"span"`).
|
|
4814
|
+
- `truncate`: boolean
|
|
4815
|
+
Whether to truncate overflowing text with an ellipsis. Adds `truncate min-w-0` classes.
|
|
4816
|
+
- `disabled`: boolean
|
|
4817
|
+
- `name`: string
|
|
4818
|
+
- `type`: enum
|
|
4819
|
+
- `className`: string
|
|
4820
|
+
- `id`: string
|
|
4821
|
+
- `lang`: string
|
|
4822
|
+
- `title`: string
|
|
4823
|
+
- `variant`: "body" | "secondary" | "success" | "error" | "mono" | "mono-secondary" [default: "mono-secondary"]
|
|
4824
|
+
Text style variant. Supports every Text variant except heading variants.
|
|
4825
|
+
|
|
4826
|
+
**Colors (kumo tokens used):**
|
|
4827
|
+
|
|
4828
|
+
`ring-kumo-brand`, `text-kumo-default`
|
|
4829
|
+
|
|
4830
|
+
**Styling:**
|
|
4831
|
+
|
|
4832
|
+
|
|
4833
|
+
**Examples:**
|
|
4834
|
+
|
|
4835
|
+
```tsx
|
|
4836
|
+
<InlineCopyText
|
|
4837
|
+
labels={{ copyAction: "Copy database ID", copied: "Database ID copied" }}
|
|
4838
|
+
>
|
|
4839
|
+
f86b3f10-32e9-4db7-ae95-84a1b2c3d4e5
|
|
4840
|
+
</InlineCopyText>
|
|
4841
|
+
```
|
|
4842
|
+
|
|
4843
|
+
```tsx
|
|
4844
|
+
<div className="group flex w-full max-w-xl items-center justify-between gap-4 rounded-lg bg-kumo-base px-4 py-3 ring ring-kumo-line">
|
|
4845
|
+
<span className="min-w-0 truncate text-sm text-kumo-default">
|
|
4846
|
+
Production database
|
|
4847
|
+
</span>
|
|
4848
|
+
<InlineCopyText
|
|
4849
|
+
labels={{
|
|
4850
|
+
copyAction: "Copy database ID",
|
|
4851
|
+
copied: "Database ID copied",
|
|
4852
|
+
}}
|
|
4853
|
+
>
|
|
4854
|
+
f86b3f10-32e9-4db7-ae95-84a1b2c3d4e5
|
|
4855
|
+
</InlineCopyText>
|
|
4856
|
+
</div>
|
|
4857
|
+
```
|
|
4858
|
+
|
|
4859
|
+
```tsx
|
|
4860
|
+
<InlineCopyText
|
|
4861
|
+
value="f86b3f10-32e9-4db7-ae95-84a1b2c3d4e5"
|
|
4862
|
+
variant="body"
|
|
4863
|
+
labels={{ copyAction: "Copy database ID", copied: "Database ID copied" }}
|
|
4864
|
+
>
|
|
4865
|
+
<span>
|
|
4866
|
+
Database ID: <strong>f86b3f10…</strong>
|
|
4867
|
+
</span>
|
|
4868
|
+
</InlineCopyText>
|
|
4869
|
+
```
|
|
4870
|
+
|
|
4871
|
+
|
|
4628
4872
|
---
|
|
4629
4873
|
|
|
4630
4874
|
### Input
|
|
@@ -5363,6 +5607,421 @@ Secondary sub-component
|
|
|
5363
5607
|
```
|
|
5364
5608
|
|
|
5365
5609
|
|
|
5610
|
+
---
|
|
5611
|
+
|
|
5612
|
+
### LayerDialog
|
|
5613
|
+
|
|
5614
|
+
LayerDialog component
|
|
5615
|
+
|
|
5616
|
+
**Type:** component
|
|
5617
|
+
|
|
5618
|
+
**Import:** `import { LayerDialog } from "@cloudflare/kumo";`
|
|
5619
|
+
|
|
5620
|
+
**Category:** Overlay
|
|
5621
|
+
|
|
5622
|
+
**Props:**
|
|
5623
|
+
|
|
5624
|
+
- `dismissDisabled`: boolean
|
|
5625
|
+
Prevent every user-initiated dismissal while dialog work is pending.
|
|
5626
|
+
|
|
5627
|
+
**Colors (kumo tokens used):**
|
|
5628
|
+
|
|
5629
|
+
`bg-kumo-base`, `bg-kumo-contrast`, `bg-kumo-elevated`, `bg-kumo-fill`, `bg-kumo-recessed`, `border-kumo-hairline`
|
|
5630
|
+
|
|
5631
|
+
**Sub-Components:**
|
|
5632
|
+
|
|
5633
|
+
This is a compound component. Use these sub-components:
|
|
5634
|
+
|
|
5635
|
+
#### LayerDialog.Root
|
|
5636
|
+
|
|
5637
|
+
Root sub-component
|
|
5638
|
+
|
|
5639
|
+
#### LayerDialog.Alert
|
|
5640
|
+
|
|
5641
|
+
Alert sub-component
|
|
5642
|
+
|
|
5643
|
+
#### LayerDialog.Trigger
|
|
5644
|
+
|
|
5645
|
+
Trigger sub-component
|
|
5646
|
+
|
|
5647
|
+
#### LayerDialog.Content
|
|
5648
|
+
|
|
5649
|
+
Content sub-component
|
|
5650
|
+
|
|
5651
|
+
Props:
|
|
5652
|
+
- `children`: ReactNode (required)
|
|
5653
|
+
- `container`: PortalContainer - Container element for the portal. Overrides `KumoPortalProvider` context.
|
|
5654
|
+
- `size`: KumoLayerDialogSize - Desktop-only width. Mobile dialogs always remain full-width.
|
|
5655
|
+
- `verticalAlign`: KumoLayerDialogVerticalAlign - Desktop-only positioning. Mobile dialogs always remain bottom sheets.
|
|
5656
|
+
- `closeLabel`: string - Accessible name of the automatic X button. Overrides the `close` translation from KumoLocaleProvider.
|
|
5657
|
+
|
|
5658
|
+
#### LayerDialog.Title
|
|
5659
|
+
|
|
5660
|
+
Title sub-component
|
|
5661
|
+
|
|
5662
|
+
Props:
|
|
5663
|
+
- `children`: ReactNode (required)
|
|
5664
|
+
|
|
5665
|
+
#### LayerDialog.Description
|
|
5666
|
+
|
|
5667
|
+
Description sub-component
|
|
5668
|
+
|
|
5669
|
+
Props:
|
|
5670
|
+
- `children`: ReactNode (required)
|
|
5671
|
+
|
|
5672
|
+
#### LayerDialog.Body
|
|
5673
|
+
|
|
5674
|
+
Body sub-component
|
|
5675
|
+
|
|
5676
|
+
Props:
|
|
5677
|
+
- `children`: ReactNode (required)
|
|
5678
|
+
|
|
5679
|
+
#### LayerDialog.Actions
|
|
5680
|
+
|
|
5681
|
+
Actions sub-component
|
|
5682
|
+
|
|
5683
|
+
Props:
|
|
5684
|
+
- `children`: ReactElement<LayerDialogPrimaryProps> (required)
|
|
5685
|
+
- `dismissLabel`: string - Text of the automatic dismiss button. Say "Cancel" only when the workflow has a real cancel outcome. Translate it for non-English products.
|
|
5686
|
+
|
|
5687
|
+
|
|
5688
|
+
**Examples:**
|
|
5689
|
+
|
|
5690
|
+
```tsx
|
|
5691
|
+
<LayerDialog.Root>
|
|
5692
|
+
<LayerDialog.Trigger
|
|
5693
|
+
render={(props) => <Button {...props}>Open keyboard shortcuts</Button>}
|
|
5694
|
+
/>
|
|
5695
|
+
<LayerDialog.Content>
|
|
5696
|
+
<LayerDialog.Title>Keyboard shortcuts</LayerDialog.Title>
|
|
5697
|
+
<LayerDialog.Description>
|
|
5698
|
+
Browse available shortcuts without changing a setting.
|
|
5699
|
+
</LayerDialog.Description>
|
|
5700
|
+
<LayerDialog.Body>
|
|
5701
|
+
<LongContent />
|
|
5702
|
+
</LayerDialog.Body>
|
|
5703
|
+
</LayerDialog.Content>
|
|
5704
|
+
</LayerDialog.Root>
|
|
5705
|
+
```
|
|
5706
|
+
|
|
5707
|
+
```tsx
|
|
5708
|
+
<LayerDialog.Root>
|
|
5709
|
+
<LayerDialog.Trigger
|
|
5710
|
+
render={(props) => <Button {...props}>Open settings</Button>}
|
|
5711
|
+
/>
|
|
5712
|
+
<LayerDialog.Content>
|
|
5713
|
+
<LayerDialog.Title>Configure custom hostname</LayerDialog.Title>
|
|
5714
|
+
<LayerDialog.Description>
|
|
5715
|
+
Route requests for this hostname to your Worker.
|
|
5716
|
+
</LayerDialog.Description>
|
|
5717
|
+
<LayerDialog.Body>
|
|
5718
|
+
<div className="flex flex-col gap-5">
|
|
5719
|
+
<Input
|
|
5720
|
+
label="Hostname"
|
|
5721
|
+
onChange={(event) => setHostname(event.target.value)}
|
|
5722
|
+
value={hostname}
|
|
5723
|
+
/>
|
|
5724
|
+
<Input
|
|
5725
|
+
label="Display name"
|
|
5726
|
+
onChange={(event) => setName(event.target.value)}
|
|
5727
|
+
value={name}
|
|
5728
|
+
/>
|
|
5729
|
+
</div>
|
|
5730
|
+
</LayerDialog.Body>
|
|
5731
|
+
<LayerDialog.Actions>
|
|
5732
|
+
<LayerDialog.Actions.Primary
|
|
5733
|
+
disabled={!hostname || !name}
|
|
5734
|
+
onClick={() => undefined}
|
|
5735
|
+
>
|
|
5736
|
+
Save hostname
|
|
5737
|
+
</LayerDialog.Actions.Primary>
|
|
5738
|
+
</LayerDialog.Actions>
|
|
5739
|
+
</LayerDialog.Content>
|
|
5740
|
+
</LayerDialog.Root>
|
|
5741
|
+
```
|
|
5742
|
+
|
|
5743
|
+
```tsx
|
|
5744
|
+
<LayerDialog.Root>
|
|
5745
|
+
<LayerDialog.Trigger
|
|
5746
|
+
render={(props) => <Button {...props}>Edit profile</Button>}
|
|
5747
|
+
/>
|
|
5748
|
+
<LayerDialog.Content>
|
|
5749
|
+
<LayerDialog.Title>Edit profile</LayerDialog.Title>
|
|
5750
|
+
<LayerDialog.Description>
|
|
5751
|
+
Update the profile information shown to your teammates. Changes are
|
|
5752
|
+
not saved until you confirm.
|
|
5753
|
+
</LayerDialog.Description>
|
|
5754
|
+
<LayerDialog.Body>
|
|
5755
|
+
<div className="flex flex-col gap-5">
|
|
5756
|
+
<Input
|
|
5757
|
+
label="Display name"
|
|
5758
|
+
onChange={(event) => setName(event.target.value)}
|
|
5759
|
+
value={name}
|
|
5760
|
+
/>
|
|
5761
|
+
<Input
|
|
5762
|
+
label="Email address"
|
|
5763
|
+
onChange={(event) => setEmail(event.target.value)}
|
|
5764
|
+
type="email"
|
|
5765
|
+
value={email}
|
|
5766
|
+
/>
|
|
5767
|
+
</div>
|
|
5768
|
+
</LayerDialog.Body>
|
|
5769
|
+
<LayerDialog.Actions dismissLabel="Cancel">
|
|
5770
|
+
<LayerDialog.Actions.Primary
|
|
5771
|
+
disabled={!email || !name}
|
|
5772
|
+
onClick={() => undefined}
|
|
5773
|
+
>
|
|
5774
|
+
Save changes
|
|
5775
|
+
</LayerDialog.Actions.Primary>
|
|
5776
|
+
</LayerDialog.Actions>
|
|
5777
|
+
</LayerDialog.Content>
|
|
5778
|
+
</LayerDialog.Root>
|
|
5779
|
+
```
|
|
5780
|
+
|
|
5781
|
+
```tsx
|
|
5782
|
+
<LayerDialog.Alert>
|
|
5783
|
+
<LayerDialog.Trigger
|
|
5784
|
+
render={(props) => (
|
|
5785
|
+
<Button variant="secondary-destructive" {...props}>
|
|
5786
|
+
Delete Worker
|
|
5787
|
+
</Button>
|
|
5788
|
+
)}
|
|
5789
|
+
/>
|
|
5790
|
+
<LayerDialog.Content>
|
|
5791
|
+
<LayerDialog.Title>Delete Worker</LayerDialog.Title>
|
|
5792
|
+
<LayerDialog.Description>
|
|
5793
|
+
Deleting{" "}
|
|
5794
|
+
<strong className="font-medium text-kumo-default">
|
|
5795
|
+
{workerName}
|
|
5796
|
+
</strong>{" "}
|
|
5797
|
+
is permanent.
|
|
5798
|
+
</LayerDialog.Description>
|
|
5799
|
+
<LayerDialog.Body>
|
|
5800
|
+
<div className="flex flex-col gap-5">
|
|
5801
|
+
<Text variant="secondary">
|
|
5802
|
+
This deletes the Worker, deployments, and configuration. If this
|
|
5803
|
+
Worker consumes Queues, those connections are removed first.
|
|
5804
|
+
Queues, D1 databases, and messages stay in your account.
|
|
5805
|
+
</Text>
|
|
5806
|
+
<Input
|
|
5807
|
+
label={
|
|
5808
|
+
<>
|
|
5809
|
+
Type{" "}
|
|
5810
|
+
<strong className="font-medium text-kumo-default">
|
|
5811
|
+
{workerName}
|
|
5812
|
+
</strong>{" "}
|
|
5813
|
+
to confirm
|
|
5814
|
+
</>
|
|
5815
|
+
}
|
|
5816
|
+
onChange={(event) => setConfirmation(event.target.value)}
|
|
5817
|
+
placeholder={workerName}
|
|
5818
|
+
value={confirmation}
|
|
5819
|
+
/>
|
|
5820
|
+
</div>
|
|
5821
|
+
</LayerDialog.Body>
|
|
5822
|
+
<LayerDialog.Actions>
|
|
5823
|
+
<LayerDialog.Actions.Primary
|
|
5824
|
+
disabled={confirmation !== workerName}
|
|
5825
|
+
onClick={() => undefined}
|
|
5826
|
+
variant="destructive"
|
|
5827
|
+
>
|
|
5828
|
+
Delete Worker
|
|
5829
|
+
</LayerDialog.Actions.Primary>
|
|
5830
|
+
</LayerDialog.Actions>
|
|
5831
|
+
</LayerDialog.Content>
|
|
5832
|
+
</LayerDialog.Alert>
|
|
5833
|
+
```
|
|
5834
|
+
|
|
5835
|
+
```tsx
|
|
5836
|
+
<LayerDialog.Root dismissDisabled={pending}>
|
|
5837
|
+
<LayerDialog.Trigger
|
|
5838
|
+
render={(props) => <Button {...props}>Save a setting</Button>}
|
|
5839
|
+
/>
|
|
5840
|
+
<LayerDialog.Content>
|
|
5841
|
+
<LayerDialog.Title>Save a setting</LayerDialog.Title>
|
|
5842
|
+
<LayerDialog.Description>
|
|
5843
|
+
While saving, Close, Escape, backdrop, and mobile swipe dismissals are
|
|
5844
|
+
blocked together.
|
|
5845
|
+
</LayerDialog.Description>
|
|
5846
|
+
<LayerDialog.Body>
|
|
5847
|
+
<Text variant="secondary">
|
|
5848
|
+
Programmatic closes still work, so a successful save can dismiss the
|
|
5849
|
+
dialog through `actionsRef` or a controlled `open` prop.
|
|
5850
|
+
</Text>
|
|
5851
|
+
</LayerDialog.Body>
|
|
5852
|
+
<LayerDialog.Actions>
|
|
5853
|
+
<LayerDialog.Actions.Primary
|
|
5854
|
+
loading={pending}
|
|
5855
|
+
onClick={() => {
|
|
5856
|
+
setPending(true);
|
|
5857
|
+
window.setTimeout(() => setPending(false), 1500);
|
|
5858
|
+
}}
|
|
5859
|
+
>
|
|
5860
|
+
Save changes
|
|
5861
|
+
</LayerDialog.Actions.Primary>
|
|
5862
|
+
</LayerDialog.Actions>
|
|
5863
|
+
</LayerDialog.Content>
|
|
5864
|
+
</LayerDialog.Root>
|
|
5865
|
+
```
|
|
5866
|
+
|
|
5867
|
+
```tsx
|
|
5868
|
+
<LayerDialog.Root
|
|
5869
|
+
open={open}
|
|
5870
|
+
onOpenChange={(nextOpen) => {
|
|
5871
|
+
if (!nextOpen) setCleanupCount((count) => count + 1);
|
|
5872
|
+
setOpen(nextOpen);
|
|
5873
|
+
}}
|
|
5874
|
+
>
|
|
5875
|
+
<LayerDialog.Trigger
|
|
5876
|
+
render={(props) => <Button {...props}>Open draft</Button>}
|
|
5877
|
+
/>
|
|
5878
|
+
<LayerDialog.Content>
|
|
5879
|
+
<LayerDialog.Title>Draft settings</LayerDialog.Title>
|
|
5880
|
+
<LayerDialog.Body>
|
|
5881
|
+
<Text variant="secondary">
|
|
5882
|
+
Cleanup has run {cleanupCount} time{cleanupCount === 1 ? "" : "s"}.
|
|
5883
|
+
</Text>
|
|
5884
|
+
</LayerDialog.Body>
|
|
5885
|
+
</LayerDialog.Content>
|
|
5886
|
+
</LayerDialog.Root>
|
|
5887
|
+
```
|
|
5888
|
+
|
|
5889
|
+
```tsx
|
|
5890
|
+
<LayerDialog.Root>
|
|
5891
|
+
<LayerDialog.Trigger
|
|
5892
|
+
render={(props) => <Button {...props}>Edit deployment</Button>}
|
|
5893
|
+
/>
|
|
5894
|
+
<LayerDialog.Content>
|
|
5895
|
+
<LayerDialog.Title>Edit deployment</LayerDialog.Title>
|
|
5896
|
+
<LayerDialog.Description>
|
|
5897
|
+
Review the deployment settings before saving.
|
|
5898
|
+
</LayerDialog.Description>
|
|
5899
|
+
<LayerDialog.Body>
|
|
5900
|
+
<div className="flex flex-col gap-4">
|
|
5901
|
+
<Text variant="secondary">
|
|
5902
|
+
Opening a second dialog from this body should keep the first
|
|
5903
|
+
dialog beneath it and restore focus when it closes.
|
|
5904
|
+
</Text>
|
|
5905
|
+
<LayerDialog.Alert>
|
|
5906
|
+
<LayerDialog.Trigger
|
|
5907
|
+
render={(props) => (
|
|
5908
|
+
<Button variant="secondary-destructive" {...props}>
|
|
5909
|
+
Discard changes
|
|
5910
|
+
</Button>
|
|
5911
|
+
)}
|
|
5912
|
+
/>
|
|
5913
|
+
<LayerDialog.Content size="sm">
|
|
5914
|
+
<LayerDialog.Title>Discard unsaved changes?</LayerDialog.Title>
|
|
5915
|
+
<LayerDialog.Description>
|
|
5916
|
+
Your deployment edits will be permanently lost.
|
|
5917
|
+
</LayerDialog.Description>
|
|
5918
|
+
<LayerDialog.Body>
|
|
5919
|
+
<Text variant="secondary">
|
|
5920
|
+
This nested alert is independently portaled and should
|
|
5921
|
+
dismiss back to the edit dialog.
|
|
5922
|
+
</Text>
|
|
5923
|
+
</LayerDialog.Body>
|
|
5924
|
+
<LayerDialog.Actions>
|
|
5925
|
+
<LayerDialog.Actions.Primary variant="destructive">
|
|
5926
|
+
Discard changes
|
|
5927
|
+
</LayerDialog.Actions.Primary>
|
|
5928
|
+
</LayerDialog.Actions>
|
|
5929
|
+
</LayerDialog.Content>
|
|
5930
|
+
</LayerDialog.Alert>
|
|
5931
|
+
</div>
|
|
5932
|
+
</LayerDialog.Body>
|
|
5933
|
+
<LayerDialog.Actions>
|
|
5934
|
+
<LayerDialog.Actions.Primary>
|
|
5935
|
+
Save changes
|
|
5936
|
+
</LayerDialog.Actions.Primary>
|
|
5937
|
+
</LayerDialog.Actions>
|
|
5938
|
+
</LayerDialog.Content>
|
|
5939
|
+
</LayerDialog.Root>
|
|
5940
|
+
```
|
|
5941
|
+
|
|
5942
|
+
```tsx
|
|
5943
|
+
<LayerDialog.Root>
|
|
5944
|
+
<LayerDialog.Trigger
|
|
5945
|
+
render={(props) => <Button {...props}>Open top-aligned dialog</Button>}
|
|
5946
|
+
/>
|
|
5947
|
+
<LayerDialog.Content verticalAlign="top">
|
|
5948
|
+
<LayerDialog.Title>Top-aligned dialog</LayerDialog.Title>
|
|
5949
|
+
<LayerDialog.Body>
|
|
5950
|
+
<Text variant="secondary">Mobile dialogs remain bottom sheets.</Text>
|
|
5951
|
+
</LayerDialog.Body>
|
|
5952
|
+
</LayerDialog.Content>
|
|
5953
|
+
</LayerDialog.Root>
|
|
5954
|
+
```
|
|
5955
|
+
|
|
5956
|
+
```tsx
|
|
5957
|
+
<>
|
|
5958
|
+
<div className="flex flex-wrap gap-2">
|
|
5959
|
+
<Button onClick={() => openAt("center")}>Centered, tall content</Button>
|
|
5960
|
+
<Button onClick={() => openAt("top")}>Top-aligned, tall content</Button>
|
|
5961
|
+
</div>
|
|
5962
|
+
<LayerDialog.Root open={open} onOpenChange={setOpen}>
|
|
5963
|
+
<LayerDialog.Content verticalAlign={verticalAlign}>
|
|
5964
|
+
<LayerDialog.Title>Audit log</LayerDialog.Title>
|
|
5965
|
+
<LayerDialog.Description>
|
|
5966
|
+
The dialog grows with its content until it reaches the viewport cap,
|
|
5967
|
+
then only the body scrolls.
|
|
5968
|
+
</LayerDialog.Description>
|
|
5969
|
+
<LayerDialog.Body>
|
|
5970
|
+
<ol className="flex flex-col gap-2">
|
|
5971
|
+
{Array.from({ length: 40 }, (_, index) => (
|
|
5972
|
+
<li
|
|
5973
|
+
key={index}
|
|
5974
|
+
className="rounded-lg border border-kumo-line px-3 py-2 text-kumo-subtle"
|
|
5975
|
+
>
|
|
5976
|
+
Entry {index + 1}
|
|
5977
|
+
</li>
|
|
5978
|
+
))}
|
|
5979
|
+
</ol>
|
|
5980
|
+
</LayerDialog.Body>
|
|
5981
|
+
<LayerDialog.Actions>
|
|
5982
|
+
<LayerDialog.Actions.Primary>
|
|
5983
|
+
Export log
|
|
5984
|
+
</LayerDialog.Actions.Primary>
|
|
5985
|
+
</LayerDialog.Actions>
|
|
5986
|
+
</LayerDialog.Content>
|
|
5987
|
+
</LayerDialog.Root>
|
|
5988
|
+
</>
|
|
5989
|
+
```
|
|
5990
|
+
|
|
5991
|
+
```tsx
|
|
5992
|
+
<>
|
|
5993
|
+
<div className="flex flex-wrap gap-2">
|
|
5994
|
+
<Button onClick={() => openAtSize("sm")}>Small</Button>
|
|
5995
|
+
<Button onClick={() => openAtSize("base")}>Default</Button>
|
|
5996
|
+
<Button onClick={() => openAtSize("lg")}>Large</Button>
|
|
5997
|
+
<Button onClick={() => openAtSize("xl")}>Extra large</Button>
|
|
5998
|
+
</div>
|
|
5999
|
+
<LayerDialog.Root open={open} onOpenChange={setOpen}>
|
|
6000
|
+
<LayerDialog.Content size={size}>
|
|
6001
|
+
<LayerDialog.Title>Review deployment configuration</LayerDialog.Title>
|
|
6002
|
+
<LayerDialog.Description>
|
|
6003
|
+
Confirm the service details and routing configuration before this
|
|
6004
|
+
deployment is created.
|
|
6005
|
+
</LayerDialog.Description>
|
|
6006
|
+
<LayerDialog.Body>
|
|
6007
|
+
<div className="grid gap-5 sm:grid-cols-2">
|
|
6008
|
+
<Input label="Service name" defaultValue="production-api" />
|
|
6009
|
+
<Input label="Environment" defaultValue="Production" />
|
|
6010
|
+
<Input label="Hostname" defaultValue="api.example.com" />
|
|
6011
|
+
<Input label="Compatibility date" defaultValue="2026-09-09" />
|
|
6012
|
+
</div>
|
|
6013
|
+
</LayerDialog.Body>
|
|
6014
|
+
<LayerDialog.Actions>
|
|
6015
|
+
<LayerDialog.Actions.Primary>
|
|
6016
|
+
Create deployment
|
|
6017
|
+
</LayerDialog.Actions.Primary>
|
|
6018
|
+
</LayerDialog.Actions>
|
|
6019
|
+
</LayerDialog.Content>
|
|
6020
|
+
</LayerDialog.Root>
|
|
6021
|
+
</>
|
|
6022
|
+
```
|
|
6023
|
+
|
|
6024
|
+
|
|
5366
6025
|
---
|
|
5367
6026
|
|
|
5368
6027
|
### Link
|
|
@@ -7865,6 +8524,65 @@ Props:
|
|
|
7865
8524
|
</div>
|
|
7866
8525
|
```
|
|
7867
8526
|
|
|
8527
|
+
```tsx
|
|
8528
|
+
<DemoContainer>
|
|
8529
|
+
<Sidebar.Provider
|
|
8530
|
+
contained
|
|
8531
|
+
defaultOpen
|
|
8532
|
+
className="h-full min-h-0!"
|
|
8533
|
+
onOpenChangeComplete={(open) => {
|
|
8534
|
+
setCompletion(`Sidebar ${open ? "opened" : "collapsed"}.`);
|
|
8535
|
+
}}
|
|
8536
|
+
>
|
|
8537
|
+
<Sidebar>
|
|
8538
|
+
<Sidebar.Content>
|
|
8539
|
+
<Sidebar.Group>
|
|
8540
|
+
<Sidebar.GroupLabel>Overview</Sidebar.GroupLabel>
|
|
8541
|
+
<Sidebar.Menu>
|
|
8542
|
+
<Sidebar.MenuButton icon={HouseIcon} active>
|
|
8543
|
+
Home
|
|
8544
|
+
</Sidebar.MenuButton>
|
|
8545
|
+
<Sidebar.MenuItem>
|
|
8546
|
+
<Sidebar.Collapsible
|
|
8547
|
+
onOpenChangeComplete={(open) => {
|
|
8548
|
+
setCompletion(
|
|
8549
|
+
`Compute section ${open ? "opened" : "collapsed"}.`,
|
|
8550
|
+
);
|
|
8551
|
+
}}
|
|
8552
|
+
>
|
|
8553
|
+
<Sidebar.CollapsibleTrigger
|
|
8554
|
+
render={
|
|
8555
|
+
<Sidebar.MenuButton icon={CodeIcon}>
|
|
8556
|
+
Compute
|
|
8557
|
+
<Sidebar.MenuChevron />
|
|
8558
|
+
</Sidebar.MenuButton>
|
|
8559
|
+
}
|
|
8560
|
+
/>
|
|
8561
|
+
<Sidebar.CollapsibleContent>
|
|
8562
|
+
<Sidebar.MenuSub>
|
|
8563
|
+
<Sidebar.MenuSubButton>Workers</Sidebar.MenuSubButton>
|
|
8564
|
+
<Sidebar.MenuSubButton>Pages</Sidebar.MenuSubButton>
|
|
8565
|
+
</Sidebar.MenuSub>
|
|
8566
|
+
</Sidebar.CollapsibleContent>
|
|
8567
|
+
</Sidebar.Collapsible>
|
|
8568
|
+
</Sidebar.MenuItem>
|
|
8569
|
+
</Sidebar.Menu>
|
|
8570
|
+
</Sidebar.Group>
|
|
8571
|
+
</Sidebar.Content>
|
|
8572
|
+
<Sidebar.Footer>
|
|
8573
|
+
<Sidebar.Trigger />
|
|
8574
|
+
</Sidebar.Footer>
|
|
8575
|
+
</Sidebar>
|
|
8576
|
+
<DemoMain>
|
|
8577
|
+
<p aria-live="polite">{completion}</p>
|
|
8578
|
+
<p>
|
|
8579
|
+
Toggle the sidebar or open Compute to see the completion callback.
|
|
8580
|
+
</p>
|
|
8581
|
+
</DemoMain>
|
|
8582
|
+
</Sidebar.Provider>
|
|
8583
|
+
</DemoContainer>
|
|
8584
|
+
```
|
|
8585
|
+
|
|
7868
8586
|
```tsx
|
|
7869
8587
|
<DemoContainer>
|
|
7870
8588
|
<Sidebar.Provider contained defaultOpen className="h-full min-h-0!">
|
|
@@ -9349,6 +10067,106 @@ Tab navigation component with segmented or underline style. Built on Base UI Tab
|
|
|
9349
10067
|
```
|
|
9350
10068
|
|
|
9351
10069
|
|
|
10070
|
+
---
|
|
10071
|
+
|
|
10072
|
+
### TagInput
|
|
10073
|
+
|
|
10074
|
+
TagInput component
|
|
10075
|
+
|
|
10076
|
+
**Type:** component
|
|
10077
|
+
|
|
10078
|
+
**Import:** `import { TagInput } from "@cloudflare/kumo";`
|
|
10079
|
+
|
|
10080
|
+
**Category:** Other
|
|
10081
|
+
|
|
10082
|
+
**Props:**
|
|
10083
|
+
|
|
10084
|
+
- `alt`: string
|
|
10085
|
+
- `autoComplete`: React.HTMLInputAutoCompleteAttribute
|
|
10086
|
+
- `checked`: boolean
|
|
10087
|
+
- `height`: number | string
|
|
10088
|
+
- `list`: string
|
|
10089
|
+
- `name`: string
|
|
10090
|
+
- `placeholder`: string
|
|
10091
|
+
- `readOnly`: boolean
|
|
10092
|
+
- `required`: boolean
|
|
10093
|
+
- `type`: React.HTMLInputTypeAttribute
|
|
10094
|
+
- `width`: number | string
|
|
10095
|
+
- `className`: string
|
|
10096
|
+
- `id`: string
|
|
10097
|
+
- `lang`: string
|
|
10098
|
+
- `title`: string
|
|
10099
|
+
- `children`: ReactNode
|
|
10100
|
+
- `value`: string[]
|
|
10101
|
+
- `validateValue`: object
|
|
10102
|
+
- `maxValues`: number
|
|
10103
|
+
- `labels`: TagInputLabels
|
|
10104
|
+
Translated labels for generated input, action, and validation text.
|
|
10105
|
+
- `label`: ReactNode
|
|
10106
|
+
- `labelTooltip`: ReactNode
|
|
10107
|
+
- `description`: ReactNode
|
|
10108
|
+
- `error`: string | object
|
|
10109
|
+
- `variant`: enum [default: default]
|
|
10110
|
+
- `"default"`: Default tag input appearance.
|
|
10111
|
+
- `"error"`: Error state for validation failures.
|
|
10112
|
+
- `disabled`: boolean
|
|
10113
|
+
|
|
10114
|
+
**Colors (kumo tokens used):**
|
|
10115
|
+
|
|
10116
|
+
`bg-kumo-overlay`, `ring-kumo-hairline`, `text-kumo-default`
|
|
10117
|
+
|
|
10118
|
+
**Styling:**
|
|
10119
|
+
|
|
10120
|
+
|
|
10121
|
+
**Examples:**
|
|
10122
|
+
|
|
10123
|
+
```tsx
|
|
10124
|
+
<TagInput
|
|
10125
|
+
label="Recipients"
|
|
10126
|
+
description="Paste comma- or newline-separated email addresses."
|
|
10127
|
+
placeholder="name@example.com"
|
|
10128
|
+
autoComplete="off"
|
|
10129
|
+
value={recipients}
|
|
10130
|
+
onValueChange={setRecipients}
|
|
10131
|
+
validateValue={(value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)}
|
|
10132
|
+
/>
|
|
10133
|
+
```
|
|
10134
|
+
|
|
10135
|
+
```tsx
|
|
10136
|
+
<TagInput
|
|
10137
|
+
defaultValue={["frontend", "priority"]}
|
|
10138
|
+
label="Labels"
|
|
10139
|
+
description="Accepts any non-empty value."
|
|
10140
|
+
placeholder="Add a label"
|
|
10141
|
+
/>
|
|
10142
|
+
```
|
|
10143
|
+
|
|
10144
|
+
```tsx
|
|
10145
|
+
<TagInput
|
|
10146
|
+
defaultValue={["alpha"]}
|
|
10147
|
+
label="Access groups"
|
|
10148
|
+
maxValues={3}
|
|
10149
|
+
description="A maximum of three groups."
|
|
10150
|
+
placeholder="Type a group name"
|
|
10151
|
+
/>
|
|
10152
|
+
```
|
|
10153
|
+
|
|
10154
|
+
```tsx
|
|
10155
|
+
<TagInput
|
|
10156
|
+
defaultValue={["uno"]}
|
|
10157
|
+
label="Etiquetas"
|
|
10158
|
+
labels={{
|
|
10159
|
+
input: "Agregar etiqueta",
|
|
10160
|
+
removeValue: (value) => `Eliminar ${value}`,
|
|
10161
|
+
invalidValue: (value) => `${value} no es valido.`,
|
|
10162
|
+
maxValuesReached: (maxValues) => `Maximo de ${maxValues} etiquetas.`,
|
|
10163
|
+
}}
|
|
10164
|
+
maxValues={3}
|
|
10165
|
+
placeholder="Agregar una etiqueta"
|
|
10166
|
+
/>
|
|
10167
|
+
```
|
|
10168
|
+
|
|
10169
|
+
|
|
9352
10170
|
---
|
|
9353
10171
|
|
|
9354
10172
|
### Text
|
|
@@ -9509,8 +10327,12 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
9509
10327
|
Label for the y-axis (value axis)
|
|
9510
10328
|
- `yAxisTickCount`: number
|
|
9511
10329
|
Number of ticks to display on the y-axis
|
|
10330
|
+
- `yAxisMinInterval`: number
|
|
10331
|
+
Minimum interval between y-axis ticks. Set to `1` for discrete count data so ECharts does not render fractional tick marks.
|
|
9512
10332
|
- `tooltipValueFormat`: (value: number) => string
|
|
9513
10333
|
Custom formatter for tooltip values. Receives the raw y-value and returns a display string. When omitted, the raw value is shown. Takes precedence over the deprecated `yAxisTickLabelFormat` prop.
|
|
10334
|
+
- `tooltipFooter`: string
|
|
10335
|
+
Footer text rendered below the series rows in the tooltip. Intended for brief context such as data freshness or aggregation details. Available for every `TimeseriesChart` configuration.
|
|
9514
10336
|
- `tooltipMode`: "all" | "single"
|
|
9515
10337
|
Controls which series are shown in the tooltip. - `"all"` — show all series at the hovered timestamp (default) - `"single"` — show only the series whose value is closest to the cursor
|
|
9516
10338
|
- `tooltipMaxItems`: number
|
|
@@ -9561,6 +10383,17 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
9561
10383
|
/>
|
|
9562
10384
|
```
|
|
9563
10385
|
|
|
10386
|
+
```tsx
|
|
10387
|
+
<TimeseriesChart
|
|
10388
|
+
echarts={echarts}
|
|
10389
|
+
isDarkMode={isDarkMode}
|
|
10390
|
+
data={data}
|
|
10391
|
+
xAxisName="Time (UTC)"
|
|
10392
|
+
yAxisName="Requests"
|
|
10393
|
+
yAxisMinInterval={1}
|
|
10394
|
+
/>
|
|
10395
|
+
```
|
|
10396
|
+
|
|
9564
10397
|
```tsx
|
|
9565
10398
|
<TimeseriesChart
|
|
9566
10399
|
echarts={echarts}
|
|
@@ -9807,6 +10640,7 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
9807
10640
|
isDarkMode={isDarkMode}
|
|
9808
10641
|
data={data}
|
|
9809
10642
|
height={300}
|
|
10643
|
+
tooltipFooter="Percentiles use a five-minute rolling window."
|
|
9810
10644
|
/>
|
|
9811
10645
|
</LayerCard.Primary>
|
|
9812
10646
|
</LayerCard>
|
|
@@ -9970,7 +10804,7 @@ Toasty — toast notification provider and viewport.
|
|
|
9970
10804
|
|
|
9971
10805
|
```tsx
|
|
9972
10806
|
<Toasty>
|
|
9973
|
-
<
|
|
10807
|
+
<ToastFunctionalUpdateButton />
|
|
9974
10808
|
</Toasty>
|
|
9975
10809
|
```
|
|
9976
10810
|
|
|
@@ -10347,12 +11181,12 @@ Multi-line textarea input with Input variants and InputArea-specific dimensions
|
|
|
10347
11181
|
## Quick Reference
|
|
10348
11182
|
|
|
10349
11183
|
**Components by Category:**
|
|
10350
|
-
- **Other:** Autocomplete, CloudflareLogo, DatePicker, Label, Link, SensitiveInput, Sidebar, Table, TableOfContents, Toolbar, DeleteResource
|
|
11184
|
+
- **Other:** Autocomplete, CloudflareLogo, DatePicker, Label, Link, SensitiveInput, Sidebar, Table, TableOfContents, TagInput, Toolbar, DeleteResource
|
|
10351
11185
|
- **Display:** Badge, Breadcrumbs, Code, Collapsible, Empty, LayerCard, Meter, Text
|
|
10352
11186
|
- **Feedback:** Banner, Loader, Toasty
|
|
10353
|
-
- **Data Visualization:** BubbleMap, Chart, ChoroplethMap, SankeyChart, TimeseriesChart
|
|
10354
|
-
- **Action:** Button, ClipboardText
|
|
11187
|
+
- **Data Visualization:** BubbleMap, Chart, ChoroplethMap, GlobeMap, SankeyChart, TimeseriesChart
|
|
11188
|
+
- **Action:** Button, ButtonGroup, ClipboardText, InlineCopyText
|
|
10355
11189
|
- **Input:** Checkbox, Combobox, DateRangePicker, Field, Input, InputGroup, Radio, Select, Switch
|
|
10356
11190
|
- **Navigation:** CommandPalette, MenuBar, Pagination, Tabs
|
|
10357
|
-
- **Overlay:** Dialog, DropdownMenu, Popover, Tooltip
|
|
11191
|
+
- **Overlay:** Dialog, DropdownMenu, LayerDialog, Popover, Tooltip
|
|
10358
11192
|
- **Layout:** Grid, Surface, PageHeader, ResourceListPage
|