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,740 +0,0 @@
1
- import { jsxs as ge, jsx as O } from "react/jsx-runtime";
2
- import * as n from "react";
3
- import Qe from "react";
4
- import { s as A, u as Ze, c as eo } from "./DefaultPropsProvider-oAu9El-f.js";
5
- import { g as oo, b as ve, P as e, a as Re } from "./createTheme-CD19zQB7.js";
6
- import { c as be } from "./clsx-BTaloaeC.js";
7
- import { u as to } from "./index-B0Z-Gjno.js";
8
- import { u as ro } from "./useTheme-BQJ5lp0i.js";
9
- import { m as G } from "./memoTheme-yHaPezod.js";
10
- import { u as I } from "./useSlot-CW7SOYlh.js";
11
- import { g as po } from "./generateUtilityClasses-BRiE4Guh.js";
12
- import { P as Oe } from "./Popper-BBAoiZKn.js";
13
- import { u as j, a as Te, T as no } from "./refType-BsTH3qnM.js";
14
- import { u as so } from "./useControlled-nm4pBabJ.js";
15
- import { u as ao } from "./useId-CK6Kn3Tn.js";
16
- import { u as io } from "./TransitionGroupContext-CYRQkQ6k.js";
17
- import { g as lo, e as co } from "./elementAcceptingRef-CqLvP78G.js";
18
- import { G as mo } from "./Grow-CnGtel3u.js";
19
- import { i as ye } from "./isFocusVisible-CPZqtjv2.js";
20
- function uo(r) {
21
- return oo("MuiTooltip", r);
22
- }
23
- const p = po("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]);
24
- function fo(r) {
25
- return Math.round(r * 1e5) / 1e5;
26
- }
27
- const ho = (r) => {
28
- const {
29
- classes: o,
30
- disableInteractive: s,
31
- arrow: d,
32
- touch: P,
33
- placement: T
34
- } = r, q = {
35
- popper: ["popper", !s && "popperInteractive", d && "popperArrow"],
36
- tooltip: ["tooltip", d && "tooltipArrow", P && "touch", `tooltipPlacement${ve(T.split("-")[0])}`],
37
- arrow: ["arrow"]
38
- };
39
- return eo(q, uo, o);
40
- }, go = A(Oe, {
41
- name: "MuiTooltip",
42
- slot: "Popper",
43
- overridesResolver: (r, o) => {
44
- const {
45
- ownerState: s
46
- } = r;
47
- return [o.popper, !s.disableInteractive && o.popperInteractive, s.arrow && o.popperArrow, !s.open && o.popperClose];
48
- }
49
- })(G(({
50
- theme: r
51
- }) => ({
52
- zIndex: (r.vars || r).zIndex.tooltip,
53
- pointerEvents: "none",
54
- variants: [{
55
- props: ({
56
- ownerState: o
57
- }) => !o.disableInteractive,
58
- style: {
59
- pointerEvents: "auto"
60
- }
61
- }, {
62
- props: ({
63
- open: o
64
- }) => !o,
65
- style: {
66
- pointerEvents: "none"
67
- }
68
- }, {
69
- props: ({
70
- ownerState: o
71
- }) => o.arrow,
72
- style: {
73
- [`&[data-popper-placement*="bottom"] .${p.arrow}`]: {
74
- top: 0,
75
- marginTop: "-0.71em",
76
- "&::before": {
77
- transformOrigin: "0 100%"
78
- }
79
- },
80
- [`&[data-popper-placement*="top"] .${p.arrow}`]: {
81
- bottom: 0,
82
- marginBottom: "-0.71em",
83
- "&::before": {
84
- transformOrigin: "100% 0"
85
- }
86
- },
87
- [`&[data-popper-placement*="right"] .${p.arrow}`]: {
88
- height: "1em",
89
- width: "0.71em",
90
- "&::before": {
91
- transformOrigin: "100% 100%"
92
- }
93
- },
94
- [`&[data-popper-placement*="left"] .${p.arrow}`]: {
95
- height: "1em",
96
- width: "0.71em",
97
- "&::before": {
98
- transformOrigin: "0 0"
99
- }
100
- }
101
- }
102
- }, {
103
- props: ({
104
- ownerState: o
105
- }) => o.arrow && !o.isRtl,
106
- style: {
107
- [`&[data-popper-placement*="right"] .${p.arrow}`]: {
108
- left: 0,
109
- marginLeft: "-0.71em"
110
- }
111
- }
112
- }, {
113
- props: ({
114
- ownerState: o
115
- }) => o.arrow && !!o.isRtl,
116
- style: {
117
- [`&[data-popper-placement*="right"] .${p.arrow}`]: {
118
- right: 0,
119
- marginRight: "-0.71em"
120
- }
121
- }
122
- }, {
123
- props: ({
124
- ownerState: o
125
- }) => o.arrow && !o.isRtl,
126
- style: {
127
- [`&[data-popper-placement*="left"] .${p.arrow}`]: {
128
- right: 0,
129
- marginRight: "-0.71em"
130
- }
131
- }
132
- }, {
133
- props: ({
134
- ownerState: o
135
- }) => o.arrow && !!o.isRtl,
136
- style: {
137
- [`&[data-popper-placement*="left"] .${p.arrow}`]: {
138
- left: 0,
139
- marginLeft: "-0.71em"
140
- }
141
- }
142
- }]
143
- }))), bo = A("div", {
144
- name: "MuiTooltip",
145
- slot: "Tooltip",
146
- overridesResolver: (r, o) => {
147
- const {
148
- ownerState: s
149
- } = r;
150
- return [o.tooltip, s.touch && o.touch, s.arrow && o.tooltipArrow, o[`tooltipPlacement${ve(s.placement.split("-")[0])}`]];
151
- }
152
- })(G(({
153
- theme: r
154
- }) => ({
155
- backgroundColor: r.vars ? r.vars.palette.Tooltip.bg : Re(r.palette.grey[700], 0.92),
156
- borderRadius: (r.vars || r).shape.borderRadius,
157
- color: (r.vars || r).palette.common.white,
158
- fontFamily: r.typography.fontFamily,
159
- padding: "4px 8px",
160
- fontSize: r.typography.pxToRem(11),
161
- maxWidth: 300,
162
- margin: 2,
163
- wordWrap: "break-word",
164
- fontWeight: r.typography.fontWeightMedium,
165
- [`.${p.popper}[data-popper-placement*="left"] &`]: {
166
- transformOrigin: "right center"
167
- },
168
- [`.${p.popper}[data-popper-placement*="right"] &`]: {
169
- transformOrigin: "left center"
170
- },
171
- [`.${p.popper}[data-popper-placement*="top"] &`]: {
172
- transformOrigin: "center bottom",
173
- marginBottom: "14px"
174
- },
175
- [`.${p.popper}[data-popper-placement*="bottom"] &`]: {
176
- transformOrigin: "center top",
177
- marginTop: "14px"
178
- },
179
- variants: [{
180
- props: ({
181
- ownerState: o
182
- }) => o.arrow,
183
- style: {
184
- position: "relative",
185
- margin: 0
186
- }
187
- }, {
188
- props: ({
189
- ownerState: o
190
- }) => o.touch,
191
- style: {
192
- padding: "8px 16px",
193
- fontSize: r.typography.pxToRem(14),
194
- lineHeight: `${fo(16 / 14)}em`,
195
- fontWeight: r.typography.fontWeightRegular
196
- }
197
- }, {
198
- props: ({
199
- ownerState: o
200
- }) => !o.isRtl,
201
- style: {
202
- [`.${p.popper}[data-popper-placement*="left"] &`]: {
203
- marginRight: "14px"
204
- },
205
- [`.${p.popper}[data-popper-placement*="right"] &`]: {
206
- marginLeft: "14px"
207
- }
208
- }
209
- }, {
210
- props: ({
211
- ownerState: o
212
- }) => !o.isRtl && o.touch,
213
- style: {
214
- [`.${p.popper}[data-popper-placement*="left"] &`]: {
215
- marginRight: "24px"
216
- },
217
- [`.${p.popper}[data-popper-placement*="right"] &`]: {
218
- marginLeft: "24px"
219
- }
220
- }
221
- }, {
222
- props: ({
223
- ownerState: o
224
- }) => !!o.isRtl,
225
- style: {
226
- [`.${p.popper}[data-popper-placement*="left"] &`]: {
227
- marginLeft: "14px"
228
- },
229
- [`.${p.popper}[data-popper-placement*="right"] &`]: {
230
- marginRight: "14px"
231
- }
232
- }
233
- }, {
234
- props: ({
235
- ownerState: o
236
- }) => !!o.isRtl && o.touch,
237
- style: {
238
- [`.${p.popper}[data-popper-placement*="left"] &`]: {
239
- marginLeft: "24px"
240
- },
241
- [`.${p.popper}[data-popper-placement*="right"] &`]: {
242
- marginRight: "24px"
243
- }
244
- }
245
- }, {
246
- props: ({
247
- ownerState: o
248
- }) => o.touch,
249
- style: {
250
- [`.${p.popper}[data-popper-placement*="top"] &`]: {
251
- marginBottom: "24px"
252
- }
253
- }
254
- }, {
255
- props: ({
256
- ownerState: o
257
- }) => o.touch,
258
- style: {
259
- [`.${p.popper}[data-popper-placement*="bottom"] &`]: {
260
- marginTop: "24px"
261
- }
262
- }
263
- }]
264
- }))), To = A("span", {
265
- name: "MuiTooltip",
266
- slot: "Arrow"
267
- })(G(({
268
- theme: r
269
- }) => ({
270
- overflow: "hidden",
271
- position: "absolute",
272
- width: "1em",
273
- height: "0.71em",
274
- boxSizing: "border-box",
275
- color: r.vars ? r.vars.palette.Tooltip.bg : Re(r.palette.grey[700], 0.9),
276
- "&::before": {
277
- content: '""',
278
- margin: "auto",
279
- display: "block",
280
- width: "100%",
281
- height: "100%",
282
- backgroundColor: "currentColor",
283
- transform: "rotate(45deg)"
284
- }
285
- })));
286
- let D = !1;
287
- const we = new no();
288
- let R = {
289
- x: 0,
290
- y: 0
291
- };
292
- function k(r, o) {
293
- return (s, ...d) => {
294
- o && o(s, ...d), r(s, ...d);
295
- };
296
- }
297
- const Pe = /* @__PURE__ */ n.forwardRef(function(o, s) {
298
- const d = Ze({
299
- props: o,
300
- name: "MuiTooltip"
301
- }), {
302
- arrow: P = !1,
303
- children: T,
304
- classes: q,
305
- components: x = {},
306
- componentsProps: C = {},
307
- describeChild: xe = !1,
308
- disableFocusListener: Ce = !1,
309
- disableHoverListener: K = !1,
310
- disableInteractive: Me = !1,
311
- disableTouchListener: Ee = !1,
312
- enterDelay: X = 100,
313
- enterNextDelay: J = 0,
314
- enterTouchDelay: $e = 700,
315
- followCursor: F = !1,
316
- id: Se,
317
- leaveDelay: Q = 0,
318
- leaveTouchDelay: Ne = 1500,
319
- onClose: Z,
320
- onOpen: ee,
321
- open: oe,
322
- placement: te = "bottom",
323
- PopperComponent: re,
324
- PopperProps: f = {},
325
- slotProps: h = {},
326
- slots: Le = {},
327
- title: g,
328
- TransitionComponent: Ie,
329
- TransitionProps: je,
330
- ...pe
331
- } = d, m = /* @__PURE__ */ n.isValidElement(T) ? T : /* @__PURE__ */ O("span", {
332
- children: T
333
- }), ne = ro(), De = to(), [a, se] = n.useState(), [U, ke] = n.useState(null), M = n.useRef(!1), W = Me || F, ae = j(), B = j(), E = j(), ie = j(), [Ae, le] = so({
334
- controlled: oe,
335
- default: !1,
336
- name: "Tooltip",
337
- state: "open"
338
- });
339
- let u = Ae;
340
- if (process.env.NODE_ENV !== "production") {
341
- const {
342
- current: t
343
- } = n.useRef(oe !== void 0);
344
- n.useEffect(() => {
345
- a && a.disabled && !t && g !== "" && a.tagName.toLowerCase() === "button" && console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
346
- `));
347
- }, [g, a, t]);
348
- }
349
- const V = ao(Se), y = n.useRef(), $ = Te(() => {
350
- y.current !== void 0 && (document.body.style.WebkitUserSelect = y.current, y.current = void 0), ie.clear();
351
- });
352
- n.useEffect(() => $, [$]);
353
- const ce = (t) => {
354
- we.clear(), D = !0, le(!0), ee && !u && ee(t);
355
- }, S = Te(
356
- /**
357
- * @param {React.SyntheticEvent | Event} event
358
- */
359
- (t) => {
360
- we.start(800 + Q, () => {
361
- D = !1;
362
- }), le(!1), Z && u && Z(t), ae.start(ne.transitions.duration.shortest, () => {
363
- M.current = !1;
364
- });
365
- }
366
- ), N = (t) => {
367
- M.current && t.type !== "touchstart" || (a && a.removeAttribute("title"), B.clear(), E.clear(), X || D && J ? B.start(D ? J : X, () => {
368
- ce(t);
369
- }) : ce(t));
370
- }, z = (t) => {
371
- B.clear(), E.start(Q, () => {
372
- S(t);
373
- });
374
- }, [, me] = n.useState(!1), ue = (t) => {
375
- ye(t.target) || (me(!1), z(t));
376
- }, de = (t) => {
377
- a || se(t.currentTarget), ye(t.target) && (me(!0), N(t));
378
- }, fe = (t) => {
379
- M.current = !0;
380
- const c = m.props;
381
- c.onTouchStart && c.onTouchStart(t);
382
- }, Fe = (t) => {
383
- fe(t), E.clear(), ae.clear(), $(), y.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", ie.start($e, () => {
384
- document.body.style.WebkitUserSelect = y.current, N(t);
385
- });
386
- }, Ue = (t) => {
387
- m.props.onTouchEnd && m.props.onTouchEnd(t), $(), E.start(Ne, () => {
388
- S(t);
389
- });
390
- };
391
- n.useEffect(() => {
392
- if (!u)
393
- return;
394
- function t(c) {
395
- c.key === "Escape" && S(c);
396
- }
397
- return document.addEventListener("keydown", t), () => {
398
- document.removeEventListener("keydown", t);
399
- };
400
- }, [S, u]);
401
- const We = io(lo(m), se, s);
402
- !g && g !== 0 && (u = !1);
403
- const _ = n.useRef(), Be = (t) => {
404
- const c = m.props;
405
- c.onMouseMove && c.onMouseMove(t), R = {
406
- x: t.clientX,
407
- y: t.clientY
408
- }, _.current && _.current.update();
409
- }, w = {}, H = typeof g == "string";
410
- xe ? (w.title = !u && H && !K ? g : null, w["aria-describedby"] = u ? V : null) : (w["aria-label"] = H ? g : null, w["aria-labelledby"] = u && !H ? V : null);
411
- const i = {
412
- ...w,
413
- ...pe,
414
- ...m.props,
415
- className: be(pe.className, m.props.className),
416
- onTouchStart: fe,
417
- ref: We,
418
- ...F ? {
419
- onMouseMove: Be
420
- } : {}
421
- };
422
- process.env.NODE_ENV !== "production" && (i["data-mui-internal-clone-element"] = !0, n.useEffect(() => {
423
- a && !a.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(`
424
- `));
425
- }, [a]));
426
- const v = {};
427
- Ee || (i.onTouchStart = Fe, i.onTouchEnd = Ue), K || (i.onMouseOver = k(N, i.onMouseOver), i.onMouseLeave = k(z, i.onMouseLeave), W || (v.onMouseOver = N, v.onMouseLeave = z)), Ce || (i.onFocus = k(de, i.onFocus), i.onBlur = k(ue, i.onBlur), W || (v.onFocus = de, v.onBlur = ue)), process.env.NODE_ENV !== "production" && m.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${m.props.title}\` or the Tooltip component.`].join(`
428
- `));
429
- const b = {
430
- ...d,
431
- isRtl: De,
432
- arrow: P,
433
- disableInteractive: W,
434
- placement: te,
435
- PopperComponentProp: re,
436
- touch: M.current
437
- }, l = typeof h.popper == "function" ? h.popper(b) : h.popper, Ve = n.useMemo(() => {
438
- var c, he;
439
- let t = [{
440
- name: "arrow",
441
- enabled: !!U,
442
- options: {
443
- element: U,
444
- padding: 4
445
- }
446
- }];
447
- return (c = f.popperOptions) != null && c.modifiers && (t = t.concat(f.popperOptions.modifiers)), (he = l == null ? void 0 : l.popperOptions) != null && he.modifiers && (t = t.concat(l.popperOptions.modifiers)), {
448
- ...f.popperOptions,
449
- ...l == null ? void 0 : l.popperOptions,
450
- modifiers: t
451
- };
452
- }, [U, f.popperOptions, l == null ? void 0 : l.popperOptions]), Y = ho(b), ze = typeof h.transition == "function" ? h.transition(b) : h.transition, L = {
453
- slots: {
454
- popper: x.Popper,
455
- transition: x.Transition ?? Ie,
456
- tooltip: x.Tooltip,
457
- arrow: x.Arrow,
458
- ...Le
459
- },
460
- slotProps: {
461
- arrow: h.arrow ?? C.arrow,
462
- popper: {
463
- ...f,
464
- ...l ?? C.popper
465
- },
466
- // resolvedPopperProps can be spread because it's already an object
467
- tooltip: h.tooltip ?? C.tooltip,
468
- transition: {
469
- ...je,
470
- ...ze ?? C.transition
471
- }
472
- }
473
- }, [_e, He] = I("popper", {
474
- elementType: go,
475
- externalForwardedProps: L,
476
- ownerState: b,
477
- className: be(Y.popper, f == null ? void 0 : f.className)
478
- }), [Ye, Ge] = I("transition", {
479
- elementType: mo,
480
- externalForwardedProps: L,
481
- ownerState: b
482
- }), [qe, Ke] = I("tooltip", {
483
- elementType: bo,
484
- className: Y.tooltip,
485
- externalForwardedProps: L,
486
- ownerState: b
487
- }), [Xe, Je] = I("arrow", {
488
- elementType: To,
489
- className: Y.arrow,
490
- externalForwardedProps: L,
491
- ownerState: b,
492
- ref: ke
493
- });
494
- return /* @__PURE__ */ ge(n.Fragment, {
495
- children: [/* @__PURE__ */ n.cloneElement(m, i), /* @__PURE__ */ O(_e, {
496
- as: re ?? Oe,
497
- placement: te,
498
- anchorEl: F ? {
499
- getBoundingClientRect: () => ({
500
- top: R.y,
501
- left: R.x,
502
- right: R.x,
503
- bottom: R.y,
504
- width: 0,
505
- height: 0
506
- })
507
- } : a,
508
- popperRef: _,
509
- open: a ? u : !1,
510
- id: V,
511
- transition: !0,
512
- ...v,
513
- ...He,
514
- popperOptions: Ve,
515
- children: ({
516
- TransitionProps: t
517
- }) => /* @__PURE__ */ O(Ye, {
518
- timeout: ne.transitions.duration.shorter,
519
- ...t,
520
- ...Ge,
521
- children: /* @__PURE__ */ ge(qe, {
522
- ...Ke,
523
- children: [g, P ? /* @__PURE__ */ O(Xe, {
524
- ...Je
525
- }) : null]
526
- })
527
- })
528
- })]
529
- });
530
- });
531
- process.env.NODE_ENV !== "production" && (Pe.propTypes = {
532
- // ┌────────────────────────────── Warning ──────────────────────────────┐
533
- // │ These PropTypes are generated from the TypeScript type definitions. │
534
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
535
- // └─────────────────────────────────────────────────────────────────────┘
536
- /**
537
- * If `true`, adds an arrow to the tooltip.
538
- * @default false
539
- */
540
- arrow: e.bool,
541
- /**
542
- * Tooltip reference element.
543
- */
544
- children: co.isRequired,
545
- /**
546
- * Override or extend the styles applied to the component.
547
- */
548
- classes: e.object,
549
- /**
550
- * @ignore
551
- */
552
- className: e.string,
553
- /**
554
- * The components used for each slot inside.
555
- *
556
- * @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.
557
- *
558
- * @default {}
559
- */
560
- components: e.shape({
561
- Arrow: e.elementType,
562
- Popper: e.elementType,
563
- Tooltip: e.elementType,
564
- Transition: e.elementType
565
- }),
566
- /**
567
- * The extra props for the slot components.
568
- * You can override the existing props or add new ones.
569
- *
570
- * @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.
571
- *
572
- * @default {}
573
- */
574
- componentsProps: e.shape({
575
- arrow: e.object,
576
- popper: e.object,
577
- tooltip: e.object,
578
- transition: e.object
579
- }),
580
- /**
581
- * Set to `true` if the `title` acts as an accessible description.
582
- * By default the `title` acts as an accessible label for the child.
583
- * @default false
584
- */
585
- describeChild: e.bool,
586
- /**
587
- * Do not respond to focus-visible events.
588
- * @default false
589
- */
590
- disableFocusListener: e.bool,
591
- /**
592
- * Do not respond to hover events.
593
- * @default false
594
- */
595
- disableHoverListener: e.bool,
596
- /**
597
- * Makes a tooltip not interactive, i.e. it will close when the user
598
- * hovers over the tooltip before the `leaveDelay` is expired.
599
- * @default false
600
- */
601
- disableInteractive: e.bool,
602
- /**
603
- * Do not respond to long press touch events.
604
- * @default false
605
- */
606
- disableTouchListener: e.bool,
607
- /**
608
- * The number of milliseconds to wait before showing the tooltip.
609
- * This prop won't impact the enter touch delay (`enterTouchDelay`).
610
- * @default 100
611
- */
612
- enterDelay: e.number,
613
- /**
614
- * The number of milliseconds to wait before showing the tooltip when one was already recently opened.
615
- * @default 0
616
- */
617
- enterNextDelay: e.number,
618
- /**
619
- * The number of milliseconds a user must touch the element before showing the tooltip.
620
- * @default 700
621
- */
622
- enterTouchDelay: e.number,
623
- /**
624
- * If `true`, the tooltip follow the cursor over the wrapped element.
625
- * @default false
626
- */
627
- followCursor: e.bool,
628
- /**
629
- * This prop is used to help implement the accessibility logic.
630
- * If you don't provide this prop. It falls back to a randomly generated id.
631
- */
632
- id: e.string,
633
- /**
634
- * The number of milliseconds to wait before hiding the tooltip.
635
- * This prop won't impact the leave touch delay (`leaveTouchDelay`).
636
- * @default 0
637
- */
638
- leaveDelay: e.number,
639
- /**
640
- * The number of milliseconds after the user stops touching an element before hiding the tooltip.
641
- * @default 1500
642
- */
643
- leaveTouchDelay: e.number,
644
- /**
645
- * Callback fired when the component requests to be closed.
646
- *
647
- * @param {React.SyntheticEvent} event The event source of the callback.
648
- */
649
- onClose: e.func,
650
- /**
651
- * Callback fired when the component requests to be open.
652
- *
653
- * @param {React.SyntheticEvent} event The event source of the callback.
654
- */
655
- onOpen: e.func,
656
- /**
657
- * If `true`, the component is shown.
658
- */
659
- open: e.bool,
660
- /**
661
- * Tooltip placement.
662
- * @default 'bottom'
663
- */
664
- placement: e.oneOf(["auto-end", "auto-start", "auto", "bottom-end", "bottom-start", "bottom", "left-end", "left-start", "left", "right-end", "right-start", "right", "top-end", "top-start", "top"]),
665
- /**
666
- * The component used for the popper.
667
- * @deprecated use the `slots.popper` 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.
668
- */
669
- PopperComponent: e.elementType,
670
- /**
671
- * Props applied to the [`Popper`](https://mui.com/material-ui/api/popper/) element.
672
- * @deprecated use the `slotProps.popper` 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.
673
- * @default {}
674
- */
675
- PopperProps: e.object,
676
- /**
677
- * The props used for each slot inside.
678
- * @default {}
679
- */
680
- slotProps: e.shape({
681
- arrow: e.oneOfType([e.func, e.object]),
682
- popper: e.oneOfType([e.func, e.object]),
683
- tooltip: e.oneOfType([e.func, e.object]),
684
- transition: e.oneOfType([e.func, e.object])
685
- }),
686
- /**
687
- * The components used for each slot inside.
688
- * @default {}
689
- */
690
- slots: e.shape({
691
- arrow: e.elementType,
692
- popper: e.elementType,
693
- tooltip: e.elementType,
694
- transition: e.elementType
695
- }),
696
- /**
697
- * The system prop that allows defining system overrides as well as additional CSS styles.
698
- */
699
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
700
- /**
701
- * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.
702
- */
703
- title: e.node,
704
- /**
705
- * The component used for the transition.
706
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
707
- * @deprecated use the `slots.transition` 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.
708
- */
709
- TransitionComponent: e.elementType,
710
- /**
711
- * Props applied to the transition element.
712
- * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
713
- * @deprecated use the `slotProps.transition` 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.
714
- * @default {}
715
- */
716
- TransitionProps: e.object
717
- });
718
- const Ao = A(
719
- Qe.forwardRef((r, o) => /* @__PURE__ */ O(
720
- Pe,
721
- {
722
- enterTouchDelay: 0,
723
- ...r,
724
- arrow: !0,
725
- ref: o,
726
- classes: { popper: r.className }
727
- }
728
- ))
729
- )(({ theme: r }) => ({
730
- [`& .${p.arrow}`]: {
731
- color: r.palette.common.black
732
- },
733
- [`& .${p.tooltip}`]: {
734
- backgroundColor: r.palette.common.black
735
- }
736
- }));
737
- export {
738
- Ao as M,
739
- Pe as T
740
- };