bianic-ui 2.14.0-beta.8 → 2.14.0

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.
Files changed (104) hide show
  1. package/dist/cjs/index.js +958 -93
  2. package/dist/cjs/lib.css +1 -1
  3. package/dist/cjs/types/components/Button/PropInterfaceButton.d.ts +1 -0
  4. package/dist/cjs/types/components/Button/buttonConfigs.d.ts +6 -0
  5. package/dist/cjs/types/components/Forms/LiveSearch/hooks/useLiveSearch.d.ts +2 -0
  6. package/dist/cjs/types/components/Forms/LiveSearch/index.d.ts +1 -1
  7. package/dist/cjs/types/components/Forms/LiveSearch/types/index.d.ts +1 -0
  8. package/dist/cjs/types/components/Forms/TagLabelInput/index.d.ts +1 -0
  9. package/dist/cjs/types/components/InfoPanel/config.d.ts +2 -5
  10. package/dist/cjs/types/components/InfoPanel/index.d.ts +7 -3
  11. package/dist/cjs/types/components/Table/DataTable/DataTable.d.ts +4 -0
  12. package/dist/cjs/types/components/Table/DataTable/SortableHeadCell.d.ts +11 -0
  13. package/dist/cjs/types/components/Table/DataTable/configs.d.ts +5 -0
  14. package/dist/cjs/types/components/Table/DataTable/index.d.ts +5 -0
  15. package/dist/cjs/types/components/Table/DataTable/types.d.ts +100 -0
  16. package/dist/cjs/types/components/Table/DataTable/useDataTable.d.ts +4 -0
  17. package/dist/cjs/types/components/Table/DataTable/utils.d.ts +7 -0
  18. package/dist/cjs/types/components/Table/index.d.ts +2 -0
  19. package/dist/cjs/types/components/TagLabel/configs.d.ts +8 -1
  20. package/dist/cjs/types/components/index.d.ts +5 -1
  21. package/dist/cjs/types/stories/Button/Button.stories.d.ts +19 -0
  22. package/dist/cjs/types/stories/Form/LiveSearch/Livesearch.stories.d.ts +1 -0
  23. package/dist/cjs/types/stories/Form/LiveSearch/Livesearch.test.stories.d.ts +3 -0
  24. package/dist/cjs/types/stories/Form/TagLabelInput/TagLabelInput.stories.d.ts +13 -0
  25. package/dist/cjs/types/stories/InfoPanel/InfoPanel.stories.d.ts +95 -1
  26. package/dist/cjs/types/stories/InfoPanel/InfoPanel.test.stories.d.ts +33 -0
  27. package/dist/cjs/types/stories/PaginationBar/PaginationBar.test.stories.d.ts +27 -0
  28. package/dist/cjs/types/stories/Table/DataTable.stories.d.ts +245 -0
  29. package/dist/cjs/types/stories/Table/DataTable.test.stories.d.ts +76 -0
  30. package/dist/cjs/types/stories/Table/useTableDataHandler.test.stories.d.ts +19 -0
  31. package/dist/cjs/types/stories/TagLabel/TagLabel.stories.d.ts +4 -0
  32. package/dist/cjs/types/stories/TagLabel/TagLabel.test.stories.d.ts +38 -0
  33. package/dist/cjs/types/stories/Tooltip/Tooltip.stories.d.ts +19 -0
  34. package/dist/cjs/types/stories/Tooltip/Tooltip.test.stories.d.ts +33 -0
  35. package/dist/cjs/types/stories/Utility/Formatters.stories.d.ts +18 -0
  36. package/dist/cjs/types/stories/Utility/Formatters.test.stories.d.ts +21 -0
  37. package/dist/cjs/types/stories/Utility/cleanParams.stories.d.ts +33 -0
  38. package/dist/cjs/types/stories/Utility/filterSamples.d.ts +62 -0
  39. package/dist/cjs/types/stories/Utility/useAppliedFilter.stories.d.ts +46 -0
  40. package/dist/cjs/types/stories/Utility/useDebounce.stories.d.ts +31 -0
  41. package/dist/cjs/types/stories/Utility/useDebounce.test.stories.d.ts +19 -0
  42. package/dist/cjs/types/stories/Utility/usePersistentState.stories.d.ts +44 -0
  43. package/dist/cjs/types/stories/Utility/usePersistentState.test.stories.d.ts +21 -0
  44. package/dist/cjs/types/utility/hooks/useAppliedFilter.d.ts +19 -0
  45. package/dist/cjs/types/utility/hooks/useDebounce.d.ts +3 -0
  46. package/dist/cjs/types/utility/hooks/usePersistentState.d.ts +8 -0
  47. package/dist/cjs/types/utility/hooks/useTableDataHandler.d.ts +1 -1
  48. package/dist/cjs/types/utility/index.d.ts +8 -0
  49. package/dist/cjs/types/utility/public/filterParams.d.ts +4 -0
  50. package/dist/cjs/types/utility/public/formatters.d.ts +2 -0
  51. package/dist/cjs/types/utility/public/highlightMatch.d.ts +3 -0
  52. package/dist/esm/index.js +948 -95
  53. package/dist/esm/lib.css +1 -1
  54. package/dist/esm/types/components/Button/PropInterfaceButton.d.ts +1 -0
  55. package/dist/esm/types/components/Button/buttonConfigs.d.ts +6 -0
  56. package/dist/esm/types/components/Forms/LiveSearch/hooks/useLiveSearch.d.ts +2 -0
  57. package/dist/esm/types/components/Forms/LiveSearch/index.d.ts +1 -1
  58. package/dist/esm/types/components/Forms/LiveSearch/types/index.d.ts +1 -0
  59. package/dist/esm/types/components/Forms/TagLabelInput/index.d.ts +1 -0
  60. package/dist/esm/types/components/InfoPanel/config.d.ts +2 -5
  61. package/dist/esm/types/components/InfoPanel/index.d.ts +7 -3
  62. package/dist/esm/types/components/Table/DataTable/DataTable.d.ts +4 -0
  63. package/dist/esm/types/components/Table/DataTable/SortableHeadCell.d.ts +11 -0
  64. package/dist/esm/types/components/Table/DataTable/configs.d.ts +5 -0
  65. package/dist/esm/types/components/Table/DataTable/index.d.ts +5 -0
  66. package/dist/esm/types/components/Table/DataTable/types.d.ts +100 -0
  67. package/dist/esm/types/components/Table/DataTable/useDataTable.d.ts +4 -0
  68. package/dist/esm/types/components/Table/DataTable/utils.d.ts +7 -0
  69. package/dist/esm/types/components/Table/index.d.ts +2 -0
  70. package/dist/esm/types/components/TagLabel/configs.d.ts +8 -1
  71. package/dist/esm/types/components/index.d.ts +5 -1
  72. package/dist/esm/types/stories/Button/Button.stories.d.ts +19 -0
  73. package/dist/esm/types/stories/Form/LiveSearch/Livesearch.stories.d.ts +1 -0
  74. package/dist/esm/types/stories/Form/LiveSearch/Livesearch.test.stories.d.ts +3 -0
  75. package/dist/esm/types/stories/Form/TagLabelInput/TagLabelInput.stories.d.ts +13 -0
  76. package/dist/esm/types/stories/InfoPanel/InfoPanel.stories.d.ts +95 -1
  77. package/dist/esm/types/stories/InfoPanel/InfoPanel.test.stories.d.ts +33 -0
  78. package/dist/esm/types/stories/PaginationBar/PaginationBar.test.stories.d.ts +27 -0
  79. package/dist/esm/types/stories/Table/DataTable.stories.d.ts +245 -0
  80. package/dist/esm/types/stories/Table/DataTable.test.stories.d.ts +76 -0
  81. package/dist/esm/types/stories/Table/useTableDataHandler.test.stories.d.ts +19 -0
  82. package/dist/esm/types/stories/TagLabel/TagLabel.stories.d.ts +4 -0
  83. package/dist/esm/types/stories/TagLabel/TagLabel.test.stories.d.ts +38 -0
  84. package/dist/esm/types/stories/Tooltip/Tooltip.stories.d.ts +19 -0
  85. package/dist/esm/types/stories/Tooltip/Tooltip.test.stories.d.ts +33 -0
  86. package/dist/esm/types/stories/Utility/Formatters.stories.d.ts +18 -0
  87. package/dist/esm/types/stories/Utility/Formatters.test.stories.d.ts +21 -0
  88. package/dist/esm/types/stories/Utility/cleanParams.stories.d.ts +33 -0
  89. package/dist/esm/types/stories/Utility/filterSamples.d.ts +62 -0
  90. package/dist/esm/types/stories/Utility/useAppliedFilter.stories.d.ts +46 -0
  91. package/dist/esm/types/stories/Utility/useDebounce.stories.d.ts +31 -0
  92. package/dist/esm/types/stories/Utility/useDebounce.test.stories.d.ts +19 -0
  93. package/dist/esm/types/stories/Utility/usePersistentState.stories.d.ts +44 -0
  94. package/dist/esm/types/stories/Utility/usePersistentState.test.stories.d.ts +21 -0
  95. package/dist/esm/types/utility/hooks/useAppliedFilter.d.ts +19 -0
  96. package/dist/esm/types/utility/hooks/useDebounce.d.ts +3 -0
  97. package/dist/esm/types/utility/hooks/usePersistentState.d.ts +8 -0
  98. package/dist/esm/types/utility/hooks/useTableDataHandler.d.ts +1 -1
  99. package/dist/esm/types/utility/index.d.ts +8 -0
  100. package/dist/esm/types/utility/public/filterParams.d.ts +4 -0
  101. package/dist/esm/types/utility/public/formatters.d.ts +2 -0
  102. package/dist/esm/types/utility/public/highlightMatch.d.ts +3 -0
  103. package/dist/index.d.ts +160 -7
  104. package/package.json +1 -1
