everest-npm-features 0.0.5 → 0.0.7

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.
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { C as b } from "../../../index-zP3Vu4Cl.js";
3
+ import { C as b } from "../../../index-CX4sR9ID.js";
4
4
  import "../../../index-ceeCtFuh.js";
5
5
  import "../Shared/backBtn.js";
6
6
  import "../../../util/functions.js";
@@ -3,7 +3,7 @@ import "react";
3
3
  import "../Shared/backBtn.js";
4
4
  import "../../../util/functions.js";
5
5
  import "../../../util/constants.js";
6
- import { a as b } from "../../../index-zP3Vu4Cl.js";
6
+ import { a as b } from "../../../index-CX4sR9ID.js";
7
7
  import "../Shared/Button/index.js";
8
8
  import "../../../constants-Bg2zYFVK.js";
9
9
  import "../../../order-CtACU1eX.js";
@@ -10,7 +10,7 @@ import "../../../order-CtACU1eX.js";
10
10
  import "../../Shared/tooltip.js";
11
11
  import "../../../util/functions.js";
12
12
  import "../Shared/Button/index.js";
13
- import { B as w } from "../../../index-zP3Vu4Cl.js";
13
+ import { B as w } from "../../../index-CX4sR9ID.js";
14
14
  import "../../../Grid2-B0mJbwjl.js";
15
15
  import "../../../Box-BOgpENcC.js";
16
16
  import "../../../Typography-Dx54MRM5.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../hoc/withThemeProvider.js";
4
- import { b as K, F as L, M as T, P as c, i as g } from "../../../index-zP3Vu4Cl.js";
4
+ import { b as K, F as L, M as T, P as c, i as g } from "../../../index-CX4sR9ID.js";
5
5
  import "../../../util/constants.js";
6
6
  import "@incodetech/welcome";
7
7
  import "../../../axios-BEX6n2A7.js";
@@ -1,10 +1,10 @@
1
1
  import { jsxs as r, Fragment as $, jsx as t } from "react/jsx-runtime";
2
- import { useState as E } from "react";
3
- import { h as R } from "../../../moment-h96o7c8I.js";
4
- import { TOKEN_TO_FIAT as x, TOKEN_TO_TOKEN as g, FIAT_WITHDRAW as z, IBAN_CREATION as w, BANK_DEPOSIT as O, BANK_TRANSFER as S, FIAT_TO_TOKEN as P, FIAT_TO_EVER_ID as H, HISTORY_BUY_ICON as k, HISTORY_SELL_ICON as T, HISTORY_SWAP_ICON as K } from "../../../util/constants.js";
2
+ import { useState as W } from "react";
3
+ import { h as E } from "../../../moment-h96o7c8I.js";
4
+ import { TOKEN_TO_FIAT as x, TOKEN_TO_TOKEN as g, FIAT_WITHDRAW as z, IBAN_CREATION as O, BANK_DEPOSIT as w, BANK_TRANSFER as S, FIAT_TO_TOKEN as P, FIAT_TO_EVER_ID as H, HISTORY_BUY_ICON as k, HISTORY_SELL_ICON as T, HISTORY_SWAP_ICON as K } from "../../../util/constants.js";
5
5
  import { getTransactionStatusLabel as L, getCurrencySymbol as h } from "../../../util/functions.js";
6
- import { A as j } from "../../../ArrowRight-t-YgAHUn.js";
7
- import M from "../transition.js";
6
+ import { A as M } from "../../../ArrowRight-t-YgAHUn.js";
7
+ import j from "../transition.js";
8
8
  import { C as Y } from "../../../Close-mXCsZSxZ.js";
9
9
  import { B as G } from "../../../Box-BOgpENcC.js";
10
10
  import { G as o } from "../../../Grid2-B0mJbwjl.js";
