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

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