everest-npm-features 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/dist/{Alert-C1UNQHPD.js → Alert-CbQZ8Nii.js} +142 -116
  2. package/dist/{ArrowBack-Clp4i3dA.js → ArrowBack-BoYSBb8u.js} +1 -1
  3. package/dist/{ArrowDropDown-CoJNyIet.js → ArrowDropDown-BC_iEASy.js} +1 -1
  4. package/dist/{ArrowRight-DXtbS-1g.js → ArrowRight-rYkfGJuF.js} +1 -1
  5. package/dist/{Backdrop-DD6Ysl5O.js → Backdrop-CJBRZv_z.js} +106 -107
  6. package/dist/{Box-Be0E_-eR.js → Box-B12x52NC.js} +17 -16
  7. package/dist/Button-C57IMamW.js +660 -0
  8. package/dist/{ButtonBase-CE33gcZ6.js → ButtonBase-DugIO1pR.js} +194 -194
  9. package/dist/{Cancel-DEk2meuc.js → Cancel-D1JNu4Hj.js} +1 -1
  10. package/dist/{CardContent-B5tGyfc5.js → CardContent-CbObWW6t.js} +44 -45
  11. package/dist/{CheckCircle-BIckgNlV.js → CheckCircle-CyxKX1TY.js} +1 -1
  12. package/dist/{CircularProgress-fePUtoaj.js → CircularProgress-t8uGhLMo.js} +17 -17
  13. package/dist/{Close-D20PIPiF.js → Close-VV7zb3cu.js} +1 -1
  14. package/dist/{Close-Bj6AaxRi.js → Close-jnEgOCZv.js} +1 -1
  15. package/dist/{Container-CTfl6Vy4.js → Container-B3Af6Sc3.js} +20 -20
  16. package/dist/{ContentCopy-DzhD9ue3.js → ContentCopy-Ufwoeeov.js} +1 -1
  17. package/dist/DefaultPropsProvider-B2njZVNv.js +242 -0
  18. package/dist/DefaultPropsProvider-CZh8M2jM.js +351 -0
  19. package/dist/{Delete-BqqmGzYe.js → Delete-TCARcVtU.js} +1 -1
  20. package/dist/{DialogContent-D8jGp88c.js → DialogContent-DzidtXui.js} +202 -140
  21. package/dist/{DialogTitle-CxbjAJOw.js → DialogTitle-Bg61Hr7M.js} +23 -23
  22. package/dist/{Divider-D3PIEE97.js → Divider-Dy5hKfey.js} +31 -30
  23. package/dist/{ErrorOutline-CnwdlXPx.js → ErrorOutline-CI_ys3Zo.js} +1 -1
  24. package/dist/{FileDownload-BX69Jvdx.js → FileDownload-BcYF17B0.js} +1 -1
  25. package/dist/{FilledInput-n9W_V8GV.js → FilledInput-DrGeWgue.js} +352 -335
  26. package/dist/{FormControl-Cc-02KHW.js → FormControl-DeeQCuu5.js} +98 -81
  27. package/dist/{FormControlLabel-BEN9P8rJ.js → FormControlLabel-DVnrJkC8.js} +194 -165
  28. package/dist/GlobalStyles-DhHHc9O0.js +59 -0
  29. package/dist/Grid-BXyV_lM8.js +410 -0
  30. package/dist/Grow-B2p7O_1C.js +196 -0
  31. package/dist/{ownerDocument-C0GI-r2b.js → HTMLElementType-BrQSV2FE.js} +6 -6
  32. package/dist/IconButton-eWRhV6Q9.js +295 -0
  33. package/dist/{Info-83BXSu73.js → Info-D2UkGxyK.js} +1 -1
  34. package/dist/{InputAdornment-Ck_-Z38v.js → InputAdornment-BKuUMfPj.js} +14 -12
  35. package/dist/{Link-BqusVoz5.js → Link-Cm4BkRHO.js} +50 -49
  36. package/dist/{ListItemIcon-DIz-ZmJ0.js → ListItemIcon-GKRFb1Gr.js} +14 -13
  37. package/dist/{MenuItem-BkJ_C9Xs.js → MenuItem-CeCt0bfa.js} +46 -39
  38. package/dist/{Modal-CQcBtr07.js → Modal-csf3Y8d2.js} +265 -269
  39. package/dist/{Paper-B5pcGZbI.js → Paper-CnStNE24.js} +39 -38
  40. package/dist/{PlayArrow-1Y66tCVx.js → PlayArrow-DRCGjsrx.js} +1 -1
  41. package/dist/{Popper-CYsd-3n5.js → Popper-pPBEFLi4.js} +15 -15
  42. package/dist/{Portal-Bw0-5YJ9.js → Portal-CLa9CbMv.js} +36 -37
  43. package/dist/{RadioGroup-DtQqYrwU.js → RadioGroup-KiyYjXaT.js} +29 -28
  44. package/dist/{Select-DpKw-a6h.js → Select-Chubcks_.js} +1248 -933
  45. package/dist/{Slide-CdNJY-CT.js → Slide-DHG0r2gy.js} +68 -66
  46. package/dist/{Stack-C4POCZZb.js → Stack-CcR5RCg8.js} +41 -43
  47. package/dist/SwitchBase-CHO5ZceN.js +317 -0
  48. package/dist/{TextField-Cm9apaOp.js → TextField-q_SeLeNd.js} +144 -135
  49. package/dist/TransitionGroupContext-CYRQkQ6k.js +49 -0
  50. package/dist/{Typography-Ds4fpvK8.js → Typography-DBlMiOti.js} +39 -38
  51. package/dist/{auth-CR0412E5.js → auth-Bf9zHZ-x.js} +1 -1
  52. package/dist/{bank-iFS1RXp-.js → bank-BC4YNBRb.js} +3 -3
  53. package/dist/components/RocketRamp/MinimalKyc/form.js +9 -9
  54. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  55. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
  56. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
  57. package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
  58. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  59. package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
  60. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  61. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
  62. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
  63. package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
  64. package/dist/components/RocketRamp/Player/Sell/index.js +7 -7
  65. package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
  66. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
  67. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  68. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  69. package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
  70. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
  71. package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
  72. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
  73. package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
  74. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  75. package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
  76. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  77. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  78. package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
  79. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  80. package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
  81. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
  82. package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
  83. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  84. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
  85. package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
  86. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
  87. package/dist/components/RocketRamp/Transactions/index.js +4 -4
  88. package/dist/components/Shared/FullKyc/index.js +4 -4
  89. package/dist/components/Shared/FullKyc/pep.js +9 -9
  90. package/dist/components/Shared/FullKyc/personalDetails.js +7 -7
  91. package/dist/components/Shared/FullKyc/userInfo.js +11 -11
  92. package/dist/components/Shared/HistoryItem/index.js +7 -7
  93. package/dist/components/Shared/Incode/index.js +5 -5
  94. package/dist/components/Shared/MinimalKyc/index.js +8 -8
  95. package/dist/components/Shared/loader.js +2 -2
  96. package/dist/components/Shared/tooltip.js +2 -2
  97. package/dist/components/Shared/transition.js +1 -1
  98. package/dist/components/Wallet/Account/createIban.d.ts +1 -0
  99. package/dist/components/Wallet/Account/createIban.js +36 -35
  100. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  101. package/dist/components/Wallet/Account/iban.js +16 -16
  102. package/dist/components/Wallet/Account/index.d.ts +1 -0
  103. package/dist/components/Wallet/Account/index.js +76 -70
  104. package/dist/components/Wallet/Account/sendIban.js +61 -61
  105. package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
  106. package/dist/components/Wallet/Buy/form.d.ts +2 -2
  107. package/dist/components/Wallet/Buy/form.js +17 -17
  108. package/dist/components/Wallet/Buy/index.js +6 -6
  109. package/dist/components/Wallet/Deposit/index.js +7 -7
  110. package/dist/components/Wallet/EnterpriseKyc/edd.js +7 -7
  111. package/dist/components/Wallet/EnterpriseKyc/index.js +26 -24
  112. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  113. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  114. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
  115. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  116. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +45 -44
  117. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3626 -100
  118. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  119. package/dist/components/Wallet/EnterpriseKyc/types.d.ts +0 -1
  120. package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
  121. package/dist/components/Wallet/History/index.js +61 -62
  122. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
  123. package/dist/components/Wallet/Portfolio/index.js +95 -95
  124. package/dist/components/Wallet/Portfolio/tokenRow.js +6 -6
  125. package/dist/components/Wallet/Profile/documents.js +17 -17
  126. package/dist/components/Wallet/Profile/index.js +225 -206
  127. package/dist/components/Wallet/Receive/index.js +9 -9
  128. package/dist/components/Wallet/Sell/confirmTransaction.js +7 -7
  129. package/dist/components/Wallet/Sell/form.js +17 -17
  130. package/dist/components/Wallet/Sell/index.js +6 -6
  131. package/dist/components/Wallet/Send/index.js +14 -14
  132. package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
  133. package/dist/components/Wallet/Shared/Auth/otpForm.js +217 -10451
  134. package/dist/components/Wallet/Shared/CardPayment/index.js +57 -55
  135. package/dist/components/Wallet/Shared/ConnectWallet/index.js +9 -9
  136. package/dist/components/Wallet/Shared/Container/index.js +3 -3
  137. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  138. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +9 -10
  139. package/dist/components/Wallet/Shared/Order/types.d.ts +23 -2
  140. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  141. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  142. package/dist/components/Wallet/Shared/addBank.js +11 -11
  143. package/dist/components/Wallet/Shared/appButton.js +5 -5
  144. package/dist/components/Wallet/Shared/backBtn.js +8 -8
  145. package/dist/components/Wallet/Shared/button.js +1 -1
  146. package/dist/components/Wallet/Shared/connectPlaidBank.js +5 -5
  147. package/dist/components/Wallet/Shared/inputField.js +1 -1
  148. package/dist/components/Wallet/Shared/noData.js +2 -2
  149. package/dist/components/Wallet/Shared/pin.js +3 -3
  150. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  151. package/dist/components/Wallet/Shared/step.js +2 -2
  152. package/dist/components/Wallet/SignIn/index.js +2 -2
  153. package/dist/components/Wallet/SignUp/index.js +2 -2
  154. package/dist/components/Wallet/SignUp/terms.js +4 -4
  155. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  156. package/dist/components/Wallet/Stake/id/index.js +12 -12
  157. package/dist/components/Wallet/Stake/index.js +10 -10
  158. package/dist/components/Wallet/Swap/index.js +138 -150
  159. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  160. package/dist/components/Wallet/Withdraw/bankSelect.js +10 -10
  161. package/dist/components/Wallet/Withdraw/confirmTransaction.js +7 -7
  162. package/dist/components/Wallet/Withdraw/form.d.ts +2 -2
  163. package/dist/components/Wallet/Withdraw/form.js +16 -16
  164. package/dist/components/Wallet/Withdraw/index.js +5 -5
  165. package/dist/{constants-BJByDTQY.js → constants-CsMPRK0U.js} +285 -284
  166. package/dist/{createSvgIcon-C0wzKL72.js → createSvgIcon-CH41ZVFw.js} +58 -57
  167. package/dist/createTheme-DmGCMO09.js +3825 -0
  168. package/dist/{cryptoAssets-BcVSdM1C.js → cryptoAssets-CzNDY1j6.js} +1 -1
  169. package/dist/defaultTheme-9fAph5zo.js +5 -0
  170. package/dist/{dividerClasses-Cb_Is0-O.js → dividerClasses-DnbM--4s.js} +2 -2
  171. package/dist/{documents-HjBKq9qA.js → documents-CEeV8SyW.js} +16 -16
  172. package/dist/{Transition-CYSgg85A.js → elementAcceptingRef-BbsmdE_3.js} +109 -66
  173. package/dist/{elementTypeAcceptingRef-Bc1kRXA9.js → elementTypeAcceptingRef-CdmXUhJ8.js} +1 -1
  174. package/dist/{emotion-react.browser.esm-BjxI_t8k.js → emotion-react.browser.esm-C2mxoK1z.js} +42 -42
  175. package/dist/{extendSxProp-a8ZTL0ZI.js → extendSxProp-Bwha5fon.js} +1 -1
  176. package/dist/{fiatAssets-C_F8qNzr.js → fiatAssets-DVHfFafS.js} +1 -1
  177. package/dist/hoc/withThemeProvider.js +518 -417
  178. package/dist/hooks/useDialog/index.js +4 -4
  179. package/dist/hooks/useRrDialog/index.js +4 -4
  180. package/dist/hooks/useSnackBar.js +363 -288
  181. package/dist/{iban-Dh7qBGGc.js → iban-DRT7i0vb.js} +74 -85
  182. package/dist/icons/buyIcon.js +1 -1
  183. package/dist/icons/canceledBuyIcon.js +1 -1
  184. package/dist/icons/canceledRedeemIcon.js +1 -1
  185. package/dist/icons/failedBuyIcon.js +1 -1
  186. package/dist/icons/failedRedeemIcon.js +1 -1
  187. package/dist/icons/pendingBuyIcon.js +1 -1
  188. package/dist/icons/pendingRedeemIcon.js +1 -1
  189. package/dist/icons/redeemIcon.js +1 -1
  190. package/dist/index-BB3__zW3.js +644 -0
  191. package/dist/index-C86AoaoB.js +43 -0
  192. package/dist/{index-BFIhKqqi.js → index-C9uGghB8.js} +141 -133
  193. package/dist/{index-DkMQ44xy.js → index-DZ__IpVI.js} +19 -19
  194. package/dist/{index-B2OIoTNN.js → index-DxX5Mo0o.js} +18 -18
  195. package/dist/{index-CQe8cwpc.js → index-VE9lYjq3.js} +22 -22
  196. package/dist/index-eEYiDlpX.js +723 -0
  197. package/dist/{index-CtkDfW5M.js → index-x9CniyQB.js} +1 -1
  198. package/dist/{kyc-DJpiKj5d.js → kyc-BweeW6k9.js} +1 -1
  199. package/dist/main.js +6 -6
  200. package/dist/{order-DhUA-ZNX.js → order-DmTHC7ZG.js} +7 -7
  201. package/dist/{ownerWindow-iFlVse9X.js → ownerWindow-CRgpWY6I.js} +1 -1
  202. package/dist/pep-C5Ge-kU4.js +2691 -0
  203. package/dist/{radioButton-CdYLf2fc.js → radioButton-Bgy7Kxxo.js} +172 -121
  204. package/dist/refType-CaiGhRso.js +56 -0
  205. package/dist/{stake-DWRuAE1u.js → stake-B150utJI.js} +1 -1
  206. package/dist/tokenRow-BR8f4g7G.js +198 -0
  207. package/dist/{tooltip-CwdohO6q.js → tooltip-DGtrVEzU.js} +258 -235
  208. package/dist/useControlled-nm4pBabJ.js +31 -0
  209. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  210. package/dist/useSlot-DtSnboW7.js +125 -0
  211. package/dist/useSlotProps-D62tWbb1.js +25 -0
  212. package/dist/useTheme-Bfw5Gt1b.js +17 -0
  213. package/dist/{useTheme-BzIjfC6u.js → useTheme-XTDzJ69d.js} +3 -3
  214. package/dist/useThemeProps-lRuJRcRX.js +29 -0
  215. package/dist/util/constants.d.ts +1 -3
  216. package/dist/util/constants.js +27 -29
  217. package/dist/wallet-DDW5KCHp.js +39 -0
  218. package/package.json +7 -6
  219. package/dist/Button-DCBtFwk3.js +0 -452
  220. package/dist/DefaultPropsProvider-5cxFAZuq.js +0 -647
  221. package/dist/DefaultPropsProvider-DOLtk4kZ.js +0 -88
  222. package/dist/GlobalStyles-O5U8h5ZQ.js +0 -23
  223. package/dist/Grid-BaaKMDwM.js +0 -501
  224. package/dist/Grid2-DX2sucnU.js +0 -374
  225. package/dist/Grow-CC3Va50c.js +0 -216
  226. package/dist/IconButton-8B2ygvr4.js +0 -238
  227. package/dist/SwitchBase-B9rcpVZ0.js +0 -261
  228. package/dist/TransitionGroupContext-BzyZRJGo.js +0 -37
  229. package/dist/createTheme-D_EHVLXp.js +0 -3662
  230. package/dist/defaultTheme-CGLnLLk_.js +0 -5
  231. package/dist/index-BEH1PkNC.js +0 -572
  232. package/dist/index-DSZxScyY.js +0 -704
  233. package/dist/index-DlZLKtdr.js +0 -72
  234. package/dist/pep-BsWvrgyM.js +0 -2600
  235. package/dist/resolveComponentProps-CPnCrKvI.js +0 -80
  236. package/dist/styled-CyBKg0N-.js +0 -5
  237. package/dist/tokenRow-QlGBYRKR.js +0 -206
  238. package/dist/useControlled-BYdyS7Pn.js +0 -31
  239. package/dist/useSlot-BdP6R4tz.js +0 -50
  240. package/dist/useTheme-BFI_g9FY.js +0 -9
  241. package/dist/useThemeProps-BOrAzOS4.js +0 -40
  242. package/dist/useThemeWithoutDefault-BWt80cCE.js +0 -12
  243. package/dist/useTimeout-_ag1gI7y.js +0 -56
  244. package/dist/utils-B-vKE_Dv.js +0 -50
  245. package/dist/utils-asicApOI.js +0 -21
  246. package/dist/wallet-z7NHqtCj.js +0 -35
