@blockend/widget 1.0.30 → 1.0.32
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/AllRoutes-CPwuTwqd.js +2209 -0
- package/dist/Box-CIChapvH.js +55 -0
- package/dist/EstGas-CEFILtyf.js +12867 -0
- package/dist/Grow-DJZj9zjv.js +1656 -0
- package/dist/InputComp-DqF1JGIu.js +106 -0
- package/dist/LoadRoute-r3sHTYXM.js +126 -0
- package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
- package/dist/SwapAsset-07WvVwl-.js +64 -0
- package/dist/Tooltip-CNAsCF8n.js +572 -0
- package/dist/TxnButton-D2TTkFYA.js +207 -0
- package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
- package/dist/{add-BDjkKnDN.js → add-t2GqC9VA.js} +3 -4
- package/dist/{all-wallets-CrBep7Gl.js → all-wallets-DFyf0q31.js} +3 -4
- package/dist/{app-store-CwaPvoXY.js → app-store-aAahwmBP.js} +3 -4
- package/dist/{apple-BA8mnYrP.js → apple-DeRgpwlc.js} +3 -4
- package/dist/{arrow-bottom-BXdMFUAl.js → arrow-bottom-DdEOkaAj.js} +3 -4
- package/dist/{arrow-bottom-circle-DFT4mXIU.js → arrow-bottom-circle-BWwREWcv.js} +3 -4
- package/dist/{arrow-left-BzkeYnqg.js → arrow-left-CulyLmoH.js} +3 -4
- package/dist/{arrow-right-DiUAWQjY.js → arrow-right-Dwr7TISn.js} +3 -4
- package/dist/{arrow-top-86AMrjF7.js → arrow-top-pL4rM_y8.js} +3 -4
- package/dist/{bank-DN5JAJkK.js → bank-CPuyK_08.js} +3 -4
- package/dist/basic-CVc9xEvb.js +5783 -0
- package/dist/{browser-CIEc-DNj.js → browser-Cbq2Zbp4.js} +3 -4
- package/dist/{card-D0J873mK.js → card-B_hUtPWK.js} +3 -4
- package/dist/ccip-BLVGcR4A.js +228 -0
- package/dist/{checkmark-mvlF9aX8.js → checkmark-WEqTsFAc.js} +3 -4
- package/dist/{checkmark-bold-Cvmc9tJb.js → checkmark-bold-Du_ZvhqM.js} +3 -4
- package/dist/{chevron-bottom-CWsU0Wj4.js → chevron-bottom-C-s-lv4L.js} +3 -4
- package/dist/{chevron-left-DZoyyvkH.js → chevron-left-C7NcRElx.js} +3 -4
- package/dist/{chevron-right-Db1S8IpK.js → chevron-right-CSzmAmdn.js} +3 -4
- package/dist/{chevron-top-BG2-jrhN.js → chevron-top-Dd99Wfel.js} +3 -4
- package/dist/{chrome-store-bZ30Z8RD.js → chrome-store-C4p77Of0.js} +3 -4
- package/dist/{clock-BQCJkpsN.js → clock-Cib24qjH.js} +3 -4
- package/dist/clockIcon-C2W5xvyt.js +76 -0
- package/dist/{close-0442yxHv.js → close-BXjEkTvS.js} +3 -4
- package/dist/{coinPlaceholder-npHsRGpi.js → coinPlaceholder-BFNC7cQN.js} +3 -4
- package/dist/{compass-CA-2HVOX.js → compass-CXPX5Ycp.js} +3 -4
- package/dist/{copy-DZVC8Hxi.js → copy-BEawMbmF.js} +3 -4
- package/dist/core-Bez9Ow7F.js +14967 -0
- package/dist/cursor-Cxq4Q9jk.js +7 -0
- package/dist/{cursor-transparent-wVQvgZAK.js → cursor-transparent-ZjJ0P2vr.js} +3 -4
- package/dist/{desktop-DTAJIXTO.js → desktop-BhZVovAp.js} +3 -4
- package/dist/{disconnect-D8Si5N8S.js → disconnect-AC-bffZO.js} +3 -4
- package/dist/{discord-tQYw47cV.js → discord-dT97h-CC.js} +3 -4
- package/dist/down-DP56YSKp.js +606 -0
- package/dist/{etherscan-CjqNGBR7.js → etherscan-rYFRhRTM.js} +3 -4
- package/dist/ethertousd-CC_ezooz.js +6 -0
- package/dist/{exclamation-triangle-BhHXY1hF.js → exclamation-triangle-C-pCuC08.js} +3 -4
- package/dist/{extension-y15WoviO.js → extension-BnqauLSn.js} +3 -4
- package/dist/{external-link--gR7z0qt.js → external-link-M9D6e_F3.js} +3 -4
- package/dist/{facebook-DlX8IWwq.js → facebook-DHezcoD-.js} +3 -4
- package/dist/{farcaster-CFzTYTRj.js → farcaster-D0Ky-Imv.js} +3 -4
- package/dist/{filters-BO_y5jSy.js → filters-B02NYLWq.js} +3 -4
- package/dist/getChainIds-CJd2TZYT.js +1888 -0
- package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
- package/dist/{github-B9QjqzQj.js → github-BzQkIMuE.js} +3 -4
- package/dist/{google-D9CK21nC.js → google-BpwCJ4Fs.js} +3 -4
- package/dist/hamburger-BzqwkUjE.js +3915 -0
- package/dist/{help-circle-Qf3YDcg6.js → help-circle-C0nOySHC.js} +3 -4
- package/dist/{id-VtdZj5EJ.js → id-DFP_kFd4.js} +3 -4
- package/dist/{image-Bb6NRqAG.js → image-QiYOAGjM.js} +3 -4
- package/dist/index-CDq3vNnP.js +22 -0
- package/dist/index-CLzkn733.js +28223 -0
- package/dist/index-CjtwASJt.js +252 -0
- package/dist/index-CrC4B7xn.js +331 -0
- package/dist/index-D5hLIe-N.js +9 -0
- package/dist/index-DDk00SOL.js +159 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/index-DW3W7zaF.js +473 -0
- package/dist/index-DXdD3L9f.js +1460 -0
- package/dist/index-DaJ1272l.js +18613 -0
- package/dist/index-DxPp2gBS.js +992 -0
- package/dist/index-Dy_n2MPD.js +3010 -0
- package/dist/index-oc8HPfOF.js +13583 -0
- package/dist/index.es-Bsr7zP98.js +366 -0
- package/dist/index.es-C-j-Ghef.js +11678 -0
- package/dist/index.es.js +4 -5
- package/dist/{info-C-7imdlv.js → info-BTLQJ-wd.js} +3 -4
- package/dist/{info-circle-CojbxQCA.js → info-circle-Dla9169_.js} +3 -4
- package/dist/{lightbulb-DrfSirtI.js → lightbulb-PN8DA_Wh.js} +3 -4
- package/dist/{mail-yuNzffmW.js → mail-BGYZut_4.js} +3 -4
- package/dist/{mobile-B68qFJIJ.js → mobile-BM760ZzX.js} +3 -4
- package/dist/{more-B5F7-jLe.js → more-rHGnl2ck.js} +3 -4
- package/dist/{network-placeholder-C0IP4D1c.js → network-placeholder-CyQl-3_2.js} +3 -4
- package/dist/{nftPlaceholder-DUEpu8vC.js → nftPlaceholder-nuUJ8nKY.js} +3 -4
- package/dist/{off-kgcptPTJ.js → off-GYlwYDrT.js} +3 -4
- package/dist/{play-store-CpkQM7Tf.js → play-store-Ck01Ez1F.js} +3 -4
- package/dist/{plus-WJX5o6br.js → plus-CQfXWgLw.js} +3 -4
- package/dist/{qr-code-DYSpZOBK.js → qr-code-CyLVwLY7.js} +3 -4
- package/dist/{recycle-horizontal-nN1xwykO.js → recycle-horizontal-DvnWPcEQ.js} +3 -4
- package/dist/{refresh-BDlbkeKx.js → refresh-BOxj8b2n.js} +3 -4
- package/dist/{reown-logo--P11S5yl.js → reown-logo-D1iprOTg.js} +3 -4
- package/dist/{search-DBF3vwq7.js → search-DrPaZPnc.js} +3 -4
- package/dist/secp256k1-DgmH1qVg.js +1251 -0
- package/dist/{send-pvA8KHBc.js → send-ybBREe4b.js} +3 -4
- package/dist/shareicon-D3Qj5j1T.js +262 -0
- package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -14
- package/dist/{swapHorizontal-BI2PzZwN.js → swapHorizontal-BddjZdXK.js} +3 -4
- package/dist/{swapHorizontalBold-CWlwK-F6.js → swapHorizontalBold-B6AWjPZ9.js} +3 -4
- package/dist/{swapHorizontalMedium-BmLVJu35.js → swapHorizontalMedium-CNacWoBn.js} +3 -4
- package/dist/{swapHorizontalRoundedBold-Bu7b_4Tq.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -4
- package/dist/{swapVertical-9yVsysvS.js → swapVertical-zY2BbSyQ.js} +3 -4
- package/dist/{telegram-0bWPCnom.js → telegram-DS4l-8Oc.js} +3 -4
- package/dist/{three-dots-V6GJeVIa.js → three-dots-RctNqamK.js} +3 -4
- package/dist/truncate-D9t92mVX.js +7 -0
- package/dist/{twitch-BnXJxO5H.js → twitch-CJ0llIIH.js} +3 -4
- package/dist/{twitterIcon-DKgyPicl.js → twitterIcon-pgvN9-bP.js} +3 -4
- package/dist/unsupportedProp-BJVuEW_b.js +10 -0
- package/dist/useRegisterError-C_YLA1dw.js +9857 -0
- package/dist/validError-CDlJpg_f.js +6 -0
- package/dist/{verify-6SHEYxKY.js → verify-BeZLo1Fq.js} +3 -4
- package/dist/{verify-filled-V7PkY7fi.js → verify-filled-meyb7E16.js} +3 -4
- package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
- package/dist/{wallet-CyIBiiAv.js → wallet-CFcOgSsz.js} +3 -4
- package/dist/{wallet-placeholder-Dy4jQvK8.js → wallet-placeholder-CeUMILZq.js} +3 -4
- package/dist/{walletconnect-CL5PuqLp.js → walletconnect-D6LB1PyC.js} +7 -10
- package/dist/{warning-circle-BbG3KGtg.js → warning-circle-BRtzofvT.js} +3 -4
- package/dist/{x-BKSfqvJ-.js → x-DKQAOOh3.js} +3 -4
- package/package.json +1 -1
- package/dist/AllRoutes-N9u-0kyk.js +0 -2605
- package/dist/AllRoutes-N9u-0kyk.js.map +0 -1
- package/dist/Box-DPSoUHKG.js +0 -61
- package/dist/Box-DPSoUHKG.js.map +0 -1
- package/dist/EstGas-9QzcUupH.js +0 -17109
- package/dist/EstGas-9QzcUupH.js.map +0 -1
- package/dist/Grow-sm7uQW-H.js +0 -2213
- package/dist/Grow-sm7uQW-H.js.map +0 -1
- package/dist/InputComp-BNsmXy6D.js +0 -115
- package/dist/InputComp-BNsmXy6D.js.map +0 -1
- package/dist/LoadRoute-DFIoO0Wm.js +0 -143
- package/dist/LoadRoute-DFIoO0Wm.js.map +0 -1
- package/dist/QuotesProgress-C4vn322J.js +0 -30
- package/dist/QuotesProgress-C4vn322J.js.map +0 -1
- package/dist/SwapAsset-kKtvzzJ_.js +0 -66
- package/dist/SwapAsset-kKtvzzJ_.js.map +0 -1
- package/dist/Tooltip-c1DRaAxV.js +0 -719
- package/dist/Tooltip-c1DRaAxV.js.map +0 -1
- package/dist/TxnButton-BmcX_BPz.js +0 -303
- package/dist/TxnButton-BmcX_BPz.js.map +0 -1
- package/dist/WidgetForm.module-DhUUlwZP.js +0 -14
- package/dist/WidgetForm.module-DhUUlwZP.js.map +0 -1
- package/dist/add-BDjkKnDN.js.map +0 -1
- package/dist/all-wallets-CrBep7Gl.js.map +0 -1
- package/dist/app-store-CwaPvoXY.js.map +0 -1
- package/dist/apple-BA8mnYrP.js.map +0 -1
- package/dist/arrow-bottom-BXdMFUAl.js.map +0 -1
- package/dist/arrow-bottom-circle-DFT4mXIU.js.map +0 -1
- package/dist/arrow-left-BzkeYnqg.js.map +0 -1
- package/dist/arrow-right-DiUAWQjY.js.map +0 -1
- package/dist/arrow-top-86AMrjF7.js.map +0 -1
- package/dist/bank-DN5JAJkK.js.map +0 -1
- package/dist/basic-Bn5vs8SQ.js +0 -7110
- package/dist/basic-Bn5vs8SQ.js.map +0 -1
- package/dist/browser-CIEc-DNj.js.map +0 -1
- package/dist/card-D0J873mK.js.map +0 -1
- package/dist/ccip-DOQk8pZb.js +0 -251
- package/dist/ccip-DOQk8pZb.js.map +0 -1
- package/dist/checkmark-bold-Cvmc9tJb.js.map +0 -1
- package/dist/checkmark-mvlF9aX8.js.map +0 -1
- package/dist/chevron-bottom-CWsU0Wj4.js.map +0 -1
- package/dist/chevron-left-DZoyyvkH.js.map +0 -1
- package/dist/chevron-right-Db1S8IpK.js.map +0 -1
- package/dist/chevron-top-BG2-jrhN.js.map +0 -1
- package/dist/chrome-store-bZ30Z8RD.js.map +0 -1
- package/dist/clock-BQCJkpsN.js.map +0 -1
- package/dist/clockIcon-jSNFFrLy.js +0 -77
- package/dist/clockIcon-jSNFFrLy.js.map +0 -1
- package/dist/close-0442yxHv.js.map +0 -1
- package/dist/coinPlaceholder-npHsRGpi.js.map +0 -1
- package/dist/compass-CA-2HVOX.js.map +0 -1
- package/dist/copy-DZVC8Hxi.js.map +0 -1
- package/dist/core-h4B-syrK.js +0 -17218
- package/dist/core-h4B-syrK.js.map +0 -1
- package/dist/cursor-BmgVIdd4.js +0 -8
- package/dist/cursor-BmgVIdd4.js.map +0 -1
- package/dist/cursor-transparent-wVQvgZAK.js.map +0 -1
- package/dist/desktop-DTAJIXTO.js.map +0 -1
- package/dist/disconnect-D8Si5N8S.js.map +0 -1
- package/dist/discord-tQYw47cV.js.map +0 -1
- package/dist/down-BgR5p6bw.js +0 -810
- package/dist/down-BgR5p6bw.js.map +0 -1
- package/dist/etherscan-CjqNGBR7.js.map +0 -1
- package/dist/ethertousd-BOknTgU4.js +0 -8
- package/dist/ethertousd-BOknTgU4.js.map +0 -1
- package/dist/exclamation-triangle-BhHXY1hF.js.map +0 -1
- package/dist/extension-y15WoviO.js.map +0 -1
- package/dist/external-link--gR7z0qt.js.map +0 -1
- package/dist/facebook-DlX8IWwq.js.map +0 -1
- package/dist/farcaster-CFzTYTRj.js.map +0 -1
- package/dist/filters-BO_y5jSy.js.map +0 -1
- package/dist/getChainIds-BW6u6K7g.js +0 -2432
- package/dist/getChainIds-BW6u6K7g.js.map +0 -1
- package/dist/getCosmosAddress-Q91DQZPn.js +0 -13999
- package/dist/getCosmosAddress-Q91DQZPn.js.map +0 -1
- package/dist/github-B9QjqzQj.js.map +0 -1
- package/dist/google-D9CK21nC.js.map +0 -1
- package/dist/hamburger-DdXejR_U.js +0 -4563
- package/dist/hamburger-DdXejR_U.js.map +0 -1
- package/dist/help-circle-Qf3YDcg6.js.map +0 -1
- package/dist/id-VtdZj5EJ.js.map +0 -1
- package/dist/image-Bb6NRqAG.js.map +0 -1
- package/dist/index-A4USEaqO.js +0 -4218
- package/dist/index-A4USEaqO.js.map +0 -1
- package/dist/index-BnNGphMQ.js +0 -544
- package/dist/index-BnNGphMQ.js.map +0 -1
- package/dist/index-CLkRz935.js +0 -24385
- package/dist/index-CLkRz935.js.map +0 -1
- package/dist/index-CMYftxmy.js +0 -1884
- package/dist/index-CMYftxmy.js.map +0 -1
- package/dist/index-D0RbVaC6.js +0 -12
- package/dist/index-D0RbVaC6.js.map +0 -1
- package/dist/index-D44jBo43.js +0 -35859
- package/dist/index-D44jBo43.js.map +0 -1
- package/dist/index-DArR1lwi.js +0 -1760
- package/dist/index-DArR1lwi.js.map +0 -1
- package/dist/index-DQPPcv1z.js +0 -309
- package/dist/index-DQPPcv1z.js.map +0 -1
- package/dist/index-DYHhV8Ah.js +0 -16079
- package/dist/index-DYHhV8Ah.js.map +0 -1
- package/dist/index-Di4O_5cO.js +0 -1088
- package/dist/index-Di4O_5cO.js.map +0 -1
- package/dist/index-HAMZ-tBE.js +0 -189
- package/dist/index-HAMZ-tBE.js.map +0 -1
- package/dist/index-h0B0Ds4O.js +0 -413
- package/dist/index-h0B0Ds4O.js.map +0 -1
- package/dist/index-sLx4Edw4.js +0 -23
- package/dist/index-sLx4Edw4.js.map +0 -1
- package/dist/index.es-CoUIS9Di.js +0 -12917
- package/dist/index.es-CoUIS9Di.js.map +0 -1
- package/dist/index.es-DvgvELOO.js +0 -476
- package/dist/index.es-DvgvELOO.js.map +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/info-C-7imdlv.js.map +0 -1
- package/dist/info-circle-CojbxQCA.js.map +0 -1
- package/dist/lightbulb-DrfSirtI.js.map +0 -1
- package/dist/mail-yuNzffmW.js.map +0 -1
- package/dist/mobile-B68qFJIJ.js.map +0 -1
- package/dist/more-B5F7-jLe.js.map +0 -1
- package/dist/network-placeholder-C0IP4D1c.js.map +0 -1
- package/dist/nftPlaceholder-DUEpu8vC.js.map +0 -1
- package/dist/off-kgcptPTJ.js.map +0 -1
- package/dist/play-store-CpkQM7Tf.js.map +0 -1
- package/dist/plus-WJX5o6br.js.map +0 -1
- package/dist/qr-code-DYSpZOBK.js.map +0 -1
- package/dist/recycle-horizontal-nN1xwykO.js.map +0 -1
- package/dist/refresh-BDlbkeKx.js.map +0 -1
- package/dist/reown-logo--P11S5yl.js.map +0 -1
- package/dist/search-DBF3vwq7.js.map +0 -1
- package/dist/secp256k1-CBD0agkt.js +0 -1682
- package/dist/secp256k1-CBD0agkt.js.map +0 -1
- package/dist/send-pvA8KHBc.js.map +0 -1
- package/dist/shareicon-BdQizUDb.js +0 -315
- package/dist/shareicon-BdQizUDb.js.map +0 -1
- package/dist/sortDown-cDA6MpOw.js.map +0 -1
- package/dist/swapHorizontal-BI2PzZwN.js.map +0 -1
- package/dist/swapHorizontalBold-CWlwK-F6.js.map +0 -1
- package/dist/swapHorizontalMedium-BmLVJu35.js.map +0 -1
- package/dist/swapHorizontalRoundedBold-Bu7b_4Tq.js.map +0 -1
- package/dist/swapVertical-9yVsysvS.js.map +0 -1
- package/dist/telegram-0bWPCnom.js.map +0 -1
- package/dist/three-dots-V6GJeVIa.js.map +0 -1
- package/dist/truncate-DSxFWEga.js +0 -8
- package/dist/truncate-DSxFWEga.js.map +0 -1
- package/dist/twitch-BnXJxO5H.js.map +0 -1
- package/dist/twitterIcon-DKgyPicl.js.map +0 -1
- package/dist/unsupportedProp-DvjrBqjA.js +0 -15
- package/dist/unsupportedProp-DvjrBqjA.js.map +0 -1
- package/dist/useRegisterError-DTDRNbyK.js +0 -19289
- package/dist/useRegisterError-DTDRNbyK.js.map +0 -1
- package/dist/validError-rariWQ7G.js +0 -15
- package/dist/validError-rariWQ7G.js.map +0 -1
- package/dist/verify-6SHEYxKY.js.map +0 -1
- package/dist/verify-filled-V7PkY7fi.js.map +0 -1
- package/dist/w3m-modal-DeL22Ji8.js +0 -1722
- package/dist/w3m-modal-DeL22Ji8.js.map +0 -1
- package/dist/wallet-CyIBiiAv.js.map +0 -1
- package/dist/wallet-placeholder-Dy4jQvK8.js.map +0 -1
- package/dist/walletconnect-CL5PuqLp.js.map +0 -1
- package/dist/warning-circle-BbG3KGtg.js.map +0 -1
- package/dist/x-BKSfqvJ-.js.map +0 -1
package/dist/index-BnNGphMQ.js
DELETED
@@ -1,544 +0,0 @@
|
|
1
|
-
import { g as generateUtilityClass, p as process$1, r as resolveProps, _ as _objectWithoutPropertiesLoose, b as _extends, d as capitalize, e as colorManipulatorExports, P as PropTypes } from "./index-D44jBo43.js";
|
2
|
-
import * as React from "react";
|
3
|
-
import { g as generateUtilityClasses, d as useDefaultProps, s as styled, c as clsx, a as composeClasses, r as rootShouldForwardProp } from "./useRegisterError-DTDRNbyK.js";
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
5
|
-
import { B as ButtonBase } from "./getChainIds-BW6u6K7g.js";
|
6
|
-
function getButtonUtilityClass(slot) {
|
7
|
-
return generateUtilityClass("MuiButton", slot);
|
8
|
-
}
|
9
|
-
const buttonClasses = generateUtilityClasses("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]);
|
10
|
-
const ButtonGroupContext = /* @__PURE__ */ React.createContext({});
|
11
|
-
if (process$1.env.NODE_ENV !== "production") {
|
12
|
-
ButtonGroupContext.displayName = "ButtonGroupContext";
|
13
|
-
}
|
14
|
-
const ButtonGroupButtonContext = /* @__PURE__ */ React.createContext(void 0);
|
15
|
-
if (process$1.env.NODE_ENV !== "production") {
|
16
|
-
ButtonGroupButtonContext.displayName = "ButtonGroupButtonContext";
|
17
|
-
}
|
18
|
-
const _excluded = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
19
|
-
const useUtilityClasses = (ownerState) => {
|
20
|
-
const {
|
21
|
-
color,
|
22
|
-
disableElevation,
|
23
|
-
fullWidth,
|
24
|
-
size,
|
25
|
-
variant,
|
26
|
-
classes
|
27
|
-
} = ownerState;
|
28
|
-
const slots = {
|
29
|
-
root: ["root", variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && "disableElevation", fullWidth && "fullWidth"],
|
30
|
-
label: ["label"],
|
31
|
-
startIcon: ["icon", "startIcon", `iconSize${capitalize(size)}`],
|
32
|
-
endIcon: ["icon", "endIcon", `iconSize${capitalize(size)}`]
|
33
|
-
};
|
34
|
-
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
35
|
-
return _extends({}, classes, composedClasses);
|
36
|
-
};
|
37
|
-
const commonIconStyles = (ownerState) => _extends({}, ownerState.size === "small" && {
|
38
|
-
"& > *:nth-of-type(1)": {
|
39
|
-
fontSize: 18
|
40
|
-
}
|
41
|
-
}, ownerState.size === "medium" && {
|
42
|
-
"& > *:nth-of-type(1)": {
|
43
|
-
fontSize: 20
|
44
|
-
}
|
45
|
-
}, ownerState.size === "large" && {
|
46
|
-
"& > *:nth-of-type(1)": {
|
47
|
-
fontSize: 22
|
48
|
-
}
|
49
|
-
});
|
50
|
-
const ButtonRoot = styled(ButtonBase, {
|
51
|
-
shouldForwardProp: (prop) => rootShouldForwardProp(prop) || prop === "classes",
|
52
|
-
name: "MuiButton",
|
53
|
-
slot: "Root",
|
54
|
-
overridesResolver: (props, styles) => {
|
55
|
-
const {
|
56
|
-
ownerState
|
57
|
-
} = props;
|
58
|
-
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === "inherit" && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
|
59
|
-
}
|
60
|
-
})(({
|
61
|
-
theme,
|
62
|
-
ownerState
|
63
|
-
}) => {
|
64
|
-
var _theme$palette$getCon, _theme$palette;
|
65
|
-
const inheritContainedBackgroundColor = theme.palette.mode === "light" ? theme.palette.grey[300] : theme.palette.grey[800];
|
66
|
-
const inheritContainedHoverBackgroundColor = theme.palette.mode === "light" ? theme.palette.grey.A100 : theme.palette.grey[700];
|
67
|
-
return _extends({}, theme.typography.button, {
|
68
|
-
minWidth: 64,
|
69
|
-
padding: "6px 16px",
|
70
|
-
borderRadius: (theme.vars || theme).shape.borderRadius,
|
71
|
-
transition: theme.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
72
|
-
duration: theme.transitions.duration.short
|
73
|
-
}),
|
74
|
-
"&:hover": _extends({
|
75
|
-
textDecoration: "none",
|
76
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : colorManipulatorExports.alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
77
|
-
// Reset on touch devices, it doesn't add specificity
|
78
|
-
"@media (hover: none)": {
|
79
|
-
backgroundColor: "transparent"
|
80
|
-
}
|
81
|
-
}, ownerState.variant === "text" && ownerState.color !== "inherit" && {
|
82
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : colorManipulatorExports.alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
83
|
-
// Reset on touch devices, it doesn't add specificity
|
84
|
-
"@media (hover: none)": {
|
85
|
-
backgroundColor: "transparent"
|
86
|
-
}
|
87
|
-
}, ownerState.variant === "outlined" && ownerState.color !== "inherit" && {
|
88
|
-
border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
|
89
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : colorManipulatorExports.alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
90
|
-
// Reset on touch devices, it doesn't add specificity
|
91
|
-
"@media (hover: none)": {
|
92
|
-
backgroundColor: "transparent"
|
93
|
-
}
|
94
|
-
}, ownerState.variant === "contained" && {
|
95
|
-
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
96
|
-
boxShadow: (theme.vars || theme).shadows[4],
|
97
|
-
// Reset on touch devices, it doesn't add specificity
|
98
|
-
"@media (hover: none)": {
|
99
|
-
boxShadow: (theme.vars || theme).shadows[2],
|
100
|
-
backgroundColor: (theme.vars || theme).palette.grey[300]
|
101
|
-
}
|
102
|
-
}, ownerState.variant === "contained" && ownerState.color !== "inherit" && {
|
103
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
104
|
-
// Reset on touch devices, it doesn't add specificity
|
105
|
-
"@media (hover: none)": {
|
106
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
107
|
-
}
|
108
|
-
}),
|
109
|
-
"&:active": _extends({}, ownerState.variant === "contained" && {
|
110
|
-
boxShadow: (theme.vars || theme).shadows[8]
|
111
|
-
}),
|
112
|
-
[`&.${buttonClasses.focusVisible}`]: _extends({}, ownerState.variant === "contained" && {
|
113
|
-
boxShadow: (theme.vars || theme).shadows[6]
|
114
|
-
}),
|
115
|
-
[`&.${buttonClasses.disabled}`]: _extends({
|
116
|
-
color: (theme.vars || theme).palette.action.disabled
|
117
|
-
}, ownerState.variant === "outlined" && {
|
118
|
-
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
119
|
-
}, ownerState.variant === "contained" && {
|
120
|
-
color: (theme.vars || theme).palette.action.disabled,
|
121
|
-
boxShadow: (theme.vars || theme).shadows[0],
|
122
|
-
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
123
|
-
})
|
124
|
-
}, ownerState.variant === "text" && {
|
125
|
-
padding: "6px 8px"
|
126
|
-
}, ownerState.variant === "text" && ownerState.color !== "inherit" && {
|
127
|
-
color: (theme.vars || theme).palette[ownerState.color].main
|
128
|
-
}, ownerState.variant === "outlined" && {
|
129
|
-
padding: "5px 15px",
|
130
|
-
border: "1px solid currentColor"
|
131
|
-
}, ownerState.variant === "outlined" && ownerState.color !== "inherit" && {
|
132
|
-
color: (theme.vars || theme).palette[ownerState.color].main,
|
133
|
-
border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${colorManipulatorExports.alpha(theme.palette[ownerState.color].main, 0.5)}`
|
134
|
-
}, ownerState.variant === "contained" && {
|
135
|
-
color: theme.vars ? (
|
136
|
-
// this is safe because grey does not change between default light/dark mode
|
137
|
-
theme.vars.palette.text.primary
|
138
|
-
) : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
|
139
|
-
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
140
|
-
boxShadow: (theme.vars || theme).shadows[2]
|
141
|
-
}, ownerState.variant === "contained" && ownerState.color !== "inherit" && {
|
142
|
-
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
143
|
-
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
144
|
-
}, ownerState.color === "inherit" && {
|
145
|
-
color: "inherit",
|
146
|
-
borderColor: "currentColor"
|
147
|
-
}, ownerState.size === "small" && ownerState.variant === "text" && {
|
148
|
-
padding: "4px 5px",
|
149
|
-
fontSize: theme.typography.pxToRem(13)
|
150
|
-
}, ownerState.size === "large" && ownerState.variant === "text" && {
|
151
|
-
padding: "8px 11px",
|
152
|
-
fontSize: theme.typography.pxToRem(15)
|
153
|
-
}, ownerState.size === "small" && ownerState.variant === "outlined" && {
|
154
|
-
padding: "3px 9px",
|
155
|
-
fontSize: theme.typography.pxToRem(13)
|
156
|
-
}, ownerState.size === "large" && ownerState.variant === "outlined" && {
|
157
|
-
padding: "7px 21px",
|
158
|
-
fontSize: theme.typography.pxToRem(15)
|
159
|
-
}, ownerState.size === "small" && ownerState.variant === "contained" && {
|
160
|
-
padding: "4px 10px",
|
161
|
-
fontSize: theme.typography.pxToRem(13)
|
162
|
-
}, ownerState.size === "large" && ownerState.variant === "contained" && {
|
163
|
-
padding: "8px 22px",
|
164
|
-
fontSize: theme.typography.pxToRem(15)
|
165
|
-
}, ownerState.fullWidth && {
|
166
|
-
width: "100%"
|
167
|
-
});
|
168
|
-
}, ({
|
169
|
-
ownerState
|
170
|
-
}) => ownerState.disableElevation && {
|
171
|
-
boxShadow: "none",
|
172
|
-
"&:hover": {
|
173
|
-
boxShadow: "none"
|
174
|
-
},
|
175
|
-
[`&.${buttonClasses.focusVisible}`]: {
|
176
|
-
boxShadow: "none"
|
177
|
-
},
|
178
|
-
"&:active": {
|
179
|
-
boxShadow: "none"
|
180
|
-
},
|
181
|
-
[`&.${buttonClasses.disabled}`]: {
|
182
|
-
boxShadow: "none"
|
183
|
-
}
|
184
|
-
});
|
185
|
-
const ButtonStartIcon = styled("span", {
|
186
|
-
name: "MuiButton",
|
187
|
-
slot: "StartIcon",
|
188
|
-
overridesResolver: (props, styles) => {
|
189
|
-
const {
|
190
|
-
ownerState
|
191
|
-
} = props;
|
192
|
-
return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
193
|
-
}
|
194
|
-
})(({
|
195
|
-
ownerState
|
196
|
-
}) => _extends({
|
197
|
-
display: "inherit",
|
198
|
-
marginRight: 8,
|
199
|
-
marginLeft: -4
|
200
|
-
}, ownerState.size === "small" && {
|
201
|
-
marginLeft: -2
|
202
|
-
}, commonIconStyles(ownerState)));
|
203
|
-
const ButtonEndIcon = styled("span", {
|
204
|
-
name: "MuiButton",
|
205
|
-
slot: "EndIcon",
|
206
|
-
overridesResolver: (props, styles) => {
|
207
|
-
const {
|
208
|
-
ownerState
|
209
|
-
} = props;
|
210
|
-
return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
211
|
-
}
|
212
|
-
})(({
|
213
|
-
ownerState
|
214
|
-
}) => _extends({
|
215
|
-
display: "inherit",
|
216
|
-
marginRight: -4,
|
217
|
-
marginLeft: 8
|
218
|
-
}, ownerState.size === "small" && {
|
219
|
-
marginRight: -2
|
220
|
-
}, commonIconStyles(ownerState)));
|
221
|
-
const Button = /* @__PURE__ */ React.forwardRef(function Button2(inProps, ref) {
|
222
|
-
const contextProps = React.useContext(ButtonGroupContext);
|
223
|
-
const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);
|
224
|
-
const resolvedProps = resolveProps(contextProps, inProps);
|
225
|
-
const props = useDefaultProps({
|
226
|
-
props: resolvedProps,
|
227
|
-
name: "MuiButton"
|
228
|
-
});
|
229
|
-
const {
|
230
|
-
children,
|
231
|
-
color = "primary",
|
232
|
-
component = "button",
|
233
|
-
className,
|
234
|
-
disabled = false,
|
235
|
-
disableElevation = false,
|
236
|
-
disableFocusRipple = false,
|
237
|
-
endIcon: endIconProp,
|
238
|
-
focusVisibleClassName,
|
239
|
-
fullWidth = false,
|
240
|
-
size = "medium",
|
241
|
-
startIcon: startIconProp,
|
242
|
-
type,
|
243
|
-
variant = "text"
|
244
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded);
|
245
|
-
const ownerState = _extends({}, props, {
|
246
|
-
color,
|
247
|
-
component,
|
248
|
-
disabled,
|
249
|
-
disableElevation,
|
250
|
-
disableFocusRipple,
|
251
|
-
fullWidth,
|
252
|
-
size,
|
253
|
-
type,
|
254
|
-
variant
|
255
|
-
});
|
256
|
-
const classes = useUtilityClasses(ownerState);
|
257
|
-
const startIcon = startIconProp && /* @__PURE__ */ jsx(ButtonStartIcon, {
|
258
|
-
className: classes.startIcon,
|
259
|
-
ownerState,
|
260
|
-
children: startIconProp
|
261
|
-
});
|
262
|
-
const endIcon = endIconProp && /* @__PURE__ */ jsx(ButtonEndIcon, {
|
263
|
-
className: classes.endIcon,
|
264
|
-
ownerState,
|
265
|
-
children: endIconProp
|
266
|
-
});
|
267
|
-
const positionClassName = buttonGroupButtonContextPositionClassName || "";
|
268
|
-
return /* @__PURE__ */ jsxs(ButtonRoot, _extends({
|
269
|
-
ownerState,
|
270
|
-
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
271
|
-
component,
|
272
|
-
disabled,
|
273
|
-
focusRipple: !disableFocusRipple,
|
274
|
-
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
275
|
-
ref,
|
276
|
-
type
|
277
|
-
}, other, {
|
278
|
-
classes,
|
279
|
-
children: [startIcon, children, endIcon]
|
280
|
-
}));
|
281
|
-
});
|
282
|
-
process$1.env.NODE_ENV !== "production" ? Button.propTypes = {
|
283
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
284
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
285
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
286
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
287
|
-
/**
|
288
|
-
* The content of the component.
|
289
|
-
*/
|
290
|
-
children: PropTypes.node,
|
291
|
-
/**
|
292
|
-
* Override or extend the styles applied to the component.
|
293
|
-
*/
|
294
|
-
classes: PropTypes.object,
|
295
|
-
/**
|
296
|
-
* @ignore
|
297
|
-
*/
|
298
|
-
className: PropTypes.string,
|
299
|
-
/**
|
300
|
-
* The color of the component.
|
301
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
302
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
303
|
-
* @default 'primary'
|
304
|
-
*/
|
305
|
-
color: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), PropTypes.string]),
|
306
|
-
/**
|
307
|
-
* The component used for the root node.
|
308
|
-
* Either a string to use a HTML element or a component.
|
309
|
-
*/
|
310
|
-
component: PropTypes.elementType,
|
311
|
-
/**
|
312
|
-
* If `true`, the component is disabled.
|
313
|
-
* @default false
|
314
|
-
*/
|
315
|
-
disabled: PropTypes.bool,
|
316
|
-
/**
|
317
|
-
* If `true`, no elevation is used.
|
318
|
-
* @default false
|
319
|
-
*/
|
320
|
-
disableElevation: PropTypes.bool,
|
321
|
-
/**
|
322
|
-
* If `true`, the keyboard focus ripple is disabled.
|
323
|
-
* @default false
|
324
|
-
*/
|
325
|
-
disableFocusRipple: PropTypes.bool,
|
326
|
-
/**
|
327
|
-
* If `true`, the ripple effect is disabled.
|
328
|
-
*
|
329
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
330
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
331
|
-
* @default false
|
332
|
-
*/
|
333
|
-
disableRipple: PropTypes.bool,
|
334
|
-
/**
|
335
|
-
* Element placed after the children.
|
336
|
-
*/
|
337
|
-
endIcon: PropTypes.node,
|
338
|
-
/**
|
339
|
-
* @ignore
|
340
|
-
*/
|
341
|
-
focusVisibleClassName: PropTypes.string,
|
342
|
-
/**
|
343
|
-
* If `true`, the button will take up the full width of its container.
|
344
|
-
* @default false
|
345
|
-
*/
|
346
|
-
fullWidth: PropTypes.bool,
|
347
|
-
/**
|
348
|
-
* The URL to link to when the button is clicked.
|
349
|
-
* If defined, an `a` element will be used as the root node.
|
350
|
-
*/
|
351
|
-
href: PropTypes.string,
|
352
|
-
/**
|
353
|
-
* The size of the component.
|
354
|
-
* `small` is equivalent to the dense button styling.
|
355
|
-
* @default 'medium'
|
356
|
-
*/
|
357
|
-
size: PropTypes.oneOfType([PropTypes.oneOf(["small", "medium", "large"]), PropTypes.string]),
|
358
|
-
/**
|
359
|
-
* Element placed before the children.
|
360
|
-
*/
|
361
|
-
startIcon: PropTypes.node,
|
362
|
-
/**
|
363
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
364
|
-
*/
|
365
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
366
|
-
/**
|
367
|
-
* @ignore
|
368
|
-
*/
|
369
|
-
type: PropTypes.oneOfType([PropTypes.oneOf(["button", "reset", "submit"]), PropTypes.string]),
|
370
|
-
/**
|
371
|
-
* The variant to use.
|
372
|
-
* @default 'text'
|
373
|
-
*/
|
374
|
-
variant: PropTypes.oneOfType([PropTypes.oneOf(["contained", "outlined", "text"]), PropTypes.string])
|
375
|
-
} : void 0;
|
376
|
-
var observerMap = /* @__PURE__ */ new Map();
|
377
|
-
var RootIds = /* @__PURE__ */ new WeakMap();
|
378
|
-
var rootId = 0;
|
379
|
-
var unsupportedValue = void 0;
|
380
|
-
function getRootId(root) {
|
381
|
-
if (!root) return "0";
|
382
|
-
if (RootIds.has(root)) return RootIds.get(root);
|
383
|
-
rootId += 1;
|
384
|
-
RootIds.set(root, rootId.toString());
|
385
|
-
return RootIds.get(root);
|
386
|
-
}
|
387
|
-
function optionsToId(options) {
|
388
|
-
return Object.keys(options).sort().filter(
|
389
|
-
(key) => options[key] !== void 0
|
390
|
-
).map((key) => {
|
391
|
-
return `${key}_${key === "root" ? getRootId(options.root) : options[key]}`;
|
392
|
-
}).toString();
|
393
|
-
}
|
394
|
-
function createObserver(options) {
|
395
|
-
const id = optionsToId(options);
|
396
|
-
let instance = observerMap.get(id);
|
397
|
-
if (!instance) {
|
398
|
-
const elements = /* @__PURE__ */ new Map();
|
399
|
-
let thresholds;
|
400
|
-
const observer = new IntersectionObserver((entries) => {
|
401
|
-
entries.forEach((entry) => {
|
402
|
-
var _a;
|
403
|
-
const inView = entry.isIntersecting && thresholds.some((threshold) => entry.intersectionRatio >= threshold);
|
404
|
-
if (options.trackVisibility && typeof entry.isVisible === "undefined") {
|
405
|
-
entry.isVisible = inView;
|
406
|
-
}
|
407
|
-
(_a = elements.get(entry.target)) == null ? void 0 : _a.forEach((callback) => {
|
408
|
-
callback(inView, entry);
|
409
|
-
});
|
410
|
-
});
|
411
|
-
}, options);
|
412
|
-
thresholds = observer.thresholds || (Array.isArray(options.threshold) ? options.threshold : [options.threshold || 0]);
|
413
|
-
instance = {
|
414
|
-
id,
|
415
|
-
observer,
|
416
|
-
elements
|
417
|
-
};
|
418
|
-
observerMap.set(id, instance);
|
419
|
-
}
|
420
|
-
return instance;
|
421
|
-
}
|
422
|
-
function observe(element, callback, options = {}, fallbackInView = unsupportedValue) {
|
423
|
-
if (typeof window.IntersectionObserver === "undefined" && fallbackInView !== void 0) {
|
424
|
-
const bounds = element.getBoundingClientRect();
|
425
|
-
callback(fallbackInView, {
|
426
|
-
isIntersecting: fallbackInView,
|
427
|
-
target: element,
|
428
|
-
intersectionRatio: typeof options.threshold === "number" ? options.threshold : 0,
|
429
|
-
time: 0,
|
430
|
-
boundingClientRect: bounds,
|
431
|
-
intersectionRect: bounds,
|
432
|
-
rootBounds: bounds
|
433
|
-
});
|
434
|
-
return () => {
|
435
|
-
};
|
436
|
-
}
|
437
|
-
const { id, observer, elements } = createObserver(options);
|
438
|
-
const callbacks = elements.get(element) || [];
|
439
|
-
if (!elements.has(element)) {
|
440
|
-
elements.set(element, callbacks);
|
441
|
-
}
|
442
|
-
callbacks.push(callback);
|
443
|
-
observer.observe(element);
|
444
|
-
return function unobserve() {
|
445
|
-
callbacks.splice(callbacks.indexOf(callback), 1);
|
446
|
-
if (callbacks.length === 0) {
|
447
|
-
elements.delete(element);
|
448
|
-
observer.unobserve(element);
|
449
|
-
}
|
450
|
-
if (elements.size === 0) {
|
451
|
-
observer.disconnect();
|
452
|
-
observerMap.delete(id);
|
453
|
-
}
|
454
|
-
};
|
455
|
-
}
|
456
|
-
function useInView({
|
457
|
-
threshold,
|
458
|
-
delay,
|
459
|
-
trackVisibility,
|
460
|
-
rootMargin,
|
461
|
-
root,
|
462
|
-
triggerOnce,
|
463
|
-
skip,
|
464
|
-
initialInView,
|
465
|
-
fallbackInView,
|
466
|
-
onChange
|
467
|
-
} = {}) {
|
468
|
-
var _a;
|
469
|
-
const [ref, setRef] = React.useState(null);
|
470
|
-
const callback = React.useRef(onChange);
|
471
|
-
const [state, setState] = React.useState({
|
472
|
-
inView: !!initialInView,
|
473
|
-
entry: void 0
|
474
|
-
});
|
475
|
-
callback.current = onChange;
|
476
|
-
React.useEffect(
|
477
|
-
() => {
|
478
|
-
if (skip || !ref) return;
|
479
|
-
let unobserve;
|
480
|
-
unobserve = observe(
|
481
|
-
ref,
|
482
|
-
(inView, entry) => {
|
483
|
-
setState({
|
484
|
-
inView,
|
485
|
-
entry
|
486
|
-
});
|
487
|
-
if (callback.current) callback.current(inView, entry);
|
488
|
-
if (entry.isIntersecting && triggerOnce && unobserve) {
|
489
|
-
unobserve();
|
490
|
-
unobserve = void 0;
|
491
|
-
}
|
492
|
-
},
|
493
|
-
{
|
494
|
-
root,
|
495
|
-
rootMargin,
|
496
|
-
threshold,
|
497
|
-
// @ts-ignore
|
498
|
-
trackVisibility,
|
499
|
-
// @ts-ignore
|
500
|
-
delay
|
501
|
-
},
|
502
|
-
fallbackInView
|
503
|
-
);
|
504
|
-
return () => {
|
505
|
-
if (unobserve) {
|
506
|
-
unobserve();
|
507
|
-
}
|
508
|
-
};
|
509
|
-
},
|
510
|
-
// We break the rule here, because we aren't including the actual `threshold` variable
|
511
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
512
|
-
[
|
513
|
-
// If the threshold is an array, convert it to a string, so it won't change between renders.
|
514
|
-
Array.isArray(threshold) ? threshold.toString() : threshold,
|
515
|
-
ref,
|
516
|
-
root,
|
517
|
-
rootMargin,
|
518
|
-
triggerOnce,
|
519
|
-
skip,
|
520
|
-
trackVisibility,
|
521
|
-
fallbackInView,
|
522
|
-
delay
|
523
|
-
]
|
524
|
-
);
|
525
|
-
const entryTarget = (_a = state.entry) == null ? void 0 : _a.target;
|
526
|
-
const previousEntryTarget = React.useRef(void 0);
|
527
|
-
if (!ref && entryTarget && !triggerOnce && !skip && previousEntryTarget.current !== entryTarget) {
|
528
|
-
previousEntryTarget.current = entryTarget;
|
529
|
-
setState({
|
530
|
-
inView: !!initialInView,
|
531
|
-
entry: void 0
|
532
|
-
});
|
533
|
-
}
|
534
|
-
const result = [setRef, state.inView, state.entry];
|
535
|
-
result.ref = result[0];
|
536
|
-
result.inView = result[1];
|
537
|
-
result.entry = result[2];
|
538
|
-
return result;
|
539
|
-
}
|
540
|
-
export {
|
541
|
-
Button as B,
|
542
|
-
useInView as u
|
543
|
-
};
|
544
|
-
//# sourceMappingURL=index-BnNGphMQ.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index-BnNGphMQ.js","sources":["../node_modules/@mui/material/Button/buttonClasses.js","../node_modules/@mui/material/ButtonGroup/ButtonGroupContext.js","../node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js","../node_modules/@mui/material/Button/Button.js","../node_modules/react-intersection-observer/dist/index.mjs"],"sourcesContent":["import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getButtonUtilityClass(slot) {\n return generateUtilityClass('MuiButton', slot);\n}\nconst buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorError', 'colorInfo', 'colorWarning', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'icon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);\nexport default buttonClasses;","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ButtonGroupContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n ButtonGroupContext.displayName = 'ButtonGroupContext';\n}\nexport default ButtonGroupContext;","import * as React from 'react';\n/**\n * @ignore - internal component.\n */\nconst ButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== 'production') {\n ButtonGroupButtonContext.displayName = 'ButtonGroupButtonContext';\n}\nexport default ButtonGroupButtonContext;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"color\", \"component\", \"className\", \"disabled\", \"disableElevation\", \"disableFocusRipple\", \"endIcon\", \"focusVisibleClassName\", \"fullWidth\", \"size\", \"startIcon\", \"type\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport resolveProps from '@mui/utils/resolveProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport styled, { rootShouldForwardProp } from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nimport buttonClasses, { getButtonUtilityClass } from './buttonClasses';\nimport ButtonGroupContext from '../ButtonGroup/ButtonGroupContext';\nimport ButtonGroupButtonContext from '../ButtonGroup/ButtonGroupButtonContext';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n disableElevation,\n fullWidth,\n size,\n variant,\n classes\n } = ownerState;\n const slots = {\n root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth'],\n label: ['label'],\n startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],\n endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`]\n };\n const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\nconst commonIconStyles = ownerState => _extends({}, ownerState.size === 'small' && {\n '& > *:nth-of-type(1)': {\n fontSize: 18\n }\n}, ownerState.size === 'medium' && {\n '& > *:nth-of-type(1)': {\n fontSize: 20\n }\n}, ownerState.size === 'large' && {\n '& > *:nth-of-type(1)': {\n fontSize: 22\n }\n});\nconst ButtonRoot = styled(ButtonBase, {\n shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',\n name: 'MuiButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];\n }\n})(({\n theme,\n ownerState\n}) => {\n var _theme$palette$getCon, _theme$palette;\n const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];\n const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];\n return _extends({}, theme.typography.button, {\n minWidth: 64,\n padding: '6px 16px',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': _extends({\n textDecoration: 'none',\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {\n border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }, ownerState.variant === 'contained' && {\n backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,\n boxShadow: (theme.vars || theme).shadows[4],\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n boxShadow: (theme.vars || theme).shadows[2],\n backgroundColor: (theme.vars || theme).palette.grey[300]\n }\n }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {\n backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: (theme.vars || theme).palette[ownerState.color].main\n }\n }),\n '&:active': _extends({}, ownerState.variant === 'contained' && {\n boxShadow: (theme.vars || theme).shadows[8]\n }),\n [`&.${buttonClasses.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {\n boxShadow: (theme.vars || theme).shadows[6]\n }),\n [`&.${buttonClasses.disabled}`]: _extends({\n color: (theme.vars || theme).palette.action.disabled\n }, ownerState.variant === 'outlined' && {\n border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`\n }, ownerState.variant === 'contained' && {\n color: (theme.vars || theme).palette.action.disabled,\n boxShadow: (theme.vars || theme).shadows[0],\n backgroundColor: (theme.vars || theme).palette.action.disabledBackground\n })\n }, ownerState.variant === 'text' && {\n padding: '6px 8px'\n }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {\n color: (theme.vars || theme).palette[ownerState.color].main\n }, ownerState.variant === 'outlined' && {\n padding: '5px 15px',\n border: '1px solid currentColor'\n }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {\n color: (theme.vars || theme).palette[ownerState.color].main,\n border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`\n }, ownerState.variant === 'contained' && {\n color: theme.vars ?\n // this is safe because grey does not change between default light/dark mode\n theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),\n backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,\n boxShadow: (theme.vars || theme).shadows[2]\n }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {\n color: (theme.vars || theme).palette[ownerState.color].contrastText,\n backgroundColor: (theme.vars || theme).palette[ownerState.color].main\n }, ownerState.color === 'inherit' && {\n color: 'inherit',\n borderColor: 'currentColor'\n }, ownerState.size === 'small' && ownerState.variant === 'text' && {\n padding: '4px 5px',\n fontSize: theme.typography.pxToRem(13)\n }, ownerState.size === 'large' && ownerState.variant === 'text' && {\n padding: '8px 11px',\n fontSize: theme.typography.pxToRem(15)\n }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {\n padding: '3px 9px',\n fontSize: theme.typography.pxToRem(13)\n }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {\n padding: '7px 21px',\n fontSize: theme.typography.pxToRem(15)\n }, ownerState.size === 'small' && ownerState.variant === 'contained' && {\n padding: '4px 10px',\n fontSize: theme.typography.pxToRem(13)\n }, ownerState.size === 'large' && ownerState.variant === 'contained' && {\n padding: '8px 22px',\n fontSize: theme.typography.pxToRem(15)\n }, ownerState.fullWidth && {\n width: '100%'\n });\n}, ({\n ownerState\n}) => ownerState.disableElevation && {\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.focusVisible}`]: {\n boxShadow: 'none'\n },\n '&:active': {\n boxShadow: 'none'\n },\n [`&.${buttonClasses.disabled}`]: {\n boxShadow: 'none'\n }\n});\nconst ButtonStartIcon = styled('span', {\n name: 'MuiButton',\n slot: 'StartIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];\n }\n})(({\n ownerState\n}) => _extends({\n display: 'inherit',\n marginRight: 8,\n marginLeft: -4\n}, ownerState.size === 'small' && {\n marginLeft: -2\n}, commonIconStyles(ownerState)));\nconst ButtonEndIcon = styled('span', {\n name: 'MuiButton',\n slot: 'EndIcon',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];\n }\n})(({\n ownerState\n}) => _extends({\n display: 'inherit',\n marginRight: -4,\n marginLeft: 8\n}, ownerState.size === 'small' && {\n marginRight: -2\n}, commonIconStyles(ownerState)));\nconst Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {\n // props priority: `inProps` > `contextProps` > `themeDefaultProps`\n const contextProps = React.useContext(ButtonGroupContext);\n const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);\n const resolvedProps = resolveProps(contextProps, inProps);\n const props = useDefaultProps({\n props: resolvedProps,\n name: 'MuiButton'\n });\n const {\n children,\n color = 'primary',\n component = 'button',\n className,\n disabled = false,\n disableElevation = false,\n disableFocusRipple = false,\n endIcon: endIconProp,\n focusVisibleClassName,\n fullWidth = false,\n size = 'medium',\n startIcon: startIconProp,\n type,\n variant = 'text'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n color,\n component,\n disabled,\n disableElevation,\n disableFocusRipple,\n fullWidth,\n size,\n type,\n variant\n });\n const classes = useUtilityClasses(ownerState);\n const startIcon = startIconProp && /*#__PURE__*/_jsx(ButtonStartIcon, {\n className: classes.startIcon,\n ownerState: ownerState,\n children: startIconProp\n });\n const endIcon = endIconProp && /*#__PURE__*/_jsx(ButtonEndIcon, {\n className: classes.endIcon,\n ownerState: ownerState,\n children: endIconProp\n });\n const positionClassName = buttonGroupButtonContextPositionClassName || '';\n return /*#__PURE__*/_jsxs(ButtonRoot, _extends({\n ownerState: ownerState,\n className: clsx(contextProps.className, classes.root, className, positionClassName),\n component: component,\n disabled: disabled,\n focusRipple: !disableFocusRipple,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ref: ref,\n type: type\n }, other, {\n classes: classes,\n children: [startIcon, children, endIcon]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Button.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, no elevation is used.\n * @default false\n */\n disableElevation: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * Element placed after the children.\n */\n endIcon: PropTypes.node,\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n /**\n * If `true`, the button will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The URL to link to when the button is clicked.\n * If defined, an `a` element will be used as the root node.\n */\n href: PropTypes.string,\n /**\n * The size of the component.\n * `small` is equivalent to the dense button styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),\n /**\n * Element placed before the children.\n */\n startIcon: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),\n /**\n * The variant to use.\n * @default 'text'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])\n} : void 0;\nexport default Button;","\"use client\";\nvar __defProp = Object.defineProperty;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== \"symbol\" ? key + \"\" : key, value);\n\n// src/InView.tsx\nimport * as React from \"react\";\n\n// src/observe.ts\nvar observerMap = /* @__PURE__ */ new Map();\nvar RootIds = /* @__PURE__ */ new WeakMap();\nvar rootId = 0;\nvar unsupportedValue = void 0;\nfunction defaultFallbackInView(inView) {\n unsupportedValue = inView;\n}\nfunction getRootId(root) {\n if (!root) return \"0\";\n if (RootIds.has(root)) return RootIds.get(root);\n rootId += 1;\n RootIds.set(root, rootId.toString());\n return RootIds.get(root);\n}\nfunction optionsToId(options) {\n return Object.keys(options).sort().filter(\n (key) => options[key] !== void 0\n ).map((key) => {\n return `${key}_${key === \"root\" ? getRootId(options.root) : options[key]}`;\n }).toString();\n}\nfunction createObserver(options) {\n const id = optionsToId(options);\n let instance = observerMap.get(id);\n if (!instance) {\n const elements = /* @__PURE__ */ new Map();\n let thresholds;\n const observer = new IntersectionObserver((entries) => {\n entries.forEach((entry) => {\n var _a;\n const inView = entry.isIntersecting && thresholds.some((threshold) => entry.intersectionRatio >= threshold);\n if (options.trackVisibility && typeof entry.isVisible === \"undefined\") {\n entry.isVisible = inView;\n }\n (_a = elements.get(entry.target)) == null ? void 0 : _a.forEach((callback) => {\n callback(inView, entry);\n });\n });\n }, options);\n thresholds = observer.thresholds || (Array.isArray(options.threshold) ? options.threshold : [options.threshold || 0]);\n instance = {\n id,\n observer,\n elements\n };\n observerMap.set(id, instance);\n }\n return instance;\n}\nfunction observe(element, callback, options = {}, fallbackInView = unsupportedValue) {\n if (typeof window.IntersectionObserver === \"undefined\" && fallbackInView !== void 0) {\n const bounds = element.getBoundingClientRect();\n callback(fallbackInView, {\n isIntersecting: fallbackInView,\n target: element,\n intersectionRatio: typeof options.threshold === \"number\" ? options.threshold : 0,\n time: 0,\n boundingClientRect: bounds,\n intersectionRect: bounds,\n rootBounds: bounds\n });\n return () => {\n };\n }\n const { id, observer, elements } = createObserver(options);\n const callbacks = elements.get(element) || [];\n if (!elements.has(element)) {\n elements.set(element, callbacks);\n }\n callbacks.push(callback);\n observer.observe(element);\n return function unobserve() {\n callbacks.splice(callbacks.indexOf(callback), 1);\n if (callbacks.length === 0) {\n elements.delete(element);\n observer.unobserve(element);\n }\n if (elements.size === 0) {\n observer.disconnect();\n observerMap.delete(id);\n }\n };\n}\n\n// src/InView.tsx\nfunction isPlainChildren(props) {\n return typeof props.children !== \"function\";\n}\nvar InView = class extends React.Component {\n constructor(props) {\n super(props);\n __publicField(this, \"node\", null);\n __publicField(this, \"_unobserveCb\", null);\n __publicField(this, \"handleNode\", (node) => {\n if (this.node) {\n this.unobserve();\n if (!node && !this.props.triggerOnce && !this.props.skip) {\n this.setState({ inView: !!this.props.initialInView, entry: void 0 });\n }\n }\n this.node = node ? node : null;\n this.observeNode();\n });\n __publicField(this, \"handleChange\", (inView, entry) => {\n if (inView && this.props.triggerOnce) {\n this.unobserve();\n }\n if (!isPlainChildren(this.props)) {\n this.setState({ inView, entry });\n }\n if (this.props.onChange) {\n this.props.onChange(inView, entry);\n }\n });\n this.state = {\n inView: !!props.initialInView,\n entry: void 0\n };\n }\n componentDidMount() {\n this.unobserve();\n this.observeNode();\n }\n componentDidUpdate(prevProps) {\n if (prevProps.rootMargin !== this.props.rootMargin || prevProps.root !== this.props.root || prevProps.threshold !== this.props.threshold || prevProps.skip !== this.props.skip || prevProps.trackVisibility !== this.props.trackVisibility || prevProps.delay !== this.props.delay) {\n this.unobserve();\n this.observeNode();\n }\n }\n componentWillUnmount() {\n this.unobserve();\n }\n observeNode() {\n if (!this.node || this.props.skip) return;\n const {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n fallbackInView\n } = this.props;\n this._unobserveCb = observe(\n this.node,\n this.handleChange,\n {\n threshold,\n root,\n rootMargin,\n // @ts-ignore\n trackVisibility,\n // @ts-ignore\n delay\n },\n fallbackInView\n );\n }\n unobserve() {\n if (this._unobserveCb) {\n this._unobserveCb();\n this._unobserveCb = null;\n }\n }\n render() {\n const { children } = this.props;\n if (typeof children === \"function\") {\n const { inView, entry } = this.state;\n return children({ inView, entry, ref: this.handleNode });\n }\n const {\n as,\n triggerOnce,\n threshold,\n root,\n rootMargin,\n onChange,\n skip,\n trackVisibility,\n delay,\n initialInView,\n fallbackInView,\n ...props\n } = this.props;\n return React.createElement(\n as || \"div\",\n { ref: this.handleNode, ...props },\n children\n );\n }\n};\n\n// src/useInView.tsx\nimport * as React2 from \"react\";\nfunction useInView({\n threshold,\n delay,\n trackVisibility,\n rootMargin,\n root,\n triggerOnce,\n skip,\n initialInView,\n fallbackInView,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = React2.useState(null);\n const callback = React2.useRef(onChange);\n const [state, setState] = React2.useState({\n inView: !!initialInView,\n entry: void 0\n });\n callback.current = onChange;\n React2.useEffect(\n () => {\n if (skip || !ref) return;\n let unobserve;\n unobserve = observe(\n ref,\n (inView, entry) => {\n setState({\n inView,\n entry\n });\n if (callback.current) callback.current(inView, entry);\n if (entry.isIntersecting && triggerOnce && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n },\n {\n root,\n rootMargin,\n threshold,\n // @ts-ignore\n trackVisibility,\n // @ts-ignore\n delay\n },\n fallbackInView\n );\n return () => {\n if (unobserve) {\n unobserve();\n }\n };\n },\n // We break the rule here, because we aren't including the actual `threshold` variable\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n // If the threshold is an array, convert it to a string, so it won't change between renders.\n Array.isArray(threshold) ? threshold.toString() : threshold,\n ref,\n root,\n rootMargin,\n triggerOnce,\n skip,\n trackVisibility,\n fallbackInView,\n delay\n ]\n );\n const entryTarget = (_a = state.entry) == null ? void 0 : _a.target;\n const previousEntryTarget = React2.useRef(void 0);\n if (!ref && entryTarget && !triggerOnce && !skip && previousEntryTarget.current !== entryTarget) {\n previousEntryTarget.current = entryTarget;\n setState({\n inView: !!initialInView,\n entry: void 0\n });\n }\n const result = [setRef, state.inView, state.entry];\n result.ref = result[0];\n result.inView = result[1];\n result.entry = result[2];\n return result;\n}\nexport {\n InView,\n defaultFallbackInView,\n observe,\n useInView\n};\n//# sourceMappingURL=index.mjs.map"],"names":["process","alpha","Button","_jsx","_jsxs","React2"],"mappings":";;;;;AAEO,SAAS,sB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