everest-npm-features 0.0.61 → 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.
Files changed (229) hide show
  1. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  2. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  3. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  4. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  5. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  6. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  7. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  8. package/dist/{PlayArrow-Bjz9LxhD.js → PlayArrow-BVDyfxsQ.js} +1 -1
  9. package/dist/Portal-BeS9yJCZ.js +968 -0
  10. package/dist/{auth-Cwq6nfwY.js → auth-DTJdu6mq.js} +10 -10
  11. package/dist/components/RocketRamp/MinimalKyc/form.js +45 -50
  12. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  13. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +4 -6
  14. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -6
  15. package/dist/components/RocketRamp/Player/Buy/form.js +6 -15
  16. package/dist/components/RocketRamp/Player/Buy/index.js +3 -3
  17. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  18. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  19. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  20. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +4 -9
  21. package/dist/components/RocketRamp/Player/Sell/form.js +6 -15
  22. package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
  23. package/dist/components/RocketRamp/Player/SignIn/index.js +22 -24
  24. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +32 -34
  25. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +30 -32
  26. package/dist/components/RocketRamp/Player/SignUp/email.js +20 -22
  27. package/dist/components/RocketRamp/Player/SignUp/index.js +48 -51
  28. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +67 -73
  29. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  30. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  31. package/dist/components/RocketRamp/ResetPassword/index.js +22 -24
  32. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  33. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  34. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  35. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  36. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  37. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  38. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  39. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  40. package/dist/components/RocketRamp/Store/SignUp/index.js +52 -55
  41. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +47 -53
  42. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +32 -36
  43. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  44. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  45. package/dist/components/RocketRamp/Transactions/index.js +22 -23
  46. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  47. package/dist/components/Shared/FullKyc/edd.js +50 -52
  48. package/dist/components/Shared/FullKyc/index.js +11 -9
  49. package/dist/components/Shared/FullKyc/pep.js +35 -43
  50. package/dist/components/Shared/FullKyc/personalDetails.js +5 -5
  51. package/dist/components/Shared/FullKyc/userInfo.js +6 -11
  52. package/dist/components/Shared/HistoryItem/index.js +43 -48
  53. package/dist/components/Shared/Incode/index.js +31 -35
  54. package/dist/components/Shared/MinimalKyc/index.js +59 -64
  55. package/dist/components/Shared/Sumsub/index.js +74 -61
  56. package/dist/components/Shared/loader.js +4 -5
  57. package/dist/components/Shared/tooltip.js +2 -2
  58. package/dist/components/Shared/transition.js +4 -4
  59. package/dist/components/Wallet/Account/createIban.js +34 -37
  60. package/dist/components/Wallet/Account/eWallet.js +35 -39
  61. package/dist/components/Wallet/Account/iban.js +49 -53
  62. package/dist/components/Wallet/Account/ibanItem.js +68 -73
  63. package/dist/components/Wallet/Account/index.js +66 -73
  64. package/dist/components/Wallet/Account/sendIban.js +79 -88
  65. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -8
  66. package/dist/components/Wallet/Buy/form.js +6 -16
  67. package/dist/components/Wallet/Buy/index.js +2 -2
  68. package/dist/components/Wallet/Deposit/index.js +15 -17
  69. package/dist/components/Wallet/EnterpriseKyc/edd.js +31 -32
  70. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  71. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  72. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  73. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  74. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  75. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3590 -1481
  77. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  78. package/dist/components/Wallet/EnterpriseKyc/verify.js +21 -21
  79. package/dist/components/Wallet/History/index.js +22 -796
  80. package/dist/components/Wallet/Home/index.js +13 -14
  81. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +91 -96
  82. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  83. package/dist/components/Wallet/Portfolio/index.js +47 -50
  84. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  85. package/dist/components/Wallet/Profile/documents.js +125 -134
  86. package/dist/components/Wallet/Profile/index.js +37 -42
  87. package/dist/components/Wallet/Profile/storage.js +39 -47
  88. package/dist/components/Wallet/Receive/index.js +31 -36
  89. package/dist/components/Wallet/Sell/confirmTransaction.js +6 -8
  90. package/dist/components/Wallet/Sell/form.js +6 -16
  91. package/dist/components/Wallet/Sell/index.js +2 -2
  92. package/dist/components/Wallet/Send/index.js +98 -107
  93. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  94. package/dist/components/Wallet/Shared/Auth/otpForm.js +8 -355
  95. package/dist/components/Wallet/Shared/BankSelect/index.js +44 -48
  96. package/dist/components/Wallet/Shared/CardCorp/index.js +17 -18
  97. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  98. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  99. package/dist/components/Wallet/Shared/Container/index.js +15 -16
  100. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  101. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  102. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  103. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  104. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  105. package/dist/components/Wallet/Shared/addBank.js +40 -44
  106. package/dist/components/Wallet/Shared/appButton.js +11 -15
  107. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  108. package/dist/components/Wallet/Shared/button.js +7 -7
  109. package/dist/components/Wallet/Shared/connectPlaidBank.js +15 -16
  110. package/dist/components/Wallet/Shared/inputField.js +5 -5
  111. package/dist/components/Wallet/Shared/manualSend.js +7 -11
  112. package/dist/components/Wallet/Shared/noData.js +4 -5
  113. package/dist/components/Wallet/Shared/pin.js +25 -27
  114. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  115. package/dist/components/Wallet/Shared/step.js +12 -13
  116. package/dist/components/Wallet/Shared/timer.js +1 -1
  117. package/dist/components/Wallet/SignIn/index.js +16 -16
  118. package/dist/components/Wallet/SignUp/index.js +62 -152
  119. package/dist/components/Wallet/SignUp/terms.js +1 -1
  120. package/dist/components/Wallet/Stake/gems/index.js +51 -58
  121. package/dist/components/Wallet/Stake/id/index.js +73 -81
  122. package/dist/components/Wallet/Stake/index.js +64 -67
  123. package/dist/components/Wallet/Swap/form.js +8 -17
  124. package/dist/components/Wallet/Swap/index.js +2 -2
  125. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  126. package/dist/components/Wallet/Withdraw/bankSelect.js +40 -44
  127. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -6
  128. package/dist/components/Wallet/Withdraw/form.js +4 -15
  129. package/dist/components/Wallet/Withdraw/index.js +2 -2
  130. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  131. package/dist/hoc/withThemeProvider.js +5 -732
  132. package/dist/hooks/useDialog/index.js +22 -23
  133. package/dist/hooks/useRrDialog/index.js +43 -46
  134. package/dist/hooks/useSnackBar.js +24 -696
  135. package/dist/icons/buyIcon.js +1 -1
  136. package/dist/icons/canceledBuyIcon.js +1 -1
  137. package/dist/icons/canceledRedeemIcon.js +1 -1
  138. package/dist/icons/failedBuyIcon.js +2 -2
  139. package/dist/icons/failedRedeemIcon.js +2 -2
  140. package/dist/icons/pendingBuyIcon.js +1 -1
  141. package/dist/icons/pendingRedeemIcon.js +1 -1
  142. package/dist/icons/redeemIcon.js +1 -1
  143. package/dist/{index-BbVpeed7.js → index-3OQ4M69t.js} +87 -96
  144. package/dist/{index-BHG1bT4t.js → index-BBFbUCRZ.js} +123 -128
  145. package/dist/{index-Dh_ahu-u.js → index-C1WPCgkl.js} +129 -140
  146. package/dist/{index-eEBuSKOo.js → index-CDwzoHu7.js} +124 -134
  147. package/dist/{index-B9oucF3r.js → index-CK4kLRAw.js} +189 -198
  148. package/dist/{index-C7Td5yoW.js → index-CYX3j0V7.js} +172 -181
  149. package/dist/{index-D2JWUPz8.js → index-ILpK4BCB.js} +154 -163
  150. package/dist/main.js +7 -7
  151. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  152. package/dist/otpForm-fiNqeB5H.js +7378 -0
  153. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  154. package/dist/tooltip-BW0UyWw7.js +2129 -0
  155. package/package.json +6 -6
  156. package/dist/Alert-DzsbFW3-.js +0 -369
  157. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  158. package/dist/Avatar-1XklXr4O.js +0 -281
  159. package/dist/Backdrop-CioURPVG.js +0 -359
  160. package/dist/Box-B0YSYLco.js +0 -59
  161. package/dist/Button-Df4vgU24.js +0 -663
  162. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  163. package/dist/CardContent-D9wTdpu-.js +0 -141
  164. package/dist/CircularProgress-xZA3lvba.js +0 -252
  165. package/dist/Close-CxzDL3J-.js +0 -9
  166. package/dist/Container-urNKV7hm.js +0 -181
  167. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  168. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  169. package/dist/DialogContent-BMwlOnbW.js +0 -567
  170. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  171. package/dist/Divider-BShhMFf4.js +0 -297
  172. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  173. package/dist/FormControl-RtZDQMdA.js +0 -258
  174. package/dist/FormControlLabel-BliKW48y.js +0 -519
  175. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  176. package/dist/Grid-CFe3amXO.js +0 -410
  177. package/dist/Grow-CnGtel3u.js +0 -196
  178. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  179. package/dist/IconButton-DHm-hucF.js +0 -297
  180. package/dist/InputAdornment-DMiED3JH.js +0 -173
  181. package/dist/Link-DBA9Yifs.js +0 -266
  182. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  183. package/dist/Menu-DLYFFrEk.js +0 -1239
  184. package/dist/MenuItem-DUdYOJr4.js +0 -271
  185. package/dist/Modal-CFIQ_s3T.js +0 -743
  186. package/dist/Paper-Bgt2WXI6.js +0 -186
  187. package/dist/Popper-BBAoiZKn.js +0 -1409
  188. package/dist/Portal-BMAxiQwe.js +0 -69
  189. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  190. package/dist/Select-CB5yWmyn.js +0 -1886
  191. package/dist/Slide-B9Nw0LZ4.js +0 -235
  192. package/dist/Stack-k55YTxET.js +0 -172
  193. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  194. package/dist/TextField-DPpRUQe3.js +0 -978
  195. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  196. package/dist/Typography-pAaje37G.js +0 -260
  197. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  198. package/dist/clsx-BTaloaeC.js +0 -264
  199. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  200. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  201. package/dist/createTheme-CD19zQB7.js +0 -3825
  202. package/dist/debounce-46wSf_lW.js +0 -15
  203. package/dist/defaultTheme-C35y5cLB.js +0 -5
  204. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  205. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  206. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  207. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  208. package/dist/exactProp-C1Lmtwf_.js +0 -13
  209. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  210. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  211. package/dist/index-B0Z-Gjno.js +0 -22
  212. package/dist/index-DUcLo3x5.js +0 -43
  213. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  214. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  215. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  216. package/dist/memoTheme-yHaPezod.js +0 -15
  217. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  218. package/dist/radioButton-CzlYB0Lh.js +0 -402
  219. package/dist/refType-BsTH3qnM.js +0 -56
  220. package/dist/tooltip-3UvETWtS.js +0 -740
  221. package/dist/useControlled-nm4pBabJ.js +0 -31
  222. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  223. package/dist/useFormControl-CatNKXAi.js +0 -10
  224. package/dist/useId-CK6Kn3Tn.js +0 -21
  225. package/dist/useSlot-CW7SOYlh.js +0 -125
  226. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  227. package/dist/useTheme-BQJ5lp0i.js +0 -11
  228. package/dist/useTheme-S5_DHFsQ.js +0 -17
  229. package/dist/useThemeProps-DN9MjdTl.js +0 -29
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.61",
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",
@@ -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
- };