warqadui 0.0.83 → 0.0.84

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 CHANGED
@@ -1182,7 +1182,7 @@ type AccountProps<T extends FieldValues> = {
1182
1182
  };
1183
1183
  declare function Account<T extends FieldValues>({ name, label, placeholder, api, form, filter, v, showBalance, required, }: AccountProps<T>): react_jsx_runtime.JSX.Element;
1184
1184
 
1185
- type Props$2<T extends FieldValues> = {
1185
+ type Props$3<T extends FieldValues> = {
1186
1186
  name?: Path<T>;
1187
1187
  label?: string;
1188
1188
  form: UseFormReturn<T>;
@@ -1193,9 +1193,9 @@ type Props$2<T extends FieldValues> = {
1193
1193
  v?: number;
1194
1194
  required?: boolean;
1195
1195
  };
1196
- declare function Customer<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$2<T>): react_jsx_runtime.JSX.Element;
1196
+ declare function Customer<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$3<T>): react_jsx_runtime.JSX.Element;
1197
1197
 
1198
- type Props$1<T extends FieldValues> = {
1198
+ type Props$2<T extends FieldValues> = {
1199
1199
  name?: Path<T>;
1200
1200
  label?: string;
1201
1201
  form: UseFormReturn<T>;
@@ -1206,9 +1206,9 @@ type Props$1<T extends FieldValues> = {
1206
1206
  v?: number;
1207
1207
  required?: boolean;
1208
1208
  };
1209
- declare function Employee<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$1<T>): react_jsx_runtime.JSX.Element;
1209
+ declare function Employee<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$2<T>): react_jsx_runtime.JSX.Element;
1210
1210
 
1211
- type Props<T extends FieldValues> = {
1211
+ type Props$1<T extends FieldValues> = {
1212
1212
  name?: Path<T>;
1213
1213
  label?: string;
1214
1214
  form: UseFormReturn<T>;
@@ -1219,13 +1219,13 @@ type Props<T extends FieldValues> = {
1219
1219
  v?: number;
1220
1220
  required?: boolean;
1221
1221
  };
1222
- declare function Branches<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props<T>): react_jsx_runtime.JSX.Element;
1222
+ declare function Branches$1<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$1<T>): react_jsx_runtime.JSX.Element;
1223
1223
 
1224
1224
  declare const AccountFields: {
1225
1225
  Account: typeof Account;
1226
1226
  Customer: typeof Customer;
1227
1227
  Employee: typeof Employee;
1228
- Branches: typeof Branches;
1228
+ Branches: typeof Branches$1;
1229
1229
  };
1230
1230
 
1231
1231
  declare const createAccountSchema: z$1.ZodObject<{
@@ -1344,6 +1344,65 @@ type updateUserEmailSchemaType = z$1.infer<typeof updateUserEmailSchema>;
1344
1344
  type resetPasswordSchemaType = z$1.infer<typeof resetPasswordSchema>;
1345
1345
  type createUserSchemaType = z$1.infer<typeof createUserSchema>;
1346
1346
 
1347
+ declare function Wallets({ v, url }: {
1348
+ v?: 1 | 2;
1349
+ url?: string;
1350
+ }): react_jsx_runtime.JSX.Element;
1351
+
1352
+ declare function WalletForm(): react_jsx_runtime.JSX.Element;
1353
+
1354
+ type WalletFieldProps<T extends FieldValues> = {
1355
+ name: Path<T>;
1356
+ label: string;
1357
+ form: UseFormReturn<T>;
1358
+ placeholder?: string;
1359
+ api: string;
1360
+ filter?: string[];
1361
+ showBalance?: boolean;
1362
+ v?: number;
1363
+ required?: boolean;
1364
+ };
1365
+ declare function Wallet<T extends FieldValues>({ name, label, placeholder, api, form, filter, v, showBalance, required, }: WalletFieldProps<T>): react_jsx_runtime.JSX.Element;
1366
+
1367
+ type Props<T extends FieldValues> = {
1368
+ name?: Path<T>;
1369
+ label?: string;
1370
+ form: UseFormReturn<T>;
1371
+ placeholder?: string;
1372
+ api?: string;
1373
+ filter?: string[];
1374
+ showBalance?: boolean;
1375
+ v?: number;
1376
+ required?: boolean;
1377
+ };
1378
+ declare function Branches<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props<T>): react_jsx_runtime.JSX.Element;
1379
+
1380
+ declare const WalletField: {
1381
+ Wallet: typeof Wallet;
1382
+ Branches: typeof Branches;
1383
+ };
1384
+
1385
+ declare const createWalletSchema: z$1.ZodObject<{
1386
+ name: z$1.ZodString;
1387
+ type: z$1.ZodEnum<["bank", "cash", "mobile"]>;
1388
+ currency: z$1.ZodEnum<["USD", "TZS", "KES", "CNY"]>;
1389
+ accountNo: z$1.ZodOptional<z$1.ZodString>;
1390
+ branch: z$1.ZodOptional<z$1.ZodString>;
1391
+ }, "strip", z$1.ZodTypeAny, {
1392
+ name: string;
1393
+ type: "mobile" | "bank" | "cash";
1394
+ currency: "USD" | "TZS" | "KES" | "CNY";
1395
+ branch?: string | undefined;
1396
+ accountNo?: string | undefined;
1397
+ }, {
1398
+ name: string;
1399
+ type: "mobile" | "bank" | "cash";
1400
+ currency: "USD" | "TZS" | "KES" | "CNY";
1401
+ branch?: string | undefined;
1402
+ accountNo?: string | undefined;
1403
+ }>;
1404
+ type CreateWalletSchemaType = z$1.infer<typeof createWalletSchema>;
1405
+
1347
1406
  declare function Breadcrumbs(): react_jsx_runtime.JSX.Element;
