@cloudflare/kumo 2.13.2 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/README.md +2 -2
- package/ai/component-registry.json +792 -64
- package/ai/component-registry.md +1666 -224
- package/ai/schemas.ts +110 -3
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +360 -69
- package/dist/ai/schemas.js +216 -23
- package/dist/blocks-source/delete-resource/delete-resource.test.tsx +21 -0
- package/dist/blocks-source/delete-resource/delete-resource.tsx +14 -8
- package/dist/catalog.d.ts +11 -11
- package/dist/chunks/{index.parts-ef9111sjk9e3al87.js → AccordionPanelDataAttributes-mmrmkky28u1010l5.js} +189 -120
- package/dist/chunks/{AlertDialogTrigger-k3f8nevrda6awa4s.js → AlertDialogTrigger-l1r1gbxcky1xq889.js} +5 -5
- package/dist/chunks/AlertDialogTriggerDataAttributes-go49qon601catpgn.js +56 -0
- package/dist/chunks/{AutocompleteItem-ksckpihly1c23f3j.js → AutocompleteItem-36ysm5nwbsd0snr6.js} +17 -29
- package/dist/chunks/AutocompleteItemDataAttributes-n5rigpf0s9ylnwi3.js +232 -0
- package/dist/chunks/AutocompleteSeparator-bnqeqh7i983d92gx.js +12 -0
- package/dist/chunks/{index.parts-i4iu310eo65d7lfc.js → AvatarImageDataAttributes-jw70u384c83lhqfp.js} +111 -35
- package/dist/chunks/{Button-oczevl8g75m85ew9.js → ButtonDataAttributes-nceand1fi7lvnmkb.js} +12 -4
- package/dist/chunks/{CSPContext-guqghj8kxoukvlky.js → CSPContext-iv67i0qqhihg8mur.js} +1 -7
- package/dist/chunks/{CSPProvider-f3it239kgztzgryk.js → CSPProvider-finau3a8hnc9o2td.js} +2 -2
- package/dist/chunks/{CheckboxGroup-g5xn5gnq8ocqyoum.js → CheckboxGroup-581mfftu99wvjb3a.js} +58 -45
- package/dist/chunks/{CheckboxGroupContext-f9wox07n2u5moq4h.js → CheckboxGroupContext-jf1bt3znvqlhrql6.js} +3 -5
- package/dist/chunks/CheckboxGroupDataAttributes-nskqcxts64symbvf.js +10 -0
- package/dist/chunks/{CheckboxRoot-o5bfpje6e4p6pdgm.js → CheckboxIndicator-i13dmhacfgqo328c.js} +187 -134
- package/dist/chunks/CheckboxIndicatorDataAttributes-3p29ju7nkczz1l2y.js +85 -0
- package/dist/chunks/{CollapsiblePanel-e80n35tnsb2cskt9.js → CollapsiblePanel-md5suzmtnsyz1kab.js} +39 -38
- package/dist/chunks/CollapsibleRootDataAttributes-bynmgxmt4jikaoha.js +36 -0
- package/dist/chunks/{ComboboxClear-glm805v81uaaf3su.js → ComboboxClear-ioejwvtnmqanph88.js} +91 -99
- package/dist/chunks/ComboboxClearDataAttributes-lo0enstdmrqpywsy.js +402 -0
- package/dist/chunks/{ComboboxEmpty-hwv2kjxnf9un635e.js → ComboboxEmpty-gkt1y5b81a4983v7.js} +770 -702
- package/dist/chunks/ComboboxItemIndicatorDataAttributes-iku7l9ig0ve09an4.js +259 -0
- package/dist/chunks/{ComboboxPopup-fx7xex6g75t9u0gm.js → ComboboxPopup-n8cbgys9st446j1i.js} +57 -57
- package/dist/chunks/{CompositeItem-l7zee38lq5m224d5.js → CompositeItem-kepwg8jtvgap06o6.js} +4 -7
- package/dist/chunks/CompositeList-gwuaf6d14s4da0j0.js +182 -0
- package/dist/chunks/{CompositeListContext-oetjj2x8li8678as.js → CompositeListContext-bejvmlu39hsfjzgu.js} +2 -5
- package/dist/chunks/{CompositeRoot-l6ot8jo0umdics5m.js → CompositeRoot-dnlkb27uw4g5aocf.js} +61 -63
- package/dist/chunks/{CompositeRootContext-ofhzmevv7hadjhyy.js → CompositeRootContext-obm54j7y6s86qwhq.js} +1 -1
- package/dist/chunks/{index.parts-bv57na43ve93uz3x.js → ContextMenuTriggerDataAttributes-xwozccynxv6pk5s0.js} +82 -37
- package/dist/chunks/DialogBackdropDataAttributes-jwqxd6jla03xh8ke.js +28 -0
- package/dist/chunks/DialogCloseDataAttributes-12m7gwh3i6fd7d05.js +76 -0
- package/dist/chunks/{DialogPopup-mp89aob2nown2akq.js → DialogPopup-n6w7b389e7bs0472.js} +31 -72
- package/dist/chunks/DialogRoot-hkkqj7vcjpkx8qk8.js +16 -0
- package/dist/chunks/{DialogTrigger-cmok07cf3ks0kzug.js → DialogTrigger-kpugfkbfswqrus4u.js} +23 -20
- package/dist/chunks/DialogTriggerDataAttributes-bp9bu13cvwuddh5b.js +18 -0
- package/dist/chunks/DialogViewportDataAttributes-mma9emv1edsc1vuy.js +78 -0
- package/dist/chunks/{DirectionContext-jc1g0w645603sd6p.js → DirectionContext-kpby968j030psajn.js} +1 -4
- package/dist/chunks/{DirectionProvider-ihtfgxd5qpm6oth1.js → DirectionProvider-cg0pwzgdyg6r73r6.js} +2 -2
- package/dist/chunks/DrawerViewport-mzqpwvqtylnad8ib.js +1532 -0
- package/dist/chunks/DrawerViewportDataAttributes-dd9593zm9fl9vcsm.js +1072 -0
- package/dist/chunks/FieldControl-hjj2tcqruozadgdi.js +122 -0
- package/dist/chunks/{FieldDescription-ju607ea6gwgzga8p.js → FieldDescription-orix2gepowrp5ni4.js} +13 -12
- package/dist/chunks/{FieldItemContext-j85dc0ihramj5ezs.js → FieldItemContext-ohsf45im6xhpay40.js} +1 -1
- package/dist/chunks/FieldItemDataAttributes-m52srx69pispz49i.js +283 -0
- package/dist/chunks/FieldLabel-fjc7tdis7rcbq8o4.js +353 -0
- package/dist/chunks/{FieldsetLegend-j5piwq1giyhrr8s4.js → FieldsetLegend-gl9z9eezr0xg9zr7.js} +7 -14
- package/dist/chunks/FieldsetLegendDataAttributes-fn20251jxjqkpkxm.js +17 -0
- package/dist/chunks/{FieldsetRootContext-b633e9uzilttuyfi.js → FieldsetRootContext-fphwizvcm55ydg94.js} +1 -1
- package/dist/chunks/{FloatingPortalLite-mlt7ztrvhzepwi5y.js → FloatingPortalLite-j7dsy7gokbxdoe1i.js} +3 -3
- package/dist/chunks/{popupStateMapping-hdv48wmkzb2mqful.js → FloatingRootStore-men6ufp3a2b296fh.js} +215 -243
- package/dist/chunks/{FloatingTree-oosjswl1s9q4obvg.js → FloatingTree-kiyzavvaum442o1s.js} +6 -6
- package/dist/chunks/Form-oz425k7r4abea8o4.js +113 -0
- package/dist/chunks/{FormContext-xz0b4h7ue30fkkn1.js → FormContext-jv19engyccpf6xcl.js} +4 -3
- package/dist/chunks/{Input-ovqfhsmpfcrg5czm.js → Input-ozudotydd679ly63.js} +2 -2
- package/dist/chunks/InputDataAttributes-oy8t6q5y5t8ik02j.js +42 -0
- package/dist/chunks/ItemIndicator-cvf8cw5fv5l3cd8j.js +37 -0
- package/dist/chunks/{LabelableContext-hetas2e4y0kywfas.js → LabelableContext-dz4wz3lu3lgqusu7.js} +50 -46
- package/dist/chunks/ListboxSeparator-skazx18vzzj7i9zp.js +21 -0
- package/dist/chunks/MenuClearDataAttributes-fo0pekd36n56mdxu.js +1645 -0
- package/dist/chunks/{MenuSubmenuTrigger-fzubf5xr7ohsgsi7.js → MenuSubmenuTrigger-hm5xbgik6aq95x35.js} +917 -473
- package/dist/chunks/MenuSubmenuTriggerDataAttributes-gdfxdjymgmnaxdds.js +372 -0
- package/dist/chunks/{MenuTrigger-ntugq34yppc8ouwe.js → MenuTrigger-dlfvicsaggss0o9m.js} +45 -46
- package/dist/chunks/{Menubar-d57cyjuztbge4dvv.js → Menubar-ja5int05ihjj0ra4.js} +29 -30
- package/dist/chunks/{MenubarContext-ei2r6vu6lmsspozo.js → MenubarContext-ooz0h08i55c8oip5.js} +1 -1
- package/dist/chunks/{MeterLabel-c40b0q8r81cftkjj.js → MeterLabel-cykbkvqys5263z05.js} +15 -18
- package/dist/chunks/{index.parts-fl4zaorc97ed3keb.js → NavigationMenuIconDataAttributes-l82pkpm61d0meqxf.js} +470 -278
- package/dist/chunks/NullStore-my62xo2vfcfkerri.js +110 -0
- package/dist/chunks/{index.parts-7z8hqx6zl9yajzvs.js → NumberFieldScrubAreaCursorDataAttributes-k2lsbk35svshnwf5.js} +592 -528
- package/dist/chunks/{index.parts-bmzuqorz0tmneh7t.js → OTPFieldInputDataAttributes-gvgtu2gg85kgjzwr.js} +189 -70
- package/dist/chunks/{PopoverClose-e91n3nkw16qnyese.js → PopoverViewport-peh28i8q4hqfjy97.js} +271 -224
- package/dist/chunks/PopoverViewportDataAttributes-gplhq9d7ffp9q8u3.js +329 -0
- package/dist/chunks/PrehydrationScript-hs2je3mndbxuts7w.js +78 -0
- package/dist/chunks/{index.parts-nd3mitrhxf806lsa.js → PreviewCardViewportDataAttributes-bgfwmyshey7fx6nr.js} +369 -147
- package/dist/chunks/ProgressLabelDataAttributes-j8mutcz11ei0ohvj.js +287 -0
- package/dist/chunks/{RadioGroup-lsix4haqxfigpuv8.js → RadioGroup-kioqngmmuo7a1lfa.js} +49 -51
- package/dist/chunks/{RadioGroupContext-ft0nndmzqynjz8a2.js → RadioGroupContext-dr6uihsj7oky0eol.js} +1 -1
- package/dist/chunks/RadioGroupDataAttributes-dpdr6xe4ve204qwb.js +10 -0
- package/dist/chunks/{RadioIndicator-mwkahpwyqfc6yk1i.js → RadioIndicator-bhxqih8wzv7hyrec.js} +108 -105
- package/dist/chunks/RadioIndicatorDataAttributes-n5yupp5psifu0d4f.js +80 -0
- package/dist/chunks/{ScrollAreaThumb-kmhan411yxfo0362.js → ScrollAreaThumb-hxig41yn4lrurd3o.js} +373 -389
- package/dist/chunks/ScrollAreaThumbDataAttributes-gup5wfxvqye6jj27.js +137 -0
- package/dist/chunks/SelectScrollUpArrowDataAttributes-fce5i1afjkb0necr.js +473 -0
- package/dist/chunks/{SelectGroupLabel-m4h5hrft9043nsd1.js → SelectSeparator-nnak70azojox8b2b.js} +593 -561
- package/dist/chunks/{Separator-b8wf5rea6m1cei8k.js → Separator-fhwve0tfny3tht3a.js} +2 -2
- package/dist/chunks/SeparatorDataAttributes-ch6e63bas7zflw00.js +11 -0
- package/dist/chunks/{index.parts-hxjt52jbictdzgad.js → SliderIndicator-h1o3qbrvr8x0t4t2.js} +341 -399
- package/dist/chunks/SliderIndicatorDataAttributes-ff2f1cjealif5nvo.js +240 -0
- package/dist/chunks/{SwitchRoot-e3hnyh3mf8qd30hj.js → SwitchRoot-m4t2tq5zn5wibyxk.js} +96 -89
- package/dist/chunks/SwitchThumbDataAttributes-f95ld864on9y6ptk.js +90 -0
- package/dist/chunks/{TabsList-c0inft3sf8gi2o4v.js → TabsList-n5n93rxr4sy704u8.js} +225 -178
- package/dist/chunks/TabsListDataAttributes-e03a7kbubuf02z1l.js +183 -0
- package/dist/chunks/ToastArrowDataAttributes-jbnvz3kp6a35slgj.js +136 -0
- package/dist/chunks/{Toggle-c8p9m3puz8l4mav7.js → ToggleDataAttributes-jl9ojyvwgrvefke6.js} +28 -14
- package/dist/chunks/{ToggleGroupContext-cdk2zo6ciddpockn.js → ToggleGroupContext-hg8zbkgqpscqhz83.js} +3 -5
- package/dist/chunks/{ToggleGroup-xz9zrh7t1htn6ht4.js → ToggleGroupDataAttributes-n1dwona1alvabstl.js} +35 -39
- package/dist/chunks/{ToolbarGroupContext-nriz3632ymugfj6h.js → ToolbarGroupContext-eawva8xkxb4osbxb.js} +3 -5
- package/dist/chunks/{ToolbarInput-er5t9irqvuwcjrir.js → ToolbarInput-kyxl1be0p3cyuayp.js} +28 -33
- package/dist/chunks/ToolbarInputDataAttributes-n4a18a4km735du04.js +150 -0
- package/dist/chunks/{ToolbarRootContext-lvi96r1vvs93rhde.js → ToolbarRootContext-difqbj720teyt8lu.js} +1 -1
- package/dist/chunks/{TooltipPopup-l2zrbjavf1cqclfx.js → TooltipPopup-furysmeyb68uycbz.js} +132 -161
- package/dist/chunks/{TooltipProvider-eyhgia63aq2x4frl.js → TooltipProvider-hyans0ens4axh1y8.js} +14 -17
- package/dist/chunks/TooltipViewportDataAttributes-gkwbezdq40ssuevg.js +312 -0
- package/dist/chunks/adaptiveOriginMiddleware-m9tqzw58wya9sdds.js +51 -0
- package/dist/chunks/{addEventListener-lhqvk2ahlzjsanyg.js → addEventListener-ku3x23446prmd1kz.js} +1 -1
- package/dist/chunks/areArraysEqual-nnpg93s9g7aqcaoh.js +15 -0
- package/dist/chunks/{autocomplete-dn6g4rc8bktdl4an.js → autocomplete-kgp17p6oz4pczxt9.js} +10 -10
- package/dist/chunks/{badge-xw5ydgdjx2o5qxbl.js → badge-kyz53p7p0ng393bs.js} +4 -2
- package/dist/chunks/{banner-n1ekcvrwashsgv93.js → banner-cpla8vqjxaulggyd.js} +3 -3
- package/dist/chunks/{breadcrumbs-ffwe8tzqzmpyikq5.js → breadcrumbs-oyuqwb09l08uhok2.js} +9 -17
- package/dist/chunks/button-group-biv43ksvaipc3p5n.js +59 -0
- package/dist/chunks/{button-h36q7tklakhd38nx.js → button-oxy32x5w9x9az80g.js} +25 -6
- package/dist/chunks/{chart-qmls2klknm1pd6hs.js → chart-foxl6xbubuoshfcs.js} +945 -54
- package/dist/chunks/{checkbox-jachq6akfh72x12r.js → checkbox-o9627970y7c9ciqy.js} +90 -37
- package/dist/chunks/clamp-rcpupxvhqrn8uuyf.js +7 -0
- package/dist/chunks/{clipboard-text-ms46uaujvkjmjnng.js → clipboard-text-bhy88tgvk1o6wmyl.js} +6 -6
- package/dist/chunks/{cloudflare-logo-boafurcbm5ttoo4o.js → cloudflare-logo-d8mid9xr190h78cu.js} +3 -3
- package/dist/chunks/{code-eu8kzwqnlhoyin24.js → code-nj2nu6qzxhz6qnkk.js} +1 -1
- package/dist/chunks/{collapsible-jyajpe40jcca357s.js → collapsible-ic6813hc4yv5s5hv.js} +2 -2
- package/dist/chunks/{combobox-hxarufzb1z61xnbv.js → combobox-hwrq8etkr7p2id0x.js} +13 -12
- package/dist/chunks/{command-palette-iomiziccabzh4ogg.js → command-palette-el4x943vpmid0po0.js} +9 -9
- package/dist/chunks/{composite-o65hjzwwzb4kvl4w.js → composite-c11t1ok72s3cggjc.js} +9 -21
- package/dist/chunks/{constants-j09lrtg73n4vlx5x.js → constants-l10cgj6pyqg27jod.js} +1 -1
- package/dist/chunks/{core-kjfqbvgicl9i3abf.js → core-n0de50o00ej2ecfe.js} +69 -55
- package/dist/chunks/createBaseUIEventDetails-nvee6bghv2reeqdb.js +50 -0
- package/dist/chunks/{ComboboxChipRemove-ksyozjezihhstmbu.js → createItems-n07tfwx89cdoar18.js} +125 -104
- package/dist/chunks/{createToastManager-kv89sv0xhhsvmq54.js → createToastManager-cxjmn4jx3ejh85fs.js} +353 -361
- package/dist/chunks/{css-d3t41yfupsmz7l1a.js → css-j501gxq1am2gnikh.js} +1 -1
- package/dist/chunks/{date-picker-fwe3vllwco4u1utz.js → date-picker-oee5ehsrepnlmltj.js} +58 -51
- package/dist/chunks/{date-range-picker-iymdx410i1hpvxai.js → date-range-picker-hpx3cdu9ve01jx6d.js} +16 -15
- package/dist/chunks/{dialog-o0164pgcyc74lvp9.js → dialog-lgrwmsumwpftp2u8.js} +14 -11
- package/dist/chunks/{dropdown-d5qrzj1w1a96w2we.js → dropdown-o875yxeqod7qp871.js} +134 -31
- package/dist/chunks/empty-ft85jcbs7fd5t3tn.js +96 -0
- package/dist/chunks/{engine-io35xsj9fgfxtihg.js → engine-hzmefiqm63hu0c7i.js} +2 -2
- package/dist/chunks/{engine-javascript-d795u677f1802oaf.js → engine-javascript-e9xj8hhz9xfqhpnu.js} +200 -185
- package/dist/chunks/{engine-oniguruma-xjlw46ay321yj1av.js → engine-oniguruma-ias56ildu01gf939.js} +8 -7
- package/dist/chunks/error-lbnic2b20qr3mukp.js +6 -0
- package/dist/chunks/{field-kgz7w7yixmtpg010.js → field-jzzlgre0jmrr38o2.js} +4 -4
- package/dist/chunks/{flow-fmfb3ri8cxo7w9ci.js → flow-imvwzp5p2f8y2dxm.js} +83 -63
- package/dist/chunks/formatNumber-b4kjdsebslm2b3t0.js +21 -0
- package/dist/chunks/{getCssDimensions-mi941fe1jvztqm6b.js → getCssDimensions-gckwdrp86f73cv51.js} +2 -2
- package/dist/chunks/getElementTransform-cz3jyftv0x5io95f.js +38 -0
- package/dist/chunks/getFiniteAnimations-jwd833ybtz81j5f0.js +13 -0
- package/dist/chunks/getHighlightReason-fhc53kq6qakcct9s.js +15 -0
- package/dist/chunks/{getPseudoElementBounds-jg72lmrlwgbqhmjh.js → getPseudoElementBounds-csuw8kwsoeyxd5tv.js} +13 -4
- package/dist/chunks/{github-light-kb466scjoy42qxpu.js → github-light-hir7yctc38258pwt.js} +1 -1
- package/dist/chunks/{graphql-gtqr4wytdf0qjybo.js → graphql-n9vlzkvcp2j19p7a.js} +1 -1
- package/dist/chunks/{grid-fjlo3wlpkwgw56y9.js → grid-nwiczrab3r4w0zr2.js} +1 -1
- package/dist/chunks/{html-ijyj3f9k0foag15c.js → html-nimj6ljkkifnc9ni.js} +2 -2
- package/dist/chunks/{index.parts-lz9cnngidxppvhz7.js → index.parts-db9pzsm9rrs9tp0t.js} +27 -40
- package/dist/chunks/{index.parts-i5twygaksh86erb7.js → index.parts-ggacwr0yakuemead.js} +7 -6
- package/dist/chunks/{index.parts-kt0w73ciea6adi2i.js → index.parts-pcg3pmf3yyro841t.js} +2 -2
- package/dist/chunks/{inertValue-f9pgp32jxnm88df3.js → inertValue-n09gkjvwwa1kddov.js} +2 -2
- package/dist/chunks/inline-copy-text-57r67slswfqvgbaf.js +104 -0
- package/dist/chunks/{input-group-kshukialqry0fmra.js → input-group-n08mcd8b36wbylro.js} +11 -8
- package/dist/chunks/{input-ikfimmpl5sngvh9s.js → input-il37wjigy2xtgdo2.js} +12 -11
- package/dist/chunks/{input-pehjmr1q131tz38w.js → input-ksy1w6j1m6olz6ck.js} +3 -3
- package/dist/chunks/{isElementDisabled-ffsy1y4adxocmexb.js → isElementDisabled-dyqutxpzdfppbohx.js} +1 -1
- package/dist/chunks/itemEquality-ki3x4tzdhjlqjey6.js +56 -0
- package/dist/chunks/{label-ie2gpde0nco1avi7.js → label-hugrtzreeqk5mtqu.js} +10 -6
- package/dist/chunks/{layer-card-dnikj7emx8qeaspz.js → layer-card-mar4dya5kl1vvie6.js} +6 -4
- package/dist/chunks/layer-dialog-dwrrgv1wasrerow4.js +406 -0
- package/dist/chunks/{link-gp4swsrd3vfnvori.js → link-h84bkh8eem39p529.js} +4 -4
- package/dist/chunks/{loader-j2v6fab8iucuxz1z.js → loader-kv5nk8j8tsuesxqo.js} +2 -6
- package/dist/chunks/locale-provider-e3310bgo4lnffqkd.js +41 -0
- package/dist/chunks/{menubar-ljbsj2ulayebjyza.js → menubar-m5pqhx7lu5z7mkks.js} +14 -13
- package/dist/chunks/{mergeCleanups-pexn3wul6a4zn873.js → mergeCleanups-nw73c6jfwl5tyhw4.js} +1 -1
- package/dist/chunks/{meter-fl03ece4glrrzizj.js → meter-poh8jpe0qtq6mvee.js} +2 -2
- package/dist/chunks/{pagination-i3jewbdolgru0xnr.js → pagination-h24on80p2z5ugqdb.js} +3 -3
- package/dist/chunks/{popover-jal8z9sv176703lf.js → popover-nqrt3ykqv6sic8pz.js} +71 -17
- package/dist/chunks/popupHandle-dk3ixgc8flr7v971.js +177 -0
- package/dist/chunks/popupStoreUtils-czfnxn051xakask5.js +868 -0
- package/dist/chunks/{portal-provider-gznk6snyqj6egd6d.js → portal-provider-eveknxf26oudn7pp.js} +4 -0
- package/dist/chunks/radio-d3pkrvsldfbdefav.js +203 -0
- package/dist/chunks/reason-parts-hssx64rmlxyn6gw5.js +40 -0
- package/dist/chunks/{resolveAriaLabelledBy-h9qwvo10ftlj6t9k.js → resolveAriaLabelledBy-knaucrjrjwnk7tvs.js} +1 -1
- package/dist/chunks/{resolveValueLabel-bq3nrzord518kp9q.js → resolveValueLabel-ntacnb58mhka5gg0.js} +11 -30
- package/dist/chunks/{safePolygon-szbj0u31i6mpt36d.js → safePolygon-ep4133qogeu5vjf3.js} +51 -49
- package/dist/chunks/{safeReact-bavzz23j5tex60z2.js → safeReact-ek77ilng4ekk7mgz.js} +2 -2
- package/dist/chunks/scrollable-k784b35i80aolmvg.js +29 -0
- package/dist/chunks/{select-ndqpqpmqtmn497rq.js → select-ey03k4630uckf1rk.js} +10 -11
- package/dist/chunks/{sensitive-input-jtbp3mvdynz9wewu.js → sensitive-input-lfrrtyg9n5ulq3tb.js} +23 -28
- package/dist/chunks/{serializeValue-ci3kihruew64i36f.js → serializeValue-d1otz2i7h5tygrwf.js} +1 -1
- package/dist/chunks/{sidebar-icky50wdc2b1biw8.js → sidebar-gluq5b5oacrdk4m4.js} +120 -40
- package/dist/chunks/{skeleton-line-hlk5vauzo7xsalbo.js → skeleton-line-gjf1fecmyy82aejz.js} +9 -6
- package/dist/chunks/slider-juwif2d8xa5n0429.js +87 -0
- package/dist/chunks/{sql-do9h6435gka97c4c.js → sql-hqp2eekl7qhmxe92.js} +1 -1
- package/dist/chunks/{stringifyLocale-cl8et9xf6zon4qbs.js → stringifyLocale-gbxouqj7ol627jxh.js} +1 -1
- package/dist/chunks/{styles-dbhgpd8fm76fdfo3.js → styles-eb8bvypmayf578jf.js} +2 -2
- package/dist/chunks/{surface-ef2kr5pn7r1y3ipk.js → surface-ginwpan1pz61l6k2.js} +2 -2
- package/dist/chunks/{switch-oghrd7f6i5jqar59.js → switch-mqf1ulvle4nd6d2t.js} +4 -4
- package/dist/chunks/{table-miggde3uqhhrd5at.js → table-nysse5tiwf47gg4k.js} +2 -2
- package/dist/chunks/{table-of-contents-cvduqgssxdcbpagh.js → table-of-contents-gkjv9ck8etbz64ej.js} +5 -2
- package/dist/chunks/{tabs-mr2dsloqfe0io4a5.js → tabs-mmkz7q5rofnmogwt.js} +3 -3
- package/dist/chunks/tag-input-b10gfxoob9vcizpm.js +140 -0
- package/dist/chunks/{text-jzp4mdlr222iuzxt.js → text-me99rjbjkaff98gp.js} +4 -4
- package/dist/chunks/{toast-g435fvt74w5orxqo.js → toast-b4t9rt9y1sumcmy2.js} +8 -7
- package/dist/chunks/{toolbar-e0b61hr6ys6dmwhv.js → toolbar-hov6sa3ui366f447.js} +7 -6
- package/dist/chunks/{tooltip-jq15p5jzgfrhslpo.js → tooltip-lguwh8bjhxwnjfus.js} +4 -4
- package/dist/chunks/use-copy-feedback-gl55ghst0csvpv4j.js +55 -0
- package/dist/chunks/{useAnchoredPopupScrollLock-lbrqp1zm5z821z20.js → useAnchoredPopupScrollLock-msm8tzkewysnunut.js} +4 -4
- package/dist/chunks/{useAnimationFrame-ssgc72hyq6sg3yit.js → useAnimationFrame-k9lqdj9quln3sd85.js} +5 -4
- package/dist/chunks/{useAriaLabelledBy-bvw56m1d7czf0w3f.js → useAriaLabelledBy-j3j9jqlr9ukyk08s.js} +7 -9
- package/dist/chunks/{useBaseUiId-gqkl5ep5pn6hd0rw.js → useBaseUiId-nk4k7nj9h1cy76ny.js} +2 -2
- package/dist/chunks/{useButton-cpo6u2idqcnou6vy.js → useButton-lklvdzuhvj22bx07.js} +58 -21
- package/dist/chunks/{useClick-fvwb39qgead2jyft.js → useClick-pcbkcc7r620v1smu.js} +13 -12
- package/dist/chunks/{useCollapsiblePanel-bw63vwvq9a3sj73q.js → useCollapsiblePanel-lrfsgx21ds36cwlp.js} +116 -80
- package/dist/chunks/{useCompositeItem-esr3n4pmlssiuxuy.js → useCompositeItem-2juex3zh9gyrs8e9.js} +4 -4
- package/dist/chunks/useCompositeListItem-ekwo2j2rjkggg7xj.js +54 -0
- package/dist/chunks/{useControlled-nlx0kk1ksgk0auvi.js → useControlled-i3srnkxy598s0au9.js} +4 -4
- package/dist/chunks/useFieldValidation-oe16jiigp971yrzr.js +224 -0
- package/dist/chunks/{useFloatingRootContext-o6mk8fvodtbbm2v1.js → useFloatingRootContext-k676b6m7f80bdapd.js} +7 -7
- package/dist/chunks/{useFocus-gdfx28bn90keg8cf.js → useFocus-mn7a9t9v6fnlb4mf.js} +17 -15
- package/dist/chunks/useId-82z8yqlmc1hy1c5t.js +50 -0
- package/dist/chunks/useInitialLiveRegionTextMutation-nl2hus7zx1h7ggno.js +86 -0
- package/dist/chunks/{useLabel-nh9hf8h7o6oquqn5.js → useLabel-me6zzfvkypo458pi.js} +23 -12
- package/dist/chunks/useLabelableId-bjeh6q3pgrqjb7er.js +56 -0
- package/dist/chunks/{useListNavigation-jnxpvegv3ak857b1.js → useListNavigation-hpddbd0cc9pvt461.js} +62 -68
- package/dist/chunks/{useOnMount-j4wobeq47l3u9olo.js → useOnMount-gxggz1m0n869s6r0.js} +3 -3
- package/dist/chunks/{useOpenChangeComplete-dpkex2e23s1evpol.js → useOpenChangeComplete-edtabjwqmechsyv6.js} +51 -39
- package/dist/chunks/usePopupHandleStore-gawjmfjf1xdgiph3.js +27 -0
- package/dist/chunks/{usePopupViewport-hu0kn0ziyf1vqzrs.js → usePopupViewport-l6w01iohvzloghy8.js} +99 -75
- package/dist/chunks/{usePositioner-fz9uswhkhg22lo42.js → usePositioner-mzvgnazldqvy44z2.js} +160 -182
- package/dist/chunks/usePressAndHold-k9ynk78pgf677kpx.js +179 -0
- package/dist/chunks/{usePreviousValue-le0grv8f43vmunn1.js → usePreviousValue-o6swt5tb7xhpdu4e.js} +2 -2
- package/dist/chunks/{useRegisterFieldControl-m1rxsuvtpau2341n.js → useRegisterFieldControl-m1stc9l9y4cndf0k.js} +16 -10
- package/dist/chunks/{useRegisteredLabelId-dh83mybmzy75waje.js → useRegisteredLabelId-b7u9ygya03448zzn.js} +4 -4
- package/dist/chunks/{useRender-gtnbrp1ityffi4xf.js → useRender-h9ktka9xt4obdv6y.js} +2 -2
- package/dist/chunks/useRenderDialogRoot-bsqrqpc1ddau7xg4.js +312 -0
- package/dist/chunks/{useRenderElement-m8kc7jyuczp71mq8.js → useRenderElement-nkklxbq1rp7h2kw0.js} +59 -56
- package/dist/chunks/{useScrollLock-mpns3u42eks8hhex.js → useScrollLock-le7ajwlt7oh6fzxi.js} +108 -85
- package/dist/chunks/useSetFieldFocused-fbvj7gcv67dqfkp0.js +35 -0
- package/dist/chunks/{useStableCallback-ninxmksdjvwl6ejj.js → useStableCallback-le5qgj6p9l04729n.js} +3 -3
- package/dist/chunks/{useSwipeDismiss-bpbyw2ihsw3fw6y9.js → useSwipeDismiss-e8tfxzlp05p86mgb.js} +96 -217
- package/dist/chunks/{useTimeout-oqptmu2xmyv5ccic.js → useTimeout-f0ayn2l2l9aop4l8.js} +3 -3
- package/dist/chunks/{useTransitionStatus-ig4waxl2kervpyw4.js → useTransitionStatus-disysoblzgk34w14.js} +15 -7
- package/dist/chunks/{useTriggerFocusGuards-j8nano0pqu9dscrz.js → useTriggerFocusGuards-dyd3hb1m8en8ct50.js} +12 -21
- package/dist/chunks/useTriggerSwitchTransition-hk5j36hd5dq2ok6w.js +62 -0
- package/dist/chunks/{useTypeahead-onenwjyhgw955ygx.js → useTypeahead-kfdsw1ksl5bgvvzl.js} +20 -23
- package/dist/chunks/{useValueAsRef-lrn42zari17368c9.js → useValueAsRef-dv0tmfr1xlpzdlru.js} +3 -3
- package/dist/chunks/{useValueChanged-kthmz4wk7ywnjwtx.js → useValueChanged-fjssa2v6d4w8y332.js} +5 -8
- package/dist/chunks/{utils-0i7gujfv3f3e9dqh.js → utils-o44zfmzz9z7uyj1v.js} +0 -1
- package/dist/chunks/{valueToPercent-henpkkj3juy3ukeu.js → valueToPercent-djk2mqnihth2uvf6.js} +1 -1
- package/dist/chunks/{vendor-floating-ui-dsysdmve7iazaaes.js → vendor-floating-ui-fqblx3wa0r71mjoo.js} +87 -187
- package/dist/chunks/vendor-styling-gs32v7xt5znc8kg0.js +1167 -0
- package/dist/chunks/{vendor-utils-luqsvbyuig727bnr.js → vendor-utils-io8z5lsfxq8m2dcc.js} +191 -43
- package/dist/chunks/vesper-g839e590k3dxnwh3.js +5 -0
- package/dist/chunks/{visuallyHidden-n14xllazfozg55ox.js → visuallyHidden-kzzs9hbe93is3rci.js} +2 -1
- package/dist/chunks/{wasm-nfbosyhilcq70atf.js → wasm-cpasy0o9lsjrm39j.js} +1 -1
- package/dist/code/server.d.ts +9 -10
- package/dist/code/server.js +8 -7
- package/dist/code.d.ts +8 -8
- package/dist/code.js +23 -26
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button-group.d.ts +2 -0
- package/dist/components/button-group.js +3 -0
- package/dist/components/button.js +1 -1
- package/dist/components/chart.d.ts +2 -2
- package/dist/components/chart.js +2 -2
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/cloudflare-logo.js +1 -1
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.d.ts +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dropdown.d.ts +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/inline-copy-text.d.ts +2 -0
- package/dist/components/inline-copy-text.js +3 -0
- package/dist/components/input-group.d.ts +1 -1
- package/dist/components/input-group.js +1 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/label.d.ts +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/layer-card.js +1 -1
- package/dist/components/layer-dialog.d.ts +2 -0
- package/dist/components/layer-dialog.js +3 -0
- package/dist/components/link.d.ts +8 -9
- package/dist/components/link.js +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/menubar.js +1 -1
- package/dist/components/meter.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/radio.d.ts +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/sensitive-input.d.ts +1 -1
- package/dist/components/sensitive-input.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +3 -0
- package/dist/components/surface.js +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table-of-contents.d.ts +1 -1
- package/dist/components/table-of-contents.js +1 -1
- package/dist/components/table.d.ts +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag-input.d.ts +2 -0
- package/dist/components/tag-input.js +3 -0
- package/dist/components/text.d.ts +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toolbar.d.ts +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/{index-BXsHCLB82.d.ts → index--RbAKeBL.d.ts} +1 -1
- package/dist/index-5bJAnzUo.d.ts +156 -0
- package/dist/{index-BoPqM1Ia2.d.ts → index-AUC5xRcO.d.ts} +65 -8
- package/dist/{index-CeBzVJP8.d.ts → index-BK1tZgmP.d.ts} +1 -1
- package/dist/{index-CGbkysYW2.d.ts → index-BMe3cpLB.d.ts} +5 -4
- package/dist/{index-Di3sC6UF.d.ts → index-BW1HVU7T.d.ts} +34 -6
- package/dist/index-BWe6haHU.d.ts +64 -0
- package/dist/{index-BcRyiNd72.d.ts → index-BvNXYn7u.d.ts} +8 -1
- package/dist/index-C7RoG_CH.d.ts +57 -0
- package/dist/{index-D-y1ktn-.d.ts → index-CE09bLNb.d.ts} +5 -1
- package/dist/{index-DBlw3E9m.d.ts → index-CNJRbVxG.d.ts} +1 -1
- package/dist/{index-bAud6rG22.d.ts → index-CU_lnxg7.d.ts} +13 -4
- package/dist/index-CiwC1j1N.d.ts +37 -0
- package/dist/{index-Bw3M24Mi.d.ts → index-CrQi3QCY.d.ts} +2 -1
- package/dist/{index-Vj9ZzRh0.d.ts → index-DNsSKNUe.d.ts} +4 -1
- package/dist/{index-D97n4Bpf2.d.ts → index-DWZia2ui.d.ts} +1 -1
- package/dist/{index-J1qdw9mL.d.ts → index-DjSGDESy.d.ts} +36 -2
- package/dist/{index-_Sl5wohy2.d.ts → index-RP_rt8vB.d.ts} +1 -1
- package/dist/{index-Cp0aQngm.d.ts → index-T1sSoiWG.d.ts} +3 -1
- package/dist/{index-BlEUcijd.d.ts → index-fsZE0vPs.d.ts} +81 -1
- package/dist/index-jNWPjJl9.d.ts +75 -0
- package/dist/index.d.ts +36 -30
- package/dist/index.js +69 -59
- package/dist/{input-group-DpGSsAZy.d.ts → input-group-B3M_WRqm.d.ts} +1 -1
- package/dist/locale-provider-CAjVN3_0.d.ts +32 -0
- package/dist/{portal-provider-4AHCxYE6.d.ts → portal-provider-BAqPpq_a.d.ts} +4 -0
- package/dist/primitives/accordion.js +2 -2
- package/dist/primitives/alert-dialog.js +7 -2
- package/dist/primitives/autocomplete.js +5 -2
- package/dist/primitives/avatar.js +2 -2
- package/dist/primitives/button.js +2 -2
- package/dist/primitives/checkbox-group.js +3 -2
- package/dist/primitives/checkbox.js +3 -2
- package/dist/primitives/collapsible.js +4 -2
- package/dist/primitives/combobox.js +5 -2
- package/dist/primitives/context-menu.js +5 -2
- package/dist/primitives/csp-provider.js +1 -1
- package/dist/primitives/dialog.js +8 -2
- package/dist/primitives/direction-provider.js +2 -2
- package/dist/primitives/drawer.js +5 -2
- package/dist/primitives/field.js +3 -2
- package/dist/primitives/fieldset.js +2 -2
- package/dist/primitives/form.js +1 -1
- package/dist/primitives/input.js +3 -2
- package/dist/primitives/menu.js +5 -2
- package/dist/primitives/menubar.js +2 -2
- package/dist/primitives/meter.js +1 -1
- package/dist/primitives/navigation-menu.js +2 -2
- package/dist/primitives/number-field.js +2 -2
- package/dist/primitives/otp-field.js +3 -2
- package/dist/primitives/popover.js +2 -2
- package/dist/primitives/preview-card.js +2 -2
- package/dist/primitives/progress.js +2 -2
- package/dist/primitives/radio-group.js +3 -2
- package/dist/primitives/radio.js +3 -2
- package/dist/primitives/scroll-area.js +3 -2
- package/dist/primitives/select.js +4 -2
- package/dist/primitives/separator.js +3 -2
- package/dist/primitives/slider.js +3 -2
- package/dist/primitives/switch.js +3 -2
- package/dist/primitives/tabs.js +3 -2
- package/dist/primitives/toast.js +4 -2
- package/dist/primitives/toggle-group.js +2 -2
- package/dist/primitives/toggle.js +2 -2
- package/dist/primitives/toolbar.js +2 -2
- package/dist/primitives/tooltip.js +3 -2
- package/dist/primitives.d.ts +2 -2
- package/dist/primitives.js +70 -42
- package/dist/scripts/theme-generator/config.d.ts +4 -5
- package/dist/scripts/theme-generator/types.d.ts +12 -13
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/{index-Dzzi1o7w2.d.ts → text-B4l7S5Z0.d.ts} +60 -1
- package/dist/{tooltip-BuCo6Ki4.d.ts → tooltip-D_vhi1PN.d.ts} +1 -1
- package/dist/{types-C402rKiz.d.ts → types-C6in2C8V.d.ts} +6 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +5 -4
- package/package.json +27 -6
- package/scripts/component-registry/discovery.ts +4 -0
- package/scripts/component-registry/metadata.ts +75 -0
- package/scripts/generate-globe-land-mask.mjs +80 -0
- package/dist/chunks/CheckboxIndicator-igofmpn0wcfdqooa.js +0 -49
- package/dist/chunks/CompositeList-tx08unuok7wsl2d9.js +0 -129
- package/dist/chunks/DialogHandle-b3froel96o9fwjmm.js +0 -139
- package/dist/chunks/DialogRoot-fp7d16uxogvye294.js +0 -15
- package/dist/chunks/FieldControl-oz007qbkl6ejp7di.js +0 -104
- package/dist/chunks/FieldLabel-f6vwzm8nefzxwlh8.js +0 -558
- package/dist/chunks/Form-is7d5c1kbk1wn39s.js +0 -102
- package/dist/chunks/MenuBackdrop-dlntmavtopj7wv0l.js +0 -78
- package/dist/chunks/areArraysEqual-nlbeaqlzf4274zr3.js +0 -7
- package/dist/chunks/clamp-kvu4wtr1dw6b3pnd.js +0 -7
- package/dist/chunks/createBaseUIEventDetails-ddivuhl74gni72qn.js +0 -86
- package/dist/chunks/empty-ox60d384lkwbj5n4.js +0 -89
- package/dist/chunks/error-mm98alb8acdy93vq.js +0 -15
- package/dist/chunks/formatNumber-hjijm58g645q6a0n.js +0 -26
- package/dist/chunks/getEmptyRootContext-ekvv3rp5w16ewoqx.js +0 -18
- package/dist/chunks/index.parts-c5yto0l67i7ok5fd.js +0 -206
- package/dist/chunks/index.parts-cpviii2nt413tb8k.js +0 -30
- package/dist/chunks/index.parts-gj1k50tf9fcs7nru.js +0 -81
- package/dist/chunks/index.parts-gslyp9n88qdh38n1.js +0 -10
- package/dist/chunks/index.parts-hve0zir3biaolih0.js +0 -128
- package/dist/chunks/index.parts-i4lbjqdnhsnjtny6.js +0 -88
- package/dist/chunks/index.parts-ieuelcd4z5e0mcb7.js +0 -73
- package/dist/chunks/index.parts-j2ecf25zajyd5ia3.js +0 -11
- package/dist/chunks/index.parts-jmb5ztstw4xlfyp9.js +0 -46
- package/dist/chunks/index.parts-jv5kiaeixrjah9js.js +0 -119
- package/dist/chunks/index.parts-k7ezm98skegahepw.js +0 -2464
- package/dist/chunks/index.parts-komdbdvf823cm5jw.js +0 -41
- package/dist/chunks/index.parts-lhpuh6pw7rjcddnl.js +0 -156
- package/dist/chunks/index.parts-mr7tgwe4pgfozkt5.js +0 -245
- package/dist/chunks/index.parts-nc6jzjq91z2nye75.js +0 -11
- package/dist/chunks/index.parts-nzwjx603vcq1kryz.js +0 -127
- package/dist/chunks/index2.parts-kiwz8e3k8utvm4zb.js +0 -67
- package/dist/chunks/index2.parts-mv7x6w0p2splvf6b.js +0 -10
- package/dist/chunks/popupStoreUtils-jrxqkz5jmlijlr91.js +0 -367
- package/dist/chunks/radio-gvy6ekh5hu9awlru.js +0 -173
- package/dist/chunks/store-9b2cp7rx1dvq90fp.js +0 -88
- package/dist/chunks/useCompositeListItem-0exfww37ospqz69b.js +0 -75
- package/dist/chunks/useDismiss-kbtx2o3ruyh3jwgn.js +0 -353
- package/dist/chunks/useFilteredItems-ns32d3hpp626kt73.js +0 -183
- package/dist/chunks/useForcedRerendering-el1fbg3ib5yo0v7k.js +0 -14
- package/dist/chunks/useId-l9soitgw3e4jk5ie.js +0 -32
- package/dist/chunks/useIsHydrating-b6whcsimonagru6u.js +0 -22
- package/dist/chunks/useLabelableId-b1kwq9st3rjrtakn.js +0 -60
- package/dist/chunks/useRenderDialogRoot-hhowqeoreyr6uuc7.js +0 -262
- package/dist/chunks/vendor-styling-da1xibnxfkjmtglr.js +0 -3631
- package/dist/chunks/vesper-ho3j3gt6ilwfuc1g.js +0 -5
- package/dist/cn-DCSItmT-.d.ts +0 -5
- /package/dist/{index-AMEc1MEg2.d.ts → index-AMEc1MEg.d.ts} +0 -0
- /package/dist/{index-D2Gvly0i2.d.ts → index-D2Gvly0i.d.ts} +0 -0
- /package/dist/{index-DIV3riUd2.d.ts → index-DIV3riUd.d.ts} +0 -0
- /package/dist/{index-FCkuxSvs2.d.ts → index-FCkuxSvs.d.ts} +0 -0
package/dist/chunks/{ScrollAreaThumb-kmhan411yxfo0362.js → ScrollAreaThumb-hxig41yn4lrurd3o.js}
RENAMED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-hi7ti5xiuxsegr96.js";
|
|
3
|
+
import { c as NOOP, n as useRenderElement } from "./useRenderElement-nkklxbq1rp7h2kw0.js";
|
|
4
|
+
import { n as useIsoLayoutEffect } from "./safeReact-ek77ilng4ekk7mgz.js";
|
|
5
|
+
import { n as useTimeout } from "./useTimeout-f0ayn2l2l9aop4l8.js";
|
|
6
|
+
import { $ as getTarget, Q as contains } from "./vendor-utils-io8z5lsfxq8m2dcc.js";
|
|
7
|
+
import { n as webkit } from "./engine-hzmefiqm63hu0c7i.js";
|
|
8
|
+
import { t as addEventListener } from "./addEventListener-ku3x23446prmd1kz.js";
|
|
9
|
+
import { t as useStableCallback } from "./useStableCallback-le5qgj6p9l04729n.js";
|
|
10
|
+
import { t as getFiniteAnimations } from "./getFiniteAnimations-jwd833ybtz81j5f0.js";
|
|
11
|
+
import { t as useBaseUiId } from "./useBaseUiId-nk4k7nj9h1cy76ny.js";
|
|
12
|
+
import { n as useDirection } from "./DirectionContext-kpby968j030psajn.js";
|
|
13
|
+
import { t as clamp } from "./clamp-rcpupxvhqrn8uuyf.js";
|
|
14
|
+
import { r as normalizeScrollOffset, t as styleDisableScrollbar } from "./styles-eb8bvypmayf578jf.js";
|
|
15
|
+
import { n as useCSPContext } from "./CSPContext-iv67i0qqhihg8mur.js";
|
|
14
16
|
import * as React$1 from "react";
|
|
15
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
18
|
+
//#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/scroll-area/root/ScrollAreaRootContext.mjs
|
|
17
19
|
const ScrollAreaRootContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
18
20
|
ScrollAreaRootContext.displayName = "ScrollAreaRootContext";
|
|
19
21
|
function useScrollAreaRootContext() {
|
|
@@ -22,117 +24,134 @@ function useScrollAreaRootContext() {
|
|
|
22
24
|
return context;
|
|
23
25
|
}
|
|
24
26
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
26
|
-
let ScrollAreaRootCssVars = /*#__PURE__*/ function(ScrollAreaRootCssVars) {
|
|
27
|
-
/**
|
|
28
|
-
* The scroll area's corner height.
|
|
29
|
-
* @type {number}
|
|
30
|
-
*/
|
|
31
|
-
ScrollAreaRootCssVars["scrollAreaCornerHeight"] = "--scroll-area-corner-height";
|
|
32
|
-
/**
|
|
33
|
-
* The scroll area's corner width.
|
|
34
|
-
* @type {number}
|
|
35
|
-
*/
|
|
36
|
-
ScrollAreaRootCssVars["scrollAreaCornerWidth"] = "--scroll-area-corner-width";
|
|
37
|
-
return ScrollAreaRootCssVars;
|
|
38
|
-
}({});
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.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/scroll-area/utils/getOffset.mjs
|
|
27
|
+
//#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/scroll-area/utils/getOffset.mjs
|
|
41
28
|
function getOffset(element, prop, axis) {
|
|
42
29
|
if (!element) return 0;
|
|
43
30
|
const styles = getComputedStyle(element);
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
const key = `${prop}${axis === "x" ? "Inline" : "Block"}`;
|
|
32
|
+
const start = parseFloat(styles[`${key}Start`]);
|
|
33
|
+
if (axis === "x" && prop === "margin") return start * 2;
|
|
34
|
+
return start + parseFloat(styles[`${key}End`]);
|
|
47
35
|
}
|
|
48
36
|
//#endregion
|
|
49
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
ScrollAreaScrollbarDataAttributes["overflowYEnd"] = "data-overflow-y-end";
|
|
88
|
-
return ScrollAreaScrollbarDataAttributes;
|
|
89
|
-
}({});
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.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/scroll-area/root/ScrollAreaRootDataAttributes.mjs
|
|
92
|
-
let ScrollAreaRootDataAttributes = /*#__PURE__*/ function(ScrollAreaRootDataAttributes) {
|
|
93
|
-
/**
|
|
94
|
-
* Present when the user scrolls inside the scroll area.
|
|
95
|
-
*/
|
|
96
|
-
ScrollAreaRootDataAttributes["scrolling"] = "data-scrolling";
|
|
97
|
-
/**
|
|
98
|
-
* Present when the scroll area content is wider than the viewport.
|
|
99
|
-
*/
|
|
100
|
-
ScrollAreaRootDataAttributes["hasOverflowX"] = "data-has-overflow-x";
|
|
101
|
-
/**
|
|
102
|
-
* Present when the scroll area content is taller than the viewport.
|
|
103
|
-
*/
|
|
104
|
-
ScrollAreaRootDataAttributes["hasOverflowY"] = "data-has-overflow-y";
|
|
105
|
-
/**
|
|
106
|
-
* Present when there is overflow on the horizontal start side.
|
|
107
|
-
*/
|
|
108
|
-
ScrollAreaRootDataAttributes["overflowXStart"] = "data-overflow-x-start";
|
|
109
|
-
/**
|
|
110
|
-
* Present when there is overflow on the horizontal end side.
|
|
111
|
-
*/
|
|
112
|
-
ScrollAreaRootDataAttributes["overflowXEnd"] = "data-overflow-x-end";
|
|
113
|
-
/**
|
|
114
|
-
* Present when there is overflow on the vertical start side.
|
|
115
|
-
*/
|
|
116
|
-
ScrollAreaRootDataAttributes["overflowYStart"] = "data-overflow-y-start";
|
|
117
|
-
/**
|
|
118
|
-
* Present when there is overflow on the vertical end side.
|
|
119
|
-
*/
|
|
120
|
-
ScrollAreaRootDataAttributes["overflowYEnd"] = "data-overflow-y-end";
|
|
121
|
-
return ScrollAreaRootDataAttributes;
|
|
122
|
-
}({});
|
|
37
|
+
//#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/scroll-area/root/ScrollAreaRootDataAttributes.mjs
|
|
38
|
+
var ScrollAreaRootDataAttributes_exports = /* @__PURE__ */ __exportAll({
|
|
39
|
+
hasOverflowX: () => hasOverflowX$1,
|
|
40
|
+
hasOverflowY: () => hasOverflowY$1,
|
|
41
|
+
overflowXEnd: () => overflowXEnd$1,
|
|
42
|
+
overflowXStart: () => overflowXStart$1,
|
|
43
|
+
overflowYEnd: () => overflowYEnd$1,
|
|
44
|
+
overflowYStart: () => overflowYStart$1,
|
|
45
|
+
scrolling: () => scrolling$1
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* Present when the user scrolls inside the scroll area.
|
|
49
|
+
*/
|
|
50
|
+
const scrolling$1 = "data-scrolling";
|
|
51
|
+
/**
|
|
52
|
+
* Present when the scroll area content is wider than the viewport.
|
|
53
|
+
*/
|
|
54
|
+
const hasOverflowX$1 = "data-has-overflow-x";
|
|
55
|
+
/**
|
|
56
|
+
* Present when the scroll area content is taller than the viewport.
|
|
57
|
+
*/
|
|
58
|
+
const hasOverflowY$1 = "data-has-overflow-y";
|
|
59
|
+
/**
|
|
60
|
+
* Present when there is overflow on the horizontal start side.
|
|
61
|
+
*/
|
|
62
|
+
const overflowXStart$1 = "data-overflow-x-start";
|
|
63
|
+
/**
|
|
64
|
+
* Present when there is overflow on the horizontal end side.
|
|
65
|
+
*/
|
|
66
|
+
const overflowXEnd$1 = "data-overflow-x-end";
|
|
67
|
+
/**
|
|
68
|
+
* Present when there is overflow on the vertical start side.
|
|
69
|
+
*/
|
|
70
|
+
const overflowYStart$1 = "data-overflow-y-start";
|
|
71
|
+
/**
|
|
72
|
+
* Present when there is overflow on the vertical end side.
|
|
73
|
+
*/
|
|
74
|
+
const overflowYEnd$1 = "data-overflow-y-end";
|
|
123
75
|
//#endregion
|
|
124
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
76
|
+
//#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/scroll-area/root/stateAttributes.mjs
|
|
77
|
+
const attr = (name) => (value) => value ? { [name]: "" } : null;
|
|
125
78
|
const scrollAreaStateAttributesMapping = {
|
|
126
|
-
hasOverflowX: (
|
|
127
|
-
hasOverflowY: (
|
|
128
|
-
overflowXStart: (
|
|
129
|
-
overflowXEnd: (
|
|
130
|
-
overflowYStart: (
|
|
131
|
-
overflowYEnd: (
|
|
79
|
+
hasOverflowX: attr(hasOverflowX$1),
|
|
80
|
+
hasOverflowY: attr(hasOverflowY$1),
|
|
81
|
+
overflowXStart: attr(overflowXStart$1),
|
|
82
|
+
overflowXEnd: attr(overflowXEnd$1),
|
|
83
|
+
overflowYStart: attr(overflowYStart$1),
|
|
84
|
+
overflowYEnd: attr(overflowYEnd$1),
|
|
132
85
|
cornerHidden: () => null
|
|
133
86
|
};
|
|
134
87
|
//#endregion
|
|
135
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
88
|
+
//#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/scroll-area/root/ScrollAreaRootCssVars.mjs
|
|
89
|
+
var ScrollAreaRootCssVars_exports = /* @__PURE__ */ __exportAll({
|
|
90
|
+
scrollAreaCornerHeight: () => scrollAreaCornerHeight,
|
|
91
|
+
scrollAreaCornerWidth: () => scrollAreaCornerWidth
|
|
92
|
+
});
|
|
93
|
+
/**
|
|
94
|
+
* The scroll area's corner height.
|
|
95
|
+
* @type {number}
|
|
96
|
+
*/
|
|
97
|
+
const scrollAreaCornerHeight = "--scroll-area-corner-height";
|
|
98
|
+
/**
|
|
99
|
+
* The scroll area's corner width.
|
|
100
|
+
* @type {number}
|
|
101
|
+
*/
|
|
102
|
+
const scrollAreaCornerWidth = "--scroll-area-corner-width";
|
|
103
|
+
//#endregion
|
|
104
|
+
//#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/scroll-area/scrollbar/ScrollAreaScrollbarDataAttributes.mjs
|
|
105
|
+
var ScrollAreaScrollbarDataAttributes_exports = /* @__PURE__ */ __exportAll({
|
|
106
|
+
hasOverflowX: () => hasOverflowX,
|
|
107
|
+
hasOverflowY: () => hasOverflowY,
|
|
108
|
+
hovering: () => hovering,
|
|
109
|
+
orientation: () => orientation,
|
|
110
|
+
overflowXEnd: () => overflowXEnd,
|
|
111
|
+
overflowXStart: () => overflowXStart,
|
|
112
|
+
overflowYEnd: () => overflowYEnd,
|
|
113
|
+
overflowYStart: () => overflowYStart,
|
|
114
|
+
scrolling: () => scrolling
|
|
115
|
+
});
|
|
116
|
+
/**
|
|
117
|
+
* Indicates the orientation of the scrollbar.
|
|
118
|
+
* @type {'horizontal' | 'vertical'}
|
|
119
|
+
*/
|
|
120
|
+
const orientation = "data-orientation";
|
|
121
|
+
/**
|
|
122
|
+
* Present when the pointer is over the scroll area.
|
|
123
|
+
*/
|
|
124
|
+
const hovering = "data-hovering";
|
|
125
|
+
/**
|
|
126
|
+
* Present when the user scrolls inside the scroll area.
|
|
127
|
+
*/
|
|
128
|
+
const scrolling = "data-scrolling";
|
|
129
|
+
/**
|
|
130
|
+
* Present when the scroll area content is wider than the viewport.
|
|
131
|
+
*/
|
|
132
|
+
const hasOverflowX = "data-has-overflow-x";
|
|
133
|
+
/**
|
|
134
|
+
* Present when the scroll area content is taller than the viewport.
|
|
135
|
+
*/
|
|
136
|
+
const hasOverflowY = "data-has-overflow-y";
|
|
137
|
+
/**
|
|
138
|
+
* Present when there is overflow on the horizontal start side.
|
|
139
|
+
*/
|
|
140
|
+
const overflowXStart = "data-overflow-x-start";
|
|
141
|
+
/**
|
|
142
|
+
* Present when there is overflow on the horizontal end side.
|
|
143
|
+
*/
|
|
144
|
+
const overflowXEnd = "data-overflow-x-end";
|
|
145
|
+
/**
|
|
146
|
+
* Present when there is overflow on the vertical start side.
|
|
147
|
+
*/
|
|
148
|
+
const overflowYStart = "data-overflow-y-start";
|
|
149
|
+
/**
|
|
150
|
+
* Present when there is overflow on the vertical end side.
|
|
151
|
+
*/
|
|
152
|
+
const overflowYEnd = "data-overflow-y-end";
|
|
153
|
+
//#endregion
|
|
154
|
+
//#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/scroll-area/root/ScrollAreaRoot.mjs
|
|
136
155
|
const DEFAULT_COORDS = {
|
|
137
156
|
x: 0,
|
|
138
157
|
y: 0
|
|
@@ -181,82 +200,90 @@ const ScrollAreaRoot = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaRoot(
|
|
|
181
200
|
const thumbYRef = React$1.useRef(null);
|
|
182
201
|
const thumbXRef = React$1.useRef(null);
|
|
183
202
|
const cornerRef = React$1.useRef(null);
|
|
184
|
-
const
|
|
203
|
+
const activePointerIdRef = React$1.useRef(null);
|
|
185
204
|
const startYRef = React$1.useRef(0);
|
|
186
205
|
const startXRef = React$1.useRef(0);
|
|
187
206
|
const startScrollTopRef = React$1.useRef(0);
|
|
188
207
|
const startScrollLeftRef = React$1.useRef(0);
|
|
189
208
|
const currentOrientationRef = React$1.useRef("vertical");
|
|
190
209
|
const scrollPositionRef = React$1.useRef(DEFAULT_COORDS);
|
|
210
|
+
const savedSnapTypeRef = React$1.useRef(null);
|
|
211
|
+
function startScrolling(vertical) {
|
|
212
|
+
const setScrolling = vertical ? setScrollingY : setScrollingX;
|
|
213
|
+
const timeout = vertical ? scrollYTimeout : scrollXTimeout;
|
|
214
|
+
setScrolling(true);
|
|
215
|
+
timeout.start(500, () => {
|
|
216
|
+
setScrolling(false);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
191
219
|
const handleScroll = useStableCallback((scrollPosition) => {
|
|
192
220
|
const offsetX = scrollPosition.x - scrollPositionRef.current.x;
|
|
193
221
|
const offsetY = scrollPosition.y - scrollPositionRef.current.y;
|
|
194
222
|
scrollPositionRef.current = scrollPosition;
|
|
195
|
-
if (offsetY !== 0)
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
scrollXTimeout.start(500, () => {
|
|
204
|
-
setScrollingX(false);
|
|
205
|
-
});
|
|
223
|
+
if (offsetY !== 0) startScrolling(true);
|
|
224
|
+
if (offsetX !== 0) startScrolling(false);
|
|
225
|
+
});
|
|
226
|
+
const disableViewportSnap = useStableCallback(() => {
|
|
227
|
+
const viewportEl = viewportRef.current;
|
|
228
|
+
if (viewportEl && savedSnapTypeRef.current === null) {
|
|
229
|
+
savedSnapTypeRef.current = viewportEl.style.scrollSnapType;
|
|
230
|
+
viewportEl.style.scrollSnapType = "none";
|
|
206
231
|
}
|
|
207
232
|
});
|
|
208
233
|
const handlePointerDown = useStableCallback((event) => {
|
|
209
234
|
if (event.button !== 0) return;
|
|
210
|
-
|
|
235
|
+
if (activePointerIdRef.current !== null) {
|
|
236
|
+
if ((currentOrientationRef.current === "vertical" ? thumbYRef.current : thumbXRef.current)?.hasPointerCapture(activePointerIdRef.current)) return;
|
|
237
|
+
}
|
|
238
|
+
activePointerIdRef.current = event.pointerId;
|
|
211
239
|
startYRef.current = event.clientY;
|
|
212
240
|
startXRef.current = event.clientX;
|
|
213
|
-
currentOrientationRef.current = event.currentTarget.getAttribute(
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
241
|
+
currentOrientationRef.current = event.currentTarget.getAttribute(orientation);
|
|
242
|
+
const viewportEl = viewportRef.current;
|
|
243
|
+
if (viewportEl) {
|
|
244
|
+
startScrollTopRef.current = viewportEl.scrollTop;
|
|
245
|
+
startScrollLeftRef.current = viewportEl.scrollLeft;
|
|
246
|
+
disableViewportSnap();
|
|
217
247
|
}
|
|
218
|
-
|
|
219
|
-
if (thumbXRef.current && currentOrientationRef.current === "horizontal") thumbXRef.current.setPointerCapture(event.pointerId);
|
|
248
|
+
(currentOrientationRef.current === "vertical" ? thumbYRef.current : thumbXRef.current)?.setPointerCapture(event.pointerId);
|
|
220
249
|
});
|
|
221
|
-
const
|
|
222
|
-
if (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
if (
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
const scrollableContentWidth = viewportRef.current.scrollWidth;
|
|
229
|
-
const viewportWidth = viewportRef.current.clientWidth;
|
|
230
|
-
if (thumbYRef.current && scrollbarYRef.current && currentOrientationRef.current === "vertical") {
|
|
231
|
-
const scrollbarYOffset = getOffset(scrollbarYRef.current, "padding", "y");
|
|
232
|
-
const thumbYOffset = getOffset(thumbYRef.current, "margin", "y");
|
|
233
|
-
const thumbHeight = thumbYRef.current.offsetHeight;
|
|
234
|
-
const scrollRatioY = deltaY / (scrollbarYRef.current.offsetHeight - thumbHeight - scrollbarYOffset - thumbYOffset);
|
|
235
|
-
viewportRef.current.scrollTop = startScrollTopRef.current + scrollRatioY * (scrollableContentHeight - viewportHeight);
|
|
236
|
-
event.preventDefault();
|
|
237
|
-
setScrollingY(true);
|
|
238
|
-
scrollYTimeout.start(500, () => {
|
|
239
|
-
setScrollingY(false);
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
if (thumbXRef.current && scrollbarXRef.current && currentOrientationRef.current === "horizontal") {
|
|
243
|
-
const scrollbarXOffset = getOffset(scrollbarXRef.current, "padding", "x");
|
|
244
|
-
const thumbXOffset = getOffset(thumbXRef.current, "margin", "x");
|
|
245
|
-
const thumbWidth = thumbXRef.current.offsetWidth;
|
|
246
|
-
const scrollRatioX = deltaX / (scrollbarXRef.current.offsetWidth - thumbWidth - scrollbarXOffset - thumbXOffset);
|
|
247
|
-
viewportRef.current.scrollLeft = startScrollLeftRef.current + scrollRatioX * (scrollableContentWidth - viewportWidth);
|
|
248
|
-
event.preventDefault();
|
|
249
|
-
setScrollingX(true);
|
|
250
|
-
scrollXTimeout.start(500, () => {
|
|
251
|
-
setScrollingX(false);
|
|
252
|
-
});
|
|
253
|
-
}
|
|
250
|
+
const handlePointerUp = useStableCallback((event) => {
|
|
251
|
+
if (event.pointerId !== activePointerIdRef.current) return;
|
|
252
|
+
activePointerIdRef.current = null;
|
|
253
|
+
(currentOrientationRef.current === "vertical" ? setScrollingY : setScrollingX)(false);
|
|
254
|
+
if (savedSnapTypeRef.current !== null) {
|
|
255
|
+
if (viewportRef.current) viewportRef.current.style.scrollSnapType = savedSnapTypeRef.current;
|
|
256
|
+
savedSnapTypeRef.current = null;
|
|
254
257
|
}
|
|
258
|
+
const thumb = currentOrientationRef.current === "vertical" ? thumbYRef.current : thumbXRef.current;
|
|
259
|
+
if (thumb?.hasPointerCapture(event.pointerId)) thumb.releasePointerCapture(event.pointerId);
|
|
255
260
|
});
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
if (
|
|
259
|
-
|
|
261
|
+
const handlePointerMove = useStableCallback((event) => {
|
|
262
|
+
if (event.pointerId !== activePointerIdRef.current) return;
|
|
263
|
+
if (event.buttons % 2 === 0) {
|
|
264
|
+
handlePointerUp(event);
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
const viewportEl = viewportRef.current;
|
|
268
|
+
if (!viewportEl) return;
|
|
269
|
+
const vertical = currentOrientationRef.current === "vertical";
|
|
270
|
+
const thumbEl = vertical ? thumbYRef.current : thumbXRef.current;
|
|
271
|
+
const scrollbarEl = vertical ? scrollbarYRef.current : scrollbarXRef.current;
|
|
272
|
+
if (!thumbEl || !scrollbarEl) return;
|
|
273
|
+
const axis = vertical ? "y" : "x";
|
|
274
|
+
const scrollbarOffset = getOffset(scrollbarEl, "padding", axis);
|
|
275
|
+
const thumbOffset = getOffset(thumbEl, "margin", axis);
|
|
276
|
+
const thumbSizePx = vertical ? thumbEl.offsetHeight : thumbEl.offsetWidth;
|
|
277
|
+
const maxThumbOffset = (vertical ? scrollbarEl.offsetHeight : scrollbarEl.offsetWidth) - thumbSizePx - scrollbarOffset - thumbOffset;
|
|
278
|
+
const delta = vertical ? event.clientY - startYRef.current : event.clientX - startXRef.current;
|
|
279
|
+
const scrollRatio = maxThumbOffset <= 0 ? 0 : delta / maxThumbOffset;
|
|
280
|
+
const scrollableSize = vertical ? viewportEl.scrollHeight : viewportEl.scrollWidth;
|
|
281
|
+
const viewportSize = vertical ? viewportEl.clientHeight : viewportEl.clientWidth;
|
|
282
|
+
const nextScroll = (vertical ? startScrollTopRef.current : startScrollLeftRef.current) + scrollRatio * (scrollableSize - viewportSize);
|
|
283
|
+
if (vertical) viewportEl.scrollTop = nextScroll;
|
|
284
|
+
else viewportEl.scrollLeft = nextScroll;
|
|
285
|
+
event.preventDefault();
|
|
286
|
+
startScrolling(vertical);
|
|
260
287
|
});
|
|
261
288
|
function handleTouchModalityChange(event) {
|
|
262
289
|
setTouchModality(event.pointerType === "touch");
|
|
@@ -295,8 +322,8 @@ const ScrollAreaRoot = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaRoot(
|
|
|
295
322
|
},
|
|
296
323
|
style: {
|
|
297
324
|
position: "relative",
|
|
298
|
-
[
|
|
299
|
-
[
|
|
325
|
+
[scrollAreaCornerHeight]: `${cornerSize.height}px`,
|
|
326
|
+
[scrollAreaCornerWidth]: `${cornerSize.width}px`
|
|
300
327
|
}
|
|
301
328
|
};
|
|
302
329
|
const element = useRenderElement("div", componentProps, {
|
|
@@ -310,6 +337,7 @@ const ScrollAreaRoot = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaRoot(
|
|
|
310
337
|
handlePointerMove,
|
|
311
338
|
handlePointerUp,
|
|
312
339
|
handleScroll,
|
|
340
|
+
disableViewportSnap,
|
|
313
341
|
cornerSize,
|
|
314
342
|
setCornerSize,
|
|
315
343
|
thumbSize,
|
|
@@ -319,13 +347,10 @@ const ScrollAreaRoot = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaRoot(
|
|
|
319
347
|
touchModality,
|
|
320
348
|
cornerRef,
|
|
321
349
|
scrollingX,
|
|
322
|
-
setScrollingX,
|
|
323
350
|
scrollingY,
|
|
324
|
-
setScrollingY,
|
|
325
351
|
hovering,
|
|
326
352
|
setHovering,
|
|
327
353
|
viewportRef,
|
|
328
|
-
rootRef,
|
|
329
354
|
scrollbarYRef,
|
|
330
355
|
scrollbarXRef,
|
|
331
356
|
thumbYRef,
|
|
@@ -347,16 +372,14 @@ const ScrollAreaRoot = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaRoot(
|
|
|
347
372
|
handlePointerMove,
|
|
348
373
|
handlePointerUp,
|
|
349
374
|
handleScroll,
|
|
375
|
+
disableViewportSnap,
|
|
350
376
|
cornerSize,
|
|
351
377
|
thumbSize,
|
|
352
378
|
hasMeasuredScrollbar,
|
|
353
379
|
touchModality,
|
|
354
380
|
scrollingX,
|
|
355
|
-
setScrollingX,
|
|
356
381
|
scrollingY,
|
|
357
|
-
setScrollingY,
|
|
358
382
|
hovering,
|
|
359
|
-
setHovering,
|
|
360
383
|
rootId,
|
|
361
384
|
hiddenState,
|
|
362
385
|
overflowEdges,
|
|
@@ -373,24 +396,21 @@ const ScrollAreaRoot = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaRoot(
|
|
|
373
396
|
});
|
|
374
397
|
ScrollAreaRoot.displayName = "ScrollAreaRoot";
|
|
375
398
|
function normalizeOverflowEdgeThreshold(threshold) {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
yEnd: value
|
|
383
|
-
};
|
|
384
|
-
}
|
|
399
|
+
const thresholds = typeof threshold === "number" ? {
|
|
400
|
+
xStart: threshold,
|
|
401
|
+
xEnd: threshold,
|
|
402
|
+
yStart: threshold,
|
|
403
|
+
yEnd: threshold
|
|
404
|
+
} : threshold;
|
|
385
405
|
return {
|
|
386
|
-
xStart: Math.max(0,
|
|
387
|
-
xEnd: Math.max(0,
|
|
388
|
-
yStart: Math.max(0,
|
|
389
|
-
yEnd: Math.max(0,
|
|
406
|
+
xStart: Math.max(0, thresholds?.xStart || 0),
|
|
407
|
+
xEnd: Math.max(0, thresholds?.xEnd || 0),
|
|
408
|
+
yStart: Math.max(0, thresholds?.yStart || 0),
|
|
409
|
+
yEnd: Math.max(0, thresholds?.yEnd || 0)
|
|
390
410
|
};
|
|
391
411
|
}
|
|
392
412
|
//#endregion
|
|
393
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
413
|
+
//#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/scroll-area/viewport/ScrollAreaViewportContext.mjs
|
|
394
414
|
const ScrollAreaViewportContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
395
415
|
ScrollAreaViewportContext.displayName = "ScrollAreaViewportContext";
|
|
396
416
|
function useScrollAreaViewportContext() {
|
|
@@ -399,32 +419,57 @@ function useScrollAreaViewportContext() {
|
|
|
399
419
|
return context;
|
|
400
420
|
}
|
|
401
421
|
//#endregion
|
|
402
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
422
|
+
//#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/scroll-area/viewport/ScrollAreaViewportCssVars.mjs
|
|
423
|
+
var ScrollAreaViewportCssVars_exports = /* @__PURE__ */ __exportAll({
|
|
424
|
+
scrollAreaOverflowXEnd: () => scrollAreaOverflowXEnd,
|
|
425
|
+
scrollAreaOverflowXStart: () => scrollAreaOverflowXStart,
|
|
426
|
+
scrollAreaOverflowYEnd: () => scrollAreaOverflowYEnd,
|
|
427
|
+
scrollAreaOverflowYStart: () => scrollAreaOverflowYStart
|
|
428
|
+
});
|
|
429
|
+
/**
|
|
430
|
+
* The distance from the horizontal start edge in pixels.
|
|
431
|
+
* @type {number}
|
|
432
|
+
*/
|
|
433
|
+
const scrollAreaOverflowXStart = "--scroll-area-overflow-x-start";
|
|
434
|
+
/**
|
|
435
|
+
* The distance from the horizontal end edge in pixels.
|
|
436
|
+
* @type {number}
|
|
437
|
+
*/
|
|
438
|
+
const scrollAreaOverflowXEnd = "--scroll-area-overflow-x-end";
|
|
439
|
+
/**
|
|
440
|
+
* The distance from the vertical start edge in pixels.
|
|
441
|
+
* @type {number}
|
|
442
|
+
*/
|
|
443
|
+
const scrollAreaOverflowYStart = "--scroll-area-overflow-y-start";
|
|
444
|
+
/**
|
|
445
|
+
* The distance from the vertical end edge in pixels.
|
|
446
|
+
* @type {number}
|
|
447
|
+
*/
|
|
448
|
+
const scrollAreaOverflowYEnd = "--scroll-area-overflow-y-end";
|
|
449
|
+
//#endregion
|
|
450
|
+
//#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/scroll-area/scrollbar/ScrollAreaScrollbarCssVars.mjs
|
|
451
|
+
var ScrollAreaScrollbarCssVars_exports = /* @__PURE__ */ __exportAll({
|
|
452
|
+
scrollAreaThumbHeight: () => scrollAreaThumbHeight,
|
|
453
|
+
scrollAreaThumbWidth: () => scrollAreaThumbWidth
|
|
454
|
+
});
|
|
455
|
+
/**
|
|
456
|
+
* The scroll area thumb's height.
|
|
457
|
+
* @type {number}
|
|
458
|
+
*/
|
|
459
|
+
const scrollAreaThumbHeight = "--scroll-area-thumb-height";
|
|
460
|
+
/**
|
|
461
|
+
* The scroll area thumb's width.
|
|
462
|
+
* @type {number}
|
|
463
|
+
*/
|
|
464
|
+
const scrollAreaThumbWidth = "--scroll-area-thumb-width";
|
|
426
465
|
//#endregion
|
|
427
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
466
|
+
//#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/scroll-area/viewport/ScrollAreaViewport.mjs
|
|
467
|
+
const OVERFLOW_EDGE_VARS = [
|
|
468
|
+
scrollAreaOverflowXStart,
|
|
469
|
+
scrollAreaOverflowXEnd,
|
|
470
|
+
scrollAreaOverflowYStart,
|
|
471
|
+
scrollAreaOverflowYEnd
|
|
472
|
+
];
|
|
428
473
|
let scrollAreaOverflowVarsRegistered = false;
|
|
429
474
|
/**
|
|
430
475
|
* Removes inheritance of the scroll area overflow CSS variables, which
|
|
@@ -436,12 +481,7 @@ let scrollAreaOverflowVarsRegistered = false;
|
|
|
436
481
|
*/
|
|
437
482
|
function removeCSSVariableInheritance() {
|
|
438
483
|
if (scrollAreaOverflowVarsRegistered || webkit) return;
|
|
439
|
-
if (typeof CSS !== "undefined" && "registerProperty" in CSS)
|
|
440
|
-
ScrollAreaViewportCssVars.scrollAreaOverflowXStart,
|
|
441
|
-
ScrollAreaViewportCssVars.scrollAreaOverflowXEnd,
|
|
442
|
-
ScrollAreaViewportCssVars.scrollAreaOverflowYStart,
|
|
443
|
-
ScrollAreaViewportCssVars.scrollAreaOverflowYEnd
|
|
444
|
-
].forEach((name) => {
|
|
484
|
+
if (typeof CSS !== "undefined" && "registerProperty" in CSS) OVERFLOW_EDGE_VARS.forEach((name) => {
|
|
445
485
|
try {
|
|
446
486
|
CSS.registerProperty({
|
|
447
487
|
name,
|
|
@@ -461,7 +501,7 @@ function removeCSSVariableInheritance() {
|
|
|
461
501
|
*/
|
|
462
502
|
const ScrollAreaViewport = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaViewport(componentProps, forwardedRef) {
|
|
463
503
|
const { render, className, style, ...elementProps } = componentProps;
|
|
464
|
-
const { viewportRef, scrollbarYRef, scrollbarXRef, thumbYRef, thumbXRef, cornerRef, cornerSize, setCornerSize, setThumbSize, rootId, setHiddenState, hiddenState, setHasMeasuredScrollbar, handleScroll, setHovering, setOverflowEdges,
|
|
504
|
+
const { viewportRef, scrollbarYRef, scrollbarXRef, thumbYRef, thumbXRef, cornerRef, cornerSize, setCornerSize, setThumbSize, rootId, setHiddenState, hiddenState, setHasMeasuredScrollbar, handleScroll, touchModality, setHovering, setOverflowEdges, overflowEdgeThreshold, viewportState } = useScrollAreaRootContext();
|
|
465
505
|
const direction = useDirection();
|
|
466
506
|
const programmaticScrollRef = React$1.useRef(true);
|
|
467
507
|
const lastMeasuredViewportMetricsRef = React$1.useRef([
|
|
@@ -504,15 +544,11 @@ const ScrollAreaViewport = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaV
|
|
|
504
544
|
let scrollLeftFromStart = 0;
|
|
505
545
|
let scrollLeftFromEnd = 0;
|
|
506
546
|
if (!scrollbarXHidden) {
|
|
507
|
-
|
|
508
|
-
if (direction === "rtl") rawScrollLeftFromStart = clamp(-scrollLeft, 0, maxScrollLeft);
|
|
509
|
-
else rawScrollLeftFromStart = clamp(scrollLeft, 0, maxScrollLeft);
|
|
510
|
-
scrollLeftFromStart = normalizeScrollOffset(rawScrollLeftFromStart, maxScrollLeft);
|
|
547
|
+
scrollLeftFromStart = normalizeScrollOffset(direction === "rtl" ? -scrollLeft : scrollLeft, maxScrollLeft);
|
|
511
548
|
scrollLeftFromEnd = maxScrollLeft - scrollLeftFromStart;
|
|
512
549
|
}
|
|
513
|
-
const
|
|
514
|
-
const
|
|
515
|
-
const scrollTopFromEnd = !scrollbarYHidden ? maxScrollTop - scrollTopFromStart : 0;
|
|
550
|
+
const scrollTopFromStart = scrollbarYHidden ? 0 : normalizeScrollOffset(scrollTop, maxScrollTop);
|
|
551
|
+
const scrollTopFromEnd = scrollbarYHidden ? 0 : maxScrollTop - scrollTopFromStart;
|
|
516
552
|
const nextWidth = scrollbarXHidden ? 0 : viewportWidth;
|
|
517
553
|
const nextHeight = scrollbarYHidden ? 0 : viewportHeight;
|
|
518
554
|
let nextCornerWidth = 0;
|
|
@@ -534,60 +570,46 @@ const ScrollAreaViewport = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaV
|
|
|
534
570
|
const maxNextHeight = scrollbarYEl ? Math.min(scrollbarYEl.offsetHeight - cornerHeightOffset, idealNextHeight) : idealNextHeight;
|
|
535
571
|
const clampedNextWidth = Math.max(16, maxNextWidth * ratioX);
|
|
536
572
|
const clampedNextHeight = Math.max(16, maxNextHeight * ratioY);
|
|
537
|
-
setThumbSize((prevSize) => {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
height: clampedNextHeight
|
|
542
|
-
};
|
|
543
|
-
});
|
|
573
|
+
setThumbSize((prevSize) => pickState(prevSize, {
|
|
574
|
+
width: clampedNextWidth,
|
|
575
|
+
height: clampedNextHeight
|
|
576
|
+
}));
|
|
544
577
|
if (scrollbarYEl && thumbYEl) {
|
|
545
578
|
const maxThumbOffsetY = scrollbarYEl.offsetHeight - clampedNextHeight - scrollbarYOffset - thumbYOffset;
|
|
546
|
-
const
|
|
547
|
-
const scrollRatioY = scrollRangeY === 0 ? 0 : scrollTop / scrollRangeY;
|
|
548
|
-
const thumbOffsetY = Math.min(maxThumbOffsetY, Math.max(0, scrollRatioY * maxThumbOffsetY));
|
|
579
|
+
const thumbOffsetY = applyOverscrollThumb(thumbYEl, scrollAreaThumbHeight, scrollTop, maxScrollTop, scrollableContentHeight, clampedNextHeight, maxThumbOffsetY);
|
|
549
580
|
thumbYEl.style.transform = `translate3d(0,${thumbOffsetY}px,0)`;
|
|
550
581
|
}
|
|
551
582
|
if (scrollbarXEl && thumbXEl) {
|
|
552
583
|
const maxThumbOffsetX = scrollbarXEl.offsetWidth - clampedNextWidth - scrollbarXOffset - thumbXOffset;
|
|
553
|
-
const
|
|
554
|
-
const
|
|
555
|
-
|
|
556
|
-
thumbXEl.style.transform = `translate3d(${thumbOffsetX}px,0,0)`;
|
|
584
|
+
const scrollFromStart = direction === "rtl" ? -scrollLeft : scrollLeft;
|
|
585
|
+
const offsetX = applyOverscrollThumb(thumbXEl, scrollAreaThumbWidth, scrollFromStart, maxScrollLeft, scrollableContentWidth, clampedNextWidth, maxThumbOffsetX);
|
|
586
|
+
thumbXEl.style.transform = `translate3d(${direction === "rtl" ? -offsetX : offsetX}px,0,0)`;
|
|
557
587
|
}
|
|
558
588
|
const overflowMetricsPx = [
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
589
|
+
scrollLeftFromStart,
|
|
590
|
+
scrollLeftFromEnd,
|
|
591
|
+
scrollTopFromStart,
|
|
592
|
+
scrollTopFromEnd
|
|
563
593
|
];
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
height: nextCornerHeight
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
setHiddenState((prevState) => mergeHiddenState(prevState, nextHiddenState));
|
|
594
|
+
OVERFLOW_EDGE_VARS.forEach((cssVar, index) => {
|
|
595
|
+
viewportEl.style.setProperty(cssVar, `${overflowMetricsPx[index]}px`);
|
|
596
|
+
});
|
|
597
|
+
if (cornerEl) setCornerSize((prevSize) => pickState(prevSize, {
|
|
598
|
+
width: nextCornerWidth,
|
|
599
|
+
height: nextCornerHeight
|
|
600
|
+
}));
|
|
601
|
+
setHiddenState((prevState) => pickState(prevState, nextHiddenState));
|
|
576
602
|
const nextOverflowEdges = {
|
|
577
603
|
xStart: !scrollbarXHidden && scrollLeftFromStart > overflowEdgeThreshold.xStart,
|
|
578
604
|
xEnd: !scrollbarXHidden && scrollLeftFromEnd > overflowEdgeThreshold.xEnd,
|
|
579
605
|
yStart: !scrollbarYHidden && scrollTopFromStart > overflowEdgeThreshold.yStart,
|
|
580
606
|
yEnd: !scrollbarYHidden && scrollTopFromEnd > overflowEdgeThreshold.yEnd
|
|
581
607
|
};
|
|
582
|
-
setOverflowEdges((prev) =>
|
|
583
|
-
if (prev.xStart === nextOverflowEdges.xStart && prev.xEnd === nextOverflowEdges.xEnd && prev.yStart === nextOverflowEdges.yStart && prev.yEnd === nextOverflowEdges.yEnd) return prev;
|
|
584
|
-
return nextOverflowEdges;
|
|
585
|
-
});
|
|
608
|
+
setOverflowEdges((prev) => pickState(prev, nextOverflowEdges));
|
|
586
609
|
});
|
|
587
610
|
useIsoLayoutEffect(() => {
|
|
588
|
-
if (!viewportRef.current) return;
|
|
589
611
|
removeCSSVariableInheritance();
|
|
590
|
-
}, [
|
|
612
|
+
}, []);
|
|
591
613
|
useIsoLayoutEffect(() => {
|
|
592
614
|
queueMicrotask(computeThumbPosition);
|
|
593
615
|
}, [
|
|
@@ -616,9 +638,9 @@ const ScrollAreaViewport = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaV
|
|
|
616
638
|
});
|
|
617
639
|
resizeObserver.observe(viewport);
|
|
618
640
|
waitForAnimationsTimeout.start(0, () => {
|
|
619
|
-
const animations = viewport
|
|
641
|
+
const animations = getFiniteAnimations(viewport, { subtree: true });
|
|
620
642
|
if (animations.length === 0) return;
|
|
621
|
-
Promise.allSettled(animations.map((animation) => animation.finished)).then(computeThumbPosition).catch(() => {});
|
|
643
|
+
Promise.allSettled(animations.map((animation) => animation.finished.then(NOOP))).then(computeThumbPosition).catch(() => {});
|
|
622
644
|
});
|
|
623
645
|
return () => {
|
|
624
646
|
resizeObserver.disconnect();
|
|
@@ -633,7 +655,6 @@ const ScrollAreaViewport = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaV
|
|
|
633
655
|
programmaticScrollRef.current = false;
|
|
634
656
|
}
|
|
635
657
|
const props = {
|
|
636
|
-
role: "presentation",
|
|
637
658
|
...rootId && { "data-id": `${rootId}-viewport` },
|
|
638
659
|
tabIndex: hiddenState.x && hiddenState.y ? -1 : 0,
|
|
639
660
|
className: styleDisableScrollbar.className,
|
|
@@ -641,7 +662,7 @@ const ScrollAreaViewport = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaV
|
|
|
641
662
|
onScroll() {
|
|
642
663
|
if (!viewportRef.current) return;
|
|
643
664
|
computeThumbPosition();
|
|
644
|
-
if (!programmaticScrollRef.current) handleScroll({
|
|
665
|
+
if (touchModality || !programmaticScrollRef.current) handleScroll({
|
|
645
666
|
x: viewportRef.current.scrollLeft,
|
|
646
667
|
y: viewportRef.current.scrollTop
|
|
647
668
|
});
|
|
@@ -650,28 +671,10 @@ const ScrollAreaViewport = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaV
|
|
|
650
671
|
});
|
|
651
672
|
},
|
|
652
673
|
onWheel: handleUserInteraction,
|
|
653
|
-
onTouchMove: handleUserInteraction,
|
|
654
674
|
onPointerMove: handleUserInteraction,
|
|
655
675
|
onPointerEnter: handleUserInteraction,
|
|
656
676
|
onKeyDown: handleUserInteraction
|
|
657
677
|
};
|
|
658
|
-
const viewportState = React$1.useMemo(() => ({
|
|
659
|
-
scrolling: scrollingX || scrollingY,
|
|
660
|
-
hasOverflowX: !hiddenState.x,
|
|
661
|
-
hasOverflowY: !hiddenState.y,
|
|
662
|
-
overflowXStart: overflowEdges.xStart,
|
|
663
|
-
overflowXEnd: overflowEdges.xEnd,
|
|
664
|
-
overflowYStart: overflowEdges.yStart,
|
|
665
|
-
overflowYEnd: overflowEdges.yEnd,
|
|
666
|
-
cornerHidden: hiddenState.corner
|
|
667
|
-
}), [
|
|
668
|
-
scrollingX,
|
|
669
|
-
scrollingY,
|
|
670
|
-
hiddenState.x,
|
|
671
|
-
hiddenState.y,
|
|
672
|
-
hiddenState.corner,
|
|
673
|
-
overflowEdges
|
|
674
|
-
]);
|
|
675
678
|
const element = useRenderElement("div", componentProps, {
|
|
676
679
|
ref: [forwardedRef, viewportRef],
|
|
677
680
|
state: viewportState,
|
|
@@ -694,12 +697,28 @@ function getHiddenState(viewport) {
|
|
|
694
697
|
corner: y || x
|
|
695
698
|
};
|
|
696
699
|
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
+
/**
|
|
701
|
+
* Returns `prev` when `next` is shallow-equal to it so setState bails out and
|
|
702
|
+
* scroll-frame updates don't rebuild the root context.
|
|
703
|
+
*/
|
|
704
|
+
function pickState(prev, next) {
|
|
705
|
+
for (const key in next) if (prev[key] !== next[key]) return next;
|
|
706
|
+
return prev;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Sizes the thumb and returns its axis offset. On overscroll (Safari rubber-band only) it shrinks
|
|
710
|
+
* against the pinned edge, damped by `content / (content + overscroll)` to match native feedback;
|
|
711
|
+
* the size flows through the thumb-size variable so the resting `var(...)` still applies.
|
|
712
|
+
*/
|
|
713
|
+
function applyOverscrollThumb(thumbEl, sizeVar, scrollFromStart, maxScroll, content, size, maxThumbOffset) {
|
|
714
|
+
const clamped = clamp(scrollFromStart, 0, maxScroll);
|
|
715
|
+
const overscroll = scrollFromStart - clamped;
|
|
716
|
+
const nextSize = Math.max(16, size * content / (content + Math.abs(overscroll)));
|
|
717
|
+
thumbEl.style.setProperty(sizeVar, overscroll ? `${nextSize}px` : "");
|
|
718
|
+
return (maxScroll ? clamped / maxScroll * maxThumbOffset : 0) + (overscroll > 0 ? size - nextSize : 0);
|
|
700
719
|
}
|
|
701
720
|
//#endregion
|
|
702
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
721
|
+
//#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/scroll-area/scrollbar/ScrollAreaScrollbarContext.mjs
|
|
703
722
|
const ScrollAreaScrollbarContext = /*#__PURE__*/ React$1.createContext(void 0);
|
|
704
723
|
ScrollAreaScrollbarContext.displayName = "ScrollAreaScrollbarContext";
|
|
705
724
|
function useScrollAreaScrollbarContext() {
|
|
@@ -708,22 +727,7 @@ function useScrollAreaScrollbarContext() {
|
|
|
708
727
|
return context;
|
|
709
728
|
}
|
|
710
729
|
//#endregion
|
|
711
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
712
|
-
let ScrollAreaScrollbarCssVars = /*#__PURE__*/ function(ScrollAreaScrollbarCssVars) {
|
|
713
|
-
/**
|
|
714
|
-
* The scroll area thumb's height.
|
|
715
|
-
* @type {number}
|
|
716
|
-
*/
|
|
717
|
-
ScrollAreaScrollbarCssVars["scrollAreaThumbHeight"] = "--scroll-area-thumb-height";
|
|
718
|
-
/**
|
|
719
|
-
* The scroll area thumb's width.
|
|
720
|
-
* @type {number}
|
|
721
|
-
*/
|
|
722
|
-
ScrollAreaScrollbarCssVars["scrollAreaThumbWidth"] = "--scroll-area-thumb-width";
|
|
723
|
-
return ScrollAreaScrollbarCssVars;
|
|
724
|
-
}({});
|
|
725
|
-
//#endregion
|
|
726
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.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/scroll-area/scrollbar/ScrollAreaScrollbar.mjs
|
|
730
|
+
//#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/scroll-area/scrollbar/ScrollAreaScrollbar.mjs
|
|
727
731
|
/**
|
|
728
732
|
* A vertical or horizontal scrollbar for the scroll area.
|
|
729
733
|
* Renders a `<div>` element.
|
|
@@ -732,34 +736,26 @@ let ScrollAreaScrollbarCssVars = /*#__PURE__*/ function(ScrollAreaScrollbarCssVa
|
|
|
732
736
|
*/
|
|
733
737
|
const ScrollAreaScrollbar = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaScrollbar(componentProps, forwardedRef) {
|
|
734
738
|
const { render, className, orientation = "vertical", keepMounted = false, style, ...elementProps } = componentProps;
|
|
735
|
-
const { hovering, scrollingX, scrollingY, hiddenState,
|
|
739
|
+
const { hovering, scrollingX, scrollingY, hiddenState, scrollbarYRef, scrollbarXRef, viewportRef, thumbYRef, thumbXRef, handlePointerDown, handlePointerUp, handleScroll, disableViewportSnap, rootId, thumbSize, hasMeasuredScrollbar, viewportState } = useScrollAreaRootContext();
|
|
740
|
+
const vertical = orientation === "vertical";
|
|
736
741
|
const state = {
|
|
742
|
+
...viewportState,
|
|
737
743
|
hovering,
|
|
738
|
-
scrolling:
|
|
739
|
-
|
|
740
|
-
vertical: scrollingY
|
|
741
|
-
}[orientation],
|
|
742
|
-
orientation,
|
|
743
|
-
hasOverflowX: !hiddenState.x,
|
|
744
|
-
hasOverflowY: !hiddenState.y,
|
|
745
|
-
overflowXStart: overflowEdges.xStart,
|
|
746
|
-
overflowXEnd: overflowEdges.xEnd,
|
|
747
|
-
overflowYStart: overflowEdges.yStart,
|
|
748
|
-
overflowYEnd: overflowEdges.yEnd,
|
|
749
|
-
cornerHidden: hiddenState.corner
|
|
744
|
+
scrolling: vertical ? scrollingY : scrollingX,
|
|
745
|
+
orientation
|
|
750
746
|
};
|
|
751
747
|
const direction = useDirection();
|
|
752
748
|
const hideTrackUntilMeasured = !hasMeasuredScrollbar && !keepMounted;
|
|
753
|
-
const isHidden =
|
|
749
|
+
const isHidden = vertical ? hiddenState.y : hiddenState.x;
|
|
754
750
|
const shouldRender = keepMounted || !isHidden;
|
|
755
751
|
React$1.useEffect(() => {
|
|
756
752
|
if (!shouldRender) return;
|
|
757
753
|
const viewportEl = viewportRef.current;
|
|
758
|
-
const scrollbarEl =
|
|
754
|
+
const scrollbarEl = vertical ? scrollbarYRef.current : scrollbarXRef.current;
|
|
759
755
|
if (!scrollbarEl) return;
|
|
760
756
|
function handleWheel(event) {
|
|
761
|
-
if (!viewportEl ||
|
|
762
|
-
const horizontal =
|
|
757
|
+
if (!viewportEl || event.ctrlKey) return;
|
|
758
|
+
const horizontal = !vertical;
|
|
763
759
|
const scrollProperty = horizontal ? "scrollLeft" : "scrollTop";
|
|
764
760
|
const delta = horizontal ? event.deltaX : event.deltaY;
|
|
765
761
|
if (delta === 0) return;
|
|
@@ -779,7 +775,7 @@ const ScrollAreaScrollbar = /*#__PURE__*/ React$1.forwardRef(function ScrollArea
|
|
|
779
775
|
}, [
|
|
780
776
|
direction,
|
|
781
777
|
handleScroll,
|
|
782
|
-
|
|
778
|
+
vertical,
|
|
783
779
|
scrollbarXRef,
|
|
784
780
|
scrollbarYRef,
|
|
785
781
|
shouldRender,
|
|
@@ -787,45 +783,41 @@ const ScrollAreaScrollbar = /*#__PURE__*/ React$1.forwardRef(function ScrollArea
|
|
|
787
783
|
]);
|
|
788
784
|
const props = {
|
|
789
785
|
...rootId && { "data-id": `${rootId}-scrollbar` },
|
|
786
|
+
"aria-hidden": true,
|
|
790
787
|
onPointerDown(event) {
|
|
791
788
|
if (event.button !== 0) return;
|
|
792
789
|
const target = getTarget(event.nativeEvent);
|
|
793
|
-
const
|
|
794
|
-
if (
|
|
795
|
-
|
|
796
|
-
if (
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
const scrollRatioX = clickX / (scrollbarXRef.current.offsetWidth - thumbWidth - scrollbarXOffset - thumbXOffset);
|
|
816
|
-
let newScrollLeft;
|
|
817
|
-
if (direction === "rtl") {
|
|
818
|
-
newScrollLeft = (1 - scrollRatioX) * (scrollableContentWidth - viewportWidth);
|
|
819
|
-
if (viewportRef.current.scrollLeft <= 0) newScrollLeft = -newScrollLeft;
|
|
820
|
-
} else newScrollLeft = scrollRatioX * (scrollableContentWidth - viewportWidth);
|
|
821
|
-
viewportRef.current.scrollLeft = newScrollLeft;
|
|
822
|
-
}
|
|
790
|
+
const thumbEl = vertical ? thumbYRef.current : thumbXRef.current;
|
|
791
|
+
if (thumbEl && contains(thumbEl, target)) return;
|
|
792
|
+
const viewportEl = viewportRef.current;
|
|
793
|
+
if (!viewportEl) return;
|
|
794
|
+
const scrollbarEl = vertical ? scrollbarYRef.current : scrollbarXRef.current;
|
|
795
|
+
if (!thumbEl || !scrollbarEl) return;
|
|
796
|
+
const axis = vertical ? "y" : "x";
|
|
797
|
+
const thumbOffset = getOffset(thumbEl, "margin", axis);
|
|
798
|
+
const scrollbarOffset = getOffset(scrollbarEl, "padding", axis);
|
|
799
|
+
const thumbSizePx = vertical ? thumbEl.offsetHeight : thumbEl.offsetWidth;
|
|
800
|
+
const trackRect = scrollbarEl.getBoundingClientRect();
|
|
801
|
+
const clickPosition = vertical ? event.clientY - trackRect.top - thumbSizePx / 2 - scrollbarOffset + thumbOffset / 2 : event.clientX - trackRect.left - thumbSizePx / 2 - scrollbarOffset + thumbOffset / 2;
|
|
802
|
+
const scrollableSize = vertical ? viewportEl.scrollHeight : viewportEl.scrollWidth;
|
|
803
|
+
const viewportSize = vertical ? viewportEl.clientHeight : viewportEl.clientWidth;
|
|
804
|
+
const maxThumbOffset = (vertical ? scrollbarEl.offsetHeight : scrollbarEl.offsetWidth) - thumbSizePx - scrollbarOffset - thumbOffset;
|
|
805
|
+
if (maxThumbOffset <= 0) return;
|
|
806
|
+
const scrollRatio = clickPosition / maxThumbOffset;
|
|
807
|
+
const maxScrollDistance = scrollableSize - viewportSize;
|
|
808
|
+
disableViewportSnap();
|
|
809
|
+
if (vertical) viewportEl.scrollTop = scrollRatio * maxScrollDistance;
|
|
810
|
+
else if (direction === "rtl") viewportEl.scrollLeft = -(1 - scrollRatio) * maxScrollDistance;
|
|
811
|
+
else viewportEl.scrollLeft = scrollRatio * maxScrollDistance;
|
|
823
812
|
handleScroll({
|
|
824
|
-
x:
|
|
825
|
-
y:
|
|
813
|
+
x: viewportEl.scrollLeft,
|
|
814
|
+
y: viewportEl.scrollTop
|
|
826
815
|
});
|
|
827
816
|
handlePointerDown(event);
|
|
828
817
|
},
|
|
818
|
+
onMouseDown(event) {
|
|
819
|
+
event.preventDefault();
|
|
820
|
+
},
|
|
829
821
|
onPointerUp: handlePointerUp,
|
|
830
822
|
onPointerCancel: handlePointerUp,
|
|
831
823
|
style: {
|
|
@@ -834,36 +826,34 @@ const ScrollAreaScrollbar = /*#__PURE__*/ React$1.forwardRef(function ScrollArea
|
|
|
834
826
|
WebkitUserSelect: "none",
|
|
835
827
|
userSelect: "none",
|
|
836
828
|
visibility: hideTrackUntilMeasured ? "hidden" : void 0,
|
|
837
|
-
...
|
|
829
|
+
...vertical ? {
|
|
838
830
|
top: 0,
|
|
839
|
-
bottom: `var(${
|
|
831
|
+
bottom: `var(${scrollAreaCornerHeight})`,
|
|
840
832
|
insetInlineEnd: 0,
|
|
841
|
-
[
|
|
842
|
-
}
|
|
843
|
-
...orientation === "horizontal" && {
|
|
833
|
+
[scrollAreaThumbHeight]: `${thumbSize.height}px`
|
|
834
|
+
} : {
|
|
844
835
|
insetInlineStart: 0,
|
|
845
|
-
insetInlineEnd: `var(${
|
|
836
|
+
insetInlineEnd: `var(${scrollAreaCornerWidth})`,
|
|
846
837
|
bottom: 0,
|
|
847
|
-
[
|
|
838
|
+
[scrollAreaThumbWidth]: `${thumbSize.width}px`
|
|
848
839
|
}
|
|
849
840
|
}
|
|
850
841
|
};
|
|
851
842
|
const element = useRenderElement("div", componentProps, {
|
|
852
|
-
ref: [forwardedRef,
|
|
843
|
+
ref: [forwardedRef, vertical ? scrollbarYRef : scrollbarXRef],
|
|
853
844
|
state,
|
|
854
845
|
props: [props, elementProps],
|
|
855
846
|
stateAttributesMapping: scrollAreaStateAttributesMapping
|
|
856
847
|
});
|
|
857
|
-
const contextValue = React$1.useMemo(() => ({ orientation }), [orientation]);
|
|
858
848
|
if (!shouldRender) return null;
|
|
859
849
|
return /*#__PURE__*/ jsx(ScrollAreaScrollbarContext.Provider, {
|
|
860
|
-
value:
|
|
850
|
+
value: orientation,
|
|
861
851
|
children: element
|
|
862
852
|
});
|
|
863
853
|
});
|
|
864
854
|
ScrollAreaScrollbar.displayName = "ScrollAreaScrollbar";
|
|
865
855
|
//#endregion
|
|
866
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
856
|
+
//#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/scroll-area/content/ScrollAreaContent.mjs
|
|
867
857
|
/**
|
|
868
858
|
* A container for the content of the scroll area.
|
|
869
859
|
* Renders a `<div>` element.
|
|
@@ -903,7 +893,7 @@ const ScrollAreaContent = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaCo
|
|
|
903
893
|
});
|
|
904
894
|
ScrollAreaContent.displayName = "ScrollAreaContent";
|
|
905
895
|
//#endregion
|
|
906
|
-
//#region ../../node_modules/.pnpm/@base-ui+react@1.
|
|
896
|
+
//#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/scroll-area/thumb/ScrollAreaThumb.mjs
|
|
907
897
|
/**
|
|
908
898
|
* The draggable part of the scrollbar that indicates the current scroll position.
|
|
909
899
|
* Renders a `<div>` element.
|
|
@@ -912,33 +902,27 @@ ScrollAreaContent.displayName = "ScrollAreaContent";
|
|
|
912
902
|
*/
|
|
913
903
|
const ScrollAreaThumb = /*#__PURE__*/ React$1.forwardRef(function ScrollAreaThumb(componentProps, forwardedRef) {
|
|
914
904
|
const { render, className, style, ...elementProps } = componentProps;
|
|
915
|
-
const { thumbYRef, thumbXRef, handlePointerDown, handlePointerMove, handlePointerUp,
|
|
916
|
-
const
|
|
917
|
-
const
|
|
918
|
-
scrolling: orientation === "horizontal" ? scrollingX : scrollingY,
|
|
919
|
-
orientation
|
|
920
|
-
};
|
|
921
|
-
function endDrag(event) {
|
|
922
|
-
if (orientation === "vertical") setScrollingY(false);
|
|
923
|
-
if (orientation === "horizontal") setScrollingX(false);
|
|
924
|
-
handlePointerUp(event);
|
|
925
|
-
}
|
|
905
|
+
const { thumbYRef, thumbXRef, handlePointerDown, handlePointerMove, handlePointerUp, scrollingX, scrollingY, hasMeasuredScrollbar } = useScrollAreaRootContext();
|
|
906
|
+
const orientation = useScrollAreaScrollbarContext();
|
|
907
|
+
const vertical = orientation === "vertical";
|
|
926
908
|
return useRenderElement("div", componentProps, {
|
|
927
|
-
ref: [forwardedRef,
|
|
928
|
-
state
|
|
909
|
+
ref: [forwardedRef, vertical ? thumbYRef : thumbXRef],
|
|
910
|
+
state: {
|
|
911
|
+
scrolling: vertical ? scrollingY : scrollingX,
|
|
912
|
+
orientation
|
|
913
|
+
},
|
|
929
914
|
props: [{
|
|
930
915
|
onPointerDown: handlePointerDown,
|
|
931
916
|
onPointerMove: handlePointerMove,
|
|
932
|
-
onPointerUp:
|
|
933
|
-
onPointerCancel:
|
|
917
|
+
onPointerUp: handlePointerUp,
|
|
918
|
+
onPointerCancel: handlePointerUp,
|
|
934
919
|
style: {
|
|
935
920
|
visibility: hasMeasuredScrollbar ? void 0 : "hidden",
|
|
936
|
-
...
|
|
937
|
-
...orientation === "horizontal" && { width: `var(${ScrollAreaScrollbarCssVars.scrollAreaThumbWidth})` }
|
|
921
|
+
...vertical ? { height: "var(--scroll-area-thumb-height)" } : { width: "var(--scroll-area-thumb-width)" }
|
|
938
922
|
}
|
|
939
923
|
}, elementProps]
|
|
940
924
|
});
|
|
941
925
|
});
|
|
942
926
|
ScrollAreaThumb.displayName = "ScrollAreaThumb";
|
|
943
927
|
//#endregion
|
|
944
|
-
export {
|
|
928
|
+
export { ScrollAreaScrollbarCssVars_exports as a, ScrollAreaScrollbarDataAttributes_exports as c, useScrollAreaRootContext as d, ScrollAreaViewport as i, ScrollAreaRootCssVars_exports as l, ScrollAreaContent as n, ScrollAreaViewportCssVars_exports as o, ScrollAreaScrollbar as r, ScrollAreaRoot as s, ScrollAreaThumb as t, ScrollAreaRootDataAttributes_exports as u };
|