@rhc-shared-components/form-multi-select-component 0.2.2 → 1.0.0

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.
@@ -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: SelectOptionProps[];
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 default FormMultiSelectInput;
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
@@ -364,9 +364,7 @@ var FormMultiSelectInput = function FormMultiSelectInput(_ref) {
364
364
  className: option.className,
365
365
  id: "select-multi-typeahead-" + option.value.replace(' ', '-'),
366
366
  isDisabled: option.isDisabled || isSubmitting
367
- }, option, {
368
- ref: null
369
- }));
367
+ }, option));
370
368
  })))));
371
369
  };
372
370
 
@@ -306,9 +306,7 @@ const FormMultiSelectInput = _ref => {
306
306
  className: option.className,
307
307
  id: `select-multi-typeahead-${option.value.replace(' ', '-')}`,
308
308
  isDisabled: option.isDisabled || isSubmitting
309
- }, option, {
310
- ref: null
311
- })))))));
309
+ }, option)))))));
312
310
  };
313
311
 
314
312
  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.2.2",
3
+ "version": "1.0.0",
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": ">=4.101.3",
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"