@@ -18,28 +18,30 @@ import '../../../assets/index5.css';const Q = "_item_zbw2v_1", f = {
18
18
  "status-not_approved": "_status-not_approved_zbw2v_23",
19
19
  "status-complete": "_status-complete_zbw2v_31",
20
20
  "close-btn": "_close-btn_zbw2v_39"
21
- }, ue = (D) => {
21
+ }, X = {
22
+ "USDR.c": "Orion Point"
23
+ }, me = (D) => {
22
24
  var A, v, N, F;
23
- const [B, y] = E(!1), e = D.data;
25
+ const [B, y] = W(!1), e = D.data;
24
26
  if (![
25
27
  P,
26
28
  H,
27
29
  x,
28
30
  g,
29
31
  z,
30
- w,
32
+ O,
31
33
  S,
32
- O
34
+ w
33
35
  ].includes(e.transaction_type))
34
36
  return null;
35
- const b = L(e.transaction_status), I = R(e.created_at).format("DD MMM yyyy, H:mm");
37
+ const b = L(e.transaction_status), I = E(e.created_at).format("DD MMM yyyy, H:mm");
36
38
  let n = h(e.currency_code_in);
37
39
  e.transaction_type === x && (n = h(e.currency_code_out));
38
- let d = "Amount Received", l = "Bought", _ = "Amount Paid", c = k, u = e.token_out, a = n + (e.currency_in_amount * 1).toFixed(2), s = (e.token_out_amount * 1).toFixed(5) + " " + e.token_out, m = "5-40 minutes", p = `${n}${(e.total_fee * 1).toFixed(2)}`;
39
- e.transaction_type === x ? (l = "Sold", _ = "Amount Sent", c = T, u = e.token_in, a = (e.token_in_amount * 1).toFixed(5) + " " + e.token_in, s = (e.currency_out_amount * 1).toFixed(2) + " " + e.currency_code_out + ".c") : e.transaction_type === g ? (l = "Swapped", c = K, a = `${(e.amount * 1).toFixed(5)} ${e.token_in}`, p = `$${(e.total_fee * 1).toFixed(2)}`) : e.transaction_type === z ? (n = h(e.currency_code_out), l = "Withdraw", u = "", c = T, m = "2-3 days", a = `${(e.amount * 1).toFixed(5)} ${e.currency_code_out}.c`, s = n + (e.currency_out_amount * 1).toFixed(2), p = `${n}${(e.total_fee * 1).toFixed(2)}`) : e.transaction_type === w ? (d = "Item Purchased", s = "IBAN subscription") : e.transaction_type === O ? (n = h(e.currency_code_in), l = "Bank Deposit", u = "", c = k, m = "2-3 hours", p = `${n}${(e.total_fee * 1).toFixed(2)}`, _ = "Deposit Amount", a = `${n}${(e.amount * 1).toFixed(2)}`, d = "Deposit Info", s = `${(A = e == null ? void 0 : e.payment) == null ? void 0 : A.account_number} (${(v = e == null ? void 0 : e.payment) == null ? void 0 : v.recipient_first_name} ${(N = e == null ? void 0 : e.payment) == null ? void 0 : N.recipient_last_name})`) : e.transaction_type === S && (n = h(e.currency_code_out), l = "Bank Withdraw", u = "", c = T, m = "2-3 hours", p = `${n}${(e.total_fee * 1).toFixed(2)}`, _ = "Withdraw Amount", a = `${n}${(e.amount * 1).toFixed(2)}`, d = "Withdraw IBAN", s = (F = e == null ? void 0 : e.payout) == null ? void 0 : F.account_number), (e.transaction_status === "failed" || e.transaction_status === "rejected") && (m = "N/A");
40
- const i = ({ label: C, value: W }) => /* @__PURE__ */ r($, { children: [
40
+ let _ = "Amount Received", l = "Bought", u = "Amount Paid", c = k, d = X[e.token_out] || e.token_out, a = n + (e.currency_in_amount * 1).toFixed(2), s = parseFloat((e.token_out_amount * 1).toFixed(5)) + " " + d, m = "5-40 minutes", p = `${n}${(e.total_fee * 1).toFixed(2)}`;
41
+ e.transaction_type === x ? (l = "Sold", u = "Amount Sent", c = T, d = e.token_in, a = (e.token_in_amount * 1).toFixed(5) + " " + e.token_in, s = (e.currency_out_amount * 1).toFixed(2) + " " + e.currency_code_out + ".c") : e.transaction_type === g ? (l = "Swapped", c = K, a = `${(e.amount * 1).toFixed(5)} ${e.token_in}`, p = `$${(e.total_fee * 1).toFixed(2)}`) : e.transaction_type === z ? (n = h(e.currency_code_out), l = "Withdraw", d = "", c = T, m = "2-3 days", a = `${(e.amount * 1).toFixed(5)} ${e.currency_code_out}.c`, s = n + (e.currency_out_amount * 1).toFixed(2), p = `${n}${(e.total_fee * 1).toFixed(2)}`) : e.transaction_type === O ? (_ = "Item Purchased", s = "IBAN subscription") : e.transaction_type === w ? (n = h(e.currency_code_in), l = "Bank Deposit", d = "", c = k, m = "2-3 hours", p = `${n}${(e.total_fee * 1).toFixed(2)}`, u = "Deposit Amount", a = `${n}${(e.amount * 1).toFixed(2)}`, _ = "Deposit Info", s = `${(A = e == null ? void 0 : e.payment) == null ? void 0 : A.account_number} (${(v = e == null ? void 0 : e.payment) == null ? void 0 : v.recipient_first_name} ${(N = e == null ? void 0 : e.payment) == null ? void 0 : N.recipient_last_name})`) : e.transaction_type === S && (n = h(e.currency_code_out), l = "Bank Withdraw", d = "", c = T, m = "2-3 hours", p = `${n}${(e.total_fee * 1).toFixed(2)}`, u = "Withdraw Amount", a = `${n}${(e.amount * 1).toFixed(2)}`, _ = "Withdraw IBAN", s = (F = e == null ? void 0 : e.payout) == null ? void 0 : F.account_number), (e.transaction_status === "failed" || e.transaction_status === "rejected") && (m = "N/A");
42
+ const i = ({ label: C, value: R }) => /* @__PURE__ */ r($, { children: [
41
43
  /* @__PURE__ */ t(o, { size: 6, children: /* @__PURE__ */ t("strong", { children: C }) }),
42
- /* @__PURE__ */ t(o, { className: "fw500 text-right", size: 6, children: W })
44
+ /* @__PURE__ */ t(o, { className: "fw500 text-right", size: 6, children: R })
43
45
  ] });
44
46
  return /* @__PURE__ */ r($, { children: [
45
47
  /* @__PURE__ */ r(G, { className: f.item, onClick: () => y(!0), children: [
@@ -48,15 +50,15 @@ import '../../../assets/index5.css';const Q = "_item_zbw2v_1", f = {
48
50
  /* @__PURE__ */ t(o, { size: { xs: 5, md: 5.5 }, children: /* @__PURE__ */ r("strong", { children: [
49
51
  l,
50
52
  " ",
51
- u
53
+ d
52
54
  ] }) }),
53
55
  /* @__PURE__ */ t(o, { size: { xs: 6, md: 6 }, children: I })
54
56
  ] }),
55
57
  /* @__PURE__ */ r(o, { style: { color: "#A1A1A1" }, container: !0, children: [
56
58
  /* @__PURE__ */ t(o, { size: { xs: 1, md: 0.5 } }),
57
- /* @__PURE__ */ t(o, { size: { xs: 5, md: 5.5 }, children: /* @__PURE__ */ t("b", { children: _ }) }),
58
- /* @__PURE__ */ t(o, { size: { xs: 5, md: 5 }, children: /* @__PURE__ */ t("b", { children: d }) }),
59
- /* @__PURE__ */ t(o, { className: "text-right", size: { xs: 1, md: 1 }, children: /* @__PURE__ */ t(j, { sx: { fontSize: "30px", color: "#195BB6" } }) })
59
+ /* @__PURE__ */ t(o, { size: { xs: 5, md: 5.5 }, children: /* @__PURE__ */ t("b", { children: u }) }),
60
+ /* @__PURE__ */ t(o, { size: { xs: 5, md: 5 }, children: /* @__PURE__ */ t("b", { children: _ }) }),
61
+ /* @__PURE__ */ t(o, { className: "text-right", size: { xs: 1, md: 1 }, children: /* @__PURE__ */ t(M, { sx: { fontSize: "30px", color: "#195BB6" } }) })
60
62
  ] }),
61
63
  /* @__PURE__ */ r(o, { style: { fontWeight: "500" }, container: !0, children: [
62
64
  /* @__PURE__ */ t(o, { size: { xs: 1, md: 0.5 } }),
@@ -79,7 +81,7 @@ import '../../../assets/index5.css';const Q = "_item_zbw2v_1", f = {
79
81
  open: B,
80
82
  fullWidth: !0,
81
83
  onClose: () => y(!1),
82
- TransitionComponent: M,
84
+ TransitionComponent: j,
83
85
  children: [
84
86
  /* @__PURE__ */ t(
85
87
  q,
@@ -97,8 +99,8 @@ import '../../../assets/index5.css';const Q = "_item_zbw2v_1", f = {
97
99
  /* @__PURE__ */ t(i, { label: "Processing Time", value: m }),
98
100
  /* @__PURE__ */ t(i, { label: "Order ID", value: e.trx_uuid }),
99
101
  /* @__PURE__ */ t(i, { label: "Order Date", value: I }),
100
- /* @__PURE__ */ t(i, { label: _, value: a }),
101
- /* @__PURE__ */ t(i, { label: d, value: s }),
102
+ /* @__PURE__ */ t(i, { label: u, value: a }),
103
+ /* @__PURE__ */ t(i, { label: _, value: s }),
102
104
  /* @__PURE__ */ t(i, { label: "Total Fees", value: p }),
103
105
  e.network && /* @__PURE__ */ t(i, { label: "Network", value: e.network }),
104
106
  e.wallet_address && /* @__PURE__ */ t(
@@ -116,5 +118,5 @@ import '../../../assets/index5.css';const Q = "_item_zbw2v_1", f = {
116
118
  ] });
117
119
  };
118
120
  export {
119
- ue as default
121
+ me as default
120
122
  };
@@ -258,7 +258,7 @@ const ct = (N) => ({
258
258
  {
259
259
  label: "You Receive",
260
260
  labelFontWeight: 600,
261
- value: S && (+S * 1).toFixed(5),
261
+ value: S && parseFloat((+S * 1).toFixed(5)),
262
262
  type: "text",
263
263
  error: W,
264
264
  readOnly: !0,
package/dist/main.js CHANGED
@@ -14,7 +14,7 @@ import { default as B } from "./components/RocketRamp/SignIn/index.js";
14
14
  import { default as I } from "./components/RocketRamp/SignUp/index.js";
15
15
  import { default as P } from "./components/RocketRamp/Dashboard/index.js";
16
16
  import { default as b } from "./components/RocketRamp/Transactions/index.js";
17
- import { i as D } from "./index-zP3Vu4Cl.js";
17
+ import { i as D } from "./index-CX4sR9ID.js";
18
18
  import { default as K } from "./components/RocketRamp/MinimalKyc/index.js";
19
19
  export {
20
20
  c as Account,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -14,7 +14,6 @@
14
14
  "scripts": {
15
15
  "dev": "vite",
16
16
  "build": "tsc -b && vite build",
17
- "prepublishOnly": "npm run build",
18
17
  "lint": "eslint .",
19
18
  "preview": "vite preview"
20
19
  },
@@ -32,7 +31,7 @@
32
31
  "@mui/icons-material": "^6.0.2",
33
32
  "@mui/material": "^6.0.2",
34
33
  "@walletconnect/ethereum-provider": "^2.17.1",
35
- "everest-npm-api": "file:../everest-npm-api",
34
+ "everest-npm-api": "^0.0.5",
36
35
  "frames-react": "^1.2.2",
37
36
  "moment": "^2.30.1",
38
37
  "qrcode.react": "^4.0.1",