everest-npm-features 0.0.61 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
  2. package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
  3. package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
  4. package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
  5. package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
  6. package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
  7. package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
  8. package/dist/{PlayArrow-Bjz9LxhD.js → PlayArrow-BVDyfxsQ.js} +1 -1
  9. package/dist/Portal-BeS9yJCZ.js +968 -0
  10. package/dist/{auth-Cwq6nfwY.js → auth-DTJdu6mq.js} +10 -10
  11. package/dist/components/RocketRamp/MinimalKyc/form.js +45 -50
  12. package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
  13. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +4 -6
  14. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -6
  15. package/dist/components/RocketRamp/Player/Buy/form.js +6 -15
  16. package/dist/components/RocketRamp/Player/Buy/index.js +3 -3
  17. package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
  18. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  19. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
  20. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +4 -9
  21. package/dist/components/RocketRamp/Player/Sell/form.js +6 -15
  22. package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
  23. package/dist/components/RocketRamp/Player/SignIn/index.js +22 -24
  24. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +32 -34
  25. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +30 -32
  26. package/dist/components/RocketRamp/Player/SignUp/email.js +20 -22
  27. package/dist/components/RocketRamp/Player/SignUp/index.js +48 -51
  28. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +67 -73
  29. package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
  30. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
  31. package/dist/components/RocketRamp/ResetPassword/index.js +22 -24
  32. package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
  33. package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
  34. package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
  35. package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
  36. package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
  37. package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
  38. package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
  39. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
  40. package/dist/components/RocketRamp/Store/SignUp/index.js +52 -55
  41. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +47 -53
  42. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +32 -36
  43. package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
  44. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
  45. package/dist/components/RocketRamp/Transactions/index.js +22 -23
  46. package/dist/components/Shared/FullKyc/countryList.js +15 -17
  47. package/dist/components/Shared/FullKyc/edd.js +50 -52
  48. package/dist/components/Shared/FullKyc/index.js +11 -9
  49. package/dist/components/Shared/FullKyc/pep.js +35 -43
  50. package/dist/components/Shared/FullKyc/personalDetails.js +5 -5
  51. package/dist/components/Shared/FullKyc/userInfo.js +6 -11
  52. package/dist/components/Shared/HistoryItem/index.js +43 -48
  53. package/dist/components/Shared/Incode/index.js +31 -35
  54. package/dist/components/Shared/MinimalKyc/index.js +59 -64
  55. package/dist/components/Shared/Sumsub/index.js +74 -61
  56. package/dist/components/Shared/loader.js +4 -5
  57. package/dist/components/Shared/tooltip.js +2 -2
  58. package/dist/components/Shared/transition.js +4 -4
  59. package/dist/components/Wallet/Account/createIban.js +34 -37
  60. package/dist/components/Wallet/Account/eWallet.js +35 -39
  61. package/dist/components/Wallet/Account/iban.js +49 -53
  62. package/dist/components/Wallet/Account/ibanItem.js +68 -73
  63. package/dist/components/Wallet/Account/index.js +66 -73
  64. package/dist/components/Wallet/Account/sendIban.js +79 -88
  65. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -8
  66. package/dist/components/Wallet/Buy/form.js +6 -16
  67. package/dist/components/Wallet/Buy/index.js +2 -2
  68. package/dist/components/Wallet/Deposit/index.js +15 -17
  69. package/dist/components/Wallet/EnterpriseKyc/edd.js +31 -32
  70. package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
  71. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
  72. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
  73. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  74. package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
  75. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +32 -33
  76. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3590 -1481
  77. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
  78. package/dist/components/Wallet/EnterpriseKyc/verify.js +21 -21
  79. package/dist/components/Wallet/History/index.js +22 -796
  80. package/dist/components/Wallet/Home/index.js +13 -14
  81. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +91 -96
  82. package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
  83. package/dist/components/Wallet/Portfolio/index.js +47 -50
  84. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
  85. package/dist/components/Wallet/Profile/documents.js +125 -134
  86. package/dist/components/Wallet/Profile/index.js +37 -42
  87. package/dist/components/Wallet/Profile/storage.js +39 -47
  88. package/dist/components/Wallet/Receive/index.js +31 -36
  89. package/dist/components/Wallet/Sell/confirmTransaction.js +6 -8
  90. package/dist/components/Wallet/Sell/form.js +6 -16
  91. package/dist/components/Wallet/Sell/index.js +2 -2
  92. package/dist/components/Wallet/Send/index.js +98 -107
  93. package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
  94. package/dist/components/Wallet/Shared/Auth/otpForm.js +8 -355
  95. package/dist/components/Wallet/Shared/BankSelect/index.js +44 -48
  96. package/dist/components/Wallet/Shared/CardCorp/index.js +17 -18
  97. package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
  98. package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
  99. package/dist/components/Wallet/Shared/Container/index.js +15 -16
  100. package/dist/components/Wallet/Shared/Input/index.js +3 -3
  101. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
  102. package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
  103. package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
  104. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
  105. package/dist/components/Wallet/Shared/addBank.js +40 -44
  106. package/dist/components/Wallet/Shared/appButton.js +11 -15
  107. package/dist/components/Wallet/Shared/backBtn.js +8 -9
  108. package/dist/components/Wallet/Shared/button.js +7 -7
  109. package/dist/components/Wallet/Shared/connectPlaidBank.js +15 -16
  110. package/dist/components/Wallet/Shared/inputField.js +5 -5
  111. package/dist/components/Wallet/Shared/manualSend.js +7 -11
  112. package/dist/components/Wallet/Shared/noData.js +4 -5
  113. package/dist/components/Wallet/Shared/pin.js +25 -27
  114. package/dist/components/Wallet/Shared/radioButton.js +39 -5
  115. package/dist/components/Wallet/Shared/step.js +12 -13
  116. package/dist/components/Wallet/Shared/timer.js +1 -1
  117. package/dist/components/Wallet/SignIn/index.js +16 -16
  118. package/dist/components/Wallet/SignUp/index.js +62 -152
  119. package/dist/components/Wallet/SignUp/terms.js +1 -1
  120. package/dist/components/Wallet/Stake/gems/index.js +51 -58
  121. package/dist/components/Wallet/Stake/id/index.js +73 -81
  122. package/dist/components/Wallet/Stake/index.js +64 -67
  123. package/dist/components/Wallet/Swap/form.js +8 -17
  124. package/dist/components/Wallet/Swap/index.js +2 -2
  125. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
  126. package/dist/components/Wallet/Withdraw/bankSelect.js +40 -44
  127. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -6
  128. package/dist/components/Wallet/Withdraw/form.js +4 -15
  129. package/dist/components/Wallet/Withdraw/index.js +2 -2
  130. package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
  131. package/dist/hoc/withThemeProvider.js +5 -732
  132. package/dist/hooks/useDialog/index.js +22 -23
  133. package/dist/hooks/useRrDialog/index.js +43 -46
  134. package/dist/hooks/useSnackBar.js +24 -696
  135. package/dist/icons/buyIcon.js +1 -1
  136. package/dist/icons/canceledBuyIcon.js +1 -1
  137. package/dist/icons/canceledRedeemIcon.js +1 -1
  138. package/dist/icons/failedBuyIcon.js +2 -2
  139. package/dist/icons/failedRedeemIcon.js +2 -2
  140. package/dist/icons/pendingBuyIcon.js +1 -1
  141. package/dist/icons/pendingRedeemIcon.js +1 -1
  142. package/dist/icons/redeemIcon.js +1 -1
  143. package/dist/{index-BbVpeed7.js → index-3OQ4M69t.js} +87 -96
  144. package/dist/{index-BHG1bT4t.js → index-BBFbUCRZ.js} +123 -128
  145. package/dist/{index-Dh_ahu-u.js → index-C1WPCgkl.js} +129 -140
  146. package/dist/{index-eEBuSKOo.js → index-CDwzoHu7.js} +124 -134
  147. package/dist/{index-B9oucF3r.js → index-CK4kLRAw.js} +189 -198
  148. package/dist/{index-C7Td5yoW.js → index-CYX3j0V7.js} +172 -181
  149. package/dist/{index-D2JWUPz8.js → index-ILpK4BCB.js} +154 -163
  150. package/dist/main.js +7 -7
  151. package/dist/memoTheme-DnE8lj0t.js +3481 -0
  152. package/dist/otpForm-fiNqeB5H.js +7378 -0
  153. package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
  154. package/dist/tooltip-BW0UyWw7.js +2129 -0
  155. package/package.json +6 -6
  156. package/dist/Alert-DzsbFW3-.js +0 -369
  157. package/dist/Autocomplete-CE-OI2t8.js +0 -2429
  158. package/dist/Avatar-1XklXr4O.js +0 -281
  159. package/dist/Backdrop-CioURPVG.js +0 -359
  160. package/dist/Box-B0YSYLco.js +0 -59
  161. package/dist/Button-Df4vgU24.js +0 -663
  162. package/dist/ButtonBase-DLF5c6wi.js +0 -870
  163. package/dist/CardContent-D9wTdpu-.js +0 -141
  164. package/dist/CircularProgress-xZA3lvba.js +0 -252
  165. package/dist/Close-CxzDL3J-.js +0 -9
  166. package/dist/Container-urNKV7hm.js +0 -181
  167. package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
  168. package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
  169. package/dist/DialogContent-BMwlOnbW.js +0 -567
  170. package/dist/DialogTitle-CfS0bb2K.js +0 -70
  171. package/dist/Divider-BShhMFf4.js +0 -297
  172. package/dist/FilledInput-DuNqnPjc.js +0 -1292
  173. package/dist/FormControl-RtZDQMdA.js +0 -258
  174. package/dist/FormControlLabel-BliKW48y.js +0 -519
  175. package/dist/GlobalStyles-ChMhDfTS.js +0 -59
  176. package/dist/Grid-CFe3amXO.js +0 -410
  177. package/dist/Grow-CnGtel3u.js +0 -196
  178. package/dist/HTMLElementType-BrQSV2FE.js +0 -13
  179. package/dist/IconButton-DHm-hucF.js +0 -297
  180. package/dist/InputAdornment-DMiED3JH.js +0 -173
  181. package/dist/Link-DBA9Yifs.js +0 -266
  182. package/dist/ListItemIcon-CUcyTEEm.js +0 -84
  183. package/dist/Menu-DLYFFrEk.js +0 -1239
  184. package/dist/MenuItem-DUdYOJr4.js +0 -271
  185. package/dist/Modal-CFIQ_s3T.js +0 -743
  186. package/dist/Paper-Bgt2WXI6.js +0 -186
  187. package/dist/Popper-BBAoiZKn.js +0 -1409
  188. package/dist/Portal-BMAxiQwe.js +0 -69
  189. package/dist/RadioGroup-nvoSN0JN.js +0 -189
  190. package/dist/Select-CB5yWmyn.js +0 -1886
  191. package/dist/Slide-B9Nw0LZ4.js +0 -235
  192. package/dist/Stack-k55YTxET.js +0 -172
  193. package/dist/SwitchBase-C8zFyg_x.js +0 -318
  194. package/dist/TextField-DPpRUQe3.js +0 -978
  195. package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
  196. package/dist/Typography-pAaje37G.js +0 -260
  197. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  198. package/dist/clsx-BTaloaeC.js +0 -264
  199. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  200. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  201. package/dist/createTheme-CD19zQB7.js +0 -3825
  202. package/dist/debounce-46wSf_lW.js +0 -15
  203. package/dist/defaultTheme-C35y5cLB.js +0 -5
  204. package/dist/dividerClasses-BDxa2gAa.js +0 -10
  205. package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
  206. package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
  207. package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
  208. package/dist/exactProp-C1Lmtwf_.js +0 -13
  209. package/dist/extendSxProp-B8UjbJ56.js +0 -37
  210. package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
  211. package/dist/index-B0Z-Gjno.js +0 -22
  212. package/dist/index-DUcLo3x5.js +0 -43
  213. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  214. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  215. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  216. package/dist/memoTheme-yHaPezod.js +0 -15
  217. package/dist/ownerWindow-CRgpWY6I.js +0 -7
  218. package/dist/radioButton-CzlYB0Lh.js +0 -402
  219. package/dist/refType-BsTH3qnM.js +0 -56
  220. package/dist/tooltip-3UvETWtS.js +0 -740
  221. package/dist/useControlled-nm4pBabJ.js +0 -31
  222. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  223. package/dist/useFormControl-CatNKXAi.js +0 -10
  224. package/dist/useId-CK6Kn3Tn.js +0 -21
  225. package/dist/useSlot-CW7SOYlh.js +0 -125
  226. package/dist/useSlotProps-BfEOwJvJ.js +0 -25
  227. package/dist/useTheme-BQJ5lp0i.js +0 -11
  228. package/dist/useTheme-S5_DHFsQ.js +0 -17
  229. package/dist/useThemeProps-DN9MjdTl.js +0 -29
