@megha-ui/react 1.2.221 → 1.2.223

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.
@@ -368,13 +368,13 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
368
368
  optionRefs.current[refIndex] = el;
369
369
  }, id: `${refIndex}`, onClick: (e) => onSelectChange
370
370
  ? handleItemSelect(option, option.disabled || false)
371
- : handleSelect(option.value, option.disabled || false), style: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, listItemStyle), { display: "flex", alignItems: "center" }), (index === highlightIndex
371
+ : handleSelect(option.value, option.disabled || false), style: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, listItemStyle), { display: "flex", alignItems: "center" }), (refIndex === highlightIndex
372
372
  ? listItemHoverStyle
373
- : {})), (option.disabled ? listItemDisabledStyle : {})), (index !== highlightIndex &&
373
+ : {})), (option.disabled ? listItemDisabledStyle : {})), (refIndex !== highlightIndex &&
374
374
  !isMultiple &&
375
375
  intermediateValues.includes(option.value)
376
376
  ? selectedItemStyle
377
- : {})), { borderBottom: index === filteredOptions.length - 1
377
+ : {})), { borderBottom: refIndex === filteredOptions.length - 1
378
378
  ? "none"
379
379
  : "1px solid var(--divider-strong, #dddddd)", wordWrap: "break-word", textWrap: "wrap", justifyContent: "space-between" }), onMouseEnter: (e) => {
380
380
  if (!option.disabled) {
@@ -387,7 +387,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
387
387
  }, children: [option.icon &&
388
388
  option.isDelete &&
389
389
  !option.isDelete && (_jsx("span", { style: { margin: "0 0.5rem" }, children: option.icon })), _jsx("span", { children: option.label })] }), option.icon && option.isDelete && option.icon] }, String(option.value)));
390
- })] })))) : (filteredOptions.map((option, index) => (_jsxs("li", { ref: (el) => {
390
+ })] }, gIndex)))) : (filteredOptions.map((option, index) => (_jsxs("li", { ref: (el) => {
391
391
  optionRefs.current[index] = el;
392
392
  }, onClick: (e) => onSelectChange
393
393
  ? handleItemSelect(option, option.disabled || false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.221",
3
+ "version": "1.2.223",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",