everest-npm-features 0.0.22 → 0.0.24
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/{Alert-C1UNQHPD.js → Alert-CbQZ8Nii.js} +142 -116
- package/dist/{ArrowBack-Clp4i3dA.js → ArrowBack-BoYSBb8u.js} +1 -1
- package/dist/{ArrowDropDown-CoJNyIet.js → ArrowDropDown-BC_iEASy.js} +1 -1
- package/dist/{ArrowRight-DXtbS-1g.js → ArrowRight-rYkfGJuF.js} +1 -1
- package/dist/{Backdrop-DD6Ysl5O.js → Backdrop-CJBRZv_z.js} +106 -107
- package/dist/{Box-Be0E_-eR.js → Box-B12x52NC.js} +17 -16
- package/dist/Button-C57IMamW.js +660 -0
- package/dist/{ButtonBase-CE33gcZ6.js → ButtonBase-DugIO1pR.js} +194 -194
- package/dist/{Cancel-DEk2meuc.js → Cancel-D1JNu4Hj.js} +1 -1
- package/dist/{CardContent-B5tGyfc5.js → CardContent-CbObWW6t.js} +44 -45
- package/dist/{CheckCircle-BIckgNlV.js → CheckCircle-CyxKX1TY.js} +1 -1
- package/dist/{CircularProgress-fePUtoaj.js → CircularProgress-t8uGhLMo.js} +17 -17
- package/dist/{Close-D20PIPiF.js → Close-VV7zb3cu.js} +1 -1
- package/dist/{Close-Bj6AaxRi.js → Close-jnEgOCZv.js} +1 -1
- package/dist/{Container-CTfl6Vy4.js → Container-B3Af6Sc3.js} +20 -20
- package/dist/{ContentCopy-DzhD9ue3.js → ContentCopy-Ufwoeeov.js} +1 -1
- package/dist/DefaultPropsProvider-B2njZVNv.js +242 -0
- package/dist/DefaultPropsProvider-CZh8M2jM.js +351 -0
- package/dist/{Delete-BqqmGzYe.js → Delete-TCARcVtU.js} +1 -1
- package/dist/{DialogContent-D8jGp88c.js → DialogContent-DzidtXui.js} +202 -140
- package/dist/{DialogTitle-CxbjAJOw.js → DialogTitle-Bg61Hr7M.js} +23 -23
- package/dist/{Divider-D3PIEE97.js → Divider-Dy5hKfey.js} +31 -30
- package/dist/{ErrorOutline-CnwdlXPx.js → ErrorOutline-CI_ys3Zo.js} +1 -1
- package/dist/{FileDownload-BX69Jvdx.js → FileDownload-BcYF17B0.js} +1 -1
- package/dist/{FilledInput-n9W_V8GV.js → FilledInput-DrGeWgue.js} +352 -335
- package/dist/{FormControl-Cc-02KHW.js → FormControl-DeeQCuu5.js} +98 -81
- package/dist/{FormControlLabel-BEN9P8rJ.js → FormControlLabel-DVnrJkC8.js} +194 -165
- package/dist/GlobalStyles-DhHHc9O0.js +59 -0
- package/dist/Grid-BXyV_lM8.js +410 -0
- package/dist/Grow-B2p7O_1C.js +196 -0
- package/dist/{ownerDocument-C0GI-r2b.js → HTMLElementType-BrQSV2FE.js} +6 -6
- package/dist/IconButton-eWRhV6Q9.js +295 -0
- package/dist/{Info-83BXSu73.js → Info-D2UkGxyK.js} +1 -1
- package/dist/{InputAdornment-Ck_-Z38v.js → InputAdornment-BKuUMfPj.js} +14 -12
- package/dist/{Link-BqusVoz5.js → Link-Cm4BkRHO.js} +50 -49
- package/dist/{ListItemIcon-DIz-ZmJ0.js → ListItemIcon-GKRFb1Gr.js} +14 -13
- package/dist/{MenuItem-BkJ_C9Xs.js → MenuItem-CeCt0bfa.js} +46 -39
- package/dist/{Modal-CQcBtr07.js → Modal-csf3Y8d2.js} +265 -269
- package/dist/{Paper-B5pcGZbI.js → Paper-CnStNE24.js} +39 -38
- package/dist/{PlayArrow-1Y66tCVx.js → PlayArrow-DRCGjsrx.js} +1 -1
- package/dist/{Popper-CYsd-3n5.js → Popper-pPBEFLi4.js} +15 -15
- package/dist/{Portal-Bw0-5YJ9.js → Portal-CLa9CbMv.js} +36 -37
- package/dist/{RadioGroup-DtQqYrwU.js → RadioGroup-KiyYjXaT.js} +29 -28
- package/dist/{Select-DpKw-a6h.js → Select-Chubcks_.js} +1248 -933
- package/dist/{Slide-CdNJY-CT.js → Slide-DHG0r2gy.js} +68 -66
- package/dist/{Stack-C4POCZZb.js → Stack-CcR5RCg8.js} +41 -43
- package/dist/SwitchBase-CHO5ZceN.js +317 -0
- package/dist/{TextField-Cm9apaOp.js → TextField-q_SeLeNd.js} +144 -135
- package/dist/TransitionGroupContext-CYRQkQ6k.js +49 -0
- package/dist/{Typography-Ds4fpvK8.js → Typography-DBlMiOti.js} +39 -38
- package/dist/{auth-CR0412E5.js → auth-Bf9zHZ-x.js} +1 -1
- package/dist/{bank-iFS1RXp-.js → bank-BC4YNBRb.js} +3 -3
- package/dist/components/RocketRamp/MinimalKyc/form.js +9 -9
- package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
- package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
- package/dist/components/RocketRamp/Player/Sell/index.js +7 -7
- package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
- package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
- package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
- package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
- package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
- package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/Transactions/index.js +4 -4
- package/dist/components/Shared/FullKyc/index.js +4 -4
- package/dist/components/Shared/FullKyc/pep.js +9 -9
- package/dist/components/Shared/FullKyc/personalDetails.js +7 -7
- package/dist/components/Shared/FullKyc/userInfo.js +11 -11
- package/dist/components/Shared/HistoryItem/index.js +7 -7
- package/dist/components/Shared/Incode/index.js +5 -5
- package/dist/components/Shared/MinimalKyc/index.js +8 -8
- package/dist/components/Shared/loader.js +2 -2
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/Wallet/Account/createIban.d.ts +1 -0
- package/dist/components/Wallet/Account/createIban.js +36 -35
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +16 -16
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +76 -70
- package/dist/components/Wallet/Account/sendIban.js +61 -61
- package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Buy/form.d.ts +2 -2
- package/dist/components/Wallet/Buy/form.js +17 -17
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +7 -7
- package/dist/components/Wallet/EnterpriseKyc/edd.js +7 -7
- package/dist/components/Wallet/EnterpriseKyc/index.js +26 -24
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +45 -44
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3626 -100
- package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/types.d.ts +0 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
- package/dist/components/Wallet/History/index.js +61 -62
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
- package/dist/components/Wallet/Portfolio/index.js +95 -95
- package/dist/components/Wallet/Portfolio/tokenRow.js +6 -6
- package/dist/components/Wallet/Profile/documents.js +17 -17
- package/dist/components/Wallet/Profile/index.js +225 -206
- package/dist/components/Wallet/Receive/index.js +9 -9
- package/dist/components/Wallet/Sell/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Sell/form.js +17 -17
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +14 -14
- package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
- package/dist/components/Wallet/Shared/Auth/otpForm.js +217 -10451
- package/dist/components/Wallet/Shared/CardPayment/index.js +57 -55
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +9 -9
- package/dist/components/Wallet/Shared/Container/index.js +3 -3
- package/dist/components/Wallet/Shared/Input/index.js +1 -1
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +9 -10
- package/dist/components/Wallet/Shared/Order/types.d.ts +23 -2
- package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
- package/dist/components/Wallet/Shared/addBank.js +11 -11
- package/dist/components/Wallet/Shared/appButton.js +5 -5
- package/dist/components/Wallet/Shared/backBtn.js +8 -8
- package/dist/components/Wallet/Shared/button.js +1 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.js +5 -5
- package/dist/components/Wallet/Shared/inputField.js +1 -1
- package/dist/components/Wallet/Shared/noData.js +2 -2
- package/dist/components/Wallet/Shared/pin.js +3 -3
- package/dist/components/Wallet/Shared/radioButton.js +3 -3
- package/dist/components/Wallet/Shared/step.js +2 -2
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/SignUp/terms.js +4 -4
- package/dist/components/Wallet/Stake/gems/index.js +11 -11
- package/dist/components/Wallet/Stake/id/index.js +12 -12
- package/dist/components/Wallet/Stake/index.js +10 -10
- package/dist/components/Wallet/Swap/index.js +138 -150
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
- package/dist/components/Wallet/Withdraw/bankSelect.js +10 -10
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Withdraw/form.d.ts +2 -2
- package/dist/components/Wallet/Withdraw/form.js +16 -16
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-BJByDTQY.js → constants-CsMPRK0U.js} +285 -284
- package/dist/{createSvgIcon-C0wzKL72.js → createSvgIcon-CH41ZVFw.js} +58 -57
- package/dist/createTheme-DmGCMO09.js +3825 -0
- package/dist/{cryptoAssets-BcVSdM1C.js → cryptoAssets-CzNDY1j6.js} +1 -1
- package/dist/defaultTheme-9fAph5zo.js +5 -0
- package/dist/{dividerClasses-Cb_Is0-O.js → dividerClasses-DnbM--4s.js} +2 -2
- package/dist/{documents-HjBKq9qA.js → documents-CEeV8SyW.js} +16 -16
- package/dist/{Transition-CYSgg85A.js → elementAcceptingRef-BbsmdE_3.js} +109 -66
- package/dist/{elementTypeAcceptingRef-Bc1kRXA9.js → elementTypeAcceptingRef-CdmXUhJ8.js} +1 -1
- package/dist/{emotion-react.browser.esm-BjxI_t8k.js → emotion-react.browser.esm-C2mxoK1z.js} +42 -42
- package/dist/{extendSxProp-a8ZTL0ZI.js → extendSxProp-Bwha5fon.js} +1 -1
- package/dist/{fiatAssets-C_F8qNzr.js → fiatAssets-DVHfFafS.js} +1 -1
- package/dist/hoc/withThemeProvider.js +518 -417
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useRrDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +363 -288
- package/dist/{iban-Dh7qBGGc.js → iban-DRT7i0vb.js} +74 -85
- package/dist/icons/buyIcon.js +1 -1
- package/dist/icons/canceledBuyIcon.js +1 -1
- package/dist/icons/canceledRedeemIcon.js +1 -1
- package/dist/icons/failedBuyIcon.js +1 -1
- package/dist/icons/failedRedeemIcon.js +1 -1
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/index-BB3__zW3.js +644 -0
- package/dist/index-C86AoaoB.js +43 -0
- package/dist/{index-BFIhKqqi.js → index-C9uGghB8.js} +141 -133
- package/dist/{index-DkMQ44xy.js → index-DZ__IpVI.js} +19 -19
- package/dist/{index-B2OIoTNN.js → index-DxX5Mo0o.js} +18 -18
- package/dist/{index-CQe8cwpc.js → index-VE9lYjq3.js} +22 -22
- package/dist/index-eEYiDlpX.js +723 -0
- package/dist/{index-CtkDfW5M.js → index-x9CniyQB.js} +1 -1
- package/dist/{kyc-DJpiKj5d.js → kyc-BweeW6k9.js} +1 -1
- package/dist/main.js +6 -6
- package/dist/{order-DhUA-ZNX.js → order-DmTHC7ZG.js} +7 -7
- package/dist/{ownerWindow-iFlVse9X.js → ownerWindow-CRgpWY6I.js} +1 -1
- package/dist/pep-C5Ge-kU4.js +2691 -0
- package/dist/{radioButton-CdYLf2fc.js → radioButton-Bgy7Kxxo.js} +172 -121
- package/dist/refType-CaiGhRso.js +56 -0
- package/dist/{stake-DWRuAE1u.js → stake-B150utJI.js} +1 -1
- package/dist/tokenRow-BR8f4g7G.js +198 -0
- package/dist/{tooltip-CwdohO6q.js → tooltip-DGtrVEzU.js} +258 -235
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useSlot-DtSnboW7.js +125 -0
- package/dist/useSlotProps-D62tWbb1.js +25 -0
- package/dist/useTheme-Bfw5Gt1b.js +17 -0
- package/dist/{useTheme-BzIjfC6u.js → useTheme-XTDzJ69d.js} +3 -3
- package/dist/useThemeProps-lRuJRcRX.js +29 -0
- package/dist/util/constants.d.ts +1 -3
- package/dist/util/constants.js +27 -29
- package/dist/wallet-DDW5KCHp.js +39 -0
- package/package.json +7 -6
- package/dist/Button-DCBtFwk3.js +0 -452
- package/dist/DefaultPropsProvider-5cxFAZuq.js +0 -647
- package/dist/DefaultPropsProvider-DOLtk4kZ.js +0 -88
- package/dist/GlobalStyles-O5U8h5ZQ.js +0 -23
- package/dist/Grid-BaaKMDwM.js +0 -501
- package/dist/Grid2-DX2sucnU.js +0 -374
- package/dist/Grow-CC3Va50c.js +0 -216
- package/dist/IconButton-8B2ygvr4.js +0 -238
- package/dist/SwitchBase-B9rcpVZ0.js +0 -261
- package/dist/TransitionGroupContext-BzyZRJGo.js +0 -37
- package/dist/createTheme-D_EHVLXp.js +0 -3662
- package/dist/defaultTheme-CGLnLLk_.js +0 -5
- package/dist/index-BEH1PkNC.js +0 -572
- package/dist/index-DSZxScyY.js +0 -704
- package/dist/index-DlZLKtdr.js +0 -72
- package/dist/pep-BsWvrgyM.js +0 -2600
- package/dist/resolveComponentProps-CPnCrKvI.js +0 -80
- package/dist/styled-CyBKg0N-.js +0 -5
- package/dist/tokenRow-QlGBYRKR.js +0 -206
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useSlot-BdP6R4tz.js +0 -50
- package/dist/useTheme-BFI_g9FY.js +0 -9
- package/dist/useThemeProps-BOrAzOS4.js +0 -40
- package/dist/useThemeWithoutDefault-BWt80cCE.js +0 -12
- package/dist/useTimeout-_ag1gI7y.js +0 -56
- package/dist/utils-B-vKE_Dv.js +0 -50
- package/dist/utils-asicApOI.js +0 -21
- package/dist/wallet-z7NHqtCj.js +0 -35
|
@@ -1,84 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { P as
|
|
5
|
-
import {
|
|
6
|
-
import { e as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { P as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsxs as ke, jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import * as y from "react";
|
|
3
|
+
import { useState as O, useCallback as j } from "react";
|
|
4
|
+
import { P as e, g as X, v as $, b as x } from "../createTheme-DmGCMO09.js";
|
|
5
|
+
import { a as N, u as we } from "../refType-CaiGhRso.js";
|
|
6
|
+
import { e as G, u as L } from "../useSlot-DtSnboW7.js";
|
|
7
|
+
import { u as ve } from "../useTheme-XTDzJ69d.js";
|
|
8
|
+
import { g as K, s as A, m as Y, u as J, c as Q } from "../DefaultPropsProvider-B2njZVNv.js";
|
|
9
|
+
import { u as Ee } from "../TransitionGroupContext-CYRQkQ6k.js";
|
|
10
|
+
import { g as Te, e as Ce } from "../elementAcceptingRef-BbsmdE_3.js";
|
|
11
|
+
import { o as H } from "../HTMLElementType-BrQSV2FE.js";
|
|
12
|
+
import { e as Se } from "../exactProp-C1Lmtwf_.js";
|
|
13
|
+
import { c as Pe } from "../DefaultPropsProvider-CZh8M2jM.js";
|
|
14
|
+
import { P as Oe } from "../Paper-CnStNE24.js";
|
|
15
|
+
import { G as Re } from "../Grow-B2p7O_1C.js";
|
|
16
|
+
import { A as Le } from "../Alert-CbQZ8Nii.js";
|
|
17
|
+
import { S as D } from "../Slide-DHG0r2gy.js";
|
|
18
|
+
function V(t) {
|
|
19
|
+
return t.substring(2).toLowerCase();
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
21
|
+
function xe(t, n) {
|
|
22
|
+
return n.documentElement.clientWidth < t.clientX || n.documentElement.clientHeight < t.clientY;
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function M(t) {
|
|
24
25
|
const {
|
|
25
|
-
children:
|
|
26
|
-
disableReactTree:
|
|
26
|
+
children: n,
|
|
27
|
+
disableReactTree: l = !1,
|
|
27
28
|
mouseEvent: o = "onClick",
|
|
28
29
|
onClickAway: p,
|
|
29
|
-
touchEvent:
|
|
30
|
-
} =
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
touchEvent: f = "onTouchEnd"
|
|
31
|
+
} = t, h = y.useRef(!1), d = y.useRef(null), b = y.useRef(!1), k = y.useRef(!1);
|
|
32
|
+
y.useEffect(() => (setTimeout(() => {
|
|
33
|
+
b.current = !0;
|
|
33
34
|
}, 0), () => {
|
|
34
|
-
|
|
35
|
+
b.current = !1;
|
|
35
36
|
}), []);
|
|
36
|
-
const u =
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
const g =
|
|
40
|
-
if (!
|
|
37
|
+
const u = Ee(Te(n), d), m = N((i) => {
|
|
38
|
+
const a = k.current;
|
|
39
|
+
k.current = !1;
|
|
40
|
+
const g = H(d.current);
|
|
41
|
+
if (!b.current || !d.current || "clientX" in i && xe(i, g))
|
|
41
42
|
return;
|
|
42
|
-
if (
|
|
43
|
-
|
|
43
|
+
if (h.current) {
|
|
44
|
+
h.current = !1;
|
|
44
45
|
return;
|
|
45
46
|
}
|
|
46
47
|
let r;
|
|
47
|
-
i.composedPath ? r = i.composedPath().includes(
|
|
48
|
+
i.composedPath ? r = i.composedPath().includes(d.current) : r = !g.documentElement.contains(
|
|
48
49
|
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
49
50
|
i.target
|
|
50
|
-
) ||
|
|
51
|
+
) || d.current.contains(
|
|
51
52
|
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
|
52
53
|
i.target
|
|
53
|
-
), !r && (
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
const g =
|
|
57
|
-
g && g(
|
|
58
|
-
},
|
|
54
|
+
), !r && (l || !a) && p(i);
|
|
55
|
+
}), S = (i) => (a) => {
|
|
56
|
+
k.current = !0;
|
|
57
|
+
const g = n.props[i];
|
|
58
|
+
g && g(a);
|
|
59
|
+
}, T = {
|
|
59
60
|
ref: u
|
|
60
61
|
};
|
|
61
|
-
return
|
|
62
|
-
if (
|
|
63
|
-
const i =
|
|
64
|
-
|
|
62
|
+
return f !== !1 && (T[f] = S(f)), y.useEffect(() => {
|
|
63
|
+
if (f !== !1) {
|
|
64
|
+
const i = V(f), a = H(d.current), g = () => {
|
|
65
|
+
h.current = !0;
|
|
65
66
|
};
|
|
66
|
-
return
|
|
67
|
-
|
|
67
|
+
return a.addEventListener(i, m), a.addEventListener("touchmove", g), () => {
|
|
68
|
+
a.removeEventListener(i, m), a.removeEventListener("touchmove", g);
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
|
-
}, [m,
|
|
71
|
+
}, [m, f]), o !== !1 && (T[o] = S(o)), y.useEffect(() => {
|
|
71
72
|
if (o !== !1) {
|
|
72
|
-
const i =
|
|
73
|
-
return
|
|
74
|
-
|
|
73
|
+
const i = V(o), a = H(d.current);
|
|
74
|
+
return a.addEventListener(i, m), () => {
|
|
75
|
+
a.removeEventListener(i, m);
|
|
75
76
|
};
|
|
76
77
|
}
|
|
77
|
-
}, [m, o]), /* @__PURE__ */
|
|
78
|
-
children: /* @__PURE__ */ h.cloneElement(t, E)
|
|
79
|
-
});
|
|
78
|
+
}, [m, o]), /* @__PURE__ */ y.cloneElement(n, T);
|
|
80
79
|
}
|
|
81
|
-
process.env.NODE_ENV !== "production" && (
|
|
80
|
+
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
82
81
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
83
82
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
84
83
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -86,38 +85,38 @@ process.env.NODE_ENV !== "production" && (T.propTypes = {
|
|
|
86
85
|
/**
|
|
87
86
|
* The wrapped element.
|
|
88
87
|
*/
|
|
89
|
-
children:
|
|
88
|
+
children: Ce.isRequired,
|
|
90
89
|
/**
|
|
91
90
|
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
|
92
91
|
* This prop changes how portaled elements are handled.
|
|
93
92
|
* @default false
|
|
94
93
|
*/
|
|
95
|
-
disableReactTree:
|
|
94
|
+
disableReactTree: e.bool,
|
|
96
95
|
/**
|
|
97
96
|
* The mouse event to listen to. You can disable the listener by providing `false`.
|
|
98
97
|
* @default 'onClick'
|
|
99
98
|
*/
|
|
100
|
-
mouseEvent:
|
|
99
|
+
mouseEvent: e.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
|
|
101
100
|
/**
|
|
102
101
|
* Callback fired when a "click away" event is detected.
|
|
103
102
|
*/
|
|
104
|
-
onClickAway:
|
|
103
|
+
onClickAway: e.func.isRequired,
|
|
105
104
|
/**
|
|
106
105
|
* The touch event to listen to. You can disable the listener by providing `false`.
|
|
107
106
|
* @default 'onTouchEnd'
|
|
108
107
|
*/
|
|
109
|
-
touchEvent:
|
|
108
|
+
touchEvent: e.oneOf(["onTouchEnd", "onTouchStart", !1])
|
|
110
109
|
});
|
|
111
|
-
process.env.NODE_ENV !== "production" && (
|
|
112
|
-
function
|
|
110
|
+
process.env.NODE_ENV !== "production" && (M.propTypes = Se(M.propTypes));
|
|
111
|
+
function Me(t = {}) {
|
|
113
112
|
const {
|
|
114
|
-
autoHideDuration:
|
|
115
|
-
disableWindowBlurListener:
|
|
113
|
+
autoHideDuration: n = null,
|
|
114
|
+
disableWindowBlurListener: l = !1,
|
|
116
115
|
onClose: o,
|
|
117
116
|
open: p,
|
|
118
|
-
resumeHideDuration:
|
|
119
|
-
} =
|
|
120
|
-
|
|
117
|
+
resumeHideDuration: f
|
|
118
|
+
} = t, h = we();
|
|
119
|
+
y.useEffect(() => {
|
|
121
120
|
if (!p)
|
|
122
121
|
return;
|
|
123
122
|
function r(s) {
|
|
@@ -127,41 +126,41 @@ function ye(e = {}) {
|
|
|
127
126
|
document.removeEventListener("keydown", r);
|
|
128
127
|
};
|
|
129
128
|
}, [p, o]);
|
|
130
|
-
const
|
|
129
|
+
const d = N((r, s) => {
|
|
131
130
|
o == null || o(r, s);
|
|
132
|
-
}),
|
|
133
|
-
!o || r == null ||
|
|
134
|
-
|
|
131
|
+
}), b = N((r) => {
|
|
132
|
+
!o || r == null || h.start(r, () => {
|
|
133
|
+
d(null, "timeout");
|
|
135
134
|
});
|
|
136
135
|
});
|
|
137
|
-
|
|
138
|
-
const
|
|
136
|
+
y.useEffect(() => (p && b(n), h.clear), [p, n, b, h]);
|
|
137
|
+
const k = (r) => {
|
|
139
138
|
o == null || o(r, "clickaway");
|
|
140
|
-
}, u =
|
|
141
|
-
|
|
142
|
-
}, [
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
},
|
|
146
|
-
const
|
|
147
|
-
|
|
139
|
+
}, u = h.clear, m = y.useCallback(() => {
|
|
140
|
+
n != null && b(f ?? n * 0.5);
|
|
141
|
+
}, [n, f, b]), S = (r) => (s) => {
|
|
142
|
+
const c = r.onBlur;
|
|
143
|
+
c == null || c(s), m();
|
|
144
|
+
}, T = (r) => (s) => {
|
|
145
|
+
const c = r.onFocus;
|
|
146
|
+
c == null || c(s), u();
|
|
148
147
|
}, i = (r) => (s) => {
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
},
|
|
152
|
-
const
|
|
153
|
-
|
|
148
|
+
const c = r.onMouseEnter;
|
|
149
|
+
c == null || c(s), u();
|
|
150
|
+
}, a = (r) => (s) => {
|
|
151
|
+
const c = r.onMouseLeave;
|
|
152
|
+
c == null || c(s), m();
|
|
154
153
|
};
|
|
155
|
-
return
|
|
156
|
-
if (!
|
|
154
|
+
return y.useEffect(() => {
|
|
155
|
+
if (!l && p)
|
|
157
156
|
return window.addEventListener("focus", m), window.addEventListener("blur", u), () => {
|
|
158
157
|
window.removeEventListener("focus", m), window.removeEventListener("blur", u);
|
|
159
158
|
};
|
|
160
|
-
}, [
|
|
159
|
+
}, [l, p, m, u]), {
|
|
161
160
|
getRootProps: (r = {}) => {
|
|
162
161
|
const s = {
|
|
163
|
-
...
|
|
164
|
-
...
|
|
162
|
+
...G(t),
|
|
163
|
+
...G(r)
|
|
165
164
|
};
|
|
166
165
|
return {
|
|
167
166
|
// ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
@@ -169,98 +168,93 @@ function ye(e = {}) {
|
|
|
169
168
|
role: "presentation",
|
|
170
169
|
...r,
|
|
171
170
|
...s,
|
|
172
|
-
onBlur:
|
|
173
|
-
onFocus:
|
|
171
|
+
onBlur: S(s),
|
|
172
|
+
onFocus: T(s),
|
|
174
173
|
onMouseEnter: i(s),
|
|
175
|
-
onMouseLeave:
|
|
174
|
+
onMouseLeave: a(s)
|
|
176
175
|
};
|
|
177
176
|
},
|
|
178
|
-
onClickAway:
|
|
177
|
+
onClickAway: k
|
|
179
178
|
};
|
|
180
179
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
180
|
+
function Ae(t) {
|
|
181
|
+
return X("MuiSnackbarContent", t);
|
|
183
182
|
}
|
|
184
|
-
|
|
185
|
-
const
|
|
183
|
+
K("MuiSnackbarContent", ["root", "message", "action"]);
|
|
184
|
+
const De = (t) => {
|
|
186
185
|
const {
|
|
187
|
-
classes:
|
|
188
|
-
} =
|
|
189
|
-
return
|
|
186
|
+
classes: n
|
|
187
|
+
} = t;
|
|
188
|
+
return Q({
|
|
190
189
|
root: ["root"],
|
|
191
190
|
action: ["action"],
|
|
192
191
|
message: ["message"]
|
|
193
|
-
},
|
|
194
|
-
},
|
|
192
|
+
}, Ae, n);
|
|
193
|
+
}, je = A(Oe, {
|
|
195
194
|
name: "MuiSnackbarContent",
|
|
196
|
-
slot: "Root"
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
theme: e
|
|
195
|
+
slot: "Root"
|
|
196
|
+
})(Y(({
|
|
197
|
+
theme: t
|
|
200
198
|
}) => {
|
|
201
|
-
const
|
|
199
|
+
const n = t.palette.mode === "light" ? 0.8 : 0.98;
|
|
202
200
|
return {
|
|
203
|
-
...
|
|
204
|
-
color:
|
|
205
|
-
backgroundColor:
|
|
201
|
+
...t.typography.body2,
|
|
202
|
+
color: t.vars ? t.vars.palette.SnackbarContent.color : t.palette.getContrastText($(t.palette.background.default, n)),
|
|
203
|
+
backgroundColor: t.vars ? t.vars.palette.SnackbarContent.bg : $(t.palette.background.default, n),
|
|
206
204
|
display: "flex",
|
|
207
205
|
alignItems: "center",
|
|
208
206
|
flexWrap: "wrap",
|
|
209
207
|
padding: "6px 16px",
|
|
210
|
-
borderRadius: (e.vars || e).shape.borderRadius,
|
|
211
208
|
flexGrow: 1,
|
|
212
|
-
[
|
|
209
|
+
[t.breakpoints.up("sm")]: {
|
|
213
210
|
flexGrow: "initial",
|
|
214
211
|
minWidth: 288
|
|
215
212
|
}
|
|
216
213
|
};
|
|
217
|
-
})),
|
|
214
|
+
})), He = A("div", {
|
|
218
215
|
name: "MuiSnackbarContent",
|
|
219
|
-
slot: "Message"
|
|
220
|
-
overridesResolver: (e, t) => t.message
|
|
216
|
+
slot: "Message"
|
|
221
217
|
})({
|
|
222
218
|
padding: "8px 0"
|
|
223
|
-
}),
|
|
219
|
+
}), Ne = A("div", {
|
|
224
220
|
name: "MuiSnackbarContent",
|
|
225
|
-
slot: "Action"
|
|
226
|
-
overridesResolver: (e, t) => t.action
|
|
221
|
+
slot: "Action"
|
|
227
222
|
})({
|
|
228
223
|
display: "flex",
|
|
229
224
|
alignItems: "center",
|
|
230
225
|
marginLeft: "auto",
|
|
231
226
|
paddingLeft: 16,
|
|
232
227
|
marginRight: -8
|
|
233
|
-
}),
|
|
234
|
-
const o =
|
|
235
|
-
props:
|
|
228
|
+
}), Z = /* @__PURE__ */ y.forwardRef(function(n, l) {
|
|
229
|
+
const o = J({
|
|
230
|
+
props: n,
|
|
236
231
|
name: "MuiSnackbarContent"
|
|
237
232
|
}), {
|
|
238
233
|
action: p,
|
|
239
|
-
className:
|
|
240
|
-
message:
|
|
241
|
-
role:
|
|
242
|
-
...
|
|
243
|
-
} = o,
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
role:
|
|
246
|
-
square: !0,
|
|
234
|
+
className: f,
|
|
235
|
+
message: h,
|
|
236
|
+
role: d = "alert",
|
|
237
|
+
...b
|
|
238
|
+
} = o, k = o, u = De(k);
|
|
239
|
+
return /* @__PURE__ */ ke(je, {
|
|
240
|
+
role: d,
|
|
247
241
|
elevation: 6,
|
|
248
|
-
className:
|
|
249
|
-
ownerState:
|
|
250
|
-
ref:
|
|
251
|
-
...
|
|
252
|
-
children: [/* @__PURE__ */
|
|
242
|
+
className: Pe(u.root, f),
|
|
243
|
+
ownerState: k,
|
|
244
|
+
ref: l,
|
|
245
|
+
...b,
|
|
246
|
+
children: [/* @__PURE__ */ v(He, {
|
|
253
247
|
className: u.message,
|
|
254
|
-
ownerState:
|
|
255
|
-
children:
|
|
256
|
-
}), p ? /* @__PURE__ */
|
|
248
|
+
ownerState: k,
|
|
249
|
+
children: h
|
|
250
|
+
}), p ? /* @__PURE__ */ v(Ne, {
|
|
257
251
|
className: u.action,
|
|
258
|
-
ownerState:
|
|
252
|
+
ownerState: k,
|
|
259
253
|
children: p
|
|
260
254
|
}) : null]
|
|
261
255
|
});
|
|
262
256
|
});
|
|
263
|
-
process.env.NODE_ENV !== "production" && (
|
|
257
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
264
258
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
265
259
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
266
260
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -268,54 +262,54 @@ process.env.NODE_ENV !== "production" && (V.propTypes = {
|
|
|
268
262
|
/**
|
|
269
263
|
* The action to display. It renders after the message, at the end of the snackbar.
|
|
270
264
|
*/
|
|
271
|
-
action:
|
|
265
|
+
action: e.node,
|
|
272
266
|
/**
|
|
273
267
|
* Override or extend the styles applied to the component.
|
|
274
268
|
*/
|
|
275
|
-
classes:
|
|
269
|
+
classes: e.object,
|
|
276
270
|
/**
|
|
277
271
|
* @ignore
|
|
278
272
|
*/
|
|
279
|
-
className:
|
|
273
|
+
className: e.string,
|
|
280
274
|
/**
|
|
281
275
|
* The message to display.
|
|
282
276
|
*/
|
|
283
|
-
message:
|
|
277
|
+
message: e.node,
|
|
284
278
|
/**
|
|
285
279
|
* The ARIA role attribute of the element.
|
|
286
280
|
* @default 'alert'
|
|
287
281
|
*/
|
|
288
|
-
role:
|
|
282
|
+
role: e.string,
|
|
289
283
|
/**
|
|
290
284
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
291
285
|
*/
|
|
292
|
-
sx:
|
|
286
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
293
287
|
});
|
|
294
|
-
function
|
|
295
|
-
return
|
|
288
|
+
function ze(t) {
|
|
289
|
+
return X("MuiSnackbar", t);
|
|
296
290
|
}
|
|
297
|
-
|
|
298
|
-
const
|
|
291
|
+
K("MuiSnackbar", ["root", "anchorOriginTopCenter", "anchorOriginBottomCenter", "anchorOriginTopRight", "anchorOriginBottomRight", "anchorOriginTopLeft", "anchorOriginBottomLeft"]);
|
|
292
|
+
const Be = (t) => {
|
|
299
293
|
const {
|
|
300
|
-
classes:
|
|
301
|
-
anchorOrigin:
|
|
302
|
-
} =
|
|
303
|
-
root: ["root", `anchorOrigin${
|
|
294
|
+
classes: n,
|
|
295
|
+
anchorOrigin: l
|
|
296
|
+
} = t, o = {
|
|
297
|
+
root: ["root", `anchorOrigin${x(l.vertical)}${x(l.horizontal)}`]
|
|
304
298
|
};
|
|
305
|
-
return
|
|
306
|
-
},
|
|
299
|
+
return Q(o, ze, n);
|
|
300
|
+
}, Ue = A("div", {
|
|
307
301
|
name: "MuiSnackbar",
|
|
308
302
|
slot: "Root",
|
|
309
|
-
overridesResolver: (
|
|
303
|
+
overridesResolver: (t, n) => {
|
|
310
304
|
const {
|
|
311
|
-
ownerState:
|
|
312
|
-
} =
|
|
313
|
-
return [
|
|
305
|
+
ownerState: l
|
|
306
|
+
} = t;
|
|
307
|
+
return [n.root, n[`anchorOrigin${x(l.anchorOrigin.vertical)}${x(l.anchorOrigin.horizontal)}`]];
|
|
314
308
|
}
|
|
315
|
-
})(
|
|
316
|
-
theme:
|
|
309
|
+
})(Y(({
|
|
310
|
+
theme: t
|
|
317
311
|
}) => ({
|
|
318
|
-
zIndex: (
|
|
312
|
+
zIndex: (t.vars || t).zIndex.snackbar,
|
|
319
313
|
position: "fixed",
|
|
320
314
|
display: "flex",
|
|
321
315
|
left: 8,
|
|
@@ -324,148 +318,199 @@ const Re = (e) => {
|
|
|
324
318
|
alignItems: "center",
|
|
325
319
|
variants: [{
|
|
326
320
|
props: ({
|
|
327
|
-
ownerState:
|
|
328
|
-
}) =>
|
|
321
|
+
ownerState: n
|
|
322
|
+
}) => n.anchorOrigin.vertical === "top",
|
|
329
323
|
style: {
|
|
330
324
|
top: 8,
|
|
331
|
-
[
|
|
325
|
+
[t.breakpoints.up("sm")]: {
|
|
332
326
|
top: 24
|
|
333
327
|
}
|
|
334
328
|
}
|
|
335
329
|
}, {
|
|
336
330
|
props: ({
|
|
337
|
-
ownerState:
|
|
338
|
-
}) =>
|
|
331
|
+
ownerState: n
|
|
332
|
+
}) => n.anchorOrigin.vertical !== "top",
|
|
339
333
|
style: {
|
|
340
334
|
bottom: 8,
|
|
341
|
-
[
|
|
335
|
+
[t.breakpoints.up("sm")]: {
|
|
342
336
|
bottom: 24
|
|
343
337
|
}
|
|
344
338
|
}
|
|
345
339
|
}, {
|
|
346
340
|
props: ({
|
|
347
|
-
ownerState:
|
|
348
|
-
}) =>
|
|
341
|
+
ownerState: n
|
|
342
|
+
}) => n.anchorOrigin.horizontal === "left",
|
|
349
343
|
style: {
|
|
350
344
|
justifyContent: "flex-start",
|
|
351
|
-
[
|
|
345
|
+
[t.breakpoints.up("sm")]: {
|
|
352
346
|
left: 24,
|
|
353
347
|
right: "auto"
|
|
354
348
|
}
|
|
355
349
|
}
|
|
356
350
|
}, {
|
|
357
351
|
props: ({
|
|
358
|
-
ownerState:
|
|
359
|
-
}) =>
|
|
352
|
+
ownerState: n
|
|
353
|
+
}) => n.anchorOrigin.horizontal === "right",
|
|
360
354
|
style: {
|
|
361
355
|
justifyContent: "flex-end",
|
|
362
|
-
[
|
|
356
|
+
[t.breakpoints.up("sm")]: {
|
|
363
357
|
right: 24,
|
|
364
358
|
left: "auto"
|
|
365
359
|
}
|
|
366
360
|
}
|
|
367
361
|
}, {
|
|
368
362
|
props: ({
|
|
369
|
-
ownerState:
|
|
370
|
-
}) =>
|
|
363
|
+
ownerState: n
|
|
364
|
+
}) => n.anchorOrigin.horizontal === "center",
|
|
371
365
|
style: {
|
|
372
|
-
[
|
|
366
|
+
[t.breakpoints.up("sm")]: {
|
|
373
367
|
left: "50%",
|
|
374
368
|
right: "auto",
|
|
375
369
|
transform: "translateX(-50%)"
|
|
376
370
|
}
|
|
377
371
|
}
|
|
378
372
|
}]
|
|
379
|
-
}))),
|
|
380
|
-
const o =
|
|
381
|
-
props:
|
|
373
|
+
}))), ee = /* @__PURE__ */ y.forwardRef(function(n, l) {
|
|
374
|
+
const o = J({
|
|
375
|
+
props: n,
|
|
382
376
|
name: "MuiSnackbar"
|
|
383
|
-
}), p =
|
|
377
|
+
}), p = ve(), f = {
|
|
384
378
|
enter: p.transitions.duration.enteringScreen,
|
|
385
379
|
exit: p.transitions.duration.leavingScreen
|
|
386
380
|
}, {
|
|
387
|
-
action:
|
|
381
|
+
action: h,
|
|
388
382
|
anchorOrigin: {
|
|
389
|
-
vertical:
|
|
390
|
-
horizontal:
|
|
383
|
+
vertical: d,
|
|
384
|
+
horizontal: b
|
|
391
385
|
} = {
|
|
392
386
|
vertical: "bottom",
|
|
393
387
|
horizontal: "left"
|
|
394
388
|
},
|
|
395
|
-
autoHideDuration:
|
|
389
|
+
autoHideDuration: k = null,
|
|
396
390
|
children: u,
|
|
397
391
|
className: m,
|
|
398
|
-
ClickAwayListenerProps:
|
|
399
|
-
ContentProps:
|
|
392
|
+
ClickAwayListenerProps: S,
|
|
393
|
+
ContentProps: T,
|
|
400
394
|
disableWindowBlurListener: i = !1,
|
|
401
|
-
message:
|
|
395
|
+
message: a,
|
|
402
396
|
onBlur: g,
|
|
403
397
|
onClose: r,
|
|
404
398
|
onFocus: s,
|
|
405
|
-
onMouseEnter:
|
|
406
|
-
onMouseLeave:
|
|
407
|
-
open:
|
|
408
|
-
resumeHideDuration:
|
|
409
|
-
|
|
410
|
-
|
|
399
|
+
onMouseEnter: c,
|
|
400
|
+
onMouseLeave: qe,
|
|
401
|
+
open: z,
|
|
402
|
+
resumeHideDuration: $e,
|
|
403
|
+
slots: B = {},
|
|
404
|
+
slotProps: te = {},
|
|
405
|
+
TransitionComponent: U,
|
|
406
|
+
transitionDuration: F = f,
|
|
411
407
|
TransitionProps: {
|
|
412
|
-
onEnter:
|
|
413
|
-
onExited:
|
|
414
|
-
...
|
|
408
|
+
onEnter: _,
|
|
409
|
+
onExited: I,
|
|
410
|
+
...ne
|
|
415
411
|
} = {},
|
|
416
|
-
...
|
|
417
|
-
} = o,
|
|
412
|
+
...oe
|
|
413
|
+
} = o, P = {
|
|
418
414
|
...o,
|
|
419
415
|
anchorOrigin: {
|
|
420
|
-
vertical:
|
|
421
|
-
horizontal:
|
|
416
|
+
vertical: d,
|
|
417
|
+
horizontal: b
|
|
422
418
|
},
|
|
423
|
-
autoHideDuration:
|
|
419
|
+
autoHideDuration: k,
|
|
424
420
|
disableWindowBlurListener: i,
|
|
425
|
-
TransitionComponent:
|
|
426
|
-
transitionDuration:
|
|
427
|
-
},
|
|
428
|
-
getRootProps:
|
|
429
|
-
onClickAway:
|
|
430
|
-
} =
|
|
431
|
-
...
|
|
432
|
-
}), [
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
421
|
+
TransitionComponent: U,
|
|
422
|
+
transitionDuration: F
|
|
423
|
+
}, re = Be(P), {
|
|
424
|
+
getRootProps: se,
|
|
425
|
+
onClickAway: ie
|
|
426
|
+
} = Me({
|
|
427
|
+
...P
|
|
428
|
+
}), [ae, W] = y.useState(!0), ce = (w) => {
|
|
429
|
+
W(!0), I && I(w);
|
|
430
|
+
}, le = (w, E) => {
|
|
431
|
+
W(!1), _ && _(w, E);
|
|
432
|
+
}, R = {
|
|
433
|
+
slots: {
|
|
434
|
+
transition: U,
|
|
435
|
+
...B
|
|
436
|
+
},
|
|
437
|
+
slotProps: {
|
|
438
|
+
content: T,
|
|
439
|
+
clickAwayListener: S,
|
|
440
|
+
transition: ne,
|
|
441
|
+
...te
|
|
442
|
+
}
|
|
443
|
+
}, [ue, pe] = L("root", {
|
|
444
|
+
ref: l,
|
|
445
|
+
className: [re.root, m],
|
|
446
|
+
elementType: Ue,
|
|
447
|
+
getSlotProps: se,
|
|
448
|
+
externalForwardedProps: {
|
|
449
|
+
...R,
|
|
450
|
+
...oe
|
|
451
|
+
},
|
|
452
|
+
ownerState: P
|
|
453
|
+
}), [fe, {
|
|
454
|
+
ownerState: de,
|
|
455
|
+
...me
|
|
456
|
+
}] = L("clickAwayListener", {
|
|
457
|
+
elementType: M,
|
|
458
|
+
externalForwardedProps: R,
|
|
459
|
+
getSlotProps: (w) => ({
|
|
460
|
+
onClickAway: (...E) => {
|
|
461
|
+
var q;
|
|
462
|
+
const C = E[0];
|
|
463
|
+
(q = w.onClickAway) == null || q.call(w, ...E), !(C != null && C.defaultMuiPrevented) && ie(...E);
|
|
464
|
+
}
|
|
465
|
+
}),
|
|
466
|
+
ownerState: P
|
|
467
|
+
}), [ge, ye] = L("content", {
|
|
468
|
+
elementType: Z,
|
|
469
|
+
shouldForwardComponentProp: !0,
|
|
470
|
+
externalForwardedProps: R,
|
|
437
471
|
additionalProps: {
|
|
438
|
-
|
|
472
|
+
message: a,
|
|
473
|
+
action: h
|
|
439
474
|
},
|
|
440
|
-
|
|
441
|
-
}),
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
475
|
+
ownerState: P
|
|
476
|
+
}), [he, be] = L("transition", {
|
|
477
|
+
elementType: Re,
|
|
478
|
+
externalForwardedProps: R,
|
|
479
|
+
getSlotProps: (w) => ({
|
|
480
|
+
onEnter: (...E) => {
|
|
481
|
+
var C;
|
|
482
|
+
(C = w.onEnter) == null || C.call(w, ...E), le(...E);
|
|
483
|
+
},
|
|
484
|
+
onExited: (...E) => {
|
|
485
|
+
var C;
|
|
486
|
+
(C = w.onExited) == null || C.call(w, ...E), ce(...E);
|
|
487
|
+
}
|
|
488
|
+
}),
|
|
489
|
+
additionalProps: {
|
|
490
|
+
appear: !0,
|
|
491
|
+
in: z,
|
|
492
|
+
timeout: F,
|
|
493
|
+
direction: d === "top" ? "down" : "up"
|
|
494
|
+
},
|
|
495
|
+
ownerState: P
|
|
496
|
+
});
|
|
497
|
+
return !z && ae ? null : /* @__PURE__ */ v(fe, {
|
|
498
|
+
...me,
|
|
499
|
+
...B.clickAwayListener && {
|
|
500
|
+
ownerState: de
|
|
501
|
+
},
|
|
502
|
+
children: /* @__PURE__ */ v(ue, {
|
|
503
|
+
...pe,
|
|
504
|
+
children: /* @__PURE__ */ v(he, {
|
|
505
|
+
...be,
|
|
506
|
+
children: u || /* @__PURE__ */ v(ge, {
|
|
507
|
+
...ye
|
|
463
508
|
})
|
|
464
509
|
})
|
|
465
510
|
})
|
|
466
511
|
});
|
|
467
512
|
});
|
|
468
|
-
process.env.NODE_ENV !== "production" && (
|
|
513
|
+
process.env.NODE_ENV !== "production" && (ee.propTypes = {
|
|
469
514
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
470
515
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
471
516
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -473,16 +518,16 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
473
518
|
/**
|
|
474
519
|
* The action to display. It renders after the message, at the end of the snackbar.
|
|
475
520
|
*/
|
|
476
|
-
action:
|
|
521
|
+
action: e.node,
|
|
477
522
|
/**
|
|
478
523
|
* The anchor of the `Snackbar`.
|
|
479
524
|
* On smaller screens, the component grows to occupy all the available width,
|
|
480
525
|
* the horizontal alignment is ignored.
|
|
481
526
|
* @default { vertical: 'bottom', horizontal: 'left' }
|
|
482
527
|
*/
|
|
483
|
-
anchorOrigin:
|
|
484
|
-
horizontal:
|
|
485
|
-
vertical:
|
|
528
|
+
anchorOrigin: e.shape({
|
|
529
|
+
horizontal: e.oneOf(["center", "left", "right"]).isRequired,
|
|
530
|
+
vertical: e.oneOf(["bottom", "top"]).isRequired
|
|
486
531
|
}),
|
|
487
532
|
/**
|
|
488
533
|
* The number of milliseconds to wait before automatically calling the
|
|
@@ -491,32 +536,34 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
491
536
|
* the `null` value.
|
|
492
537
|
* @default null
|
|
493
538
|
*/
|
|
494
|
-
autoHideDuration:
|
|
539
|
+
autoHideDuration: e.number,
|
|
495
540
|
/**
|
|
496
541
|
* Replace the `SnackbarContent` component.
|
|
497
542
|
*/
|
|
498
|
-
children:
|
|
543
|
+
children: e.element,
|
|
499
544
|
/**
|
|
500
545
|
* Override or extend the styles applied to the component.
|
|
501
546
|
*/
|
|
502
|
-
classes:
|
|
547
|
+
classes: e.object,
|
|
503
548
|
/**
|
|
504
549
|
* @ignore
|
|
505
550
|
*/
|
|
506
|
-
className:
|
|
551
|
+
className: e.string,
|
|
507
552
|
/**
|
|
508
553
|
* Props applied to the `ClickAwayListener` element.
|
|
554
|
+
* @deprecated Use `slotProps.clickAwayListener` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
509
555
|
*/
|
|
510
|
-
ClickAwayListenerProps:
|
|
556
|
+
ClickAwayListenerProps: e.object,
|
|
511
557
|
/**
|
|
512
558
|
* Props applied to the [`SnackbarContent`](https://mui.com/material-ui/api/snackbar-content/) element.
|
|
559
|
+
* @deprecated Use `slotProps.content` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
513
560
|
*/
|
|
514
|
-
ContentProps:
|
|
561
|
+
ContentProps: e.object,
|
|
515
562
|
/**
|
|
516
563
|
* If `true`, the `autoHideDuration` timer will expire even if the window is not focused.
|
|
517
564
|
* @default false
|
|
518
565
|
*/
|
|
519
|
-
disableWindowBlurListener:
|
|
566
|
+
disableWindowBlurListener: e.bool,
|
|
520
567
|
/**
|
|
521
568
|
* When displaying multiple consecutive snackbars using a single parent-rendered
|
|
522
569
|
* `<Snackbar/>`, add the `key` prop to ensure independent treatment of each message.
|
|
@@ -527,11 +574,11 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
527
574
|
/**
|
|
528
575
|
* The message to display.
|
|
529
576
|
*/
|
|
530
|
-
message:
|
|
577
|
+
message: e.node,
|
|
531
578
|
/**
|
|
532
579
|
* @ignore
|
|
533
580
|
*/
|
|
534
|
-
onBlur:
|
|
581
|
+
onBlur: e.func,
|
|
535
582
|
/**
|
|
536
583
|
* Callback fired when the component requests to be closed.
|
|
537
584
|
* Typically `onClose` is used to set state in the parent component,
|
|
@@ -542,40 +589,67 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
542
589
|
* @param {React.SyntheticEvent<any> | Event} event The event source of the callback.
|
|
543
590
|
* @param {string} reason Can be: `"timeout"` (`autoHideDuration` expired), `"clickaway"`, or `"escapeKeyDown"`.
|
|
544
591
|
*/
|
|
545
|
-
onClose:
|
|
592
|
+
onClose: e.func,
|
|
546
593
|
/**
|
|
547
594
|
* @ignore
|
|
548
595
|
*/
|
|
549
|
-
onFocus:
|
|
596
|
+
onFocus: e.func,
|
|
550
597
|
/**
|
|
551
598
|
* @ignore
|
|
552
599
|
*/
|
|
553
|
-
onMouseEnter:
|
|
600
|
+
onMouseEnter: e.func,
|
|
554
601
|
/**
|
|
555
602
|
* @ignore
|
|
556
603
|
*/
|
|
557
|
-
onMouseLeave:
|
|
604
|
+
onMouseLeave: e.func,
|
|
558
605
|
/**
|
|
559
606
|
* If `true`, the component is shown.
|
|
560
607
|
*/
|
|
561
|
-
open:
|
|
608
|
+
open: e.bool,
|
|
562
609
|
/**
|
|
563
610
|
* The number of milliseconds to wait before dismissing after user interaction.
|
|
564
611
|
* If `autoHideDuration` prop isn't specified, it does nothing.
|
|
565
612
|
* If `autoHideDuration` prop is specified but `resumeHideDuration` isn't,
|
|
566
613
|
* we default to `autoHideDuration / 2` ms.
|
|
567
614
|
*/
|
|
568
|
-
resumeHideDuration:
|
|
615
|
+
resumeHideDuration: e.number,
|
|
616
|
+
/**
|
|
617
|
+
* The props used for each slot inside.
|
|
618
|
+
* @default {}
|
|
619
|
+
*/
|
|
620
|
+
slotProps: e.shape({
|
|
621
|
+
clickAwayListener: e.oneOfType([e.func, e.shape({
|
|
622
|
+
children: e.element.isRequired,
|
|
623
|
+
disableReactTree: e.bool,
|
|
624
|
+
mouseEvent: e.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
|
|
625
|
+
onClickAway: e.func,
|
|
626
|
+
touchEvent: e.oneOf(["onTouchEnd", "onTouchStart", !1])
|
|
627
|
+
})]),
|
|
628
|
+
content: e.oneOfType([e.func, e.object]),
|
|
629
|
+
root: e.oneOfType([e.func, e.object]),
|
|
630
|
+
transition: e.oneOfType([e.func, e.object])
|
|
631
|
+
}),
|
|
632
|
+
/**
|
|
633
|
+
* The components used for each slot inside.
|
|
634
|
+
* @default {}
|
|
635
|
+
*/
|
|
636
|
+
slots: e.shape({
|
|
637
|
+
clickAwayListener: e.elementType,
|
|
638
|
+
content: e.elementType,
|
|
639
|
+
root: e.elementType,
|
|
640
|
+
transition: e.elementType
|
|
641
|
+
}),
|
|
569
642
|
/**
|
|
570
643
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
571
644
|
*/
|
|
572
|
-
sx:
|
|
645
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
573
646
|
/**
|
|
574
647
|
* The component used for the transition.
|
|
575
648
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
649
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
576
650
|
* @default Grow
|
|
577
651
|
*/
|
|
578
|
-
TransitionComponent:
|
|
652
|
+
TransitionComponent: e.elementType,
|
|
579
653
|
/**
|
|
580
654
|
* The duration for the transition, in milliseconds.
|
|
581
655
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -584,56 +658,57 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
584
658
|
* exit: theme.transitions.duration.leavingScreen,
|
|
585
659
|
* }
|
|
586
660
|
*/
|
|
587
|
-
transitionDuration:
|
|
588
|
-
appear:
|
|
589
|
-
enter:
|
|
590
|
-
exit:
|
|
661
|
+
transitionDuration: e.oneOfType([e.number, e.shape({
|
|
662
|
+
appear: e.number,
|
|
663
|
+
enter: e.number,
|
|
664
|
+
exit: e.number
|
|
591
665
|
})]),
|
|
592
666
|
/**
|
|
593
667
|
* Props applied to the transition element.
|
|
594
668
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
669
|
+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
595
670
|
* @default {}
|
|
596
671
|
*/
|
|
597
|
-
TransitionProps:
|
|
672
|
+
TransitionProps: e.object
|
|
598
673
|
});
|
|
599
|
-
const
|
|
600
|
-
const [
|
|
674
|
+
const Fe = (t) => /* @__PURE__ */ v(D, { ...t, direction: "left" }), _e = (t) => /* @__PURE__ */ v(D, { ...t, direction: "right" }), Ie = (t) => /* @__PURE__ */ v(D, { ...t, direction: "up" }), We = (t) => /* @__PURE__ */ v(D, { ...t, direction: "down" }), ct = () => {
|
|
675
|
+
const [t, n] = O(!1), [l, o] = O(""), [p, f] = O(2e3), [h, d] = O("error"), [b, k] = O({ vertical: "top", horizontal: "right" }), [u, m] = O("left"), S = j(
|
|
601
676
|
({
|
|
602
|
-
message:
|
|
677
|
+
message: a,
|
|
603
678
|
type: g = "error",
|
|
604
679
|
duration: r = 3e3,
|
|
605
680
|
animationDirection: s = "left",
|
|
606
|
-
position:
|
|
681
|
+
position: c = { vertical: "top", horizontal: "right" }
|
|
607
682
|
}) => {
|
|
608
|
-
o(
|
|
683
|
+
o(a), d(g), f(r), k(c), m(s), n(!0);
|
|
609
684
|
},
|
|
610
685
|
[]
|
|
611
|
-
),
|
|
612
|
-
(
|
|
613
|
-
g !== "clickaway" &&
|
|
686
|
+
), T = j(
|
|
687
|
+
(a, g) => {
|
|
688
|
+
g !== "clickaway" && n(!1);
|
|
614
689
|
},
|
|
615
690
|
[]
|
|
616
|
-
), i =
|
|
617
|
-
(
|
|
618
|
-
g !== "clickaway" &&
|
|
691
|
+
), i = j(
|
|
692
|
+
(a, g) => {
|
|
693
|
+
g !== "clickaway" && n(!1);
|
|
619
694
|
},
|
|
620
695
|
[]
|
|
621
696
|
);
|
|
622
697
|
return {
|
|
623
|
-
showAlertMessage:
|
|
624
|
-
snackBar: /* @__PURE__ */
|
|
625
|
-
|
|
698
|
+
showAlertMessage: S,
|
|
699
|
+
snackBar: /* @__PURE__ */ v(
|
|
700
|
+
ee,
|
|
626
701
|
{
|
|
627
|
-
anchorOrigin:
|
|
702
|
+
anchorOrigin: b,
|
|
628
703
|
autoHideDuration: p,
|
|
629
|
-
open:
|
|
704
|
+
open: t,
|
|
630
705
|
onClose: i,
|
|
631
|
-
TransitionComponent: u === "left" ?
|
|
632
|
-
children: /* @__PURE__ */
|
|
706
|
+
TransitionComponent: u === "left" ? Fe : u === "right" ? _e : u === "up" ? Ie : We,
|
|
707
|
+
children: /* @__PURE__ */ v(Le, { variant: "filled", onClose: T, severity: h, children: /* @__PURE__ */ v("div", { dangerouslySetInnerHTML: { __html: l } }) })
|
|
633
708
|
}
|
|
634
709
|
)
|
|
635
710
|
};
|
|
636
711
|
};
|
|
637
712
|
export {
|
|
638
|
-
|
|
713
|
+
ct as useSnackBar
|
|
639
714
|
};
|