analytica-frontend-lib 1.2.21 → 1.2.22

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.
@@ -1,7 +1,8 @@
1
- import * as react from 'react';
2
- import { HTMLAttributes, ThHTMLAttributes, TdHTMLAttributes } from 'react';
1
+ import react__default, { HTMLAttributes, ThHTMLAttributes } from 'react';
2
+ import { L as LoadingStateConfig, N as NoSearchResultConfig, E as EmptyStateConfig } from '../TableProvider-48a6wb7j.js';
3
3
  export { default as TablePagination, TablePaginationProps } from './TablePagination/index.js';
4
4
  import 'react/jsx-runtime';
5
+ import '../CheckBoxGroup-9n5C0OH4.js';
5
6
 
6
7
  type TableVariant = 'default' | 'borderless';
7
8
  type TableRowState = 'default' | 'selected' | 'invalid' | 'disabled';
@@ -46,39 +47,37 @@ declare function useTableSort<T extends Record<string, unknown>>(data: T[], opti
46
47
  };
47
48
  interface TableProps extends HTMLAttributes<HTMLTableElement> {
48
49
  variant?: TableVariant;
49
- /** Search term to detect if search is active */
50
- searchTerm?: string;
51
- /** Image source for no search result state */
52
- noSearchResultImage?: string;
53
- /** Title for no search result state */
54
- noSearchResultTitle?: string;
55
- /** Description for no search result state */
56
- noSearchResultDescription?: string;
57
- /** Message displayed when table is empty (no search active) */
58
- emptyStateMessage?: string;
59
- /** Text for the action button in empty state */
60
- emptyStateButtonText?: string;
61
- /** Callback when empty state button is clicked */
62
- onEmptyStateButtonClick?: () => void;
50
+ /** Show loading state (controlled by TableProvider) */
51
+ showLoading?: boolean;
52
+ /** Loading state configuration */
53
+ loadingState?: LoadingStateConfig;
54
+ /** Show no search result state (controlled by TableProvider) */
55
+ showNoSearchResult?: boolean;
56
+ /** No search result state configuration */
57
+ noSearchResultState?: NoSearchResultConfig;
58
+ /** Show empty state (controlled by TableProvider) */
59
+ showEmpty?: boolean;
60
+ /** Empty state configuration */
61
+ emptyState?: EmptyStateConfig;
63
62
  }
64
63
  interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
65
64
  state?: TableRowState;
66
65
  }
67
- declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
68
- declare const TableHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
66
+ declare const Table: react__default.ForwardRefExoticComponent<TableProps & react__default.RefAttributes<HTMLTableElement>>;
67
+ declare const TableHeader: react__default.ForwardRefExoticComponent<react__default.HTMLAttributes<HTMLTableSectionElement> & react__default.RefAttributes<HTMLTableSectionElement>>;
69
68
  interface TableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
70
69
  variant?: TableVariant;
71
70
  }
72
- declare const TableBody: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
71
+ declare const TableBody: react__default.ForwardRefExoticComponent<TableBodyProps & react__default.RefAttributes<HTMLTableSectionElement>>;
73
72
  interface TableFooterProps extends HTMLAttributes<HTMLTableSectionElement> {
74
73
  variant?: TableVariant;
75
74
  }
76
- declare const TableFooter: react.ForwardRefExoticComponent<TableFooterProps & react.RefAttributes<HTMLTableSectionElement>>;
75
+ declare const TableFooter: react__default.ForwardRefExoticComponent<TableFooterProps & react__default.RefAttributes<HTMLTableSectionElement>>;
77
76
  interface TableRowPropsExtended extends TableRowProps {
78
77
  variant?: TableVariant | 'defaultBorderless';
79
78
  clickable?: boolean;
80
79
  }
81
- declare const TableRow: react.ForwardRefExoticComponent<TableRowPropsExtended & react.RefAttributes<HTMLTableRowElement>>;
80
+ declare const TableRow: react__default.ForwardRefExoticComponent<TableRowPropsExtended & react__default.RefAttributes<HTMLTableRowElement>>;
82
81
  interface TableHeadProps extends ThHTMLAttributes<HTMLTableCellElement> {
83
82
  /** Enable sorting on this column (default: true) */
84
83
  sortable?: boolean;
@@ -87,8 +86,8 @@ interface TableHeadProps extends ThHTMLAttributes<HTMLTableCellElement> {
87
86
  /** Callback when column header is clicked */
88
87
  onSort?: () => void;
89
88
  }
90
- declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
91
- declare const TableCell: react.ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
92
- declare const TableCaption: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableCaptionElement> & react.RefAttributes<HTMLTableCaptionElement>>;
89
+ declare const TableHead: react__default.ForwardRefExoticComponent<TableHeadProps & react__default.RefAttributes<HTMLTableCellElement>>;
90
+ declare const TableCell: react__default.ForwardRefExoticComponent<react__default.TdHTMLAttributes<HTMLTableCellElement> & react__default.RefAttributes<HTMLTableCellElement>>;
91
+ declare const TableCaption: react__default.ForwardRefExoticComponent<react__default.HTMLAttributes<HTMLTableCaptionElement> & react__default.RefAttributes<HTMLTableCaptionElement>>;
93
92
 
94
93
  export { type SortDirection, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type UseTableSortOptions, Table as default, useTableSort };