warqadui 0.0.78 → 0.0.80
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 +56 -3
- package/dist/index.d.ts +56 -3
- package/dist/index.js +1324 -1229
- package/dist/index.mjs +1251 -1157
- package/dist/styles.js +31 -0
- package/dist/styles.mjs +31 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -999,12 +999,39 @@ type AccountData = {
|
|
|
999
999
|
phoneNumber: string;
|
|
1000
1000
|
type: AccountType;
|
|
1001
1001
|
};
|
|
1002
|
+
type BranchesContext = {
|
|
1003
|
+
branches?: {
|
|
1004
|
+
_id: string;
|
|
1005
|
+
name: string;
|
|
1006
|
+
type: string;
|
|
1007
|
+
logo: string;
|
|
1008
|
+
contact: {
|
|
1009
|
+
phoneNumber: string;
|
|
1010
|
+
email: string;
|
|
1011
|
+
};
|
|
1012
|
+
address: {
|
|
1013
|
+
location: string;
|
|
1014
|
+
city: string;
|
|
1015
|
+
};
|
|
1016
|
+
features: {
|
|
1017
|
+
stockTracking: boolean;
|
|
1018
|
+
moneyTracking: boolean;
|
|
1019
|
+
};
|
|
1020
|
+
isActive: boolean;
|
|
1021
|
+
by: {
|
|
1022
|
+
name: string;
|
|
1023
|
+
};
|
|
1024
|
+
createdAt: string;
|
|
1025
|
+
}[];
|
|
1026
|
+
};
|
|
1002
1027
|
type AuthState = {
|
|
1003
1028
|
auth: AuthData | null;
|
|
1004
1029
|
account: AccountData | null;
|
|
1030
|
+
branches: BranchesContext["branches"] | null;
|
|
1005
1031
|
isLoggedIn: boolean;
|
|
1006
1032
|
isFetched: boolean;
|
|
1007
|
-
setAuth: (auth: AuthData, account: AccountData) => void;
|
|
1033
|
+
setAuth: (auth: AuthData, account: AccountData, branches?: BranchesContext["branches"]) => void;
|
|
1034
|
+
setBranches: (branches: BranchesContext["branches"]) => void;
|
|
1008
1035
|
setIsLoggedIn: (isLoggedIn: boolean) => void;
|
|
1009
1036
|
setIsFetched: (isFetched: boolean) => void;
|
|
1010
1037
|
logout: () => void;
|
|
@@ -1044,6 +1071,29 @@ declare const useAuth: () => {
|
|
|
1044
1071
|
phoneNumber: string;
|
|
1045
1072
|
type: AccountType;
|
|
1046
1073
|
} | null;
|
|
1074
|
+
branches: {
|
|
1075
|
+
_id: string;
|
|
1076
|
+
name: string;
|
|
1077
|
+
type: string;
|
|
1078
|
+
logo: string;
|
|
1079
|
+
contact: {
|
|
1080
|
+
phoneNumber: string;
|
|
1081
|
+
email: string;
|
|
1082
|
+
};
|
|
1083
|
+
address: {
|
|
1084
|
+
location: string;
|
|
1085
|
+
city: string;
|
|
1086
|
+
};
|
|
1087
|
+
features: {
|
|
1088
|
+
stockTracking: boolean;
|
|
1089
|
+
moneyTracking: boolean;
|
|
1090
|
+
};
|
|
1091
|
+
isActive: boolean;
|
|
1092
|
+
by: {
|
|
1093
|
+
name: string;
|
|
1094
|
+
};
|
|
1095
|
+
createdAt: string;
|
|
1096
|
+
}[] | null | undefined;
|
|
1047
1097
|
isLoggedIn: boolean;
|
|
1048
1098
|
isFetched: boolean;
|
|
1049
1099
|
role: string | undefined;
|
|
@@ -1076,7 +1126,8 @@ declare const useAuth: () => {
|
|
|
1076
1126
|
email: string;
|
|
1077
1127
|
phoneNumber: string;
|
|
1078
1128
|
type: AccountType;
|
|
1079
|
-
}) => void;
|
|
1129
|
+
}, branches?: BranchesContext["branches"]) => void;
|
|
1130
|
+
setBranches: (branches: BranchesContext["branches"]) => void;
|
|
1080
1131
|
login: (data: any) => void;
|
|
1081
1132
|
updateAuth: (data: Partial<{
|
|
1082
1133
|
_id: string;
|
|
@@ -1231,4 +1282,6 @@ type updateUserEmailSchemaType = z$1.infer<typeof updateUserEmailSchema>;
|
|
|
1231
1282
|
type resetPasswordSchemaType = z$1.infer<typeof resetPasswordSchema>;
|
|
1232
1283
|
type createUserSchemaType = z$1.infer<typeof createUserSchema>;
|
|
1233
1284
|
|
|
1234
|
-
|
|
1285
|
+
declare function Breadcrumbs(): react_jsx_runtime.JSX.Element;
|
|
1286
|
+
|
|
1287
|
+
export { 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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -999,12 +999,39 @@ type AccountData = {
|
|
|
999
999
|
phoneNumber: string;
|
|
1000
1000
|
type: AccountType;
|
|
1001
1001
|
};
|
|
1002
|
+
type BranchesContext = {
|
|
1003
|
+
branches?: {
|
|
1004
|
+
_id: string;
|
|
1005
|
+
name: string;
|
|
1006
|
+
type: string;
|
|
1007
|
+
logo: string;
|
|
1008
|
+
contact: {
|
|
1009
|
+
phoneNumber: string;
|
|
1010
|
+
email: string;
|
|
1011
|
+
};
|
|
1012
|
+
address: {
|
|
1013
|
+
location: string;
|
|
1014
|
+
city: string;
|
|
1015
|
+
};
|
|
1016
|
+
features: {
|
|
1017
|
+
stockTracking: boolean;
|
|
1018
|
+
moneyTracking: boolean;
|
|
1019
|
+
};
|
|
1020
|
+
isActive: boolean;
|
|
1021
|
+
by: {
|
|
1022
|
+
name: string;
|
|
1023
|
+
};
|
|
1024
|
+
createdAt: string;
|
|
1025
|
+
}[];
|
|
1026
|
+
};
|
|
1002
1027
|
type AuthState = {
|
|
1003
1028
|
auth: AuthData | null;
|
|
1004
1029
|
account: AccountData | null;
|
|
1030
|
+
branches: BranchesContext["branches"] | null;
|
|
1005
1031
|
isLoggedIn: boolean;
|
|
1006
1032
|
isFetched: boolean;
|
|
1007
|
-
setAuth: (auth: AuthData, account: AccountData) => void;
|
|
1033
|
+
setAuth: (auth: AuthData, account: AccountData, branches?: BranchesContext["branches"]) => void;
|
|
1034
|
+
setBranches: (branches: BranchesContext["branches"]) => void;
|
|
1008
1035
|
setIsLoggedIn: (isLoggedIn: boolean) => void;
|
|
1009
1036
|
setIsFetched: (isFetched: boolean) => void;
|
|
1010
1037
|
logout: () => void;
|
|
@@ -1044,6 +1071,29 @@ declare const useAuth: () => {
|
|
|
1044
1071
|
phoneNumber: string;
|
|
1045
1072
|
type: AccountType;
|
|
1046
1073
|
} | null;
|
|
1074
|
+
branches: {
|
|
1075
|
+
_id: string;
|
|
1076
|
+
name: string;
|
|
1077
|
+
type: string;
|
|
1078
|
+
logo: string;
|
|
1079
|
+
contact: {
|
|
1080
|
+
phoneNumber: string;
|
|
1081
|
+
email: string;
|
|
1082
|
+
};
|
|
1083
|
+
address: {
|
|
1084
|
+
location: string;
|
|
1085
|
+
city: string;
|
|
1086
|
+
};
|
|
1087
|
+
features: {
|
|
1088
|
+
stockTracking: boolean;
|
|
1089
|
+
moneyTracking: boolean;
|
|
1090
|
+
};
|
|
1091
|
+
isActive: boolean;
|
|
1092
|
+
by: {
|
|
1093
|
+
name: string;
|
|
1094
|
+
};
|
|
1095
|
+
createdAt: string;
|
|
1096
|
+
}[] | null | undefined;
|
|
1047
1097
|
isLoggedIn: boolean;
|
|
1048
1098
|
isFetched: boolean;
|
|
1049
1099
|
role: string | undefined;
|
|
@@ -1076,7 +1126,8 @@ declare const useAuth: () => {
|
|
|
1076
1126
|
email: string;
|
|
1077
1127
|
phoneNumber: string;
|
|
1078
1128
|
type: AccountType;
|
|
1079
|
-
}) => void;
|
|
1129
|
+
}, branches?: BranchesContext["branches"]) => void;
|
|
1130
|
+
setBranches: (branches: BranchesContext["branches"]) => void;
|
|
1080
1131
|
login: (data: any) => void;
|
|
1081
1132
|
updateAuth: (data: Partial<{
|
|
1082
1133
|
_id: string;
|
|
@@ -1231,4 +1282,6 @@ type updateUserEmailSchemaType = z$1.infer<typeof updateUserEmailSchema>;
|
|
|
1231
1282
|
type resetPasswordSchemaType = z$1.infer<typeof resetPasswordSchema>;
|
|
1232
1283
|
type createUserSchemaType = z$1.infer<typeof createUserSchema>;
|
|
1233
1284
|
|
|
1234
|
-
|
|
1285
|
+
declare function Breadcrumbs(): react_jsx_runtime.JSX.Element;
|
|
1286
|
+
|
|
1287
|
+
export { 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, 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 };
|