@megha-ui/react 1.2.663 → 1.2.665

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.
@@ -52,6 +52,12 @@ const GridFilterDropdown = ({ headerDropdownIndex, searchOptions, position, colu
52
52
  }
53
53
  onFilter(_uniqueSeach, columnKey);
54
54
  };
55
+ console.log({
56
+ allChecked: filterColumnData.every((item) => uniqueSearch[columnKey].includes(item)),
57
+ someChecked: filterColumnData.some((item) => uniqueSearch[columnKey].includes(item)),
58
+ filterColumnData,
59
+ uniq: uniqueSearch[columnKey],
60
+ });
55
61
  return (_jsxs("div", { style: Object.assign(Object.assign({ position: "absolute", top: "calc(100% + 5px)" }, (columnIndex > 1 ? { right: 0 } : { left: 0 })), { zIndex: headerDropdownIndex ? headerDropdownIndex : 1000, backgroundColor: "var(--background)", color: "var(--foreground)", boxShadow: "0px 0.5rem 1rem 0px rgba(0,0,0,0.2)", listStyleType: "none", padding: "0.35rem 0", width: "max-content", maxWidth: "500px", borderRadius: "0.5rem", margin: 0 }), ref: headerDropdown, onClick: (e) => e.stopPropagation(), children: [searchInput && searchInput, sortingOps, _jsxs("div", { style: {
56
62
  padding: "0.5rem 0.75rem",
57
63
  cursor: "pointer",
@@ -69,9 +75,9 @@ const GridFilterDropdown = ({ headerDropdownIndex, searchOptions, position, colu
69
75
  alignItems: "center",
70
76
  }, onClick: () => handleSelect("all", columnKey), children: [_jsx(Checkbox, { id: CSS.escape(columnKey), selected: typeof (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) !== "undefined"
71
77
  ? ((_a = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
72
- columnData.every((item) => uniqueSearch[columnKey].includes(item))
78
+ filterColumnData.every((item) => uniqueSearch[columnKey].includes(item))
73
79
  : true, indeterminate: ((_b = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
74
- columnData.some((item) => uniqueSearch[columnKey].includes(item)), onChange: () => { }, style: { pointerEvents: "none" }, noLabel: true, wrapperClass: checkboxWrapper }), _jsx("span", { style: { marginLeft: "0.5rem" }, children: "All" })] }), filterColumnData.map((item) => {
80
+ filterColumnData.some((item) => uniqueSearch[columnKey].includes(item)), onChange: () => { }, style: { pointerEvents: "none" }, noLabel: true, wrapperClass: checkboxWrapper }), _jsx("span", { style: { marginLeft: "0.5rem" }, children: "All" })] }), filterColumnData.map((item) => {
75
81
  var _a;
76
82
  return (_jsxs("div", { style: {
77
83
  cursor: "pointer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.663",
3
+ "version": "1.2.665",
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",