@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.
Files changed (394) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/ai/component-registry.json +231 -43
  3. package/ai/component-registry.md +774 -166
  4. package/ai/schemas.ts +22 -3
  5. package/dist/.build-complete +1 -1
  6. package/dist/ai/schemas.d.ts +51 -2
  7. package/dist/ai/schemas.js +32 -1
  8. package/dist/blocks-source/delete-resource/delete-resource.test.tsx +21 -0
  9. package/dist/blocks-source/delete-resource/delete-resource.tsx +14 -8
  10. package/dist/chunks/{index.parts-h7wtkrxpz4m8eqn9.js → AccordionPanelDataAttributes-mmrmkky28u1010l5.js} +150 -61
  11. package/dist/chunks/{AlertDialogTrigger-dkihgpvj12si73w3.js → AlertDialogTrigger-l1r1gbxcky1xq889.js} +4 -4
  12. package/dist/chunks/{index.parts-kgiqby97w6tn6jw7.js → AlertDialogTriggerDataAttributes-go49qon601catpgn.js} +24 -9
  13. package/dist/chunks/{AutocompleteItem-drxau0wm3735nihq.js → AutocompleteItem-36ysm5nwbsd0snr6.js} +5 -5
  14. package/dist/chunks/AutocompleteItemDataAttributes-n5rigpf0s9ylnwi3.js +232 -0
  15. package/dist/chunks/{AutocompleteSeparator-hqtaxxxye1rfezfg.js → AutocompleteSeparator-bnqeqh7i983d92gx.js} +2 -2
  16. package/dist/chunks/{index.parts-b9zmk3ta77w8dy9f.js → AvatarImageDataAttributes-jw70u384c83lhqfp.js} +39 -15
  17. package/dist/chunks/{Button-ccl5r1xlbe3gh998.js → ButtonDataAttributes-nceand1fi7lvnmkb.js} +12 -4
  18. package/dist/chunks/{CSPContext-ctyrgg64girv38ls.js → CSPContext-iv67i0qqhihg8mur.js} +1 -1
  19. package/dist/chunks/{CSPProvider-p9ensukmowjpkgc0.js → CSPProvider-finau3a8hnc9o2td.js} +2 -2
  20. package/dist/chunks/{CheckboxGroup-knvypu2d1s0iz86k.js → CheckboxGroup-581mfftu99wvjb3a.js} +18 -23
  21. package/dist/chunks/{CheckboxGroupContext-lgc9dwxou662i6zo.js → CheckboxGroupContext-jf1bt3znvqlhrql6.js} +1 -1
  22. package/dist/chunks/CheckboxGroupDataAttributes-nskqcxts64symbvf.js +10 -0
  23. package/dist/chunks/{CheckboxIndicator-n982pbktfkxsa5zz.js → CheckboxIndicator-i13dmhacfgqo328c.js} +86 -29
  24. package/dist/chunks/CheckboxIndicatorDataAttributes-3p29ju7nkczz1l2y.js +85 -0
  25. package/dist/chunks/{CollapsiblePanel-jm0ni90g7wz7ppkc.js → CollapsiblePanel-md5suzmtnsyz1kab.js} +17 -13
  26. package/dist/chunks/CollapsibleRootDataAttributes-bynmgxmt4jikaoha.js +36 -0
  27. package/dist/chunks/{ComboboxClear-c2kvjkh9yc6xfl38.js → ComboboxClear-ioejwvtnmqanph88.js} +31 -24
  28. package/dist/chunks/ComboboxClearDataAttributes-lo0enstdmrqpywsy.js +402 -0
  29. package/dist/chunks/{ComboboxEmpty-o0q20j2l2syar9kx.js → ComboboxEmpty-gkt1y5b81a4983v7.js} +207 -215
  30. package/dist/chunks/ComboboxItemIndicatorDataAttributes-iku7l9ig0ve09an4.js +259 -0
  31. package/dist/chunks/{ComboboxPopup-oxgggc2wxy6bfmru.js → ComboboxPopup-n8cbgys9st446j1i.js} +15 -15
  32. package/dist/chunks/{CompositeItem-hzuk5x3e5zsfgnyj.js → CompositeItem-kepwg8jtvgap06o6.js} +3 -3
  33. package/dist/chunks/{CompositeList-lbr4enu6yzek7oa9.js → CompositeList-gwuaf6d14s4da0j0.js} +9 -7
  34. package/dist/chunks/{CompositeListContext-m9frxn53kkmr23d0.js → CompositeListContext-bejvmlu39hsfjzgu.js} +1 -1
  35. package/dist/chunks/{CompositeRoot-g72lchaerolf5dc9.js → CompositeRoot-dnlkb27uw4g5aocf.js} +12 -12
  36. package/dist/chunks/{CompositeRootContext-ixz4myr7uwvavx6w.js → CompositeRootContext-obm54j7y6s86qwhq.js} +1 -1
  37. package/dist/chunks/{index.parts-d4wim8mcnl9a2n9d.js → ContextMenuTriggerDataAttributes-xwozccynxv6pk5s0.js} +29 -15
  38. package/dist/chunks/DialogBackdropDataAttributes-jwqxd6jla03xh8ke.js +28 -0
  39. package/dist/chunks/{DialogHandle-klk7uo1q1y8ghyx5.js → DialogCloseDataAttributes-12m7gwh3i6fd7d05.js} +14 -6
  40. package/dist/chunks/{DialogPopup-olsvyf7ulia6ekb1.js → DialogPopup-n6w7b389e7bs0472.js} +13 -11
  41. package/dist/chunks/{DialogRoot-hl3genvzl9h8ridm.js → DialogRoot-hkkqj7vcjpkx8qk8.js} +3 -3
  42. package/dist/chunks/{DialogTrigger-g44cuem7n4wez533.js → DialogTrigger-kpugfkbfswqrus4u.js} +16 -16
  43. package/dist/chunks/DialogTriggerDataAttributes-bp9bu13cvwuddh5b.js +18 -0
  44. package/dist/chunks/DialogViewportDataAttributes-mma9emv1edsc1vuy.js +78 -0
  45. package/dist/chunks/{DirectionContext-opvqcb794uxicri4.js → DirectionContext-kpby968j030psajn.js} +1 -1
  46. package/dist/chunks/{DirectionProvider-er2gibtc9a1f0kep.js → DirectionProvider-cg0pwzgdyg6r73r6.js} +2 -2
  47. package/dist/chunks/{DrawerViewport-eqzib92gukr4qap3.js → DrawerViewport-mzqpwvqtylnad8ib.js} +110 -61
  48. package/dist/chunks/{index.parts-jknln7yxhdokkvd6.js → DrawerViewportDataAttributes-dd9593zm9fl9vcsm.js} +166 -85
  49. package/dist/chunks/{FieldControl-c5sahhd5xg3nr2x7.js → FieldControl-hjj2tcqruozadgdi.js} +18 -27
  50. package/dist/chunks/{FieldDescription-ldfiii5bvssfib3d.js → FieldDescription-orix2gepowrp5ni4.js} +11 -11
  51. package/dist/chunks/{FieldItemContext-kpsmvqm5a98m8zpx.js → FieldItemContext-ohsf45im6xhpay40.js} +1 -1
  52. package/dist/chunks/FieldItemDataAttributes-m52srx69pispz49i.js +283 -0
  53. package/dist/chunks/{FieldLabel-j9teqs9f1exqv346.js → FieldLabel-fjc7tdis7rcbq8o4.js} +17 -15
  54. package/dist/chunks/{FieldsetLegend-jyy40ylt2ynkvgob.js → FieldsetLegend-gl9z9eezr0xg9zr7.js} +5 -5
  55. package/dist/chunks/FieldsetLegendDataAttributes-fn20251jxjqkpkxm.js +17 -0
  56. package/dist/chunks/{FieldsetRootContext-7nlstw7wronafxhw.js → FieldsetRootContext-fphwizvcm55ydg94.js} +1 -1
  57. package/dist/chunks/{FloatingPortalLite-da0wdcmem7ahkle6.js → FloatingPortalLite-j7dsy7gokbxdoe1i.js} +2 -2
  58. package/dist/chunks/{popupTriggerMap-ehv0fuhnmy59j3pn.js → FloatingRootStore-men6ufp3a2b296fh.js} +117 -119
  59. package/dist/chunks/{FloatingTree-lhdqtlu8s6m66n7l.js → FloatingTree-kiyzavvaum442o1s.js} +6 -6
  60. package/dist/chunks/{Form-fjfbann47c7ws316.js → Form-oz425k7r4abea8o4.js} +7 -7
  61. package/dist/chunks/{FormContext-bsu99v8i8pwu1yxc.js → FormContext-jv19engyccpf6xcl.js} +2 -2
  62. package/dist/chunks/{Input-irwtufp5t73pwnoj.js → Input-ozudotydd679ly63.js} +2 -2
  63. package/dist/chunks/InputDataAttributes-oy8t6q5y5t8ik02j.js +42 -0
  64. package/dist/chunks/ItemIndicator-cvf8cw5fv5l3cd8j.js +37 -0
  65. package/dist/chunks/{LabelableContext-ccxbhu73vrk089m1.js → LabelableContext-dz4wz3lu3lgqusu7.js} +37 -6
  66. package/dist/chunks/{ListboxSeparator-nfyv54r2v5qtmosj.js → ListboxSeparator-skazx18vzzj7i9zp.js} +2 -2
  67. package/dist/chunks/MenuClearDataAttributes-fo0pekd36n56mdxu.js +1645 -0
  68. package/dist/chunks/{MenuSubmenuTrigger-mbbda6ucik6nphbq.js → MenuSubmenuTrigger-hm5xbgik6aq95x35.js} +639 -281
  69. package/dist/chunks/MenuSubmenuTriggerDataAttributes-gdfxdjymgmnaxdds.js +372 -0
  70. package/dist/chunks/{MenuTrigger-disngqnt74owi30p.js → MenuTrigger-dlfvicsaggss0o9m.js} +36 -28
  71. package/dist/chunks/{Menubar-fluuxyn8c2zuz5pr.js → Menubar-ja5int05ihjj0ra4.js} +24 -14
  72. package/dist/chunks/{MenubarContext-blatefsj42br7jh8.js → MenubarContext-ooz0h08i55c8oip5.js} +1 -1
  73. package/dist/chunks/{MeterLabel-k6no448jvaidaptf.js → MeterLabel-cykbkvqys5263z05.js} +12 -12
  74. package/dist/chunks/{index.parts-gf9v1piz8xxt8ap1.js → NavigationMenuIconDataAttributes-l82pkpm61d0meqxf.js} +333 -94
  75. package/dist/chunks/{NullStore-jwgpmovsgl47g9bv.js → NullStore-my62xo2vfcfkerri.js} +7 -6
  76. package/dist/chunks/{index.parts-c1ocmbxanagpan6d.js → NumberFieldScrubAreaCursorDataAttributes-k2lsbk35svshnwf5.js} +439 -215
  77. package/dist/chunks/{index.parts-p2lcxzhh1ll3584m.js → OTPFieldInputDataAttributes-gvgtu2gg85kgjzwr.js} +173 -56
  78. package/dist/chunks/{PopoverClose-kpyt8hbqc52lnjb8.js → PopoverViewport-peh28i8q4hqfjy97.js} +135 -81
  79. package/dist/chunks/PopoverViewportDataAttributes-gplhq9d7ffp9q8u3.js +329 -0
  80. package/dist/chunks/{PrehydrationScript-j6zlrxmojrqni6b9.js → PrehydrationScript-hs2je3mndbxuts7w.js} +29 -14
  81. package/dist/chunks/{index.parts-cc0yi5vo7s4x3r9p.js → PreviewCardViewportDataAttributes-bgfwmyshey7fx6nr.js} +263 -36
  82. package/dist/chunks/{index.parts-lpafjiz853r94ydb.js → ProgressLabelDataAttributes-j8mutcz11ei0ohvj.js} +103 -22
  83. package/dist/chunks/{RadioGroup-pok1e5qbnbujrz1e.js → RadioGroup-kioqngmmuo7a1lfa.js} +37 -42
  84. package/dist/chunks/{RadioGroupContext-galfnl2el7y2krov.js → RadioGroupContext-dr6uihsj7oky0eol.js} +1 -1
  85. package/dist/chunks/RadioGroupDataAttributes-dpdr6xe4ve204qwb.js +10 -0
  86. package/dist/chunks/{RadioIndicator-jd511oajbwmyjxbg.js → RadioIndicator-bhxqih8wzv7hyrec.js} +83 -27
  87. package/dist/chunks/RadioIndicatorDataAttributes-n5yupp5psifu0d4f.js +80 -0
  88. package/dist/chunks/{ScrollAreaThumb-eed3hf0pmrblshfw.js → ScrollAreaThumb-hxig41yn4lrurd3o.js} +114 -43
  89. package/dist/chunks/ScrollAreaThumbDataAttributes-gup5wfxvqye6jj27.js +137 -0
  90. package/dist/chunks/SelectScrollUpArrowDataAttributes-fce5i1afjkb0necr.js +473 -0
  91. package/dist/chunks/{SelectSeparator-mrjooj7vmjez6fua.js → SelectSeparator-nnak70azojox8b2b.js} +249 -162
  92. package/dist/chunks/{Separator-bcm4ezllqxvtpvuj.js → Separator-fhwve0tfny3tht3a.js} +2 -2
  93. package/dist/chunks/SeparatorDataAttributes-ch6e63bas7zflw00.js +11 -0
  94. package/dist/chunks/{index.parts-j6kbr29a542ya81m.js → SliderIndicator-h1o3qbrvr8x0t4t2.js} +129 -74
  95. package/dist/chunks/SliderIndicatorDataAttributes-ff2f1cjealif5nvo.js +240 -0
  96. package/dist/chunks/{SwitchRoot-gahuqddsq1s55p8m.js → SwitchRoot-m4t2tq5zn5wibyxk.js} +74 -22
  97. package/dist/chunks/SwitchThumbDataAttributes-f95ld864on9y6ptk.js +90 -0
  98. package/dist/chunks/{TabsList-ebl0v8gu8wn28zss.js → TabsList-n5n93rxr4sy704u8.js} +48 -30
  99. package/dist/chunks/TabsListDataAttributes-e03a7kbubuf02z1l.js +183 -0
  100. package/dist/chunks/ToastArrowDataAttributes-jbnvz3kp6a35slgj.js +136 -0
  101. package/dist/chunks/{Toggle-mbshs50266z9hgxp.js → ToggleDataAttributes-jl9ojyvwgrvefke6.js} +26 -11
  102. package/dist/chunks/{ToggleGroupContext-h4v7jaf77rp2xng9.js → ToggleGroupContext-hg8zbkgqpscqhz83.js} +1 -1
  103. package/dist/chunks/{ToggleGroup-k2caz2ghv6zbzp5l.js → ToggleGroupDataAttributes-n1dwona1alvabstl.js} +30 -9
  104. package/dist/chunks/{ToolbarGroupContext-e5cg7needj0edodc.js → ToolbarGroupContext-eawva8xkxb4osbxb.js} +1 -1
  105. package/dist/chunks/{ToolbarInput-i4h95tes75w0p5y2.js → ToolbarInput-kyxl1be0p3cyuayp.js} +10 -10
  106. package/dist/chunks/ToolbarInputDataAttributes-n4a18a4km735du04.js +150 -0
  107. package/dist/chunks/{ToolbarRootContext-eqk40r8uh4h6r211.js → ToolbarRootContext-difqbj720teyt8lu.js} +1 -1
  108. package/dist/chunks/{TooltipPopup-dm4y0hbdeylzp22y.js → TooltipPopup-furysmeyb68uycbz.js} +41 -68
  109. package/dist/chunks/{TooltipProvider-h40qf9wcn0atj15v.js → TooltipProvider-hyans0ens4axh1y8.js} +5 -5
  110. package/dist/chunks/TooltipViewportDataAttributes-gkwbezdq40ssuevg.js +312 -0
  111. package/dist/chunks/{adaptiveOriginMiddleware-b8ztjthe278xq7lm.js → adaptiveOriginMiddleware-m9tqzw58wya9sdds.js} +3 -3
  112. package/dist/chunks/{addEventListener-l40nxvf06iukgvnj.js → addEventListener-ku3x23446prmd1kz.js} +1 -1
  113. package/dist/chunks/{areArraysEqual-bcx201k1x9ziizym.js → areArraysEqual-nnpg93s9g7aqcaoh.js} +1 -1
  114. package/dist/chunks/{autocomplete-m6h1pbygknrz5div.js → autocomplete-kgp17p6oz4pczxt9.js} +9 -9
  115. package/dist/chunks/{badge-dq8bx752b9dp7dst.js → badge-kyz53p7p0ng393bs.js} +2 -1
  116. package/dist/chunks/{banner-msnmqm7of2lck01x.js → banner-cpla8vqjxaulggyd.js} +3 -3
  117. package/dist/chunks/{breadcrumbs-lhi1qrdh74mb4zsx.js → breadcrumbs-oyuqwb09l08uhok2.js} +7 -16
  118. package/dist/chunks/{button-group-i9dh83xutyuxyry7.js → button-group-biv43ksvaipc3p5n.js} +2 -2
  119. package/dist/chunks/{button-pa1bq9b85hawg41a.js → button-oxy32x5w9x9az80g.js} +25 -6
  120. package/dist/chunks/{chart-kd1xd6crso2i956o.js → chart-foxl6xbubuoshfcs.js} +14 -10
  121. package/dist/chunks/{checkbox-lbo436duy7krxcsk.js → checkbox-o9627970y7c9ciqy.js} +90 -36
  122. package/dist/chunks/{clamp-jcjhzx71s6wt1rnc.js → clamp-rcpupxvhqrn8uuyf.js} +1 -1
  123. package/dist/chunks/{clipboard-text-gd6s3n1bqse9zgt8.js → clipboard-text-bhy88tgvk1o6wmyl.js} +6 -6
  124. package/dist/chunks/{cloudflare-logo-boafurcbm5ttoo4o.js → cloudflare-logo-d8mid9xr190h78cu.js} +3 -3
  125. package/dist/chunks/{code-eu8kzwqnlhoyin24.js → code-nj2nu6qzxhz6qnkk.js} +1 -1
  126. package/dist/chunks/{collapsible-l8g94on4w7qfosmn.js → collapsible-ic6813hc4yv5s5hv.js} +2 -2
  127. package/dist/chunks/{combobox-hdxtsm2gqcxxgfju.js → combobox-hwrq8etkr7p2id0x.js} +7 -7
  128. package/dist/chunks/{command-palette-crtm3nd32yjhuax1.js → command-palette-el4x943vpmid0po0.js} +8 -8
  129. package/dist/chunks/{composite-ab8dmdfoj6tmhcn1.js → composite-c11t1ok72s3cggjc.js} +1 -1
  130. package/dist/chunks/{constants-flxfd6q03phtu007.js → constants-l10cgj6pyqg27jod.js} +1 -1
  131. package/dist/chunks/{createBaseUIEventDetails-3ob3qgs95ffm8l0w.js → createBaseUIEventDetails-nvee6bghv2reeqdb.js} +3 -2
  132. package/dist/chunks/{createItems-b8n8vigg5nak6j9s.js → createItems-n07tfwx89cdoar18.js} +42 -77
  133. package/dist/chunks/{createToastManager-onmoqrmr8zo02rif.js → createToastManager-cxjmn4jx3ejh85fs.js} +86 -42
  134. package/dist/chunks/{date-picker-cotkexrpqu5tjikv.js → date-picker-oee5ehsrepnlmltj.js} +4 -2
  135. package/dist/chunks/{date-range-picker-i6d8y1yemm7x5ins.js → date-range-picker-hpx3cdu9ve01jx6d.js} +1 -1
  136. package/dist/chunks/{dialog-glpnivujociqs9lh.js → dialog-lgrwmsumwpftp2u8.js} +7 -7
  137. package/dist/chunks/{dropdown-m53ji1d66mws89wh.js → dropdown-o875yxeqod7qp871.js} +133 -30
  138. package/dist/chunks/{empty-hkvg3is3uc6dj1at.js → empty-ft85jcbs7fd5t3tn.js} +11 -12
  139. package/dist/chunks/{engine-g5egnkub1ikv3wvy.js → engine-hzmefiqm63hu0c7i.js} +2 -2
  140. package/dist/chunks/{error-f4f6l13zx6tynxmy.js → error-lbnic2b20qr3mukp.js} +2 -2
  141. package/dist/chunks/{field-oqtso1v0oszlxi0e.js → field-jzzlgre0jmrr38o2.js} +4 -4
  142. package/dist/chunks/{flow-iz8sn24h5q6q4b10.js → flow-imvwzp5p2f8y2dxm.js} +7 -3
  143. package/dist/chunks/{formatNumber-kcnmauoqxku5a84c.js → formatNumber-b4kjdsebslm2b3t0.js} +2 -2
  144. package/dist/chunks/{getCssDimensions-olosvhh5husavesv.js → getCssDimensions-gckwdrp86f73cv51.js} +1 -1
  145. package/dist/chunks/{getElementTransform-cuiqmjglkrz4db6c.js → getElementTransform-cz3jyftv0x5io95f.js} +1 -1
  146. package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
  147. package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
  148. package/dist/chunks/{getPseudoElementBounds-x7b9uqi5hdb1lq2r.js → getPseudoElementBounds-csuw8kwsoeyxd5tv.js} +2 -2
  149. package/dist/chunks/{grid-fjlo3wlpkwgw56y9.js → grid-nwiczrab3r4w0zr2.js} +1 -1
  150. package/dist/chunks/{index.parts-ftxrjoy00esi3aau.js → index.parts-db9pzsm9rrs9tp0t.js} +12 -12
  151. package/dist/chunks/{index.parts-iq66xivmdw2mouvx.js → index.parts-ggacwr0yakuemead.js} +7 -7
  152. package/dist/chunks/{index.parts-g390bxx23hdko02m.js → index.parts-pcg3pmf3yyro841t.js} +2 -2
  153. package/dist/chunks/{inertValue-e0o6qvuef83v78fk.js → inertValue-n09gkjvwwa1kddov.js} +2 -2
  154. package/dist/chunks/{inline-copy-text-gbd7jhwpor27l4rq.js → inline-copy-text-57r67slswfqvgbaf.js} +2 -2
  155. package/dist/chunks/{input-group-fjr4r5ax0x78ppax.js → input-group-n08mcd8b36wbylro.js} +5 -5
  156. package/dist/chunks/{input-h5ox92gf13ge04hp.js → input-il37wjigy2xtgdo2.js} +4 -4
  157. package/dist/chunks/{input-c8lv9ulv0kortliq.js → input-ksy1w6j1m6olz6ck.js} +3 -3
  158. package/dist/chunks/{isElementDisabled-o0j7po84u0xjuwgg.js → isElementDisabled-dyqutxpzdfppbohx.js} +1 -1
  159. package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
  160. package/dist/chunks/{label-gzyfw17u08irhdo8.js → label-hugrtzreeqk5mtqu.js} +10 -6
  161. package/dist/chunks/{layer-card-idh3863vdgprgqai.js → layer-card-mar4dya5kl1vvie6.js} +3 -3
  162. package/dist/chunks/{layer-dialog-j5ywmzs46ccg6oqy.js → layer-dialog-dwrrgv1wasrerow4.js} +71 -46
  163. package/dist/chunks/{link-cqyfjezntvr53rh7.js → link-h84bkh8eem39p529.js} +4 -4
  164. package/dist/chunks/{loader-j2v6fab8iucuxz1z.js → loader-kv5nk8j8tsuesxqo.js} +2 -6
  165. package/dist/chunks/{locale-provider-kjlnws7jln3ak0dr.js → locale-provider-e3310bgo4lnffqkd.js} +20 -8
  166. package/dist/chunks/{menubar-fjhotkmndttb8mua.js → menubar-m5pqhx7lu5z7mkks.js} +2 -2
  167. package/dist/chunks/{mergeCleanups-ix8l84cgutsbotpd.js → mergeCleanups-nw73c6jfwl5tyhw4.js} +1 -1
  168. package/dist/chunks/{meter-majprsslwmpbmkzg.js → meter-poh8jpe0qtq6mvee.js} +2 -2
  169. package/dist/chunks/{pagination-oaenm9t7ou3lmcgw.js → pagination-h24on80p2z5ugqdb.js} +3 -3
  170. package/dist/chunks/{popover-hr0bfgg48xzjggky.js → popover-nqrt3ykqv6sic8pz.js} +70 -16
  171. package/dist/chunks/{popupHandle-7ghmro8a5uerjwu5.js → popupHandle-dk3ixgc8flr7v971.js} +4 -4
  172. package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
  173. package/dist/chunks/radio-d3pkrvsldfbdefav.js +203 -0
  174. package/dist/chunks/{reason-parts-m5ishukzeux3q0pc.js → reason-parts-hssx64rmlxyn6gw5.js} +3 -2
  175. package/dist/chunks/{resolveAriaLabelledBy-nc8mdie5shy87nsb.js → resolveAriaLabelledBy-knaucrjrjwnk7tvs.js} +1 -1
  176. package/dist/chunks/resolveValueLabel-ntacnb58mhka5gg0.js +70 -0
  177. package/dist/chunks/{safePolygon-kmd5wsz26l4xtj6c.js → safePolygon-ep4133qogeu5vjf3.js} +34 -38
  178. package/dist/chunks/{safeReact-hpp4cck3y2s5jg75.js → safeReact-ek77ilng4ekk7mgz.js} +2 -2
  179. package/dist/chunks/{scrollable-b6m9ze1u7ps0q1qn.js → scrollable-k784b35i80aolmvg.js} +8 -13
  180. package/dist/chunks/{select-futox5zqr3r80y9a.js → select-ey03k4630uckf1rk.js} +8 -8
  181. package/dist/chunks/{sensitive-input-cw33yncetxk3fbrl.js → sensitive-input-lfrrtyg9n5ulq3tb.js} +23 -28
  182. package/dist/chunks/{serializeValue-ipcakiw32jb7kany.js → serializeValue-d1otz2i7h5tygrwf.js} +1 -1
  183. package/dist/chunks/{sidebar-in9zhvr473afsjpp.js → sidebar-gluq5b5oacrdk4m4.js} +23 -16
  184. package/dist/chunks/{skeleton-line-m9dyh126t9k07jvg.js → skeleton-line-gjf1fecmyy82aejz.js} +1 -1
  185. package/dist/chunks/slider-juwif2d8xa5n0429.js +87 -0
  186. package/dist/chunks/{stringifyLocale-bxsgxdnzaef2vcar.js → stringifyLocale-gbxouqj7ol627jxh.js} +1 -1
  187. package/dist/chunks/{styles-kl02oyrlnld7arja.js → styles-eb8bvypmayf578jf.js} +2 -2
  188. package/dist/chunks/{surface-irf0af2mfglu4p0j.js → surface-ginwpan1pz61l6k2.js} +2 -2
  189. package/dist/chunks/{switch-cqsvolm7h69z7vgg.js → switch-mqf1ulvle4nd6d2t.js} +4 -4
  190. package/dist/chunks/{table-yf8ul2e5nbemioi1.js → table-nysse5tiwf47gg4k.js} +2 -2
  191. package/dist/chunks/{table-of-contents-cvduqgssxdcbpagh.js → table-of-contents-gkjv9ck8etbz64ej.js} +5 -2
  192. package/dist/chunks/{tabs-gf57qqf1wcclaejq.js → tabs-mmkz7q5rofnmogwt.js} +3 -3
  193. package/dist/chunks/{tag-input-ohfybx5dbxy3houy.js → tag-input-b10gfxoob9vcizpm.js} +6 -5
  194. package/dist/chunks/{text-f1wxz183ckq7qtl7.js → text-me99rjbjkaff98gp.js} +1 -2
  195. package/dist/chunks/{toast-bzaothy2yrezh787.js → toast-b4t9rt9y1sumcmy2.js} +4 -4
  196. package/dist/chunks/{toolbar-h213d8e22yjh5cwq.js → toolbar-hov6sa3ui366f447.js} +5 -5
  197. package/dist/chunks/{tooltip-o4natsv01lpq8oq2.js → tooltip-lguwh8bjhxwnjfus.js} +3 -3
  198. package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
  199. package/dist/chunks/{useAnchoredPopupScrollLock-kp3kai20u91sdm7v.js → useAnchoredPopupScrollLock-msm8tzkewysnunut.js} +4 -4
  200. package/dist/chunks/{useAnimationFrame-0tt315hl9n3jzl86.js → useAnimationFrame-k9lqdj9quln3sd85.js} +3 -3
  201. package/dist/chunks/{useAriaLabelledBy-ox8dum59shmgypq1.js → useAriaLabelledBy-j3j9jqlr9ukyk08s.js} +7 -6
  202. package/dist/chunks/{useBaseUiId-lg1teubxudgin0w2.js → useBaseUiId-nk4k7nj9h1cy76ny.js} +2 -2
  203. package/dist/chunks/{useButton-h7s9aq1sfw6arawe.js → useButton-lklvdzuhvj22bx07.js} +14 -12
  204. package/dist/chunks/{useClick-l0p0endoxrlp0ae5.js → useClick-pcbkcc7r620v1smu.js} +12 -12
  205. package/dist/chunks/{useCollapsiblePanel-g6t146nqj521pild.js → useCollapsiblePanel-lrfsgx21ds36cwlp.js} +75 -28
  206. package/dist/chunks/{useCompositeItem-p7090ga00dpqcg5j.js → useCompositeItem-2juex3zh9gyrs8e9.js} +4 -4
  207. package/dist/chunks/{useCompositeListItem-odg6yo4h8866b37o.js → useCompositeListItem-ekwo2j2rjkggg7xj.js} +3 -3
  208. package/dist/chunks/{useControlled-lfns1ot6kwowa4t4.js → useControlled-i3srnkxy598s0au9.js} +3 -3
  209. package/dist/chunks/{useFieldValidation-e5pc8loiwzd68g4f.js → useFieldValidation-oe16jiigp971yrzr.js} +7 -7
  210. package/dist/chunks/{useFloatingRootContext-c849wtis7gx013m8.js → useFloatingRootContext-k676b6m7f80bdapd.js} +6 -6
  211. package/dist/chunks/{useFocus-lqwrnfa1svv3bcx1.js → useFocus-mn7a9t9v6fnlb4mf.js} +12 -14
  212. package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
  213. package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
  214. package/dist/chunks/{useLabel-kcggu762z3z2taeb.js → useLabel-me6zzfvkypo458pi.js} +19 -9
  215. package/dist/chunks/{useLabelableId-gqiiuqqn2k0u62r4.js → useLabelableId-bjeh6q3pgrqjb7er.js} +6 -6
  216. package/dist/chunks/{useListNavigation-3nyjs362qcau34in.js → useListNavigation-hpddbd0cc9pvt461.js} +56 -74
  217. package/dist/chunks/{useOnMount-hadwgyauanbzrvem.js → useOnMount-gxggz1m0n869s6r0.js} +2 -2
  218. package/dist/chunks/{useOpenChangeComplete-lk2gfu250t7r20c6.js → useOpenChangeComplete-edtabjwqmechsyv6.js} +10 -8
  219. package/dist/chunks/{usePopupHandleStore-hx871cmn66j0q7wz.js → usePopupHandleStore-gawjmfjf1xdgiph3.js} +2 -2
  220. package/dist/chunks/{usePopupViewport-iy5j9zawjrr3pcs0.js → usePopupViewport-l6w01iohvzloghy8.js} +28 -36
  221. package/dist/chunks/{usePositioner-k9nc7cl550bgfwzs.js → usePositioner-mzvgnazldqvy44z2.js} +41 -72
  222. package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
  223. package/dist/chunks/{usePreviousValue-io5t1pdxehw21l85.js → usePreviousValue-o6swt5tb7xhpdu4e.js} +1 -1
  224. package/dist/chunks/{useRegisterFieldControl-lvusf6vc963clx02.js → useRegisterFieldControl-m1stc9l9y4cndf0k.js} +4 -4
  225. package/dist/chunks/{useRegisteredLabelId-hw6b87h1k7kow1o2.js → useRegisteredLabelId-b7u9ygya03448zzn.js} +3 -3
  226. package/dist/chunks/{useRender-onwjigxa00uch2ip.js → useRender-h9ktka9xt4obdv6y.js} +2 -2
  227. package/dist/chunks/{useRenderDialogRoot-lddunc01twftravv.js → useRenderDialogRoot-bsqrqpc1ddau7xg4.js} +57 -20
  228. package/dist/chunks/{useRenderElement-lrvp2pwrpt5zq1zd.js → useRenderElement-nkklxbq1rp7h2kw0.js} +17 -24
  229. package/dist/chunks/{useScrollLock-buonkbwuland9wl3.js → useScrollLock-le7ajwlt7oh6fzxi.js} +68 -72
  230. package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
  231. package/dist/chunks/{useStableCallback-b1i1ghzd9k75bb85.js → useStableCallback-le5qgj6p9l04729n.js} +3 -3
  232. package/dist/chunks/{useSwipeDismiss-m1s13x9t9ey9ax3p.js → useSwipeDismiss-e8tfxzlp05p86mgb.js} +35 -54
  233. package/dist/chunks/{useTimeout-cpql3c8p250cr093.js → useTimeout-f0ayn2l2l9aop4l8.js} +3 -3
  234. package/dist/chunks/{useTransitionStatus-bwqaavnekreihom2.js → useTransitionStatus-disysoblzgk34w14.js} +9 -5
  235. package/dist/chunks/{useTriggerFocusGuards-lz7wt484xltizro4.js → useTriggerFocusGuards-dyd3hb1m8en8ct50.js} +12 -22
  236. package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
  237. package/dist/chunks/{useTypeahead-kvag4w6hu2g1kbwt.js → useTypeahead-kfdsw1ksl5bgvvzl.js} +16 -12
  238. package/dist/chunks/{useValueAsRef-o4s9ohb3aczypmnk.js → useValueAsRef-dv0tmfr1xlpzdlru.js} +3 -3
  239. package/dist/chunks/{useValueChanged-cz5wflhe8g15n6w1.js → useValueChanged-fjssa2v6d4w8y332.js} +3 -3
  240. package/dist/chunks/{utils-0i7gujfv3f3e9dqh.js → utils-o44zfmzz9z7uyj1v.js} +0 -1
  241. package/dist/chunks/{valueToPercent-d7gbqk1umostj7ch.js → valueToPercent-djk2mqnihth2uvf6.js} +1 -1
  242. package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
  243. package/dist/chunks/{vendor-utils-ecfbsk425x1bm0gh.js → vendor-utils-io8z5lsfxq8m2dcc.js} +88 -30
  244. package/dist/chunks/{visuallyHidden-nous086atnlxtf74.js → visuallyHidden-kzzs9hbe93is3rci.js} +2 -1
  245. package/dist/code.js +6 -11
  246. package/dist/components/autocomplete.d.ts +1 -1
  247. package/dist/components/autocomplete.js +1 -1
  248. package/dist/components/badge.js +1 -1
  249. package/dist/components/banner.js +1 -1
  250. package/dist/components/breadcrumbs.js +1 -1
  251. package/dist/components/button-group.js +1 -1
  252. package/dist/components/button.js +1 -1
  253. package/dist/components/chart.d.ts +1 -1
  254. package/dist/components/chart.js +1 -1
  255. package/dist/components/checkbox.d.ts +1 -1
  256. package/dist/components/checkbox.js +1 -1
  257. package/dist/components/clipboard-text.js +1 -1
  258. package/dist/components/cloudflare-logo.js +1 -1
  259. package/dist/components/code.js +1 -1
  260. package/dist/components/collapsible.js +1 -1
  261. package/dist/components/combobox.js +1 -1
  262. package/dist/components/command-palette.js +1 -1
  263. package/dist/components/date-picker.d.ts +1 -1
  264. package/dist/components/date-picker.js +1 -1
  265. package/dist/components/date-range-picker.js +1 -1
  266. package/dist/components/dialog.js +1 -1
  267. package/dist/components/dropdown.d.ts +1 -1
  268. package/dist/components/dropdown.js +1 -1
  269. package/dist/components/empty.js +1 -1
  270. package/dist/components/field.js +1 -1
  271. package/dist/components/flow.js +1 -1
  272. package/dist/components/grid.js +1 -1
  273. package/dist/components/inline-copy-text.js +1 -1
  274. package/dist/components/input-group.js +1 -1
  275. package/dist/components/input.js +3 -3
  276. package/dist/components/label.d.ts +1 -1
  277. package/dist/components/label.js +1 -1
  278. package/dist/components/layer-card.js +1 -1
  279. package/dist/components/layer-dialog.d.ts +2 -2
  280. package/dist/components/layer-dialog.js +1 -1
  281. package/dist/components/link.js +1 -1
  282. package/dist/components/loader.js +2 -2
  283. package/dist/components/menubar.js +1 -1
  284. package/dist/components/meter.js +1 -1
  285. package/dist/components/pagination.js +1 -1
  286. package/dist/components/popover.d.ts +1 -1
  287. package/dist/components/popover.js +1 -1
  288. package/dist/components/radio.d.ts +1 -1
  289. package/dist/components/radio.js +1 -1
  290. package/dist/components/select.js +1 -1
  291. package/dist/components/sensitive-input.js +1 -1
  292. package/dist/components/sidebar.d.ts +1 -1
  293. package/dist/components/sidebar.js +1 -1
  294. package/dist/components/slider.d.ts +2 -0
  295. package/dist/components/slider.js +3 -0
  296. package/dist/components/surface.js +1 -1
  297. package/dist/components/switch.js +1 -1
  298. package/dist/components/table-of-contents.js +1 -1
  299. package/dist/components/table.d.ts +1 -1
  300. package/dist/components/table.js +1 -1
  301. package/dist/components/tabs.js +1 -1
  302. package/dist/components/tag-input.js +1 -1
  303. package/dist/components/text.js +1 -1
  304. package/dist/components/toast.js +2 -2
  305. package/dist/components/toolbar.js +1 -1
  306. package/dist/components/tooltip.js +1 -1
  307. package/dist/{index-NqlNd7cQ.d.ts → index-5bJAnzUo.d.ts} +19 -7
  308. package/dist/{index-Cqrye3KD.d.ts → index-AUC5xRcO.d.ts} +64 -7
  309. package/dist/{index-C0d8uwYO.d.ts → index-BW1HVU7T.d.ts} +33 -5
  310. package/dist/index-BWe6haHU.d.ts +64 -0
  311. package/dist/{index-ChGFA5-n.d.ts → index-BvNXYn7u.d.ts} +4 -1
  312. package/dist/{index-D-y1ktn-.d.ts → index-CE09bLNb.d.ts} +5 -1
  313. package/dist/{index-bAud6rG2.d.ts → index-CU_lnxg7.d.ts} +13 -4
  314. package/dist/{index-Vj9ZzRh0.d.ts → index-DNsSKNUe.d.ts} +4 -1
  315. package/dist/{index-J1qdw9mL.d.ts → index-DjSGDESy.d.ts} +36 -2
  316. package/dist/{index-_Sl5wohy.d.ts → index-RP_rt8vB.d.ts} +1 -1
  317. package/dist/{index-Cp0aQngm.d.ts → index-T1sSoiWG.d.ts} +3 -1
  318. package/dist/{index-CtTNoYA2.d.ts → index-fsZE0vPs.d.ts} +12 -0
  319. package/dist/index.d.ts +14 -13
  320. package/dist/index.js +68 -63
  321. package/dist/{locale-provider-BLGya10h.d.ts → locale-provider-CAjVN3_0.d.ts} +6 -2
  322. package/dist/primitives/accordion.js +2 -2
  323. package/dist/primitives/alert-dialog.js +7 -2
  324. package/dist/primitives/autocomplete.js +5 -2
  325. package/dist/primitives/avatar.js +2 -2
  326. package/dist/primitives/button.js +2 -2
  327. package/dist/primitives/checkbox-group.js +3 -2
  328. package/dist/primitives/checkbox.js +3 -2
  329. package/dist/primitives/collapsible.js +4 -2
  330. package/dist/primitives/combobox.js +5 -2
  331. package/dist/primitives/context-menu.js +5 -2
  332. package/dist/primitives/csp-provider.js +1 -1
  333. package/dist/primitives/dialog.js +8 -2
  334. package/dist/primitives/direction-provider.js +2 -2
  335. package/dist/primitives/drawer.js +5 -2
  336. package/dist/primitives/field.js +3 -2
  337. package/dist/primitives/fieldset.js +2 -2
  338. package/dist/primitives/form.js +1 -1
  339. package/dist/primitives/input.js +3 -2
  340. package/dist/primitives/menu.js +5 -2
  341. package/dist/primitives/menubar.js +2 -2
  342. package/dist/primitives/meter.js +1 -1
  343. package/dist/primitives/navigation-menu.js +2 -2
  344. package/dist/primitives/number-field.js +2 -2
  345. package/dist/primitives/otp-field.js +3 -2
  346. package/dist/primitives/popover.js +2 -2
  347. package/dist/primitives/preview-card.js +2 -2
  348. package/dist/primitives/progress.js +2 -2
  349. package/dist/primitives/radio-group.js +3 -2
  350. package/dist/primitives/radio.js +3 -2
  351. package/dist/primitives/scroll-area.js +3 -2
  352. package/dist/primitives/select.js +4 -2
  353. package/dist/primitives/separator.js +3 -2
  354. package/dist/primitives/slider.js +3 -2
  355. package/dist/primitives/switch.js +3 -2
  356. package/dist/primitives/tabs.js +3 -2
  357. package/dist/primitives/toast.js +4 -2
  358. package/dist/primitives/toggle-group.js +2 -2
  359. package/dist/primitives/toggle.js +2 -2
  360. package/dist/primitives/toolbar.js +2 -2
  361. package/dist/primitives/tooltip.js +3 -2
  362. package/dist/primitives.d.ts +1 -1
  363. package/dist/primitives.js +70 -42
  364. package/dist/styles/kumo-standalone.css +1 -1
  365. package/dist/utils.d.ts +1 -1
  366. package/dist/utils.js +3 -3
  367. package/package.json +7 -3
  368. package/scripts/component-registry/discovery.ts +1 -0
  369. package/scripts/component-registry/metadata.ts +38 -0
  370. package/dist/chunks/DialogViewport-e1tqfisqexc7o9z8.js +0 -42
  371. package/dist/chunks/MenuBackdrop-ouznwyglg27bosoj.js +0 -73
  372. package/dist/chunks/index.parts-bq90erougcgrwlgk.js +0 -242
  373. package/dist/chunks/index.parts-cdxa6fwtp3lpkpp4.js +0 -11
  374. package/dist/chunks/index.parts-cl2xux9bjec6cibd.js +0 -44
  375. package/dist/chunks/index.parts-e9s1lqq3qa9l6ndm.js +0 -10
  376. package/dist/chunks/index.parts-eks3uafpskcxle6j.js +0 -99
  377. package/dist/chunks/index.parts-fbip2x29k5okvypg.js +0 -64
  378. package/dist/chunks/index.parts-fhza3s183grld7zq.js +0 -102
  379. package/dist/chunks/index.parts-hmx3qlh517ii56yi.js +0 -116
  380. package/dist/chunks/index.parts-i6gbeimeit8gzhvi.js +0 -10
  381. package/dist/chunks/index.parts-ioii4acz2bjrf6sb.js +0 -77
  382. package/dist/chunks/index.parts-jjup1zgnozoxi7ky.js +0 -140
  383. package/dist/chunks/index.parts-jpm6c0fe0gyky12m.js +0 -95
  384. package/dist/chunks/index.parts-moguar0t0u4aumou.js +0 -31
  385. package/dist/chunks/index.parts-mw0e646n3qp6v1qe.js +0 -73
  386. package/dist/chunks/index.parts-olcmo45gi8e1qma1.js +0 -10
  387. package/dist/chunks/popupStoreUtils-i0y57dvmcnqrh4pv.js +0 -444
  388. package/dist/chunks/radio-35dx7y6rjrezbjsp.js +0 -173
  389. package/dist/chunks/resolveValueLabel-hpmsash3ektitvnb.js +0 -123
  390. package/dist/chunks/useDismiss-me91ertzzz3gly12.js +0 -384
  391. package/dist/chunks/useFilteredItems-kw2za6m9bng7twr0.js +0 -181
  392. package/dist/chunks/useForcedRerendering-i3n4ms0xose8borh.js +0 -14
  393. package/dist/chunks/useId-f8w657f9yys10abm.js +0 -32
  394. package/dist/chunks/vendor-styling-da1xibnxfkjmtglr.js +0 -3631
