componenteshospitais 1.9.6 → 1.9.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.
package/dist/cjs/index.js CHANGED
@@ -1607,7 +1607,7 @@ var Busca = function (_a) {
1607
1607
  }
1608
1608
  else {
1609
1609
  var filtered = options.filter(function (option) {
1610
- return option.description.toLowerCase().includes(inputValue.toLowerCase());
1610
+ return option.value.toLowerCase().includes(inputValue.toLowerCase());
1611
1611
  });
1612
1612
  setFilteredOptions(filtered);
1613
1613
  setShowOptions(true);
@@ -1618,7 +1618,7 @@ var Busca = function (_a) {
1618
1618
  setShowOptions(true);
1619
1619
  };
1620
1620
  var handleOptionClick = function (option) {
1621
- onChange(option.description);
1621
+ onChange(option.value);
1622
1622
  setShowOptions(false);
1623
1623
  };
1624
1624
  var handleClickOutside = function (event) {
package/dist/esm/index.js CHANGED
@@ -1605,7 +1605,7 @@ var Busca = function (_a) {
1605
1605
  }
1606
1606
  else {
1607
1607
  var filtered = options.filter(function (option) {
1608
- return option.description.toLowerCase().includes(inputValue.toLowerCase());
1608
+ return option.value.toLowerCase().includes(inputValue.toLowerCase());
1609
1609
  });
1610
1610
  setFilteredOptions(filtered);
1611
1611
  setShowOptions(true);
@@ -1616,7 +1616,7 @@ var Busca = function (_a) {
1616
1616
  setShowOptions(true);
1617
1617
  };
1618
1618
  var handleOptionClick = function (option) {
1619
- onChange(option.description);
1619
+ onChange(option.value);
1620
1620
  setShowOptions(false);
1621
1621
  };
1622
1622
  var handleClickOutside = function (event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "componenteshospitais",
3
- "version": "1.9.6",
3
+ "version": "1.9.7",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -30,7 +30,7 @@ const Busca: React.FC<FilterableInputProps> = ({ options, value, onChange, label
30
30
  setShowOptions(true);
31
31
  } else {
32
32
  const filtered = options.filter(option =>
33
- option.description.toLowerCase().includes(inputValue.toLowerCase())
33
+ option.value.toLowerCase().includes(inputValue.toLowerCase())
34
34
  );
35
35
  setFilteredOptions(filtered);
36
36
  setShowOptions(true);
@@ -43,7 +43,7 @@ const Busca: React.FC<FilterableInputProps> = ({ options, value, onChange, label
43
43
  };
44
44
 
45
45
  const handleOptionClick = (option: OptionType) => {
46
- onChange(option.description);
46
+ onChange(option.value);
47
47
  setShowOptions(false);
48
48
  };
49
49