@@ -13,6 +13,7 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'disa
13
13
  disabled?: boolean;
14
14
  iconRight?: ReactNode;
15
15
  iconLeft?: ReactNode;
16
+ iconSize?: number;
16
17
  right?: ReactNode;
17
18
  left?: ReactNode;
18
19
  label?: string;
@@ -36,6 +36,12 @@ export declare const minWidthConfig: {
36
36
  sm: string;
37
37
  tn: string;
38
38
  };
39
+ export declare const iconSizeConfig: {
40
+ lg: number;
41
+ md: number;
42
+ sm: number;
43
+ tn: number;
44
+ };
39
45
  export declare const iconOnlySizeConfig: {
40
46
  lg: string;
41
47
  md: string;
@@ -6,6 +6,8 @@ declare const useLiveSearch: ({ value, setValue, onChangeText, dropContOnClickIt
6
6
  setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
7
7
  searchTerm: string;
8
8
  handleInputChange: (e: ChangeEvent<HTMLInputElement>) => void;
9
+ handleCancel: () => void;
10
+ handleClear: (inputEl: HTMLInputElement | null) => void;
9
11
  handleDropdownItemClick: (event: MouseEvent<HTMLDivElement>, clickedValue: OptionValue) => void;
10
12
  };
11
13
  export default useLiveSearch;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { LiveSearchProps } from './types';
3
- declare function LiveSearch({ autoComplete, children, descText, disabled, dropContProps, id, label, onChangeText, onChangeButton, onClickDropdown, options, placeholder, readOnly, required, searchVariant, setValue, size, isValid, value, }: LiveSearchProps): React.JSX.Element;
3
+ declare function LiveSearch({ autoComplete, children, descText, disabled, dropContProps, id, label, noResultsContent, onChangeText, onChangeButton, onClickDropdown, options, placeholder, readOnly, required, searchVariant, setValue, size, isValid, value, }: LiveSearchProps): React.JSX.Element;
4
4
  export default LiveSearch;
@@ -11,6 +11,7 @@ export interface LiveSearchProps extends Omit<ComponentPropsWithoutRef<'input'>,
11
11
  id?: string;
12
12
  isValid?: boolean | null;
13
13
  label?: string;
14
+ noResultsContent?: ReactNode | ((searchTerm: string) => ReactNode);
14
15
  onChangeText?: (e: ChangeEvent<HTMLInputElement>) => void;
15
16
  onChangeButton?: ReactNode;
16
17
  onClickDropdown?: (event: MouseEvent<HTMLDivElement>) => void;
@@ -7,6 +7,7 @@ export interface TagLabelInputProps<T extends TagValue = TagValue> extends Omit<
7
7
  description?: string;
8
8
  disabled?: boolean;
9
9
  dropContProps?: Omit<DropdownContainerProps, 'children'>;
10
+ noResultsContent?: ReactNode | ((searchTerm: string) => ReactNode);
10
11
  id?: string;
11
12
  isValid?: boolean | null;
12
13
  label?: string;
@@ -1,12 +1,9 @@
1
1
  declare const colorConfig: {
2
2
  yellow: string;
3
3
  blue: string;
4
+ green: string;
4
5
  grey: string;
5
6
  white: string;
6
7
  };
7
- declare const sizeConfig: {
8
- container: string;
9
- 'form-sm': string;
10
- 'form-md': string;
11
- };
8
+ declare const sizeConfig: Record<'container' | 'container-sm' | 'form-md' | 'form-sm', string>;
12
9
  export { colorConfig, sizeConfig };
@@ -1,7 +1,11 @@
1
1
  import React from 'react';
2
+ export type InfoPanelVariant = 'container' | 'form' | 'form-sm' | 'form-md';
3
+ export type InfoPanelSize = 'md' | 'sm';
4
+ export type InfoPanelColor = 'yellow' | 'blue' | 'green' | 'grey' | 'white' | 'custom';
2
5
  export interface InfoPanelProps {
3
- variant?: 'container' | 'form-sm' | 'form-md';
4
- color?: 'yellow' | 'blue' | 'grey' | 'white' | 'custom';
6
+ variant?: InfoPanelVariant;
7
+ size?: InfoPanelSize;
8
+ color?: InfoPanelColor;
5
9
  /** Palette token without the `bia-` prefix, e.g. `green-light-90`. */
6
10
  bgColor?: string;
7
11
  /** Palette token without the `bia-` prefix, e.g. `green-dark-10`. */
@@ -11,5 +15,5 @@ export interface InfoPanelProps {
11
15
  className?: string;
12
16
  children?: React.ReactNode;
13
17
  }
14
- declare function InfoPanel({ variant, color, bgColor, textColor, outlineColor, className, children, }: InfoPanelProps): React.JSX.Element;
18
+ declare function InfoPanel({ variant, size, color, bgColor, textColor, outlineColor, className, children, }: InfoPanelProps): React.JSX.Element;
15
19
  export default InfoPanel;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DataTableProps } from './types';
3
+ declare function DataTable<T extends object>({ columns, data, rowKey, pagination, search, sort, isLoading, buttonActions, middleSection, rowClassName, rowProps, renderRow, emptyValue, emptyContent, emptySubContent, noResultsContent, noResultsSubContent, customEmptyContent, tableClassName, className, ...rest }: DataTableProps<T>): React.JSX.Element;
4
+ export default DataTable;
@@ -0,0 +1,11 @@
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ import type { DataTableAlign, DataTableSortOrder } from './types';
3
+ export interface SortableHeadCellProps extends Omit<ComponentPropsWithoutRef<'th'>, 'children' | 'onClick' | 'align'> {
4
+ label: ReactNode;
5
+ sortOrder?: DataTableSortOrder | null;
6
+ onSort?: () => void;
7
+ align?: DataTableAlign;
8
+ className?: string;
9
+ }
10
+ declare function SortableHeadCell({ label, sortOrder, onSort, align, className, ...rest }: SortableHeadCellProps): React.JSX.Element;
11
+ export default SortableHeadCell;
@@ -0,0 +1,5 @@
1
+ import type { DataTableAlign } from './types';
2
+ export declare const ALL_PAGE_SIZE = 999;
3
+ export declare const alignConfig: Record<DataTableAlign, string>;
4
+ export declare const headerJustifyConfig: Record<DataTableAlign, string>;
5
+ export declare const fitWidthConfig: Record<'fit' | 'other', string>;
@@ -0,0 +1,5 @@
1
+ export { default as DataTable } from './DataTable';
2
+ export { default as SortableHeadCell } from './SortableHeadCell';
3
+ export { useDataTable } from './useDataTable';
4
+ export type { SortableHeadCellProps } from './SortableHeadCell';
5
+ export type { DataTableProps, DataTableColumn, DataTableColumnType, DataTableAlign, DataTableMode, DataTablePagination, DataTablePageState, DataTableSearch, DataTableSort, DataTableSortConfig, DataTableSortOrder, UseDataTableOptions, UseDataTableResult, } from './types';
@@ -0,0 +1,100 @@
1
+ import type { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export type DataTableMode = 'client' | 'server';
3
+ export type DataTableAlign = 'start' | 'center' | 'end';
4
+ export type DataTableColumnType = 'index' | 'actions';
5
+ export type DataTableSortOrder = 'asc' | 'desc';
6
+ export interface DataTableColumn<T> {
7
+ key: string;
8
+ label: ReactNode;
9
+ type?: DataTableColumnType;
10
+ accessor?: (row: T) => unknown;
11
+ render?: (value: unknown, row: T, index: number) => ReactNode;
12
+ sortable?: boolean;
13
+ sortKey?: string;
14
+ align?: DataTableAlign;
15
+ width?: number | string;
16
+ minWidth?: number | string;
17
+ maxWidth?: number | string;
18
+ cellClassName?: string | ((row: T, index: number) => string);
19
+ headerClassName?: string;
20
+ }
21
+ export interface DataTablePageState {
22
+ page: number;
23
+ pageSize: number;
24
+ }
25
+ export interface DataTablePagination {
26
+ mode?: DataTableMode;
27
+ page?: number;
28
+ defaultPage?: number | 'last';
29
+ pageSize?: number;
30
+ defaultPageSize?: number;
31
+ totalCount?: number;
32
+ onChange?: (state: DataTablePageState) => void;
33
+ }
34
+ export interface DataTableSearch {
35
+ mode?: DataTableMode;
36
+ defaultValue?: string;
37
+ onChange?: (text: string) => void;
38
+ keys?: string[];
39
+ debounceMs?: number;
40
+ placeholder?: string;
41
+ }
42
+ export interface DataTableSort {
43
+ key: string;
44
+ order: DataTableSortOrder;
45
+ }
46
+ export interface DataTableSortConfig {
47
+ mode?: DataTableMode;
48
+ value?: DataTableSort | null;
49
+ defaultValue?: DataTableSort | null;
50
+ onChange?: (sort: DataTableSort | null) => void;
51
+ }
52
+ export interface UseDataTableOptions<T> {
53
+ data: T[];
54
+ columns: DataTableColumn<T>[];
55
+ pagination?: DataTablePagination;
56
+ search?: DataTableSearch;
57
+ sort?: DataTableSortConfig;
58
+ }
59
+ export interface UseDataTableResult<T> {
60
+ rows: T[];
61
+ rowOffset: number;
62
+ page: number;
63
+ pageSize: number;
64
+ totalPages: number;
65
+ totalCount: number;
66
+ firstIndex: number;
67
+ lastIndex: number;
68
+ setPage: (page: number) => void;
69
+ setPageSize: (pageSize: number) => void;
70
+ searchText: string;
71
+ setSearchText: (text: string) => void;
72
+ submitSearch: () => void;
73
+ isSearchActive: boolean;
74
+ isNoResults: boolean;
75
+ sort: DataTableSort | null;
76
+ toggleSort: (columnKey: string) => void;
77
+ getValue: (row: T, column: DataTableColumn<T>) => unknown;
78
+ }
79
+ export interface DataTableProps<T extends object> extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
80
+ columns: DataTableColumn<T>[];
81
+ data: T[];
82
+ rowKey: (keyof T & string) | ((row: T) => string | number);
83
+ pagination?: DataTablePagination;
84
+ search?: DataTableSearch;
85
+ sort?: DataTableSortConfig;
86
+ isLoading?: boolean;
87
+ buttonActions?: ReactNode[];
88
+ middleSection?: ReactNode;
89
+ rowClassName?: (row: T, index: number) => string;
90
+ rowProps?: (row: T, index: number) => ComponentPropsWithoutRef<'tr'>;
91
+ renderRow?: (row: T, index: number, defaultCells: ReactNode[]) => ReactNode;
92
+ emptyValue?: ReactNode;
93
+ emptyContent?: string;
94
+ emptySubContent?: string;
95
+ noResultsContent?: string;
96
+ noResultsSubContent?: string;
97
+ customEmptyContent?: ReactNode;
98
+ tableClassName?: string;
99
+ className?: string;
100
+ }
@@ -0,0 +1,4 @@
1
+ import type { UseDataTableOptions, UseDataTableResult } from './types';
2
+ declare function useDataTable<T>(options: UseDataTableOptions<T>): UseDataTableResult<T>;
3
+ export { useDataTable };
4
+ export default useDataTable;
@@ -0,0 +1,7 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { DataTableColumn } from './types';
3
+ export declare function getValueAtPath(row: unknown, path: string): unknown;
4
+ export declare function getColumnValue<T>(row: T, column: DataTableColumn<T>): unknown;
5
+ export declare function getColumnStyle<T>(column: DataTableColumn<T>): CSSProperties;
6
+ export declare function compareValues(a: unknown, b: unknown, direction: 1 | -1): number;
7
+ export declare function matchesSearch<T>(row: T, columns: DataTableColumn<T>[], keyword: string): boolean;
@@ -4,3 +4,5 @@ export { default as TableCell } from './TableCell';
4
4
  export { default as TableHead } from './TableHead';
5
5
  export { default as TableRow } from './TableRow';
6
6
  export { BlockLoading, EmptyTable, TableFooterController, TableHeaderController, TableSearchInput, } from './TableUtility';
7
+ export { DataTable, SortableHeadCell, useDataTable } from './DataTable';
8
+ export type { DataTableProps, DataTableColumn, DataTableColumnType, DataTableAlign, DataTableMode, DataTablePagination, DataTablePageState, DataTableSearch, DataTableSort, DataTableSortConfig, DataTableSortOrder, UseDataTableOptions, UseDataTableResult, SortableHeadCellProps, } from './DataTable';
@@ -18,6 +18,7 @@ declare const iconOnlySizeConfig: {
18
18
  sm: string;
19
19
  tn: string;
20
20
  };
21
+ declare const iconOnlyBorderSizeConfig: Record<'md' | 'sm' | 'tn', string>;
21
22
  declare const closeColorConfig: {
22
23
  default: string;
23
24
  blue: string;
@@ -38,4 +39,10 @@ declare const rightPaddingConfig: {
38
39
  sm: string;
39
40
  tn: string;
40
41
  };
41
- export { colorConfig, sizeConfig, iconOnlySizeConfig, closeColorConfig, closeSizeConfig, rightPaddingConfig, };
42
+ declare const monospaceSizeConfig: Record<'md' | 'sm' | 'tn', string>;
43
+ declare const gapConfig: Record<'md' | 'sm' | 'tn', string>;
44
+ declare const monospaceGapConfig: Record<'md' | 'sm' | 'tn', string>;
45
+ declare const textPaddingConfig: Record<'md' | 'sm' | 'tn', string>;
46
+ declare const iconWrapperConfig: Record<'md' | 'sm' | 'tn', string>;
47
+ declare const rightIconWrapperConfig: Record<'md' | 'sm' | 'tn', string>;
48
+ export { monospaceSizeConfig, gapConfig, monospaceGapConfig, textPaddingConfig, iconWrapperConfig, rightIconWrapperConfig, colorConfig, sizeConfig, iconOnlySizeConfig, iconOnlyBorderSizeConfig, closeColorConfig, closeSizeConfig, rightPaddingConfig, };
@@ -16,6 +16,7 @@ export { MenuContainer, MenuItem } from './Menu';
16
16
  export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, TagLabelInput, Toggle, SegmentButtonItem, SegmentButtonGroup, FormLabel, FormGroup, FormGroupButton, FormGroupLabel, DropdownItem, DropdownContainer, DatePicker, PickerCalendar, YearPicker, SimpleFileUploader, DropzoneFileUploader, } from './Forms';
17
17
  export * from './Icons';
18
18
  export { default as InfoPanel } from './InfoPanel';
19
+ export type { InfoPanelProps, InfoPanelVariant, InfoPanelSize, InfoPanelColor, } from './InfoPanel';
19
20
  export { default as Modal } from './Modal/Modal';
20
21
  export { default as Notification } from './Notification';
21
22
  export { default as PaginationBar } from './PaginationBar/PaginationBar';
@@ -28,7 +29,8 @@ export { default as Slider } from './Slider';
28
29
  export { default as Spinner } from './Spinner/Spinner';
29
30
  export { default as Tab } from './Tab/Tab';
30
31
  export { default as TabMenu } from './TabMenu/TabMenu';
31
- export { Table, TableBody, TableCell, TableHead, TableRow, TableFooterController, TableHeaderController, TableSearchInput, EmptyTable, BlockLoading, } from './Table';
32
+ export { Table, TableBody, TableCell, TableHead, TableRow, TableFooterController, TableHeaderController, TableSearchInput, EmptyTable, BlockLoading, DataTable, SortableHeadCell, useDataTable, } from './Table';
33
+ export type { DataTableProps, DataTableColumn, DataTableColumnType, DataTableAlign, DataTableMode, DataTablePagination, DataTablePageState, DataTableSearch, DataTableSort, DataTableSortConfig, DataTableSortOrder, UseDataTableOptions, UseDataTableResult, SortableHeadCellProps, } from './Table';
32
34
  export { default as TagLabel } from './TagLabel';
33
35
  export { default as Tooltip } from './Tooltip';
34
36
  export { Display, P, Heading, Text, Link } from './Typography';
@@ -39,3 +41,5 @@ export { default as Window } from './Window';
39
41
  export { getRelativeTime, formatDateTime } from '../utility';
40
42
  export type { DateTimeFormatType } from '../utility';
41
43
  export { useTableDataHandler } from '../utility/hooks/useTableDataHandler';
44
+ export { useDebounce, usePersistentState, useAppliedFilter, cleanParams, isFilterActive, isEmptyFilterValue, formatFileSize, truncateText, highlightMatch, } from '../utility';
45
+ export type { UsePersistentStateOptions, PersistentStorageType, UseAppliedFilterOptions, UseAppliedFilterResult, } from '../utility';
@@ -6,6 +6,21 @@ declare const meta: {
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
9
+ argTypes: {
10
+ iconSize: {
11
+ control: {
12
+ type: "number";
13
+ min: number;
14
+ max: number;
15
+ };
16
+ description: string;
17
+ table: {
18
+ defaultValue: {
19
+ summary: string;
20
+ };
21
+ };
22
+ };
23
+ };
9
24
  args: {};
10
25
  };
11
26
  export default meta;
@@ -31,3 +46,7 @@ export declare const DemoWithIconBoth: Story;
31
46
  export declare const DemoWithIconOnlyBoth: Story;
32
47
  export declare const DemoWithIconOnly: Story;
33
48
  export declare const DemoWithMovingIcon: Story;
49
+ export declare const IconMatchesSize: Story;
50
+ export declare const CustomIconSize: Story;
51
+ export declare const CustomIconSizeIconOnly: Story;
52
+ export declare const AllStates: Story;
@@ -4,3 +4,4 @@ declare const meta: Meta<typeof LiveSearch>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const LivesearchProp: Story;
7
+ export declare const CustomNoResultsContent: Story;
@@ -25,3 +25,6 @@ export default meta;
25
25
  type Story = StoryObj<typeof meta>;
26
26
  export declare const ListOpensUnderInputAfterLayoutShift: Story;
27
27
  export declare const FlippedListStaysAttachedWhileFiltering: Story;
28
+ export declare const ClickAwayCancelsSearch: Story;
29
+ export declare const EscapeCancelsSearch: Story;
30
+ export declare const ClearButtonEmptiesTypedText: Story;
@@ -12,6 +12,18 @@ declare const meta: {
12
12
  children: {
13
13
  control: false;
14
14
  };
15
+ noResultsContent: {
16
+ control: false;
17
+ description: string;
18
+ table: {
19
+ defaultValue: {
20
+ summary: string;
21
+ };
22
+ type: {
23
+ summary: string;
24
+ };
25
+ };
26
+ };
15
27
  onChange: {
16
28
  action: string;
17
29
  };
@@ -46,3 +58,4 @@ export declare const ValidationStates: Story;
46
58
  * Disabled and ReadOnly states demonstrating height preservation
47
59
  */
48
60
  export declare const DisabledAndReadOnly: Story;
61
+ export declare const CustomNoResultsContent: Story;
@@ -3,13 +3,107 @@ import { InfoPanel } from '../../components';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: typeof InfoPanel;
6
- tags: string[];
7
6
  parameters: {
8
7
  layout: string;
9
8
  };
9
+ argTypes: {
10
+ variant: {
11
+ control: "inline-radio";
12
+ options: string[];
13
+ description: string;
14
+ table: {
15
+ defaultValue: {
16
+ summary: string;
17
+ };
18
+ };
19
+ };
20
+ size: {
21
+ control: "inline-radio";
22
+ options: string[];
23
+ description: string;
24
+ table: {
25
+ defaultValue: {
26
+ summary: string;
27
+ };
28
+ };
29
+ };
30
+ color: {
31
+ control: "select";
32
+ options: string[];
33
+ description: string;
34
+ table: {
35
+ defaultValue: {
36
+ summary: string;
37
+ };
38
+ };
39
+ };
40
+ bgColor: {
41
+ control: "text";
42
+ description: string;
43
+ table: {
44
+ defaultValue: {
45
+ summary: string;
46
+ };
47
+ };
48
+ };
49
+ textColor: {
50
+ control: "text";
51
+ description: string;
52
+ table: {
53
+ defaultValue: {
54
+ summary: string;
55
+ };
56
+ };
57
+ };
58
+ outlineColor: {
59
+ control: "text";
60
+ description: string;
61
+ table: {
62
+ defaultValue: {
63
+ summary: string;
64
+ };
65
+ };
66
+ };
67
+ className: {
68
+ control: "text";
69
+ description: string;
70
+ table: {
71
+ defaultValue: {
72
+ summary: string;
73
+ };
74
+ };
75
+ };
76
+ children: {
77
+ control: "text";
78
+ description: string;
79
+ table: {
80
+ defaultValue: {
81
+ summary: string;
82
+ };
83
+ };
84
+ };
85
+ };
10
86
  args: {};
11
87
  };
12
88
  export default meta;
13
89
  type Story = StoryObj<typeof meta>;
14
90
  export declare const InfoPanelPlayground: Story;
15
91
  export declare const CustomColor: Story;
92
+ export declare const Default: Story;
93
+ export declare const Basic: Story;
94
+ export declare const Container: Story;
95
+ export declare const Form: Story;
96
+ export declare const FormSm: Story;
97
+ export declare const FormMd: Story;
98
+ export declare const Medium: Story;
99
+ export declare const Small: Story;
100
+ export declare const Yellow: Story;
101
+ export declare const Blue: Story;
102
+ export declare const Green: Story;
103
+ export declare const Grey: Story;
104
+ export declare const White: Story;
105
+ export declare const AllStates: Story;
106
+ export declare const LongText: Story;
107
+ export declare const WithRichContent: Story;
108
+ export declare const WithFormField: Story;
109
+ export declare const WithButton: Story;
@@ -0,0 +1,33 @@
1
+ import type { StoryObj } from '@storybook/react-webpack5';
2
+ import { InfoPanel } from '../../components';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof InfoPanel;
6
+ tags: string[];
7
+ parameters: {
8
+ a11y: {
9
+ test: string;
10
+ };
11
+ chromatic: {
12
+ disableSnapshot: boolean;
13
+ };
14
+ };
15
+ args: {
16
+ children: string;
17
+ };
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+ export declare const MediumContainerStyle: Story;
22
+ export declare const FormMediumStyle: Story;
23
+ export declare const ContainerSmallStyle: Story;
24
+ export declare const FormSmallStyle: Story;
25
+ export declare const LegacyValuesEqualForm: Story;
26
+ export declare const LegacyValueIgnoresSize: Story;
27
+ export declare const GreenInEveryTypeAndSize: Story;
28
+ export declare const PresetColors: Story;
29
+ export declare const CustomColorWithSmall: Story;
30
+ export declare const InvalidValuesFallBack: Story;
31
+ export declare const LongTextWrapsOnlyInContainer: Story;
32
+ export declare const ChildWithOwnTextSizeKeepsIt: Story;
33
+ export declare const AllStatesCompleteAndAccessible: Story;
@@ -0,0 +1,27 @@
1
+ import type { StoryObj } from '@storybook/react-webpack5';
2
+ import { PaginationBar } from '../../components/PaginationBar';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof PaginationBar;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ a11y: {
10
+ test: string;
11
+ };
12
+ chromatic: {
13
+ disableSnapshot: boolean;
14
+ };
15
+ };
16
+ args: {
17
+ size: "sm";
18
+ position: "center";
19
+ currentPage: number;
20
+ totalPages: number;
21
+ onPageChange: () => void;
22
+ };
23
+ };
24
+ export default meta;
25
+ type Story = StoryObj<typeof meta>;
26
+ export declare const OutsidePageChangeBringsPageIntoView: Story;
27
+ export declare const ArrowButtonsHaveInvisibleNames: Story;