widenarrow-ui 1.1.31 → 1.1.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.
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { NoDataMessageProps } from './NoDataMessage.types';
3
+ declare const NoDataMessage: FC<NoDataMessageProps>;
4
+ export { NoDataMessage };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { NoDataMessage } from 'src/components/NoDataMessage';
3
+ declare const meta: Meta<typeof NoDataMessage>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof NoDataMessage>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { IconTypes } from 'src/constants';
3
+ export interface NoDataMessageProps {
4
+ className?: string;
5
+ icon?: Partial<IconTypes>;
6
+ title?: string;
7
+ message?: string;
8
+ absoluteCenter?: boolean;
9
+ customLink?: ReactNode;
10
+ button?: {
11
+ onClickCallback: () => void;
12
+ text: string;
13
+ icon: Partial<IconTypes>;
14
+ };
15
+ }
@@ -0,0 +1 @@
1
+ export * from './NoDataMessage';
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { IconTypes } from '../../constants';
3
+ import { SearchResultInterface } from '../../types/common.types';
3
4
  export interface RowProps {
4
5
  row: any;
5
6
  rowClassName?: string;
@@ -16,6 +17,7 @@ export interface CellInterface {
16
17
  alignCenter?: boolean;
17
18
  withEllipsis?: boolean;
18
19
  toolTip?: string;
20
+ className?: string;
19
21
  customHeaderCellComponent?: (cell: CellInterface) => ReactNode | JSX.Element;
20
22
  customCellComponent?: (row: any) => ReactNode | JSX.Element;
21
23
  }
@@ -35,4 +37,10 @@ export interface SortableTableProps {
35
37
  withIntersectionObserver?: boolean;
36
38
  minWidth?: string;
37
39
  onSortCallback?: (keyName: string) => void;
40
+ pagination?: SearchResultInterface;
41
+ noDataMessage?: {
42
+ title?: string;
43
+ icon?: Partial<IconTypes>;
44
+ message?: string;
45
+ };
38
46
  }
@@ -26,3 +26,4 @@ export * from './SelectInput';
26
26
  export * from './ToolTip';
27
27
  export * from './Typography';
28
28
  export * from './SkeletonItem';
29
+ export * from './NoDataMessage';