everest-npm-features 0.0.61 → 0.0.63
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/ArrowBack-DEJjwfp0.js +8 -0
- package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
- package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
- package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
- package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
- package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
- package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
- package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
- package/dist/PlayArrow-71FP5PzJ.js +13 -0
- package/dist/Portal-BeS9yJCZ.js +968 -0
- package/dist/assets/styles.css +1 -1
- package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
- package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
- package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
- package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
- package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
- package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
- package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
- package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
- package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
- package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
- package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
- package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
- package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
- package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
- package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/Transactions/index.js +23 -24
- package/dist/components/Shared/FullKyc/countryList.js +15 -17
- package/dist/components/Shared/FullKyc/edd.js +51 -53
- package/dist/components/Shared/FullKyc/index.js +13 -11
- package/dist/components/Shared/FullKyc/pep.js +35 -43
- package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
- package/dist/components/Shared/FullKyc/userInfo.js +8 -13
- package/dist/components/Shared/HistoryItem/index.js +43 -48
- package/dist/components/Shared/Incode/index.js +31 -35
- package/dist/components/Shared/MinimalKyc/index.js +60 -65
- package/dist/components/Shared/Sumsub/index.js +75 -62
- package/dist/components/Shared/loader.js +4 -5
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +4 -4
- package/dist/components/Wallet/Account/createIban.d.ts +1 -2
- package/dist/components/Wallet/Account/createIban.js +324 -102
- package/dist/components/Wallet/Account/eWallet.js +37 -43
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +41 -45
- package/dist/components/Wallet/Account/ibanItem.js +70 -75
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +113 -118
- package/dist/components/Wallet/Account/sendIban.js +79 -88
- package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
- package/dist/components/Wallet/Buy/form.js +8 -18
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +16 -18
- package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
- package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
- package/dist/components/Wallet/History/index.js +23 -797
- package/dist/components/Wallet/Home/index.js +13 -14
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
- package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
- package/dist/components/Wallet/Portfolio/index.js +48 -51
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
- package/dist/components/Wallet/Profile/documents.js +164 -176
- package/dist/components/Wallet/Profile/index.js +39 -44
- package/dist/components/Wallet/Profile/storage.js +39 -47
- package/dist/components/Wallet/Receive/index.js +32 -37
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
- package/dist/components/Wallet/Sell/form.js +8 -18
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +98 -107
- package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
- package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
- package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
- package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
- package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
- package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
- package/dist/components/Wallet/Shared/Container/index.js +11 -11
- package/dist/components/Wallet/Shared/Input/index.js +3 -3
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
- package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
- package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
- package/dist/components/Wallet/Shared/addBank.js +41 -45
- package/dist/components/Wallet/Shared/appButton.js +11 -15
- package/dist/components/Wallet/Shared/backBtn.js +8 -9
- package/dist/components/Wallet/Shared/button.js +7 -7
- package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
- package/dist/components/Wallet/Shared/inputField.js +5 -5
- package/dist/components/Wallet/Shared/manualSend.js +9 -13
- package/dist/components/Wallet/Shared/noData.js +4 -5
- package/dist/components/Wallet/Shared/pin.js +25 -27
- package/dist/components/Wallet/Shared/radioButton.js +39 -5
- package/dist/components/Wallet/Shared/step.js +12 -13
- package/dist/components/Wallet/Shared/timer.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +17 -17
- package/dist/components/Wallet/SignUp/index.js +63 -153
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +71 -69
- package/dist/components/Wallet/Stake/id/index.js +77 -84
- package/dist/components/Wallet/Stake/index.js +65 -68
- package/dist/components/Wallet/Swap/form.js +11 -20
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
- package/dist/components/Wallet/Withdraw/form.js +6 -17
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
- package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
- package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
- package/dist/hoc/withThemeProvider.js +5 -732
- package/dist/hooks/useDialog/index.js +22 -23
- package/dist/hooks/useRrDialog/index.js +43 -46
- package/dist/hooks/useSnackBar.js +24 -696
- 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 +2 -2
- package/dist/icons/failedRedeemIcon.js +2 -2
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
- package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
- package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
- package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
- package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
- package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
- package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
- package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/memoTheme-DnE8lj0t.js +3481 -0
- package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
- package/dist/otpForm-DeeegaX2.js +7378 -0
- package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
- package/dist/styles.module-DFoezEqS.js +28 -0
- package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
- package/dist/tooltip-BW0UyWw7.js +2129 -0
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +72 -71
- package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
- package/package.json +6 -6
- package/dist/Alert-DzsbFW3-.js +0 -369
- package/dist/Autocomplete-CE-OI2t8.js +0 -2429
- package/dist/Avatar-1XklXr4O.js +0 -281
- package/dist/Backdrop-CioURPVG.js +0 -359
- package/dist/Box-B0YSYLco.js +0 -59
- package/dist/Button-Df4vgU24.js +0 -663
- package/dist/ButtonBase-DLF5c6wi.js +0 -870
- package/dist/CardContent-D9wTdpu-.js +0 -141
- package/dist/CircularProgress-xZA3lvba.js +0 -252
- package/dist/Close-CxzDL3J-.js +0 -9
- package/dist/Container-urNKV7hm.js +0 -181
- package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
- package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
- package/dist/DialogContent-BMwlOnbW.js +0 -567
- package/dist/DialogTitle-CfS0bb2K.js +0 -70
- package/dist/Divider-BShhMFf4.js +0 -297
- package/dist/FilledInput-DuNqnPjc.js +0 -1292
- package/dist/FormControl-RtZDQMdA.js +0 -258
- package/dist/FormControlLabel-BliKW48y.js +0 -519
- package/dist/GlobalStyles-ChMhDfTS.js +0 -59
- package/dist/Grid-CFe3amXO.js +0 -410
- package/dist/Grow-CnGtel3u.js +0 -196
- package/dist/HTMLElementType-BrQSV2FE.js +0 -13
- package/dist/IconButton-DHm-hucF.js +0 -297
- package/dist/InputAdornment-DMiED3JH.js +0 -173
- package/dist/Link-DBA9Yifs.js +0 -266
- package/dist/ListItemIcon-CUcyTEEm.js +0 -84
- package/dist/Menu-DLYFFrEk.js +0 -1239
- package/dist/MenuItem-DUdYOJr4.js +0 -271
- package/dist/Modal-CFIQ_s3T.js +0 -743
- package/dist/Paper-Bgt2WXI6.js +0 -186
- package/dist/PlayArrow-Bjz9LxhD.js +0 -13
- package/dist/Popper-BBAoiZKn.js +0 -1409
- package/dist/Portal-BMAxiQwe.js +0 -69
- package/dist/RadioGroup-nvoSN0JN.js +0 -189
- package/dist/Select-CB5yWmyn.js +0 -1886
- package/dist/Slide-B9Nw0LZ4.js +0 -235
- package/dist/Stack-k55YTxET.js +0 -172
- package/dist/SwitchBase-C8zFyg_x.js +0 -318
- package/dist/TextField-DPpRUQe3.js +0 -978
- package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
- package/dist/Typography-pAaje37G.js +0 -260
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/clsx-BTaloaeC.js +0 -264
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createTheme-CD19zQB7.js +0 -3825
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/defaultTheme-C35y5cLB.js +0 -5
- package/dist/dividerClasses-BDxa2gAa.js +0 -10
- package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
- package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
- package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
- package/dist/exactProp-C1Lmtwf_.js +0 -13
- package/dist/extendSxProp-B8UjbJ56.js +0 -37
- package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
- package/dist/index-B0Z-Gjno.js +0 -22
- package/dist/index-DUcLo3x5.js +0 -43
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/memoTheme-yHaPezod.js +0 -15
- package/dist/ownerWindow-CRgpWY6I.js +0 -7
- package/dist/radioButton-CzlYB0Lh.js +0 -402
- package/dist/refType-BsTH3qnM.js +0 -56
- package/dist/styles.module-CHPRGltL.js +0 -28
- package/dist/tooltip-3UvETWtS.js +0 -740
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useSlot-CW7SOYlh.js +0 -125
- package/dist/useSlotProps-BfEOwJvJ.js +0 -25
- package/dist/useTheme-BQJ5lp0i.js +0 -11
- package/dist/useTheme-S5_DHFsQ.js +0 -17
- package/dist/useThemeProps-DN9MjdTl.js +0 -29
|
@@ -0,0 +1,968 @@
|
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var ve = (e, o, r) => o in e ? ge(e, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[o] = r;
|
|
3
|
+
var L = (e, o, r) => ve(e, typeof o != "symbol" ? o + "" : o, r);
|
|
4
|
+
import * as c from "react";
|
|
5
|
+
import k from "react";
|
|
6
|
+
import { h as xe, P as s, T as Te, i as be, b as B } from "./memoTheme-DnE8lj0t.js";
|
|
7
|
+
import { jsx as Ne } from "react/jsx-runtime";
|
|
8
|
+
import { ThemeContext as Oe } from "@emotion/react";
|
|
9
|
+
import * as Re from "react-dom";
|
|
10
|
+
import P from "react-dom";
|
|
11
|
+
function De(e) {
|
|
12
|
+
return Object.keys(e).length === 0;
|
|
13
|
+
}
|
|
14
|
+
function Ce(e = null) {
|
|
15
|
+
const o = c.useContext(Oe);
|
|
16
|
+
return !o || De(o) ? e : o;
|
|
17
|
+
}
|
|
18
|
+
const Se = xe();
|
|
19
|
+
function Ie(e = Se) {
|
|
20
|
+
return Ce(e);
|
|
21
|
+
}
|
|
22
|
+
const G = typeof window < "u" ? c.useLayoutEffect : c.useEffect, we = "exact-prop: ";
|
|
23
|
+
function ke(e) {
|
|
24
|
+
return process.env.NODE_ENV === "production" ? e : {
|
|
25
|
+
...e,
|
|
26
|
+
[we]: (o) => {
|
|
27
|
+
const r = Object.keys(o).filter((t) => !e.hasOwnProperty(t));
|
|
28
|
+
return r.length > 0 ? new Error(`The following props are not supported: ${r.map((t) => `\`${t}\``).join(", ")}. Please remove them.`) : null;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const _e = /* @__PURE__ */ c.createContext();
|
|
33
|
+
process.env.NODE_ENV !== "production" && (s.node, s.bool);
|
|
34
|
+
const rt = () => c.useContext(_e) ?? !1;
|
|
35
|
+
let J = 0;
|
|
36
|
+
function Me(e) {
|
|
37
|
+
const [o, r] = c.useState(e), t = e || o;
|
|
38
|
+
return c.useEffect(() => {
|
|
39
|
+
o == null && (J += 1, r(`mui-${J}`));
|
|
40
|
+
}, [o]), t;
|
|
41
|
+
}
|
|
42
|
+
const $e = {
|
|
43
|
+
...c
|
|
44
|
+
}, K = $e.useId;
|
|
45
|
+
function it(e) {
|
|
46
|
+
if (K !== void 0) {
|
|
47
|
+
const o = K();
|
|
48
|
+
return e ?? o;
|
|
49
|
+
}
|
|
50
|
+
return Me(e);
|
|
51
|
+
}
|
|
52
|
+
function Le() {
|
|
53
|
+
const e = Ie(be);
|
|
54
|
+
return process.env.NODE_ENV !== "production" && c.useDebugValue(e), e[Te] || e;
|
|
55
|
+
}
|
|
56
|
+
const st = s.oneOfType([s.func, s.object]);
|
|
57
|
+
function oe(e, o) {
|
|
58
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...t) {
|
|
59
|
+
return e(...t) || o(...t);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function V(...e) {
|
|
63
|
+
const o = c.useRef(void 0), r = c.useCallback((t) => {
|
|
64
|
+
const i = e.map((n) => {
|
|
65
|
+
if (n == null)
|
|
66
|
+
return null;
|
|
67
|
+
if (typeof n == "function") {
|
|
68
|
+
const u = n, a = u(t);
|
|
69
|
+
return typeof a == "function" ? a : () => {
|
|
70
|
+
u(null);
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return n.current = t, () => {
|
|
74
|
+
n.current = null;
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
return () => {
|
|
78
|
+
i.forEach((n) => n == null ? void 0 : n());
|
|
79
|
+
};
|
|
80
|
+
}, e);
|
|
81
|
+
return c.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
82
|
+
o.current && (o.current(), o.current = void 0), t != null && (o.current = r(t));
|
|
83
|
+
}, e);
|
|
84
|
+
}
|
|
85
|
+
function ut(e) {
|
|
86
|
+
const o = c.useRef(e);
|
|
87
|
+
return G(() => {
|
|
88
|
+
o.current = e;
|
|
89
|
+
}), c.useRef((...r) => (
|
|
90
|
+
// @ts-expect-error hide `this`
|
|
91
|
+
(0, o.current)(...r)
|
|
92
|
+
)).current;
|
|
93
|
+
}
|
|
94
|
+
function at(e) {
|
|
95
|
+
return e && e.ownerDocument || document;
|
|
96
|
+
}
|
|
97
|
+
function Y(e, o) {
|
|
98
|
+
typeof e == "function" ? e(o) : e && (e.current = o);
|
|
99
|
+
}
|
|
100
|
+
function ct(e) {
|
|
101
|
+
const {
|
|
102
|
+
controlled: o,
|
|
103
|
+
default: r,
|
|
104
|
+
name: t,
|
|
105
|
+
state: i = "value"
|
|
106
|
+
} = e, {
|
|
107
|
+
current: n
|
|
108
|
+
} = c.useRef(o !== void 0), [u, a] = c.useState(r), l = n ? o : u;
|
|
109
|
+
if (process.env.NODE_ENV !== "production") {
|
|
110
|
+
c.useEffect(() => {
|
|
111
|
+
n !== (o !== void 0) && console.error([`MUI: A component is changing the ${n ? "" : "un"}controlled ${i} state of ${t} to be ${n ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${t} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
112
|
+
`));
|
|
113
|
+
}, [i, t, o]);
|
|
114
|
+
const {
|
|
115
|
+
current: p
|
|
116
|
+
} = c.useRef(r);
|
|
117
|
+
c.useEffect(() => {
|
|
118
|
+
!n && !Object.is(p, r) && console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${t} after being initialized. To suppress this warning opt to use a controlled ${t}.`].join(`
|
|
119
|
+
`));
|
|
120
|
+
}, [JSON.stringify(r)]);
|
|
121
|
+
}
|
|
122
|
+
const f = c.useCallback((p) => {
|
|
123
|
+
n || a(p);
|
|
124
|
+
}, []);
|
|
125
|
+
return [l, f];
|
|
126
|
+
}
|
|
127
|
+
function Pe(e) {
|
|
128
|
+
return typeof e == "string";
|
|
129
|
+
}
|
|
130
|
+
function re(e, o, r) {
|
|
131
|
+
return e === void 0 || Pe(e) ? o : {
|
|
132
|
+
...o,
|
|
133
|
+
ownerState: {
|
|
134
|
+
...o.ownerState,
|
|
135
|
+
...r
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function ie(e, o, r) {
|
|
140
|
+
return typeof e == "function" ? e(o, r) : e;
|
|
141
|
+
}
|
|
142
|
+
function Ve(e, o = []) {
|
|
143
|
+
if (e === void 0)
|
|
144
|
+
return {};
|
|
145
|
+
const r = {};
|
|
146
|
+
return Object.keys(e).filter((t) => t.match(/^on[A-Z]/) && typeof e[t] == "function" && !o.includes(t)).forEach((t) => {
|
|
147
|
+
r[t] = e[t];
|
|
148
|
+
}), r;
|
|
149
|
+
}
|
|
150
|
+
function Q(e) {
|
|
151
|
+
if (e === void 0)
|
|
152
|
+
return {};
|
|
153
|
+
const o = {};
|
|
154
|
+
return Object.keys(e).filter((r) => !(r.match(/^on[A-Z]/) && typeof e[r] == "function")).forEach((r) => {
|
|
155
|
+
o[r] = e[r];
|
|
156
|
+
}), o;
|
|
157
|
+
}
|
|
158
|
+
function se(e) {
|
|
159
|
+
const {
|
|
160
|
+
getSlotProps: o,
|
|
161
|
+
additionalProps: r,
|
|
162
|
+
externalSlotProps: t,
|
|
163
|
+
externalForwardedProps: i,
|
|
164
|
+
className: n
|
|
165
|
+
} = e;
|
|
166
|
+
if (!o) {
|
|
167
|
+
const N = B(r == null ? void 0 : r.className, n, i == null ? void 0 : i.className, t == null ? void 0 : t.className), h = {
|
|
168
|
+
...r == null ? void 0 : r.style,
|
|
169
|
+
...i == null ? void 0 : i.style,
|
|
170
|
+
...t == null ? void 0 : t.style
|
|
171
|
+
}, E = {
|
|
172
|
+
...r,
|
|
173
|
+
...i,
|
|
174
|
+
...t
|
|
175
|
+
};
|
|
176
|
+
return N.length > 0 && (E.className = N), Object.keys(h).length > 0 && (E.style = h), {
|
|
177
|
+
props: E,
|
|
178
|
+
internalRef: void 0
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
const u = Ve({
|
|
182
|
+
...i,
|
|
183
|
+
...t
|
|
184
|
+
}), a = Q(t), l = Q(i), f = o(u), p = B(f == null ? void 0 : f.className, r == null ? void 0 : r.className, n, i == null ? void 0 : i.className, t == null ? void 0 : t.className), m = {
|
|
185
|
+
...f == null ? void 0 : f.style,
|
|
186
|
+
...r == null ? void 0 : r.style,
|
|
187
|
+
...i == null ? void 0 : i.style,
|
|
188
|
+
...t == null ? void 0 : t.style
|
|
189
|
+
}, g = {
|
|
190
|
+
...f,
|
|
191
|
+
...r,
|
|
192
|
+
...l,
|
|
193
|
+
...a
|
|
194
|
+
};
|
|
195
|
+
return p.length > 0 && (g.className = p), Object.keys(m).length > 0 && (g.style = m), {
|
|
196
|
+
props: g,
|
|
197
|
+
internalRef: f.ref
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function lt(e, o) {
|
|
201
|
+
const {
|
|
202
|
+
className: r,
|
|
203
|
+
elementType: t,
|
|
204
|
+
ownerState: i,
|
|
205
|
+
externalForwardedProps: n,
|
|
206
|
+
internalForwardedProps: u,
|
|
207
|
+
shouldForwardComponentProp: a = !1,
|
|
208
|
+
...l
|
|
209
|
+
} = o, {
|
|
210
|
+
component: f,
|
|
211
|
+
slots: p = {
|
|
212
|
+
[e]: void 0
|
|
213
|
+
},
|
|
214
|
+
slotProps: m = {
|
|
215
|
+
[e]: void 0
|
|
216
|
+
},
|
|
217
|
+
...g
|
|
218
|
+
} = n, N = p[e] || t, h = ie(m[e], i), {
|
|
219
|
+
props: {
|
|
220
|
+
component: E,
|
|
221
|
+
...j
|
|
222
|
+
},
|
|
223
|
+
internalRef: A
|
|
224
|
+
} = se({
|
|
225
|
+
className: r,
|
|
226
|
+
...l,
|
|
227
|
+
externalForwardedProps: e === "root" ? g : void 0,
|
|
228
|
+
externalSlotProps: h
|
|
229
|
+
}), H = V(A, h == null ? void 0 : h.ref, o.ref), T = e === "root" ? E || f : E, b = re(N, {
|
|
230
|
+
...e === "root" && !f && !p[e] && u,
|
|
231
|
+
...e !== "root" && !p[e] && u,
|
|
232
|
+
...j,
|
|
233
|
+
...T && !a && {
|
|
234
|
+
as: T
|
|
235
|
+
},
|
|
236
|
+
...T && a && {
|
|
237
|
+
component: T
|
|
238
|
+
},
|
|
239
|
+
ref: H
|
|
240
|
+
}, i);
|
|
241
|
+
return [N, b];
|
|
242
|
+
}
|
|
243
|
+
function ue(e) {
|
|
244
|
+
var o;
|
|
245
|
+
return parseInt(c.version, 10) >= 19 ? ((o = e == null ? void 0 : e.props) == null ? void 0 : o.ref) || null : (e == null ? void 0 : e.ref) || null;
|
|
246
|
+
}
|
|
247
|
+
function je(e, o, r, t, i) {
|
|
248
|
+
if (process.env.NODE_ENV === "production")
|
|
249
|
+
return null;
|
|
250
|
+
const n = e[o], u = i || o;
|
|
251
|
+
return n == null ? null : n && n.nodeType !== 1 ? new Error(`Invalid ${t} \`${u}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
|
|
252
|
+
}
|
|
253
|
+
function ft(e) {
|
|
254
|
+
var m;
|
|
255
|
+
const {
|
|
256
|
+
elementType: o,
|
|
257
|
+
externalSlotProps: r,
|
|
258
|
+
ownerState: t,
|
|
259
|
+
skipResolvingSlotProps: i = !1,
|
|
260
|
+
...n
|
|
261
|
+
} = e, u = i ? {} : ie(r, t), {
|
|
262
|
+
props: a,
|
|
263
|
+
internalRef: l
|
|
264
|
+
} = se({
|
|
265
|
+
...n,
|
|
266
|
+
externalSlotProps: u
|
|
267
|
+
}), f = V(l, u == null ? void 0 : u.ref, (m = e.additionalProps) == null ? void 0 : m.ref);
|
|
268
|
+
return re(o, {
|
|
269
|
+
...a,
|
|
270
|
+
ref: f
|
|
271
|
+
}, t);
|
|
272
|
+
}
|
|
273
|
+
const ee = {};
|
|
274
|
+
function Ae(e, o) {
|
|
275
|
+
const r = c.useRef(ee);
|
|
276
|
+
return r.current === ee && (r.current = e(o)), r;
|
|
277
|
+
}
|
|
278
|
+
const He = [];
|
|
279
|
+
function Ue(e) {
|
|
280
|
+
c.useEffect(e, He);
|
|
281
|
+
}
|
|
282
|
+
class Z {
|
|
283
|
+
constructor() {
|
|
284
|
+
L(this, "currentId", null);
|
|
285
|
+
L(this, "clear", () => {
|
|
286
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
287
|
+
});
|
|
288
|
+
L(this, "disposeEffect", () => this.clear);
|
|
289
|
+
}
|
|
290
|
+
static create() {
|
|
291
|
+
return new Z();
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
295
|
+
*/
|
|
296
|
+
start(o, r) {
|
|
297
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
298
|
+
this.currentId = null, r();
|
|
299
|
+
}, o);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
function Ge() {
|
|
303
|
+
const e = Ae(Z.create).current;
|
|
304
|
+
return Ue(e.disposeEffect), e;
|
|
305
|
+
}
|
|
306
|
+
function qe(e) {
|
|
307
|
+
const {
|
|
308
|
+
prototype: o = {}
|
|
309
|
+
} = e;
|
|
310
|
+
return !!o.isReactComponent;
|
|
311
|
+
}
|
|
312
|
+
function ae(e, o, r, t, i) {
|
|
313
|
+
const n = e[o], u = i || o;
|
|
314
|
+
if (n == null || // When server-side rendering React doesn't warn either.
|
|
315
|
+
// This is not an accurate check for SSR.
|
|
316
|
+
// This is only in place for Emotion compat.
|
|
317
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
318
|
+
typeof window > "u")
|
|
319
|
+
return null;
|
|
320
|
+
let a;
|
|
321
|
+
const l = n.type;
|
|
322
|
+
return typeof l == "function" && !qe(l) && (a = "Did you accidentally use a plain function component for an element instead?"), a !== void 0 ? new Error(`Invalid ${t} \`${u}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
323
|
+
}
|
|
324
|
+
const ce = oe(s.element, ae);
|
|
325
|
+
ce.isRequired = oe(s.element.isRequired, ae);
|
|
326
|
+
function We(e, o) {
|
|
327
|
+
if (e == null) return {};
|
|
328
|
+
var r = {};
|
|
329
|
+
for (var t in e) if ({}.hasOwnProperty.call(e, t)) {
|
|
330
|
+
if (o.indexOf(t) !== -1) continue;
|
|
331
|
+
r[t] = e[t];
|
|
332
|
+
}
|
|
333
|
+
return r;
|
|
334
|
+
}
|
|
335
|
+
function q(e, o) {
|
|
336
|
+
return q = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, t) {
|
|
337
|
+
return r.__proto__ = t, r;
|
|
338
|
+
}, q(e, o);
|
|
339
|
+
}
|
|
340
|
+
function Fe(e, o) {
|
|
341
|
+
e.prototype = Object.create(o.prototype), e.prototype.constructor = e, q(e, o);
|
|
342
|
+
}
|
|
343
|
+
const te = {
|
|
344
|
+
disabled: !1
|
|
345
|
+
};
|
|
346
|
+
var Xe = process.env.NODE_ENV !== "production" ? s.oneOfType([s.number, s.shape({
|
|
347
|
+
enter: s.number,
|
|
348
|
+
exit: s.number,
|
|
349
|
+
appear: s.number
|
|
350
|
+
}).isRequired]) : null;
|
|
351
|
+
process.env.NODE_ENV !== "production" && s.oneOfType([s.string, s.shape({
|
|
352
|
+
enter: s.string,
|
|
353
|
+
exit: s.string,
|
|
354
|
+
active: s.string
|
|
355
|
+
}), s.shape({
|
|
356
|
+
enter: s.string,
|
|
357
|
+
enterDone: s.string,
|
|
358
|
+
enterActive: s.string,
|
|
359
|
+
exit: s.string,
|
|
360
|
+
exitDone: s.string,
|
|
361
|
+
exitActive: s.string
|
|
362
|
+
})]);
|
|
363
|
+
const le = k.createContext(null);
|
|
364
|
+
var ze = function(o) {
|
|
365
|
+
return o.scrollTop;
|
|
366
|
+
}, _ = "unmounted", R = "exited", D = "entering", w = "entered", W = "exiting", x = /* @__PURE__ */ function(e) {
|
|
367
|
+
Fe(o, e);
|
|
368
|
+
function o(t, i) {
|
|
369
|
+
var n;
|
|
370
|
+
n = e.call(this, t, i) || this;
|
|
371
|
+
var u = i, a = u && !u.isMounting ? t.enter : t.appear, l;
|
|
372
|
+
return n.appearStatus = null, t.in ? a ? (l = R, n.appearStatus = D) : l = w : t.unmountOnExit || t.mountOnEnter ? l = _ : l = R, n.state = {
|
|
373
|
+
status: l
|
|
374
|
+
}, n.nextCallback = null, n;
|
|
375
|
+
}
|
|
376
|
+
o.getDerivedStateFromProps = function(i, n) {
|
|
377
|
+
var u = i.in;
|
|
378
|
+
return u && n.status === _ ? {
|
|
379
|
+
status: R
|
|
380
|
+
} : null;
|
|
381
|
+
};
|
|
382
|
+
var r = o.prototype;
|
|
383
|
+
return r.componentDidMount = function() {
|
|
384
|
+
this.updateStatus(!0, this.appearStatus);
|
|
385
|
+
}, r.componentDidUpdate = function(i) {
|
|
386
|
+
var n = null;
|
|
387
|
+
if (i !== this.props) {
|
|
388
|
+
var u = this.state.status;
|
|
389
|
+
this.props.in ? u !== D && u !== w && (n = D) : (u === D || u === w) && (n = W);
|
|
390
|
+
}
|
|
391
|
+
this.updateStatus(!1, n);
|
|
392
|
+
}, r.componentWillUnmount = function() {
|
|
393
|
+
this.cancelNextCallback();
|
|
394
|
+
}, r.getTimeouts = function() {
|
|
395
|
+
var i = this.props.timeout, n, u, a;
|
|
396
|
+
return n = u = a = i, i != null && typeof i != "number" && (n = i.exit, u = i.enter, a = i.appear !== void 0 ? i.appear : u), {
|
|
397
|
+
exit: n,
|
|
398
|
+
enter: u,
|
|
399
|
+
appear: a
|
|
400
|
+
};
|
|
401
|
+
}, r.updateStatus = function(i, n) {
|
|
402
|
+
if (i === void 0 && (i = !1), n !== null)
|
|
403
|
+
if (this.cancelNextCallback(), n === D) {
|
|
404
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
405
|
+
var u = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this);
|
|
406
|
+
u && ze(u);
|
|
407
|
+
}
|
|
408
|
+
this.performEnter(i);
|
|
409
|
+
} else
|
|
410
|
+
this.performExit();
|
|
411
|
+
else this.props.unmountOnExit && this.state.status === R && this.setState({
|
|
412
|
+
status: _
|
|
413
|
+
});
|
|
414
|
+
}, r.performEnter = function(i) {
|
|
415
|
+
var n = this, u = this.props.enter, a = this.context ? this.context.isMounting : i, l = this.props.nodeRef ? [a] : [P.findDOMNode(this), a], f = l[0], p = l[1], m = this.getTimeouts(), g = a ? m.appear : m.enter;
|
|
416
|
+
if (!i && !u || te.disabled) {
|
|
417
|
+
this.safeSetState({
|
|
418
|
+
status: w
|
|
419
|
+
}, function() {
|
|
420
|
+
n.props.onEntered(f);
|
|
421
|
+
});
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
this.props.onEnter(f, p), this.safeSetState({
|
|
425
|
+
status: D
|
|
426
|
+
}, function() {
|
|
427
|
+
n.props.onEntering(f, p), n.onTransitionEnd(g, function() {
|
|
428
|
+
n.safeSetState({
|
|
429
|
+
status: w
|
|
430
|
+
}, function() {
|
|
431
|
+
n.props.onEntered(f, p);
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
});
|
|
435
|
+
}, r.performExit = function() {
|
|
436
|
+
var i = this, n = this.props.exit, u = this.getTimeouts(), a = this.props.nodeRef ? void 0 : P.findDOMNode(this);
|
|
437
|
+
if (!n || te.disabled) {
|
|
438
|
+
this.safeSetState({
|
|
439
|
+
status: R
|
|
440
|
+
}, function() {
|
|
441
|
+
i.props.onExited(a);
|
|
442
|
+
});
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
this.props.onExit(a), this.safeSetState({
|
|
446
|
+
status: W
|
|
447
|
+
}, function() {
|
|
448
|
+
i.props.onExiting(a), i.onTransitionEnd(u.exit, function() {
|
|
449
|
+
i.safeSetState({
|
|
450
|
+
status: R
|
|
451
|
+
}, function() {
|
|
452
|
+
i.props.onExited(a);
|
|
453
|
+
});
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
}, r.cancelNextCallback = function() {
|
|
457
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
458
|
+
}, r.safeSetState = function(i, n) {
|
|
459
|
+
n = this.setNextCallback(n), this.setState(i, n);
|
|
460
|
+
}, r.setNextCallback = function(i) {
|
|
461
|
+
var n = this, u = !0;
|
|
462
|
+
return this.nextCallback = function(a) {
|
|
463
|
+
u && (u = !1, n.nextCallback = null, i(a));
|
|
464
|
+
}, this.nextCallback.cancel = function() {
|
|
465
|
+
u = !1;
|
|
466
|
+
}, this.nextCallback;
|
|
467
|
+
}, r.onTransitionEnd = function(i, n) {
|
|
468
|
+
this.setNextCallback(n);
|
|
469
|
+
var u = this.props.nodeRef ? this.props.nodeRef.current : P.findDOMNode(this), a = i == null && !this.props.addEndListener;
|
|
470
|
+
if (!u || a) {
|
|
471
|
+
setTimeout(this.nextCallback, 0);
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
if (this.props.addEndListener) {
|
|
475
|
+
var l = this.props.nodeRef ? [this.nextCallback] : [u, this.nextCallback], f = l[0], p = l[1];
|
|
476
|
+
this.props.addEndListener(f, p);
|
|
477
|
+
}
|
|
478
|
+
i != null && setTimeout(this.nextCallback, i);
|
|
479
|
+
}, r.render = function() {
|
|
480
|
+
var i = this.state.status;
|
|
481
|
+
if (i === _)
|
|
482
|
+
return null;
|
|
483
|
+
var n = this.props, u = n.children;
|
|
484
|
+
n.in, n.mountOnEnter, n.unmountOnExit, n.appear, n.enter, n.exit, n.timeout, n.addEndListener, n.onEnter, n.onEntering, n.onEntered, n.onExit, n.onExiting, n.onExited, n.nodeRef;
|
|
485
|
+
var a = We(n, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
486
|
+
return (
|
|
487
|
+
// allows for nested Transitions
|
|
488
|
+
/* @__PURE__ */ k.createElement(le.Provider, {
|
|
489
|
+
value: null
|
|
490
|
+
}, typeof u == "function" ? u(i, a) : k.cloneElement(k.Children.only(u), a))
|
|
491
|
+
);
|
|
492
|
+
}, o;
|
|
493
|
+
}(k.Component);
|
|
494
|
+
x.contextType = le;
|
|
495
|
+
x.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
496
|
+
/**
|
|
497
|
+
* A React reference to DOM element that need to transition:
|
|
498
|
+
* https://stackoverflow.com/a/51127130/4671932
|
|
499
|
+
*
|
|
500
|
+
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
501
|
+
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
502
|
+
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
503
|
+
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
504
|
+
* (see
|
|
505
|
+
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
506
|
+
*/
|
|
507
|
+
nodeRef: s.shape({
|
|
508
|
+
current: typeof Element > "u" ? s.any : function(e, o, r, t, i, n) {
|
|
509
|
+
var u = e[o];
|
|
510
|
+
return s.instanceOf(u && "ownerDocument" in u ? u.ownerDocument.defaultView.Element : Element)(e, o, r, t, i, n);
|
|
511
|
+
}
|
|
512
|
+
}),
|
|
513
|
+
/**
|
|
514
|
+
* A `function` child can be used instead of a React element. This function is
|
|
515
|
+
* called with the current transition status (`'entering'`, `'entered'`,
|
|
516
|
+
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
517
|
+
* specific props to a component.
|
|
518
|
+
*
|
|
519
|
+
* ```jsx
|
|
520
|
+
* <Transition in={this.state.in} timeout={150}>
|
|
521
|
+
* {state => (
|
|
522
|
+
* <MyComponent className={`fade fade-${state}`} />
|
|
523
|
+
* )}
|
|
524
|
+
* </Transition>
|
|
525
|
+
* ```
|
|
526
|
+
*/
|
|
527
|
+
children: s.oneOfType([s.func.isRequired, s.element.isRequired]).isRequired,
|
|
528
|
+
/**
|
|
529
|
+
* Show the component; triggers the enter or exit states
|
|
530
|
+
*/
|
|
531
|
+
in: s.bool,
|
|
532
|
+
/**
|
|
533
|
+
* By default the child component is mounted immediately along with
|
|
534
|
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
535
|
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
536
|
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
537
|
+
*/
|
|
538
|
+
mountOnEnter: s.bool,
|
|
539
|
+
/**
|
|
540
|
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
541
|
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
542
|
+
*/
|
|
543
|
+
unmountOnExit: s.bool,
|
|
544
|
+
/**
|
|
545
|
+
* By default the child component does not perform the enter transition when
|
|
546
|
+
* it first mounts, regardless of the value of `in`. If you want this
|
|
547
|
+
* behavior, set both `appear` and `in` to `true`.
|
|
548
|
+
*
|
|
549
|
+
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
550
|
+
* > only adds an additional enter transition. However, in the
|
|
551
|
+
* > `<CSSTransition>` component that first enter transition does result in
|
|
552
|
+
* > additional `.appear-*` classes, that way you can choose to style it
|
|
553
|
+
* > differently.
|
|
554
|
+
*/
|
|
555
|
+
appear: s.bool,
|
|
556
|
+
/**
|
|
557
|
+
* Enable or disable enter transitions.
|
|
558
|
+
*/
|
|
559
|
+
enter: s.bool,
|
|
560
|
+
/**
|
|
561
|
+
* Enable or disable exit transitions.
|
|
562
|
+
*/
|
|
563
|
+
exit: s.bool,
|
|
564
|
+
/**
|
|
565
|
+
* The duration of the transition, in milliseconds.
|
|
566
|
+
* Required unless `addEndListener` is provided.
|
|
567
|
+
*
|
|
568
|
+
* You may specify a single timeout for all transitions:
|
|
569
|
+
*
|
|
570
|
+
* ```jsx
|
|
571
|
+
* timeout={500}
|
|
572
|
+
* ```
|
|
573
|
+
*
|
|
574
|
+
* or individually:
|
|
575
|
+
*
|
|
576
|
+
* ```jsx
|
|
577
|
+
* timeout={{
|
|
578
|
+
* appear: 500,
|
|
579
|
+
* enter: 300,
|
|
580
|
+
* exit: 500,
|
|
581
|
+
* }}
|
|
582
|
+
* ```
|
|
583
|
+
*
|
|
584
|
+
* - `appear` defaults to the value of `enter`
|
|
585
|
+
* - `enter` defaults to `0`
|
|
586
|
+
* - `exit` defaults to `0`
|
|
587
|
+
*
|
|
588
|
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
589
|
+
*/
|
|
590
|
+
timeout: function(o) {
|
|
591
|
+
var r = Xe;
|
|
592
|
+
o.addEndListener || (r = r.isRequired);
|
|
593
|
+
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
594
|
+
i[n - 1] = arguments[n];
|
|
595
|
+
return r.apply(void 0, [o].concat(i));
|
|
596
|
+
},
|
|
597
|
+
/**
|
|
598
|
+
* Add a custom transition end trigger. Called with the transitioning
|
|
599
|
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
600
|
+
* logic. Timeouts are still used as a fallback if provided.
|
|
601
|
+
*
|
|
602
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
603
|
+
*
|
|
604
|
+
* ```jsx
|
|
605
|
+
* addEndListener={(node, done) => {
|
|
606
|
+
* // use the css transitionend event to mark the finish of a transition
|
|
607
|
+
* node.addEventListener('transitionend', done, false);
|
|
608
|
+
* }}
|
|
609
|
+
* ```
|
|
610
|
+
*/
|
|
611
|
+
addEndListener: s.func,
|
|
612
|
+
/**
|
|
613
|
+
* Callback fired before the "entering" status is applied. An extra parameter
|
|
614
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
615
|
+
*
|
|
616
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
617
|
+
*
|
|
618
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
619
|
+
*/
|
|
620
|
+
onEnter: s.func,
|
|
621
|
+
/**
|
|
622
|
+
* Callback fired after the "entering" status is applied. An extra parameter
|
|
623
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
624
|
+
*
|
|
625
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
626
|
+
*
|
|
627
|
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
628
|
+
*/
|
|
629
|
+
onEntering: s.func,
|
|
630
|
+
/**
|
|
631
|
+
* Callback fired after the "entered" status is applied. An extra parameter
|
|
632
|
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
633
|
+
*
|
|
634
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
635
|
+
*
|
|
636
|
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
637
|
+
*/
|
|
638
|
+
onEntered: s.func,
|
|
639
|
+
/**
|
|
640
|
+
* Callback fired before the "exiting" status is applied.
|
|
641
|
+
*
|
|
642
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
643
|
+
*
|
|
644
|
+
* @type Function(node: HtmlElement) -> void
|
|
645
|
+
*/
|
|
646
|
+
onExit: s.func,
|
|
647
|
+
/**
|
|
648
|
+
* Callback fired after the "exiting" status is applied.
|
|
649
|
+
*
|
|
650
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
651
|
+
*
|
|
652
|
+
* @type Function(node: HtmlElement) -> void
|
|
653
|
+
*/
|
|
654
|
+
onExiting: s.func,
|
|
655
|
+
/**
|
|
656
|
+
* Callback fired after the "exited" status is applied.
|
|
657
|
+
*
|
|
658
|
+
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
659
|
+
*
|
|
660
|
+
* @type Function(node: HtmlElement) -> void
|
|
661
|
+
*/
|
|
662
|
+
onExited: s.func
|
|
663
|
+
} : {};
|
|
664
|
+
function I() {
|
|
665
|
+
}
|
|
666
|
+
x.defaultProps = {
|
|
667
|
+
in: !1,
|
|
668
|
+
mountOnEnter: !1,
|
|
669
|
+
unmountOnExit: !1,
|
|
670
|
+
appear: !1,
|
|
671
|
+
enter: !0,
|
|
672
|
+
exit: !0,
|
|
673
|
+
onEnter: I,
|
|
674
|
+
onEntering: I,
|
|
675
|
+
onEntered: I,
|
|
676
|
+
onExit: I,
|
|
677
|
+
onExiting: I,
|
|
678
|
+
onExited: I
|
|
679
|
+
};
|
|
680
|
+
x.UNMOUNTED = _;
|
|
681
|
+
x.EXITED = R;
|
|
682
|
+
x.ENTERING = D;
|
|
683
|
+
x.ENTERED = w;
|
|
684
|
+
x.EXITING = W;
|
|
685
|
+
const Ze = (e) => e.scrollTop;
|
|
686
|
+
function ne(e, o) {
|
|
687
|
+
const {
|
|
688
|
+
timeout: r,
|
|
689
|
+
easing: t,
|
|
690
|
+
style: i = {}
|
|
691
|
+
} = e;
|
|
692
|
+
return {
|
|
693
|
+
duration: i.transitionDuration ?? (typeof r == "number" ? r : r[o.mode] || 0),
|
|
694
|
+
easing: i.transitionTimingFunction ?? (typeof t == "object" ? t[o.mode] : t),
|
|
695
|
+
delay: i.transitionDelay
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
function F(e) {
|
|
699
|
+
return `scale(${e}, ${e ** 2})`;
|
|
700
|
+
}
|
|
701
|
+
const Be = {
|
|
702
|
+
entering: {
|
|
703
|
+
opacity: 1,
|
|
704
|
+
transform: F(1)
|
|
705
|
+
},
|
|
706
|
+
entered: {
|
|
707
|
+
opacity: 1,
|
|
708
|
+
transform: "none"
|
|
709
|
+
}
|
|
710
|
+
}, U = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), X = /* @__PURE__ */ c.forwardRef(function(o, r) {
|
|
711
|
+
const {
|
|
712
|
+
addEndListener: t,
|
|
713
|
+
appear: i = !0,
|
|
714
|
+
children: n,
|
|
715
|
+
easing: u,
|
|
716
|
+
in: a,
|
|
717
|
+
onEnter: l,
|
|
718
|
+
onEntered: f,
|
|
719
|
+
onEntering: p,
|
|
720
|
+
onExit: m,
|
|
721
|
+
onExited: g,
|
|
722
|
+
onExiting: N,
|
|
723
|
+
style: h,
|
|
724
|
+
timeout: E = "auto",
|
|
725
|
+
// eslint-disable-next-line react/prop-types
|
|
726
|
+
TransitionComponent: j = x,
|
|
727
|
+
...A
|
|
728
|
+
} = o, H = Ge(), T = c.useRef(), b = Le(), M = c.useRef(null), fe = V(M, ue(n), r), C = (d) => (O) => {
|
|
729
|
+
if (d) {
|
|
730
|
+
const y = M.current;
|
|
731
|
+
O === void 0 ? d(y) : d(y, O);
|
|
732
|
+
}
|
|
733
|
+
}, de = C(p), pe = C((d, O) => {
|
|
734
|
+
Ze(d);
|
|
735
|
+
const {
|
|
736
|
+
duration: y,
|
|
737
|
+
delay: $,
|
|
738
|
+
easing: v
|
|
739
|
+
} = ne({
|
|
740
|
+
style: h,
|
|
741
|
+
timeout: E,
|
|
742
|
+
easing: u
|
|
743
|
+
}, {
|
|
744
|
+
mode: "enter"
|
|
745
|
+
});
|
|
746
|
+
let S;
|
|
747
|
+
E === "auto" ? (S = b.transitions.getAutoHeightDuration(d.clientHeight), T.current = S) : S = y, d.style.transition = [b.transitions.create("opacity", {
|
|
748
|
+
duration: S,
|
|
749
|
+
delay: $
|
|
750
|
+
}), b.transitions.create("transform", {
|
|
751
|
+
duration: U ? S : S * 0.666,
|
|
752
|
+
delay: $,
|
|
753
|
+
easing: v
|
|
754
|
+
})].join(","), l && l(d, O);
|
|
755
|
+
}), Ee = C(f), me = C(N), he = C((d) => {
|
|
756
|
+
const {
|
|
757
|
+
duration: O,
|
|
758
|
+
delay: y,
|
|
759
|
+
easing: $
|
|
760
|
+
} = ne({
|
|
761
|
+
style: h,
|
|
762
|
+
timeout: E,
|
|
763
|
+
easing: u
|
|
764
|
+
}, {
|
|
765
|
+
mode: "exit"
|
|
766
|
+
});
|
|
767
|
+
let v;
|
|
768
|
+
E === "auto" ? (v = b.transitions.getAutoHeightDuration(d.clientHeight), T.current = v) : v = O, d.style.transition = [b.transitions.create("opacity", {
|
|
769
|
+
duration: v,
|
|
770
|
+
delay: y
|
|
771
|
+
}), b.transitions.create("transform", {
|
|
772
|
+
duration: U ? v : v * 0.666,
|
|
773
|
+
delay: U ? y : y || v * 0.333,
|
|
774
|
+
easing: $
|
|
775
|
+
})].join(","), d.style.opacity = 0, d.style.transform = F(0.75), m && m(d);
|
|
776
|
+
}), ye = C(g);
|
|
777
|
+
return /* @__PURE__ */ Ne(j, {
|
|
778
|
+
appear: i,
|
|
779
|
+
in: a,
|
|
780
|
+
nodeRef: M,
|
|
781
|
+
onEnter: pe,
|
|
782
|
+
onEntered: Ee,
|
|
783
|
+
onEntering: de,
|
|
784
|
+
onExit: he,
|
|
785
|
+
onExited: ye,
|
|
786
|
+
onExiting: me,
|
|
787
|
+
addEndListener: (d) => {
|
|
788
|
+
E === "auto" && H.start(T.current || 0, d), t && t(M.current, d);
|
|
789
|
+
},
|
|
790
|
+
timeout: E === "auto" ? null : E,
|
|
791
|
+
...A,
|
|
792
|
+
children: (d, {
|
|
793
|
+
ownerState: O,
|
|
794
|
+
...y
|
|
795
|
+
}) => /* @__PURE__ */ c.cloneElement(n, {
|
|
796
|
+
style: {
|
|
797
|
+
opacity: 0,
|
|
798
|
+
transform: F(0.75),
|
|
799
|
+
visibility: d === "exited" && !a ? "hidden" : void 0,
|
|
800
|
+
...Be[d],
|
|
801
|
+
...h,
|
|
802
|
+
...n.props.style
|
|
803
|
+
},
|
|
804
|
+
ref: fe,
|
|
805
|
+
...y
|
|
806
|
+
})
|
|
807
|
+
});
|
|
808
|
+
});
|
|
809
|
+
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
810
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
811
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
812
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
813
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
814
|
+
/**
|
|
815
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
816
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
817
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
818
|
+
*/
|
|
819
|
+
addEndListener: s.func,
|
|
820
|
+
/**
|
|
821
|
+
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
822
|
+
* Set this to `false` to disable this behavior.
|
|
823
|
+
* @default true
|
|
824
|
+
*/
|
|
825
|
+
appear: s.bool,
|
|
826
|
+
/**
|
|
827
|
+
* A single child content element.
|
|
828
|
+
*/
|
|
829
|
+
children: ce.isRequired,
|
|
830
|
+
/**
|
|
831
|
+
* The transition timing function.
|
|
832
|
+
* You may specify a single easing or a object containing enter and exit values.
|
|
833
|
+
*/
|
|
834
|
+
easing: s.oneOfType([s.shape({
|
|
835
|
+
enter: s.string,
|
|
836
|
+
exit: s.string
|
|
837
|
+
}), s.string]),
|
|
838
|
+
/**
|
|
839
|
+
* If `true`, the component will transition in.
|
|
840
|
+
*/
|
|
841
|
+
in: s.bool,
|
|
842
|
+
/**
|
|
843
|
+
* @ignore
|
|
844
|
+
*/
|
|
845
|
+
onEnter: s.func,
|
|
846
|
+
/**
|
|
847
|
+
* @ignore
|
|
848
|
+
*/
|
|
849
|
+
onEntered: s.func,
|
|
850
|
+
/**
|
|
851
|
+
* @ignore
|
|
852
|
+
*/
|
|
853
|
+
onEntering: s.func,
|
|
854
|
+
/**
|
|
855
|
+
* @ignore
|
|
856
|
+
*/
|
|
857
|
+
onExit: s.func,
|
|
858
|
+
/**
|
|
859
|
+
* @ignore
|
|
860
|
+
*/
|
|
861
|
+
onExited: s.func,
|
|
862
|
+
/**
|
|
863
|
+
* @ignore
|
|
864
|
+
*/
|
|
865
|
+
onExiting: s.func,
|
|
866
|
+
/**
|
|
867
|
+
* @ignore
|
|
868
|
+
*/
|
|
869
|
+
style: s.object,
|
|
870
|
+
/**
|
|
871
|
+
* The duration for the transition, in milliseconds.
|
|
872
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
873
|
+
*
|
|
874
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
|
875
|
+
* @default 'auto'
|
|
876
|
+
*/
|
|
877
|
+
timeout: s.oneOfType([s.oneOf(["auto"]), s.number, s.shape({
|
|
878
|
+
appear: s.number,
|
|
879
|
+
enter: s.number,
|
|
880
|
+
exit: s.number
|
|
881
|
+
})])
|
|
882
|
+
});
|
|
883
|
+
X && (X.muiSupportAuto = !0);
|
|
884
|
+
function Je(e) {
|
|
885
|
+
return typeof e == "function" ? e() : e;
|
|
886
|
+
}
|
|
887
|
+
const z = /* @__PURE__ */ c.forwardRef(function(o, r) {
|
|
888
|
+
const {
|
|
889
|
+
children: t,
|
|
890
|
+
container: i,
|
|
891
|
+
disablePortal: n = !1
|
|
892
|
+
} = o, [u, a] = c.useState(null), l = V(/* @__PURE__ */ c.isValidElement(t) ? ue(t) : null, r);
|
|
893
|
+
if (G(() => {
|
|
894
|
+
n || a(Je(i) || document.body);
|
|
895
|
+
}, [i, n]), G(() => {
|
|
896
|
+
if (u && !n)
|
|
897
|
+
return Y(r, u), () => {
|
|
898
|
+
Y(r, null);
|
|
899
|
+
};
|
|
900
|
+
}, [r, u, n]), n) {
|
|
901
|
+
if (/* @__PURE__ */ c.isValidElement(t)) {
|
|
902
|
+
const f = {
|
|
903
|
+
ref: l
|
|
904
|
+
};
|
|
905
|
+
return /* @__PURE__ */ c.cloneElement(t, f);
|
|
906
|
+
}
|
|
907
|
+
return t;
|
|
908
|
+
}
|
|
909
|
+
return u && /* @__PURE__ */ Re.createPortal(t, u);
|
|
910
|
+
});
|
|
911
|
+
process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
912
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
913
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
914
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
915
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
916
|
+
/**
|
|
917
|
+
* The children to render into the `container`.
|
|
918
|
+
*/
|
|
919
|
+
children: s.node,
|
|
920
|
+
/**
|
|
921
|
+
* An HTML element or function that returns one.
|
|
922
|
+
* The `container` will have the portal children appended to it.
|
|
923
|
+
*
|
|
924
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
925
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
926
|
+
*
|
|
927
|
+
* By default, it uses the body of the top-level document object,
|
|
928
|
+
* so it's simply `document.body` most of the time.
|
|
929
|
+
*/
|
|
930
|
+
container: s.oneOfType([je, s.func]),
|
|
931
|
+
/**
|
|
932
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
|
933
|
+
* @default false
|
|
934
|
+
*/
|
|
935
|
+
disablePortal: s.bool
|
|
936
|
+
});
|
|
937
|
+
process.env.NODE_ENV !== "production" && (z.propTypes = ke(z.propTypes));
|
|
938
|
+
export {
|
|
939
|
+
X as G,
|
|
940
|
+
je as H,
|
|
941
|
+
z as P,
|
|
942
|
+
le as T,
|
|
943
|
+
Fe as _,
|
|
944
|
+
We as a,
|
|
945
|
+
Ge as b,
|
|
946
|
+
V as c,
|
|
947
|
+
ut as d,
|
|
948
|
+
oe as e,
|
|
949
|
+
it as f,
|
|
950
|
+
lt as g,
|
|
951
|
+
G as h,
|
|
952
|
+
ft as i,
|
|
953
|
+
rt as j,
|
|
954
|
+
Le as k,
|
|
955
|
+
ct as l,
|
|
956
|
+
ue as m,
|
|
957
|
+
ce as n,
|
|
958
|
+
at as o,
|
|
959
|
+
Z as p,
|
|
960
|
+
Ie as q,
|
|
961
|
+
st as r,
|
|
962
|
+
ke as s,
|
|
963
|
+
x as t,
|
|
964
|
+
Ae as u,
|
|
965
|
+
Ze as v,
|
|
966
|
+
ne as w,
|
|
967
|
+
Ve as x
|
|
968
|
+
};
|