warqadui 0.0.104 → 0.0.105
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 +52 -7
- package/dist/index.d.ts +52 -7
- package/dist/index.js +1332 -699
- package/dist/index.mjs +1323 -684
- package/dist/styles.js +27 -0
- package/dist/styles.mjs +27 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -378,12 +378,12 @@ declare const Enums: {
|
|
|
378
378
|
verificationTypes: readonly ["email_verification", "password_reset"];
|
|
379
379
|
auditActions: readonly ["create", "update", "delete", "login", "logout"];
|
|
380
380
|
walletTypes: readonly ["bank", "cash", "mobile"];
|
|
381
|
-
currencies: readonly ["USD", "TZS", "KES", "
|
|
381
|
+
currencies: readonly ["USD", "TZS", "KES", "RMB"];
|
|
382
382
|
packTypes: readonly ["pressure", "bag", "boxes"];
|
|
383
383
|
journalTypes: readonly ["journal"];
|
|
384
384
|
viaTypes: readonly ["direct", "via account"];
|
|
385
385
|
actionTypes: readonly ["credit", "debit"];
|
|
386
|
-
transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment"];
|
|
386
|
+
transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer"];
|
|
387
387
|
};
|
|
388
388
|
|
|
389
389
|
interface ThemeConfig {
|
|
@@ -1015,7 +1015,7 @@ declare const CategoryCard: React__default.FC<{
|
|
|
1015
1015
|
declare const Views: {
|
|
1016
1016
|
Transaction: ({ id, type, close, reverseable, }: {
|
|
1017
1017
|
id: string;
|
|
1018
|
-
type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | undefined;
|
|
1018
|
+
type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | undefined;
|
|
1019
1019
|
close: () => void;
|
|
1020
1020
|
reverseable?: {
|
|
1021
1021
|
reload: () => void;
|
|
@@ -1449,19 +1449,19 @@ declare const WalletField: {
|
|
|
1449
1449
|
declare const createWalletSchema: z$1.ZodObject<{
|
|
1450
1450
|
name: z$1.ZodString;
|
|
1451
1451
|
type: z$1.ZodEnum<["bank", "cash", "mobile"]>;
|
|
1452
|
-
currency: z$1.ZodEnum<["USD", "TZS", "KES", "
|
|
1452
|
+
currency: z$1.ZodEnum<["USD", "TZS", "KES", "RMB"]>;
|
|
1453
1453
|
accountNo: z$1.ZodOptional<z$1.ZodString>;
|
|
1454
1454
|
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
1455
1455
|
}, "strip", z$1.ZodTypeAny, {
|
|
1456
1456
|
name: string;
|
|
1457
1457
|
type: "bank" | "cash" | "mobile";
|
|
1458
|
-
currency: "USD" | "TZS" | "KES" | "
|
|
1458
|
+
currency: "USD" | "TZS" | "KES" | "RMB";
|
|
1459
1459
|
branch?: string | undefined;
|
|
1460
1460
|
accountNo?: string | undefined;
|
|
1461
1461
|
}, {
|
|
1462
1462
|
name: string;
|
|
1463
1463
|
type: "bank" | "cash" | "mobile";
|
|
1464
|
-
currency: "USD" | "TZS" | "KES" | "
|
|
1464
|
+
currency: "USD" | "TZS" | "KES" | "RMB";
|
|
1465
1465
|
branch?: string | undefined;
|
|
1466
1466
|
accountNo?: string | undefined;
|
|
1467
1467
|
}>;
|
|
@@ -1924,4 +1924,49 @@ declare const walletAdjustmentSchema: z$1.ZodObject<{
|
|
|
1924
1924
|
}>;
|
|
1925
1925
|
type WalletAdjustmentSchemaType = z$1.infer<typeof walletAdjustmentSchema>;
|
|
1926
1926
|
|
|
1927
|
-
|
|
1927
|
+
declare function ForexTransfers({ url }: {
|
|
1928
|
+
url?: string;
|
|
1929
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1930
|
+
|
|
1931
|
+
declare function ForexTransferForm(): react_jsx_runtime.JSX.Element;
|
|
1932
|
+
|
|
1933
|
+
declare const forexTransferSchema: z$1.ZodObject<{
|
|
1934
|
+
account: z$1.ZodString;
|
|
1935
|
+
wallet: z$1.ZodString;
|
|
1936
|
+
amount: z$1.ZodNumber;
|
|
1937
|
+
date: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
1938
|
+
description: z$1.ZodString;
|
|
1939
|
+
note: z$1.ZodOptional<z$1.ZodString>;
|
|
1940
|
+
fee: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1941
|
+
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
1942
|
+
accountObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
1943
|
+
walletObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
1944
|
+
rate: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1945
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1946
|
+
account: string;
|
|
1947
|
+
date: string;
|
|
1948
|
+
description: string;
|
|
1949
|
+
amount: number;
|
|
1950
|
+
wallet: string;
|
|
1951
|
+
note?: string | undefined;
|
|
1952
|
+
branch?: string | undefined;
|
|
1953
|
+
accountObject?: any;
|
|
1954
|
+
rate?: number | undefined;
|
|
1955
|
+
fee?: number | undefined;
|
|
1956
|
+
walletObject?: any;
|
|
1957
|
+
}, {
|
|
1958
|
+
account: string;
|
|
1959
|
+
date: string;
|
|
1960
|
+
description: string;
|
|
1961
|
+
amount: number;
|
|
1962
|
+
wallet: string;
|
|
1963
|
+
note?: string | undefined;
|
|
1964
|
+
branch?: string | undefined;
|
|
1965
|
+
accountObject?: any;
|
|
1966
|
+
rate?: number | undefined;
|
|
1967
|
+
fee?: number | undefined;
|
|
1968
|
+
walletObject?: any;
|
|
1969
|
+
}>;
|
|
1970
|
+
type ForexTransferSchemaType = z$1.infer<typeof forexTransferSchema>;
|
|
1971
|
+
|
|
1972
|
+
export { AccountFields, AccountForm, AccountReport, AccountStatements, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, BrandField, BrandForm, Branding, type BrandingProps, Brands, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Categories, CategoryCard, CategoryField, CategoryForm, type CategoryItem, ClassicSpin, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, type CreateBrandSchemaType, type CreateCategorySchemaType, type CreatePackSchemaType, type CreateProductSchemaType, type CreateWalletSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, type EnumsConfig, ErrorPage, type ErrorPageProps, ExpenseForm, type ExpenseSchemaType, Expenses, type FetchFunction, type FetchProps, Fields, ForexTransferForm, type ForexTransferSchemaType, ForexTransfers, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, MoneyTransferForm, type MoneyTransferSchemaType, MoneyTransfers, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, PaymentForm, type PaymentSchemaType, Payments, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, ProductField, ProductForm, Products, ProfileCard, type ProfileCardProps, ProfileDropdown, type ProfileDropdownItem, type ProfileDropdownProps, ProfilePage, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, type StorageManager, type StoreConfig, type SummaryColumn, SummaryTable, type SummaryTableProps, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletAdjustmentForm, type WalletAdjustmentSchemaType, WalletAdjustments, WalletField, WalletForm, WalletReport, WalletStatements, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, type apiConfig, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, expenseSchema, forexTransferSchema, generatePdf, journalSchema, linkUserSchema, type linkUserSchemaType, moneyTransferSchema, packProductItemSchema, packTypes, paymentSchema, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType, walletAdjustmentSchema };
|
package/dist/index.d.ts
CHANGED
|
@@ -378,12 +378,12 @@ declare const Enums: {
|
|
|
378
378
|
verificationTypes: readonly ["email_verification", "password_reset"];
|
|
379
379
|
auditActions: readonly ["create", "update", "delete", "login", "logout"];
|
|
380
380
|
walletTypes: readonly ["bank", "cash", "mobile"];
|
|
381
|
-
currencies: readonly ["USD", "TZS", "KES", "
|
|
381
|
+
currencies: readonly ["USD", "TZS", "KES", "RMB"];
|
|
382
382
|
packTypes: readonly ["pressure", "bag", "boxes"];
|
|
383
383
|
journalTypes: readonly ["journal"];
|
|
384
384
|
viaTypes: readonly ["direct", "via account"];
|
|
385
385
|
actionTypes: readonly ["credit", "debit"];
|
|
386
|
-
transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment"];
|
|
386
|
+
transactionTypes: readonly ["journal", "payment", "money transfer", "expense", "adjustment", "forex transfer"];
|
|
387
387
|
};
|
|
388
388
|
|
|
389
389
|
interface ThemeConfig {
|
|
@@ -1015,7 +1015,7 @@ declare const CategoryCard: React__default.FC<{
|
|
|
1015
1015
|
declare const Views: {
|
|
1016
1016
|
Transaction: ({ id, type, close, reverseable, }: {
|
|
1017
1017
|
id: string;
|
|
1018
|
-
type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | undefined;
|
|
1018
|
+
type: "" | "journal" | "payment" | "money transfer" | "expense" | "adjustment" | "forex transfer" | undefined;
|
|
1019
1019
|
close: () => void;
|
|
1020
1020
|
reverseable?: {
|
|
1021
1021
|
reload: () => void;
|
|
@@ -1449,19 +1449,19 @@ declare const WalletField: {
|
|
|
1449
1449
|
declare const createWalletSchema: z$1.ZodObject<{
|
|
1450
1450
|
name: z$1.ZodString;
|
|
1451
1451
|
type: z$1.ZodEnum<["bank", "cash", "mobile"]>;
|
|
1452
|
-
currency: z$1.ZodEnum<["USD", "TZS", "KES", "
|
|
1452
|
+
currency: z$1.ZodEnum<["USD", "TZS", "KES", "RMB"]>;
|
|
1453
1453
|
accountNo: z$1.ZodOptional<z$1.ZodString>;
|
|
1454
1454
|
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
1455
1455
|
}, "strip", z$1.ZodTypeAny, {
|
|
1456
1456
|
name: string;
|
|
1457
1457
|
type: "bank" | "cash" | "mobile";
|
|
1458
|
-
currency: "USD" | "TZS" | "KES" | "
|
|
1458
|
+
currency: "USD" | "TZS" | "KES" | "RMB";
|
|
1459
1459
|
branch?: string | undefined;
|
|
1460
1460
|
accountNo?: string | undefined;
|
|
1461
1461
|
}, {
|
|
1462
1462
|
name: string;
|
|
1463
1463
|
type: "bank" | "cash" | "mobile";
|
|
1464
|
-
currency: "USD" | "TZS" | "KES" | "
|
|
1464
|
+
currency: "USD" | "TZS" | "KES" | "RMB";
|
|
1465
1465
|
branch?: string | undefined;
|
|
1466
1466
|
accountNo?: string | undefined;
|
|
1467
1467
|
}>;
|
|
@@ -1924,4 +1924,49 @@ declare const walletAdjustmentSchema: z$1.ZodObject<{
|
|
|
1924
1924
|
}>;
|
|
1925
1925
|
type WalletAdjustmentSchemaType = z$1.infer<typeof walletAdjustmentSchema>;
|
|
1926
1926
|
|
|
1927
|
-
|
|
1927
|
+
declare function ForexTransfers({ url }: {
|
|
1928
|
+
url?: string;
|
|
1929
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1930
|
+
|
|
1931
|
+
declare function ForexTransferForm(): react_jsx_runtime.JSX.Element;
|
|
1932
|
+
|
|
1933
|
+
declare const forexTransferSchema: z$1.ZodObject<{
|
|
1934
|
+
account: z$1.ZodString;
|
|
1935
|
+
wallet: z$1.ZodString;
|
|
1936
|
+
amount: z$1.ZodNumber;
|
|
1937
|
+
date: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
1938
|
+
description: z$1.ZodString;
|
|
1939
|
+
note: z$1.ZodOptional<z$1.ZodString>;
|
|
1940
|
+
fee: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1941
|
+
branch: z$1.ZodOptional<z$1.ZodString>;
|
|
1942
|
+
accountObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
1943
|
+
walletObject: z$1.ZodOptional<z$1.ZodAny>;
|
|
1944
|
+
rate: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1945
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1946
|
+
account: string;
|
|
1947
|
+
date: string;
|
|
1948
|
+
description: string;
|
|
1949
|
+
amount: number;
|
|
1950
|
+
wallet: string;
|
|
1951
|
+
note?: string | undefined;
|
|
1952
|
+
branch?: string | undefined;
|
|
1953
|
+
accountObject?: any;
|
|
1954
|
+
rate?: number | undefined;
|
|
1955
|
+
fee?: number | undefined;
|
|
1956
|
+
walletObject?: any;
|
|
1957
|
+
}, {
|
|
1958
|
+
account: string;
|
|
1959
|
+
date: string;
|
|
1960
|
+
description: string;
|
|
1961
|
+
amount: number;
|
|
1962
|
+
wallet: string;
|
|
1963
|
+
note?: string | undefined;
|
|
1964
|
+
branch?: string | undefined;
|
|
1965
|
+
accountObject?: any;
|
|
1966
|
+
rate?: number | undefined;
|
|
1967
|
+
fee?: number | undefined;
|
|
1968
|
+
walletObject?: any;
|
|
1969
|
+
}>;
|
|
1970
|
+
type ForexTransferSchemaType = z$1.infer<typeof forexTransferSchema>;
|
|
1971
|
+
|
|
1972
|
+
export { AccountFields, AccountForm, AccountReport, AccountStatements, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, BrandField, BrandForm, Branding, type BrandingProps, Brands, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Categories, CategoryCard, CategoryField, CategoryForm, type CategoryItem, ClassicSpin, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, type CreateBrandSchemaType, type CreateCategorySchemaType, type CreatePackSchemaType, type CreateProductSchemaType, type CreateWalletSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, type EnumsConfig, ErrorPage, type ErrorPageProps, ExpenseForm, type ExpenseSchemaType, Expenses, type FetchFunction, type FetchProps, Fields, ForexTransferForm, type ForexTransferSchemaType, ForexTransfers, Guard, InfoGrid, Input, type InputProps, JournalForm, type JournalSchemaType, Journals, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, MoneyTransferForm, type MoneyTransferSchemaType, MoneyTransfers, type NavItem, type NavItems, type Option, OverlaySpin, _default as PackField, PackForm, type PackProductItemSchemaType, Packs, PageA4, PageHeader, PaymentForm, type PaymentSchemaType, Payments, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, ProductField, ProductForm, Products, ProfileCard, type ProfileCardProps, ProfileDropdown, type ProfileDropdownItem, type ProfileDropdownProps, ProfilePage, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProtectedRoute, type PutFunction, ResetPasswordPage, type Role, SearchApi, SearchApiContent, SearchApiInput, SearchApiItem, type SearchApiProps, SearchApiTrigger, Select, SelectContent, SelectItem, type SelectProps, SelectTrigger, SimpleTable, type SimpleTableColumn, type StorageManager, type StoreConfig, type SummaryColumn, SummaryTable, type SummaryTableProps, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletAdjustmentForm, type WalletAdjustmentSchemaType, WalletAdjustments, WalletField, WalletForm, WalletReport, WalletStatements, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, type apiConfig, createAccountSchema, createBrandSchema, createCategorySchema, createPackSchema, createProductSchema, createUserSchema, type createUserSchemaType, createWalletSchema, expenseSchema, forexTransferSchema, generatePdf, journalSchema, linkUserSchema, type linkUserSchemaType, moneyTransferSchema, packProductItemSchema, packTypes, paymentSchema, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType, walletAdjustmentSchema };
|