warqadui 0.0.100 → 0.0.102
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.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +33 -1
- package/dist/index.mjs +33 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1793,6 +1793,7 @@ declare const moneyTransferSchema: z$1.ZodObject<{
|
|
|
1793
1793
|
note: z$1.ZodOptional<z$1.ZodString>;
|
|
1794
1794
|
fromWallet: z$1.ZodString;
|
|
1795
1795
|
toWallet: z$1.ZodString;
|
|
1796
|
+
fee: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1796
1797
|
fromWalletObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
1797
1798
|
toWalletObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
1798
1799
|
rate: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -1804,6 +1805,7 @@ declare const moneyTransferSchema: z$1.ZodObject<{
|
|
|
1804
1805
|
note?: string | undefined;
|
|
1805
1806
|
branch?: string | undefined;
|
|
1806
1807
|
rate?: number | undefined;
|
|
1808
|
+
fee?: number | undefined;
|
|
1807
1809
|
fromWalletObject?: any;
|
|
1808
1810
|
toWalletObject?: any;
|
|
1809
1811
|
}, {
|
|
@@ -1814,6 +1816,7 @@ declare const moneyTransferSchema: z$1.ZodObject<{
|
|
|
1814
1816
|
note?: string | undefined;
|
|
1815
1817
|
branch?: string | undefined;
|
|
1816
1818
|
rate?: number | undefined;
|
|
1819
|
+
fee?: number | undefined;
|
|
1817
1820
|
fromWalletObject?: any;
|
|
1818
1821
|
toWalletObject?: any;
|
|
1819
1822
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1793,6 +1793,7 @@ declare const moneyTransferSchema: z$1.ZodObject<{
|
|
|
1793
1793
|
note: z$1.ZodOptional<z$1.ZodString>;
|
|
1794
1794
|
fromWallet: z$1.ZodString;
|
|
1795
1795
|
toWallet: z$1.ZodString;
|
|
1796
|
+
fee: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1796
1797
|
fromWalletObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
1797
1798
|
toWalletObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
1798
1799
|
rate: z$1.ZodOptional<z$1.ZodNumber>;
|
|
@@ -1804,6 +1805,7 @@ declare const moneyTransferSchema: z$1.ZodObject<{
|
|
|
1804
1805
|
note?: string | undefined;
|
|
1805
1806
|
branch?: string | undefined;
|
|
1806
1807
|
rate?: number | undefined;
|
|
1808
|
+
fee?: number | undefined;
|
|
1807
1809
|
fromWalletObject?: any;
|
|
1808
1810
|
toWalletObject?: any;
|
|
1809
1811
|
}, {
|
|
@@ -1814,6 +1816,7 @@ declare const moneyTransferSchema: z$1.ZodObject<{
|
|
|
1814
1816
|
note?: string | undefined;
|
|
1815
1817
|
branch?: string | undefined;
|
|
1816
1818
|
rate?: number | undefined;
|
|
1819
|
+
fee?: number | undefined;
|
|
1817
1820
|
fromWalletObject?: any;
|
|
1818
1821
|
toWalletObject?: any;
|
|
1819
1822
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -8966,6 +8966,22 @@ function MoneyTransfer({ data, isLoading }) {
|
|
|
8966
8966
|
}
|
|
8967
8967
|
),
|
|
8968
8968
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DataItem, { label: "Entry Date", value: data.date }),
|
|
8969
|
+
data.fee > 0 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
8970
|
+
DataItem,
|
|
8971
|
+
{
|
|
8972
|
+
label: "Transaction Fee",
|
|
8973
|
+
value: Formats_default.Price(data.fee, data.currency || "USD"),
|
|
8974
|
+
className: "text-orange-600"
|
|
8975
|
+
}
|
|
8976
|
+
),
|
|
8977
|
+
data.feeAmount > 0 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
8978
|
+
DataItem,
|
|
8979
|
+
{
|
|
8980
|
+
label: "Total Deducted",
|
|
8981
|
+
value: Formats_default.Price(data.feeAmount, data.currency || "USD"),
|
|
8982
|
+
className: "font-bold underline"
|
|
8983
|
+
}
|
|
8984
|
+
),
|
|
8969
8985
|
data.exchange && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "col-span-full pt-4 mt-2 border-t border-gray-50 dark:border-zinc-800/50", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex items-center justify-between p-4 bg-blue-50/30 dark:bg-blue-500/5 rounded-xl border border-blue-100/50 dark:border-blue-500/10", children: [
|
|
8970
8986
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
8971
8987
|
DataItem,
|
|
@@ -14029,6 +14045,10 @@ function MoneyTransfers({ url }) {
|
|
|
14029
14045
|
const transfer = row.original;
|
|
14030
14046
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col", children: [
|
|
14031
14047
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: Formats_default.Price(transfer?.amount, transfer?.currency) }),
|
|
14048
|
+
transfer?.fee > 0 && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("span", { className: "text-xs text-orange-600", children: [
|
|
14049
|
+
"Fee: ",
|
|
14050
|
+
Formats_default.Price(transfer?.fee, transfer?.currency)
|
|
14051
|
+
] }),
|
|
14032
14052
|
transfer?.exchange?.rate && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("span", { className: "text-xs text-green-600", children: [
|
|
14033
14053
|
"Rate: ",
|
|
14034
14054
|
transfer?.exchange?.rate,
|
|
@@ -14097,6 +14117,7 @@ var moneyTransferSchema = import_zod28.z.object({
|
|
|
14097
14117
|
note: import_zod28.z.string().optional(),
|
|
14098
14118
|
fromWallet: import_zod28.z.string(),
|
|
14099
14119
|
toWallet: import_zod28.z.string(),
|
|
14120
|
+
fee: import_zod28.z.coerce.number().optional(),
|
|
14100
14121
|
// Objects for frontend helpers
|
|
14101
14122
|
fromWalletObject: import_zod28.z.any().optional(),
|
|
14102
14123
|
toWalletObject: import_zod28.z.any().optional(),
|
|
@@ -14119,6 +14140,7 @@ function MoneyTransferForm() {
|
|
|
14119
14140
|
defaultValues: {
|
|
14120
14141
|
date: (/* @__PURE__ */ new Date()).toLocaleDateString("en-GB"),
|
|
14121
14142
|
amount: 0,
|
|
14143
|
+
fee: 0,
|
|
14122
14144
|
fromWallet: "",
|
|
14123
14145
|
toWallet: ""
|
|
14124
14146
|
}
|
|
@@ -14230,7 +14252,7 @@ function MoneyTransferForm() {
|
|
|
14230
14252
|
}
|
|
14231
14253
|
)
|
|
14232
14254
|
] }),
|
|
14233
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-
|
|
14255
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-3 gap-4", children: [
|
|
14234
14256
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
14235
14257
|
Fields_default.DateInput,
|
|
14236
14258
|
{
|
|
@@ -14250,6 +14272,16 @@ function MoneyTransferForm() {
|
|
|
14250
14272
|
placeholder: "0.00",
|
|
14251
14273
|
required: true
|
|
14252
14274
|
}
|
|
14275
|
+
),
|
|
14276
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
14277
|
+
Fields_default.Input,
|
|
14278
|
+
{
|
|
14279
|
+
label: "Fee (Optional)",
|
|
14280
|
+
form: methods,
|
|
14281
|
+
name: "fee",
|
|
14282
|
+
type: "number",
|
|
14283
|
+
placeholder: "0.00"
|
|
14284
|
+
}
|
|
14253
14285
|
)
|
|
14254
14286
|
] }),
|
|
14255
14287
|
isRate && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
|
package/dist/index.mjs
CHANGED
|
@@ -8920,6 +8920,22 @@ function MoneyTransfer({ data, isLoading }) {
|
|
|
8920
8920
|
}
|
|
8921
8921
|
),
|
|
8922
8922
|
/* @__PURE__ */ jsx44(DataItem, { label: "Entry Date", value: data.date }),
|
|
8923
|
+
data.fee > 0 && /* @__PURE__ */ jsx44(
|
|
8924
|
+
DataItem,
|
|
8925
|
+
{
|
|
8926
|
+
label: "Transaction Fee",
|
|
8927
|
+
value: Formats_default.Price(data.fee, data.currency || "USD"),
|
|
8928
|
+
className: "text-orange-600"
|
|
8929
|
+
}
|
|
8930
|
+
),
|
|
8931
|
+
data.feeAmount > 0 && /* @__PURE__ */ jsx44(
|
|
8932
|
+
DataItem,
|
|
8933
|
+
{
|
|
8934
|
+
label: "Total Deducted",
|
|
8935
|
+
value: Formats_default.Price(data.feeAmount, data.currency || "USD"),
|
|
8936
|
+
className: "font-bold underline"
|
|
8937
|
+
}
|
|
8938
|
+
),
|
|
8923
8939
|
data.exchange && /* @__PURE__ */ jsx44("div", { className: "col-span-full pt-4 mt-2 border-t border-gray-50 dark:border-zinc-800/50", children: /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between p-4 bg-blue-50/30 dark:bg-blue-500/5 rounded-xl border border-blue-100/50 dark:border-blue-500/10", children: [
|
|
8924
8940
|
/* @__PURE__ */ jsx44(
|
|
8925
8941
|
DataItem,
|
|
@@ -14000,6 +14016,10 @@ function MoneyTransfers({ url }) {
|
|
|
14000
14016
|
const transfer = row.original;
|
|
14001
14017
|
return /* @__PURE__ */ jsxs68("div", { className: "flex flex-col", children: [
|
|
14002
14018
|
/* @__PURE__ */ jsx86("span", { children: Formats_default.Price(transfer?.amount, transfer?.currency) }),
|
|
14019
|
+
transfer?.fee > 0 && /* @__PURE__ */ jsxs68("span", { className: "text-xs text-orange-600", children: [
|
|
14020
|
+
"Fee: ",
|
|
14021
|
+
Formats_default.Price(transfer?.fee, transfer?.currency)
|
|
14022
|
+
] }),
|
|
14003
14023
|
transfer?.exchange?.rate && /* @__PURE__ */ jsxs68("span", { className: "text-xs text-green-600", children: [
|
|
14004
14024
|
"Rate: ",
|
|
14005
14025
|
transfer?.exchange?.rate,
|
|
@@ -14068,6 +14088,7 @@ var moneyTransferSchema = z13.object({
|
|
|
14068
14088
|
note: z13.string().optional(),
|
|
14069
14089
|
fromWallet: z13.string(),
|
|
14070
14090
|
toWallet: z13.string(),
|
|
14091
|
+
fee: z13.coerce.number().optional(),
|
|
14071
14092
|
// Objects for frontend helpers
|
|
14072
14093
|
fromWalletObject: z13.any().optional(),
|
|
14073
14094
|
toWalletObject: z13.any().optional(),
|
|
@@ -14090,6 +14111,7 @@ function MoneyTransferForm() {
|
|
|
14090
14111
|
defaultValues: {
|
|
14091
14112
|
date: (/* @__PURE__ */ new Date()).toLocaleDateString("en-GB"),
|
|
14092
14113
|
amount: 0,
|
|
14114
|
+
fee: 0,
|
|
14093
14115
|
fromWallet: "",
|
|
14094
14116
|
toWallet: ""
|
|
14095
14117
|
}
|
|
@@ -14201,7 +14223,7 @@ function MoneyTransferForm() {
|
|
|
14201
14223
|
}
|
|
14202
14224
|
)
|
|
14203
14225
|
] }),
|
|
14204
|
-
/* @__PURE__ */ jsxs69("div", { className: "grid grid-cols-1 sm:grid-cols-
|
|
14226
|
+
/* @__PURE__ */ jsxs69("div", { className: "grid grid-cols-1 sm:grid-cols-3 gap-4", children: [
|
|
14205
14227
|
/* @__PURE__ */ jsx87(
|
|
14206
14228
|
Fields_default.DateInput,
|
|
14207
14229
|
{
|
|
@@ -14221,6 +14243,16 @@ function MoneyTransferForm() {
|
|
|
14221
14243
|
placeholder: "0.00",
|
|
14222
14244
|
required: true
|
|
14223
14245
|
}
|
|
14246
|
+
),
|
|
14247
|
+
/* @__PURE__ */ jsx87(
|
|
14248
|
+
Fields_default.Input,
|
|
14249
|
+
{
|
|
14250
|
+
label: "Fee (Optional)",
|
|
14251
|
+
form: methods,
|
|
14252
|
+
name: "fee",
|
|
14253
|
+
type: "number",
|
|
14254
|
+
placeholder: "0.00"
|
|
14255
|
+
}
|
|
14224
14256
|
)
|
|
14225
14257
|
] }),
|
|
14226
14258
|
isRate && /* @__PURE__ */ jsxs69("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: [
|