@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
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import { t as gecko } from "./engine-
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-hi7ti5xiuxsegr96.js";
|
|
3
|
+
import { c as NOOP, f as useMergedRefs, i as mergeProps, n as useRenderElement, o as EMPTY_ARRAY, p as useRefWithInit, s as EMPTY_OBJECT } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
|
|
4
|
+
import { n as ReactStore } from "./FloatingRootStore-men6ufp3a2b296fh.js";
|
|
5
|
+
import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
|
|
6
|
+
import { $ as getTarget, N as popupOpen$1, P as pressed$1, Q as contains, X as activeElement, Z as closest, at as stopEvent, d as getGridNavigatedIndex, g as isIndexOutOfListBounds, j as pressableTriggerOpenStateMapping, st as android } from "./vendor-utils-io8z5lsfxq8m2dcc.js";
|
|
7
|
+
import { t as gecko } from "./engine-hzmefiqm63hu0c7i.js";
|
|
8
8
|
import { E as isHTMLElement, S as getOverflowAncestors } from "./vendor-floating-ui-fqblx3wa0r71mjoo.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as useValueAsRef } from "./useValueAsRef-
|
|
12
|
-
import { t as useStableCallback } from "./useStableCallback-
|
|
13
|
-
import { n as visuallyHiddenInput, t as visuallyHidden } from "./visuallyHidden-
|
|
14
|
-
import {
|
|
15
|
-
import { r as useOpenInteractionType } from "./useScrollLock-
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as useControlled } from "./useControlled-
|
|
28
|
-
import { t as
|
|
29
|
-
import {
|
|
30
|
-
import { t as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { t as
|
|
34
|
-
import { t as CompositeList } from "./CompositeList-
|
|
35
|
-
import { t as useCompositeListItem } from "./useCompositeListItem-
|
|
9
|
+
import { n as createGenericEventDetails, t as createChangeEventDetails } from "./createBaseUIEventDetails-nvee6bghv2reeqdb.js";
|
|
10
|
+
import { d as imperativeAction, g as inputClear, h as inputChange, i as closePress, l as escapeKey, v as inputPress, w as none, y as itemPress } from "./reason-parts-hssx64rmlxyn6gw5.js";
|
|
11
|
+
import { t as useValueAsRef } from "./useValueAsRef-dv0tmfr1xlpzdlru.js";
|
|
12
|
+
import { t as useStableCallback } from "./useStableCallback-le5qgj6p9l04729n.js";
|
|
13
|
+
import { n as visuallyHiddenInput, t as visuallyHidden } from "./visuallyHidden-kzzs9hbe93is3rci.js";
|
|
14
|
+
import { g as useDismiss, i as attachPreventUnmountOnClose, m as useUnmountAfterClose, t as FOCUSABLE_POPUP_PROPS } from "./popupStoreUtils-czfnxn051xakask5.js";
|
|
15
|
+
import { r as useOpenInteractionType } from "./useScrollLock-le7ajwlt7oh6fzxi.js";
|
|
16
|
+
import { t as useClick } from "./useClick-pcbkcc7r620v1smu.js";
|
|
17
|
+
import { t as useFloatingRootContext } from "./useFloatingRootContext-k676b6m7f80bdapd.js";
|
|
18
|
+
import { a as useListNavigation } from "./useListNavigation-hpddbd0cc9pvt461.js";
|
|
19
|
+
import { t as useBaseUiId } from "./useBaseUiId-nk4k7nj9h1cy76ny.js";
|
|
20
|
+
import { n as useDirection } from "./DirectionContext-kpby968j030psajn.js";
|
|
21
|
+
import { a as useFieldRootContext, c as fieldValidityMapping, i as FieldRootContext, n as useLabelableContext, o as DEFAULT_FIELD_STATE_ATTRIBUTES, r as DEFAULT_FIELD_ROOT_CONTEXT } from "./LabelableContext-dz4wz3lu3lgqusu7.js";
|
|
22
|
+
import { n as useFormContext } from "./FormContext-jv19engyccpf6xcl.js";
|
|
23
|
+
import { t as useLabelableId } from "./useLabelableId-bjeh6q3pgrqjb7er.js";
|
|
24
|
+
import { t as useSetFieldFocused } from "./useSetFieldFocused-fbvj7gcv67dqfkp0.js";
|
|
25
|
+
import { t as useRegisterFieldControl } from "./useRegisterFieldControl-m1stc9l9y4cndf0k.js";
|
|
26
|
+
import { t as useValueChanged } from "./useValueChanged-fjssa2v6d4w8y332.js";
|
|
27
|
+
import { t as useControlled } from "./useControlled-i3srnkxy598s0au9.js";
|
|
28
|
+
import { t as useButton } from "./useButton-lklvdzuhvj22bx07.js";
|
|
29
|
+
import { r as isScrollableY } from "./scrollable-k784b35i80aolmvg.js";
|
|
30
|
+
import { a as isSelectedValueDirty, c as selectedValueIncludes, i as findSelectionIndex, l as useOnFirstRender, n as defaultItemEquality, o as removeItem, r as findItemIndex, s as resolveSelectedIndex, t as compareItemEquality } from "./itemEquality-ki3x4tzdhjlqjey6.js";
|
|
31
|
+
import { t as getHighlightReason } from "./getHighlightReason-fhc53kq6qakcct9s.js";
|
|
32
|
+
import { n as hasNullItemLabel, o as stringifyAsLabel, r as isGroupedItems, s as stringifyAsValue, t as flattenLeafItems } from "./resolveValueLabel-ntacnb58mhka5gg0.js";
|
|
33
|
+
import { n as getFilter, t as useInitialLiveRegionTextMutation } from "./useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js";
|
|
34
|
+
import { t as CompositeList } from "./CompositeList-gwuaf6d14s4da0j0.js";
|
|
35
|
+
import { t as useCompositeListItem } from "./useCompositeListItem-ekwo2j2rjkggg7xj.js";
|
|
36
36
|
import * as React$1 from "react";
|
|
37
37
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
38
38
|
import * as ReactDOM from "react-dom";
|
|
39
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
39
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/floating-ui-react/hooks/gridNavigation.mjs
|
|
40
40
|
/**
|
|
41
41
|
* Positional arguments are deliberate: property names of an options object
|
|
42
42
|
* don't minify, and the signature is locked to the caller via `typeof` on the
|
|
@@ -65,7 +65,7 @@ function gridNavigation(event, prevIndex, listRef, orientation, loopFocus, rtl,
|
|
|
65
65
|
return isIndexOutOfListBounds(listRef.current, nextIndex) ? void 0 : nextIndex;
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
68
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/root/ComboboxRootContext.mjs
|
|
69
69
|
const ComboboxRootContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
70
70
|
ComboboxRootContext.displayName = "ComboboxRootContext";
|
|
71
71
|
const ComboboxFloatingContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
@@ -98,7 +98,7 @@ function useComboboxHasItemsContext() {
|
|
|
98
98
|
return React$1.useContext(ComboboxHasItemsContext);
|
|
99
99
|
}
|
|
100
100
|
//#endregion
|
|
101
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
101
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/store.mjs
|
|
102
102
|
/**
|
|
103
103
|
* Non-reactive values shared with the combobox parts. Nothing here is observable through
|
|
104
104
|
* `selectors`, so writing to a ref never notifies subscribers.
|
|
@@ -139,7 +139,7 @@ const selectors = {
|
|
|
139
139
|
listProps: (state) => state.listProps,
|
|
140
140
|
inputProps: (state) => state.inputProps,
|
|
141
141
|
triggerProps: (state) => state.triggerProps,
|
|
142
|
-
|
|
142
|
+
itemRoot: (state) => state.itemRoot,
|
|
143
143
|
positionerElement: (state) => state.positionerElement,
|
|
144
144
|
listElement: (state) => state.listElement,
|
|
145
145
|
popupId: (state) => state.popupId,
|
|
@@ -164,7 +164,7 @@ const selectors = {
|
|
|
164
164
|
autoHighlight: (state) => state.autoHighlight
|
|
165
165
|
};
|
|
166
166
|
//#endregion
|
|
167
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
167
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/root/utils/index.mjs
|
|
168
168
|
/**
|
|
169
169
|
* Derives the default id assigned to `Combobox.Popup` when the input is rendered inside it.
|
|
170
170
|
* Shared by the popup (which applies it) and the trigger (which references it via `aria-controls`)
|
|
@@ -200,43 +200,7 @@ function createSingleSelectionCollatorFilter(collatorFilter, itemToStringLabel,
|
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
//#endregion
|
|
203
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
204
|
-
const filterCache = /* @__PURE__ */ new Map();
|
|
205
|
-
function getFilter(options = {}) {
|
|
206
|
-
const mergedOptions = {
|
|
207
|
-
usage: "search",
|
|
208
|
-
sensitivity: "base",
|
|
209
|
-
ignorePunctuation: true,
|
|
210
|
-
...options
|
|
211
|
-
};
|
|
212
|
-
const cacheKey = `${stringifyLocale(options.locale)}|${JSON.stringify(mergedOptions)}`;
|
|
213
|
-
const cachedFilter = filterCache.get(cacheKey);
|
|
214
|
-
if (cachedFilter) return cachedFilter;
|
|
215
|
-
const collator = new Intl.Collator(options.locale, mergedOptions);
|
|
216
|
-
const filter = {
|
|
217
|
-
contains(item, query, itemToString) {
|
|
218
|
-
if (!query) return true;
|
|
219
|
-
const itemString = stringifyAsLabel(item, itemToString);
|
|
220
|
-
for (let i = 0; i <= itemString.length - query.length; i += 1) if (collator.compare(itemString.slice(i, i + query.length), query) === 0) return true;
|
|
221
|
-
return false;
|
|
222
|
-
},
|
|
223
|
-
startsWith(item, query, itemToString) {
|
|
224
|
-
if (!query) return true;
|
|
225
|
-
const itemString = stringifyAsLabel(item, itemToString);
|
|
226
|
-
return collator.compare(itemString.slice(0, query.length), query) === 0;
|
|
227
|
-
},
|
|
228
|
-
endsWith(item, query, itemToString) {
|
|
229
|
-
if (!query) return true;
|
|
230
|
-
const itemString = stringifyAsLabel(item, itemToString);
|
|
231
|
-
const queryLength = query.length;
|
|
232
|
-
return itemString.length >= queryLength && collator.compare(itemString.slice(itemString.length - queryLength), query) === 0;
|
|
233
|
-
}
|
|
234
|
-
};
|
|
235
|
-
filterCache.set(cacheKey, filter);
|
|
236
|
-
return filter;
|
|
237
|
-
}
|
|
238
|
-
//#endregion
|
|
239
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/root/utils/useFilter.mjs
|
|
203
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/root/utils/useFilter.mjs
|
|
240
204
|
/**
|
|
241
205
|
* Matches items against a query using `Intl.Collator` for robust string matching.
|
|
242
206
|
*/
|
|
@@ -261,14 +225,14 @@ function useComboboxFilter(options = {}) {
|
|
|
261
225
|
}), [contains, coreFilter]);
|
|
262
226
|
}
|
|
263
227
|
//#endregion
|
|
264
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
228
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/root/utils/constants.mjs
|
|
265
229
|
const NO_ACTIVE_VALUE = Symbol("none");
|
|
266
230
|
const INITIAL_LAST_HIGHLIGHT = {
|
|
267
231
|
value: NO_ACTIVE_VALUE,
|
|
268
232
|
index: -1
|
|
269
233
|
};
|
|
270
234
|
//#endregion
|
|
271
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
235
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/items/itemCollection.mjs
|
|
272
236
|
function findCollectionItem(valueToItem, itemValue, isEqual) {
|
|
273
237
|
const exactItem = valueToItem.get(itemValue);
|
|
274
238
|
if (exactItem !== void 0 || isEqual === defaultItemEquality) return exactItem;
|
|
@@ -287,7 +251,7 @@ function findCollectionItem(valueToItem, itemValue, isEqual) {
|
|
|
287
251
|
* their values and resolve a selected value back to its label while items are unmounted.
|
|
288
252
|
*/
|
|
289
253
|
//#endregion
|
|
290
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
254
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/root/AriaCombobox.mjs
|
|
291
255
|
/**
|
|
292
256
|
* @internal
|
|
293
257
|
*/
|
|
@@ -355,7 +319,6 @@ function AriaCombobox(props) {
|
|
|
355
319
|
const startDismissRef = React$1.useRef(null);
|
|
356
320
|
const endDismissRef = React$1.useRef(null);
|
|
357
321
|
const emptyRef = React$1.useRef(null);
|
|
358
|
-
const keyboardActiveRef = React$1.useRef(true);
|
|
359
322
|
const hadInputClearRef = React$1.useRef(false);
|
|
360
323
|
const chipsContainerRef = React$1.useRef(null);
|
|
361
324
|
const clearRef = React$1.useRef(null);
|
|
@@ -511,7 +474,14 @@ function AriaCombobox(props) {
|
|
|
511
474
|
listProps: {},
|
|
512
475
|
inputProps: {},
|
|
513
476
|
triggerProps: {},
|
|
514
|
-
|
|
477
|
+
itemRoot: {
|
|
478
|
+
props: EMPTY_OBJECT,
|
|
479
|
+
id,
|
|
480
|
+
selectionMode,
|
|
481
|
+
disabled,
|
|
482
|
+
readOnly,
|
|
483
|
+
isItemEqualToValue
|
|
484
|
+
},
|
|
515
485
|
positionerElement: null,
|
|
516
486
|
listElement: null,
|
|
517
487
|
popupId: void 0,
|
|
@@ -538,7 +508,6 @@ function AriaCombobox(props) {
|
|
|
538
508
|
inputRef,
|
|
539
509
|
startDismissRef,
|
|
540
510
|
endDismissRef,
|
|
541
|
-
keyboardActiveRef,
|
|
542
511
|
chipsContainerRef,
|
|
543
512
|
clearRef,
|
|
544
513
|
valuesRef,
|
|
@@ -571,7 +540,6 @@ function AriaCombobox(props) {
|
|
|
571
540
|
const inputOwnsFormValue = store.useState("inputOwnsFormValue");
|
|
572
541
|
const inputMatchesSelectedValue = single && !inputInsidePopup && inputValue === selectedLabelString;
|
|
573
542
|
const triggerRef = useValueAsRef(triggerElement);
|
|
574
|
-
const { mounted, setMounted, transitionStatus } = useTransitionStatus(open);
|
|
575
543
|
const { openMethod, triggerProps } = useOpenInteractionType(open);
|
|
576
544
|
const getStringifiedValueForForm = useStableCallback(() => fieldStringValue);
|
|
577
545
|
useRegisterFieldControl(inputInsidePopup ? triggerRef : inputRef, id, fieldRawValue, getStringifiedValueForForm, !disabled, nameProp);
|
|
@@ -583,7 +551,7 @@ function AriaCombobox(props) {
|
|
|
583
551
|
* Emits `onItemHighlighted` for the item at `index`, or clears the highlight when `index` is `-1`
|
|
584
552
|
* (a no-op if nothing was highlighted). Keeps `lastHighlightRef` in sync with what was emitted.
|
|
585
553
|
*/
|
|
586
|
-
const emitHighlight = useStableCallback((value, index, type) => {
|
|
554
|
+
const emitHighlight = useStableCallback((value, index, type, event) => {
|
|
587
555
|
if (index === -1) {
|
|
588
556
|
if (lastHighlightRef.current === INITIAL_LAST_HIGHLIGHT) return;
|
|
589
557
|
lastHighlightRef.current = INITIAL_LAST_HIGHLIGHT;
|
|
@@ -591,7 +559,7 @@ function AriaCombobox(props) {
|
|
|
591
559
|
value,
|
|
592
560
|
index
|
|
593
561
|
};
|
|
594
|
-
onItemHighlighted(value, createGenericEventDetails(type,
|
|
562
|
+
onItemHighlighted(value, createGenericEventDetails(type, event, { index }));
|
|
595
563
|
});
|
|
596
564
|
const setIndices = useStableCallback((options) => {
|
|
597
565
|
const update = {};
|
|
@@ -601,8 +569,8 @@ function AriaCombobox(props) {
|
|
|
601
569
|
const activeIndexOption = options.activeIndex;
|
|
602
570
|
if (activeIndexOption === void 0) return;
|
|
603
571
|
const type = options.type || "none";
|
|
604
|
-
if (activeIndexOption === null) emitHighlight(void 0, -1, type);
|
|
605
|
-
else emitHighlight(valuesRef.current[activeIndexOption], activeIndexOption, type);
|
|
572
|
+
if (activeIndexOption === null) emitHighlight(void 0, -1, type, options.event);
|
|
573
|
+
else emitHighlight(valuesRef.current[activeIndexOption], activeIndexOption, type, options.event);
|
|
606
574
|
});
|
|
607
575
|
const setInputValue = useStableCallback((next, eventDetails) => {
|
|
608
576
|
props.onInputValueChange?.(next, eventDetails);
|
|
@@ -641,10 +609,14 @@ function AriaCombobox(props) {
|
|
|
641
609
|
setCloseQuery(null);
|
|
642
610
|
if (clearsPendingInput) setInputValue("", createChangeEventDetails(inputClear));
|
|
643
611
|
});
|
|
612
|
+
const [preventUnmountOnClose, setPreventUnmountOnClose] = React$1.useState(false);
|
|
644
613
|
const setOpen = useStableCallback((nextOpen, eventDetails) => {
|
|
645
614
|
if (open === nextOpen) return;
|
|
646
615
|
if (eventDetails.reason === "escape-key" && hasItems && flatFilteredValues.length === 0 && !emptyRef.current) eventDetails.allowPropagation();
|
|
647
|
-
|
|
616
|
+
const openEventDetails = eventDetails;
|
|
617
|
+
const shouldPreventUnmountOnClose = attachPreventUnmountOnClose(openEventDetails);
|
|
618
|
+
props.onOpenChange?.(nextOpen, openEventDetails);
|
|
619
|
+
if (pendingQueryHighlightRef.current?.hasQuery && eventDetails.reason === "input-change" === eventDetails.isCanceled) pendingQueryHighlightRef.current = null;
|
|
648
620
|
if (eventDetails.isCanceled) return;
|
|
649
621
|
if (nextOpen && closeQuery !== null) handleInterruptedReopen(eventDetails.reason === inputChange);
|
|
650
622
|
if (!nextOpen && queryChangedAfterOpen) {
|
|
@@ -657,6 +629,7 @@ function AriaCombobox(props) {
|
|
|
657
629
|
if (!inputInsidePopup || inline) setInputValue("", createChangeEventDetails(inputClear, eventDetails.event, void 0, { isItemPress: eventDetails.reason === itemPress }));
|
|
658
630
|
}
|
|
659
631
|
}
|
|
632
|
+
if (!nextOpen) setPreventUnmountOnClose(shouldPreventUnmountOnClose());
|
|
660
633
|
setOpenUnwrapped(nextOpen);
|
|
661
634
|
if (!nextOpen && inputInsidePopup && (eventDetails.reason === "focus-out" || eventDetails.reason === "outside-press")) {
|
|
662
635
|
setTouched(true);
|
|
@@ -678,7 +651,7 @@ function AriaCombobox(props) {
|
|
|
678
651
|
const overrideEvent = selectionEventRef.current ?? event;
|
|
679
652
|
selectionEventRef.current = null;
|
|
680
653
|
const eventDetails = createChangeEventDetails(itemPress, overrideEvent);
|
|
681
|
-
const href =
|
|
654
|
+
const href = closest(targetEl, "a")?.getAttribute("href");
|
|
682
655
|
if (href) {
|
|
683
656
|
if (href.startsWith("#")) setOpen(false, eventDetails);
|
|
684
657
|
return;
|
|
@@ -705,8 +678,7 @@ function AriaCombobox(props) {
|
|
|
705
678
|
const formElement = validation.inputRef.current?.form ?? store.state.inputElement?.form;
|
|
706
679
|
if (formElement && typeof formElement.requestSubmit === "function") formElement.requestSubmit();
|
|
707
680
|
});
|
|
708
|
-
const
|
|
709
|
-
setMounted(false);
|
|
681
|
+
const handleUnmountCleanup = useStableCallback(() => {
|
|
710
682
|
onOpenChangeComplete?.(false);
|
|
711
683
|
setQueryChangedAfterOpen(false);
|
|
712
684
|
setCloseQuery(null);
|
|
@@ -726,18 +698,20 @@ function AriaCombobox(props) {
|
|
|
726
698
|
}
|
|
727
699
|
});
|
|
728
700
|
const resolvedPopupRef = React$1.useMemo(() => {
|
|
729
|
-
if (inline && positionerElement) return { current:
|
|
701
|
+
if (inline && positionerElement) return { current: closest(positionerElement, "[role=\"dialog\"]") };
|
|
730
702
|
return popupRef;
|
|
731
703
|
}, [inline, positionerElement]);
|
|
732
|
-
|
|
733
|
-
enabled: !props.actionsRef,
|
|
704
|
+
const { mounted, transitionStatus, forceUnmount: handleUnmount } = useUnmountAfterClose({
|
|
734
705
|
open,
|
|
735
706
|
ref: resolvedPopupRef,
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
707
|
+
preventUnmountOnClose,
|
|
708
|
+
setPreventUnmountOnClose,
|
|
709
|
+
onUnmount: handleUnmountCleanup
|
|
739
710
|
});
|
|
740
|
-
React$1.useImperativeHandle(props.actionsRef, () => ({
|
|
711
|
+
React$1.useImperativeHandle(props.actionsRef, () => ({
|
|
712
|
+
unmount: handleUnmount,
|
|
713
|
+
close: () => setOpen(false, createChangeEventDetails(imperativeAction))
|
|
714
|
+
}), [handleUnmount, setOpen]);
|
|
741
715
|
useIsoLayoutEffect(function syncSelectedIndex() {
|
|
742
716
|
const closeQueryReleased = previousCloseQueryRef.current !== null && closeQuery === null;
|
|
743
717
|
previousCloseQueryRef.current = closeQuery;
|
|
@@ -764,19 +738,31 @@ function AriaCombobox(props) {
|
|
|
764
738
|
}
|
|
765
739
|
}, [items, flatFilteredValues]);
|
|
766
740
|
useIsoLayoutEffect(() => {
|
|
741
|
+
if (!open && pendingQueryHighlightRef.current?.hasQuery) pendingQueryHighlightRef.current = null;
|
|
742
|
+
}, [open]);
|
|
743
|
+
useIsoLayoutEffect(() => {
|
|
744
|
+
if (!open && inline && resolvedPopupRef.current) {
|
|
745
|
+
pendingQueryHighlightRef.current = null;
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
const candidateItems = hasItems || hasFilteredItemsProp ? flatFilteredValues : valuesRef.current;
|
|
767
749
|
const pendingHighlight = pendingQueryHighlightRef.current;
|
|
768
750
|
if (pendingHighlight) {
|
|
769
751
|
const listIsNavigable = open || inline || store.state.positionerElement?.hidden === false;
|
|
770
752
|
if (pendingHighlight.hasQuery) {
|
|
771
|
-
|
|
772
|
-
pendingQueryHighlightRef.current = null;
|
|
753
|
+
const input = inputRef.current;
|
|
754
|
+
if (!autoHighlightMode || String(inputValue).trim() === "" || inline && autoHighlightMode !== "always" && (!input || activeElement(input.ownerDocument) !== input)) pendingQueryHighlightRef.current = null;
|
|
755
|
+
else if (listIsNavigable && (candidateItems[0] !== void 0 || !hasItems && !hasFilteredItemsProp)) {
|
|
756
|
+
store.set("activeIndex", 0);
|
|
757
|
+
pendingQueryHighlightRef.current = null;
|
|
758
|
+
}
|
|
773
759
|
} else if (String(inputValue).trim() === "") {
|
|
774
760
|
pendingQueryHighlightRef.current = null;
|
|
775
761
|
if (listIsNavigable) {
|
|
776
762
|
const clearedBySelection = pendingHighlight.selection;
|
|
777
763
|
if (autoHighlightMode === "always" && !clearedBySelection && store.state.selectionMode === "none") store.set("activeIndex", 0);
|
|
778
764
|
queueMicrotask(() => {
|
|
779
|
-
if (!store.state.open && !store.state.inline || inputRef.current && inputRef.current.value.trim() !== "") return;
|
|
765
|
+
if (!store.state.open && (!store.state.inline || resolvedPopupRef.current) || inputRef.current && inputRef.current.value.trim() !== "") return;
|
|
780
766
|
const currentSelectedValue = store.state.selectedValue;
|
|
781
767
|
const isMultiple = store.state.selectionMode === "multiple";
|
|
782
768
|
if (isMultiple && Array.isArray(currentSelectedValue) ? currentSelectedValue.length > 0 : store.state.selectionMode !== "none" && currentSelectedValue != null) {
|
|
@@ -790,7 +776,6 @@ function AriaCombobox(props) {
|
|
|
790
776
|
}
|
|
791
777
|
}
|
|
792
778
|
if (!open && !inline) return;
|
|
793
|
-
const candidateItems = hasItems || hasFilteredItemsProp ? flatFilteredValues : valuesRef.current;
|
|
794
779
|
const storeActiveIndex = store.state.activeIndex;
|
|
795
780
|
if (storeActiveIndex == null) {
|
|
796
781
|
if (autoHighlightMode === "always" && candidateItems.length > 0) {
|
|
@@ -818,6 +803,7 @@ function AriaCombobox(props) {
|
|
|
818
803
|
flatFilteredValues,
|
|
819
804
|
inline,
|
|
820
805
|
open,
|
|
806
|
+
resolvedPopupRef,
|
|
821
807
|
store,
|
|
822
808
|
inputValue
|
|
823
809
|
]);
|
|
@@ -954,11 +940,11 @@ function AriaCombobox(props) {
|
|
|
954
940
|
disabledIndices: EMPTY_ARRAY,
|
|
955
941
|
grid: grid ? gridNavigation : void 0,
|
|
956
942
|
onNavigate(nextActiveIndex, event) {
|
|
957
|
-
if (!event && !open || transitionStatus === "ending") return;
|
|
958
|
-
|
|
959
|
-
else setIndices({
|
|
943
|
+
if (!event && !open && !(inline && nextActiveIndex === null) || transitionStatus === "ending") return;
|
|
944
|
+
setIndices({
|
|
960
945
|
activeIndex: nextActiveIndex,
|
|
961
|
-
type:
|
|
946
|
+
type: getHighlightReason(event),
|
|
947
|
+
event: event?.nativeEvent
|
|
962
948
|
});
|
|
963
949
|
}
|
|
964
950
|
});
|
|
@@ -974,14 +960,27 @@ function AriaCombobox(props) {
|
|
|
974
960
|
]);
|
|
975
961
|
const popupProps = React$1.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, dismiss.floating), [dismiss.floating]);
|
|
976
962
|
const listProps = React$1.useMemo(() => mergeProps(listNavigation.floating, role.floating), [listNavigation.floating, role.floating]);
|
|
977
|
-
const
|
|
963
|
+
const itemRoot = React$1.useMemo(() => {
|
|
978
964
|
const listNavigationItemProps = listNavigation.item;
|
|
979
|
-
if (!listNavigationItemProps) return EMPTY_OBJECT;
|
|
980
965
|
return {
|
|
981
|
-
|
|
982
|
-
|
|
966
|
+
props: listNavigationItemProps ? {
|
|
967
|
+
...listNavigationItemProps,
|
|
968
|
+
onFocus: void 0
|
|
969
|
+
} : EMPTY_OBJECT,
|
|
970
|
+
id,
|
|
971
|
+
selectionMode,
|
|
972
|
+
disabled,
|
|
973
|
+
readOnly,
|
|
974
|
+
isItemEqualToValue
|
|
983
975
|
};
|
|
984
|
-
}, [
|
|
976
|
+
}, [
|
|
977
|
+
listNavigation.item,
|
|
978
|
+
id,
|
|
979
|
+
selectionMode,
|
|
980
|
+
disabled,
|
|
981
|
+
readOnly,
|
|
982
|
+
isItemEqualToValue
|
|
983
|
+
]);
|
|
985
984
|
store.useContextCallback("setOpen", setOpen);
|
|
986
985
|
store.useContextCallback("setInputValue", setInputValue);
|
|
987
986
|
store.useContextCallback("setSelectedValue", setSelectedValue);
|
|
@@ -997,7 +996,7 @@ function AriaCombobox(props) {
|
|
|
997
996
|
listProps,
|
|
998
997
|
inputProps,
|
|
999
998
|
triggerProps,
|
|
1000
|
-
|
|
999
|
+
itemRoot
|
|
1001
1000
|
});
|
|
1002
1001
|
});
|
|
1003
1002
|
const syncedValues = {
|
|
@@ -1012,7 +1011,7 @@ function AriaCombobox(props) {
|
|
|
1012
1011
|
listProps,
|
|
1013
1012
|
inputProps,
|
|
1014
1013
|
triggerProps,
|
|
1015
|
-
|
|
1014
|
+
itemRoot,
|
|
1016
1015
|
openMethod,
|
|
1017
1016
|
selectionMode,
|
|
1018
1017
|
name,
|
|
@@ -1145,17 +1144,78 @@ function AriaCombobox(props) {
|
|
|
1145
1144
|
})
|
|
1146
1145
|
});
|
|
1147
1146
|
}
|
|
1147
|
+
//#endregion
|
|
1148
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/input/ComboboxInputDataAttributes.mjs
|
|
1149
|
+
var ComboboxInputDataAttributes_exports = /* @__PURE__ */ __exportAll({
|
|
1150
|
+
dirty: () => dirty,
|
|
1151
|
+
disabled: () => disabled,
|
|
1152
|
+
filled: () => filled,
|
|
1153
|
+
focused: () => focused,
|
|
1154
|
+
invalid: () => invalid,
|
|
1155
|
+
listEmpty: () => listEmpty,
|
|
1156
|
+
popupOpen: () => popupOpen,
|
|
1157
|
+
popupSide: () => popupSide,
|
|
1158
|
+
pressed: () => pressed,
|
|
1159
|
+
readonly: () => readonly,
|
|
1160
|
+
required: () => required,
|
|
1161
|
+
touched: () => touched,
|
|
1162
|
+
valid: () => valid
|
|
1163
|
+
});
|
|
1164
|
+
/**
|
|
1165
|
+
* Present when the corresponding popup is open.
|
|
1166
|
+
*/
|
|
1167
|
+
const popupOpen = popupOpen$1;
|
|
1168
|
+
/**
|
|
1169
|
+
* Present when the input is pressed.
|
|
1170
|
+
*/
|
|
1171
|
+
const pressed = pressed$1;
|
|
1172
|
+
/**
|
|
1173
|
+
* Present when the component is disabled.
|
|
1174
|
+
*/
|
|
1175
|
+
const disabled = "data-disabled";
|
|
1176
|
+
/**
|
|
1177
|
+
* Present when the component is readonly.
|
|
1178
|
+
*/
|
|
1179
|
+
const readonly = "data-readonly";
|
|
1148
1180
|
/**
|
|
1149
1181
|
* Indicates which side the corresponding popup is positioned relative to its anchor.
|
|
1150
1182
|
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start' | null}
|
|
1151
1183
|
*/
|
|
1152
1184
|
const popupSide = "data-popup-side";
|
|
1153
1185
|
/**
|
|
1186
|
+
* Present when the component is required.
|
|
1187
|
+
*/
|
|
1188
|
+
const required = "data-required";
|
|
1189
|
+
/**
|
|
1190
|
+
* Present when the component is in a valid state (when wrapped in Field.Root).
|
|
1191
|
+
*/
|
|
1192
|
+
const valid = "data-valid";
|
|
1193
|
+
/**
|
|
1194
|
+
* Present when the component is in an invalid state (when wrapped in Field.Root).
|
|
1195
|
+
*/
|
|
1196
|
+
const invalid = "data-invalid";
|
|
1197
|
+
/**
|
|
1198
|
+
* Present when the component has been touched (when wrapped in Field.Root).
|
|
1199
|
+
*/
|
|
1200
|
+
const touched = "data-touched";
|
|
1201
|
+
/**
|
|
1202
|
+
* Present when the component's value has changed (when wrapped in Field.Root).
|
|
1203
|
+
*/
|
|
1204
|
+
const dirty = "data-dirty";
|
|
1205
|
+
/**
|
|
1206
|
+
* Present when the component has a value (when wrapped in Field.Root).
|
|
1207
|
+
*/
|
|
1208
|
+
const filled = "data-filled";
|
|
1209
|
+
/**
|
|
1210
|
+
* Present when the input is focused (when wrapped in Field.Root).
|
|
1211
|
+
*/
|
|
1212
|
+
const focused = "data-focused";
|
|
1213
|
+
/**
|
|
1154
1214
|
* Present when the corresponding items list is empty.
|
|
1155
1215
|
*/
|
|
1156
1216
|
const listEmpty = "data-list-empty";
|
|
1157
1217
|
//#endregion
|
|
1158
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1218
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/utils/stateAttributesMapping.mjs
|
|
1159
1219
|
const triggerStateAttributesMapping = {
|
|
1160
1220
|
...pressableTriggerOpenStateMapping,
|
|
1161
1221
|
...fieldValidityMapping,
|
|
@@ -1163,14 +1223,14 @@ const triggerStateAttributesMapping = {
|
|
|
1163
1223
|
listEmpty: (empty) => empty ? { [listEmpty]: "" } : null
|
|
1164
1224
|
};
|
|
1165
1225
|
//#endregion
|
|
1166
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1226
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/chips/ComboboxChipsContext.mjs
|
|
1167
1227
|
const ComboboxChipsContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
1168
1228
|
ComboboxChipsContext.displayName = "ComboboxChipsContext";
|
|
1169
1229
|
function useComboboxChipsContext() {
|
|
1170
1230
|
return React$1.useContext(ComboboxChipsContext);
|
|
1171
1231
|
}
|
|
1172
1232
|
//#endregion
|
|
1173
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1233
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/positioner/ComboboxPositionerContext.mjs
|
|
1174
1234
|
const ComboboxPositionerContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
1175
1235
|
ComboboxPositionerContext.displayName = "ComboboxPositionerContext";
|
|
1176
1236
|
function useComboboxPositionerContext(optional) {
|
|
@@ -1179,7 +1239,7 @@ function useComboboxPositionerContext(optional) {
|
|
|
1179
1239
|
return context;
|
|
1180
1240
|
}
|
|
1181
1241
|
//#endregion
|
|
1182
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1242
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/utils/ComboboxInternalDismissButton.mjs
|
|
1183
1243
|
/**
|
|
1184
1244
|
* @internal
|
|
1185
1245
|
*/
|
|
@@ -1201,7 +1261,7 @@ const ComboboxInternalDismissButton = /*#__PURE__*/ React$1.forwardRef(function
|
|
|
1201
1261
|
});
|
|
1202
1262
|
ComboboxInternalDismissButton.displayName = "ComboboxInternalDismissButton";
|
|
1203
1263
|
//#endregion
|
|
1204
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1264
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/utils/parts.mjs
|
|
1205
1265
|
/**
|
|
1206
1266
|
* The popup side is only meaningful while the positioner is mounted, as the store retains the
|
|
1207
1267
|
* last resolved side after the popup unmounts.
|
|
@@ -1244,7 +1304,7 @@ function clickHighlightedItem(store, activeIndex, nativeEvent) {
|
|
|
1244
1304
|
}
|
|
1245
1305
|
}
|
|
1246
1306
|
//#endregion
|
|
1247
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1307
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/input/ComboboxInput.mjs
|
|
1248
1308
|
/**
|
|
1249
1309
|
* A text input to search for items in the list.
|
|
1250
1310
|
* Renders an `<input>` element.
|
|
@@ -1253,7 +1313,7 @@ function clickHighlightedItem(store, activeIndex, nativeEvent) {
|
|
|
1253
1313
|
*/
|
|
1254
1314
|
const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(componentProps, forwardedRef) {
|
|
1255
1315
|
const { render, className, disabled: disabledProp = false, id: idProp, style, ...elementProps } = componentProps;
|
|
1256
|
-
const { state: fieldState, disabled: fieldDisabled, setTouched,
|
|
1316
|
+
const { state: fieldState, disabled: fieldDisabled, setTouched, validationMode, validation } = useFieldRootContext();
|
|
1257
1317
|
const { labelId: fieldLabelId } = useLabelableContext();
|
|
1258
1318
|
const comboboxChipsContext = useComboboxChipsContext();
|
|
1259
1319
|
const positioning = useComboboxPositionerContext(true);
|
|
@@ -1280,6 +1340,7 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1280
1340
|
const popupSide = usePopupSide(store);
|
|
1281
1341
|
const disabled = fieldDisabled || comboboxDisabled || disabledProp;
|
|
1282
1342
|
const listEmpty = useListEmpty();
|
|
1343
|
+
const setFocused = useSetFieldFocused(disabled, store.context.inputRef);
|
|
1283
1344
|
const isInsidePopup = hasPositionerParent || inline;
|
|
1284
1345
|
const focusManagerModal = !isInsidePopup || modal;
|
|
1285
1346
|
const id = useBaseUiId(idProp ?? (!isInsidePopup ? rootId : void 0));
|
|
@@ -1287,7 +1348,9 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1287
1348
|
const [composingValue, setComposingValue] = React$1.useState(null);
|
|
1288
1349
|
const isComposingRef = React$1.useRef(false);
|
|
1289
1350
|
const lastActiveIndexRef = React$1.useRef(null);
|
|
1290
|
-
|
|
1351
|
+
useIsoLayoutEffect(() => {
|
|
1352
|
+
if (!open) lastActiveIndexRef.current = null;
|
|
1353
|
+
}, [open]);
|
|
1291
1354
|
const inputOwnsFormValue = selectionMode === "none" && !hasPositionerParent;
|
|
1292
1355
|
const setInputElement = useStableCallback((element) => {
|
|
1293
1356
|
const nextIsInsidePopup = hasPositionerParent || store.state.inline;
|
|
@@ -1299,16 +1362,14 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1299
1362
|
});
|
|
1300
1363
|
});
|
|
1301
1364
|
const validationProps = hasPositionerParent ? elementProps : validation.getValidationProps(disabled, elementProps);
|
|
1302
|
-
function clearHighlight() {
|
|
1365
|
+
function clearHighlight(event) {
|
|
1303
1366
|
store.context.setIndices({
|
|
1304
1367
|
activeIndex: null,
|
|
1305
1368
|
selectedIndex: null,
|
|
1306
|
-
type:
|
|
1369
|
+
type: getHighlightReason(event),
|
|
1370
|
+
event
|
|
1307
1371
|
});
|
|
1308
1372
|
}
|
|
1309
|
-
function markPointerActive() {
|
|
1310
|
-
store.context.keyboardActiveRef.current = false;
|
|
1311
|
-
}
|
|
1312
1373
|
const state = {
|
|
1313
1374
|
...fieldStateForInput,
|
|
1314
1375
|
open,
|
|
@@ -1320,25 +1381,8 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1320
1381
|
function handleKeyDown(event) {
|
|
1321
1382
|
if (!comboboxChipsContext) return;
|
|
1322
1383
|
let nextIndex;
|
|
1323
|
-
const { highlightedChipIndex } = comboboxChipsContext;
|
|
1324
1384
|
const renderedChipsCount = comboboxChipsContext.chipsRef.current.length;
|
|
1325
|
-
const [previousChipKey
|
|
1326
|
-
if (highlightedChipIndex !== void 0) {
|
|
1327
|
-
if (event.key === previousChipKey) {
|
|
1328
|
-
event.preventDefault();
|
|
1329
|
-
if (highlightedChipIndex > 0) nextIndex = highlightedChipIndex - 1;
|
|
1330
|
-
else nextIndex = void 0;
|
|
1331
|
-
} else if (event.key === nextChipKey) {
|
|
1332
|
-
event.preventDefault();
|
|
1333
|
-
if (highlightedChipIndex < renderedChipsCount - 1) nextIndex = highlightedChipIndex + 1;
|
|
1334
|
-
else nextIndex = void 0;
|
|
1335
|
-
} else if (event.key === "Backspace" || event.key === "Delete") {
|
|
1336
|
-
event.preventDefault();
|
|
1337
|
-
nextIndex = getIndexAfterChipRemoval(highlightedChipIndex, selectedValue.length);
|
|
1338
|
-
clearHighlight();
|
|
1339
|
-
}
|
|
1340
|
-
return nextIndex;
|
|
1341
|
-
}
|
|
1385
|
+
const [previousChipKey] = getChipNavigationKeys(direction);
|
|
1342
1386
|
if (event.key === previousChipKey && (event.currentTarget.selectionStart ?? 0) === 0 && selectedValue.length > 0) {
|
|
1343
1387
|
event.preventDefault();
|
|
1344
1388
|
nextIndex = renderedChipsCount > 0 ? renderedChipsCount - 1 : void 0;
|
|
@@ -1368,9 +1412,9 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1368
1412
|
id,
|
|
1369
1413
|
onFocus() {
|
|
1370
1414
|
setFocused(true);
|
|
1371
|
-
if (!inline
|
|
1372
|
-
shouldRestoreActiveIndexRef.current = false;
|
|
1415
|
+
if (!inline) return;
|
|
1373
1416
|
const nextActiveIndex = lastActiveIndexRef.current;
|
|
1417
|
+
lastActiveIndexRef.current = null;
|
|
1374
1418
|
if (nextActiveIndex == null || !Object.hasOwn(store.context.valuesRef.current, nextActiveIndex)) return;
|
|
1375
1419
|
store.context.setIndices({ activeIndex: nextActiveIndex });
|
|
1376
1420
|
},
|
|
@@ -1380,7 +1424,6 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1380
1424
|
const activeIndex = store.state.activeIndex;
|
|
1381
1425
|
if (inline && activeIndex !== null && autoHighlightMode !== "always") {
|
|
1382
1426
|
lastActiveIndexRef.current = activeIndex;
|
|
1383
|
-
shouldRestoreActiveIndexRef.current = true;
|
|
1384
1427
|
store.context.setIndices({ activeIndex: null });
|
|
1385
1428
|
}
|
|
1386
1429
|
if (validationMode === "onBlur") {
|
|
@@ -1407,7 +1450,7 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1407
1450
|
function maybeOpenOnInput(trimmed) {
|
|
1408
1451
|
if (readOnly || disabled || !trimmed || !shouldOpenOnInput) return;
|
|
1409
1452
|
store.context.setOpen(true, createChangeEventDetails(inputChange, nativeEvent));
|
|
1410
|
-
if (!autoHighlightEnabled) clearHighlight();
|
|
1453
|
+
if (!autoHighlightEnabled) clearHighlight(nativeEvent);
|
|
1411
1454
|
}
|
|
1412
1455
|
if (isComposingRef.current) {
|
|
1413
1456
|
const nextVal = event.currentTarget.value;
|
|
@@ -1416,7 +1459,7 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1416
1459
|
const trimmed = nextVal.trim();
|
|
1417
1460
|
const shouldMaintainHighlight = autoHighlightEnabled && trimmed !== "";
|
|
1418
1461
|
maybeOpenOnInput(trimmed);
|
|
1419
|
-
if (open && store.state.activeIndex !== null && !shouldMaintainHighlight) clearHighlight();
|
|
1462
|
+
if (open && store.state.activeIndex !== null && !shouldMaintainHighlight) clearHighlight(nativeEvent);
|
|
1420
1463
|
return;
|
|
1421
1464
|
}
|
|
1422
1465
|
const inputChangeDetails = createChangeEventDetails(inputChange, nativeEvent);
|
|
@@ -1429,11 +1472,10 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1429
1472
|
if (!store.state.openOnInputClick) store.context.setOpen(false, clearDetails);
|
|
1430
1473
|
}
|
|
1431
1474
|
maybeOpenOnInput(event.currentTarget.value.trim());
|
|
1432
|
-
if (open && store.state.activeIndex !== null && !autoHighlightEnabled) clearHighlight();
|
|
1475
|
+
if (open && store.state.activeIndex !== null && !autoHighlightEnabled) clearHighlight(nativeEvent);
|
|
1433
1476
|
},
|
|
1434
1477
|
onKeyDown(event) {
|
|
1435
1478
|
if (event.ctrlKey || event.shiftKey || event.altKey || event.metaKey) return;
|
|
1436
|
-
store.context.keyboardActiveRef.current = true;
|
|
1437
1479
|
if (disabled || readOnly) {
|
|
1438
1480
|
if (readOnly && event.key === "Enter" && open && store.state.activeIndex !== null) stopEvent(event);
|
|
1439
1481
|
return;
|
|
@@ -1464,19 +1506,16 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1464
1506
|
if (!isClear && !store.state.inline && !details.isPropagationAllowed) event.stopPropagation();
|
|
1465
1507
|
return;
|
|
1466
1508
|
}
|
|
1467
|
-
if (comboboxChipsContext && event.key === "Backspace" && input.value === "" &&
|
|
1509
|
+
if (comboboxChipsContext && event.key === "Backspace" && input.value === "" && Array.isArray(selectedValue) && selectedValue.length > 0) {
|
|
1468
1510
|
const renderedChipsCount = comboboxChipsContext.chipsRef.current.length;
|
|
1469
1511
|
const removalIndex = renderedChipsCount > 0 ? renderedChipsCount - 1 : selectedValue.length - 1;
|
|
1470
1512
|
const newValue = selectedValue.filter((_, index) => index !== removalIndex);
|
|
1471
|
-
clearHighlight();
|
|
1513
|
+
clearHighlight(event.nativeEvent);
|
|
1472
1514
|
store.context.setSelectedValue(newValue, createChangeEventDetails(none, event.nativeEvent));
|
|
1473
1515
|
return;
|
|
1474
1516
|
}
|
|
1475
|
-
const hadHighlightedChip = comboboxChipsContext?.highlightedChipIndex !== void 0;
|
|
1476
1517
|
const nextIndex = handleKeyDown(event);
|
|
1477
|
-
comboboxChipsContext?.setHighlightedChipIndex(nextIndex);
|
|
1478
1518
|
if (nextIndex !== void 0) comboboxChipsContext?.chipsRef.current[nextIndex]?.focus();
|
|
1479
|
-
else if (hadHighlightedChip) store.context.inputRef.current?.focus();
|
|
1480
1519
|
if (event.which === 229) return;
|
|
1481
1520
|
if (event.key === "Enter" && open) {
|
|
1482
1521
|
const activeIndex = store.state.activeIndex;
|
|
@@ -1489,9 +1528,7 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1489
1528
|
stopEvent(event);
|
|
1490
1529
|
clickHighlightedItem(store, activeIndex, nativeEvent);
|
|
1491
1530
|
}
|
|
1492
|
-
}
|
|
1493
|
-
onPointerMove: markPointerActive,
|
|
1494
|
-
onPointerDown: markPointerActive
|
|
1531
|
+
}
|
|
1495
1532
|
},
|
|
1496
1533
|
validationProps
|
|
1497
1534
|
],
|
|
@@ -1505,7 +1542,7 @@ const ComboboxInput = /*#__PURE__*/ React$1.forwardRef(function ComboboxInput(co
|
|
|
1505
1542
|
});
|
|
1506
1543
|
ComboboxInput.displayName = "ComboboxInput";
|
|
1507
1544
|
//#endregion
|
|
1508
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1545
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/collection/GroupCollectionContext.mjs
|
|
1509
1546
|
const GroupCollectionContext = /*#__PURE__*/ React$1.createContext(null);
|
|
1510
1547
|
GroupCollectionContext.displayName = "GroupCollectionContext";
|
|
1511
1548
|
function useGroupCollectionContext() {
|
|
@@ -1520,7 +1557,7 @@ function GroupCollectionProvider(props) {
|
|
|
1520
1557
|
});
|
|
1521
1558
|
}
|
|
1522
1559
|
//#endregion
|
|
1523
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1560
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/collection/ComboboxCollection.mjs
|
|
1524
1561
|
/**
|
|
1525
1562
|
* Renders filtered list items.
|
|
1526
1563
|
* Doesn't render its own HTML element.
|
|
@@ -1537,7 +1574,7 @@ function ComboboxCollection(props) {
|
|
|
1537
1574
|
return /*#__PURE__*/ jsx(React$1.Fragment, { children: itemsToRender.map(children) });
|
|
1538
1575
|
}
|
|
1539
1576
|
//#endregion
|
|
1540
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1577
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/list/ComboboxList.mjs
|
|
1541
1578
|
/**
|
|
1542
1579
|
* A list container for the items.
|
|
1543
1580
|
* Renders a `<div>` element.
|
|
@@ -1595,12 +1632,6 @@ const ComboboxList = /*#__PURE__*/ React$1.forwardRef(function ComboboxList(comp
|
|
|
1595
1632
|
stopEvent(event);
|
|
1596
1633
|
clickHighlightedItem(store, activeIndex, event.nativeEvent);
|
|
1597
1634
|
}
|
|
1598
|
-
},
|
|
1599
|
-
onKeyDownCapture() {
|
|
1600
|
-
store.context.keyboardActiveRef.current = true;
|
|
1601
|
-
},
|
|
1602
|
-
onPointerMoveCapture() {
|
|
1603
|
-
store.context.keyboardActiveRef.current = false;
|
|
1604
1635
|
}
|
|
1605
1636
|
},
|
|
1606
1637
|
elementProps
|
|
@@ -1616,41 +1647,7 @@ const ComboboxList = /*#__PURE__*/ React$1.forwardRef(function ComboboxList(comp
|
|
|
1616
1647
|
});
|
|
1617
1648
|
ComboboxList.displayName = "ComboboxList";
|
|
1618
1649
|
//#endregion
|
|
1619
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1620
|
-
const LIVE_REGION_MARKER = "";
|
|
1621
|
-
function findLastTextNode(root) {
|
|
1622
|
-
const walker = root.ownerDocument.createTreeWalker(root, NodeFilter.SHOW_TEXT);
|
|
1623
|
-
let lastTextNode = null;
|
|
1624
|
-
while (walker.nextNode()) {
|
|
1625
|
-
const textNode = walker.currentNode;
|
|
1626
|
-
if (textNode.nodeValue !== "") lastTextNode = textNode;
|
|
1627
|
-
}
|
|
1628
|
-
return lastTextNode;
|
|
1629
|
-
}
|
|
1630
|
-
function useInitialLiveRegionTextMutation() {
|
|
1631
|
-
const timeout = useTimeout();
|
|
1632
|
-
const rootRef = React$1.useRef(null);
|
|
1633
|
-
React$1.useEffect(() => {
|
|
1634
|
-
if (ios) return;
|
|
1635
|
-
const root = rootRef.current;
|
|
1636
|
-
if (root == null) return;
|
|
1637
|
-
const textNode = findLastTextNode(root);
|
|
1638
|
-
if (textNode == null) return;
|
|
1639
|
-
const originalValue = textNode.data;
|
|
1640
|
-
const markedValue = `${originalValue}${LIVE_REGION_MARKER}`;
|
|
1641
|
-
textNode.nodeValue = markedValue;
|
|
1642
|
-
timeout.start(200, () => {
|
|
1643
|
-
if (textNode.nodeValue === markedValue) textNode.nodeValue = originalValue;
|
|
1644
|
-
});
|
|
1645
|
-
return () => {
|
|
1646
|
-
timeout.clear();
|
|
1647
|
-
if (textNode.nodeValue === markedValue) textNode.nodeValue = originalValue;
|
|
1648
|
-
};
|
|
1649
|
-
}, [rootRef, timeout]);
|
|
1650
|
-
return rootRef;
|
|
1651
|
-
}
|
|
1652
|
-
//#endregion
|
|
1653
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.8.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/group/ComboboxGroupContext.mjs
|
|
1650
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/group/ComboboxGroupContext.mjs
|
|
1654
1651
|
const ComboboxGroupContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
1655
1652
|
ComboboxGroupContext.displayName = "ComboboxGroupContext";
|
|
1656
1653
|
function useComboboxGroupContext() {
|
|
@@ -1659,7 +1656,7 @@ function useComboboxGroupContext() {
|
|
|
1659
1656
|
return context;
|
|
1660
1657
|
}
|
|
1661
1658
|
//#endregion
|
|
1662
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1659
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/group/ComboboxGroup.mjs
|
|
1663
1660
|
/**
|
|
1664
1661
|
* Groups related items with the corresponding label.
|
|
1665
1662
|
* Renders a `<div>` element.
|
|
@@ -1698,7 +1695,7 @@ const ComboboxGroup = /*#__PURE__*/ React$1.forwardRef(function ComboboxGroup(co
|
|
|
1698
1695
|
});
|
|
1699
1696
|
ComboboxGroup.displayName = "ComboboxGroup";
|
|
1700
1697
|
//#endregion
|
|
1701
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1698
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/group-label/ComboboxGroupLabel.mjs
|
|
1702
1699
|
/**
|
|
1703
1700
|
* An accessible label that is automatically associated with its parent group.
|
|
1704
1701
|
* Renders a `<div>` element.
|
|
@@ -1725,7 +1722,7 @@ const ComboboxGroupLabel = /*#__PURE__*/ React$1.forwardRef(function ComboboxGro
|
|
|
1725
1722
|
});
|
|
1726
1723
|
ComboboxGroupLabel.displayName = "ComboboxGroupLabel";
|
|
1727
1724
|
//#endregion
|
|
1728
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1725
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/item/ComboboxItemContext.mjs
|
|
1729
1726
|
const ComboboxItemContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
1730
1727
|
ComboboxItemContext.displayName = "ComboboxItemContext";
|
|
1731
1728
|
function useComboboxItemContext() {
|
|
@@ -1734,14 +1731,14 @@ function useComboboxItemContext() {
|
|
|
1734
1731
|
return context;
|
|
1735
1732
|
}
|
|
1736
1733
|
//#endregion
|
|
1737
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1734
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/row/ComboboxRowContext.mjs
|
|
1738
1735
|
const ComboboxRowContext = /*#__PURE__*/ React$1.createContext(false);
|
|
1739
1736
|
ComboboxRowContext.displayName = "ComboboxRowContext";
|
|
1740
1737
|
function useComboboxRowContext() {
|
|
1741
1738
|
return React$1.useContext(ComboboxRowContext);
|
|
1742
1739
|
}
|
|
1743
1740
|
//#endregion
|
|
1744
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1741
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/item/ComboboxItem.mjs
|
|
1745
1742
|
function ComboboxItemInner(props) {
|
|
1746
1743
|
const { componentProps, forwardedRef, virtualized, indexFromFilter } = props;
|
|
1747
1744
|
const { render, className, style, value: itemValue = null, index: indexProp, disabled: disabledProp = false, nativeButton = false, ...elementProps } = componentProps;
|
|
@@ -1754,18 +1751,13 @@ function ComboboxItemInner(props) {
|
|
|
1754
1751
|
const store = useComboboxRootContext();
|
|
1755
1752
|
const isRow = useComboboxRowContext();
|
|
1756
1753
|
const hasItems = useComboboxHasItemsContext();
|
|
1757
|
-
const selectionMode = store.useState("
|
|
1758
|
-
const rootDisabled = store.useState("disabled");
|
|
1759
|
-
const readOnly = store.useState("readOnly");
|
|
1760
|
-
const isItemEqualToValue = store.useState("isItemEqualToValue");
|
|
1754
|
+
const { props: itemProps, id: rootId, selectionMode, disabled: rootDisabled, readOnly, isItemEqualToValue } = store.useState("itemRoot");
|
|
1761
1755
|
const disabled = rootDisabled || disabledProp;
|
|
1762
1756
|
const selectable = selectionMode !== "none";
|
|
1763
1757
|
const index = indexProp ?? indexFromFilter ?? listItem.index;
|
|
1764
1758
|
const hasRegistered = index !== -1;
|
|
1765
|
-
const rootId = store.useState("id");
|
|
1766
1759
|
const highlighted = store.useState("isActive", index);
|
|
1767
1760
|
const matchesSelectedValue = store.useState("isSelected", itemValue);
|
|
1768
|
-
const itemProps = store.useState("itemProps");
|
|
1769
1761
|
const itemRef = React$1.useRef(null);
|
|
1770
1762
|
const id = rootId != null && hasRegistered ? `${rootId}-${index}` : void 0;
|
|
1771
1763
|
const selected = matchesSelectedValue && selectable;
|
|
@@ -1920,7 +1912,7 @@ const ComboboxItem = /*#__PURE__*/ React$1.memo(/*#__PURE__*/ React$1.forwardRef
|
|
|
1920
1912
|
}));
|
|
1921
1913
|
ComboboxItem.displayName = "ComboboxItem";
|
|
1922
1914
|
//#endregion
|
|
1923
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
1915
|
+
//#region ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.4.1_@types+react@19.2.4_date-fns@4.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/react/combobox/empty/ComboboxEmpty.mjs
|
|
1924
1916
|
/**
|
|
1925
1917
|
* Renders its children only when the list is empty.
|
|
1926
1918
|
* Requires the `items` prop on the root component.
|
|
@@ -1955,4 +1947,4 @@ const ComboboxEmpty = /*#__PURE__*/ React$1.forwardRef(function ComboboxEmpty(co
|
|
|
1955
1947
|
});
|
|
1956
1948
|
ComboboxEmpty.displayName = "ComboboxEmpty";
|
|
1957
1949
|
//#endregion
|
|
1958
|
-
export { useComboboxFilter as C, useComboboxFloatingContext as D, useComboboxDerivedItemsContext as E, useComboboxInputValueContext as O, findCollectionItem as S, getComboboxPopupId as T,
|
|
1950
|
+
export { useComboboxFilter as C, useComboboxFloatingContext as D, useComboboxDerivedItemsContext as E, useComboboxInputValueContext as O, findCollectionItem as S, getComboboxPopupId as T, ComboboxChipsContext as _, ComboboxGroupLabel as a, ComboboxInputDataAttributes_exports as b, ComboboxCollection as c, getIndexAfterChipRemoval as d, useListEmpty as f, useComboboxPositionerContext as g, ComboboxPositionerContext as h, useComboboxItemContext as i, useComboboxRootContext as k, ComboboxInput as l, ComboboxInternalDismissButton as m, ComboboxItem as n, ComboboxGroup as o, usePopupSide as p, ComboboxRowContext as r, ComboboxList as s, ComboboxEmpty as t, getChipNavigationKeys as u, useComboboxChipsContext as v, useCoreFilter as w, AriaCombobox as x, triggerStateAttributesMapping as y };
|