@mitumba/ui 0.1.2 → 0.1.3
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.
- package/dist/index.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +5 -2
package/dist/index.js
CHANGED
|
@@ -4243,13 +4243,14 @@ var import_AccountBalanceWallet = __toESM(require("@mui/icons-material/AccountBa
|
|
|
4243
4243
|
var import_History = __toESM(require("@mui/icons-material/History"));
|
|
4244
4244
|
var import_ErrorOutline2 = __toESM(require("@mui/icons-material/ErrorOutline"));
|
|
4245
4245
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4246
|
-
function EscrowStatusBanner({ status, amountKes, hoursRemaining, sx }) {
|
|
4246
|
+
function EscrowStatusBanner({ status, amountKes = 0, hoursRemaining, sx }) {
|
|
4247
|
+
const formattedAmount = (amountKes || 0).toLocaleString();
|
|
4247
4248
|
const config = {
|
|
4248
4249
|
FUNDED: {
|
|
4249
4250
|
severity: "info",
|
|
4250
4251
|
icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_Security.default, {}),
|
|
4251
4252
|
title: "Payment in Escrow",
|
|
4252
|
-
message: `KES ${
|
|
4253
|
+
message: `KES ${formattedAmount} is securely held. We'll release it once you confirm delivery.`
|
|
4253
4254
|
},
|
|
4254
4255
|
SHIPPED: {
|
|
4255
4256
|
severity: "info",
|
|
@@ -4273,7 +4274,7 @@ function EscrowStatusBanner({ status, amountKes, hoursRemaining, sx }) {
|
|
|
4273
4274
|
severity: "error",
|
|
4274
4275
|
icon: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ErrorOutline2.default, {}),
|
|
4275
4276
|
title: "Payment Refunded",
|
|
4276
|
-
message: `The escrow has been cancelled and KES ${
|
|
4277
|
+
message: `The escrow has been cancelled and KES ${formattedAmount} has been returned to your wallet.`
|
|
4277
4278
|
}
|
|
4278
4279
|
};
|
|
4279
4280
|
const { severity, icon, title, message } = config[status];
|
package/dist/index.mjs
CHANGED
|
@@ -4169,13 +4169,14 @@ import AccountBalanceWalletIcon from "@mui/icons-material/AccountBalanceWallet";
|
|
|
4169
4169
|
import HistoryIcon from "@mui/icons-material/History";
|
|
4170
4170
|
import ErrorOutlineIcon2 from "@mui/icons-material/ErrorOutline";
|
|
4171
4171
|
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4172
|
-
function EscrowStatusBanner({ status, amountKes, hoursRemaining, sx }) {
|
|
4172
|
+
function EscrowStatusBanner({ status, amountKes = 0, hoursRemaining, sx }) {
|
|
4173
|
+
const formattedAmount = (amountKes || 0).toLocaleString();
|
|
4173
4174
|
const config = {
|
|
4174
4175
|
FUNDED: {
|
|
4175
4176
|
severity: "info",
|
|
4176
4177
|
icon: /* @__PURE__ */ jsx43(SecurityIcon, {}),
|
|
4177
4178
|
title: "Payment in Escrow",
|
|
4178
|
-
message: `KES ${
|
|
4179
|
+
message: `KES ${formattedAmount} is securely held. We'll release it once you confirm delivery.`
|
|
4179
4180
|
},
|
|
4180
4181
|
SHIPPED: {
|
|
4181
4182
|
severity: "info",
|
|
@@ -4199,7 +4200,7 @@ function EscrowStatusBanner({ status, amountKes, hoursRemaining, sx }) {
|
|
|
4199
4200
|
severity: "error",
|
|
4200
4201
|
icon: /* @__PURE__ */ jsx43(ErrorOutlineIcon2, {}),
|
|
4201
4202
|
title: "Payment Refunded",
|
|
4202
|
-
message: `The escrow has been cancelled and KES ${
|
|
4203
|
+
message: `The escrow has been cancelled and KES ${formattedAmount} has been returned to your wallet.`
|
|
4203
4204
|
}
|
|
4204
4205
|
};
|
|
4205
4206
|
const { severity, icon, title, message } = config[status];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mitumba/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
16
19
|
"peerDependencies": {
|
|
17
20
|
"next": "^15.0.0",
|
|
18
21
|
"react": "^18.0.0",
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
"dependencies": {
|
|
22
25
|
"@emotion/react": "^11.14.0",
|
|
23
26
|
"@emotion/styled": "^11.14.0",
|
|
24
|
-
"@mitumba/tokens": "0.1.
|
|
27
|
+
"@mitumba/tokens": "0.1.3",
|
|
25
28
|
"@mui/icons-material": "^7.3.11",
|
|
26
29
|
"@mui/material": "^7.1.0"
|
|
27
30
|
},
|