@@ -1,41 +1,28 @@
1
1
  "use client";
2
- import { o as EMPTY_OBJECT, t as useRenderElement } from "./useRenderElement-lrvp2pwrpt5zq1zd.js";
3
- import { l as DISABLED_TRANSITIONS_STYLE } from "./popupTriggerMap-ehv0fuhnmy59j3pn.js";
4
- import { n as useIsoLayoutEffect } from "./safeReact-hpp4cck3y2s5jg75.js";
5
- import { O as popupStateMapping, v as ownerDocument } from "./vendor-utils-ecfbsk425x1bm0gh.js";
6
- import { T as isElement, _ as getSideAxis, a as size, f as getAlignment, g as getSide, h as getPaddingObject, i as shift, l as clamp, m as getAxisLength, n as limitShift, o as useFloating$1, p as getAlignmentAxis, r as offset, s as autoUpdate, t as flip, u as evaluate, w as getWindow } from "./vendor-floating-ui-fqblx3wa0r71mjoo.js";
7
- import { t as useValueAsRef } from "./useValueAsRef-o4s9ohb3aczypmnk.js";
8
- import { t as useStableCallback } from "./useStableCallback-b1i1ghzd9k75bb85.js";
9
- import { a as useFloatingTree } from "./FloatingTree-lhdqtlu8s6m66n7l.js";
10
- import { t as useFloatingRootContext } from "./useFloatingRootContext-c849wtis7gx013m8.js";
11
- import { n as useDirection } from "./DirectionContext-opvqcb794uxicri4.js";
2
+ import { n as useRenderElement, s as EMPTY_OBJECT } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
3
+ import { d as DISABLED_TRANSITIONS_STYLE } from "./FloatingRootStore-men6ufp3a2b296fh.js";
4
+ import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
5
+ import { k as popupStateMapping, v as ownerDocument } from "./vendor-utils-io8z5lsfxq8m2dcc.js";
6
+ import { T as isElement, _ as getSideAxis, a as size, f as getAlignment, g as getSide, h as getPaddingObject, i as shift, l as clamp, m as getAxisLength, n as limitShift, o as useFloating, p as getAlignmentAxis, r as offset, s as autoUpdate, t as flip, u as evaluate, w as getWindow } from "./vendor-floating-ui-fqblx3wa0r71mjoo.js";
7
+ import { t as useValueAsRef } from "./useValueAsRef-dv0tmfr1xlpzdlru.js";
8
+ import { t as useStableCallback } from "./useStableCallback-le5qgj6p9l04729n.js";
9
+ import { a as useFloatingTree } from "./FloatingTree-kiyzavvaum442o1s.js";
10
+ import { n as useDirection } from "./DirectionContext-kpby968j030psajn.js";
12
11
  import * as React$1 from "react";
