@cloudflare/kumo 2.13.2 → 2.15.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 +76 -0
- package/README.md +2 -2
- package/ai/component-registry.json +792 -64
- package/ai/component-registry.md +1666 -224
- package/ai/schemas.ts +110 -3
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +360 -69
- package/dist/ai/schemas.js +216 -23
- package/dist/blocks-source/delete-resource/delete-resource.test.tsx +21 -0
- package/dist/blocks-source/delete-resource/delete-resource.tsx +14 -8
- package/dist/catalog.d.ts +11 -11
- package/dist/chunks/{index.parts-ef9111sjk9e3al87.js → AccordionPanelDataAttributes-mmrmkky28u1010l5.js} +189 -120
- package/dist/chunks/{AlertDialogTrigger-k3f8nevrda6awa4s.js → AlertDialogTrigger-l1r1gbxcky1xq889.js} +5 -5
- package/dist/chunks/AlertDialogTriggerDataAttributes-go49qon601catpgn.js +56 -0
- package/dist/chunks/{AutocompleteItem-ksckpihly1c23f3j.js → AutocompleteItem-36ysm5nwbsd0snr6.js} +17 -29
- package/dist/chunks/AutocompleteItemDataAttributes-n5rigpf0s9ylnwi3.js +232 -0
- package/dist/chunks/AutocompleteSeparator-bnqeqh7i983d92gx.js +12 -0
- package/dist/chunks/{index.parts-i4iu310eo65d7lfc.js → AvatarImageDataAttributes-jw70u384c83lhqfp.js} +111 -35
- package/dist/chunks/{Button-oczevl8g75m85ew9.js → ButtonDataAttributes-nceand1fi7lvnmkb.js} +12 -4
- package/dist/chunks/{CSPContext-guqghj8kxoukvlky.js → CSPContext-iv67i0qqhihg8mur.js} +1 -7
- package/dist/chunks/{CSPProvider-f3it239kgztzgryk.js → CSPProvider-finau3a8hnc9o2td.js} +2 -2
- package/dist/chunks/{CheckboxGroup-g5xn5gnq8ocqyoum.js → CheckboxGroup-581mfftu99wvjb3a.js} +58 -45
- package/dist/chunks/{CheckboxGroupContext-f9wox07n2u5moq4h.js → CheckboxGroupContext-jf1bt3znvqlhrql6.js} +3 -5
- package/dist/chunks/CheckboxGroupDataAttributes-nskqcxts64symbvf.js +10 -0
- package/dist/chunks/{CheckboxRoot-o5bfpje6e4p6pdgm.js → CheckboxIndicator-i13dmhacfgqo328c.js} +187 -134
- package/dist/chunks/CheckboxIndicatorDataAttributes-3p29ju7nkczz1l2y.js +85 -0
- package/dist/chunks/{CollapsiblePanel-e80n35tnsb2cskt9.js → CollapsiblePanel-md5suzmtnsyz1kab.js} +39 -38
- package/dist/chunks/CollapsibleRootDataAttributes-bynmgxmt4jikaoha.js +36 -0
- package/dist/chunks/{ComboboxClear-glm805v81uaaf3su.js → ComboboxClear-ioejwvtnmqanph88.js} +91 -99
- package/dist/chunks/ComboboxClearDataAttributes-lo0enstdmrqpywsy.js +402 -0
- package/dist/chunks/{ComboboxEmpty-hwv2kjxnf9un635e.js → ComboboxEmpty-gkt1y5b81a4983v7.js} +770 -702
- package/dist/chunks/ComboboxItemIndicatorDataAttributes-iku7l9ig0ve09an4.js +259 -0
- package/dist/chunks/{ComboboxPopup-fx7xex6g75t9u0gm.js → ComboboxPopup-n8cbgys9st446j1i.js} +57 -57
- package/dist/chunks/{CompositeItem-l7zee38lq5m224d5.js → CompositeItem-kepwg8jtvgap06o6.js} +4 -7
- package/dist/chunks/CompositeList-gwuaf6d14s4da0j0.js +182 -0
- package/dist/chunks/{CompositeListContext-oetjj2x8li8678as.js → CompositeListContext-bejvmlu39hsfjzgu.js} +2 -5
- package/dist/chunks/{CompositeRoot-l6ot8jo0umdics5m.js → CompositeRoot-dnlkb27uw4g5aocf.js} +61 -63
- package/dist/chunks/{CompositeRootContext-ofhzmevv7hadjhyy.js → CompositeRootContext-obm54j7y6s86qwhq.js} +1 -1
- package/dist/chunks/{index.parts-bv57na43ve93uz3x.js → ContextMenuTriggerDataAttributes-xwozccynxv6pk5s0.js} +82 -37
- package/dist/chunks/DialogBackdropDataAttributes-jwqxd6jla03xh8ke.js +28 -0
- package/dist/chunks/DialogCloseDataAttributes-12m7gwh3i6fd7d05.js +76 -0
- package/dist/chunks/{DialogPopup-mp89aob2nown2akq.js → DialogPopup-n6w7b389e7bs0472.js} +31 -72
- package/dist/chunks/DialogRoot-hkkqj7vcjpkx8qk8.js +16 -0
- package/dist/chunks/{DialogTrigger-cmok07cf3ks0kzug.js → DialogTrigger-kpugfkbfswqrus4u.js} +23 -20
- package/dist/chunks/DialogTriggerDataAttributes-bp9bu13cvwuddh5b.js +18 -0
- package/dist/chunks/DialogViewportDataAttributes-mma9emv1edsc1vuy.js +78 -0
- package/dist/chunks/{DirectionContext-jc1g0w645603sd6p.js → DirectionContext-kpby968j030psajn.js} +1 -4
- package/dist/chunks/{DirectionProvider-ihtfgxd5qpm6oth1.js → DirectionProvider-cg0pwzgdyg6r73r6.js} +2 -2
- package/dist/chunks/DrawerViewport-mzqpwvqtylnad8ib.js +1532 -0
- package/dist/chunks/DrawerViewportDataAttributes-dd9593zm9fl9vcsm.js +1072 -0
- package/dist/chunks/FieldControl-hjj2tcqruozadgdi.js +122 -0
- package/dist/chunks/{FieldDescription-ju607ea6gwgzga8p.js → FieldDescription-orix2gepowrp5ni4.js} +13 -12
- package/dist/chunks/{FieldItemContext-j85dc0ihramj5ezs.js → FieldItemContext-ohsf45im6xhpay40.js} +1 -1
- package/dist/chunks/FieldItemDataAttributes-m52srx69pispz49i.js +283 -0
- package/dist/chunks/FieldLabel-fjc7tdis7rcbq8o4.js +353 -0
- package/dist/chunks/{FieldsetLegend-j5piwq1giyhrr8s4.js → FieldsetLegend-gl9z9eezr0xg9zr7.js} +7 -14
- package/dist/chunks/FieldsetLegendDataAttributes-fn20251jxjqkpkxm.js +17 -0
- package/dist/chunks/{FieldsetRootContext-b633e9uzilttuyfi.js → FieldsetRootContext-fphwizvcm55ydg94.js} +1 -1
- package/dist/chunks/{FloatingPortalLite-mlt7ztrvhzepwi5y.js → FloatingPortalLite-j7dsy7gokbxdoe1i.js} +3 -3
- package/dist/chunks/{popupStateMapping-hdv48wmkzb2mqful.js → FloatingRootStore-men6ufp3a2b296fh.js} +215 -243
- package/dist/chunks/{FloatingTree-oosjswl1s9q4obvg.js → FloatingTree-kiyzavvaum442o1s.js} +6 -6
- package/dist/chunks/Form-oz425k7r4abea8o4.js +113 -0
- package/dist/chunks/{FormContext-xz0b4h7ue30fkkn1.js → FormContext-jv19engyccpf6xcl.js} +4 -3
- package/dist/chunks/{Input-ovqfhsmpfcrg5czm.js → Input-ozudotydd679ly63.js} +2 -2
- package/dist/chunks/InputDataAttributes-oy8t6q5y5t8ik02j.js +42 -0
- package/dist/chunks/ItemIndicator-cvf8cw5fv5l3cd8j.js +37 -0
- package/dist/chunks/{LabelableContext-hetas2e4y0kywfas.js → LabelableContext-dz4wz3lu3lgqusu7.js} +50 -46
- package/dist/chunks/ListboxSeparator-skazx18vzzj7i9zp.js +21 -0
- package/dist/chunks/MenuClearDataAttributes-fo0pekd36n56mdxu.js +1645 -0
- package/dist/chunks/{MenuSubmenuTrigger-fzubf5xr7ohsgsi7.js → MenuSubmenuTrigger-hm5xbgik6aq95x35.js} +917 -473
- package/dist/chunks/MenuSubmenuTriggerDataAttributes-gdfxdjymgmnaxdds.js +372 -0
- package/dist/chunks/{MenuTrigger-ntugq34yppc8ouwe.js → MenuTrigger-dlfvicsaggss0o9m.js} +45 -46
- package/dist/chunks/{Menubar-d57cyjuztbge4dvv.js → Menubar-ja5int05ihjj0ra4.js} +29 -30
- package/dist/chunks/{MenubarContext-ei2r6vu6lmsspozo.js → MenubarContext-ooz0h08i55c8oip5.js} +1 -1
- package/dist/chunks/{MeterLabel-c40b0q8r81cftkjj.js → MeterLabel-cykbkvqys5263z05.js} +15 -18
- package/dist/chunks/{index.parts-fl4zaorc97ed3keb.js → NavigationMenuIconDataAttributes-l82pkpm61d0meqxf.js} +470 -278
- package/dist/chunks/NullStore-my62xo2vfcfkerri.js +110 -0
- package/dist/chunks/{index.parts-7z8hqx6zl9yajzvs.js → NumberFieldScrubAreaCursorDataAttributes-k2lsbk35svshnwf5.js} +592 -528
- package/dist/chunks/{index.parts-bmzuqorz0tmneh7t.js → OTPFieldInputDataAttributes-gvgtu2gg85kgjzwr.js} +189 -70
- package/dist/chunks/{PopoverClose-e91n3nkw16qnyese.js → PopoverViewport-peh28i8q4hqfjy97.js} +271 -224
- package/dist/chunks/PopoverViewportDataAttributes-gplhq9d7ffp9q8u3.js +329 -0
- package/dist/chunks/PrehydrationScript-hs2je3mndbxuts7w.js +78 -0
- package/dist/chunks/{index.parts-nd3mitrhxf806lsa.js → PreviewCardViewportDataAttributes-bgfwmyshey7fx6nr.js} +369 -147
- package/dist/chunks/ProgressLabelDataAttributes-j8mutcz11ei0ohvj.js +287 -0
- package/dist/chunks/{RadioGroup-lsix4haqxfigpuv8.js → RadioGroup-kioqngmmuo7a1lfa.js} +49 -51
- package/dist/chunks/{RadioGroupContext-ft0nndmzqynjz8a2.js → RadioGroupContext-dr6uihsj7oky0eol.js} +1 -1
- package/dist/chunks/RadioGroupDataAttributes-dpdr6xe4ve204qwb.js +10 -0
- package/dist/chunks/{RadioIndicator-mwkahpwyqfc6yk1i.js → RadioIndicator-bhxqih8wzv7hyrec.js} +108 -105
- package/dist/chunks/RadioIndicatorDataAttributes-n5yupp5psifu0d4f.js +80 -0
- package/dist/chunks/{ScrollAreaThumb-kmhan411yxfo0362.js → ScrollAreaThumb-hxig41yn4lrurd3o.js} +373 -389
- package/dist/chunks/ScrollAreaThumbDataAttributes-gup5wfxvqye6jj27.js +137 -0
- package/dist/chunks/SelectScrollUpArrowDataAttributes-fce5i1afjkb0necr.js +473 -0
- package/dist/chunks/{SelectGroupLabel-m4h5hrft9043nsd1.js → SelectSeparator-nnak70azojox8b2b.js} +593 -561
- package/dist/chunks/{Separator-b8wf5rea6m1cei8k.js → Separator-fhwve0tfny3tht3a.js} +2 -2
- package/dist/chunks/SeparatorDataAttributes-ch6e63bas7zflw00.js +11 -0
- package/dist/chunks/{index.parts-hxjt52jbictdzgad.js → SliderIndicator-h1o3qbrvr8x0t4t2.js} +341 -399
- package/dist/chunks/SliderIndicatorDataAttributes-ff2f1cjealif5nvo.js +240 -0
- package/dist/chunks/{SwitchRoot-e3hnyh3mf8qd30hj.js → SwitchRoot-m4t2tq5zn5wibyxk.js} +96 -89
- package/dist/chunks/SwitchThumbDataAttributes-f95ld864on9y6ptk.js +90 -0
- package/dist/chunks/{TabsList-c0inft3sf8gi2o4v.js → TabsList-n5n93rxr4sy704u8.js} +225 -178
- package/dist/chunks/TabsListDataAttributes-e03a7kbubuf02z1l.js +183 -0
- package/dist/chunks/ToastArrowDataAttributes-jbnvz3kp6a35slgj.js +136 -0
- package/dist/chunks/{Toggle-c8p9m3puz8l4mav7.js → ToggleDataAttributes-jl9ojyvwgrvefke6.js} +28 -14
- package/dist/chunks/{ToggleGroupContext-cdk2zo6ciddpockn.js → ToggleGroupContext-hg8zbkgqpscqhz83.js} +3 -5
- package/dist/chunks/{ToggleGroup-xz9zrh7t1htn6ht4.js → ToggleGroupDataAttributes-n1dwona1alvabstl.js} +35 -39
- package/dist/chunks/{ToolbarGroupContext-nriz3632ymugfj6h.js → ToolbarGroupContext-eawva8xkxb4osbxb.js} +3 -5
- package/dist/chunks/{ToolbarInput-er5t9irqvuwcjrir.js → ToolbarInput-kyxl1be0p3cyuayp.js} +28 -33
- package/dist/chunks/ToolbarInputDataAttributes-n4a18a4km735du04.js +150 -0
- package/dist/chunks/{ToolbarRootContext-lvi96r1vvs93rhde.js → ToolbarRootContext-difqbj720teyt8lu.js} +1 -1
- package/dist/chunks/{TooltipPopup-l2zrbjavf1cqclfx.js → TooltipPopup-furysmeyb68uycbz.js} +132 -161
- package/dist/chunks/{TooltipProvider-eyhgia63aq2x4frl.js → TooltipProvider-hyans0ens4axh1y8.js} +14 -17
- package/dist/chunks/TooltipViewportDataAttributes-gkwbezdq40ssuevg.js +312 -0
- package/dist/chunks/adaptiveOriginMiddleware-m9tqzw58wya9sdds.js +51 -0
- package/dist/chunks/{addEventListener-lhqvk2ahlzjsanyg.js → addEventListener-ku3x23446prmd1kz.js} +1 -1
- package/dist/chunks/areArraysEqual-nnpg93s9g7aqcaoh.js +15 -0
- package/dist/chunks/{autocomplete-dn6g4rc8bktdl4an.js → autocomplete-kgp17p6oz4pczxt9.js} +10 -10
- package/dist/chunks/{badge-xw5ydgdjx2o5qxbl.js → badge-kyz53p7p0ng393bs.js} +4 -2
- package/dist/chunks/{banner-n1ekcvrwashsgv93.js → banner-cpla8vqjxaulggyd.js} +3 -3
- package/dist/chunks/{breadcrumbs-ffwe8tzqzmpyikq5.js → breadcrumbs-oyuqwb09l08uhok2.js} +9 -17
- package/dist/chunks/button-group-biv43ksvaipc3p5n.js +59 -0
- package/dist/chunks/{button-h36q7tklakhd38nx.js → button-oxy32x5w9x9az80g.js} +25 -6
- package/dist/chunks/{chart-qmls2klknm1pd6hs.js → chart-foxl6xbubuoshfcs.js} +945 -54
- package/dist/chunks/{checkbox-jachq6akfh72x12r.js → checkbox-o9627970y7c9ciqy.js} +90 -37
- package/dist/chunks/clamp-rcpupxvhqrn8uuyf.js +7 -0
- package/dist/chunks/{clipboard-text-ms46uaujvkjmjnng.js → clipboard-text-bhy88tgvk1o6wmyl.js} +6 -6
- package/dist/chunks/{cloudflare-logo-boafurcbm5ttoo4o.js → cloudflare-logo-d8mid9xr190h78cu.js} +3 -3
- package/dist/chunks/{code-eu8kzwqnlhoyin24.js → code-nj2nu6qzxhz6qnkk.js} +1 -1
- package/dist/chunks/{collapsible-jyajpe40jcca357s.js → collapsible-ic6813hc4yv5s5hv.js} +2 -2
- package/dist/chunks/{combobox-hxarufzb1z61xnbv.js → combobox-hwrq8etkr7p2id0x.js} +13 -12
- package/dist/chunks/{command-palette-iomiziccabzh4ogg.js → command-palette-el4x943vpmid0po0.js} +9 -9
- package/dist/chunks/{composite-o65hjzwwzb4kvl4w.js → composite-c11t1ok72s3cggjc.js} +9 -21
- package/dist/chunks/{constants-j09lrtg73n4vlx5x.js → constants-l10cgj6pyqg27jod.js} +1 -1
- package/dist/chunks/{core-kjfqbvgicl9i3abf.js → core-n0de50o00ej2ecfe.js} +69 -55
- package/dist/chunks/createBaseUIEventDetails-nvee6bghv2reeqdb.js +50 -0
- package/dist/chunks/{ComboboxChipRemove-ksyozjezihhstmbu.js → createItems-n07tfwx89cdoar18.js} +125 -104
- package/dist/chunks/{createToastManager-kv89sv0xhhsvmq54.js → createToastManager-cxjmn4jx3ejh85fs.js} +353 -361
- package/dist/chunks/{css-d3t41yfupsmz7l1a.js → css-j501gxq1am2gnikh.js} +1 -1
- package/dist/chunks/{date-picker-fwe3vllwco4u1utz.js → date-picker-oee5ehsrepnlmltj.js} +58 -51
- package/dist/chunks/{date-range-picker-iymdx410i1hpvxai.js → date-range-picker-hpx3cdu9ve01jx6d.js} +16 -15
- package/dist/chunks/{dialog-o0164pgcyc74lvp9.js → dialog-lgrwmsumwpftp2u8.js} +14 -11
- package/dist/chunks/{dropdown-d5qrzj1w1a96w2we.js → dropdown-o875yxeqod7qp871.js} +134 -31
- package/dist/chunks/empty-ft85jcbs7fd5t3tn.js +96 -0
- package/dist/chunks/{engine-io35xsj9fgfxtihg.js → engine-hzmefiqm63hu0c7i.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-lbnic2b20qr3mukp.js +6 -0
- package/dist/chunks/{field-kgz7w7yixmtpg010.js → field-jzzlgre0jmrr38o2.js} +4 -4
- package/dist/chunks/{flow-fmfb3ri8cxo7w9ci.js → flow-imvwzp5p2f8y2dxm.js} +83 -63
- package/dist/chunks/formatNumber-b4kjdsebslm2b3t0.js +21 -0
- package/dist/chunks/{getCssDimensions-mi941fe1jvztqm6b.js → getCssDimensions-gckwdrp86f73cv51.js} +2 -2
- package/dist/chunks/getElementTransform-cz3jyftv0x5io95f.js +38 -0
- package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
- package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
- package/dist/chunks/{getPseudoElementBounds-jg72lmrlwgbqhmjh.js → getPseudoElementBounds-csuw8kwsoeyxd5tv.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/{grid-fjlo3wlpkwgw56y9.js → grid-nwiczrab3r4w0zr2.js} +1 -1
- package/dist/chunks/{html-ijyj3f9k0foag15c.js → html-nimj6ljkkifnc9ni.js} +2 -2
- package/dist/chunks/{index.parts-lz9cnngidxppvhz7.js → index.parts-db9pzsm9rrs9tp0t.js} +27 -40
- package/dist/chunks/{index.parts-i5twygaksh86erb7.js → index.parts-ggacwr0yakuemead.js} +7 -6
- package/dist/chunks/{index.parts-kt0w73ciea6adi2i.js → index.parts-pcg3pmf3yyro841t.js} +2 -2
- package/dist/chunks/{inertValue-f9pgp32jxnm88df3.js → inertValue-n09gkjvwwa1kddov.js} +2 -2
- package/dist/chunks/inline-copy-text-57r67slswfqvgbaf.js +104 -0
- package/dist/chunks/{input-group-kshukialqry0fmra.js → input-group-n08mcd8b36wbylro.js} +11 -8
- package/dist/chunks/{input-ikfimmpl5sngvh9s.js → input-il37wjigy2xtgdo2.js} +12 -11
- package/dist/chunks/{input-pehjmr1q131tz38w.js → input-ksy1w6j1m6olz6ck.js} +3 -3
- package/dist/chunks/{isElementDisabled-ffsy1y4adxocmexb.js → isElementDisabled-dyqutxpzdfppbohx.js} +1 -1
- package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
- package/dist/chunks/{label-ie2gpde0nco1avi7.js → label-hugrtzreeqk5mtqu.js} +10 -6
- package/dist/chunks/{layer-card-dnikj7emx8qeaspz.js → layer-card-mar4dya5kl1vvie6.js} +6 -4
- package/dist/chunks/layer-dialog-dwrrgv1wasrerow4.js +406 -0
- package/dist/chunks/{link-gp4swsrd3vfnvori.js → link-h84bkh8eem39p529.js} +4 -4
- package/dist/chunks/{loader-j2v6fab8iucuxz1z.js → loader-kv5nk8j8tsuesxqo.js} +2 -6
- package/dist/chunks/locale-provider-e3310bgo4lnffqkd.js +41 -0
- package/dist/chunks/{menubar-ljbsj2ulayebjyza.js → menubar-m5pqhx7lu5z7mkks.js} +14 -13
- package/dist/chunks/{mergeCleanups-pexn3wul6a4zn873.js → mergeCleanups-nw73c6jfwl5tyhw4.js} +1 -1
- package/dist/chunks/{meter-fl03ece4glrrzizj.js → meter-poh8jpe0qtq6mvee.js} +2 -2
- package/dist/chunks/{pagination-i3jewbdolgru0xnr.js → pagination-h24on80p2z5ugqdb.js} +3 -3
- package/dist/chunks/{popover-jal8z9sv176703lf.js → popover-nqrt3ykqv6sic8pz.js} +71 -17
- package/dist/chunks/popupHandle-dk3ixgc8flr7v971.js +177 -0
- package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
- package/dist/chunks/{portal-provider-gznk6snyqj6egd6d.js → portal-provider-eveknxf26oudn7pp.js} +4 -0
- package/dist/chunks/radio-d3pkrvsldfbdefav.js +203 -0
- package/dist/chunks/reason-parts-hssx64rmlxyn6gw5.js +40 -0
- package/dist/chunks/{resolveAriaLabelledBy-h9qwvo10ftlj6t9k.js → resolveAriaLabelledBy-knaucrjrjwnk7tvs.js} +1 -1
- package/dist/chunks/{resolveValueLabel-bq3nrzord518kp9q.js → resolveValueLabel-ntacnb58mhka5gg0.js} +11 -30
- package/dist/chunks/{safePolygon-szbj0u31i6mpt36d.js → safePolygon-ep4133qogeu5vjf3.js} +51 -49
- package/dist/chunks/{safeReact-bavzz23j5tex60z2.js → safeReact-ek77ilng4ekk7mgz.js} +2 -2
- package/dist/chunks/scrollable-k784b35i80aolmvg.js +29 -0
- package/dist/chunks/{select-ndqpqpmqtmn497rq.js → select-ey03k4630uckf1rk.js} +10 -11
- package/dist/chunks/{sensitive-input-jtbp3mvdynz9wewu.js → sensitive-input-lfrrtyg9n5ulq3tb.js} +23 -28
- package/dist/chunks/{serializeValue-ci3kihruew64i36f.js → serializeValue-d1otz2i7h5tygrwf.js} +1 -1
- package/dist/chunks/{sidebar-icky50wdc2b1biw8.js → sidebar-gluq5b5oacrdk4m4.js} +120 -40
- package/dist/chunks/{skeleton-line-hlk5vauzo7xsalbo.js → skeleton-line-gjf1fecmyy82aejz.js} +9 -6
- package/dist/chunks/slider-juwif2d8xa5n0429.js +87 -0
- package/dist/chunks/{sql-do9h6435gka97c4c.js → sql-hqp2eekl7qhmxe92.js} +1 -1
- package/dist/chunks/{stringifyLocale-cl8et9xf6zon4qbs.js → stringifyLocale-gbxouqj7ol627jxh.js} +1 -1
- package/dist/chunks/{styles-dbhgpd8fm76fdfo3.js → styles-eb8bvypmayf578jf.js} +2 -2
- package/dist/chunks/{surface-ef2kr5pn7r1y3ipk.js → surface-ginwpan1pz61l6k2.js} +2 -2
- package/dist/chunks/{switch-oghrd7f6i5jqar59.js → switch-mqf1ulvle4nd6d2t.js} +4 -4
- package/dist/chunks/{table-miggde3uqhhrd5at.js → table-nysse5tiwf47gg4k.js} +2 -2
- package/dist/chunks/{table-of-contents-cvduqgssxdcbpagh.js → table-of-contents-gkjv9ck8etbz64ej.js} +5 -2
- package/dist/chunks/{tabs-mr2dsloqfe0io4a5.js → tabs-mmkz7q5rofnmogwt.js} +3 -3
- package/dist/chunks/tag-input-b10gfxoob9vcizpm.js +140 -0
- package/dist/chunks/{text-jzp4mdlr222iuzxt.js → text-me99rjbjkaff98gp.js} +4 -4
- package/dist/chunks/{toast-g435fvt74w5orxqo.js → toast-b4t9rt9y1sumcmy2.js} +8 -7
- package/dist/chunks/{toolbar-e0b61hr6ys6dmwhv.js → toolbar-hov6sa3ui366f447.js} +7 -6
- package/dist/chunks/{tooltip-jq15p5jzgfrhslpo.js → tooltip-lguwh8bjhxwnjfus.js} +4 -4
- package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
- package/dist/chunks/{useAnchoredPopupScrollLock-lbrqp1zm5z821z20.js → useAnchoredPopupScrollLock-msm8tzkewysnunut.js} +4 -4
- package/dist/chunks/{useAnimationFrame-ssgc72hyq6sg3yit.js → useAnimationFrame-k9lqdj9quln3sd85.js} +5 -4
- package/dist/chunks/{useAriaLabelledBy-bvw56m1d7czf0w3f.js → useAriaLabelledBy-j3j9jqlr9ukyk08s.js} +7 -9
- package/dist/chunks/{useBaseUiId-gqkl5ep5pn6hd0rw.js → useBaseUiId-nk4k7nj9h1cy76ny.js} +2 -2
- package/dist/chunks/{useButton-cpo6u2idqcnou6vy.js → useButton-lklvdzuhvj22bx07.js} +58 -21
- package/dist/chunks/{useClick-fvwb39qgead2jyft.js → useClick-pcbkcc7r620v1smu.js} +13 -12
- package/dist/chunks/{useCollapsiblePanel-bw63vwvq9a3sj73q.js → useCollapsiblePanel-lrfsgx21ds36cwlp.js} +116 -80
- package/dist/chunks/{useCompositeItem-esr3n4pmlssiuxuy.js → useCompositeItem-2juex3zh9gyrs8e9.js} +4 -4
- package/dist/chunks/useCompositeListItem-ekwo2j2rjkggg7xj.js +54 -0
- package/dist/chunks/{useControlled-nlx0kk1ksgk0auvi.js → useControlled-i3srnkxy598s0au9.js} +4 -4
- package/dist/chunks/useFieldValidation-oe16jiigp971yrzr.js +224 -0
- package/dist/chunks/{useFloatingRootContext-o6mk8fvodtbbm2v1.js → useFloatingRootContext-k676b6m7f80bdapd.js} +7 -7
- package/dist/chunks/{useFocus-gdfx28bn90keg8cf.js → useFocus-mn7a9t9v6fnlb4mf.js} +17 -15
- package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
- package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
- package/dist/chunks/{useLabel-nh9hf8h7o6oquqn5.js → useLabel-me6zzfvkypo458pi.js} +23 -12
- package/dist/chunks/useLabelableId-bjeh6q3pgrqjb7er.js +56 -0
- package/dist/chunks/{useListNavigation-jnxpvegv3ak857b1.js → useListNavigation-hpddbd0cc9pvt461.js} +62 -68
- package/dist/chunks/{useOnMount-j4wobeq47l3u9olo.js → useOnMount-gxggz1m0n869s6r0.js} +3 -3
- package/dist/chunks/{useOpenChangeComplete-dpkex2e23s1evpol.js → useOpenChangeComplete-edtabjwqmechsyv6.js} +51 -39
- package/dist/chunks/usePopupHandleStore-gawjmfjf1xdgiph3.js +27 -0
- package/dist/chunks/{usePopupViewport-hu0kn0ziyf1vqzrs.js → usePopupViewport-l6w01iohvzloghy8.js} +99 -75
- package/dist/chunks/{usePositioner-fz9uswhkhg22lo42.js → usePositioner-mzvgnazldqvy44z2.js} +160 -182
- package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
- package/dist/chunks/{usePreviousValue-le0grv8f43vmunn1.js → usePreviousValue-o6swt5tb7xhpdu4e.js} +2 -2
- package/dist/chunks/{useRegisterFieldControl-m1rxsuvtpau2341n.js → useRegisterFieldControl-m1stc9l9y4cndf0k.js} +16 -10
- package/dist/chunks/{useRegisteredLabelId-dh83mybmzy75waje.js → useRegisteredLabelId-b7u9ygya03448zzn.js} +4 -4
- package/dist/chunks/{useRender-gtnbrp1ityffi4xf.js → useRender-h9ktka9xt4obdv6y.js} +2 -2
- package/dist/chunks/useRenderDialogRoot-bsqrqpc1ddau7xg4.js +312 -0
- package/dist/chunks/{useRenderElement-m8kc7jyuczp71mq8.js → useRenderElement-nkklxbq1rp7h2kw0.js} +59 -56
- package/dist/chunks/{useScrollLock-mpns3u42eks8hhex.js → useScrollLock-le7ajwlt7oh6fzxi.js} +108 -85
- package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
- package/dist/chunks/{useStableCallback-ninxmksdjvwl6ejj.js → useStableCallback-le5qgj6p9l04729n.js} +3 -3
- package/dist/chunks/{useSwipeDismiss-bpbyw2ihsw3fw6y9.js → useSwipeDismiss-e8tfxzlp05p86mgb.js} +96 -217
- package/dist/chunks/{useTimeout-oqptmu2xmyv5ccic.js → useTimeout-f0ayn2l2l9aop4l8.js} +3 -3
- package/dist/chunks/{useTransitionStatus-ig4waxl2kervpyw4.js → useTransitionStatus-disysoblzgk34w14.js} +15 -7
- package/dist/chunks/{useTriggerFocusGuards-j8nano0pqu9dscrz.js → useTriggerFocusGuards-dyd3hb1m8en8ct50.js} +12 -21
- package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
- package/dist/chunks/{useTypeahead-onenwjyhgw955ygx.js → useTypeahead-kfdsw1ksl5bgvvzl.js} +20 -23
- package/dist/chunks/{useValueAsRef-lrn42zari17368c9.js → useValueAsRef-dv0tmfr1xlpzdlru.js} +3 -3
- package/dist/chunks/{useValueChanged-kthmz4wk7ywnjwtx.js → useValueChanged-fjssa2v6d4w8y332.js} +5 -8
- package/dist/chunks/{utils-0i7gujfv3f3e9dqh.js → utils-o44zfmzz9z7uyj1v.js} +0 -1
- package/dist/chunks/{valueToPercent-henpkkj3juy3ukeu.js → valueToPercent-djk2mqnihth2uvf6.js} +1 -1
- package/dist/chunks/{vendor-floating-ui-dsysdmve7iazaaes.js → vendor-floating-ui-fqblx3wa0r71mjoo.js} +87 -187
- package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
- package/dist/chunks/{vendor-utils-luqsvbyuig727bnr.js → vendor-utils-io8z5lsfxq8m2dcc.js} +191 -43
- package/dist/chunks/vesper-g839e590k3dxnwh3.js +5 -0
- package/dist/chunks/{visuallyHidden-n14xllazfozg55ox.js → visuallyHidden-kzzs9hbe93is3rci.js} +2 -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 +23 -26
- package/dist/components/autocomplete.d.ts +1 -1
- 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.d.ts +1 -1
- 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.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.d.ts +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/grid.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.d.ts +1 -1
- 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 +2 -2
- 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/slider.d.ts +2 -0
- package/dist/components/slider.js +3 -0
- 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-of-contents.js +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-5bJAnzUo.d.ts +156 -0
- package/dist/{index-BoPqM1Ia2.d.ts → index-AUC5xRcO.d.ts} +65 -8
- 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-BW1HVU7T.d.ts} +34 -6
- package/dist/index-BWe6haHU.d.ts +64 -0
- package/dist/{index-BcRyiNd72.d.ts → index-BvNXYn7u.d.ts} +8 -1
- package/dist/index-C7RoG_CH.d.ts +57 -0
- package/dist/{index-D-y1ktn-.d.ts → index-CE09bLNb.d.ts} +5 -1
- package/dist/{index-DBlw3E9m.d.ts → index-CNJRbVxG.d.ts} +1 -1
- package/dist/{index-bAud6rG22.d.ts → index-CU_lnxg7.d.ts} +13 -4
- package/dist/index-CiwC1j1N.d.ts +37 -0
- package/dist/{index-Bw3M24Mi.d.ts → index-CrQi3QCY.d.ts} +2 -1
- package/dist/{index-Vj9ZzRh0.d.ts → index-DNsSKNUe.d.ts} +4 -1
- package/dist/{index-D97n4Bpf2.d.ts → index-DWZia2ui.d.ts} +1 -1
- package/dist/{index-J1qdw9mL.d.ts → index-DjSGDESy.d.ts} +36 -2
- package/dist/{index-_Sl5wohy2.d.ts → index-RP_rt8vB.d.ts} +1 -1
- package/dist/{index-Cp0aQngm.d.ts → index-T1sSoiWG.d.ts} +3 -1
- package/dist/{index-BlEUcijd.d.ts → index-fsZE0vPs.d.ts} +81 -1
- package/dist/index-jNWPjJl9.d.ts +75 -0
- package/dist/index.d.ts +36 -30
- package/dist/index.js +69 -59
- package/dist/{input-group-DpGSsAZy.d.ts → input-group-B3M_WRqm.d.ts} +1 -1
- package/dist/locale-provider-CAjVN3_0.d.ts +32 -0
- package/dist/{portal-provider-4AHCxYE6.d.ts → portal-provider-BAqPpq_a.d.ts} +4 -0
- package/dist/primitives/accordion.js +2 -2
- package/dist/primitives/alert-dialog.js +7 -2
- package/dist/primitives/autocomplete.js +5 -2
- package/dist/primitives/avatar.js +2 -2
- package/dist/primitives/button.js +2 -2
- package/dist/primitives/checkbox-group.js +3 -2
- package/dist/primitives/checkbox.js +3 -2
- package/dist/primitives/collapsible.js +4 -2
- package/dist/primitives/combobox.js +5 -2
- package/dist/primitives/context-menu.js +5 -2
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +8 -2
- package/dist/primitives/direction-provider.js +2 -2
- package/dist/primitives/drawer.js +5 -2
- package/dist/primitives/field.js +3 -2
- package/dist/primitives/fieldset.js +2 -2
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +3 -2
- package/dist/primitives/menu.js +5 -2
- package/dist/primitives/menubar.js +2 -2
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +2 -2
- package/dist/primitives/number-field.js +2 -2
- package/dist/primitives/otp-field.js +3 -2
- package/dist/primitives/popover.js +2 -2
- package/dist/primitives/preview-card.js +2 -2
- package/dist/primitives/progress.js +2 -2
- package/dist/primitives/radio-group.js +3 -2
- package/dist/primitives/radio.js +3 -2
- package/dist/primitives/scroll-area.js +3 -2
- package/dist/primitives/select.js +4 -2
- package/dist/primitives/separator.js +3 -2
- package/dist/primitives/slider.js +3 -2
- package/dist/primitives/switch.js +3 -2
- package/dist/primitives/tabs.js +3 -2
- package/dist/primitives/toast.js +4 -2
- package/dist/primitives/toggle-group.js +2 -2
- package/dist/primitives/toggle.js +2 -2
- package/dist/primitives/toolbar.js +2 -2
- package/dist/primitives/tooltip.js +3 -2
- package/dist/primitives.d.ts +2 -2
- package/dist/primitives.js +70 -42
- 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 +5 -4
- package/package.json +27 -6
- package/scripts/component-registry/discovery.ts +4 -0
- package/scripts/component-registry/metadata.ts +75 -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/FieldControl-oz007qbkl6ejp7di.js +0 -104
- package/dist/chunks/FieldLabel-f6vwzm8nefzxwlh8.js +0 -558
- package/dist/chunks/Form-is7d5c1kbk1wn39s.js +0 -102
- package/dist/chunks/MenuBackdrop-dlntmavtopj7wv0l.js +0 -78
- 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/empty-ox60d384lkwbj5n4.js +0 -89
- 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-c5yto0l67i7ok5fd.js +0 -206
- package/dist/chunks/index.parts-cpviii2nt413tb8k.js +0 -30
- package/dist/chunks/index.parts-gj1k50tf9fcs7nru.js +0 -81
- package/dist/chunks/index.parts-gslyp9n88qdh38n1.js +0 -10
- package/dist/chunks/index.parts-hve0zir3biaolih0.js +0 -128
- package/dist/chunks/index.parts-i4lbjqdnhsnjtny6.js +0 -88
- package/dist/chunks/index.parts-ieuelcd4z5e0mcb7.js +0 -73
- package/dist/chunks/index.parts-j2ecf25zajyd5ia3.js +0 -11
- package/dist/chunks/index.parts-jmb5ztstw4xlfyp9.js +0 -46
- package/dist/chunks/index.parts-jv5kiaeixrjah9js.js +0 -119
- package/dist/chunks/index.parts-k7ezm98skegahepw.js +0 -2464
- package/dist/chunks/index.parts-komdbdvf823cm5jw.js +0 -41
- package/dist/chunks/index.parts-lhpuh6pw7rjcddnl.js +0 -156
- package/dist/chunks/index.parts-mr7tgwe4pgfozkt5.js +0 -245
- package/dist/chunks/index.parts-nc6jzjq91z2nye75.js +0 -11
- package/dist/chunks/index.parts-nzwjx603vcq1kryz.js +0 -127
- package/dist/chunks/index2.parts-kiwz8e3k8utvm4zb.js +0 -67
- package/dist/chunks/index2.parts-mv7x6w0p2splvf6b.js +0 -10
- package/dist/chunks/popupStoreUtils-jrxqkz5jmlijlr91.js +0 -367
- package/dist/chunks/radio-gvy6ekh5hu9awlru.js +0 -173
- package/dist/chunks/store-9b2cp7rx1dvq90fp.js +0 -88
- package/dist/chunks/useCompositeListItem-0exfww37ospqz69b.js +0 -75
- package/dist/chunks/useDismiss-kbtx2o3ruyh3jwgn.js +0 -353
- package/dist/chunks/useFilteredItems-ns32d3hpp626kt73.js +0 -183
- package/dist/chunks/useForcedRerendering-el1fbg3ib5yo0v7k.js +0 -14
- package/dist/chunks/useId-l9soitgw3e4jk5ie.js +0 -32
- package/dist/chunks/useIsHydrating-b6whcsimonagru6u.js +0 -22
- package/dist/chunks/useLabelableId-b1kwq9st3rjrtakn.js +0 -60
- package/dist/chunks/useRenderDialogRoot-hhowqeoreyr6uuc7.js +0 -262
- package/dist/chunks/vendor-styling-da1xibnxfkjmtglr.js +0 -3631
- 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/ai/component-registry.md
CHANGED
|
@@ -39,7 +39,7 @@ Autocomplete — free-form text input with an optional filtered suggestion list.
|
|
|
39
39
|
|
|
40
40
|
**Colors (kumo tokens used):**
|
|
41
41
|
|
|
42
|
-
`bg-kumo-control`, `bg-kumo-line`, `bg-kumo-
|
|
42
|
+
`bg-kumo-control`, `bg-kumo-line`, `bg-kumo-tint`, `border-kumo-line`, `ring-kumo-line`, `text-kumo-default`, `text-kumo-strong`
|
|
43
43
|
|
|
44
44
|
**Sub-Components:**
|
|
45
45
|
|
|
@@ -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}
|
|
@@ -1037,15 +1127,25 @@ Chart — a low-level wrapper around [Apache ECharts](https://echarts.apache.org
|
|
|
1037
1127
|
data={data}
|
|
1038
1128
|
xAxisName="Time (UTC)"
|
|
1039
1129
|
yAxisName="Requests"
|
|
1040
|
-
xAxisTickFormat={(
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1130
|
+
xAxisTickFormat={(timestamp) =>
|
|
1131
|
+
new Intl.DateTimeFormat(undefined, {
|
|
1132
|
+
timeZone: "UTC",
|
|
1133
|
+
hour: "2-digit",
|
|
1134
|
+
minute: "2-digit",
|
|
1135
|
+
}).format(timestamp)
|
|
1136
|
+
}
|
|
1044
1137
|
yAxisTickFormat={(value) => {
|
|
1045
1138
|
if (value >= 1000) return `${value / 1000}k`;
|
|
1046
1139
|
return value.toString();
|
|
1047
1140
|
}}
|
|
1048
1141
|
tooltipValueFormat={(value) => `${(value / 1000).toFixed(1)}k requests`}
|
|
1142
|
+
tooltipTimestampFormat={(timestamp) =>
|
|
1143
|
+
new Intl.DateTimeFormat(undefined, {
|
|
1144
|
+
timeZone: "UTC",
|
|
1145
|
+
dateStyle: "medium",
|
|
1146
|
+
timeStyle: "medium",
|
|
1147
|
+
}).format(timestamp)
|
|
1148
|
+
}
|
|
1049
1149
|
/>
|
|
1050
1150
|
```
|
|
1051
1151
|
|
|
@@ -1248,6 +1348,7 @@ Chart — a low-level wrapper around [Apache ECharts](https://echarts.apache.org
|
|
|
1248
1348
|
isDarkMode={isDarkMode}
|
|
1249
1349
|
data={data}
|
|
1250
1350
|
height={300}
|
|
1351
|
+
tooltipFooter="Percentiles use a five-minute rolling window."
|
|
1251
1352
|
/>
|
|
1252
1353
|
</LayerCard.Primary>
|
|
1253
1354
|
</LayerCard>
|
|
@@ -1416,7 +1517,7 @@ Checkbox component
|
|
|
1416
1517
|
|
|
1417
1518
|
**Colors (kumo tokens used):**
|
|
1418
1519
|
|
|
1419
|
-
`bg-kumo-base`, `bg-kumo-contrast`, `ring-kumo-brand`, `ring-kumo-contrast`, `ring-kumo-danger`, `ring-kumo-focus`, `ring-kumo-hairline`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-inverse`, `text-kumo-subtle`
|
|
1520
|
+
`bg-kumo-base`, `bg-kumo-contrast`, `bg-kumo-elevated`, `bg-kumo-tint`, `border-kumo-danger`, `border-kumo-hairline`, `border-kumo-interact`, `border-kumo-line`, `ring-kumo-brand`, `ring-kumo-contrast`, `ring-kumo-danger`, `ring-kumo-focus`, `ring-kumo-hairline`, `ring-kumo-line`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-inverse`, `text-kumo-subtle`
|
|
1420
1521
|
|
|
1421
1522
|
**Styling:**
|
|
1422
1523
|
|
|
@@ -1454,7 +1555,9 @@ Props:
|
|
|
1454
1555
|
- `value`: string[] - Values of checkboxes that should be checked (controlled)
|
|
1455
1556
|
- `allValues`: string[] - All possible checkbox values (required for parent checkbox pattern)
|
|
1456
1557
|
- `disabled`: boolean - Whether all checkboxes in the group are disabled
|
|
1457
|
-
- `
|
|
1558
|
+
- `orientation`: "vertical" | "horizontal" - Layout direction of the checkbox items
|
|
1559
|
+
- `appearance`: KumoCheckboxAppearance - Visual appearance applied to all Checkbox.Item children. - `"default"` — Standard inline checkbox items - `"card"` — Choice card with border, padding, and highlighted selection state Individual items can override this with their own `appearance` prop.
|
|
1560
|
+
- `controlFirst`: boolean - When true, checkbox appears before label. When false, label appears before checkbox. Defaults to true for default appearance and false for card appearance.
|
|
1458
1561
|
- `className`: string - Additional CSS classes
|
|
1459
1562
|
|
|
1460
1563
|
#### Checkbox.Legend
|
|
@@ -1537,6 +1640,67 @@ Props:
|
|
|
1537
1640
|
</Checkbox.Group>
|
|
1538
1641
|
```
|
|
1539
1642
|
|
|
1643
|
+
```tsx
|
|
1644
|
+
<Checkbox.Group
|
|
1645
|
+
legend="Where should this profile scan?"
|
|
1646
|
+
appearance="card"
|
|
1647
|
+
value={products}
|
|
1648
|
+
onValueChange={setProducts}
|
|
1649
|
+
>
|
|
1650
|
+
<Checkbox.Item
|
|
1651
|
+
value="gateway"
|
|
1652
|
+
label="Web traffic"
|
|
1653
|
+
description="Uploads and downloads through Gateway HTTP policies."
|
|
1654
|
+
/>
|
|
1655
|
+
<Checkbox.Item
|
|
1656
|
+
value="ai"
|
|
1657
|
+
label="AI prompts"
|
|
1658
|
+
description="Prompts sent to AI apps, and the responses they return."
|
|
1659
|
+
/>
|
|
1660
|
+
<Checkbox.Item
|
|
1661
|
+
value="casb"
|
|
1662
|
+
label="SaaS and cloud storage"
|
|
1663
|
+
description="Files stored in connected apps and cloud accounts."
|
|
1664
|
+
/>
|
|
1665
|
+
<Checkbox.Item
|
|
1666
|
+
value="email"
|
|
1667
|
+
label="Outbound email"
|
|
1668
|
+
description="Email leaving your organization."
|
|
1669
|
+
/>
|
|
1670
|
+
</Checkbox.Group>
|
|
1671
|
+
```
|
|
1672
|
+
|
|
1673
|
+
```tsx
|
|
1674
|
+
<Checkbox.Group
|
|
1675
|
+
legend="Where should this profile scan?"
|
|
1676
|
+
appearance="card"
|
|
1677
|
+
orientation="horizontal"
|
|
1678
|
+
value={products}
|
|
1679
|
+
onValueChange={setProducts}
|
|
1680
|
+
>
|
|
1681
|
+
<Checkbox.Item
|
|
1682
|
+
value="gateway"
|
|
1683
|
+
label="Web traffic"
|
|
1684
|
+
description="Uploads and downloads through Gateway HTTP policies."
|
|
1685
|
+
/>
|
|
1686
|
+
<Checkbox.Item
|
|
1687
|
+
value="ai"
|
|
1688
|
+
label="AI prompts"
|
|
1689
|
+
description="Prompts sent to AI apps, and the responses they return."
|
|
1690
|
+
/>
|
|
1691
|
+
<Checkbox.Item
|
|
1692
|
+
value="casb"
|
|
1693
|
+
label="SaaS and cloud storage"
|
|
1694
|
+
description="Files stored in connected apps and cloud accounts."
|
|
1695
|
+
/>
|
|
1696
|
+
<Checkbox.Item
|
|
1697
|
+
value="email"
|
|
1698
|
+
label="Outbound email"
|
|
1699
|
+
description="Email leaving your organization."
|
|
1700
|
+
/>
|
|
1701
|
+
</Checkbox.Group>
|
|
1702
|
+
```
|
|
1703
|
+
|
|
1540
1704
|
|
|
1541
1705
|
---
|
|
1542
1706
|
|
|
@@ -2512,17 +2676,20 @@ Icon sub-component (wraps ComboboxBase)
|
|
|
2512
2676
|
```tsx
|
|
2513
2677
|
<Combobox
|
|
2514
2678
|
value={value}
|
|
2515
|
-
onValueChange={(
|
|
2516
|
-
items={
|
|
2679
|
+
onValueChange={(nextValue) => setValue(nextValue as DatabaseItem | null)}
|
|
2680
|
+
items={databaseItems}
|
|
2517
2681
|
>
|
|
2518
|
-
<Combobox.TriggerValue
|
|
2682
|
+
<Combobox.TriggerValue
|
|
2683
|
+
className="w-[240px]"
|
|
2684
|
+
placeholder="Select a database"
|
|
2685
|
+
/>
|
|
2519
2686
|
<Combobox.Content>
|
|
2520
|
-
<Combobox.Input placeholder="Search
|
|
2521
|
-
<Combobox.Empty
|
|
2687
|
+
<Combobox.Input placeholder="Search databases" />
|
|
2688
|
+
<Combobox.Empty>No databases found.</Combobox.Empty>
|
|
2522
2689
|
<Combobox.List>
|
|
2523
|
-
{(
|
|
2524
|
-
<Combobox.Item key={
|
|
2525
|
-
{
|
|
2690
|
+
{(database: DatabaseItem) => (
|
|
2691
|
+
<Combobox.Item key={database.value} value={database}>
|
|
2692
|
+
{database.label}
|
|
2526
2693
|
</Combobox.Item>
|
|
2527
2694
|
)}
|
|
2528
2695
|
</Combobox.List>
|
|
@@ -2533,13 +2700,10 @@ Icon sub-component (wraps ComboboxBase)
|
|
|
2533
2700
|
```tsx
|
|
2534
2701
|
<Combobox
|
|
2535
2702
|
value={value}
|
|
2536
|
-
onValueChange={(v) => setValue(v as Language
|
|
2703
|
+
onValueChange={(v) => setValue(v as Language)}
|
|
2537
2704
|
items={languages}
|
|
2538
2705
|
>
|
|
2539
|
-
<Combobox.TriggerValue
|
|
2540
|
-
className="w-[200px]"
|
|
2541
|
-
placeholder="Select a language"
|
|
2542
|
-
/>
|
|
2706
|
+
<Combobox.TriggerValue className="w-[200px]" />
|
|
2543
2707
|
<Combobox.Content>
|
|
2544
2708
|
<Combobox.Input placeholder="Search languages" />
|
|
2545
2709
|
<Combobox.Empty />
|
|
@@ -3857,7 +4021,7 @@ DropdownMenu — accessible dropdown menu anchored to a trigger.
|
|
|
3857
4021
|
|
|
3858
4022
|
**Colors (kumo tokens used):**
|
|
3859
4023
|
|
|
3860
|
-
`bg-kumo-control`, `bg-kumo-danger`, `bg-kumo-hairline`, `bg-kumo-
|
|
4024
|
+
`bg-kumo-control`, `bg-kumo-danger`, `bg-kumo-hairline`, `bg-kumo-tint`, `ring-kumo-brand`, `ring-kumo-line`, `text-kumo-danger`, `text-kumo-default`
|
|
3861
4025
|
|
|
3862
4026
|
**Sub-Components:**
|
|
3863
4027
|
|
|
@@ -3869,7 +4033,15 @@ Trigger sub-component
|
|
|
3869
4033
|
|
|
3870
4034
|
#### DropdownMenu.Portal
|
|
3871
4035
|
|
|
3872
|
-
Portal sub-component
|
|
4036
|
+
Portal sub-component
|
|
4037
|
+
|
|
4038
|
+
#### DropdownMenu.Positioner
|
|
4039
|
+
|
|
4040
|
+
Positioner sub-component
|
|
4041
|
+
|
|
4042
|
+
#### DropdownMenu.Popup
|
|
4043
|
+
|
|
4044
|
+
Popup sub-component
|
|
3873
4045
|
|
|
3874
4046
|
#### DropdownMenu.Sub
|
|
3875
4047
|
|
|
@@ -4028,7 +4200,9 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
4028
4200
|
|
|
4029
4201
|
{/* Language submenu with RadioGroup */}
|
|
4030
4202
|
<DropdownMenu.Sub>
|
|
4031
|
-
<DropdownMenu.SubTrigger>
|
|
4203
|
+
<DropdownMenu.SubTrigger icon={GlobeIcon}>
|
|
4204
|
+
Language
|
|
4205
|
+
</DropdownMenu.SubTrigger>
|
|
4032
4206
|
<DropdownMenu.SubContent>
|
|
4033
4207
|
<DropdownMenu.Group>
|
|
4034
4208
|
<DropdownMenu.RadioGroup
|
|
@@ -4048,7 +4222,9 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
4048
4222
|
|
|
4049
4223
|
{/* Timezone submenu with RadioGroup */}
|
|
4050
4224
|
<DropdownMenu.Sub>
|
|
4051
|
-
<DropdownMenu.SubTrigger
|
|
4225
|
+
<DropdownMenu.SubTrigger icon={<ClockIcon weight="duotone" />}>
|
|
4226
|
+
Set Timezone
|
|
4227
|
+
</DropdownMenu.SubTrigger>
|
|
4052
4228
|
<DropdownMenu.SubContent>
|
|
4053
4229
|
<DropdownMenu.Group>
|
|
4054
4230
|
<DropdownMenu.RadioGroup
|
|
@@ -4081,8 +4257,8 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
4081
4257
|
<DropdownMenu.Item icon={PencilSimpleIcon}>Rename</DropdownMenu.Item>
|
|
4082
4258
|
<DropdownMenu.Item icon={CopyIcon}>Duplicate</DropdownMenu.Item>
|
|
4083
4259
|
<DropdownMenu.Separator />
|
|
4084
|
-
<DropdownMenu.Item
|
|
4085
|
-
<DropdownMenu.Item
|
|
4260
|
+
<DropdownMenu.Item>Move to folder</DropdownMenu.Item>
|
|
4261
|
+
<DropdownMenu.Item>Add to favorites</DropdownMenu.Item>
|
|
4086
4262
|
<DropdownMenu.Separator />
|
|
4087
4263
|
<DropdownMenu.Item icon={TrashIcon} variant="danger">
|
|
4088
4264
|
Delete
|
|
@@ -4108,6 +4284,12 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
4108
4284
|
>
|
|
4109
4285
|
Rename
|
|
4110
4286
|
</DropdownMenu.Item>
|
|
4287
|
+
<DropdownMenu.Item
|
|
4288
|
+
icon={<ArrowsClockwiseIcon className="animate-spin" />}
|
|
4289
|
+
onClick={() => setLastAction("Refreshed")}
|
|
4290
|
+
>
|
|
4291
|
+
Refresh
|
|
4292
|
+
</DropdownMenu.Item>
|
|
4111
4293
|
<DropdownMenu.Separator />
|
|
4112
4294
|
<DropdownMenu.Item
|
|
4113
4295
|
icon={TrashIcon}
|
|
@@ -4213,7 +4395,7 @@ Placeholder shown when a list, table, or page has no content to display.
|
|
|
4213
4395
|
|
|
4214
4396
|
**Colors (kumo tokens used):**
|
|
4215
4397
|
|
|
4216
|
-
`bg-kumo-control`, `bg-kumo-overlay`, `border-kumo-fill`, `
|
|
4398
|
+
`bg-kumo-control`, `bg-kumo-overlay`, `border-kumo-fill`, `ring-kumo-line`, `text-kumo-default`, `text-kumo-subtle`, `text-kumo-success`
|
|
4217
4399
|
|
|
4218
4400
|
**Examples:**
|
|
4219
4401
|
|
|
@@ -4336,6 +4518,71 @@ Form field wrapper that provides a label, optional description, and error displa
|
|
|
4336
4518
|
|
|
4337
4519
|
`text-kumo-danger`, `text-kumo-default`, `text-kumo-subtle`
|
|
4338
4520
|
|
|
4521
|
+
---
|
|
4522
|
+
|
|
4523
|
+
### GlobeMap
|
|
4524
|
+
|
|
4525
|
+
GlobeMap — an SVG orthographic globe with hatched land and geographic markers. Rendering is SVG-only and does not use WebGL.
|
|
4526
|
+
|
|
4527
|
+
**Type:** component
|
|
4528
|
+
|
|
4529
|
+
**Import:** `import { GlobeMap } from "@cloudflare/kumo";`
|
|
4530
|
+
|
|
4531
|
+
**Category:** Data Visualization
|
|
4532
|
+
|
|
4533
|
+
**Props:**
|
|
4534
|
+
|
|
4535
|
+
- `landColor`: string
|
|
4536
|
+
Stroke color for the hatched land. Defaults to the neutral Kumo map area color.
|
|
4537
|
+
- `landHatchSpacing`: number
|
|
4538
|
+
Spacing between land hatch lines in view-box pixels. Default: `10`.
|
|
4539
|
+
- `oceanColor`: string
|
|
4540
|
+
Fill behind the land and graticule. Default: the Kumo base surface.
|
|
4541
|
+
- `markers`: GlobeMapMarker[]
|
|
4542
|
+
Geographic points drawn above the land. Points fade at the horizon and back-facing points are hidden.
|
|
4543
|
+
- `markerColor`: string
|
|
4544
|
+
Default marker fill. Defaults to the Kumo chart blue.
|
|
4545
|
+
- `markerRadius`: number
|
|
4546
|
+
Default marker radius in view-box pixels. Default: `7`.
|
|
4547
|
+
- `defaultRotation`: number[]
|
|
4548
|
+
Initial globe rotation as `[longitude, latitude, roll]`.
|
|
4549
|
+
- `autoRotate`: boolean
|
|
4550
|
+
Continuously rotate the globe horizontally. Default: `false`.
|
|
4551
|
+
- `autoRotateSpeed`: number
|
|
4552
|
+
Horizontal auto-rotation speed in degrees per second. Default: `4`.
|
|
4553
|
+
- `showGraticule`: boolean
|
|
4554
|
+
Draw latitude and longitude guides. Default: `false`.
|
|
4555
|
+
- `showTooltip`: boolean
|
|
4556
|
+
Show the Kumo-styled marker tooltip. Default: `true`.
|
|
4557
|
+
- `height`: number
|
|
4558
|
+
Fixed component height. Otherwise the globe uses a square aspect ratio.
|
|
4559
|
+
- `className`: string
|
|
4560
|
+
- `isDarkMode`: boolean
|
|
4561
|
+
|
|
4562
|
+
**Colors (kumo tokens used):**
|
|
4563
|
+
|
|
4564
|
+
`bg-kumo-base`, `border-kumo-line`, `text-kumo-default`, `text-kumo-subtle`
|
|
4565
|
+
|
|
4566
|
+
**Examples:**
|
|
4567
|
+
|
|
4568
|
+
```tsx
|
|
4569
|
+
<div className="mx-auto max-w-xl">
|
|
4570
|
+
<GlobeMap
|
|
4571
|
+
markers={cloudflareAvailabilityLocations}
|
|
4572
|
+
landColor="var(--text-color-kumo-inactive)"
|
|
4573
|
+
landHatchSpacing={8}
|
|
4574
|
+
oceanColor="transparent"
|
|
4575
|
+
showGraticule
|
|
4576
|
+
markerColor="var(--color-kumo-brand)"
|
|
4577
|
+
markerRadius={8}
|
|
4578
|
+
autoRotate
|
|
4579
|
+
aria-label="Cloudflare availability locations"
|
|
4580
|
+
isDarkMode={isDarkMode}
|
|
4581
|
+
/>
|
|
4582
|
+
</div>
|
|
4583
|
+
```
|
|
4584
|
+
|
|
4585
|
+
|
|
4339
4586
|
---
|
|
4340
4587
|
|
|
4341
4588
|
### Grid
|
|
@@ -4625,6 +4872,94 @@ Responsive CSS grid layout container with preset column configurations.
|
|
|
4625
4872
|
```
|
|
4626
4873
|
|
|
4627
4874
|
|
|
4875
|
+
---
|
|
4876
|
+
|
|
4877
|
+
### InlineCopyText
|
|
4878
|
+
|
|
4879
|
+
Compact, borderless copy control for IDs and other short values displayed inline or inside dense table cells.
|
|
4880
|
+
|
|
4881
|
+
**Type:** component
|
|
4882
|
+
|
|
4883
|
+
**Import:** `import { InlineCopyText } from "@cloudflare/kumo";`
|
|
4884
|
+
|
|
4885
|
+
**Category:** Action
|
|
4886
|
+
|
|
4887
|
+
**Props:**
|
|
4888
|
+
|
|
4889
|
+
- `labels`: InlineCopyTextLabels
|
|
4890
|
+
Accessible labels for localization.
|
|
4891
|
+
- `children`: ReactNode
|
|
4892
|
+
Content to display. String children are copied unless `value` is provided.
|
|
4893
|
+
- `value`: string
|
|
4894
|
+
The value to copy. Required when `children` is not a string.
|
|
4895
|
+
- `size`: "xs" | "sm" | "base" | "lg"
|
|
4896
|
+
Text size. Supported values depend on the text variant.
|
|
4897
|
+
- `bold`: boolean
|
|
4898
|
+
Whether to use medium font weight. Only applies to body text variants.
|
|
4899
|
+
- `as`: enum
|
|
4900
|
+
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"`.
|
|
4901
|
+
|
|
4902
|
+
- **Optional** for `"heading"` (defaults to `"span"`). Pass the heading element that reflects this text's place in the document outline.
|
|
4903
|
+
- **Required** for deprecated heading variants (`"heading1"`, `"heading2"`, `"heading3"`).
|
|
4904
|
+
- **Optional** for body variants (defaults to `"p"`) and monospace variants (defaults to `"span"`).
|
|
4905
|
+
- `truncate`: boolean
|
|
4906
|
+
Whether to truncate overflowing text with an ellipsis. Adds `truncate min-w-0` classes.
|
|
4907
|
+
- `disabled`: boolean
|
|
4908
|
+
- `name`: string
|
|
4909
|
+
- `type`: enum
|
|
4910
|
+
- `className`: string
|
|
4911
|
+
- `id`: string
|
|
4912
|
+
- `lang`: string
|
|
4913
|
+
- `title`: string
|
|
4914
|
+
- `variant`: "body" | "secondary" | "success" | "error" | "mono" | "mono-secondary" [default: "mono-secondary"]
|
|
4915
|
+
Text style variant. Supports every Text variant except heading variants.
|
|
4916
|
+
|
|
4917
|
+
**Colors (kumo tokens used):**
|
|
4918
|
+
|
|
4919
|
+
`ring-kumo-brand`, `text-kumo-default`
|
|
4920
|
+
|
|
4921
|
+
**Styling:**
|
|
4922
|
+
|
|
4923
|
+
|
|
4924
|
+
**Examples:**
|
|
4925
|
+
|
|
4926
|
+
```tsx
|
|
4927
|
+
<InlineCopyText
|
|
4928
|
+
labels={{ copyAction: "Copy database ID", copied: "Database ID copied" }}
|
|
4929
|
+
>
|
|
4930
|
+
f86b3f10-32e9-4db7-ae95-84a1b2c3d4e5
|
|
4931
|
+
</InlineCopyText>
|
|
4932
|
+
```
|
|
4933
|
+
|
|
4934
|
+
```tsx
|
|
4935
|
+
<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">
|
|
4936
|
+
<span className="min-w-0 truncate text-sm text-kumo-default">
|
|
4937
|
+
Production database
|
|
4938
|
+
</span>
|
|
4939
|
+
<InlineCopyText
|
|
4940
|
+
labels={{
|
|
4941
|
+
copyAction: "Copy database ID",
|
|
4942
|
+
copied: "Database ID copied",
|
|
4943
|
+
}}
|
|
4944
|
+
>
|
|
4945
|
+
f86b3f10-32e9-4db7-ae95-84a1b2c3d4e5
|
|
4946
|
+
</InlineCopyText>
|
|
4947
|
+
</div>
|
|
4948
|
+
```
|
|
4949
|
+
|
|
4950
|
+
```tsx
|
|
4951
|
+
<InlineCopyText
|
|
4952
|
+
value="f86b3f10-32e9-4db7-ae95-84a1b2c3d4e5"
|
|
4953
|
+
variant="body"
|
|
4954
|
+
labels={{ copyAction: "Copy database ID", copied: "Database ID copied" }}
|
|
4955
|
+
>
|
|
4956
|
+
<span>
|
|
4957
|
+
Database ID: <strong>f86b3f10…</strong>
|
|
4958
|
+
</span>
|
|
4959
|
+
</InlineCopyText>
|
|
4960
|
+
```
|
|
4961
|
+
|
|
4962
|
+
|
|
4628
4963
|
---
|
|
4629
4964
|
|
|
4630
4965
|
### Input
|
|
@@ -5191,8 +5526,12 @@ Label component for form fields.
|
|
|
5191
5526
|
The label content — can be a string or any React node.
|
|
5192
5527
|
- `showOptional`: boolean
|
|
5193
5528
|
When `true`, shows gray "(optional)" text after the label.
|
|
5529
|
+
- `optionalLabel`: ReactNode
|
|
5530
|
+
Content shown when `showOptional` is `true`.
|
|
5194
5531
|
- `tooltip`: ReactNode
|
|
5195
5532
|
Tooltip content displayed next to the label via an info icon.
|
|
5533
|
+
- `tooltipAriaLabel`: string
|
|
5534
|
+
Accessible label for the tooltip button.
|
|
5196
5535
|
- `className`: string
|
|
5197
5536
|
Additional CSS classes merged via `cn()`.
|
|
5198
5537
|
- `htmlFor`: string
|
|
@@ -5213,6 +5552,19 @@ Label component for form fields.
|
|
|
5213
5552
|
<Label tooltip="More information about this field">
|
|
5214
5553
|
Label with Tooltip
|
|
5215
5554
|
</Label>
|
|
5555
|
+
<KumoLocaleProvider
|
|
5556
|
+
translations={{
|
|
5557
|
+
label: {
|
|
5558
|
+
optional: "(opcional)",
|
|
5559
|
+
tooltip: "Mais informações",
|
|
5560
|
+
},
|
|
5561
|
+
}}
|
|
5562
|
+
>
|
|
5563
|
+
<Label showOptional>Rótulo traduzido</Label>
|
|
5564
|
+
<Label tooltip="Mais informações sobre este campo">
|
|
5565
|
+
Rótulo com dica
|
|
5566
|
+
</Label>
|
|
5567
|
+
</KumoLocaleProvider>
|
|
5216
5568
|
</div>
|
|
5217
5569
|
```
|
|
5218
5570
|
|
|
@@ -5256,6 +5608,14 @@ Label component for form fields.
|
|
|
5256
5608
|
</div>
|
|
5257
5609
|
```
|
|
5258
5610
|
|
|
5611
|
+
```tsx
|
|
5612
|
+
<div className="flex flex-col gap-3">
|
|
5613
|
+
<Label>Default</Label>
|
|
5614
|
+
<Label showOptional>Optional</Label>
|
|
5615
|
+
<Label tooltip="Important field">With Tooltip</Label>
|
|
5616
|
+
</div>
|
|
5617
|
+
```
|
|
5618
|
+
|
|
5259
5619
|
|
|
5260
5620
|
---
|
|
5261
5621
|
|
|
@@ -5365,90 +5725,648 @@ Secondary sub-component
|
|
|
5365
5725
|
|
|
5366
5726
|
---
|
|
5367
5727
|
|
|
5368
|
-
###
|
|
5728
|
+
### LayerDialog
|
|
5369
5729
|
|
|
5370
|
-
|
|
5730
|
+
LayerDialog component
|
|
5371
5731
|
|
|
5372
5732
|
**Type:** component
|
|
5373
5733
|
|
|
5374
|
-
**Import:** `import {
|
|
5734
|
+
**Import:** `import { LayerDialog } from "@cloudflare/kumo";`
|
|
5375
5735
|
|
|
5376
|
-
**Category:**
|
|
5736
|
+
**Category:** Overlay
|
|
5377
5737
|
|
|
5378
5738
|
**Props:**
|
|
5379
5739
|
|
|
5380
|
-
- `
|
|
5381
|
-
|
|
5382
|
-
- `"current"`: Link that inherits color from parent text
|
|
5383
|
-
- `"plain"`: Link without underline decoration
|
|
5384
|
-
- `to`: string
|
|
5385
|
-
- `children`: ReactNode
|
|
5386
|
-
- `className`: string
|
|
5387
|
-
- `id`: string
|
|
5388
|
-
- `lang`: string
|
|
5389
|
-
- `title`: string
|
|
5390
|
-
- `download`: unknown
|
|
5391
|
-
- `href`: string
|
|
5392
|
-
- `hrefLang`: string
|
|
5393
|
-
- `media`: string
|
|
5394
|
-
- `ping`: string
|
|
5395
|
-
- `target`: React.HTMLAttributeAnchorTarget
|
|
5396
|
-
- `type`: string
|
|
5397
|
-
- `referrerPolicy`: enum
|
|
5398
|
-
- `render`: ReactNode
|
|
5399
|
-
Allows you to replace the component's HTML element with a different tag, or compose it with another component.
|
|
5400
|
-
|
|
5401
|
-
Accepts a `ReactElement` or a function that returns the element to render.
|
|
5740
|
+
- `dismissDisabled`: boolean
|
|
5741
|
+
Prevent every user-initiated dismissal while dialog work is pending.
|
|
5402
5742
|
|
|
5403
5743
|
**Colors (kumo tokens used):**
|
|
5404
5744
|
|
|
5405
|
-
`
|
|
5745
|
+
`bg-kumo-base`, `bg-kumo-contrast`, `bg-kumo-elevated`, `bg-kumo-fill`, `bg-kumo-recessed`, `border-kumo-hairline`
|
|
5406
5746
|
|
|
5407
5747
|
**Sub-Components:**
|
|
5408
5748
|
|
|
5409
5749
|
This is a compound component. Use these sub-components:
|
|
5410
5750
|
|
|
5411
|
-
####
|
|
5751
|
+
#### LayerDialog.Root
|
|
5412
5752
|
|
|
5413
|
-
|
|
5753
|
+
Root sub-component
|
|
5414
5754
|
|
|
5755
|
+
#### LayerDialog.Alert
|
|
5415
5756
|
|
|
5416
|
-
|
|
5757
|
+
Alert sub-component
|
|
5417
5758
|
|
|
5418
|
-
|
|
5419
|
-
<div className="grid gap-x-6 gap-y-4 text-base md:grid-cols-3">
|
|
5420
|
-
<Link href="#">Default inline link</Link>
|
|
5421
|
-
<Link href="#" variant="current">
|
|
5422
|
-
Current color link
|
|
5423
|
-
</Link>
|
|
5424
|
-
<Link href="#" variant="plain">
|
|
5425
|
-
Plain inline link
|
|
5426
|
-
</Link>
|
|
5427
|
-
</div>
|
|
5428
|
-
```
|
|
5759
|
+
#### LayerDialog.Trigger
|
|
5429
5760
|
|
|
5430
|
-
|
|
5431
|
-
<p className="mx-auto max-w-md text-base leading-relaxed text-kumo-default">
|
|
5432
|
-
This is a paragraph with an <Link href="#">inline link</Link> that flows
|
|
5433
|
-
naturally with the surrounding text. Links maintain proper underline
|
|
5434
|
-
offset for readability.
|
|
5435
|
-
</p>
|
|
5436
|
-
```
|
|
5761
|
+
Trigger sub-component
|
|
5437
5762
|
|
|
5438
|
-
|
|
5439
|
-
<Link
|
|
5440
|
-
href="https://cloudflare.com"
|
|
5441
|
-
target="_blank"
|
|
5442
|
-
rel="noopener noreferrer"
|
|
5443
|
-
className="text-base"
|
|
5444
|
-
>
|
|
5445
|
-
Visit Cloudflare <Link.ExternalIcon />
|
|
5446
|
-
</Link>
|
|
5447
|
-
```
|
|
5763
|
+
#### LayerDialog.Content
|
|
5448
5764
|
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5765
|
+
Content sub-component
|
|
5766
|
+
|
|
5767
|
+
Props:
|
|
5768
|
+
- `children`: ReactNode (required)
|
|
5769
|
+
- `container`: PortalContainer - Container element for the portal. Overrides `KumoPortalProvider` context.
|
|
5770
|
+
- `size`: KumoLayerDialogSize - Desktop-only width. Mobile dialogs always remain full-width.
|
|
5771
|
+
- `verticalAlign`: KumoLayerDialogVerticalAlign - Desktop-only positioning. Mobile dialogs always remain bottom sheets.
|
|
5772
|
+
- `closeLabel`: string - Accessible name of the automatic X button. Overrides the `close` translation from KumoLocaleProvider.
|
|
5773
|
+
|
|
5774
|
+
#### LayerDialog.Title
|
|
5775
|
+
|
|
5776
|
+
Title sub-component
|
|
5777
|
+
|
|
5778
|
+
Props:
|
|
5779
|
+
- `children`: ReactNode (required)
|
|
5780
|
+
|
|
5781
|
+
#### LayerDialog.Description
|
|
5782
|
+
|
|
5783
|
+
Description sub-component
|
|
5784
|
+
|
|
5785
|
+
Props:
|
|
5786
|
+
- `children`: ReactNode (required)
|
|
5787
|
+
|
|
5788
|
+
#### LayerDialog.Body
|
|
5789
|
+
|
|
5790
|
+
Body sub-component
|
|
5791
|
+
|
|
5792
|
+
Props:
|
|
5793
|
+
- `children`: ReactNode (required)
|
|
5794
|
+
|
|
5795
|
+
#### LayerDialog.Action
|
|
5796
|
+
|
|
5797
|
+
Action sub-component
|
|
5798
|
+
|
|
5799
|
+
#### LayerDialog.Actions
|
|
5800
|
+
|
|
5801
|
+
Actions sub-component
|
|
5802
|
+
|
|
5803
|
+
Props:
|
|
5804
|
+
- `children`: ReactNode (required) - Exactly one action. Pass `menu` to LayerDialog.Action for related actions such as "Save as draft".
|
|
5805
|
+
- `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.
|
|
5806
|
+
|
|
5807
|
+
|
|
5808
|
+
**Examples:**
|
|
5809
|
+
|
|
5810
|
+
```tsx
|
|
5811
|
+
<LayerDialog.Root>
|
|
5812
|
+
<LayerDialog.Trigger
|
|
5813
|
+
render={(props) => <Button {...props}>Open keyboard shortcuts</Button>}
|
|
5814
|
+
/>
|
|
5815
|
+
<LayerDialog.Content>
|
|
5816
|
+
<LayerDialog.Title>Keyboard shortcuts</LayerDialog.Title>
|
|
5817
|
+
<LayerDialog.Description>
|
|
5818
|
+
Browse available shortcuts without changing a setting.
|
|
5819
|
+
</LayerDialog.Description>
|
|
5820
|
+
<LayerDialog.Body>
|
|
5821
|
+
<LongContent />
|
|
5822
|
+
</LayerDialog.Body>
|
|
5823
|
+
</LayerDialog.Content>
|
|
5824
|
+
</LayerDialog.Root>
|
|
5825
|
+
```
|
|
5826
|
+
|
|
5827
|
+
```tsx
|
|
5828
|
+
<LayerDialog.Root>
|
|
5829
|
+
<LayerDialog.Trigger
|
|
5830
|
+
render={(props) => <Button {...props}>Open settings</Button>}
|
|
5831
|
+
/>
|
|
5832
|
+
<LayerDialog.Content>
|
|
5833
|
+
<LayerDialog.Title>Configure custom hostname</LayerDialog.Title>
|
|
5834
|
+
<LayerDialog.Description>
|
|
5835
|
+
Route requests for this hostname to your Worker.
|
|
5836
|
+
</LayerDialog.Description>
|
|
5837
|
+
<LayerDialog.Body>
|
|
5838
|
+
<div className="flex flex-col gap-5">
|
|
5839
|
+
<Input
|
|
5840
|
+
label="Hostname"
|
|
5841
|
+
onChange={(event) => setHostname(event.target.value)}
|
|
5842
|
+
value={hostname}
|
|
5843
|
+
/>
|
|
5844
|
+
<Input
|
|
5845
|
+
label="Display name"
|
|
5846
|
+
onChange={(event) => setName(event.target.value)}
|
|
5847
|
+
value={name}
|
|
5848
|
+
/>
|
|
5849
|
+
</div>
|
|
5850
|
+
</LayerDialog.Body>
|
|
5851
|
+
<LayerDialog.Actions>
|
|
5852
|
+
<LayerDialog.Action
|
|
5853
|
+
disabled={!hostname || !name}
|
|
5854
|
+
onClick={() => undefined}
|
|
5855
|
+
>
|
|
5856
|
+
Save hostname
|
|
5857
|
+
</LayerDialog.Action>
|
|
5858
|
+
</LayerDialog.Actions>
|
|
5859
|
+
</LayerDialog.Content>
|
|
5860
|
+
</LayerDialog.Root>
|
|
5861
|
+
```
|
|
5862
|
+
|
|
5863
|
+
```tsx
|
|
5864
|
+
<LayerDialog.Root>
|
|
5865
|
+
<LayerDialog.Trigger
|
|
5866
|
+
render={(props) => <Button {...props}>Create deployment</Button>}
|
|
5867
|
+
/>
|
|
5868
|
+
<LayerDialog.Content>
|
|
5869
|
+
<LayerDialog.Title>Create deployment</LayerDialog.Title>
|
|
5870
|
+
<LayerDialog.Description>
|
|
5871
|
+
The browser owns the form’s native validation and submission state.
|
|
5872
|
+
</LayerDialog.Description>
|
|
5873
|
+
<LayerDialog.Body>
|
|
5874
|
+
<form
|
|
5875
|
+
id={formId}
|
|
5876
|
+
className="flex flex-col gap-5"
|
|
5877
|
+
onSubmit={(event) => event.preventDefault()}
|
|
5878
|
+
>
|
|
5879
|
+
<Input
|
|
5880
|
+
label="Service name"
|
|
5881
|
+
name="serviceName"
|
|
5882
|
+
placeholder="production-api"
|
|
5883
|
+
required
|
|
5884
|
+
/>
|
|
5885
|
+
<Input
|
|
5886
|
+
label="Compatibility date"
|
|
5887
|
+
name="compatibilityDate"
|
|
5888
|
+
required
|
|
5889
|
+
type="date"
|
|
5890
|
+
/>
|
|
5891
|
+
</form>
|
|
5892
|
+
</LayerDialog.Body>
|
|
5893
|
+
<LayerDialog.Actions dismissLabel="Cancel">
|
|
5894
|
+
<LayerDialog.Action form={formId} type="submit">
|
|
5895
|
+
Create deployment
|
|
5896
|
+
</LayerDialog.Action>
|
|
5897
|
+
</LayerDialog.Actions>
|
|
5898
|
+
</LayerDialog.Content>
|
|
5899
|
+
</LayerDialog.Root>
|
|
5900
|
+
```
|
|
5901
|
+
|
|
5902
|
+
```tsx
|
|
5903
|
+
<LayerDialog.Root>
|
|
5904
|
+
<LayerDialog.Trigger
|
|
5905
|
+
render={(props) => <Button {...props}>Choose a Worker</Button>}
|
|
5906
|
+
/>
|
|
5907
|
+
<LayerDialog.Content>
|
|
5908
|
+
<LayerDialog.Title>Choose a Worker</LayerDialog.Title>
|
|
5909
|
+
<LayerDialog.Description>
|
|
5910
|
+
Select the Worker that handles requests for this route.
|
|
5911
|
+
</LayerDialog.Description>
|
|
5912
|
+
<LayerDialog.Body>
|
|
5913
|
+
<div className="flex flex-col gap-3">
|
|
5914
|
+
<Input
|
|
5915
|
+
aria-label="Search Workers"
|
|
5916
|
+
onChange={(event) => setQuery(event.target.value)}
|
|
5917
|
+
placeholder="Search Workers"
|
|
5918
|
+
type="search"
|
|
5919
|
+
value={query}
|
|
5920
|
+
/>
|
|
5921
|
+
{matches.length > 0 ? (
|
|
5922
|
+
<ul className="flex flex-col divide-y divide-kumo-hairline rounded-lg border border-kumo-hairline">
|
|
5923
|
+
{matches.map((worker) => (
|
|
5924
|
+
<li key={worker} className="px-3 py-2 text-kumo-default">
|
|
5925
|
+
{worker}
|
|
5926
|
+
</li>
|
|
5927
|
+
))}
|
|
5928
|
+
</ul>
|
|
5929
|
+
) : (
|
|
5930
|
+
<Text variant="secondary">No Workers match “{query}”.</Text>
|
|
5931
|
+
)}
|
|
5932
|
+
</div>
|
|
5933
|
+
</LayerDialog.Body>
|
|
5934
|
+
</LayerDialog.Content>
|
|
5935
|
+
</LayerDialog.Root>
|
|
5936
|
+
```
|
|
5937
|
+
|
|
5938
|
+
```tsx
|
|
5939
|
+
<div className="flex flex-wrap justify-center gap-3">
|
|
5940
|
+
<LayerDialog.Root>
|
|
5941
|
+
<LayerDialog.Trigger
|
|
5942
|
+
render={(props) => <Button {...props}>Edit deployment</Button>}
|
|
5943
|
+
/>
|
|
5944
|
+
<LayerDialog.Content>
|
|
5945
|
+
<LayerDialog.Title>Save deployment</LayerDialog.Title>
|
|
5946
|
+
<LayerDialog.Description>
|
|
5947
|
+
Deploy these changes now, or keep them as a draft.
|
|
5948
|
+
</LayerDialog.Description>
|
|
5949
|
+
<LayerDialog.Body>
|
|
5950
|
+
<Text variant="secondary">
|
|
5951
|
+
The alternate save outcome is related to the primary action, so it
|
|
5952
|
+
lives in its split-button menu rather than as an unrelated footer
|
|
5953
|
+
button.
|
|
5954
|
+
</Text>
|
|
5955
|
+
</LayerDialog.Body>
|
|
5956
|
+
<LayerDialog.Actions>
|
|
5957
|
+
<LayerDialog.Action
|
|
5958
|
+
menu={[
|
|
5959
|
+
<DropdownMenu.Item key="draft">
|
|
5960
|
+
Save as draft
|
|
5961
|
+
</DropdownMenu.Item>,
|
|
5962
|
+
]}
|
|
5963
|
+
menuLabel="Save options"
|
|
5964
|
+
>
|
|
5965
|
+
Save and deploy
|
|
5966
|
+
</LayerDialog.Action>
|
|
5967
|
+
</LayerDialog.Actions>
|
|
5968
|
+
</LayerDialog.Content>
|
|
5969
|
+
</LayerDialog.Root>
|
|
5970
|
+
|
|
5971
|
+
<LayerDialog.Alert>
|
|
5972
|
+
<LayerDialog.Trigger
|
|
5973
|
+
render={(props) => (
|
|
5974
|
+
<Button {...props} variant="secondary">
|
|
5975
|
+
Delete deployment
|
|
5976
|
+
</Button>
|
|
5977
|
+
)}
|
|
5978
|
+
/>
|
|
5979
|
+
<LayerDialog.Content>
|
|
5980
|
+
<LayerDialog.Title>Delete deployment</LayerDialog.Title>
|
|
5981
|
+
<LayerDialog.Description>
|
|
5982
|
+
This permanently removes the deployment and cannot be undone.
|
|
5983
|
+
</LayerDialog.Description>
|
|
5984
|
+
<LayerDialog.Body>
|
|
5985
|
+
<Text variant="secondary">
|
|
5986
|
+
The destructive split button keeps every part of the action,
|
|
5987
|
+
including the menu trigger, visually consistent.
|
|
5988
|
+
</Text>
|
|
5989
|
+
</LayerDialog.Body>
|
|
5990
|
+
<LayerDialog.Actions>
|
|
5991
|
+
<LayerDialog.Action
|
|
5992
|
+
menu={[
|
|
5993
|
+
<DropdownMenu.Item key="delete-with-tokens">
|
|
5994
|
+
Delete and revoke tokens
|
|
5995
|
+
</DropdownMenu.Item>,
|
|
5996
|
+
]}
|
|
5997
|
+
menuLabel="Delete options"
|
|
5998
|
+
variant="destructive"
|
|
5999
|
+
>
|
|
6000
|
+
Delete deployment
|
|
6001
|
+
</LayerDialog.Action>
|
|
6002
|
+
</LayerDialog.Actions>
|
|
6003
|
+
</LayerDialog.Content>
|
|
6004
|
+
</LayerDialog.Alert>
|
|
6005
|
+
</div>
|
|
6006
|
+
```
|
|
6007
|
+
|
|
6008
|
+
```tsx
|
|
6009
|
+
<LayerDialog.Root>
|
|
6010
|
+
<LayerDialog.Trigger
|
|
6011
|
+
render={(props) => <Button {...props}>Edit profile</Button>}
|
|
6012
|
+
/>
|
|
6013
|
+
<LayerDialog.Content>
|
|
6014
|
+
<LayerDialog.Title>Edit profile</LayerDialog.Title>
|
|
6015
|
+
<LayerDialog.Description>
|
|
6016
|
+
Update the profile information shown to your teammates. Changes are
|
|
6017
|
+
not saved until you confirm.
|
|
6018
|
+
</LayerDialog.Description>
|
|
6019
|
+
<LayerDialog.Body>
|
|
6020
|
+
<div className="flex flex-col gap-5">
|
|
6021
|
+
<Input
|
|
6022
|
+
label="Display name"
|
|
6023
|
+
onChange={(event) => setName(event.target.value)}
|
|
6024
|
+
value={name}
|
|
6025
|
+
/>
|
|
6026
|
+
<Input
|
|
6027
|
+
label="Email address"
|
|
6028
|
+
onChange={(event) => setEmail(event.target.value)}
|
|
6029
|
+
type="email"
|
|
6030
|
+
value={email}
|
|
6031
|
+
/>
|
|
6032
|
+
</div>
|
|
6033
|
+
</LayerDialog.Body>
|
|
6034
|
+
<LayerDialog.Actions dismissLabel="Cancel">
|
|
6035
|
+
<LayerDialog.Action
|
|
6036
|
+
disabled={!email || !name}
|
|
6037
|
+
onClick={() => undefined}
|
|
6038
|
+
>
|
|
6039
|
+
Save changes
|
|
6040
|
+
</LayerDialog.Action>
|
|
6041
|
+
</LayerDialog.Actions>
|
|
6042
|
+
</LayerDialog.Content>
|
|
6043
|
+
</LayerDialog.Root>
|
|
6044
|
+
```
|
|
6045
|
+
|
|
6046
|
+
```tsx
|
|
6047
|
+
<LayerDialog.Alert>
|
|
6048
|
+
<LayerDialog.Trigger
|
|
6049
|
+
render={(props) => (
|
|
6050
|
+
<Button variant="secondary-destructive" {...props}>
|
|
6051
|
+
Delete Worker
|
|
6052
|
+
</Button>
|
|
6053
|
+
)}
|
|
6054
|
+
/>
|
|
6055
|
+
<LayerDialog.Content>
|
|
6056
|
+
<LayerDialog.Title>Delete Worker</LayerDialog.Title>
|
|
6057
|
+
<LayerDialog.Description>
|
|
6058
|
+
Deleting{" "}
|
|
6059
|
+
<strong className="font-medium text-kumo-default">
|
|
6060
|
+
{workerName}
|
|
6061
|
+
</strong>{" "}
|
|
6062
|
+
is permanent.
|
|
6063
|
+
</LayerDialog.Description>
|
|
6064
|
+
<LayerDialog.Body>
|
|
6065
|
+
<div className="flex flex-col gap-5">
|
|
6066
|
+
<Text variant="secondary">
|
|
6067
|
+
This deletes the Worker, deployments, and configuration. If this
|
|
6068
|
+
Worker consumes Queues, those connections are removed first.
|
|
6069
|
+
Queues, D1 databases, and messages stay in your account.
|
|
6070
|
+
</Text>
|
|
6071
|
+
<Input
|
|
6072
|
+
label={
|
|
6073
|
+
<>
|
|
6074
|
+
Type{" "}
|
|
6075
|
+
<strong className="font-medium text-kumo-default">
|
|
6076
|
+
{workerName}
|
|
6077
|
+
</strong>{" "}
|
|
6078
|
+
to confirm
|
|
6079
|
+
</>
|
|
6080
|
+
}
|
|
6081
|
+
onChange={(event) => setConfirmation(event.target.value)}
|
|
6082
|
+
placeholder={workerName}
|
|
6083
|
+
value={confirmation}
|
|
6084
|
+
/>
|
|
6085
|
+
</div>
|
|
6086
|
+
</LayerDialog.Body>
|
|
6087
|
+
<LayerDialog.Actions>
|
|
6088
|
+
<LayerDialog.Action
|
|
6089
|
+
disabled={confirmation !== workerName}
|
|
6090
|
+
onClick={() => undefined}
|
|
6091
|
+
variant="destructive"
|
|
6092
|
+
>
|
|
6093
|
+
Delete Worker
|
|
6094
|
+
</LayerDialog.Action>
|
|
6095
|
+
</LayerDialog.Actions>
|
|
6096
|
+
</LayerDialog.Content>
|
|
6097
|
+
</LayerDialog.Alert>
|
|
6098
|
+
```
|
|
6099
|
+
|
|
6100
|
+
```tsx
|
|
6101
|
+
<LayerDialog.Root dismissDisabled={pending}>
|
|
6102
|
+
<LayerDialog.Trigger
|
|
6103
|
+
render={(props) => <Button {...props}>Save a setting</Button>}
|
|
6104
|
+
/>
|
|
6105
|
+
<LayerDialog.Content>
|
|
6106
|
+
<LayerDialog.Title>Save a setting</LayerDialog.Title>
|
|
6107
|
+
<LayerDialog.Description>
|
|
6108
|
+
While saving, Close, Escape, backdrop, and mobile swipe dismissals are
|
|
6109
|
+
blocked together.
|
|
6110
|
+
</LayerDialog.Description>
|
|
6111
|
+
<LayerDialog.Body>
|
|
6112
|
+
<Text variant="secondary">
|
|
6113
|
+
Programmatic closes still work, so a successful save can dismiss the
|
|
6114
|
+
dialog through `actionsRef` or a controlled `open` prop.
|
|
6115
|
+
</Text>
|
|
6116
|
+
</LayerDialog.Body>
|
|
6117
|
+
<LayerDialog.Actions>
|
|
6118
|
+
<LayerDialog.Action
|
|
6119
|
+
loading={pending}
|
|
6120
|
+
onClick={() => {
|
|
6121
|
+
setPending(true);
|
|
6122
|
+
window.setTimeout(() => setPending(false), 1500);
|
|
6123
|
+
}}
|
|
6124
|
+
>
|
|
6125
|
+
Save changes
|
|
6126
|
+
</LayerDialog.Action>
|
|
6127
|
+
</LayerDialog.Actions>
|
|
6128
|
+
</LayerDialog.Content>
|
|
6129
|
+
</LayerDialog.Root>
|
|
6130
|
+
```
|
|
6131
|
+
|
|
6132
|
+
```tsx
|
|
6133
|
+
<LayerDialog.Root
|
|
6134
|
+
open={open}
|
|
6135
|
+
onOpenChange={(nextOpen) => {
|
|
6136
|
+
if (!nextOpen) setCleanupCount((count) => count + 1);
|
|
6137
|
+
setOpen(nextOpen);
|
|
6138
|
+
}}
|
|
6139
|
+
>
|
|
6140
|
+
<LayerDialog.Trigger
|
|
6141
|
+
render={(props) => <Button {...props}>Open draft</Button>}
|
|
6142
|
+
/>
|
|
6143
|
+
<LayerDialog.Content>
|
|
6144
|
+
<LayerDialog.Title>Draft settings</LayerDialog.Title>
|
|
6145
|
+
<LayerDialog.Body>
|
|
6146
|
+
<Text variant="secondary">
|
|
6147
|
+
Cleanup has run {cleanupCount} time{cleanupCount === 1 ? "" : "s"}.
|
|
6148
|
+
</Text>
|
|
6149
|
+
</LayerDialog.Body>
|
|
6150
|
+
</LayerDialog.Content>
|
|
6151
|
+
</LayerDialog.Root>
|
|
6152
|
+
```
|
|
6153
|
+
|
|
6154
|
+
```tsx
|
|
6155
|
+
<LayerDialog.Root>
|
|
6156
|
+
<LayerDialog.Trigger
|
|
6157
|
+
render={(props) => <Button {...props}>Edit deployment</Button>}
|
|
6158
|
+
/>
|
|
6159
|
+
<LayerDialog.Content>
|
|
6160
|
+
<LayerDialog.Title>Edit deployment</LayerDialog.Title>
|
|
6161
|
+
<LayerDialog.Description>
|
|
6162
|
+
Review the deployment settings before saving.
|
|
6163
|
+
</LayerDialog.Description>
|
|
6164
|
+
<LayerDialog.Body>
|
|
6165
|
+
<div className="flex flex-col gap-4">
|
|
6166
|
+
<Text variant="secondary">
|
|
6167
|
+
Opening a second dialog from this body should keep the first
|
|
6168
|
+
dialog beneath it and restore focus when it closes.
|
|
6169
|
+
</Text>
|
|
6170
|
+
<LayerDialog.Alert>
|
|
6171
|
+
<LayerDialog.Trigger
|
|
6172
|
+
render={(props) => (
|
|
6173
|
+
<Button variant="secondary-destructive" {...props}>
|
|
6174
|
+
Discard changes
|
|
6175
|
+
</Button>
|
|
6176
|
+
)}
|
|
6177
|
+
/>
|
|
6178
|
+
<LayerDialog.Content size="sm">
|
|
6179
|
+
<LayerDialog.Title>Discard unsaved changes?</LayerDialog.Title>
|
|
6180
|
+
<LayerDialog.Description>
|
|
6181
|
+
Your deployment edits will be permanently lost.
|
|
6182
|
+
</LayerDialog.Description>
|
|
6183
|
+
<LayerDialog.Body>
|
|
6184
|
+
<Text variant="secondary">
|
|
6185
|
+
This nested alert is independently portaled and should
|
|
6186
|
+
dismiss back to the edit dialog.
|
|
6187
|
+
</Text>
|
|
6188
|
+
</LayerDialog.Body>
|
|
6189
|
+
<LayerDialog.Actions>
|
|
6190
|
+
<LayerDialog.Action variant="destructive">
|
|
6191
|
+
Discard changes
|
|
6192
|
+
</LayerDialog.Action>
|
|
6193
|
+
</LayerDialog.Actions>
|
|
6194
|
+
</LayerDialog.Content>
|
|
6195
|
+
</LayerDialog.Alert>
|
|
6196
|
+
</div>
|
|
6197
|
+
</LayerDialog.Body>
|
|
6198
|
+
<LayerDialog.Actions>
|
|
6199
|
+
<LayerDialog.Action>Save changes</LayerDialog.Action>
|
|
6200
|
+
</LayerDialog.Actions>
|
|
6201
|
+
</LayerDialog.Content>
|
|
6202
|
+
</LayerDialog.Root>
|
|
6203
|
+
```
|
|
6204
|
+
|
|
6205
|
+
```tsx
|
|
6206
|
+
<LayerDialog.Root>
|
|
6207
|
+
<LayerDialog.Trigger
|
|
6208
|
+
render={(props) => <Button {...props}>Open top-aligned dialog</Button>}
|
|
6209
|
+
/>
|
|
6210
|
+
<LayerDialog.Content verticalAlign="top">
|
|
6211
|
+
<LayerDialog.Title>Top-aligned dialog</LayerDialog.Title>
|
|
6212
|
+
<LayerDialog.Body>
|
|
6213
|
+
<Text variant="secondary">Mobile dialogs remain bottom sheets.</Text>
|
|
6214
|
+
</LayerDialog.Body>
|
|
6215
|
+
</LayerDialog.Content>
|
|
6216
|
+
</LayerDialog.Root>
|
|
6217
|
+
```
|
|
6218
|
+
|
|
6219
|
+
```tsx
|
|
6220
|
+
<>
|
|
6221
|
+
<div className="flex flex-wrap gap-2">
|
|
6222
|
+
<Button onClick={() => openAt("center")}>Centered, tall content</Button>
|
|
6223
|
+
<Button onClick={() => openAt("top")}>Top-aligned, tall content</Button>
|
|
6224
|
+
</div>
|
|
6225
|
+
<LayerDialog.Root open={open} onOpenChange={setOpen}>
|
|
6226
|
+
<LayerDialog.Content verticalAlign={verticalAlign}>
|
|
6227
|
+
<LayerDialog.Title>Audit log</LayerDialog.Title>
|
|
6228
|
+
<LayerDialog.Description>
|
|
6229
|
+
The dialog grows with its content until it reaches the viewport cap,
|
|
6230
|
+
then only the body scrolls.
|
|
6231
|
+
</LayerDialog.Description>
|
|
6232
|
+
<LayerDialog.Body>
|
|
6233
|
+
<ol className="flex flex-col gap-2">
|
|
6234
|
+
{Array.from({ length: 40 }, (_, index) => (
|
|
6235
|
+
<li
|
|
6236
|
+
key={index}
|
|
6237
|
+
className="rounded-lg border border-kumo-line px-3 py-2 text-kumo-subtle"
|
|
6238
|
+
>
|
|
6239
|
+
Entry {index + 1}
|
|
6240
|
+
</li>
|
|
6241
|
+
))}
|
|
6242
|
+
</ol>
|
|
6243
|
+
</LayerDialog.Body>
|
|
6244
|
+
<LayerDialog.Actions>
|
|
6245
|
+
<LayerDialog.Action>Export log</LayerDialog.Action>
|
|
6246
|
+
</LayerDialog.Actions>
|
|
6247
|
+
</LayerDialog.Content>
|
|
6248
|
+
</LayerDialog.Root>
|
|
6249
|
+
</>
|
|
6250
|
+
```
|
|
6251
|
+
|
|
6252
|
+
```tsx
|
|
6253
|
+
<>
|
|
6254
|
+
<div className="flex flex-wrap gap-2">
|
|
6255
|
+
<Button onClick={() => openAtSize("sm")}>Small</Button>
|
|
6256
|
+
<Button onClick={() => openAtSize("base")}>Default</Button>
|
|
6257
|
+
<Button onClick={() => openAtSize("lg")}>Large</Button>
|
|
6258
|
+
<Button onClick={() => openAtSize("xl")}>Extra large</Button>
|
|
6259
|
+
</div>
|
|
6260
|
+
<LayerDialog.Root open={open} onOpenChange={setOpen}>
|
|
6261
|
+
<LayerDialog.Content size={size}>
|
|
6262
|
+
<LayerDialog.Title>Review deployment configuration</LayerDialog.Title>
|
|
6263
|
+
<LayerDialog.Description>
|
|
6264
|
+
Confirm the service details and routing configuration before this
|
|
6265
|
+
deployment is created.
|
|
6266
|
+
</LayerDialog.Description>
|
|
6267
|
+
<LayerDialog.Body>
|
|
6268
|
+
<div className="grid gap-5 sm:grid-cols-2">
|
|
6269
|
+
<Input label="Service name" defaultValue="production-api" />
|
|
6270
|
+
<Input label="Environment" defaultValue="Production" />
|
|
6271
|
+
<Input label="Hostname" defaultValue="api.example.com" />
|
|
6272
|
+
<Input label="Compatibility date" defaultValue="2026-09-09" />
|
|
6273
|
+
</div>
|
|
6274
|
+
</LayerDialog.Body>
|
|
6275
|
+
<LayerDialog.Actions>
|
|
6276
|
+
<LayerDialog.Action>Create deployment</LayerDialog.Action>
|
|
6277
|
+
</LayerDialog.Actions>
|
|
6278
|
+
</LayerDialog.Content>
|
|
6279
|
+
</LayerDialog.Root>
|
|
6280
|
+
</>
|
|
6281
|
+
```
|
|
6282
|
+
|
|
6283
|
+
|
|
6284
|
+
---
|
|
6285
|
+
|
|
6286
|
+
### Link
|
|
6287
|
+
|
|
6288
|
+
Link component
|
|
6289
|
+
|
|
6290
|
+
**Type:** component
|
|
6291
|
+
|
|
6292
|
+
**Import:** `import { Link } from "@cloudflare/kumo";`
|
|
6293
|
+
|
|
6294
|
+
**Category:** Other
|
|
6295
|
+
|
|
6296
|
+
**Props:**
|
|
6297
|
+
|
|
6298
|
+
- `variant`: enum [default: inline]
|
|
6299
|
+
- `"inline"`: Inline text link that flows with content
|
|
6300
|
+
- `"current"`: Link that inherits color from parent text
|
|
6301
|
+
- `"plain"`: Link without underline decoration
|
|
6302
|
+
- `to`: string
|
|
6303
|
+
- `children`: ReactNode
|
|
6304
|
+
- `className`: string
|
|
6305
|
+
- `id`: string
|
|
6306
|
+
- `lang`: string
|
|
6307
|
+
- `title`: string
|
|
6308
|
+
- `download`: unknown
|
|
6309
|
+
- `href`: string
|
|
6310
|
+
- `hrefLang`: string
|
|
6311
|
+
- `media`: string
|
|
6312
|
+
- `ping`: string
|
|
6313
|
+
- `target`: React.HTMLAttributeAnchorTarget
|
|
6314
|
+
- `type`: string
|
|
6315
|
+
- `referrerPolicy`: enum
|
|
6316
|
+
- `render`: ReactNode
|
|
6317
|
+
Allows you to replace the component's HTML element with a different tag, or compose it with another component.
|
|
6318
|
+
|
|
6319
|
+
Accepts a `ReactElement` or a function that returns the element to render.
|
|
6320
|
+
|
|
6321
|
+
**Colors (kumo tokens used):**
|
|
6322
|
+
|
|
6323
|
+
`text-kumo-link`
|
|
6324
|
+
|
|
6325
|
+
**Sub-Components:**
|
|
6326
|
+
|
|
6327
|
+
This is a compound component. Use these sub-components:
|
|
6328
|
+
|
|
6329
|
+
#### Link.ExternalIcon
|
|
6330
|
+
|
|
6331
|
+
ExternalIcon sub-component
|
|
6332
|
+
|
|
6333
|
+
|
|
6334
|
+
**Examples:**
|
|
6335
|
+
|
|
6336
|
+
```tsx
|
|
6337
|
+
<div className="grid gap-x-6 gap-y-4 text-base md:grid-cols-3">
|
|
6338
|
+
<Link href="#">Default inline link</Link>
|
|
6339
|
+
<Link href="#" variant="current">
|
|
6340
|
+
Current color link
|
|
6341
|
+
</Link>
|
|
6342
|
+
<Link href="#" variant="plain">
|
|
6343
|
+
Plain inline link
|
|
6344
|
+
</Link>
|
|
6345
|
+
</div>
|
|
6346
|
+
```
|
|
6347
|
+
|
|
6348
|
+
```tsx
|
|
6349
|
+
<p className="mx-auto max-w-md text-base leading-relaxed text-kumo-default">
|
|
6350
|
+
This is a paragraph with an <Link href="#">inline link</Link> that flows
|
|
6351
|
+
naturally with the surrounding text. Links maintain proper underline
|
|
6352
|
+
offset for readability.
|
|
6353
|
+
</p>
|
|
6354
|
+
```
|
|
6355
|
+
|
|
6356
|
+
```tsx
|
|
6357
|
+
<Link
|
|
6358
|
+
href="https://cloudflare.com"
|
|
6359
|
+
target="_blank"
|
|
6360
|
+
rel="noopener noreferrer"
|
|
6361
|
+
className="text-base"
|
|
6362
|
+
>
|
|
6363
|
+
Visit Cloudflare <Link.ExternalIcon />
|
|
6364
|
+
</Link>
|
|
6365
|
+
```
|
|
6366
|
+
|
|
6367
|
+
```tsx
|
|
6368
|
+
<p className="text-base text-kumo-danger">
|
|
6369
|
+
This error message contains a{" "}
|
|
5452
6370
|
<Link href="#" variant="current">
|
|
5453
6371
|
link
|
|
5454
6372
|
</Link>{" "}
|
|
@@ -5871,10 +6789,38 @@ Popover component for displaying accessible popup content anchored to a trigger.
|
|
|
5871
6789
|
|
|
5872
6790
|
This is a compound component. Use these sub-components:
|
|
5873
6791
|
|
|
6792
|
+
#### Popover.Root
|
|
6793
|
+
|
|
6794
|
+
Root sub-component
|
|
6795
|
+
|
|
5874
6796
|
#### Popover.Trigger
|
|
5875
6797
|
|
|
5876
6798
|
Trigger sub-component
|
|
5877
6799
|
|
|
6800
|
+
#### Popover.Portal
|
|
6801
|
+
|
|
6802
|
+
Portal sub-component
|
|
6803
|
+
|
|
6804
|
+
#### Popover.Backdrop
|
|
6805
|
+
|
|
6806
|
+
Backdrop sub-component
|
|
6807
|
+
|
|
6808
|
+
#### Popover.Positioner
|
|
6809
|
+
|
|
6810
|
+
Positioner sub-component
|
|
6811
|
+
|
|
6812
|
+
#### Popover.Popup
|
|
6813
|
+
|
|
6814
|
+
Popup sub-component
|
|
6815
|
+
|
|
6816
|
+
#### Popover.Arrow
|
|
6817
|
+
|
|
6818
|
+
Arrow sub-component
|
|
6819
|
+
|
|
6820
|
+
#### Popover.Viewport
|
|
6821
|
+
|
|
6822
|
+
Viewport sub-component
|
|
6823
|
+
|
|
5878
6824
|
#### Popover.Content
|
|
5879
6825
|
|
|
5880
6826
|
Content sub-component
|
|
@@ -5895,123 +6841,241 @@ Close sub-component
|
|
|
5895
6841
|
**Examples:**
|
|
5896
6842
|
|
|
5897
6843
|
```tsx
|
|
5898
|
-
<Popover>
|
|
6844
|
+
<Popover.Root>
|
|
5899
6845
|
<Popover.Trigger
|
|
5900
6846
|
render={
|
|
5901
6847
|
<Button shape="square" icon={BellIcon} aria-label="Notifications" />
|
|
5902
6848
|
}
|
|
5903
6849
|
/>
|
|
5904
|
-
<Popover.
|
|
5905
|
-
<Popover.
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
6850
|
+
<Popover.Portal>
|
|
6851
|
+
<Popover.Positioner>
|
|
6852
|
+
<Popover.Popup>
|
|
6853
|
+
<Popover.Arrow />
|
|
6854
|
+
<Popover.Title>Notifications</Popover.Title>
|
|
6855
|
+
<Popover.Description>
|
|
6856
|
+
You are all caught up. Good job!
|
|
6857
|
+
</Popover.Description>
|
|
6858
|
+
</Popover.Popup>
|
|
6859
|
+
</Popover.Positioner>
|
|
6860
|
+
</Popover.Portal>
|
|
6861
|
+
</Popover.Root>
|
|
6862
|
+
```
|
|
6863
|
+
|
|
6864
|
+
```tsx
|
|
6865
|
+
<Popover.Root>
|
|
6866
|
+
<Popover.Trigger render={<Button />}>Open Popover</Popover.Trigger>
|
|
6867
|
+
<Popover.Portal>
|
|
6868
|
+
<Popover.Positioner>
|
|
6869
|
+
<Popover.Popup>
|
|
6870
|
+
<Popover.Arrow />
|
|
6871
|
+
<Popover.Title>Popover Title</Popover.Title>
|
|
6872
|
+
<Popover.Description>
|
|
6873
|
+
This is a basic popover with a title and description.
|
|
6874
|
+
</Popover.Description>
|
|
6875
|
+
</Popover.Popup>
|
|
6876
|
+
</Popover.Positioner>
|
|
6877
|
+
</Popover.Portal>
|
|
6878
|
+
</Popover.Root>
|
|
5911
6879
|
```
|
|
5912
6880
|
|
|
5913
6881
|
```tsx
|
|
5914
6882
|
<Popover>
|
|
5915
|
-
<Popover.Trigger render={<Button />}>
|
|
5916
|
-
|
|
5917
|
-
|
|
6883
|
+
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
6884
|
+
Open legacy Content
|
|
6885
|
+
</Popover.Trigger>
|
|
6886
|
+
<Popover.Content className="w-72">
|
|
6887
|
+
<Popover.Title>Compatibility mode</Popover.Title>
|
|
5918
6888
|
<Popover.Description>
|
|
5919
|
-
This
|
|
6889
|
+
This legacy wrapper fades in without scaling or transforming.
|
|
5920
6890
|
</Popover.Description>
|
|
5921
6891
|
</Popover.Content>
|
|
5922
6892
|
</Popover>
|
|
5923
6893
|
```
|
|
5924
6894
|
|
|
5925
6895
|
```tsx
|
|
5926
|
-
<Popover>
|
|
6896
|
+
<Popover.Root>
|
|
6897
|
+
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
6898
|
+
Open scrollable Popover
|
|
6899
|
+
</Popover.Trigger>
|
|
6900
|
+
<Popover.Portal>
|
|
6901
|
+
<Popover.Positioner>
|
|
6902
|
+
<Popover.Popup className="w-72">
|
|
6903
|
+
<Popover.Arrow />
|
|
6904
|
+
<Popover.Title>Recent notifications</Popover.Title>
|
|
6905
|
+
<Popover.Description>
|
|
6906
|
+
The list scrolls while the heading and arrow stay in place.
|
|
6907
|
+
</Popover.Description>
|
|
6908
|
+
<div
|
|
6909
|
+
aria-label="Recent notifications"
|
|
6910
|
+
className="mt-3 max-h-40 overflow-y-auto rounded-md border border-kumo-hairline outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand"
|
|
6911
|
+
tabIndex={0}
|
|
6912
|
+
>
|
|
6913
|
+
{Array.from({ length: 10 }, (_, index) => (
|
|
6914
|
+
<div
|
|
6915
|
+
key={index}
|
|
6916
|
+
className="border-b border-kumo-hairline px-3 py-2 last:border-b-0"
|
|
6917
|
+
>
|
|
6918
|
+
Notification {index + 1}
|
|
6919
|
+
</div>
|
|
6920
|
+
))}
|
|
6921
|
+
</div>
|
|
6922
|
+
</Popover.Popup>
|
|
6923
|
+
</Popover.Positioner>
|
|
6924
|
+
</Popover.Portal>
|
|
6925
|
+
</Popover.Root>
|
|
6926
|
+
```
|
|
6927
|
+
|
|
6928
|
+
```tsx
|
|
6929
|
+
<Popover.Root>
|
|
6930
|
+
<Popover.Trigger render={<Button />}>Open tall Popover</Popover.Trigger>
|
|
6931
|
+
<Popover.Portal>
|
|
6932
|
+
<Popover.Positioner>
|
|
6933
|
+
<Popover.Popup className="h-80 max-h-[var(--available-height)] w-72">
|
|
6934
|
+
<Popover.Arrow />
|
|
6935
|
+
<Popover.Title>Available-height popup</Popover.Title>
|
|
6936
|
+
<Popover.Description>
|
|
6937
|
+
The popup is 320px tall unless the viewport provides less space.
|
|
6938
|
+
</Popover.Description>
|
|
6939
|
+
<div
|
|
6940
|
+
aria-label="Popover rows"
|
|
6941
|
+
className="mt-3 min-h-0 flex-1 overflow-y-auto rounded-md border border-kumo-hairline outline-none focus-visible:ring-2 focus-visible:ring-kumo-brand"
|
|
6942
|
+
tabIndex={0}
|
|
6943
|
+
>
|
|
6944
|
+
{Array.from({ length: 12 }, (_, index) => (
|
|
6945
|
+
<div
|
|
6946
|
+
key={index}
|
|
6947
|
+
className="border-b border-kumo-hairline px-3 py-2 last:border-b-0"
|
|
6948
|
+
>
|
|
6949
|
+
Row {index + 1}
|
|
6950
|
+
</div>
|
|
6951
|
+
))}
|
|
6952
|
+
</div>
|
|
6953
|
+
</Popover.Popup>
|
|
6954
|
+
</Popover.Positioner>
|
|
6955
|
+
</Popover.Portal>
|
|
6956
|
+
</Popover.Root>
|
|
6957
|
+
```
|
|
6958
|
+
|
|
6959
|
+
```tsx
|
|
6960
|
+
<Popover.Root>
|
|
5927
6961
|
<Popover.Trigger render={<Button />}>Open Settings</Popover.Trigger>
|
|
5928
|
-
<Popover.
|
|
5929
|
-
<Popover.
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
6962
|
+
<Popover.Portal>
|
|
6963
|
+
<Popover.Positioner>
|
|
6964
|
+
<Popover.Popup>
|
|
6965
|
+
<Popover.Arrow />
|
|
6966
|
+
<Popover.Title>Settings</Popover.Title>
|
|
6967
|
+
<Popover.Description>
|
|
6968
|
+
Configure your preferences below.
|
|
6969
|
+
</Popover.Description>
|
|
6970
|
+
<div className="mt-3">
|
|
6971
|
+
<Popover.Close render={<Button variant="secondary" size="sm" />}>
|
|
6972
|
+
Close
|
|
6973
|
+
</Popover.Close>
|
|
6974
|
+
</div>
|
|
6975
|
+
</Popover.Popup>
|
|
6976
|
+
</Popover.Positioner>
|
|
6977
|
+
</Popover.Portal>
|
|
6978
|
+
</Popover.Root>
|
|
5940
6979
|
```
|
|
5941
6980
|
|
|
5942
6981
|
```tsx
|
|
5943
6982
|
<div className="flex flex-wrap gap-4">
|
|
5944
|
-
<Popover>
|
|
6983
|
+
<Popover.Root>
|
|
5945
6984
|
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
5946
6985
|
Bottom
|
|
5947
6986
|
</Popover.Trigger>
|
|
5948
|
-
<Popover.
|
|
5949
|
-
<Popover.
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
6987
|
+
<Popover.Portal>
|
|
6988
|
+
<Popover.Positioner side="bottom">
|
|
6989
|
+
<Popover.Popup>
|
|
6990
|
+
<Popover.Arrow />
|
|
6991
|
+
<Popover.Title>Bottom</Popover.Title>
|
|
6992
|
+
<Popover.Description>
|
|
6993
|
+
Popover on bottom (default).
|
|
6994
|
+
</Popover.Description>
|
|
6995
|
+
</Popover.Popup>
|
|
6996
|
+
</Popover.Positioner>
|
|
6997
|
+
</Popover.Portal>
|
|
6998
|
+
</Popover.Root>
|
|
6999
|
+
|
|
7000
|
+
<Popover.Root>
|
|
5957
7001
|
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
5958
7002
|
Top
|
|
5959
7003
|
</Popover.Trigger>
|
|
5960
|
-
<Popover.
|
|
5961
|
-
<Popover.
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
7004
|
+
<Popover.Portal>
|
|
7005
|
+
<Popover.Positioner side="top">
|
|
7006
|
+
<Popover.Popup>
|
|
7007
|
+
<Popover.Arrow />
|
|
7008
|
+
<Popover.Title>Top</Popover.Title>
|
|
7009
|
+
<Popover.Description>Popover on top.</Popover.Description>
|
|
7010
|
+
</Popover.Popup>
|
|
7011
|
+
</Popover.Positioner>
|
|
7012
|
+
</Popover.Portal>
|
|
7013
|
+
</Popover.Root>
|
|
7014
|
+
|
|
7015
|
+
<Popover.Root>
|
|
5967
7016
|
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
5968
7017
|
Left
|
|
5969
7018
|
</Popover.Trigger>
|
|
5970
|
-
<Popover.
|
|
5971
|
-
<Popover.
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
7019
|
+
<Popover.Portal>
|
|
7020
|
+
<Popover.Positioner side="left">
|
|
7021
|
+
<Popover.Popup>
|
|
7022
|
+
<Popover.Arrow />
|
|
7023
|
+
<Popover.Title>Left</Popover.Title>
|
|
7024
|
+
<Popover.Description>Popover on left.</Popover.Description>
|
|
7025
|
+
</Popover.Popup>
|
|
7026
|
+
</Popover.Positioner>
|
|
7027
|
+
</Popover.Portal>
|
|
7028
|
+
</Popover.Root>
|
|
7029
|
+
|
|
7030
|
+
<Popover.Root>
|
|
5977
7031
|
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
5978
7032
|
Right
|
|
5979
7033
|
</Popover.Trigger>
|
|
5980
|
-
<Popover.
|
|
5981
|
-
<Popover.
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
7034
|
+
<Popover.Portal>
|
|
7035
|
+
<Popover.Positioner side="right">
|
|
7036
|
+
<Popover.Popup>
|
|
7037
|
+
<Popover.Arrow />
|
|
7038
|
+
<Popover.Title>Right</Popover.Title>
|
|
7039
|
+
<Popover.Description>Popover on right.</Popover.Description>
|
|
7040
|
+
</Popover.Popup>
|
|
7041
|
+
</Popover.Positioner>
|
|
7042
|
+
</Popover.Portal>
|
|
7043
|
+
</Popover.Root>
|
|
5985
7044
|
</div>
|
|
5986
7045
|
```
|
|
5987
7046
|
|
|
5988
7047
|
```tsx
|
|
5989
|
-
<Popover>
|
|
7048
|
+
<Popover.Root>
|
|
5990
7049
|
<Popover.Trigger render={<Button />}>User Profile</Popover.Trigger>
|
|
5991
|
-
<Popover.
|
|
5992
|
-
<
|
|
5993
|
-
<
|
|
5994
|
-
|
|
5995
|
-
<
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
7050
|
+
<Popover.Portal>
|
|
7051
|
+
<Popover.Positioner>
|
|
7052
|
+
<Popover.Popup className="w-64">
|
|
7053
|
+
<Popover.Arrow />
|
|
7054
|
+
<div className="flex items-center gap-3">
|
|
7055
|
+
<div className="size-10 rounded-full bg-kumo-recessed" />
|
|
7056
|
+
<div>
|
|
7057
|
+
<Popover.Title>Jane Doe</Popover.Title>
|
|
7058
|
+
<p className="text-sm text-kumo-subtle">jane@example.com</p>
|
|
7059
|
+
</div>
|
|
7060
|
+
</div>
|
|
7061
|
+
<div className="mt-3 flex gap-2 border-t border-kumo-hairline pt-3">
|
|
7062
|
+
<Button variant="secondary" size="sm" className="flex-1">
|
|
7063
|
+
Profile
|
|
7064
|
+
</Button>
|
|
7065
|
+
<Popover.Close
|
|
7066
|
+
render={<Button variant="ghost" size="sm" className="flex-1" />}
|
|
7067
|
+
>
|
|
7068
|
+
Sign Out
|
|
7069
|
+
</Popover.Close>
|
|
7070
|
+
</div>
|
|
7071
|
+
</Popover.Popup>
|
|
7072
|
+
</Popover.Positioner>
|
|
7073
|
+
</Popover.Portal>
|
|
7074
|
+
</Popover.Root>
|
|
6011
7075
|
```
|
|
6012
7076
|
|
|
6013
7077
|
```tsx
|
|
6014
|
-
<Popover>
|
|
7078
|
+
<Popover.Root>
|
|
6015
7079
|
<Popover.Trigger
|
|
6016
7080
|
openOnHover
|
|
6017
7081
|
delay={200}
|
|
@@ -6019,19 +7083,24 @@ Close sub-component
|
|
|
6019
7083
|
>
|
|
6020
7084
|
Hover Me
|
|
6021
7085
|
</Popover.Trigger>
|
|
6022
|
-
<Popover.
|
|
6023
|
-
<Popover.
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
7086
|
+
<Popover.Portal>
|
|
7087
|
+
<Popover.Positioner>
|
|
7088
|
+
<Popover.Popup>
|
|
7089
|
+
<Popover.Arrow />
|
|
7090
|
+
<Popover.Title>Hover Triggered</Popover.Title>
|
|
7091
|
+
<Popover.Description>
|
|
7092
|
+
This popover opens on hover with a 200ms delay. It can still
|
|
7093
|
+
contain interactive content like buttons and links.
|
|
7094
|
+
</Popover.Description>
|
|
7095
|
+
<div className="mt-3">
|
|
7096
|
+
<Popover.Close render={<Button variant="secondary" size="sm" />}>
|
|
7097
|
+
Got it
|
|
7098
|
+
</Popover.Close>
|
|
7099
|
+
</div>
|
|
7100
|
+
</Popover.Popup>
|
|
7101
|
+
</Popover.Positioner>
|
|
7102
|
+
</Popover.Portal>
|
|
7103
|
+
</Popover.Root>
|
|
6035
7104
|
```
|
|
6036
7105
|
|
|
6037
7106
|
```tsx
|
|
@@ -6073,29 +7142,38 @@ Close sub-component
|
|
|
6073
7142
|
</tbody>
|
|
6074
7143
|
</table>
|
|
6075
7144
|
</div>
|
|
6076
|
-
<Popover
|
|
7145
|
+
<Popover.Root
|
|
6077
7146
|
open={!!selectedRow}
|
|
6078
7147
|
onOpenChange={(open) => !open && setSelectedRow(null)}
|
|
6079
7148
|
>
|
|
6080
|
-
<Popover.
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
7149
|
+
<Popover.Portal>
|
|
7150
|
+
<Popover.Positioner
|
|
7151
|
+
side="left"
|
|
7152
|
+
anchor={
|
|
7153
|
+
anchorRect
|
|
7154
|
+
? { getBoundingClientRect: () => anchorRect }
|
|
7155
|
+
: undefined
|
|
7156
|
+
}
|
|
7157
|
+
>
|
|
7158
|
+
<Popover.Popup>
|
|
7159
|
+
<Popover.Arrow />
|
|
7160
|
+
<Popover.Title>
|
|
7161
|
+
Edit {rows.find((r) => r.id === selectedRow)?.name}
|
|
7162
|
+
</Popover.Title>
|
|
7163
|
+
<Popover.Description>
|
|
7164
|
+
The popover anchors to the selected row, not the icon button.
|
|
7165
|
+
</Popover.Description>
|
|
7166
|
+
<div className="mt-3">
|
|
7167
|
+
<Popover.Close
|
|
7168
|
+
render={<Button size="sm" variant="secondary" />}
|
|
7169
|
+
>
|
|
7170
|
+
Close
|
|
7171
|
+
</Popover.Close>
|
|
7172
|
+
</div>
|
|
7173
|
+
</Popover.Popup>
|
|
7174
|
+
</Popover.Positioner>
|
|
7175
|
+
</Popover.Portal>
|
|
7176
|
+
</Popover.Root>
|
|
6099
7177
|
</div>
|
|
6100
7178
|
```
|
|
6101
7179
|
|
|
@@ -6118,7 +7196,7 @@ Radio — radio button group for single-select choices.
|
|
|
6118
7196
|
- `"default"`: Default radio appearance
|
|
6119
7197
|
- `"error"`: Error state for validation failures
|
|
6120
7198
|
- `appearance`: KumoRadioAppearance
|
|
6121
|
-
Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state Individual items can override
|
|
7199
|
+
Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state - `"segmented"` — Compact single-line group for short options Individual items can override default and card appearances. Segmented is group-only and cannot be overridden by individual items.
|
|
6122
7200
|
- `legend`: string
|
|
6123
7201
|
Legend text for the group (required for accessibility). For more control over legend styling, omit this prop and use `<Radio.Legend>` as a child instead.
|
|
6124
7202
|
- `children`: ReactNode (required)
|
|
@@ -6146,7 +7224,7 @@ Radio — radio button group for single-select choices.
|
|
|
6146
7224
|
|
|
6147
7225
|
**Colors (kumo tokens used):**
|
|
6148
7226
|
|
|
6149
|
-
`bg-kumo-base`, `bg-kumo-contrast`, `bg-kumo-tint`, `border-kumo-danger`, `border-kumo-hairline`, `border-kumo-interact`, `ring-kumo-brand`, `ring-kumo-danger`, `ring-kumo-focus`, `ring-kumo-hairline`, `ring-kumo-line`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-subtle`
|
|
7227
|
+
`bg-kumo-base`, `bg-kumo-contrast`, `bg-kumo-control`, `bg-kumo-elevated`, `bg-kumo-tint`, `border-kumo-danger`, `border-kumo-hairline`, `border-kumo-interact`, `border-kumo-line`, `outline-kumo-brand`, `ring-kumo-brand`, `ring-kumo-danger`, `ring-kumo-focus`, `ring-kumo-hairline`, `ring-kumo-line`, `text-kumo-danger`, `text-kumo-default`, `text-kumo-inverse`, `text-kumo-subtle`
|
|
6150
7228
|
|
|
6151
7229
|
**Sub-Components:**
|
|
6152
7230
|
|
|
@@ -6164,7 +7242,7 @@ Props:
|
|
|
6164
7242
|
- `legend`: string - Legend text for the group (required for accessibility). For more control over legend styling, omit this prop and use `<Radio.Legend>` as a child instead.
|
|
6165
7243
|
- `children`: ReactNode (required) - Child Radio.Item components (and optionally a Radio.Legend)
|
|
6166
7244
|
- `orientation`: "vertical" | "horizontal" - Layout direction of the radio items
|
|
6167
|
-
- `appearance`: KumoRadioAppearance - Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state Individual items can override
|
|
7245
|
+
- `appearance`: KumoRadioAppearance - Visual appearance applied to all Radio.Item children. - `"default"` — Standard inline radio items - `"card"` — Choice card with border, padding, and highlighted selection state - `"segmented"` — Compact single-line group for short options Individual items can override default and card appearances. Segmented is group-only and cannot be overridden by individual items.
|
|
6168
7246
|
- `error`: string - Error message for the group
|
|
6169
7247
|
- `description`: ReactNode - Helper text for the group
|
|
6170
7248
|
- `value`: T - The controlled value of the selected radio item.
|
|
@@ -6211,6 +7289,89 @@ Props:
|
|
|
6211
7289
|
</Radio.Group>
|
|
6212
7290
|
```
|
|
6213
7291
|
|
|
7292
|
+
```tsx
|
|
7293
|
+
<Radio.Group
|
|
7294
|
+
appearance="segmented"
|
|
7295
|
+
legend="Duration preset"
|
|
7296
|
+
value={duration}
|
|
7297
|
+
onValueChange={setDuration}
|
|
7298
|
+
>
|
|
7299
|
+
<Radio.Item label="1h" value="1" />
|
|
7300
|
+
<Radio.Item label="12h" value="12" />
|
|
7301
|
+
<Radio.Item label="24h" value="24" />
|
|
7302
|
+
</Radio.Group>
|
|
7303
|
+
```
|
|
7304
|
+
|
|
7305
|
+
```tsx
|
|
7306
|
+
<div className="flex flex-wrap gap-8">
|
|
7307
|
+
<Radio.Group
|
|
7308
|
+
legend="Default appearance"
|
|
7309
|
+
orientation="horizontal"
|
|
7310
|
+
defaultValue="1"
|
|
7311
|
+
>
|
|
7312
|
+
<Radio.Item label="1h" value="1" />
|
|
7313
|
+
<Radio.Item label="12h" value="12" />
|
|
7314
|
+
<Radio.Item label="24h" value="24" />
|
|
7315
|
+
</Radio.Group>
|
|
7316
|
+
<Radio.Group
|
|
7317
|
+
appearance="segmented"
|
|
7318
|
+
legend="Segmented appearance"
|
|
7319
|
+
defaultValue="1"
|
|
7320
|
+
>
|
|
7321
|
+
<Radio.Item label="1h" value="1" />
|
|
7322
|
+
<Radio.Item label="12h" value="12" />
|
|
7323
|
+
<Radio.Item label="24h" value="24" />
|
|
7324
|
+
</Radio.Group>
|
|
7325
|
+
</div>
|
|
7326
|
+
```
|
|
7327
|
+
|
|
7328
|
+
```tsx
|
|
7329
|
+
<div className="flex flex-wrap gap-8">
|
|
7330
|
+
<Radio.Group
|
|
7331
|
+
appearance="segmented"
|
|
7332
|
+
legend="Disabled group"
|
|
7333
|
+
defaultValue="12"
|
|
7334
|
+
disabled
|
|
7335
|
+
>
|
|
7336
|
+
<Radio.Item label="1h" value="1" />
|
|
7337
|
+
<Radio.Item label="12h" value="12" />
|
|
7338
|
+
<Radio.Item label="24h" value="24" />
|
|
7339
|
+
</Radio.Group>
|
|
7340
|
+
<Radio.Group
|
|
7341
|
+
appearance="segmented"
|
|
7342
|
+
legend="Disabled item"
|
|
7343
|
+
defaultValue="1"
|
|
7344
|
+
>
|
|
7345
|
+
<Radio.Item label="1h" value="1" />
|
|
7346
|
+
<Radio.Item label="12h" value="12" disabled />
|
|
7347
|
+
<Radio.Item label="24h" value="24" />
|
|
7348
|
+
</Radio.Group>
|
|
7349
|
+
</div>
|
|
7350
|
+
```
|
|
7351
|
+
|
|
7352
|
+
```tsx
|
|
7353
|
+
<Radio.Group appearance="segmented" defaultValue="automatic">
|
|
7354
|
+
<Radio.Legend className="text-sm font-normal text-kumo-subtle">
|
|
7355
|
+
Configuration mode
|
|
7356
|
+
</Radio.Legend>
|
|
7357
|
+
<Radio.Item label="Automatic" value="automatic" />
|
|
7358
|
+
<Radio.Item label="Manual" value="manual" />
|
|
7359
|
+
</Radio.Group>
|
|
7360
|
+
```
|
|
7361
|
+
|
|
7362
|
+
```tsx
|
|
7363
|
+
<div className="w-48 max-w-full">
|
|
7364
|
+
<Radio.Group
|
|
7365
|
+
appearance="segmented"
|
|
7366
|
+
legend="Processing preference"
|
|
7367
|
+
defaultValue="automatic"
|
|
7368
|
+
>
|
|
7369
|
+
<Radio.Item label="Automatic processing" value="automatic" />
|
|
7370
|
+
<Radio.Item label="Manual configuration" value="manual" />
|
|
7371
|
+
</Radio.Group>
|
|
7372
|
+
</div>
|
|
7373
|
+
```
|
|
7374
|
+
|
|
6214
7375
|
```tsx
|
|
6215
7376
|
<Radio.Group
|
|
6216
7377
|
legend="Shipping method"
|
|
@@ -7649,9 +8810,9 @@ Props:
|
|
|
7649
8810
|
</Sidebar.Menu>
|
|
7650
8811
|
</Sidebar.Group>
|
|
7651
8812
|
</Sidebar.Content>
|
|
7652
|
-
<
|
|
8813
|
+
<DemoSidebarFooter>
|
|
7653
8814
|
<Sidebar.Trigger />
|
|
7654
|
-
</
|
|
8815
|
+
</DemoSidebarFooter>
|
|
7655
8816
|
</Sidebar>
|
|
7656
8817
|
<DemoMain>
|
|
7657
8818
|
<ToggleButton />
|
|
@@ -7690,9 +8851,9 @@ Props:
|
|
|
7690
8851
|
</Sidebar.Group>
|
|
7691
8852
|
</Sidebar.Content>
|
|
7692
8853
|
)}
|
|
7693
|
-
<
|
|
8854
|
+
<DemoSidebarFooter>
|
|
7694
8855
|
<Sidebar.Trigger />
|
|
7695
|
-
</
|
|
8856
|
+
</DemoSidebarFooter>
|
|
7696
8857
|
</Sidebar>
|
|
7697
8858
|
<DemoMain>
|
|
7698
8859
|
<button
|
|
@@ -7738,9 +8899,9 @@ Props:
|
|
|
7738
8899
|
</Sidebar.Menu>
|
|
7739
8900
|
</Sidebar.Group>
|
|
7740
8901
|
</Sidebar.Content>
|
|
7741
|
-
<
|
|
8902
|
+
<DemoSidebarFooter>
|
|
7742
8903
|
<Sidebar.Trigger />
|
|
7743
|
-
</
|
|
8904
|
+
</DemoSidebarFooter>
|
|
7744
8905
|
<Sidebar.ResizeHandle />
|
|
7745
8906
|
</Sidebar>
|
|
7746
8907
|
<DemoMain>
|
|
@@ -7854,9 +9015,9 @@ Props:
|
|
|
7854
9015
|
</Sidebar.Menu>
|
|
7855
9016
|
</Sidebar.Group>
|
|
7856
9017
|
</Sidebar.Content>
|
|
7857
|
-
<
|
|
9018
|
+
<DemoSidebarFooter>
|
|
7858
9019
|
<Sidebar.Trigger />
|
|
7859
|
-
</
|
|
9020
|
+
</DemoSidebarFooter>
|
|
7860
9021
|
</Sidebar>
|
|
7861
9022
|
<DemoMain>
|
|
7862
9023
|
<p>Open Workers near the bottom of the list</p>
|
|
@@ -7865,6 +9026,65 @@ Props:
|
|
|
7865
9026
|
</div>
|
|
7866
9027
|
```
|
|
7867
9028
|
|
|
9029
|
+
```tsx
|
|
9030
|
+
<DemoContainer>
|
|
9031
|
+
<Sidebar.Provider
|
|
9032
|
+
contained
|
|
9033
|
+
defaultOpen
|
|
9034
|
+
className="h-full min-h-0!"
|
|
9035
|
+
onOpenChangeComplete={(open) => {
|
|
9036
|
+
setCompletion(`Sidebar ${open ? "opened" : "collapsed"}.`);
|
|
9037
|
+
}}
|
|
9038
|
+
>
|
|
9039
|
+
<Sidebar>
|
|
9040
|
+
<Sidebar.Content>
|
|
9041
|
+
<Sidebar.Group>
|
|
9042
|
+
<Sidebar.GroupLabel>Overview</Sidebar.GroupLabel>
|
|
9043
|
+
<Sidebar.Menu>
|
|
9044
|
+
<Sidebar.MenuButton icon={HouseIcon} active>
|
|
9045
|
+
Home
|
|
9046
|
+
</Sidebar.MenuButton>
|
|
9047
|
+
<Sidebar.MenuItem>
|
|
9048
|
+
<Sidebar.Collapsible
|
|
9049
|
+
onOpenChangeComplete={(open) => {
|
|
9050
|
+
setCompletion(
|
|
9051
|
+
`Compute section ${open ? "opened" : "collapsed"}.`,
|
|
9052
|
+
);
|
|
9053
|
+
}}
|
|
9054
|
+
>
|
|
9055
|
+
<Sidebar.CollapsibleTrigger
|
|
9056
|
+
render={
|
|
9057
|
+
<Sidebar.MenuButton icon={CodeIcon}>
|
|
9058
|
+
Compute
|
|
9059
|
+
<Sidebar.MenuChevron />
|
|
9060
|
+
</Sidebar.MenuButton>
|
|
9061
|
+
}
|
|
9062
|
+
/>
|
|
9063
|
+
<Sidebar.CollapsibleContent>
|
|
9064
|
+
<Sidebar.MenuSub>
|
|
9065
|
+
<Sidebar.MenuSubButton>Workers</Sidebar.MenuSubButton>
|
|
9066
|
+
<Sidebar.MenuSubButton>Pages</Sidebar.MenuSubButton>
|
|
9067
|
+
</Sidebar.MenuSub>
|
|
9068
|
+
</Sidebar.CollapsibleContent>
|
|
9069
|
+
</Sidebar.Collapsible>
|
|
9070
|
+
</Sidebar.MenuItem>
|
|
9071
|
+
</Sidebar.Menu>
|
|
9072
|
+
</Sidebar.Group>
|
|
9073
|
+
</Sidebar.Content>
|
|
9074
|
+
<DemoSidebarFooter>
|
|
9075
|
+
<Sidebar.Trigger />
|
|
9076
|
+
</DemoSidebarFooter>
|
|
9077
|
+
</Sidebar>
|
|
9078
|
+
<DemoMain>
|
|
9079
|
+
<p aria-live="polite">{completion}</p>
|
|
9080
|
+
<p>
|
|
9081
|
+
Toggle the sidebar or open Compute to see the completion callback.
|
|
9082
|
+
</p>
|
|
9083
|
+
</DemoMain>
|
|
9084
|
+
</Sidebar.Provider>
|
|
9085
|
+
</DemoContainer>
|
|
9086
|
+
```
|
|
9087
|
+
|
|
7868
9088
|
```tsx
|
|
7869
9089
|
<DemoContainer>
|
|
7870
9090
|
<Sidebar.Provider contained defaultOpen className="h-full min-h-0!">
|
|
@@ -8099,9 +9319,9 @@ Props:
|
|
|
8099
9319
|
</Sidebar.SlidingView>
|
|
8100
9320
|
</Sidebar.SlidingViews>
|
|
8101
9321
|
|
|
8102
|
-
<
|
|
9322
|
+
<DemoSidebarFooter>
|
|
8103
9323
|
<Sidebar.Trigger />
|
|
8104
|
-
</
|
|
9324
|
+
</DemoSidebarFooter>
|
|
8105
9325
|
</Sidebar>
|
|
8106
9326
|
<DemoMain />
|
|
8107
9327
|
</Sidebar.Provider>
|
|
@@ -8131,9 +9351,9 @@ Props:
|
|
|
8131
9351
|
</Sidebar.Menu>
|
|
8132
9352
|
</Sidebar.Group>
|
|
8133
9353
|
</Sidebar.Content>
|
|
8134
|
-
<
|
|
9354
|
+
<DemoSidebarFooter>
|
|
8135
9355
|
<Sidebar.Trigger />
|
|
8136
|
-
</
|
|
9356
|
+
</DemoSidebarFooter>
|
|
8137
9357
|
</Sidebar>
|
|
8138
9358
|
<DemoMain>
|
|
8139
9359
|
<ScrollToItemControls />
|
|
@@ -8175,9 +9395,9 @@ Props:
|
|
|
8175
9395
|
</Sidebar.Menu>
|
|
8176
9396
|
</Sidebar.Group>
|
|
8177
9397
|
</Sidebar.Content>
|
|
8178
|
-
<
|
|
9398
|
+
<DemoSidebarFooter>
|
|
8179
9399
|
<Sidebar.Trigger />
|
|
8180
|
-
</
|
|
9400
|
+
</DemoSidebarFooter>
|
|
8181
9401
|
</Sidebar>
|
|
8182
9402
|
<DemoMain>
|
|
8183
9403
|
<MobileToggleButton />
|
|
@@ -8266,6 +9486,100 @@ Props:
|
|
|
8266
9486
|
```
|
|
8267
9487
|
|
|
8268
9488
|
|
|
9489
|
+
---
|
|
9490
|
+
|
|
9491
|
+
### Slider
|
|
9492
|
+
|
|
9493
|
+
Slider component
|
|
9494
|
+
|
|
9495
|
+
**Type:** component
|
|
9496
|
+
|
|
9497
|
+
**Import:** `import { Slider } from "@cloudflare/kumo";`
|
|
9498
|
+
|
|
9499
|
+
**Category:** Input
|
|
9500
|
+
|
|
9501
|
+
**Props:**
|
|
9502
|
+
|
|
9503
|
+
- `size`: enum [default: base]
|
|
9504
|
+
- `"sm"`: Compact slider for dense layouts
|
|
9505
|
+
- `"base"`: Default slider size
|
|
9506
|
+
- `label`: ReactNode
|
|
9507
|
+
Label displayed above the slider track.
|
|
9508
|
+
- `getAriaLabel`: (index: number) => string
|
|
9509
|
+
Accessible name for each thumb. Use it when there is no visible `label`, or to tell the thumbs of a range slider apart.
|
|
9510
|
+
- `value`: number | readonly number[]
|
|
9511
|
+
Controlled value. Pass an array to render one thumb per value (a range).
|
|
9512
|
+
- `defaultValue`: number | readonly number[]
|
|
9513
|
+
Uncontrolled initial value. Pass an array to render one thumb per value (a range).
|
|
9514
|
+
- `onValueChange`: (value: number | readonly number[], eventDetails: SliderRoot.ChangeEventDetails) => void
|
|
9515
|
+
Called when the value changes while dragging or from the keyboard
|
|
9516
|
+
- `min`: number
|
|
9517
|
+
Minimum value of the slider (default: 0)
|
|
9518
|
+
- `max`: number
|
|
9519
|
+
Maximum value of the slider (default: 100)
|
|
9520
|
+
- `step`: number
|
|
9521
|
+
Amount the value changes per step (default: 1)
|
|
9522
|
+
- `format`: Intl.NumberFormatOptions
|
|
9523
|
+
Formats the value badges, range labels, and the value announced to assistive technology
|
|
9524
|
+
- `disabled`: boolean
|
|
9525
|
+
Whether the slider is disabled
|
|
9526
|
+
|
|
9527
|
+
**Colors (kumo tokens used):**
|
|
9528
|
+
|
|
9529
|
+
`bg-kumo-contrast`, `bg-kumo-fill`, `bg-kumo-overlay`, `bg-kumo-recessed`, `ring-kumo-focus`, `ring-kumo-line`, `text-kumo-default`, `text-kumo-inverse`, `text-kumo-subtle`
|
|
9530
|
+
|
|
9531
|
+
**Examples:**
|
|
9532
|
+
|
|
9533
|
+
```tsx
|
|
9534
|
+
<Slider label="Volume" defaultValue={40} className="w-72" />
|
|
9535
|
+
```
|
|
9536
|
+
|
|
9537
|
+
```tsx
|
|
9538
|
+
<Slider
|
|
9539
|
+
label="Price range"
|
|
9540
|
+
defaultValue={[25, 75]}
|
|
9541
|
+
getAriaLabel={(index) =>
|
|
9542
|
+
index === 0 ? "Minimum price" : "Maximum price"
|
|
9543
|
+
}
|
|
9544
|
+
className="w-72"
|
|
9545
|
+
/>
|
|
9546
|
+
```
|
|
9547
|
+
|
|
9548
|
+
```tsx
|
|
9549
|
+
<Slider label="Match count" defaultValue={2} max={5} className="w-72" />
|
|
9550
|
+
```
|
|
9551
|
+
|
|
9552
|
+
```tsx
|
|
9553
|
+
<Slider
|
|
9554
|
+
label="Sampling rate"
|
|
9555
|
+
defaultValue={0.25}
|
|
9556
|
+
min={0}
|
|
9557
|
+
max={1}
|
|
9558
|
+
step={0.05}
|
|
9559
|
+
format={{ style: "percent" }}
|
|
9560
|
+
className="w-72"
|
|
9561
|
+
/>
|
|
9562
|
+
```
|
|
9563
|
+
|
|
9564
|
+
```tsx
|
|
9565
|
+
<div className="flex w-72 flex-col gap-6">
|
|
9566
|
+
<Slider label="Small" size="sm" defaultValue={30} />
|
|
9567
|
+
<Slider label="Base" defaultValue={30} />
|
|
9568
|
+
</div>
|
|
9569
|
+
```
|
|
9570
|
+
|
|
9571
|
+
```tsx
|
|
9572
|
+
<div className="flex w-72 flex-col gap-3">
|
|
9573
|
+
<Slider
|
|
9574
|
+
label="Brightness"
|
|
9575
|
+
value={value}
|
|
9576
|
+
onValueChange={(next) => setValue(next)}
|
|
9577
|
+
/>
|
|
9578
|
+
<p className="text-sm text-kumo-subtle">Brightness: {value}%</p>
|
|
9579
|
+
</div>
|
|
9580
|
+
```
|
|
9581
|
+
|
|
9582
|
+
|
|
8269
9583
|
---
|
|
8270
9584
|
|
|
8271
9585
|
### Surface
|
|
@@ -9349,6 +10663,106 @@ Tab navigation component with segmented or underline style. Built on Base UI Tab
|
|
|
9349
10663
|
```
|
|
9350
10664
|
|
|
9351
10665
|
|
|
10666
|
+
---
|
|
10667
|
+
|
|
10668
|
+
### TagInput
|
|
10669
|
+
|
|
10670
|
+
TagInput component
|
|
10671
|
+
|
|
10672
|
+
**Type:** component
|
|
10673
|
+
|
|
10674
|
+
**Import:** `import { TagInput } from "@cloudflare/kumo";`
|
|
10675
|
+
|
|
10676
|
+
**Category:** Other
|
|
10677
|
+
|
|
10678
|
+
**Props:**
|
|
10679
|
+
|
|
10680
|
+
- `alt`: string
|
|
10681
|
+
- `autoComplete`: React.HTMLInputAutoCompleteAttribute
|
|
10682
|
+
- `checked`: boolean
|
|
10683
|
+
- `height`: number | string
|
|
10684
|
+
- `list`: string
|
|
10685
|
+
- `name`: string
|
|
10686
|
+
- `placeholder`: string
|
|
10687
|
+
- `readOnly`: boolean
|
|
10688
|
+
- `required`: boolean
|
|
10689
|
+
- `type`: React.HTMLInputTypeAttribute
|
|
10690
|
+
- `width`: number | string
|
|
10691
|
+
- `className`: string
|
|
10692
|
+
- `id`: string
|
|
10693
|
+
- `lang`: string
|
|
10694
|
+
- `title`: string
|
|
10695
|
+
- `children`: ReactNode
|
|
10696
|
+
- `value`: string[]
|
|
10697
|
+
- `validateValue`: object
|
|
10698
|
+
- `maxValues`: number
|
|
10699
|
+
- `labels`: TagInputLabels
|
|
10700
|
+
Translated labels for generated input, action, and validation text.
|
|
10701
|
+
- `label`: ReactNode
|
|
10702
|
+
- `labelTooltip`: ReactNode
|
|
10703
|
+
- `description`: ReactNode
|
|
10704
|
+
- `error`: string | object
|
|
10705
|
+
- `variant`: enum [default: default]
|
|
10706
|
+
- `"default"`: Default tag input appearance.
|
|
10707
|
+
- `"error"`: Error state for validation failures.
|
|
10708
|
+
- `disabled`: boolean
|
|
10709
|
+
|
|
10710
|
+
**Colors (kumo tokens used):**
|
|
10711
|
+
|
|
10712
|
+
`bg-kumo-overlay`, `ring-kumo-hairline`, `text-kumo-default`
|
|
10713
|
+
|
|
10714
|
+
**Styling:**
|
|
10715
|
+
|
|
10716
|
+
|
|
10717
|
+
**Examples:**
|
|
10718
|
+
|
|
10719
|
+
```tsx
|
|
10720
|
+
<TagInput
|
|
10721
|
+
label="Recipients"
|
|
10722
|
+
description="Paste comma- or newline-separated email addresses."
|
|
10723
|
+
placeholder="name@example.com"
|
|
10724
|
+
autoComplete="off"
|
|
10725
|
+
value={recipients}
|
|
10726
|
+
onValueChange={setRecipients}
|
|
10727
|
+
validateValue={(value) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)}
|
|
10728
|
+
/>
|
|
10729
|
+
```
|
|
10730
|
+
|
|
10731
|
+
```tsx
|
|
10732
|
+
<TagInput
|
|
10733
|
+
defaultValue={["frontend", "priority"]}
|
|
10734
|
+
label="Labels"
|
|
10735
|
+
description="Accepts any non-empty value."
|
|
10736
|
+
placeholder="Add a label"
|
|
10737
|
+
/>
|
|
10738
|
+
```
|
|
10739
|
+
|
|
10740
|
+
```tsx
|
|
10741
|
+
<TagInput
|
|
10742
|
+
defaultValue={["alpha"]}
|
|
10743
|
+
label="Access groups"
|
|
10744
|
+
maxValues={3}
|
|
10745
|
+
description="A maximum of three groups."
|
|
10746
|
+
placeholder="Type a group name"
|
|
10747
|
+
/>
|
|
10748
|
+
```
|
|
10749
|
+
|
|
10750
|
+
```tsx
|
|
10751
|
+
<TagInput
|
|
10752
|
+
defaultValue={["uno"]}
|
|
10753
|
+
label="Etiquetas"
|
|
10754
|
+
labels={{
|
|
10755
|
+
input: "Agregar etiqueta",
|
|
10756
|
+
removeValue: (value) => `Eliminar ${value}`,
|
|
10757
|
+
invalidValue: (value) => `${value} no es valido.`,
|
|
10758
|
+
maxValuesReached: (maxValues) => `Maximo de ${maxValues} etiquetas.`,
|
|
10759
|
+
}}
|
|
10760
|
+
maxValues={3}
|
|
10761
|
+
placeholder="Agregar una etiqueta"
|
|
10762
|
+
/>
|
|
10763
|
+
```
|
|
10764
|
+
|
|
10765
|
+
|
|
9352
10766
|
---
|
|
9353
10767
|
|
|
9354
10768
|
### Text
|
|
@@ -9509,8 +10923,14 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
9509
10923
|
Label for the y-axis (value axis)
|
|
9510
10924
|
- `yAxisTickCount`: number
|
|
9511
10925
|
Number of ticks to display on the y-axis
|
|
10926
|
+
- `yAxisMinInterval`: number
|
|
10927
|
+
Minimum interval between y-axis ticks. Set to `1` for discrete count data so ECharts does not render fractional tick marks.
|
|
9512
10928
|
- `tooltipValueFormat`: (value: number) => string
|
|
9513
10929
|
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.
|
|
10930
|
+
- `tooltipTimestampFormat`: (timestamp: number) => string
|
|
10931
|
+
Custom formatter for tooltip timestamps. Receives the raw timestamp in milliseconds and returns a display string. Applies to standard series and marker tooltips. When omitted, timestamps are formatted using the browser's locale and time zone.
|
|
10932
|
+
- `tooltipFooter`: string
|
|
10933
|
+
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
10934
|
- `tooltipMode`: "all" | "single"
|
|
9515
10935
|
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
10936
|
- `tooltipMaxItems`: number
|
|
@@ -9561,6 +10981,17 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
9561
10981
|
/>
|
|
9562
10982
|
```
|
|
9563
10983
|
|
|
10984
|
+
```tsx
|
|
10985
|
+
<TimeseriesChart
|
|
10986
|
+
echarts={echarts}
|
|
10987
|
+
isDarkMode={isDarkMode}
|
|
10988
|
+
data={data}
|
|
10989
|
+
xAxisName="Time (UTC)"
|
|
10990
|
+
yAxisName="Requests"
|
|
10991
|
+
yAxisMinInterval={1}
|
|
10992
|
+
/>
|
|
10993
|
+
```
|
|
10994
|
+
|
|
9564
10995
|
```tsx
|
|
9565
10996
|
<TimeseriesChart
|
|
9566
10997
|
echarts={echarts}
|
|
@@ -9596,15 +11027,25 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
9596
11027
|
data={data}
|
|
9597
11028
|
xAxisName="Time (UTC)"
|
|
9598
11029
|
yAxisName="Requests"
|
|
9599
|
-
xAxisTickFormat={(
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
11030
|
+
xAxisTickFormat={(timestamp) =>
|
|
11031
|
+
new Intl.DateTimeFormat(undefined, {
|
|
11032
|
+
timeZone: "UTC",
|
|
11033
|
+
hour: "2-digit",
|
|
11034
|
+
minute: "2-digit",
|
|
11035
|
+
}).format(timestamp)
|
|
11036
|
+
}
|
|
9603
11037
|
yAxisTickFormat={(value) => {
|
|
9604
11038
|
if (value >= 1000) return `${value / 1000}k`;
|
|
9605
11039
|
return value.toString();
|
|
9606
11040
|
}}
|
|
9607
11041
|
tooltipValueFormat={(value) => `${(value / 1000).toFixed(1)}k requests`}
|
|
11042
|
+
tooltipTimestampFormat={(timestamp) =>
|
|
11043
|
+
new Intl.DateTimeFormat(undefined, {
|
|
11044
|
+
timeZone: "UTC",
|
|
11045
|
+
dateStyle: "medium",
|
|
11046
|
+
timeStyle: "medium",
|
|
11047
|
+
}).format(timestamp)
|
|
11048
|
+
}
|
|
9608
11049
|
/>
|
|
9609
11050
|
```
|
|
9610
11051
|
|
|
@@ -9807,6 +11248,7 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
9807
11248
|
isDarkMode={isDarkMode}
|
|
9808
11249
|
data={data}
|
|
9809
11250
|
height={300}
|
|
11251
|
+
tooltipFooter="Percentiles use a five-minute rolling window."
|
|
9810
11252
|
/>
|
|
9811
11253
|
</LayerCard.Primary>
|
|
9812
11254
|
</LayerCard>
|
|
@@ -9970,7 +11412,7 @@ Toasty — toast notification provider and viewport.
|
|
|
9970
11412
|
|
|
9971
11413
|
```tsx
|
|
9972
11414
|
<Toasty>
|
|
9973
|
-
<
|
|
11415
|
+
<ToastFunctionalUpdateButton />
|
|
9974
11416
|
</Toasty>
|
|
9975
11417
|
```
|
|
9976
11418
|
|
|
@@ -10347,12 +11789,12 @@ Multi-line textarea input with Input variants and InputArea-specific dimensions
|
|
|
10347
11789
|
## Quick Reference
|
|
10348
11790
|
|
|
10349
11791
|
**Components by Category:**
|
|
10350
|
-
- **Other:** Autocomplete, CloudflareLogo, DatePicker, Label, Link, SensitiveInput, Sidebar, Table, TableOfContents, Toolbar, DeleteResource
|
|
11792
|
+
- **Other:** Autocomplete, CloudflareLogo, DatePicker, Label, Link, SensitiveInput, Sidebar, Table, TableOfContents, TagInput, Toolbar, DeleteResource
|
|
10351
11793
|
- **Display:** Badge, Breadcrumbs, Code, Collapsible, Empty, LayerCard, Meter, Text
|
|
10352
11794
|
- **Feedback:** Banner, Loader, Toasty
|
|
10353
|
-
- **Data Visualization:** BubbleMap, Chart, ChoroplethMap, SankeyChart, TimeseriesChart
|
|
10354
|
-
- **Action:** Button, ClipboardText
|
|
10355
|
-
- **Input:** Checkbox, Combobox, DateRangePicker, Field, Input, InputGroup, Radio, Select, Switch
|
|
11795
|
+
- **Data Visualization:** BubbleMap, Chart, ChoroplethMap, GlobeMap, SankeyChart, TimeseriesChart
|
|
11796
|
+
- **Action:** Button, ButtonGroup, ClipboardText, InlineCopyText
|
|
11797
|
+
- **Input:** Checkbox, Combobox, DateRangePicker, Field, Input, InputGroup, Radio, Select, Slider, Switch
|
|
10356
11798
|
- **Navigation:** CommandPalette, MenuBar, Pagination, Tabs
|
|
10357
|
-
- **Overlay:** Dialog, DropdownMenu, Popover, Tooltip
|
|
11799
|
+
- **Overlay:** Dialog, DropdownMenu, LayerDialog, Popover, Tooltip
|
|
10358
11800
|
- **Layout:** Grid, Surface, PageHeader, ResourceListPage
|