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.
Files changed (238) 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-BlkZJiHn.js → PlayArrow-BVDyfxsQ.js} +2 -2
  9. package/dist/Portal-BeS9yJCZ.js +968 -0
  10. package/dist/assets/index7.css +1 -1
  11. package/dist/assets/index8.css +1 -1
  12. package/dist/{auth-WhDJHZtr.js → auth-DTJdu6mq.js} +11 -11
  13. package/dist/{bank-BaOrdTcI.js → bank-C4pmTe--.js} +1 -1
  14. package/dist/components/RocketRamp/MinimalKyc/form.js +46 -52
  15. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  16. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
  17. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
  18. package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
  19. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  20. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  21. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  22. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  23. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
  24. package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
  25. package/dist/components/RocketRamp/Player/Sell/index.js +9 -9
  26. package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
  27. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
  28. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
  29. package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
  30. package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
  31. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
  32. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  33. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  34. package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
  35. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  36. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  37. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  38. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  39. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  40. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  41. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  42. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  43. package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
  44. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
  45. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
  46. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  47. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  48. package/dist/components/RocketRamp/Transactions/index.js +23 -24
  49. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  50. package/dist/components/Shared/FullKyc/edd.js +51 -54
  51. package/dist/components/Shared/FullKyc/index.js +13 -12
  52. package/dist/components/Shared/FullKyc/pep.js +35 -43
  53. package/dist/components/Shared/FullKyc/personalDetails.js +7 -8
  54. package/dist/components/Shared/FullKyc/userInfo.js +8 -14
  55. package/dist/components/Shared/HistoryItem/index.js +43 -48
  56. package/dist/components/Shared/Incode/index.js +31 -35
  57. package/dist/components/Shared/MinimalKyc/index.js +60 -65
  58. package/dist/components/Shared/Sumsub/index.js +75 -62
  59. package/dist/components/Shared/loader.js +4 -5
  60. package/dist/components/Shared/tooltip.js +2 -2
  61. package/dist/components/Shared/transition.js +4 -4
  62. package/dist/components/Wallet/Account/createIban.js +34 -38
  63. package/dist/components/Wallet/Account/eWallet.js +35 -39
  64. package/dist/components/Wallet/Account/iban.js +49 -53
  65. package/dist/components/Wallet/Account/ibanItem.js +70 -76
  66. package/dist/components/Wallet/Account/index.js +68 -76
  67. package/dist/components/Wallet/Account/sendIban.js +79 -88
  68. package/dist/components/Wallet/Buy/confirmTransaction.js +9 -12
  69. package/dist/components/Wallet/Buy/form.js +8 -18
  70. package/dist/components/Wallet/Buy/index.js +6 -6
  71. package/dist/components/Wallet/Deposit/index.js +16 -19
  72. package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -34
  73. package/dist/components/Wallet/EnterpriseKyc/index.js +76 -81
  74. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  75. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  76. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  77. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  78. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +37 -39
  79. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1483
  80. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  81. package/dist/components/Wallet/EnterpriseKyc/verify.js +23 -24
  82. package/dist/components/Wallet/History/index.js +23 -797
  83. package/dist/components/Wallet/Home/index.js +13 -14
  84. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +91 -97
  85. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  86. package/dist/components/Wallet/Portfolio/index.js +48 -52
  87. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  88. package/dist/components/Wallet/Profile/documents.js +125 -134
  89. package/dist/components/Wallet/Profile/index.js +38 -44
  90. package/dist/components/Wallet/Profile/storage.js +39 -47
  91. package/dist/components/Wallet/Receive/index.js +32 -37
  92. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -11
  93. package/dist/components/Wallet/Sell/form.js +8 -18
  94. package/dist/components/Wallet/Sell/index.js +6 -6
  95. package/dist/components/Wallet/Send/index.js +336 -324
  96. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  97. package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
  98. package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
  99. package/dist/components/Wallet/Shared/CardCorp/index.js +18 -20
  100. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  101. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  102. package/dist/components/Wallet/Shared/Container/index.js +15 -16
  103. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  104. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  105. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  106. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  107. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  108. package/dist/components/Wallet/Shared/addBank.js +41 -46
  109. package/dist/components/Wallet/Shared/appButton.js +11 -15
  110. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  111. package/dist/components/Wallet/Shared/button.js +7 -7
  112. package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
  113. package/dist/components/Wallet/Shared/inputField.js +5 -5
  114. package/dist/components/Wallet/Shared/manualSend.js +9 -14
  115. package/dist/components/Wallet/Shared/noData.js +4 -5
  116. package/dist/components/Wallet/Shared/pin.js +25 -27
  117. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  118. package/dist/components/Wallet/Shared/step.js +12 -13
  119. package/dist/components/Wallet/Shared/timer.js +1 -1
  120. package/dist/components/Wallet/SignIn/index.js +17 -17
  121. package/dist/components/Wallet/SignUp/index.js +63 -153
  122. package/dist/components/Wallet/SignUp/terms.js +1 -1
  123. package/dist/components/Wallet/Stake/gems/index.js +51 -58
  124. package/dist/components/Wallet/Stake/id/index.js +73 -81
  125. package/dist/components/Wallet/Stake/index.js +65 -69
  126. package/dist/components/Wallet/Swap/form.js +11 -21
  127. package/dist/components/Wallet/Swap/index.js +5 -5
  128. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  129. package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
  130. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
  131. package/dist/components/Wallet/Withdraw/form.js +6 -17
  132. package/dist/components/Wallet/Withdraw/index.js +5 -5
  133. package/dist/{constants-DREDnCMu.js → constants-DrmtdI1J.js} +7 -7
  134. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  135. package/dist/{cryptoAssets-DbyDgq4J.js → cryptoAssets-DyGDknvq.js} +1 -1
  136. package/dist/hoc/withThemeProvider.js +5 -732
  137. package/dist/hooks/useDialog/index.js +22 -23
  138. package/dist/hooks/useRrDialog/index.js +43 -46
  139. package/dist/hooks/useSnackBar.js +24 -696
  140. package/dist/icons/buyIcon.js +1 -1
  141. package/dist/icons/canceledBuyIcon.js +1 -1
  142. package/dist/icons/canceledRedeemIcon.js +1 -1
  143. package/dist/icons/failedBuyIcon.js +2 -2
  144. package/dist/icons/failedRedeemIcon.js +2 -2
  145. package/dist/icons/pendingBuyIcon.js +1 -1
  146. package/dist/icons/pendingRedeemIcon.js +1 -1
  147. package/dist/icons/redeemIcon.js +1 -1
  148. package/dist/{index-DYP5Ex_T.js → index-3OQ4M69t.js} +89 -99
  149. package/dist/{index-B3HnUBnB.js → index-BBFbUCRZ.js} +123 -129
  150. package/dist/{index-PoMNqntN.js → index-C1WPCgkl.js} +130 -141
  151. package/dist/{index-BXutc9ik.js → index-CDwzoHu7.js} +134 -145
  152. package/dist/{index-DV1dVcrY.js → index-CK4kLRAw.js} +172 -182
  153. package/dist/{index-DJ7xuxBy.js → index-CYX3j0V7.js} +175 -185
  154. package/dist/{index-CuPCW3XC.js → index-ILpK4BCB.js} +154 -163
  155. package/dist/{kyc-D4s_B9Cf.js → kyc-ksV3vBP_.js} +1 -1
  156. package/dist/main.js +7 -7
  157. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  158. package/dist/{order-DGBbo_Ox.js → order-DEp_Lmar.js} +1 -1
  159. package/dist/otpForm-fiNqeB5H.js +7378 -0
  160. package/dist/{stake-CdMc5H7D.js → stake-Ct7-_aWW.js} +1 -1
  161. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  162. package/dist/tooltip-BW0UyWw7.js +2129 -0
  163. package/dist/{wallet-DvfdQOju.js → wallet-CauUBXou.js} +1 -1
  164. package/package.json +6 -6
  165. package/dist/Alert-DzsbFW3-.js +0 -369
  166. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  167. package/dist/Avatar-1XklXr4O.js +0 -281
  168. package/dist/Backdrop-CioURPVG.js +0 -359
  169. package/dist/Box-B0YSYLco.js +0 -59
  170. package/dist/Button-Df4vgU24.js +0 -663
  171. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  172. package/dist/CardContent-D9wTdpu-.js +0 -141
  173. package/dist/CircularProgress-xZA3lvba.js +0 -252
  174. package/dist/Close-CxzDL3J-.js +0 -9
  175. package/dist/Container-urNKV7hm.js +0 -181
  176. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  177. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  178. package/dist/DialogContent-BMwlOnbW.js +0 -567
  179. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  180. package/dist/Divider-BShhMFf4.js +0 -297
  181. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  182. package/dist/FormControl-RtZDQMdA.js +0 -258
  183. package/dist/FormControlLabel-BliKW48y.js +0 -519
  184. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  185. package/dist/Grid-CFe3amXO.js +0 -410
  186. package/dist/Grow-CnGtel3u.js +0 -196
  187. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  188. package/dist/IconButton-DHm-hucF.js +0 -297
  189. package/dist/InputAdornment-DMiED3JH.js +0 -173
  190. package/dist/Link-DBA9Yifs.js +0 -266
  191. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  192. package/dist/Menu-DLYFFrEk.js +0 -1239
  193. package/dist/MenuItem-DUdYOJr4.js +0 -271
  194. package/dist/Modal-CFIQ_s3T.js +0 -743
  195. package/dist/Paper-Bgt2WXI6.js +0 -186
  196. package/dist/Popper-BBAoiZKn.js +0 -1409
  197. package/dist/Portal-BMAxiQwe.js +0 -69
  198. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  199. package/dist/Select-CB5yWmyn.js +0 -1886
  200. package/dist/Slide-B9Nw0LZ4.js +0 -235
  201. package/dist/Stack-k55YTxET.js +0 -172
  202. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  203. package/dist/TextField-DPpRUQe3.js +0 -978
  204. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  205. package/dist/Typography-pAaje37G.js +0 -260
  206. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  207. package/dist/clsx-BTaloaeC.js +0 -264
  208. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  209. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  210. package/dist/createTheme-CD19zQB7.js +0 -3825
  211. package/dist/debounce-46wSf_lW.js +0 -15
  212. package/dist/defaultTheme-C35y5cLB.js +0 -5
  213. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  214. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  215. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  216. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  217. package/dist/exactProp-C1Lmtwf_.js +0 -13
  218. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  219. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  220. package/dist/index-B0Z-Gjno.js +0 -22
  221. package/dist/index-DUcLo3x5.js +0 -43
  222. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  223. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  224. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  225. package/dist/memoTheme-yHaPezod.js +0 -15
  226. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  227. package/dist/radioButton-CzlYB0Lh.js +0 -402
  228. package/dist/refType-BsTH3qnM.js +0 -56
  229. package/dist/tooltip-3UvETWtS.js +0 -740
  230. package/dist/useControlled-nm4pBabJ.js +0 -31
  231. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  232. package/dist/useFormControl-CatNKXAi.js +0 -10
  233. package/dist/useId-CK6Kn3Tn.js +0 -21
  234. package/dist/useSlot-CW7SOYlh.js +0 -125
  235. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  236. package/dist/useTheme-BQJ5lp0i.js +0 -11
  237. package/dist/useTheme-S5_DHFsQ.js +0 -17
  238. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -1,663 +0,0 @@
