@rhc-shared-components/form-multi-select-component 0.2.2 → 1.0.1
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.
- package/dist/FormMultiSelectInput.d.ts +3 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -4
- package/dist/index.modern.js +1 -4
- package/package.json +2 -2
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectOptionProps } from '@patternfly/react-core';
|
|
3
|
+
declare type IMultiSelectInputOptionProps = SelectOptionProps;
|
|
3
4
|
export interface FormMultiSelectInputProps {
|
|
4
5
|
name: string;
|
|
5
6
|
label: string;
|
|
6
7
|
isRequired?: boolean;
|
|
7
8
|
placeholder?: string;
|
|
8
|
-
selectMenuOptions:
|
|
9
|
+
selectMenuOptions: IMultiSelectInputOptionProps[];
|
|
9
10
|
ariaLabel?: string;
|
|
10
11
|
helperText?: string;
|
|
11
12
|
maxHeight?: string | number;
|
|
@@ -15,4 +16,4 @@ export interface FormMultiSelectInputProps {
|
|
|
15
16
|
extraProps?: any;
|
|
16
17
|
}
|
|
17
18
|
declare const FormMultiSelectInput: React.FunctionComponent<FormMultiSelectInputProps>;
|
|
18
|
-
export
|
|
19
|
+
export { FormMultiSelectInput, IMultiSelectInputOptionProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import FormMultiSelectInput from './FormMultiSelectInput';
|
|
2
|
-
export { FormMultiSelectInput };
|
|
1
|
+
import { FormMultiSelectInput, IMultiSelectInputOptionProps } from './FormMultiSelectInput';
|
|
2
|
+
export { FormMultiSelectInput, IMultiSelectInputOptionProps };
|
package/dist/index.js
CHANGED
|
@@ -361,12 +361,9 @@ var FormMultiSelectInput = function FormMultiSelectInput(_ref) {
|
|
|
361
361
|
return React__default["default"].createElement(reactCore.SelectOption, Object.assign({
|
|
362
362
|
key: option.value || option.children,
|
|
363
363
|
isFocused: focusedItemIndex === index,
|
|
364
|
-
className: option.className,
|
|
365
364
|
id: "select-multi-typeahead-" + option.value.replace(' ', '-'),
|
|
366
365
|
isDisabled: option.isDisabled || isSubmitting
|
|
367
|
-
}, option
|
|
368
|
-
ref: null
|
|
369
|
-
}));
|
|
366
|
+
}, option));
|
|
370
367
|
})))));
|
|
371
368
|
};
|
|
372
369
|
|
package/dist/index.modern.js
CHANGED
|
@@ -303,12 +303,9 @@ const FormMultiSelectInput = _ref => {
|
|
|
303
303
|
}, selectOptions.map((option, index) => React__default.createElement(SelectOption, Object.assign({
|
|
304
304
|
key: option.value || option.children,
|
|
305
305
|
isFocused: focusedItemIndex === index,
|
|
306
|
-
className: option.className,
|
|
307
306
|
id: `select-multi-typeahead-${option.value.replace(' ', '-')}`,
|
|
308
307
|
isDisabled: option.isDisabled || isSubmitting
|
|
309
|
-
}, option
|
|
310
|
-
ref: null
|
|
311
|
-
})))))));
|
|
308
|
+
}, option)))))));
|
|
312
309
|
};
|
|
313
310
|
|
|
314
311
|
export { FormMultiSelectInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhc-shared-components/form-multi-select-component",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "project description",
|
|
5
5
|
"author": "shkale",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"predeploy": "cd example && yarn install && yarn run build"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@patternfly/react-core": ">=
|
|
27
|
+
"@patternfly/react-core": ">=5.3.0",
|
|
28
28
|
"formik": ">=2.1.4",
|
|
29
29
|
"react": ">=16.13.1",
|
|
30
30
|
"react-dom": ">=16.13.1"
|