@clarlabs/ui 0.1.10 → 0.1.11

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.ts CHANGED
@@ -28,7 +28,7 @@ export declare interface AlertProps {
28
28
 
29
29
  export declare type AlertVariant = 'info' | 'success' | 'warning' | 'error';
30
30
 
31
- export declare function AnimatedIcon({ icon, width, height, duration, disableAnimation, color, strokeWidth, className }: AnimatedIconProps): default_2.JSX.Element | null;
31
+ export declare function AnimatedIcon({ icon, width, height, duration, disableAnimation, darkModeColor, lightModeColor, strokeWidth, className }: AnimatedIconProps): default_2.JSX.Element | null;
32
32
 
33
33
  export declare interface AnimatedIconProps {
34
34
  icon: string;
@@ -36,7 +36,8 @@ export declare interface AnimatedIconProps {
36
36
  height?: number;
37
37
  duration?: number;
38
38
  disableAnimation?: boolean;
39
- color?: string;
39
+ darkModeColor?: string;
40
+ lightModeColor?: string;
40
41
  strokeWidth?: number;
41
42
  className?: string;
42
43
  }
@@ -330,24 +331,6 @@ export declare interface ContextMenuProps {
330
331
  disabled?: boolean;
331
332
  }
332
333
 
333
- export declare function Datagrid<T extends Record<string, any>>({ columns, data, onRowClick, striped, hoverable, className }: DatagridProps<T>): default_2.JSX.Element;
334
-
335
- export declare interface DatagridColumn<T = any> {
336
- key: string;
337
- header: string;
338
- width?: string;
339
- render?: (value: any, row: T) => default_2.ReactNode;
340
- }
341
-
342
- export declare interface DatagridProps<T = any> {
343
- columns: DatagridColumn<T>[];
344
- data: T[];
345
- onRowClick?: (row: T) => void;
346
- striped?: boolean;
347
- hoverable?: boolean;
348
- className?: string;
349
- }
350
-
351
334
  export declare function DataList({ items, orientation, size, dividers, boldLabels, className, labelWidth, striped, onCopy }: DataListProps): default_2.JSX.Element;
352
335
 
353
336
  export declare interface DataListItem {
@@ -394,6 +377,35 @@ export declare interface DataListProps {
394
377
 
395
378
  export declare type DataListSize = 'sm' | 'md' | 'lg';
396
379
 
380
+ export declare function DataTable<T = any>({ columns, data: initialData, striped, hoverable, bordered, compact, editable, deletable, addable, onRowClick, onRowEdit, onRowDelete, onRowAdd, rowIdKey, className }: DataTableProps<T>): default_2.JSX.Element;
381
+
382
+ export declare interface DataTableColumn<T = any> {
383
+ key: string;
384
+ header: string;
385
+ width?: string;
386
+ editable?: boolean;
387
+ type?: 'text' | 'number' | 'date' | 'email';
388
+ render?: (value: any, row: T, isEditing: boolean) => default_2.ReactNode;
389
+ }
390
+
391
+ export declare interface DataTableProps<T = any> {
392
+ columns: DataTableColumn<T>[];
393
+ data: T[];
394
+ striped?: boolean;
395
+ hoverable?: boolean;
396
+ bordered?: boolean;
397
+ compact?: boolean;
398
+ editable?: boolean;
399
+ deletable?: boolean;
400
+ addable?: boolean;
401
+ onRowClick?: (row: T) => void;
402
+ onRowEdit?: (row: T, rowIndex: number) => void;
403
+ onRowDelete?: (row: T, rowIndex: number) => void;
404
+ onRowAdd?: (row: T) => void;
405
+ rowIdKey?: string;
406
+ className?: string;
407
+ }
408
+
397
409
  export declare function DatePicker({ value, onChange, minDate, maxDate, placeholder, disabled, variant, className, ...props }: DatePickerProps): default_2.JSX.Element;
398
410
 
399
411
  export declare interface DatePickerProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, 'onChange'> {