everest-npm-features 0.0.61 → 0.0.63

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 (247) hide show
  1. package/dist/ArrowBack-DEJjwfp0.js +8 -0
  2. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  3. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  4. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  5. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  6. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  7. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  8. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  9. package/dist/PlayArrow-71FP5PzJ.js +13 -0
  10. package/dist/Portal-BeS9yJCZ.js +968 -0
  11. package/dist/assets/styles.css +1 -1
  12. package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
  13. package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
  14. package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
  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 +14 -13
  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 -53
  51. package/dist/components/Shared/FullKyc/index.js +13 -11
  52. package/dist/components/Shared/FullKyc/pep.js +35 -43
  53. package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
  54. package/dist/components/Shared/FullKyc/userInfo.js +8 -13
  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.d.ts +1 -2
  63. package/dist/components/Wallet/Account/createIban.js +324 -102
  64. package/dist/components/Wallet/Account/eWallet.js +37 -43
  65. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  66. package/dist/components/Wallet/Account/iban.js +41 -45
  67. package/dist/components/Wallet/Account/ibanItem.js +70 -75
  68. package/dist/components/Wallet/Account/index.d.ts +1 -0
  69. package/dist/components/Wallet/Account/index.js +113 -118
  70. package/dist/components/Wallet/Account/sendIban.js +79 -88
  71. package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
  72. package/dist/components/Wallet/Buy/form.js +8 -18
  73. package/dist/components/Wallet/Buy/index.js +6 -6
  74. package/dist/components/Wallet/Deposit/index.js +16 -18
  75. package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  77. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  78. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  79. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  80. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  81. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
  82. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
  83. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  84. package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
  85. package/dist/components/Wallet/History/index.js +23 -797
  86. package/dist/components/Wallet/Home/index.js +13 -14
  87. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
  88. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  89. package/dist/components/Wallet/Portfolio/index.js +48 -51
  90. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  91. package/dist/components/Wallet/Profile/documents.js +164 -176
  92. package/dist/components/Wallet/Profile/index.js +39 -44
  93. package/dist/components/Wallet/Profile/storage.js +39 -47
  94. package/dist/components/Wallet/Receive/index.js +32 -37
  95. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
  96. package/dist/components/Wallet/Sell/form.js +8 -18
  97. package/dist/components/Wallet/Sell/index.js +6 -6
  98. package/dist/components/Wallet/Send/index.js +98 -107
  99. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  100. package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
  101. package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
  102. package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
  103. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  104. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  105. package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
  106. package/dist/components/Wallet/Shared/Container/index.js +11 -11
  107. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  108. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  109. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  110. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  111. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  112. package/dist/components/Wallet/Shared/addBank.js +41 -45
  113. package/dist/components/Wallet/Shared/appButton.js +11 -15
  114. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  115. package/dist/components/Wallet/Shared/button.js +7 -7
  116. package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
  117. package/dist/components/Wallet/Shared/inputField.js +5 -5
  118. package/dist/components/Wallet/Shared/manualSend.js +9 -13
  119. package/dist/components/Wallet/Shared/noData.js +4 -5
  120. package/dist/components/Wallet/Shared/pin.js +25 -27
  121. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  122. package/dist/components/Wallet/Shared/step.js +12 -13
  123. package/dist/components/Wallet/Shared/timer.js +1 -1
  124. package/dist/components/Wallet/SignIn/index.js +17 -17
  125. package/dist/components/Wallet/SignUp/index.js +63 -153
  126. package/dist/components/Wallet/SignUp/terms.js +1 -1
  127. package/dist/components/Wallet/Stake/gems/index.js +71 -69
  128. package/dist/components/Wallet/Stake/id/index.js +77 -84
  129. package/dist/components/Wallet/Stake/index.js +65 -68
  130. package/dist/components/Wallet/Swap/form.js +11 -20
  131. package/dist/components/Wallet/Swap/index.js +5 -5
  132. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  133. package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
  134. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
  135. package/dist/components/Wallet/Withdraw/form.js +6 -17
  136. package/dist/components/Wallet/Withdraw/index.js +5 -5
  137. package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
  138. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  139. package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
  140. package/dist/hoc/withThemeProvider.js +5 -732
  141. package/dist/hooks/useDialog/index.js +22 -23
  142. package/dist/hooks/useRrDialog/index.js +43 -46
  143. package/dist/hooks/useSnackBar.js +24 -696
  144. package/dist/icons/buyIcon.js +1 -1
  145. package/dist/icons/canceledBuyIcon.js +1 -1
  146. package/dist/icons/canceledRedeemIcon.js +1 -1
  147. package/dist/icons/failedBuyIcon.js +2 -2
  148. package/dist/icons/failedRedeemIcon.js +2 -2
  149. package/dist/icons/pendingBuyIcon.js +1 -1
  150. package/dist/icons/pendingRedeemIcon.js +1 -1
  151. package/dist/icons/redeemIcon.js +1 -1
  152. package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
  153. package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
  154. package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
  155. package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
  156. package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
  157. package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
  158. package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
  159. package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
  160. package/dist/main.js +7 -7
  161. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  162. package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
  163. package/dist/otpForm-DeeegaX2.js +7378 -0
  164. package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
  165. package/dist/styles.module-DFoezEqS.js +28 -0
  166. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  167. package/dist/tooltip-BW0UyWw7.js +2129 -0
  168. package/dist/util/constants.d.ts +1 -0
  169. package/dist/util/constants.js +72 -71
  170. package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
  171. package/package.json +6 -6
  172. package/dist/Alert-DzsbFW3-.js +0 -369
  173. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  174. package/dist/Avatar-1XklXr4O.js +0 -281
  175. package/dist/Backdrop-CioURPVG.js +0 -359
  176. package/dist/Box-B0YSYLco.js +0 -59
  177. package/dist/Button-Df4vgU24.js +0 -663
  178. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  179. package/dist/CardContent-D9wTdpu-.js +0 -141
  180. package/dist/CircularProgress-xZA3lvba.js +0 -252
  181. package/dist/Close-CxzDL3J-.js +0 -9
  182. package/dist/Container-urNKV7hm.js +0 -181
  183. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  184. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  185. package/dist/DialogContent-BMwlOnbW.js +0 -567
  186. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  187. package/dist/Divider-BShhMFf4.js +0 -297
  188. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  189. package/dist/FormControl-RtZDQMdA.js +0 -258
  190. package/dist/FormControlLabel-BliKW48y.js +0 -519
  191. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  192. package/dist/Grid-CFe3amXO.js +0 -410
  193. package/dist/Grow-CnGtel3u.js +0 -196
  194. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  195. package/dist/IconButton-DHm-hucF.js +0 -297
  196. package/dist/InputAdornment-DMiED3JH.js +0 -173
  197. package/dist/Link-DBA9Yifs.js +0 -266
  198. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  199. package/dist/Menu-DLYFFrEk.js +0 -1239
  200. package/dist/MenuItem-DUdYOJr4.js +0 -271
  201. package/dist/Modal-CFIQ_s3T.js +0 -743
  202. package/dist/Paper-Bgt2WXI6.js +0 -186
  203. package/dist/PlayArrow-Bjz9LxhD.js +0 -13
  204. package/dist/Popper-BBAoiZKn.js +0 -1409
  205. package/dist/Portal-BMAxiQwe.js +0 -69
  206. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  207. package/dist/Select-CB5yWmyn.js +0 -1886
  208. package/dist/Slide-B9Nw0LZ4.js +0 -235
  209. package/dist/Stack-k55YTxET.js +0 -172
  210. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  211. package/dist/TextField-DPpRUQe3.js +0 -978
  212. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  213. package/dist/Typography-pAaje37G.js +0 -260
  214. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  215. package/dist/clsx-BTaloaeC.js +0 -264
  216. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  217. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  218. package/dist/createTheme-CD19zQB7.js +0 -3825
  219. package/dist/debounce-46wSf_lW.js +0 -15
  220. package/dist/defaultTheme-C35y5cLB.js +0 -5
  221. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  222. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  223. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  224. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  225. package/dist/exactProp-C1Lmtwf_.js +0 -13
  226. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  227. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  228. package/dist/index-B0Z-Gjno.js +0 -22
  229. package/dist/index-DUcLo3x5.js +0 -43
  230. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  231. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  232. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  233. package/dist/memoTheme-yHaPezod.js +0 -15
  234. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  235. package/dist/radioButton-CzlYB0Lh.js +0 -402
  236. package/dist/refType-BsTH3qnM.js +0 -56
  237. package/dist/styles.module-CHPRGltL.js +0 -28
  238. package/dist/tooltip-3UvETWtS.js +0 -740
  239. package/dist/useControlled-nm4pBabJ.js +0 -31
  240. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  241. package/dist/useFormControl-CatNKXAi.js +0 -10
  242. package/dist/useId-CK6Kn3Tn.js +0 -21
  243. package/dist/useSlot-CW7SOYlh.js +0 -125
  244. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  245. package/dist/useTheme-BQJ5lp0i.js +0 -11
  246. package/dist/useTheme-S5_DHFsQ.js +0 -17
  247. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -1,1292 +0,0 @@
