@rhc-shared-components/form-select-component 0.0.1 → 0.0.6

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.
@@ -13,7 +13,7 @@ export interface FormSelectProps {
13
13
  isRequired?: boolean;
14
14
  placeholder?: string;
15
15
  selectOptions: ISelectItem[];
16
- subLabel?: string;
16
+ subLabel?: string | React.ReactNode;
17
17
  subInfo?: string;
18
18
  ariaLabel?: string;
19
19
  helperText?: string;
package/dist/index.js CHANGED
@@ -9702,15 +9702,15 @@ var FormSelect = function FormSelect(_ref) {
9702
9702
 
9703
9703
  React__namespace.useEffect(function () {
9704
9704
  setSelected(value);
9705
- }, [value]);
9706
- React__namespace.useEffect(function () {
9707
- // Code to reset check mark when the options are changed
9708
- if (value) {
9709
- setFieldValue(rest.name, '');
9710
- validateField(rest.name);
9711
- } // eslint-disable-next-line
9705
+ }, [value]); // React.useEffect(() => {
9706
+ // // Code to reset check mark when the options are changed
9707
+ // if (value) {
9708
+ // setFieldValue(rest.name, '');
9709
+ // validateField(rest.name);
9710
+ // }
9711
+ // // eslint-disable-next-line
9712
+ // }, [selectOptions]);
9712
9713
 
9713
- }, [selectOptions]);
9714
9714
  return React__namespace.createElement(React__namespace.Fragment, null, React__namespace.createElement(formGroupContainer.FormGroupContainer, {
9715
9715
  validated: meta.touched && meta.error ? reactCore.ValidatedOptions.error : reactCore.ValidatedOptions["default"],
9716
9716
  helperTextInvalid: meta.error,
@@ -9651,15 +9651,15 @@ const FormSelect = _ref => {
9651
9651
 
9652
9652
  React.useEffect(() => {
9653
9653
  setSelected(value);
9654
- }, [value]);
9655
- React.useEffect(() => {
9656
- // Code to reset check mark when the options are changed
9657
- if (value) {
9658
- setFieldValue(rest.name, '');
9659
- validateField(rest.name);
9660
- } // eslint-disable-next-line
9654
+ }, [value]); // React.useEffect(() => {
9655
+ // // Code to reset check mark when the options are changed
9656
+ // if (value) {
9657
+ // setFieldValue(rest.name, '');
9658
+ // validateField(rest.name);
9659
+ // }
9660
+ // // eslint-disable-next-line
9661
+ // }, [selectOptions]);
9661
9662
 
9662
- }, [selectOptions]);
9663
9663
  return React.createElement(React.Fragment, null, React.createElement(FormGroupContainer, {
9664
9664
  validated: meta.touched && meta.error ? ValidatedOptions.error : ValidatedOptions.default,
9665
9665
  helperTextInvalid: meta.error,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhc-shared-components/form-select-component",
3
- "version": "0.0.1",
3
+ "version": "0.0.6",
4
4
  "description": "project description",
5
5
  "author": "redhatofficial",
6
6
  "license": "MIT",
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "5382ea6afced4c1ce9c88b301e24e782fce20c70"
77
+ "gitHead": "f67c24c31868174d92f4e6e79978a0fdce6a6a0d"
78
78
  }