@megha-ui/react 1.2.659 → 1.2.661

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.
@@ -5,7 +5,7 @@ const Checkbox = ({ onChange, disabled, wrapperClass, name, width, noLabel, labe
5
5
  useEffect(() => {
6
6
  let checkbox = null;
7
7
  if (checkboxWrapper.current) {
8
- checkbox = checkboxWrapper.current.querySelector("#checkbox");
8
+ checkbox = checkboxWrapper.current.querySelector(`#${id}`);
9
9
  }
10
10
  if (indeterminate && checkbox && !selected) {
11
11
  checkbox.indeterminate = true;
@@ -67,7 +67,7 @@ const GridFilterDropdown = ({ headerDropdownIndex, searchOptions, position, colu
67
67
  cursor: "pointer",
68
68
  display: "flex",
69
69
  alignItems: "center",
70
- }, onClick: () => handleSelect("all", columnKey), children: [_jsx(Checkbox, { selected: typeof (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) !== "undefined"
70
+ }, onClick: () => handleSelect("all", columnKey), children: [_jsx(Checkbox, { id: CSS.escape(columnKey), selected: typeof (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) !== "undefined"
71
71
  ? ((_a = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
72
72
  columnData.every((item) => uniqueSearch[columnKey].includes(item))
73
73
  : true, indeterminate: ((_b = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
@@ -77,7 +77,7 @@ const GridFilterDropdown = ({ headerDropdownIndex, searchOptions, position, colu
77
77
  cursor: "pointer",
78
78
  display: "flex",
79
79
  alignItems: "center",
80
- }, onClick: () => handleSelect(item, columnKey), children: [_jsx(Checkbox, { selected: typeof (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) !== "undefined"
80
+ }, onClick: () => handleSelect(item, columnKey), children: [_jsx(Checkbox, { id: CSS.escape(`${columnKey}-${item}`), selected: typeof (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) !== "undefined"
81
81
  ? (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey].length) > 0 &&
82
82
  ((_a = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _a === void 0 ? void 0 : _a.includes(item))
83
83
  : true, onChange: () => { }, style: { pointerEvents: "none" }, noLabel: true, wrapperClass: checkboxWrapper }), _jsx("span", { style: { marginLeft: "0.5rem" }, children: formatValue(item, columnType, locale, formatOptions) })] }, item));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.659",
3
+ "version": "1.2.661",
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",