widenarrow-ui 1.0.13 → 1.0.15

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.
@@ -9,7 +9,7 @@ export interface InlineButtonProps {
9
9
  rotateIcon?: boolean;
10
10
  iconClassName?: string;
11
11
  withIconRight?: boolean;
12
- type?: Partial<HierarchyTypes>;
12
+ type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY | HierarchyTypes.TERTIARY;
13
13
  size?: SizeTypes.SMALL | SizeTypes.MEDIUM;
14
14
  textClassName?: string;
15
15
  withEllipsis?: boolean;
@@ -7,6 +7,7 @@ export interface ListItemProps extends MarginInterface, PaddingInterface {
7
7
  className?: string;
8
8
  imageSrc?: string;
9
9
  withBorderRadius?: boolean;
10
+ withHoverEffect?: boolean;
10
11
  imageIcon?: Partial<IconTypes>;
11
12
  size: Partial<SizeTypes>;
12
13
  imageAspectRatio?: Partial<AspectRatioTypes>;
@@ -4,7 +4,7 @@ export interface MultiActionButtonProps {
4
4
  text?: string;
5
5
  onLeftClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
6
6
  onRightClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
7
- type?: Partial<HierarchyTypes>;
7
+ type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY | HierarchyTypes.TERTIARY;
8
8
  size?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
9
9
  leftIconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
10
10
  middleIconSize?: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
@@ -1,11 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { IconTypes } from '../../constants';
3
- import { UnknownObjectInterface } from '../../types/styling.types';
4
3
  export interface RowProps {
5
- row: UnknownObjectInterface;
4
+ row: any;
6
5
  rowClassName?: string;
7
6
  withIntersectionObserver?: boolean | undefined;
8
- children?: ReactNode;
7
+ children?: ReactNode | JSX.Element;
9
8
  }
10
9
  export interface CellInterface {
11
10
  key: string;
@@ -17,12 +16,12 @@ export interface CellInterface {
17
16
  alignCenter?: boolean;
18
17
  withEllipsis?: boolean;
19
18
  toolTip?: string;
20
- customHeaderCellComponent?: (cell: CellInterface) => ReactNode;
21
- customCellComponent?: (row: UnknownObjectInterface) => ReactNode;
19
+ customHeaderCellComponent?: (cell: CellInterface) => ReactNode | JSX.Element;
20
+ customCellComponent?: (row: any) => ReactNode | JSX.Element;
22
21
  }
23
22
  export interface SortableTableProps {
24
23
  cells: Array<CellInterface>;
25
- data: Array<UnknownObjectInterface>;
24
+ data: Array<any>;
26
25
  sortBy: Array<{
27
26
  keyName: string;
28
27
  ascending: boolean;
@@ -193,7 +193,8 @@ export declare enum IconTypes {
193
193
  export declare enum HierarchyTypes {
194
194
  PRIMARY = "primary",
195
195
  SECONDARY = "secondary",
196
- TERTIARY = "tertiary"
196
+ TERTIARY = "tertiary",
197
+ QUATERNARY = "quaternary"
197
198
  }
198
199
  export declare enum AspectRatioTypes {
199
200
  ar4_1 = "ar4_1",