warqadui 0.0.52 → 0.0.54

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
@@ -529,6 +529,34 @@ interface BrandingProps {
529
529
  }
530
530
  declare const Branding: React__default.FC<BrandingProps>;
531
531
 
532
+ interface ProfileCardProps {
533
+ name: string;
534
+ role?: string;
535
+ image?: string;
536
+ details: Record<string, string | number | undefined | null>;
537
+ backUrl?: string;
538
+ className?: string;
539
+ }
540
+ declare const ProfileCard: React__default.FC<ProfileCardProps>;
541
+
542
+ interface ProfileViewInfoItem {
543
+ label: string;
544
+ value: string | number | undefined | null;
545
+ copiable?: boolean;
546
+ }
547
+ interface ProfileViewProps {
548
+ name: string;
549
+ role?: string;
550
+ email?: string;
551
+ imgUrl?: string;
552
+ userId?: string;
553
+ info?: ProfileViewInfoItem[];
554
+ className?: string;
555
+ title?: string;
556
+ description?: string;
557
+ }
558
+ declare const ProfileView: React__default.FC<ProfileViewProps>;
559
+
532
560
  type LoginTheme = "tech" | "travel" | "healthcare";
533
561
  interface BaseLoginProps {
534
562
  form: UseFormReturn<LoginSchema>;
@@ -593,6 +621,7 @@ interface ProfileDropdownProps {
593
621
  className?: string;
594
622
  triggerMode?: "click" | "hover";
595
623
  size?: "sm" | "md" | "lg";
624
+ role?: string;
596
625
  }
597
626
  declare const ProfileDropdown: React__default.FC<ProfileDropdownProps>;
598
627
 
@@ -708,7 +737,7 @@ declare const useTransaction: ({ url, v, delay, params, dateFilter, }: {
708
737
  params?: Record<string, any>;
709
738
  dateFilter?: boolean;
710
739
  }) => {
711
- TransactionViewComponent: ({ columns, data, error, pageRows, searchPlaceholder, selectable, filterables, verticalLines, index, rowPadding, className, title, description, onCreate, createTitle, ...rest }: {
740
+ TransactionViewComponent: ({ columns, data, error, pageRows, searchPlaceholder, selectable, filterables, verticalLines, index, rowPadding, className, title, description, showReload, onCreate, createTitle, ...rest }: {
712
741
  columns: DataTableColumn[];
713
742
  data: any[];
714
743
  error?: any;
@@ -722,6 +751,7 @@ declare const useTransaction: ({ url, v, delay, params, dateFilter, }: {
722
751
  className?: string;
723
752
  title?: string;
724
753
  description?: string;
754
+ showReload?: boolean;
725
755
  onCreate?: () => void;
726
756
  createTitle?: string;
727
757
  }) => react_jsx_runtime.JSX.Element;
@@ -993,4 +1023,4 @@ declare const useAuth: () => {
993
1023
  can: (key: string) => boolean;
994
1024
  };
995
1025
 
996
- 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, ProfileDropdown, type ProfileDropdownItem, type ProfileDropdownProps, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -529,6 +529,34 @@ interface BrandingProps {
529
529
  }
530
530
  declare const Branding: React__default.FC<BrandingProps>;
531
531
 
532
+ interface ProfileCardProps {
533
+ name: string;
534
+ role?: string;
535
+ image?: string;
536
+ details: Record<string, string | number | undefined | null>;
537
+ backUrl?: string;
538
+ className?: string;
539
+ }
540
+ declare const ProfileCard: React__default.FC<ProfileCardProps>;
541
+
542
+ interface ProfileViewInfoItem {
543
+ label: string;
544
+ value: string | number | undefined | null;
545
+ copiable?: boolean;
546
+ }
547
+ interface ProfileViewProps {
548
+ name: string;
549
+ role?: string;
550
+ email?: string;
551
+ imgUrl?: string;
552
+ userId?: string;
553
+ info?: ProfileViewInfoItem[];
554
+ className?: string;
555
+ title?: string;
556
+ description?: string;
557
+ }
558
+ declare const ProfileView: React__default.FC<ProfileViewProps>;
559
+
532
560
  type LoginTheme = "tech" | "travel" | "healthcare";
533
561
  interface BaseLoginProps {
534
562
  form: UseFormReturn<LoginSchema>;
@@ -593,6 +621,7 @@ interface ProfileDropdownProps {
593
621
  className?: string;
594
622
  triggerMode?: "click" | "hover";
595
623
  size?: "sm" | "md" | "lg";
624
+ role?: string;
596
625
  }
597
626
  declare const ProfileDropdown: React__default.FC<ProfileDropdownProps>;
598
627
 
@@ -708,7 +737,7 @@ declare const useTransaction: ({ url, v, delay, params, dateFilter, }: {
708
737
  params?: Record<string, any>;
709
738
  dateFilter?: boolean;
710
739
  }) => {
711
- TransactionViewComponent: ({ columns, data, error, pageRows, searchPlaceholder, selectable, filterables, verticalLines, index, rowPadding, className, title, description, onCreate, createTitle, ...rest }: {
740
+ TransactionViewComponent: ({ columns, data, error, pageRows, searchPlaceholder, selectable, filterables, verticalLines, index, rowPadding, className, title, description, showReload, onCreate, createTitle, ...rest }: {
712
741
  columns: DataTableColumn[];
713
742
  data: any[];
714
743
  error?: any;
@@ -722,6 +751,7 @@ declare const useTransaction: ({ url, v, delay, params, dateFilter, }: {
722
751
  className?: string;
723
752
  title?: string;
724
753
  description?: string;
754
+ showReload?: boolean;
725
755
  onCreate?: () => void;
726
756
  createTitle?: string;
727
757
  }) => react_jsx_runtime.JSX.Element;
@@ -993,4 +1023,4 @@ declare const useAuth: () => {
993
1023
  can: (key: string) => boolean;
994
1024
  };
995
1025
 
996
- 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, ProfileDropdown, type ProfileDropdownItem, type ProfileDropdownProps, 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 };
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 };