@@ -0,0 +1,660 @@
1
+ import * as b from "react";
2
+ import { g as A, b as r, P as t, a as y } from "./createTheme-DmGCMO09.js";
3
+ import { r as q, c as R } from "./DefaultPropsProvider-CZh8M2jM.js";
4
+ import { g as J, s as f, r as K, m as Q, u as X, c as Y } from "./DefaultPropsProvider-B2njZVNv.js";
5
+ import { c as Z } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
6
+ import { jsxs as oo, jsx as d } from "react/jsx-runtime";
7
+ import { B as to } from "./ButtonBase-DugIO1pR.js";
8
+ import { u as ao } from "./useId-CK6Kn3Tn.js";
9
+ import { C as no } from "./CircularProgress-t8uGhLMo.js";
10
+ function io(o) {
11
+ return A("MuiButton", o);
12
+ }
13
+ const ro = J("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({});
14
+ process.env.NODE_ENV !== "production" && (W.displayName = "ButtonGroupContext");
15
+ const T = /* @__PURE__ */ b.createContext(void 0);
16
+ process.env.NODE_ENV !== "production" && (T.displayName = "ButtonGroupButtonContext");
17
+ const eo = (o) => {
18
+ const {
19
+ color: a,
20
+ disableElevation: n,
21
+ fullWidth: i,
22
+ size: c,
23
+ variant: u,
24
+ loading: g,
25
+ loadingPosition: z,
26
+ classes: x
27
+ } = o, S = {
28
+ 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)}`],
29
+ startIcon: ["icon", "startIcon", `iconSize${r(c)}`],
30
+ endIcon: ["icon", "endIcon", `iconSize${r(c)}`],
31
+ loadingIndicator: ["loadingIndicator"],
32
+ loadingWrapper: ["loadingWrapper"]
33
+ }, C = Y(S, io, x);
34
+ return {
35
+ ...x,
36
+ // forward the focused, disabled, etc. classes to the ButtonBase
37
+ ...C
38
+ };
39
+ }, L = [{
40
+ props: {
41
+ size: "small"
42
+ },
43
+ style: {
44
+ "& > *:nth-of-type(1)": {
45
+ fontSize: 18
46
+ }
47
+ }
48
+ }, {
49
+ props: {
50
+ size: "medium"
51
+ },
52
+ style: {
53
+ "& > *:nth-of-type(1)": {
54
+ fontSize: 20
55
+ }
56
+ }
57
+ }, {
58
+ props: {
59
+ size: "large"
60
+ },
61
+ style: {
62
+ "& > *:nth-of-type(1)": {
63
+ fontSize: 22
64
+ }
65
+ }
66
+ }], so = f(to, {
67
+ shouldForwardProp: (o) => K(o) || o === "classes",
68
+ name: "MuiButton",
69
+ slot: "Root",
70
+ overridesResolver: (o, a) => {
71
+ const {
72
+ ownerState: n
73
+ } = o;
74
+ 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];
75
+ }
76
+ })(Q(({
77
+ theme: o
78
+ }) => {
79
+ 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];
80
+ return {
81
+ ...o.typography.button,
82
+ minWidth: 64,
83
+ padding: "6px 16px",
84
+ border: 0,
85
+ borderRadius: (o.vars || o).shape.borderRadius,
86
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
87
+ duration: o.transitions.duration.short
88
+ }),
89
+ "&:hover": {
90
+ textDecoration: "none"
91
+ },
92
+ [`&.${p.disabled}`]: {
93
+ color: (o.vars || o).palette.action.disabled
94
+ },
95
+ variants: [{
96
+ props: {
97
+ variant: "contained"
98
+ },
99
+ style: {
100
+ color: "var(--variant-containedColor)",
101
+ backgroundColor: "var(--variant-containedBg)",
102
+ boxShadow: (o.vars || o).shadows[2],
103
+ "&:hover": {
104
+ boxShadow: (o.vars || o).shadows[4],
105
+ // Reset on touch devices, it doesn't add specificity
106
+ "@media (hover: none)": {
107
+ boxShadow: (o.vars || o).shadows[2]
108
+ }
109
+ },
110
+ "&:active": {
111
+ boxShadow: (o.vars || o).shadows[8]
112
+ },
113
+ [`&.${p.focusVisible}`]: {
114
+ boxShadow: (o.vars || o).shadows[6]
115
+ },
116
+ [`&.${p.disabled}`]: {
117
+ color: (o.vars || o).palette.action.disabled,
118
+ boxShadow: (o.vars || o).shadows[0],
119
+ backgroundColor: (o.vars || o).palette.action.disabledBackground
120
+ }
121
+ }
122
+ }, {
123
+ props: {
124
+ variant: "outlined"
125
+ },
126
+ style: {
127
+ padding: "5px 15px",
128
+ border: "1px solid currentColor",
129
+ borderColor: "var(--variant-outlinedBorder, currentColor)",
130
+ backgroundColor: "var(--variant-outlinedBg)",
131
+ color: "var(--variant-outlinedColor)",
132
+ [`&.${p.disabled}`]: {
133
+ border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
134
+ }
135
+ }
136
+ }, {
137
+ props: {
138
+ variant: "text"
139
+ },
140
+ style: {
141
+ padding: "6px 8px",
142
+ color: "var(--variant-textColor)",
143
+ backgroundColor: "var(--variant-textBg)"
144
+ }
145
+ }, ...Object.entries(o.palette).filter(Z()).map(([i]) => ({
146
+ props: {
147
+ color: i
148
+ },
149
+ style: {
150
+ "--variant-textColor": (o.vars || o).palette[i].main,
151
+ "--variant-outlinedColor": (o.vars || o).palette[i].main,
152
+ "--variant-outlinedBorder": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / 0.5)` : y(o.palette[i].main, 0.5),
153
+ "--variant-containedColor": (o.vars || o).palette[i].contrastText,
154
+ "--variant-containedBg": (o.vars || o).palette[i].main,
155
+ "@media (hover: hover)": {
156
+ "&:hover": {
157
+ "--variant-containedBg": (o.vars || o).palette[i].dark,
158
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette[i].main, o.palette.action.hoverOpacity),
159
+ "--variant-outlinedBorder": (o.vars || o).palette[i].main,
160
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette[i].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette[i].main, o.palette.action.hoverOpacity)
161
+ }
162
+ }
163
+ }
164
+ })), {
165
+ props: {
166
+ color: "inherit"
167
+ },
168
+ style: {
169
+ color: "inherit",
170
+ borderColor: "currentColor",
171
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedBg : a,
172
+ "@media (hover: hover)": {
173
+ "&:hover": {
174
+ "--variant-containedBg": o.vars ? o.vars.palette.Button.inheritContainedHoverBg : n,
175
+ "--variant-textBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette.text.primary, o.palette.action.hoverOpacity),
176
+ "--variant-outlinedBg": o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : y(o.palette.text.primary, o.palette.action.hoverOpacity)
177
+ }
178
+ }
179
+ }
180
+ }, {
181
+ props: {
182
+ size: "small",
183
+ variant: "text"
184
+ },
185
+ style: {
186
+ padding: "4px 5px",
187
+ fontSize: o.typography.pxToRem(13)
188
+ }
189
+ }, {
190
+ props: {
191
+ size: "large",
192
+ variant: "text"
193
+ },
194
+ style: {
195
+ padding: "8px 11px",
196
+ fontSize: o.typography.pxToRem(15)
197
+ }
198
+ }, {
199
+ props: {
200
+ size: "small",
201
+ variant: "outlined"
202
+ },
203
+ style: {
204
+ padding: "3px 9px",
205
+ fontSize: o.typography.pxToRem(13)
206
+ }
207
+ }, {
208
+ props: {
209
+ size: "large",
210
+ variant: "outlined"
211
+ },
212
+ style: {
213
+ padding: "7px 21px",
214
+ fontSize: o.typography.pxToRem(15)
215
+ }
216
+ }, {
217
+ props: {
218
+ size: "small",
219
+ variant: "contained"
220
+ },
221
+ style: {
222
+ padding: "4px 10px",
223
+ fontSize: o.typography.pxToRem(13)
224
+ }
225
+ }, {
226
+ props: {
227
+ size: "large",
228
+ variant: "contained"
229
+ },
230
+ style: {
231
+ padding: "8px 22px",
232
+ fontSize: o.typography.pxToRem(15)
233
+ }
234
+ }, {
235
+ props: {
236
+ disableElevation: !0
237
+ },
238
+ style: {
239
+ boxShadow: "none",
240
+ "&:hover": {
241
+ boxShadow: "none"
242
+ },
243
+ [`&.${p.focusVisible}`]: {
244
+ boxShadow: "none"
245
+ },
246
+ "&:active": {
247
+ boxShadow: "none"
248
+ },
249
+ [`&.${p.disabled}`]: {
250
+ boxShadow: "none"
251
+ }
252
+ }
253
+ }, {
254
+ props: {
255
+ fullWidth: !0
256
+ },
257
+ style: {
258
+ width: "100%"
259
+ }
260
+ }, {
261
+ props: {
262
+ loadingPosition: "center"
263
+ },
264
+ style: {
265
+ transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
266
+ duration: o.transitions.duration.short
267
+ }),
268
+ [`&.${p.loading}`]: {
269
+ color: "transparent"
270
+ }
271
+ }
272
+ }]
273
+ };
274
+ })), lo = f("span", {
275
+ name: "MuiButton",
276
+ slot: "StartIcon",
277
+ overridesResolver: (o, a) => {
278
+ const {
279
+ ownerState: n
280
+ } = o;
281
+ return [a.startIcon, n.loading && a.startIconLoadingStart, a[`iconSize${r(n.size)}`]];
282
+ }
283
+ })(({
284
+ theme: o
285
+ }) => ({
286
+ display: "inherit",
287
+ marginRight: 8,
288
+ marginLeft: -4,
289
+ variants: [{
290
+ props: {
291
+ size: "small"
292
+ },
293
+ style: {
294
+ marginLeft: -2
295
+ }
296
+ }, {
297
+ props: {
298
+ loadingPosition: "start",
299
+ loading: !0
300
+ },
301
+ style: {
302
+ transition: o.transitions.create(["opacity"], {
303
+ duration: o.transitions.duration.short
304
+ }),
305
+ opacity: 0
306
+ }
307
+ }, {
308
+ props: {
309
+ loadingPosition: "start",
310
+ loading: !0,
311
+ fullWidth: !0
312
+ },
313
+ style: {
314
+ marginRight: -8
315
+ }
316
+ }, ...L]
317
+ })), po = f("span", {
318
+ name: "MuiButton",
319
+ slot: "EndIcon",
320
+ overridesResolver: (o, a) => {
321
+ const {
322
+ ownerState: n
323
+ } = o;
324
+ return [a.endIcon, n.loading && a.endIconLoadingEnd, a[`iconSize${r(n.size)}`]];
325
+ }
326
+ })(({
327
+ theme: o
328
+ }) => ({
329
+ display: "inherit",
330
+ marginRight: -4,
331
+ marginLeft: 8,
332
+ variants: [{
333
+ props: {
334
+ size: "small"
335
+ },
336
+ style: {
337
+ marginRight: -2
338
+ }
339
+ }, {
340
+ props: {
341
+ loadingPosition: "end",
342
+ loading: !0
343
+ },
344
+ style: {
345
+ transition: o.transitions.create(["opacity"], {
346
+ duration: o.transitions.duration.short
347
+ }),
348
+ opacity: 0
349
+ }
350
+ }, {
351
+ props: {
352
+ loadingPosition: "end",
353
+ loading: !0,
354
+ fullWidth: !0
355
+ },
356
+ style: {
357
+ marginLeft: -8
358
+ }
359
+ }, ...L]
360
+ })), co = f("span", {
361
+ name: "MuiButton",
362
+ slot: "LoadingIndicator"
363
+ })(({
364
+ theme: o
365
+ }) => ({
366
+ display: "none",
367
+ position: "absolute",
368
+ visibility: "visible",
369
+ variants: [{
370
+ props: {
371
+ loading: !0
372
+ },
373
+ style: {
374
+ display: "flex"
375
+ }
376
+ }, {
377
+ props: {
378
+ loadingPosition: "start"
379
+ },
380
+ style: {
381
+ left: 14
382
+ }
383
+ }, {
384
+ props: {
385
+ loadingPosition: "start",
386
+ size: "small"
387
+ },
388
+ style: {
389
+ left: 10
390
+ }
391
+ }, {
392
+ props: {
393
+ variant: "text",
394
+ loadingPosition: "start"
395
+ },
396
+ style: {
397
+ left: 6
398
+ }
399
+ }, {
400
+ props: {
401
+ loadingPosition: "center"
402
+ },
403
+ style: {
404
+ left: "50%",
405
+ transform: "translate(-50%)",
406
+ color: (o.vars || o).palette.action.disabled
407
+ }
408
+ }, {
409
+ props: {
410
+ loadingPosition: "end"
411
+ },
412
+ style: {
413
+ right: 14
414
+ }
415
+ }, {
416
+ props: {
417
+ loadingPosition: "end",
418
+ size: "small"
419
+ },
420
+ style: {
421
+ right: 10
422
+ }
423
+ }, {
424
+ props: {
425
+ variant: "text",
426
+ loadingPosition: "end"
427
+ },
428
+ style: {
429
+ right: 6
430
+ }
431
+ }, {
432
+ props: {
433
+ loadingPosition: "start",
434
+ fullWidth: !0
435
+ },
436
+ style: {
437
+ position: "relative",
438
+ left: -10
439
+ }
440
+ }, {
441
+ props: {
442
+ loadingPosition: "end",
443
+ fullWidth: !0
444
+ },
445
+ style: {
446
+ position: "relative",
447
+ right: -10
448
+ }
449
+ }]
450
+ })), E = f("span", {
451
+ name: "MuiButton",
452
+ slot: "LoadingIconPlaceholder"
453
+ })({
454
+ display: "inline-block",
455
+ width: "1em",
456
+ height: "1em"
457
+ }), uo = /* @__PURE__ */ b.forwardRef(function(a, n) {
458
+ const i = b.useContext(W), c = b.useContext(T), u = q(i, a), g = X({
459
+ props: u,
460
+ name: "MuiButton"
461
+ }), {
462
+ children: z,
463
+ color: x = "primary",
464
+ component: S = "button",
465
+ className: C,
466
+ disabled: I = !1,
467
+ disableElevation: M = !1,
468
+ disableFocusRipple: B = !1,
469
+ endIcon: P,
470
+ focusVisibleClassName: k,
471
+ fullWidth: V = !1,
472
+ id: m,
473
+ loading: s = null,
474
+ loadingIndicator: j,
475
+ loadingPosition: v = "center",
476
+ size: D = "medium",
477
+ startIcon: h,
478
+ type: w,
479
+ variant: F = "text",
480
+ ...G
481
+ } = g, $ = ao(m), O = j ?? /* @__PURE__ */ d(no, {
482
+ "aria-labelledby": $,
483
+ color: "inherit",
484
+ size: 16
485
+ }), l = {
486
+ ...g,
487
+ color: x,
488
+ component: S,
489
+ disabled: I,
490
+ disableElevation: M,
491
+ disableFocusRipple: B,
492
+ fullWidth: V,
493
+ loading: s,
494
+ loadingIndicator: O,
495
+ loadingPosition: v,
496
+ size: D,
497
+ type: w,
498
+ variant: F
499
+ }, e = eo(l), U = (h || s && v === "start") && /* @__PURE__ */ d(lo, {
500
+ className: e.startIcon,
501
+ ownerState: l,
502
+ children: h || /* @__PURE__ */ d(E, {
503
+ className: e.loadingIconPlaceholder,
504
+ ownerState: l
505
+ })
506
+ }), _ = (P || s && v === "end") && /* @__PURE__ */ d(po, {
507
+ className: e.endIcon,
508
+ ownerState: l,
509
+ children: P || /* @__PURE__ */ d(E, {
510
+ className: e.loadingIconPlaceholder,
511
+ ownerState: l
512
+ })
513
+ }), H = c || "", N = typeof s == "boolean" ? (
514
+ // use plain HTML span to minimize the runtime overhead
515
+ /* @__PURE__ */ d("span", {
516
+ className: e.loadingWrapper,
517
+ style: {
518
+ display: "contents"
519
+ },
520
+ children: s && /* @__PURE__ */ d(co, {
521
+ className: e.loadingIndicator,
522
+ ownerState: l,
523
+ children: O
524
+ })
525
+ })
526
+ ) : null;
527
+ return /* @__PURE__ */ oo(so, {
528
+ ownerState: l,
529
+ className: R(i.className, e.root, C, H),
530
+ component: S,
531
+ disabled: I || s,
532
+ focusRipple: !B,
533
+ focusVisibleClassName: R(e.focusVisible, k),
534
+ ref: n,
535
+ type: w,
536
+ id: s ? $ : m,
537
+ ...G,
538
+ classes: e,
539
+ children: [U, v !== "end" && N, z, v === "end" && N, _]
540
+ });
541
+ });
542
+ process.env.NODE_ENV !== "production" && (uo.propTypes = {
543
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
544
+ // │ These PropTypes are generated from the TypeScript type definitions. │
545
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
546
+ // └─────────────────────────────────────────────────────────────────────┘
547
+ /**
548
+ * The content of the component.
549
+ */
550
+ children: t.node,
551
+ /**
552
+ * Override or extend the styles applied to the component.
553
+ */
554
+ classes: t.object,
555
+ /**
556
+ * @ignore
557
+ */
558
+ className: t.string,
559
+ /**
560
+ * The color of the component.
561
+ * It supports both default and custom theme colors, which can be added as shown in the
562
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
563
+ * @default 'primary'
564
+ */
565
+ color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), t.string]),
566
+ /**
567
+ * The component used for the root node.
568
+ * Either a string to use a HTML element or a component.
569
+ */
570
+ component: t.elementType,
571
+ /**
572
+ * If `true`, the component is disabled.
573
+ * @default false
574
+ */
575
+ disabled: t.bool,
576
+ /**
577
+ * If `true`, no elevation is used.
578
+ * @default false
579
+ */
580
+ disableElevation: t.bool,
581
+ /**
582
+ * If `true`, the keyboard focus ripple is disabled.
583
+ * @default false
584
+ */
585
+ disableFocusRipple: t.bool,
586
+ /**
587
+ * If `true`, the ripple effect is disabled.
588
+ *
589
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
590
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
591
+ * @default false
592
+ */
593
+ disableRipple: t.bool,
594
+ /**
595
+ * Element placed after the children.
596
+ */
597
+ endIcon: t.node,
598
+ /**
599
+ * @ignore
600
+ */
601
+ focusVisibleClassName: t.string,
602
+ /**
603
+ * If `true`, the button will take up the full width of its container.
604
+ * @default false
605
+ */
606
+ fullWidth: t.bool,
607
+ /**
608
+ * The URL to link to when the button is clicked.
609
+ * If defined, an `a` element will be used as the root node.
610
+ */
611
+ href: t.string,
612
+ /**
613
+ * @ignore
614
+ */
615
+ id: t.string,
616
+ /**
617
+ * If `true`, the loading indicator is visible and the button is disabled.
618
+ * 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).
619
+ * @default null
620
+ */
621
+ loading: t.bool,
622
+ /**
623
+ * Element placed before the children if the button is in loading state.
624
+ * The node should contain an element with `role="progressbar"` with an accessible name.
625
+ * By default, it renders a `CircularProgress` that is labeled by the button itself.
626
+ * @default <CircularProgress color="inherit" size={16} />
627
+ */
628
+ loadingIndicator: t.node,
629
+ /**
630
+ * The loading indicator can be positioned on the start, end, or the center of the button.
631
+ * @default 'center'
632
+ */
633
+ loadingPosition: t.oneOf(["center", "end", "start"]),
634
+ /**
635
+ * The size of the component.
636
+ * `small` is equivalent to the dense button styling.
637
+ * @default 'medium'
638
+ */
639
+ size: t.oneOfType([t.oneOf(["small", "medium", "large"]), t.string]),
640
+ /**
641
+ * Element placed before the children.
642
+ */
643
+ startIcon: t.node,
644
+ /**
645
+ * The system prop that allows defining system overrides as well as additional CSS styles.
646
+ */
647
+ sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
648
+ /**
649
+ * @ignore
650
+ */
651
+ type: t.oneOfType([t.oneOf(["button", "reset", "submit"]), t.string]),
652
+ /**
653
+ * The variant to use.
654
+ * @default 'text'
655
+ */
656
+ variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
657
+ });
658
+ export {
659
+ uo as B
660
+ };