13
- //#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/floating-ui-react/hooks/useFloating.mjs
12
+ //#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/useFloating.mjs
14
13
  /**
15
14
  * Provides data to position a floating element and context to add interactions.
15
+ * The caller supplies the root store, which owns the reference and floating elements.
16
16
  * @see https://floating-ui.com/docs/useFloating
17
17
  */
18
- function useFloating(options = {}) {
19
- const internalStore = useFloatingRootContext(options);
20
- return useFloatingWithStore(options, options.rootContext || internalStore);
21
- }
22
- /**
23
- * Base UI's private `useFloating` path. The caller must supply the root store, so this skips the
24
- * internal root-context hook used by the public Floating UI-compatible API.
25
- */
26
18
  function useBaseUIFloating(options) {
27
- return useFloatingWithStore(options, options.rootContext);
28
- }
29
- function useFloatingWithStore(options, store) {
30
- const { nodeId, externalTree } = options;
19
+ const { nodeId, externalTree, rootContext: store } = options;
31
20
  const referenceElement = store.useState("referenceElement");
32
21
  const floatingElement = store.useState("floatingElement");
33
22
  const domReferenceElement = store.useState("domReferenceElement");
34
23
  const open = store.useState("open");
35
24
  const floatingId = store.useState("floatingId");
36
25
  const [positionReference, setPositionReferenceRaw] = React$1.useState(null);
37
- const [localDomReference, setLocalDomReference] = React$1.useState(void 0);
38
- const [localFloatingElement, setLocalFloatingElement] = React$1.useState(void 0);
39
26
  const domReferenceRef = React$1.useRef(null);
40
27
  const tree = useFloatingTree(externalTree);
41
28
  const storeElements = React$1.useMemo(() => ({
@@ -47,18 +34,13 @@ function useFloatingWithStore(options, store) {
47
34
  floatingElement,
48
35
  domReferenceElement
49
36
  ]);
50
- const position = useFloating$1({
37
+ const position = useFloating({
51
38
  ...options,
52
39
  elements: {
53
40
  ...storeElements,
54
41
  ...positionReference && { reference: positionReference }
55
42
  }
56
43
  });
57
- const localDomReferenceElement = isElement(localDomReference) ? localDomReference : null;
58
- const syncedFloatingElement = localFloatingElement === void 0 ? store.state.floatingElement : localFloatingElement;
59
- store.useSyncedValue("referenceElement", localDomReference ?? null);
60
- store.useSyncedValue("domReferenceElement", localDomReference === void 0 ? domReferenceElement : localDomReferenceElement);
61
- store.useSyncedValue("floatingElement", syncedFloatingElement);
62
44
  const setPositionReference = React$1.useCallback((node) => {
63
45
  const computedPositionReference = isElement(node) ? {
64
46
  getBoundingClientRect: () => node.getBoundingClientRect(),
@@ -68,29 +50,11 @@ function useFloatingWithStore(options, store) {
68
50
  setPositionReferenceRaw(computedPositionReference);
69
51
  position.refs.setReference(computedPositionReference);
70
52
  }, [position.refs]);
71
- const setReference = React$1.useCallback((node) => {
72
- if (isElement(node) || node === null) {
73
- domReferenceRef.current = node;
74
- setLocalDomReference(node);
75
- }
76
- if (isElement(position.refs.reference.current) || position.refs.reference.current === null || node !== null && !isElement(node)) position.refs.setReference(node);
77
- }, [position.refs, setLocalDomReference]);
78
- const setFloating = React$1.useCallback((node) => {
79
- setLocalFloatingElement(node);
80
- position.refs.setFloating(node);
81
- }, [position.refs]);
82
53
  const refs = React$1.useMemo(() => ({
83
54
  ...position.refs,
84
- setReference,
85
- setFloating,
86
55
  setPositionReference,
87
56
  domReference: domReferenceRef
88
- }), [
89
- position.refs,
90
- setReference,
91
- setFloating,
92
- setPositionReference
93
- ]);
57
+ }), [position.refs, setPositionReference]);
94
58
  const elements = React$1.useMemo(() => ({
95
59
  ...position.elements,
96
60
  domReference: domReferenceElement
@@ -138,17 +102,17 @@ function useFloatingWithStore(options, store) {
138
102
  ]);
139
103
  }
140
104
  //#endregion
141
- //#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/floating-ui-react/middleware/arrow.mjs
105
+ //#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/middleware/arrow.mjs
142
106
  /**
143
- * Fork of the original `arrow` middleware from Floating UI that allows
144
- * configuring the offset parent.
107
+ * Fork of the original `arrow` middleware from Floating UI that always uses the floating element
108
+ * as the arrow's offset parent.
145
109
  */
146
110
  const baseArrow = (options) => ({
147
111
  name: "arrow",
148
112
  options,
149
113
  async fn(state) {
150
114
  const { x, y, placement, rects, platform, elements, middlewareData } = state;
151
- const { element, padding = 0, offsetParent = "real" } = evaluate(options, state) || {};
115
+ const { element, padding = 0 } = evaluate(options, state) || {};
152
116
  if (element == null) return {};
153
117
  const paddingObject = getPaddingObject(padding);
154
118
  const coords = {
@@ -164,9 +128,7 @@ const baseArrow = (options) => ({
164
128
  const clientProp = isYAxis ? "clientHeight" : "clientWidth";
165
129
  const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
166
130
  const startDiff = coords[axis] - rects.reference[axis];
167
- const arrowOffsetParent = offsetParent === "real" ? await platform.getOffsetParent?.(element) : elements.floating;
168
- let clientSize = elements.floating[clientProp] || rects.floating[length];
169
- if (!clientSize || !await platform.isElement?.(arrowOffsetParent)) clientSize = elements.floating[clientProp] || rects.floating[length];
131
+ const clientSize = elements.floating[clientProp] || rects.floating[length];
170
132
  const centerToReference = endDiff / 2 - startDiff / 2;
171
133
  const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
172
134
  const minPadding = Math.min(paddingObject[minProp], largestPossiblePadding);
@@ -203,7 +165,7 @@ const arrow = (options, deps) => {
203
165
  };
204
166
  };
205
167
  //#endregion
206
- //#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/utils/hideMiddleware.mjs
168
+ //#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/utils/hideMiddleware.mjs
207
169
  const hide = {
208
170
  name: "hide",
209
171
  async fn(state) {
@@ -214,13 +176,13 @@ const hide = {
214
176
  }
215
177
  };
216
178
  //#endregion
217
- //#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/utils/adaptiveOriginConstants.mjs
179
+ //#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/utils/adaptiveOriginConstants.mjs
218
180
  const DEFAULT_SIDES = {
219
181
  sideX: "left",
220
182
  sideY: "top"
221
183
  };
222
184
  //#endregion
223
- //#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/utils/CommonPositionerCssVars.mjs
185
+ //#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/utils/CommonPositionerCssVars.mjs
224
186
  /**
225
187
  * The available width between the trigger and the edge of the viewport.
226
188
  * @type {number}
@@ -259,7 +221,7 @@ const positionerWidth = "--positioner-width";
259
221
  */
260
222
  const positionerHeight = "--positioner-height";
261
223
  //#endregion
262
- //#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/internals/useAnchorPositioning.mjs
224
+ //#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/internals/useAnchorPositioning.mjs
263
225
  const AVAILABLE_WIDTH_VAR = availableWidth;
264
226
  const AVAILABLE_HEIGHT_VAR = availableHeight;
265
227
  function getLogicalSide(sideParam, renderedSide, isRtl) {
@@ -295,8 +257,6 @@ function useAnchorPositioning(params) {
295
257
  }
296
258
  function useAnchorPositioningWithHook(params, useFloatingHook) {
297
259
  const { anchor, positionMethod = "absolute", side: sideParam = "bottom", sideOffset = 0, align = "center", alignOffset = 0, collisionBoundary, collisionPadding: collisionPaddingParam = 5, sticky = false, arrowPadding = 5, disableAnchorTracking = false, inline: inlineMiddleware, keepMounted = false, floatingRootContext, mounted, collisionAvoidance, shift: shift$1, nodeId, adaptiveOrigin, lazyFlip = false, externalTree } = params;
298
- const [mountSide, setMountSide] = React$1.useState(null);
299
- if (!mounted && mountSide !== null) setMountSide(null);
300
260
  const collisionAvoidanceSide = collisionAvoidance.side || "flip";
301
261
  const collisionAvoidanceAlign = collisionAvoidance.align || "flip";
302
262
  const collisionAvoidanceFallbackAxisSide = collisionAvoidance.fallbackAxisSide || "end";
@@ -308,6 +268,11 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
308
268
  const anchorValueRef = useValueAsRef(anchor);
309
269
  const mountedRef = useValueAsRef(mounted);
310
270
  const isRtl = useDirection() === "rtl";
271
+ const [mountPlacement, setMountPlacement] = React$1.useState(null);
272
+ if (!mounted && mountPlacement !== null) setMountPlacement(null);
273
+ const lockAlign = lazyFlip === "placement";
274
+ const mountSide = mountPlacement ? getSide(mountPlacement) : null;
275
+ const mountAlign = mountPlacement && lockAlign ? getAlignment(mountPlacement) || "center" : null;
311
276
  const side = mountSide || {
312
277
  top: "top",
313
278
  right: "right",
@@ -316,7 +281,8 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
316
281
  "inline-end": isRtl ? "left" : "right",
317
282
  "inline-start": isRtl ? "right" : "left"
318
283
  }[sideParam];
319
- const placement = align === "center" ? side : `${side}-${align}`;
284
+ const placementAlign = mountAlign || align;
285
+ const placement = placementAlign === "center" ? side : `${side}-${placementAlign}`;
320
286
  let collisionPadding = collisionPaddingParam;
321
287
  if (typeof collisionPadding === "number") collisionPadding = {
322
288
  top: collisionPadding,
@@ -396,7 +362,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
396
362
  collisionPadding,
397
363
  collisionAvoidanceAlign
398
364
  ]);
399
- if (collisionAvoidanceSide === "shift" || collisionAvoidanceAlign === "shift" || align === "center") middleware.push(shiftMiddleware, flipMiddleware);
365
+ if (collisionAvoidanceSide === "shift" || collisionAvoidanceAlign === "shift" || placementAlign === "center") middleware.push(shiftMiddleware, flipMiddleware);
400
366
  else middleware.push(flipMiddleware, shiftMiddleware);
401
367
  middleware.push(size({
402
368
  ...commonCollisionProps,
@@ -414,8 +380,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
414
380
  }
415
381
  }), arrow((state) => ({
416
382
  element: arrowRef.current || ownerDocument(state.elements.floating).createElement("div"),
417
- padding: arrowRef.current ? arrowPadding : 0,
418
- offsetParent: "floating"
383
+ padding: arrowRef.current ? arrowPadding : 0
419
384
  }), [arrowPadding]), {
420
385
  name: "transformOrigin",
421
386
  fn(state) {
@@ -533,13 +498,17 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
533
498
  const renderedAlign = getAlignment(renderedPlacement) || "center";
534
499
  const anchorHidden = Boolean(middlewareData.hide?.referenceHidden);
535
500
  useIsoLayoutEffect(() => {
536
- if (lazyFlip && mounted && isPositioned && renderedSide !== side) setMountSide(renderedSide);
501
+ if (lazyFlip && mounted && isPositioned && (renderedSide !== side || lockAlign && renderedAlign !== placementAlign)) setMountPlacement(renderedPlacement);
537
502
  }, [
538
503
  lazyFlip,
504
+ lockAlign,
539
505
  mounted,
540
506
  isPositioned,
507
+ renderedPlacement,
541
508
  renderedSide,
542
- side
509
+ renderedAlign,
510
+ side,
511
+ placementAlign
543
512
  ]);
544
513
  const arrowStyles = React$1.useMemo(() => ({
545
514
  position: "absolute",
@@ -579,12 +548,12 @@ function isRef(param) {
579
548
  return param != null && "current" in param;
580
549
  }
581
550
  //#endregion
582
- //#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/internals/getDisabledMountTransitionStyles.mjs
551
+ //#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/internals/getDisabledMountTransitionStyles.mjs
583
552
  function getDisabledMountTransitionStyles(transitionStatus) {
584
553
  return transitionStatus === "starting" ? DISABLED_TRANSITIONS_STYLE : EMPTY_OBJECT;
585
554
  }
586
555
  //#endregion
587
- //#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/utils/usePositioner.mjs
556
+ //#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/utils/usePositioner.mjs
588
557
  /**
589
558
  * Renders the shared outer Positioner element used by popup components.
590
559
  * Applies the common role, hidden state, transition styles, state attributes, and optional inert styling.
@@ -608,4 +577,4 @@ function usePositioner(componentProps, state, { styles, transitionStatus, props,
608
577
  });
609
578
  }
610
579
  //#endregion
611
- export { availableHeight as a, positionerWidth as c, useAnchorPositioningWithHook as i, DEFAULT_SIDES as l, getDisabledMountTransitionStyles as n, availableWidth as o, useAnchorPositioning as r, positionerHeight as s, usePositioner as t, useFloating as u };
580
+ export { availableHeight as a, positionerWidth as c, useAnchorPositioningWithHook as i, DEFAULT_SIDES as l, getDisabledMountTransitionStyles as n, availableWidth as o, useAnchorPositioning as r, positionerHeight as s, usePositioner as t, useBaseUIFloating as u };
@@ -0,0 +1,179 @@
1
+ "use client";
2
+ import { c as NOOP, p as useRefWithInit } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
3
+ import { t as useOnMount } from "./useOnMount-gxggz1m0n869s6r0.js";
4
+ import { n as useTimeout, t as Timeout } from "./useTimeout-f0ayn2l2l9aop4l8.js";
5
+ import { w as getWindow } from "./vendor-floating-ui-fqblx3wa0r71mjoo.js";
6
+ import { t as addEventListener } from "./addEventListener-ku3x23446prmd1kz.js";
7
+ import { t as useStableCallback } from "./useStableCallback-le5qgj6p9l04729n.js";
8
+ import * as React$1 from "react";
9
+ //#region ../../node_modules/.pnpm/@base-ui+utils@0.5.0_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/useInterval.mjs
10
+ const EMPTY = 0;
11
+ var Interval = class Interval extends Timeout {
12
+ static create() {
13
+ return new Interval();
14
+ }
15
+ /**
16
+ * Executes `fn` at `delay` interval, clearing any previously scheduled call.
17
+ */
18
+ start(delay, fn) {
19
+ this.clear();
20
+ this.currentId = setInterval(() => {
21
+ fn();
22
+ }, delay);
23
+ }
24
+ clear = () => {
25
+ if (this.currentId !== EMPTY) {
26
+ clearInterval(this.currentId);
27
+ this.currentId = EMPTY;
28
+ }
29
+ };
30
+ };
31
+ /**
32
+ * A `setInterval` with automatic cleanup and guard.
33
+ */
34
+ function useInterval() {
35
+ const timeout = useRefWithInit(Interval.create).current;
36
+ useOnMount(timeout.disposeEffect);
37
+ return timeout;
38
+ }
39
+ //#endregion
40
+ //#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/internals/usePressAndHold.mjs
41
+ const DEFAULT_TICK_DELAY = 60;
42
+ const DEFAULT_START_DELAY = 400;
43
+ const DEFAULT_SCROLL_DISTANCE = 8;
44
+ const TOUCH_TIMEOUT = 50;
45
+ const MAX_POINTER_MOVES_AFTER_TOUCH = 3;
46
+ function isTouchLikePointerType(pointerType) {
47
+ return pointerType === "touch" || pointerType === "pen";
48
+ }
49
+ /**
50
+ * Adds press-and-hold behavior to a button element.
51
+ * On pointer down, performs one action immediately, then after a delay starts
52
+ * continuous repeated actions at a fixed interval. Handles mouse, touch, and pen
53
+ * inputs correctly, including Android-specific quirks.
54
+ */
55
+ function usePressAndHold(params) {
56
+ const { disabled, tick, onStop, tickDelay = DEFAULT_TICK_DELAY, startDelay = DEFAULT_START_DELAY, scrollDistance = DEFAULT_SCROLL_DISTANCE, elementRef } = params;
57
+ const startTickTimeout = useTimeout();
58
+ const tickInterval = useInterval();
59
+ const intentionalTouchCheckTimeout = useTimeout();
60
+ const isPressedRef = React$1.useRef(false);
61
+ const movesAfterTouchRef = React$1.useRef(0);
62
+ const downCoordsRef = React$1.useRef({
63
+ x: 0,
64
+ y: 0
65
+ });
66
+ const isTouchingButtonRef = React$1.useRef(false);
67
+ const ignoreClickRef = React$1.useRef(false);
68
+ const pointerTypeRef = React$1.useRef("");
69
+ const unsubscribeFromGlobalContextMenuRef = React$1.useRef(NOOP);
70
+ const unsubscribeFromGlobalPointerUpRef = React$1.useRef(NOOP);
71
+ const stopAutoChange = useStableCallback(() => {
72
+ intentionalTouchCheckTimeout.clear();
73
+ startTickTimeout.clear();
74
+ tickInterval.clear();
75
+ unsubscribeFromGlobalContextMenuRef.current();
76
+ movesAfterTouchRef.current = 0;
77
+ });
78
+ function startAutoChange(triggerNativeEvent) {
79
+ stopAutoChange();
80
+ const element = elementRef.current;
81
+ if (!element) return;
82
+ const win = getWindow(element);
83
+ function handleContextMenu(event) {
84
+ event.preventDefault();
85
+ }
86
+ unsubscribeFromGlobalContextMenuRef.current = addEventListener(win, "contextmenu", handleContextMenu);
87
+ unsubscribeFromGlobalPointerUpRef.current();
88
+ unsubscribeFromGlobalPointerUpRef.current = addEventListener(win, "pointerup", (event) => {
89
+ isPressedRef.current = false;
90
+ stopAutoChange();
91
+ onStop?.(event);
92
+ }, { once: true });
93
+ if (!tick(triggerNativeEvent)) {
94
+ stopAutoChange();
95
+ return;
96
+ }
97
+ startTickTimeout.start(startDelay, () => {
98
+ tickInterval.start(tickDelay, () => {
99
+ if (!tick(triggerNativeEvent)) stopAutoChange();
100
+ });
101
+ });
102
+ }
103
+ React$1.useEffect(() => () => {
104
+ stopAutoChange();
105
+ unsubscribeFromGlobalPointerUpRef.current();
106
+ }, [stopAutoChange]);
107
+ React$1.useEffect(() => {
108
+ if (disabled) {
109
+ isPressedRef.current = false;
110
+ isTouchingButtonRef.current = false;
111
+ pointerTypeRef.current = "";
112
+ stopAutoChange();
113
+ }
114
+ }, [disabled, stopAutoChange]);
115
+ return {
116
+ pointerHandlers: {
117
+ onTouchStart() {
118
+ isTouchingButtonRef.current = true;
119
+ },
120
+ onTouchEnd() {
121
+ isTouchingButtonRef.current = false;
122
+ },
123
+ onPointerDown(event) {
124
+ if (event.defaultPrevented || event.button || disabled) return;
125
+ pointerTypeRef.current = event.pointerType;
126
+ ignoreClickRef.current = false;
127
+ isPressedRef.current = true;
128
+ downCoordsRef.current = {
129
+ x: event.clientX,
130
+ y: event.clientY
131
+ };
132
+ if (!isTouchLikePointerType(event.pointerType)) {
133
+ event.preventDefault();
134
+ startAutoChange(event.nativeEvent);
135
+ } else intentionalTouchCheckTimeout.start(TOUCH_TIMEOUT, () => {
136
+ const moves = movesAfterTouchRef.current;
137
+ movesAfterTouchRef.current = 0;
138
+ if (isPressedRef.current && moves < MAX_POINTER_MOVES_AFTER_TOUCH) {
139
+ startAutoChange(event.nativeEvent);
140
+ ignoreClickRef.current = true;
141
+ } else {
142
+ ignoreClickRef.current = false;
143
+ stopAutoChange();
144
+ }
145
+ });
146
+ },
147
+ onPointerUp(event) {
148
+ if (isTouchLikePointerType(event.pointerType)) isPressedRef.current = false;
149
+ },
150
+ onPointerMove(event) {
151
+ if (disabled || !isTouchLikePointerType(event.pointerType) || !isPressedRef.current) return;
152
+ movesAfterTouchRef.current += 1;
153
+ const { x, y } = downCoordsRef.current;
154
+ const dx = x - event.clientX;
155
+ const dy = y - event.clientY;
156
+ if (dx ** 2 + dy ** 2 > scrollDistance ** 2) stopAutoChange();
157
+ },
158
+ onMouseEnter(event) {
159
+ if (event.defaultPrevented || disabled || !isPressedRef.current || isTouchingButtonRef.current || isTouchLikePointerType(pointerTypeRef.current)) return;
160
+ startAutoChange(event.nativeEvent);
161
+ },
162
+ onMouseLeave() {
163
+ if (isTouchingButtonRef.current) return;
164
+ stopAutoChange();
165
+ },
166
+ onMouseUp() {
167
+ if (isTouchingButtonRef.current) return;
168
+ stopAutoChange();
169
+ }
170
+ },
171
+ shouldSkipClick: useStableCallback((event) => {
172
+ if (event.defaultPrevented) return true;
173
+ if (isTouchLikePointerType(pointerTypeRef.current)) return ignoreClickRef.current;
174
+ return event.detail !== 0;
175
+ })
176
+ };
177
+ }
178
+ //#endregion
179
+ export { usePressAndHold as n, isTouchLikePointerType as t };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as React$1 from "react";
3
- //#region ../../node_modules/.pnpm/@base-ui+utils@0.4.0_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/usePreviousValue.mjs
3
+ //#region ../../node_modules/.pnpm/@base-ui+utils@0.5.0_@types+react@19.2.4_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@base-ui/utils/usePreviousValue.mjs
4
4
  /**
5
5
  * Returns a previous value of its argument.
6
6
  * @param value Current value.
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { f as useRefWithInit } from "./useRenderElement-lrvp2pwrpt5zq1zd.js";
3
- import { n as useIsoLayoutEffect } from "./safeReact-hpp4cck3y2s5jg75.js";
4
- import { a as useFieldRootContext } from "./LabelableContext-ccxbhu73vrk089m1.js";
5
- //#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/internals/field-register-control/useRegisterFieldControl.mjs
2
+ import { p as useRefWithInit } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
3
+ import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
4
+ import { a as useFieldRootContext } from "./LabelableContext-dz4wz3lu3lgqusu7.js";
5
+ //#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/internals/field-register-control/useRegisterFieldControl.mjs
6
6
  function useRegisterFieldControl(controlRef, id, value, getFormValueOverride, enabled = true, name) {
7
7
  const { registerFieldControl } = useFieldRootContext();
8
8
  const sourceRef = useRefWithInit(() => Symbol());
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { n as useIsoLayoutEffect } from "./safeReact-hpp4cck3y2s5jg75.js";
3
- import { t as useBaseUiId } from "./useBaseUiId-lg1teubxudgin0w2.js";
4
- //#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/utils/useRegisteredLabelId.mjs
2
+ import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
3
+ import { t as useBaseUiId } from "./useBaseUiId-nk4k7nj9h1cy76ny.js";
4
+ //#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/utils/useRegisteredLabelId.mjs
5
5
  function useRegisteredLabelId(idProp, setLabelId) {
6
6
  const id = useBaseUiId(idProp);
7
7
  useIsoLayoutEffect(() => {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as useRenderElement } from "./useRenderElement-lrvp2pwrpt5zq1zd.js";
3
- //#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/use-render/useRender.mjs
2
+ import { n as useRenderElement } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
3
+ //#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/use-render/useRender.mjs
4
4
  /**
5
5
  * Renders a Base UI element.
6
6
  *
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { i as FloatingPortal, r as ReactStore, t as PopupTriggerMap } from "./popupTriggerMap-ehv0fuhnmy59j3pn.js";
3
- import { n as useIsoLayoutEffect } from "./safeReact-hpp4cck3y2s5jg75.js";
4
- import { J as getTarget, O as popupStateMapping, R as transitionStatusMapping, q as contains } from "./vendor-utils-ecfbsk425x1bm0gh.js";
5
- import { d as imperativeAction } from "./reason-parts-m5ishukzeux3q0pc.js";
6
- import { t as createChangeEventDetails } from "./createBaseUIEventDetails-3ob3qgs95ffm8l0w.js";
7
- import { t as useDismiss } from "./useDismiss-me91ertzzz3gly12.js";
8
- import { n as InternalBackdrop, t as useScrollLock } from "./useScrollLock-buonkbwuland9wl3.js";
9
- import { c as useOpenStateTransitions, d as usePopupRootSync, l as usePopupInteractionProps, n as PopupHandleAttachment, o as createPopupOpenState, s as useImplicitActiveTrigger, u as usePopupRootStore } from "./popupStoreUtils-i0y57dvmcnqrh4pv.js";
10
- import { n as createInitialPopupStoreState, r as popupStoreSelectors, t as NullStore } from "./NullStore-jwgpmovsgl47g9bv.js";
11
- import { t as inertValue } from "./inertValue-e0o6qvuef83v78fk.js";
2
+ import { t as __exportAll } from "./rolldown-runtime-hi7ti5xiuxsegr96.js";
3
+ import { a as FloatingPortal, i as PopupTriggerMap, n as ReactStore } from "./FloatingRootStore-men6ufp3a2b296fh.js";
4
+ import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
5
+ import { $ as getTarget, H as transitionStatusMapping, L as closed$1, Q as contains, R as endingStyle$1, V as startingStyle$1, k as popupStateMapping, z as open$1 } from "./vendor-utils-io8z5lsfxq8m2dcc.js";
6
+ import { t as createChangeEventDetails } from "./createBaseUIEventDetails-nvee6bghv2reeqdb.js";
7
+ import { d as imperativeAction } from "./reason-parts-hssx64rmlxyn6gw5.js";
8
+ import { c as useOpenStateTransitions, d as usePopupRootSync, g as useDismiss, l as usePopupInteractionProps, n as PopupHandleAttachment, o as createPopupOpenState, s as useImplicitActiveTrigger, u as usePopupRootStore } from "./popupStoreUtils-czfnxn051xakask5.js";
9
+ import { n as InternalBackdrop, t as useScrollLock } from "./useScrollLock-le7ajwlt7oh6fzxi.js";
10
+ import { n as createInitialPopupStoreState, r as popupStoreSelectors, t as NullStore } from "./NullStore-my62xo2vfcfkerri.js";
11
+ import { t as inertValue } from "./inertValue-n09gkjvwwa1kddov.js";
12
12
  import * as React$1 from "react";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
14
- //#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/dialog/root/DialogRootContext.mjs
14
+ //#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/dialog/root/DialogRootContext.mjs
15
15
  const DialogRootContext = /*#__PURE__*/ React$1.createContext(void 0);
16
16
  DialogRootContext.displayName = "DialogRootContext";
17
17
  function useDialogRootContext(optional) {
@@ -20,7 +20,7 @@ function useDialogRootContext(optional) {
20
20
  return store;
21
21
  }
22
22
  //#endregion
23
- //#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/dialog/portal/DialogPortalContext.mjs
23
+ //#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/dialog/portal/DialogPortalContext.mjs
24
24
  const DialogPortalContext = /*#__PURE__*/ React$1.createContext(void 0);
25
25
  DialogPortalContext.displayName = "DialogPortalContext";
26
26
  function useDialogPortalContext() {
@@ -28,12 +28,42 @@ function useDialogPortalContext() {
28
28
  if (value === void 0) throw new Error("Base UI: <Dialog.Portal> is missing.");
29
29
  return value;
30
30
  }
31
+ //#endregion
32
+ //#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/dialog/popup/DialogPopupDataAttributes.mjs
33
+ var DialogPopupDataAttributes_exports = /* @__PURE__ */ __exportAll({
34
+ closed: () => closed,
35
+ endingStyle: () => endingStyle,
36
+ nested: () => nested,
37
+ nestedDialogOpen: () => nestedDialogOpen,
38
+ open: () => open,
39
+ startingStyle: () => startingStyle
40
+ });
41
+ /**
42
+ * Present when the dialog is open.
43
+ */
44
+ const open = open$1;
45
+ /**
46
+ * Present when the dialog is closed.
47
+ */
48
+ const closed = closed$1;
49
+ /**
50
+ * Present when the dialog begins animating in.
51
+ */
52
+ const startingStyle = startingStyle$1;
53
+ /**
54
+ * Present when the dialog is animating out.
55
+ */
56
+ const endingStyle = endingStyle$1;
57
+ /**
58
+ * Present when the dialog is nested within another dialog.
59
+ */
60
+ const nested = "data-nested";
31
61
  /**
32
62
  * Present when the dialog has other open dialogs nested within it.
33
63
  */
34
64
  const nestedDialogOpen = "data-nested-dialog-open";
35
65
  //#endregion
36
- //#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/dialog/utils/stateAttributesMapping.mjs
66
+ //#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/dialog/utils/stateAttributesMapping.mjs
37
67
  /**
38
68
  * Shared by `Dialog.Popup` and `Dialog.Viewport`, whose states have the same shape.
39
69
  * `nested` is not mapped: unmapped `true` booleans already render as `data-nested`.
@@ -46,7 +76,7 @@ const dialogStateAttributesMapping = {
46
76
  }
47
77
  };
48
78
  //#endregion
49
- //#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/dialog/portal/DialogPortal.mjs
79
+ //#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/dialog/portal/DialogPortal.mjs
50
80
  /**
51
81
  * A portal element that moves the popup to a different part of the DOM.
52
82
  * By default, the portal element is appended to `<body>`.
@@ -75,9 +105,10 @@ const DialogPortal = /*#__PURE__*/ React$1.forwardRef(function DialogPortal(prop
75
105
  });
76
106
  DialogPortal.displayName = "DialogPortal";
77
107
  //#endregion
78
- //#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/dialog/root/useDialogRoot.mjs
108
+ //#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/dialog/root/useDialogRoot.mjs
79
109
  function DialogInteractions({ store, parentContext, isDrawer }) {
80
110
  const open = store.useState("open");
111
+ const mounted = store.useState("mounted");
81
112
  const disablePointerDismissal = store.useState("disablePointerDismissal");
82
113
  const modal = store.useState("modal");
83
114
  const popupElement = store.useState("popupElement");
@@ -116,13 +147,19 @@ function DialogInteractions({ store, parentContext, isDrawer }) {
116
147
  });
117
148
  useScrollLock(open && modal === true, popupElement);
118
149
  store.useContextCallback("onNestedDialogOpen", (dialogCount, drawerCount) => {
150
+ if (!store.select("open") && !store.select("mounted")) return;
119
151
  setOwnNestedOpenDialogs(dialogCount);
120
152
  setOwnNestedOpenDrawers(drawerCount);
121
153
  });
154
+ useIsoLayoutEffect(() => {
155
+ if (!open && !mounted) {
156
+ setOwnNestedOpenDialogs(0);
157
+ setOwnNestedOpenDrawers(0);
158
+ }
159
+ }, [open, mounted]);
122
160
  useIsoLayoutEffect(() => {
123
161
  if (parentContext?.onNestedDialogOpen) {
124
162
  if (open) parentContext.onNestedDialogOpen(ownNestedOpenDialogs + 1, ownNestedOpenDrawers + (isDrawer ? 1 : 0));
125
- else parentContext.onNestedDialogOpen(0, 0);
126
163
  }
127
164
  return () => {
128
165
  if (parentContext?.onNestedDialogOpen && open) parentContext.onNestedDialogOpen(0, 0);
@@ -144,7 +181,7 @@ function DialogInteractions({ store, parentContext, isDrawer }) {
144
181
  return null;
145
182
  }
146
183
  //#endregion
147
- //#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/dialog/store/DialogStore.mjs
184
+ //#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/dialog/store/DialogStore.mjs
148
185
  const selectors = {
149
186
  ...popupStoreSelectors,
150
187
  modal: (state) => state.modal,
@@ -217,7 +254,7 @@ function createInitialContext(triggerElements) {
217
254
  };
218
255
  }
219
256
  //#endregion
220
- //#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/dialog/root/useRenderDialogRoot.mjs
257
+ //#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/dialog/root/useRenderDialogRoot.mjs
221
258
  function useRenderDialogRoot(mode, props) {
222
259
  const { children, open: openProp, defaultOpen = false, onOpenChange, onOpenChangeComplete, disablePointerDismissal: disablePointerDismissalProp = false, modal: modalProp = true, actionsRef, handle, triggerId: triggerIdProp, defaultTriggerId: defaultTriggerIdProp = null } = props;
223
260
  const isDrawer = mode === "drawer";
@@ -254,7 +291,7 @@ function useRenderDialogRoot(mode, props) {
254
291
  unmount: forceUnmount,
255
292
  close: () => store.setOpen(false, createChangeEventDetails(imperativeAction))
256
293
  }), [forceUnmount, store]);
257
- const shouldRenderInteractions = open || mounted;
294
+ const shouldRenderInteractions = open || mounted || handle != null;
258
295
  return /*#__PURE__*/ jsxs(DialogRootContext.Provider, {
259
296
  value: store,
260
297
  children: [
@@ -272,4 +309,4 @@ function useRenderDialogRoot(mode, props) {
272
309
  });
273
310
  }
274
311
  //#endregion
275
- export { useDialogPortalContext as a, dialogStateAttributesMapping as i, createNullDialogStore as n, useDialogRootContext as o, DialogPortal as r, useRenderDialogRoot as t };
312
+ export { DialogPopupDataAttributes_exports as a, dialogStateAttributesMapping as i, createNullDialogStore as n, useDialogPortalContext as o, DialogPortal as r, useDialogRootContext as s, useRenderDialogRoot as t };