warqadui 0.0.39 → 0.0.42

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
@@ -499,8 +499,9 @@ interface SimpleTableProps<TData> {
499
499
  title?: string;
500
500
  enableSearch?: boolean;
501
501
  emptyState?: React__default.ReactNode;
502
+ skeletonCount?: number;
502
503
  }
503
- declare function SimpleTable<TData>({ columns: userColumns, data, className, renderFooter: componentFooter, rowPadding, verticalLines, index, startIndex, isLoading, title, enableSearch, emptyState, }: SimpleTableProps<TData>): react_jsx_runtime.JSX.Element;
504
+ declare function SimpleTable<TData>({ columns: userColumns, data, className, renderFooter: componentFooter, rowPadding, verticalLines, index, startIndex, isLoading, title, enableSearch, emptyState, skeletonCount, }: SimpleTableProps<TData>): react_jsx_runtime.JSX.Element;
504
505
 
505
506
  interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
506
507
  variant?: "primary" | "danger" | "warning" | "success";
@@ -571,13 +572,14 @@ declare const useApi: () => {
571
572
  }>;
572
573
  };
573
574
 
574
- declare const useA4StatementView: ({ url, v, delay, params, }?: {
575
+ declare const useA4StatementView: ({ url, v, delay, params, startPage, }?: {
575
576
  url?: string;
576
577
  v?: 0 | 1 | 2;
577
578
  delay?: number;
578
579
  params?: Record<string, any>;
580
+ startPage?: number;
579
581
  }) => {
580
- A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, }: {
582
+ A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, startPage: componentStartPage, isLoading: externalLoading, }: {
581
583
  tableTitle?: string;
582
584
  columns?: SimpleTableColumn<any>[];
583
585
  data?: any[];
@@ -590,14 +592,14 @@ declare const useA4StatementView: ({ url, v, delay, params, }?: {
590
592
  rowPadding?: string;
591
593
  verticalLines?: boolean;
592
594
  headers?: React.ReactNode;
595
+ startPage?: number;
596
+ isLoading?: boolean;
593
597
  }) => react_jsx_runtime.JSX.Element;
594
598
  data: any;
595
599
  isLoading: boolean;
596
600
  get: FetchFunction;
597
601
  reactToPrintFn: react_to_print.UseReactToPrintFn;
598
602
  };
599
- type A4DataViewProps = Parameters<ReturnType<typeof useA4StatementView>["A4DataView"]>[0] & Parameters<typeof useA4StatementView>[0];
600
- declare const A4DataView: (props: A4DataViewProps) => react_jsx_runtime.JSX.Element;
601
603
 
602
604
  declare const useTransaction: ({ url, v, delay, params, }: {
603
605
  url: string;
@@ -709,4 +711,4 @@ interface StorageManager {
709
711
  */
710
712
  declare const storage: StorageManager;
711
713
 
712
- export { A4DataView, Badge, type BadgeProps, Branding, type BrandingProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ClassicSpin, CodeBlock, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, type FetchFunction, type FetchProps, Fields, InfoGrid, Input, type InputProps, LoadingBox, LoadingSpin, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, PageA4, PageHeader, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, type PutFunction, 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, type UseModalReturn, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, generatePdf, storage, useA4StatementView, useApi, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig };
714
+ export { Badge, type BadgeProps, Branding, type BrandingProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ClassicSpin, CodeBlock, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, type FetchFunction, type FetchProps, Fields, InfoGrid, Input, type InputProps, LoadingBox, LoadingSpin, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, PageA4, PageHeader, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, type PutFunction, 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, type UseModalReturn, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, generatePdf, storage, useA4StatementView, useApi, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig };
package/dist/index.d.ts CHANGED
@@ -499,8 +499,9 @@ interface SimpleTableProps<TData> {
499
499
  title?: string;
500
500
  enableSearch?: boolean;
501
501
  emptyState?: React__default.ReactNode;
502
+ skeletonCount?: number;
502
503
  }
503
- declare function SimpleTable<TData>({ columns: userColumns, data, className, renderFooter: componentFooter, rowPadding, verticalLines, index, startIndex, isLoading, title, enableSearch, emptyState, }: SimpleTableProps<TData>): react_jsx_runtime.JSX.Element;
504
+ declare function SimpleTable<TData>({ columns: userColumns, data, className, renderFooter: componentFooter, rowPadding, verticalLines, index, startIndex, isLoading, title, enableSearch, emptyState, skeletonCount, }: SimpleTableProps<TData>): react_jsx_runtime.JSX.Element;
504
505
 
505
506
  interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
506
507
  variant?: "primary" | "danger" | "warning" | "success";
@@ -571,13 +572,14 @@ declare const useApi: () => {
571
572
  }>;
572
573
  };
573
574
 
574
- declare const useA4StatementView: ({ url, v, delay, params, }?: {
575
+ declare const useA4StatementView: ({ url, v, delay, params, startPage, }?: {
575
576
  url?: string;
576
577
  v?: 0 | 1 | 2;
577
578
  delay?: number;
578
579
  params?: Record<string, any>;
580
+ startPage?: number;
579
581
  }) => {
580
- A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, }: {
582
+ A4DataView: ({ columns, data, error, info, index, title, subtitle, printable, rowPadding, verticalLines, headers, tableTitle, startPage: componentStartPage, isLoading: externalLoading, }: {
581
583
  tableTitle?: string;
582
584
  columns?: SimpleTableColumn<any>[];
583
585
  data?: any[];
@@ -590,14 +592,14 @@ declare const useA4StatementView: ({ url, v, delay, params, }?: {
590
592
  rowPadding?: string;
591
593
  verticalLines?: boolean;
592
594
  headers?: React.ReactNode;
595
+ startPage?: number;
596
+ isLoading?: boolean;
593
597
  }) => react_jsx_runtime.JSX.Element;
594
598
  data: any;
595
599
  isLoading: boolean;
596
600
  get: FetchFunction;
597
601
  reactToPrintFn: react_to_print.UseReactToPrintFn;
598
602
  };
599
- type A4DataViewProps = Parameters<ReturnType<typeof useA4StatementView>["A4DataView"]>[0] & Parameters<typeof useA4StatementView>[0];
600
- declare const A4DataView: (props: A4DataViewProps) => react_jsx_runtime.JSX.Element;
601
603
 
602
604
  declare const useTransaction: ({ url, v, delay, params, }: {
603
605
  url: string;
@@ -709,4 +711,4 @@ interface StorageManager {
709
711
  */
710
712
  declare const storage: StorageManager;
711
713
 
712
- export { A4DataView, Badge, type BadgeProps, Branding, type BrandingProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ClassicSpin, CodeBlock, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, type FetchFunction, type FetchProps, Fields, InfoGrid, Input, type InputProps, LoadingBox, LoadingSpin, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, PageA4, PageHeader, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, type PutFunction, 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, type UseModalReturn, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, generatePdf, storage, useA4StatementView, useApi, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig };
714
+ export { Badge, type BadgeProps, Branding, type BrandingProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ClassicSpin, CodeBlock, DashboardLayout, DataTable, type DataTableColumn, DateInput, type DateInputProps, type DeleteFunction, type FetchFunction, type FetchProps, Fields, InfoGrid, Input, type InputProps, LoadingBox, LoadingSpin, Modal, type ModalProps, type NavItem, type NavItems, type Option, OverlaySpin, PageA4, PageHeader, type PdfOptions, PhoneInput, type PhoneInputProps, type PostFunction, PostTable, type PostTableActions, type PostTableChangeParams, type PutFunction, 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, type UseModalReturn, type WarqadConfig, type WarqadConfigContextType, WarqadProvider, generatePdf, storage, useA4StatementView, useApi, useModal, useSearchApiContext, useSelectContext, useTheme, useTransaction, useWarqadConfig };