warqadui 0.0.58 → 0.0.60
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 +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +404 -338
- package/dist/index.mjs +385 -320
- package/dist/styles.js +26 -6
- package/dist/styles.mjs +26 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -607,12 +607,27 @@ declare const useLogin: (props: UseLoginProps) => {
|
|
|
607
607
|
Login: React__default.FC<{}>;
|
|
608
608
|
};
|
|
609
609
|
|
|
610
|
-
interface
|
|
610
|
+
interface DropdownItem {
|
|
611
611
|
label: string;
|
|
612
612
|
icon?: React__default.ReactNode;
|
|
613
613
|
onClick?: () => void | Promise<void>;
|
|
614
614
|
disabled?: boolean;
|
|
615
615
|
className?: string;
|
|
616
|
+
variant?: "default" | "danger";
|
|
617
|
+
}
|
|
618
|
+
interface DropdownProps {
|
|
619
|
+
children: React__default.ReactNode;
|
|
620
|
+
items: DropdownItem[];
|
|
621
|
+
className?: string;
|
|
622
|
+
menuClassName?: string;
|
|
623
|
+
triggerMode?: "click" | "hover";
|
|
624
|
+
align?: "left" | "right";
|
|
625
|
+
width?: string;
|
|
626
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
627
|
+
}
|
|
628
|
+
declare const Dropdown: React__default.FC<DropdownProps>;
|
|
629
|
+
|
|
630
|
+
interface ProfileDropdownItem extends DropdownItem {
|
|
616
631
|
}
|
|
617
632
|
interface ProfileDropdownProps {
|
|
618
633
|
name: string;
|
|
@@ -765,6 +780,7 @@ declare const useTransaction: ({ url, v, delay, params, dateFilter, }: {
|
|
|
765
780
|
|
|
766
781
|
interface ThemeConfig {
|
|
767
782
|
primaryColor?: string;
|
|
783
|
+
inputHeight?: string;
|
|
768
784
|
}
|
|
769
785
|
interface StoreConfig {
|
|
770
786
|
name?: string;
|
|
@@ -1023,4 +1039,4 @@ declare const useAuth: () => {
|
|
|
1023
1039
|
can: (key: string) => boolean;
|
|
1024
1040
|
};
|
|
1025
1041
|
|
|
1026
|
-
export { type AccountType, AdminProtectedRoute, Badge, type BadgeProps, Branding, type BrandingProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryCard, type CategoryItem, ClassicSpin, CodeBlock, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, 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, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProtectedRoute, type PutFunction, 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, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, generatePdf, storage, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig };
|
|
1042
|
+
export { type AccountType, AdminProtectedRoute, Badge, type BadgeProps, Branding, type BrandingProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryCard, type CategoryItem, ClassicSpin, CodeBlock, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, 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, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProtectedRoute, type PutFunction, 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, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, generatePdf, storage, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -607,12 +607,27 @@ declare const useLogin: (props: UseLoginProps) => {
|
|
|
607
607
|
Login: React__default.FC<{}>;
|
|
608
608
|
};
|
|
609
609
|
|
|
610
|
-
interface
|
|
610
|
+
interface DropdownItem {
|
|
611
611
|
label: string;
|
|
612
612
|
icon?: React__default.ReactNode;
|
|
613
613
|
onClick?: () => void | Promise<void>;
|
|
614
614
|
disabled?: boolean;
|
|
615
615
|
className?: string;
|
|
616
|
+
variant?: "default" | "danger";
|
|
617
|
+
}
|
|
618
|
+
interface DropdownProps {
|
|
619
|
+
children: React__default.ReactNode;
|
|
620
|
+
items: DropdownItem[];
|
|
621
|
+
className?: string;
|
|
622
|
+
menuClassName?: string;
|
|
623
|
+
triggerMode?: "click" | "hover";
|
|
624
|
+
align?: "left" | "right";
|
|
625
|
+
width?: string;
|
|
626
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
627
|
+
}
|
|
628
|
+
declare const Dropdown: React__default.FC<DropdownProps>;
|
|
629
|
+
|
|
630
|
+
interface ProfileDropdownItem extends DropdownItem {
|
|
616
631
|
}
|
|
617
632
|
interface ProfileDropdownProps {
|
|
618
633
|
name: string;
|
|
@@ -765,6 +780,7 @@ declare const useTransaction: ({ url, v, delay, params, dateFilter, }: {
|
|
|
765
780
|
|
|
766
781
|
interface ThemeConfig {
|
|
767
782
|
primaryColor?: string;
|
|
783
|
+
inputHeight?: string;
|
|
768
784
|
}
|
|
769
785
|
interface StoreConfig {
|
|
770
786
|
name?: string;
|
|
@@ -1023,4 +1039,4 @@ declare const useAuth: () => {
|
|
|
1023
1039
|
can: (key: string) => boolean;
|
|
1024
1040
|
};
|
|
1025
1041
|
|
|
1026
|
-
export { type AccountType, AdminProtectedRoute, Badge, type BadgeProps, Branding, type BrandingProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryCard, type CategoryItem, ClassicSpin, CodeBlock, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, 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, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProtectedRoute, type PutFunction, 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, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, generatePdf, storage, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig };
|
|
1042
|
+
export { type AccountType, AdminProtectedRoute, Badge, type BadgeProps, Branding, type BrandingProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryCard, type CategoryItem, ClassicSpin, CodeBlock, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, Dropdown, type DropdownItem, type DropdownProps, type FetchFunction, type FetchProps, Fields, Guard, InfoGrid, Input, type InputProps, 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, ProfileView, type ProfileViewInfoItem, type ProfileViewProps, ProtectedRoute, type PutFunction, 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, Views, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, generatePdf, storage, useA4CategoryView, useA4StatementView, useAntdImageUpload, useApi, useAuth, useAuthStore, useLogin, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig };
|