@cfxjs/sirius-next-common 0.0.1 → 0.0.2-zg
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/{components/AddressContainer/index.js → chunk-26BGPSLL.js} +30 -40
- package/dist/chunk-26BGPSLL.js.map +1 -0
- package/dist/{chunk-QNPGAFQK.js → chunk-3D3AULGE.js} +4 -4
- package/dist/{chunk-2CWEC36S.js.map → chunk-3D3AULGE.js.map} +1 -1
- package/dist/{chunk-CJQCVR64.js → chunk-3DSBII47.js} +19 -2
- package/dist/chunk-3DSBII47.js.map +1 -0
- package/dist/{chunk-GKAPQ7LN.js → chunk-43RJJ6FE.js} +44 -47
- package/dist/chunk-43RJJ6FE.js.map +1 -0
- package/dist/chunk-65X53DMW.js +47 -0
- package/dist/chunk-65X53DMW.js.map +1 -0
- package/dist/{chunk-AIAFDTQT.js → chunk-7CRUFCGX.js} +35 -20
- package/dist/chunk-7CRUFCGX.js.map +1 -0
- package/dist/chunk-7JJQSXBV.js +141 -0
- package/dist/chunk-7JJQSXBV.js.map +1 -0
- package/dist/chunk-7OAWG2IZ.js +44 -0
- package/dist/chunk-7OAWG2IZ.js.map +1 -0
- package/dist/{chunk-NCT7N5ZO.js → chunk-7SH3YCJ7.js} +98 -4
- package/dist/chunk-7SH3YCJ7.js.map +1 -0
- package/dist/chunk-A7RMNSCW.js +250 -0
- package/dist/chunk-A7RMNSCW.js.map +1 -0
- package/dist/{chunk-JZRCC4Q7.js → chunk-AA66QSDL.js} +30 -6
- package/dist/{chunk-M2WED4GE.js.map → chunk-AA66QSDL.js.map} +1 -1
- package/dist/{chunk-RLZTFLPD.js → chunk-ADPYV4OL.js} +36 -2
- package/dist/chunk-ADPYV4OL.js.map +1 -0
- package/dist/{chunk-54J4VH5Z.js → chunk-AMXXTGCE.js} +30 -6
- package/dist/chunk-AMXXTGCE.js.map +1 -0
- package/dist/chunk-BSSE7DI3.js +257 -0
- package/dist/chunk-BSSE7DI3.js.map +1 -0
- package/dist/chunk-CBLGPZ6N.js +108 -0
- package/dist/chunk-CBLGPZ6N.js.map +1 -0
- package/dist/{chunk-4V4K4OJ4.js → chunk-CDYJDIZL.js} +6 -6
- package/dist/{chunk-4V4K4OJ4.js.map → chunk-CDYJDIZL.js.map} +1 -1
- package/dist/{chunk-OBX6RJEW.js → chunk-CFRPDLWO.js} +1 -1
- package/dist/{chunk-IM77KPX5.js.map → chunk-CFRPDLWO.js.map} +1 -1
- package/dist/{chunk-2CS64Q56.js → chunk-CLGITWOX.js} +43 -18
- package/dist/chunk-CLGITWOX.js.map +1 -0
- package/dist/{chunk-2ONZ5M75.js → chunk-CQLD2WE7.js} +66 -1211
- package/dist/chunk-CQLD2WE7.js.map +1 -0
- package/dist/chunk-CZ3CBSQG.js +141 -0
- package/dist/chunk-CZ3CBSQG.js.map +1 -0
- package/dist/{chunk-MCZT23D6.js → chunk-D3CVJAPF.js} +30 -6
- package/dist/chunk-D3CVJAPF.js.map +1 -0
- package/dist/{chunk-YVIZX6QJ.js → chunk-DOYWQVTM.js} +46 -16
- package/dist/chunk-DOYWQVTM.js.map +1 -0
- package/dist/{chunk-UH5JZYVE.js → chunk-DPSCMWIB.js} +4 -4
- package/dist/{chunk-5AEWLDN5.js.map → chunk-DPSCMWIB.js.map} +1 -1
- package/dist/{chunk-JCVKAQDU.js → chunk-ESE4IOXB.js} +8 -7
- package/dist/chunk-ESE4IOXB.js.map +1 -0
- package/dist/{chunk-LDWHYCAM.js → chunk-EUWX4WGR.js} +9 -3
- package/dist/chunk-EUWX4WGR.js.map +1 -0
- package/dist/{chunk-R5ECXT74.js → chunk-EVCNR7M7.js} +2 -2
- package/dist/{chunk-R5ECXT74.js.map → chunk-EVCNR7M7.js.map} +1 -1
- package/dist/{chunk-6ITBEFLS.js → chunk-GUCQ4F2G.js} +4 -4
- package/dist/{chunk-6ITBEFLS.js.map → chunk-GUCQ4F2G.js.map} +1 -1
- package/dist/{chunk-25QWXIAS.js → chunk-HRW4BUP4.js} +18 -1
- package/dist/chunk-HRW4BUP4.js.map +1 -0
- package/dist/{chunk-M6AOTEU6.js → chunk-HVLEBJG6.js} +30 -6
- package/dist/chunk-HVLEBJG6.js.map +1 -0
- package/dist/{chunk-AEYHX3HP.js → chunk-IEPHKAPT.js} +2 -2
- package/dist/{chunk-ZSP5VMHE.js.map → chunk-IEPHKAPT.js.map} +1 -1
- package/dist/chunk-ILJFYWLB.js +353 -0
- package/dist/chunk-ILJFYWLB.js.map +1 -0
- package/dist/chunk-JUKLHM7G.js +108 -0
- package/dist/chunk-JUKLHM7G.js.map +1 -0
- package/dist/{chunk-DYCUWPED.js → chunk-K3I5KE22.js} +10 -8
- package/dist/chunk-K3I5KE22.js.map +1 -0
- package/dist/chunk-KGSYZCQQ.js +257 -0
- package/dist/chunk-KGSYZCQQ.js.map +1 -0
- package/dist/chunk-KJU5OLS3.js +150 -0
- package/dist/chunk-KJU5OLS3.js.map +1 -0
- package/dist/{chunk-4ZNTVKIA.js → chunk-KSQ43WMM.js} +2 -2
- package/dist/chunk-KTFYV3XJ.js +3629 -0
- package/dist/chunk-KTFYV3XJ.js.map +1 -0
- package/dist/chunk-KVUV4ZYP.js +108 -0
- package/dist/chunk-KVUV4ZYP.js.map +1 -0
- package/dist/{chunk-UBCDOZDY.js → chunk-L7LRX5XU.js} +62 -1218
- package/dist/chunk-L7LRX5XU.js.map +1 -0
- package/dist/{chunk-YO35FTDP.js → chunk-LHGQPHTE.js} +43 -18
- package/dist/chunk-LHGQPHTE.js.map +1 -0
- package/dist/{chunk-AGOKIWZZ.js → chunk-LKVGVLCW.js} +2 -2
- package/dist/chunk-LKVGVLCW.js.map +1 -0
- package/dist/{chunk-5IEZKHNQ.js → chunk-LRCAKRPK.js} +1 -1
- package/dist/{chunk-5IEZKHNQ.js.map → chunk-LRCAKRPK.js.map} +1 -1
- package/dist/{chunk-QEA5CFVU.js → chunk-MWUMNQPB.js} +10 -8
- package/dist/chunk-MWUMNQPB.js.map +1 -0
- package/dist/{chunk-C6QGEHOL.js → chunk-NDCMVJNJ.js} +28 -4
- package/dist/chunk-NDCMVJNJ.js.map +1 -0
- package/dist/{chunk-45GWWTGX.js → chunk-NQNVZ2Y2.js} +43 -18
- package/dist/chunk-NQNVZ2Y2.js.map +1 -0
- package/dist/chunk-NWAEIKOD.js +108 -0
- package/dist/chunk-NWAEIKOD.js.map +1 -0
- package/dist/{chunk-NMFJLSY5.js → chunk-P25K2ZQD.js} +6 -5
- package/dist/chunk-P25K2ZQD.js.map +1 -0
- package/dist/chunk-PH2C43JH.js +257 -0
- package/dist/chunk-PH2C43JH.js.map +1 -0
- package/dist/chunk-PT3E35FJ.js +141 -0
- package/dist/chunk-PT3E35FJ.js.map +1 -0
- package/dist/{chunk-HR2KNVPF.js → chunk-Q6F2K6RX.js} +10 -8
- package/dist/chunk-Q6F2K6RX.js.map +1 -0
- package/dist/chunk-QF5ASUBG.js +3629 -0
- package/dist/chunk-QF5ASUBG.js.map +1 -0
- package/dist/{chunk-WFCK7FPT.js → chunk-QKQG47IV.js} +31 -9
- package/dist/chunk-QKQG47IV.js.map +1 -0
- package/dist/chunk-QXH3T2BM.js +13 -0
- package/dist/chunk-QXH3T2BM.js.map +1 -0
- package/dist/{chunk-NO7KRLGV.js → chunk-RD7ICJJF.js} +8 -7
- package/dist/chunk-RD7ICJJF.js.map +1 -0
- package/dist/{chunk-T7BICPTT.js → chunk-RI63CIWZ.js} +60 -1223
- package/dist/chunk-RI63CIWZ.js.map +1 -0
- package/dist/{chunk-OK7ZHYID.js → chunk-RTUI55OW.js} +37 -21
- package/dist/chunk-RTUI55OW.js.map +1 -0
- package/dist/{chunk-2IQSVQYV.js → chunk-RVARUZVC.js} +3 -3
- package/dist/{chunk-WML236LE.js → chunk-RWMP7K3H.js} +4 -4
- package/dist/{chunk-624443IP.js → chunk-TLC6WXQ6.js} +2 -2
- package/dist/{chunk-624443IP.js.map → chunk-TLC6WXQ6.js.map} +1 -1
- package/dist/{chunk-FXBVUGRI.js → chunk-TOKKKTFG.js} +6 -6
- package/dist/chunk-TOKKKTFG.js.map +1 -0
- package/dist/{chunk-5AEWLDN5.js → chunk-TQ4T3Y2Y.js} +4 -4
- package/dist/{chunk-H3IMRG3I.js.map → chunk-TQ4T3Y2Y.js.map} +1 -1
- package/dist/chunk-TQS322QQ.js +3629 -0
- package/dist/chunk-TQS322QQ.js.map +1 -0
- package/dist/{chunk-AURJNQGW.js → chunk-TXNXFHTS.js} +10 -8
- package/dist/chunk-TXNXFHTS.js.map +1 -0
- package/dist/{chunk-OWEKHXL6.js → chunk-UZEZWJOB.js} +2 -2
- package/dist/{chunk-BU3LY3N5.js.map → chunk-UZEZWJOB.js.map} +1 -1
- package/dist/chunk-VALKQOSX.js +150 -0
- package/dist/chunk-VALKQOSX.js.map +1 -0
- package/dist/{chunk-OYJGSKTU.js → chunk-VGCTU7HB.js} +43 -18
- package/dist/chunk-VGCTU7HB.js.map +1 -0
- package/dist/{chunk-XQHSIGUO.js → chunk-VHHCKHYE.js} +37 -21
- package/dist/chunk-VHHCKHYE.js.map +1 -0
- package/dist/{chunk-BU3LY3N5.js → chunk-VXOIIFIY.js} +2 -2
- package/dist/{chunk-MABMW3F2.js.map → chunk-VXOIIFIY.js.map} +1 -1
- package/dist/{chunk-2SJLVUR5.js → chunk-WPMARG3B.js} +3 -3
- package/dist/{chunk-MABMW3F2.js → chunk-WPQJIRK6.js} +2 -2
- package/dist/{chunk-OWEKHXL6.js.map → chunk-WPQJIRK6.js.map} +1 -1
- package/dist/chunk-XKKCZHHP.js +150 -0
- package/dist/chunk-XKKCZHHP.js.map +1 -0
- package/dist/{chunk-AQPHS44A.js → chunk-XZPP35AP.js} +2 -2
- package/dist/{chunk-AQPHS44A.js.map → chunk-XZPP35AP.js.map} +1 -1
- package/dist/{chunk-APPX7GEO.js → chunk-ZAKHKJLN.js} +3 -3
- package/dist/{chunk-5A2Q4BEC.js.map → chunk-ZAKHKJLN.js.map} +1 -1
- package/dist/{chunk-SQZ7HX2Q.js → chunk-ZRKRTAKY.js} +56 -24
- package/dist/chunk-ZRKRTAKY.js.map +1 -0
- package/dist/components/AddressContainer/CoreAddressContainer.d.ts +8 -0
- package/dist/components/AddressContainer/CoreAddressContainer.js +21 -0
- package/dist/components/AddressContainer/EVMAddressContainer.d.ts +8 -0
- package/dist/components/AddressContainer/EVMAddressContainer.js +19 -0
- package/dist/components/AddressContainer/EVMAddressContainer.js.map +1 -0
- package/dist/components/AddressContainer/addressSwitcher.d.ts +3 -4
- package/dist/components/AddressContainer/addressSwitcher.js +11 -9
- package/dist/components/AddressContainer/addressView.d.ts +0 -3
- package/dist/components/AddressContainer/addressView.js +10 -8
- package/dist/components/AddressContainer/label.js +6 -4
- package/dist/components/AddressContainer/types.d.ts +26 -9
- package/dist/components/Button/BaseButton/index.d.ts +1 -1
- package/dist/components/Button/index.js +4 -4
- package/dist/components/Charts/BreadcrumbNav.js +3 -3
- package/dist/components/Charts/ChartOptions.js +2 -2
- package/dist/components/Charts/PreviewChartTemplate.js +7 -7
- package/dist/components/Charts/PreviewTitle.js +4 -4
- package/dist/components/Charts/StockChartTemplate.js +11 -11
- package/dist/components/Charts/config.d.ts +1 -1
- package/dist/components/CookieTip/index.js +2 -2
- package/dist/components/CopyButton/index.js +8 -8
- package/dist/components/CopyButton/index.js.map +1 -1
- package/dist/components/CountDown/index.js +7 -7
- package/dist/components/CountDown/index.js.map +1 -1
- package/dist/components/Description/index.d.ts +1 -1
- package/dist/components/DownloadCSV/index.js +21 -14
- package/dist/components/DownloadCSV/index.js.map +1 -1
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/Dropdown/index.js.map +1 -1
- package/dist/components/Empty/index.d.ts +1 -1
- package/dist/components/Empty/index.js +1 -1
- package/dist/components/FileUpload/index.js.map +1 -1
- package/dist/components/GasPriceDropdown/index.d.ts +5 -2
- package/dist/components/GasPriceDropdown/index.js +32 -23
- package/dist/components/GasPriceDropdown/index.js.map +1 -1
- package/dist/components/IncreasePercent/Icons.d.ts +6 -0
- package/dist/components/IncreasePercent/Icons.js +9 -0
- package/dist/components/IncreasePercent/Icons.js.map +1 -0
- package/dist/components/IncreasePercent/index.d.ts +20 -0
- package/dist/components/IncreasePercent/index.js +42 -0
- package/dist/components/IncreasePercent/index.js.map +1 -0
- package/dist/components/InfoIconWithTooltip/index.js +5 -2
- package/dist/components/InfoIconWithTooltip/index.js.map +1 -1
- package/dist/components/Link/index.js +2 -2
- package/dist/components/List/index.js +3 -3
- package/dist/components/List/index.js.map +1 -1
- package/dist/components/Modal/index.js +4 -3
- package/dist/components/Price/index.js +7 -6
- package/dist/components/Price/index.js.map +1 -1
- package/dist/components/Remark/index.js +1 -1
- package/dist/components/Select/index.d.ts +3 -1
- package/dist/components/Select/index.js +72 -42
- package/dist/components/Select/index.js.map +1 -1
- package/dist/components/Select/select.d.ts +1 -2
- package/dist/components/Select/select.js +5 -6
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/SkeletonContainer/index.d.ts +1 -1
- package/dist/components/Text/index.d.ts +2 -1
- package/dist/components/Text/index.js +7 -6
- package/dist/components/Tooltip/index.d.ts +3 -2
- package/dist/components/Tooltip/index.js +5 -2
- package/dist/components/TransactionAction/constants.d.ts +6 -0
- package/dist/components/TransactionAction/constants.js +13 -0
- package/dist/components/TransactionAction/constants.js.map +1 -0
- package/dist/components/TransactionAction/coreTransactionAction.d.ts +12 -0
- package/dist/components/TransactionAction/coreTransactionAction.js +332 -0
- package/dist/components/TransactionAction/coreTransactionAction.js.map +1 -0
- package/dist/components/TransactionAction/evmTransactionAction.d.ts +12 -0
- package/dist/components/TransactionAction/evmTransactionAction.js +343 -0
- package/dist/components/TransactionAction/evmTransactionAction.js.map +1 -0
- package/dist/store/index.d.ts +3 -2
- package/dist/store/index.js +5 -3
- package/dist/store/types.d.ts +7 -1
- package/dist/uno.css +26 -12
- package/dist/utils/address.d.ts +36 -21
- package/dist/utils/address.js +35 -23
- package/dist/utils/cache.d.ts +7 -0
- package/dist/utils/cache.js +56 -0
- package/dist/utils/cache.js.map +1 -0
- package/dist/utils/constants.d.ts +2 -1
- package/dist/utils/constants.js +4 -1
- package/dist/utils/ga.d.ts +1 -1
- package/dist/utils/ga.js +1 -1
- package/dist/utils/hooks/useAge.js +2 -1
- package/dist/utils/hooks/useAge.js.map +1 -1
- package/dist/utils/hooks/useENS.js +7 -7
- package/dist/utils/hooks/useGetTxnStatus.d.ts +4 -2
- package/dist/utils/hooks/useGetTxnStatus.js +23 -5
- package/dist/utils/hooks/useGetTxnStatus.js.map +1 -1
- package/dist/utils/index.d.ts +8 -2
- package/dist/utils/index.js +5 -2
- package/dist/utils/media.js +1 -1
- package/dist/utils/request.d.ts +3 -1
- package/dist/utils/request.js +8 -3
- package/dist/utils/rpcRequest.js +4 -3
- package/package.json +20 -19
- package/dist/chunk-25QWXIAS.js.map +0 -1
- package/dist/chunk-2C7IFQEA.js +0 -27
- package/dist/chunk-2CS64Q56.js.map +0 -1
- package/dist/chunk-2CWEC36S.js +0 -53
- package/dist/chunk-2GJPZIIE.js +0 -27
- package/dist/chunk-2IQSVQYV.js.map +0 -1
- package/dist/chunk-2ONZ5M75.js.map +0 -1
- package/dist/chunk-2QKLQSRN.js +0 -176
- package/dist/chunk-2QKLQSRN.js.map +0 -1
- package/dist/chunk-2SJLVUR5.js.map +0 -1
- package/dist/chunk-2TNEFW2L.js +0 -216
- package/dist/chunk-2TNEFW2L.js.map +0 -1
- package/dist/chunk-3X7J72D7.js +0 -100
- package/dist/chunk-3X7J72D7.js.map +0 -1
- package/dist/chunk-45GWWTGX.js.map +0 -1
- package/dist/chunk-45HVL3QX.js +0 -27
- package/dist/chunk-45HVL3QX.js.map +0 -1
- package/dist/chunk-4BMQQQOY.js +0 -216
- package/dist/chunk-4BMQQQOY.js.map +0 -1
- package/dist/chunk-4DOTFHHM.js +0 -27
- package/dist/chunk-4DOTFHHM.js.map +0 -1
- package/dist/chunk-4LQWWDGW.js +0 -707
- package/dist/chunk-4LQWWDGW.js.map +0 -1
- package/dist/chunk-4V7MBDIS.js +0 -25
- package/dist/chunk-4V7MBDIS.js.map +0 -1
- package/dist/chunk-4YULAKSU.js +0 -27
- package/dist/chunk-4YULAKSU.js.map +0 -1
- package/dist/chunk-52EWSX7J.js +0 -27
- package/dist/chunk-52EWSX7J.js.map +0 -1
- package/dist/chunk-54J4VH5Z.js.map +0 -1
- package/dist/chunk-54SPUUOZ.js +0 -27
- package/dist/chunk-54SPUUOZ.js.map +0 -1
- package/dist/chunk-5A2Q4BEC.js +0 -65
- package/dist/chunk-5IE7FJUY.js +0 -22
- package/dist/chunk-5IE7FJUY.js.map +0 -1
- package/dist/chunk-5IGPCDW5.js +0 -60
- package/dist/chunk-5IGPCDW5.js.map +0 -1
- package/dist/chunk-5NHNBLID.js +0 -22
- package/dist/chunk-5NHNBLID.js.map +0 -1
- package/dist/chunk-5S6I7VBP.js +0 -27
- package/dist/chunk-5S6I7VBP.js.map +0 -1
- package/dist/chunk-5V3UMMXJ.js +0 -120
- package/dist/chunk-5V3UMMXJ.js.map +0 -1
- package/dist/chunk-5VHCSEOH.js +0 -179
- package/dist/chunk-5VHCSEOH.js.map +0 -1
- package/dist/chunk-5ZLN3VJU.js +0 -27
- package/dist/chunk-5ZLN3VJU.js.map +0 -1
- package/dist/chunk-653SDFEF.js +0 -27
- package/dist/chunk-653SDFEF.js.map +0 -1
- package/dist/chunk-6A2TFIV6.js +0 -100
- package/dist/chunk-6A2TFIV6.js.map +0 -1
- package/dist/chunk-6CCBKPZA.js +0 -27
- package/dist/chunk-6CCBKPZA.js.map +0 -1
- package/dist/chunk-6FOBETW2.js +0 -46
- package/dist/chunk-6FOBETW2.js.map +0 -1
- package/dist/chunk-6LDPUF6C.js +0 -60
- package/dist/chunk-6LDPUF6C.js.map +0 -1
- package/dist/chunk-6R6YFBB2.js +0 -22
- package/dist/chunk-6R6YFBB2.js.map +0 -1
- package/dist/chunk-6UEVM7Q5.js +0 -22
- package/dist/chunk-6UEVM7Q5.js.map +0 -1
- package/dist/chunk-6Z6JAP4R.js +0 -216
- package/dist/chunk-6Z6JAP4R.js.map +0 -1
- package/dist/chunk-73DPEDDS.js +0 -22
- package/dist/chunk-73DPEDDS.js.map +0 -1
- package/dist/chunk-75JL3FSB.js +0 -22
- package/dist/chunk-75JL3FSB.js.map +0 -1
- package/dist/chunk-7J3MHSMU.js +0 -176
- package/dist/chunk-7J3MHSMU.js.map +0 -1
- package/dist/chunk-7JFLXBAL.js +0 -62
- package/dist/chunk-7JFLXBAL.js.map +0 -1
- package/dist/chunk-7SZUSPWM.js +0 -179
- package/dist/chunk-7SZUSPWM.js.map +0 -1
- package/dist/chunk-7TEFIAEG.js +0 -176
- package/dist/chunk-7TEFIAEG.js.map +0 -1
- package/dist/chunk-7U5APTOH.js +0 -27
- package/dist/chunk-7U5APTOH.js.map +0 -1
- package/dist/chunk-7XAT5SZJ.js +0 -27
- package/dist/chunk-7XAT5SZJ.js.map +0 -1
- package/dist/chunk-A2SOYUX7.js +0 -22
- package/dist/chunk-A2SOYUX7.js.map +0 -1
- package/dist/chunk-A356EUBR.js +0 -27
- package/dist/chunk-A356EUBR.js.map +0 -1
- package/dist/chunk-A63F3M2G.js +0 -22
- package/dist/chunk-A63F3M2G.js.map +0 -1
- package/dist/chunk-A6U63XS7.js +0 -22
- package/dist/chunk-A6U63XS7.js.map +0 -1
- package/dist/chunk-ADTPJ4V5.js +0 -22
- package/dist/chunk-ADTPJ4V5.js.map +0 -1
- package/dist/chunk-AEYHX3HP.js.map +0 -1
- package/dist/chunk-AGOKIWZZ.js.map +0 -1
- package/dist/chunk-AGT5MA6S.js +0 -61
- package/dist/chunk-AGT5MA6S.js.map +0 -1
- package/dist/chunk-AIAFDTQT.js.map +0 -1
- package/dist/chunk-APPX7GEO.js.map +0 -1
- package/dist/chunk-AQ6P63XV.js +0 -36
- package/dist/chunk-AQ6P63XV.js.map +0 -1
- package/dist/chunk-AQUETLB4.js +0 -707
- package/dist/chunk-AQUETLB4.js.map +0 -1
- package/dist/chunk-AURJNQGW.js.map +0 -1
- package/dist/chunk-AXQV56I2.js +0 -22
- package/dist/chunk-AXQV56I2.js.map +0 -1
- package/dist/chunk-AYF5K4JP.js +0 -216
- package/dist/chunk-AYF5K4JP.js.map +0 -1
- package/dist/chunk-AYFCTFCN.js +0 -22
- package/dist/chunk-AYFCTFCN.js.map +0 -1
- package/dist/chunk-BO72SP7F.js +0 -111
- package/dist/chunk-BO72SP7F.js.map +0 -1
- package/dist/chunk-C6QGEHOL.js.map +0 -1
- package/dist/chunk-CBRX2B6Y.js +0 -22
- package/dist/chunk-CBRX2B6Y.js.map +0 -1
- package/dist/chunk-CIJA77I4.js +0 -3459
- package/dist/chunk-CIJA77I4.js.map +0 -1
- package/dist/chunk-CJOYNPNQ.js +0 -22
- package/dist/chunk-CJOYNPNQ.js.map +0 -1
- package/dist/chunk-CJQCVR64.js.map +0 -1
- package/dist/chunk-CXSJ4LQP.js +0 -62
- package/dist/chunk-CXSJ4LQP.js.map +0 -1
- package/dist/chunk-CXZHHWAG.js +0 -93
- package/dist/chunk-CXZHHWAG.js.map +0 -1
- package/dist/chunk-D2KNOIZJ.js +0 -27
- package/dist/chunk-D2KNOIZJ.js.map +0 -1
- package/dist/chunk-DWU7MK5E.js +0 -176
- package/dist/chunk-DWU7MK5E.js.map +0 -1
- package/dist/chunk-DYCUWPED.js.map +0 -1
- package/dist/chunk-E34G4YSV.js +0 -176
- package/dist/chunk-E34G4YSV.js.map +0 -1
- package/dist/chunk-ECJNCBFQ.js +0 -102
- package/dist/chunk-ECJNCBFQ.js.map +0 -1
- package/dist/chunk-ELG6GDH4.js +0 -27
- package/dist/chunk-ELG6GDH4.js.map +0 -1
- package/dist/chunk-ELZCOMBE.js +0 -707
- package/dist/chunk-ELZCOMBE.js.map +0 -1
- package/dist/chunk-ESAPWIDV.js +0 -63
- package/dist/chunk-ESAPWIDV.js.map +0 -1
- package/dist/chunk-EXW5F6NL.js +0 -46
- package/dist/chunk-EXW5F6NL.js.map +0 -1
- package/dist/chunk-F2TMU3AL.js +0 -61
- package/dist/chunk-F2TMU3AL.js.map +0 -1
- package/dist/chunk-F2UNHDUR.js +0 -16
- package/dist/chunk-F2UNHDUR.js.map +0 -1
- package/dist/chunk-FAGFAIUU.js +0 -27
- package/dist/chunk-FAGFAIUU.js.map +0 -1
- package/dist/chunk-FCMOSB7E.js +0 -65
- package/dist/chunk-FCMOSB7E.js.map +0 -1
- package/dist/chunk-FLVGMPHV.js +0 -216
- package/dist/chunk-FLVGMPHV.js.map +0 -1
- package/dist/chunk-FSLH4MIP.js +0 -62
- package/dist/chunk-FSLH4MIP.js.map +0 -1
- package/dist/chunk-FXBVUGRI.js.map +0 -1
- package/dist/chunk-G24D2NRU.js +0 -22
- package/dist/chunk-G24D2NRU.js.map +0 -1
- package/dist/chunk-GKAPQ7LN.js.map +0 -1
- package/dist/chunk-GUHILBGR.js +0 -63
- package/dist/chunk-GUHILBGR.js.map +0 -1
- package/dist/chunk-H3IMRG3I.js +0 -53
- package/dist/chunk-HA7FJBYQ.js +0 -60
- package/dist/chunk-HA7FJBYQ.js.map +0 -1
- package/dist/chunk-HBVMUDIG.js +0 -46
- package/dist/chunk-HBVMUDIG.js.map +0 -1
- package/dist/chunk-HOA5BC7S.js +0 -27
- package/dist/chunk-HOA5BC7S.js.map +0 -1
- package/dist/chunk-HR2KNVPF.js.map +0 -1
- package/dist/chunk-I3WPTSFO.js +0 -179
- package/dist/chunk-I3WPTSFO.js.map +0 -1
- package/dist/chunk-IB7T4CUM.js +0 -3459
- package/dist/chunk-IB7T4CUM.js.map +0 -1
- package/dist/chunk-ICXZGCLG.js +0 -120
- package/dist/chunk-ICXZGCLG.js.map +0 -1
- package/dist/chunk-IJ4UPXWM.js +0 -35
- package/dist/chunk-IJ4UPXWM.js.map +0 -1
- package/dist/chunk-ILQXEOSB.js +0 -61
- package/dist/chunk-ILQXEOSB.js.map +0 -1
- package/dist/chunk-IM77KPX5.js +0 -78
- package/dist/chunk-IS76X5TE.js +0 -100
- package/dist/chunk-IS76X5TE.js.map +0 -1
- package/dist/chunk-J5NPC6NJ.js +0 -27
- package/dist/chunk-J5NPC6NJ.js.map +0 -1
- package/dist/chunk-JACMNCWT.js +0 -215
- package/dist/chunk-JACMNCWT.js.map +0 -1
- package/dist/chunk-JCVKAQDU.js.map +0 -1
- package/dist/chunk-JO46BYJI.js +0 -93
- package/dist/chunk-JO46BYJI.js.map +0 -1
- package/dist/chunk-JO5JHISS.js +0 -93
- package/dist/chunk-JO5JHISS.js.map +0 -1
- package/dist/chunk-JOYMTLWQ.js +0 -176
- package/dist/chunk-JOYMTLWQ.js.map +0 -1
- package/dist/chunk-JQXQDMRC.js +0 -61
- package/dist/chunk-JQXQDMRC.js.map +0 -1
- package/dist/chunk-JRAFUCCF.js +0 -22
- package/dist/chunk-JRAFUCCF.js.map +0 -1
- package/dist/chunk-JTZF2MUU.js +0 -27
- package/dist/chunk-JTZF2MUU.js.map +0 -1
- package/dist/chunk-JZRCC4Q7.js.map +0 -1
- package/dist/chunk-KAGD5CB6.js +0 -100
- package/dist/chunk-KAGD5CB6.js.map +0 -1
- package/dist/chunk-KAPSY6QS.js +0 -27
- package/dist/chunk-KAPSY6QS.js.map +0 -1
- package/dist/chunk-KK7XFZMX.js +0 -46
- package/dist/chunk-KK7XFZMX.js.map +0 -1
- package/dist/chunk-KKIH2YPS.js +0 -27
- package/dist/chunk-KKIH2YPS.js.map +0 -1
- package/dist/chunk-KMV3NISR.js +0 -65
- package/dist/chunk-KMV3NISR.js.map +0 -1
- package/dist/chunk-KSSYWOD6.js +0 -93
- package/dist/chunk-KSSYWOD6.js.map +0 -1
- package/dist/chunk-L2JESTXK.js +0 -62
- package/dist/chunk-L2JESTXK.js.map +0 -1
- package/dist/chunk-LDWHYCAM.js.map +0 -1
- package/dist/chunk-LHGVVIEZ.js +0 -707
- package/dist/chunk-LHGVVIEZ.js.map +0 -1
- package/dist/chunk-LJWHSXL5.js +0 -61
- package/dist/chunk-LJWHSXL5.js.map +0 -1
- package/dist/chunk-LRRZQJVV.js +0 -216
- package/dist/chunk-LRRZQJVV.js.map +0 -1
- package/dist/chunk-LYI4EQZ3.js +0 -120
- package/dist/chunk-LYI4EQZ3.js.map +0 -1
- package/dist/chunk-M2WED4GE.js +0 -107
- package/dist/chunk-M4L4LFJJ.js +0 -22
- package/dist/chunk-M4L4LFJJ.js.map +0 -1
- package/dist/chunk-M6AOTEU6.js.map +0 -1
- package/dist/chunk-MCZT23D6.js.map +0 -1
- package/dist/chunk-MH7KB7D2.js +0 -27
- package/dist/chunk-MH7KB7D2.js.map +0 -1
- package/dist/chunk-MSQQRS5T.js +0 -63
- package/dist/chunk-MSQQRS5T.js.map +0 -1
- package/dist/chunk-MZRFBOWD.js +0 -22
- package/dist/chunk-MZRFBOWD.js.map +0 -1
- package/dist/chunk-N6V3EZQS.js +0 -46
- package/dist/chunk-N6V3EZQS.js.map +0 -1
- package/dist/chunk-NCT7N5ZO.js.map +0 -1
- package/dist/chunk-NFAJYSI7.js +0 -27
- package/dist/chunk-NFAJYSI7.js.map +0 -1
- package/dist/chunk-NMFJLSY5.js.map +0 -1
- package/dist/chunk-NO7KRLGV.js.map +0 -1
- package/dist/chunk-NWSIXBRD.js +0 -93
- package/dist/chunk-NWSIXBRD.js.map +0 -1
- package/dist/chunk-O4QARNTB.js +0 -179
- package/dist/chunk-O4QARNTB.js.map +0 -1
- package/dist/chunk-OBX6RJEW.js.map +0 -1
- package/dist/chunk-OK7ZHYID.js.map +0 -1
- package/dist/chunk-ONRPKCIB.js +0 -27
- package/dist/chunk-ONRPKCIB.js.map +0 -1
- package/dist/chunk-OTMKUAHM.js +0 -60
- package/dist/chunk-OTMKUAHM.js.map +0 -1
- package/dist/chunk-OYJGSKTU.js.map +0 -1
- package/dist/chunk-P3STXDCF.js +0 -119
- package/dist/chunk-P3STXDCF.js.map +0 -1
- package/dist/chunk-PDGP7SBR.js +0 -43
- package/dist/chunk-PDGP7SBR.js.map +0 -1
- package/dist/chunk-PWBOQ74R.js +0 -22
- package/dist/chunk-PWBOQ74R.js.map +0 -1
- package/dist/chunk-Q7C37EMA.js +0 -93
- package/dist/chunk-Q7C37EMA.js.map +0 -1
- package/dist/chunk-QEA5CFVU.js.map +0 -1
- package/dist/chunk-QGFBNI4G.js +0 -22
- package/dist/chunk-QGFBNI4G.js.map +0 -1
- package/dist/chunk-QI52IGHS.js +0 -27
- package/dist/chunk-QI52IGHS.js.map +0 -1
- package/dist/chunk-QNPGAFQK.js.map +0 -1
- package/dist/chunk-R66RPCTU.js +0 -27
- package/dist/chunk-R66RPCTU.js.map +0 -1
- package/dist/chunk-R6JXPAOX.js +0 -50
- package/dist/chunk-R6JXPAOX.js.map +0 -1
- package/dist/chunk-RLWYAD7T.js +0 -27
- package/dist/chunk-RLWYAD7T.js.map +0 -1
- package/dist/chunk-RLZTFLPD.js.map +0 -1
- package/dist/chunk-ROAIYVDT.js +0 -22
- package/dist/chunk-ROAIYVDT.js.map +0 -1
- package/dist/chunk-RRIL2F7M.js +0 -100
- package/dist/chunk-RRIL2F7M.js.map +0 -1
- package/dist/chunk-RV66XRFR.js +0 -111
- package/dist/chunk-RV66XRFR.js.map +0 -1
- package/dist/chunk-RVRQ2255.js +0 -60
- package/dist/chunk-RVRQ2255.js.map +0 -1
- package/dist/chunk-S4JJPIDW.js +0 -22
- package/dist/chunk-S4JJPIDW.js.map +0 -1
- package/dist/chunk-SCXHS4HO.js +0 -709
- package/dist/chunk-SCXHS4HO.js.map +0 -1
- package/dist/chunk-SI5YJXRM.js +0 -709
- package/dist/chunk-SI5YJXRM.js.map +0 -1
- package/dist/chunk-SQZ7HX2Q.js.map +0 -1
- package/dist/chunk-T5PU6MYN.js +0 -22
- package/dist/chunk-T5PU6MYN.js.map +0 -1
- package/dist/chunk-T7BICPTT.js.map +0 -1
- package/dist/chunk-TGINZWRL.js +0 -27
- package/dist/chunk-TGINZWRL.js.map +0 -1
- package/dist/chunk-TJ6J4LRS.js +0 -22
- package/dist/chunk-TJ6J4LRS.js.map +0 -1
- package/dist/chunk-TS7XJ6JK.js +0 -22
- package/dist/chunk-TS7XJ6JK.js.map +0 -1
- package/dist/chunk-TU4M4EAJ.js +0 -177
- package/dist/chunk-TU4M4EAJ.js.map +0 -1
- package/dist/chunk-TZ25WIJN.js +0 -27
- package/dist/chunk-TZ25WIJN.js.map +0 -1
- package/dist/chunk-U3JDCY6F.js +0 -100
- package/dist/chunk-U3JDCY6F.js.map +0 -1
- package/dist/chunk-UBCDOZDY.js.map +0 -1
- package/dist/chunk-UDM4PGUT.js +0 -62
- package/dist/chunk-UDM4PGUT.js.map +0 -1
- package/dist/chunk-UH5JZYVE.js.map +0 -1
- package/dist/chunk-ULQ2DZPS.js +0 -22
- package/dist/chunk-ULQ2DZPS.js.map +0 -1
- package/dist/chunk-UQLL5CUW.js +0 -112
- package/dist/chunk-UQLL5CUW.js.map +0 -1
- package/dist/chunk-UT4JDBL4.js +0 -61
- package/dist/chunk-UT4JDBL4.js.map +0 -1
- package/dist/chunk-UV6SB23I.js +0 -27
- package/dist/chunk-UV6SB23I.js.map +0 -1
- package/dist/chunk-V5QBEPMZ.js +0 -763
- package/dist/chunk-V5QBEPMZ.js.map +0 -1
- package/dist/chunk-V75DEMU4.js +0 -27
- package/dist/chunk-V75DEMU4.js.map +0 -1
- package/dist/chunk-VF7HI7RV.js +0 -22
- package/dist/chunk-VF7HI7RV.js.map +0 -1
- package/dist/chunk-W6E7LNDA.js +0 -61
- package/dist/chunk-W6E7LNDA.js.map +0 -1
- package/dist/chunk-WATQ7EQT.js +0 -22
- package/dist/chunk-WATQ7EQT.js.map +0 -1
- package/dist/chunk-WDM5CTLH.js +0 -3459
- package/dist/chunk-WDM5CTLH.js.map +0 -1
- package/dist/chunk-WDQ2AOIO.js +0 -61
- package/dist/chunk-WDQ2AOIO.js.map +0 -1
- package/dist/chunk-WFCK7FPT.js.map +0 -1
- package/dist/chunk-WIAW4POL.js +0 -22
- package/dist/chunk-WIAW4POL.js.map +0 -1
- package/dist/chunk-WLKMIQSZ.js +0 -22
- package/dist/chunk-WLKMIQSZ.js.map +0 -1
- package/dist/chunk-WM2V2ZCY.js +0 -100
- package/dist/chunk-WM2V2ZCY.js.map +0 -1
- package/dist/chunk-X34QEZHK.js +0 -61
- package/dist/chunk-X34QEZHK.js.map +0 -1
- package/dist/chunk-X4Y3E73B.js +0 -107
- package/dist/chunk-X4Y3E73B.js.map +0 -1
- package/dist/chunk-XQHSIGUO.js.map +0 -1
- package/dist/chunk-Y4M2WIUH.js +0 -27
- package/dist/chunk-Y4M2WIUH.js.map +0 -1
- package/dist/chunk-YDGIQMYG.js +0 -37
- package/dist/chunk-YDGIQMYG.js.map +0 -1
- package/dist/chunk-YK5KNGDQ.js +0 -61
- package/dist/chunk-YK5KNGDQ.js.map +0 -1
- package/dist/chunk-YMHY5AZC.js +0 -22
- package/dist/chunk-YMHY5AZC.js.map +0 -1
- package/dist/chunk-YO35FTDP.js.map +0 -1
- package/dist/chunk-YRCX5J3B.js +0 -22
- package/dist/chunk-YRCX5J3B.js.map +0 -1
- package/dist/chunk-YVIZX6QJ.js.map +0 -1
- package/dist/chunk-Z2Z6JPLB.js +0 -27
- package/dist/chunk-Z2Z6JPLB.js.map +0 -1
- package/dist/chunk-ZCC5UWKB.js +0 -61
- package/dist/chunk-ZCC5UWKB.js.map +0 -1
- package/dist/chunk-ZDW2WA4O.js +0 -61
- package/dist/chunk-ZDW2WA4O.js.map +0 -1
- package/dist/chunk-ZSP5VMHE.js +0 -61
- package/dist/chunk-ZWGO3274.js +0 -27
- package/dist/chunk-ZWGO3274.js.map +0 -1
- package/dist/chunk-ZXZQSDM4.js +0 -112
- package/dist/chunk-ZXZQSDM4.js.map +0 -1
- package/dist/components/AddressContainer/index.d.ts +0 -11
- package/dist/components/AddressContainer/index.js.map +0 -1
- package/dist/components/Loading/head.png.png +0 -0
- package/dist/components/Loading/loading.js.js +0 -7
- package/dist/components/SkeletonContainer copy/index.js +0 -18
- package/dist/components/SkeletonContainer copy/index.js.map +0 -1
- package/dist/head-QBKK4MAD.png +0 -0
- package/dist/loading-header-QBKK4MAD.png +0 -0
- /package/dist/{chunk-4ZNTVKIA.js.map → chunk-KSQ43WMM.js.map} +0 -0
- /package/dist/{chunk-2C7IFQEA.js.map → chunk-RVARUZVC.js.map} +0 -0
- /package/dist/{chunk-WML236LE.js.map → chunk-RWMP7K3H.js.map} +0 -0
- /package/dist/{chunk-2GJPZIIE.js.map → chunk-WPMARG3B.js.map} +0 -0
- /package/dist/components/{Loading/loading.js.js.map → AddressContainer/CoreAddressContainer.js.map} +0 -0
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
arrow,
|
|
3
|
+
computePosition,
|
|
4
|
+
flip,
|
|
5
|
+
getOverflowAncestors,
|
|
6
|
+
offset,
|
|
7
|
+
shift,
|
|
8
|
+
size
|
|
9
|
+
} from "./chunk-LRCAKRPK.js";
|
|
10
|
+
import {
|
|
11
|
+
cn
|
|
12
|
+
} from "./chunk-NDCMVJNJ.js";
|
|
13
|
+
|
|
14
|
+
// src/components/Tooltip/index.tsx
|
|
15
|
+
import {
|
|
16
|
+
useRef as useRef4
|
|
17
|
+
} from "react";
|
|
18
|
+
|
|
1
19
|
// ../../node_modules/.pnpm/@cfx-kit+ui-components@0.0.17_@zag-js+accordion@0.19.1_@zag-js+checkbox@0.19.1_@zag-js+dialog_fmko2yy6bkfybbxu2fwkms7fpm/node_modules/@cfx-kit/ui-components/dist/chunk-G2ADBYYC.js
|
|
2
20
|
var __defProp = Object.defineProperty;
|
|
3
21
|
var __defProps = Object.defineProperties;
|
|
@@ -131,1209 +149,6 @@ function raf(fn) {
|
|
|
131
149
|
};
|
|
132
150
|
}
|
|
133
151
|
|
|
134
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
135
|
-
var min = Math.min;
|
|
136
|
-
var max = Math.max;
|
|
137
|
-
var oppositeSideMap = {
|
|
138
|
-
left: "right",
|
|
139
|
-
right: "left",
|
|
140
|
-
bottom: "top",
|
|
141
|
-
top: "bottom"
|
|
142
|
-
};
|
|
143
|
-
var oppositeAlignmentMap = {
|
|
144
|
-
start: "end",
|
|
145
|
-
end: "start"
|
|
146
|
-
};
|
|
147
|
-
function clamp(start, value, end) {
|
|
148
|
-
return max(start, min(value, end));
|
|
149
|
-
}
|
|
150
|
-
function evaluate(value, param) {
|
|
151
|
-
return typeof value === "function" ? value(param) : value;
|
|
152
|
-
}
|
|
153
|
-
function getSide(placement) {
|
|
154
|
-
return placement.split("-")[0];
|
|
155
|
-
}
|
|
156
|
-
function getAlignment(placement) {
|
|
157
|
-
return placement.split("-")[1];
|
|
158
|
-
}
|
|
159
|
-
function getOppositeAxis(axis) {
|
|
160
|
-
return axis === "x" ? "y" : "x";
|
|
161
|
-
}
|
|
162
|
-
function getAxisLength(axis) {
|
|
163
|
-
return axis === "y" ? "height" : "width";
|
|
164
|
-
}
|
|
165
|
-
function getSideAxis(placement) {
|
|
166
|
-
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
|
167
|
-
}
|
|
168
|
-
function getAlignmentAxis(placement) {
|
|
169
|
-
return getOppositeAxis(getSideAxis(placement));
|
|
170
|
-
}
|
|
171
|
-
function getAlignmentSides(placement, rects, rtl) {
|
|
172
|
-
if (rtl === void 0) {
|
|
173
|
-
rtl = false;
|
|
174
|
-
}
|
|
175
|
-
const alignment = getAlignment(placement);
|
|
176
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
177
|
-
const length = getAxisLength(alignmentAxis);
|
|
178
|
-
let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
|
|
179
|
-
if (rects.reference[length] > rects.floating[length]) {
|
|
180
|
-
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
181
|
-
}
|
|
182
|
-
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
183
|
-
}
|
|
184
|
-
function getExpandedPlacements(placement) {
|
|
185
|
-
const oppositePlacement = getOppositePlacement(placement);
|
|
186
|
-
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
187
|
-
}
|
|
188
|
-
function getOppositeAlignmentPlacement(placement) {
|
|
189
|
-
return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
|
|
190
|
-
}
|
|
191
|
-
function getSideList(side, isStart, rtl) {
|
|
192
|
-
const lr = ["left", "right"];
|
|
193
|
-
const rl = ["right", "left"];
|
|
194
|
-
const tb = ["top", "bottom"];
|
|
195
|
-
const bt = ["bottom", "top"];
|
|
196
|
-
switch (side) {
|
|
197
|
-
case "top":
|
|
198
|
-
case "bottom":
|
|
199
|
-
if (rtl)
|
|
200
|
-
return isStart ? rl : lr;
|
|
201
|
-
return isStart ? lr : rl;
|
|
202
|
-
case "left":
|
|
203
|
-
case "right":
|
|
204
|
-
return isStart ? tb : bt;
|
|
205
|
-
default:
|
|
206
|
-
return [];
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
210
|
-
const alignment = getAlignment(placement);
|
|
211
|
-
let list = getSideList(getSide(placement), direction === "start", rtl);
|
|
212
|
-
if (alignment) {
|
|
213
|
-
list = list.map((side) => side + "-" + alignment);
|
|
214
|
-
if (flipAlignment) {
|
|
215
|
-
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return list;
|
|
219
|
-
}
|
|
220
|
-
function getOppositePlacement(placement) {
|
|
221
|
-
return placement.replace(/left|right|bottom|top/g, (side) => oppositeSideMap[side]);
|
|
222
|
-
}
|
|
223
|
-
function expandPaddingObject(padding) {
|
|
224
|
-
return {
|
|
225
|
-
top: 0,
|
|
226
|
-
right: 0,
|
|
227
|
-
bottom: 0,
|
|
228
|
-
left: 0,
|
|
229
|
-
...padding
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
function getPaddingObject(padding) {
|
|
233
|
-
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
|
234
|
-
top: padding,
|
|
235
|
-
right: padding,
|
|
236
|
-
bottom: padding,
|
|
237
|
-
left: padding
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
function rectToClientRect(rect) {
|
|
241
|
-
return {
|
|
242
|
-
...rect,
|
|
243
|
-
top: rect.y,
|
|
244
|
-
left: rect.x,
|
|
245
|
-
right: rect.x + rect.width,
|
|
246
|
-
bottom: rect.y + rect.height
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// ../../node_modules/.pnpm/@floating-ui+core@1.6.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
251
|
-
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
252
|
-
let {
|
|
253
|
-
reference,
|
|
254
|
-
floating
|
|
255
|
-
} = _ref;
|
|
256
|
-
const sideAxis = getSideAxis(placement);
|
|
257
|
-
const alignmentAxis = getAlignmentAxis(placement);
|
|
258
|
-
const alignLength = getAxisLength(alignmentAxis);
|
|
259
|
-
const side = getSide(placement);
|
|
260
|
-
const isVertical = sideAxis === "y";
|
|
261
|
-
const commonX = reference.x + reference.width / 2 - floating.width / 2;
|
|
262
|
-
const commonY = reference.y + reference.height / 2 - floating.height / 2;
|
|
263
|
-
const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
|
|
264
|
-
let coords;
|
|
265
|
-
switch (side) {
|
|
266
|
-
case "top":
|
|
267
|
-
coords = {
|
|
268
|
-
x: commonX,
|
|
269
|
-
y: reference.y - floating.height
|
|
270
|
-
};
|
|
271
|
-
break;
|
|
272
|
-
case "bottom":
|
|
273
|
-
coords = {
|
|
274
|
-
x: commonX,
|
|
275
|
-
y: reference.y + reference.height
|
|
276
|
-
};
|
|
277
|
-
break;
|
|
278
|
-
case "right":
|
|
279
|
-
coords = {
|
|
280
|
-
x: reference.x + reference.width,
|
|
281
|
-
y: commonY
|
|
282
|
-
};
|
|
283
|
-
break;
|
|
284
|
-
case "left":
|
|
285
|
-
coords = {
|
|
286
|
-
x: reference.x - floating.width,
|
|
287
|
-
y: commonY
|
|
288
|
-
};
|
|
289
|
-
break;
|
|
290
|
-
default:
|
|
291
|
-
coords = {
|
|
292
|
-
x: reference.x,
|
|
293
|
-
y: reference.y
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
switch (getAlignment(placement)) {
|
|
297
|
-
case "start":
|
|
298
|
-
coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
|
|
299
|
-
break;
|
|
300
|
-
case "end":
|
|
301
|
-
coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
|
|
302
|
-
break;
|
|
303
|
-
}
|
|
304
|
-
return coords;
|
|
305
|
-
}
|
|
306
|
-
var computePosition = async (reference, floating, config) => {
|
|
307
|
-
const {
|
|
308
|
-
placement = "bottom",
|
|
309
|
-
strategy = "absolute",
|
|
310
|
-
middleware = [],
|
|
311
|
-
platform: platform2
|
|
312
|
-
} = config;
|
|
313
|
-
const validMiddleware = middleware.filter(Boolean);
|
|
314
|
-
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(floating));
|
|
315
|
-
let rects = await platform2.getElementRects({
|
|
316
|
-
reference,
|
|
317
|
-
floating,
|
|
318
|
-
strategy
|
|
319
|
-
});
|
|
320
|
-
let {
|
|
321
|
-
x,
|
|
322
|
-
y: y2
|
|
323
|
-
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
324
|
-
let statefulPlacement = placement;
|
|
325
|
-
let middlewareData = {};
|
|
326
|
-
let resetCount = 0;
|
|
327
|
-
for (let i2 = 0; i2 < validMiddleware.length; i2++) {
|
|
328
|
-
const {
|
|
329
|
-
name,
|
|
330
|
-
fn
|
|
331
|
-
} = validMiddleware[i2];
|
|
332
|
-
const {
|
|
333
|
-
x: nextX,
|
|
334
|
-
y: nextY,
|
|
335
|
-
data,
|
|
336
|
-
reset
|
|
337
|
-
} = await fn({
|
|
338
|
-
x,
|
|
339
|
-
y: y2,
|
|
340
|
-
initialPlacement: placement,
|
|
341
|
-
placement: statefulPlacement,
|
|
342
|
-
strategy,
|
|
343
|
-
middlewareData,
|
|
344
|
-
rects,
|
|
345
|
-
platform: platform2,
|
|
346
|
-
elements: {
|
|
347
|
-
reference,
|
|
348
|
-
floating
|
|
349
|
-
}
|
|
350
|
-
});
|
|
351
|
-
x = nextX != null ? nextX : x;
|
|
352
|
-
y2 = nextY != null ? nextY : y2;
|
|
353
|
-
middlewareData = {
|
|
354
|
-
...middlewareData,
|
|
355
|
-
[name]: {
|
|
356
|
-
...middlewareData[name],
|
|
357
|
-
...data
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
if (reset && resetCount <= 50) {
|
|
361
|
-
resetCount++;
|
|
362
|
-
if (typeof reset === "object") {
|
|
363
|
-
if (reset.placement) {
|
|
364
|
-
statefulPlacement = reset.placement;
|
|
365
|
-
}
|
|
366
|
-
if (reset.rects) {
|
|
367
|
-
rects = reset.rects === true ? await platform2.getElementRects({
|
|
368
|
-
reference,
|
|
369
|
-
floating,
|
|
370
|
-
strategy
|
|
371
|
-
}) : reset.rects;
|
|
372
|
-
}
|
|
373
|
-
({
|
|
374
|
-
x,
|
|
375
|
-
y: y2
|
|
376
|
-
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
377
|
-
}
|
|
378
|
-
i2 = -1;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
return {
|
|
382
|
-
x,
|
|
383
|
-
y: y2,
|
|
384
|
-
placement: statefulPlacement,
|
|
385
|
-
strategy,
|
|
386
|
-
middlewareData
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
async function detectOverflow(state, options) {
|
|
390
|
-
var _await$platform$isEle;
|
|
391
|
-
if (options === void 0) {
|
|
392
|
-
options = {};
|
|
393
|
-
}
|
|
394
|
-
const {
|
|
395
|
-
x,
|
|
396
|
-
y: y2,
|
|
397
|
-
platform: platform2,
|
|
398
|
-
rects,
|
|
399
|
-
elements,
|
|
400
|
-
strategy
|
|
401
|
-
} = state;
|
|
402
|
-
const {
|
|
403
|
-
boundary = "clippingAncestors",
|
|
404
|
-
rootBoundary = "viewport",
|
|
405
|
-
elementContext = "floating",
|
|
406
|
-
altBoundary = false,
|
|
407
|
-
padding = 0
|
|
408
|
-
} = evaluate(options, state);
|
|
409
|
-
const paddingObject = getPaddingObject(padding);
|
|
410
|
-
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
411
|
-
const element = elements[altBoundary ? altContext : elementContext];
|
|
412
|
-
const clippingClientRect = rectToClientRect(await platform2.getClippingRect({
|
|
413
|
-
element: ((_await$platform$isEle = await (platform2.isElement == null ? void 0 : platform2.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform2.getDocumentElement == null ? void 0 : platform2.getDocumentElement(elements.floating)),
|
|
414
|
-
boundary,
|
|
415
|
-
rootBoundary,
|
|
416
|
-
strategy
|
|
417
|
-
}));
|
|
418
|
-
const rect = elementContext === "floating" ? {
|
|
419
|
-
...rects.floating,
|
|
420
|
-
x,
|
|
421
|
-
y: y2
|
|
422
|
-
} : rects.reference;
|
|
423
|
-
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
424
|
-
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
425
|
-
x: 1,
|
|
426
|
-
y: 1
|
|
427
|
-
} : {
|
|
428
|
-
x: 1,
|
|
429
|
-
y: 1
|
|
430
|
-
};
|
|
431
|
-
const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
432
|
-
elements,
|
|
433
|
-
rect,
|
|
434
|
-
offsetParent,
|
|
435
|
-
strategy
|
|
436
|
-
}) : rect);
|
|
437
|
-
return {
|
|
438
|
-
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
439
|
-
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
440
|
-
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
441
|
-
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
var arrow = (options) => ({
|
|
445
|
-
name: "arrow",
|
|
446
|
-
options,
|
|
447
|
-
async fn(state) {
|
|
448
|
-
const {
|
|
449
|
-
x,
|
|
450
|
-
y: y2,
|
|
451
|
-
placement,
|
|
452
|
-
rects,
|
|
453
|
-
platform: platform2,
|
|
454
|
-
elements,
|
|
455
|
-
middlewareData
|
|
456
|
-
} = state;
|
|
457
|
-
const {
|
|
458
|
-
element,
|
|
459
|
-
padding = 0
|
|
460
|
-
} = evaluate(options, state) || {};
|
|
461
|
-
if (element == null) {
|
|
462
|
-
return {};
|
|
463
|
-
}
|
|
464
|
-
const paddingObject = getPaddingObject(padding);
|
|
465
|
-
const coords = {
|
|
466
|
-
x,
|
|
467
|
-
y: y2
|
|
468
|
-
};
|
|
469
|
-
const axis = getAlignmentAxis(placement);
|
|
470
|
-
const length = getAxisLength(axis);
|
|
471
|
-
const arrowDimensions = await platform2.getDimensions(element);
|
|
472
|
-
const isYAxis = axis === "y";
|
|
473
|
-
const minProp = isYAxis ? "top" : "left";
|
|
474
|
-
const maxProp = isYAxis ? "bottom" : "right";
|
|
475
|
-
const clientProp = isYAxis ? "clientHeight" : "clientWidth";
|
|
476
|
-
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
477
|
-
const startDiff = coords[axis] - rects.reference[axis];
|
|
478
|
-
const arrowOffsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(element));
|
|
479
|
-
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
480
|
-
if (!clientSize || !await (platform2.isElement == null ? void 0 : platform2.isElement(arrowOffsetParent))) {
|
|
481
|
-
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
482
|
-
}
|
|
483
|
-
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
484
|
-
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
485
|
-
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
486
|
-
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
487
|
-
const min$1 = minPadding;
|
|
488
|
-
const max3 = clientSize - arrowDimensions[length] - maxPadding;
|
|
489
|
-
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
490
|
-
const offset2 = clamp(min$1, center, max3);
|
|
491
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
492
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max3 : 0;
|
|
493
|
-
return {
|
|
494
|
-
[axis]: coords[axis] + alignmentOffset,
|
|
495
|
-
data: {
|
|
496
|
-
[axis]: offset2,
|
|
497
|
-
centerOffset: center - offset2 - alignmentOffset,
|
|
498
|
-
...shouldAddOffset && {
|
|
499
|
-
alignmentOffset
|
|
500
|
-
}
|
|
501
|
-
},
|
|
502
|
-
reset: shouldAddOffset
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
});
|
|
506
|
-
var flip = function(options) {
|
|
507
|
-
if (options === void 0) {
|
|
508
|
-
options = {};
|
|
509
|
-
}
|
|
510
|
-
return {
|
|
511
|
-
name: "flip",
|
|
512
|
-
options,
|
|
513
|
-
async fn(state) {
|
|
514
|
-
var _middlewareData$arrow, _middlewareData$flip;
|
|
515
|
-
const {
|
|
516
|
-
placement,
|
|
517
|
-
middlewareData,
|
|
518
|
-
rects,
|
|
519
|
-
initialPlacement,
|
|
520
|
-
platform: platform2,
|
|
521
|
-
elements
|
|
522
|
-
} = state;
|
|
523
|
-
const {
|
|
524
|
-
mainAxis: checkMainAxis = true,
|
|
525
|
-
crossAxis: checkCrossAxis = true,
|
|
526
|
-
fallbackPlacements: specifiedFallbackPlacements,
|
|
527
|
-
fallbackStrategy = "bestFit",
|
|
528
|
-
fallbackAxisSideDirection = "none",
|
|
529
|
-
flipAlignment = true,
|
|
530
|
-
...detectOverflowOptions
|
|
531
|
-
} = evaluate(options, state);
|
|
532
|
-
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
533
|
-
return {};
|
|
534
|
-
}
|
|
535
|
-
const side = getSide(placement);
|
|
536
|
-
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
537
|
-
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
538
|
-
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
539
|
-
if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== "none") {
|
|
540
|
-
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
541
|
-
}
|
|
542
|
-
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
543
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
544
|
-
const overflows = [];
|
|
545
|
-
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
546
|
-
if (checkMainAxis) {
|
|
547
|
-
overflows.push(overflow[side]);
|
|
548
|
-
}
|
|
549
|
-
if (checkCrossAxis) {
|
|
550
|
-
const sides2 = getAlignmentSides(placement, rects, rtl);
|
|
551
|
-
overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
|
|
552
|
-
}
|
|
553
|
-
overflowsData = [...overflowsData, {
|
|
554
|
-
placement,
|
|
555
|
-
overflows
|
|
556
|
-
}];
|
|
557
|
-
if (!overflows.every((side2) => side2 <= 0)) {
|
|
558
|
-
var _middlewareData$flip2, _overflowsData$filter;
|
|
559
|
-
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
560
|
-
const nextPlacement = placements2[nextIndex];
|
|
561
|
-
if (nextPlacement) {
|
|
562
|
-
return {
|
|
563
|
-
data: {
|
|
564
|
-
index: nextIndex,
|
|
565
|
-
overflows: overflowsData
|
|
566
|
-
},
|
|
567
|
-
reset: {
|
|
568
|
-
placement: nextPlacement
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
|
-
}
|
|
572
|
-
let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a2, b) => a2.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
573
|
-
if (!resetPlacement) {
|
|
574
|
-
switch (fallbackStrategy) {
|
|
575
|
-
case "bestFit": {
|
|
576
|
-
var _overflowsData$map$so;
|
|
577
|
-
const placement2 = (_overflowsData$map$so = overflowsData.map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b) => a2[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
|
|
578
|
-
if (placement2) {
|
|
579
|
-
resetPlacement = placement2;
|
|
580
|
-
}
|
|
581
|
-
break;
|
|
582
|
-
}
|
|
583
|
-
case "initialPlacement":
|
|
584
|
-
resetPlacement = initialPlacement;
|
|
585
|
-
break;
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
if (placement !== resetPlacement) {
|
|
589
|
-
return {
|
|
590
|
-
reset: {
|
|
591
|
-
placement: resetPlacement
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
return {};
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
};
|
|
600
|
-
async function convertValueToCoords(state, options) {
|
|
601
|
-
const {
|
|
602
|
-
placement,
|
|
603
|
-
platform: platform2,
|
|
604
|
-
elements
|
|
605
|
-
} = state;
|
|
606
|
-
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
607
|
-
const side = getSide(placement);
|
|
608
|
-
const alignment = getAlignment(placement);
|
|
609
|
-
const isVertical = getSideAxis(placement) === "y";
|
|
610
|
-
const mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
|
|
611
|
-
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
612
|
-
const rawValue = evaluate(options, state);
|
|
613
|
-
let {
|
|
614
|
-
mainAxis,
|
|
615
|
-
crossAxis,
|
|
616
|
-
alignmentAxis
|
|
617
|
-
} = typeof rawValue === "number" ? {
|
|
618
|
-
mainAxis: rawValue,
|
|
619
|
-
crossAxis: 0,
|
|
620
|
-
alignmentAxis: null
|
|
621
|
-
} : {
|
|
622
|
-
mainAxis: 0,
|
|
623
|
-
crossAxis: 0,
|
|
624
|
-
alignmentAxis: null,
|
|
625
|
-
...rawValue
|
|
626
|
-
};
|
|
627
|
-
if (alignment && typeof alignmentAxis === "number") {
|
|
628
|
-
crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
|
|
629
|
-
}
|
|
630
|
-
return isVertical ? {
|
|
631
|
-
x: crossAxis * crossAxisMulti,
|
|
632
|
-
y: mainAxis * mainAxisMulti
|
|
633
|
-
} : {
|
|
634
|
-
x: mainAxis * mainAxisMulti,
|
|
635
|
-
y: crossAxis * crossAxisMulti
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
var offset = function(options) {
|
|
639
|
-
if (options === void 0) {
|
|
640
|
-
options = 0;
|
|
641
|
-
}
|
|
642
|
-
return {
|
|
643
|
-
name: "offset",
|
|
644
|
-
options,
|
|
645
|
-
async fn(state) {
|
|
646
|
-
var _middlewareData$offse, _middlewareData$arrow;
|
|
647
|
-
const {
|
|
648
|
-
x,
|
|
649
|
-
y: y2,
|
|
650
|
-
placement,
|
|
651
|
-
middlewareData
|
|
652
|
-
} = state;
|
|
653
|
-
const diffCoords = await convertValueToCoords(state, options);
|
|
654
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
655
|
-
return {};
|
|
656
|
-
}
|
|
657
|
-
return {
|
|
658
|
-
x: x + diffCoords.x,
|
|
659
|
-
y: y2 + diffCoords.y,
|
|
660
|
-
data: {
|
|
661
|
-
...diffCoords,
|
|
662
|
-
placement
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
};
|
|
668
|
-
var shift = function(options) {
|
|
669
|
-
if (options === void 0) {
|
|
670
|
-
options = {};
|
|
671
|
-
}
|
|
672
|
-
return {
|
|
673
|
-
name: "shift",
|
|
674
|
-
options,
|
|
675
|
-
async fn(state) {
|
|
676
|
-
const {
|
|
677
|
-
x,
|
|
678
|
-
y: y2,
|
|
679
|
-
placement
|
|
680
|
-
} = state;
|
|
681
|
-
const {
|
|
682
|
-
mainAxis: checkMainAxis = true,
|
|
683
|
-
crossAxis: checkCrossAxis = false,
|
|
684
|
-
limiter = {
|
|
685
|
-
fn: (_ref) => {
|
|
686
|
-
let {
|
|
687
|
-
x: x2,
|
|
688
|
-
y: y3
|
|
689
|
-
} = _ref;
|
|
690
|
-
return {
|
|
691
|
-
x: x2,
|
|
692
|
-
y: y3
|
|
693
|
-
};
|
|
694
|
-
}
|
|
695
|
-
},
|
|
696
|
-
...detectOverflowOptions
|
|
697
|
-
} = evaluate(options, state);
|
|
698
|
-
const coords = {
|
|
699
|
-
x,
|
|
700
|
-
y: y2
|
|
701
|
-
};
|
|
702
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
703
|
-
const crossAxis = getSideAxis(getSide(placement));
|
|
704
|
-
const mainAxis = getOppositeAxis(crossAxis);
|
|
705
|
-
let mainAxisCoord = coords[mainAxis];
|
|
706
|
-
let crossAxisCoord = coords[crossAxis];
|
|
707
|
-
if (checkMainAxis) {
|
|
708
|
-
const minSide = mainAxis === "y" ? "top" : "left";
|
|
709
|
-
const maxSide = mainAxis === "y" ? "bottom" : "right";
|
|
710
|
-
const min3 = mainAxisCoord + overflow[minSide];
|
|
711
|
-
const max3 = mainAxisCoord - overflow[maxSide];
|
|
712
|
-
mainAxisCoord = clamp(min3, mainAxisCoord, max3);
|
|
713
|
-
}
|
|
714
|
-
if (checkCrossAxis) {
|
|
715
|
-
const minSide = crossAxis === "y" ? "top" : "left";
|
|
716
|
-
const maxSide = crossAxis === "y" ? "bottom" : "right";
|
|
717
|
-
const min3 = crossAxisCoord + overflow[minSide];
|
|
718
|
-
const max3 = crossAxisCoord - overflow[maxSide];
|
|
719
|
-
crossAxisCoord = clamp(min3, crossAxisCoord, max3);
|
|
720
|
-
}
|
|
721
|
-
const limitedCoords = limiter.fn({
|
|
722
|
-
...state,
|
|
723
|
-
[mainAxis]: mainAxisCoord,
|
|
724
|
-
[crossAxis]: crossAxisCoord
|
|
725
|
-
});
|
|
726
|
-
return {
|
|
727
|
-
...limitedCoords,
|
|
728
|
-
data: {
|
|
729
|
-
x: limitedCoords.x - x,
|
|
730
|
-
y: limitedCoords.y - y2
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
};
|
|
736
|
-
var size = function(options) {
|
|
737
|
-
if (options === void 0) {
|
|
738
|
-
options = {};
|
|
739
|
-
}
|
|
740
|
-
return {
|
|
741
|
-
name: "size",
|
|
742
|
-
options,
|
|
743
|
-
async fn(state) {
|
|
744
|
-
const {
|
|
745
|
-
placement,
|
|
746
|
-
rects,
|
|
747
|
-
platform: platform2,
|
|
748
|
-
elements
|
|
749
|
-
} = state;
|
|
750
|
-
const {
|
|
751
|
-
apply = () => {
|
|
752
|
-
},
|
|
753
|
-
...detectOverflowOptions
|
|
754
|
-
} = evaluate(options, state);
|
|
755
|
-
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
756
|
-
const side = getSide(placement);
|
|
757
|
-
const alignment = getAlignment(placement);
|
|
758
|
-
const isYAxis = getSideAxis(placement) === "y";
|
|
759
|
-
const {
|
|
760
|
-
width,
|
|
761
|
-
height
|
|
762
|
-
} = rects.floating;
|
|
763
|
-
let heightSide;
|
|
764
|
-
let widthSide;
|
|
765
|
-
if (side === "top" || side === "bottom") {
|
|
766
|
-
heightSide = side;
|
|
767
|
-
widthSide = alignment === (await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
|
|
768
|
-
} else {
|
|
769
|
-
widthSide = side;
|
|
770
|
-
heightSide = alignment === "end" ? "top" : "bottom";
|
|
771
|
-
}
|
|
772
|
-
const overflowAvailableHeight = height - overflow[heightSide];
|
|
773
|
-
const overflowAvailableWidth = width - overflow[widthSide];
|
|
774
|
-
const noShift = !state.middlewareData.shift;
|
|
775
|
-
let availableHeight = overflowAvailableHeight;
|
|
776
|
-
let availableWidth = overflowAvailableWidth;
|
|
777
|
-
if (isYAxis) {
|
|
778
|
-
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
779
|
-
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
780
|
-
} else {
|
|
781
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
782
|
-
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
783
|
-
}
|
|
784
|
-
if (noShift && !alignment) {
|
|
785
|
-
const xMin = max(overflow.left, 0);
|
|
786
|
-
const xMax = max(overflow.right, 0);
|
|
787
|
-
const yMin = max(overflow.top, 0);
|
|
788
|
-
const yMax = max(overflow.bottom, 0);
|
|
789
|
-
if (isYAxis) {
|
|
790
|
-
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
791
|
-
} else {
|
|
792
|
-
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
await apply({
|
|
796
|
-
...state,
|
|
797
|
-
availableWidth,
|
|
798
|
-
availableHeight
|
|
799
|
-
});
|
|
800
|
-
const nextDimensions = await platform2.getDimensions(elements.floating);
|
|
801
|
-
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
802
|
-
return {
|
|
803
|
-
reset: {
|
|
804
|
-
rects: true
|
|
805
|
-
}
|
|
806
|
-
};
|
|
807
|
-
}
|
|
808
|
-
return {};
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
814
|
-
var min2 = Math.min;
|
|
815
|
-
var max2 = Math.max;
|
|
816
|
-
var round = Math.round;
|
|
817
|
-
var createCoords = (v) => ({
|
|
818
|
-
x: v,
|
|
819
|
-
y: v
|
|
820
|
-
});
|
|
821
|
-
|
|
822
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
|
|
823
|
-
function getNodeName(node) {
|
|
824
|
-
if (isNode(node)) {
|
|
825
|
-
return (node.nodeName || "").toLowerCase();
|
|
826
|
-
}
|
|
827
|
-
return "#document";
|
|
828
|
-
}
|
|
829
|
-
function getWindow(node) {
|
|
830
|
-
var _node$ownerDocument;
|
|
831
|
-
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
832
|
-
}
|
|
833
|
-
function getDocumentElement(node) {
|
|
834
|
-
var _ref;
|
|
835
|
-
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
836
|
-
}
|
|
837
|
-
function isNode(value) {
|
|
838
|
-
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
839
|
-
}
|
|
840
|
-
function isElement(value) {
|
|
841
|
-
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
842
|
-
}
|
|
843
|
-
function isHTMLElement2(value) {
|
|
844
|
-
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
845
|
-
}
|
|
846
|
-
function isShadowRoot(value) {
|
|
847
|
-
if (typeof ShadowRoot === "undefined") {
|
|
848
|
-
return false;
|
|
849
|
-
}
|
|
850
|
-
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
851
|
-
}
|
|
852
|
-
function isOverflowElement(element) {
|
|
853
|
-
const {
|
|
854
|
-
overflow,
|
|
855
|
-
overflowX,
|
|
856
|
-
overflowY,
|
|
857
|
-
display
|
|
858
|
-
} = getComputedStyle(element);
|
|
859
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
|
|
860
|
-
}
|
|
861
|
-
function isTableElement(element) {
|
|
862
|
-
return ["table", "td", "th"].includes(getNodeName(element));
|
|
863
|
-
}
|
|
864
|
-
function isContainingBlock(element) {
|
|
865
|
-
const webkit = isWebKit();
|
|
866
|
-
const css = getComputedStyle(element);
|
|
867
|
-
return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
|
|
868
|
-
}
|
|
869
|
-
function getContainingBlock(element) {
|
|
870
|
-
let currentNode = getParentNode(element);
|
|
871
|
-
while (isHTMLElement2(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
872
|
-
if (isContainingBlock(currentNode)) {
|
|
873
|
-
return currentNode;
|
|
874
|
-
} else {
|
|
875
|
-
currentNode = getParentNode(currentNode);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
return null;
|
|
879
|
-
}
|
|
880
|
-
function isWebKit() {
|
|
881
|
-
if (typeof CSS === "undefined" || !CSS.supports)
|
|
882
|
-
return false;
|
|
883
|
-
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
884
|
-
}
|
|
885
|
-
function isLastTraversableNode(node) {
|
|
886
|
-
return ["html", "body", "#document"].includes(getNodeName(node));
|
|
887
|
-
}
|
|
888
|
-
function getComputedStyle(element) {
|
|
889
|
-
return getWindow(element).getComputedStyle(element);
|
|
890
|
-
}
|
|
891
|
-
function getNodeScroll(element) {
|
|
892
|
-
if (isElement(element)) {
|
|
893
|
-
return {
|
|
894
|
-
scrollLeft: element.scrollLeft,
|
|
895
|
-
scrollTop: element.scrollTop
|
|
896
|
-
};
|
|
897
|
-
}
|
|
898
|
-
return {
|
|
899
|
-
scrollLeft: element.pageXOffset,
|
|
900
|
-
scrollTop: element.pageYOffset
|
|
901
|
-
};
|
|
902
|
-
}
|
|
903
|
-
function getParentNode(node) {
|
|
904
|
-
if (getNodeName(node) === "html") {
|
|
905
|
-
return node;
|
|
906
|
-
}
|
|
907
|
-
const result = (
|
|
908
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
909
|
-
node.assignedSlot || // DOM Element detected.
|
|
910
|
-
node.parentNode || // ShadowRoot detected.
|
|
911
|
-
isShadowRoot(node) && node.host || // Fallback.
|
|
912
|
-
getDocumentElement(node)
|
|
913
|
-
);
|
|
914
|
-
return isShadowRoot(result) ? result.host : result;
|
|
915
|
-
}
|
|
916
|
-
function getNearestOverflowAncestor(node) {
|
|
917
|
-
const parentNode = getParentNode(node);
|
|
918
|
-
if (isLastTraversableNode(parentNode)) {
|
|
919
|
-
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
920
|
-
}
|
|
921
|
-
if (isHTMLElement2(parentNode) && isOverflowElement(parentNode)) {
|
|
922
|
-
return parentNode;
|
|
923
|
-
}
|
|
924
|
-
return getNearestOverflowAncestor(parentNode);
|
|
925
|
-
}
|
|
926
|
-
function getOverflowAncestors(node, list, traverseIframes) {
|
|
927
|
-
var _node$ownerDocument2;
|
|
928
|
-
if (list === void 0) {
|
|
929
|
-
list = [];
|
|
930
|
-
}
|
|
931
|
-
if (traverseIframes === void 0) {
|
|
932
|
-
traverseIframes = true;
|
|
933
|
-
}
|
|
934
|
-
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
935
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
936
|
-
const win = getWindow(scrollableAncestor);
|
|
937
|
-
if (isBody) {
|
|
938
|
-
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
939
|
-
}
|
|
940
|
-
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
// ../../node_modules/.pnpm/@floating-ui+dom@1.5.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
944
|
-
function getCssDimensions(element) {
|
|
945
|
-
const css = getComputedStyle(element);
|
|
946
|
-
let width = parseFloat(css.width) || 0;
|
|
947
|
-
let height = parseFloat(css.height) || 0;
|
|
948
|
-
const hasOffset = isHTMLElement2(element);
|
|
949
|
-
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
950
|
-
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
951
|
-
const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
|
|
952
|
-
if (shouldFallback) {
|
|
953
|
-
width = offsetWidth;
|
|
954
|
-
height = offsetHeight;
|
|
955
|
-
}
|
|
956
|
-
return {
|
|
957
|
-
width,
|
|
958
|
-
height,
|
|
959
|
-
$: shouldFallback
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
function unwrapElement(element) {
|
|
963
|
-
return !isElement(element) ? element.contextElement : element;
|
|
964
|
-
}
|
|
965
|
-
function getScale(element) {
|
|
966
|
-
const domElement = unwrapElement(element);
|
|
967
|
-
if (!isHTMLElement2(domElement)) {
|
|
968
|
-
return createCoords(1);
|
|
969
|
-
}
|
|
970
|
-
const rect = domElement.getBoundingClientRect();
|
|
971
|
-
const {
|
|
972
|
-
width,
|
|
973
|
-
height,
|
|
974
|
-
$
|
|
975
|
-
} = getCssDimensions(domElement);
|
|
976
|
-
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
977
|
-
let y2 = ($ ? round(rect.height) : rect.height) / height;
|
|
978
|
-
if (!x || !Number.isFinite(x)) {
|
|
979
|
-
x = 1;
|
|
980
|
-
}
|
|
981
|
-
if (!y2 || !Number.isFinite(y2)) {
|
|
982
|
-
y2 = 1;
|
|
983
|
-
}
|
|
984
|
-
return {
|
|
985
|
-
x,
|
|
986
|
-
y: y2
|
|
987
|
-
};
|
|
988
|
-
}
|
|
989
|
-
var noOffsets = /* @__PURE__ */ createCoords(0);
|
|
990
|
-
function getVisualOffsets(element) {
|
|
991
|
-
const win = getWindow(element);
|
|
992
|
-
if (!isWebKit() || !win.visualViewport) {
|
|
993
|
-
return noOffsets;
|
|
994
|
-
}
|
|
995
|
-
return {
|
|
996
|
-
x: win.visualViewport.offsetLeft,
|
|
997
|
-
y: win.visualViewport.offsetTop
|
|
998
|
-
};
|
|
999
|
-
}
|
|
1000
|
-
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
1001
|
-
if (isFixed === void 0) {
|
|
1002
|
-
isFixed = false;
|
|
1003
|
-
}
|
|
1004
|
-
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
1005
|
-
return false;
|
|
1006
|
-
}
|
|
1007
|
-
return isFixed;
|
|
1008
|
-
}
|
|
1009
|
-
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
1010
|
-
if (includeScale === void 0) {
|
|
1011
|
-
includeScale = false;
|
|
1012
|
-
}
|
|
1013
|
-
if (isFixedStrategy === void 0) {
|
|
1014
|
-
isFixedStrategy = false;
|
|
1015
|
-
}
|
|
1016
|
-
const clientRect = element.getBoundingClientRect();
|
|
1017
|
-
const domElement = unwrapElement(element);
|
|
1018
|
-
let scale = createCoords(1);
|
|
1019
|
-
if (includeScale) {
|
|
1020
|
-
if (offsetParent) {
|
|
1021
|
-
if (isElement(offsetParent)) {
|
|
1022
|
-
scale = getScale(offsetParent);
|
|
1023
|
-
}
|
|
1024
|
-
} else {
|
|
1025
|
-
scale = getScale(element);
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
1029
|
-
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
1030
|
-
let y2 = (clientRect.top + visualOffsets.y) / scale.y;
|
|
1031
|
-
let width = clientRect.width / scale.x;
|
|
1032
|
-
let height = clientRect.height / scale.y;
|
|
1033
|
-
if (domElement) {
|
|
1034
|
-
const win = getWindow(domElement);
|
|
1035
|
-
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
1036
|
-
let currentIFrame = win.frameElement;
|
|
1037
|
-
while (currentIFrame && offsetParent && offsetWin !== win) {
|
|
1038
|
-
const iframeScale = getScale(currentIFrame);
|
|
1039
|
-
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
1040
|
-
const css = getComputedStyle(currentIFrame);
|
|
1041
|
-
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
1042
|
-
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
1043
|
-
x *= iframeScale.x;
|
|
1044
|
-
y2 *= iframeScale.y;
|
|
1045
|
-
width *= iframeScale.x;
|
|
1046
|
-
height *= iframeScale.y;
|
|
1047
|
-
x += left;
|
|
1048
|
-
y2 += top;
|
|
1049
|
-
currentIFrame = getWindow(currentIFrame).frameElement;
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
return rectToClientRect({
|
|
1053
|
-
width,
|
|
1054
|
-
height,
|
|
1055
|
-
x,
|
|
1056
|
-
y: y2
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
1060
|
-
let {
|
|
1061
|
-
rect,
|
|
1062
|
-
offsetParent,
|
|
1063
|
-
strategy
|
|
1064
|
-
} = _ref;
|
|
1065
|
-
const isOffsetParentAnElement = isHTMLElement2(offsetParent);
|
|
1066
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1067
|
-
if (offsetParent === documentElement) {
|
|
1068
|
-
return rect;
|
|
1069
|
-
}
|
|
1070
|
-
let scroll = {
|
|
1071
|
-
scrollLeft: 0,
|
|
1072
|
-
scrollTop: 0
|
|
1073
|
-
};
|
|
1074
|
-
let scale = createCoords(1);
|
|
1075
|
-
const offsets = createCoords(0);
|
|
1076
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== "fixed") {
|
|
1077
|
-
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
1078
|
-
scroll = getNodeScroll(offsetParent);
|
|
1079
|
-
}
|
|
1080
|
-
if (isHTMLElement2(offsetParent)) {
|
|
1081
|
-
const offsetRect = getBoundingClientRect(offsetParent);
|
|
1082
|
-
scale = getScale(offsetParent);
|
|
1083
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1084
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
return {
|
|
1088
|
-
width: rect.width * scale.x,
|
|
1089
|
-
height: rect.height * scale.y,
|
|
1090
|
-
x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
|
|
1091
|
-
y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
|
|
1092
|
-
};
|
|
1093
|
-
}
|
|
1094
|
-
function getClientRects(element) {
|
|
1095
|
-
return Array.from(element.getClientRects());
|
|
1096
|
-
}
|
|
1097
|
-
function getWindowScrollBarX(element) {
|
|
1098
|
-
return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
|
|
1099
|
-
}
|
|
1100
|
-
function getDocumentRect(element) {
|
|
1101
|
-
const html = getDocumentElement(element);
|
|
1102
|
-
const scroll = getNodeScroll(element);
|
|
1103
|
-
const body = element.ownerDocument.body;
|
|
1104
|
-
const width = max2(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
1105
|
-
const height = max2(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
1106
|
-
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
1107
|
-
const y2 = -scroll.scrollTop;
|
|
1108
|
-
if (getComputedStyle(body).direction === "rtl") {
|
|
1109
|
-
x += max2(html.clientWidth, body.clientWidth) - width;
|
|
1110
|
-
}
|
|
1111
|
-
return {
|
|
1112
|
-
width,
|
|
1113
|
-
height,
|
|
1114
|
-
x,
|
|
1115
|
-
y: y2
|
|
1116
|
-
};
|
|
1117
|
-
}
|
|
1118
|
-
function getViewportRect(element, strategy) {
|
|
1119
|
-
const win = getWindow(element);
|
|
1120
|
-
const html = getDocumentElement(element);
|
|
1121
|
-
const visualViewport = win.visualViewport;
|
|
1122
|
-
let width = html.clientWidth;
|
|
1123
|
-
let height = html.clientHeight;
|
|
1124
|
-
let x = 0;
|
|
1125
|
-
let y2 = 0;
|
|
1126
|
-
if (visualViewport) {
|
|
1127
|
-
width = visualViewport.width;
|
|
1128
|
-
height = visualViewport.height;
|
|
1129
|
-
const visualViewportBased = isWebKit();
|
|
1130
|
-
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
1131
|
-
x = visualViewport.offsetLeft;
|
|
1132
|
-
y2 = visualViewport.offsetTop;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
return {
|
|
1136
|
-
width,
|
|
1137
|
-
height,
|
|
1138
|
-
x,
|
|
1139
|
-
y: y2
|
|
1140
|
-
};
|
|
1141
|
-
}
|
|
1142
|
-
function getInnerBoundingClientRect(element, strategy) {
|
|
1143
|
-
const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
|
|
1144
|
-
const top = clientRect.top + element.clientTop;
|
|
1145
|
-
const left = clientRect.left + element.clientLeft;
|
|
1146
|
-
const scale = isHTMLElement2(element) ? getScale(element) : createCoords(1);
|
|
1147
|
-
const width = element.clientWidth * scale.x;
|
|
1148
|
-
const height = element.clientHeight * scale.y;
|
|
1149
|
-
const x = left * scale.x;
|
|
1150
|
-
const y2 = top * scale.y;
|
|
1151
|
-
return {
|
|
1152
|
-
width,
|
|
1153
|
-
height,
|
|
1154
|
-
x,
|
|
1155
|
-
y: y2
|
|
1156
|
-
};
|
|
1157
|
-
}
|
|
1158
|
-
function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
|
|
1159
|
-
let rect;
|
|
1160
|
-
if (clippingAncestor === "viewport") {
|
|
1161
|
-
rect = getViewportRect(element, strategy);
|
|
1162
|
-
} else if (clippingAncestor === "document") {
|
|
1163
|
-
rect = getDocumentRect(getDocumentElement(element));
|
|
1164
|
-
} else if (isElement(clippingAncestor)) {
|
|
1165
|
-
rect = getInnerBoundingClientRect(clippingAncestor, strategy);
|
|
1166
|
-
} else {
|
|
1167
|
-
const visualOffsets = getVisualOffsets(element);
|
|
1168
|
-
rect = {
|
|
1169
|
-
...clippingAncestor,
|
|
1170
|
-
x: clippingAncestor.x - visualOffsets.x,
|
|
1171
|
-
y: clippingAncestor.y - visualOffsets.y
|
|
1172
|
-
};
|
|
1173
|
-
}
|
|
1174
|
-
return rectToClientRect(rect);
|
|
1175
|
-
}
|
|
1176
|
-
function hasFixedPositionAncestor(element, stopNode) {
|
|
1177
|
-
const parentNode = getParentNode(element);
|
|
1178
|
-
if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
|
|
1179
|
-
return false;
|
|
1180
|
-
}
|
|
1181
|
-
return getComputedStyle(parentNode).position === "fixed" || hasFixedPositionAncestor(parentNode, stopNode);
|
|
1182
|
-
}
|
|
1183
|
-
function getClippingElementAncestors(element, cache) {
|
|
1184
|
-
const cachedResult = cache.get(element);
|
|
1185
|
-
if (cachedResult) {
|
|
1186
|
-
return cachedResult;
|
|
1187
|
-
}
|
|
1188
|
-
let result = getOverflowAncestors(element).filter((el) => isElement(el) && getNodeName(el) !== "body");
|
|
1189
|
-
let currentContainingBlockComputedStyle = null;
|
|
1190
|
-
const elementIsFixed = getComputedStyle(element).position === "fixed";
|
|
1191
|
-
let currentNode = elementIsFixed ? getParentNode(element) : element;
|
|
1192
|
-
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
1193
|
-
const computedStyle = getComputedStyle(currentNode);
|
|
1194
|
-
const currentNodeIsContaining = isContainingBlock(currentNode);
|
|
1195
|
-
if (!currentNodeIsContaining && computedStyle.position === "fixed") {
|
|
1196
|
-
currentContainingBlockComputedStyle = null;
|
|
1197
|
-
}
|
|
1198
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
1199
|
-
if (shouldDropCurrentNode) {
|
|
1200
|
-
result = result.filter((ancestor) => ancestor !== currentNode);
|
|
1201
|
-
} else {
|
|
1202
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
1203
|
-
}
|
|
1204
|
-
currentNode = getParentNode(currentNode);
|
|
1205
|
-
}
|
|
1206
|
-
cache.set(element, result);
|
|
1207
|
-
return result;
|
|
1208
|
-
}
|
|
1209
|
-
function getClippingRect(_ref) {
|
|
1210
|
-
let {
|
|
1211
|
-
element,
|
|
1212
|
-
boundary,
|
|
1213
|
-
rootBoundary,
|
|
1214
|
-
strategy
|
|
1215
|
-
} = _ref;
|
|
1216
|
-
const elementClippingAncestors = boundary === "clippingAncestors" ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
1217
|
-
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
1218
|
-
const firstClippingAncestor = clippingAncestors[0];
|
|
1219
|
-
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
1220
|
-
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
1221
|
-
accRect.top = max2(rect.top, accRect.top);
|
|
1222
|
-
accRect.right = min2(rect.right, accRect.right);
|
|
1223
|
-
accRect.bottom = min2(rect.bottom, accRect.bottom);
|
|
1224
|
-
accRect.left = max2(rect.left, accRect.left);
|
|
1225
|
-
return accRect;
|
|
1226
|
-
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
1227
|
-
return {
|
|
1228
|
-
width: clippingRect.right - clippingRect.left,
|
|
1229
|
-
height: clippingRect.bottom - clippingRect.top,
|
|
1230
|
-
x: clippingRect.left,
|
|
1231
|
-
y: clippingRect.top
|
|
1232
|
-
};
|
|
1233
|
-
}
|
|
1234
|
-
function getDimensions(element) {
|
|
1235
|
-
return getCssDimensions(element);
|
|
1236
|
-
}
|
|
1237
|
-
function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
1238
|
-
const isOffsetParentAnElement = isHTMLElement2(offsetParent);
|
|
1239
|
-
const documentElement = getDocumentElement(offsetParent);
|
|
1240
|
-
const isFixed = strategy === "fixed";
|
|
1241
|
-
const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
|
|
1242
|
-
let scroll = {
|
|
1243
|
-
scrollLeft: 0,
|
|
1244
|
-
scrollTop: 0
|
|
1245
|
-
};
|
|
1246
|
-
const offsets = createCoords(0);
|
|
1247
|
-
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
1248
|
-
if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
|
|
1249
|
-
scroll = getNodeScroll(offsetParent);
|
|
1250
|
-
}
|
|
1251
|
-
if (isOffsetParentAnElement) {
|
|
1252
|
-
const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
|
|
1253
|
-
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
1254
|
-
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
1255
|
-
} else if (documentElement) {
|
|
1256
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
return {
|
|
1260
|
-
x: rect.left + scroll.scrollLeft - offsets.x,
|
|
1261
|
-
y: rect.top + scroll.scrollTop - offsets.y,
|
|
1262
|
-
width: rect.width,
|
|
1263
|
-
height: rect.height
|
|
1264
|
-
};
|
|
1265
|
-
}
|
|
1266
|
-
function getTrueOffsetParent(element, polyfill) {
|
|
1267
|
-
if (!isHTMLElement2(element) || getComputedStyle(element).position === "fixed") {
|
|
1268
|
-
return null;
|
|
1269
|
-
}
|
|
1270
|
-
if (polyfill) {
|
|
1271
|
-
return polyfill(element);
|
|
1272
|
-
}
|
|
1273
|
-
return element.offsetParent;
|
|
1274
|
-
}
|
|
1275
|
-
function getOffsetParent(element, polyfill) {
|
|
1276
|
-
const window2 = getWindow(element);
|
|
1277
|
-
if (!isHTMLElement2(element)) {
|
|
1278
|
-
return window2;
|
|
1279
|
-
}
|
|
1280
|
-
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
1281
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
|
|
1282
|
-
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
1283
|
-
}
|
|
1284
|
-
if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static" && !isContainingBlock(offsetParent))) {
|
|
1285
|
-
return window2;
|
|
1286
|
-
}
|
|
1287
|
-
return offsetParent || getContainingBlock(element) || window2;
|
|
1288
|
-
}
|
|
1289
|
-
var getElementRects = async function(_ref) {
|
|
1290
|
-
let {
|
|
1291
|
-
reference,
|
|
1292
|
-
floating,
|
|
1293
|
-
strategy
|
|
1294
|
-
} = _ref;
|
|
1295
|
-
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
1296
|
-
const getDimensionsFn = this.getDimensions;
|
|
1297
|
-
return {
|
|
1298
|
-
reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
|
|
1299
|
-
floating: {
|
|
1300
|
-
x: 0,
|
|
1301
|
-
y: 0,
|
|
1302
|
-
...await getDimensionsFn(floating)
|
|
1303
|
-
}
|
|
1304
|
-
};
|
|
1305
|
-
};
|
|
1306
|
-
function isRTL(element) {
|
|
1307
|
-
return getComputedStyle(element).direction === "rtl";
|
|
1308
|
-
}
|
|
1309
|
-
var platform = {
|
|
1310
|
-
convertOffsetParentRelativeRectToViewportRelativeRect,
|
|
1311
|
-
getDocumentElement,
|
|
1312
|
-
getClippingRect,
|
|
1313
|
-
getOffsetParent,
|
|
1314
|
-
getElementRects,
|
|
1315
|
-
getClientRects,
|
|
1316
|
-
getDimensions,
|
|
1317
|
-
getScale,
|
|
1318
|
-
isElement,
|
|
1319
|
-
isRTL
|
|
1320
|
-
};
|
|
1321
|
-
var computePosition2 = (reference, floating, options) => {
|
|
1322
|
-
const cache = /* @__PURE__ */ new Map();
|
|
1323
|
-
const mergedOptions = {
|
|
1324
|
-
platform,
|
|
1325
|
-
...options
|
|
1326
|
-
};
|
|
1327
|
-
const platformWithCache = {
|
|
1328
|
-
...mergedOptions.platform,
|
|
1329
|
-
_c: cache
|
|
1330
|
-
};
|
|
1331
|
-
return computePosition(reference, floating, {
|
|
1332
|
-
...mergedOptions,
|
|
1333
|
-
platform: platformWithCache
|
|
1334
|
-
});
|
|
1335
|
-
};
|
|
1336
|
-
|
|
1337
152
|
// ../../node_modules/.pnpm/@zag-js+utils@0.19.1/node_modules/@zag-js/utils/dist/index.mjs
|
|
1338
153
|
var callAll = (...fns) => (...a2) => {
|
|
1339
154
|
fns.forEach(function(fn) {
|
|
@@ -1425,7 +240,7 @@ function getEqualityFn(scope) {
|
|
|
1425
240
|
|
|
1426
241
|
// ../../node_modules/.pnpm/@zag-js+popper@0.19.1/node_modules/@zag-js/popper/dist/index.mjs
|
|
1427
242
|
var callAll2 = (...fns) => () => fns.forEach((fn) => fn());
|
|
1428
|
-
var
|
|
243
|
+
var isHTMLElement2 = (el) => {
|
|
1429
244
|
return typeof el === "object" && el !== null && el.nodeType === 1;
|
|
1430
245
|
};
|
|
1431
246
|
var addDomEvent = (el, type, fn, options) => {
|
|
@@ -1444,12 +259,12 @@ function autoUpdate(reference, floating, update, options = false) {
|
|
|
1444
259
|
const { ancestorScroll, ancestorResize, referenceResize } = resolveOptions(options);
|
|
1445
260
|
const useAncestors = ancestorScroll || ancestorResize;
|
|
1446
261
|
const ancestors = [];
|
|
1447
|
-
if (useAncestors &&
|
|
262
|
+
if (useAncestors && isHTMLElement2(reference)) {
|
|
1448
263
|
ancestors.push(...getOverflowAncestors(reference));
|
|
1449
264
|
}
|
|
1450
265
|
function addResizeListeners() {
|
|
1451
266
|
let cleanups = [trackElementRect(floating, { scope: "size", onChange: update })];
|
|
1452
|
-
if (referenceResize &&
|
|
267
|
+
if (referenceResize && isHTMLElement2(reference)) {
|
|
1453
268
|
cleanups.push(trackElementRect(reference, { onChange: update }));
|
|
1454
269
|
}
|
|
1455
270
|
cleanups.push(callAll2(...ancestors.map((el) => addDomEvent(el, "resize", update))));
|
|
@@ -1572,7 +387,7 @@ function getPlacementImpl(reference, floating, opts = {}) {
|
|
|
1572
387
|
if (!reference || !floating)
|
|
1573
388
|
return;
|
|
1574
389
|
const { placement, strategy, onComplete } = options;
|
|
1575
|
-
|
|
390
|
+
computePosition(reference, floating, {
|
|
1576
391
|
placement,
|
|
1577
392
|
middleware,
|
|
1578
393
|
strategy,
|
|
@@ -3405,19 +2220,42 @@ var Tooltip_default = Tooltip;
|
|
|
3405
2220
|
|
|
3406
2221
|
// src/components/Tooltip/index.tsx
|
|
3407
2222
|
import clsx from "clsx";
|
|
2223
|
+
import { useClickAway } from "@cfx-kit/react-utils/dist/hooks";
|
|
3408
2224
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
3409
2225
|
var Tooltip2 = ({
|
|
3410
2226
|
title,
|
|
3411
2227
|
children = null,
|
|
3412
2228
|
positioning = {},
|
|
3413
|
-
|
|
2229
|
+
className,
|
|
3414
2230
|
...rest
|
|
3415
2231
|
}) => {
|
|
3416
2232
|
const { placement = "top" } = positioning;
|
|
2233
|
+
const onCloseRef = useRef4();
|
|
2234
|
+
const triggerRef = useRef4(null);
|
|
2235
|
+
const triggerContentRef = useRef4(null);
|
|
2236
|
+
useClickAway([triggerRef, triggerContentRef], (e2) => {
|
|
2237
|
+
onCloseRef.current?.(
|
|
2238
|
+
e2
|
|
2239
|
+
);
|
|
2240
|
+
});
|
|
3417
2241
|
return /* @__PURE__ */ jsx2(
|
|
3418
2242
|
Tooltip_default,
|
|
3419
2243
|
{
|
|
3420
|
-
trigger: ({ triggerProps }) =>
|
|
2244
|
+
trigger: ({ triggerProps }) => {
|
|
2245
|
+
onCloseRef.current = triggerProps.onClick;
|
|
2246
|
+
triggerProps.onClick = (e2) => {
|
|
2247
|
+
triggerProps.onPointerMove?.(e2);
|
|
2248
|
+
};
|
|
2249
|
+
return /* @__PURE__ */ jsx2(
|
|
2250
|
+
"span",
|
|
2251
|
+
{
|
|
2252
|
+
ref: triggerRef,
|
|
2253
|
+
...title ? triggerProps : {},
|
|
2254
|
+
className: cn(className, triggerProps.className),
|
|
2255
|
+
children
|
|
2256
|
+
}
|
|
2257
|
+
);
|
|
2258
|
+
},
|
|
3421
2259
|
containerClassName: clsx(
|
|
3422
2260
|
"sirius-next-tooltip",
|
|
3423
2261
|
"lh-normal max-w-250px z-1000 w-max min-w-unset!",
|
|
@@ -3425,12 +2263,29 @@ var Tooltip2 = ({
|
|
|
3425
2263
|
"[&.ui-tooltip>[data-part=arrow]]:[--arrow-size:6px] [&.ui-tooltip>[data-part=arrow]]:[--arrow-background:#333]"
|
|
3426
2264
|
),
|
|
3427
2265
|
openDelay: 0,
|
|
2266
|
+
closeOnPointerDown: false,
|
|
3428
2267
|
...rest,
|
|
3429
2268
|
positioning: {
|
|
3430
2269
|
...positioning,
|
|
3431
2270
|
placement
|
|
3432
2271
|
},
|
|
3433
|
-
children:
|
|
2272
|
+
children: ({ contentProps }) => {
|
|
2273
|
+
const _onPointerLeave = contentProps.onPointerLeave;
|
|
2274
|
+
contentProps.onPointerLeave = (e2) => {
|
|
2275
|
+
if (e2.pointerType === "touch")
|
|
2276
|
+
return;
|
|
2277
|
+
_onPointerLeave?.(e2);
|
|
2278
|
+
};
|
|
2279
|
+
return /* @__PURE__ */ jsx2(
|
|
2280
|
+
"div",
|
|
2281
|
+
{
|
|
2282
|
+
className: "px-8px py-6px text-12px text-#fff text-left shadow break-words ws-normal bg-#333 min-w-30px min-h-32px decoration-none rounded-2px",
|
|
2283
|
+
ref: (_ref) => _ref ? triggerContentRef.current = _ref.parentElement : triggerContentRef.current = null,
|
|
2284
|
+
...contentProps,
|
|
2285
|
+
children: title
|
|
2286
|
+
}
|
|
2287
|
+
);
|
|
2288
|
+
}
|
|
3434
2289
|
}
|
|
3435
2290
|
);
|
|
3436
2291
|
};
|
|
@@ -3438,4 +2293,4 @@ var Tooltip2 = ({
|
|
|
3438
2293
|
export {
|
|
3439
2294
|
Tooltip2 as Tooltip
|
|
3440
2295
|
};
|
|
3441
|
-
//# sourceMappingURL=chunk-
|
|
2296
|
+
//# sourceMappingURL=chunk-CQLD2WE7.js.map
|