everest-npm-features 0.0.1 → 0.0.2

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 (250) hide show
  1. package/dist/ArrowDropDown-DRUQbGft.js +8 -0
  2. package/dist/ArrowRight-t-YgAHUn.js +8 -0
  3. package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
  4. package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
  5. package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
  6. package/dist/Cancel-BMPJ8ZAg.js +11 -0
  7. package/dist/CardContent-DEA5pnhr.js +141 -0
  8. package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
  9. package/dist/Close-mXCsZSxZ.js +8 -0
  10. package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
  11. package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
  12. package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
  13. package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
  14. package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
  15. package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
  16. package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
  17. package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
  18. package/dist/FormControlLabel-BMeMEwyK.js +738 -0
  19. package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
  20. package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
  21. package/dist/Grid2-B0mJbwjl.js +374 -0
  22. package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
  23. package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
  24. package/dist/Info-CkE3Gsf2.js +8 -0
  25. package/dist/InputAdornment-DZJP9Njd.js +169 -0
  26. package/dist/ListItemIcon-JAntieDc.js +82 -0
  27. package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
  28. package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
  29. package/dist/Paper-L8ipwfkc.js +183 -0
  30. package/dist/PlayArrow-D98xCL5M.js +21 -0
  31. package/dist/Portal-DxdKGEvu.js +86 -0
  32. package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
  33. package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
  34. package/dist/Stack-CkCveRRR.js +174 -0
  35. package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
  36. package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
  37. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  38. package/dist/assets/index.css +1 -1
  39. package/dist/assets/index10.css +1 -0
  40. package/dist/assets/index2.css +1 -1
  41. package/dist/assets/index3.css +1 -0
  42. package/dist/assets/index4.css +1 -0
  43. package/dist/assets/index5.css +1 -0
  44. package/dist/assets/index6.css +1 -0
  45. package/dist/assets/index7.css +1 -0
  46. package/dist/assets/index8.css +1 -0
  47. package/dist/assets/index9.css +1 -0
  48. package/dist/assets/{withThemeProvider.css → main.css} +1 -1
  49. package/dist/assets/styles.css +1 -1
  50. package/dist/assets/styles3.css +1 -0
  51. package/dist/auth-AwdxCQXF.js +46 -0
  52. package/dist/axios-BEX6n2A7.js +796 -0
  53. package/dist/bank-D2rGgUDP.js +23 -0
  54. package/dist/components/Account/index.d.ts +4 -0
  55. package/dist/components/Account/index.js +310 -0
  56. package/dist/components/History/index.d.ts +2 -0
  57. package/dist/components/History/index.js +804 -0
  58. package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
  59. package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
  60. package/dist/components/Profile/documents.js +19 -14
  61. package/dist/components/Profile/index.js +128 -135
  62. package/dist/components/Receive/index.js +25 -23
  63. package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
  64. package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
  65. package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
  66. package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
  67. package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
  68. package/dist/components/RocketRamp/Buy/form.js +26 -0
  69. package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
  70. package/dist/components/RocketRamp/Buy/index.js +29 -0
  71. package/dist/components/RocketRamp/Buy/types.d.ts +32 -0
  72. package/dist/components/RocketRamp/Buy/types.js +1 -0
  73. package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
  74. package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
  75. package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
  76. package/dist/components/RocketRamp/Dashboard/index.js +36 -0
  77. package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
  78. package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
  79. package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
  80. package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
  81. package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
  82. package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
  83. package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
  84. package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
  85. package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
  86. package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
  87. package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
  88. package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
  89. package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
  90. package/dist/components/RocketRamp/SignIn/index.js +82 -0
  91. package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
  92. package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
  93. package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
  94. package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
  95. package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
  96. package/dist/components/RocketRamp/SignIn/types.js +1 -0
  97. package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
  98. package/dist/components/RocketRamp/SignUp/email.js +70 -0
  99. package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
  100. package/dist/components/RocketRamp/SignUp/index.js +163 -0
  101. package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
  102. package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
  103. package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
  104. package/dist/components/RocketRamp/SignUp/summary.js +57 -0
  105. package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
  106. package/dist/components/RocketRamp/SignUp/types.js +1 -0
  107. package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
  108. package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
  109. package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
  110. package/dist/components/RocketRamp/Transactions/index.js +38 -0
  111. package/dist/components/Send/index.js +62 -51
  112. package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
  113. package/dist/components/Shared/ConnectWallet/index.js +25364 -0
  114. package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
  115. package/dist/components/Shared/HistoryItem/index.js +120 -0
  116. package/dist/components/Shared/Keyboard/keyboard.js +3 -3
  117. package/dist/components/Shared/TokenModal/index.d.ts +10 -0
  118. package/dist/components/Shared/TokenModal/index.js +104 -0
  119. package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
  120. package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
  121. package/dist/components/Shared/addBank.d.ts +2 -0
  122. package/dist/components/Shared/addBank.js +172 -0
  123. package/dist/components/Shared/button.js +1 -1
  124. package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
  125. package/dist/components/Shared/connectPlaidBank.js +57 -0
  126. package/dist/components/Shared/incode.js +34 -32
  127. package/dist/components/Shared/inputField.js +1 -1
  128. package/dist/components/Shared/noData.d.ts +4 -0
  129. package/dist/components/Shared/noData.js +14 -0
  130. package/dist/components/Shared/pin.js +3 -3
  131. package/dist/components/Shared/step.js +2 -2
  132. package/dist/components/Shared/tooltip.d.ts +4 -0
  133. package/dist/components/Shared/tooltip.js +2107 -0
  134. package/dist/components/Shared/transition.js +1 -1
  135. package/dist/components/SignIn/index.js +26 -24
  136. package/dist/components/SignUp/index.js +108 -348
  137. package/dist/components/SignUp/pin.js +116 -844
  138. package/dist/components/SignUp/privacy.js +3 -3
  139. package/dist/components/SignUp/terms.js +3 -3
  140. package/dist/components/SignUp/types.d.ts +0 -1
  141. package/dist/components/SignUp/userInfo.js +4 -4
  142. package/dist/components/Stake/gems/index.d.ts +2 -0
  143. package/dist/components/Stake/gems/index.js +214 -0
  144. package/dist/components/Stake/id/index.d.ts +2 -0
  145. package/dist/components/Stake/id/index.js +233 -0
  146. package/dist/components/Stake/index.d.ts +5 -0
  147. package/dist/components/Stake/index.js +346 -0
  148. package/dist/components/Swap/index.d.ts +2 -0
  149. package/dist/components/Swap/index.js +489 -0
  150. package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
  151. package/dist/components/SwapAndUniSwap/index.js +43 -0
  152. package/dist/components/WalletPortfolio/index.js +191 -263
  153. package/dist/components/WalletPortfolio/tokenRow.js +8 -5
  154. package/dist/constants-d3SWzaRo.js +3981 -0
  155. package/dist/countries-BVn1FubK.js +1925 -0
  156. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
  157. package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
  158. package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
  159. package/dist/data/countries.json.d.ts +1925 -0
  160. package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
  161. package/dist/dividerClasses-SUAUDDqL.js +10 -0
  162. package/dist/{documents-CL4Ajr_B.js → documents-2UqIXbDq.js} +130 -129
  163. package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
  164. package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
  165. package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
  166. package/dist/generic-token-B_ptO5yb.js +4 -0
  167. package/dist/hoc/withThemeProvider.js +33 -32
  168. package/dist/hooks/useDialog/index.js +4 -4
  169. package/dist/hooks/useSnackBar.js +63 -60
  170. package/dist/icons/buyIcon.d.ts +2 -0
  171. package/dist/icons/buyIcon.js +19 -0
  172. package/dist/icons/canceledBuyIcon.d.ts +2 -0
  173. package/dist/icons/canceledBuyIcon.js +34 -0
  174. package/dist/icons/canceledRedeemIcon.d.ts +2 -0
  175. package/dist/icons/canceledRedeemIcon.js +35 -0
  176. package/dist/icons/failedBuyIcon.d.ts +2 -0
  177. package/dist/icons/failedBuyIcon.js +48 -0
  178. package/dist/icons/failedRedeemIcon.d.ts +2 -0
  179. package/dist/icons/failedRedeemIcon.js +48 -0
  180. package/dist/icons/pendingBuyIcon.d.ts +2 -0
  181. package/dist/icons/pendingBuyIcon.js +38 -0
  182. package/dist/icons/pendingRedeemIcon.d.ts +2 -0
  183. package/dist/icons/pendingRedeemIcon.js +34 -0
  184. package/dist/icons/redeemIcon.d.ts +2 -0
  185. package/dist/icons/redeemIcon.js +19 -0
  186. package/dist/index-B8QKlEgj.js +37095 -0
  187. package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
  188. package/dist/index-C3FYdQkQ.js +4050 -0
  189. package/dist/index-CrajlEO_.js +576 -0
  190. package/dist/index-DxLB0ZV1.js +760 -0
  191. package/dist/index-TElEjliR.js +9 -0
  192. package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
  193. package/dist/index-ceeCtFuh.js +136 -0
  194. package/dist/index.esm-BsMAMhYW.js +237 -0
  195. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  196. package/dist/isMuiElement-DnSE4qG4.js +13 -0
  197. package/dist/main.d.ts +99 -0
  198. package/dist/main.js +34 -12
  199. package/dist/moment-h96o7c8I.js +2578 -0
  200. package/dist/order-Cry6kuj8.js +23 -0
  201. package/dist/ownerWindow-C-760D__.js +7 -0
  202. package/dist/providers/metaMask.d.ts +6 -0
  203. package/dist/providers/metaMask.js +24 -0
  204. package/dist/react-redux-B4BZippc.js +255 -0
  205. package/dist/react-webcam-B3cXh1XT.js +267 -0
  206. package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
  207. package/dist/rr-primary-logo-CqI24c8v.js +4 -0
  208. package/dist/stake-Q_O90kTv.js +17 -0
  209. package/dist/store.d.ts +65 -0
  210. package/dist/store.js +1 -0
  211. package/dist/styled-BTIMwpiX.js +5 -0
  212. package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
  213. package/dist/styles.module-O5VVND5e.js +22 -0
  214. package/dist/tokenRow-CgnPD-4U.js +206 -0
  215. package/dist/useControlled-BYdyS7Pn.js +31 -0
  216. package/dist/useFormControl-CfmEP6sW.js +18 -0
  217. package/dist/useSlot-DaP6eodX.js +50 -0
  218. package/dist/useTheme-BghcbbEW.js +9 -0
  219. package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
  220. package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
  221. package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
  222. package/dist/useTimeout-D29bZ7Gz.js +56 -0
  223. package/dist/user-Dzur3Cro.js +24 -0
  224. package/dist/util/constants.d.ts +48 -0
  225. package/dist/util/constants.js +69 -21
  226. package/dist/util/conversions.js +54 -22271
  227. package/dist/util/functions.d.ts +5 -0
  228. package/dist/util/functions.js +81 -24
  229. package/dist/util/regex.d.ts +3 -0
  230. package/dist/util/regex.js +6 -0
  231. package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
  232. package/dist/wallet-Dw896DF7.js +35 -0
  233. package/dist/web3-u4qDZYpo.js +22328 -0
  234. package/package.json +8 -3
  235. package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
  236. package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
  237. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  238. package/dist/auth-Cj5FKr_m.js +0 -19
  239. package/dist/axios-xPiQW9EP.js +0 -118114
  240. package/dist/defaultTheme-OIfL8Ia7.js +0 -5
  241. package/dist/dividerClasses-Z7VLlu5C.js +0 -10
  242. package/dist/index-DKTkUdik.js +0 -6
  243. package/dist/react-redux-VW99uJjf.js +0 -5908
  244. package/dist/react-webcam-Cov1TP0q.js +0 -639
  245. package/dist/styled-Da6GnxEE.js +0 -5
  246. package/dist/tokenRow-Cdd_jFjp.js +0 -206
  247. package/dist/useFormControl-Bo6Tf_xo.js +0 -46
  248. package/dist/useSlot-CURNJ3JC.js +0 -306
  249. package/dist/useTheme-DWRMvRU8.js +0 -9
  250. package/dist/useTimeout-lr7ryrda.js +0 -75