1348
1407
 
1349
1408
  interface ErrorPageProps {
@@ -1364,4 +1423,4 @@ declare const ErrorPage: (({ title, message, statusCode, action, className, }: E
1364
1423
  400: (props: ErrorPageProps) => react_jsx_runtime.JSX.Element;
1365
1424
  };
1366
1425
 
1367
- export { AccountFields, AccountForm, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, Branding, type BrandingProps, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryCard, type CategoryItem, ClassicSpin, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, ErrorPage, type ErrorPageProps, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, PageA4, PageHeader, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, 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, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, createUserSchema, type createUserSchemaType, generatePdf, linkUserSchema, type linkUserSchemaType, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };
1426
+ export { AccountFields, AccountForm, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, Branding, type BrandingProps, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryCard, type CategoryItem, ClassicSpin, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, type CreateWalletSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, ErrorPage, type ErrorPageProps, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, PageA4, PageHeader, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, 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, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletField, WalletForm, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, createUserSchema, type createUserSchemaType, createWalletSchema, generatePdf, linkUserSchema, type linkUserSchemaType, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };
package/dist/index.d.ts CHANGED
@@ -1182,7 +1182,7 @@ type AccountProps<T extends FieldValues> = {
1182
1182
  };
1183
1183
  declare function Account<T extends FieldValues>({ name, label, placeholder, api, form, filter, v, showBalance, required, }: AccountProps<T>): react_jsx_runtime.JSX.Element;
1184
1184
 
1185
- type Props$2<T extends FieldValues> = {
1185
+ type Props$3<T extends FieldValues> = {
1186
1186
  name?: Path<T>;
1187
1187
  label?: string;
1188
1188
  form: UseFormReturn<T>;
@@ -1193,9 +1193,9 @@ type Props$2<T extends FieldValues> = {
1193
1193
  v?: number;
1194
1194
  required?: boolean;
1195
1195
  };
1196
- declare function Customer<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$2<T>): react_jsx_runtime.JSX.Element;
1196
+ declare function Customer<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$3<T>): react_jsx_runtime.JSX.Element;
1197
1197
 
1198
- type Props$1<T extends FieldValues> = {
1198
+ type Props$2<T extends FieldValues> = {
1199
1199
  name?: Path<T>;
1200
1200
  label?: string;
1201
1201
  form: UseFormReturn<T>;
@@ -1206,9 +1206,9 @@ type Props$1<T extends FieldValues> = {
1206
1206
  v?: number;
1207
1207
  required?: boolean;
1208
1208
  };
1209
- declare function Employee<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$1<T>): react_jsx_runtime.JSX.Element;
1209
+ declare function Employee<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$2<T>): react_jsx_runtime.JSX.Element;
1210
1210
 
1211
- type Props<T extends FieldValues> = {
1211
+ type Props$1<T extends FieldValues> = {
1212
1212
  name?: Path<T>;
1213
1213
  label?: string;
1214
1214
  form: UseFormReturn<T>;
@@ -1219,13 +1219,13 @@ type Props<T extends FieldValues> = {
1219
1219
  v?: number;
1220
1220
  required?: boolean;
1221
1221
  };
1222
- declare function Branches<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props<T>): react_jsx_runtime.JSX.Element;
1222
+ declare function Branches$1<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props$1<T>): react_jsx_runtime.JSX.Element;
1223
1223
 
1224
1224
  declare const AccountFields: {
1225
1225
  Account: typeof Account;
1226
1226
  Customer: typeof Customer;
1227
1227
  Employee: typeof Employee;
1228
- Branches: typeof Branches;
1228
+ Branches: typeof Branches$1;
1229
1229
  };
1230
1230
 
1231
1231
  declare const createAccountSchema: z$1.ZodObject<{
@@ -1344,6 +1344,65 @@ type updateUserEmailSchemaType = z$1.infer<typeof updateUserEmailSchema>;
1344
1344
  type resetPasswordSchemaType = z$1.infer<typeof resetPasswordSchema>;
1345
1345
  type createUserSchemaType = z$1.infer<typeof createUserSchema>;
1346
1346
 
1347
+ declare function Wallets({ v, url }: {
1348
+ v?: 1 | 2;
1349
+ url?: string;
1350
+ }): react_jsx_runtime.JSX.Element;
1351
+
1352
+ declare function WalletForm(): react_jsx_runtime.JSX.Element;
1353
+
1354
+ type WalletFieldProps<T extends FieldValues> = {
1355
+ name: Path<T>;
1356
+ label: string;
1357
+ form: UseFormReturn<T>;
1358
+ placeholder?: string;
1359
+ api: string;
1360
+ filter?: string[];
1361
+ showBalance?: boolean;
1362
+ v?: number;
1363
+ required?: boolean;
1364
+ };
1365
+ declare function Wallet<T extends FieldValues>({ name, label, placeholder, api, form, filter, v, showBalance, required, }: WalletFieldProps<T>): react_jsx_runtime.JSX.Element;
1366
+
1367
+ type Props<T extends FieldValues> = {
1368
+ name?: Path<T>;
1369
+ label?: string;
1370
+ form: UseFormReturn<T>;
1371
+ placeholder?: string;
1372
+ api?: string;
1373
+ filter?: string[];
1374
+ showBalance?: boolean;
1375
+ v?: number;
1376
+ required?: boolean;
1377
+ };
1378
+ declare function Branches<T extends FieldValues>({ name, label, placeholder, api, form, filter, showBalance, required, v, }: Props<T>): react_jsx_runtime.JSX.Element;
1379
+
1380
+ declare const WalletField: {
1381
+ Wallet: typeof Wallet;
1382
+ Branches: typeof Branches;
1383
+ };
1384
+
1385
+ declare const createWalletSchema: z$1.ZodObject<{
1386
+ name: z$1.ZodString;
1387
+ type: z$1.ZodEnum<["bank", "cash", "mobile"]>;
1388
+ currency: z$1.ZodEnum<["USD", "TZS", "KES", "CNY"]>;
1389
+ accountNo: z$1.ZodOptional<z$1.ZodString>;
1390
+ branch: z$1.ZodOptional<z$1.ZodString>;
1391
+ }, "strip", z$1.ZodTypeAny, {
1392
+ name: string;
1393
+ type: "mobile" | "bank" | "cash";
1394
+ currency: "USD" | "TZS" | "KES" | "CNY";
1395
+ branch?: string | undefined;
1396
+ accountNo?: string | undefined;
1397
+ }, {
1398
+ name: string;
1399
+ type: "mobile" | "bank" | "cash";
1400
+ currency: "USD" | "TZS" | "KES" | "CNY";
1401
+ branch?: string | undefined;
1402
+ accountNo?: string | undefined;
1403
+ }>;
1404
+ type CreateWalletSchemaType = z$1.infer<typeof createWalletSchema>;
1405
+
1347
1406
  declare function Breadcrumbs(): react_jsx_runtime.JSX.Element;
1348
1407
 
1349
1408
  interface ErrorPageProps {
@@ -1364,4 +1423,4 @@ declare const ErrorPage: (({ title, message, statusCode, action, className, }: E
1364
1423
  400: (props: ErrorPageProps) => react_jsx_runtime.JSX.Element;
1365
1424
  };
1366
1425
 
1367
- export { AccountFields, AccountForm, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, Branding, type BrandingProps, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryCard, type CategoryItem, ClassicSpin, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, ErrorPage, type ErrorPageProps, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, PageA4, PageHeader, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, 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, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, createUserSchema, type createUserSchemaType, generatePdf, linkUserSchema, type linkUserSchemaType, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };
1426
+ export { AccountFields, AccountForm, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, type BranchesContext, Branding, type BrandingProps, Breadcrumbs, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryCard, type CategoryItem, ClassicSpin, CodeBlock, ConfirmModal, type ConfirmModalProps, type CreateAccountSchemaType, type CreateWalletSchemaType, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, ErrorPage, type ErrorPageProps, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, LinkUser, LoadingBox, LoadingSpin, type LoginSchema, type LoginTheme, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, PageA4, PageHeader, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, 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, Textarea, type TextareaProps, type ThemeConfig, ThemeProvider, ThemeToggle, ThemedLogin, UnProtectedRoute, type UseModalReturn, UserForm, UserProfile, Users, Views, WalletField, WalletForm, Wallets, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, createUserSchema, type createUserSchemaType, createWalletSchema, generatePdf, linkUserSchema, type linkUserSchemaType, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useApp, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };