sprint-asia-custom-component 0.1.19 → 0.1.20

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/index.js CHANGED
@@ -46536,6 +46536,7 @@
46536
46536
 
46537
46537
  const SearchDropdown = ({
46538
46538
  options = ["Loading..."],
46539
+ valueOptions = ["Loading..."],
46539
46540
  placeholderSearch = "Search Here",
46540
46541
  filterDropdown = "Filter",
46541
46542
  setValueFilterDropdown,
@@ -46578,7 +46579,7 @@
46578
46579
  }, options?.length > 0 ? options.map((option, index) => /*#__PURE__*/React__default["default"].createElement("div", {
46579
46580
  key: index,
46580
46581
  className: "hover:bg-neutral20 bg-white py-2.5 px-4 my-0.5 rounded-md cursor-pointer",
46581
- onClick: () => handleClickOption(option)
46582
+ onClick: () => handleClickOption(valueOptions[index])
46582
46583
  }, /*#__PURE__*/React__default["default"].createElement("div", {
46583
46584
  className: "flex justify-between"
46584
46585
  }, /*#__PURE__*/React__default["default"].createElement("p", {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sprint-asia-custom-component",
3
3
  "main": "dist/index.js",
4
- "version": "0.1.19",
4
+ "version": "0.1.20",
5
5
  "private": false,
6
6
  "dependencies": {
7
7
  "@headlessui/react": "^1.7.18",
@@ -3,6 +3,7 @@ import { PiMagnifyingGlass, PiCaretDown, PiCaretUp } from 'react-icons/pi';
3
3
 
4
4
  const SearchDropdown = ({
5
5
  options = ["Loading..."],
6
+ valueOptions = ["Loading..."],
6
7
  placeholderSearch = "Search Here",
7
8
  filterDropdown = "Filter",
8
9
  setValueFilterDropdown,
@@ -49,7 +50,7 @@ const SearchDropdown = ({
49
50
  <div
50
51
  key={index}
51
52
  className='hover:bg-neutral20 bg-white py-2.5 px-4 my-0.5 rounded-md cursor-pointer'
52
- onClick={() => handleClickOption(option)}
53
+ onClick={() => handleClickOption(valueOptions[index])}
53
54
  >
54
55
  <div className='flex justify-between'>
55
56
  <p className='text-sm text-black font-semibold'>{option}</p>