@@ -0,0 +1,81 @@
1
+ import { jsxs as t, Fragment as g, jsx as e } from "react/jsx-runtime";
2
+ import { useState as h, useEffect as v } from "react";
3
+ import "../../../constants-d3SWzaRo.js";
4
+ import { l as x } from "../../../auth-AwdxCQXF.js";
5
+ import l from "../Shared/Button/index.js";
6
+ import y from "../Shared/Input/index.js";
7
+ import { isValidEmail as m } from "../../../util/functions.js";
8
+ import { S as d } from "../../../Stack-CkCveRRR.js";
9
+ import { T as i } from "../../../Typography-Dx54MRM5.js";
10
+ import { B as E } from "../../../Box-BOgpENcC.js";
11
+ const P = ({
12
+ showAlertMessage: n,
13
+ loader: c,
14
+ email: r,
15
+ setEmail: p,
16
+ navigate: f,
17
+ dispatch: u
18
+ }) => {
19
+ const [a, s] = h(!1);
20
+ return v(() => {
21
+ s(r ? !m(r) : !1);
22
+ }, [r]), /* @__PURE__ */ t(g, { children: [
23
+ /* @__PURE__ */ t(d, { direction: "column", spacing: 1.5, children: [
24
+ /* @__PURE__ */ e(
25
+ i,
26
+ {
27
+ variant: "h4",
28
+ sx: {
29
+ fontSize: { xs: "1.5rem", md: "2rem" },
30
+ fontWeight: 700
31
+ },
32
+ children: "Login"
33
+ }
34
+ ),
35
+ /* @__PURE__ */ e(i, { variant: "body1", sx: { marginTop: "0.5rem" }, children: "Enter your credentials to log in" })
36
+ ] }),
37
+ /* @__PURE__ */ e(E, { component: "form", onSubmit: (o) => {
38
+ if (o.preventDefault(), !r)
39
+ return n({ message: "Please provide email address." }), !1;
40
+ if (!m(r))
41
+ return n({ message: "Please provide valid email address." }), !1;
42
+ u(x(r));
43
+ }, width: "100%", children: /* @__PURE__ */ t(d, { direction: "column", spacing: 2, children: [
44
+ /* @__PURE__ */ e(
45
+ y,
46
+ {
47
+ value: r,
48
+ label: "E-mail address",
49
+ onChange: (o) => p(o.target.value),
50
+ error: a,
51
+ fullWidth: !0
52
+ }
53
+ ),
54
+ /* @__PURE__ */ e(
55
+ l,
56
+ {
57
+ type: "submit",
58
+ fullWidth: !0,
59
+ disabled: !r || a,
60
+ isLoading: c,
61
+ children: "Login"
62
+ }
63
+ ),
64
+ /* @__PURE__ */ e(i, { variant: "xs", align: "center", children: "Not registered yet?" }),
65
+ /* @__PURE__ */ e(
66
+ l,
67
+ {
68
+ variant: "outlined",
69
+ onClick: () => f("/signup"),
70
+ sx: {
71
+ color: "primary"
72
+ },
73
+ children: "Create a new account"
74
+ }
75
+ )
76
+ ] }) })
77
+ ] });
78
+ };
79
+ export {
80
+ P as default
81
+ };
@@ -0,0 +1,3 @@
1
+ import { OtpFormProps } from './types';
2
+ declare const OtpForm: ({ showAlertMessage, loader, otpLoader, email, dispatch, }: OtpFormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default OtpForm;
@@ -0,0 +1,112 @@
1
+ import { jsxs as i, Fragment as k, jsx as t } from "react/jsx-runtime";
2
+ import h from "../Shared/Button/index.js";
3
+ import I from "../Shared/Input/index.js";
4
+ import { useState as m, useEffect as p } from "react";
5
+ import "../../../constants-d3SWzaRo.js";
6
+ import { l as O, b as C } from "../../../auth-AwdxCQXF.js";
7
+ import { RESEND_EMAIL_TIMER as g } from "../../../util/constants.js";
8
+ import { S as o } from "../../../Stack-CkCveRRR.js";
9
+ import { T as a } from "../../../Typography-Dx54MRM5.js";
10
+ import { B as P } from "../../../Box-BOgpENcC.js";
11
+ const $ = ({
12
+ showAlertMessage: s,
13
+ loader: v,
14
+ otpLoader: y,
15
+ email: d,
16
+ dispatch: c
17
+ }) => {
18
+ const [e, x] = m(""), [S, u] = m(!1), [n, f] = m(g);
19
+ p(() => {
20
+ if (n === 0) return;
21
+ const r = setInterval(() => {
22
+ f((l) => l - 1);
23
+ }, 1e3);
24
+ return () => clearInterval(r);
25
+ }, [n]), p(() => {
26
+ u(e ? e.length !== 6 : !1);
27
+ }, [e]);
28
+ const E = () => {
29
+ c(O(d)), f(g), s({
30
+ message: "A new OTP has been send to the given email address.",
31
+ type: "success",
32
+ duration: 6e3
33
+ });
34
+ }, b = (r) => {
35
+ const l = Math.floor(r / 60), R = r % 60;
36
+ return `${String(l).padStart(2, "0")}:${String(
37
+ R
38
+ ).padStart(2, "0")}`;
39
+ }, T = () => {
40
+ if (!e)
41
+ return s({ message: "Please provide OTP." }), !1;
42
+ if (e.length !== 6)
43
+ return s({ message: "OTP should be 6-digit." }), !1;
44
+ c(C({ email: d, otp: e }));
45
+ };
46
+ return /* @__PURE__ */ i(k, { children: [
47
+ /* @__PURE__ */ i(o, { direction: "column", spacing: 1.5, children: [
48
+ /* @__PURE__ */ t(
49
+ a,
50
+ {
51
+ variant: "h4",
52
+ sx: {
53
+ fontSize: { xs: "1.5rem", md: "2rem" },
54
+ fontWeight: 700
55
+ },
56
+ children: "Verify your identity"
57
+ }
58
+ ),
59
+ /* @__PURE__ */ i(a, { variant: "body1", sx: { marginTop: "0.5rem" }, children: [
60
+ "Please check your email ",
61
+ d,
62
+ " and enter the code in the field below within the next 5 minutes."
63
+ ] })
64
+ ] }),
65
+ /* @__PURE__ */ i(P, { width: "100%", children: [
66
+ /* @__PURE__ */ t(o, { direction: "column", spacing: 2, children: /* @__PURE__ */ t(
67
+ I,
68
+ {
69
+ value: e,
70
+ label: "Enter code",
71
+ placeholder: "Enter code sent via Email",
72
+ onChange: (r) => x(r.target.value),
73
+ error: S,
74
+ fullWidth: !0
75
+ }
76
+ ) }),
77
+ /* @__PURE__ */ i(o, { direction: "column", alignItems: "center", spacing: 2, my: "1.2rem", children: [
78
+ /* @__PURE__ */ t(a, { variant: "body1", children: "Didn't receive the code?" }),
79
+ n > 0 && /* @__PURE__ */ i(a, { variant: "body2", mt: 1, children: [
80
+ " ",
81
+ "You can ask for another one in ",
82
+ b(n)
83
+ ] }),
84
+ /* @__PURE__ */ t(
85
+ h,
86
+ {
87
+ onClick: E,
88
+ customSize: "medium",
89
+ isText: !0,
90
+ sx: { padding: "0px", height: "2rem" },
91
+ disabled: n > 0,
92
+ isLoading: v,
93
+ children: "Resend Email"
94
+ }
95
+ )
96
+ ] }),
97
+ /* @__PURE__ */ t(o, { direction: "row", spacing: 2, justifyContent: "flex-end", children: /* @__PURE__ */ t(
98
+ h,
99
+ {
100
+ onClick: T,
101
+ fullWidth: !0,
102
+ disabled: !e,
103
+ isLoading: y,
104
+ children: "Confirm"
105
+ }
106
+ ) })
107
+ ] })
108
+ ] });
109
+ };
110
+ export {
111
+ $ as default
112
+ };
@@ -0,0 +1,22 @@
1
+ import { AuthActionTypes } from 'everest-npm-api';
2
+ import { Dispatch } from 'react';
3
+ export interface SignInProps {
4
+ navigate: any;
5
+ onLogin: (uuid: string, token: string) => void;
6
+ navigatePath?: string;
7
+ }
8
+ export interface LoginFormProps {
9
+ navigate: any;
10
+ showAlertMessage: any;
11
+ loader: boolean;
12
+ email: string;
13
+ setEmail: React.Dispatch<React.SetStateAction<string>>;
14
+ dispatch: Dispatch<AuthActionTypes>;
15
+ }
16
+ export interface OtpFormProps {
17
+ showAlertMessage: any;
18
+ loader: boolean;
19
+ otpLoader: boolean;
20
+ email: string;
21
+ dispatch: Dispatch<AuthActionTypes>;
22
+ }
@@ -0,0 +1,3 @@
1
+ import { EmailProps } from './types';
2
+ declare const Email: ({ showAlertMessage, loader, validationError, registerInfo, setRegisterInfo, navigate, dispatch, }: EmailProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Email;
@@ -0,0 +1,70 @@
1
+ import { jsxs as s, Fragment as g, jsx as r } from "react/jsx-runtime";
2
+ import { useState as v, useEffect as x } from "react";
3
+ import n from "../Shared/Button/index.js";
4
+ import k from "../Shared/Input/index.js";
5
+ import { isValidEmail as c } from "../../../util/functions.js";
6
+ import "../../../constants-d3SWzaRo.js";
7
+ import { c as E } from "../../../auth-AwdxCQXF.js";
8
+ import { T as R } from "../../../Typography-Dx54MRM5.js";
9
+ import { B as y } from "../../../Box-BOgpENcC.js";
10
+ import { S } from "../../../Stack-CkCveRRR.js";
11
+ const I = ({
12
+ showAlertMessage: a,
13
+ loader: i,
14
+ validationError: m,
15
+ registerInfo: d,
16
+ setRegisterInfo: f,
17
+ navigate: p,
18
+ dispatch: u
19
+ }) => {
20
+ const e = d.email, [o, l] = v(!1);
21
+ return x(() => {
22
+ l(e ? !c(e) : !1);
23
+ }, [e]), /* @__PURE__ */ s(g, { children: [
24
+ /* @__PURE__ */ r(R, { variant: "lg", children: "Add your email" }),
25
+ /* @__PURE__ */ r(y, { component: "form", onSubmit: (t) => {
26
+ if (t.preventDefault(), !e)
27
+ return a({ message: "Please provide email address." }), !1;
28
+ if (!c(e))
29
+ return a({ message: "Please provide valid email address." }), !1;
30
+ u(
31
+ E({
32
+ email: e
33
+ })
34
+ );
35
+ }, width: "100%", children: /* @__PURE__ */ s(S, { direction: "column", gap: 2, children: [
36
+ /* @__PURE__ */ r(
37
+ k,
38
+ {
39
+ value: e,
40
+ label: "E-mail address",
41
+ onChange: (t) => f((h) => ({ ...h, email: t.target.value })),
42
+ error: o || !!m,
43
+ errorText: m,
44
+ fullWidth: !0
45
+ }
46
+ ),
47
+ /* @__PURE__ */ r(
48
+ n,
49
+ {
50
+ type: "submit",
51
+ disabled: !e || o || i,
52
+ isLoading: i,
53
+ children: "Next"
54
+ }
55
+ ),
56
+ /* @__PURE__ */ r(
57
+ n,
58
+ {
59
+ isText: !0,
60
+ customSize: "medium",
61
+ onClick: () => p("/"),
62
+ children: "Already have an account?"
63
+ }
64
+ )
65
+ ] }) })
66
+ ] });
67
+ };
68
+ export {
69
+ I as default
70
+ };
@@ -0,0 +1,3 @@
1
+ import { SignUpProps } from './types';
2
+ declare const _default: import('react').FC<SignUpProps & import('../../../hoc/withThemeProvider').WithThemeProviderProps>;
3
+ export default _default;
@@ -0,0 +1,163 @@
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import { useState as F, useEffect as u } from "react";
3
+ import { useSnackBar as _ } from "../../../hooks/useSnackBar.js";
4
+ import { u as b, a as C } from "../../../react-redux-B4BZippc.js";
5
+ import T from "../../../hoc/withThemeProvider.js";
6
+ import { L as q } from "../../../rr-primary-logo-CqI24c8v.js";
7
+ import D from "./email.js";
8
+ import I from "./personalInfo.js";
9
+ import L from "./summary.js";
10
+ import W from "./validateEmail.js";
11
+ import "../../../constants-d3SWzaRo.js";
12
+ import { a as j, u as A, r as V, v as O, l as z } from "../../../auth-AwdxCQXF.js";
13
+ import { C as J } from "../../../Container-BOehNoF1.js";
14
+ import { B as E } from "../../../Box-BOgpENcC.js";
15
+ import { S as v } from "../../../Stack-CkCveRRR.js";
16
+ import { T as h } from "../../../Typography-Dx54MRM5.js";
17
+ const M = ({ onRegister: w, navigate: g, navigatePath: x }) => {
18
+ const t = b(), r = C((n) => n.session), m = window.location.hostname.split("."), l = m.length > 2 ? m.slice(0, m.length - 2).join(".") : "Jupiter_test_store001", a = r.loader, R = r.validationError, S = r.screen, B = r.otpLoader, c = r.uuid, p = r.token, d = r.error, N = 4, { showAlertMessage: s, snackBar: k } = _(), [e, y] = F({
19
+ email: "",
20
+ username: "",
21
+ firstName: "",
22
+ lastName: "",
23
+ phone: ""
24
+ });
25
+ u(() => () => {
26
+ t(j());
27
+ }, []), u(() => {
28
+ c && p && (w(c, p), g(x || "/dashboard"));
29
+ }, [c, p]), u(() => {
30
+ d && s({ message: d });
31
+ }, [d]);
32
+ const f = (n) => {
33
+ t(A(n));
34
+ };
35
+ return /* @__PURE__ */ i(
36
+ J,
37
+ {
38
+ maxWidth: "sm",
39
+ component: "div",
40
+ sx: {
41
+ zIndex: 10,
42
+ position: "relative",
43
+ paddingTop: "2.5rem",
44
+ display: "flex",
45
+ flexDirection: "column"
46
+ // alignItems: "center",
47
+ },
48
+ children: [
49
+ k,
50
+ /* @__PURE__ */ o(E, { sx: { marginTop: "0.5rem", marginBottom: "2.25rem" }, children: /* @__PURE__ */ o("img", { alt: "RocketRamp logo", src: q }) }),
51
+ /* @__PURE__ */ i(
52
+ E,
53
+ {
54
+ sx: {
55
+ flex: 1,
56
+ width: "100%",
57
+ flexDirection: "column",
58
+ gap: "1.5rem",
59
+ padding: { xs: "1rem", md: "2rem" },
60
+ backgroundColor: "#FFFFFF",
61
+ //theme.palette.grey[100], // Adjust for MUI theme
62
+ borderRadius: "1rem",
63
+ boxShadow: "0px 0px 64px 0px rgba(247, 247, 248, 1)",
64
+ display: "flex"
65
+ },
66
+ children: [
67
+ /* @__PURE__ */ i(v, { direction: "column", spacing: 1.5, children: [
68
+ /* @__PURE__ */ o(h, { variant: "2xl", fontWeight: 600, children: "Create New Account" }),
69
+ /* @__PURE__ */ i(v, { direction: "row", gap: "0.25rem", children: [
70
+ /* @__PURE__ */ i(h, { variant: "md", fontWeight: 500, children: [
71
+ "Step ",
72
+ S
73
+ ] }),
74
+ /* @__PURE__ */ i(h, { variant: "md", fontWeight: 200, children: [
75
+ "of ",
76
+ N
77
+ ] })
78
+ ] })
79
+ ] }),
80
+ {
81
+ 1: /* @__PURE__ */ o(
82
+ D,
83
+ {
84
+ showAlertMessage: s,
85
+ loader: a,
86
+ registerInfo: e,
87
+ setRegisterInfo: y,
88
+ navigate: g,
89
+ dispatch: t,
90
+ validationError: R,
91
+ setCurrentStep: f
92
+ }
93
+ ),
94
+ 2: /* @__PURE__ */ o(
95
+ I,
96
+ {
97
+ showAlertMessage: s,
98
+ loader: a,
99
+ registerInfo: e,
100
+ dispatch: t,
101
+ setRegisterInfo: y,
102
+ setCurrentStep: f,
103
+ validationError: R
104
+ }
105
+ ),
106
+ 3: /* @__PURE__ */ o(
107
+ L,
108
+ {
109
+ showAlertMessage: s,
110
+ loader: a,
111
+ registerInfo: e,
112
+ storeName: l,
113
+ setCurrentStep: f,
114
+ initRegister: () => {
115
+ t(
116
+ V({
117
+ first_name: e.firstName,
118
+ last_name: e.lastName,
119
+ email: e.email,
120
+ username: e.username,
121
+ phone: "+1" + e.phone,
122
+ storename: l
123
+ })
124
+ );
125
+ }
126
+ }
127
+ ),
128
+ 4: /* @__PURE__ */ o(
129
+ W,
130
+ {
131
+ showAlertMessage: s,
132
+ loader: a,
133
+ otpLoader: B,
134
+ registerInfo: e,
135
+ initVerifyRegister: (n) => {
136
+ t(
137
+ O({
138
+ first_name: e.firstName,
139
+ last_name: e.lastName,
140
+ email: e.email,
141
+ username: e.username,
142
+ phone: "+1" + e.phone,
143
+ storename: l,
144
+ otp: n
145
+ })
146
+ );
147
+ },
148
+ initReSendOtp: () => {
149
+ t(z(e.email));
150
+ }
151
+ }
152
+ )
153
+ }[S]
154
+ ]
155
+ }
156
+ )
157
+ ]
158
+ }
159
+ );
160
+ }, ce = T(M);
161
+ export {
162
+ ce as default
163
+ };
@@ -0,0 +1,3 @@
1
+ import { PersonalInfoProps } from './types';
2
+ declare const PersonalInfo: ({ showAlertMessage, loader, registerInfo, setRegisterInfo, setCurrentStep, dispatch, validationError, }: PersonalInfoProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default PersonalInfo;