@aussieljk/forkbook 0.0.1-5 → 0.0.1-7
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/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2YRIFQLC.js} +1 -1
- package/dist/_browser-chunks/WithTooltip-4R5JMWZ7.js +196 -0
- package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-4EFKUJG2.js} +10 -10
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-DAUHYZUB.js} +550 -1621
- package/dist/_browser-chunks/chunk-E47B5255.js +1149 -0
- package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
- package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
- package/dist/_browser-chunks/{chunk-HOSBMS2F.js → chunk-HTL5ODCB.js} +1 -1
- package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
- package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/chunk-WVF42CP2.js +6027 -0
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
- package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-WFZCCGUB.js} +29 -29
- package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-DHKHRZK4.js} +155 -148
- package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-3ZCGT6VF.js} +6 -6
- package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-4HGC3G6B.js} +46 -15
- package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-5PYQ573S.js} +7 -7
- package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-64JPAW3T.js} +6 -6
- package/dist/_node-chunks/chunk-6CB3XSQ2.js +495 -0
- package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-6K3ZE4HN.js} +6 -6
- package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-6QZ3PX5R.js} +6 -6
- package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-7HVDL6M3.js} +29843 -51588
- package/dist/_node-chunks/chunk-7PMQPS5E.js +347 -0
- package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-7V5AOV2J.js} +7 -7
- package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-7VHCAGBJ.js} +8 -8
- package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ATX7SHS7.js} +8 -8
- package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-BQC6WCUS.js} +6 -6
- package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-BR4WDRY6.js} +8 -8
- package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BRHJ4P3A.js} +6 -6
- package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-CBBFNVFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-CDFQORVD.js} +34 -949
- package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-CENNLCU7.js} +6 -6
- package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-CNMMDQC3.js} +27 -50
- package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-DMDZPUHM.js} +6 -6
- package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-DT45EUDD.js} +60 -134
- package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-EAL4RVEF.js} +6 -6
- package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
- package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-ESCZ2NSB.js} +6 -6
- package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-ESZIQTUH.js} +7 -7
- package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-F3SAYS4R.js} +6 -6
- package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-FTUQ7T3V.js} +25 -8
- package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-FVFSSIGA.js} +10 -10
- package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-G2AANC4A.js} +6 -6
- package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-HUMAXGH2.js} +6 -6
- package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-I535GEPH.js} +7 -7
- package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-J3Q56GX3.js} +25 -25
- package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-JDKYP7FW.js} +10 -10
- package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-JED5F3H2.js} +6 -6
- package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-JMS4H7QB.js} +7 -7
- package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-JOSJ64KD.js} +7 -7
- package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-JPHSU5OI.js} +6 -6
- package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JQICISDD.js} +6 -6
- package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-JTLOSDYL.js} +9 -9
- package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-K5RUOW42.js} +7 -7
- package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-KHWCZDIW.js} +650 -9
- package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
- package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-LJTP5PAJ.js} +6 -6
- package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
- package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-M7ZVSBNU.js} +6 -6
- package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-MBIIJTGQ.js} +11 -10
- package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-MF3AT3JQ.js} +6 -6
- package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-MF5BYASO.js} +9 -6
- package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-MJFMB4WD.js} +9 -9
- package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-MRWBN46D.js} +8 -8
- package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-MZQXEAI6.js} +9 -9
- package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-NLPC2DDQ.js} +6 -6
- package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-NQAFLS5U.js} +8 -8
- package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-NSZGBFPR.js} +6 -6
- package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-NUYBFTOU.js} +7 -7
- package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-O7VJA7SM.js} +7 -7
- package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-OGJ7LDX3.js} +7 -7
- package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-OWT6AVWK.js} +8 -8
- package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-P3GOMPP3.js} +7 -7
- package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-PQLXHVWK.js} +6 -6
- package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-Q6QRFKHB.js} +8 -8
- package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-QSP42ZBM.js} +6 -6
- package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-QWDR5OWQ.js} +14 -14
- package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-QWRQXG2V.js} +8 -8
- package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-R6AKCXPH.js} +6 -6
- package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-RCY7TLET.js} +8 -8
- package/dist/_node-chunks/chunk-RKKMQA6N.js +620 -0
- package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-RZ7UEP4N.js} +6 -6
- package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-S3HB4EWT.js} +6 -6
- package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-SHH7JROR.js} +6 -6
- package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-SWHTDOB4.js} +7 -7
- package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-SZYMLCHF.js} +6 -6
- package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-TOGDRW2W.js} +6 -6
- package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-U3E7E4Q2.js} +10 -10
- package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-U6DHF3RM.js} +7 -7
- package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-UAG3XK32.js} +31 -30
- package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-UF6Q6L5C.js} +22 -20
- package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
- package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-UNCBLHIP.js} +8 -8
- package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
- package/dist/_node-chunks/chunk-UVV24PG4.js +69 -0
- package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-WBB4NQ6H.js} +6 -6
- package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-WHOF2BJB.js} +7 -7
- package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-WME5NEJA.js} +6 -6
- package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-X63YMAHP.js} +7 -7
- package/dist/_node-chunks/chunk-Y2GHAOKI.js +25 -0
- package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-Y6G64J5S.js} +7 -15
- package/dist/_node-chunks/chunk-YVIPYJ53.js +2609 -0
- package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-YZWUD7I5.js} +16 -13
- package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-ZIDIYSJQ.js} +7 -7
- package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
- package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
- package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
- package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-UN5QK2SE.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-6M6CMNL3.js} +2263 -130
- package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-253VKW4B.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js} +11 -11
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-CCCJRMSL.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-LJTPLCGD.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-KQI7ULEZ.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-MUE2NI7S.js} +11 -11
- package/dist/_node-chunks/{run-65LLGSVR.js → run-PGZMPNMS.js} +246 -13
- package/dist/_node-chunks/{run-BQQLK454.js → run-SYLR25HA.js} +17 -17
- package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
- package/dist/_node-chunks/{setup-NEO7XX66.js → setup-XZWSUYPG.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-T25YYRGV.js} +7 -7
- package/dist/actions/decorator.js +2 -1
- package/dist/actions/index.js +2 -1
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +6 -5
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +28 -14
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +3 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +3 -2
- package/dist/addon-links/react/index.js +2 -1
- package/dist/addon-mcp/preset.js +8 -8
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +21 -44
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +2 -2
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- package/dist/babel/index.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/bin/core.js +61 -60
- package/dist/bin/dispatcher.js +16 -11
- package/dist/bin/loader.js +16 -15
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
- package/dist/{chunk-Ce6uhJuR.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
- package/dist/{chunk-CZHsX9Zo.d.ts → chunk-CMaYrou5.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-DpljNJTz.d.ts → chunk-LrH1y9J2.d.ts} +39 -0
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +42 -4952
- 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 +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +35 -37
- package/dist/components/index.d.ts +14 -231
- package/dist/components/index.js +2512 -8359
- package/dist/core-events/index.d.ts +3 -2
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +450 -147
- package/dist/core-server/presets/common-manager.js +62 -866
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +39 -40
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +1 -1
- package/dist/csf/index.js +27 -93
- package/dist/csf-tools/index.d.ts +14 -12
- package/dist/csf-tools/index.js +14 -14
- package/dist/instrumenter/index.js +3 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-4fCHtNC6.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-BKPOYSwp.js} +410 -379
- package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-BMIT8BJb.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-BO0pfoqL.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-BZKYJxYC.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-Bpc_ftuT.js} +1252 -539
- package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
- package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-CI-C7ncS.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-CI_p54Ha.js} +59 -60
- package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-CTyYXvUm.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-CoCzM1V_.js} +93 -2146
- package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-CzEhVGVp.js} +141 -54
- package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-D82vqOGq.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-DB8fVA5g.js} +2 -145
- package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DMq1Phbl.js} +153 -141
- package/dist/manager/_manager-chunks/globals-runtime-DOPUchia.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-Dbt08xWQ.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-kmPSyf3j.js} +637 -1730
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
- package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-B4U0u9p4.js} +5 -147
- package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-BM30BmeT.js} +503 -44
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-Cf0p9DUx.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-D-nYLsdk.js} +57 -34
- package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-DvrwKw7z.js} +92 -303
- package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DzxaTqVN.js} +10 -29
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-ecY5qnmo.js} +193 -184
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +22 -28
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +16 -11
- package/dist/nextjs-vite/index.js +3 -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 +93 -14
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +1 -2
- package/dist/nextjs-vite-plugin/index.js +12 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
- package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
- package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
- package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +2 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.js +25 -211
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/withStorybook.js +11 -10
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +3 -1
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +808 -573
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.js +22 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +21 -44
- package/dist/_browser-chunks/WithTooltip-V55S6YCY.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
- package/dist/_node-chunks/chunk-6QQTZT3Z.js +0 -19
- package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
- package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
- package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
- package/dist/_node-chunks/chunk-MCZZMBPA.js +0 -20
- package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
- package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
- package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
- package/dist/_node-chunks/chunk-UW35FCXF.js +0 -20
- package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
- package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
- package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
- package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
- package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
- package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
- package/dist/_node-chunks/chunk-ZZNBVMBU.js +0 -25
- package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
- package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
- package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
- package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
- package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
- package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
- package/dist/_node-chunks/session-id-6Z2RXBTG.js +0 -23
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-Bon7UvQk.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
- package/dist/manager/_manager-chunks/runtime-CuJiHYCp.js +0 -22
- package/dist/manager/_manager-chunks/runtime-DFhLVh8q.js +0 -456
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-BKPOYSwp.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as __toESM, n as __esmMin } from "./globals-runtime-BdGkqNEt.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
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-
|
|
5
|
-
import { C as init_floating_ui_utils_dom, D as isNode, E as isLastTraversableNode, S as getWindow, T as isHTMLElement, _ as getSideAxis, a as shift, b as getNodeName, c as autoUpdate, d as evaluate, f as getAlignment, g as getSide, h as getPaddingObject, i as offset, k as isShadowRoot, l as init_floating_ui_dom, m as getAxisLength, n as init_floating_ui_react_dom, o as size, p as getAlignmentAxis, r as limitShift, s as useFloating, t as flip, u as clamp$1, v as init_floating_ui_utils, w as isElement, x as getParentNode, y as getComputedStyle$1 } from "./globals-runtime-
|
|
2
|
+
import "./globals-runtime-CzEhVGVp.js";
|
|
3
|
+
import { I as require_react_dom, L as require_react, P as require_jsx_runtime, a as import_react$83, o as init_shim_cjs_0 } from "./globals-runtime-Bpc_ftuT.js";
|
|
4
|
+
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-CI-C7ncS.js";
|
|
5
|
+
import { C as init_floating_ui_utils_dom, D as isNode, E as isLastTraversableNode, S as getWindow, T as isHTMLElement, _ as getSideAxis, a as shift, b as getNodeName, c as autoUpdate, d as evaluate, f as getAlignment, g as getSide, h as getPaddingObject, i as offset, k as isShadowRoot, l as init_floating_ui_dom, m as getAxisLength, n as init_floating_ui_react_dom, o as size, p as getAlignmentAxis, r as limitShift, s as useFloating, t as flip, u as clamp$1, v as init_floating_ui_utils, w as isElement, x as getParentNode, y as getComputedStyle$1 } from "./globals-runtime-4fCHtNC6.js";
|
|
6
6
|
//#region ../../node_modules/@base-ui/utils/empty.mjs
|
|
7
7
|
function NOOP() {}
|
|
8
8
|
var EMPTY_ARRAY, EMPTY_OBJECT;
|
|
@@ -37,16 +37,16 @@ function init_formatErrorMessage() {
|
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region ../../node_modules/@base-ui/react/scroll-area/root/ScrollAreaRootContext.mjs
|
|
39
39
|
function useScrollAreaRootContext() {
|
|
40
|
-
const context = import_react$
|
|
40
|
+
const context = import_react$82.useContext(ScrollAreaRootContext);
|
|
41
41
|
if (context === void 0) throw new Error(formatErrorMessage(53));
|
|
42
42
|
return context;
|
|
43
43
|
}
|
|
44
|
-
var import_react$
|
|
44
|
+
var import_react$82, ScrollAreaRootContext;
|
|
45
45
|
function init_ScrollAreaRootContext() {
|
|
46
46
|
return (init_ScrollAreaRootContext = __esmMin((() => {
|
|
47
47
|
init_formatErrorMessage();
|
|
48
|
-
import_react$
|
|
49
|
-
ScrollAreaRootContext = /*#__PURE__*/ import_react$
|
|
48
|
+
import_react$82 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
49
|
+
ScrollAreaRootContext = /*#__PURE__*/ import_react$82.createContext(void 0);
|
|
50
50
|
})))();
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
@@ -55,15 +55,15 @@ function init_ScrollAreaRootContext() {
|
|
|
55
55
|
* Extracts the `ref` from a React element, handling different React versions.
|
|
56
56
|
*/
|
|
57
57
|
function getReactElementRef(element) {
|
|
58
|
-
if (!/*#__PURE__*/ import_react$
|
|
58
|
+
if (!/*#__PURE__*/ import_react$81.isValidElement(element)) return null;
|
|
59
59
|
const reactElement = element;
|
|
60
60
|
const propsWithRef = reactElement.props;
|
|
61
61
|
return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;
|
|
62
62
|
}
|
|
63
|
-
var import_react$
|
|
63
|
+
var import_react$81;
|
|
64
64
|
function init_getReactElementRef() {
|
|
65
65
|
return (init_getReactElementRef = __esmMin((() => {
|
|
66
|
-
import_react$
|
|
66
|
+
import_react$81 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
67
67
|
init_reactVersion();
|
|
68
68
|
})))();
|
|
69
69
|
}
|
|
@@ -317,40 +317,40 @@ function resolveRenderFunctionProps(props) {
|
|
|
317
317
|
}
|
|
318
318
|
function unwrapLazyRenderProp(render) {
|
|
319
319
|
if (render?.$$typeof !== REACT_LAZY_TYPE) return render;
|
|
320
|
-
const unwrapped = import_react$
|
|
321
|
-
return /*#__PURE__*/ import_react$
|
|
320
|
+
const unwrapped = import_react$79.Children.toArray(render)[0];
|
|
321
|
+
return /*#__PURE__*/ import_react$79.isValidElement(unwrapped) ? unwrapped : render;
|
|
322
322
|
}
|
|
323
323
|
function evaluateRenderProp(element, render, props, state) {
|
|
324
324
|
if (render) {
|
|
325
325
|
if (typeof render === "function") return render(props, state);
|
|
326
326
|
const mergedProps = mergeProps(props, render.props);
|
|
327
327
|
mergedProps.ref = props.ref;
|
|
328
|
-
return /*#__PURE__*/ import_react$
|
|
328
|
+
return /*#__PURE__*/ import_react$79.cloneElement(render, mergedProps);
|
|
329
329
|
}
|
|
330
330
|
return renderTag(element, props);
|
|
331
331
|
}
|
|
332
332
|
function renderTag(Tag, props) {
|
|
333
|
-
if (Tag === "button") return /*#__PURE__*/ (0, import_react$
|
|
333
|
+
if (Tag === "button") return /*#__PURE__*/ (0, import_react$80.createElement)("button", {
|
|
334
334
|
type: "button",
|
|
335
335
|
...props,
|
|
336
336
|
key: props.key
|
|
337
337
|
});
|
|
338
|
-
if (Tag === "img") return /*#__PURE__*/ (0, import_react$
|
|
338
|
+
if (Tag === "img") return /*#__PURE__*/ (0, import_react$80.createElement)("img", {
|
|
339
339
|
alt: "",
|
|
340
340
|
...props,
|
|
341
341
|
key: props.key
|
|
342
342
|
});
|
|
343
|
-
return /*#__PURE__*/ import_react$
|
|
343
|
+
return /*#__PURE__*/ import_react$79.createElement(Tag, props);
|
|
344
344
|
}
|
|
345
|
-
var import_react$
|
|
345
|
+
var import_react$79, import_react$80, REACT_LAZY_TYPE;
|
|
346
346
|
function init_useRenderElement() {
|
|
347
347
|
return (init_useRenderElement = __esmMin((() => {
|
|
348
|
-
import_react$
|
|
348
|
+
import_react$79 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
349
349
|
init_useMergedRefs();
|
|
350
350
|
init_getReactElementRef();
|
|
351
351
|
init_empty();
|
|
352
352
|
init_mergeProps();
|
|
353
|
-
import_react$
|
|
353
|
+
import_react$80 = require_react();
|
|
354
354
|
REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
355
355
|
})))();
|
|
356
356
|
}
|
|
@@ -833,13 +833,13 @@ function init_tabbable() {
|
|
|
833
833
|
//#endregion
|
|
834
834
|
//#region ../../node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs
|
|
835
835
|
function useCSPContext() {
|
|
836
|
-
return import_react$
|
|
836
|
+
return import_react$78.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;
|
|
837
837
|
}
|
|
838
|
-
var import_react$
|
|
838
|
+
var import_react$78, CSPContext, DEFAULT_CSP_CONTEXT_VALUE;
|
|
839
839
|
function init_CSPContext() {
|
|
840
840
|
return (init_CSPContext = __esmMin((() => {
|
|
841
|
-
import_react$
|
|
842
|
-
CSPContext = /*#__PURE__*/ import_react$
|
|
841
|
+
import_react$78 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
842
|
+
CSPContext = /*#__PURE__*/ import_react$78.createContext(void 0);
|
|
843
843
|
DEFAULT_CSP_CONTEXT_VALUE = { disableStyleElements: false };
|
|
844
844
|
})))();
|
|
845
845
|
}
|
|
@@ -876,10 +876,10 @@ function normalizeOverflowEdgeThreshold(threshold) {
|
|
|
876
876
|
yEnd: Math.max(0, thresholds?.yEnd || 0)
|
|
877
877
|
};
|
|
878
878
|
}
|
|
879
|
-
var import_react$
|
|
879
|
+
var import_react$77, import_jsx_runtime$24, DEFAULT_COORDS, DEFAULT_SIZE, DEFAULT_OVERFLOW_EDGES, DEFAULT_HIDDEN_STATE, ScrollAreaRoot;
|
|
880
880
|
function init_ScrollAreaRoot() {
|
|
881
881
|
return (init_ScrollAreaRoot = __esmMin((() => {
|
|
882
|
-
import_react$
|
|
882
|
+
import_react$77 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
883
883
|
init_useStableCallback();
|
|
884
884
|
init_useTimeout();
|
|
885
885
|
init_ScrollAreaRootContext();
|
|
@@ -911,37 +911,37 @@ function init_ScrollAreaRoot() {
|
|
|
911
911
|
y: true,
|
|
912
912
|
corner: true
|
|
913
913
|
};
|
|
914
|
-
ScrollAreaRoot = /*#__PURE__*/ import_react$
|
|
914
|
+
ScrollAreaRoot = /*#__PURE__*/ import_react$77.forwardRef(function ScrollAreaRoot(componentProps, forwardedRef) {
|
|
915
915
|
const { render, className, overflowEdgeThreshold: overflowEdgeThresholdProp, style, ...elementProps } = componentProps;
|
|
916
916
|
const { xStart, xEnd, yStart, yEnd } = normalizeOverflowEdgeThreshold(overflowEdgeThresholdProp);
|
|
917
917
|
const rootId = useBaseUiId();
|
|
918
918
|
const scrollYTimeout = useTimeout();
|
|
919
919
|
const scrollXTimeout = useTimeout();
|
|
920
920
|
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$
|
|
921
|
+
const [hovering, setHovering] = import_react$77.useState(false);
|
|
922
|
+
const [scrollingX, setScrollingX] = import_react$77.useState(false);
|
|
923
|
+
const [scrollingY, setScrollingY] = import_react$77.useState(false);
|
|
924
|
+
const [touchModality, setTouchModality] = import_react$77.useState(false);
|
|
925
|
+
const [hasMeasuredScrollbar, setHasMeasuredScrollbar] = import_react$77.useState(false);
|
|
926
|
+
const [cornerSize, setCornerSize] = import_react$77.useState(DEFAULT_SIZE);
|
|
927
|
+
const [thumbSize, setThumbSize] = import_react$77.useState(DEFAULT_SIZE);
|
|
928
|
+
const [overflowEdges, setOverflowEdges] = import_react$77.useState(DEFAULT_OVERFLOW_EDGES);
|
|
929
|
+
const [hiddenState, setHiddenState] = import_react$77.useState(DEFAULT_HIDDEN_STATE);
|
|
930
|
+
const rootRef = import_react$77.useRef(null);
|
|
931
|
+
const viewportRef = import_react$77.useRef(null);
|
|
932
|
+
const scrollbarYRef = import_react$77.useRef(null);
|
|
933
|
+
const scrollbarXRef = import_react$77.useRef(null);
|
|
934
|
+
const thumbYRef = import_react$77.useRef(null);
|
|
935
|
+
const thumbXRef = import_react$77.useRef(null);
|
|
936
|
+
const cornerRef = import_react$77.useRef(null);
|
|
937
|
+
const activePointerIdRef = import_react$77.useRef(null);
|
|
938
|
+
const startYRef = import_react$77.useRef(0);
|
|
939
|
+
const startXRef = import_react$77.useRef(0);
|
|
940
|
+
const startScrollTopRef = import_react$77.useRef(0);
|
|
941
|
+
const startScrollLeftRef = import_react$77.useRef(0);
|
|
942
|
+
const currentOrientationRef = import_react$77.useRef("vertical");
|
|
943
|
+
const scrollPositionRef = import_react$77.useRef(DEFAULT_COORDS);
|
|
944
|
+
const savedSnapTypeRef = import_react$77.useRef(null);
|
|
945
945
|
function startScrolling(vertical) {
|
|
946
946
|
const setScrolling = vertical ? setScrollingY : setScrollingX;
|
|
947
947
|
const timeout = vertical ? scrollYTimeout : scrollXTimeout;
|
|
@@ -1029,7 +1029,7 @@ function init_ScrollAreaRoot() {
|
|
|
1029
1029
|
setHovering(isTargetRootChild);
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
const state = import_react$
|
|
1032
|
+
const state = import_react$77.useMemo(() => ({
|
|
1033
1033
|
scrolling: scrollingX || scrollingY,
|
|
1034
1034
|
hasOverflowX: !hiddenState.x,
|
|
1035
1035
|
hasOverflowY: !hiddenState.y,
|
|
@@ -1066,7 +1066,7 @@ function init_ScrollAreaRoot() {
|
|
|
1066
1066
|
props: [props, elementProps],
|
|
1067
1067
|
stateAttributesMapping: scrollAreaStateAttributesMapping
|
|
1068
1068
|
});
|
|
1069
|
-
const contextValue = import_react$
|
|
1069
|
+
const contextValue = import_react$77.useMemo(() => ({
|
|
1070
1070
|
handlePointerDown,
|
|
1071
1071
|
handlePointerMove,
|
|
1072
1072
|
handlePointerUp,
|
|
@@ -1138,28 +1138,28 @@ function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER
|
|
|
1138
1138
|
//#endregion
|
|
1139
1139
|
//#region ../../node_modules/@base-ui/react/scroll-area/viewport/ScrollAreaViewportContext.mjs
|
|
1140
1140
|
function useScrollAreaViewportContext() {
|
|
1141
|
-
const context = import_react$
|
|
1141
|
+
const context = import_react$76.useContext(ScrollAreaViewportContext);
|
|
1142
1142
|
if (context === void 0) throw new Error(formatErrorMessage(55));
|
|
1143
1143
|
return context;
|
|
1144
1144
|
}
|
|
1145
|
-
var import_react$
|
|
1145
|
+
var import_react$76, ScrollAreaViewportContext;
|
|
1146
1146
|
function init_ScrollAreaViewportContext() {
|
|
1147
1147
|
return (init_ScrollAreaViewportContext = __esmMin((() => {
|
|
1148
1148
|
init_formatErrorMessage();
|
|
1149
|
-
import_react$
|
|
1150
|
-
ScrollAreaViewportContext = /*#__PURE__*/ import_react$
|
|
1149
|
+
import_react$76 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1150
|
+
ScrollAreaViewportContext = /*#__PURE__*/ import_react$76.createContext(void 0);
|
|
1151
1151
|
})))();
|
|
1152
1152
|
}
|
|
1153
1153
|
//#endregion
|
|
1154
1154
|
//#region ../../node_modules/@base-ui/react/internals/direction-context/DirectionContext.mjs
|
|
1155
1155
|
function useDirection() {
|
|
1156
|
-
return import_react$
|
|
1156
|
+
return import_react$75.useContext(DirectionContext)?.direction ?? "ltr";
|
|
1157
1157
|
}
|
|
1158
|
-
var import_react$
|
|
1158
|
+
var import_react$75, DirectionContext;
|
|
1159
1159
|
function init_DirectionContext() {
|
|
1160
1160
|
return (init_DirectionContext = __esmMin((() => {
|
|
1161
|
-
import_react$
|
|
1162
|
-
DirectionContext = /*#__PURE__*/ import_react$
|
|
1161
|
+
import_react$75 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1162
|
+
DirectionContext = /*#__PURE__*/ import_react$75.createContext(void 0);
|
|
1163
1163
|
})))();
|
|
1164
1164
|
}
|
|
1165
1165
|
//#endregion
|
|
@@ -1263,10 +1263,10 @@ function applyOverscrollThumb(thumbEl, sizeVar, scrollFromStart, maxScroll, cont
|
|
|
1263
1263
|
thumbEl.style.setProperty(sizeVar, overscroll ? `${nextSize}px` : "");
|
|
1264
1264
|
return (maxScroll ? clamped / maxScroll * maxThumbOffset : 0) + (overscroll > 0 ? size - nextSize : 0);
|
|
1265
1265
|
}
|
|
1266
|
-
var import_react$
|
|
1266
|
+
var import_react$74, import_jsx_runtime$23, OVERFLOW_EDGE_VARS, scrollAreaOverflowVarsRegistered, ScrollAreaViewport;
|
|
1267
1267
|
function init_ScrollAreaViewport() {
|
|
1268
1268
|
return (init_ScrollAreaViewport = __esmMin((() => {
|
|
1269
|
-
import_react$
|
|
1269
|
+
import_react$74 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1270
1270
|
init_useStableCallback();
|
|
1271
1271
|
init_useIsoLayoutEffect();
|
|
1272
1272
|
init_engine();
|
|
@@ -1289,12 +1289,12 @@ function init_ScrollAreaViewport() {
|
|
|
1289
1289
|
scrollAreaOverflowYEnd
|
|
1290
1290
|
];
|
|
1291
1291
|
scrollAreaOverflowVarsRegistered = false;
|
|
1292
|
-
ScrollAreaViewport = /*#__PURE__*/ import_react$
|
|
1292
|
+
ScrollAreaViewport = /*#__PURE__*/ import_react$74.forwardRef(function ScrollAreaViewport(componentProps, forwardedRef) {
|
|
1293
1293
|
const { render, className, style, ...elementProps } = componentProps;
|
|
1294
1294
|
const { viewportRef, scrollbarYRef, scrollbarXRef, thumbYRef, thumbXRef, cornerRef, cornerSize, setCornerSize, setThumbSize, rootId, setHiddenState, hiddenState, setHasMeasuredScrollbar, handleScroll, touchModality, setHovering, setOverflowEdges, overflowEdgeThreshold, viewportState } = useScrollAreaRootContext();
|
|
1295
1295
|
const direction = useDirection();
|
|
1296
|
-
const programmaticScrollRef = import_react$
|
|
1297
|
-
const lastMeasuredViewportMetricsRef = import_react$
|
|
1296
|
+
const programmaticScrollRef = import_react$74.useRef(true);
|
|
1297
|
+
const lastMeasuredViewportMetricsRef = import_react$74.useRef([
|
|
1298
1298
|
NaN,
|
|
1299
1299
|
NaN,
|
|
1300
1300
|
NaN,
|
|
@@ -1471,7 +1471,7 @@ function init_ScrollAreaViewport() {
|
|
|
1471
1471
|
props: [props, elementProps],
|
|
1472
1472
|
stateAttributesMapping: scrollAreaStateAttributesMapping
|
|
1473
1473
|
});
|
|
1474
|
-
const contextValue = import_react$
|
|
1474
|
+
const contextValue = import_react$74.useMemo(() => ({ computeThumbPosition }), [computeThumbPosition]);
|
|
1475
1475
|
return /*#__PURE__*/ (0, import_jsx_runtime$23.jsx)(ScrollAreaViewportContext.Provider, {
|
|
1476
1476
|
value: contextValue,
|
|
1477
1477
|
children: element
|
|
@@ -1496,24 +1496,24 @@ function init_addEventListener() {
|
|
|
1496
1496
|
//#endregion
|
|
1497
1497
|
//#region ../../node_modules/@base-ui/react/scroll-area/scrollbar/ScrollAreaScrollbarContext.mjs
|
|
1498
1498
|
function useScrollAreaScrollbarContext() {
|
|
1499
|
-
const context = import_react$
|
|
1499
|
+
const context = import_react$73.useContext(ScrollAreaScrollbarContext);
|
|
1500
1500
|
if (context === void 0) throw new Error(formatErrorMessage(54));
|
|
1501
1501
|
return context;
|
|
1502
1502
|
}
|
|
1503
|
-
var import_react$
|
|
1503
|
+
var import_react$73, ScrollAreaScrollbarContext;
|
|
1504
1504
|
function init_ScrollAreaScrollbarContext() {
|
|
1505
1505
|
return (init_ScrollAreaScrollbarContext = __esmMin((() => {
|
|
1506
1506
|
init_formatErrorMessage();
|
|
1507
|
-
import_react$
|
|
1508
|
-
ScrollAreaScrollbarContext = /*#__PURE__*/ import_react$
|
|
1507
|
+
import_react$73 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1508
|
+
ScrollAreaScrollbarContext = /*#__PURE__*/ import_react$73.createContext(void 0);
|
|
1509
1509
|
})))();
|
|
1510
1510
|
}
|
|
1511
1511
|
//#endregion
|
|
1512
1512
|
//#region ../../node_modules/@base-ui/react/scroll-area/scrollbar/ScrollAreaScrollbar.mjs
|
|
1513
|
-
var import_react$
|
|
1513
|
+
var import_react$72, import_jsx_runtime$22, ScrollAreaScrollbar;
|
|
1514
1514
|
function init_ScrollAreaScrollbar() {
|
|
1515
1515
|
return (init_ScrollAreaScrollbar = __esmMin((() => {
|
|
1516
|
-
import_react$
|
|
1516
|
+
import_react$72 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1517
1517
|
init_shadowDom();
|
|
1518
1518
|
init_ScrollAreaRootContext();
|
|
1519
1519
|
init_ScrollAreaScrollbarContext();
|
|
@@ -1523,7 +1523,7 @@ function init_ScrollAreaScrollbar() {
|
|
|
1523
1523
|
init_ScrollAreaRootCssVars();
|
|
1524
1524
|
init_ScrollAreaScrollbarCssVars();
|
|
1525
1525
|
import_jsx_runtime$22 = require_jsx_runtime();
|
|
1526
|
-
ScrollAreaScrollbar = /*#__PURE__*/ import_react$
|
|
1526
|
+
ScrollAreaScrollbar = /*#__PURE__*/ import_react$72.forwardRef(function ScrollAreaScrollbar(componentProps, forwardedRef) {
|
|
1527
1527
|
const { render, className, orientation = "vertical", keepMounted = false, style, ...elementProps } = componentProps;
|
|
1528
1528
|
const { hovering, scrollingX, scrollingY, hiddenState, scrollbarYRef, scrollbarXRef, viewportRef, thumbYRef, thumbXRef, handlePointerDown, handlePointerUp, handleScroll, disableViewportSnap, rootId, thumbSize, hasMeasuredScrollbar, viewportState } = useScrollAreaRootContext();
|
|
1529
1529
|
const vertical = orientation === "vertical";
|
|
@@ -1537,7 +1537,7 @@ function init_ScrollAreaScrollbar() {
|
|
|
1537
1537
|
const hideTrackUntilMeasured = !hasMeasuredScrollbar && !keepMounted;
|
|
1538
1538
|
const isHidden = vertical ? hiddenState.y : hiddenState.x;
|
|
1539
1539
|
const shouldRender = keepMounted || !isHidden;
|
|
1540
|
-
import_react$
|
|
1540
|
+
import_react$72.useEffect(() => {
|
|
1541
1541
|
if (!shouldRender) return;
|
|
1542
1542
|
const viewportEl = viewportRef.current;
|
|
1543
1543
|
const scrollbarEl = vertical ? scrollbarYRef.current : scrollbarXRef.current;
|
|
@@ -1644,21 +1644,21 @@ function init_ScrollAreaScrollbar() {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
//#endregion
|
|
1646
1646
|
//#region ../../node_modules/@base-ui/react/scroll-area/content/ScrollAreaContent.mjs
|
|
1647
|
-
var import_react$
|
|
1647
|
+
var import_react$71, ScrollAreaContent;
|
|
1648
1648
|
function init_ScrollAreaContent() {
|
|
1649
1649
|
return (init_ScrollAreaContent = __esmMin((() => {
|
|
1650
|
-
import_react$
|
|
1650
|
+
import_react$71 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1651
1651
|
init_useIsoLayoutEffect();
|
|
1652
1652
|
init_ScrollAreaViewportContext();
|
|
1653
1653
|
init_useRenderElement();
|
|
1654
1654
|
init_ScrollAreaRootContext();
|
|
1655
1655
|
init_stateAttributes();
|
|
1656
|
-
ScrollAreaContent = /*#__PURE__*/ import_react$
|
|
1656
|
+
ScrollAreaContent = /*#__PURE__*/ import_react$71.forwardRef(function ScrollAreaContent(componentProps, forwardedRef) {
|
|
1657
1657
|
const { render, className, style, ...elementProps } = componentProps;
|
|
1658
1658
|
const { computeThumbPosition } = useScrollAreaViewportContext();
|
|
1659
1659
|
const { hasMeasuredScrollbar, viewportState } = useScrollAreaRootContext();
|
|
1660
|
-
const contentWrapperRef = import_react$
|
|
1661
|
-
const computeOnInitialResizeRef = import_react$
|
|
1660
|
+
const contentWrapperRef = import_react$71.useRef(null);
|
|
1661
|
+
const computeOnInitialResizeRef = import_react$71.useRef(hasMeasuredScrollbar);
|
|
1662
1662
|
useIsoLayoutEffect(() => {
|
|
1663
1663
|
if (typeof ResizeObserver === "undefined") return;
|
|
1664
1664
|
let hasInitialized = false;
|
|
@@ -1688,14 +1688,14 @@ function init_ScrollAreaContent() {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
//#endregion
|
|
1690
1690
|
//#region ../../node_modules/@base-ui/react/scroll-area/thumb/ScrollAreaThumb.mjs
|
|
1691
|
-
var import_react$
|
|
1691
|
+
var import_react$70, ScrollAreaThumb;
|
|
1692
1692
|
function init_ScrollAreaThumb() {
|
|
1693
1693
|
return (init_ScrollAreaThumb = __esmMin((() => {
|
|
1694
|
-
import_react$
|
|
1694
|
+
import_react$70 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1695
1695
|
init_ScrollAreaRootContext();
|
|
1696
1696
|
init_ScrollAreaScrollbarContext();
|
|
1697
1697
|
init_useRenderElement();
|
|
1698
|
-
ScrollAreaThumb = /*#__PURE__*/ import_react$
|
|
1698
|
+
ScrollAreaThumb = /*#__PURE__*/ import_react$70.forwardRef(function ScrollAreaThumb(componentProps, forwardedRef) {
|
|
1699
1699
|
const { render, className, style, ...elementProps } = componentProps;
|
|
1700
1700
|
const { thumbYRef, thumbXRef, handlePointerDown, handlePointerMove, handlePointerUp, scrollingX, scrollingY, hasMeasuredScrollbar } = useScrollAreaRootContext();
|
|
1701
1701
|
const orientation = useScrollAreaScrollbarContext();
|
|
@@ -1722,13 +1722,13 @@ function init_ScrollAreaThumb() {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
//#endregion
|
|
1724
1724
|
//#region ../../node_modules/@base-ui/react/scroll-area/corner/ScrollAreaCorner.mjs
|
|
1725
|
-
var import_react$
|
|
1725
|
+
var import_react$69, ScrollAreaCorner;
|
|
1726
1726
|
function init_ScrollAreaCorner() {
|
|
1727
1727
|
return (init_ScrollAreaCorner = __esmMin((() => {
|
|
1728
|
-
import_react$
|
|
1728
|
+
import_react$69 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1729
1729
|
init_ScrollAreaRootContext();
|
|
1730
1730
|
init_useRenderElement();
|
|
1731
|
-
ScrollAreaCorner = /*#__PURE__*/ import_react$
|
|
1731
|
+
ScrollAreaCorner = /*#__PURE__*/ import_react$69.forwardRef(function ScrollAreaCorner(componentProps, forwardedRef) {
|
|
1732
1732
|
const { render, className, style, ...elementProps } = componentProps;
|
|
1733
1733
|
const { cornerRef, cornerSize, hiddenState } = useScrollAreaRootContext();
|
|
1734
1734
|
const element = useRenderElement("div", componentProps, {
|
|
@@ -1849,15 +1849,15 @@ function fastComponent(fn) {
|
|
|
1849
1849
|
* ```
|
|
1850
1850
|
*/
|
|
1851
1851
|
function fastComponentRef(fn) {
|
|
1852
|
-
return /*#__PURE__*/ import_react$
|
|
1852
|
+
return /*#__PURE__*/ import_react$68.forwardRef(fastComponent(fn));
|
|
1853
1853
|
}
|
|
1854
1854
|
function createInstance() {
|
|
1855
1855
|
return { didInitialize: false };
|
|
1856
1856
|
}
|
|
1857
|
-
var import_react$
|
|
1857
|
+
var import_react$68, hooks, currentInstance;
|
|
1858
1858
|
function init_fastHooks() {
|
|
1859
1859
|
return (init_fastHooks = __esmMin((() => {
|
|
1860
|
-
import_react$
|
|
1860
|
+
import_react$68 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1861
1861
|
init_useRefWithInit();
|
|
1862
1862
|
hooks = [];
|
|
1863
1863
|
currentInstance = void 0;
|
|
@@ -1866,16 +1866,16 @@ function init_fastHooks() {
|
|
|
1866
1866
|
//#endregion
|
|
1867
1867
|
//#region ../../node_modules/@base-ui/react/tooltip/root/TooltipRootContext.mjs
|
|
1868
1868
|
function useTooltipRootContext(optional) {
|
|
1869
|
-
const context = import_react$
|
|
1869
|
+
const context = import_react$67.useContext(TooltipRootContext);
|
|
1870
1870
|
if (context === void 0 && !optional) throw new Error(formatErrorMessage(72));
|
|
1871
1871
|
return context;
|
|
1872
1872
|
}
|
|
1873
|
-
var import_react$
|
|
1873
|
+
var import_react$67, TooltipRootContext;
|
|
1874
1874
|
function init_TooltipRootContext() {
|
|
1875
1875
|
return (init_TooltipRootContext = __esmMin((() => {
|
|
1876
1876
|
init_formatErrorMessage();
|
|
1877
|
-
import_react$
|
|
1878
|
-
TooltipRootContext = /*#__PURE__*/ import_react$
|
|
1877
|
+
import_react$67 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1878
|
+
TooltipRootContext = /*#__PURE__*/ import_react$67.createContext(void 0);
|
|
1879
1879
|
})))();
|
|
1880
1880
|
}
|
|
1881
1881
|
//#endregion
|
|
@@ -1982,9 +1982,9 @@ function resetDelayRef(delayRef, initialDelayRef) {
|
|
|
1982
1982
|
function useDelayGroup(store, options = { open: false }) {
|
|
1983
1983
|
const { open } = options;
|
|
1984
1984
|
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$
|
|
1985
|
+
const { currentIdRef, delayRef, timeoutMs, initialDelayRef, currentContextRef, hasProvider, timeout } = import_react$66.useContext(FloatingDelayGroupContext);
|
|
1986
|
+
const [isInstantPhase, setIsInstantPhase] = import_react$66.useState(false);
|
|
1987
|
+
const openRef = import_react$66.useRef(open);
|
|
1988
1988
|
useIsoLayoutEffect(() => {
|
|
1989
1989
|
openRef.current = open;
|
|
1990
1990
|
}, [open]);
|
|
@@ -2072,7 +2072,7 @@ function useDelayGroup(store, options = { open: false }) {
|
|
|
2072
2072
|
initialDelayRef,
|
|
2073
2073
|
timeout
|
|
2074
2074
|
]);
|
|
2075
|
-
return import_react$
|
|
2075
|
+
return import_react$66.useMemo(() => ({
|
|
2076
2076
|
activeIdRef: currentIdRef,
|
|
2077
2077
|
hasProvider,
|
|
2078
2078
|
delayRef,
|
|
@@ -2084,17 +2084,17 @@ function useDelayGroup(store, options = { open: false }) {
|
|
|
2084
2084
|
isInstantPhase
|
|
2085
2085
|
]);
|
|
2086
2086
|
}
|
|
2087
|
-
var import_react$
|
|
2087
|
+
var import_react$66, FloatingDelayGroupContext;
|
|
2088
2088
|
function init_FloatingDelayGroup() {
|
|
2089
2089
|
return (init_FloatingDelayGroup = __esmMin((() => {
|
|
2090
|
-
import_react$
|
|
2090
|
+
import_react$66 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
2091
2091
|
init_useTimeout();
|
|
2092
2092
|
init_useIsoLayoutEffect();
|
|
2093
2093
|
init_useHoverShared();
|
|
2094
2094
|
init_createBaseUIEventDetails();
|
|
2095
2095
|
init_reason_parts();
|
|
2096
2096
|
require_jsx_runtime();
|
|
2097
|
-
FloatingDelayGroupContext = /*#__PURE__*/ import_react$
|
|
2097
|
+
FloatingDelayGroupContext = /*#__PURE__*/ import_react$66.createContext({
|
|
2098
2098
|
hasProvider: false,
|
|
2099
2099
|
timeoutMs: 0,
|
|
2100
2100
|
delayRef: { current: 0 },
|
|
@@ -2120,16 +2120,16 @@ function mergeCleanups(...cleanups) {
|
|
|
2120
2120
|
}
|
|
2121
2121
|
//#endregion
|
|
2122
2122
|
//#region ../../node_modules/@base-ui/react/utils/FocusGuard.mjs
|
|
2123
|
-
var import_react$
|
|
2123
|
+
var import_react$65, import_jsx_runtime$20, FocusGuard;
|
|
2124
2124
|
function init_FocusGuard() {
|
|
2125
2125
|
return (init_FocusGuard = __esmMin((() => {
|
|
2126
|
-
import_react$
|
|
2126
|
+
import_react$65 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
2127
2127
|
init_useIsoLayoutEffect();
|
|
2128
2128
|
init_screen_reader(), init_engine();
|
|
2129
2129
|
init_visuallyHidden();
|
|
2130
2130
|
import_jsx_runtime$20 = require_jsx_runtime();
|
|
2131
|
-
FocusGuard = /*#__PURE__*/ import_react$
|
|
2132
|
-
const [role, setRole] = import_react$
|
|
2131
|
+
FocusGuard = /*#__PURE__*/ import_react$65.forwardRef(function FocusGuard(props, ref) {
|
|
2132
|
+
const [role, setRole] = import_react$65.useState();
|
|
2133
2133
|
useIsoLayoutEffect(() => {
|
|
2134
2134
|
if (voiceOver && webkit) setRole("button");
|
|
2135
2135
|
}, []);
|
|
@@ -2303,12 +2303,12 @@ function useFloatingPortalNode(props = {}) {
|
|
|
2303
2303
|
const { ref, container: containerProp, componentProps = EMPTY_OBJECT, elementProps } = props;
|
|
2304
2304
|
const uniqueId = useId();
|
|
2305
2305
|
const parentPortalNode = usePortalContext()?.portalNode;
|
|
2306
|
-
const [containerElement, setContainerElement] = import_react$
|
|
2307
|
-
const [portalNode, setPortalNode] = import_react$
|
|
2306
|
+
const [containerElement, setContainerElement] = import_react$64.useState(null);
|
|
2307
|
+
const [portalNode, setPortalNode] = import_react$64.useState(null);
|
|
2308
2308
|
const setPortalNodeRef = useStableCallback((node) => {
|
|
2309
2309
|
if (node !== null) setPortalNode(node);
|
|
2310
2310
|
});
|
|
2311
|
-
const containerRef = import_react$
|
|
2311
|
+
const containerRef = import_react$64.useRef(null);
|
|
2312
2312
|
useIsoLayoutEffect(() => {
|
|
2313
2313
|
if (containerProp === null) {
|
|
2314
2314
|
if (containerRef.current) {
|
|
@@ -2343,14 +2343,14 @@ function useFloatingPortalNode(props = {}) {
|
|
|
2343
2343
|
const portalSubtree = containerElement && portalElement ? /*#__PURE__*/ import_react_dom$6.createPortal(portalElement, containerElement) : null;
|
|
2344
2344
|
return {
|
|
2345
2345
|
node: portalNode,
|
|
2346
|
-
nodeId: /*#__PURE__*/ import_react$
|
|
2346
|
+
nodeId: /*#__PURE__*/ import_react$64.isValidElement(portalElement) ? portalElement.props.id : void 0,
|
|
2347
2347
|
subtree: portalSubtree
|
|
2348
2348
|
};
|
|
2349
2349
|
}
|
|
2350
|
-
var import_react$
|
|
2350
|
+
var import_react$64, import_react_dom$6, import_jsx_runtime$19, PortalContext, usePortalContext, attr, FloatingPortal;
|
|
2351
2351
|
function init_FloatingPortal() {
|
|
2352
2352
|
return (init_FloatingPortal = __esmMin((() => {
|
|
2353
|
-
import_react$
|
|
2353
|
+
import_react$64 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
2354
2354
|
import_react_dom$6 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
2355
2355
|
init_floating_ui_utils_dom();
|
|
2356
2356
|
init_useId();
|
|
@@ -2364,10 +2364,10 @@ function init_FloatingPortal() {
|
|
|
2364
2364
|
init_useRenderElement();
|
|
2365
2365
|
init_constants$1();
|
|
2366
2366
|
import_jsx_runtime$19 = require_jsx_runtime();
|
|
2367
|
-
PortalContext = /*#__PURE__*/ import_react$
|
|
2368
|
-
usePortalContext = () => import_react$
|
|
2367
|
+
PortalContext = /*#__PURE__*/ import_react$64.createContext(null);
|
|
2368
|
+
usePortalContext = () => import_react$64.useContext(PortalContext);
|
|
2369
2369
|
attr = createAttribute("portal");
|
|
2370
|
-
FloatingPortal = /*#__PURE__*/ import_react$
|
|
2370
|
+
FloatingPortal = /*#__PURE__*/ import_react$64.forwardRef(function FloatingPortal(componentProps, forwardedRef) {
|
|
2371
2371
|
const { render, className, style, children, container, portalOwnerRole, ...elementProps } = componentProps;
|
|
2372
2372
|
const { node: portalNode, nodeId: portalNodeId, subtree: portalSubtree } = useFloatingPortalNode({
|
|
2373
2373
|
container,
|
|
@@ -2375,16 +2375,16 @@ function init_FloatingPortal() {
|
|
|
2375
2375
|
componentProps,
|
|
2376
2376
|
elementProps
|
|
2377
2377
|
});
|
|
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$
|
|
2378
|
+
const beforeOutsideRef = import_react$64.useRef(null);
|
|
2379
|
+
const afterOutsideRef = import_react$64.useRef(null);
|
|
2380
|
+
const beforeInsideRef = import_react$64.useRef(null);
|
|
2381
|
+
const afterInsideRef = import_react$64.useRef(null);
|
|
2382
|
+
const [focusManagerState, setFocusManagerState] = import_react$64.useState(null);
|
|
2383
|
+
const focusInsideDisabledRef = import_react$64.useRef(false);
|
|
2384
2384
|
const modal = focusManagerState?.modal;
|
|
2385
2385
|
const open = focusManagerState?.open;
|
|
2386
2386
|
const shouldRenderGuards = !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;
|
|
2387
|
-
import_react$
|
|
2387
|
+
import_react$64.useEffect(() => {
|
|
2388
2388
|
if (!portalNode || modal) return;
|
|
2389
2389
|
function onFocus(event) {
|
|
2390
2390
|
if (portalNode && event.relatedTarget && isOutsideEvent(event)) {
|
|
@@ -2406,7 +2406,7 @@ function init_FloatingPortal() {
|
|
|
2406
2406
|
enableFocusInside(portalNode);
|
|
2407
2407
|
focusInsideDisabledRef.current = false;
|
|
2408
2408
|
}, [open, portalNode]);
|
|
2409
|
-
const portalContextValue = import_react$
|
|
2409
|
+
const portalContextValue = import_react$64.useMemo(() => ({
|
|
2410
2410
|
beforeOutsideRef,
|
|
2411
2411
|
afterOutsideRef,
|
|
2412
2412
|
beforeInsideRef,
|
|
@@ -2414,7 +2414,7 @@ function init_FloatingPortal() {
|
|
|
2414
2414
|
portalNode,
|
|
2415
2415
|
setFocusManagerState
|
|
2416
2416
|
}), [portalNode]);
|
|
2417
|
-
return /*#__PURE__*/ (0, import_jsx_runtime$19.jsxs)(import_react$
|
|
2417
|
+
return /*#__PURE__*/ (0, import_jsx_runtime$19.jsxs)(import_react$64.Fragment, { children: [portalSubtree, /*#__PURE__*/ (0, import_jsx_runtime$19.jsxs)(PortalContext.Provider, {
|
|
2418
2418
|
value: portalContextValue,
|
|
2419
2419
|
children: [
|
|
2420
2420
|
shouldRenderGuards && portalNode && /*#__PURE__*/ (0, import_jsx_runtime$19.jsx)(FocusGuard, {
|
|
@@ -2518,7 +2518,7 @@ function FloatingNode(props) {
|
|
|
2518
2518
|
const { children, id } = props;
|
|
2519
2519
|
const parentId = useFloatingParentNodeId();
|
|
2520
2520
|
return /*#__PURE__*/ (0, import_jsx_runtime$18.jsx)(FloatingNodeContext.Provider, {
|
|
2521
|
-
value: import_react$
|
|
2521
|
+
value: import_react$63.useMemo(() => ({
|
|
2522
2522
|
id,
|
|
2523
2523
|
parentId
|
|
2524
2524
|
}), [id, parentId]),
|
|
@@ -2544,20 +2544,20 @@ function FloatingTree(props) {
|
|
|
2544
2544
|
children
|
|
2545
2545
|
});
|
|
2546
2546
|
}
|
|
2547
|
-
var import_react$
|
|
2547
|
+
var import_react$63, import_jsx_runtime$18, FloatingNodeContext, FloatingTreeContext, useFloatingParentNodeId, useFloatingTree;
|
|
2548
2548
|
function init_FloatingTree() {
|
|
2549
2549
|
return (init_FloatingTree = __esmMin((() => {
|
|
2550
|
-
import_react$
|
|
2550
|
+
import_react$63 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
2551
2551
|
init_useId();
|
|
2552
2552
|
init_useIsoLayoutEffect();
|
|
2553
2553
|
init_useRefWithInit();
|
|
2554
2554
|
init_FloatingTreeStore();
|
|
2555
2555
|
import_jsx_runtime$18 = require_jsx_runtime();
|
|
2556
|
-
FloatingNodeContext = /*#__PURE__*/ import_react$
|
|
2557
|
-
FloatingTreeContext = /*#__PURE__*/ import_react$
|
|
2558
|
-
useFloatingParentNodeId = () => import_react$
|
|
2556
|
+
FloatingNodeContext = /*#__PURE__*/ import_react$63.createContext(null);
|
|
2557
|
+
FloatingTreeContext = /*#__PURE__*/ import_react$63.createContext(null);
|
|
2558
|
+
useFloatingParentNodeId = () => import_react$63.useContext(FloatingNodeContext)?.id || null;
|
|
2559
2559
|
useFloatingTree = (externalTree) => {
|
|
2560
|
-
const contextTree = import_react$
|
|
2560
|
+
const contextTree = import_react$63.useContext(FloatingTreeContext);
|
|
2561
2561
|
return externalTree ?? contextTree;
|
|
2562
2562
|
};
|
|
2563
2563
|
})))();
|
|
@@ -2643,14 +2643,14 @@ function FloatingFocusManager(props) {
|
|
|
2643
2643
|
const openRef = useValueAsRef(open);
|
|
2644
2644
|
const tree = useFloatingTree(externalTree);
|
|
2645
2645
|
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$
|
|
2646
|
+
const preventReturnFocusRef = import_react$62.useRef(false);
|
|
2647
|
+
const isPointerDownRef = import_react$62.useRef(false);
|
|
2648
|
+
const pointerDownOutsideRef = import_react$62.useRef(false);
|
|
2649
|
+
const lastFocusedTabbableRef = import_react$62.useRef(null);
|
|
2650
|
+
const closeTypeRef = import_react$62.useRef("");
|
|
2651
|
+
const lastInteractionTypeRef = import_react$62.useRef("");
|
|
2652
|
+
const beforeGuardRef = import_react$62.useRef(null);
|
|
2653
|
+
const afterGuardRef = import_react$62.useRef(null);
|
|
2654
2654
|
const mergedBeforeGuardRef = useMergedRefs(beforeGuardRef, beforeContentFocusGuardRef, portalContext?.beforeInsideRef);
|
|
2655
2655
|
const mergedAfterGuardRef = useMergedRefs(afterGuardRef, portalContext?.afterInsideRef);
|
|
2656
2656
|
const blurTimeout = useTimeout();
|
|
@@ -2662,7 +2662,7 @@ function FloatingFocusManager(props) {
|
|
|
2662
2662
|
return container ? tabbable(container) : [];
|
|
2663
2663
|
});
|
|
2664
2664
|
const getResolvedInsideElements = useStableCallback(() => getInsideElements?.().filter((element) => element != null) ?? []);
|
|
2665
|
-
import_react$
|
|
2665
|
+
import_react$62.useEffect(() => {
|
|
2666
2666
|
if (disabled || !modal) return;
|
|
2667
2667
|
function onKeyDown(event) {
|
|
2668
2668
|
if (event.key === "Tab") {
|
|
@@ -2677,7 +2677,7 @@ function FloatingFocusManager(props) {
|
|
|
2677
2677
|
isUntrappedTypeableCombobox,
|
|
2678
2678
|
getTabbableContent
|
|
2679
2679
|
]);
|
|
2680
|
-
import_react$
|
|
2680
|
+
import_react$62.useEffect(() => {
|
|
2681
2681
|
if (disabled || !open) return;
|
|
2682
2682
|
const doc = ownerDocument(floatingFocusElement);
|
|
2683
2683
|
function clearPointerDownOutside() {
|
|
@@ -2710,7 +2710,7 @@ function FloatingFocusManager(props) {
|
|
|
2710
2710
|
pointerDownTimeout,
|
|
2711
2711
|
getResolvedInsideElements
|
|
2712
2712
|
]);
|
|
2713
|
-
import_react$
|
|
2713
|
+
import_react$62.useEffect(() => {
|
|
2714
2714
|
if (disabled || !closeOnFocusOut) return;
|
|
2715
2715
|
const doc = ownerDocument(floatingFocusElement);
|
|
2716
2716
|
function handlePointerDown() {
|
|
@@ -2801,7 +2801,7 @@ function FloatingFocusManager(props) {
|
|
|
2801
2801
|
previousFocusableElement,
|
|
2802
2802
|
getResolvedInsideElements
|
|
2803
2803
|
]);
|
|
2804
|
-
import_react$
|
|
2804
|
+
import_react$62.useEffect(() => {
|
|
2805
2805
|
if (disabled || !floating || !open) return;
|
|
2806
2806
|
const portalNodes = Array.from(portalContext?.portalNode?.querySelectorAll(`[${createAttribute("portal")}]`) || []);
|
|
2807
2807
|
const rootAncestorComboboxDomReference = (tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : []).find((node) => isTypeableCombobox(node.context?.elements.domReference || null))?.context?.elements.domReference;
|
|
@@ -2886,7 +2886,7 @@ function FloatingFocusManager(props) {
|
|
|
2886
2886
|
openRef,
|
|
2887
2887
|
dataRef
|
|
2888
2888
|
]);
|
|
2889
|
-
const pendingReturnFocusRef = import_react$
|
|
2889
|
+
const pendingReturnFocusRef = import_react$62.useRef(null);
|
|
2890
2890
|
useIsoLayoutEffect(() => {
|
|
2891
2891
|
if (disabled || !floatingFocusElement) {
|
|
2892
2892
|
pendingReturnFocusRef.current = null;
|
|
@@ -2999,7 +2999,7 @@ function FloatingFocusManager(props) {
|
|
|
2999
2999
|
};
|
|
3000
3000
|
}, [disabled, floatingFocusElement]);
|
|
3001
3001
|
const shouldRenderGuards = !disabled && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);
|
|
3002
|
-
return /*#__PURE__*/ (0, import_jsx_runtime$17.jsxs)(import_react$
|
|
3002
|
+
return /*#__PURE__*/ (0, import_jsx_runtime$17.jsxs)(import_react$62.Fragment, { children: [
|
|
3003
3003
|
shouldRenderGuards && /*#__PURE__*/ (0, import_jsx_runtime$17.jsx)(FocusGuard, {
|
|
3004
3004
|
"data-type": "inside",
|
|
3005
3005
|
ref: mergedBeforeGuardRef,
|
|
@@ -3029,10 +3029,10 @@ function FloatingFocusManager(props) {
|
|
|
3029
3029
|
})
|
|
3030
3030
|
] });
|
|
3031
3031
|
}
|
|
3032
|
-
var import_react$
|
|
3032
|
+
var import_react$62, import_jsx_runtime$17, LIST_LIMIT, previouslyFocusedElements;
|
|
3033
3033
|
function init_FloatingFocusManager() {
|
|
3034
3034
|
return (init_FloatingFocusManager = __esmMin((() => {
|
|
3035
|
-
import_react$
|
|
3035
|
+
import_react$62 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3036
3036
|
init_floating_ui_utils_dom();
|
|
3037
3037
|
init_useMergedRefs();
|
|
3038
3038
|
init_useValueAsRef();
|
|
@@ -3067,10 +3067,10 @@ function init_FloatingFocusManager() {
|
|
|
3067
3067
|
function useClick(store, props = {}) {
|
|
3068
3068
|
const { enabled = true, event: eventOption = "click", toggle = true, ignoreMouse = false, stickIfOpen = true, touchOpenDelay = 0, reason = triggerPress } = props;
|
|
3069
3069
|
const dataRef = store.context.dataRef;
|
|
3070
|
-
const pointerTypeRef = import_react$
|
|
3070
|
+
const pointerTypeRef = import_react$61.useRef(void 0);
|
|
3071
3071
|
const frame = useAnimationFrame();
|
|
3072
3072
|
const touchOpenTimeout = useTimeout();
|
|
3073
|
-
const reference = import_react$
|
|
3073
|
+
const reference = import_react$61.useMemo(() => {
|
|
3074
3074
|
function setOpenWithTouchDelay(nextOpen, nativeEvent, target, pointerType) {
|
|
3075
3075
|
const details = createChangeEventDetails(reason, nativeEvent, target);
|
|
3076
3076
|
if (nextOpen && pointerType === "touch" && touchOpenDelay > 0) touchOpenTimeout.start(touchOpenDelay, () => {
|
|
@@ -3134,12 +3134,12 @@ function useClick(store, props = {}) {
|
|
|
3134
3134
|
touchOpenTimeout,
|
|
3135
3135
|
touchOpenDelay
|
|
3136
3136
|
]);
|
|
3137
|
-
return import_react$
|
|
3137
|
+
return import_react$61.useMemo(() => enabled ? { reference } : EMPTY_OBJECT, [enabled, reference]);
|
|
3138
3138
|
}
|
|
3139
|
-
var import_react$
|
|
3139
|
+
var import_react$61;
|
|
3140
3140
|
function init_useClick() {
|
|
3141
3141
|
return (init_useClick = __esmMin((() => {
|
|
3142
|
-
import_react$
|
|
3142
|
+
import_react$61 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3143
3143
|
init_useAnimationFrame();
|
|
3144
3144
|
init_useTimeout();
|
|
3145
3145
|
init_empty();
|
|
@@ -3207,10 +3207,10 @@ function useClientPoint(store, props = {}) {
|
|
|
3207
3207
|
const floating = store.useState("floatingElement");
|
|
3208
3208
|
const domReference = store.useState("domReferenceElement");
|
|
3209
3209
|
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$
|
|
3210
|
+
const initialRef = import_react$60.useRef(false);
|
|
3211
|
+
const cleanupListenerRef = import_react$60.useRef(null);
|
|
3212
|
+
const [pointerType, setPointerType] = import_react$60.useState();
|
|
3213
|
+
const [reactive, setReactive] = import_react$60.useState([]);
|
|
3214
3214
|
const resetReference = useStableCallback((reference) => {
|
|
3215
3215
|
store.set("positionReference", reference);
|
|
3216
3216
|
});
|
|
@@ -3233,7 +3233,7 @@ function useClientPoint(store, props = {}) {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
});
|
|
3235
3235
|
const openCheck = isMouseLikePointerType(pointerType) ? floating : open;
|
|
3236
|
-
import_react$
|
|
3236
|
+
import_react$60.useEffect(() => {
|
|
3237
3237
|
if (!enabled) {
|
|
3238
3238
|
resetReference(domReference);
|
|
3239
3239
|
return;
|
|
@@ -3263,16 +3263,16 @@ function useClientPoint(store, props = {}) {
|
|
|
3263
3263
|
resetReference,
|
|
3264
3264
|
reactive
|
|
3265
3265
|
]);
|
|
3266
|
-
import_react$
|
|
3266
|
+
import_react$60.useEffect(() => () => {
|
|
3267
3267
|
store.set("positionReference", null);
|
|
3268
3268
|
}, [store]);
|
|
3269
|
-
import_react$
|
|
3269
|
+
import_react$60.useEffect(() => {
|
|
3270
3270
|
if (enabled && !floating) initialRef.current = false;
|
|
3271
3271
|
}, [enabled, floating]);
|
|
3272
|
-
import_react$
|
|
3272
|
+
import_react$60.useEffect(() => {
|
|
3273
3273
|
if (!enabled && open) initialRef.current = true;
|
|
3274
3274
|
}, [enabled, open]);
|
|
3275
|
-
const reference = import_react$
|
|
3275
|
+
const reference = import_react$60.useMemo(() => {
|
|
3276
3276
|
function setPointerTypeRef(event) {
|
|
3277
3277
|
setPointerType(event.pointerType);
|
|
3278
3278
|
}
|
|
@@ -3283,15 +3283,15 @@ function useClientPoint(store, props = {}) {
|
|
|
3283
3283
|
onMouseEnter: handleReferenceEnterOrMove
|
|
3284
3284
|
};
|
|
3285
3285
|
}, [handleReferenceEnterOrMove]);
|
|
3286
|
-
return import_react$
|
|
3286
|
+
return import_react$60.useMemo(() => enabled ? {
|
|
3287
3287
|
reference,
|
|
3288
3288
|
trigger: reference
|
|
3289
3289
|
} : {}, [enabled, reference]);
|
|
3290
3290
|
}
|
|
3291
|
-
var import_react$
|
|
3291
|
+
var import_react$60;
|
|
3292
3292
|
function init_useClientPoint() {
|
|
3293
3293
|
return (init_useClientPoint = __esmMin((() => {
|
|
3294
|
-
import_react$
|
|
3294
|
+
import_react$60 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3295
3295
|
init_useStableCallback();
|
|
3296
3296
|
init_floating_ui_utils_dom();
|
|
3297
3297
|
init_element();
|
|
@@ -3325,13 +3325,13 @@ function useDismiss(store, props = {}) {
|
|
|
3325
3325
|
const outsidePressEnabled = outsidePress$1 !== false;
|
|
3326
3326
|
const getOutsidePressEventProp = useStableCallback(() => outsidePressEvent);
|
|
3327
3327
|
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$
|
|
3328
|
+
const pressStartedInsideRef = import_react$59.useRef(false);
|
|
3329
|
+
const pressStartPreventedRef = import_react$59.useRef(false);
|
|
3330
|
+
const suppressNextOutsideClickRef = import_react$59.useRef(false);
|
|
3331
|
+
const sawPressWhileOpenRef = import_react$59.useRef(false);
|
|
3332
|
+
const isComposingRef = import_react$59.useRef(false);
|
|
3333
|
+
const currentPointerTypeRef = import_react$59.useRef("");
|
|
3334
|
+
const touchStateRef = import_react$59.useRef(null);
|
|
3335
3335
|
const cancelDismissOnEndTimeout = useTimeout();
|
|
3336
3336
|
const clearInsideReactTreeTimeout = useTimeout();
|
|
3337
3337
|
const compositionTimeout = useTimeout();
|
|
@@ -3378,7 +3378,7 @@ function useDismiss(store, props = {}) {
|
|
|
3378
3378
|
if (!(event.defaultPrevented || event.nativeEvent.defaultPrevented)) return;
|
|
3379
3379
|
if (pressStartedInsideRef.current) pressStartPreventedRef.current = true;
|
|
3380
3380
|
});
|
|
3381
|
-
import_react$
|
|
3381
|
+
import_react$59.useEffect(() => {
|
|
3382
3382
|
function handleOpenChange(details) {
|
|
3383
3383
|
if (!details.open) sawPressWhileOpenRef.current = false;
|
|
3384
3384
|
}
|
|
@@ -3387,8 +3387,8 @@ function useDismiss(store, props = {}) {
|
|
|
3387
3387
|
events.off("openchange", handleOpenChange);
|
|
3388
3388
|
};
|
|
3389
3389
|
}, [events]);
|
|
3390
|
-
import_react$
|
|
3391
|
-
import_react$
|
|
3390
|
+
import_react$59.useEffect(() => clearInsideReactTree, [clearInsideReactTree]);
|
|
3391
|
+
import_react$59.useEffect(() => {
|
|
3392
3392
|
if (!open || !enabled) {
|
|
3393
3393
|
if (!open) {
|
|
3394
3394
|
sawPressWhileOpenRef.current = false;
|
|
@@ -3621,12 +3621,12 @@ function useDismiss(store, props = {}) {
|
|
|
3621
3621
|
cancelDismissOnEndTimeout,
|
|
3622
3622
|
compositionTimeout
|
|
3623
3623
|
]);
|
|
3624
|
-
const reference = import_react$
|
|
3624
|
+
const reference = import_react$59.useMemo(() => ({
|
|
3625
3625
|
onKeyDown: closeOnEscapeKeyDown,
|
|
3626
3626
|
onPointerDown: closeOnReferencePress,
|
|
3627
3627
|
onClick: closeOnReferencePress
|
|
3628
3628
|
}), [closeOnEscapeKeyDown, closeOnReferencePress]);
|
|
3629
|
-
const floating = import_react$
|
|
3629
|
+
const floating = import_react$59.useMemo(() => ({
|
|
3630
3630
|
onKeyDown: closeOnEscapeKeyDown,
|
|
3631
3631
|
onPointerDown: markInsidePressStartPrevented,
|
|
3632
3632
|
onMouseDown: markInsidePressStartPrevented,
|
|
@@ -3648,7 +3648,7 @@ function useDismiss(store, props = {}) {
|
|
|
3648
3648
|
markPressStartedInsideReactTree,
|
|
3649
3649
|
markInsidePressStartPrevented
|
|
3650
3650
|
]);
|
|
3651
|
-
return import_react$
|
|
3651
|
+
return import_react$59.useMemo(() => enabled ? {
|
|
3652
3652
|
reference,
|
|
3653
3653
|
floating,
|
|
3654
3654
|
trigger: reference
|
|
@@ -3658,10 +3658,10 @@ function useDismiss(store, props = {}) {
|
|
|
3658
3658
|
floating
|
|
3659
3659
|
]);
|
|
3660
3660
|
}
|
|
3661
|
-
var import_react$
|
|
3661
|
+
var import_react$59;
|
|
3662
3662
|
function init_useDismiss() {
|
|
3663
3663
|
return (init_useDismiss = __esmMin((() => {
|
|
3664
|
-
import_react$
|
|
3664
|
+
import_react$59 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3665
3665
|
init_useStableCallback();
|
|
3666
3666
|
init_useTimeout();
|
|
3667
3667
|
init_floating_ui_utils_dom();
|
|
@@ -3728,8 +3728,8 @@ function init_useSyncedFloatingRootContext() {
|
|
|
3728
3728
|
* `defaultOpen` popup on page load, SSR'd markup) doesn't animate in.
|
|
3729
3729
|
*/
|
|
3730
3730
|
function useTransitionStatus(open, enableIdleState = false, deferEndingState = false, animateInitialOpen = false) {
|
|
3731
|
-
const [transitionStatus, setTransitionStatus] = import_react$
|
|
3732
|
-
const [mounted, setMounted] = import_react$
|
|
3731
|
+
const [transitionStatus, setTransitionStatus] = import_react$58.useState(open && enableIdleState ? "idle" : void 0);
|
|
3732
|
+
const [mounted, setMounted] = import_react$58.useState(open && !animateInitialOpen);
|
|
3733
3733
|
if (open && !mounted) {
|
|
3734
3734
|
setMounted(true);
|
|
3735
3735
|
setTransitionStatus("starting");
|
|
@@ -3785,10 +3785,10 @@ function useTransitionStatus(open, enableIdleState = false, deferEndingState = f
|
|
|
3785
3785
|
transitionStatus
|
|
3786
3786
|
};
|
|
3787
3787
|
}
|
|
3788
|
-
var import_react$
|
|
3788
|
+
var import_react$58;
|
|
3789
3789
|
function init_useTransitionStatus() {
|
|
3790
3790
|
return (init_useTransitionStatus = __esmMin((() => {
|
|
3791
|
-
import_react$
|
|
3791
|
+
import_react$58 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3792
3792
|
init_useIsoLayoutEffect();
|
|
3793
3793
|
init_useAnimationFrame();
|
|
3794
3794
|
})))();
|
|
@@ -3899,7 +3899,7 @@ function useOpenChangeComplete(parameters) {
|
|
|
3899
3899
|
const { enabled = true, open, ref, batch = false, onComplete: onCompleteParam } = parameters;
|
|
3900
3900
|
const onComplete = useStableCallback(onCompleteParam);
|
|
3901
3901
|
const runOnceAnimationsFinish = useAnimationsFinished(ref, open, batch);
|
|
3902
|
-
import_react$
|
|
3902
|
+
import_react$57.useEffect(() => {
|
|
3903
3903
|
if (!enabled) return;
|
|
3904
3904
|
const abortController = new AbortController();
|
|
3905
3905
|
runOnceAnimationsFinish(onComplete, abortController.signal);
|
|
@@ -3913,10 +3913,10 @@ function useOpenChangeComplete(parameters) {
|
|
|
3913
3913
|
runOnceAnimationsFinish
|
|
3914
3914
|
]);
|
|
3915
3915
|
}
|
|
3916
|
-
var import_react$
|
|
3916
|
+
var import_react$57;
|
|
3917
3917
|
function init_useOpenChangeComplete() {
|
|
3918
3918
|
return (init_useOpenChangeComplete = __esmMin((() => {
|
|
3919
|
-
import_react$
|
|
3919
|
+
import_react$57 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3920
3920
|
init_useStableCallback();
|
|
3921
3921
|
init_useAnimationsFinished();
|
|
3922
3922
|
})))();
|
|
@@ -3940,8 +3940,8 @@ function useUnmountAfterClose(parameters) {
|
|
|
3940
3940
|
useIsoLayoutEffect(() => {
|
|
3941
3941
|
if (open) setPreventUnmountOnClose(false);
|
|
3942
3942
|
}, [open, setPreventUnmountOnClose]);
|
|
3943
|
-
const mountedRef = import_react$
|
|
3944
|
-
const pendingUnmountRef = import_react$
|
|
3943
|
+
const mountedRef = import_react$56.useRef(mounted);
|
|
3944
|
+
const pendingUnmountRef = import_react$56.useRef(false);
|
|
3945
3945
|
const rerender = useForcedRerendering();
|
|
3946
3946
|
const unmount = () => {
|
|
3947
3947
|
mountedRef.current = false;
|
|
@@ -3979,10 +3979,10 @@ function useUnmountAfterClose(parameters) {
|
|
|
3979
3979
|
forceUnmount
|
|
3980
3980
|
};
|
|
3981
3981
|
}
|
|
3982
|
-
var import_react$
|
|
3982
|
+
var import_react$56;
|
|
3983
3983
|
function init_useUnmountAfterClose() {
|
|
3984
3984
|
return (init_useUnmountAfterClose = __esmMin((() => {
|
|
3985
|
-
import_react$
|
|
3985
|
+
import_react$56 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
3986
3986
|
init_useStableCallback();
|
|
3987
3987
|
init_useIsoLayoutEffect();
|
|
3988
3988
|
init_useForcedRerendering();
|
|
@@ -4064,7 +4064,7 @@ function syncTriggerCount(store) {
|
|
|
4064
4064
|
* @param store The Store instance where the trigger should be registered.
|
|
4065
4065
|
*/
|
|
4066
4066
|
function useTriggerRegistration(id, store) {
|
|
4067
|
-
const registrationRef = import_react$
|
|
4067
|
+
const registrationRef = import_react$55.useRef(null);
|
|
4068
4068
|
return useStableCallback((element) => {
|
|
4069
4069
|
const registration = registrationRef.current;
|
|
4070
4070
|
if (registration !== null) {
|
|
@@ -4233,7 +4233,7 @@ function useTriggerDataForwarding(triggerId, triggerElementRef, store, stateUpda
|
|
|
4233
4233
|
*/
|
|
4234
4234
|
function useImplicitActiveTrigger(store, options = {}) {
|
|
4235
4235
|
const { closeOnActiveTriggerUnmount = false } = options;
|
|
4236
|
-
const resolvedActiveTriggerIdRef = import_react$
|
|
4236
|
+
const resolvedActiveTriggerIdRef = import_react$55.useRef(null);
|
|
4237
4237
|
const open = store.useState("open");
|
|
4238
4238
|
const reactiveTriggerCount = store.useState("triggerCount");
|
|
4239
4239
|
const activeTriggerId = store.useState("activeTriggerId");
|
|
@@ -4364,10 +4364,10 @@ function usePopupRootSync(store, open) {
|
|
|
4364
4364
|
if (store.state.openMethod !== null) store.set("openMethod", null);
|
|
4365
4365
|
}, [store]);
|
|
4366
4366
|
}
|
|
4367
|
-
var import_react$
|
|
4367
|
+
var import_react$55, import_react_dom$4, FOCUSABLE_POPUP_PROPS;
|
|
4368
4368
|
function init_popupStoreUtils() {
|
|
4369
4369
|
return (init_popupStoreUtils = __esmMin((() => {
|
|
4370
|
-
import_react$
|
|
4370
|
+
import_react$55 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4371
4371
|
import_react_dom$4 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
4372
4372
|
init_empty();
|
|
4373
4373
|
init_useId();
|
|
@@ -4628,20 +4628,20 @@ function init_store() {
|
|
|
4628
4628
|
* @param handle The popup handle to read from, or `undefined` when the trigger is not handle-bound.
|
|
4629
4629
|
*/
|
|
4630
4630
|
function usePopupHandleStore(handle) {
|
|
4631
|
-
const subscribe = import_react$
|
|
4631
|
+
const subscribe = import_react$54.useCallback((listener) => {
|
|
4632
4632
|
if (handle === void 0) return NOOP;
|
|
4633
4633
|
return handle.subscribeStore(listener);
|
|
4634
4634
|
}, [handle]);
|
|
4635
|
-
const getSnapshot = import_react$
|
|
4635
|
+
const getSnapshot = import_react$54.useCallback(() => {
|
|
4636
4636
|
return handle === void 0 ? void 0 : handle.store;
|
|
4637
4637
|
}, [handle]);
|
|
4638
|
-
return (0,
|
|
4638
|
+
return (0, import_react$83.useSyncExternalStore)(subscribe, getSnapshot, () => handle?.serverStore);
|
|
4639
4639
|
}
|
|
4640
|
-
var import_react$
|
|
4640
|
+
var import_react$54;
|
|
4641
4641
|
function init_usePopupHandleStore() {
|
|
4642
4642
|
return (init_usePopupHandleStore = __esmMin((() => {
|
|
4643
|
-
import_react$
|
|
4644
|
-
|
|
4643
|
+
import_react$54 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4644
|
+
init_shim_cjs_0();
|
|
4645
4645
|
init_empty();
|
|
4646
4646
|
})))();
|
|
4647
4647
|
}
|
|
@@ -4655,11 +4655,11 @@ function init_usePopupHandleStore() {
|
|
|
4655
4655
|
function useFocus(store, props = {}) {
|
|
4656
4656
|
const { enabled = true, delay } = props;
|
|
4657
4657
|
const { events, dataRef } = store.context;
|
|
4658
|
-
const blockFocusRef = import_react$
|
|
4659
|
-
const blockedReferenceRef = import_react$
|
|
4660
|
-
const keyboardModalityRef = import_react$
|
|
4658
|
+
const blockFocusRef = import_react$53.useRef(false);
|
|
4659
|
+
const blockedReferenceRef = import_react$53.useRef(null);
|
|
4660
|
+
const keyboardModalityRef = import_react$53.useRef(true);
|
|
4661
4661
|
const timeout = useTimeout();
|
|
4662
|
-
import_react$
|
|
4662
|
+
import_react$53.useEffect(() => {
|
|
4663
4663
|
const domReference = store.select("domReferenceElement");
|
|
4664
4664
|
if (!enabled) return;
|
|
4665
4665
|
const win = getWindow(domReference);
|
|
@@ -4678,7 +4678,7 @@ function useFocus(store, props = {}) {
|
|
|
4678
4678
|
}
|
|
4679
4679
|
return mergeCleanups(addEventListener(win, "blur", onBlur), isMacSafari && addEventListener(win, "keydown", onKeyDown, true), isMacSafari && addEventListener(win, "pointerdown", onPointerDown, true));
|
|
4680
4680
|
}, [store, enabled]);
|
|
4681
|
-
import_react$
|
|
4681
|
+
import_react$53.useEffect(() => {
|
|
4682
4682
|
if (!enabled) return;
|
|
4683
4683
|
function onOpenChangeLocal(details) {
|
|
4684
4684
|
if (details.reason === "trigger-press" || details.reason === "escape-key") {
|
|
@@ -4698,7 +4698,7 @@ function useFocus(store, props = {}) {
|
|
|
4698
4698
|
enabled,
|
|
4699
4699
|
store
|
|
4700
4700
|
]);
|
|
4701
|
-
const reference = import_react$
|
|
4701
|
+
const reference = import_react$53.useMemo(() => {
|
|
4702
4702
|
function resetBlockedFocus() {
|
|
4703
4703
|
blockFocusRef.current = false;
|
|
4704
4704
|
blockedReferenceRef.current = null;
|
|
@@ -4751,15 +4751,15 @@ function useFocus(store, props = {}) {
|
|
|
4751
4751
|
store,
|
|
4752
4752
|
timeout
|
|
4753
4753
|
]);
|
|
4754
|
-
return import_react$
|
|
4754
|
+
return import_react$53.useMemo(() => enabled ? {
|
|
4755
4755
|
reference,
|
|
4756
4756
|
trigger: reference
|
|
4757
4757
|
} : {}, [enabled, reference]);
|
|
4758
4758
|
}
|
|
4759
|
-
var import_react$
|
|
4759
|
+
var import_react$53, isMacSafari;
|
|
4760
4760
|
function init_useFocus() {
|
|
4761
4761
|
return (init_useFocus = __esmMin((() => {
|
|
4762
|
-
import_react$
|
|
4762
|
+
import_react$53 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4763
4763
|
init_os(), init_engine();
|
|
4764
4764
|
init_useTimeout();
|
|
4765
4765
|
init_floating_ui_utils_dom();
|
|
@@ -4876,7 +4876,7 @@ function useHoverFloatingInteraction(store, parameters = {}) {
|
|
|
4876
4876
|
instance,
|
|
4877
4877
|
clearPointerEvents
|
|
4878
4878
|
]);
|
|
4879
|
-
import_react$
|
|
4879
|
+
import_react$52.useEffect(() => {
|
|
4880
4880
|
return clearPointerEvents;
|
|
4881
4881
|
}, [clearPointerEvents]);
|
|
4882
4882
|
useIsoLayoutEffect(() => {
|
|
@@ -4910,7 +4910,7 @@ function useHoverFloatingInteraction(store, parameters = {}) {
|
|
|
4910
4910
|
parentId,
|
|
4911
4911
|
clearPointerEvents
|
|
4912
4912
|
]);
|
|
4913
|
-
import_react$
|
|
4913
|
+
import_react$52.useEffect(() => {
|
|
4914
4914
|
if (!enabled) return;
|
|
4915
4915
|
function hasParentChildren() {
|
|
4916
4916
|
return !!(tree && parentId && getNodeChildren(tree.nodesRef.current, parentId).length > 0);
|
|
@@ -4985,10 +4985,10 @@ function useHoverFloatingInteraction(store, parameters = {}) {
|
|
|
4985
4985
|
childClosedTimeout
|
|
4986
4986
|
]);
|
|
4987
4987
|
}
|
|
4988
|
-
var import_react$
|
|
4988
|
+
var import_react$52;
|
|
4989
4989
|
function init_useHoverFloatingInteraction() {
|
|
4990
4990
|
return (init_useHoverFloatingInteraction = __esmMin((() => {
|
|
4991
|
-
import_react$
|
|
4991
|
+
import_react$52 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
4992
4992
|
init_useIsoLayoutEffect();
|
|
4993
4993
|
init_useStableCallback();
|
|
4994
4994
|
init_useTimeout();
|
|
@@ -5012,7 +5012,7 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5012
5012
|
const { dataRef, events } = store.context;
|
|
5013
5013
|
const tree = useFloatingTree(externalTree);
|
|
5014
5014
|
const instance = useHoverInteractionSharedState(store);
|
|
5015
|
-
const isHoverCloseActiveRef = import_react$
|
|
5015
|
+
const isHoverCloseActiveRef = import_react$51.useRef(false);
|
|
5016
5016
|
const handleCloseRef = useValueAsRef(handleClose);
|
|
5017
5017
|
const delayRef = useValueAsRef(delay);
|
|
5018
5018
|
const restMsRef = useValueAsRef(restMs);
|
|
@@ -5041,8 +5041,8 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5041
5041
|
clearSafePolygonPointerEventsMutation(instance);
|
|
5042
5042
|
});
|
|
5043
5043
|
if (isActiveTrigger) instance.handleCloseOptions = handleClose?.__options;
|
|
5044
|
-
import_react$
|
|
5045
|
-
import_react$
|
|
5044
|
+
import_react$51.useEffect(() => cleanupMouseMoveHandler, [cleanupMouseMoveHandler]);
|
|
5045
|
+
import_react$51.useEffect(() => {
|
|
5046
5046
|
if (!enabled) return;
|
|
5047
5047
|
function onOpenChangeLocal(details) {
|
|
5048
5048
|
if (!details.open) {
|
|
@@ -5064,7 +5064,7 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5064
5064
|
instance,
|
|
5065
5065
|
cleanupMouseMoveHandler
|
|
5066
5066
|
]);
|
|
5067
|
-
import_react$
|
|
5067
|
+
import_react$51.useEffect(() => {
|
|
5068
5068
|
if (!enabled) return;
|
|
5069
5069
|
function closeWithDelay(event, runElseBranch = true) {
|
|
5070
5070
|
const closeDelay = getDelay(delayRef.current, "close", instance.pointerType);
|
|
@@ -5180,7 +5180,7 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5180
5180
|
checkShouldOpen,
|
|
5181
5181
|
guardStaleOpen
|
|
5182
5182
|
]);
|
|
5183
|
-
return import_react$
|
|
5183
|
+
return import_react$51.useMemo(() => {
|
|
5184
5184
|
if (!enabled) return;
|
|
5185
5185
|
function setPointerRef(event) {
|
|
5186
5186
|
instance.pointerType = event.pointerType;
|
|
@@ -5237,10 +5237,10 @@ function useHoverReferenceInteraction(store, props = {}) {
|
|
|
5237
5237
|
checkShouldOpen
|
|
5238
5238
|
]);
|
|
5239
5239
|
}
|
|
5240
|
-
var import_react$
|
|
5240
|
+
var import_react$51, import_react_dom$3, EMPTY_REF;
|
|
5241
5241
|
function init_useHoverReferenceInteraction() {
|
|
5242
5242
|
return (init_useHoverReferenceInteraction = __esmMin((() => {
|
|
5243
|
-
import_react$
|
|
5243
|
+
import_react$51 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5244
5244
|
import_react_dom$3 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
5245
5245
|
init_useStableCallback();
|
|
5246
5246
|
init_useValueAsRef();
|
|
@@ -5458,16 +5458,16 @@ function createInitialState$2(initialState, triggerElements, floatingId, nested
|
|
|
5458
5458
|
}
|
|
5459
5459
|
function createInitialContext$2(triggerElements) {
|
|
5460
5460
|
return {
|
|
5461
|
-
popupRef: /*#__PURE__*/ import_react$
|
|
5461
|
+
popupRef: /*#__PURE__*/ import_react$50.createRef(),
|
|
5462
5462
|
onOpenChange: void 0,
|
|
5463
5463
|
onOpenChangeComplete: void 0,
|
|
5464
5464
|
triggerElements
|
|
5465
5465
|
};
|
|
5466
5466
|
}
|
|
5467
|
-
var import_react$
|
|
5467
|
+
var import_react$50, selectors$2, TooltipStore;
|
|
5468
5468
|
function init_TooltipStore() {
|
|
5469
5469
|
return (init_TooltipStore = __esmMin((() => {
|
|
5470
|
-
import_react$
|
|
5470
|
+
import_react$50 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5471
5471
|
init_ReactStore();
|
|
5472
5472
|
init_createBaseUIEventDetails();
|
|
5473
5473
|
init_reason_parts();
|
|
@@ -5511,7 +5511,7 @@ function TooltipInteractions({ store, disabled, trackCursorAxis }) {
|
|
|
5511
5511
|
enabled: !disabled && trackCursorAxis !== "none",
|
|
5512
5512
|
axis: trackCursorAxis === "none" ? void 0 : trackCursorAxis
|
|
5513
5513
|
});
|
|
5514
|
-
const triggerProps = import_react$
|
|
5514
|
+
const triggerProps = import_react$49.useMemo(() => mergeProps(clientPoint.reference, dismiss.reference), [clientPoint.reference, dismiss.reference]);
|
|
5515
5515
|
usePopupInteractionProps(store, {
|
|
5516
5516
|
activeTriggerProps: triggerProps,
|
|
5517
5517
|
inactiveTriggerProps: triggerProps,
|
|
@@ -5519,10 +5519,10 @@ function TooltipInteractions({ store, disabled, trackCursorAxis }) {
|
|
|
5519
5519
|
});
|
|
5520
5520
|
return null;
|
|
5521
5521
|
}
|
|
5522
|
-
var import_react$
|
|
5522
|
+
var import_react$49, import_jsx_runtime$16, TooltipRoot;
|
|
5523
5523
|
function init_TooltipRoot() {
|
|
5524
5524
|
return (init_TooltipRoot = __esmMin((() => {
|
|
5525
|
-
import_react$
|
|
5525
|
+
import_react$49 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5526
5526
|
init_fastHooks();
|
|
5527
5527
|
init_empty();
|
|
5528
5528
|
init_useIsoLayoutEffect();
|
|
@@ -5561,7 +5561,7 @@ function init_TooltipRoot() {
|
|
|
5561
5561
|
const isInstantPhase = store.useState("isInstantPhase");
|
|
5562
5562
|
const instantType = store.useState("instantType");
|
|
5563
5563
|
const lastOpenChangeReason = store.useState("lastOpenChangeReason");
|
|
5564
|
-
const previousInstantTypeRef = import_react$
|
|
5564
|
+
const previousInstantTypeRef = import_react$49.useRef(null);
|
|
5565
5565
|
useIsoLayoutEffect(() => {
|
|
5566
5566
|
if (openState && disabled$1) store.setOpen(false, createChangeEventDetails(disabled));
|
|
5567
5567
|
}, [
|
|
@@ -5593,7 +5593,7 @@ function init_TooltipRoot() {
|
|
|
5593
5593
|
activeTriggerId,
|
|
5594
5594
|
open
|
|
5595
5595
|
]);
|
|
5596
|
-
import_react$
|
|
5596
|
+
import_react$49.useImperativeHandle(actionsRef, () => ({
|
|
5597
5597
|
unmount: forceUnmount,
|
|
5598
5598
|
close: () => store.setOpen(false, createChangeEventDetails(imperativeAction))
|
|
5599
5599
|
}), [forceUnmount, store]);
|
|
@@ -5619,13 +5619,13 @@ function init_TooltipRoot() {
|
|
|
5619
5619
|
//#endregion
|
|
5620
5620
|
//#region ../../node_modules/@base-ui/react/tooltip/provider/TooltipProviderContext.mjs
|
|
5621
5621
|
function useTooltipProviderContext() {
|
|
5622
|
-
return import_react$
|
|
5622
|
+
return import_react$48.useContext(TooltipProviderContext);
|
|
5623
5623
|
}
|
|
5624
|
-
var import_react$
|
|
5624
|
+
var import_react$48, TooltipProviderContext;
|
|
5625
5625
|
function init_TooltipProviderContext() {
|
|
5626
5626
|
return (init_TooltipProviderContext = __esmMin((() => {
|
|
5627
|
-
import_react$
|
|
5628
|
-
TooltipProviderContext = /*#__PURE__*/ import_react$
|
|
5627
|
+
import_react$48 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5628
|
+
TooltipProviderContext = /*#__PURE__*/ import_react$48.createContext(void 0);
|
|
5629
5629
|
})))();
|
|
5630
5630
|
}
|
|
5631
5631
|
//#endregion
|
|
@@ -5634,11 +5634,11 @@ function getTargetElement(event) {
|
|
|
5634
5634
|
const target = getTarget(event);
|
|
5635
5635
|
return isElement(target) ? target : null;
|
|
5636
5636
|
}
|
|
5637
|
-
var import_react$
|
|
5637
|
+
var import_react$47, TOOLTIP_TRIGGER_IDENTIFIER, TooltipTrigger;
|
|
5638
5638
|
function init_TooltipTrigger() {
|
|
5639
5639
|
return (init_TooltipTrigger = __esmMin((() => {
|
|
5640
5640
|
init_formatErrorMessage();
|
|
5641
|
-
import_react$
|
|
5641
|
+
import_react$47 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5642
5642
|
init_floating_ui_utils_dom();
|
|
5643
5643
|
init_fastHooks();
|
|
5644
5644
|
init_useTimeout();
|
|
@@ -5667,7 +5667,7 @@ function init_TooltipTrigger() {
|
|
|
5667
5667
|
const isTriggerActive = store.useState("isTriggerActive", thisTriggerId);
|
|
5668
5668
|
const isOpenedByThisTrigger = store.useState("isOpenedByTrigger", thisTriggerId);
|
|
5669
5669
|
const floatingRootContext = store.useState("floatingRootContext");
|
|
5670
|
-
const triggerElementRef = import_react$
|
|
5670
|
+
const triggerElementRef = import_react$47.useRef(null);
|
|
5671
5671
|
const closeDelayWithDefault = closeDelay ?? 0;
|
|
5672
5672
|
const { registerTrigger, isMountedByThisTrigger } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {
|
|
5673
5673
|
payload,
|
|
@@ -5683,9 +5683,9 @@ function init_TooltipTrigger() {
|
|
|
5683
5683
|
const disabledRef = useValueAsRef(disabled);
|
|
5684
5684
|
const trackCursorAxis = store.useState("trackCursorAxis");
|
|
5685
5685
|
const disableHoverablePopup = store.useState("disableHoverablePopup");
|
|
5686
|
-
const isNestedTriggerHoveredRef = import_react$
|
|
5686
|
+
const isNestedTriggerHoveredRef = import_react$47.useRef(false);
|
|
5687
5687
|
const nestedTriggerOpenTimeout = useTimeout();
|
|
5688
|
-
const pointerTypeRef = import_react$
|
|
5688
|
+
const pointerTypeRef = import_react$47.useRef(void 0);
|
|
5689
5689
|
function getOpenDelay() {
|
|
5690
5690
|
if (hasProvider && activeIdRef.current != null) return 0;
|
|
5691
5691
|
return delay ?? providerDelay ?? 600;
|
|
@@ -5795,28 +5795,28 @@ function init_TooltipTrigger() {
|
|
|
5795
5795
|
//#endregion
|
|
5796
5796
|
//#region ../../node_modules/@base-ui/react/tooltip/portal/TooltipPortalContext.mjs
|
|
5797
5797
|
function useTooltipPortalContext() {
|
|
5798
|
-
const value = import_react$
|
|
5798
|
+
const value = import_react$46.useContext(TooltipPortalContext);
|
|
5799
5799
|
if (value === void 0) throw new Error(formatErrorMessage(70));
|
|
5800
5800
|
return value;
|
|
5801
5801
|
}
|
|
5802
|
-
var import_react$
|
|
5802
|
+
var import_react$46, TooltipPortalContext;
|
|
5803
5803
|
function init_TooltipPortalContext() {
|
|
5804
5804
|
return (init_TooltipPortalContext = __esmMin((() => {
|
|
5805
5805
|
init_formatErrorMessage();
|
|
5806
|
-
import_react$
|
|
5807
|
-
TooltipPortalContext = /*#__PURE__*/ import_react$
|
|
5806
|
+
import_react$46 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5807
|
+
TooltipPortalContext = /*#__PURE__*/ import_react$46.createContext(void 0);
|
|
5808
5808
|
})))();
|
|
5809
5809
|
}
|
|
5810
5810
|
//#endregion
|
|
5811
5811
|
//#region ../../node_modules/@base-ui/react/utils/FloatingPortalLite.mjs
|
|
5812
|
-
var import_react$
|
|
5812
|
+
var import_react$45, import_react_dom$2, import_jsx_runtime$15, FloatingPortalLite;
|
|
5813
5813
|
function init_FloatingPortalLite() {
|
|
5814
5814
|
return (init_FloatingPortalLite = __esmMin((() => {
|
|
5815
|
-
import_react$
|
|
5815
|
+
import_react$45 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5816
5816
|
import_react_dom$2 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
5817
5817
|
init_FloatingPortal();
|
|
5818
5818
|
import_jsx_runtime$15 = require_jsx_runtime();
|
|
5819
|
-
FloatingPortalLite = /*#__PURE__*/ import_react$
|
|
5819
|
+
FloatingPortalLite = /*#__PURE__*/ import_react$45.forwardRef(function FloatingPortalLite(componentProps, forwardedRef) {
|
|
5820
5820
|
const { children, container, className, render, style, ...elementProps } = componentProps;
|
|
5821
5821
|
const { node: portalNode, subtree: portalSubtree } = useFloatingPortalNode({
|
|
5822
5822
|
container,
|
|
@@ -5825,21 +5825,21 @@ function init_FloatingPortalLite() {
|
|
|
5825
5825
|
elementProps
|
|
5826
5826
|
});
|
|
5827
5827
|
if (!portalSubtree && !portalNode) return null;
|
|
5828
|
-
return /*#__PURE__*/ (0, import_jsx_runtime$15.jsxs)(import_react$
|
|
5828
|
+
return /*#__PURE__*/ (0, import_jsx_runtime$15.jsxs)(import_react$45.Fragment, { children: [portalSubtree, portalNode && /*#__PURE__*/ import_react_dom$2.createPortal(children, portalNode)] });
|
|
5829
5829
|
});
|
|
5830
5830
|
})))();
|
|
5831
5831
|
}
|
|
5832
5832
|
//#endregion
|
|
5833
5833
|
//#region ../../node_modules/@base-ui/react/tooltip/portal/TooltipPortal.mjs
|
|
5834
|
-
var import_react$
|
|
5834
|
+
var import_react$44, import_jsx_runtime$14, TooltipPortal;
|
|
5835
5835
|
function init_TooltipPortal() {
|
|
5836
5836
|
return (init_TooltipPortal = __esmMin((() => {
|
|
5837
|
-
import_react$
|
|
5837
|
+
import_react$44 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5838
5838
|
init_TooltipRootContext();
|
|
5839
5839
|
init_TooltipPortalContext();
|
|
5840
5840
|
init_FloatingPortalLite();
|
|
5841
5841
|
import_jsx_runtime$14 = require_jsx_runtime();
|
|
5842
|
-
TooltipPortal = /*#__PURE__*/ import_react$
|
|
5842
|
+
TooltipPortal = /*#__PURE__*/ import_react$44.forwardRef(function TooltipPortal(props, forwardedRef) {
|
|
5843
5843
|
const { keepMounted = false, ...portalProps } = props;
|
|
5844
5844
|
if (!(useTooltipRootContext().useState("mounted") || keepMounted)) return null;
|
|
5845
5845
|
return /*#__PURE__*/ (0, import_jsx_runtime$14.jsx)(TooltipPortalContext.Provider, {
|
|
@@ -5855,16 +5855,16 @@ function init_TooltipPortal() {
|
|
|
5855
5855
|
//#endregion
|
|
5856
5856
|
//#region ../../node_modules/@base-ui/react/tooltip/positioner/TooltipPositionerContext.mjs
|
|
5857
5857
|
function useTooltipPositionerContext() {
|
|
5858
|
-
const context = import_react$
|
|
5858
|
+
const context = import_react$43.useContext(TooltipPositionerContext);
|
|
5859
5859
|
if (context === void 0) throw new Error(formatErrorMessage(71));
|
|
5860
5860
|
return context;
|
|
5861
5861
|
}
|
|
5862
|
-
var import_react$
|
|
5862
|
+
var import_react$43, TooltipPositionerContext;
|
|
5863
5863
|
function init_TooltipPositionerContext() {
|
|
5864
5864
|
return (init_TooltipPositionerContext = __esmMin((() => {
|
|
5865
5865
|
init_formatErrorMessage();
|
|
5866
|
-
import_react$
|
|
5867
|
-
TooltipPositionerContext = /*#__PURE__*/ import_react$
|
|
5866
|
+
import_react$43 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5867
|
+
TooltipPositionerContext = /*#__PURE__*/ import_react$43.createContext(void 0);
|
|
5868
5868
|
})))();
|
|
5869
5869
|
}
|
|
5870
5870
|
//#endregion
|
|
@@ -5881,10 +5881,10 @@ function useBaseUIFloating(options) {
|
|
|
5881
5881
|
const domReferenceElement = store.useState("domReferenceElement");
|
|
5882
5882
|
const open = store.useState("open");
|
|
5883
5883
|
const floatingId = store.useState("floatingId");
|
|
5884
|
-
const [positionReference, setPositionReferenceRaw] = import_react$
|
|
5885
|
-
const domReferenceRef = import_react$
|
|
5884
|
+
const [positionReference, setPositionReferenceRaw] = import_react$42.useState(null);
|
|
5885
|
+
const domReferenceRef = import_react$42.useRef(null);
|
|
5886
5886
|
const tree = useFloatingTree(externalTree);
|
|
5887
|
-
const storeElements = import_react$
|
|
5887
|
+
const storeElements = import_react$42.useMemo(() => ({
|
|
5888
5888
|
reference: referenceElement,
|
|
5889
5889
|
floating: floatingElement,
|
|
5890
5890
|
domReference: domReferenceElement
|
|
@@ -5900,7 +5900,7 @@ function useBaseUIFloating(options) {
|
|
|
5900
5900
|
...positionReference && { reference: positionReference }
|
|
5901
5901
|
}
|
|
5902
5902
|
});
|
|
5903
|
-
const setPositionReference = import_react$
|
|
5903
|
+
const setPositionReference = import_react$42.useCallback((node) => {
|
|
5904
5904
|
const computedPositionReference = isElement(node) ? {
|
|
5905
5905
|
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
5906
5906
|
getClientRects: () => node.getClientRects(),
|
|
@@ -5909,16 +5909,16 @@ function useBaseUIFloating(options) {
|
|
|
5909
5909
|
setPositionReferenceRaw(computedPositionReference);
|
|
5910
5910
|
position.refs.setReference(computedPositionReference);
|
|
5911
5911
|
}, [position.refs]);
|
|
5912
|
-
const refs = import_react$
|
|
5912
|
+
const refs = import_react$42.useMemo(() => ({
|
|
5913
5913
|
...position.refs,
|
|
5914
5914
|
setPositionReference,
|
|
5915
5915
|
domReference: domReferenceRef
|
|
5916
5916
|
}), [position.refs, setPositionReference]);
|
|
5917
|
-
const elements = import_react$
|
|
5917
|
+
const elements = import_react$42.useMemo(() => ({
|
|
5918
5918
|
...position.elements,
|
|
5919
5919
|
domReference: domReferenceElement
|
|
5920
5920
|
}), [position.elements, domReferenceElement]);
|
|
5921
|
-
const context = import_react$
|
|
5921
|
+
const context = import_react$42.useMemo(() => ({
|
|
5922
5922
|
...position,
|
|
5923
5923
|
dataRef: store.context.dataRef,
|
|
5924
5924
|
open,
|
|
@@ -5946,7 +5946,7 @@ function useBaseUIFloating(options) {
|
|
|
5946
5946
|
const node = tree?.nodesRef.current.find((n) => n.id === nodeId);
|
|
5947
5947
|
if (node) node.context = context;
|
|
5948
5948
|
});
|
|
5949
|
-
return import_react$
|
|
5949
|
+
return import_react$42.useMemo(() => ({
|
|
5950
5950
|
...position,
|
|
5951
5951
|
context,
|
|
5952
5952
|
refs,
|
|
@@ -5960,10 +5960,10 @@ function useBaseUIFloating(options) {
|
|
|
5960
5960
|
store
|
|
5961
5961
|
]);
|
|
5962
5962
|
}
|
|
5963
|
-
var import_react$
|
|
5963
|
+
var import_react$42;
|
|
5964
5964
|
function init_useFloating() {
|
|
5965
5965
|
return (init_useFloating = __esmMin((() => {
|
|
5966
|
-
import_react$
|
|
5966
|
+
import_react$42 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
5967
5967
|
init_useIsoLayoutEffect();
|
|
5968
5968
|
init_floating_ui_react_dom();
|
|
5969
5969
|
init_floating_ui_utils_dom();
|
|
@@ -6114,7 +6114,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6114
6114
|
const anchorValueRef = useValueAsRef(anchor);
|
|
6115
6115
|
const mountedRef = useValueAsRef(mounted);
|
|
6116
6116
|
const isRtl = useDirection() === "rtl";
|
|
6117
|
-
const [mountPlacement, setMountPlacement] = import_react$
|
|
6117
|
+
const [mountPlacement, setMountPlacement] = import_react$41.useState(null);
|
|
6118
6118
|
if (!mounted && mountPlacement !== null) setMountPlacement(null);
|
|
6119
6119
|
const lockAlign = lazyFlip === "placement";
|
|
6120
6120
|
const mountSide = mountPlacement ? getSide(mountPlacement) : null;
|
|
@@ -6151,7 +6151,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6151
6151
|
boundary: collisionBoundary === "clipping-ancestors" ? "clippingAncestors" : collisionBoundary,
|
|
6152
6152
|
padding: collisionPadding
|
|
6153
6153
|
};
|
|
6154
|
-
const arrowRef = import_react$
|
|
6154
|
+
const arrowRef = import_react$41.useRef(null);
|
|
6155
6155
|
const sideOffsetRef = useValueAsRef(sideOffset);
|
|
6156
6156
|
const alignOffsetRef = useValueAsRef(alignOffset);
|
|
6157
6157
|
const sideOffsetDep = typeof sideOffset !== "function" ? sideOffset : 0;
|
|
@@ -6253,7 +6253,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6253
6253
|
positionReference: null
|
|
6254
6254
|
});
|
|
6255
6255
|
}, [mounted, floatingRootContext]);
|
|
6256
|
-
const autoUpdateOptions = import_react$
|
|
6256
|
+
const autoUpdateOptions = import_react$41.useMemo(() => ({
|
|
6257
6257
|
ancestorScroll: !disableAnchorTracking,
|
|
6258
6258
|
elementResize: !disableAnchorTracking && typeof ResizeObserver !== "undefined",
|
|
6259
6259
|
layoutShift: !disableAnchorTracking && typeof IntersectionObserver !== "undefined"
|
|
@@ -6270,7 +6270,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6270
6270
|
});
|
|
6271
6271
|
const { sideX, sideY } = middlewareData.adaptiveOrigin || DEFAULT_SIDES;
|
|
6272
6272
|
const resolvedPosition = isPositioned ? positionMethod : "fixed";
|
|
6273
|
-
const floatingStyles = import_react$
|
|
6273
|
+
const floatingStyles = import_react$41.useMemo(() => {
|
|
6274
6274
|
let base;
|
|
6275
6275
|
if (!isPositioned) base = {
|
|
6276
6276
|
position: resolvedPosition,
|
|
@@ -6300,7 +6300,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6300
6300
|
originalFloatingStyles,
|
|
6301
6301
|
isPositioned
|
|
6302
6302
|
]);
|
|
6303
|
-
const registeredPositionReferenceRef = import_react$
|
|
6303
|
+
const registeredPositionReferenceRef = import_react$41.useRef(null);
|
|
6304
6304
|
useIsoLayoutEffect(() => {
|
|
6305
6305
|
if (!mounted) return;
|
|
6306
6306
|
const anchorValue = anchorValueRef.current;
|
|
@@ -6316,7 +6316,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6316
6316
|
anchorDep,
|
|
6317
6317
|
anchorValueRef
|
|
6318
6318
|
]);
|
|
6319
|
-
import_react$
|
|
6319
|
+
import_react$41.useEffect(() => {
|
|
6320
6320
|
if (!mounted) return;
|
|
6321
6321
|
const anchorValue = anchorValueRef.current;
|
|
6322
6322
|
if (typeof anchorValue === "function") return;
|
|
@@ -6330,7 +6330,7 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6330
6330
|
anchorDep,
|
|
6331
6331
|
anchorValueRef
|
|
6332
6332
|
]);
|
|
6333
|
-
import_react$
|
|
6333
|
+
import_react$41.useEffect(() => {
|
|
6334
6334
|
if (keepMounted && mounted && elements.reference && elements.floating) return autoUpdate(elements.reference, elements.floating, update, autoUpdateOptions);
|
|
6335
6335
|
}, [
|
|
6336
6336
|
keepMounted,
|
|
@@ -6356,13 +6356,13 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6356
6356
|
side,
|
|
6357
6357
|
placementAlign
|
|
6358
6358
|
]);
|
|
6359
|
-
const arrowStyles = import_react$
|
|
6359
|
+
const arrowStyles = import_react$41.useMemo(() => ({
|
|
6360
6360
|
position: "absolute",
|
|
6361
6361
|
top: middlewareData.arrow?.y,
|
|
6362
6362
|
left: middlewareData.arrow?.x
|
|
6363
6363
|
}), [middlewareData.arrow]);
|
|
6364
6364
|
const arrowUncentered = middlewareData.arrow?.centerOffset !== 0;
|
|
6365
|
-
return import_react$
|
|
6365
|
+
return import_react$41.useMemo(() => ({
|
|
6366
6366
|
positionerStyles: floatingStyles,
|
|
6367
6367
|
arrowStyles,
|
|
6368
6368
|
arrowRef,
|
|
@@ -6393,10 +6393,10 @@ function useAnchorPositioningWithHook(params, useFloatingHook) {
|
|
|
6393
6393
|
function isRef(param) {
|
|
6394
6394
|
return param != null && "current" in param;
|
|
6395
6395
|
}
|
|
6396
|
-
var import_react$
|
|
6396
|
+
var import_react$41, AVAILABLE_WIDTH_VAR, AVAILABLE_HEIGHT_VAR;
|
|
6397
6397
|
function init_useAnchorPositioning() {
|
|
6398
6398
|
return (init_useAnchorPositioning = __esmMin((() => {
|
|
6399
|
-
import_react$
|
|
6399
|
+
import_react$41 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6400
6400
|
init_floating_ui_utils();
|
|
6401
6401
|
init_floating_ui_utils_dom();
|
|
6402
6402
|
init_useIsoLayoutEffect();
|
|
@@ -6457,10 +6457,10 @@ function init_usePositioner() {
|
|
|
6457
6457
|
}
|
|
6458
6458
|
//#endregion
|
|
6459
6459
|
//#region ../../node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.mjs
|
|
6460
|
-
var import_react$
|
|
6460
|
+
var import_react$40, import_jsx_runtime$13, TooltipPositioner;
|
|
6461
6461
|
function init_TooltipPositioner() {
|
|
6462
6462
|
return (init_TooltipPositioner = __esmMin((() => {
|
|
6463
|
-
import_react$
|
|
6463
|
+
import_react$40 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6464
6464
|
init_TooltipRootContext();
|
|
6465
6465
|
init_TooltipPositionerContext();
|
|
6466
6466
|
init_useAnchorPositioning();
|
|
@@ -6468,7 +6468,7 @@ function init_TooltipPositioner() {
|
|
|
6468
6468
|
init_constants$1();
|
|
6469
6469
|
init_usePositioner();
|
|
6470
6470
|
import_jsx_runtime$13 = require_jsx_runtime();
|
|
6471
|
-
TooltipPositioner = /*#__PURE__*/ import_react$
|
|
6471
|
+
TooltipPositioner = /*#__PURE__*/ import_react$40.forwardRef(function TooltipPositioner(componentProps, forwardedRef) {
|
|
6472
6472
|
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
6473
|
const store = useTooltipRootContext();
|
|
6474
6474
|
const keepMounted = useTooltipPortalContext();
|
|
@@ -6497,7 +6497,7 @@ function init_TooltipPositioner() {
|
|
|
6497
6497
|
collisionAvoidance,
|
|
6498
6498
|
adaptiveOrigin: store.useState("adaptiveOrigin")
|
|
6499
6499
|
});
|
|
6500
|
-
const element = usePositioner(componentProps, import_react$
|
|
6500
|
+
const element = usePositioner(componentProps, import_react$40.useMemo(() => ({
|
|
6501
6501
|
open,
|
|
6502
6502
|
side: positioning.side,
|
|
6503
6503
|
align: positioning.align,
|
|
@@ -6527,10 +6527,10 @@ function init_TooltipPositioner() {
|
|
|
6527
6527
|
}
|
|
6528
6528
|
//#endregion
|
|
6529
6529
|
//#region ../../node_modules/@base-ui/react/tooltip/popup/TooltipPopup.mjs
|
|
6530
|
-
var import_react$
|
|
6530
|
+
var import_react$39, TooltipPopup;
|
|
6531
6531
|
function init_TooltipPopup() {
|
|
6532
6532
|
return (init_TooltipPopup = __esmMin((() => {
|
|
6533
|
-
import_react$
|
|
6533
|
+
import_react$39 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6534
6534
|
init_TooltipRootContext();
|
|
6535
6535
|
init_TooltipPositionerContext();
|
|
6536
6536
|
init_popupStateMapping();
|
|
@@ -6539,7 +6539,7 @@ function init_TooltipPopup() {
|
|
|
6539
6539
|
init_getDisabledMountTransitionStyles();
|
|
6540
6540
|
init_useHoverFloatingInteraction();
|
|
6541
6541
|
init_popupStoreUtils();
|
|
6542
|
-
TooltipPopup = /*#__PURE__*/ import_react$
|
|
6542
|
+
TooltipPopup = /*#__PURE__*/ import_react$39.forwardRef(function TooltipPopup(componentProps, forwardedRef) {
|
|
6543
6543
|
const { render, className, style, ...elementProps } = componentProps;
|
|
6544
6544
|
const store = useTooltipRootContext();
|
|
6545
6545
|
const { side, align } = useTooltipPositionerContext();
|
|
@@ -6600,28 +6600,28 @@ function init_inertValue() {
|
|
|
6600
6600
|
//#endregion
|
|
6601
6601
|
//#region ../../node_modules/@base-ui/react/dialog/root/DialogRootContext.mjs
|
|
6602
6602
|
function useDialogRootContext(optional) {
|
|
6603
|
-
const store = import_react$
|
|
6603
|
+
const store = import_react$38.useContext(DialogRootContext);
|
|
6604
6604
|
if (!optional && store === void 0) throw new Error(formatErrorMessage(27));
|
|
6605
6605
|
return store;
|
|
6606
6606
|
}
|
|
6607
|
-
var import_react$
|
|
6607
|
+
var import_react$38, DialogRootContext;
|
|
6608
6608
|
function init_DialogRootContext() {
|
|
6609
6609
|
return (init_DialogRootContext = __esmMin((() => {
|
|
6610
6610
|
init_formatErrorMessage();
|
|
6611
|
-
import_react$
|
|
6612
|
-
DialogRootContext = /*#__PURE__*/ import_react$
|
|
6611
|
+
import_react$38 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6612
|
+
DialogRootContext = /*#__PURE__*/ import_react$38.createContext(void 0);
|
|
6613
6613
|
})))();
|
|
6614
6614
|
}
|
|
6615
6615
|
//#endregion
|
|
6616
6616
|
//#region ../../node_modules/@base-ui/react/dialog/backdrop/DialogBackdrop.mjs
|
|
6617
|
-
var import_react$
|
|
6617
|
+
var import_react$37, DialogBackdrop;
|
|
6618
6618
|
function init_DialogBackdrop() {
|
|
6619
6619
|
return (init_DialogBackdrop = __esmMin((() => {
|
|
6620
|
-
import_react$
|
|
6620
|
+
import_react$37 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6621
6621
|
init_DialogRootContext();
|
|
6622
6622
|
init_useRenderElement();
|
|
6623
6623
|
init_popupStateMapping();
|
|
6624
|
-
DialogBackdrop = /*#__PURE__*/ import_react$
|
|
6624
|
+
DialogBackdrop = /*#__PURE__*/ import_react$37.forwardRef(function DialogBackdrop(componentProps, forwardedRef) {
|
|
6625
6625
|
const { render, className, style, forceRender = false, ...elementProps } = componentProps;
|
|
6626
6626
|
const store = useDialogRootContext();
|
|
6627
6627
|
const open = store.useState("open");
|
|
@@ -6650,16 +6650,16 @@ function init_DialogBackdrop() {
|
|
|
6650
6650
|
//#endregion
|
|
6651
6651
|
//#region ../../node_modules/@base-ui/react/internals/composite/root/CompositeRootContext.mjs
|
|
6652
6652
|
function useCompositeRootContext(optional = false) {
|
|
6653
|
-
const context = import_react$
|
|
6653
|
+
const context = import_react$36.useContext(CompositeRootContext);
|
|
6654
6654
|
if (context === void 0 && !optional) throw new Error(formatErrorMessage(16));
|
|
6655
6655
|
return context;
|
|
6656
6656
|
}
|
|
6657
|
-
var import_react$
|
|
6657
|
+
var import_react$36, CompositeRootContext;
|
|
6658
6658
|
function init_CompositeRootContext() {
|
|
6659
6659
|
return (init_CompositeRootContext = __esmMin((() => {
|
|
6660
6660
|
init_formatErrorMessage();
|
|
6661
|
-
import_react$
|
|
6662
|
-
CompositeRootContext = /*#__PURE__*/ import_react$
|
|
6661
|
+
import_react$36 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6662
|
+
CompositeRootContext = /*#__PURE__*/ import_react$36.createContext(void 0);
|
|
6663
6663
|
})))();
|
|
6664
6664
|
}
|
|
6665
6665
|
//#endregion
|
|
@@ -6668,7 +6668,7 @@ function useFocusableWhenDisabled(parameters) {
|
|
|
6668
6668
|
const { focusableWhenDisabled, disabled, composite = false, tabIndex: tabIndexProp = 0, isNativeButton } = parameters;
|
|
6669
6669
|
const isFocusableComposite = composite && focusableWhenDisabled !== false;
|
|
6670
6670
|
const isNonFocusableComposite = composite && focusableWhenDisabled === false;
|
|
6671
|
-
return { props: import_react$
|
|
6671
|
+
return { props: import_react$35.useMemo(() => {
|
|
6672
6672
|
const additionalProps = { onKeyDown(event) {
|
|
6673
6673
|
if (disabled && focusableWhenDisabled && event.key !== "Tab") event.preventDefault();
|
|
6674
6674
|
} };
|
|
@@ -6689,10 +6689,10 @@ function useFocusableWhenDisabled(parameters) {
|
|
|
6689
6689
|
tabIndexProp
|
|
6690
6690
|
]) };
|
|
6691
6691
|
}
|
|
6692
|
-
var import_react$
|
|
6692
|
+
var import_react$35;
|
|
6693
6693
|
function init_useFocusableWhenDisabled() {
|
|
6694
6694
|
return (init_useFocusableWhenDisabled = __esmMin((() => {
|
|
6695
|
-
import_react$
|
|
6695
|
+
import_react$35 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6696
6696
|
})))();
|
|
6697
6697
|
}
|
|
6698
6698
|
//#endregion
|
|
@@ -6729,7 +6729,7 @@ function init_dispatchClickWithModifiers() {
|
|
|
6729
6729
|
//#region ../../node_modules/@base-ui/react/internals/use-button/useButton.mjs
|
|
6730
6730
|
function useButton(parameters = {}) {
|
|
6731
6731
|
const { disabled = false, focusableWhenDisabled, tabIndex = 0, native: isNativeButton = true, composite: compositeProp } = parameters;
|
|
6732
|
-
const elementRef = import_react$
|
|
6732
|
+
const elementRef = import_react$34.useRef(null);
|
|
6733
6733
|
const compositeRootContext = useCompositeRootContext(true);
|
|
6734
6734
|
const isCompositeItem = compositeProp ?? compositeRootContext !== void 0;
|
|
6735
6735
|
const { props: focusableWhenDisabledProps } = useFocusableWhenDisabled({
|
|
@@ -6739,7 +6739,7 @@ function useButton(parameters = {}) {
|
|
|
6739
6739
|
tabIndex,
|
|
6740
6740
|
isNativeButton
|
|
6741
6741
|
});
|
|
6742
|
-
const updateDisabled = import_react$
|
|
6742
|
+
const updateDisabled = import_react$34.useCallback(() => {
|
|
6743
6743
|
const element = elementRef.current;
|
|
6744
6744
|
if (!isButtonElement(element)) return;
|
|
6745
6745
|
if (isCompositeItem && disabled && focusableWhenDisabledProps.disabled === void 0 && element.disabled) element.disabled = false;
|
|
@@ -6750,7 +6750,7 @@ function useButton(parameters = {}) {
|
|
|
6750
6750
|
]);
|
|
6751
6751
|
useIsoLayoutEffect(updateDisabled, [updateDisabled]);
|
|
6752
6752
|
return {
|
|
6753
|
-
getButtonProps: import_react$
|
|
6753
|
+
getButtonProps: import_react$34.useCallback((externalProps = {}) => {
|
|
6754
6754
|
const { onClick: externalOnClick, onMouseDown: externalOnMouseDown, onKeyUp: externalOnKeyUp, onKeyDown: externalOnKeyDown, onPointerDown: externalOnPointerDown, ...otherExternalProps } = externalProps;
|
|
6755
6755
|
return mergeProps({
|
|
6756
6756
|
onClick(event) {
|
|
@@ -6837,10 +6837,10 @@ function isButtonElement(elem) {
|
|
|
6837
6837
|
function isValidLinkElement(elem) {
|
|
6838
6838
|
return isHTMLElement(elem) && elem.tagName === "A" && Boolean(elem.href);
|
|
6839
6839
|
}
|
|
6840
|
-
var import_react$
|
|
6840
|
+
var import_react$34;
|
|
6841
6841
|
function init_useButton() {
|
|
6842
6842
|
return (init_useButton = __esmMin((() => {
|
|
6843
|
-
import_react$
|
|
6843
|
+
import_react$34 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6844
6844
|
init_floating_ui_utils_dom();
|
|
6845
6845
|
init_useStableCallback();
|
|
6846
6846
|
init_useIsoLayoutEffect();
|
|
@@ -6853,16 +6853,16 @@ function init_useButton() {
|
|
|
6853
6853
|
//#endregion
|
|
6854
6854
|
//#region ../../node_modules/@base-ui/react/dialog/portal/DialogPortalContext.mjs
|
|
6855
6855
|
function useDialogPortalContext() {
|
|
6856
|
-
const value = import_react$
|
|
6856
|
+
const value = import_react$33.useContext(DialogPortalContext);
|
|
6857
6857
|
if (value === void 0) throw new Error(formatErrorMessage(26));
|
|
6858
6858
|
return value;
|
|
6859
6859
|
}
|
|
6860
|
-
var import_react$
|
|
6860
|
+
var import_react$33, DialogPortalContext;
|
|
6861
6861
|
function init_DialogPortalContext() {
|
|
6862
6862
|
return (init_DialogPortalContext = __esmMin((() => {
|
|
6863
6863
|
init_formatErrorMessage();
|
|
6864
|
-
import_react$
|
|
6865
|
-
DialogPortalContext = /*#__PURE__*/ import_react$
|
|
6864
|
+
import_react$33 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
6865
|
+
DialogPortalContext = /*#__PURE__*/ import_react$33.createContext(void 0);
|
|
6866
6866
|
})))();
|
|
6867
6867
|
}
|
|
6868
6868
|
//#endregion
|
|
@@ -6993,10 +6993,10 @@ function init_stateAttributesMapping$1() {
|
|
|
6993
6993
|
}
|
|
6994
6994
|
//#endregion
|
|
6995
6995
|
//#region ../../node_modules/@base-ui/react/dialog/popup/DialogPopup.mjs
|
|
6996
|
-
var import_react$
|
|
6996
|
+
var import_react$32, import_jsx_runtime$12, DialogPopup;
|
|
6997
6997
|
function init_DialogPopup() {
|
|
6998
6998
|
return (init_DialogPopup = __esmMin((() => {
|
|
6999
|
-
import_react$
|
|
6999
|
+
import_react$32 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7000
7000
|
init_FloatingFocusManager();
|
|
7001
7001
|
init_DialogRootContext();
|
|
7002
7002
|
init_useRenderElement();
|
|
@@ -7007,7 +7007,7 @@ function init_DialogPopup() {
|
|
|
7007
7007
|
init_DialogPopupCssVars();
|
|
7008
7008
|
init_stateAttributesMapping$1();
|
|
7009
7009
|
import_jsx_runtime$12 = require_jsx_runtime();
|
|
7010
|
-
DialogPopup = /*#__PURE__*/ import_react$
|
|
7010
|
+
DialogPopup = /*#__PURE__*/ import_react$32.forwardRef(function DialogPopup(componentProps, forwardedRef) {
|
|
7011
7011
|
const { render, className, style, finalFocus, initialFocus, ...elementProps } = componentProps;
|
|
7012
7012
|
const store = useDialogRootContext();
|
|
7013
7013
|
const descriptionElementId = store.useState("descriptionElementId");
|
|
@@ -7081,12 +7081,12 @@ function init_DialogPopup() {
|
|
|
7081
7081
|
}
|
|
7082
7082
|
//#endregion
|
|
7083
7083
|
//#region ../../node_modules/@base-ui/react/utils/InternalBackdrop.mjs
|
|
7084
|
-
var import_react$
|
|
7084
|
+
var import_react$31, import_jsx_runtime$11, InternalBackdrop;
|
|
7085
7085
|
function init_InternalBackdrop() {
|
|
7086
7086
|
return (init_InternalBackdrop = __esmMin((() => {
|
|
7087
|
-
import_react$
|
|
7087
|
+
import_react$31 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7088
7088
|
import_jsx_runtime$11 = require_jsx_runtime();
|
|
7089
|
-
InternalBackdrop = /*#__PURE__*/ import_react$
|
|
7089
|
+
InternalBackdrop = /*#__PURE__*/ import_react$31.forwardRef(function InternalBackdrop(props, ref) {
|
|
7090
7090
|
const { cutout, ...otherProps } = props;
|
|
7091
7091
|
let clipPath;
|
|
7092
7092
|
if (cutout) {
|
|
@@ -7111,17 +7111,17 @@ function init_InternalBackdrop() {
|
|
|
7111
7111
|
}
|
|
7112
7112
|
//#endregion
|
|
7113
7113
|
//#region ../../node_modules/@base-ui/react/dialog/portal/DialogPortal.mjs
|
|
7114
|
-
var import_react$
|
|
7114
|
+
var import_react$30, import_jsx_runtime$10, DialogPortal;
|
|
7115
7115
|
function init_DialogPortal() {
|
|
7116
7116
|
return (init_DialogPortal = __esmMin((() => {
|
|
7117
|
-
import_react$
|
|
7117
|
+
import_react$30 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7118
7118
|
init_inertValue();
|
|
7119
7119
|
init_FloatingPortal();
|
|
7120
7120
|
init_DialogRootContext();
|
|
7121
7121
|
init_DialogPortalContext();
|
|
7122
7122
|
init_InternalBackdrop();
|
|
7123
7123
|
import_jsx_runtime$10 = require_jsx_runtime();
|
|
7124
|
-
DialogPortal = /*#__PURE__*/ import_react$
|
|
7124
|
+
DialogPortal = /*#__PURE__*/ import_react$30.forwardRef(function DialogPortal(props, forwardedRef) {
|
|
7125
7125
|
const { keepMounted = false, ...portalProps } = props;
|
|
7126
7126
|
const store = useDialogRootContext();
|
|
7127
7127
|
const mounted = store.useState("mounted");
|
|
@@ -7151,8 +7151,8 @@ function DialogInteractions({ store, parentContext, isDrawer }) {
|
|
|
7151
7151
|
const modal = store.useState("modal");
|
|
7152
7152
|
const popupElement = store.useState("popupElement");
|
|
7153
7153
|
const floatingRootContext = store.useState("floatingRootContext");
|
|
7154
|
-
const [ownNestedOpenDialogs, setOwnNestedOpenDialogs] = import_react$
|
|
7155
|
-
const [ownNestedOpenDrawers, setOwnNestedOpenDrawers] = import_react$
|
|
7154
|
+
const [ownNestedOpenDialogs, setOwnNestedOpenDialogs] = import_react$29.useState(0);
|
|
7155
|
+
const [ownNestedOpenDrawers, setOwnNestedOpenDrawers] = import_react$29.useState(0);
|
|
7156
7156
|
const isTopmost = ownNestedOpenDialogs === 0;
|
|
7157
7157
|
const dismiss = useDismiss(floatingRootContext, {
|
|
7158
7158
|
outsidePressEvent() {
|
|
@@ -7218,10 +7218,10 @@ function DialogInteractions({ store, parentContext, isDrawer }) {
|
|
|
7218
7218
|
});
|
|
7219
7219
|
return null;
|
|
7220
7220
|
}
|
|
7221
|
-
var import_react$
|
|
7221
|
+
var import_react$29;
|
|
7222
7222
|
function init_useDialogRoot() {
|
|
7223
7223
|
return (init_useDialogRoot = __esmMin((() => {
|
|
7224
|
-
import_react$
|
|
7224
|
+
import_react$29 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7225
7225
|
init_useIsoLayoutEffect();
|
|
7226
7226
|
init_useScrollLock();
|
|
7227
7227
|
init_useDismiss();
|
|
@@ -7249,19 +7249,19 @@ function createInitialState$1(initialState, triggerElements, floatingId, nested
|
|
|
7249
7249
|
}
|
|
7250
7250
|
function createInitialContext$1(triggerElements) {
|
|
7251
7251
|
return {
|
|
7252
|
-
popupRef: /*#__PURE__*/ import_react$
|
|
7253
|
-
backdropRef: /*#__PURE__*/ import_react$
|
|
7254
|
-
internalBackdropRef: /*#__PURE__*/ import_react$
|
|
7252
|
+
popupRef: /*#__PURE__*/ import_react$28.createRef(),
|
|
7253
|
+
backdropRef: /*#__PURE__*/ import_react$28.createRef(),
|
|
7254
|
+
internalBackdropRef: /*#__PURE__*/ import_react$28.createRef(),
|
|
7255
7255
|
outsidePressEnabledRef: { current: true },
|
|
7256
7256
|
triggerElements,
|
|
7257
7257
|
onOpenChange: void 0,
|
|
7258
7258
|
onOpenChangeComplete: void 0
|
|
7259
7259
|
};
|
|
7260
7260
|
}
|
|
7261
|
-
var import_react$
|
|
7261
|
+
var import_react$28, selectors$1, DialogStore;
|
|
7262
7262
|
function init_DialogStore() {
|
|
7263
7263
|
return (init_DialogStore = __esmMin((() => {
|
|
7264
|
-
import_react$
|
|
7264
|
+
import_react$28 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7265
7265
|
init_ReactStore();
|
|
7266
7266
|
init_store(), init_popupTriggerMap(), init_popupStoreUtils();
|
|
7267
7267
|
selectors$1 = {
|
|
@@ -7330,7 +7330,7 @@ function useRenderDialogRoot(mode, props) {
|
|
|
7330
7330
|
usePopupRootSync(store, open);
|
|
7331
7331
|
useImplicitActiveTrigger(store);
|
|
7332
7332
|
const { forceUnmount } = useOpenStateTransitions(open, store);
|
|
7333
|
-
import_react$
|
|
7333
|
+
import_react$27.useImperativeHandle(actionsRef, () => ({
|
|
7334
7334
|
unmount: forceUnmount,
|
|
7335
7335
|
close: () => store.setOpen(false, createChangeEventDetails(imperativeAction))
|
|
7336
7336
|
}), [forceUnmount, store]);
|
|
@@ -7351,10 +7351,10 @@ function useRenderDialogRoot(mode, props) {
|
|
|
7351
7351
|
]
|
|
7352
7352
|
});
|
|
7353
7353
|
}
|
|
7354
|
-
var import_react$
|
|
7354
|
+
var import_react$27, import_jsx_runtime$9;
|
|
7355
7355
|
function init_useRenderDialogRoot() {
|
|
7356
7356
|
return (init_useRenderDialogRoot = __esmMin((() => {
|
|
7357
|
-
import_react$
|
|
7357
|
+
import_react$27 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7358
7358
|
init_useDialogRoot();
|
|
7359
7359
|
init_DialogRootContext();
|
|
7360
7360
|
init_DialogStore();
|
|
@@ -7383,15 +7383,15 @@ function useOpenMethodTriggerProps(open, setOpenMethod) {
|
|
|
7383
7383
|
if (!(typeof open === "function" ? open() : open)) setOpenMethod(interactionType || (ios ? "touch" : ""));
|
|
7384
7384
|
});
|
|
7385
7385
|
const { onClick, onPointerDown } = useEnhancedClickHandler(handleTriggerClick);
|
|
7386
|
-
return import_react$
|
|
7386
|
+
return import_react$26.useMemo(() => ({
|
|
7387
7387
|
onClick,
|
|
7388
7388
|
onPointerDown
|
|
7389
7389
|
}), [onClick, onPointerDown]);
|
|
7390
7390
|
}
|
|
7391
|
-
var import_react$
|
|
7391
|
+
var import_react$26;
|
|
7392
7392
|
function init_useOpenInteractionType() {
|
|
7393
7393
|
return (init_useOpenInteractionType = __esmMin((() => {
|
|
7394
|
-
import_react$
|
|
7394
|
+
import_react$26 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7395
7395
|
init_useStableCallback();
|
|
7396
7396
|
init_useEnhancedClickHandler();
|
|
7397
7397
|
init_os();
|
|
@@ -7400,16 +7400,16 @@ function init_useOpenInteractionType() {
|
|
|
7400
7400
|
//#endregion
|
|
7401
7401
|
//#region ../../node_modules/@base-ui/react/popover/root/PopoverRootContext.mjs
|
|
7402
7402
|
function usePopoverRootContext(optional) {
|
|
7403
|
-
const context = import_react$
|
|
7403
|
+
const context = import_react$25.useContext(PopoverRootContext);
|
|
7404
7404
|
if (context === void 0 && !optional) throw new Error(formatErrorMessage(47));
|
|
7405
7405
|
return context;
|
|
7406
7406
|
}
|
|
7407
|
-
var import_react$
|
|
7407
|
+
var import_react$25, PopoverRootContext;
|
|
7408
7408
|
function init_PopoverRootContext() {
|
|
7409
7409
|
return (init_PopoverRootContext = __esmMin((() => {
|
|
7410
7410
|
init_formatErrorMessage();
|
|
7411
|
-
import_react$
|
|
7412
|
-
PopoverRootContext = /*#__PURE__*/ import_react$
|
|
7411
|
+
import_react$25 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7412
|
+
PopoverRootContext = /*#__PURE__*/ import_react$25.createContext(void 0);
|
|
7413
7413
|
})))();
|
|
7414
7414
|
}
|
|
7415
7415
|
//#endregion
|
|
@@ -7435,21 +7435,21 @@ function createInitialState(initialState, triggerElements, floatingId, nested =
|
|
|
7435
7435
|
}
|
|
7436
7436
|
function createInitialContext(triggerElements) {
|
|
7437
7437
|
return {
|
|
7438
|
-
popupRef: /*#__PURE__*/ import_react$
|
|
7438
|
+
popupRef: /*#__PURE__*/ import_react$24.createRef(),
|
|
7439
7439
|
onOpenChange: void 0,
|
|
7440
7440
|
onOpenChangeComplete: void 0,
|
|
7441
|
-
triggerFocusTargetRef: /*#__PURE__*/ import_react$
|
|
7442
|
-
beforeTriggerFocusGuardRef: /*#__PURE__*/ import_react$
|
|
7443
|
-
beforeContentFocusGuardRef: /*#__PURE__*/ import_react$
|
|
7441
|
+
triggerFocusTargetRef: /*#__PURE__*/ import_react$24.createRef(),
|
|
7442
|
+
beforeTriggerFocusGuardRef: /*#__PURE__*/ import_react$24.createRef(),
|
|
7443
|
+
beforeContentFocusGuardRef: /*#__PURE__*/ import_react$24.createRef(),
|
|
7444
7444
|
stickIfOpenTimeout: new Timeout(),
|
|
7445
7445
|
stickIfOpen: true,
|
|
7446
7446
|
triggerElements
|
|
7447
7447
|
};
|
|
7448
7448
|
}
|
|
7449
|
-
var import_react$
|
|
7449
|
+
var import_react$24, import_react_dom$1, selectors, PopoverStore;
|
|
7450
7450
|
function init_PopoverStore() {
|
|
7451
7451
|
return (init_PopoverStore = __esmMin((() => {
|
|
7452
|
-
import_react$
|
|
7452
|
+
import_react$24 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7453
7453
|
import_react_dom$1 = /* @__PURE__ */ __toESM(require_react_dom(), 1);
|
|
7454
7454
|
init_ReactStore();
|
|
7455
7455
|
init_useTimeout();
|
|
@@ -7516,7 +7516,7 @@ function PopoverRoot(props) {
|
|
|
7516
7516
|
}
|
|
7517
7517
|
function usePopoverRootStore(handle, initialState) {
|
|
7518
7518
|
const store = usePopupRootStore((floatingId, nested) => new PopoverStore(initialState, floatingId, nested));
|
|
7519
|
-
import_react$
|
|
7519
|
+
import_react$23.useEffect(() => store.context.stickIfOpenTimeout.disposeEffect(), [store]);
|
|
7520
7520
|
return store;
|
|
7521
7521
|
}
|
|
7522
7522
|
function PopoverInteractions({ store, modal }) {
|
|
@@ -7533,10 +7533,10 @@ function PopoverInteractions({ store, modal }) {
|
|
|
7533
7533
|
});
|
|
7534
7534
|
return null;
|
|
7535
7535
|
}
|
|
7536
|
-
var import_react$
|
|
7536
|
+
var import_react$23, import_jsx_runtime$8, PopoverRootComponent;
|
|
7537
7537
|
function init_PopoverRoot() {
|
|
7538
7538
|
return (init_PopoverRoot = __esmMin((() => {
|
|
7539
|
-
import_react$
|
|
7539
|
+
import_react$23 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7540
7540
|
init_fastHooks();
|
|
7541
7541
|
init_useDismiss(), init_FloatingTree();
|
|
7542
7542
|
init_PopoverRootContext();
|
|
@@ -7568,10 +7568,10 @@ function init_PopoverRoot() {
|
|
|
7568
7568
|
store.set("openChangeReason", null);
|
|
7569
7569
|
});
|
|
7570
7570
|
store.useSyncedValues({ modal });
|
|
7571
|
-
import_react$
|
|
7571
|
+
import_react$23.useEffect(() => {
|
|
7572
7572
|
if (!open) store.context.stickIfOpenTimeout.clear();
|
|
7573
7573
|
}, [store, open]);
|
|
7574
|
-
import_react$
|
|
7574
|
+
import_react$23.useImperativeHandle(props.actionsRef, () => ({
|
|
7575
7575
|
unmount: forceUnmount,
|
|
7576
7576
|
close: () => store.setOpen(false, createChangeEventDetails(imperativeAction))
|
|
7577
7577
|
}), [forceUnmount, store]);
|
|
@@ -7638,11 +7638,11 @@ function init_useTriggerFocusGuards() {
|
|
|
7638
7638
|
}
|
|
7639
7639
|
//#endregion
|
|
7640
7640
|
//#region ../../node_modules/@base-ui/react/popover/trigger/PopoverTrigger.mjs
|
|
7641
|
-
var import_react$
|
|
7641
|
+
var import_react$22, import_jsx_runtime$7, PopoverTrigger;
|
|
7642
7642
|
function init_PopoverTrigger() {
|
|
7643
7643
|
return (init_PopoverTrigger = __esmMin((() => {
|
|
7644
7644
|
init_formatErrorMessage();
|
|
7645
|
-
import_react$
|
|
7645
|
+
import_react$22 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7646
7646
|
init_useStableCallback();
|
|
7647
7647
|
init_fastHooks();
|
|
7648
7648
|
init_PopoverRootContext();
|
|
@@ -7667,7 +7667,7 @@ function init_PopoverTrigger() {
|
|
|
7667
7667
|
const floatingContext = store.useState("floatingRootContext");
|
|
7668
7668
|
const isOpenedByThisTrigger = store.useState("isOpenedByTrigger", thisTriggerId);
|
|
7669
7669
|
const popupId = store.useState("triggerPopupId", thisTriggerId);
|
|
7670
|
-
const triggerElementRef = import_react$
|
|
7670
|
+
const triggerElementRef = import_react$22.useRef(null);
|
|
7671
7671
|
const { registerTrigger, isMountedByThisTrigger } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {
|
|
7672
7672
|
payload,
|
|
7673
7673
|
disabled,
|
|
@@ -7730,8 +7730,8 @@ function init_PopoverTrigger() {
|
|
|
7730
7730
|
],
|
|
7731
7731
|
stateAttributesMapping
|
|
7732
7732
|
});
|
|
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$
|
|
7733
|
+
const keyedElement = /*#__PURE__*/ (0, import_jsx_runtime$7.jsx)(import_react$22.Fragment, { children: element }, thisTriggerId);
|
|
7734
|
+
if (hasFocusGuards) return /*#__PURE__*/ (0, import_jsx_runtime$7.jsxs)(import_react$22.Fragment, { children: [
|
|
7735
7735
|
/*#__PURE__*/ (0, import_jsx_runtime$7.jsx)(FocusGuard, {
|
|
7736
7736
|
ref: store.context.beforeTriggerFocusGuardRef,
|
|
7737
7737
|
onFocus: handlePreFocusGuardFocus
|
|
@@ -7749,29 +7749,29 @@ function init_PopoverTrigger() {
|
|
|
7749
7749
|
//#endregion
|
|
7750
7750
|
//#region ../../node_modules/@base-ui/react/popover/portal/PopoverPortalContext.mjs
|
|
7751
7751
|
function usePopoverPortalContext() {
|
|
7752
|
-
const value = import_react$
|
|
7752
|
+
const value = import_react$21.useContext(PopoverPortalContext);
|
|
7753
7753
|
if (value === void 0) throw new Error(formatErrorMessage(45));
|
|
7754
7754
|
return value;
|
|
7755
7755
|
}
|
|
7756
|
-
var import_react$
|
|
7756
|
+
var import_react$21, PopoverPortalContext;
|
|
7757
7757
|
function init_PopoverPortalContext() {
|
|
7758
7758
|
return (init_PopoverPortalContext = __esmMin((() => {
|
|
7759
7759
|
init_formatErrorMessage();
|
|
7760
|
-
import_react$
|
|
7761
|
-
PopoverPortalContext = /*#__PURE__*/ import_react$
|
|
7760
|
+
import_react$21 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7761
|
+
PopoverPortalContext = /*#__PURE__*/ import_react$21.createContext(void 0);
|
|
7762
7762
|
})))();
|
|
7763
7763
|
}
|
|
7764
7764
|
//#endregion
|
|
7765
7765
|
//#region ../../node_modules/@base-ui/react/popover/portal/PopoverPortal.mjs
|
|
7766
|
-
var import_react$
|
|
7766
|
+
var import_react$20, import_jsx_runtime$6, PopoverPortal;
|
|
7767
7767
|
function init_PopoverPortal() {
|
|
7768
7768
|
return (init_PopoverPortal = __esmMin((() => {
|
|
7769
|
-
import_react$
|
|
7769
|
+
import_react$20 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7770
7770
|
init_FloatingPortal();
|
|
7771
7771
|
init_PopoverRootContext();
|
|
7772
7772
|
init_PopoverPortalContext();
|
|
7773
7773
|
import_jsx_runtime$6 = require_jsx_runtime();
|
|
7774
|
-
PopoverPortal = /*#__PURE__*/ import_react$
|
|
7774
|
+
PopoverPortal = /*#__PURE__*/ import_react$20.forwardRef(function PopoverPortal(props, forwardedRef) {
|
|
7775
7775
|
const { keepMounted = false, ...portalProps } = props;
|
|
7776
7776
|
if (!(usePopoverRootContext().useState("mounted") || keepMounted)) return null;
|
|
7777
7777
|
return /*#__PURE__*/ (0, import_jsx_runtime$6.jsx)(PopoverPortalContext.Provider, {
|
|
@@ -7787,16 +7787,16 @@ function init_PopoverPortal() {
|
|
|
7787
7787
|
//#endregion
|
|
7788
7788
|
//#region ../../node_modules/@base-ui/react/popover/positioner/PopoverPositionerContext.mjs
|
|
7789
7789
|
function usePopoverPositionerContext() {
|
|
7790
|
-
const context = import_react$
|
|
7790
|
+
const context = import_react$19.useContext(PopoverPositionerContext);
|
|
7791
7791
|
if (!context) throw new Error(formatErrorMessage(46));
|
|
7792
7792
|
return context;
|
|
7793
7793
|
}
|
|
7794
|
-
var import_react$
|
|
7794
|
+
var import_react$19, PopoverPositionerContext;
|
|
7795
7795
|
function init_PopoverPositionerContext() {
|
|
7796
7796
|
return (init_PopoverPositionerContext = __esmMin((() => {
|
|
7797
7797
|
init_formatErrorMessage();
|
|
7798
|
-
import_react$
|
|
7799
|
-
PopoverPositionerContext = /*#__PURE__*/ import_react$
|
|
7798
|
+
import_react$19 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7799
|
+
PopoverPositionerContext = /*#__PURE__*/ import_react$19.createContext(void 0);
|
|
7800
7800
|
})))();
|
|
7801
7801
|
}
|
|
7802
7802
|
//#endregion
|
|
@@ -7826,8 +7826,8 @@ function init_PopoverPositionerContext() {
|
|
|
7826
7826
|
*/
|
|
7827
7827
|
function useTriggerSwitchTransition(parameters) {
|
|
7828
7828
|
const { store, domReference, positionerElement, open } = parameters;
|
|
7829
|
-
const previousTriggerRef = import_react$
|
|
7830
|
-
const pendingSwitchRef = import_react$
|
|
7829
|
+
const previousTriggerRef = import_react$18.useRef(null);
|
|
7830
|
+
const pendingSwitchRef = import_react$18.useRef(null);
|
|
7831
7831
|
const runOnceAnimationsFinish = useAnimationsFinished(positionerElement);
|
|
7832
7832
|
useIsoLayoutEffect(() => {
|
|
7833
7833
|
if (open) return;
|
|
@@ -7856,10 +7856,10 @@ function useTriggerSwitchTransition(parameters) {
|
|
|
7856
7856
|
store
|
|
7857
7857
|
]);
|
|
7858
7858
|
}
|
|
7859
|
-
var import_react$
|
|
7859
|
+
var import_react$18;
|
|
7860
7860
|
function init_useTriggerSwitchTransition() {
|
|
7861
7861
|
return (init_useTriggerSwitchTransition = __esmMin((() => {
|
|
7862
|
-
import_react$
|
|
7862
|
+
import_react$18 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7863
7863
|
init_useIsoLayoutEffect();
|
|
7864
7864
|
init_useAnimationsFinished();
|
|
7865
7865
|
})))();
|
|
@@ -7872,7 +7872,7 @@ function init_useTriggerSwitchTransition() {
|
|
|
7872
7872
|
* viewport-sized.
|
|
7873
7873
|
*/
|
|
7874
7874
|
function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {
|
|
7875
|
-
const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = import_react$
|
|
7875
|
+
const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = import_react$17.useState(false);
|
|
7876
7876
|
useIsoLayoutEffect(() => {
|
|
7877
7877
|
if (!enabled || !touchOpen || positionerElement == null) {
|
|
7878
7878
|
setTouchOpenShouldLockScroll(false);
|
|
@@ -7888,10 +7888,10 @@ function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, refer
|
|
|
7888
7888
|
]);
|
|
7889
7889
|
useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);
|
|
7890
7890
|
}
|
|
7891
|
-
var import_react$
|
|
7891
|
+
var import_react$17, VIEWPORT_WIDTH_TOLERANCE_PX;
|
|
7892
7892
|
function init_useAnchoredPopupScrollLock() {
|
|
7893
7893
|
return (init_useAnchoredPopupScrollLock = __esmMin((() => {
|
|
7894
|
-
import_react$
|
|
7894
|
+
import_react$17 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7895
7895
|
init_useScrollLock();
|
|
7896
7896
|
init_useIsoLayoutEffect();
|
|
7897
7897
|
VIEWPORT_WIDTH_TOLERANCE_PX = 20;
|
|
@@ -7899,10 +7899,10 @@ function init_useAnchoredPopupScrollLock() {
|
|
|
7899
7899
|
}
|
|
7900
7900
|
//#endregion
|
|
7901
7901
|
//#region ../../node_modules/@base-ui/react/popover/positioner/PopoverPositioner.mjs
|
|
7902
|
-
var import_react$
|
|
7902
|
+
var import_react$16, import_jsx_runtime$5, PopoverPositioner;
|
|
7903
7903
|
function init_PopoverPositioner() {
|
|
7904
7904
|
return (init_PopoverPositioner = __esmMin((() => {
|
|
7905
|
-
import_react$
|
|
7905
|
+
import_react$16 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
7906
7906
|
init_inertValue();
|
|
7907
7907
|
init_FloatingTree();
|
|
7908
7908
|
init_PopoverRootContext();
|
|
@@ -7916,7 +7916,7 @@ function init_PopoverPositioner() {
|
|
|
7916
7916
|
init_usePositioner();
|
|
7917
7917
|
init_useAnchoredPopupScrollLock();
|
|
7918
7918
|
import_jsx_runtime$5 = require_jsx_runtime();
|
|
7919
|
-
PopoverPositioner = /*#__PURE__*/ import_react$
|
|
7919
|
+
PopoverPositioner = /*#__PURE__*/ import_react$16.forwardRef(function PopoverPositioner(componentProps, forwardedRef) {
|
|
7920
7920
|
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
7921
|
const store = usePopoverRootContext();
|
|
7922
7922
|
const keepMounted = usePopoverPortalContext();
|
|
@@ -7989,22 +7989,22 @@ function init_PopoverPositioner() {
|
|
|
7989
7989
|
//#endregion
|
|
7990
7990
|
//#region ../../node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs
|
|
7991
7991
|
function useToolbarRootContext(optional) {
|
|
7992
|
-
const context = import_react$
|
|
7992
|
+
const context = import_react$15.useContext(ToolbarRootContext);
|
|
7993
7993
|
if (context === void 0 && !optional) throw new Error(formatErrorMessage(69));
|
|
7994
7994
|
return context;
|
|
7995
7995
|
}
|
|
7996
|
-
var import_react$
|
|
7996
|
+
var import_react$15, ToolbarRootContext;
|
|
7997
7997
|
function init_ToolbarRootContext() {
|
|
7998
7998
|
return (init_ToolbarRootContext = __esmMin((() => {
|
|
7999
7999
|
init_formatErrorMessage();
|
|
8000
|
-
import_react$
|
|
8001
|
-
ToolbarRootContext = /*#__PURE__*/ import_react$
|
|
8000
|
+
import_react$15 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8001
|
+
ToolbarRootContext = /*#__PURE__*/ import_react$15.createContext(void 0);
|
|
8002
8002
|
})))();
|
|
8003
8003
|
}
|
|
8004
8004
|
//#endregion
|
|
8005
8005
|
//#region ../../node_modules/@base-ui/react/utils/closePart.mjs
|
|
8006
8006
|
function useClosePartCount() {
|
|
8007
|
-
const [closePartCount, setClosePartCount] = import_react$
|
|
8007
|
+
const [closePartCount, setClosePartCount] = import_react$14.useState(0);
|
|
8008
8008
|
const register = useStableCallback(() => {
|
|
8009
8009
|
setClosePartCount((count) => count + 1);
|
|
8010
8010
|
return () => {
|
|
@@ -8012,24 +8012,24 @@ function useClosePartCount() {
|
|
|
8012
8012
|
};
|
|
8013
8013
|
});
|
|
8014
8014
|
return {
|
|
8015
|
-
context: import_react$
|
|
8015
|
+
context: import_react$14.useMemo(() => ({ register }), [register]),
|
|
8016
8016
|
hasClosePart: closePartCount > 0
|
|
8017
8017
|
};
|
|
8018
8018
|
}
|
|
8019
|
-
var import_react$
|
|
8019
|
+
var import_react$14, ClosePartContext;
|
|
8020
8020
|
function init_closePart() {
|
|
8021
8021
|
return (init_closePart = __esmMin((() => {
|
|
8022
|
-
import_react$
|
|
8022
|
+
import_react$14 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8023
8023
|
init_useStableCallback();
|
|
8024
|
-
ClosePartContext = /*#__PURE__*/ import_react$
|
|
8024
|
+
ClosePartContext = /*#__PURE__*/ import_react$14.createContext(void 0);
|
|
8025
8025
|
})))();
|
|
8026
8026
|
}
|
|
8027
8027
|
//#endregion
|
|
8028
8028
|
//#region ../../node_modules/@base-ui/react/popover/popup/PopoverPopup.mjs
|
|
8029
|
-
var import_react$
|
|
8029
|
+
var import_react$13, import_jsx_runtime$4, PopoverPopup;
|
|
8030
8030
|
function init_PopoverPopup() {
|
|
8031
8031
|
return (init_PopoverPopup = __esmMin((() => {
|
|
8032
|
-
import_react$
|
|
8032
|
+
import_react$13 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8033
8033
|
init_floating_ui_utils_dom();
|
|
8034
8034
|
init_FloatingFocusManager(), init_useHoverFloatingInteraction();
|
|
8035
8035
|
init_PopoverRootContext();
|
|
@@ -8044,7 +8044,7 @@ function init_PopoverPopup() {
|
|
|
8044
8044
|
init_closePart();
|
|
8045
8045
|
init_popupStoreUtils();
|
|
8046
8046
|
import_jsx_runtime$4 = require_jsx_runtime();
|
|
8047
|
-
PopoverPopup = /*#__PURE__*/ import_react$
|
|
8047
|
+
PopoverPopup = /*#__PURE__*/ import_react$13.forwardRef(function PopoverPopup(componentProps, forwardedRef) {
|
|
8048
8048
|
const { render, className, style, initialFocus, finalFocus, ...elementProps } = componentProps;
|
|
8049
8049
|
const store = usePopoverRootContext();
|
|
8050
8050
|
const positioner = usePopoverPositionerContext();
|
|
@@ -8132,6 +8132,37 @@ function init_PopoverPopup() {
|
|
|
8132
8132
|
})))();
|
|
8133
8133
|
}
|
|
8134
8134
|
//#endregion
|
|
8135
|
+
//#region ../../node_modules/@base-ui/react/popover/arrow/PopoverArrow.mjs
|
|
8136
|
+
var import_react$12, PopoverArrow;
|
|
8137
|
+
function init_PopoverArrow() {
|
|
8138
|
+
return (init_PopoverArrow = __esmMin((() => {
|
|
8139
|
+
import_react$12 = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8140
|
+
init_PopoverPositionerContext();
|
|
8141
|
+
init_PopoverRootContext();
|
|
8142
|
+
init_popupStateMapping();
|
|
8143
|
+
init_useRenderElement();
|
|
8144
|
+
PopoverArrow = /*#__PURE__*/ import_react$12.forwardRef(function PopoverArrow(componentProps, forwardedRef) {
|
|
8145
|
+
const { render, className, style, ...elementProps } = componentProps;
|
|
8146
|
+
const open = usePopoverRootContext().useState("open");
|
|
8147
|
+
const { arrowRef, side, align, arrowUncentered, arrowStyles } = usePopoverPositionerContext();
|
|
8148
|
+
return useRenderElement("div", componentProps, {
|
|
8149
|
+
state: {
|
|
8150
|
+
open,
|
|
8151
|
+
side,
|
|
8152
|
+
align,
|
|
8153
|
+
uncentered: arrowUncentered
|
|
8154
|
+
},
|
|
8155
|
+
ref: [forwardedRef, arrowRef],
|
|
8156
|
+
props: [{
|
|
8157
|
+
style: arrowStyles,
|
|
8158
|
+
"aria-hidden": true
|
|
8159
|
+
}, elementProps],
|
|
8160
|
+
stateAttributesMapping: popupStateMapping
|
|
8161
|
+
});
|
|
8162
|
+
});
|
|
8163
|
+
})))();
|
|
8164
|
+
}
|
|
8165
|
+
//#endregion
|
|
8135
8166
|
//#region ../../node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs
|
|
8136
8167
|
function useCompositeListContext() {
|
|
8137
8168
|
return import_react$11.useContext(CompositeListContext);
|
|
@@ -9240,4 +9271,4 @@ function init_TabsList() {
|
|
|
9240
9271
|
})))();
|
|
9241
9272
|
}
|
|
9242
9273
|
//#endregion
|
|
9243
|
-
export {
|
|
9274
|
+
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 };
|