@@ -1,13 +0,0 @@
1
- const n = "exact-prop: ​";
2
- function p(e) {
3
- return process.env.NODE_ENV === "production" ? e : {
4
- ...e,
5
- [n]: (o) => {
6
- const t = Object.keys(o).filter((r) => !e.hasOwnProperty(r));
7
- return t.length > 0 ? new Error(`The following props are not supported: ${t.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
8
- }
9
- };
10
- }
11
- export {
12
- p as e
13
- };
@@ -1,37 +0,0 @@
1
- import { d as c, i as l } from "./createTheme-CD19zQB7.js";
2
- const a = (t) => {
3
- var s;
4
- const e = {
5
- systemProps: {},
6
- otherProps: {}
7
- }, i = ((s = t == null ? void 0 : t.theme) == null ? void 0 : s.unstable_sxConfig) ?? c;
8
- return Object.keys(t).forEach((n) => {
9
- i[n] ? e.systemProps[n] = t[n] : e.otherProps[n] = t[n];
10
- }), e;
11
- };
12
- function x(t) {
13
- const {
14
- sx: e,
15
- ...i
16
- } = t, {
17
- systemProps: s,
18
- otherProps: n
19
- } = a(i);
20
- let r;
21
- return Array.isArray(e) ? r = [s, ...e] : typeof e == "function" ? r = (...f) => {
22
- const o = e(...f);
23
- return l(o) ? {
24
- ...s,
25
- ...o
26
- } : s;
27
- } : r = {
28
- ...s,
29
- ...e
30
- }, {
31
- ...n,
32
- sx: r
33
- };
34
- }
35
- export {
36
- x as e
37
- };
@@ -1,10 +0,0 @@
1
- import { g as i } from "./createTheme-CD19zQB7.js";
2
- function o(r, s, a = "Mui") {
3
- const t = {};
4
- return s.forEach((e) => {
5
- t[e] = i(r, e, a);
6
- }), t;
7
- }
8
- export {
9
- o as g
10
- };
@@ -1,22 +0,0 @@
1
- import * as t from "react";
2
- import { P as o } from "./createTheme-CD19zQB7.js";
3
- import { jsx as n } from "react/jsx-runtime";
4
- const r = /* @__PURE__ */ t.createContext();
5
- function u({
6
- value: e,
7
- ...s
8
- }) {
9
- return /* @__PURE__ */ n(r.Provider, {
10
- value: e ?? !0,
11
- ...s
12
- });
13
- }
14
- process.env.NODE_ENV !== "production" && (u.propTypes = {
15
- children: o.node,
16
- value: o.bool
17
- });
18
- const l = () => t.useContext(r) ?? !1;
19
- export {
20
- u as R,
21
- l as u
22
- };
@@ -1,43 +0,0 @@
1
- import "react";
2
- import { jsx as e } from "react/jsx-runtime";
3
- import { e as a } from "./extendSxProp-B8UjbJ56.js";
4
- import { T as s, P as o } from "./createTheme-CD19zQB7.js";
5
- import { d as i } from "./defaultTheme-C35y5cLB.js";
6
- import { G as f } from "./GlobalStyles-ChMhDfTS.js";
7
- function t(r) {
8
- return /* @__PURE__ */ e(f, {
9
- ...r,
10
- defaultTheme: i,
11
- themeId: s
12
- });
13
- }
14
- process.env.NODE_ENV !== "production" && (t.propTypes = {
15
- // ┌────────────────────────────── Warning ──────────────────────────────┐
16
- // │ These PropTypes are generated from the TypeScript type definitions. │
17
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
18
- // └─────────────────────────────────────────────────────────────────────┘
19
- /**
20
- * The styles you want to apply globally.
21
- */
22
- styles: o.oneOfType([o.array, o.func, o.number, o.object, o.string, o.bool])
23
- });
24
- function T(r) {
25
- return function(n) {
26
- return (
27
- // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
28
- /* @__PURE__ */ e(t, {
29
- styles: typeof r == "function" ? (p) => r({
30
- theme: p,
31
- ...n
32
- }) : r
33
- })
34
- );
35
- };
36
- }
37
- function x() {
38
- return a;
39
- }
40
- export {
41
- T as g,
42
- x as i
43
- };
@@ -1,12 +0,0 @@
1
- function s(o) {
2
- try {
3
- return o.matches(":focus-visible");
4
- } catch {
5
- process.env.NODE_ENV !== "production" && !/jsdom/.test(window.navigator.userAgent) && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(`
6
- `));
7
- }
8
- return !1;
9
- }
10
- export {
11
- s as i
12
- };
@@ -1,6 +0,0 @@
1
- function n(t) {
2
- return typeof t == "string";
3
- }
4
- export {
5
- n as i
6
- };
@@ -1,13 +0,0 @@
1
- import * as u from "react";
2
- function o(i, m) {
3
- var a, e, t;
4
- return /* @__PURE__ */ u.isValidElement(i) && m.indexOf(
5
- // For server components `muiName` is avaialble in element.type._payload.value.muiName
6
- // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
7
- // eslint-disable-next-line no-underscore-dangle
8
- i.type.muiName ?? ((t = (e = (a = i.type) == null ? void 0 : a._payload) == null ? void 0 : e.value) == null ? void 0 : t.muiName)
9
- ) !== -1;
10
- }
11
- export {
12
- o as i
13
- };
@@ -1,15 +0,0 @@
1
- import { p as s } from "./DefaultPropsProvider-oAu9El-f.js";
2
- const l = {
3
- theme: void 0
4
- };
5
- function u(o) {
6
- let m, n;
7
- return function(t) {
8
- let e = m;
9
- return (e === void 0 || t.theme !== n) && (l.theme = t.theme, e = s(o(l)), m = e, n = t.theme), e;
10
- };
11
- }
12
- const r = u;
13
- export {
14
- r as m
15
- };
@@ -1,7 +0,0 @@
1
- import { o as n } from "./HTMLElementType-BrQSV2FE.js";
2
- function t(o) {
3
- return n(o).defaultView || window;
4
- }
5
- export {
6
- t as o
7
- };
@@ -1,402 +0,0 @@
1
- import { jsx as s, jsxs as B } from "react/jsx-runtime";
2
- import { P as J } from "./Paper-Bgt2WXI6.js";
3
- import { T as K } from "./Typography-pAaje37G.js";
4
- import * as l from "react";
5
- import { P as e, g as L, b as d, a as I } from "./createTheme-CD19zQB7.js";
6
- import { c as Q } from "./clsx-BTaloaeC.js";
7
- import { S as X } from "./SwitchBase-C8zFyg_x.js";
8
- import { c as j } from "./createSvgIcon-Cuzqm90l.js";
9
- import { s as u, r as N, u as Y, c as oo } from "./DefaultPropsProvider-oAu9El-f.js";
10
- import { m as $ } from "./memoTheme-yHaPezod.js";
11
- import { u as eo } from "./useFormControl-CatNKXAi.js";
12
- import { g as to } from "./generateUtilityClasses-BRiE4Guh.js";
13
- import { c as T } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
14
- import { u as ao } from "./useSlot-CW7SOYlh.js";
15
- import { c as no } from "./createChainedFunction-C0nujS3O.js";
16
- import { r as so } from "./refType-BsTH3qnM.js";
17
- const ro = j(/* @__PURE__ */ s("path", {
18
- d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
19
- }), "RadioButtonUnchecked"), io = j(/* @__PURE__ */ s("path", {
20
- d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"
21
- }), "RadioButtonChecked"), co = u("span", {
22
- name: "MuiRadioButtonIcon",
23
- shouldForwardProp: N
24
- })({
25
- position: "relative",
26
- display: "flex"
27
- }), lo = u(ro, {
28
- name: "MuiRadioButtonIcon"
29
- })({
30
- // Scale applied to prevent dot misalignment in Safari
31
- transform: "scale(1)"
32
- }), po = u(io, {
33
- name: "MuiRadioButtonIcon"
34
- })($(({
35
- theme: o
36
- }) => ({
37
- left: 0,
38
- position: "absolute",
39
- transform: "scale(0)",
40
- transition: o.transitions.create("transform", {
41
- easing: o.transitions.easing.easeIn,
42
- duration: o.transitions.duration.shortest
43
- }),
44
- variants: [{
45
- props: {
46
- checked: !0
47
- },
48
- style: {
49
- transform: "scale(1)",
50
- transition: o.transitions.create("transform", {
51
- easing: o.transitions.easing.easeOut,
52
- duration: o.transitions.duration.shortest
53
- })
54
- }
55
- }]
56
- })));
57
- function R(o) {
58
- const {
59
- checked: t = !1,
60
- classes: a = {},
61
- fontSize: n
62
- } = o, r = {
63
- ...o,
64
- checked: t
65
- };
66
- return /* @__PURE__ */ B(co, {
67
- className: a.root,
68
- ownerState: r,
69
- children: [/* @__PURE__ */ s(lo, {
70
- fontSize: n,
71
- className: a.background,
72
- ownerState: r
73
- }), /* @__PURE__ */ s(po, {
74
- fontSize: n,
75
- className: a.dot,
76
- ownerState: r
77
- })]
78
- });
79
- }
80
- process.env.NODE_ENV !== "production" && (R.propTypes = {
81
- /**
82
- * If `true`, the component is checked.
83
- */
84
- checked: e.bool,
85
- /**
86
- * Override or extend the styles applied to the component.
87
- */
88
- classes: e.object,
89
- /**
90
- * The size of the component.
91
- * `small` is equivalent to the dense radio styling.
92
- */
93
- fontSize: e.oneOf(["small", "medium"])
94
- });
95
- const E = /* @__PURE__ */ l.createContext(void 0);
96
- process.env.NODE_ENV !== "production" && (E.displayName = "RadioGroupContext");
97
- function uo() {
98
- return l.useContext(E);
99
- }
100
- function fo(o) {
101
- return L("MuiRadio", o);
102
- }
103
- const w = to("MuiRadio", ["root", "checked", "disabled", "colorPrimary", "colorSecondary", "sizeSmall"]), mo = (o) => {
104
- const {
105
- classes: t,
106
- color: a,
107
- size: n
108
- } = o, r = {
109
- root: ["root", `color${d(a)}`, n !== "medium" && `size${d(n)}`]
110
- };
111
- return {
112
- ...t,
113
- ...oo(r, fo, t)
114
- };
115
- }, yo = u(X, {
116
- shouldForwardProp: (o) => N(o) || o === "classes",
117
- name: "MuiRadio",
118
- slot: "Root",
119
- overridesResolver: (o, t) => {
120
- const {
121
- ownerState: a
122
- } = o;
123
- return [t.root, a.size !== "medium" && t[`size${d(a.size)}`], t[`color${d(a.color)}`]];
124
- }
125
- })($(({
126
- theme: o
127
- }) => ({
128
- color: (o.vars || o).palette.text.secondary,
129
- [`&.${w.disabled}`]: {
130
- color: (o.vars || o).palette.action.disabled
131
- },
132
- variants: [{
133
- props: {
134
- color: "default",
135
- disabled: !1,
136
- disableRipple: !1
137
- },
138
- style: {
139
- "&:hover": {
140
- backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : I(o.palette.action.active, o.palette.action.hoverOpacity)
141
- }
142
- }
143
- }, ...Object.entries(o.palette).filter(T()).map(([t]) => ({
144
- props: {
145
- color: t,
146
- disabled: !1,
147
- disableRipple: !1
148
- },
149
- style: {
150
- "&:hover": {
151
- backgroundColor: o.vars ? `rgba(${o.vars.palette[t].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : I(o.palette[t].main, o.palette.action.hoverOpacity)
152
- }
153
- }
154
- })), ...Object.entries(o.palette).filter(T()).map(([t]) => ({
155
- props: {
156
- color: t,
157
- disabled: !1
158
- },
159
- style: {
160
- [`&.${w.checked}`]: {
161
- color: (o.vars || o).palette[t].main
162
- }
163
- }
164
- })), {
165
- // Should be last to override other colors
166
- props: {
167
- disableRipple: !1
168
- },
169
- style: {
170
- // Reset on touch devices, it doesn't add specificity
171
- "&:hover": {
172
- "@media (hover: none)": {
173
- backgroundColor: "transparent"
174
- }
175
- }
176
- }
177
- }]
178
- })));
179
- function bo(o, t) {
180
- return typeof t == "object" && t !== null ? o === t : String(o) === String(t);
181
- }
182
- const Co = /* @__PURE__ */ s(R, {
183
- checked: !0
184
- }), Ro = /* @__PURE__ */ s(R, {}), F = /* @__PURE__ */ l.forwardRef(function(t, a) {
185
- const n = Y({
186
- props: t,
187
- name: "MuiRadio"
188
- }), {
189
- checked: r,
190
- checkedIcon: g = Co,
191
- color: M = "primary",
192
- icon: v = Ro,
193
- name: U,
194
- onChange: D,
195
- size: f = "medium",
196
- className: V,
197
- disabled: G,
198
- disableRipple: _ = !1,
199
- slots: h = {},
200
- slotProps: S = {},
201
- inputProps: q,
202
- ...W
203
- } = n, k = eo();
204
- let i = G;
205
- k && typeof i > "u" && (i = k.disabled), i ?? (i = !1);
206
- const m = {
207
- ...n,
208
- disabled: i,
209
- disableRipple: _,
210
- color: M,
211
- size: f
212
- }, P = mo(m), c = uo();
213
- let y = r;
214
- const Z = no(D, c && c.onChange);
215
- let b = U;
216
- c && (typeof y > "u" && (y = bo(c.value, n.value)), typeof b > "u" && (b = c.name));
217
- const C = S.input ?? q, [A, H] = ao("root", {
218
- ref: a,
219
- elementType: yo,
220
- className: Q(P.root, V),
221
- shouldForwardComponentProp: !0,
222
- externalForwardedProps: {
223
- slots: h,
224
- slotProps: S,
225
- ...W
226
- },
227
- getSlotProps: (p) => ({
228
- ...p,
229
- onChange: (O, ...x) => {
230
- var z;
231
- (z = p.onChange) == null || z.call(p, O, ...x), Z(O, ...x);
232
- }
233
- }),
234
- ownerState: m,
235
- additionalProps: {
236
- type: "radio",
237
- icon: /* @__PURE__ */ l.cloneElement(v, {
238
- fontSize: v.props.fontSize ?? f
239
- }),
240
- checkedIcon: /* @__PURE__ */ l.cloneElement(g, {
241
- fontSize: g.props.fontSize ?? f
242
- }),
243
- disabled: i,
244
- name: b,
245
- checked: y,
246
- slots: h,
247
- slotProps: {
248
- // Do not forward `slotProps.root` again because it's already handled by the `RootSlot` in this file.
249
- input: typeof C == "function" ? C(m) : C
250
- }
251
- }
252
- });
253
- return /* @__PURE__ */ s(A, {
254
- ...H,
255
- classes: P
256
- });
257
- });
258
- process.env.NODE_ENV !== "production" && (F.propTypes = {
259
- // ┌────────────────────────────── Warning ──────────────────────────────┐
260
- // │ These PropTypes are generated from the TypeScript type definitions. │
261
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
262
- // └─────────────────────────────────────────────────────────────────────┘
263
- /**
264
- * If `true`, the component is checked.
265
- */
266
- checked: e.bool,
267
- /**
268
- * The icon to display when the component is checked.
269
- * @default <RadioButtonIcon checked />
270
- */
271
- checkedIcon: e.node,
272
- /**
273
- * Override or extend the styles applied to the component.
274
- */
275
- classes: e.object,
276
- /**
277
- * @ignore
278
- */
279
- className: e.string,
280
- /**
281
- * The color of the component.
282
- * It supports both default and custom theme colors, which can be added as shown in the
283
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
284
- * @default 'primary'
285
- */
286
- color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
287
- /**
288
- * If `true`, the component is disabled.
289
- */
290
- disabled: e.bool,
291
- /**
292
- * If `true`, the ripple effect is disabled.
293
- * @default false
294
- */
295
- disableRipple: e.bool,
296
- /**
297
- * The icon to display when the component is unchecked.
298
- * @default <RadioButtonIcon />
299
- */
300
- icon: e.node,
301
- /**
302
- * The id of the `input` element.
303
- */
304
- id: e.string,
305
- /**
306
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
307
- * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
308
- */
309
- inputProps: e.object,
310
- /**
311
- * Pass a ref to the `input` element.
312
- * @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
313
- */
314
- inputRef: so,
315
- /**
316
- * Name attribute of the `input` element.
317
- */
318
- name: e.string,
319
- /**
320
- * Callback fired when the state is changed.
321
- *
322
- * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
323
- * You can pull out the new value by accessing `event.target.value` (string).
324
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
325
- */
326
- onChange: e.func,
327
- /**
328
- * If `true`, the `input` element is required.
329
- * @default false
330
- */
331
- required: e.bool,
332
- /**
333
- * The size of the component.
334
- * `small` is equivalent to the dense radio styling.
335
- * @default 'medium'
336
- */
337
- size: e.oneOfType([e.oneOf(["medium", "small"]), e.string]),
338
- /**
339
- * The props used for each slot inside.
340
- * @default {}
341
- */
342
- slotProps: e.shape({
343
- input: e.oneOfType([e.func, e.object]),
344
- root: e.oneOfType([e.func, e.object])
345
- }),
346
- /**
347
- * The components used for each slot inside.
348
- * @default {}
349
- */
350
- slots: e.shape({
351
- input: e.elementType,
352
- root: e.elementType
353
- }),
354
- /**
355
- * The system prop that allows defining system overrides as well as additional CSS styles.
356
- */
357
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
358
- /**
359
- * The value of the component. The DOM API casts this to a string.
360
- */
361
- value: e.any
362
- });
363
- const $o = ({
364
- value: o,
365
- label: t,
366
- selected: a,
367
- onChange: n
368
- }) => /* @__PURE__ */ B(
369
- J,
370
- {
371
- elevation: 0,
372
- sx: {
373
- display: "flex",
374
- alignItems: "center",
375
- justifyContent: "space-between",
376
- border: "2px solid",
377
- borderColor: a ? "primary.main" : "#656565",
378
- borderRadius: "8px",
379
- px: 2,
380
- py: 1.5,
381
- cursor: "pointer",
382
- mb: 2
383
- },
384
- onClick: () => n({ target: { value: o } }),
385
- children: [
386
- /* @__PURE__ */ s(
387
- K,
388
- {
389
- variant: "lg",
390
- fontWeight: "bold",
391
- sx: { color: a ? "primary.main" : "#656565" },
392
- children: t
393
- }
394
- ),
395
- /* @__PURE__ */ s(F, { checked: a, value: o })
396
- ]
397
- }
398
- );
399
- export {
400
- $o as R,
401
- E as a
402
- };
@@ -1,56 +0,0 @@
1
- var f = Object.defineProperty;
2
- var a = (e, t, r) => t in e ? f(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var n = (e, t, r) => a(e, typeof t != "symbol" ? t + "" : t, r);
4
- import * as u from "react";
5
- import { u as i } from "./useEnhancedEffect-CJGo-L3B.js";
6
- import { P as s } from "./createTheme-CD19zQB7.js";
7
- function h(e) {
8
- const t = u.useRef(e);
9
- return i(() => {
10
- t.current = e;
11
- }), u.useRef((...r) => (
12
- // @ts-expect-error hide `this`
13
- (0, t.current)(...r)
14
- )).current;
15
- }
16
- const o = {};
17
- function l(e, t) {
18
- const r = u.useRef(o);
19
- return r.current === o && (r.current = e(t)), r;
20
- }
21
- const m = [];
22
- function p(e) {
23
- u.useEffect(e, m);
24
- }
25
- class c {
26
- constructor() {
27
- n(this, "currentId", null);
28
- n(this, "clear", () => {
29
- this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
30
- });
31
- n(this, "disposeEffect", () => this.clear);
32
- }
33
- static create() {
34
- return new c();
35
- }
36
- /**
37
- * Executes `fn` after `delay`, clearing any previously scheduled call.
38
- */
39
- start(t, r) {
40
- this.clear(), this.currentId = setTimeout(() => {
41
- this.currentId = null, r();
42
- }, t);
43
- }
44
- }
45
- function E() {
46
- const e = l(c.create).current;
47
- return p(e.disposeEffect), e;
48
- }
49
- const R = s.oneOfType([s.func, s.object]);
50
- export {
51
- c as T,
52
- h as a,
53
- l as b,
54
- R as r,
55
- E as u
56
- };