@megha-ui/react 1.2.222 → 1.2.224

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.
@@ -148,7 +148,7 @@ const Dropdown = ({ options, selectedValues, onChange, placeholder = "Select..."
148
148
  : options.filter((option) => option.label.toLowerCase().includes(searchTerm.toLowerCase()));
149
149
  const grouped = [];
150
150
  if (isGrouping) {
151
- const groups = options.map((opt) => opt.group);
151
+ const groups = [...new Set(...options.map((opt) => opt.group))];
152
152
  if (groups.length > 0) {
153
153
  groups.forEach((group) => {
154
154
  if (group) {
@@ -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.222",
3
+ "version": "1.2.224",
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",