warqadui 0.0.68 → 0.0.70

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
@@ -9,6 +9,7 @@ import { z as z$1 } from 'zod';
9
9
  import * as react_to_print from 'react-to-print';
10
10
  import { UploadFile } from 'antd';
11
11
  import * as zustand from 'zustand';
12
+ import * as react_router from 'react-router';
12
13
 
13
14
  interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
14
15
  variant?: "primary" | "secondary" | "outline" | "ghost" | "danger" | "warning";
@@ -1122,14 +1123,20 @@ declare const createAccountSchema: z$1.ZodObject<{
1122
1123
  email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodOptional<z$1.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
1123
1124
  phoneNumber: z$1.ZodOptional<z$1.ZodString>;
1124
1125
  sex: z$1.ZodEnum<["male", "female"]>;
1126
+ owner: z$1.ZodString;
1127
+ host: z$1.ZodString;
1125
1128
  }, "strip", z$1.ZodTypeAny, {
1126
1129
  name: string;
1127
1130
  sex: "male" | "female";
1131
+ owner: string;
1132
+ host: string;
1128
1133
  email?: string | undefined;
1129
1134
  phoneNumber?: string | undefined;
1130
1135
  }, {
1131
1136
  name: string;
1132
1137
  sex: "male" | "female";
1138
+ owner: string;
1139
+ host: string;
1133
1140
  email?: string | undefined;
1134
1141
  phoneNumber?: string | undefined;
1135
1142
  }>;
@@ -1155,6 +1162,14 @@ declare const UserProfile: React__default.FC<UserProfileProps>;
1155
1162
 
1156
1163
  declare const ProfilePage: () => react_jsx_runtime.JSX.Element;
1157
1164
 
1165
+ declare const useApp: () => {
1166
+ navigate: react_router.NavigateFunction;
1167
+ getQuery: (key?: string) => string | {
1168
+ [k: string]: string;
1169
+ } | null;
1170
+ getParams: (key?: string) => string | Readonly<react_router.Params<string>> | undefined;
1171
+ };
1172
+
1158
1173
  declare const linkUserSchema: z$1.ZodObject<{
1159
1174
  email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodString, string, string>, string, string>;
1160
1175
  name: z$1.ZodString;
@@ -1203,4 +1218,4 @@ type verifyUserEmailSchemaType = z$1.infer<typeof verifyUserEmailSchema>;
1203
1218
  type updateUserEmailSchemaType = z$1.infer<typeof updateUserEmailSchema>;
1204
1219
  type resetPasswordSchemaType = z$1.infer<typeof resetPasswordSchema>;
1205
1220
 
1206
- export { AccountForm, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, Branding, type BrandingProps, 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, UserProfile, Users, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, generatePdf, linkUserSchema, type linkUserSchemaType, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };
1221
+ export { AccountForm, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, Branding, type BrandingProps, 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, UserProfile, Users, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, 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
@@ -9,6 +9,7 @@ import { z as z$1 } from 'zod';
9
9
  import * as react_to_print from 'react-to-print';
10
10
  import { UploadFile } from 'antd';
11
11
  import * as zustand from 'zustand';
12
+ import * as react_router from 'react-router';
12
13
 
13
14
  interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
14
15
  variant?: "primary" | "secondary" | "outline" | "ghost" | "danger" | "warning";
@@ -1122,14 +1123,20 @@ declare const createAccountSchema: z$1.ZodObject<{
1122
1123
  email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodOptional<z$1.ZodString>, string | undefined, string | undefined>, string | undefined, string | undefined>;
1123
1124
  phoneNumber: z$1.ZodOptional<z$1.ZodString>;
1124
1125
  sex: z$1.ZodEnum<["male", "female"]>;
1126
+ owner: z$1.ZodString;
1127
+ host: z$1.ZodString;
1125
1128
  }, "strip", z$1.ZodTypeAny, {
1126
1129
  name: string;
1127
1130
  sex: "male" | "female";
1131
+ owner: string;
1132
+ host: string;
1128
1133
  email?: string | undefined;
1129
1134
  phoneNumber?: string | undefined;
1130
1135
  }, {
1131
1136
  name: string;
1132
1137
  sex: "male" | "female";
1138
+ owner: string;
1139
+ host: string;
1133
1140
  email?: string | undefined;
1134
1141
  phoneNumber?: string | undefined;
1135
1142
  }>;
@@ -1155,6 +1162,14 @@ declare const UserProfile: React__default.FC<UserProfileProps>;
1155
1162
 
1156
1163
  declare const ProfilePage: () => react_jsx_runtime.JSX.Element;
1157
1164
 
1165
+ declare const useApp: () => {
1166
+ navigate: react_router.NavigateFunction;
1167
+ getQuery: (key?: string) => string | {
1168
+ [k: string]: string;
1169
+ } | null;
1170
+ getParams: (key?: string) => string | Readonly<react_router.Params<string>> | undefined;
1171
+ };
1172
+
1158
1173
  declare const linkUserSchema: z$1.ZodObject<{
1159
1174
  email: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodString, string, string>, string, string>;
1160
1175
  name: z$1.ZodString;
@@ -1203,4 +1218,4 @@ type verifyUserEmailSchemaType = z$1.infer<typeof verifyUserEmailSchema>;
1203
1218
  type updateUserEmailSchemaType = z$1.infer<typeof updateUserEmailSchema>;
1204
1219
  type resetPasswordSchemaType = z$1.infer<typeof resetPasswordSchema>;
1205
1220
 
1206
- export { AccountForm, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, Branding, type BrandingProps, 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, UserProfile, Users, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, generatePdf, linkUserSchema, type linkUserSchemaType, resetPasswordSchema, type resetPasswordSchemaType, storage, updateUserEmailSchema, type updateUserEmailSchemaType, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig, verifyUserEmailSchema, type verifyUserEmailSchemaType };
1221
+ export { AccountForm, type AccountType, Accounts, AdminProtectedRoute, Badge, type BadgeProps, Branding, type BrandingProps, 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, UserProfile, Users, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, createAccountSchema, 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 };