@algorithm-shift/design-system 1.2.30 → 1.2.32

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
@@ -36,6 +36,9 @@ type InputProperties = {
36
36
  hasFormContainer?: boolean;
37
37
  validateOnMount?: boolean;
38
38
  onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement> | string) => void;
39
+ data?: Record<string, any>[];
40
+ dataKey?: string;
41
+ dataLabel?: string;
39
42
  };
40
43
 
41
44
  interface TextInputProps extends ElementProps, InputProperties { }
@@ -68,6 +71,7 @@ interface TableProps extends ElementProps {
68
71
  pagination?: boolean;
69
72
  itemsPerPage?: number;
70
73
  onPageChange?: (page: number) => void;
74
+ loading?: boolean;
71
75
  }
72
76
 
73
77
  interface TabsProps extends ElementProps {
@@ -208,7 +212,7 @@ declare function DatePicker({ className, style, ...props }: DatePickerInputProps
208
212
 
209
213
  declare const DateRange: ({ className, style }: DateRangeInputProps) => react_jsx_runtime.JSX.Element;
210
214
 
211
- declare const Table: ({ columns, data, rowActions, className, style, pagination, itemsPerPage, onPageChange }: TableProps) => react_jsx_runtime.JSX.Element;
215
+ declare const Table: ({ columns, data, rowActions, className, style, pagination, itemsPerPage, onPageChange, loading }: TableProps) => react_jsx_runtime.JSX.Element;
212
216
 
213
217
  interface CustomPaginationProps {
214
218
  totalPages: number;
package/dist/index.d.ts CHANGED
@@ -36,6 +36,9 @@ type InputProperties = {
36
36
  hasFormContainer?: boolean;
37
37
  validateOnMount?: boolean;
38
38
  onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement> | string) => void;
39
+ data?: Record<string, any>[];
40
+ dataKey?: string;
41
+ dataLabel?: string;
39
42
  };
40
43
 
41
44
  interface TextInputProps extends ElementProps, InputProperties { }
@@ -68,6 +71,7 @@ interface TableProps extends ElementProps {
68
71
  pagination?: boolean;
69
72
  itemsPerPage?: number;
70
73
  onPageChange?: (page: number) => void;
74
+ loading?: boolean;
71
75
  }
72
76
 
73
77
  interface TabsProps extends ElementProps {
@@ -208,7 +212,7 @@ declare function DatePicker({ className, style, ...props }: DatePickerInputProps
208
212
 
209
213
  declare const DateRange: ({ className, style }: DateRangeInputProps) => react_jsx_runtime.JSX.Element;
210
214
 
211
- declare const Table: ({ columns, data, rowActions, className, style, pagination, itemsPerPage, onPageChange }: TableProps) => react_jsx_runtime.JSX.Element;
215
+ declare const Table: ({ columns, data, rowActions, className, style, pagination, itemsPerPage, onPageChange, loading }: TableProps) => react_jsx_runtime.JSX.Element;
212
216
 
213
217
  interface CustomPaginationProps {
214
218
  totalPages: number;