@majoo-ui/react 1.58.4-rc.1 → 1.58.4

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.
@@ -7,12 +7,13 @@ export interface IResource {
7
7
  description?: string;
8
8
  icon?: () => JSX.Element;
9
9
  }
10
- interface IInputResourceListProps {
10
+ export interface IInputResourceListProps {
11
11
  data: IResource[];
12
12
  disabled: boolean;
13
13
  onItemCheck(checkedItem: IResource): void;
14
14
  onItemUncheck(checkedItem: IResource): void;
15
15
  searchPlaceholder?: string;
16
+ counterFooter?: boolean;
16
17
  counterFooterText?: string;
17
18
  isLoading: boolean;
18
19
  enabledItems?: string[];
@@ -24,9 +25,13 @@ interface IInputResourceListProps {
24
25
  }): void;
25
26
  onQueryChange?(query: string): void;
26
27
  css?: Stitches.CSS;
28
+ wrapperCss?: Stitches.CSS;
27
29
  defaultSort?: 'asc' | 'desc';
28
30
  title?: string;
29
31
  hideSelectAll?: boolean;
32
+ renderSelectAll?: JSX.Element;
33
+ customHeader?: JSX.Element;
34
+ expandable?: boolean;
30
35
  }
31
- declare function InputResourceList({ data: dataProp, disabled, onItemCheck, onItemUncheck, searchPlaceholder, counterFooterText, isLoading, enabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, defaultSort, title, hideSelectAll, }: IInputResourceListProps): JSX.Element;
36
+ declare function InputResourceList({ data: dataProp, disabled, onItemCheck, onItemUncheck, searchPlaceholder, counterFooter, counterFooterText, isLoading, enabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, wrapperCss, defaultSort, title, hideSelectAll, customHeader, }: IInputResourceListProps): JSX.Element;
32
37
  export default InputResourceList;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IInputResourceListProps } from './InputResourceList';
3
+ declare const ResourceList: ({ expandable, ...props }: IInputResourceListProps) => JSX.Element;
4
+ export default ResourceList;
@@ -18,7 +18,7 @@ export * from './InputSelect';
18
18
  export { default as InputSelectCheck } from './InputSelectCheck/InputSelectCheck';
19
19
  export { default as InputSelectTag } from './InputSelectTag/InputSelectTag';
20
20
  export { default as InputCreatable } from './InputCreatable/InputCreatable';
21
- export { default as InputResourceList } from './InputResourceList/InputResourceList';
21
+ export { default as InputResourceList } from './InputResourceList/ResourceList';
22
22
  export * from './InputCombobox';
23
23
  export * from './InputOTP';
24
24
  export * from './InputCounter';
@@ -4,7 +4,8 @@ import { EmptyDataProps, RowGroup, Decoration } from './Table';
4
4
  import { TableInstance } from 'react-table';
5
5
  interface CustomRowsStyle {
6
6
  predicate: boolean;
7
- css: CSS;
7
+ css?: CSS;
8
+ hideRowMenuColumn?: boolean;
8
9
  }
9
10
  interface MobileTableProps {
10
11
  instance: TableInstance<object>;
@@ -1106,8 +1106,8 @@ export interface RowGroup {
1106
1106
  }
1107
1107
  interface CustomRowsStyle {
1108
1108
  predicate: boolean;
1109
- css: CSS;
1110
- hideContextMenu?: boolean;
1109
+ css?: CSS;
1110
+ hideRowMenuColumn?: boolean;
1111
1111
  }
1112
1112
  export interface ColumnInstanceProps<D extends object> extends ColumnInstance<D> {
1113
1113
  options?: [];