@clarlabs/ui 0.1.9 → 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
  }
@@ -86,6 +87,8 @@ export declare interface AudioProps extends Omit<default_2.AudioHTMLAttributes<H
86
87
 
87
88
  export declare type AudioVariant = 'minimal' | 'standard' | 'detailed';
88
89
 
90
+ export declare const availableFlags: string[];
91
+
89
92
  export declare const availableIcons: string[];
90
93
 
91
94
  export declare function Avatar({ src, alt, initials, size, status, className }: AvatarProps): default_2.JSX.Element;
@@ -328,24 +331,6 @@ export declare interface ContextMenuProps {
328
331
  disabled?: boolean;
329
332
  }
330
333
 
331
- export declare function Datagrid<T extends Record<string, any>>({ columns, data, onRowClick, striped, hoverable, className }: DatagridProps<T>): default_2.JSX.Element;
332
-
333
- export declare interface DatagridColumn<T = any> {
334
- key: string;
335
- header: string;
336
- width?: string;
337
- render?: (value: any, row: T) => default_2.ReactNode;
338
- }
339
-
340
- export declare interface DatagridProps<T = any> {
341
- columns: DatagridColumn<T>[];
342
- data: T[];
343
- onRowClick?: (row: T) => void;
344
- striped?: boolean;
345
- hoverable?: boolean;
346
- className?: string;
347
- }
348
-
349
334
  export declare function DataList({ items, orientation, size, dividers, boldLabels, className, labelWidth, striped, onCopy }: DataListProps): default_2.JSX.Element;
350
335
 
351
336
  export declare interface DataListItem {
@@ -392,6 +377,35 @@ export declare interface DataListProps {
392
377
 
393
378
  export declare type DataListSize = 'sm' | 'md' | 'lg';
394
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
+
395
409
  export declare function DatePicker({ value, onChange, minDate, maxDate, placeholder, disabled, variant, className, ...props }: DatePickerProps): default_2.JSX.Element;
396
410
 
397
411
  export declare interface DatePickerProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, 'onChange'> {
@@ -473,6 +487,18 @@ export declare interface FilePickerProps {
473
487
 
474
488
  export declare type FileStatus = 'idle' | 'processing' | 'uploaded' | 'failed';
475
489
 
490
+ export declare function FlagIcon({ flag, width, height, className, title, style, rounded }: FlagIconProps): default_2.JSX.Element | null;
491
+
492
+ export declare interface FlagIconProps {
493
+ flag: string;
494
+ width?: number;
495
+ height?: number;
496
+ className?: string;
497
+ title?: string;
498
+ style?: default_2.CSSProperties;
499
+ rounded?: boolean;
500
+ }
501
+
476
502
  export declare function Footer({ variant, brandName, brandLogo, brandDescription, sections, socialLinks, copyright, showYear, bottomLinks, children, className, ...props }: FooterProps): default_2.JSX.Element;
477
503
 
478
504
  export declare interface FooterLink {
@@ -565,6 +591,18 @@ export declare type GaugeSize = 'sm' | 'md' | 'lg' | 'xl';
565
591
 
566
592
  export declare type GaugeVariant = 'default' | 'success' | 'warning' | 'error' | 'info';
567
593
 
594
+ export declare const getAllFlags: () => {
595
+ code: string;
596
+ name: string;
597
+ translation: string;
598
+ }[];
599
+
600
+ export declare const getFlagInfo: (flagCode: string) => {
601
+ code: string;
602
+ name: string;
603
+ translation: string;
604
+ } | null;
605
+
568
606
  export declare function Grid({ columns, columnsSm, columnsMd, columnsLg, columnsXl, gap, rowGap, columnGap, alignItems, justifyItems, justifyContent, autoFlow, className, children, ...props }: GridProps): default_2.JSX.Element;
569
607
 
570
608
  export declare namespace Grid {