everest-npm-features 0.0.60 → 0.0.62
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/{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-BlkZJiHn.js → PlayArrow-BVDyfxsQ.js} +2 -2
- package/dist/Portal-BeS9yJCZ.js +968 -0
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/{auth-WhDJHZtr.js → auth-DTJdu6mq.js} +11 -11
- package/dist/{bank-BaOrdTcI.js → bank-C4pmTe--.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +46 -52
- 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 +9 -9
- 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 -54
- package/dist/components/Shared/FullKyc/index.js +13 -12
- package/dist/components/Shared/FullKyc/pep.js +35 -43
- package/dist/components/Shared/FullKyc/personalDetails.js +7 -8
- package/dist/components/Shared/FullKyc/userInfo.js +8 -14
- 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.js +34 -38
- package/dist/components/Wallet/Account/eWallet.js +35 -39
- package/dist/components/Wallet/Account/iban.js +49 -53
- package/dist/components/Wallet/Account/ibanItem.js +70 -76
- package/dist/components/Wallet/Account/index.js +68 -76
- package/dist/components/Wallet/Account/sendIban.js +79 -88
- package/dist/components/Wallet/Buy/confirmTransaction.js +9 -12
- 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 -19
- package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -34
- package/dist/components/Wallet/EnterpriseKyc/index.js +76 -81
- 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 +37 -39
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1483
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +23 -24
- 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 +91 -97
- package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
- package/dist/components/Wallet/Portfolio/index.js +48 -52
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
- package/dist/components/Wallet/Profile/documents.js +125 -134
- package/dist/components/Wallet/Profile/index.js +38 -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 -11
- 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 +336 -324
- 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 -20
- 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.js +15 -16
- 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 -46
- 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 -14
- 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 +51 -58
- package/dist/components/Wallet/Stake/id/index.js +73 -81
- package/dist/components/Wallet/Stake/index.js +65 -69
- package/dist/components/Wallet/Swap/form.js +11 -21
- 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-DREDnCMu.js → constants-DrmtdI1J.js} +7 -7
- package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
- package/dist/{cryptoAssets-DbyDgq4J.js → cryptoAssets-DyGDknvq.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-DYP5Ex_T.js → index-3OQ4M69t.js} +89 -99
- package/dist/{index-B3HnUBnB.js → index-BBFbUCRZ.js} +123 -129
- package/dist/{index-PoMNqntN.js → index-C1WPCgkl.js} +130 -141
- package/dist/{index-BXutc9ik.js → index-CDwzoHu7.js} +134 -145
- package/dist/{index-DV1dVcrY.js → index-CK4kLRAw.js} +172 -182
- package/dist/{index-DJ7xuxBy.js → index-CYX3j0V7.js} +175 -185
- package/dist/{index-CuPCW3XC.js → index-ILpK4BCB.js} +154 -163
- package/dist/{kyc-D4s_B9Cf.js → kyc-ksV3vBP_.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/memoTheme-DnE8lj0t.js +3481 -0
- package/dist/{order-DGBbo_Ox.js → order-DEp_Lmar.js} +1 -1
- package/dist/otpForm-fiNqeB5H.js +7378 -0
- package/dist/{stake-CdMc5H7D.js → stake-Ct7-_aWW.js} +1 -1
- package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
- package/dist/tooltip-BW0UyWw7.js +2129 -0
- package/dist/{wallet-DvfdQOju.js → wallet-CauUBXou.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/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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as a, U as e, p as t, q as E, r as T, s as A, t as _, u as o, v as S, w as l } from "./constants-
|
|
1
|
+
import { F as a, U as e, p as t, q as E, r as T, s as A, t as _, u as o, v as S, w as l } from "./constants-DrmtdI1J.js";
|
|
2
2
|
const L = () => ({
|
|
3
3
|
type: e
|
|
4
4
|
}), d = () => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "everest-npm-features",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"description": "Everest frontend features library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"@types/react-dom": ">=18 <20",
|
|
23
23
|
"react": ">=18 <21",
|
|
24
24
|
"react-dom": ">=18 <21",
|
|
25
|
-
"react-redux": "^9.1.2"
|
|
25
|
+
"react-redux": "^9.1.2",
|
|
26
|
+
"@emotion/react": "^11.14.0",
|
|
27
|
+
"@emotion/styled": "^11.14.1",
|
|
28
|
+
"@mui/icons-material": "^7.2.0",
|
|
29
|
+
"@mui/material": "^7.2.0"
|
|
26
30
|
},
|
|
27
31
|
"dependencies": {
|
|
28
32
|
"@coinbase/wallet-sdk": "^4.1.0",
|
|
29
|
-
"@emotion/react": "^11.14.0",
|
|
30
|
-
"@emotion/styled": "^11.14.1",
|
|
31
33
|
"@metamask/sdk-react": "^0.29.2",
|
|
32
|
-
"@mui/icons-material": "^7.2.0",
|
|
33
|
-
"@mui/material": "^7.2.0",
|
|
34
34
|
"@sumsub/websdk-react": "^2.5.0",
|
|
35
35
|
"@walletconnect/ethereum-provider": "^2.17.1",
|
|
36
36
|
"everest-npm-api": "^0.0.43",
|
package/dist/Alert-DzsbFW3-.js
DELETED
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
import * as _ from "react";
|
|
2
|
-
import { g as q, b as y, t as b, u as M, P as o } from "./createTheme-CD19zQB7.js";
|
|
3
|
-
import { c as G } from "./clsx-BTaloaeC.js";
|
|
4
|
-
import { m as J } from "./memoTheme-yHaPezod.js";
|
|
5
|
-
import { u as i } from "./useSlot-CW7SOYlh.js";
|
|
6
|
-
import { c as m } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
|
-
import { g as K } from "./generateUtilityClasses-BRiE4Guh.js";
|
|
8
|
-
import { c as u } from "./createSvgIcon-Cuzqm90l.js";
|
|
9
|
-
import { jsx as n, jsxs as Q } from "react/jsx-runtime";
|
|
10
|
-
import { C as X } from "./Close-CxzDL3J-.js";
|
|
11
|
-
import { s as f, u as Y, c as oo } from "./DefaultPropsProvider-oAu9El-f.js";
|
|
12
|
-
import { P as eo } from "./Paper-Bgt2WXI6.js";
|
|
13
|
-
import { I as to } from "./IconButton-DHm-hucF.js";
|
|
14
|
-
function no(e) {
|
|
15
|
-
return q("MuiAlert", e);
|
|
16
|
-
}
|
|
17
|
-
const P = K("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), ro = u(/* @__PURE__ */ n("path", {
|
|
18
|
-
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
19
|
-
}), "SuccessOutlined"), so = u(/* @__PURE__ */ n("path", {
|
|
20
|
-
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
21
|
-
}), "ReportProblemOutlined"), lo = u(/* @__PURE__ */ n("path", {
|
|
22
|
-
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
23
|
-
}), "ErrorOutline"), ao = u(/* @__PURE__ */ n("path", {
|
|
24
|
-
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
25
|
-
}), "InfoOutlined"), io = (e) => {
|
|
26
|
-
const {
|
|
27
|
-
variant: r,
|
|
28
|
-
color: s,
|
|
29
|
-
severity: t,
|
|
30
|
-
classes: c
|
|
31
|
-
} = e, g = {
|
|
32
|
-
root: ["root", `color${y(s || t)}`, `${r}${y(s || t)}`, `${r}`],
|
|
33
|
-
icon: ["icon"],
|
|
34
|
-
message: ["message"],
|
|
35
|
-
action: ["action"]
|
|
36
|
-
};
|
|
37
|
-
return oo(g, no, c);
|
|
38
|
-
}, co = f(eo, {
|
|
39
|
-
name: "MuiAlert",
|
|
40
|
-
slot: "Root",
|
|
41
|
-
overridesResolver: (e, r) => {
|
|
42
|
-
const {
|
|
43
|
-
ownerState: s
|
|
44
|
-
} = e;
|
|
45
|
-
return [r.root, r[s.variant], r[`${s.variant}${y(s.color || s.severity)}`]];
|
|
46
|
-
}
|
|
47
|
-
})(J(({
|
|
48
|
-
theme: e
|
|
49
|
-
}) => {
|
|
50
|
-
const r = e.palette.mode === "light" ? b : M, s = e.palette.mode === "light" ? M : b;
|
|
51
|
-
return {
|
|
52
|
-
...e.typography.body2,
|
|
53
|
-
backgroundColor: "transparent",
|
|
54
|
-
display: "flex",
|
|
55
|
-
padding: "6px 16px",
|
|
56
|
-
variants: [...Object.entries(e.palette).filter(m(["light"])).map(([t]) => ({
|
|
57
|
-
props: {
|
|
58
|
-
colorSeverity: t,
|
|
59
|
-
variant: "standard"
|
|
60
|
-
},
|
|
61
|
-
style: {
|
|
62
|
-
color: e.vars ? e.vars.palette.Alert[`${t}Color`] : r(e.palette[t].light, 0.6),
|
|
63
|
-
backgroundColor: e.vars ? e.vars.palette.Alert[`${t}StandardBg`] : s(e.palette[t].light, 0.9),
|
|
64
|
-
[`& .${P.icon}`]: e.vars ? {
|
|
65
|
-
color: e.vars.palette.Alert[`${t}IconColor`]
|
|
66
|
-
} : {
|
|
67
|
-
color: e.palette[t].main
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
})), ...Object.entries(e.palette).filter(m(["light"])).map(([t]) => ({
|
|
71
|
-
props: {
|
|
72
|
-
colorSeverity: t,
|
|
73
|
-
variant: "outlined"
|
|
74
|
-
},
|
|
75
|
-
style: {
|
|
76
|
-
color: e.vars ? e.vars.palette.Alert[`${t}Color`] : r(e.palette[t].light, 0.6),
|
|
77
|
-
border: `1px solid ${(e.vars || e).palette[t].light}`,
|
|
78
|
-
[`& .${P.icon}`]: e.vars ? {
|
|
79
|
-
color: e.vars.palette.Alert[`${t}IconColor`]
|
|
80
|
-
} : {
|
|
81
|
-
color: e.palette[t].main
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
})), ...Object.entries(e.palette).filter(m(["dark"])).map(([t]) => ({
|
|
85
|
-
props: {
|
|
86
|
-
colorSeverity: t,
|
|
87
|
-
variant: "filled"
|
|
88
|
-
},
|
|
89
|
-
style: {
|
|
90
|
-
fontWeight: e.typography.fontWeightMedium,
|
|
91
|
-
...e.vars ? {
|
|
92
|
-
color: e.vars.palette.Alert[`${t}FilledColor`],
|
|
93
|
-
backgroundColor: e.vars.palette.Alert[`${t}FilledBg`]
|
|
94
|
-
} : {
|
|
95
|
-
backgroundColor: e.palette.mode === "dark" ? e.palette[t].dark : e.palette[t].main,
|
|
96
|
-
color: e.palette.getContrastText(e.palette[t].main)
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}))]
|
|
100
|
-
};
|
|
101
|
-
})), po = f("div", {
|
|
102
|
-
name: "MuiAlert",
|
|
103
|
-
slot: "Icon"
|
|
104
|
-
})({
|
|
105
|
-
marginRight: 12,
|
|
106
|
-
padding: "7px 0",
|
|
107
|
-
display: "flex",
|
|
108
|
-
fontSize: 22,
|
|
109
|
-
opacity: 0.9
|
|
110
|
-
}), uo = f("div", {
|
|
111
|
-
name: "MuiAlert",
|
|
112
|
-
slot: "Message"
|
|
113
|
-
})({
|
|
114
|
-
padding: "8px 0",
|
|
115
|
-
minWidth: 0,
|
|
116
|
-
overflow: "auto"
|
|
117
|
-
}), fo = f("div", {
|
|
118
|
-
name: "MuiAlert",
|
|
119
|
-
slot: "Action"
|
|
120
|
-
})({
|
|
121
|
-
display: "flex",
|
|
122
|
-
alignItems: "flex-start",
|
|
123
|
-
padding: "4px 0 0 16px",
|
|
124
|
-
marginLeft: "auto",
|
|
125
|
-
marginRight: -8
|
|
126
|
-
}), x = {
|
|
127
|
-
success: /* @__PURE__ */ n(ro, {
|
|
128
|
-
fontSize: "inherit"
|
|
129
|
-
}),
|
|
130
|
-
warning: /* @__PURE__ */ n(so, {
|
|
131
|
-
fontSize: "inherit"
|
|
132
|
-
}),
|
|
133
|
-
error: /* @__PURE__ */ n(lo, {
|
|
134
|
-
fontSize: "inherit"
|
|
135
|
-
}),
|
|
136
|
-
info: /* @__PURE__ */ n(ao, {
|
|
137
|
-
fontSize: "inherit"
|
|
138
|
-
})
|
|
139
|
-
}, go = /* @__PURE__ */ _.forwardRef(function(r, s) {
|
|
140
|
-
const t = Y({
|
|
141
|
-
props: r,
|
|
142
|
-
name: "MuiAlert"
|
|
143
|
-
}), {
|
|
144
|
-
action: c,
|
|
145
|
-
children: g,
|
|
146
|
-
className: h,
|
|
147
|
-
closeText: v = "Close",
|
|
148
|
-
color: C,
|
|
149
|
-
components: A = {},
|
|
150
|
-
componentsProps: j = {},
|
|
151
|
-
icon: S,
|
|
152
|
-
iconMapping: $ = x,
|
|
153
|
-
onClose: T,
|
|
154
|
-
role: z = "alert",
|
|
155
|
-
severity: p = "success",
|
|
156
|
-
slotProps: B = {},
|
|
157
|
-
slots: L = {},
|
|
158
|
-
variant: w = "standard",
|
|
159
|
-
...k
|
|
160
|
-
} = t, l = {
|
|
161
|
-
...t,
|
|
162
|
-
color: C,
|
|
163
|
-
severity: p,
|
|
164
|
-
variant: w,
|
|
165
|
-
colorSeverity: C || p
|
|
166
|
-
}, d = io(l), a = {
|
|
167
|
-
slots: {
|
|
168
|
-
closeButton: A.CloseButton,
|
|
169
|
-
closeIcon: A.CloseIcon,
|
|
170
|
-
...L
|
|
171
|
-
},
|
|
172
|
-
slotProps: {
|
|
173
|
-
...j,
|
|
174
|
-
...B
|
|
175
|
-
}
|
|
176
|
-
}, [R, E] = i("root", {
|
|
177
|
-
ref: s,
|
|
178
|
-
shouldForwardComponentProp: !0,
|
|
179
|
-
className: G(d.root, h),
|
|
180
|
-
elementType: co,
|
|
181
|
-
externalForwardedProps: {
|
|
182
|
-
...a,
|
|
183
|
-
...k
|
|
184
|
-
},
|
|
185
|
-
ownerState: l,
|
|
186
|
-
additionalProps: {
|
|
187
|
-
role: z,
|
|
188
|
-
elevation: 0
|
|
189
|
-
}
|
|
190
|
-
}), [N, W] = i("icon", {
|
|
191
|
-
className: d.icon,
|
|
192
|
-
elementType: po,
|
|
193
|
-
externalForwardedProps: a,
|
|
194
|
-
ownerState: l
|
|
195
|
-
}), [F, H] = i("message", {
|
|
196
|
-
className: d.message,
|
|
197
|
-
elementType: uo,
|
|
198
|
-
externalForwardedProps: a,
|
|
199
|
-
ownerState: l
|
|
200
|
-
}), [I, O] = i("action", {
|
|
201
|
-
className: d.action,
|
|
202
|
-
elementType: fo,
|
|
203
|
-
externalForwardedProps: a,
|
|
204
|
-
ownerState: l
|
|
205
|
-
}), [V, U] = i("closeButton", {
|
|
206
|
-
elementType: to,
|
|
207
|
-
externalForwardedProps: a,
|
|
208
|
-
ownerState: l
|
|
209
|
-
}), [D, Z] = i("closeIcon", {
|
|
210
|
-
elementType: X,
|
|
211
|
-
externalForwardedProps: a,
|
|
212
|
-
ownerState: l
|
|
213
|
-
});
|
|
214
|
-
return /* @__PURE__ */ Q(R, {
|
|
215
|
-
...E,
|
|
216
|
-
children: [S !== !1 ? /* @__PURE__ */ n(N, {
|
|
217
|
-
...W,
|
|
218
|
-
children: S || $[p] || x[p]
|
|
219
|
-
}) : null, /* @__PURE__ */ n(F, {
|
|
220
|
-
...H,
|
|
221
|
-
children: g
|
|
222
|
-
}), c != null ? /* @__PURE__ */ n(I, {
|
|
223
|
-
...O,
|
|
224
|
-
children: c
|
|
225
|
-
}) : null, c == null && T ? /* @__PURE__ */ n(I, {
|
|
226
|
-
...O,
|
|
227
|
-
children: /* @__PURE__ */ n(V, {
|
|
228
|
-
size: "small",
|
|
229
|
-
"aria-label": v,
|
|
230
|
-
title: v,
|
|
231
|
-
color: "inherit",
|
|
232
|
-
onClick: T,
|
|
233
|
-
...U,
|
|
234
|
-
children: /* @__PURE__ */ n(D, {
|
|
235
|
-
fontSize: "small",
|
|
236
|
-
...Z
|
|
237
|
-
})
|
|
238
|
-
})
|
|
239
|
-
}) : null]
|
|
240
|
-
});
|
|
241
|
-
});
|
|
242
|
-
process.env.NODE_ENV !== "production" && (go.propTypes = {
|
|
243
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
244
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
245
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
246
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
247
|
-
/**
|
|
248
|
-
* The action to display. It renders after the message, at the end of the alert.
|
|
249
|
-
*/
|
|
250
|
-
action: o.node,
|
|
251
|
-
/**
|
|
252
|
-
* The content of the component.
|
|
253
|
-
*/
|
|
254
|
-
children: o.node,
|
|
255
|
-
/**
|
|
256
|
-
* Override or extend the styles applied to the component.
|
|
257
|
-
*/
|
|
258
|
-
classes: o.object,
|
|
259
|
-
/**
|
|
260
|
-
* @ignore
|
|
261
|
-
*/
|
|
262
|
-
className: o.string,
|
|
263
|
-
/**
|
|
264
|
-
* Override the default label for the *close popup* icon button.
|
|
265
|
-
*
|
|
266
|
-
* For localization purposes, you can use the provided [translations](https://mui.com/material-ui/guides/localization/).
|
|
267
|
-
* @default 'Close'
|
|
268
|
-
*/
|
|
269
|
-
closeText: o.string,
|
|
270
|
-
/**
|
|
271
|
-
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
|
272
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
273
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
274
|
-
*/
|
|
275
|
-
color: o.oneOfType([o.oneOf(["error", "info", "success", "warning"]), o.string]),
|
|
276
|
-
/**
|
|
277
|
-
* The components used for each slot inside.
|
|
278
|
-
*
|
|
279
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
280
|
-
*
|
|
281
|
-
* @default {}
|
|
282
|
-
*/
|
|
283
|
-
components: o.shape({
|
|
284
|
-
CloseButton: o.elementType,
|
|
285
|
-
CloseIcon: o.elementType
|
|
286
|
-
}),
|
|
287
|
-
/**
|
|
288
|
-
* The extra props for the slot components.
|
|
289
|
-
* You can override the existing props or add new ones.
|
|
290
|
-
*
|
|
291
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
292
|
-
*
|
|
293
|
-
* @default {}
|
|
294
|
-
*/
|
|
295
|
-
componentsProps: o.shape({
|
|
296
|
-
closeButton: o.object,
|
|
297
|
-
closeIcon: o.object
|
|
298
|
-
}),
|
|
299
|
-
/**
|
|
300
|
-
* Override the icon displayed before the children.
|
|
301
|
-
* Unless provided, the icon is mapped to the value of the `severity` prop.
|
|
302
|
-
* Set to `false` to remove the `icon`.
|
|
303
|
-
*/
|
|
304
|
-
icon: o.node,
|
|
305
|
-
/**
|
|
306
|
-
* The component maps the `severity` prop to a range of different icons,
|
|
307
|
-
* for instance success to `<SuccessOutlined>`.
|
|
308
|
-
* If you wish to change this mapping, you can provide your own.
|
|
309
|
-
* Alternatively, you can use the `icon` prop to override the icon displayed.
|
|
310
|
-
*/
|
|
311
|
-
iconMapping: o.shape({
|
|
312
|
-
error: o.node,
|
|
313
|
-
info: o.node,
|
|
314
|
-
success: o.node,
|
|
315
|
-
warning: o.node
|
|
316
|
-
}),
|
|
317
|
-
/**
|
|
318
|
-
* Callback fired when the component requests to be closed.
|
|
319
|
-
* When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
|
|
320
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
321
|
-
*/
|
|
322
|
-
onClose: o.func,
|
|
323
|
-
/**
|
|
324
|
-
* The ARIA role attribute of the element.
|
|
325
|
-
* @default 'alert'
|
|
326
|
-
*/
|
|
327
|
-
role: o.string,
|
|
328
|
-
/**
|
|
329
|
-
* The severity of the alert. This defines the color and icon used.
|
|
330
|
-
* @default 'success'
|
|
331
|
-
*/
|
|
332
|
-
severity: o.oneOfType([o.oneOf(["error", "info", "success", "warning"]), o.string]),
|
|
333
|
-
/**
|
|
334
|
-
* The props used for each slot inside.
|
|
335
|
-
* @default {}
|
|
336
|
-
*/
|
|
337
|
-
slotProps: o.shape({
|
|
338
|
-
action: o.oneOfType([o.func, o.object]),
|
|
339
|
-
closeButton: o.oneOfType([o.func, o.object]),
|
|
340
|
-
closeIcon: o.oneOfType([o.func, o.object]),
|
|
341
|
-
icon: o.oneOfType([o.func, o.object]),
|
|
342
|
-
message: o.oneOfType([o.func, o.object]),
|
|
343
|
-
root: o.oneOfType([o.func, o.object])
|
|
344
|
-
}),
|
|
345
|
-
/**
|
|
346
|
-
* The components used for each slot inside.
|
|
347
|
-
* @default {}
|
|
348
|
-
*/
|
|
349
|
-
slots: o.shape({
|
|
350
|
-
action: o.elementType,
|
|
351
|
-
closeButton: o.elementType,
|
|
352
|
-
closeIcon: o.elementType,
|
|
353
|
-
icon: o.elementType,
|
|
354
|
-
message: o.elementType,
|
|
355
|
-
root: o.elementType
|
|
356
|
-
}),
|
|
357
|
-
/**
|
|
358
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
359
|
-
*/
|
|
360
|
-
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
361
|
-
/**
|
|
362
|
-
* The variant to use.
|
|
363
|
-
* @default 'standard'
|
|
364
|
-
*/
|
|
365
|
-
variant: o.oneOfType([o.oneOf(["filled", "outlined", "standard"]), o.string])
|
|
366
|
-
});
|
|
367
|
-
export {
|
|
368
|
-
go as A
|
|
369
|
-
};
|