1
- import * as p from "react";
2
- import { P as e, g as Re, b as D, q as _e, j as qe } from "./createTheme-CD19zQB7.js";
3
- import { s as _, u as we, c as xe, r as Ke } from "./DefaultPropsProvider-oAu9El-f.js";
4
- import { m as q } from "./memoTheme-yHaPezod.js";
5
- import { c as Ge } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
6
- import { g as Se } from "./generateUtilityClasses-BRiE4Guh.js";
7
- import { c as be } from "./clsx-BTaloaeC.js";
8
- import { i as ge } from "./isHostComponent-kiaBvYVo.js";
9
- import { f as Xe, i as Ye } from "./FormControl-RtZDQMdA.js";
10
- import { u as Ze, F as Je } from "./useFormControl-CatNKXAi.js";
11
- import { g as Qe } from "./index-DUcLo3x5.js";
12
- import { jsxs as re, jsx as L } from "react/jsx-runtime";
13
- import { u as Te } from "./TransitionGroupContext-CYRQkQ6k.js";
14
- import { u as ie } from "./useEnhancedEffect-CJGo-L3B.js";
15
- import { o as he } from "./ownerWindow-CRgpWY6I.js";
16
- import { a as eo, r as Ie } from "./refType-BsTH3qnM.js";
17
- import { d as oo } from "./debounce-46wSf_lW.js";
18
- import { e as to } from "./elementTypeAcceptingRef-BdsMpCbS.js";
19
- function U(o) {
20
- return parseInt(o, 10) || 0;
21
- }
22
- const no = {
23
- shadow: {
24
- // Visibility needed to hide the extra text area on iPads
25
- visibility: "hidden",
26
- // Remove from the content flow
27
- position: "absolute",
28
- // Ignore the scrollbar width
29
- overflow: "hidden",
30
- height: 0,
31
- top: 0,
32
- left: 0,
33
- // Create a new layer, increase the isolation of the computed values
34
- transform: "translateZ(0)"
35
- }
36
- };
37
- function ro(o) {
38
- for (const t in o)
39
- return !1;
40
- return !0;
41
- }
42
- function ye(o) {
43
- return ro(o) || o.outerHeightStyle === 0 && !o.overflowing;
44
- }
45
- const Oe = /* @__PURE__ */ p.forwardRef(function(t, n) {
46
- const {
47
- onChange: s,
48
- maxRows: f,
49
- minRows: u = 1,
50
- style: i,
51
- value: m,
52
- ...B
53
- } = t, {
54
- current: y
55
- } = p.useRef(m != null), b = p.useRef(null), x = Te(n, b), g = p.useRef(null), w = p.useRef(null), v = p.useCallback(() => {
56
- const a = b.current, r = w.current;
57
- if (!a || !r)
58
- return;
59
- const c = he(a).getComputedStyle(a);
60
- if (c.width === "0px")
61
- return {
62
- outerHeightStyle: 0,
63
- overflowing: !1
64
- };
65
- r.style.width = c.width, r.value = a.value || t.placeholder || "x", r.value.slice(-1) === `
66
- ` && (r.value += " ");
67
- const E = c.boxSizing, W = U(c.paddingBottom) + U(c.paddingTop), K = U(c.borderBottomWidth) + U(c.borderTopWidth), F = r.scrollHeight;
68
- r.value = "x";
69
- const z = r.scrollHeight;
70
- let C = F;
71
- u && (C = Math.max(Number(u) * z, C)), f && (C = Math.min(Number(f) * z, C)), C = Math.max(C, z);
72
- const j = C + (E === "border-box" ? W + K : 0), G = Math.abs(C - F) <= 1;
73
- return {
74
- outerHeightStyle: j,
75
- overflowing: G
76
- };
77
- }, [f, u, t.placeholder]), I = eo(() => {
78
- const a = b.current, r = v();
79
- if (!a || !r || ye(r))
80
- return !1;
81
- const h = r.outerHeightStyle;
82
- return g.current != null && g.current !== h;
83
- }), S = p.useCallback(() => {
84
- const a = b.current, r = v();
85
- if (!a || !r || ye(r))
86
- return;
87
- const h = r.outerHeightStyle;
88
- g.current !== h && (g.current = h, a.style.height = `${h}px`), a.style.overflow = r.overflowing ? "hidden" : "";
89
- }, [v]), O = p.useRef(-1);
90
- ie(() => {
91
- const a = oo(S), r = b == null ? void 0 : b.current;
92
- if (!r)
93
- return;
94
- const h = he(r);
95
- h.addEventListener("resize", a);
96
- let c;
97
- return typeof ResizeObserver < "u" && (c = new ResizeObserver(() => {
98
- I() && (c.unobserve(r), cancelAnimationFrame(O.current), S(), O.current = requestAnimationFrame(() => {
99
- c.observe(r);
100
- }));
101
- }), c.observe(r)), () => {
102
- a.clear(), cancelAnimationFrame(O.current), h.removeEventListener("resize", a), c && c.disconnect();
103
- };
104
- }, [v, S, I]), ie(() => {
105
- S();
106
- });
107
- const N = (a) => {
108
- y || S();
109
- const r = a.target, h = r.value.length, c = r.value.endsWith(`
110
- `), E = r.selectionStart === h;
111
- c && E && r.setSelectionRange(h, h), s && s(a);
112
- };
113
- return /* @__PURE__ */ re(p.Fragment, {
114
- children: [/* @__PURE__ */ L("textarea", {
115
- value: m,
116
- onChange: N,
117
- ref: x,
118
- rows: u,
119
- style: i,
120
- ...B
121
- }), /* @__PURE__ */ L("textarea", {
122
- "aria-hidden": !0,
123
- className: t.className,
124
- readOnly: !0,
125
- ref: w,
126
- tabIndex: -1,
127
- style: {
128
- ...no.shadow,
129
- ...i,
130
- paddingTop: 0,
131
- paddingBottom: 0
132
- }
133
- })]
134
- });
135
- });
136
- process.env.NODE_ENV !== "production" && (Oe.propTypes = {
137
- // ┌────────────────────────────── Warning ──────────────────────────────┐
138
- // │ These PropTypes are generated from the TypeScript type definitions. │
139
- // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
140
- // └─────────────────────────────────────────────────────────────────────┘
141
- /**
142
- * @ignore
143
- */
144
- className: e.string,
145
- /**
146
- * Maximum number of rows to display.
147
- */
148
- maxRows: e.oneOfType([e.number, e.string]),
149
- /**
150
- * Minimum number of rows to display.
151
- * @default 1
152
- */
153
- minRows: e.oneOfType([e.number, e.string]),
154
- /**
155
- * @ignore
156
- */
157
- onChange: e.func,
158
- /**
159
- * @ignore
160
- */
161
- placeholder: e.string,
162
- /**
163
- * @ignore
164
- */
165
- style: e.object,
166
- /**
167
- * @ignore
168
- */
169
- value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
170
- });
171
- function io(o) {
172
- return Re("MuiInputBase", o);
173
- }
174
- const V = Se("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
175
- var ve;
176
- const Fe = (o, t) => {
177
- const {
178
- ownerState: n
179
- } = o;
180
- return [t.root, n.formControl && t.formControl, n.startAdornment && t.adornedStart, n.endAdornment && t.adornedEnd, n.error && t.error, n.size === "small" && t.sizeSmall, n.multiline && t.multiline, n.color && t[`color${D(n.color)}`], n.fullWidth && t.fullWidth, n.hiddenLabel && t.hiddenLabel];
181
- }, Be = (o, t) => {
182
- const {
183
- ownerState: n
184
- } = o;
185
- return [t.input, n.size === "small" && t.inputSizeSmall, n.multiline && t.inputMultiline, n.type === "search" && t.inputTypeSearch, n.startAdornment && t.inputAdornedStart, n.endAdornment && t.inputAdornedEnd, n.hiddenLabel && t.inputHiddenLabel];
186
- }, ao = (o) => {
187
- const {
188
- classes: t,
189
- color: n,
190
- disabled: s,
191
- error: f,
192
- endAdornment: u,
193
- focused: i,
194
- formControl: m,
195
- fullWidth: B,
196
- hiddenLabel: y,
197
- multiline: b,
198
- readOnly: x,
199
- size: g,
200
- startAdornment: w,
201
- type: v
202
- } = o, I = {
203
- root: ["root", `color${D(n)}`, s && "disabled", f && "error", B && "fullWidth", i && "focused", m && "formControl", g && g !== "medium" && `size${D(g)}`, b && "multiline", w && "adornedStart", u && "adornedEnd", y && "hiddenLabel", x && "readOnly"],
204
- input: ["input", s && "disabled", v === "search" && "inputTypeSearch", b && "inputMultiline", g === "small" && "inputSizeSmall", y && "inputHiddenLabel", w && "inputAdornedStart", u && "inputAdornedEnd", x && "readOnly"]
205
- };
206
- return xe(I, io, t);
207
- }, ke = _("div", {
208
- name: "MuiInputBase",
209
- slot: "Root",
210
- overridesResolver: Fe
211
- })(q(({
212
- theme: o
213
- }) => ({
214
- ...o.typography.body1,
215
- color: (o.vars || o).palette.text.primary,
216
- lineHeight: "1.4375em",
217
- // 23px
218
- boxSizing: "border-box",
219
- // Prevent padding issue with fullWidth.
220
- position: "relative",
221
- cursor: "text",
222
- display: "inline-flex",
223
- alignItems: "center",
224
- [`&.${V.disabled}`]: {
225
- color: (o.vars || o).palette.text.disabled,
226
- cursor: "default"
227
- },
228
- variants: [{
229
- props: ({
230
- ownerState: t
231
- }) => t.multiline,
232
- style: {
233
- padding: "4px 0 5px"
234
- }
235
- }, {
236
- props: ({
237
- ownerState: t,
238
- size: n
239
- }) => t.multiline && n === "small",
240
- style: {
241
- paddingTop: 1
242
- }
243
- }, {
244
- props: ({
245
- ownerState: t
246
- }) => t.fullWidth,
247
- style: {
248
- width: "100%"
249
- }
250
- }]
251
- }))), Ee = _("input", {
252
- name: "MuiInputBase",
253
- slot: "Input",
254
- overridesResolver: Be
255
- })(q(({
256
- theme: o
257
- }) => {
258
- const t = o.palette.mode === "light", n = {
259
- color: "currentColor",
260
- ...o.vars ? {
261
- opacity: o.vars.opacity.inputPlaceholder
262
- } : {
263
- opacity: t ? 0.42 : 0.5
264
- },
265
- transition: o.transitions.create("opacity", {
266
- duration: o.transitions.duration.shorter
267
- })
268
- }, s = {
269
- opacity: "0 !important"
270
- }, f = o.vars ? {
271
- opacity: o.vars.opacity.inputPlaceholder
272
- } : {
273
- opacity: t ? 0.42 : 0.5
274
- };
275
- return {
276
- font: "inherit",
277
- letterSpacing: "inherit",
278
- color: "currentColor",
279
- padding: "4px 0 5px",
280
- border: 0,
281
- boxSizing: "content-box",
282
- background: "none",
283
- height: "1.4375em",
284
- // Reset 23pxthe native input line-height
285
- margin: 0,
286
- // Reset for Safari
287
- WebkitTapHighlightColor: "transparent",
288
- display: "block",
289
- // Make the flex item shrink with Firefox
290
- minWidth: 0,
291
- width: "100%",
292
- "&::-webkit-input-placeholder": n,
293
- "&::-moz-placeholder": n,
294
- // Firefox 19+
295
- "&::-ms-input-placeholder": n,
296
- // Edge
297
- "&:focus": {
298
- outline: 0
299
- },
300
- // Reset Firefox invalid required input style
301
- "&:invalid": {
302
- boxShadow: "none"
303
- },
304
- "&::-webkit-search-decoration": {
305
- // Remove the padding when type=search.
306
- WebkitAppearance: "none"
307
- },
308
- // Show and hide the placeholder logic
309
- [`label[data-shrink=false] + .${V.formControl} &`]: {
310
- "&::-webkit-input-placeholder": s,
311
- "&::-moz-placeholder": s,
312
- // Firefox 19+
313
- "&::-ms-input-placeholder": s,
314
- // Edge
315
- "&:focus::-webkit-input-placeholder": f,
316
- "&:focus::-moz-placeholder": f,
317
- // Firefox 19+
318
- "&:focus::-ms-input-placeholder": f
319
- // Edge
320
- },
321
- [`&.${V.disabled}`]: {
322
- opacity: 1,
323
- // Reset iOS opacity
324
- WebkitTextFillColor: (o.vars || o).palette.text.disabled
325
- // Fix opacity Safari bug
326
- },
327
- variants: [{
328
- props: ({
329
- ownerState: u
330
- }) => !u.disableInjectingGlobalStyles,
331
- style: {
332
- animationName: "mui-auto-fill-cancel",
333
- animationDuration: "10ms",
334
- "&:-webkit-autofill": {
335
- animationDuration: "5000s",
336
- animationName: "mui-auto-fill"
337
- }
338
- }
339
- }, {
340
- props: {
341
- size: "small"
342
- },
343
- style: {
344
- paddingTop: 1
345
- }
346
- }, {
347
- props: ({
348
- ownerState: u
349
- }) => u.multiline,
350
- style: {
351
- height: "auto",
352
- resize: "none",
353
- padding: 0,
354
- paddingTop: 0
355
- }
356
- }, {
357
- props: {
358
- type: "search"
359
- },
360
- style: {
361
- MozAppearance: "textfield"
362
- // Improve type search style.
363
- }
364
- }]
365
- };
366
- })), Ce = Qe({
367
- "@keyframes mui-auto-fill": {
368
- from: {
369
- display: "block"
370
- }
371
- },
372
- "@keyframes mui-auto-fill-cancel": {
373
- from: {
374
- display: "block"
375
- }
376
- }
377
- }), ze = /* @__PURE__ */ p.forwardRef(function(t, n) {
378
- const s = we({
379
- props: t,
380
- name: "MuiInputBase"
381
- }), {
382
- "aria-describedby": f,
383
- autoComplete: u,
384
- autoFocus: i,
385
- className: m,
386
- color: B,
387
- components: y = {},
388
- componentsProps: b = {},
389
- defaultValue: x,
390
- disabled: g,
391
- disableInjectingGlobalStyles: w,
392
- endAdornment: v,
393
- error: I,
394
- fullWidth: S = !1,
395
- id: O,
396
- inputComponent: N = "input",
397
- inputProps: a = {},
398
- inputRef: r,
399
- margin: h,
400
- maxRows: c,
401
- minRows: E,
402
- multiline: W = !1,
403
- name: K,
404
- onBlur: F,
405
- onChange: z,
406
- onClick: C,
407
- onFocus: j,
408
- onKeyDown: G,
409
- onKeyUp: Le,
410
- placeholder: Ne,
411
- readOnly: X,
412
- renderSuffix: ae,
413
- rows: H,
414
- size: fo,
415
- slotProps: se = {},
416
- slots: le = {},
417
- startAdornment: P,
418
- type: de = "text",
419
- value: Pe,
420
- ...Me
421
- } = s, $ = a.value != null ? a.value : Pe, {
422
- current: Y
423
- } = p.useRef($ != null), A = p.useRef(), We = p.useCallback((l) => {
424
- process.env.NODE_ENV !== "production" && l && l.nodeName !== "INPUT" && !l.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
425
- `));
426
- }, []), je = Te(A, r, a.ref, We), [Z, J] = p.useState(!1), d = Ze();
427
- process.env.NODE_ENV !== "production" && p.useEffect(() => {
428
- if (d)
429
- return d.registerEffect();
430
- }, [d]);
431
- const R = Xe({
432
- props: s,
433
- muiFormControl: d,
434
- states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
435
- });
436
- R.focused = d ? d.focused : Z, p.useEffect(() => {
437
- !d && g && Z && (J(!1), F && F());
438
- }, [d, g, Z, F]);
439
- const Q = d && d.onFilled, ee = d && d.onEmpty, M = p.useCallback((l) => {
440
- Ye(l) ? Q && Q() : ee && ee();
441
- }, [Q, ee]);
442
- ie(() => {
443
- Y && M({
444
- value: $
445
- });
446
- }, [$, M, Y]);
447
- const He = (l) => {
448
- j && j(l), a.onFocus && a.onFocus(l), d && d.onFocus ? d.onFocus(l) : J(!0);
449
- }, $e = (l) => {
450
- F && F(l), a.onBlur && a.onBlur(l), d && d.onBlur ? d.onBlur(l) : J(!1);
451
- }, Ue = (l, ...fe) => {
452
- if (!Y) {
453
- const me = l.target || A.current;
454
- if (me == null)
455
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : _e(1));
456
- M({
457
- value: me.value
458
- });
459
- }
460
- a.onChange && a.onChange(l, ...fe), z && z(l, ...fe);
461
- };
462
- p.useEffect(() => {
463
- M(A.current);
464
- }, []);
465
- const De = (l) => {
466
- A.current && l.currentTarget === l.target && A.current.focus(), C && C(l);
467
- };
468
- let oe = N, T = a;
469
- W && oe === "input" && (H ? (process.env.NODE_ENV !== "production" && (E || c) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), T = {
470
- type: void 0,
471
- minRows: H,
472
- maxRows: H,
473
- ...T
474
- }) : T = {
475
- type: void 0,
476
- maxRows: c,
477
- minRows: E,
478
- ...T
479
- }, oe = Oe);
480
- const Ve = (l) => {
481
- M(l.animationName === "mui-auto-fill-cancel" ? A.current : {
482
- value: "x"
483
- });
484
- };
485
- p.useEffect(() => {
486
- d && d.setAdornedStart(!!P);
487
- }, [d, P]);
488
- const te = {
489
- ...s,
490
- color: R.color || "primary",
491
- disabled: R.disabled,
492
- endAdornment: v,
493
- error: R.error,
494
- focused: R.focused,
495
- formControl: d,
496
- fullWidth: S,
497
- hiddenLabel: R.hiddenLabel,
498
- multiline: W,
499
- size: R.size,
500
- startAdornment: P,
501
- type: de
502
- }, ue = ao(te), pe = le.root || y.Root || ke, ne = se.root || b.root || {}, ce = le.input || y.Input || Ee;
503
- return T = {
504
- ...T,
505
- ...se.input ?? b.input
506
- }, /* @__PURE__ */ re(p.Fragment, {
507
- children: [!w && typeof Ce == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
508
- // For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
509
- (ve || (ve = /* @__PURE__ */ L(Ce, {}))), /* @__PURE__ */ re(pe, {
510
- ...ne,
511
- ref: n,
512
- onClick: De,
513
- ...Me,
514
- ...!ge(pe) && {
515
- ownerState: {
516
- ...te,
517
- ...ne.ownerState
518
- }
519
- },
520
- className: be(ue.root, ne.className, m, X && "MuiInputBase-readOnly"),
521
- children: [P, /* @__PURE__ */ L(Je.Provider, {
522
- value: null,
523
- children: /* @__PURE__ */ L(ce, {
524
- "aria-invalid": R.error,
525
- "aria-describedby": f,
526
- autoComplete: u,
527
- autoFocus: i,
528
- defaultValue: x,
529
- disabled: R.disabled,
530
- id: O,
531
- onAnimationStart: Ve,
532
- name: K,
533
- placeholder: Ne,
534
- readOnly: X,
535
- required: R.required,
536
- rows: H,
537
- value: $,
538
- onKeyDown: G,
539
- onKeyUp: Le,
540
- type: de,
541
- ...T,
542
- ...!ge(ce) && {
543
- as: oe,
544
- ownerState: {
545
- ...te,
546
- ...T.ownerState
547
- }
548
- },
549
- ref: je,
550
- className: be(ue.input, T.className, X && "MuiInputBase-readOnly"),
551
- onBlur: $e,
552
- onChange: Ue,
553
- onFocus: He
554
- })
555
- }), v, ae ? ae({
556
- ...R,
557
- startAdornment: P
558
- }) : null]
559
- })]
560
- });
561
- });
562
- process.env.NODE_ENV !== "production" && (ze.propTypes = {
563
- // ┌────────────────────────────── Warning ──────────────────────────────┐
564
- // │ These PropTypes are generated from the TypeScript type definitions. │
565
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
566
- // └─────────────────────────────────────────────────────────────────────┘
567
- /**
568
- * @ignore
569
- */
570
- "aria-describedby": e.string,
571
- /**
572
- * This prop helps users to fill forms faster, especially on mobile devices.
573
- * The name can be confusing, as it's more like an autofill.
574
- * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
575
- */
576
- autoComplete: e.string,
577
- /**
578
- * If `true`, the `input` element is focused during the first mount.
579
- */
580
- autoFocus: e.bool,
581
- /**
582
- * Override or extend the styles applied to the component.
583
- */
584
- classes: e.object,
585
- /**
586
- * @ignore
587
- */
588
- className: e.string,
589
- /**
590
- * The color of the component.
591
- * It supports both default and custom theme colors, which can be added as shown in the
592
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
593
- * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
594
- */
595
- color: e.oneOfType([e.oneOf(["primary", "secondary", "error", "info", "success", "warning"]), e.string]),
596
- /**
597
- * The components used for each slot inside.
598
- *
599
- * @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.
600
- *
601
- * @default {}
602
- */
603
- components: e.shape({
604
- Input: e.elementType,
605
- Root: e.elementType
606
- }),
607
- /**
608
- * The extra props for the slot components.
609
- * You can override the existing props or add new ones.
610
- *
611
- * @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.
612
- *
613
- * @default {}
614
- */
615
- componentsProps: e.shape({
616
- input: e.object,
617
- root: e.object
618
- }),
619
- /**
620
- * The default value. Use when the component is not controlled.
621
- */
622
- defaultValue: e.any,
623
- /**
624
- * If `true`, the component is disabled.
625
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
626
- */
627
- disabled: e.bool,
628
- /**
629
- * If `true`, GlobalStyles for the auto-fill keyframes will not be injected/removed on mount/unmount. Make sure to inject them at the top of your application.
630
- * This option is intended to help with boosting the initial rendering performance if you are loading a big amount of Input components at once.
631
- * @default false
632
- */
633
- disableInjectingGlobalStyles: e.bool,
634
- /**
635
- * End `InputAdornment` for this component.
636
- */
637
- endAdornment: e.node,
638
- /**
639
- * If `true`, the `input` will indicate an error.
640
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
641
- */
642
- error: e.bool,
643
- /**
644
- * If `true`, the `input` will take up the full width of its container.
645
- * @default false
646
- */
647
- fullWidth: e.bool,
648
- /**
649
- * The id of the `input` element.
650
- */
651
- id: e.string,
652
- /**
653
- * The component used for the `input` element.
654
- * Either a string to use a HTML element or a component.
655
- * @default 'input'
656
- */
657
- inputComponent: to,
658
- /**
659
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
660
- * @default {}
661
- */
662
- inputProps: e.object,
663
- /**
664
- * Pass a ref to the `input` element.
665
- */
666
- inputRef: Ie,
667
- /**
668
- * If `dense`, will adjust vertical spacing. This is normally obtained via context from
669
- * FormControl.
670
- * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
671
- */
672
- margin: e.oneOf(["dense", "none"]),
673
- /**
674
- * Maximum number of rows to display when multiline option is set to true.
675
- */
676
- maxRows: e.oneOfType([e.number, e.string]),
677
- /**
678
- * Minimum number of rows to display when multiline option is set to true.
679
- */
680
- minRows: e.oneOfType([e.number, e.string]),
681
- /**
682
- * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
683
- * @default false
684
- */
685
- multiline: e.bool,
686
- /**
687
- * Name attribute of the `input` element.
688
- */
689
- name: e.string,
690
- /**
691
- * Callback fired when the `input` is blurred.
692
- *
693
- * Notice that the first argument (event) might be undefined.
694
- */
695
- onBlur: e.func,
696
- /**
697
- * Callback fired when the value is changed.
698
- *
699
- * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
700
- * You can pull out the new value by accessing `event.target.value` (string).
701
- */
702
- onChange: e.func,
703
- /**
704
- * @ignore
705
- */
706
- onClick: e.func,
707
- /**
708
- * @ignore
709
- */
710
- onFocus: e.func,
711
- /**
712
- * Callback fired when the `input` doesn't satisfy its constraints.
713
- */
714
- onInvalid: e.func,
715
- /**
716
- * @ignore
717
- */
718
- onKeyDown: e.func,
719
- /**
720
- * @ignore
721
- */
722
- onKeyUp: e.func,
723
- /**
724
- * The short hint displayed in the `input` before the user enters a value.
725
- */
726
- placeholder: e.string,
727
- /**
728
- * It prevents the user from changing the value of the field
729
- * (not from interacting with the field).
730
- */
731
- readOnly: e.bool,
732
- /**
733
- * @ignore
734
- */
735
- renderSuffix: e.func,
736
- /**
737
- * If `true`, the `input` element is required.
738
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
739
- */
740
- required: e.bool,
741
- /**
742
- * Number of rows to display when multiline option is set to true.
743
- */
744
- rows: e.oneOfType([e.number, e.string]),
745
- /**
746
- * The size of the component.
747
- */
748
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
749
- /**
750
- * The extra props for the slot components.
751
- * You can override the existing props or add new ones.
752
- *
753
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
754
- *
755
- * @default {}
756
- */
757
- slotProps: e.shape({
758
- input: e.object,
759
- root: e.object
760
- }),
761
- /**
762
- * The components used for each slot inside.
763
- *
764
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
765
- *
766
- * @default {}
767
- */
768
- slots: e.shape({
769
- input: e.elementType,
770
- root: e.elementType
771
- }),
772
- /**
773
- * Start `InputAdornment` for this component.
774
- */
775
- startAdornment: e.node,
776
- /**
777
- * The system prop that allows defining system overrides as well as additional CSS styles.
778
- */
779
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
780
- /**
781
- * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
782
- * @default 'text'
783
- */
784
- type: e.string,
785
- /**
786
- * The value of the `input` element, required for a controlled component.
787
- */
788
- value: e.any
789
- });
790
- const so = ze;
791
- function lo(o) {
792
- return Re("MuiFilledInput", o);
793
- }
794
- const k = {
795
- ...V,
796
- ...Se("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
797
- }, uo = (o) => {
798
- const {
799
- classes: t,
800
- disableUnderline: n,
801
- startAdornment: s,
802
- endAdornment: f,
803
- size: u,
804
- hiddenLabel: i,
805
- multiline: m
806
- } = o, B = {
807
- root: ["root", !n && "underline", s && "adornedStart", f && "adornedEnd", u === "small" && `size${D(u)}`, i && "hiddenLabel", m && "multiline"],
808
- input: ["input"]
809
- }, y = xe(B, lo, t);
810
- return {
811
- ...t,
812
- // forward classes to the InputBase
813
- ...y
814
- };
815
- }, po = _(ke, {
816
- shouldForwardProp: (o) => Ke(o) || o === "classes",
817
- name: "MuiFilledInput",
818
- slot: "Root",
819
- overridesResolver: (o, t) => {
820
- const {
821
- ownerState: n
822
- } = o;
823
- return [...Fe(o, t), !n.disableUnderline && t.underline];
824
- }
825
- })(q(({
826
- theme: o
827
- }) => {
828
- const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", s = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", f = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", u = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
829
- return {
830
- position: "relative",
831
- backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : s,
832
- borderTopLeftRadius: (o.vars || o).shape.borderRadius,
833
- borderTopRightRadius: (o.vars || o).shape.borderRadius,
834
- transition: o.transitions.create("background-color", {
835
- duration: o.transitions.duration.shorter,
836
- easing: o.transitions.easing.easeOut
837
- }),
838
- "&:hover": {
839
- backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : f,
840
- // Reset on touch devices, it doesn't add specificity
841
- "@media (hover: none)": {
842
- backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : s
843
- }
844
- },
845
- [`&.${k.focused}`]: {
846
- backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : s
847
- },
848
- [`&.${k.disabled}`]: {
849
- backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : u
850
- },
851
- variants: [{
852
- props: ({
853
- ownerState: i
854
- }) => !i.disableUnderline,
855
- style: {
856
- "&::after": {
857
- left: 0,
858
- bottom: 0,
859
- content: '""',
860
- position: "absolute",
861
- right: 0,
862
- transform: "scaleX(0)",
863
- transition: o.transitions.create("transform", {
864
- duration: o.transitions.duration.shorter,
865
- easing: o.transitions.easing.easeOut
866
- }),
867
- pointerEvents: "none"
868
- // Transparent to the hover style.
869
- },
870
- [`&.${k.focused}:after`]: {
871
- // translateX(0) is a workaround for Safari transform scale bug
872
- // See https://github.com/mui/material-ui/issues/31766
873
- transform: "scaleX(1) translateX(0)"
874
- },
875
- [`&.${k.error}`]: {
876
- "&::before, &::after": {
877
- borderBottomColor: (o.vars || o).palette.error.main
878
- }
879
- },
880
- "&::before": {
881
- borderBottom: `1px solid ${o.vars ? `rgba(${o.vars.palette.common.onBackgroundChannel} / ${o.vars.opacity.inputUnderline})` : n}`,
882
- left: 0,
883
- bottom: 0,
884
- content: '"\\00a0"',
885
- position: "absolute",
886
- right: 0,
887
- transition: o.transitions.create("border-bottom-color", {
888
- duration: o.transitions.duration.shorter
889
- }),
890
- pointerEvents: "none"
891
- // Transparent to the hover style.
892
- },
893
- [`&:hover:not(.${k.disabled}, .${k.error}):before`]: {
894
- borderBottom: `1px solid ${(o.vars || o).palette.text.primary}`
895
- },
896
- [`&.${k.disabled}:before`]: {
897
- borderBottomStyle: "dotted"
898
- }
899
- }
900
- }, ...Object.entries(o.palette).filter(Ge()).map(([i]) => {
901
- var m;
902
- return {
903
- props: {
904
- disableUnderline: !1,
905
- color: i
906
- },
907
- style: {
908
- "&::after": {
909
- borderBottom: `2px solid ${(m = (o.vars || o).palette[i]) == null ? void 0 : m.main}`
910
- }
911
- }
912
- };
913
- }), {
914
- props: ({
915
- ownerState: i
916
- }) => i.startAdornment,
917
- style: {
918
- paddingLeft: 12
919
- }
920
- }, {
921
- props: ({
922
- ownerState: i
923
- }) => i.endAdornment,
924
- style: {
925
- paddingRight: 12
926
- }
927
- }, {
928
- props: ({
929
- ownerState: i
930
- }) => i.multiline,
931
- style: {
932
- padding: "25px 12px 8px"
933
- }
934
- }, {
935
- props: ({
936
- ownerState: i,
937
- size: m
938
- }) => i.multiline && m === "small",
939
- style: {
940
- paddingTop: 21,
941
- paddingBottom: 4
942
- }
943
- }, {
944
- props: ({
945
- ownerState: i
946
- }) => i.multiline && i.hiddenLabel,
947
- style: {
948
- paddingTop: 16,
949
- paddingBottom: 17
950
- }
951
- }, {
952
- props: ({
953
- ownerState: i
954
- }) => i.multiline && i.hiddenLabel && i.size === "small",
955
- style: {
956
- paddingTop: 8,
957
- paddingBottom: 9
958
- }
959
- }]
960
- };
961
- })), co = _(Ee, {
962
- name: "MuiFilledInput",
963
- slot: "Input",
964
- overridesResolver: Be
965
- })(q(({
966
- theme: o
967
- }) => ({
968
- paddingTop: 25,
969
- paddingRight: 12,
970
- paddingBottom: 8,
971
- paddingLeft: 12,
972
- ...!o.vars && {
973
- "&:-webkit-autofill": {
974
- WebkitBoxShadow: o.palette.mode === "light" ? null : "0 0 0 100px #266798 inset",
975
- WebkitTextFillColor: o.palette.mode === "light" ? null : "#fff",
976
- caretColor: o.palette.mode === "light" ? null : "#fff",
977
- borderTopLeftRadius: "inherit",
978
- borderTopRightRadius: "inherit"
979
- }
980
- },
981
- ...o.vars && {
982
- "&:-webkit-autofill": {
983
- borderTopLeftRadius: "inherit",
984
- borderTopRightRadius: "inherit"
985
- },
986
- [o.getColorSchemeSelector("dark")]: {
987
- "&:-webkit-autofill": {
988
- WebkitBoxShadow: "0 0 0 100px #266798 inset",
989
- WebkitTextFillColor: "#fff",
990
- caretColor: "#fff"
991
- }
992
- }
993
- },
994
- variants: [{
995
- props: {
996
- size: "small"
997
- },
998
- style: {
999
- paddingTop: 21,
1000
- paddingBottom: 4
1001
- }
1002
- }, {
1003
- props: ({
1004
- ownerState: t
1005
- }) => t.hiddenLabel,
1006
- style: {
1007
- paddingTop: 16,
1008
- paddingBottom: 17
1009
- }
1010
- }, {
1011
- props: ({
1012
- ownerState: t
1013
- }) => t.startAdornment,
1014
- style: {
1015
- paddingLeft: 0
1016
- }
1017
- }, {
1018
- props: ({
1019
- ownerState: t
1020
- }) => t.endAdornment,
1021
- style: {
1022
- paddingRight: 0
1023
- }
1024
- }, {
1025
- props: ({
1026
- ownerState: t
1027
- }) => t.hiddenLabel && t.size === "small",
1028
- style: {
1029
- paddingTop: 8,
1030
- paddingBottom: 9
1031
- }
1032
- }, {
1033
- props: ({
1034
- ownerState: t
1035
- }) => t.multiline,
1036
- style: {
1037
- paddingTop: 0,
1038
- paddingBottom: 0,
1039
- paddingLeft: 0,
1040
- paddingRight: 0
1041
- }
1042
- }]
1043
- }))), Ae = /* @__PURE__ */ p.forwardRef(function(t, n) {
1044
- const s = we({
1045
- props: t,
1046
- name: "MuiFilledInput"
1047
- }), {
1048
- disableUnderline: f = !1,
1049
- components: u = {},
1050
- componentsProps: i,
1051
- fullWidth: m = !1,
1052
- hiddenLabel: B,
1053
- // declare here to prevent spreading to DOM
1054
- inputComponent: y = "input",
1055
- multiline: b = !1,
1056
- slotProps: x,
1057
- slots: g = {},
1058
- type: w = "text",
1059
- ...v
1060
- } = s, I = {
1061
- ...s,
1062
- disableUnderline: f,
1063
- fullWidth: m,
1064
- inputComponent: y,
1065
- multiline: b,
1066
- type: w
1067
- }, S = uo(s), O = {
1068
- root: {
1069
- ownerState: I
1070
- },
1071
- input: {
1072
- ownerState: I
1073
- }
1074
- }, N = x ?? i ? qe(O, x ?? i) : O, a = g.root ?? u.Root ?? po, r = g.input ?? u.Input ?? co;
1075
- return /* @__PURE__ */ L(so, {
1076
- slots: {
1077
- root: a,
1078
- input: r
1079
- },
1080
- slotProps: N,
1081
- fullWidth: m,
1082
- inputComponent: y,
1083
- multiline: b,
1084
- ref: n,
1085
- type: w,
1086
- ...v,
1087
- classes: S
1088
- });
1089
- });
1090
- process.env.NODE_ENV !== "production" && (Ae.propTypes = {
1091
- // ┌────────────────────────────── Warning ──────────────────────────────┐
1092
- // │ These PropTypes are generated from the TypeScript type definitions. │
1093
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
1094
- // └─────────────────────────────────────────────────────────────────────┘
1095
- /**
1096
- * This prop helps users to fill forms faster, especially on mobile devices.
1097
- * The name can be confusing, as it's more like an autofill.
1098
- * You can learn more about it [following the specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill).
1099
- */
1100
- autoComplete: e.string,
1101
- /**
1102
- * If `true`, the `input` element is focused during the first mount.
1103
- */
1104
- autoFocus: e.bool,
1105
- /**
1106
- * Override or extend the styles applied to the component.
1107
- */
1108
- classes: e.object,
1109
- /**
1110
- * The color of the component.
1111
- * It supports both default and custom theme colors, which can be added as shown in the
1112
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
1113
- * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
1114
- */
1115
- color: e.oneOfType([e.oneOf(["primary", "secondary"]), e.string]),
1116
- /**
1117
- * The components used for each slot inside.
1118
- *
1119
- * @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.
1120
- *
1121
- * @default {}
1122
- */
1123
- components: e.shape({
1124
- Input: e.elementType,
1125
- Root: e.elementType
1126
- }),
1127
- /**
1128
- * The extra props for the slot components.
1129
- * You can override the existing props or add new ones.
1130
- *
1131
- * @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.
1132
- *
1133
- * @default {}
1134
- */
1135
- componentsProps: e.shape({
1136
- input: e.object,
1137
- root: e.object
1138
- }),
1139
- /**
1140
- * The default value. Use when the component is not controlled.
1141
- */
1142
- defaultValue: e.any,
1143
- /**
1144
- * If `true`, the component is disabled.
1145
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1146
- */
1147
- disabled: e.bool,
1148
- /**
1149
- * If `true`, the input will not have an underline.
1150
- * @default false
1151
- */
1152
- disableUnderline: e.bool,
1153
- /**
1154
- * End `InputAdornment` for this component.
1155
- */
1156
- endAdornment: e.node,
1157
- /**
1158
- * If `true`, the `input` will indicate an error.
1159
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1160
- */
1161
- error: e.bool,
1162
- /**
1163
- * If `true`, the `input` will take up the full width of its container.
1164
- * @default false
1165
- */
1166
- fullWidth: e.bool,
1167
- /**
1168
- * If `true`, the label is hidden.
1169
- * This is used to increase density for a `FilledInput`.
1170
- * Be sure to add `aria-label` to the `input` element.
1171
- * @default false
1172
- */
1173
- hiddenLabel: e.bool,
1174
- /**
1175
- * The id of the `input` element.
1176
- */
1177
- id: e.string,
1178
- /**
1179
- * The component used for the `input` element.
1180
- * Either a string to use a HTML element or a component.
1181
- * @default 'input'
1182
- */
1183
- inputComponent: e.elementType,
1184
- /**
1185
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
1186
- * @default {}
1187
- */
1188
- inputProps: e.object,
1189
- /**
1190
- * Pass a ref to the `input` element.
1191
- */
1192
- inputRef: Ie,
1193
- /**
1194
- * If `dense`, will adjust vertical spacing. This is normally obtained via context from
1195
- * FormControl.
1196
- * The prop defaults to the value (`'none'`) inherited from the parent FormControl component.
1197
- */
1198
- margin: e.oneOf(["dense", "none"]),
1199
- /**
1200
- * Maximum number of rows to display when multiline option is set to true.
1201
- */
1202
- maxRows: e.oneOfType([e.number, e.string]),
1203
- /**
1204
- * Minimum number of rows to display when multiline option is set to true.
1205
- */
1206
- minRows: e.oneOfType([e.number, e.string]),
1207
- /**
1208
- * If `true`, a [TextareaAutosize](https://mui.com/material-ui/react-textarea-autosize/) element is rendered.
1209
- * @default false
1210
- */
1211
- multiline: e.bool,
1212
- /**
1213
- * Name attribute of the `input` element.
1214
- */
1215
- name: e.string,
1216
- /**
1217
- * Callback fired when the value is changed.
1218
- *
1219
- * @param {React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>} event The event source of the callback.
1220
- * You can pull out the new value by accessing `event.target.value` (string).
1221
- */
1222
- onChange: e.func,
1223
- /**
1224
- * The short hint displayed in the `input` before the user enters a value.
1225
- */
1226
- placeholder: e.string,
1227
- /**
1228
- * It prevents the user from changing the value of the field
1229
- * (not from interacting with the field).
1230
- */
1231
- readOnly: e.bool,
1232
- /**
1233
- * If `true`, the `input` element is required.
1234
- * The prop defaults to the value (`false`) inherited from the parent FormControl component.
1235
- */
1236
- required: e.bool,
1237
- /**
1238
- * Number of rows to display when multiline option is set to true.
1239
- */
1240
- rows: e.oneOfType([e.number, e.string]),
1241
- /**
1242
- * The extra props for the slot components.
1243
- * You can override the existing props or add new ones.
1244
- *
1245
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
1246
- *
1247
- * @default {}
1248
- */
1249
- slotProps: e.shape({
1250
- input: e.object,
1251
- root: e.object
1252
- }),
1253
- /**
1254
- * The components used for each slot inside.
1255
- *
1256
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
1257
- *
1258
- * @default {}
1259
- */
1260
- slots: e.shape({
1261
- input: e.elementType,
1262
- root: e.elementType
1263
- }),
1264
- /**
1265
- * Start `InputAdornment` for this component.
1266
- */
1267
- startAdornment: e.node,
1268
- /**
1269
- * The system prop that allows defining system overrides as well as additional CSS styles.
1270
- */
1271
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1272
- /**
1273
- * Type of the `input` element. It should be [a valid HTML5 input type](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
1274
- * @default 'text'
1275
- */
1276
- type: e.string,
1277
- /**
1278
- * The value of the `input` element, required for a controlled component.
1279
- */
1280
- value: e.any
1281
- });
1282
- Ae.muiName = "Input";
1283
- export {
1284
- Ae as F,
1285
- ke as I,
1286
- Ee as a,
1287
- Be as b,
1288
- so as c,
1289
- k as f,
1290
- V as i,
1291
- Fe as r
1292
- };