@majoo-ui/react 1.61.14-rc.7 → 1.61.14

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.
@@ -134,9 +134,7 @@ export declare const ImageDevicePreview: import("@stitches/react/types/styled-co
134
134
  }) => {
135
135
  marginTop: {
136
136
  readonly [Stitches.$$ScaleValue]: "space";
137
- }; /**
138
- * alt prop when url image not found or invalid
139
- */
137
+ };
140
138
  marginBottom: {
141
139
  readonly [Stitches.$$ScaleValue]: "space";
142
140
  };
@@ -9,17 +9,18 @@ export interface IResource {
9
9
  icon?: () => JSX.Element;
10
10
  disabled?: boolean;
11
11
  }
12
- export interface InputResourceListProps {
12
+ export interface IInputResourceListProps {
13
13
  data: IResource[];
14
14
  disabled: boolean;
15
- onChange(checkedItems: (string | IResource)[]): void;
15
+ onItemCheck(checkedItem: IResource): void;
16
+ onItemUncheck(checkedItem: IResource): void;
16
17
  searchPlaceholder?: string;
17
18
  counterFooter?: boolean;
18
19
  counterFooterText?: string;
19
20
  isLoading: boolean;
20
- disabledItems?: string[];
21
+ enabledItems?: string[];
21
22
  emptyDataMessage?: string;
22
- value?: (string | IResource)[];
23
+ value?: IResource[];
23
24
  fetchData?(props: {
24
25
  query?: string;
25
26
  pageIndex?: number;
@@ -33,6 +34,7 @@ export interface InputResourceListProps {
33
34
  renderSelectAll?: JSX.Element;
34
35
  customHeader?: JSX.Element;
35
36
  expandable?: boolean;
37
+ checkDisableItems?: boolean;
36
38
  }
37
- declare function InputResourceList({ data: dataProp, disabled, onChange, searchPlaceholder, counterFooter, counterFooterText, isLoading, disabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, wrapperCss, defaultSort, title, hideSelectAll, customHeader, expandable, renderSelectAll, }: InputResourceListProps): JSX.Element;
39
+ declare function InputResourceList({ data: dataProp, disabled, onItemCheck, onItemUncheck, searchPlaceholder, counterFooter, counterFooterText, isLoading, enabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, wrapperCss, defaultSort, title, hideSelectAll, customHeader, checkDisableItems, }: IInputResourceListProps): JSX.Element;
38
40
  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';