hplx-react-elements-dev 1.0.16 → 1.0.18

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/esm/index.js CHANGED
@@ -4953,7 +4953,7 @@ var AddSuggestion = function AddSuggestion(_a) {
4953
4953
  suffix = _a.suffix,
4954
4954
  char_count = _a.char_count,
4955
4955
  _e = _a.onSuggestionClick,
4956
- onSuggestionClick = _e === void 0 ? function () {} : _e,
4956
+ onSuggestionClick = _e === void 0 ? function (_selectedValue) {} : _e,
4957
4957
  _f = _a.height,
4958
4958
  height = _f === void 0 ? 'h-32' : _f,
4959
4959
  _g = _a.hint_text_icon,
@@ -5005,13 +5005,13 @@ var AddSuggestion = function AddSuggestion(_a) {
5005
5005
  var res;
5006
5006
 
5007
5007
  if (result.length > 0) {
5008
- res = result + ", " + selectedValue;
5008
+ res = result + ", " + selectedValue.label;
5009
5009
  } else {
5010
- res = selectedValue;
5010
+ res = selectedValue.label;
5011
5011
  }
5012
5012
 
5013
5013
  setValue(res);
5014
- onSuggestionClick();
5014
+ onSuggestionClick(selectedValue);
5015
5015
  }; // Attaching the previous event with UseEffect hook
5016
5016
 
5017
5017
 
@@ -5069,7 +5069,7 @@ var AddSuggestion = function AddSuggestion(_a) {
5069
5069
  className: "text-Primary-700"
5070
5070
  }, restOptions, {
5071
5071
  onSelect: function onSelect() {
5072
- return handleSuggestionClick(restOptions.label);
5072
+ return handleSuggestionClick(restOptions);
5073
5073
  }
5074
5074
  }));
5075
5075
  }) : null
@@ -298,7 +298,7 @@ export interface AddSuggestionProps {
298
298
  errorMsg?: string;
299
299
  inputProps?: React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
300
300
  inputFieldInputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
301
- onSuggestionClick?: () => void;
301
+ onSuggestionClick?: (selectedValue: any) => void;
302
302
  options?: Array<DropdownItemsProps>;
303
303
  }
304
304
  export {};
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.16",
12
+ "version": "1.0.18",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",