@aussieljk/forkbook 0.0.1-2 → 0.0.1-21
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/LICENSE +1 -1
- package/README.md +35 -53
- package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
- package/assets/browser/favicon-wrapper.svg +4 -4
- package/assets/browser/favicon.svg +1 -1
- package/assets/browser/inter-LICENSE.txt +92 -0
- package/assets/browser/inter-variable-italic.woff2 +0 -0
- package/assets/browser/inter-variable.woff2 +0 -0
- package/assets/browser/mirror-ball.png +0 -0
- package/assets/builder-vite/iframe.html +8 -24
- package/assets/create/rendererAssets/common/Configure.mdx +100 -100
- package/assets/create/rendererAssets/common/button.css +7 -7
- package/assets/create/rendererAssets/common/header.css +6 -6
- package/assets/create/rendererAssets/common/page.css +12 -12
- package/assets/create/templates/react-native/index.expo.js +4 -4
- package/assets/create/templates/react-native/index.js +5 -5
- package/assets/server/base-preview-body.html +32 -32
- package/assets/server/base-preview-head.html +86 -86
- package/assets/server/template.ejs +31 -26
- package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-7FO5YFB5.js} +8 -8
- package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
- package/dist/_browser-chunks/WithTooltip-QWFSUQZP.js +199 -0
- package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-2WZWS7GJ.js} +5 -5
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-3QNZOMD7.js} +8 -3
- package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-3QPZOXB7.js} +6 -8
- package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-4BOJAE7P.js} +14 -10
- package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
- package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-5Z3MWCFR.js} +12 -12
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-6SL45YM3.js} +15 -18
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-AN2LJG5I.js} +1 -1
- package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-BLCZ3C5M.js} +48 -83
- package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
- package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-BSYOFSF6.js} +770 -720
- package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-DHTLVXAL.js} +38 -45
- package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
- package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
- package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-E6QKKKLO.js} +21 -6
- package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-EBSOKHFG.js} +10 -4
- package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-ECMVTOVD.js} +1 -1
- package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-ENHFQXYS.js} +9 -7
- package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-EW2M3URL.js} +91 -84
- package/dist/_browser-chunks/chunk-FAOLWWRN.js +20 -0
- package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-FCULT3AE.js} +3 -3
- package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
- package/dist/_browser-chunks/chunk-HZFHNYRC.js +53 -0
- package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
- package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-KQJ4T6JL.js} +31 -25
- package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
- package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
- package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
- package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
- package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
- package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
- package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
- package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
- package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
- package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-PQRPDA4U.js} +5 -5
- package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
- package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
- package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
- package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
- package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
- package/dist/_browser-chunks/chunk-XSVERCGB.js +91 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
- package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-YJO5BK52.js} +7 -3
- package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-ZF37BMDS.js} +6 -2
- package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-ZIZCGWCG.js} +348 -170
- package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
- package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
- package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-UC2CB4GH.js} +37 -35
- package/dist/_node-chunks/builder-manager-S5UUKVOR.js +1174 -0
- package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-3335ZZIO.js} +6 -6
- package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-3D6N6P2R.js} +283 -306
- package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-3ER54PQM.js} +8 -8
- package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-3H5C52QU.js} +6 -6
- package/dist/_node-chunks/chunk-3UI3TQ7R.js +28 -0
- package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-4C3ACAHV.js} +6 -6
- package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-4UTCKJEQ.js} +7 -7
- package/dist/_node-chunks/chunk-53A5CYDK.js +572 -0
- package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-53PSBDRK.js} +140 -118
- package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-54MO4QLB.js} +6 -6
- package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-5CJMRQZ6.js} +6 -6
- package/dist/_node-chunks/chunk-5HOM7B4V.js +20 -0
- package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-5QG6AXK4.js} +7 -7
- package/dist/_node-chunks/chunk-67XVZZUO.js +405 -0
- package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-6HQJJDLH.js} +6 -6
- package/dist/_node-chunks/chunk-6IPHWCFI.js +29 -0
- package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-6XYOFBRD.js} +98 -129
- package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-7IAYDGYH.js} +6 -6
- package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-7P67PUU2.js} +7 -7
- package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-AAK5BBF2.js} +7 -7
- package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-BGUVBOOU.js} +10 -10
- package/dist/_node-chunks/chunk-BNGBOASQ.js +25 -0
- package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-BWZWCVVH.js} +9 -9
- package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-C6HQ6WLU.js} +8 -8
- package/dist/_node-chunks/chunk-CJHRH777.js +20 -0
- package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-COEW4ORP.js} +6 -6
- package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-CVHDAEDZ.js} +7 -7
- package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-CXGOQNGI.js} +7 -7
- package/dist/_node-chunks/chunk-D4XTQWRM.js +11 -0
- package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-D5V6CZ6U.js} +7 -7
- package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-DCTXJ4TT.js} +14 -16
- package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-DP6WFY3D.js} +7 -7
- package/dist/_node-chunks/chunk-E23GDXG6.js +271 -0
- package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-E3ZFMURC.js} +8 -8
- package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-E6O3NA44.js} +7 -7
- package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-ECS3WDOU.js} +8 -8
- package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-FB5YJWOH.js} +6 -6
- package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-FCK5FM6D.js} +7 -7
- package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-FJUGPEJK.js} +6 -6
- package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-FPYXI76E.js} +75 -75
- package/dist/_node-chunks/chunk-GEWVOY3F.js +62 -0
- package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-GHZ44BFB.js} +14 -13
- package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-GJMFISS3.js} +8 -8
- package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-GK2Y2RFX.js} +7 -7
- package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-GP6YBA2R.js} +6 -6
- package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-GQUFGJ4D.js} +6 -6
- package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-H4CRQDTK.js} +6 -6
- package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-HCDG54OG.js} +7 -7
- package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-HGJMP4EI.js} +506 -494
- package/dist/_node-chunks/chunk-HSX6BDBA.js +18 -0
- package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-IPFPWMT5.js} +1320 -437
- package/dist/_node-chunks/chunk-KRIOC4WF.js +281 -0
- package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-KUL2MJ6N.js} +6 -6
- package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-LUR6QTYB.js} +10 -10
- package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-LYS7TI35.js} +368 -321
- package/dist/_node-chunks/chunk-MDTXL6SN.js +2613 -0
- package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-MIIPXT4S.js} +9 -9
- package/dist/_node-chunks/chunk-MLWGAA2I.js +138 -0
- package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-MWUGCUB5.js} +52 -22
- package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-MX5MVLEK.js} +6 -6
- package/dist/_node-chunks/chunk-N44UIGCO.js +47 -0
- package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-NP2JHOFY.js} +37 -31
- package/dist/_node-chunks/chunk-OMNGOPNG.js +52 -0
- package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-OO2GTHUF.js} +9 -17
- package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-PC57BIYZ.js} +8 -8
- package/dist/_node-chunks/chunk-PHWMAF5C.js +49 -0
- package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-PLIQQETC.js} +7 -7
- package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-QMYCIS2U.js} +6 -6
- package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-QZIDK3GX.js} +89 -71
- package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-ROJ6RSIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-S2NB6QEG.js} +542 -1049
- package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-S6VCOSQS.js} +6 -6
- package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-SEVOOOB2.js} +474 -479
- package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-SFT6ZAVN.js} +6 -6
- package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-SXBUK4F6.js} +7 -7
- package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-TGF6Q66I.js} +15 -9
- package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-TGFHWGGT.js} +9 -6
- package/dist/_node-chunks/chunk-TTLSBLPQ.js +620 -0
- package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-UUAEW2AR.js} +6 -6
- package/dist/_node-chunks/chunk-VQHM66NL.js +534 -0
- package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-VSTTY3TM.js} +6 -6
- package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-XDBSAFUB.js} +650 -9
- package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-XTQQGAUZ.js} +7 -7
- package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-YMJVSFJT.js} +6 -6
- package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-YXEKWVJQ.js} +7 -7
- package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-Z6CUUWJO.js} +34 -949
- package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-ZAIGR7EV.js} +64 -17
- package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-ZCFXEFR6.js} +33 -41
- package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-ZHUBOYOD.js} +6 -6
- package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-ZHUBTBP2.js} +25 -8
- package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-ZSTIFZHY.js} +21 -25
- package/dist/_node-chunks/dist-TRTHRODT.js +16 -0
- package/dist/_node-chunks/dist-XPLJ5T4W.js +27 -0
- package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-AC7MOWYK.js} +21 -22
- package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-ZW26VGEP.js} +2263 -130
- package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-T2KZK62Q.js} +12 -12
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-2CWUUF6H.js} +12 -12
- package/dist/_node-chunks/optimized-tests-4AK3PFSX.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-CMRGEXHM.js} +12 -12
- package/dist/_node-chunks/postinstallAddon-OUQENFYO.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-LHOAIJ2E.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-K54MMYY6.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-TTL4PWH7.js} +12 -12
- package/dist/_node-chunks/{run-NL66VTNR.js → run-6DXBB5F7.js} +294 -30
- package/dist/_node-chunks/{run-KDTIZNSY.js → run-BMTV5ZAO.js} +18 -18
- package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-FDPYW25Y.js} +9 -9
- package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-2TCFWAAI.js} +9 -9
- package/dist/actions/decorator.js +18 -22
- package/dist/actions/index.d.ts +4 -4
- package/dist/actions/index.js +3 -2
- package/dist/addon-a11y/index.d.ts +3 -3
- package/dist/addon-a11y/index.js +3 -2
- package/dist/addon-a11y/manager.js +41 -38
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.d.ts +8 -2
- package/dist/addon-a11y/preview.js +3 -2
- package/dist/addon-comments/manager.js +353 -0
- package/dist/addon-comments/preset.js +80 -0
- package/dist/addon-comments/preview.js +101 -0
- package/dist/addon-docs/blocks.d.ts +123 -85
- package/dist/addon-docs/blocks.js +159 -85
- package/dist/addon-docs/index.d.ts +21 -21
- package/dist/addon-docs/index.js +3 -3
- package/dist/addon-docs/manager.js +6 -6
- package/dist/addon-docs/preset.js +12 -12
- package/dist/addon-docs/preview.d.ts +3 -1
- package/dist/addon-docs/preview.js +1 -1
- package/dist/addon-links/index.d.ts +2 -1
- package/dist/addon-links/index.js +5 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +5 -2
- package/dist/addon-links/react/index.js +4 -1
- package/dist/addon-mcp/preset.js +203 -84
- package/dist/addon-mcp/preview.js +1 -1
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +71 -71
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-ondevice-controls/index.js +1 -1
- package/dist/addon-ondevice-controls/register.js +1 -1
- package/dist/addon-pseudo-states/index.d.ts +1 -1
- package/dist/addon-pseudo-states/index.js +1 -1
- package/dist/addon-pseudo-states/manager.js +2 -2
- package/dist/addon-pseudo-states/preview.d.ts +1 -1
- package/dist/addon-pseudo-states/preview.js +1 -1
- package/dist/addon-themes/index.d.ts +7 -6
- package/dist/addon-themes/index.js +2 -2
- package/dist/addon-themes/manager.js +4 -4
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-themes/preview.js +2 -2
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +32 -23
- package/dist/addon-vitest/node/coverage-reporter.js +11 -11
- package/dist/addon-vitest/node/vitest.js +37 -37
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +26 -26
- package/dist/addon-vitest/vitest-plugin/global-setup.js +23 -23
- package/dist/addon-vitest/vitest-plugin/index.js +83 -73
- package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
- package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
- package/dist/babel/index.d.ts +241 -995
- package/dist/babel/index.js +30583 -38
- package/dist/backgrounds/index.d.ts +1 -1
- package/dist/bin/core.js +122 -110
- package/dist/bin/dispatcher.js +18 -16
- package/dist/bin/loader.js +17 -16
- package/dist/builder-next/index.d.ts +59 -0
- package/dist/builder-next/index.js +201 -0
- package/dist/builder-vite/index.d.ts +8 -3
- package/dist/builder-vite/index.js +80 -25
- package/dist/builder-vite/preset.js +13 -13
- package/dist/channels/index.d.ts +3 -2
- package/dist/channels/index.js +97 -24
- package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
- package/dist/{chunk-C2p5r3Vt.d.ts → chunk-B53gRJBs.d.ts} +838 -703
- package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
- package/dist/chunk-BcYKnZln.d.ts +10 -0
- package/dist/{chunk-Bpi2tz-6.d.ts → chunk-BspNQvZn.d.ts} +21 -23
- package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
- package/dist/chunk-CFhJCPSB.d.ts +48 -0
- package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
- package/dist/{chunk-CwQKNaYL.d.ts → chunk-CMx6bGAU.d.ts} +2 -2
- package/dist/{chunk-DEVFdzxR.d.ts → chunk-CRmUwbkb.d.ts} +4 -4
- package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
- package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
- package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
- package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
- package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DNCU78oW.d.ts} +160 -323
- package/dist/chunk-DVIvUVkS.d.ts +195 -0
- package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
- package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
- package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
- package/dist/chunk-Susgfkap.d.ts +20 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-bhl-7rRD.d.ts} +40 -15
- package/dist/{chunk-BXLImeLy.d.ts → chunk-r-Vjut9o.d.ts} +52 -11
- package/dist/cli/index.d.ts +15 -904
- package/dist/cli/index.js +49 -5209
- package/dist/cli/skills/content/index.d.ts +3 -3
- package/dist/cli/skills/content/index.js +3 -3
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +4 -4
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.d.ts +20 -21
- package/dist/client-logger/index.js +5 -2
- package/dist/common/index.d.ts +32 -44
- package/dist/common/index.js +89 -98
- package/dist/components/index.d.ts +86 -272
- package/dist/components/index.js +2759 -8547
- package/dist/core-events/index.d.ts +16 -7
- package/dist/core-events/index.js +5 -5
- package/dist/core-server/index.d.ts +95 -26
- package/dist/core-server/index.js +1675 -408
- package/dist/core-server/presets/common-manager.js +837 -1335
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +100 -282
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/csf-utils.d.ts +1 -1
- package/dist/csf/index.d.ts +6 -6
- package/dist/csf/index.js +90 -159
- package/dist/csf-tools/index.d.ts +66 -54
- package/dist/csf-tools/index.js +19 -17
- package/dist/docs-tools/index.d.ts +332 -16
- package/dist/docs-tools/index.js +3 -3
- package/dist/highlight/index.d.ts +1 -1
- package/dist/instrumenter/index.d.ts +5 -5
- package/dist/instrumenter/index.js +31 -19
- package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-B4NRbNSS.js} +638 -1731
- package/dist/{preview/_chunks/runtime-CqHxptiK.js → manager/_manager-chunks/globals-runtime-BC43T1rL.js} +3413 -173
- package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-BJ6EZqH7.js} +1035 -623
- package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-BfXaq_CP.js} +2 -2
- package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-BkSn_Jpe.js} +411 -379
- package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-BnQ7i5wq.js} +232 -370
- package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
- package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
- package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
- package/dist/manager/_manager-chunks/globals-runtime-CS41oTca.js +1808 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cisw9IIE.js} +11 -11
- package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
- package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DCmvKMN5.js} +2 -1
- package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
- package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-DpvE_zRs.js} +1013 -782
- package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
- package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
- package/dist/manager/_manager-chunks/globals-runtime-oRjPg2jY.js +8935 -0
- package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-wV08sCKl.js} +715 -620
- package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-4OQZWibO.js} +1717 -1536
- package/dist/manager/_manager-chunks/runtime-BYxbyNm0.js +201 -0
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/runtime-CM4Z8aKR.js +735 -0
- package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-Cjo1UL1u.js} +57 -76
- package/dist/manager/_manager-chunks/runtime-Cx1-wr6J.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-Cxe_uJRb.js} +220 -406
- package/dist/manager/_manager-chunks/runtime-D702FFTO.js +551 -0
- package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-DnWFp6Zw.js} +8 -534
- package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-DoYPE6g6.js} +232 -158
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-sppa-0ll.js} +741 -698
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/globals.d.ts +12 -12
- package/dist/manager/globals.js +12 -12
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +538 -528
- package/dist/manager-errors.d.ts +1 -1
- package/dist/manager-errors.js +2 -2
- package/dist/mcp/index.d.ts +10 -10
- package/dist/mcp/index.js +11 -11
- package/dist/mocking-utils/index.d.ts +7 -5
- package/dist/mocking-utils/index.js +34 -34
- package/dist/mocking-utils/mocker-runtime.js +2 -2
- package/dist/next/index.d.ts +231 -0
- package/dist/next/index.js +398 -0
- package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
- package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
- package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
- package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
- package/dist/nextjs-vite/index.d.ts +4 -4
- package/dist/nextjs-vite/index.js +10 -5
- package/dist/nextjs-vite/node/index.d.ts +2 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +117 -15
- package/dist/nextjs-vite/preview.d.ts +2 -1
- package/dist/nextjs-vite/preview.js +1 -1
- package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
- package/dist/nextjs-vite/vite-plugin/index.js +9 -9
- package/dist/nextjs-vite-plugin/index.d.ts +2 -3
- package/dist/nextjs-vite-plugin/index.js +24 -49
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
- package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
- package/dist/node-logger/index.d.ts +89 -90
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +15 -14
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/{manager/_manager-chunks/globals-runtime-8HkdnU2F.js → preview/_chunks/runtime-BYRCSYBN.js} +4440 -179
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-Bvh_rfnQ.js} +29 -64
- package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-Cbq5WjbL.js} +772 -418
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-D2MPrqbU.js} +2 -2
- package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DDEUZops.js} +453 -161
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-DS0s7U3c.js} +482 -334
- package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-DsjyhLpG.js} +397 -176
- package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-Dwi6NFcX.js} +3 -3
- package/dist/preview/globals.d.ts +10 -10
- package/dist/preview/globals.js +10 -10
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +3 -3
- package/dist/preview-api/index.js +12 -10
- package/dist/preview-errors.d.ts +1 -1
- package/dist/preview-errors.js +2 -2
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview-argtypes.js +1 -1
- package/dist/react/entry-preview-docs.js +1 -1
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.d.ts +9 -11
- package/dist/react/index.js +8 -6
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.d.ts +1 -1
- package/dist/react/preview.js +5 -4
- package/dist/react-native/bin/get-stories.js +12 -12
- package/dist/react-native/index.d.ts +48 -47
- package/dist/react-native/index.js +64 -249
- package/dist/react-native/metro/node.d.ts +3 -3
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +18 -18
- package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +27 -26
- package/dist/react-native/preview.js +4 -1
- package/dist/react-native/scripts/generate.d.ts +1 -1
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-native/stub.js +1 -1
- package/dist/react-native-theming/index.d.ts +2 -58
- package/dist/react-native-theming/index.js +63 -2338
- package/dist/react-native-ui/index.d.ts +14 -14
- package/dist/react-native-ui/index.js +8 -15
- package/dist/react-native-ui-common/index.d.ts +32 -12
- package/dist/react-native-ui-common/index.js +26 -31
- package/dist/react-vite/index.d.ts +2 -2
- package/dist/react-vite/node/index.d.ts +3 -3
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.d.ts +3 -1
- package/dist/react-vite/preset.js +16 -9
- package/dist/router/index.d.ts +80 -3
- package/dist/router/index.js +66 -12
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +3 -3
- package/dist/shared/open-service/index.js +2 -2
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/shared/open-service/toolsets/docs/public.d.ts +28 -28
- package/dist/telemetry/index.d.ts +38 -274
- package/dist/telemetry/index.js +11 -68
- package/dist/test/index.d.ts +2 -2
- package/dist/test/index.js +765 -511
- package/dist/theming/create.d.ts +1 -1
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.d.ts +6 -6
- package/dist/theming/index.js +41 -16
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +5 -5
- package/dist/viewport/index.d.ts +1 -1
- package/package.json +69 -69
- package/skills/setup/SKILL.md +14 -0
- package/skills/stories/SKILL.md +21 -0
- package/skills/write-story/SKILL.md +14 -0
- package/template/nextjs-vite/cli/js/Button.jsx +2 -2
- package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
- package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
- package/template/nextjs-vite/cli/js/Header.jsx +1 -1
- package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
- package/template/nextjs-vite/cli/js/Page.jsx +3 -3
- package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
- package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
- package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
- package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
- package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
- package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
- package/template/nextjs-vite/cli/ts/Page.tsx +3 -3
- package/template/react/cli/js/Button.jsx +2 -2
- package/template/react/cli/js/Button.stories.js +6 -6
- package/template/react/cli/js/Header.jsx +1 -1
- package/template/react/cli/js/Header.stories.js +2 -2
- package/template/react/cli/js/Page.jsx +3 -3
- package/template/react/cli/js/Page.stories.js +2 -2
- package/template/react/cli/ts/Button.stories.ts +6 -6
- package/template/react/cli/ts/Button.tsx +2 -2
- package/template/react/cli/ts/Header.stories.ts +2 -2
- package/template/react/cli/ts/Header.tsx +1 -1
- package/template/react/cli/ts/Page.stories.ts +2 -2
- package/template/react/cli/ts/Page.tsx +3 -3
- package/template/react-vite/cli/js/Button.jsx +2 -2
- package/template/react-vite/cli/js/Button.stories.js +6 -6
- package/template/react-vite/cli/js/Header.jsx +1 -1
- package/template/react-vite/cli/js/Header.stories.js +2 -2
- package/template/react-vite/cli/js/Page.jsx +3 -3
- package/template/react-vite/cli/js/Page.stories.js +2 -2
- package/template/react-vite/cli/ts/Button.stories.ts +6 -6
- package/template/react-vite/cli/ts/Button.tsx +2 -2
- package/template/react-vite/cli/ts/Header.stories.ts +2 -2
- package/template/react-vite/cli/ts/Header.tsx +1 -1
- package/template/react-vite/cli/ts/Page.stories.ts +2 -2
- package/template/react-vite/cli/ts/Page.tsx +3 -3
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
- package/dist/_node-chunks/builder-manager-VVHYQXCH.js +0 -1661
- package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
- package/dist/_node-chunks/chunk-3BKIBF5S.js +0 -3008
- package/dist/_node-chunks/chunk-3T4ZSNPH.js +0 -662
- package/dist/_node-chunks/chunk-5DQFEZEA.js +0 -40
- package/dist/_node-chunks/chunk-6LMWA44H.js +0 -3837
- package/dist/_node-chunks/chunk-BXVYT7SB.js +0 -36
- package/dist/_node-chunks/chunk-CQKMLL5J.js +0 -33
- package/dist/_node-chunks/chunk-EHUNOMDD.js +0 -52345
- package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
- package/dist/_node-chunks/chunk-GRBLDJCR.js +0 -989
- package/dist/_node-chunks/chunk-IDEL2J23.js +0 -23
- package/dist/_node-chunks/chunk-JPAZLYJ3.js +0 -29
- package/dist/_node-chunks/chunk-MK2KYAI6.js +0 -5414
- package/dist/_node-chunks/chunk-NPO45IMH.js +0 -33
- package/dist/_node-chunks/chunk-QEQLR22M.js +0 -1877
- package/dist/_node-chunks/chunk-RZMQ7S3L.js +0 -92
- package/dist/_node-chunks/chunk-SIEXZVCR.js +0 -51
- package/dist/_node-chunks/chunk-TEQGGSP7.js +0 -33
- package/dist/_node-chunks/chunk-TFCEV2XX.js +0 -155
- package/dist/_node-chunks/chunk-UBOGWBEA.js +0 -148
- package/dist/_node-chunks/chunk-W4OMYLSP.js +0 -1297
- package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
- package/dist/_node-chunks/chunk-ZMAMXQKP.js +0 -4731
- package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
- package/dist/_node-chunks/globby-OEMHPBFY.js +0 -2884
- package/dist/_node-chunks/jiti-NFX6UU74.js +0 -3848
- package/dist/_node-chunks/lib-MDVARD7W.js +0 -366
- package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
- package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
- package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
- package/dist/chunk-BTVrWliM.d.ts +0 -115
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/chunk-BxWufQms.d.ts +0 -142
- package/dist/chunk-DaVb55-_.d.ts +0 -124
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
- package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
- package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +0 -10463
- package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
- package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +0 -22
- package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
- package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +0 -77
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-BwSxqk3t.js +0 -63
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
- package/dist/preview/_chunks/runtime-DuHdxMFA.js +0 -387
package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-BkSn_Jpe.js}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { a as __toESM, n as __esmMin } from "./globals-runtime-BdGkqNEt.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { A as
|
|
2
|
+
import "./globals-runtime-wV08sCKl.js";
|
|
3
|
+
import { i as require_react, n as init_shim_cjs_0, r as require_jsx_runtime, t as import_react$83 } from "./globals-runtime-nQMRiA0J.js";
|
|
4
|
+
import { n as require_react_dom } from "./globals-runtime-DgO0hT2p.js";
|
|
5
|
+
import { A as init_os, B as useMergedRefs, C as init_env, D as init_engine, E as voiceOver, F as init_useForcedRerendering, G as init_useOnMount, H as Timeout, I as useForcedRerendering, J as useStableCallback, K as useOnMount, L as init_reactVersion, M as mac, N as init_useId, O as webkit, P as useId, R as isReactVersionAtLeast, S as init_shadowDom, T as init_screen_reader, U as init_useTimeout, V as useMergedRefsN, W as useTimeout, X as useRefWithInit, Y as init_useRefWithInit, _ as useIsoLayoutEffect, a as init_useScrollLock, b as contains, c as init_ReactStore, d as AnimationFrame, f as init_useAnimationFrame, g as init_useIsoLayoutEffect, h as useValueAsRef, i as useEnhancedClickHandler, j as ios, k as android, l as init_visuallyHidden, m as init_useValueAsRef, n as useControlled, o as useScrollLock, p as useAnimationFrame, q as init_useStableCallback, r as init_useEnhancedClickHandler, s as ReactStore, t as init_useControlled, u as visuallyHidden, v as activeElement, w as jsdom, x as getTarget, y as closest, z as init_useMergedRefs } from "./globals-runtime-Cisw9IIE.js";
|
|
6
|
+
import { A as init_floating_ui_utils_dom, C as getSide, D as getNodeName, E as getComputedStyle$1, I as isShadowRoot, M as isHTMLElement, N as isLastTraversableNode, O as getParentNode, P as isNode, S as getPaddingObject, T as init_floating_ui_utils, _ as clamp$1, a as shift, b as getAlignmentAxis, c as autoUpdate, i as offset, j as isElement, k as getWindow, l as init_floating_ui_dom, n as init_floating_ui_react_dom, o as size, r as limitShift, s as useFloating, t as flip, v as evaluate, w as getSideAxis, x as getAxisLength, y as getAlignment } from "./globals-runtime-CS41oTca.js";
|
|
6
7
|
//#region ../../node_modules/@base-ui/utils/empty.mjs
|
|
7
8
|
function NOOP() {}
|
|
8
9
|
var EMPTY_ARRAY, EMPTY_OBJECT;
|
|
@@ -37,16 +38,16 @@ function init_formatErrorMessage() {
|
|
|
37
38
|
//#endregion
|
|
38
39
|
//#region ../../node_modules/@base-ui/react/scroll-area/root/ScrollAreaRootContext.mjs
|
|
39
40
|
function useScrollAreaRootContext() {
|
|
40
|
-
const context = import_react$
|
|
41
|
+
const context = import_react$82.useContext(ScrollAreaRootContext);
|
|
41
42
|
if (context === void 0) throw new Error(formatErrorMessage(53));
|
|
42
43
|
return context;
|
|
43
44
|
}
|
|
44
|
-
var import_react$
|
|
45
|
+
var import_react$82, ScrollAreaRootContext;
|
|
45
46
|
function init_ScrollAreaRootContext() {
|
|
46
47
|
return (init_ScrollAreaRootContext = __esmMin((() => {
|
|
47
48
|
init_formatErrorMessage();
|
|
48
|
-
import_react$
|
|
49
|
-
ScrollAreaRootContext = /*#__PURE__*/ import_react$
|
|
49
|
+
import_react$82 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
50
|
+
ScrollAreaRootContext = /*#__PURE__*/ import_react$82.createContext(void 0);
|
|
50
51
|
})))();
|
|
51
52
|
}
|
|
52
53
|
//#endregion
|
|
@@ -55,15 +56,15 @@ function init_ScrollAreaRootContext() {
|
|
|
55
56
|
* Extracts the `ref` from a React element, handling different React versions.
|
|
56
57
|
*/
|
|
57
58
|
function getReactElementRef(element) {
|
|
58
|
-
if (!/*#__PURE__*/ import_react$
|
|
59
|
+
if (!/*#__PURE__*/ import_react$81.isValidElement(element)) return null;
|
|
59
60
|
const reactElement = element;
|
|
60
61
|
const propsWithRef = reactElement.props;
|
|
61
62
|
return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;
|
|
62
63
|
}
|
|
63
|
-
var import_react$
|
|
64
|
+
var import_react$81;
|
|
64
65
|
function init_getReactElementRef() {
|
|
65
66
|
return (init_getReactElementRef = __esmMin((() => {
|
|
66
|
-
import_react$
|
|
67
|
+
import_react$81 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
67
68
|
init_reactVersion();
|
|
68
69
|
})))();
|
|
69
70
|
}
|
|
@@ -317,40 +318,40 @@ function resolveRenderFunctionProps(props) {
|
|
|
317
318
|
}
|
|
318
319
|
function unwrapLazyRenderProp(render) {
|
|
319
320
|
if (render?.$$typeof !== REACT_LAZY_TYPE) return render;
|
|
320
|
-
const unwrapped = import_react$
|
|
321
|
-
return /*#__PURE__*/ import_react$
|
|
321
|
+
const unwrapped = import_react$79.Children.toArray(render)[0];
|
|
322
|
+
return /*#__PURE__*/ import_react$79.isValidElement(unwrapped) ? unwrapped : render;
|
|
322
323
|
}
|
|
323
324
|
function evaluateRenderProp(element, render, props, state) {
|
|
324
325
|
if (render) {
|
|
325
326
|
if (typeof render === "function") return render(props, state);
|
|
326
327
|
const mergedProps = mergeProps(props, render.props);
|
|
327
328
|
mergedProps.ref = props.ref;
|
|
328
|
-
return /*#__PURE__*/ import_react$
|
|
329
|
+
return /*#__PURE__*/ import_react$79.cloneElement(render, mergedProps);
|
|
329
330
|
}
|
|
330
331
|
return renderTag(element, props);
|
|
331
332
|
}
|
|
332
333
|
function renderTag(Tag, props) {
|
|
333
|
-
if (Tag === "button") return /*#__PURE__*/ (0, import_react$
|
|
334
|
+
if (Tag === "button") return /*#__PURE__*/ (0, import_react$80.createElement)("button", {
|
|
334
335
|
type: "button",
|
|
335
336
|
...props,
|
|
336
337
|
key: props.key
|
|
337
338
|
});
|
|
338
|
-
if (Tag === "img") return /*#__PURE__*/ (0, import_react$
|
|
339
|
+
if (Tag === "img") return /*#__PURE__*/ (0, import_react$80.createElement)("img", {
|
|
339
340
|
alt: "",
|
|
340
341
|
...props,
|
|
341
342
|
key: props.key
|
|
342
343
|
});
|
|
343
|
-
return /*#__PURE__*/ import_react$
|
|
344
|
+
return /*#__PURE__*/ import_react$79.createElement(Tag, props);
|
|
344
345
|
}
|
|
345
|
-
var import_react$
|
|
346
|
+
var import_react$79, import_react$80, REACT_LAZY_TYPE;
|
|
346
347
|
function init_useRenderElement() {
|
|
347
348
|
return (init_useRenderElement = __esmMin((() => {
|
|
348
|
-
import_react$
|
|
349
|
+
import_react$79 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
349
350
|
init_useMergedRefs();
|
|
350
351
|
init_getReactElementRef();
|
|
351
352
|
init_empty();
|
|
352
353
|
init_mergeProps();
|
|
353
|
-
import_react$
|
|
354
|
+
import_react$80 = require_react();
|
|
354
355
|
REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
355
356
|
})))();
|
|
356
357
|
}
|
|
@@ -833,13 +834,13 @@ function init_tabbable() {
|
|
|
833
834
|
//#endregion
|
|
834
835
|
//#region ../../node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs
|
|
835
836
|
function useCSPContext() {
|
|
836
|
-
return import_react$
|
|
837
|
+
return import_react$78.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;
|
|
837
838
|
}
|
|
838
|
-
var import_react$
|
|
839
|
+
var import_react$78, CSPContext, DEFAULT_CSP_CONTEXT_VALUE;
|
|
839
840
|
function init_CSPContext() {
|
|
840
841
|
return (init_CSPContext = __esmMin((() => {
|
|
841
|
-
import_react$
|
|
842
|
-
CSPContext = /*#__PURE__*/ import_react$
|
|
842
|
+
import_react$78 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
843
|
+
CSPContext = /*#__PURE__*/ import_react$78.createContext(void 0);
|
|
843
844
|
DEFAULT_CSP_CONTEXT_VALUE = { disableStyleElements: false };
|
|
844
845
|
})))();
|
|
845
846
|
}
|
|
@@ -876,10 +877,10 @@ function normalizeOverflowEdgeThreshold(threshold) {
|
|
|
876
877
|
yEnd: Math.max(0, thresholds?.yEnd || 0)
|
|
877
878
|
};
|
|
878
879
|
}
|
|
879
|
-
var import_react$
|
|
880
|
+
var import_react$77, import_jsx_runtime$24, DEFAULT_COORDS, DEFAULT_SIZE, DEFAULT_OVERFLOW_EDGES, DEFAULT_HIDDEN_STATE, ScrollAreaRoot;
|
|
880
881
|
function init_ScrollAreaRoot() {
|
|
881
882
|
return (init_ScrollAreaRoot = __esmMin((() => {
|
|
882
|
-
import_react$
|
|
883
|
+
import_react$77 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
883
884
|
init_useStableCallback();
|
|
884
885
|
init_useTimeout();
|
|
885
886
|
init_ScrollAreaRootContext();
|
|
@@ -911,37 +912,37 @@ function init_ScrollAreaRoot() {
|
|
|
911
912
|
y: true,
|
|
912
913
|
corner: true
|
|
913
914
|
};
|
|
914
|
-
ScrollAreaRoot = /*#__PURE__*/ import_react$
|
|
915
|
+
ScrollAreaRoot = /*#__PURE__*/ import_react$77.forwardRef(function ScrollAreaRoot(componentProps, forwardedRef) {
|
|
915
916
|
const { render, className, overflowEdgeThreshold: overflowEdgeThresholdProp, style, ...elementProps } = componentProps;
|
|
916
917
|
const { xStart, xEnd, yStart, yEnd } = normalizeOverflowEdgeThreshold(overflowEdgeThresholdProp);
|
|
917
918
|
const rootId = useBaseUiId();
|
|
918
919
|
const scrollYTimeout = useTimeout();
|
|
919
920
|
const scrollXTimeout = useTimeout();
|
|
920
921
|
const { nonce, disableStyleElements } = useCSPContext();
|
|
921
|
-
const [hovering, setHovering] = import_react$
|
|
922
|
-
const [scrollingX, setScrollingX] = import_react$
|
|
923
|
-
const [scrollingY, setScrollingY] = import_react$
|
|
924
|
-
const [touchModality, setTouchModality] = import_react$
|
|
925
|
-
const [hasMeasuredScrollbar, setHasMeasuredScrollbar] = import_react$
|
|
926
|
-
const [cornerSize, setCornerSize] = import_react$
|
|
927
|
-
const [thumbSize, setThumbSize] = import_react$
|
|
928
|
-
const [overflowEdges, setOverflowEdges] = import_react$
|
|
929
|
-
const [hiddenState, setHiddenState] = import_react$
|
|
930
|
-
const rootRef = import_react$
|
|
931
|
-
const viewportRef = import_react$
|
|
932
|
-
const scrollbarYRef = import_react$
|
|
933
|
-
const scrollbarXRef = import_react$
|
|
934
|
-
const thumbYRef = import_react$
|
|
935
|
-
const thumbXRef = import_react$
|
|
936
|
-
const cornerRef = import_react$
|
|
937
|
-
const activePointerIdRef = import_react$
|
|
938
|
-
const startYRef = import_react$
|
|
939
|
-
const startXRef = import_react$
|
|
940
|
-
const startScrollTopRef = import_react$
|
|
941
|
-
const startScrollLeftRef = import_react$
|
|
942
|
-
const currentOrientationRef = import_react$
|
|
943
|
-
const scrollPositionRef = import_react$
|
|
944
|
-
const savedSnapTypeRef = import_react$
|
|
922
|
+
const [hovering, setHovering] = import_react$77.useState(false);
|
|
923
|
+
const [scrollingX, setScrollingX] = import_react$77.useState(false);
|
|
924
|
+
const [scrollingY, setScrollingY] = import_react$77.useState(false);
|
|
925
|
+
const [touchModality, setTouchModality] = import_react$77.useState(false);
|
|
926
|
+
const [hasMeasuredScrollbar, setHasMeasuredScrollbar] = import_react$77.useState(false);
|
|
927
|
+
const [cornerSize, setCornerSize] = import_react$77.useState(DEFAULT_SIZE);
|
|
928
|
+
const [thumbSize, setThumbSize] = import_react$77.useState(DEFAULT_SIZE);
|
|
929
|
+
const [overflowEdges, setOverflowEdges] = import_react$77.useState(DEFAULT_OVERFLOW_EDGES);
|
|
930
|
+
const [hiddenState, setHiddenState] = import_react$77.useState(DEFAULT_HIDDEN_STATE);
|
|
931
|
+
const rootRef = import_react$77.useRef(null);
|
|
932
|
+
const viewportRef = import_react$77.useRef(null);
|
|
933
|
+
const scrollbarYRef = import_react$77.useRef(null);
|
|
934
|
+
const scrollbarXRef = import_react$77.useRef(null);
|
|
935
|
+
const thumbYRef = import_react$77.useRef(null);
|
|
936
|
+
const thumbXRef = import_react$77.useRef(null);
|
|
937
|
+
const cornerRef = import_react$77.useRef(null);
|
|
938
|
+
const activePointerIdRef = import_react$77.useRef(null);
|
|
939
|
+
const startYRef = import_react$77.useRef(0);
|
|
940
|
+
const startXRef = import_react$77.useRef(0);
|
|
941
|
+
const startScrollTopRef = import_react$77.useRef(0);
|
|
942
|
+
const startScrollLeftRef = import_react$77.useRef(0);
|
|
943
|
+
const currentOrientationRef = import_react$77.useRef("vertical");
|
|
944
|
+
const scrollPositionRef = import_react$77.useRef(DEFAULT_COORDS);
|
|
945
|
+
const savedSnapTypeRef = import_react$77.useRef(null);
|
|
945
946
|
function startScrolling(vertical) {
|
|
946
947
|
const setScrolling = vertical ? setScrollingY : setScrollingX;
|
|
947
948
|
const timeout = vertical ? scrollYTimeout : scrollXTimeout;
|
|
@@ -1029,7 +1030,7 @@ function init_ScrollAreaRoot() {
|
|
|
1029
1030
|
setHovering(isTargetRootChild);
|
|
1030
1031
|
}
|
|
1031
1032
|
}
|
|
1032
|
-
const state = import_react$
|
|
1033
|
+
const state = import_react$77.useMemo(() => ({
|
|
1033
1034
|
scrolling: scrollingX || scrollingY,
|
|
1034
1035
|
hasOverflowX: !hiddenState.x,
|
|
1035
1036
|
hasOverflowY: !hiddenState.y,
|
|
@@ -1066,7 +1067,7 @@ function init_ScrollAreaRoot() {
|
|
|
1066
1067
|
props: [props, elementProps],
|
|
1067
1068
|
stateAttributesMapping: scrollAreaStateAttributesMapping
|
|
1068
1069
|
});
|
|
1069
|
-
const contextValue = import_react$
|
|
1070
|
+
const contextValue = import_react$77.useMemo(() => ({
|
|
1070
1071
|
handlePointerDown,
|
|
1071
1072
|
handlePointerMove,
|
|
1072
1073
|
handlePointerUp,
|
|
@@ -1138,28 +1139,28 @@ function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER
|
|
|
1138
1139
|
//#endregion
|
|
1139
1140
|
//#region ../../node_modules/@base-ui/react/scroll-area/viewport/ScrollAreaViewportContext.mjs
|
|
1140
1141
|
function useScrollAreaViewportContext() {
|
|
1141
|
-
const context = import_react$
|
|
1142
|
+
const context = import_react$76.useContext(ScrollAreaViewportContext);
|
|
1142
1143
|
if (context === void 0) throw new Error(formatErrorMessage(55));
|
|
1143
1144
|
return context;
|
|
1144
1145
|
}
|
|
1145
|
-
var import_react$
|
|
1146
|
+
var import_react$76, ScrollAreaViewportContext;
|
|
1146
1147
|
function init_ScrollAreaViewportContext() {
|
|
1147
1148
|
return (init_ScrollAreaViewportContext = __esmMin((() => {
|
|
1148
1149
|
init_formatErrorMessage();
|
|
1149
|
-
import_react$
|
|
1150
|
-
ScrollAreaViewportContext = /*#__PURE__*/ import_react$
|
|
1150
|
+
import_react$76 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1151
|
+
ScrollAreaViewportContext = /*#__PURE__*/ import_react$76.createContext(void 0);
|
|
1151
1152
|
})))();
|
|
1152
1153
|
}
|
|
1153
1154
|
//#endregion
|
|
1154
1155
|
//#region ../../node_modules/@base-ui/react/internals/direction-context/DirectionContext.mjs
|
|
1155
1156
|
function useDirection() {
|
|
1156
|
-
return import_react$
|
|
1157
|
+
return import_react$75.useContext(DirectionContext)?.direction ?? "ltr";
|
|
1157
1158
|
}
|
|
1158
|
-
var import_react$
|
|
1159
|
+
var import_react$75, DirectionContext;
|
|
1159
1160
|
function init_DirectionContext() {
|
|
1160
1161
|
return (init_DirectionContext = __esmMin((() => {
|
|
1161
|
-
import_react$
|
|
1162
|
-
DirectionContext = /*#__PURE__*/ import_react$
|
|
1162
|
+
import_react$75 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1163
|
+
DirectionContext = /*#__PURE__*/ import_react$75.createContext(void 0);
|
|
1163
1164
|
})))();
|
|
1164
1165
|
}
|
|
1165
1166
|
//#endregion
|
|
@@ -1263,10 +1264,10 @@ function applyOverscrollThumb(thumbEl, sizeVar, scrollFromStart, maxScroll, cont
|
|
|
1263
1264
|
thumbEl.style.setProperty(sizeVar, overscroll ? `${nextSize}px` : "");
|
|
1264
1265
|
return (maxScroll ? clamped / maxScroll * maxThumbOffset : 0) + (overscroll > 0 ? size - nextSize : 0);
|
|
1265
1266
|
}
|
|
1266
|
-
var import_react$
|
|
1267
|
+
var import_react$74, import_jsx_runtime$23, OVERFLOW_EDGE_VARS, scrollAreaOverflowVarsRegistered, ScrollAreaViewport;
|
|
1267
1268
|
function init_ScrollAreaViewport() {
|
|
1268
1269
|
return (init_ScrollAreaViewport = __esmMin((() => {
|
|
1269
|
-
import_react$
|
|
1270
|
+
import_react$74 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1270
1271
|
init_useStableCallback();
|
|
1271
1272
|
init_useIsoLayoutEffect();
|
|
1272
1273
|
init_engine();
|
|
@@ -1289,12 +1290,12 @@ function init_ScrollAreaViewport() {
|
|
|
1289
1290
|
scrollAreaOverflowYEnd
|
|
1290
1291
|
];
|
|
1291
1292
|
scrollAreaOverflowVarsRegistered = false;
|
|
1292
|
-
ScrollAreaViewport = /*#__PURE__*/ import_react$
|
|
1293
|
+
ScrollAreaViewport = /*#__PURE__*/ import_react$74.forwardRef(function ScrollAreaViewport(componentProps, forwardedRef) {
|
|
1293
1294
|
const { render, className, style, ...elementProps } = componentProps;
|
|
1294
1295
|
const { viewportRef, scrollbarYRef, scrollbarXRef, thumbYRef, thumbXRef, cornerRef, cornerSize, setCornerSize, setThumbSize, rootId, setHiddenState, hiddenState, setHasMeasuredScrollbar, handleScroll, touchModality, setHovering, setOverflowEdges, overflowEdgeThreshold, viewportState } = useScrollAreaRootContext();
|
|
1295
1296
|
const direction = useDirection();
|
|
1296
|
-
const programmaticScrollRef = import_react$
|
|
1297
|
-
const lastMeasuredViewportMetricsRef = import_react$
|
|
1297
|
+
const programmaticScrollRef = import_react$74.useRef(true);
|
|
1298
|
+
const lastMeasuredViewportMetricsRef = import_react$74.useRef([
|
|
1298
1299
|
NaN,
|
|
1299
1300
|
NaN,
|
|
1300
1301
|
NaN,
|
|
@@ -1471,7 +1472,7 @@ function init_ScrollAreaViewport() {
|
|
|
1471
1472
|
props: [props, elementProps],
|
|
1472
1473
|
stateAttributesMapping: scrollAreaStateAttributesMapping
|
|
1473
1474
|
});
|
|
1474
|
-
const contextValue = import_react$
|
|
1475
|
+
const contextValue = import_react$74.useMemo(() => ({ computeThumbPosition }), [computeThumbPosition]);
|
|
1475
1476
|
return /*#__PURE__*/ (0, import_jsx_runtime$23.jsx)(ScrollAreaViewportContext.Provider, {
|
|
1476
1477
|
value: contextValue,
|
|
1477
1478
|
children: element
|
|
@@ -1496,24 +1497,24 @@ function init_addEventListener() {
|
|
|
1496
1497
|
//#endregion
|
|
1497
1498
|
//#region ../../node_modules/@base-ui/react/scroll-area/scrollbar/ScrollAreaScrollbarContext.mjs
|
|
1498
1499
|
function useScrollAreaScrollbarContext() {
|
|
1499
|
-
const context = import_react$
|
|
1500
|
+
const context = import_react$73.useContext(ScrollAreaScrollbarContext);
|
|
1500
1501
|
if (context === void 0) throw new Error(formatErrorMessage(54));
|
|
1501
1502
|
return context;
|
|
1502
1503
|
}
|
|
1503
|
-
var import_react$
|
|
1504
|
+
var import_react$73, ScrollAreaScrollbarContext;
|
|
1504
1505
|
function init_ScrollAreaScrollbarContext() {
|
|
1505
1506
|
return (init_ScrollAreaScrollbarContext = __esmMin((() => {
|
|
1506
1507
|
init_formatErrorMessage();
|
|
1507
|
-
import_react$
|
|
1508
|
-
ScrollAreaScrollbarContext = /*#__PURE__*/ import_react$
|
|
1508
|
+
import_react$73 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1509
|
+
ScrollAreaScrollbarContext = /*#__PURE__*/ import_react$73.createContext(void 0);
|
|
1509
1510
|
})))();
|
|
1510
1511
|
}
|
|
1511
1512
|
//#endregion
|
|
1512
1513
|
//#region ../../node_modules/@base-ui/react/scroll-area/scrollbar/ScrollAreaScrollbar.mjs
|
|
1513
|
-
var import_react$
|
|
1514
|
+
var import_react$72, import_jsx_runtime$22, ScrollAreaScrollbar;
|
|
1514
1515
|
function init_ScrollAreaScrollbar() {
|
|
1515
1516
|
return (init_ScrollAreaScrollbar = __esmMin((() => {
|
|
1516
|
-
import_react$
|
|
1517
|
+
import_react$72 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1517
1518
|
init_shadowDom();
|
|
1518
1519
|
init_ScrollAreaRootContext();
|
|
1519
1520
|
init_ScrollAreaScrollbarContext();
|
|
@@ -1523,7 +1524,7 @@ function init_ScrollAreaScrollbar() {
|
|
|
1523
1524
|
init_ScrollAreaRootCssVars();
|
|
1524
1525
|
init_ScrollAreaScrollbarCssVars();
|
|
1525
1526
|
import_jsx_runtime$22 = require_jsx_runtime();
|
|
1526
|
-
ScrollAreaScrollbar = /*#__PURE__*/ import_react$
|
|
1527
|
+
ScrollAreaScrollbar = /*#__PURE__*/ import_react$72.forwardRef(function ScrollAreaScrollbar(componentProps, forwardedRef) {
|
|
1527
1528
|
const { render, className, orientation = "vertical", keepMounted = false, style, ...elementProps } = componentProps;
|
|
1528
1529
|
const { hovering, scrollingX, scrollingY, hiddenState, scrollbarYRef, scrollbarXRef, viewportRef, thumbYRef, thumbXRef, handlePointerDown, handlePointerUp, handleScroll, disableViewportSnap, rootId, thumbSize, hasMeasuredScrollbar, viewportState } = useScrollAreaRootContext();
|
|
1529
1530
|
const vertical = orientation === "vertical";
|
|
@@ -1537,7 +1538,7 @@ function init_ScrollAreaScrollbar() {
|
|
|
1537
1538
|
const hideTrackUntilMeasured = !hasMeasuredScrollbar && !keepMounted;
|
|
1538
1539
|
const isHidden = vertical ? hiddenState.y : hiddenState.x;
|
|
1539
1540
|
const shouldRender = keepMounted || !isHidden;
|
|
1540
|
-
import_react$
|
|
1541
|
+
import_react$72.useEffect(() => {
|
|
1541
1542
|
if (!shouldRender) return;
|
|
1542
1543
|
const viewportEl = viewportRef.current;
|
|
1543
1544
|
const scrollbarEl = vertical ? scrollbarYRef.current : scrollbarXRef.current;
|
|
@@ -1644,21 +1645,21 @@ function init_ScrollAreaScrollbar() {
|
|
|
1644
1645
|
}
|
|
1645
1646
|
//#endregion
|
|
1646
1647
|
//#region ../../node_modules/@base-ui/react/scroll-area/content/ScrollAreaContent.mjs
|
|
1647
|
-
var import_react$
|
|
1648
|
+
var import_react$71, ScrollAreaContent;
|
|
1648
1649
|
function init_ScrollAreaContent() {
|
|
1649
1650
|
return (init_ScrollAreaContent = __esmMin((() => {
|
|
1650
|
-
import_react$
|
|
1651
|
+
import_react$71 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1651
1652
|
init_useIsoLayoutEffect();
|
|
1652
1653
|
init_ScrollAreaViewportContext();
|
|
1653
1654
|
init_useRenderElement();
|
|
1654
1655
|
init_ScrollAreaRootContext();
|
|
1655
1656
|
init_stateAttributes();
|
|
1656
|
-
ScrollAreaContent = /*#__PURE__*/ import_react$
|
|
1657
|
+
ScrollAreaContent = /*#__PURE__*/ import_react$71.forwardRef(function ScrollAreaContent(componentProps, forwardedRef) {
|
|
1657
1658
|
const { render, className, style, ...elementProps } = componentProps;
|
|
1658
1659
|
const { computeThumbPosition } = useScrollAreaViewportContext();
|
|
1659
1660
|
const { hasMeasuredScrollbar, viewportState } = useScrollAreaRootContext();
|
|
1660
|
-
const contentWrapperRef = import_react$
|
|
1661
|
-
const computeOnInitialResizeRef = import_react$
|
|
1661
|
+
const contentWrapperRef = import_react$71.useRef(null);
|
|
1662
|
+
const computeOnInitialResizeRef = import_react$71.useRef(hasMeasuredScrollbar);
|
|
1662
1663
|
useIsoLayoutEffect(() => {
|
|
1663
1664
|
if (typeof ResizeObserver === "undefined") return;
|
|
1664
1665
|
let hasInitialized = false;
|
|
@@ -1688,14 +1689,14 @@ function init_ScrollAreaContent() {
|
|
|
1688
1689
|
}
|
|
1689
1690
|
//#endregion
|
|
1690
1691
|
//#region ../../node_modules/@base-ui/react/scroll-area/thumb/ScrollAreaThumb.mjs
|
|
1691
|
-
var import_react$
|
|
1692
|
+
var import_react$70, ScrollAreaThumb;
|
|
1692
1693
|
function init_ScrollAreaThumb() {
|
|
1693
1694
|
return (init_ScrollAreaThumb = __esmMin((() => {
|
|
1694
|
-
import_react$
|
|
1695
|
+
import_react$70 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1695
1696
|
init_ScrollAreaRootContext();
|
|
1696
1697
|
init_ScrollAreaScrollbarContext();
|
|
1697
1698
|
init_useRenderElement();
|
|
1698
|
-
ScrollAreaThumb = /*#__PURE__*/ import_react$
|
|
1699
|
+
ScrollAreaThumb = /*#__PURE__*/ import_react$70.forwardRef(function ScrollAreaThumb(componentProps, forwardedRef) {
|
|
1699
1700
|
const { render, className, style, ...elementProps } = componentProps;
|
|
1700
1701
|
const { thumbYRef, thumbXRef, handlePointerDown, handlePointerMove, handlePointerUp, scrollingX, scrollingY, hasMeasuredScrollbar } = useScrollAreaRootContext();
|
|
1701
1702
|
const orientation = useScrollAreaScrollbarContext();
|
|
@@ -1722,13 +1723,13 @@ function init_ScrollAreaThumb() {
|
|
|
1722
1723
|
}
|
|
1723
1724
|
//#endregion
|
|
1724
1725
|
//#region ../../node_modules/@base-ui/react/scroll-area/corner/ScrollAreaCorner.mjs
|
|
1725
|
-
var import_react$
|
|
1726
|
+
var import_react$69, ScrollAreaCorner;
|
|
1726
1727
|
function init_ScrollAreaCorner() {
|
|
1727
1728
|
return (init_ScrollAreaCorner = __esmMin((() => {
|
|
1728
|
-
import_react$
|
|
1729
|
+
import_react$69 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1729
1730
|
init_ScrollAreaRootContext();
|
|
1730
1731
|
init_useRenderElement();
|
|
1731
|
-
ScrollAreaCorner = /*#__PURE__*/ import_react$
|
|
1732
|
+
ScrollAreaCorner = /*#__PURE__*/ import_react$69.forwardRef(function ScrollAreaCorner(componentProps, forwardedRef) {
|
|
1732
1733
|
const { render, className, style, ...elementProps } = componentProps;
|
|
1733
1734
|
const { cornerRef, cornerSize, hiddenState } = useScrollAreaRootContext();
|
|
1734
1735
|
const element = useRenderElement("div", componentProps, {
|
|
@@ -1849,15 +1850,15 @@ function fastComponent(fn) {
|
|
|
1849
1850
|
* ```
|
|
1850
1851
|
*/
|
|
1851
1852
|
function fastComponentRef(fn) {
|
|
1852
|
-
return /*#__PURE__*/ import_react$
|
|
1853
|
+
return /*#__PURE__*/ import_react$68.forwardRef(fastComponent(fn));
|
|
1853
1854
|
}
|
|
1854
1855
|
function createInstance() {
|
|
1855
1856
|
return { didInitialize: false };
|
|
1856
1857
|
}
|
|
1857
|
-
var import_react$
|
|
1858
|
+
var import_react$68, hooks, currentInstance;
|
|
1858
1859
|
function init_fastHooks() {
|
|
1859
1860
|
return (init_fastHooks = __esmMin((() => {
|
|
1860
|
-
import_react$
|
|
1861
|
+
import_react$68 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1861
1862
|
init_useRefWithInit();
|
|
1862
1863
|
hooks = [];
|
|
1863
1864
|
currentInstance = void 0;
|
|
@@ -1866,16 +1867,16 @@ function init_fastHooks() {
|
|
|
1866
1867
|
//#endregion
|
|
1867
1868
|
//#region ../../node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs
|
|
1868
1869
|
function useTooltipRootContext(optional) {
|
|
1869
|
-
const context = import_react$
|
|
1870
|
+
const context = import_react$67.useContext(TooltipRootContext);
|
|
1870
1871
|
if (context === void 0 && !optional) throw new Error(formatErrorMessage(72));
|
|
1871
1872
|
return context;
|
|
1872
1873
|
}
|
|
1873
|
-
var import_react$
|
|
1874
|
+
var import_react$67, TooltipRootContext;
|
|
1874
1875
|
function init_TooltipRootContext() {
|
|
1875
1876
|
return (init_TooltipRootContext = __esmMin((() => {
|
|
1876
1877
|
init_formatErrorMessage();
|
|
1877
|
-
import_react$
|
|
1878
|
-
TooltipRootContext = /*#__PURE__*/ import_react$
|
|
1878
|
+
import_react$67 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1879
|
+
TooltipRootContext = /*#__PURE__*/ import_react$67.createContext(void 0);
|
|
1879
1880
|
})))();
|
|
1880
1881
|
}
|
|
1881
1882
|
//#endregion
|
|
@@ -1982,9 +1983,9 @@ function resetDelayRef(delayRef, initialDelayRef) {
|
|
|
1982
1983
|
function useDelayGroup(store, options = { open: false }) {
|
|
1983
1984
|
const { open } = options;
|
|
1984
1985
|
const floatingId = store.useState("floatingId");
|
|
1985
|
-
const { currentIdRef, delayRef, timeoutMs, initialDelayRef, currentContextRef, hasProvider, timeout } = import_react$
|
|
1986
|
-
const [isInstantPhase, setIsInstantPhase] = import_react$
|
|
1987
|
-
const openRef = import_react$
|
|
1986
|
+
const { currentIdRef, delayRef, timeoutMs, initialDelayRef, currentContextRef, hasProvider, timeout } = import_react$66.useContext(FloatingDelayGroupContext);
|
|
1987
|
+
const [isInstantPhase, setIsInstantPhase] = import_react$66.useState(false);
|
|
1988
|
+
const openRef = import_react$66.useRef(open);
|
|
1988
1989
|
useIsoLayoutEffect(() => {
|
|
1989
1990
|
openRef.current = open;
|
|
1990
1991
|
}, [open]);
|
|
@@ -2072,7 +2073,7 @@ function useDelayGroup(store, options = { open: false }) {
|
|
|
2072
2073
|
initialDelayRef,
|
|
2073
2074
|
timeout
|
|
2074
2075
|
]);
|
|
2075
|
-
return import_react$
|
|
2076
|
+
return import_react$66.useMemo(() => ({
|
|
2076
2077
|
activeIdRef: currentIdRef,
|
|
2077
2078
|
hasProvider,
|
|
2078
2079
|
delayRef,
|
|
@@ -2084,17 +2085,17 @@ function useDelayGroup(store, options = { open: false }) {
|
|
|
2084
2085
|
isInstantPhase
|
|
2085
2086
|
]);
|
|
2086
2087
|
}
|
|
2087
|
-
var import_react$
|
|
2088
|
+
var import_react$66, FloatingDelayGroupContext;
|
|
2088
2089
|
function init_FloatingDelayGroup() {
|
|
2089
2090
|
return (init_FloatingDelayGroup = __esmMin((() => {
|
|
2090
|
-
import_react$
|
|
2091
|
+
import_react$66 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
2091
2092
|
init_useTimeout();
|
|
2092
2093
|
init_useIsoLayoutEffect();
|
|
2093
2094
|
init_useHoverShared();
|
|
2094
2095
|
init_createBaseUIEventDetails();
|
|
2095
2096
|
init_reason_parts();
|
|
2096
2097
|
require_jsx_runtime();
|
|
2097
|
-
FloatingDelayGroupContext = /*#__PURE__*/ import_react$
|
|
2098
|
+
FloatingDelayGroupContext = /*#__PURE__*/ import_react$66.createContext({
|
|
2098
2099
|
hasProvider: false,
|
|
2099
2100
|
timeoutMs: 0,
|
|
2100
2101
|
delayRef: { current: 0 },
|
|
@@ -2120,16 +2121,16 @@ function mergeCleanups(...cleanups) {
|
|
|
2120
2121
|
}
|
|
2121
2122
|
//#endregion
|
|
2122
2123
|
//#region ../../node_modules/@base-ui/react/utils/FocusGuard.mjs
|
|
2123
|
-
var import_react$
|
|
2124
|
+
var import_react$65, import_jsx_runtime$20, FocusGuard;
|
|
2124
2125
|
function init_FocusGuard() {
|
|
2125
2126
|
return (init_FocusGuard = __esmMin((() => {
|
|
2126
|
-
import_react$
|
|
2127
|
+
import_react$65 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
2127
2128
|
init_useIsoLayoutEffect();
|
|
2128
2129
|
init_screen_reader(), init_engine();
|
|
2129
2130
|
init_visuallyHidden();
|
|
2130
2131
|
import_jsx_runtime$20 = require_jsx_runtime();
|
|
2131
|
-
FocusGuard = /*#__PURE__*/ import_react$
|
|
2132
|
-
const [role, setRole] = import_react$
|
|
2132
|
+
FocusGuard = /*#__PURE__*/ import_react$65.forwardRef(function FocusGuard(props, ref) {
|
|
2133
|
+
const [role, setRole] = import_react$65.useState();
|
|
2133
2134
|
useIsoLayoutEffect(() => {
|
|
2134
2135
|
if (voiceOver && webkit) setRole("button");
|
|
2135
2136
|
}, []);
|
|
@@ -2303,12 +2304,12 @@ function useFloatingPortalNode(props = {}) {
|
|
|
2303
2304
|
const { ref, container: containerProp, componentProps = EMPTY_OBJECT, elementProps } = props;
|
|
2304
2305
|
const uniqueId = useId();
|
|
2305
2306
|
const parentPortalNode = usePortalContext()?.portalNode;
|
|
2306
|
-
const [containerElement, setContainerElement] = import_react$
|
|
2307
|
-
const [portalNode, setPortalNode] = import_react$
|
|
2307
|
+
const [containerElement, setContainerElement] = import_react$64.useState(null);
|
|
2308
|
+
const [portalNode, setPortalNode] = import_react$64.useState(null);
|
|
2308
2309
|
const setPortalNodeRef = useStableCallback((node) => {
|
|
2309
2310
|
if (node !== null) setPortalNode(node);
|
|
2310
2311
|
});
|
|
2311
|
-
const containerRef = import_react$
|
|
2312
|
+
const containerRef = import_react$64.useRef(null);
|
|
2312
2313
|
useIsoLayoutEffect(() => {
|
|
2313
2314
|
if (containerProp === null) {
|
|
2314
2315
|
if (containerRef.current) {
|
|
@@ -2343,14 +2344,14 @@ function useFloatingPortalNode(props = {}) {
|
|
|
2343
2344
|
const portalSubtree = containerElement && portalElement ? /*#__PURE__*/ import_react_dom$6.createPortal(portalElement, containerElement) : null;
|
|
2344
2345
|
return {
|
|
2345
2346
|
node: portalNode,
|
|
2346
|
-
nodeId: /*#__PURE__*/ import_react$
|
|
2347
|
+
nodeId: /*#__PURE__*/ import_react$64.isValidElement(portalElement) ? portalElement.props.id : void 0,
|
|
2347
2348
|
subtree: portalSubtree
|
|
2348
2349
|
};
|
|
2349
2350
|
}
|
|
2350
|
-
var import_react$
|
|
2351
|
+
var import_react$64, import_react_dom$6, import_jsx_runtime$19, PortalContext, usePortalContext, attr, FloatingPortal;
|
|
2351
2352
|
function init_FloatingPortal() {
|
|
2352
2353
|
return (init_FloatingPortal = __esmMin((() => {
|
|
2353
|
-
import_react$
|
|
2354
|
+
import_react$64 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
2354
2355
|
import_react_dom$6 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
2355
2356
|
init_floating_ui_utils_dom();
|
|
2356
2357
|
init_useId();
|
|
@@ -2364,10 +2365,10 @@ function init_FloatingPortal() {
|
|
|
2364
2365
|
init_useRenderElement();
|
|
2365
2366
|
init_constants$1();
|
|
2366
2367
|
import_jsx_runtime$19 = require_jsx_runtime();
|
|
2367
|
-
PortalContext = /*#__PURE__*/ import_react$
|
|
2368
|
-
usePortalContext = () => import_react$
|
|
2368
|
+
PortalContext = /*#__PURE__*/ import_react$64.createContext(null);
|
|
2369
|
+
usePortalContext = () => import_react$64.useContext(PortalContext);
|
|
2369
2370
|
attr = createAttribute("portal");
|
|
2370
|
-
FloatingPortal = /*#__PURE__*/ import_react$
|
|
2371
|
+
FloatingPortal = /*#__PURE__*/ import_react$64.forwardRef(function FloatingPortal(componentProps, forwardedRef) {
|
|
2371
2372
|
const { render, className, style, children, container, portalOwnerRole, ...elementProps } = componentProps;
|
|
2372
2373
|
const { node: portalNode, nodeId: portalNodeId, subtree: portalSubtree } = useFloatingPortalNode({
|
|
2373
2374
|
container,
|
|
@@ -2375,16 +2376,16 @@ function init_FloatingPortal() {
|
|
|
2375
2376
|
componentProps,
|
|
2376
2377
|
elementProps
|
|
2377
2378
|
});
|
|
2378
|
-
const beforeOutsideRef = import_react$
|
|
2379
|
-
const afterOutsideRef = import_react$
|
|
2380
|
-
const beforeInsideRef = import_react$
|
|
2381
|
-
const afterInsideRef = import_react$
|
|
2382
|
-
const [focusManagerState, setFocusManagerState] = import_react$
|
|
2383
|
-
const focusInsideDisabledRef = import_react$
|
|
2379
|
+
const beforeOutsideRef = import_react$64.useRef(null);
|
|
2380
|
+
const afterOutsideRef = import_react$64.useRef(null);
|
|
2381
|
+
const beforeInsideRef = import_react$64.useRef(null);
|
|
2382
|
+
const afterInsideRef = import_react$64.useRef(null);
|
|
2383
|
+
const [focusManagerState, setFocusManagerState] = import_react$64.useState(null);
|
|
2384
|
+
const focusInsideDisabledRef = import_react$64.useRef(false);
|
|
2384
2385
|
const modal = focusManagerState?.modal;
|
|
2385
2386
|
const open = focusManagerState?.open;
|
|
2386
2387
|
const shouldRenderGuards = !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;
|
|
2387
|
-
import_react$
|
|
2388
|
+
import_react$64.useEffect(() => {
|
|
2388
2389
|
if (!portalNode || modal) return;
|
|
2389
2390
|
function onFocus(event) {
|
|
2390
2391
|
if (portalNode && event.relatedTarget && isOutsideEvent(event)) {
|
|
@@ -2406,7 +2407,7 @@ function init_FloatingPortal() {
|
|
|
2406
2407
|
enableFocusInside(portalNode);
|
|
2407
2408
|
focusInsideDisabledRef.current = false;
|
|
2408
2409
|
}, [open, portalNode]);
|
|
2409
|
-
const portalContextValue = import_react$
|
|
2410
|
+
const portalContextValue = import_react$64.useMemo(() => ({
|
|
2410
2411
|
beforeOutsideRef,
|
|
2411
2412
|
afterOutsideRef,
|
|
2412
2413
|
beforeInsideRef,
|
|
@@ -2414,7 +2415,7 @@ function init_FloatingPortal() {
|
|
|
2414
2415
|
portalNode,
|
|
2415
2416
|
setFocusManagerState
|
|
2416
2417
|
}), [portalNode]);
|
|
2417
|
-
return /*#__PURE__*/ (0, import_jsx_runtime$19.jsxs)(import_react$
|
|
2418
|
+
return /*#__PURE__*/ (0, import_jsx_runtime$19.jsxs)(import_react$64.Fragment, { children: [portalSubtree, /*#__PURE__*/ (0, import_jsx_runtime$19.jsxs)(PortalContext.Provider, {
|
|
2418
2419
|
value: portalContextValue,
|
|
2419
2420
|
children: [
|
|
2420
2421
|
shouldRenderGuards && portalNode && /*#__PURE__*/ (0, import_jsx_runtime$19.jsx)(FocusGuard, {
|
|
@@ -2518,7 +2519,7 @@ function FloatingNode(props) {
|
|
|
2518
2519
|
const { children, id } = props;
|
|
2519
2520
|
const parentId = useFloatingParentNodeId();
|
|
2520
2521
|
return /*#__PURE__*/ (0, import_jsx_runtime$18.jsx)(FloatingNodeContext.Provider, {
|
|
2521
|
-
value: import_react$
|
|
2522
|
+
value: import_react$63.useMemo(() => ({
|
|
2522
2523
|
id,
|
|
2523
2524
|
parentId
|
|
2524
2525
|
}), [id, parentId]),
|
|
@@ -2544,20 +2545,20 @@ function FloatingTree(props) {
|
|
|
2544
2545
|
children
|
|
2545
2546
|
});
|
|
2546
2547
|
}
|
|
2547
|
-
var import_react$
|
|
2548
|
+
var import_react$63, import_jsx_runtime$18, FloatingNodeContext, FloatingTreeContext, useFloatingParentNodeId, useFloatingTree;
|
|
2548
2549
|
function init_FloatingTree() {
|
|
2549
2550
|
return (init_FloatingTree = __esmMin((() => {
|
|
2550
|
-
import_react$
|
|
2551
|
+
import_react$63 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
2551
2552
|
init_useId();
|
|
2552
2553
|
init_useIsoLayoutEffect();
|
|
2553
2554
|
init_useRefWithInit();
|
|
2554
2555
|
init_FloatingTreeStore();
|
|
2555
2556
|
import_jsx_runtime$18 = require_jsx_runtime();
|
|
2556
|
-
FloatingNodeContext = /*#__PURE__*/ import_react$
|
|
2557
|
-
FloatingTreeContext = /*#__PURE__*/ import_react$
|
|
2558
|
-
useFloatingParentNodeId = () => import_react$
|
|
2557
|
+
FloatingNodeContext = /*#__PURE__*/ import_react$63.createContext(null);
|
|
2558
|
+
FloatingTreeContext = /*#__PURE__*/ import_react$63.createContext(null);
|
|
2559
|
+
useFloatingParentNodeId = () => import_react$63.useContext(FloatingNodeContext)?.id || null;
|
|
2559
2560
|
useFloatingTree = (externalTree) => {
|
|
2560
|
-
const contextTree = import_react$
|
|
2561
|
+
const contextTree = import_react$63.useContext(FloatingTreeContext);
|
|
2561
2562
|
return externalTree ?? contextTree;
|
|
2562
2563
|
};
|
|
2563
2564
|
})))();
|
|
@@ -2643,14 +2644,14 @@ function FloatingFocusManager(props) {
|
|
|
2643
2644
|
const openRef = useValueAsRef(open);
|
|
2644
2645
|
const tree = useFloatingTree(externalTree);
|
|
2645
2646
|
const portalContext = usePortalContext();
|
|
2646
|
-
const preventReturnFocusRef = import_react$
|
|
2647
|
-
const isPointerDownRef = import_react$
|
|
2648
|
-
const pointerDownOutsideRef = import_react$
|
|
2649
|
-
const lastFocusedTabbableRef = import_react$
|
|
2650
|
-
const closeTypeRef = import_react$
|
|
2651
|
-
const lastInteractionTypeRef = import_react$
|
|
2652
|
-
const beforeGuardRef = import_react$
|
|
2653
|
-
const afterGuardRef = import_react$
|
|
2647
|
+
const preventReturnFocusRef = import_react$62.useRef(false);
|
|
2648
|
+
const isPointerDownRef = import_react$62.useRef(false);
|
|
2649
|
+
const pointerDownOutsideRef = import_react$62.useRef(false);
|
|
2650
|
+
const lastFocusedTabbableRef = import_react$62.useRef(null);
|
|
2651
|
+
const closeTypeRef = import_react$62.useRef("");
|
|
2652
|
+
const lastInteractionTypeRef = import_react$62.useRef("");
|
|
2653
|
+
const beforeGuardRef = import_react$62.useRef(null);
|
|
2654
|
+
const afterGuardRef = import_react$62.useRef(null);
|
|
2654
2655
|
const mergedBeforeGuardRef = useMergedRefs(beforeGuardRef, beforeContentFocusGuardRef, portalContext?.beforeInsideRef);
|
|
2655
2656
|
const mergedAfterGuardRef = useMergedRefs(afterGuardRef, portalContext?.afterInsideRef);
|
|
2656
2657
|
const blurTimeout = useTimeout();
|
|
@@ -2662,7 +2663,7 @@ function FloatingFocusManager(props) {
|
|
|
2662
2663
|
return container ? tabbable(container) : [];
|
|
2663
2664
|
});
|
|
2664
2665
|
const getResolvedInsideElements = useStableCallback(() => getInsideElements?.().filter((element) => element != null) ?? []);
|
|
2665
|
-
import_react$
|
|
2666
|
+
import_react$62.useEffect(() => {
|
|
2666
2667
|
if (disabled || !modal) return;
|
|
2667
2668
|
function onKeyDown(event) {
|
|
2668
2669
|
if (event.key === "Tab") {
|
|
@@ -2677,7 +2678,7 @@ function FloatingFocusManager(props) {
|
|
|
2677
2678
|
isUntrappedTypeableCombobox,
|
|
2678
2679
|
getTabbableContent
|
|
2679
2680
|
]);
|
|
2680
|
-
import_react$
|
|
2681
|
+
import_react$62.useEffect(() => {
|
|
2681
2682
|
if (disabled || !open) return;
|
|
2682
2683
|
const doc = ownerDocument(floatingFocusElement);
|
|
2683
2684
|
function clearPointerDownOutside() {
|
|
@@ -2710,7 +2711,7 @@ function FloatingFocusManager(props) {
|
|
|
2710
2711
|
pointerDownTimeout,
|
|
2711
2712
|
getResolvedInsideElements
|
|
2712
2713
|
]);
|
|
2713
|
-
import_react$
|
|
2714
|
+
import_react$62.useEffect(() => {
|
|
2714
2715
|
if (disabled || !closeOnFocusOut) return;
|
|
2715
2716
|
const doc = ownerDocument(floatingFocusElement);
|
|
2716
2717
|
function handlePointerDown() {
|
|
@@ -2801,7 +2802,7 @@ function FloatingFocusManager(props) {
|
|
|
2801
2802
|
previousFocusableElement,
|
|
2802
2803
|
getResolvedInsideElements
|
|
2803
2804
|
]);
|
|
2804
|
-
import_react$
|
|
2805
|
+
import_react$62.useEffect(() => {
|
|
2805
2806
|
if (disabled || !floating || !open) return;
|
|
2806
2807
|
const portalNodes = Array.from(portalContext?.portalNode?.querySelectorAll(`[${createAttribute("portal")}]`) || []);
|
|
2807
2808
|
const rootAncestorComboboxDomReference = (tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : []).find((node) => isTypeableCombobox(node.context?.elements.domReference || null))?.context?.elements.domReference;
|
|
@@ -2886,7 +2887,7 @@ function FloatingFocusManager(props) {
|
|
|
2886
2887
|
openRef,
|
|
2887
2888
|
dataRef
|
|
2888
2889
|
]);
|
|
2889
|
-
const pendingReturnFocusRef = import_react$
|
|
2890
|
+
const pendingReturnFocusRef = import_react$62.useRef(null);
|
|
2890
2891
|
useIsoLayoutEffect(() => {
|
|
2891
2892
|
if (disabled || !floatingFocusElement) {
|
|
2892
2893
|
pendingReturnFocusRef.current = null;
|
|
@@ -2999,7 +3000,7 @@ function FloatingFocusManager(props) {
|
|
|
2999
3000
|
};
|
|
3000
3001
|
}, [disabled, floatingFocusElement]);
|
|
3001
3002
|
const shouldRenderGuards = !disabled && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);
|
|
3002
|
-
return /*#__PURE__*/ (0, import_jsx_runtime$17.jsxs)(import_react$
|
|
3003
|
+
return /*#__PURE__*/ (0, import_jsx_runtime$17.jsxs)(import_react$62.Fragment, { children: [
|
|
3003
3004
|
shouldRenderGuards && /*#__PURE__*/ (0, import_jsx_runtime$17.jsx)(FocusGuard, {
|
|
3004
3005
|
"data-type": "inside",
|
|
3005
3006
|
ref: mergedBeforeGuardRef,
|
|
@@ -3029,10 +3030,10 @@ function FloatingFocusManager(props) {
|
|
|
3029
3030
|
})
|
|
3030
3031
|
] });
|
|
3031
3032
|
}
|
|
3032
|
-
var import_react$
|
|
3033
|
+
var import_react$62, import_jsx_runtime$17, LIST_LIMIT, previouslyFocusedElements;
|
|
3033
3034
|
function init_FloatingFocusManager() {
|
|
3034
3035
|
return (init_FloatingFocusManager = __esmMin((() => {
|
|
3035
|
-
import_react$
|
|
3036
|
+
import_react$62 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3036
3037
|
init_floating_ui_utils_dom();
|
|
3037
3038
|
init_useMergedRefs();
|
|
3038
3039
|
init_useValueAsRef();
|
|
@@ -3067,10 +3068,10 @@ function init_FloatingFocusManager() {
|
|
|
3067
3068
|
function useClick(store, props = {}) {
|
|
3068
3069
|
const { enabled = true, event: eventOption = "click", toggle = true, ignoreMouse = false, stickIfOpen = true, touchOpenDelay = 0, reason = triggerPress } = props;
|
|
3069
3070
|
const dataRef = store.context.dataRef;
|
|
3070
|
-
const pointerTypeRef = import_react$
|
|
3071
|
+
const pointerTypeRef = import_react$61.useRef(void 0);
|
|
3071
3072
|
const frame = useAnimationFrame();
|
|
3072
3073
|
const touchOpenTimeout = useTimeout();
|
|
3073
|
-
const reference = import_react$
|
|
3074
|
+
const reference = import_react$61.useMemo(() => {
|
|
3074
3075
|
function setOpenWithTouchDelay(nextOpen, nativeEvent, target, pointerType) {
|
|
3075
3076
|
const details = createChangeEventDetails(reason, nativeEvent, target);
|
|
3076
3077
|
if (nextOpen && pointerType === "touch" && touchOpenDelay > 0) touchOpenTimeout.start(touchOpenDelay, () => {
|
|
@@ -3134,12 +3135,12 @@ function useClick(store, props = {}) {
|
|
|
3134
3135
|
touchOpenTimeout,
|
|
3135
3136
|
touchOpenDelay
|
|
3136
3137
|
]);
|
|
3137
|
-
return import_react$
|
|
3138
|
+
return import_react$61.useMemo(() => enabled ? { reference } : EMPTY_OBJECT, [enabled, reference]);
|
|
3138
3139
|
}
|
|
3139
|
-
var import_react$
|
|
3140
|
+
var import_react$61;
|
|
3140
3141
|
function init_useClick() {
|
|
3141
3142
|
return (init_useClick = __esmMin((() => {
|
|
3142
|
-
import_react$
|
|
3143
|
+
import_react$61 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3143
3144
|
init_useAnimationFrame();
|
|
3144
3145
|
init_useTimeout();
|
|
3145
3146
|
init_empty();
|
|
@@ -3207,10 +3208,10 @@ function useClientPoint(store, props = {}) {
|
|
|
3207
3208
|
const floating = store.useState("floatingElement");
|
|
3208
3209
|
const domReference = store.useState("domReferenceElement");
|
|
3209
3210
|
const dataRef = store.context.dataRef;
|
|
3210
|
-
const initialRef = import_react$
|
|
3211
|
-
const cleanupListenerRef = import_react$
|
|
3212
|
-
const [pointerType, setPointerType] = import_react$
|
|
3213
|
-
const [reactive, setReactive] = import_react$
|
|
3211
|
+
const initialRef = import_react$60.useRef(false);
|
|
3212
|
+
const cleanupListenerRef = import_react$60.useRef(null);
|
|
3213
|
+
const [pointerType, setPointerType] = import_react$60.useState();
|
|
3214
|
+
const [reactive, setReactive] = import_react$60.useState([]);
|
|
3214
3215
|
const resetReference = useStableCallback((reference) => {
|
|
3215
3216
|
store.set("positionReference", reference);
|
|
3216
3217
|
});
|
|
@@ -3233,7 +3234,7 @@ function useClientPoint(store, props = {}) {
|
|
|
3233
3234
|
}
|
|
3234
3235
|
});
|
|
3235
3236
|
const openCheck = isMouseLikePointerType(pointerType) ? floating : open;
|
|
3236
|
-
import_react$
|
|
3237
|
+
import_react$60.useEffect(() => {
|
|
3237
3238
|
if (!enabled) {
|
|
3238
3239
|
resetReference(domReference);
|
|
3239
3240
|
return;
|
|
@@ -3263,16 +3264,16 @@ function useClientPoint(store, props = {}) {
|
|
|
3263
3264
|
resetReference,
|
|
3264
3265
|
reactive
|
|
3265
3266
|
]);
|
|
3266
|
-
import_react$
|
|
3267
|
+
import_react$60.useEffect(() => () => {
|
|
3267
3268
|
store.set("positionReference", null);
|
|
3268
3269
|
}, [store]);
|
|
3269
|
-
import_react$
|
|
3270
|
+
import_react$60.useEffect(() => {
|
|
3270
3271
|
if (enabled && !floating) initialRef.current = false;
|
|
3271
3272
|
}, [enabled, floating]);
|
|
3272
|
-
import_react$
|
|
3273
|
+
import_react$60.useEffect(() => {
|
|
3273
3274
|
if (!enabled && open) initialRef.current = true;
|
|
3274
3275
|
}, [enabled, open]);
|
|
3275
|
-
const reference = import_react$
|
|
3276
|
+
const reference = import_react$60.useMemo(() => {
|
|
3276
3277
|
function setPointerTypeRef(event) {
|
|
3277
3278
|
setPointerType(event.pointerType);
|
|
3278
3279
|
}
|
|
@@ -3283,15 +3284,15 @@ function useClientPoint(store, props = {}) {
|
|
|
3283
3284
|
onMouseEnter: handleReferenceEnterOrMove
|
|
3284
3285
|
};
|
|
3285
3286
|
}, [handleReferenceEnterOrMove]);
|
|
3286
|
-
return import_react$
|
|
3287
|
+
return import_react$60.useMemo(() => enabled ? {
|
|
3287
3288
|
reference,
|
|
3288
3289
|
trigger: reference
|
|
3289
3290
|
} : {}, [enabled, reference]);
|
|
3290
3291
|
}
|
|
3291
|
-
var import_react$
|
|
3292
|
+
var import_react$60;
|
|
3292
3293
|
function init_useClientPoint() {
|
|
3293
3294
|
return (init_useClientPoint = __esmMin((() => {
|
|
3294
|
-
import_react$
|
|
3295
|
+
import_react$60 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3295
3296
|
init_useStableCallback();
|
|
3296
3297
|
init_floating_ui_utils_dom();
|
|
3297
3298
|
init_element();
|
|
@@ -3325,13 +3326,13 @@ function useDismiss(store, props = {}) {
|
|
|
3325
3326
|
const outsidePressEnabled = outsidePress$1 !== false;
|
|
3326
3327
|
const getOutsidePressEventProp = useStableCallback(() => outsidePressEvent);
|
|
3327
3328
|
const { escapeKey: escapeKeyBubbles, outsidePress: outsidePressBubbles } = normalizeProp(bubbles);
|
|
3328
|
-
const pressStartedInsideRef = import_react$
|
|
3329
|
-
const pressStartPreventedRef = import_react$
|
|
3330
|
-
const suppressNextOutsideClickRef = import_react$
|
|
3331
|
-
const sawPressWhileOpenRef = import_react$
|
|
3332
|
-
const isComposingRef = import_react$
|
|
3333
|
-
const currentPointerTypeRef = import_react$
|
|
3334
|
-
const touchStateRef = import_react$
|
|
3329
|
+
const pressStartedInsideRef = import_react$59.useRef(false);
|
|
3330
|
+
const pressStartPreventedRef = import_react$59.useRef(false);
|
|
3331
|
+
const suppressNextOutsideClickRef = import_react$59.useRef(false);
|
|
3332
|
+
const sawPressWhileOpenRef = import_react$59.useRef(false);
|
|
3333
|
+
const isComposingRef = import_react$59.useRef(false);
|
|
3334
|
+
const currentPointerTypeRef = import_react$59.useRef("");
|
|
3335
|
+
const touchStateRef = import_react$59.useRef(null);
|
|
3335
3336
|
const cancelDismissOnEndTimeout = useTimeout();
|
|
3336
3337
|
const clearInsideReactTreeTimeout = useTimeout();
|
|
3337
3338
|
const compositionTimeout = useTimeout();
|
|
@@ -3378,7 +3379,7 @@ function useDismiss(store, props = {}) {
|
|
|
3378
3379
|
if (!(event.defaultPrevented || event.nativeEvent.defaultPrevented)) return;
|
|
3379
3380
|
if (pressStartedInsideRef.current) pressStartPreventedRef.current = true;
|
|
3380
3381
|
});
|
|
3381
|
-
import_react$
|
|
3382
|
+
import_react$59.useEffect(() => {
|
|
3382
3383
|
function handleOpenChange(details) {
|
|
3383
3384
|
if (!details.open) sawPressWhileOpenRef.current = false;
|
|
3384
3385
|
}
|
|
@@ -3387,8 +3388,8 @@ function useDismiss(store, props = {}) {
|
|
|
3387
3388
|
events.off("openchange", handleOpenChange);
|
|
3388
3389
|
};
|
|
3389
3390
|
}, [events]);
|
|
3390
|
-
import_react$
|
|
3391
|
-
import_react$
|
|
3391
|
+
import_react$59.useEffect(() => clearInsideReactTree, [clearInsideReactTree]);
|
|
3392
|
+
import_react$59.useEffect(() => {
|
|
3392
3393
|
if (!open || !enabled) {
|
|
3393
3394
|
if (!open) {
|
|
3394
3395
|
sawPressWhileOpenRef.current = false;
|
|
@@ -3621,12 +3622,12 @@ function useDismiss(store, props = {}) {
|
|
|
3621
3622
|
cancelDismissOnEndTimeout,
|
|
3622
3623
|
compositionTimeout
|
|
3623
3624
|
]);
|
|
3624
|
-
const reference = import_react$
|
|
3625
|
+
const reference = import_react$59.useMemo(() => ({
|
|
3625
3626
|
onKeyDown: closeOnEscapeKeyDown,
|
|
3626
3627
|
onPointerDown: closeOnReferencePress,
|
|
3627
3628
|
onClick: closeOnReferencePress
|
|
3628
3629
|
}), [closeOnEscapeKeyDown, closeOnReferencePress]);
|
|
3629
|
-
const floating = import_react$
|
|
3630
|
+
const floating = import_react$59.useMemo(() => ({
|
|
3630
3631
|
onKeyDown: closeOnEscapeKeyDown,
|
|
3631
3632
|
onPointerDown: markInsidePressStartPrevented,
|
|
3632
3633
|
onMouseDown: markInsidePressStartPrevented,
|
|
@@ -3648,7 +3649,7 @@ function useDismiss(store, props = {}) {
|
|
|
3648
3649
|
markPressStartedInsideReactTree,
|
|
3649
3650
|
markInsidePressStartPrevented
|
|
3650
3651
|
]);
|
|
3651
|
-
return import_react$
|
|
3652
|
+
return import_react$59.useMemo(() => enabled ? {
|
|
3652
3653
|
reference,
|
|
3653
3654
|
floating,
|
|
3654
3655
|
trigger: reference
|
|
@@ -3658,10 +3659,10 @@ function useDismiss(store, props = {}) {
|
|
|
3658
3659
|
floating
|
|
3659
3660
|
]);
|
|
3660
3661
|
}
|
|
3661
|
-
var import_react$
|
|
3662
|
+
var import_react$59;
|
|
3662
3663
|
function init_useDismiss() {
|
|
3663
3664
|
return (init_useDismiss = __esmMin((() => {
|
|
3664
|
-
import_react$
|
|
3665
|
+
import_react$59 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3665
3666
|
init_useStableCallback();
|
|
3666
3667
|
init_useTimeout();
|
|
3667
3668
|
init_floating_ui_utils_dom();
|
|
@@ -3728,8 +3729,8 @@ function init_useSyncedFloatingRootContext() {
|
|
|
3728
3729
|
* `defaultOpen` popup on page load, SSR'd markup) doesn't animate in.
|
|
3729
3730
|
*/
|
|
3730
3731
|
function useTransitionStatus(open, enableIdleState = false, deferEndingState = false, animateInitialOpen = false) {
|
|
3731
|
-
const [transitionStatus, setTransitionStatus] = import_react$
|
|
3732
|
-
const [mounted, setMounted] = import_react$
|
|
3732
|
+
const [transitionStatus, setTransitionStatus] = import_react$58.useState(open && enableIdleState ? "idle" : void 0);
|
|
3733
|
+
const [mounted, setMounted] = import_react$58.useState(open && !animateInitialOpen);
|
|
3733
3734
|
if (open && !mounted) {
|
|
3734
3735
|
setMounted(true);
|
|
3735
3736
|
setTransitionStatus("starting");
|
|
@@ -3785,10 +3786,10 @@ function useTransitionStatus(open, enableIdleState = false, deferEndingState = f
|
|
|
3785
3786
|
transitionStatus
|
|
3786
3787
|
};
|
|
3787
3788
|
}
|
|
3788
|
-
var import_react$
|
|
3789
|
+
var import_react$58;
|
|
3789
3790
|
function init_useTransitionStatus() {
|
|
3790
3791
|
return (init_useTransitionStatus = __esmMin((() => {
|
|
3791
|
-
import_react$
|
|
3792
|
+
import_react$58 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3792
3793
|
init_useIsoLayoutEffect();
|
|
3793
3794
|
init_useAnimationFrame();
|
|
3794
3795
|
})))();
|
|
@@ -3899,7 +3900,7 @@ function useOpenChangeComplete(parameters) {
|
|
|
3899
3900
|
const { enabled = true, open, ref, batch = false, onComplete: onCompleteParam } = parameters;
|
|
3900
3901
|
const onComplete = useStableCallback(onCompleteParam);
|
|
3901
3902
|
const runOnceAnimationsFinish = useAnimationsFinished(ref, open, batch);
|
|
3902
|
-
import_react$
|
|
3903
|
+
import_react$57.useEffect(() => {
|
|
3903
3904
|
if (!enabled) return;
|
|
3904
3905
|
const abortController = new AbortController();
|
|
3905
3906
|
runOnceAnimationsFinish(onComplete, abortController.signal);
|
|
@@ -3913,10 +3914,10 @@ function useOpenChangeComplete(parameters) {
|
|
|
3913
3914
|
runOnceAnimationsFinish
|
|
3914
3915
|
]);
|
|
3915
3916
|
}
|
|
3916
|
-
var import_react$
|
|
3917
|
+
var import_react$57;
|
|
3917
3918
|
function init_useOpenChangeComplete() {
|
|
3918
3919
|
return (init_useOpenChangeComplete = __esmMin((() => {
|
|
3919
|
-
import_react$
|
|
3920
|
+
import_react$57 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3920
3921
|
init_useStableCallback();
|
|
3921
3922
|
init_useAnimationsFinished();
|
|
3922
3923
|
})))();
|
|
@@ -3940,8 +3941,8 @@ function useUnmountAfterClose(parameters) {
|
|
|
3940
3941
|
useIsoLayoutEffect(() => {
|
|
3941
3942
|
if (open) setPreventUnmountOnClose(false);
|
|
3942
3943
|
}, [open, setPreventUnmountOnClose]);
|
|
3943
|
-
const mountedRef = import_react$
|
|
3944
|
-
const pendingUnmountRef = import_react$
|
|
3944
|
+
const mountedRef = import_react$56.useRef(mounted);
|
|
3945
|
+
const pendingUnmountRef = import_react$56.useRef(false);
|
|
3945
3946
|
const rerender = useForcedRerendering();
|
|
3946
3947
|
const unmount = () => {
|
|
3947
3948
|
mountedRef.current = false;
|
|
@@ -3979,10 +3980,10 @@ function useUnmountAfterClose(parameters) {
|
|
|
3979
3980
|
forceUnmount
|
|
3980
3981
|
};
|
|
3981
3982
|
}
|
|
3982
|
-
var import_react$
|
|
3983
|
+
var import_react$56;
|
|
3983
3984
|
function init_useUnmountAfterClose() {
|
|
3984
3985
|
return (init_useUnmountAfterClose = __esmMin((() => {
|
|
3985
|
-
import_react$
|
|
3986
|
+
import_react$56 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3986
3987
|
init_useStableCallback();
|
|
3987
3988
|
init_useIsoLayoutEffect();
|
|
3988
3989
|
init_useForcedRerendering();
|
|
@@ -4064,7 +4065,7 @@ function syncTriggerCount(store) {
|
|
|
4064
4065
|
* @param store The Store instance where the trigger should be registered.
|
|
4065
4066
|
*/
|
|
4066
4067
|
function useTriggerRegistration(id, store) {
|
|
4067
|
-
const registrationRef = import_react$
|
|
4068
|
+
const registrationRef = import_react$55.useRef(null);
|
|
4068
4069
|
return useStableCallback((element) => {
|
|
4069
4070
|
const registration = registrationRef.current;
|
|
4070
4071
|
if (registration !== null) {
|
|
@@ -4233,7 +4234,7 @@ function useTriggerDataForwarding(triggerId, triggerElementRef, store, stateUpda
|
|
|
4233
4234
|
*/
|
|
4234
4235
|
function useImplicitActiveTrigger(store, options = {}) {
|
|
4235
4236
|
const { closeOnActiveTriggerUnmount = false } = options;
|
|
4236
|
-
const resolvedActiveTriggerIdRef = import_react$
|
|
4237
|
+
const resolvedActiveTriggerIdRef = import_react$55.useRef(null);
|
|
4237
4238
|
const open = store.useState("open");
|
|
4238
4239
|
const reactiveTriggerCount = store.useState("triggerCount");
|
|
4239
4240
|
const activeTriggerId = store.useState("activeTriggerId");
|
|
@@ -4364,10 +4365,10 @@ function usePopupRootSync(store, open) {
|
|
|
4364
4365
|
if (store.state.openMethod !== null) store.set("openMethod", null);
|
|
4365
4366
|
}, [store]);
|
|
4366
4367
|
}
|
|
4367
|
-
var import_react$
|
|
4368
|
+
var import_react$55, import_react_dom$4, FOCUSABLE_POPUP_PROPS;
|
|
4368
4369
|
function init_popupStoreUtils() {
|
|
4369
4370
|
return (init_popupStoreUtils = __esmMin((() => {
|
|
4370
|
-
import_react$
|
|
4371
|
+
import_react$55 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4371
4372
|
import_react_dom$4 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
4372
4373
|
init_empty();
|
|
4373
4374
|
init_useId();
|
|
@@ -4628,20 +4629,20 @@ function init_store() {
|
|
|
4628
4629
|
* @param handle The popup handle to read from, or `undefined` when the trigger is not handle-bound.
|
|
4629
4630
|
*/
|
|
4630
4631
|
function usePopupHandleStore(handle) {
|
|
4631
|
-
const subscribe = import_react$
|
|
4632
|
+
const subscribe = import_react$54.useCallback((listener) => {
|
|
4632
4633
|
if (handle === void 0) return NOOP;
|
|
4633
4634
|
return handle.subscribeStore(listener);
|
|
4634
4635
|
}, [handle]);
|
|
4635
|
-
const getSnapshot = import_react$
|
|
4636
|
+
const getSnapshot = import_react$54.useCallback(() => {
|
|
4636
4637
|
return handle === void 0 ? void 0 : handle.store;
|
|
4637
4638
|
}, [handle]);
|
|
4638
|
-
return (0,
|
|
4639
|
+
return (0, import_react$83.useSyncExternalStore)(subscribe, getSnapshot, () => handle?.serverStore);
|
|
4639
4640
|
}
|
|
4640
|
-
var import_react$
|
|
4641
|
+
var import_react$54;
|
|
4641
4642
|
function init_usePopupHandleStore() {
|
|
4642
4643
|
return (init_usePopupHandleStore = __esmMin((() => {
|
|
4643
|
-
import_react$
|
|
4644
|
-
|
|
4644
|
+
import_react$54 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4645
|
+
init_shim_cjs_0();
|
|
4645
4646
|
init_empty();
|
|
4646
4647
|
})))();
|
|
4647
4648
|
}
|
|
@@ -4655,11 +4656,11 @@ function init_usePopupHandleStore() {
|
|
|
4655
4656
|
function useFocus(store, props = {}) {
|
|
4656
4657
|
const { enabled = true, delay } = props;
|
|
4657
4658
|
const { events, dataRef } = store.context;
|
|
4658
|
-
const blockFocusRef = import_react$
|
|
4659
|
-
const blockedReferenceRef = import_react$
|
|
4660
|
-
const keyboardModalityRef = import_react$
|
|
4659
|
+
const blockFocusRef = import_react$53.useRef(false);
|
|
4660
|
+
const blockedReferenceRef = import_react$53.useRef(null);
|
|
4661
|
+
const keyboardModalityRef = import_react$53.useRef(true);
|
|
4661
4662
|
const timeout = useTimeout();
|
|
4662
|
-
import_react$
|
|
4663
|
+
import_react$53.useEffect(() => {
|
|
4663
4664
|
const domReference = store.select("domReferenceElement");
|
|
4664
4665
|
if (!enabled) return;
|
|
4665
4666
|
const win = getWindow(domReference);
|
|
@@ -4678,7 +4679,7 @@ function useFocus(store, props = {}) {
|
|
|
4678
4679
|
}
|
|
4679
4680
|
return mergeCleanups(addEventListener(win, "blur", onBlur), isMacSafari && addEventListener(win, "keydown", onKeyDown, true), isMacSafari && addEventListener(win, "pointerdown", onPointerDown, true));
|
|
4680
4681
|
}, [store, enabled]);
|
|
4681
|
-
import_react$
|
|
4682
|
+
import_react$53.useEffect(() => {
|
|
4682
4683
|
if (!enabled) return;
|
|
4683
4684
|
function onOpenChangeLocal(details) {
|
|
4684
4685
|
if (details.reason === "trigger-press" || details.reason === "escape-key") {
|
|
@@ -4698,7 +4699,7 @@ function useFocus(store, props = {}) {
|
|
|
4698
4699
|
enabled,
|
|
4699
4700
|
store
|
|
4700
4701
|
]);
|
|
4701
|
-
const reference = import_react$
|
|
4702
|
+
const reference = import_react$53.useMemo(() => {
|
|
4702
4703
|
function resetBlockedFocus() {
|
|
4703
4704
|
blockFocusRef.current = false;
|
|
4704
4705
|
blockedReferenceRef.current = null;
|
|
@@ -4751,15 +4752,15 @@ function useFocus(store, props = {}) {
|
|
|
4751
4752
|
store,
|
|
4752
4753
|
timeout
|
|
4753
4754
|
]);
|
|
4754
|
-
return import_react$
|
|
4755
|
+
return import_react$53.useMemo(() => enabled ? {
|
|
4755
4756
|
reference,
|
|
4756
4757
|
trigger: reference
|
|
4757
4758
|
} : {}, [enabled, reference]);
|
|
4758
4759
|
}
|
|
4759
|
-
var import_react$
|
|
4760
|
+
var import_react$53, isMacSafari;
|
|
4760
4761
|
function init_useFocus() {
|
|
4761
4762
|
return (init_useFocus = __esmMin((() => {
|
|
4762
|
-
import_react$
|
|
4763
|
+
import_react$53 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4763
4764
|
init_os(), init_engine();
|
|
4764
4765
|
init_useTimeout();
|
|
4765
4766
|
init_floating_ui_utils_dom();
|
|
@@ -4876,7 +4877,7 @@ function useHoverFloatingInteraction(store, parameters = {}) {
|
|
|
4876
4877
|
instance,
|
|
4877
4878
|
clearPointerEvents
|
|
4878
4879
|
]);
|
|
4879
|
-
import_react$
|
|
4880
|
+
import_react$52.useEffect(() => {
|
|
4880
4881
|
return clearPointerEvents;
|
|
4881
4882
|
}, [clearPointerEvents]);
|
|
4882
4883
|
useIsoLayoutEffect(() => {
|
|
@@ -4910,7 +4911,7 @@ function useHoverFloatingInteraction(store, parameters = {}) {
|
|
|
4910
4911
|
parentId,
|
|
4911
4912
|
clearPointerEvents
|
|
4912
4913
|
]);
|
|
4913
|
-
import_react$
|
|
4914
|
+
import_react$52.useEffect(() => {
|
|
4914
4915
|
if (!enabled) return;
|
|
4915
4916
|
function hasParentChildren() {
|
|
4916
4917
|
return !!(tree && parentId && getNodeChildren(tree.nodesRef.current, parentId).length > 0);
|
|
@@ -4985,10 +4986,10 @@ function useHoverFloatingInteraction(store, parameters = {}) {
|
|
|
4985
4986
|
childClosedTimeout
|
|
4986
4987
|
]);
|
|
4987
4988
|
}
|
|
4988
|
-
var import_react$
|
|
4989
|
+
var import_react$52;
|
|
4989
4990
|
function init_useHoverFloatingInteraction() {
|
|
4990
4991
|
return (init_useHoverFloatingInteraction = __esmMin((() => {
|
|
4991
|
-
import_react$
|
|
4992
|
+
import_react$52 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4992
4993
|
init_useIsoLayoutEffect();
|
|
4993
4994
|
init_useStableCallback();
|
|
4994
4995
|
init_useTimeout();
|
|
@@ -5012,7 +5013,7 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5012
5013
|
const { dataRef, events } = store.context;
|
|
5013
5014
|
const tree = useFloatingTree(externalTree);
|
|
5014
5015
|
const instance = useHoverInteractionSharedState(store);
|
|
5015
|
-
const isHoverCloseActiveRef = import_react$
|
|
5016
|
+
const isHoverCloseActiveRef = import_react$51.useRef(false);
|
|
5016
5017
|
const handleCloseRef = useValueAsRef(handleClose);
|
|
5017
5018
|
const delayRef = useValueAsRef(delay);
|
|
5018
5019
|
const restMsRef = useValueAsRef(restMs);
|
|
@@ -5041,8 +5042,8 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5041
5042
|
clearSafePolygonPointerEventsMutation(instance);
|
|
5042
5043
|
});
|
|
5043
5044
|
if (isActiveTrigger) instance.handleCloseOptions = handleClose?.__options;
|
|
5044
|
-
import_react$
|
|
5045
|
-
import_react$
|
|
5045
|
+
import_react$51.useEffect(() => cleanupMouseMoveHandler, [cleanupMouseMoveHandler]);
|
|
5046
|
+
import_react$51.useEffect(() => {
|
|
5046
5047
|
if (!enabled) return;
|
|
5047
5048
|
function onOpenChangeLocal(details) {
|
|
5048
5049
|
if (!details.open) {
|
|
@@ -5064,7 +5065,7 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5064
5065
|
instance,
|
|
5065
5066
|
cleanupMouseMoveHandler
|
|
5066
5067
|
]);
|
|
5067
|
-
import_react$
|
|
5068
|
+
import_react$51.useEffect(() => {
|
|
5068
5069
|
if (!enabled) return;
|
|
5069
5070
|
function closeWithDelay(event, runElseBranch = true) {
|
|
5070
5071
|
const closeDelay = getDelay(delayRef.current, "close", instance.pointerType);
|
|
@@ -5180,7 +5181,7 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5180
5181
|
checkShouldOpen,
|
|
5181
5182
|
guardStaleOpen
|
|
5182
5183
|
]);
|
|
5183
|
-
return import_react$
|
|
5184
|
+
return import_react$51.useMemo(() => {
|
|
5184
5185
|
if (!enabled) return;
|
|
5185
5186
|
function setPointerRef(event) {
|
|
5186
5187
|
instance.pointerType = event.pointerType;
|
|
@@ -5237,10 +5238,10 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5237
5238
|
checkShouldOpen
|
|
5238
5239
|
]);
|
|
5239
5240
|
}
|
|
5240
|
-
var import_react$
|
|
5241
|
+
var import_react$51, import_react_dom$3, EMPTY_REF;
|
|
5241
5242
|
function init_useHoverReferenceInteraction() {
|
|
5242
5243
|
return (init_useHoverReferenceInteraction = __esmMin((() => {
|
|
5243
|
-
import_react$
|
|
5244
|
+
import_react$51 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5244
5245
|
import_react_dom$3 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
5245
5246
|
init_useStableCallback();
|
|
5246
5247
|
init_useValueAsRef();
|
|
@@ -5458,16 +5459,16 @@ function createInitialState$2(initialState, triggerElements, floatingId, nested
|
|
|
5458
5459
|
}
|
|
5459
5460
|
function createInitialContext$2(triggerElements) {
|
|
5460
5461
|
return {
|
|
5461
|
-
popupRef: /*#__PURE__*/ import_react$
|
|
5462
|
+
popupRef: /*#__PURE__*/ import_react$50.createRef(),
|
|
5462
5463
|
onOpenChange: void 0,
|
|
5463
5464
|
onOpenChangeComplete: void 0,
|
|
5464
5465
|
triggerElements
|
|
5465
5466
|
};
|
|
5466
5467
|
}
|
|
5467
|
-
var import_react$
|
|
5468
|
+
var import_react$50, selectors$2, TooltipStore;
|
|
5468
5469
|
function init_TooltipStore() {
|
|
5469
5470
|
return (init_TooltipStore = __esmMin((() => {
|
|
5470
|
-
import_react$
|
|
5471
|
+
import_react$50 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5471
5472
|
init_ReactStore();
|
|
5472
5473
|
init_createBaseUIEventDetails();
|
|
5473
5474
|
init_reason_parts();
|
|
@@ -5511,7 +5512,7 @@ function TooltipInteractions({ store, disabled, trackCursorAxis }) {
|
|
|
5511
5512
|
enabled: !disabled && trackCursorAxis !== "none",
|
|
5512
5513
|
axis: trackCursorAxis === "none" ? void 0 : trackCursorAxis
|
|
5513
5514
|
});
|
|
5514
|
-
const triggerProps = import_react$
|
|
5515
|
+
const triggerProps = import_react$49.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
|
|
5515
5516
|
usePopupInteractionProps(store, {
|
|
5516
5517
|
activeTriggerProps: triggerProps,
|
|
5517
5518
|
inactiveTriggerProps: triggerProps,
|
|
@@ -5519,10 +5520,10 @@ function TooltipInteractions({ store, disabled, trackCursorAxis }) {
|
|
|
5519
5520
|
});
|
|
5520
5521
|
return null;
|
|
5521
5522
|
}
|
|
5522
|
-
var import_react$
|
|
5523
|
+
var import_react$49, import_jsx_runtime$16, TooltipRoot;
|
|
5523
5524
|
function init_TooltipRoot() {
|
|
5524
5525
|
return (init_TooltipRoot = __esmMin((() => {
|
|
5525
|
-
import_react$
|
|
5526
|
+
import_react$49 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5526
5527
|
init_fastHooks();
|
|
5527
5528
|
init_empty();
|
|
5528
5529
|
init_useIsoLayoutEffect();
|
|
@@ -5561,7 +5562,7 @@ function init_TooltipRoot() {
|
|
|
5561
5562
|
const isInstantPhase = store.useState("isInstantPhase");
|
|
5562
5563
|
const instantType = store.useState("instantType");
|
|
5563
5564
|
const lastOpenChangeReason = store.useState("lastOpenChangeReason");
|
|
5564
|
-
const previousInstantTypeRef = import_react$
|
|
5565
|
+
const previousInstantTypeRef = import_react$49.useRef(null);
|
|
5565
5566
|
useIsoLayoutEffect(() => {
|
|
5566
5567
|
if (openState && disabled$1) store.setOpen(false, createChangeEventDetails(disabled));
|
|
5567
5568
|
}, [
|
|
@@ -5593,7 +5594,7 @@ function init_TooltipRoot() {
|
|
|
5593
5594
|
activeTriggerId,
|
|
5594
5595
|
open
|
|
5595
5596
|
]);
|
|
5596
|
-
import_react$
|
|
5597
|
+
import_react$49.useImperativeHandle(actionsRef, () => ({
|
|
5597
5598
|
unmount: forceUnmount,
|
|
5598
5599
|
close: () => store.setOpen(false, createChangeEventDetails(imperativeAction))
|
|
5599
5600
|
}), [forceUnmount, store]);
|
|
@@ -5619,13 +5620,13 @@ function init_TooltipRoot() {
|
|
|
5619
5620
|
//#endregion
|
|
5620
5621
|
//#region ../../node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs
|
|
5621
5622
|
function useTooltipProviderContext() {
|
|
5622
|
-
return import_react$
|
|
5623
|
+
return import_react$48.useContext(TooltipProviderContext);
|
|
5623
5624
|
}
|
|
5624
|
-
var import_react$
|
|
5625
|
+
var import_react$48, TooltipProviderContext;
|
|
5625
5626
|
function init_TooltipProviderContext() {
|
|
5626
5627
|
return (init_TooltipProviderContext = __esmMin((() => {
|
|
5627
|
-
import_react$
|
|
5628
|
-
TooltipProviderContext = /*#__PURE__*/ import_react$
|
|
5628
|
+
import_react$48 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5629
|
+
TooltipProviderContext = /*#__PURE__*/ import_react$48.createContext(void 0);
|
|
5629
5630
|
})))();
|
|
5630
5631
|
}
|
|
5631
5632
|
//#endregion
|
|
@@ -5634,11 +5635,11 @@ function getTargetElement(event) {
|
|
|
5634
5635
|
const target = getTarget(event);
|
|
5635
5636
|
return isElement(target) ? target : null;
|
|
5636
5637
|
}
|
|
5637
|
-
var import_react$
|
|
5638
|
+
var import_react$47, TOOLTIP_TRIGGER_IDENTIFIER, TooltipTrigger;
|
|
5638
5639
|
function init_TooltipTrigger() {
|
|
5639
5640
|
return (init_TooltipTrigger = __esmMin((() => {
|
|
5640
5641
|
init_formatErrorMessage();
|
|
5641
|
-
import_react$
|
|
5642
|
+
import_react$47 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5642
5643
|
init_floating_ui_utils_dom();
|
|
5643
5644
|
init_fastHooks();
|
|
5644
5645
|
init_useTimeout();
|
|
@@ -5667,7 +5668,7 @@ function init_TooltipTrigger() {
|
|
|
5667
5668
|
const isTriggerActive = store.useState("isTriggerActive", thisTriggerId);
|
|
5668
5669
|
const isOpenedByThisTrigger = store.useState("isOpenedByTrigger", thisTriggerId);
|
|
5669
5670
|
const floatingRootContext = store.useState("floatingRootContext");
|
|
5670
|
-
const triggerElementRef = import_react$
|
|
5671
|
+
const triggerElementRef = import_react$47.useRef(null);
|
|
5671
5672
|
const closeDelayWithDefault = closeDelay ?? 0;
|
|
5672
5673
|
const { registerTrigger, isMountedByThisTrigger } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {
|
|
5673
5674
|
payload,
|
|
@@ -5683,9 +5684,9 @@ function init_TooltipTrigger() {
|
|
|
5683
5684
|
const disabledRef = useValueAsRef(disabled);
|
|
5684
5685
|
const trackCursorAxis = store.useState("trackCursorAxis");
|
|
5685
5686
|
const disableHoverablePopup = store.useState("disableHoverablePopup");
|
|
5686
|
-
const isNestedTriggerHoveredRef = import_react$
|
|
5687
|
+
const isNestedTriggerHoveredRef = import_react$47.useRef(false);
|
|
5687
5688
|
const nestedTriggerOpenTimeout = useTimeout();
|
|
5688
|
-
const pointerTypeRef = import_react$
|
|
5689
|
+
const pointerTypeRef = import_react$47.useRef(void 0);
|
|
5689
5690
|
function getOpenDelay() {
|
|
5690
5691
|
if (hasProvider && activeIdRef.current != null) return 0;
|
|
5691
5692
|
return delay ?? providerDelay ?? 600;
|
|
@@ -5795,28 +5796,28 @@ function init_TooltipTrigger() {
|
|
|
5795
5796
|
//#endregion
|
|
5796
5797
|
//#region ../../node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs
|
|
5797
5798
|
function useTooltipPortalContext() {
|
|
5798
|
-
const value = import_react$
|
|
5799
|
+
const value = import_react$46.useContext(TooltipPortalContext);
|
|
5799
5800
|
if (value === void 0) throw new Error(formatErrorMessage(70));
|
|
5800
5801
|
return value;
|
|
5801
5802
|
}
|
|
5802
|
-
var import_react$
|
|
5803
|
+
var import_react$46, TooltipPortalContext;
|
|
5803
5804
|
function init_TooltipPortalContext() {
|
|
5804
5805
|
return (init_TooltipPortalContext = __esmMin((() => {
|
|
5805
5806
|
init_formatErrorMessage();
|
|
5806
|
-
import_react$
|
|
5807
|
-
TooltipPortalContext = /*#__PURE__*/ import_react$
|
|
5807
|
+
import_react$46 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5808
|
+
TooltipPortalContext = /*#__PURE__*/ import_react$46.createContext(void 0);
|
|
5808
5809
|
})))();
|
|
5809
5810
|
}
|
|
5810
5811
|
//#endregion
|
|
5811
5812
|
//#region ../../node_modules/@base-ui/react/utils/FloatingPortalLite.mjs
|
|
5812
|
-
var import_react$
|
|
5813
|
+
var import_react$45, import_react_dom$2, import_jsx_runtime$15, FloatingPortalLite;
|
|
5813
5814
|
function init_FloatingPortalLite() {
|
|
5814
5815
|
return (init_FloatingPortalLite = __esmMin((() => {
|
|
5815
|
-
import_react$
|
|
5816
|
+
import_react$45 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5816
5817
|
import_react_dom$2 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
5817
5818
|
init_FloatingPortal();
|
|
5818
5819
|
import_jsx_runtime$15 = require_jsx_runtime();
|
|
5819
|
-
FloatingPortalLite = /*#__PURE__*/ import_react$
|
|
5820
|
+
FloatingPortalLite = /*#__PURE__*/ import_react$45.forwardRef(function FloatingPortalLite(componentProps, forwardedRef) {
|
|
5820
5821
|
const { children, container, className, render, style, ...elementProps } = componentProps;
|
|
5821
5822
|
const { node: portalNode, subtree: portalSubtree } = useFloatingPortalNode({
|
|
5822
5823
|
container,
|
|
@@ -5825,21 +5826,21 @@ function init_FloatingPortalLite() {
|
|
|
5825
5826
|
elementProps
|
|
5826
5827
|
});
|
|
5827
5828
|
if (!portalSubtree && !portalNode) return null;
|
|
5828
|
-
return /*#__PURE__*/ (0, import_jsx_runtime$15.jsxs)(import_react$
|
|
5829
|
+
return /*#__PURE__*/ (0, import_jsx_runtime$15.jsxs)(import_react$45.Fragment, { children: [portalSubtree, portalNode && /*#__PURE__*/ import_react_dom$2.createPortal(children, portalNode)] });
|
|
5829
5830
|
});
|
|
5830
5831
|
})))();
|
|
5831
5832
|
}
|
|
5832
5833
|
//#endregion
|
|
5833
5834
|
//#region ../../node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
|
|
5834
|
-
var import_react$
|
|
5835
|
+
var import_react$44, import_jsx_runtime$14, TooltipPortal;
|
|
5835
5836
|
function init_TooltipPortal() {
|
|
5836
5837
|
return (init_TooltipPortal = __esmMin((() => {
|
|
5837
|
-
import_react$
|
|
5838
|
+
import_react$44 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5838
5839
|
init_TooltipRootContext();
|
|
5839
5840
|
init_TooltipPortalContext();
|
|
5840
5841
|
init_FloatingPortalLite();
|
|
5841
5842
|
import_jsx_runtime$14 = require_jsx_runtime();
|
|
5842
|
-
TooltipPortal = /*#__PURE__*/ import_react$
|
|
5843
|
+
TooltipPortal = /*#__PURE__*/ import_react$44.forwardRef(function TooltipPortal(props, forwardedRef) {
|
|
5843
5844
|
const { keepMounted = false, ...portalProps } = props;
|
|
5844
5845
|
if (!(useTooltipRootContext().useState("mounted") || keepMounted)) return null;
|
|
5845
5846
|
return /*#__PURE__*/ (0, import_jsx_runtime$14.jsx)(TooltipPortalContext.Provider, {
|
|
@@ -5855,16 +5856,16 @@ function init_TooltipPortal() {
|
|
|
5855
5856
|
//#endregion
|
|
5856
5857
|
//#region ../../node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs
|
|
5857
5858
|
function useTooltipPositionerContext() {
|
|
5858
|
-
const context = import_react$
|
|
5859
|
+
const context = import_react$43.useContext(TooltipPositionerContext);
|
|
5859
5860
|
if (context === void 0) throw new Error(formatErrorMessage(71));
|
|
5860
5861
|
return context;
|
|
5861
5862
|
}
|
|
5862
|
-
var import_react$
|
|
5863
|
+
var import_react$43, TooltipPositionerContext;
|
|
5863
5864
|
function init_TooltipPositionerContext() {
|
|
5864
5865
|
return (init_TooltipPositionerContext = __esmMin((() => {
|
|
5865
5866
|
init_formatErrorMessage();
|
|
5866
|
-
import_react$
|
|
5867
|
-
TooltipPositionerContext = /*#__PURE__*/ import_react$
|
|
5867
|
+
import_react$43 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5868
|
+
TooltipPositionerContext = /*#__PURE__*/ import_react$43.createContext(void 0);
|
|
5868
5869
|
})))();
|
|
5869
5870
|
}
|
|
5870
5871
|
//#endregion
|
|
@@ -5881,10 +5882,10 @@ function useBaseUIFloating(options) {
|
|
|
5881
5882
|
const domReferenceElement = store.useState("domReferenceElement");
|
|
5882
5883
|
const open = store.useState("open");
|
|
5883
5884
|
const floatingId = store.useState("floatingId");
|
|
5884
|
-
const [positionReference, setPositionReferenceRaw] = import_react$
|
|
5885
|
-
const domReferenceRef = import_react$
|
|
5885
|
+
const [positionReference, setPositionReferenceRaw] = import_react$42.useState(null);
|
|
5886
|
+
const domReferenceRef = import_react$42.useRef(null);
|
|
5886
5887
|
const tree = useFloatingTree(externalTree);
|
|
5887
|
-
const storeElements = import_react$
|
|
5888
|
+
const storeElements = import_react$42.useMemo(() => ({
|
|
5888
5889
|
reference: referenceElement,
|
|
5889
5890
|
floating: floatingElement,
|
|
5890
5891
|
domReference: domReferenceElement
|
|
@@ -5900,7 +5901,7 @@ function useBaseUIFloating(options) {
|
|
|
5900
5901
|
...positionReference && { reference: positionReference }
|
|
5901
5902
|
}
|
|
5902
5903
|
});
|
|
5903
|
-
const setPositionReference = import_react$
|
|
5904
|
+
const setPositionReference = import_react$42.useCallback((node) => {
|
|
5904
5905
|
const computedPositionReference = isElement(node) ? {
|
|
5905
5906
|
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
5906
5907
|
getClientRects: () => node.getClientRects(),
|
|
@@ -5909,16 +5910,16 @@ function useBaseUIFloating(options) {
|
|
|
5909
5910
|
setPositionReferenceRaw(computedPositionReference);
|
|
5910
5911
|
position.refs.setReference(computedPositionReference);
|
|
5911
5912
|
}, [position.refs]);
|
|
5912
|
-
const refs = import_react$
|
|
5913
|
+
const refs = import_react$42.useMemo(() => ({
|
|
5913
5914
|
...position.refs,
|
|
5914
5915
|
setPositionReference,
|
|
5915
5916
|
domReference: domReferenceRef
|
|
5916
5917
|
}), [position.refs, setPositionReference]);
|
|
5917
|
-
const elements = import_react$
|
|
5918
|
+
const elements = import_react$42.useMemo(() => ({
|
|
5918
5919
|
...position.elements,
|
|
5919
5920
|
domReference: domReferenceElement
|
|
5920
5921
|
}), [position.elements, domReferenceElement]);
|
|
5921
|
-
const context = import_react$
|
|
5922
|
+
const context = import_react$42.useMemo(() => ({
|
|
5922
5923
|
...position,
|
|
5923
5924
|
dataRef: store.context.dataRef,
|
|
5924
5925
|
open,
|
|
@@ -5946,7 +5947,7 @@ function useBaseUIFloating(options) {
|
|
|
5946
5947
|
const node = tree?.nodesRef.current.find((n) => n.id === nodeId);
|
|
5947
5948
|
if (node) node.context = context;
|
|
5948
5949
|
});
|
|
5949
|
-
return import_react$
|
|
5950
|
+
return import_react$42.useMemo(() => ({
|
|
5950
5951
|
...position,
|
|
5951
5952
|
context,
|
|
5952
5953
|
refs,
|
|
@@ -5960,10 +5961,10 @@ function useBaseUIFloating(options) {
|
|
|
5960
5961
|
store
|
|
5961
5962
|
]);
|
|
5962
5963
|
}
|
|
5963
|
-
var import_react$
|
|
5964
|
+
var import_react$42;
|
|
5964
5965
|
function init_useFloating() {
|
|
5965
5966
|
return (init_useFloating = __esmMin((() => {
|
|
5966
|
-
import_react$
|
|
5967
|
+
import_react$42 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5967
5968
|
init_useIsoLayoutEffect();
|
|
5968
5969
|
init_floating_ui_react_dom();
|
|
5969
5970
|
init_floating_ui_utils_dom();
|
|
@@ -6114,7 +6115,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6114
6115
|
const anchorValueRef = useValueAsRef(anchor);
|
|
6115
6116
|
const mountedRef = useValueAsRef(mounted);
|
|
6116
6117
|
const isRtl = useDirection() === "rtl";
|
|
6117
|
-
const [mountPlacement, setMountPlacement] = import_react$
|
|
6118
|
+
const [mountPlacement, setMountPlacement] = import_react$41.useState(null);
|
|
6118
6119
|
if (!mounted && mountPlacement !== null) setMountPlacement(null);
|
|
6119
6120
|
const lockAlign = lazyFlip === "placement";
|
|
6120
6121
|
const mountSide = mountPlacement ? getSide(mountPlacement) : null;
|
|
@@ -6151,7 +6152,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6151
6152
|
boundary: collisionBoundary === "clipping-ancestors" ? "clippingAncestors" : collisionBoundary,
|
|
6152
6153
|
padding: collisionPadding
|
|
6153
6154
|
};
|
|
6154
|
-
const arrowRef = import_react$
|
|
6155
|
+
const arrowRef = import_react$41.useRef(null);
|
|
6155
6156
|
const sideOffsetRef = useValueAsRef(sideOffset);
|
|
6156
6157
|
const alignOffsetRef = useValueAsRef(alignOffset);
|
|
6157
6158
|
const sideOffsetDep = typeof sideOffset !== "function" ? sideOffset : 0;
|
|
@@ -6253,7 +6254,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6253
6254
|
positionReference: null
|
|
6254
6255
|
});
|
|
6255
6256
|
}, [mounted, floatingRootContext]);
|
|
6256
|
-
const autoUpdateOptions = import_react$
|
|
6257
|
+
const autoUpdateOptions = import_react$41.useMemo(() => ({
|
|
6257
6258
|
ancestorScroll: !disableAnchorTracking,
|
|
6258
6259
|
elementResize: !disableAnchorTracking && typeof ResizeObserver !== "undefined",
|
|
6259
6260
|
layoutShift: !disableAnchorTracking && typeof IntersectionObserver !== "undefined"
|
|
@@ -6270,7 +6271,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6270
6271
|
});
|
|
6271
6272
|
const { sideX, sideY } = middlewareData.adaptiveOrigin || DEFAULT_SIDES;
|
|
6272
6273
|
const resolvedPosition = isPositioned ? positionMethod : "fixed";
|
|
6273
|
-
const floatingStyles = import_react$
|
|
6274
|
+
const floatingStyles = import_react$41.useMemo(() => {
|
|
6274
6275
|
let base;
|
|
6275
6276
|
if (!isPositioned) base = {
|
|
6276
6277
|
position: resolvedPosition,
|
|
@@ -6300,7 +6301,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6300
6301
|
originalFloatingStyles,
|
|
6301
6302
|
isPositioned
|
|
6302
6303
|
]);
|
|
6303
|
-
const registeredPositionReferenceRef = import_react$
|
|
6304
|
+
const registeredPositionReferenceRef = import_react$41.useRef(null);
|
|
6304
6305
|
useIsoLayoutEffect(() => {
|
|
6305
6306
|
if (!mounted) return;
|
|
6306
6307
|
const anchorValue = anchorValueRef.current;
|
|
@@ -6316,7 +6317,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6316
6317
|
anchorDep,
|
|
6317
6318
|
anchorValueRef
|
|
6318
6319
|
]);
|
|
6319
|
-
import_react$
|
|
6320
|
+
import_react$41.useEffect(() => {
|
|
6320
6321
|
if (!mounted) return;
|
|
6321
6322
|
const anchorValue = anchorValueRef.current;
|
|
6322
6323
|
if (typeof anchorValue === "function") return;
|
|
@@ -6330,7 +6331,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6330
6331
|
anchorDep,
|
|
6331
6332
|
anchorValueRef
|
|
6332
6333
|
]);
|
|
6333
|
-
import_react$
|
|
6334
|
+
import_react$41.useEffect(() => {
|
|
6334
6335
|
if (keepMounted && mounted && elements.reference && elements.floating) return autoUpdate(elements.reference, elements.floating, update, autoUpdateOptions);
|
|
6335
6336
|
}, [
|
|
6336
6337
|
keepMounted,
|
|
@@ -6356,13 +6357,13 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6356
6357
|
side,
|
|
6357
6358
|
placementAlign
|
|
6358
6359
|
]);
|
|
6359
|
-
const arrowStyles = import_react$
|
|
6360
|
+
const arrowStyles = import_react$41.useMemo(() => ({
|
|
6360
6361
|
position: "absolute",
|
|
6361
6362
|
top: middlewareData.arrow?.y,
|
|
6362
6363
|
left: middlewareData.arrow?.x
|
|
6363
6364
|
}), [middlewareData.arrow]);
|
|
6364
6365
|
const arrowUncentered = middlewareData.arrow?.centerOffset !== 0;
|
|
6365
|
-
return import_react$
|
|
6366
|
+
return import_react$41.useMemo(() => ({
|
|
6366
6367
|
positionerStyles: floatingStyles,
|
|
6367
6368
|
arrowStyles,
|
|
6368
6369
|
arrowRef,
|
|
@@ -6393,10 +6394,10 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6393
6394
|
function isRef(param) {
|
|
6394
6395
|
return param != null && "current" in param;
|
|
6395
6396
|
}
|
|
6396
|
-
var import_react$
|
|
6397
|
+
var import_react$41, AVAILABLE_WIDTH_VAR, AVAILABLE_HEIGHT_VAR;
|
|
6397
6398
|
function init_useAnchorPositioning() {
|
|
6398
6399
|
return (init_useAnchorPositioning = __esmMin((() => {
|
|
6399
|
-
import_react$
|
|
6400
|
+
import_react$41 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6400
6401
|
init_floating_ui_utils();
|
|
6401
6402
|
init_floating_ui_utils_dom();
|
|
6402
6403
|
init_useIsoLayoutEffect();
|
|
@@ -6457,10 +6458,10 @@ function init_usePositioner() {
|
|
|
6457
6458
|
}
|
|
6458
6459
|
//#endregion
|
|
6459
6460
|
//#region ../../node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
|
|
6460
|
-
var import_react$
|
|
6461
|
+
var import_react$40, import_jsx_runtime$13, TooltipPositioner;
|
|
6461
6462
|
function init_TooltipPositioner() {
|
|
6462
6463
|
return (init_TooltipPositioner = __esmMin((() => {
|
|
6463
|
-
import_react$
|
|
6464
|
+
import_react$40 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6464
6465
|
init_TooltipRootContext();
|
|
6465
6466
|
init_TooltipPositionerContext();
|
|
6466
6467
|
init_useAnchorPositioning();
|
|
@@ -6468,7 +6469,7 @@ function init_TooltipPositioner() {
|
|
|
6468
6469
|
init_constants$1();
|
|
6469
6470
|
init_usePositioner();
|
|
6470
6471
|
import_jsx_runtime$13 = require_jsx_runtime();
|
|
6471
|
-
TooltipPositioner = /*#__PURE__*/ import_react$
|
|
6472
|
+
TooltipPositioner = /*#__PURE__*/ import_react$40.forwardRef(function TooltipPositioner(componentProps, forwardedRef) {
|
|
6472
6473
|
const { render, className, anchor, positionMethod = "absolute", side = "top", align = "center", sideOffset = 0, alignOffset = 0, collisionBoundary = "clipping-ancestors", collisionPadding = 5, arrowPadding = 5, sticky = false, disableAnchorTracking = false, collisionAvoidance = POPUP_COLLISION_AVOIDANCE, style, ...elementProps } = componentProps;
|
|
6473
6474
|
const store = useTooltipRootContext();
|
|
6474
6475
|
const keepMounted = useTooltipPortalContext();
|
|
@@ -6497,7 +6498,7 @@ function init_TooltipPositioner() {
|
|
|
6497
6498
|
collisionAvoidance,
|
|
6498
6499
|
adaptiveOrigin: store.useState("adaptiveOrigin")
|
|
6499
6500
|
});
|
|
6500
|
-
const element = usePositioner(componentProps, import_react$
|
|
6501
|
+
const element = usePositioner(componentProps, import_react$40.useMemo(() => ({
|
|
6501
6502
|
open,
|
|
6502
6503
|
side: positioning.side,
|
|
6503
6504
|
align: positioning.align,
|
|
@@ -6527,10 +6528,10 @@ function init_TooltipPositioner() {
|
|
|
6527
6528
|
}
|
|
6528
6529
|
//#endregion
|
|
6529
6530
|
//#region ../../node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs
|
|
6530
|
-
var import_react$
|
|
6531
|
+
var import_react$39, TooltipPopup;
|
|
6531
6532
|
function init_TooltipPopup() {
|
|
6532
6533
|
return (init_TooltipPopup = __esmMin((() => {
|
|
6533
|
-
import_react$
|
|
6534
|
+
import_react$39 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6534
6535
|
init_TooltipRootContext();
|
|
6535
6536
|
init_TooltipPositionerContext();
|
|
6536
6537
|
init_popupStateMapping();
|
|
@@ -6539,7 +6540,7 @@ function init_TooltipPopup() {
|
|
|
6539
6540
|
init_getDisabledMountTransitionStyles();
|
|
6540
6541
|
init_useHoverFloatingInteraction();
|
|
6541
6542
|
init_popupStoreUtils();
|
|
6542
|
-
TooltipPopup = /*#__PURE__*/ import_react$
|
|
6543
|
+
TooltipPopup = /*#__PURE__*/ import_react$39.forwardRef(function TooltipPopup(componentProps, forwardedRef) {
|
|
6543
6544
|
const { render, className, style, ...elementProps } = componentProps;
|
|
6544
6545
|
const store = useTooltipRootContext();
|
|
6545
6546
|
const { side, align } = useTooltipPositionerContext();
|
|
@@ -6600,28 +6601,28 @@ function init_inertValue() {
|
|
|
6600
6601
|
//#endregion
|
|
6601
6602
|
//#region ../../node_modules/@base-ui/react/dialog/root/DialogRootContext.mjs
|
|
6602
6603
|
function useDialogRootContext(optional) {
|
|
6603
|
-
const store = import_react$
|
|
6604
|
+
const store = import_react$38.useContext(DialogRootContext);
|
|
6604
6605
|
if (!optional && store === void 0) throw new Error(formatErrorMessage(27));
|
|
6605
6606
|
return store;
|
|
6606
6607
|
}
|
|
6607
|
-
var import_react$
|
|
6608
|
+
var import_react$38, DialogRootContext;
|
|
6608
6609
|
function init_DialogRootContext() {
|
|
6609
6610
|
return (init_DialogRootContext = __esmMin((() => {
|
|
6610
6611
|
init_formatErrorMessage();
|
|
6611
|
-
import_react$
|
|
6612
|
-
DialogRootContext = /*#__PURE__*/ import_react$
|
|
6612
|
+
import_react$38 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6613
|
+
DialogRootContext = /*#__PURE__*/ import_react$38.createContext(void 0);
|
|
6613
6614
|
})))();
|
|
6614
6615
|
}
|
|
6615
6616
|
//#endregion
|
|
6616
6617
|
//#region ../../node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs
|
|
6617
|
-
var import_react$
|
|
6618
|
+
var import_react$37, DialogBackdrop;
|
|
6618
6619
|
function init_DialogBackdrop() {
|
|
6619
6620
|
return (init_DialogBackdrop = __esmMin((() => {
|
|
6620
|
-
import_react$
|
|
6621
|
+
import_react$37 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6621
6622
|
init_DialogRootContext();
|
|
6622
6623
|
init_useRenderElement();
|
|
6623
6624
|
init_popupStateMapping();
|
|
6624
|
-
DialogBackdrop = /*#__PURE__*/ import_react$
|
|
6625
|
+
DialogBackdrop = /*#__PURE__*/ import_react$37.forwardRef(function DialogBackdrop(componentProps, forwardedRef) {
|
|
6625
6626
|
const { render, className, style, forceRender = false, ...elementProps } = componentProps;
|
|
6626
6627
|
const store = useDialogRootContext();
|
|
6627
6628
|
const open = store.useState("open");
|
|
@@ -6650,16 +6651,16 @@ function init_DialogBackdrop() {
|
|
|
6650
6651
|
//#endregion
|
|
6651
6652
|
//#region ../../node_modules/@base-ui/react/internals/composite/root/CompositeRootContext.mjs
|
|
6652
6653
|
function useCompositeRootContext(optional = false) {
|
|
6653
|
-
const context = import_react$
|
|
6654
|
+
const context = import_react$36.useContext(CompositeRootContext);
|
|
6654
6655
|
if (context === void 0 && !optional) throw new Error(formatErrorMessage(16));
|
|
6655
6656
|
return context;
|
|
6656
6657
|
}
|
|
6657
|
-
var import_react$
|
|
6658
|
+
var import_react$36, CompositeRootContext;
|
|
6658
6659
|
function init_CompositeRootContext() {
|
|
6659
6660
|
return (init_CompositeRootContext = __esmMin((() => {
|
|
6660
6661
|
init_formatErrorMessage();
|
|
6661
|
-
import_react$
|
|
6662
|
-
CompositeRootContext = /*#__PURE__*/ import_react$
|
|
6662
|
+
import_react$36 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6663
|
+
CompositeRootContext = /*#__PURE__*/ import_react$36.createContext(void 0);
|
|
6663
6664
|
})))();
|
|
6664
6665
|
}
|
|
6665
6666
|
//#endregion
|
|
@@ -6668,7 +6669,7 @@ function useFocusableWhenDisabled(parameters) {
|
|
|
6668
6669
|
const { focusableWhenDisabled, disabled, composite = false, tabIndex: tabIndexProp = 0, isNativeButton } = parameters;
|
|
6669
6670
|
const isFocusableComposite = composite && focusableWhenDisabled !== false;
|
|
6670
6671
|
const isNonFocusableComposite = composite && focusableWhenDisabled === false;
|
|
6671
|
-
return { props: import_react$
|
|
6672
|
+
return { props: import_react$35.useMemo(() => {
|
|
6672
6673
|
const additionalProps = { onKeyDown(event) {
|
|
6673
6674
|
if (disabled && focusableWhenDisabled && event.key !== "Tab") event.preventDefault();
|
|
6674
6675
|
} };
|
|
@@ -6689,10 +6690,10 @@ function useFocusableWhenDisabled(parameters) {
|
|
|
6689
6690
|
tabIndexProp
|
|
6690
6691
|
]) };
|
|
6691
6692
|
}
|
|
6692
|
-
var import_react$
|
|
6693
|
+
var import_react$35;
|
|
6693
6694
|
function init_useFocusableWhenDisabled() {
|
|
6694
6695
|
return (init_useFocusableWhenDisabled = __esmMin((() => {
|
|
6695
|
-
import_react$
|
|
6696
|
+
import_react$35 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6696
6697
|
})))();
|
|
6697
6698
|
}
|
|
6698
6699
|
//#endregion
|
|
@@ -6729,7 +6730,7 @@ function init_dispatchClickWithModifiers() {
|
|
|
6729
6730
|
//#region ../../node_modules/@base-ui/react/internals/use-button/useButton.mjs
|
|
6730
6731
|
function useButton(parameters = {}) {
|
|
6731
6732
|
const { disabled = false, focusableWhenDisabled, tabIndex = 0, native: isNativeButton = true, composite: compositeProp } = parameters;
|
|
6732
|
-
const elementRef = import_react$
|
|
6733
|
+
const elementRef = import_react$34.useRef(null);
|
|
6733
6734
|
const compositeRootContext = useCompositeRootContext(true);
|
|
6734
6735
|
const isCompositeItem = compositeProp ?? compositeRootContext !== void 0;
|
|
6735
6736
|
const { props: focusableWhenDisabledProps } = useFocusableWhenDisabled({
|
|
@@ -6739,7 +6740,7 @@ function useButton(parameters = {}) {
|
|
|
6739
6740
|
tabIndex,
|
|
6740
6741
|
isNativeButton
|
|
6741
6742
|
});
|
|
6742
|
-
const updateDisabled = import_react$
|
|
6743
|
+
const updateDisabled = import_react$34.useCallback(() => {
|
|
6743
6744
|
const element = elementRef.current;
|
|
6744
6745
|
if (!isButtonElement(element)) return;
|
|
6745
6746
|
if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === void 0 && element.disabled) element.disabled = false;
|
|
@@ -6750,7 +6751,7 @@ function useButton(parameters = {}) {
|
|
|
6750
6751
|
]);
|
|
6751
6752
|
useIsoLayoutEffect(updateDisabled, [updateDisabled]);
|
|
6752
6753
|
return {
|
|
6753
|
-
getButtonProps: import_react$
|
|
6754
|
+
getButtonProps: import_react$34.useCallback((externalProps = {}) => {
|
|
6754
6755
|
const { onClick: externalOnClick, onMouseDown: externalOnMouseDown, onKeyUp: externalOnKeyUp, onKeyDown: externalOnKeyDown, onPointerDown: externalOnPointerDown, ...otherExternalProps } = externalProps;
|
|
6755
6756
|
return mergeProps({
|
|
6756
6757
|
onClick(event) {
|
|
@@ -6837,10 +6838,10 @@ function isButtonElement(elem) {
|
|
|
6837
6838
|
function isValidLinkElement(elem) {
|
|
6838
6839
|
return isHTMLElement(elem) && elem.tagName === "A" && Boolean(elem.href);
|
|
6839
6840
|
}
|
|
6840
|
-
var import_react$
|
|
6841
|
+
var import_react$34;
|
|
6841
6842
|
function init_useButton() {
|
|
6842
6843
|
return (init_useButton = __esmMin((() => {
|
|
6843
|
-
import_react$
|
|
6844
|
+
import_react$34 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6844
6845
|
init_floating_ui_utils_dom();
|
|
6845
6846
|
init_useStableCallback();
|
|
6846
6847
|
init_useIsoLayoutEffect();
|
|
@@ -6853,16 +6854,16 @@ function init_useButton() {
|
|
|
6853
6854
|
//#endregion
|
|
6854
6855
|
//#region ../../node_modules/@base-ui/react/dialog/portal/DialogPortalContext.mjs
|
|
6855
6856
|
function useDialogPortalContext() {
|
|
6856
|
-
const value = import_react$
|
|
6857
|
+
const value = import_react$33.useContext(DialogPortalContext);
|
|
6857
6858
|
if (value === void 0) throw new Error(formatErrorMessage(26));
|
|
6858
6859
|
return value;
|
|
6859
6860
|
}
|
|
6860
|
-
var import_react$
|
|
6861
|
+
var import_react$33, DialogPortalContext;
|
|
6861
6862
|
function init_DialogPortalContext() {
|
|
6862
6863
|
return (init_DialogPortalContext = __esmMin((() => {
|
|
6863
6864
|
init_formatErrorMessage();
|
|
6864
|
-
import_react$
|
|
6865
|
-
DialogPortalContext = /*#__PURE__*/ import_react$
|
|
6865
|
+
import_react$33 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6866
|
+
DialogPortalContext = /*#__PURE__*/ import_react$33.createContext(void 0);
|
|
6866
6867
|
})))();
|
|
6867
6868
|
}
|
|
6868
6869
|
//#endregion
|
|
@@ -6993,10 +6994,10 @@ function init_stateAttributesMapping$1() {
|
|
|
6993
6994
|
}
|
|
6994
6995
|
//#endregion
|
|
6995
6996
|
//#region ../../node_modules/@base-ui/react/dialog/popup/DialogPopup.mjs
|
|
6996
|
-
var import_react$
|
|
6997
|
+
var import_react$32, import_jsx_runtime$12, DialogPopup;
|
|
6997
6998
|
function init_DialogPopup() {
|
|
6998
6999
|
return (init_DialogPopup = __esmMin((() => {
|
|
6999
|
-
import_react$
|
|
7000
|
+
import_react$32 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7000
7001
|
init_FloatingFocusManager();
|
|
7001
7002
|
init_DialogRootContext();
|
|
7002
7003
|
init_useRenderElement();
|
|
@@ -7007,7 +7008,7 @@ function init_DialogPopup() {
|
|
|
7007
7008
|
init_DialogPopupCssVars();
|
|
7008
7009
|
init_stateAttributesMapping$1();
|
|
7009
7010
|
import_jsx_runtime$12 = require_jsx_runtime();
|
|
7010
|
-
DialogPopup = /*#__PURE__*/ import_react$
|
|
7011
|
+
DialogPopup = /*#__PURE__*/ import_react$32.forwardRef(function DialogPopup(componentProps, forwardedRef) {
|
|
7011
7012
|
const { render, className, style, finalFocus, initialFocus, ...elementProps } = componentProps;
|
|
7012
7013
|
const store = useDialogRootContext();
|
|
7013
7014
|
const descriptionElementId = store.useState("descriptionElementId");
|
|
@@ -7081,12 +7082,12 @@ function init_DialogPopup() {
|
|
|
7081
7082
|
}
|
|
7082
7083
|
//#endregion
|
|
7083
7084
|
//#region ../../node_modules/@base-ui/react/utils/InternalBackdrop.mjs
|
|
7084
|
-
var import_react$
|
|
7085
|
+
var import_react$31, import_jsx_runtime$11, InternalBackdrop;
|
|
7085
7086
|
function init_InternalBackdrop() {
|
|
7086
7087
|
return (init_InternalBackdrop = __esmMin((() => {
|
|
7087
|
-
import_react$
|
|
7088
|
+
import_react$31 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7088
7089
|
import_jsx_runtime$11 = require_jsx_runtime();
|
|
7089
|
-
InternalBackdrop = /*#__PURE__*/ import_react$
|
|
7090
|
+
InternalBackdrop = /*#__PURE__*/ import_react$31.forwardRef(function InternalBackdrop(props, ref) {
|
|
7090
7091
|
const { cutout, ...otherProps } = props;
|
|
7091
7092
|
let clipPath;
|
|
7092
7093
|
if (cutout) {
|
|
@@ -7111,17 +7112,17 @@ function init_InternalBackdrop() {
|
|
|
7111
7112
|
}
|
|
7112
7113
|
//#endregion
|
|
7113
7114
|
//#region ../../node_modules/@base-ui/react/dialog/portal/DialogPortal.mjs
|
|
7114
|
-
var import_react$
|
|
7115
|
+
var import_react$30, import_jsx_runtime$10, DialogPortal;
|
|
7115
7116
|
function init_DialogPortal() {
|
|
7116
7117
|
return (init_DialogPortal = __esmMin((() => {
|
|
7117
|
-
import_react$
|
|
7118
|
+
import_react$30 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7118
7119
|
init_inertValue();
|
|
7119
7120
|
init_FloatingPortal();
|
|
7120
7121
|
init_DialogRootContext();
|
|
7121
7122
|
init_DialogPortalContext();
|
|
7122
7123
|
init_InternalBackdrop();
|
|
7123
7124
|
import_jsx_runtime$10 = require_jsx_runtime();
|
|
7124
|
-
DialogPortal = /*#__PURE__*/ import_react$
|
|
7125
|
+
DialogPortal = /*#__PURE__*/ import_react$30.forwardRef(function DialogPortal(props, forwardedRef) {
|
|
7125
7126
|
const { keepMounted = false, ...portalProps } = props;
|
|
7126
7127
|
const store = useDialogRootContext();
|
|
7127
7128
|
const mounted = store.useState("mounted");
|
|
@@ -7151,8 +7152,8 @@ function DialogInteractions({ store, parentContext, isDrawer }) {
|
|
|
7151
7152
|
const modal = store.useState("modal");
|
|
7152
7153
|
const popupElement = store.useState("popupElement");
|
|
7153
7154
|
const floatingRootContext = store.useState("floatingRootContext");
|
|
7154
|
-
const [ownNestedOpenDialogs, setOwnNestedOpenDialogs] = import_react$
|
|
7155
|
-
const [ownNestedOpenDrawers, setOwnNestedOpenDrawers] = import_react$
|
|
7155
|
+
const [ownNestedOpenDialogs, setOwnNestedOpenDialogs] = import_react$29.useState(0);
|
|
7156
|
+
const [ownNestedOpenDrawers, setOwnNestedOpenDrawers] = import_react$29.useState(0);
|
|
7156
7157
|
const isTopmost = ownNestedOpenDialogs === 0;
|
|
7157
7158
|
const dismiss = useDismiss(floatingRootContext, {
|
|
7158
7159
|
outsidePressEvent() {
|
|
@@ -7218,10 +7219,10 @@ function DialogInteractions({ store, parentContext, isDrawer }) {
|
|
|
7218
7219
|
});
|
|
7219
7220
|
return null;
|
|
7220
7221
|
}
|
|
7221
|
-
var import_react$
|
|
7222
|
+
var import_react$29;
|
|
7222
7223
|
function init_useDialogRoot() {
|
|
7223
7224
|
return (init_useDialogRoot = __esmMin((() => {
|
|
7224
|
-
import_react$
|
|
7225
|
+
import_react$29 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7225
7226
|
init_useIsoLayoutEffect();
|
|
7226
7227
|
init_useScrollLock();
|
|
7227
7228
|
init_useDismiss();
|
|
@@ -7249,19 +7250,19 @@ function createInitialState$1(initialState, triggerElements, floatingId, nested
|
|
|
7249
7250
|
}
|
|
7250
7251
|
function createInitialContext$1(triggerElements) {
|
|
7251
7252
|
return {
|
|
7252
|
-
popupRef: /*#__PURE__*/ import_react$
|
|
7253
|
-
backdropRef: /*#__PURE__*/ import_react$
|
|
7254
|
-
internalBackdropRef: /*#__PURE__*/ import_react$
|
|
7253
|
+
popupRef: /*#__PURE__*/ import_react$28.createRef(),
|
|
7254
|
+
backdropRef: /*#__PURE__*/ import_react$28.createRef(),
|
|
7255
|
+
internalBackdropRef: /*#__PURE__*/ import_react$28.createRef(),
|
|
7255
7256
|
outsidePressEnabledRef: { current: true },
|
|
7256
7257
|
triggerElements,
|
|
7257
7258
|
onOpenChange: void 0,
|
|
7258
7259
|
onOpenChangeComplete: void 0
|
|
7259
7260
|
};
|
|
7260
7261
|
}
|
|
7261
|
-
var import_react$
|
|
7262
|
+
var import_react$28, selectors$1, DialogStore;
|
|
7262
7263
|
function init_DialogStore() {
|
|
7263
7264
|
return (init_DialogStore = __esmMin((() => {
|
|
7264
|
-
import_react$
|
|
7265
|
+
import_react$28 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7265
7266
|
init_ReactStore();
|
|
7266
7267
|
init_store(), init_popupTriggerMap(), init_popupStoreUtils();
|
|
7267
7268
|
selectors$1 = {
|
|
@@ -7330,7 +7331,7 @@ function useRenderDialogRoot(mode, props) {
|
|
|
7330
7331
|
usePopupRootSync(store, open);
|
|
7331
7332
|
useImplicitActiveTrigger(store);
|
|
7332
7333
|
const { forceUnmount } = useOpenStateTransitions(open, store);
|
|
7333
|
-
import_react$
|
|
7334
|
+
import_react$27.useImperativeHandle(actionsRef, () => ({
|
|
7334
7335
|
unmount: forceUnmount,
|
|
7335
7336
|
close: () => store.setOpen(false, createChangeEventDetails(imperativeAction))
|
|
7336
7337
|
}), [forceUnmount, store]);
|
|
@@ -7351,10 +7352,10 @@ function useRenderDialogRoot(mode, props) {
|
|
|
7351
7352
|
]
|
|
7352
7353
|
});
|
|
7353
7354
|
}
|
|
7354
|
-
var import_react$
|
|
7355
|
+
var import_react$27, import_jsx_runtime$9;
|
|
7355
7356
|
function init_useRenderDialogRoot() {
|
|
7356
7357
|
return (init_useRenderDialogRoot = __esmMin((() => {
|
|
7357
|
-
import_react$
|
|
7358
|
+
import_react$27 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7358
7359
|
init_useDialogRoot();
|
|
7359
7360
|
init_DialogRootContext();
|
|
7360
7361
|
init_DialogStore();
|
|
@@ -7383,15 +7384,15 @@ function useOpenMethodTriggerProps(open, setOpenMethod) {
|
|
|
7383
7384
|
if (!(typeof open === "function" ? open() : open)) setOpenMethod(interactionType || (ios ? "touch" : ""));
|
|
7384
7385
|
});
|
|
7385
7386
|
const { onClick, onPointerDown } = useEnhancedClickHandler(handleTriggerClick);
|
|
7386
|
-
return import_react$
|
|
7387
|
+
return import_react$26.useMemo(() => ({
|
|
7387
7388
|
onClick,
|
|
7388
7389
|
onPointerDown
|
|
7389
7390
|
}), [onClick, onPointerDown]);
|
|
7390
7391
|
}
|
|
7391
|
-
var import_react$
|
|
7392
|
+
var import_react$26;
|
|
7392
7393
|
function init_useOpenInteractionType() {
|
|
7393
7394
|
return (init_useOpenInteractionType = __esmMin((() => {
|
|
7394
|
-
import_react$
|
|
7395
|
+
import_react$26 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7395
7396
|
init_useStableCallback();
|
|
7396
7397
|
init_useEnhancedClickHandler();
|
|
7397
7398
|
init_os();
|
|
@@ -7400,16 +7401,16 @@ function init_useOpenInteractionType() {
|
|
|
7400
7401
|
//#endregion
|
|
7401
7402
|
//#region ../../node_modules/@base-ui/react/popover/root/PopoverRootContext.mjs
|
|
7402
7403
|
function usePopoverRootContext(optional) {
|
|
7403
|
-
const context = import_react$
|
|
7404
|
+
const context = import_react$25.useContext(PopoverRootContext);
|
|
7404
7405
|
if (context === void 0 && !optional) throw new Error(formatErrorMessage(47));
|
|
7405
7406
|
return context;
|
|
7406
7407
|
}
|
|
7407
|
-
var import_react$
|
|
7408
|
+
var import_react$25, PopoverRootContext;
|
|
7408
7409
|
function init_PopoverRootContext() {
|
|
7409
7410
|
return (init_PopoverRootContext = __esmMin((() => {
|
|
7410
7411
|
init_formatErrorMessage();
|
|
7411
|
-
import_react$
|
|
7412
|
-
PopoverRootContext = /*#__PURE__*/ import_react$
|
|
7412
|
+
import_react$25 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7413
|
+
PopoverRootContext = /*#__PURE__*/ import_react$25.createContext(void 0);
|
|
7413
7414
|
})))();
|
|
7414
7415
|
}
|
|
7415
7416
|
//#endregion
|
|
@@ -7435,21 +7436,21 @@ function createInitialState(initialState, triggerElements, floatingId, nested =
|
|
|
7435
7436
|
}
|
|
7436
7437
|
function createInitialContext(triggerElements) {
|
|
7437
7438
|
return {
|
|
7438
|
-
popupRef: /*#__PURE__*/ import_react$
|
|
7439
|
+
popupRef: /*#__PURE__*/ import_react$24.createRef(),
|
|
7439
7440
|
onOpenChange: void 0,
|
|
7440
7441
|
onOpenChangeComplete: void 0,
|
|
7441
|
-
triggerFocusTargetRef: /*#__PURE__*/ import_react$
|
|
7442
|
-
beforeTriggerFocusGuardRef: /*#__PURE__*/ import_react$
|
|
7443
|
-
beforeContentFocusGuardRef: /*#__PURE__*/ import_react$
|
|
7442
|
+
triggerFocusTargetRef: /*#__PURE__*/ import_react$24.createRef(),
|
|
7443
|
+
beforeTriggerFocusGuardRef: /*#__PURE__*/ import_react$24.createRef(),
|
|
7444
|
+
beforeContentFocusGuardRef: /*#__PURE__*/ import_react$24.createRef(),
|
|
7444
7445
|
stickIfOpenTimeout: new Timeout(),
|
|
7445
7446
|
stickIfOpen: true,
|
|
7446
7447
|
triggerElements
|
|
7447
7448
|
};
|
|
7448
7449
|
}
|
|
7449
|
-
var import_react$
|
|
7450
|
+
var import_react$24, import_react_dom$1, selectors, PopoverStore;
|
|
7450
7451
|
function init_PopoverStore() {
|
|
7451
7452
|
return (init_PopoverStore = __esmMin((() => {
|
|
7452
|
-
import_react$
|
|
7453
|
+
import_react$24 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7453
7454
|
import_react_dom$1 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
7454
7455
|
init_ReactStore();
|
|
7455
7456
|
init_useTimeout();
|
|
@@ -7516,7 +7517,7 @@ function PopoverRoot(props) {
|
|
|
7516
7517
|
}
|
|
7517
7518
|
function usePopoverRootStore(handle, initialState) {
|
|
7518
7519
|
const store = usePopupRootStore((floatingId, nested) => new PopoverStore(initialState, floatingId, nested));
|
|
7519
|
-
import_react$
|
|
7520
|
+
import_react$23.useEffect(() => store.context.stickIfOpenTimeout.disposeEffect(), [store]);
|
|
7520
7521
|
return store;
|
|
7521
7522
|
}
|
|
7522
7523
|
function PopoverInteractions({ store, modal }) {
|
|
@@ -7533,10 +7534,10 @@ function PopoverInteractions({ store, modal }) {
|
|
|
7533
7534
|
});
|
|
7534
7535
|
return null;
|
|
7535
7536
|
}
|
|
7536
|
-
var import_react$
|
|
7537
|
+
var import_react$23, import_jsx_runtime$8, PopoverRootComponent;
|
|
7537
7538
|
function init_PopoverRoot() {
|
|
7538
7539
|
return (init_PopoverRoot = __esmMin((() => {
|
|
7539
|
-
import_react$
|
|
7540
|
+
import_react$23 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7540
7541
|
init_fastHooks();
|
|
7541
7542
|
init_useDismiss(), init_FloatingTree();
|
|
7542
7543
|
init_PopoverRootContext();
|
|
@@ -7568,10 +7569,10 @@ function init_PopoverRoot() {
|
|
|
7568
7569
|
store.set("openChangeReason", null);
|
|
7569
7570
|
});
|
|
7570
7571
|
store.useSyncedValues({ modal });
|
|
7571
|
-
import_react$
|
|
7572
|
+
import_react$23.useEffect(() => {
|
|
7572
7573
|
if (!open) store.context.stickIfOpenTimeout.clear();
|
|
7573
7574
|
}, [store, open]);
|
|
7574
|
-
import_react$
|
|
7575
|
+
import_react$23.useImperativeHandle(props.actionsRef, () => ({
|
|
7575
7576
|
unmount: forceUnmount,
|
|
7576
7577
|
close: () => store.setOpen(false, createChangeEventDetails(imperativeAction))
|
|
7577
7578
|
}), [forceUnmount, store]);
|
|
@@ -7638,11 +7639,11 @@ function init_useTriggerFocusGuards() {
|
|
|
7638
7639
|
}
|
|
7639
7640
|
//#endregion
|
|
7640
7641
|
//#region ../../node_modules/@base-ui/react/popover/trigger/PopoverTrigger.mjs
|
|
7641
|
-
var import_react$
|
|
7642
|
+
var import_react$22, import_jsx_runtime$7, PopoverTrigger;
|
|
7642
7643
|
function init_PopoverTrigger() {
|
|
7643
7644
|
return (init_PopoverTrigger = __esmMin((() => {
|
|
7644
7645
|
init_formatErrorMessage();
|
|
7645
|
-
import_react$
|
|
7646
|
+
import_react$22 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7646
7647
|
init_useStableCallback();
|
|
7647
7648
|
init_fastHooks();
|
|
7648
7649
|
init_PopoverRootContext();
|
|
@@ -7667,7 +7668,7 @@ function init_PopoverTrigger() {
|
|
|
7667
7668
|
const floatingContext = store.useState("floatingRootContext");
|
|
7668
7669
|
const isOpenedByThisTrigger = store.useState("isOpenedByTrigger", thisTriggerId);
|
|
7669
7670
|
const popupId = store.useState("triggerPopupId", thisTriggerId);
|
|
7670
|
-
const triggerElementRef = import_react$
|
|
7671
|
+
const triggerElementRef = import_react$22.useRef(null);
|
|
7671
7672
|
const { registerTrigger, isMountedByThisTrigger } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {
|
|
7672
7673
|
payload,
|
|
7673
7674
|
disabled,
|
|
@@ -7730,8 +7731,8 @@ function init_PopoverTrigger() {
|
|
|
7730
7731
|
],
|
|
7731
7732
|
stateAttributesMapping
|
|
7732
7733
|
});
|
|
7733
|
-
const keyedElement = /*#__PURE__*/ (0, import_jsx_runtime$7.jsx)(import_react$
|
|
7734
|
-
if (hasFocusGuards) return /*#__PURE__*/ (0, import_jsx_runtime$7.jsxs)(import_react$
|
|
7734
|
+
const keyedElement = /*#__PURE__*/ (0, import_jsx_runtime$7.jsx)(import_react$22.Fragment, { children: element }, thisTriggerId);
|
|
7735
|
+
if (hasFocusGuards) return /*#__PURE__*/ (0, import_jsx_runtime$7.jsxs)(import_react$22.Fragment, { children: [
|
|
7735
7736
|
/*#__PURE__*/ (0, import_jsx_runtime$7.jsx)(FocusGuard, {
|
|
7736
7737
|
ref: store.context.beforeTriggerFocusGuardRef,
|
|
7737
7738
|
onFocus: handlePreFocusGuardFocus
|
|
@@ -7749,29 +7750,29 @@ function init_PopoverTrigger() {
|
|
|
7749
7750
|
//#endregion
|
|
7750
7751
|
//#region ../../node_modules/@base-ui/react/popover/portal/PopoverPortalContext.mjs
|
|
7751
7752
|
function usePopoverPortalContext() {
|
|
7752
|
-
const value = import_react$
|
|
7753
|
+
const value = import_react$21.useContext(PopoverPortalContext);
|
|
7753
7754
|
if (value === void 0) throw new Error(formatErrorMessage(45));
|
|
7754
7755
|
return value;
|
|
7755
7756
|
}
|
|
7756
|
-
var import_react$
|
|
7757
|
+
var import_react$21, PopoverPortalContext;
|
|
7757
7758
|
function init_PopoverPortalContext() {
|
|
7758
7759
|
return (init_PopoverPortalContext = __esmMin((() => {
|
|
7759
7760
|
init_formatErrorMessage();
|
|
7760
|
-
import_react$
|
|
7761
|
-
PopoverPortalContext = /*#__PURE__*/ import_react$
|
|
7761
|
+
import_react$21 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7762
|
+
PopoverPortalContext = /*#__PURE__*/ import_react$21.createContext(void 0);
|
|
7762
7763
|
})))();
|
|
7763
7764
|
}
|
|
7764
7765
|
//#endregion
|
|
7765
7766
|
//#region ../../node_modules/@base-ui/react/popover/portal/PopoverPortal.mjs
|
|
7766
|
-
var import_react$
|
|
7767
|
+
var import_react$20, import_jsx_runtime$6, PopoverPortal;
|
|
7767
7768
|
function init_PopoverPortal() {
|
|
7768
7769
|
return (init_PopoverPortal = __esmMin((() => {
|
|
7769
|
-
import_react$
|
|
7770
|
+
import_react$20 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7770
7771
|
init_FloatingPortal();
|
|
7771
7772
|
init_PopoverRootContext();
|
|
7772
7773
|
init_PopoverPortalContext();
|
|
7773
7774
|
import_jsx_runtime$6 = require_jsx_runtime();
|
|
7774
|
-
PopoverPortal = /*#__PURE__*/ import_react$
|
|
7775
|
+
PopoverPortal = /*#__PURE__*/ import_react$20.forwardRef(function PopoverPortal(props, forwardedRef) {
|
|
7775
7776
|
const { keepMounted = false, ...portalProps } = props;
|
|
7776
7777
|
if (!(usePopoverRootContext().useState("mounted") || keepMounted)) return null;
|
|
7777
7778
|
return /*#__PURE__*/ (0, import_jsx_runtime$6.jsx)(PopoverPortalContext.Provider, {
|
|
@@ -7787,16 +7788,16 @@ function init_PopoverPortal() {
|
|
|
7787
7788
|
//#endregion
|
|
7788
7789
|
//#region ../../node_modules/@base-ui/react/popover/positioner/PopoverPositionerContext.mjs
|
|
7789
7790
|
function usePopoverPositionerContext() {
|
|
7790
|
-
const context = import_react$
|
|
7791
|
+
const context = import_react$19.useContext(PopoverPositionerContext);
|
|
7791
7792
|
if (!context) throw new Error(formatErrorMessage(46));
|
|
7792
7793
|
return context;
|
|
7793
7794
|
}
|
|
7794
|
-
var import_react$
|
|
7795
|
+
var import_react$19, PopoverPositionerContext;
|
|
7795
7796
|
function init_PopoverPositionerContext() {
|
|
7796
7797
|
return (init_PopoverPositionerContext = __esmMin((() => {
|
|
7797
7798
|
init_formatErrorMessage();
|
|
7798
|
-
import_react$
|
|
7799
|
-
PopoverPositionerContext = /*#__PURE__*/ import_react$
|
|
7799
|
+
import_react$19 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7800
|
+
PopoverPositionerContext = /*#__PURE__*/ import_react$19.createContext(void 0);
|
|
7800
7801
|
})))();
|
|
7801
7802
|
}
|
|
7802
7803
|
//#endregion
|
|
@@ -7826,8 +7827,8 @@ function init_PopoverPositionerContext() {
|
|
|
7826
7827
|
*/
|
|
7827
7828
|
function useTriggerSwitchTransition(parameters) {
|
|
7828
7829
|
const { store, domReference, positionerElement, open } = parameters;
|
|
7829
|
-
const previousTriggerRef = import_react$
|
|
7830
|
-
const pendingSwitchRef = import_react$
|
|
7830
|
+
const previousTriggerRef = import_react$18.useRef(null);
|
|
7831
|
+
const pendingSwitchRef = import_react$18.useRef(null);
|
|
7831
7832
|
const runOnceAnimationsFinish = useAnimationsFinished(positionerElement);
|
|
7832
7833
|
useIsoLayoutEffect(() => {
|
|
7833
7834
|
if (open) return;
|
|
@@ -7856,10 +7857,10 @@ function useTriggerSwitchTransition(parameters) {
|
|
|
7856
7857
|
store
|
|
7857
7858
|
]);
|
|
7858
7859
|
}
|
|
7859
|
-
var import_react$
|
|
7860
|
+
var import_react$18;
|
|
7860
7861
|
function init_useTriggerSwitchTransition() {
|
|
7861
7862
|
return (init_useTriggerSwitchTransition = __esmMin((() => {
|
|
7862
|
-
import_react$
|
|
7863
|
+
import_react$18 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7863
7864
|
init_useIsoLayoutEffect();
|
|
7864
7865
|
init_useAnimationsFinished();
|
|
7865
7866
|
})))();
|
|
@@ -7872,7 +7873,7 @@ function init_useTriggerSwitchTransition() {
|
|
|
7872
7873
|
* viewport-sized.
|
|
7873
7874
|
*/
|
|
7874
7875
|
function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {
|
|
7875
|
-
const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = import_react$
|
|
7876
|
+
const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = import_react$17.useState(false);
|
|
7876
7877
|
useIsoLayoutEffect(() => {
|
|
7877
7878
|
if (!enabled || !touchOpen || positionerElement == null) {
|
|
7878
7879
|
setTouchOpenShouldLockScroll(false);
|
|
@@ -7888,10 +7889,10 @@ function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, refer
|
|
|
7888
7889
|
]);
|
|
7889
7890
|
useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);
|
|
7890
7891
|
}
|
|
7891
|
-
var import_react$
|
|
7892
|
+
var import_react$17, VIEWPORT_WIDTH_TOLERANCE_PX;
|
|
7892
7893
|
function init_useAnchoredPopupScrollLock() {
|
|
7893
7894
|
return (init_useAnchoredPopupScrollLock = __esmMin((() => {
|
|
7894
|
-
import_react$
|
|
7895
|
+
import_react$17 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7895
7896
|
init_useScrollLock();
|
|
7896
7897
|
init_useIsoLayoutEffect();
|
|
7897
7898
|
VIEWPORT_WIDTH_TOLERANCE_PX = 20;
|
|
@@ -7899,10 +7900,10 @@ function init_useAnchoredPopupScrollLock() {
|
|
|
7899
7900
|
}
|
|
7900
7901
|
//#endregion
|
|
7901
7902
|
//#region ../../node_modules/@base-ui/react/popover/positioner/PopoverPositioner.mjs
|
|
7902
|
-
var import_react$
|
|
7903
|
+
var import_react$16, import_jsx_runtime$5, PopoverPositioner;
|
|
7903
7904
|
function init_PopoverPositioner() {
|
|
7904
7905
|
return (init_PopoverPositioner = __esmMin((() => {
|
|
7905
|
-
import_react$
|
|
7906
|
+
import_react$16 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7906
7907
|
init_inertValue();
|
|
7907
7908
|
init_FloatingTree();
|
|
7908
7909
|
init_PopoverRootContext();
|
|
@@ -7916,7 +7917,7 @@ function init_PopoverPositioner() {
|
|
|
7916
7917
|
init_usePositioner();
|
|
7917
7918
|
init_useAnchoredPopupScrollLock();
|
|
7918
7919
|
import_jsx_runtime$5 = require_jsx_runtime();
|
|
7919
|
-
PopoverPositioner = /*#__PURE__*/ import_react$
|
|
7920
|
+
PopoverPositioner = /*#__PURE__*/ import_react$16.forwardRef(function PopoverPositioner(componentProps, forwardedRef) {
|
|
7920
7921
|
const { render, className, style, anchor, positionMethod, side, align, sideOffset, alignOffset, collisionBoundary = "clipping-ancestors", collisionPadding, arrowPadding, sticky, disableAnchorTracking = false, collisionAvoidance = POPUP_COLLISION_AVOIDANCE, ...elementProps } = componentProps;
|
|
7921
7922
|
const store = usePopoverRootContext();
|
|
7922
7923
|
const keepMounted = usePopoverPortalContext();
|
|
@@ -7989,22 +7990,22 @@ function init_PopoverPositioner() {
|
|
|
7989
7990
|
//#endregion
|
|
7990
7991
|
//#region ../../node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs
|
|
7991
7992
|
function useToolbarRootContext(optional) {
|
|
7992
|
-
const context = import_react$
|
|
7993
|
+
const context = import_react$15.useContext(ToolbarRootContext);
|
|
7993
7994
|
if (context === void 0 && !optional) throw new Error(formatErrorMessage(69));
|
|
7994
7995
|
return context;
|
|
7995
7996
|
}
|
|
7996
|
-
var import_react$
|
|
7997
|
+
var import_react$15, ToolbarRootContext;
|
|
7997
7998
|
function init_ToolbarRootContext() {
|
|
7998
7999
|
return (init_ToolbarRootContext = __esmMin((() => {
|
|
7999
8000
|
init_formatErrorMessage();
|
|
8000
|
-
import_react$
|
|
8001
|
-
ToolbarRootContext = /*#__PURE__*/ import_react$
|
|
8001
|
+
import_react$15 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8002
|
+
ToolbarRootContext = /*#__PURE__*/ import_react$15.createContext(void 0);
|
|
8002
8003
|
})))();
|
|
8003
8004
|
}
|
|
8004
8005
|
//#endregion
|
|
8005
8006
|
//#region ../../node_modules/@base-ui/react/utils/closePart.mjs
|
|
8006
8007
|
function useClosePartCount() {
|
|
8007
|
-
const [closePartCount, setClosePartCount] = import_react$
|
|
8008
|
+
const [closePartCount, setClosePartCount] = import_react$14.useState(0);
|
|
8008
8009
|
const register = useStableCallback(() => {
|
|
8009
8010
|
setClosePartCount((count) => count + 1);
|
|
8010
8011
|
return () => {
|
|
@@ -8012,24 +8013,24 @@ function useClosePartCount() {
|
|
|
8012
8013
|
};
|
|
8013
8014
|
});
|
|
8014
8015
|
return {
|
|
8015
|
-
context: import_react$
|
|
8016
|
+
context: import_react$14.useMemo(() => ({ register }), [register]),
|
|
8016
8017
|
hasClosePart: closePartCount > 0
|
|
8017
8018
|
};
|
|
8018
8019
|
}
|
|
8019
|
-
var import_react$
|
|
8020
|
+
var import_react$14, ClosePartContext;
|
|
8020
8021
|
function init_closePart() {
|
|
8021
8022
|
return (init_closePart = __esmMin((() => {
|
|
8022
|
-
import_react$
|
|
8023
|
+
import_react$14 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8023
8024
|
init_useStableCallback();
|
|
8024
|
-
ClosePartContext = /*#__PURE__*/ import_react$
|
|
8025
|
+
ClosePartContext = /*#__PURE__*/ import_react$14.createContext(void 0);
|
|
8025
8026
|
})))();
|
|
8026
8027
|
}
|
|
8027
8028
|
//#endregion
|
|
8028
8029
|
//#region ../../node_modules/@base-ui/react/popover/popup/PopoverPopup.mjs
|
|
8029
|
-
var import_react$
|
|
8030
|
+
var import_react$13, import_jsx_runtime$4, PopoverPopup;
|
|
8030
8031
|
function init_PopoverPopup() {
|
|
8031
8032
|
return (init_PopoverPopup = __esmMin((() => {
|
|
8032
|
-
import_react$
|
|
8033
|
+
import_react$13 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8033
8034
|
init_floating_ui_utils_dom();
|
|
8034
8035
|
init_FloatingFocusManager(), init_useHoverFloatingInteraction();
|
|
8035
8036
|
init_PopoverRootContext();
|
|
@@ -8044,7 +8045,7 @@ function init_PopoverPopup() {
|
|
|
8044
8045
|
init_closePart();
|
|
8045
8046
|
init_popupStoreUtils();
|
|
8046
8047
|
import_jsx_runtime$4 = require_jsx_runtime();
|
|
8047
|
-
PopoverPopup = /*#__PURE__*/ import_react$
|
|
8048
|
+
PopoverPopup = /*#__PURE__*/ import_react$13.forwardRef(function PopoverPopup(componentProps, forwardedRef) {
|
|
8048
8049
|
const { render, className, style, initialFocus, finalFocus, ...elementProps } = componentProps;
|
|
8049
8050
|
const store = usePopoverRootContext();
|
|
8050
8051
|
const positioner = usePopoverPositionerContext();
|
|
@@ -8132,6 +8133,37 @@ function init_PopoverPopup() {
|
|
|
8132
8133
|
})))();
|
|
8133
8134
|
}
|
|
8134
8135
|
//#endregion
|
|
8136
|
+
//#region ../../node_modules/@base-ui/react/popover/arrow/PopoverArrow.mjs
|
|
8137
|
+
var import_react$12, PopoverArrow;
|
|
8138
|
+
function init_PopoverArrow() {
|
|
8139
|
+
return (init_PopoverArrow = __esmMin((() => {
|
|
8140
|
+
import_react$12 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8141
|
+
init_PopoverPositionerContext();
|
|
8142
|
+
init_PopoverRootContext();
|
|
8143
|
+
init_popupStateMapping();
|
|
8144
|
+
init_useRenderElement();
|
|
8145
|
+
PopoverArrow = /*#__PURE__*/ import_react$12.forwardRef(function PopoverArrow(componentProps, forwardedRef) {
|
|
8146
|
+
const { render, className, style, ...elementProps } = componentProps;
|
|
8147
|
+
const open = usePopoverRootContext().useState("open");
|
|
8148
|
+
const { arrowRef, side, align, arrowUncentered, arrowStyles } = usePopoverPositionerContext();
|
|
8149
|
+
return useRenderElement("div", componentProps, {
|
|
8150
|
+
state: {
|
|
8151
|
+
open,
|
|
8152
|
+
side,
|
|
8153
|
+
align,
|
|
8154
|
+
uncentered: arrowUncentered
|
|
8155
|
+
},
|
|
8156
|
+
ref: [forwardedRef, arrowRef],
|
|
8157
|
+
props: [{
|
|
8158
|
+
style: arrowStyles,
|
|
8159
|
+
"aria-hidden": true
|
|
8160
|
+
}, elementProps],
|
|
8161
|
+
stateAttributesMapping: popupStateMapping
|
|
8162
|
+
});
|
|
8163
|
+
});
|
|
8164
|
+
})))();
|
|
8165
|
+
}
|
|
8166
|
+
//#endregion
|
|
8135
8167
|
//#region ../../node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs
|
|
8136
8168
|
function useCompositeListContext() {
|
|
8137
8169
|
return import_react$11.useContext(CompositeListContext);
|
|
@@ -9240,4 +9272,4 @@ function init_TabsList() {
|
|
|
9240
9272
|
})))();
|
|
9241
9273
|
}
|
|
9242
9274
|
//#endregion
|
|
9243
|
-
export {
|
|
9275
|
+
export { init_addEventListener as $, init_TooltipPopup as A, init_fastHooks as B, DialogPortal as C, DialogBackdrop as D, init_DialogPopup as E, TooltipTrigger as F, init_ScrollAreaCorner as G, init_useRender as H, init_TooltipTrigger as I, ScrollAreaContent as J, ScrollAreaThumb as K, TooltipRoot as L, init_TooltipPositioner as M, TooltipPortal as N, init_DialogBackdrop as O, init_TooltipPortal as P, addEventListener as Q, init_TooltipRoot as R, init_DialogRoot as S, DialogPopup as T, useRender as U, register as V, ScrollAreaCorner as W, ScrollAreaScrollbar as X, init_ScrollAreaContent as Y, init_ScrollAreaScrollbar as Z, PopoverTrigger as _, TabsTab as a, ownerDocument as at, init_PopoverRoot as b, init_TabsRoot as c, init_empty as ct, PopoverPopup as d, ScrollAreaViewport as et, init_PopoverPopup as f, init_PopoverPortal as g, PopoverPortal as h, init_TabsPanel as i, init_owner as it, TooltipPositioner as j, TooltipPopup as k, PopoverArrow as l, init_PopoverPositioner as m, init_TabsList as n, ScrollAreaRoot as nt, init_TabsTab as o, EMPTY_ARRAY as ot, PopoverPositioner as p, init_ScrollAreaThumb as q, TabsPanel as r, init_ScrollAreaRoot as rt, TabsRoot as s, NOOP as st, TabsList as t, init_ScrollAreaViewport as tt, init_PopoverArrow as u, init_PopoverTrigger as v, init_DialogPortal as w, DialogRoot as x, PopoverRoot as y, getInstance as z };
|