1
- import * as b from "react";
2
- import { g as A, b as r, P as t, a as y } from "./createTheme-CD19zQB7.js";
3
- import { c as R } from "./clsx-BTaloaeC.js";
4
- import { s as f, r as q, u as J, c as K } from "./DefaultPropsProvider-oAu9El-f.js";
5
- import { m as Q } from "./memoTheme-yHaPezod.js";
6
- import { c as X } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
7
- import { g as Y } from "./generateUtilityClasses-BRiE4Guh.js";
8
- import { jsxs as Z, jsx as d } from "react/jsx-runtime";
9
- import { B as oo } from "./ButtonBase-DLF5c6wi.js";
10
- import { r as to } from "./DefaultPropsProvider-CeF7UYM9.js";
11
- import { u as ao } from "./useId-CK6Kn3Tn.js";
12
- import { C as no } from "./CircularProgress-xZA3lvba.js";
13
- function io(o) {
14
- return A("MuiButton", o);
15
- }
16
- const ro = Y("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge", "loading", "loadingWrapper", "loadingIconPlaceholder", "loadingIndicator", "loadingPositionCenter", "loadingPositionStart", "loadingPositionEnd"]), p = ro, W = /* @__PURE__ */ b.createContext({});
17
- process.env.NODE_ENV !== "production" && (W.displayName = "ButtonGroupContext");
18
- const T = /* @__PURE__ */ b.createContext(void 0);
19
- process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupButtonContext");
20
- const eo = (o) => {
21
- const {
22
- color: a,
23
- disableElevation: n,
24
- fullWidth: i,
25
- size: c,
26
- variant: u,
27
- loading: g,
28
- loadingPosition: z,
29
- classes: x
30
- } = o, S = {
31
- root: ["root", g && "loading", u, `${u}${r(a)}`, `size${r(c)}`, `${u}Size${r(c)}`, `color${r(a)}`, n && "disableElevation", i && "fullWidth", g && `loadingPosition${r(z)}`],
32
- startIcon: ["icon", "startIcon", `iconSize${r(c)}`],
33
- endIcon: ["icon", "endIcon", `iconSize${r(c)}`],
34
- loadingIndicator: ["loadingIndicator"],
35
- loadingWrapper: ["loadingWrapper"]
36
- }, C = K(S, io, x);
37
- return {
38
- ...x,
39
- // forward the focused, disabled, etc. classes to the ButtonBase
40
- ...C
41
- };
42
- }, L = [{
43
- props: {
44
- size: "small"
45
- },
46
- style: {
47
- "& > *:nth-of-type(1)": {
48
- fontSize: 18
49
- }
50
- }
51
- }, {
52
- props: {
53
- size: "medium"
54
- },
55
- style: {
56
- "& > *:nth-of-type(1)": {
57
- fontSize: 20
58
- }
59
- }
60
- }, {
61
- props: {
62
- size: "large"
63
- },
64
- style: {
65
- "& > *:nth-of-type(1)": {
66
- fontSize: 22
67
- }
68
- }
69
- }], so = f(oo, {
70
- shouldForwardProp: (o) => q(o) || o === "classes",
71
- name: "MuiButton",
72
- slot: "Root",
73
- overridesResolver: (o, a) => {
74
- const {
75
- ownerState: n
76
- } = o;
77
- return [a.root, a[n.variant], a[`${n.variant}${r(n.color)}`], a[`size${r(n.size)}`], a[`${n.variant}Size${r(n.size)}`], n.color === "inherit" && a.colorInherit, n.disableElevation && a.disableElevation, n.fullWidth && a.fullWidth, n.loading && a.loading];
78
- }
79
- })(Q(({
80
- theme: o
81
- }) => {
82
- const a = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], n = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
83
- return {
84
- ...o.typography.button,
85
- minWidth: 64,
86
- padding: "6px 16px",
87
- border: 0,
88
- borderRadius: (o.vars || o).shape.borderRadius,
89
- transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
90
- duration: o.transitions.duration.short
91
- }),
92
- "&:hover": {
93
- textDecoration: "none"
94
- },
95
- [`&.${p.disabled}`]: {
96
- color: (o.vars || o).palette.action.disabled
97
- },
98
- variants: [{
99
- props: {
100
- variant: "contained"
101
- },
102
- style: {
103
- color: "var(--variant-containedColor)",
104
- backgroundColor: "var(--variant-containedBg)",
105
- boxShadow: (o.vars || o).shadows[2],
106
- "&:hover": {
107
- boxShadow: (o.vars || o).shadows[4],
108
- // Reset on touch devices, it doesn't add specificity
109
- "@media (hover: none)": {
110
- boxShadow: (o.vars || o).shadows[2]
111
- }
112
- },
113
- "&:active": {
114
- boxShadow: (o.vars || o).shadows[8]
115
- },
116
- [`&.${p.focusVisible}`]: {
117
- boxShadow: (o.vars || o).shadows[6]
118
- },
119
- [`&.${p.disabled}`]: {
120
- color: (o.vars || o).palette.action.disabled,
121
- boxShadow: (o.vars || o).shadows[0],
122
- backgroundColor: (o.vars || o).palette.action.disabledBackground
123
- }
124
- }
125
- }, {
126
- props: {
127
- variant: "outlined"
128
- },
129
- style: {
130
- padding: "5px 15px",
131
- border: "1px solid currentColor",
132
- borderColor: "var(--variant-outlinedBorder, currentColor)",
133
- backgroundColor: "var(--variant-outlinedBg)",
134
- color: "var(--variant-outlinedColor)",
135
- [`&.${p.disabled}`]: {
136
- border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
137
- }
138
- }
139
- }, {
140
- props: {
141
- variant: "text"
142
- },
143
- style: {
144
- padding: "6px 8px",
145
- color: "var(--variant-textColor)",
146
- backgroundColor: "var(--variant-textBg)"
147
- }
148
- }, ...Object.entries(o.palette).filter(X()).map(([i]) => ({
149
- props: {
150
- color: i
151
- },
152
- style: {
153
- "--variant-textColor": (o.vars || o).palette[i].main,
154
- "--variant-outlinedColor": (o.vars || o).palette[i].main,
155
- "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / 0.5)` : y(o.palette[i].main, 0.5),
156
- "--variant-containedColor": (o.vars || o).palette[i].contrastText,
157
- "--variant-containedBg": (o.vars || o).palette[i].main,
158
- "@media (hover: hover)": {
159
- "&:hover": {
160
- "--variant-containedBg": (o.vars || o).palette[i].dark,
161
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette[i].main, o.palette.action.hoverOpacity),
162
- "--variant-outlinedBorder": (o.vars || o).palette[i].main,
163
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette[i].main, o.palette.action.hoverOpacity)
164
- }
165
- }
166
- }
167
- })), {
168
- props: {
169
- color: "inherit"
170
- },
171
- style: {
172
- color: "inherit",
173
- borderColor: "currentColor",
174
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
175
- "@media (hover: hover)": {
176
- "&:hover": {
177
- "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
178
- "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette.text.primary, o.palette.action.hoverOpacity),
179
- "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette.text.primary, o.palette.action.hoverOpacity)
180
- }
181
- }
182
- }
183
- }, {
184
- props: {
185
- size: "small",
186
- variant: "text"
187
- },
188
- style: {
189
- padding: "4px 5px",
190
- fontSize: o.typography.pxToRem(13)
191
- }
192
- }, {
193
- props: {
194
- size: "large",
195
- variant: "text"
196
- },
197
- style: {
198
- padding: "8px 11px",
199
- fontSize: o.typography.pxToRem(15)
200
- }
201
- }, {
202
- props: {
203
- size: "small",
204
- variant: "outlined"
205
- },
206
- style: {
207
- padding: "3px 9px",
208
- fontSize: o.typography.pxToRem(13)
209
- }
210
- }, {
211
- props: {
212
- size: "large",
213
- variant: "outlined"
214
- },
215
- style: {
216
- padding: "7px 21px",
217
- fontSize: o.typography.pxToRem(15)
218
- }
219
- }, {
220
- props: {
221
- size: "small",
222
- variant: "contained"
223
- },
224
- style: {
225
- padding: "4px 10px",
226
- fontSize: o.typography.pxToRem(13)
227
- }
228
- }, {
229
- props: {
230
- size: "large",
231
- variant: "contained"
232
- },
233
- style: {
234
- padding: "8px 22px",
235
- fontSize: o.typography.pxToRem(15)
236
- }
237
- }, {
238
- props: {
239
- disableElevation: !0
240
- },
241
- style: {
242
- boxShadow: "none",
243
- "&:hover": {
244
- boxShadow: "none"
245
- },
246
- [`&.${p.focusVisible}`]: {
247
- boxShadow: "none"
248
- },
249
- "&:active": {
250
- boxShadow: "none"
251
- },
252
- [`&.${p.disabled}`]: {
253
- boxShadow: "none"
254
- }
255
- }
256
- }, {
257
- props: {
258
- fullWidth: !0
259
- },
260
- style: {
261
- width: "100%"
262
- }
263
- }, {
264
- props: {
265
- loadingPosition: "center"
266
- },
267
- style: {
268
- transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
269
- duration: o.transitions.duration.short
270
- }),
271
- [`&.${p.loading}`]: {
272
- color: "transparent"
273
- }
274
- }
275
- }]
276
- };
277
- })), lo = f("span", {
278
- name: "MuiButton",
279
- slot: "StartIcon",
280
- overridesResolver: (o, a) => {
281
- const {
282
- ownerState: n
283
- } = o;
284
- return [a.startIcon, n.loading && a.startIconLoadingStart, a[`iconSize${r(n.size)}`]];
285
- }
286
- })(({
287
- theme: o
288
- }) => ({
289
- display: "inherit",
290
- marginRight: 8,
291
- marginLeft: -4,
292
- variants: [{
293
- props: {
294
- size: "small"
295
- },
296
- style: {
297
- marginLeft: -2
298
- }
299
- }, {
300
- props: {
301
- loadingPosition: "start",
302
- loading: !0
303
- },
304
- style: {
305
- transition: o.transitions.create(["opacity"], {
306
- duration: o.transitions.duration.short
307
- }),
308
- opacity: 0
309
- }
310
- }, {
311
- props: {
312
- loadingPosition: "start",
313
- loading: !0,
314
- fullWidth: !0
315
- },
316
- style: {
317
- marginRight: -8
318
- }
319
- }, ...L]
320
- })), po = f("span", {
321
- name: "MuiButton",
322
- slot: "EndIcon",
323
- overridesResolver: (o, a) => {
324
- const {
325
- ownerState: n
326
- } = o;
327
- return [a.endIcon, n.loading && a.endIconLoadingEnd, a[`iconSize${r(n.size)}`]];
328
- }
329
- })(({
330
- theme: o
331
- }) => ({
332
- display: "inherit",
333
- marginRight: -4,
334
- marginLeft: 8,
335
- variants: [{
336
- props: {
337
- size: "small"
338
- },
339
- style: {
340
- marginRight: -2
341
- }
342
- }, {
343
- props: {
344
- loadingPosition: "end",
345
- loading: !0
346
- },
347
- style: {
348
- transition: o.transitions.create(["opacity"], {
349
- duration: o.transitions.duration.short
350
- }),
351
- opacity: 0
352
- }
353
- }, {
354
- props: {
355
- loadingPosition: "end",
356
- loading: !0,
357
- fullWidth: !0
358
- },
359
- style: {
360
- marginLeft: -8
361
- }
362
- }, ...L]
363
- })), co = f("span", {
364
- name: "MuiButton",
365
- slot: "LoadingIndicator"
366
- })(({
367
- theme: o
368
- }) => ({
369
- display: "none",
370
- position: "absolute",
371
- visibility: "visible",
372
- variants: [{
373
- props: {
374
- loading: !0
375
- },
376
- style: {
377
- display: "flex"
378
- }
379
- }, {
380
- props: {
381
- loadingPosition: "start"
382
- },
383
- style: {
384
- left: 14
385
- }
386
- }, {
387
- props: {
388
- loadingPosition: "start",
389
- size: "small"
390
- },
391
- style: {
392
- left: 10
393
- }
394
- }, {
395
- props: {
396
- variant: "text",
397
- loadingPosition: "start"
398
- },
399
- style: {
400
- left: 6
401
- }
402
- }, {
403
- props: {
404
- loadingPosition: "center"
405
- },
406
- style: {
407
- left: "50%",
408
- transform: "translate(-50%)",
409
- color: (o.vars || o).palette.action.disabled
410
- }
411
- }, {
412
- props: {
413
- loadingPosition: "end"
414
- },
415
- style: {
416
- right: 14
417
- }
418
- }, {
419
- props: {
420
- loadingPosition: "end",
421
- size: "small"
422
- },
423
- style: {
424
- right: 10
425
- }
426
- }, {
427
- props: {
428
- variant: "text",
429
- loadingPosition: "end"
430
- },
431
- style: {
432
- right: 6
433
- }
434
- }, {
435
- props: {
436
- loadingPosition: "start",
437
- fullWidth: !0
438
- },
439
- style: {
440
- position: "relative",
441
- left: -10
442
- }
443
- }, {
444
- props: {
445
- loadingPosition: "end",
446
- fullWidth: !0
447
- },
448
- style: {
449
- position: "relative",
450
- right: -10
451
- }
452
- }]
453
- })), E = f("span", {
454
- name: "MuiButton",
455
- slot: "LoadingIconPlaceholder"
456
- })({
457
- display: "inline-block",
458
- width: "1em",
459
- height: "1em"
460
- }), uo = /* @__PURE__ */ b.forwardRef(function(a, n) {
461
- const i = b.useContext(W), c = b.useContext(T), u = to(i, a), g = J({
462
- props: u,
463
- name: "MuiButton"
464
- }), {
465
- children: z,
466
- color: x = "primary",
467
- component: S = "button",
468
- className: C,
469
- disabled: I = !1,
470
- disableElevation: M = !1,
471
- disableFocusRipple: m = !1,
472
- endIcon: B,
473
- focusVisibleClassName: k,
474
- fullWidth: V = !1,
475
- id: P,
476
- loading: s = null,
477
- loadingIndicator: j,
478
- loadingPosition: v = "center",
479
- size: D = "medium",
480
- startIcon: h,
481
- type: w,
482
- variant: F = "text",
483
- ...G
484
- } = g, $ = ao(P), O = j ?? /* @__PURE__ */ d(no, {
485
- "aria-labelledby": $,
486
- color: "inherit",
487
- size: 16
488
- }), l = {
489
- ...g,
490
- color: x,
491
- component: S,
492
- disabled: I,
493
- disableElevation: M,
494
- disableFocusRipple: m,
495
- fullWidth: V,
496
- loading: s,
497
- loadingIndicator: O,
498
- loadingPosition: v,
499
- size: D,
500
- type: w,
501
- variant: F
502
- }, e = eo(l), U = (h || s && v === "start") && /* @__PURE__ */ d(lo, {
503
- className: e.startIcon,
504
- ownerState: l,
505
- children: h || /* @__PURE__ */ d(E, {
506
- className: e.loadingIconPlaceholder,
507
- ownerState: l
508
- })
509
- }), _ = (B || s && v === "end") && /* @__PURE__ */ d(po, {
510
- className: e.endIcon,
511
- ownerState: l,
512
- children: B || /* @__PURE__ */ d(E, {
513
- className: e.loadingIconPlaceholder,
514
- ownerState: l
515
- })
516
- }), H = c || "", N = typeof s == "boolean" ? (
517
- // use plain HTML span to minimize the runtime overhead
518
- /* @__PURE__ */ d("span", {
519
- className: e.loadingWrapper,
520
- style: {
521
- display: "contents"
522
- },
523
- children: s && /* @__PURE__ */ d(co, {
524
- className: e.loadingIndicator,
525
- ownerState: l,
526
- children: O
527
- })
528
- })
529
- ) : null;
530
- return /* @__PURE__ */ Z(so, {
531
- ownerState: l,
532
- className: R(i.className, e.root, C, H),
533
- component: S,
534
- disabled: I || s,
535
- focusRipple: !m,
536
- focusVisibleClassName: R(e.focusVisible, k),
537
- ref: n,
538
- type: w,
539
- id: s ? $ : P,
540
- ...G,
541
- classes: e,
542
- children: [U, v !== "end" && N, z, v === "end" && N, _]
543
- });
544
- });
545
- process.env.NODE_ENV !== "production" && (uo.propTypes = {
546
- // ┌────────────────────────────── Warning ──────────────────────────────┐
547
- // │ These PropTypes are generated from the TypeScript type definitions. │
548
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
549
- // └─────────────────────────────────────────────────────────────────────┘
550
- /**
551
- * The content of the component.
552
- */
553
- children: t.node,
554
- /**
555
- * Override or extend the styles applied to the component.
556
- */
557
- classes: t.object,
558
- /**
559
- * @ignore
560
- */
561
- className: t.string,
562
- /**
563
- * The color of the component.
564
- * It supports both default and custom theme colors, which can be added as shown in the
565
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
566
- * @default 'primary'
567
- */
568
- color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
569
- /**
570
- * The component used for the root node.
571
- * Either a string to use a HTML element or a component.
572
- */
573
- component: t.elementType,
574
- /**
575
- * If `true`, the component is disabled.
576
- * @default false
577
- */
578
- disabled: t.bool,
579
- /**
580
- * If `true`, no elevation is used.
581
- * @default false
582
- */
583
- disableElevation: t.bool,
584
- /**
585
- * If `true`, the keyboard focus ripple is disabled.
586
- * @default false
587
- */
588
- disableFocusRipple: t.bool,
589
- /**
590
- * If `true`, the ripple effect is disabled.
591
- *
592
- * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
593
- * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
594
- * @default false
595
- */
596
- disableRipple: t.bool,
597
- /**
598
- * Element placed after the children.
599
- */
600
- endIcon: t.node,
601
- /**
602
- * @ignore
603
- */
604
- focusVisibleClassName: t.string,
605
- /**
606
- * If `true`, the button will take up the full width of its container.
607
- * @default false
608
- */
609
- fullWidth: t.bool,
610
- /**
611
- * The URL to link to when the button is clicked.
612
- * If defined, an `a` element will be used as the root node.
613
- */
614
- href: t.string,
615
- /**
616
- * @ignore
617
- */
618
- id: t.string,
619
- /**
620
- * If `true`, the loading indicator is visible and the button is disabled.
621
- * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
622
- * @default null
623
- */
624
- loading: t.bool,
625
- /**
626
- * Element placed before the children if the button is in loading state.
627
- * The node should contain an element with `role="progressbar"` with an accessible name.
628
- * By default, it renders a `CircularProgress` that is labeled by the button itself.
629
- * @default <CircularProgress color="inherit" size={16} />
630
- */
631
- loadingIndicator: t.node,
632
- /**
633
- * The loading indicator can be positioned on the start, end, or the center of the button.
634
- * @default 'center'
635
- */
636
- loadingPosition: t.oneOf(["center", "end", "start"]),
637
- /**
638
- * The size of the component.
639
- * `small` is equivalent to the dense button styling.
640
- * @default 'medium'
641
- */
642
- size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
643
- /**
644
- * Element placed before the children.
645
- */
646
- startIcon: t.node,
647
- /**
648
- * The system prop that allows defining system overrides as well as additional CSS styles.
649
- */
650
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
651
- /**
652
- * @ignore
653
- */
654
- type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
655
- /**
656
- * The variant to use.
657
- * @default 'text'
658
- */
659
- variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
660
- });
661
- export {
662
- uo as B
663
- };