@cloudflare/kumo 2.14.0 → 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 +51 -0
- package/ai/component-registry.json +231 -43
- package/ai/component-registry.md +774 -166
- package/ai/schemas.ts +22 -3
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +51 -2
- package/dist/ai/schemas.js +32 -1
- 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/chunks/{index.parts-h7wtkrxpz4m8eqn9.js → AccordionPanelDataAttributes-mmrmkky28u1010l5.js} +150 -61
- package/dist/chunks/{AlertDialogTrigger-dkihgpvj12si73w3.js → AlertDialogTrigger-l1r1gbxcky1xq889.js} +4 -4
- package/dist/chunks/{index.parts-kgiqby97w6tn6jw7.js → AlertDialogTriggerDataAttributes-go49qon601catpgn.js} +24 -9
- package/dist/chunks/{AutocompleteItem-drxau0wm3735nihq.js → AutocompleteItem-36ysm5nwbsd0snr6.js} +5 -5
- package/dist/chunks/AutocompleteItemDataAttributes-n5rigpf0s9ylnwi3.js +232 -0
- package/dist/chunks/{AutocompleteSeparator-hqtaxxxye1rfezfg.js → AutocompleteSeparator-bnqeqh7i983d92gx.js} +2 -2
- package/dist/chunks/{index.parts-b9zmk3ta77w8dy9f.js → AvatarImageDataAttributes-jw70u384c83lhqfp.js} +39 -15
- package/dist/chunks/{Button-ccl5r1xlbe3gh998.js → ButtonDataAttributes-nceand1fi7lvnmkb.js} +12 -4
- package/dist/chunks/{CSPContext-ctyrgg64girv38ls.js → CSPContext-iv67i0qqhihg8mur.js} +1 -1
- package/dist/chunks/{CSPProvider-p9ensukmowjpkgc0.js → CSPProvider-finau3a8hnc9o2td.js} +2 -2
- package/dist/chunks/{CheckboxGroup-knvypu2d1s0iz86k.js → CheckboxGroup-581mfftu99wvjb3a.js} +18 -23
- package/dist/chunks/{CheckboxGroupContext-lgc9dwxou662i6zo.js → CheckboxGroupContext-jf1bt3znvqlhrql6.js} +1 -1
- package/dist/chunks/CheckboxGroupDataAttributes-nskqcxts64symbvf.js +10 -0
- package/dist/chunks/{CheckboxIndicator-n982pbktfkxsa5zz.js → CheckboxIndicator-i13dmhacfgqo328c.js} +86 -29
- package/dist/chunks/CheckboxIndicatorDataAttributes-3p29ju7nkczz1l2y.js +85 -0
- package/dist/chunks/{CollapsiblePanel-jm0ni90g7wz7ppkc.js → CollapsiblePanel-md5suzmtnsyz1kab.js} +17 -13
- package/dist/chunks/CollapsibleRootDataAttributes-bynmgxmt4jikaoha.js +36 -0
- package/dist/chunks/{ComboboxClear-c2kvjkh9yc6xfl38.js → ComboboxClear-ioejwvtnmqanph88.js} +31 -24
- package/dist/chunks/ComboboxClearDataAttributes-lo0enstdmrqpywsy.js +402 -0
- package/dist/chunks/{ComboboxEmpty-o0q20j2l2syar9kx.js → ComboboxEmpty-gkt1y5b81a4983v7.js} +207 -215
- package/dist/chunks/ComboboxItemIndicatorDataAttributes-iku7l9ig0ve09an4.js +259 -0
- package/dist/chunks/{ComboboxPopup-oxgggc2wxy6bfmru.js → ComboboxPopup-n8cbgys9st446j1i.js} +15 -15
- package/dist/chunks/{CompositeItem-hzuk5x3e5zsfgnyj.js → CompositeItem-kepwg8jtvgap06o6.js} +3 -3
- package/dist/chunks/{CompositeList-lbr4enu6yzek7oa9.js → CompositeList-gwuaf6d14s4da0j0.js} +9 -7
- package/dist/chunks/{CompositeListContext-m9frxn53kkmr23d0.js → CompositeListContext-bejvmlu39hsfjzgu.js} +1 -1
- package/dist/chunks/{CompositeRoot-g72lchaerolf5dc9.js → CompositeRoot-dnlkb27uw4g5aocf.js} +12 -12
- package/dist/chunks/{CompositeRootContext-ixz4myr7uwvavx6w.js → CompositeRootContext-obm54j7y6s86qwhq.js} +1 -1
- package/dist/chunks/{index.parts-d4wim8mcnl9a2n9d.js → ContextMenuTriggerDataAttributes-xwozccynxv6pk5s0.js} +29 -15
- package/dist/chunks/DialogBackdropDataAttributes-jwqxd6jla03xh8ke.js +28 -0
- package/dist/chunks/{DialogHandle-klk7uo1q1y8ghyx5.js → DialogCloseDataAttributes-12m7gwh3i6fd7d05.js} +14 -6
- package/dist/chunks/{DialogPopup-olsvyf7ulia6ekb1.js → DialogPopup-n6w7b389e7bs0472.js} +13 -11
- package/dist/chunks/{DialogRoot-hl3genvzl9h8ridm.js → DialogRoot-hkkqj7vcjpkx8qk8.js} +3 -3
- package/dist/chunks/{DialogTrigger-g44cuem7n4wez533.js → DialogTrigger-kpugfkbfswqrus4u.js} +16 -16
- package/dist/chunks/DialogTriggerDataAttributes-bp9bu13cvwuddh5b.js +18 -0
- package/dist/chunks/DialogViewportDataAttributes-mma9emv1edsc1vuy.js +78 -0
- package/dist/chunks/{DirectionContext-opvqcb794uxicri4.js → DirectionContext-kpby968j030psajn.js} +1 -1
- package/dist/chunks/{DirectionProvider-er2gibtc9a1f0kep.js → DirectionProvider-cg0pwzgdyg6r73r6.js} +2 -2
- package/dist/chunks/{DrawerViewport-eqzib92gukr4qap3.js → DrawerViewport-mzqpwvqtylnad8ib.js} +110 -61
- package/dist/chunks/{index.parts-jknln7yxhdokkvd6.js → DrawerViewportDataAttributes-dd9593zm9fl9vcsm.js} +166 -85
- package/dist/chunks/{FieldControl-c5sahhd5xg3nr2x7.js → FieldControl-hjj2tcqruozadgdi.js} +18 -27
- package/dist/chunks/{FieldDescription-ldfiii5bvssfib3d.js → FieldDescription-orix2gepowrp5ni4.js} +11 -11
- package/dist/chunks/{FieldItemContext-kpsmvqm5a98m8zpx.js → FieldItemContext-ohsf45im6xhpay40.js} +1 -1
- package/dist/chunks/FieldItemDataAttributes-m52srx69pispz49i.js +283 -0
- package/dist/chunks/{FieldLabel-j9teqs9f1exqv346.js → FieldLabel-fjc7tdis7rcbq8o4.js} +17 -15
- package/dist/chunks/{FieldsetLegend-jyy40ylt2ynkvgob.js → FieldsetLegend-gl9z9eezr0xg9zr7.js} +5 -5
- package/dist/chunks/FieldsetLegendDataAttributes-fn20251jxjqkpkxm.js +17 -0
- package/dist/chunks/{FieldsetRootContext-7nlstw7wronafxhw.js → FieldsetRootContext-fphwizvcm55ydg94.js} +1 -1
- package/dist/chunks/{FloatingPortalLite-da0wdcmem7ahkle6.js → FloatingPortalLite-j7dsy7gokbxdoe1i.js} +2 -2
- package/dist/chunks/{popupTriggerMap-ehv0fuhnmy59j3pn.js → FloatingRootStore-men6ufp3a2b296fh.js} +117 -119
- package/dist/chunks/{FloatingTree-lhdqtlu8s6m66n7l.js → FloatingTree-kiyzavvaum442o1s.js} +6 -6
- package/dist/chunks/{Form-fjfbann47c7ws316.js → Form-oz425k7r4abea8o4.js} +7 -7
- package/dist/chunks/{FormContext-bsu99v8i8pwu1yxc.js → FormContext-jv19engyccpf6xcl.js} +2 -2
- package/dist/chunks/{Input-irwtufp5t73pwnoj.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-ccxbhu73vrk089m1.js → LabelableContext-dz4wz3lu3lgqusu7.js} +37 -6
- package/dist/chunks/{ListboxSeparator-nfyv54r2v5qtmosj.js → ListboxSeparator-skazx18vzzj7i9zp.js} +2 -2
- package/dist/chunks/MenuClearDataAttributes-fo0pekd36n56mdxu.js +1645 -0
- package/dist/chunks/{MenuSubmenuTrigger-mbbda6ucik6nphbq.js → MenuSubmenuTrigger-hm5xbgik6aq95x35.js} +639 -281
- package/dist/chunks/MenuSubmenuTriggerDataAttributes-gdfxdjymgmnaxdds.js +372 -0
- package/dist/chunks/{MenuTrigger-disngqnt74owi30p.js → MenuTrigger-dlfvicsaggss0o9m.js} +36 -28
- package/dist/chunks/{Menubar-fluuxyn8c2zuz5pr.js → Menubar-ja5int05ihjj0ra4.js} +24 -14
- package/dist/chunks/{MenubarContext-blatefsj42br7jh8.js → MenubarContext-ooz0h08i55c8oip5.js} +1 -1
- package/dist/chunks/{MeterLabel-k6no448jvaidaptf.js → MeterLabel-cykbkvqys5263z05.js} +12 -12
- package/dist/chunks/{index.parts-gf9v1piz8xxt8ap1.js → NavigationMenuIconDataAttributes-l82pkpm61d0meqxf.js} +333 -94
- package/dist/chunks/{NullStore-jwgpmovsgl47g9bv.js → NullStore-my62xo2vfcfkerri.js} +7 -6
- package/dist/chunks/{index.parts-c1ocmbxanagpan6d.js → NumberFieldScrubAreaCursorDataAttributes-k2lsbk35svshnwf5.js} +439 -215
- package/dist/chunks/{index.parts-p2lcxzhh1ll3584m.js → OTPFieldInputDataAttributes-gvgtu2gg85kgjzwr.js} +173 -56
- package/dist/chunks/{PopoverClose-kpyt8hbqc52lnjb8.js → PopoverViewport-peh28i8q4hqfjy97.js} +135 -81
- package/dist/chunks/PopoverViewportDataAttributes-gplhq9d7ffp9q8u3.js +329 -0
- package/dist/chunks/{PrehydrationScript-j6zlrxmojrqni6b9.js → PrehydrationScript-hs2je3mndbxuts7w.js} +29 -14
- package/dist/chunks/{index.parts-cc0yi5vo7s4x3r9p.js → PreviewCardViewportDataAttributes-bgfwmyshey7fx6nr.js} +263 -36
- package/dist/chunks/{index.parts-lpafjiz853r94ydb.js → ProgressLabelDataAttributes-j8mutcz11ei0ohvj.js} +103 -22
- package/dist/chunks/{RadioGroup-pok1e5qbnbujrz1e.js → RadioGroup-kioqngmmuo7a1lfa.js} +37 -42
- package/dist/chunks/{RadioGroupContext-galfnl2el7y2krov.js → RadioGroupContext-dr6uihsj7oky0eol.js} +1 -1
- package/dist/chunks/RadioGroupDataAttributes-dpdr6xe4ve204qwb.js +10 -0
- package/dist/chunks/{RadioIndicator-jd511oajbwmyjxbg.js → RadioIndicator-bhxqih8wzv7hyrec.js} +83 -27
- package/dist/chunks/RadioIndicatorDataAttributes-n5yupp5psifu0d4f.js +80 -0
- package/dist/chunks/{ScrollAreaThumb-eed3hf0pmrblshfw.js → ScrollAreaThumb-hxig41yn4lrurd3o.js} +114 -43
- package/dist/chunks/ScrollAreaThumbDataAttributes-gup5wfxvqye6jj27.js +137 -0
- package/dist/chunks/SelectScrollUpArrowDataAttributes-fce5i1afjkb0necr.js +473 -0
- package/dist/chunks/{SelectSeparator-mrjooj7vmjez6fua.js → SelectSeparator-nnak70azojox8b2b.js} +249 -162
- package/dist/chunks/{Separator-bcm4ezllqxvtpvuj.js → Separator-fhwve0tfny3tht3a.js} +2 -2
- package/dist/chunks/SeparatorDataAttributes-ch6e63bas7zflw00.js +11 -0
- package/dist/chunks/{index.parts-j6kbr29a542ya81m.js → SliderIndicator-h1o3qbrvr8x0t4t2.js} +129 -74
- package/dist/chunks/SliderIndicatorDataAttributes-ff2f1cjealif5nvo.js +240 -0
- package/dist/chunks/{SwitchRoot-gahuqddsq1s55p8m.js → SwitchRoot-m4t2tq5zn5wibyxk.js} +74 -22
- package/dist/chunks/SwitchThumbDataAttributes-f95ld864on9y6ptk.js +90 -0
- package/dist/chunks/{TabsList-ebl0v8gu8wn28zss.js → TabsList-n5n93rxr4sy704u8.js} +48 -30
- package/dist/chunks/TabsListDataAttributes-e03a7kbubuf02z1l.js +183 -0
- package/dist/chunks/ToastArrowDataAttributes-jbnvz3kp6a35slgj.js +136 -0
- package/dist/chunks/{Toggle-mbshs50266z9hgxp.js → ToggleDataAttributes-jl9ojyvwgrvefke6.js} +26 -11
- package/dist/chunks/{ToggleGroupContext-h4v7jaf77rp2xng9.js → ToggleGroupContext-hg8zbkgqpscqhz83.js} +1 -1
- package/dist/chunks/{ToggleGroup-k2caz2ghv6zbzp5l.js → ToggleGroupDataAttributes-n1dwona1alvabstl.js} +30 -9
- package/dist/chunks/{ToolbarGroupContext-e5cg7needj0edodc.js → ToolbarGroupContext-eawva8xkxb4osbxb.js} +1 -1
- package/dist/chunks/{ToolbarInput-i4h95tes75w0p5y2.js → ToolbarInput-kyxl1be0p3cyuayp.js} +10 -10
- package/dist/chunks/ToolbarInputDataAttributes-n4a18a4km735du04.js +150 -0
- package/dist/chunks/{ToolbarRootContext-eqk40r8uh4h6r211.js → ToolbarRootContext-difqbj720teyt8lu.js} +1 -1
- package/dist/chunks/{TooltipPopup-dm4y0hbdeylzp22y.js → TooltipPopup-furysmeyb68uycbz.js} +41 -68
- package/dist/chunks/{TooltipProvider-h40qf9wcn0atj15v.js → TooltipProvider-hyans0ens4axh1y8.js} +5 -5
- package/dist/chunks/TooltipViewportDataAttributes-gkwbezdq40ssuevg.js +312 -0
- package/dist/chunks/{adaptiveOriginMiddleware-b8ztjthe278xq7lm.js → adaptiveOriginMiddleware-m9tqzw58wya9sdds.js} +3 -3
- package/dist/chunks/{addEventListener-l40nxvf06iukgvnj.js → addEventListener-ku3x23446prmd1kz.js} +1 -1
- package/dist/chunks/{areArraysEqual-bcx201k1x9ziizym.js → areArraysEqual-nnpg93s9g7aqcaoh.js} +1 -1
- package/dist/chunks/{autocomplete-m6h1pbygknrz5div.js → autocomplete-kgp17p6oz4pczxt9.js} +9 -9
- package/dist/chunks/{badge-dq8bx752b9dp7dst.js → badge-kyz53p7p0ng393bs.js} +2 -1
- package/dist/chunks/{banner-msnmqm7of2lck01x.js → banner-cpla8vqjxaulggyd.js} +3 -3
- package/dist/chunks/{breadcrumbs-lhi1qrdh74mb4zsx.js → breadcrumbs-oyuqwb09l08uhok2.js} +7 -16
- package/dist/chunks/{button-group-i9dh83xutyuxyry7.js → button-group-biv43ksvaipc3p5n.js} +2 -2
- package/dist/chunks/{button-pa1bq9b85hawg41a.js → button-oxy32x5w9x9az80g.js} +25 -6
- package/dist/chunks/{chart-kd1xd6crso2i956o.js → chart-foxl6xbubuoshfcs.js} +14 -10
- package/dist/chunks/{checkbox-lbo436duy7krxcsk.js → checkbox-o9627970y7c9ciqy.js} +90 -36
- package/dist/chunks/{clamp-jcjhzx71s6wt1rnc.js → clamp-rcpupxvhqrn8uuyf.js} +1 -1
- package/dist/chunks/{clipboard-text-gd6s3n1bqse9zgt8.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-l8g94on4w7qfosmn.js → collapsible-ic6813hc4yv5s5hv.js} +2 -2
- package/dist/chunks/{combobox-hdxtsm2gqcxxgfju.js → combobox-hwrq8etkr7p2id0x.js} +7 -7
- package/dist/chunks/{command-palette-crtm3nd32yjhuax1.js → command-palette-el4x943vpmid0po0.js} +8 -8
- package/dist/chunks/{composite-ab8dmdfoj6tmhcn1.js → composite-c11t1ok72s3cggjc.js} +1 -1
- package/dist/chunks/{constants-flxfd6q03phtu007.js → constants-l10cgj6pyqg27jod.js} +1 -1
- package/dist/chunks/{createBaseUIEventDetails-3ob3qgs95ffm8l0w.js → createBaseUIEventDetails-nvee6bghv2reeqdb.js} +3 -2
- package/dist/chunks/{createItems-b8n8vigg5nak6j9s.js → createItems-n07tfwx89cdoar18.js} +42 -77
- package/dist/chunks/{createToastManager-onmoqrmr8zo02rif.js → createToastManager-cxjmn4jx3ejh85fs.js} +86 -42
- package/dist/chunks/{date-picker-cotkexrpqu5tjikv.js → date-picker-oee5ehsrepnlmltj.js} +4 -2
- package/dist/chunks/{date-range-picker-i6d8y1yemm7x5ins.js → date-range-picker-hpx3cdu9ve01jx6d.js} +1 -1
- package/dist/chunks/{dialog-glpnivujociqs9lh.js → dialog-lgrwmsumwpftp2u8.js} +7 -7
- package/dist/chunks/{dropdown-m53ji1d66mws89wh.js → dropdown-o875yxeqod7qp871.js} +133 -30
- package/dist/chunks/{empty-hkvg3is3uc6dj1at.js → empty-ft85jcbs7fd5t3tn.js} +11 -12
- package/dist/chunks/{engine-g5egnkub1ikv3wvy.js → engine-hzmefiqm63hu0c7i.js} +2 -2
- package/dist/chunks/{error-f4f6l13zx6tynxmy.js → error-lbnic2b20qr3mukp.js} +2 -2
- package/dist/chunks/{field-oqtso1v0oszlxi0e.js → field-jzzlgre0jmrr38o2.js} +4 -4
- package/dist/chunks/{flow-iz8sn24h5q6q4b10.js → flow-imvwzp5p2f8y2dxm.js} +7 -3
- package/dist/chunks/{formatNumber-kcnmauoqxku5a84c.js → formatNumber-b4kjdsebslm2b3t0.js} +2 -2
- package/dist/chunks/{getCssDimensions-olosvhh5husavesv.js → getCssDimensions-gckwdrp86f73cv51.js} +1 -1
- package/dist/chunks/{getElementTransform-cuiqmjglkrz4db6c.js → getElementTransform-cz3jyftv0x5io95f.js} +1 -1
- package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
- package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
- package/dist/chunks/{getPseudoElementBounds-x7b9uqi5hdb1lq2r.js → getPseudoElementBounds-csuw8kwsoeyxd5tv.js} +2 -2
- package/dist/chunks/{grid-fjlo3wlpkwgw56y9.js → grid-nwiczrab3r4w0zr2.js} +1 -1
- package/dist/chunks/{index.parts-ftxrjoy00esi3aau.js → index.parts-db9pzsm9rrs9tp0t.js} +12 -12
- package/dist/chunks/{index.parts-iq66xivmdw2mouvx.js → index.parts-ggacwr0yakuemead.js} +7 -7
- package/dist/chunks/{index.parts-g390bxx23hdko02m.js → index.parts-pcg3pmf3yyro841t.js} +2 -2
- package/dist/chunks/{inertValue-e0o6qvuef83v78fk.js → inertValue-n09gkjvwwa1kddov.js} +2 -2
- package/dist/chunks/{inline-copy-text-gbd7jhwpor27l4rq.js → inline-copy-text-57r67slswfqvgbaf.js} +2 -2
- package/dist/chunks/{input-group-fjr4r5ax0x78ppax.js → input-group-n08mcd8b36wbylro.js} +5 -5
- package/dist/chunks/{input-h5ox92gf13ge04hp.js → input-il37wjigy2xtgdo2.js} +4 -4
- package/dist/chunks/{input-c8lv9ulv0kortliq.js → input-ksy1w6j1m6olz6ck.js} +3 -3
- package/dist/chunks/{isElementDisabled-o0j7po84u0xjuwgg.js → isElementDisabled-dyqutxpzdfppbohx.js} +1 -1
- package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
- package/dist/chunks/{label-gzyfw17u08irhdo8.js → label-hugrtzreeqk5mtqu.js} +10 -6
- package/dist/chunks/{layer-card-idh3863vdgprgqai.js → layer-card-mar4dya5kl1vvie6.js} +3 -3
- package/dist/chunks/{layer-dialog-j5ywmzs46ccg6oqy.js → layer-dialog-dwrrgv1wasrerow4.js} +71 -46
- package/dist/chunks/{link-cqyfjezntvr53rh7.js → link-h84bkh8eem39p529.js} +4 -4
- package/dist/chunks/{loader-j2v6fab8iucuxz1z.js → loader-kv5nk8j8tsuesxqo.js} +2 -6
- package/dist/chunks/{locale-provider-kjlnws7jln3ak0dr.js → locale-provider-e3310bgo4lnffqkd.js} +20 -8
- package/dist/chunks/{menubar-fjhotkmndttb8mua.js → menubar-m5pqhx7lu5z7mkks.js} +2 -2
- package/dist/chunks/{mergeCleanups-ix8l84cgutsbotpd.js → mergeCleanups-nw73c6jfwl5tyhw4.js} +1 -1
- package/dist/chunks/{meter-majprsslwmpbmkzg.js → meter-poh8jpe0qtq6mvee.js} +2 -2
- package/dist/chunks/{pagination-oaenm9t7ou3lmcgw.js → pagination-h24on80p2z5ugqdb.js} +3 -3
- package/dist/chunks/{popover-hr0bfgg48xzjggky.js → popover-nqrt3ykqv6sic8pz.js} +70 -16
- package/dist/chunks/{popupHandle-7ghmro8a5uerjwu5.js → popupHandle-dk3ixgc8flr7v971.js} +4 -4
- package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
- package/dist/chunks/radio-d3pkrvsldfbdefav.js +203 -0
- package/dist/chunks/{reason-parts-m5ishukzeux3q0pc.js → reason-parts-hssx64rmlxyn6gw5.js} +3 -2
- package/dist/chunks/{resolveAriaLabelledBy-nc8mdie5shy87nsb.js → resolveAriaLabelledBy-knaucrjrjwnk7tvs.js} +1 -1
- package/dist/chunks/resolveValueLabel-ntacnb58mhka5gg0.js +70 -0
- package/dist/chunks/{safePolygon-kmd5wsz26l4xtj6c.js → safePolygon-ep4133qogeu5vjf3.js} +34 -38
- package/dist/chunks/{safeReact-hpp4cck3y2s5jg75.js → safeReact-ek77ilng4ekk7mgz.js} +2 -2
- package/dist/chunks/{scrollable-b6m9ze1u7ps0q1qn.js → scrollable-k784b35i80aolmvg.js} +8 -13
- package/dist/chunks/{select-futox5zqr3r80y9a.js → select-ey03k4630uckf1rk.js} +8 -8
- package/dist/chunks/{sensitive-input-cw33yncetxk3fbrl.js → sensitive-input-lfrrtyg9n5ulq3tb.js} +23 -28
- package/dist/chunks/{serializeValue-ipcakiw32jb7kany.js → serializeValue-d1otz2i7h5tygrwf.js} +1 -1
- package/dist/chunks/{sidebar-in9zhvr473afsjpp.js → sidebar-gluq5b5oacrdk4m4.js} +23 -16
- package/dist/chunks/{skeleton-line-m9dyh126t9k07jvg.js → skeleton-line-gjf1fecmyy82aejz.js} +1 -1
- package/dist/chunks/slider-juwif2d8xa5n0429.js +87 -0
- package/dist/chunks/{stringifyLocale-bxsgxdnzaef2vcar.js → stringifyLocale-gbxouqj7ol627jxh.js} +1 -1
- package/dist/chunks/{styles-kl02oyrlnld7arja.js → styles-eb8bvypmayf578jf.js} +2 -2
- package/dist/chunks/{surface-irf0af2mfglu4p0j.js → surface-ginwpan1pz61l6k2.js} +2 -2
- package/dist/chunks/{switch-cqsvolm7h69z7vgg.js → switch-mqf1ulvle4nd6d2t.js} +4 -4
- package/dist/chunks/{table-yf8ul2e5nbemioi1.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-gf57qqf1wcclaejq.js → tabs-mmkz7q5rofnmogwt.js} +3 -3
- package/dist/chunks/{tag-input-ohfybx5dbxy3houy.js → tag-input-b10gfxoob9vcizpm.js} +6 -5
- package/dist/chunks/{text-f1wxz183ckq7qtl7.js → text-me99rjbjkaff98gp.js} +1 -2
- package/dist/chunks/{toast-bzaothy2yrezh787.js → toast-b4t9rt9y1sumcmy2.js} +4 -4
- package/dist/chunks/{toolbar-h213d8e22yjh5cwq.js → toolbar-hov6sa3ui366f447.js} +5 -5
- package/dist/chunks/{tooltip-o4natsv01lpq8oq2.js → tooltip-lguwh8bjhxwnjfus.js} +3 -3
- package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
- package/dist/chunks/{useAnchoredPopupScrollLock-kp3kai20u91sdm7v.js → useAnchoredPopupScrollLock-msm8tzkewysnunut.js} +4 -4
- package/dist/chunks/{useAnimationFrame-0tt315hl9n3jzl86.js → useAnimationFrame-k9lqdj9quln3sd85.js} +3 -3
- package/dist/chunks/{useAriaLabelledBy-ox8dum59shmgypq1.js → useAriaLabelledBy-j3j9jqlr9ukyk08s.js} +7 -6
- package/dist/chunks/{useBaseUiId-lg1teubxudgin0w2.js → useBaseUiId-nk4k7nj9h1cy76ny.js} +2 -2
- package/dist/chunks/{useButton-h7s9aq1sfw6arawe.js → useButton-lklvdzuhvj22bx07.js} +14 -12
- package/dist/chunks/{useClick-l0p0endoxrlp0ae5.js → useClick-pcbkcc7r620v1smu.js} +12 -12
- package/dist/chunks/{useCollapsiblePanel-g6t146nqj521pild.js → useCollapsiblePanel-lrfsgx21ds36cwlp.js} +75 -28
- package/dist/chunks/{useCompositeItem-p7090ga00dpqcg5j.js → useCompositeItem-2juex3zh9gyrs8e9.js} +4 -4
- package/dist/chunks/{useCompositeListItem-odg6yo4h8866b37o.js → useCompositeListItem-ekwo2j2rjkggg7xj.js} +3 -3
- package/dist/chunks/{useControlled-lfns1ot6kwowa4t4.js → useControlled-i3srnkxy598s0au9.js} +3 -3
- package/dist/chunks/{useFieldValidation-e5pc8loiwzd68g4f.js → useFieldValidation-oe16jiigp971yrzr.js} +7 -7
- package/dist/chunks/{useFloatingRootContext-c849wtis7gx013m8.js → useFloatingRootContext-k676b6m7f80bdapd.js} +6 -6
- package/dist/chunks/{useFocus-lqwrnfa1svv3bcx1.js → useFocus-mn7a9t9v6fnlb4mf.js} +12 -14
- package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
- package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
- package/dist/chunks/{useLabel-kcggu762z3z2taeb.js → useLabel-me6zzfvkypo458pi.js} +19 -9
- package/dist/chunks/{useLabelableId-gqiiuqqn2k0u62r4.js → useLabelableId-bjeh6q3pgrqjb7er.js} +6 -6
- package/dist/chunks/{useListNavigation-3nyjs362qcau34in.js → useListNavigation-hpddbd0cc9pvt461.js} +56 -74
- package/dist/chunks/{useOnMount-hadwgyauanbzrvem.js → useOnMount-gxggz1m0n869s6r0.js} +2 -2
- package/dist/chunks/{useOpenChangeComplete-lk2gfu250t7r20c6.js → useOpenChangeComplete-edtabjwqmechsyv6.js} +10 -8
- package/dist/chunks/{usePopupHandleStore-hx871cmn66j0q7wz.js → usePopupHandleStore-gawjmfjf1xdgiph3.js} +2 -2
- package/dist/chunks/{usePopupViewport-iy5j9zawjrr3pcs0.js → usePopupViewport-l6w01iohvzloghy8.js} +28 -36
- package/dist/chunks/{usePositioner-k9nc7cl550bgfwzs.js → usePositioner-mzvgnazldqvy44z2.js} +41 -72
- package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
- package/dist/chunks/{usePreviousValue-io5t1pdxehw21l85.js → usePreviousValue-o6swt5tb7xhpdu4e.js} +1 -1
- package/dist/chunks/{useRegisterFieldControl-lvusf6vc963clx02.js → useRegisterFieldControl-m1stc9l9y4cndf0k.js} +4 -4
- package/dist/chunks/{useRegisteredLabelId-hw6b87h1k7kow1o2.js → useRegisteredLabelId-b7u9ygya03448zzn.js} +3 -3
- package/dist/chunks/{useRender-onwjigxa00uch2ip.js → useRender-h9ktka9xt4obdv6y.js} +2 -2
- package/dist/chunks/{useRenderDialogRoot-lddunc01twftravv.js → useRenderDialogRoot-bsqrqpc1ddau7xg4.js} +57 -20
- package/dist/chunks/{useRenderElement-lrvp2pwrpt5zq1zd.js → useRenderElement-nkklxbq1rp7h2kw0.js} +17 -24
- package/dist/chunks/{useScrollLock-buonkbwuland9wl3.js → useScrollLock-le7ajwlt7oh6fzxi.js} +68 -72
- package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
- package/dist/chunks/{useStableCallback-b1i1ghzd9k75bb85.js → useStableCallback-le5qgj6p9l04729n.js} +3 -3
- package/dist/chunks/{useSwipeDismiss-m1s13x9t9ey9ax3p.js → useSwipeDismiss-e8tfxzlp05p86mgb.js} +35 -54
- package/dist/chunks/{useTimeout-cpql3c8p250cr093.js → useTimeout-f0ayn2l2l9aop4l8.js} +3 -3
- package/dist/chunks/{useTransitionStatus-bwqaavnekreihom2.js → useTransitionStatus-disysoblzgk34w14.js} +9 -5
- package/dist/chunks/{useTriggerFocusGuards-lz7wt484xltizro4.js → useTriggerFocusGuards-dyd3hb1m8en8ct50.js} +12 -22
- package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
- package/dist/chunks/{useTypeahead-kvag4w6hu2g1kbwt.js → useTypeahead-kfdsw1ksl5bgvvzl.js} +16 -12
- package/dist/chunks/{useValueAsRef-o4s9ohb3aczypmnk.js → useValueAsRef-dv0tmfr1xlpzdlru.js} +3 -3
- package/dist/chunks/{useValueChanged-cz5wflhe8g15n6w1.js → useValueChanged-fjssa2v6d4w8y332.js} +3 -3
- package/dist/chunks/{utils-0i7gujfv3f3e9dqh.js → utils-o44zfmzz9z7uyj1v.js} +0 -1
- package/dist/chunks/{valueToPercent-d7gbqk1umostj7ch.js → valueToPercent-djk2mqnihth2uvf6.js} +1 -1
- package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
- package/dist/chunks/{vendor-utils-ecfbsk425x1bm0gh.js → vendor-utils-io8z5lsfxq8m2dcc.js} +88 -30
- package/dist/chunks/{visuallyHidden-nous086atnlxtf74.js → visuallyHidden-kzzs9hbe93is3rci.js} +2 -1
- package/dist/code.js +6 -11
- 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.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/chart.d.ts +1 -1
- package/dist/components/chart.js +1 -1
- 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.js +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.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.js +1 -1
- package/dist/components/input-group.js +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 -2
- package/dist/components/layer-dialog.js +1 -1
- 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.js +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.js +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.js +1 -1
- package/dist/components/tag-input.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-NqlNd7cQ.d.ts → index-5bJAnzUo.d.ts} +19 -7
- package/dist/{index-Cqrye3KD.d.ts → index-AUC5xRcO.d.ts} +64 -7
- package/dist/{index-C0d8uwYO.d.ts → index-BW1HVU7T.d.ts} +33 -5
- package/dist/index-BWe6haHU.d.ts +64 -0
- package/dist/{index-ChGFA5-n.d.ts → index-BvNXYn7u.d.ts} +4 -1
- package/dist/{index-D-y1ktn-.d.ts → index-CE09bLNb.d.ts} +5 -1
- package/dist/{index-bAud6rG2.d.ts → index-CU_lnxg7.d.ts} +13 -4
- package/dist/{index-Vj9ZzRh0.d.ts → index-DNsSKNUe.d.ts} +4 -1
- package/dist/{index-J1qdw9mL.d.ts → index-DjSGDESy.d.ts} +36 -2
- package/dist/{index-_Sl5wohy.d.ts → index-RP_rt8vB.d.ts} +1 -1
- package/dist/{index-Cp0aQngm.d.ts → index-T1sSoiWG.d.ts} +3 -1
- package/dist/{index-CtTNoYA2.d.ts → index-fsZE0vPs.d.ts} +12 -0
- package/dist/index.d.ts +14 -13
- package/dist/index.js +68 -63
- package/dist/{locale-provider-BLGya10h.d.ts → locale-provider-CAjVN3_0.d.ts} +6 -2
- 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 +1 -1
- package/dist/primitives.js +70 -42
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -3
- package/package.json +7 -3
- package/scripts/component-registry/discovery.ts +1 -0
- package/scripts/component-registry/metadata.ts +38 -0
- package/dist/chunks/DialogViewport-e1tqfisqexc7o9z8.js +0 -42
- package/dist/chunks/MenuBackdrop-ouznwyglg27bosoj.js +0 -73
- package/dist/chunks/index.parts-bq90erougcgrwlgk.js +0 -242
- package/dist/chunks/index.parts-cdxa6fwtp3lpkpp4.js +0 -11
- package/dist/chunks/index.parts-cl2xux9bjec6cibd.js +0 -44
- package/dist/chunks/index.parts-e9s1lqq3qa9l6ndm.js +0 -10
- package/dist/chunks/index.parts-eks3uafpskcxle6j.js +0 -99
- package/dist/chunks/index.parts-fbip2x29k5okvypg.js +0 -64
- package/dist/chunks/index.parts-fhza3s183grld7zq.js +0 -102
- package/dist/chunks/index.parts-hmx3qlh517ii56yi.js +0 -116
- package/dist/chunks/index.parts-i6gbeimeit8gzhvi.js +0 -10
- package/dist/chunks/index.parts-ioii4acz2bjrf6sb.js +0 -77
- package/dist/chunks/index.parts-jjup1zgnozoxi7ky.js +0 -140
- package/dist/chunks/index.parts-jpm6c0fe0gyky12m.js +0 -95
- package/dist/chunks/index.parts-moguar0t0u4aumou.js +0 -31
- package/dist/chunks/index.parts-mw0e646n3qp6v1qe.js +0 -73
- package/dist/chunks/index.parts-olcmo45gi8e1qma1.js +0 -10
- package/dist/chunks/popupStoreUtils-i0y57dvmcnqrh4pv.js +0 -444
- package/dist/chunks/radio-35dx7y6rjrezbjsp.js +0 -173
- package/dist/chunks/resolveValueLabel-hpmsash3ektitvnb.js +0 -123
- package/dist/chunks/useDismiss-me91ertzzz3gly12.js +0 -384
- package/dist/chunks/useFilteredItems-kw2za6m9bng7twr0.js +0 -181
- package/dist/chunks/useForcedRerendering-i3n4ms0xose8borh.js +0 -14
- package/dist/chunks/useId-f8w657f9yys10abm.js +0 -32
- package/dist/chunks/vendor-styling-da1xibnxfkjmtglr.js +0 -3631
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
|
|
|
@@ -1127,15 +1127,25 @@ Chart — a low-level wrapper around [Apache ECharts](https://echarts.apache.org
|
|
|
1127
1127
|
data={data}
|
|
1128
1128
|
xAxisName="Time (UTC)"
|
|
1129
1129
|
yAxisName="Requests"
|
|
1130
|
-
xAxisTickFormat={(
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1130
|
+
xAxisTickFormat={(timestamp) =>
|
|
1131
|
+
new Intl.DateTimeFormat(undefined, {
|
|
1132
|
+
timeZone: "UTC",
|
|
1133
|
+
hour: "2-digit",
|
|
1134
|
+
minute: "2-digit",
|
|
1135
|
+
}).format(timestamp)
|
|
1136
|
+
}
|
|
1134
1137
|
yAxisTickFormat={(value) => {
|
|
1135
1138
|
if (value >= 1000) return `${value / 1000}k`;
|
|
1136
1139
|
return value.toString();
|
|
1137
1140
|
}}
|
|
1138
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
|
+
}
|
|
1139
1149
|
/>
|
|
1140
1150
|
```
|
|
1141
1151
|
|
|
@@ -1507,7 +1517,7 @@ Checkbox component
|
|
|
1507
1517
|
|
|
1508
1518
|
**Colors (kumo tokens used):**
|
|
1509
1519
|
|
|
1510
|
-
`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`
|
|
1511
1521
|
|
|
1512
1522
|
**Styling:**
|
|
1513
1523
|
|
|
@@ -1545,7 +1555,9 @@ Props:
|
|
|
1545
1555
|
- `value`: string[] - Values of checkboxes that should be checked (controlled)
|
|
1546
1556
|
- `allValues`: string[] - All possible checkbox values (required for parent checkbox pattern)
|
|
1547
1557
|
- `disabled`: boolean - Whether all checkboxes in the group are disabled
|
|
1548
|
-
- `
|
|
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.
|
|
1549
1561
|
- `className`: string - Additional CSS classes
|
|
1550
1562
|
|
|
1551
1563
|
#### Checkbox.Legend
|
|
@@ -1628,6 +1640,67 @@ Props:
|
|
|
1628
1640
|
</Checkbox.Group>
|
|
1629
1641
|
```
|
|
1630
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
|
+
|
|
1631
1704
|
|
|
1632
1705
|
---
|
|
1633
1706
|
|
|
@@ -3948,7 +4021,7 @@ DropdownMenu — accessible dropdown menu anchored to a trigger.
|
|
|
3948
4021
|
|
|
3949
4022
|
**Colors (kumo tokens used):**
|
|
3950
4023
|
|
|
3951
|
-
`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`
|
|
3952
4025
|
|
|
3953
4026
|
**Sub-Components:**
|
|
3954
4027
|
|
|
@@ -3960,7 +4033,15 @@ Trigger sub-component
|
|
|
3960
4033
|
|
|
3961
4034
|
#### DropdownMenu.Portal
|
|
3962
4035
|
|
|
3963
|
-
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
|
|
3964
4045
|
|
|
3965
4046
|
#### DropdownMenu.Sub
|
|
3966
4047
|
|
|
@@ -4119,7 +4200,9 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
4119
4200
|
|
|
4120
4201
|
{/* Language submenu with RadioGroup */}
|
|
4121
4202
|
<DropdownMenu.Sub>
|
|
4122
|
-
<DropdownMenu.SubTrigger>
|
|
4203
|
+
<DropdownMenu.SubTrigger icon={GlobeIcon}>
|
|
4204
|
+
Language
|
|
4205
|
+
</DropdownMenu.SubTrigger>
|
|
4123
4206
|
<DropdownMenu.SubContent>
|
|
4124
4207
|
<DropdownMenu.Group>
|
|
4125
4208
|
<DropdownMenu.RadioGroup
|
|
@@ -4139,7 +4222,9 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
4139
4222
|
|
|
4140
4223
|
{/* Timezone submenu with RadioGroup */}
|
|
4141
4224
|
<DropdownMenu.Sub>
|
|
4142
|
-
<DropdownMenu.SubTrigger
|
|
4225
|
+
<DropdownMenu.SubTrigger icon={<ClockIcon weight="duotone" />}>
|
|
4226
|
+
Set Timezone
|
|
4227
|
+
</DropdownMenu.SubTrigger>
|
|
4143
4228
|
<DropdownMenu.SubContent>
|
|
4144
4229
|
<DropdownMenu.Group>
|
|
4145
4230
|
<DropdownMenu.RadioGroup
|
|
@@ -4172,8 +4257,8 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
4172
4257
|
<DropdownMenu.Item icon={PencilSimpleIcon}>Rename</DropdownMenu.Item>
|
|
4173
4258
|
<DropdownMenu.Item icon={CopyIcon}>Duplicate</DropdownMenu.Item>
|
|
4174
4259
|
<DropdownMenu.Separator />
|
|
4175
|
-
<DropdownMenu.Item
|
|
4176
|
-
<DropdownMenu.Item
|
|
4260
|
+
<DropdownMenu.Item>Move to folder</DropdownMenu.Item>
|
|
4261
|
+
<DropdownMenu.Item>Add to favorites</DropdownMenu.Item>
|
|
4177
4262
|
<DropdownMenu.Separator />
|
|
4178
4263
|
<DropdownMenu.Item icon={TrashIcon} variant="danger">
|
|
4179
4264
|
Delete
|
|
@@ -4199,6 +4284,12 @@ Group sub-component (wraps DropdownMenuPrimitive)
|
|
|
4199
4284
|
>
|
|
4200
4285
|
Rename
|
|
4201
4286
|
</DropdownMenu.Item>
|
|
4287
|
+
<DropdownMenu.Item
|
|
4288
|
+
icon={<ArrowsClockwiseIcon className="animate-spin" />}
|
|
4289
|
+
onClick={() => setLastAction("Refreshed")}
|
|
4290
|
+
>
|
|
4291
|
+
Refresh
|
|
4292
|
+
</DropdownMenu.Item>
|
|
4202
4293
|
<DropdownMenu.Separator />
|
|
4203
4294
|
<DropdownMenu.Item
|
|
4204
4295
|
icon={TrashIcon}
|
|
@@ -5435,8 +5526,12 @@ Label component for form fields.
|
|
|
5435
5526
|
The label content — can be a string or any React node.
|
|
5436
5527
|
- `showOptional`: boolean
|
|
5437
5528
|
When `true`, shows gray "(optional)" text after the label.
|
|
5529
|
+
- `optionalLabel`: ReactNode
|
|
5530
|
+
Content shown when `showOptional` is `true`.
|
|
5438
5531
|
- `tooltip`: ReactNode
|
|
5439
5532
|
Tooltip content displayed next to the label via an info icon.
|
|
5533
|
+
- `tooltipAriaLabel`: string
|
|
5534
|
+
Accessible label for the tooltip button.
|
|
5440
5535
|
- `className`: string
|
|
5441
5536
|
Additional CSS classes merged via `cn()`.
|
|
5442
5537
|
- `htmlFor`: string
|
|
@@ -5457,6 +5552,19 @@ Label component for form fields.
|
|
|
5457
5552
|
<Label tooltip="More information about this field">
|
|
5458
5553
|
Label with Tooltip
|
|
5459
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>
|
|
5460
5568
|
</div>
|
|
5461
5569
|
```
|
|
5462
5570
|
|
|
@@ -5500,6 +5608,14 @@ Label component for form fields.
|
|
|
5500
5608
|
</div>
|
|
5501
5609
|
```
|
|
5502
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
|
+
|
|
5503
5619
|
|
|
5504
5620
|
---
|
|
5505
5621
|
|
|
@@ -5676,12 +5792,16 @@ Body sub-component
|
|
|
5676
5792
|
Props:
|
|
5677
5793
|
- `children`: ReactNode (required)
|
|
5678
5794
|
|
|
5795
|
+
#### LayerDialog.Action
|
|
5796
|
+
|
|
5797
|
+
Action sub-component
|
|
5798
|
+
|
|
5679
5799
|
#### LayerDialog.Actions
|
|
5680
5800
|
|
|
5681
5801
|
Actions sub-component
|
|
5682
5802
|
|
|
5683
5803
|
Props:
|
|
5684
|
-
- `children`:
|
|
5804
|
+
- `children`: ReactNode (required) - Exactly one action. Pass `menu` to LayerDialog.Action for related actions such as "Save as draft".
|
|
5685
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.
|
|
5686
5806
|
|
|
5687
5807
|
|
|
@@ -5729,17 +5849,162 @@ Props:
|
|
|
5729
5849
|
</div>
|
|
5730
5850
|
</LayerDialog.Body>
|
|
5731
5851
|
<LayerDialog.Actions>
|
|
5732
|
-
<LayerDialog.
|
|
5852
|
+
<LayerDialog.Action
|
|
5733
5853
|
disabled={!hostname || !name}
|
|
5734
5854
|
onClick={() => undefined}
|
|
5735
5855
|
>
|
|
5736
5856
|
Save hostname
|
|
5737
|
-
</LayerDialog.
|
|
5857
|
+
</LayerDialog.Action>
|
|
5738
5858
|
</LayerDialog.Actions>
|
|
5739
5859
|
</LayerDialog.Content>
|
|
5740
5860
|
</LayerDialog.Root>
|
|
5741
5861
|
```
|
|
5742
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
|
+
|
|
5743
6008
|
```tsx
|
|
5744
6009
|
<LayerDialog.Root>
|
|
5745
6010
|
<LayerDialog.Trigger
|
|
@@ -5767,12 +6032,12 @@ Props:
|
|
|
5767
6032
|
</div>
|
|
5768
6033
|
</LayerDialog.Body>
|
|
5769
6034
|
<LayerDialog.Actions dismissLabel="Cancel">
|
|
5770
|
-
<LayerDialog.
|
|
6035
|
+
<LayerDialog.Action
|
|
5771
6036
|
disabled={!email || !name}
|
|
5772
6037
|
onClick={() => undefined}
|
|
5773
6038
|
>
|
|
5774
6039
|
Save changes
|
|
5775
|
-
</LayerDialog.
|
|
6040
|
+
</LayerDialog.Action>
|
|
5776
6041
|
</LayerDialog.Actions>
|
|
5777
6042
|
</LayerDialog.Content>
|
|
5778
6043
|
</LayerDialog.Root>
|
|
@@ -5820,13 +6085,13 @@ Props:
|
|
|
5820
6085
|
</div>
|
|
5821
6086
|
</LayerDialog.Body>
|
|
5822
6087
|
<LayerDialog.Actions>
|
|
5823
|
-
<LayerDialog.
|
|
6088
|
+
<LayerDialog.Action
|
|
5824
6089
|
disabled={confirmation !== workerName}
|
|
5825
6090
|
onClick={() => undefined}
|
|
5826
6091
|
variant="destructive"
|
|
5827
6092
|
>
|
|
5828
6093
|
Delete Worker
|
|
5829
|
-
</LayerDialog.
|
|
6094
|
+
</LayerDialog.Action>
|
|
5830
6095
|
</LayerDialog.Actions>
|
|
5831
6096
|
</LayerDialog.Content>
|
|
5832
6097
|
</LayerDialog.Alert>
|
|
@@ -5850,7 +6115,7 @@ Props:
|
|
|
5850
6115
|
</Text>
|
|
5851
6116
|
</LayerDialog.Body>
|
|
5852
6117
|
<LayerDialog.Actions>
|
|
5853
|
-
<LayerDialog.
|
|
6118
|
+
<LayerDialog.Action
|
|
5854
6119
|
loading={pending}
|
|
5855
6120
|
onClick={() => {
|
|
5856
6121
|
setPending(true);
|
|
@@ -5858,7 +6123,7 @@ Props:
|
|
|
5858
6123
|
}}
|
|
5859
6124
|
>
|
|
5860
6125
|
Save changes
|
|
5861
|
-
</LayerDialog.
|
|
6126
|
+
</LayerDialog.Action>
|
|
5862
6127
|
</LayerDialog.Actions>
|
|
5863
6128
|
</LayerDialog.Content>
|
|
5864
6129
|
</LayerDialog.Root>
|
|
@@ -5922,18 +6187,16 @@ Props:
|
|
|
5922
6187
|
</Text>
|
|
5923
6188
|
</LayerDialog.Body>
|
|
5924
6189
|
<LayerDialog.Actions>
|
|
5925
|
-
<LayerDialog.
|
|
6190
|
+
<LayerDialog.Action variant="destructive">
|
|
5926
6191
|
Discard changes
|
|
5927
|
-
</LayerDialog.
|
|
6192
|
+
</LayerDialog.Action>
|
|
5928
6193
|
</LayerDialog.Actions>
|
|
5929
6194
|
</LayerDialog.Content>
|
|
5930
6195
|
</LayerDialog.Alert>
|
|
5931
6196
|
</div>
|
|
5932
6197
|
</LayerDialog.Body>
|
|
5933
6198
|
<LayerDialog.Actions>
|
|
5934
|
-
<LayerDialog.
|
|
5935
|
-
Save changes
|
|
5936
|
-
</LayerDialog.Actions.Primary>
|
|
6199
|
+
<LayerDialog.Action>Save changes</LayerDialog.Action>
|
|
5937
6200
|
</LayerDialog.Actions>
|
|
5938
6201
|
</LayerDialog.Content>
|
|
5939
6202
|
</LayerDialog.Root>
|
|
@@ -5979,9 +6242,7 @@ Props:
|
|
|
5979
6242
|
</ol>
|
|
5980
6243
|
</LayerDialog.Body>
|
|
5981
6244
|
<LayerDialog.Actions>
|
|
5982
|
-
<LayerDialog.
|
|
5983
|
-
Export log
|
|
5984
|
-
</LayerDialog.Actions.Primary>
|
|
6245
|
+
<LayerDialog.Action>Export log</LayerDialog.Action>
|
|
5985
6246
|
</LayerDialog.Actions>
|
|
5986
6247
|
</LayerDialog.Content>
|
|
5987
6248
|
</LayerDialog.Root>
|
|
@@ -6012,9 +6273,7 @@ Props:
|
|
|
6012
6273
|
</div>
|
|
6013
6274
|
</LayerDialog.Body>
|
|
6014
6275
|
<LayerDialog.Actions>
|
|
6015
|
-
<LayerDialog.
|
|
6016
|
-
Create deployment
|
|
6017
|
-
</LayerDialog.Actions.Primary>
|
|
6276
|
+
<LayerDialog.Action>Create deployment</LayerDialog.Action>
|
|
6018
6277
|
</LayerDialog.Actions>
|
|
6019
6278
|
</LayerDialog.Content>
|
|
6020
6279
|
</LayerDialog.Root>
|
|
@@ -6530,10 +6789,38 @@ Popover component for displaying accessible popup content anchored to a trigger.
|
|
|
6530
6789
|
|
|
6531
6790
|
This is a compound component. Use these sub-components:
|
|
6532
6791
|
|
|
6792
|
+
#### Popover.Root
|
|
6793
|
+
|
|
6794
|
+
Root sub-component
|
|
6795
|
+
|
|
6533
6796
|
#### Popover.Trigger
|
|
6534
6797
|
|
|
6535
6798
|
Trigger sub-component
|
|
6536
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
|
+
|
|
6537
6824
|
#### Popover.Content
|
|
6538
6825
|
|
|
6539
6826
|
Content sub-component
|
|
@@ -6554,123 +6841,241 @@ Close sub-component
|
|
|
6554
6841
|
**Examples:**
|
|
6555
6842
|
|
|
6556
6843
|
```tsx
|
|
6557
|
-
<Popover>
|
|
6844
|
+
<Popover.Root>
|
|
6558
6845
|
<Popover.Trigger
|
|
6559
6846
|
render={
|
|
6560
6847
|
<Button shape="square" icon={BellIcon} aria-label="Notifications" />
|
|
6561
6848
|
}
|
|
6562
6849
|
/>
|
|
6563
|
-
<Popover.
|
|
6564
|
-
<Popover.
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
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>
|
|
6570
6879
|
```
|
|
6571
6880
|
|
|
6572
6881
|
```tsx
|
|
6573
6882
|
<Popover>
|
|
6574
|
-
<Popover.Trigger render={<Button />}>
|
|
6575
|
-
|
|
6576
|
-
|
|
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>
|
|
6577
6888
|
<Popover.Description>
|
|
6578
|
-
This
|
|
6889
|
+
This legacy wrapper fades in without scaling or transforming.
|
|
6579
6890
|
</Popover.Description>
|
|
6580
6891
|
</Popover.Content>
|
|
6581
6892
|
</Popover>
|
|
6582
6893
|
```
|
|
6583
6894
|
|
|
6584
6895
|
```tsx
|
|
6585
|
-
<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>
|
|
6586
6961
|
<Popover.Trigger render={<Button />}>Open Settings</Popover.Trigger>
|
|
6587
|
-
<Popover.
|
|
6588
|
-
<Popover.
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
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>
|
|
6599
6979
|
```
|
|
6600
6980
|
|
|
6601
6981
|
```tsx
|
|
6602
6982
|
<div className="flex flex-wrap gap-4">
|
|
6603
|
-
<Popover>
|
|
6983
|
+
<Popover.Root>
|
|
6604
6984
|
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
6605
6985
|
Bottom
|
|
6606
6986
|
</Popover.Trigger>
|
|
6607
|
-
<Popover.
|
|
6608
|
-
<Popover.
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
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>
|
|
6616
7001
|
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
6617
7002
|
Top
|
|
6618
7003
|
</Popover.Trigger>
|
|
6619
|
-
<Popover.
|
|
6620
|
-
<Popover.
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
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>
|
|
6626
7016
|
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
6627
7017
|
Left
|
|
6628
7018
|
</Popover.Trigger>
|
|
6629
|
-
<Popover.
|
|
6630
|
-
<Popover.
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
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>
|
|
6636
7031
|
<Popover.Trigger render={<Button variant="secondary" />}>
|
|
6637
7032
|
Right
|
|
6638
7033
|
</Popover.Trigger>
|
|
6639
|
-
<Popover.
|
|
6640
|
-
<Popover.
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
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>
|
|
6644
7044
|
</div>
|
|
6645
7045
|
```
|
|
6646
7046
|
|
|
6647
7047
|
```tsx
|
|
6648
|
-
<Popover>
|
|
7048
|
+
<Popover.Root>
|
|
6649
7049
|
<Popover.Trigger render={<Button />}>User Profile</Popover.Trigger>
|
|
6650
|
-
<Popover.
|
|
6651
|
-
<
|
|
6652
|
-
<
|
|
6653
|
-
|
|
6654
|
-
<
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
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>
|
|
6670
7075
|
```
|
|
6671
7076
|
|
|
6672
7077
|
```tsx
|
|
6673
|
-
<Popover>
|
|
7078
|
+
<Popover.Root>
|
|
6674
7079
|
<Popover.Trigger
|
|
6675
7080
|
openOnHover
|
|
6676
7081
|
delay={200}
|
|
@@ -6678,19 +7083,24 @@ Close sub-component
|
|
|
6678
7083
|
>
|
|
6679
7084
|
Hover Me
|
|
6680
7085
|
</Popover.Trigger>
|
|
6681
|
-
<Popover.
|
|
6682
|
-
<Popover.
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
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>
|
|
6694
7104
|
```
|
|
6695
7105
|
|
|
6696
7106
|
```tsx
|
|
@@ -6732,29 +7142,38 @@ Close sub-component
|
|
|
6732
7142
|
</tbody>
|
|
6733
7143
|
</table>
|
|
6734
7144
|
</div>
|
|
6735
|
-
<Popover
|
|
7145
|
+
<Popover.Root
|
|
6736
7146
|
open={!!selectedRow}
|
|
6737
7147
|
onOpenChange={(open) => !open && setSelectedRow(null)}
|
|
6738
7148
|
>
|
|
6739
|
-
<Popover.
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
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>
|
|
6758
7177
|
</div>
|
|
6759
7178
|
```
|
|
6760
7179
|
|
|
@@ -6777,7 +7196,7 @@ Radio — radio button group for single-select choices.
|
|
|
6777
7196
|
- `"default"`: Default radio appearance
|
|
6778
7197
|
- `"error"`: Error state for validation failures
|
|
6779
7198
|
- `appearance`: KumoRadioAppearance
|
|
6780
|
-
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.
|
|
6781
7200
|
- `legend`: string
|
|
6782
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.
|
|
6783
7202
|
- `children`: ReactNode (required)
|
|
@@ -6805,7 +7224,7 @@ Radio — radio button group for single-select choices.
|
|
|
6805
7224
|
|
|
6806
7225
|
**Colors (kumo tokens used):**
|
|
6807
7226
|
|
|
6808
|
-
`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`
|
|
6809
7228
|
|
|
6810
7229
|
**Sub-Components:**
|
|
6811
7230
|
|
|
@@ -6823,7 +7242,7 @@ Props:
|
|
|
6823
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.
|
|
6824
7243
|
- `children`: ReactNode (required) - Child Radio.Item components (and optionally a Radio.Legend)
|
|
6825
7244
|
- `orientation`: "vertical" | "horizontal" - Layout direction of the radio items
|
|
6826
|
-
- `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.
|
|
6827
7246
|
- `error`: string - Error message for the group
|
|
6828
7247
|
- `description`: ReactNode - Helper text for the group
|
|
6829
7248
|
- `value`: T - The controlled value of the selected radio item.
|
|
@@ -6870,6 +7289,89 @@ Props:
|
|
|
6870
7289
|
</Radio.Group>
|
|
6871
7290
|
```
|
|
6872
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
|
+
|
|
6873
7375
|
```tsx
|
|
6874
7376
|
<Radio.Group
|
|
6875
7377
|
legend="Shipping method"
|
|
@@ -8308,9 +8810,9 @@ Props:
|
|
|
8308
8810
|
</Sidebar.Menu>
|
|
8309
8811
|
</Sidebar.Group>
|
|
8310
8812
|
</Sidebar.Content>
|
|
8311
|
-
<
|
|
8813
|
+
<DemoSidebarFooter>
|
|
8312
8814
|
<Sidebar.Trigger />
|
|
8313
|
-
</
|
|
8815
|
+
</DemoSidebarFooter>
|
|
8314
8816
|
</Sidebar>
|
|
8315
8817
|
<DemoMain>
|
|
8316
8818
|
<ToggleButton />
|
|
@@ -8349,9 +8851,9 @@ Props:
|
|
|
8349
8851
|
</Sidebar.Group>
|
|
8350
8852
|
</Sidebar.Content>
|
|
8351
8853
|
)}
|
|
8352
|
-
<
|
|
8854
|
+
<DemoSidebarFooter>
|
|
8353
8855
|
<Sidebar.Trigger />
|
|
8354
|
-
</
|
|
8856
|
+
</DemoSidebarFooter>
|
|
8355
8857
|
</Sidebar>
|
|
8356
8858
|
<DemoMain>
|
|
8357
8859
|
<button
|
|
@@ -8397,9 +8899,9 @@ Props:
|
|
|
8397
8899
|
</Sidebar.Menu>
|
|
8398
8900
|
</Sidebar.Group>
|
|
8399
8901
|
</Sidebar.Content>
|
|
8400
|
-
<
|
|
8902
|
+
<DemoSidebarFooter>
|
|
8401
8903
|
<Sidebar.Trigger />
|
|
8402
|
-
</
|
|
8904
|
+
</DemoSidebarFooter>
|
|
8403
8905
|
<Sidebar.ResizeHandle />
|
|
8404
8906
|
</Sidebar>
|
|
8405
8907
|
<DemoMain>
|
|
@@ -8513,9 +9015,9 @@ Props:
|
|
|
8513
9015
|
</Sidebar.Menu>
|
|
8514
9016
|
</Sidebar.Group>
|
|
8515
9017
|
</Sidebar.Content>
|
|
8516
|
-
<
|
|
9018
|
+
<DemoSidebarFooter>
|
|
8517
9019
|
<Sidebar.Trigger />
|
|
8518
|
-
</
|
|
9020
|
+
</DemoSidebarFooter>
|
|
8519
9021
|
</Sidebar>
|
|
8520
9022
|
<DemoMain>
|
|
8521
9023
|
<p>Open Workers near the bottom of the list</p>
|
|
@@ -8569,9 +9071,9 @@ Props:
|
|
|
8569
9071
|
</Sidebar.Menu>
|
|
8570
9072
|
</Sidebar.Group>
|
|
8571
9073
|
</Sidebar.Content>
|
|
8572
|
-
<
|
|
9074
|
+
<DemoSidebarFooter>
|
|
8573
9075
|
<Sidebar.Trigger />
|
|
8574
|
-
</
|
|
9076
|
+
</DemoSidebarFooter>
|
|
8575
9077
|
</Sidebar>
|
|
8576
9078
|
<DemoMain>
|
|
8577
9079
|
<p aria-live="polite">{completion}</p>
|
|
@@ -8817,9 +9319,9 @@ Props:
|
|
|
8817
9319
|
</Sidebar.SlidingView>
|
|
8818
9320
|
</Sidebar.SlidingViews>
|
|
8819
9321
|
|
|
8820
|
-
<
|
|
9322
|
+
<DemoSidebarFooter>
|
|
8821
9323
|
<Sidebar.Trigger />
|
|
8822
|
-
</
|
|
9324
|
+
</DemoSidebarFooter>
|
|
8823
9325
|
</Sidebar>
|
|
8824
9326
|
<DemoMain />
|
|
8825
9327
|
</Sidebar.Provider>
|
|
@@ -8849,9 +9351,9 @@ Props:
|
|
|
8849
9351
|
</Sidebar.Menu>
|
|
8850
9352
|
</Sidebar.Group>
|
|
8851
9353
|
</Sidebar.Content>
|
|
8852
|
-
<
|
|
9354
|
+
<DemoSidebarFooter>
|
|
8853
9355
|
<Sidebar.Trigger />
|
|
8854
|
-
</
|
|
9356
|
+
</DemoSidebarFooter>
|
|
8855
9357
|
</Sidebar>
|
|
8856
9358
|
<DemoMain>
|
|
8857
9359
|
<ScrollToItemControls />
|
|
@@ -8893,9 +9395,9 @@ Props:
|
|
|
8893
9395
|
</Sidebar.Menu>
|
|
8894
9396
|
</Sidebar.Group>
|
|
8895
9397
|
</Sidebar.Content>
|
|
8896
|
-
<
|
|
9398
|
+
<DemoSidebarFooter>
|
|
8897
9399
|
<Sidebar.Trigger />
|
|
8898
|
-
</
|
|
9400
|
+
</DemoSidebarFooter>
|
|
8899
9401
|
</Sidebar>
|
|
8900
9402
|
<DemoMain>
|
|
8901
9403
|
<MobileToggleButton />
|
|
@@ -8984,6 +9486,100 @@ Props:
|
|
|
8984
9486
|
```
|
|
8985
9487
|
|
|
8986
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
|
+
|
|
8987
9583
|
---
|
|
8988
9584
|
|
|
8989
9585
|
### Surface
|
|
@@ -10331,6 +10927,8 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
10331
10927
|
Minimum interval between y-axis ticks. Set to `1` for discrete count data so ECharts does not render fractional tick marks.
|
|
10332
10928
|
- `tooltipValueFormat`: (value: number) => string
|
|
10333
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.
|
|
10334
10932
|
- `tooltipFooter`: string
|
|
10335
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.
|
|
10336
10934
|
- `tooltipMode`: "all" | "single"
|
|
@@ -10429,15 +11027,25 @@ TimeseriesChart — a time-series line or bar chart.
|
|
|
10429
11027
|
data={data}
|
|
10430
11028
|
xAxisName="Time (UTC)"
|
|
10431
11029
|
yAxisName="Requests"
|
|
10432
|
-
xAxisTickFormat={(
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
11030
|
+
xAxisTickFormat={(timestamp) =>
|
|
11031
|
+
new Intl.DateTimeFormat(undefined, {
|
|
11032
|
+
timeZone: "UTC",
|
|
11033
|
+
hour: "2-digit",
|
|
11034
|
+
minute: "2-digit",
|
|
11035
|
+
}).format(timestamp)
|
|
11036
|
+
}
|
|
10436
11037
|
yAxisTickFormat={(value) => {
|
|
10437
11038
|
if (value >= 1000) return `${value / 1000}k`;
|
|
10438
11039
|
return value.toString();
|
|
10439
11040
|
}}
|
|
10440
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
|
+
}
|
|
10441
11049
|
/>
|
|
10442
11050
|
```
|
|
10443
11051
|
|
|
@@ -11186,7 +11794,7 @@ Multi-line textarea input with Input variants and InputArea-specific dimensions
|
|
|
11186
11794
|
- **Feedback:** Banner, Loader, Toasty
|
|
11187
11795
|
- **Data Visualization:** BubbleMap, Chart, ChoroplethMap, GlobeMap, SankeyChart, TimeseriesChart
|
|
11188
11796
|
- **Action:** Button, ButtonGroup, ClipboardText, InlineCopyText
|
|
11189
|
-
- **Input:** Checkbox, Combobox, DateRangePicker, Field, Input, InputGroup, Radio, Select, Switch
|
|
11797
|
+
- **Input:** Checkbox, Combobox, DateRangePicker, Field, Input, InputGroup, Radio, Select, Slider, Switch
|
|
11190
11798
|
- **Navigation:** CommandPalette, MenuBar, Pagination, Tabs
|
|
11191
11799
|
- **Overlay:** Dialog, DropdownMenu, LayerDialog, Popover, Tooltip
|
|
11192
11800
|
- **Layout:** Grid, Surface, PageHeader, ResourceListPage
|