@megha-ui/react 1.2.52 → 1.2.54
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.
|
@@ -68,9 +68,9 @@ const GridFilterDropdown = ({ headerDropdownIndex, searchOptions, position, colu
|
|
|
68
68
|
cursor: "pointer",
|
|
69
69
|
display: "flex",
|
|
70
70
|
alignItems: "center",
|
|
71
|
-
}, onClick: () => handleSelect("all", columnKey), children: [(0, jsx_runtime_1.jsx)(checkbox_1.default, { selected: (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) &&
|
|
71
|
+
}, onClick: () => handleSelect("all", columnKey), children: [(0, jsx_runtime_1.jsx)(checkbox_1.default, { selected: typeof (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === "undefined" || ((uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) &&
|
|
72
72
|
((_a = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _a === void 0 ? void 0 : _a.sort().toString()) ===
|
|
73
|
-
columnData.toString(), indeterminate: (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) &&
|
|
73
|
+
columnData.toString()), indeterminate: (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) &&
|
|
74
74
|
((_b = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
|
|
75
75
|
((_c = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _c === void 0 ? void 0 : _c.sort().toString()) !==
|
|
76
76
|
columnData.toString(), onChange: () => { }, style: { pointerEvents: "none" }, noLabel: true, wrapperClass: checkboxWrapper }), (0, jsx_runtime_1.jsx)("span", { style: { marginLeft: "0.5rem" }, children: "All" })] }), filterColumnData.map((item) => {
|
|
@@ -79,7 +79,7 @@ const GridFilterDropdown = ({ headerDropdownIndex, searchOptions, position, colu
|
|
|
79
79
|
cursor: "pointer",
|
|
80
80
|
display: "flex",
|
|
81
81
|
alignItems: "center",
|
|
82
|
-
}, onClick: () => handleSelect(item, columnKey), children: [(0, jsx_runtime_1.jsx)(checkbox_1.default, { selected: (_a = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _a === void 0 ? void 0 : _a.includes(item), onChange: () => { }, style: { pointerEvents: "none" }, noLabel: true, wrapperClass: checkboxWrapper }), (0, jsx_runtime_1.jsx)("span", { style: { marginLeft: "0.5rem" }, children: item })] }, item));
|
|
82
|
+
}, onClick: () => handleSelect(item, columnKey), children: [(0, jsx_runtime_1.jsx)(checkbox_1.default, { selected: (uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) ? (_a = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _a === void 0 ? void 0 : _a.includes(item) : true, onChange: () => { }, style: { pointerEvents: "none" }, noLabel: true, wrapperClass: checkboxWrapper }), (0, jsx_runtime_1.jsx)("span", { style: { marginLeft: "0.5rem" }, children: item })] }, item));
|
|
83
83
|
})] }))] }), isOpen && ((0, jsx_runtime_1.jsx)(textFilterDropdown_1.default, { columnIndex: columnIndex, headerDropdownIndex: headerDropdownIndex || 1001, searchOptions: searchOptions, position: position
|
|
84
84
|
? {
|
|
85
85
|
top: position.top,
|
|
@@ -17,6 +17,7 @@ const Tabs = ({ children, defaultActive, className, type = "horizontal", showTab
|
|
|
17
17
|
flexDirection: type === "vertical" ? "row" : "column",
|
|
18
18
|
width: "100%",
|
|
19
19
|
height: "100%",
|
|
20
|
+
gap: "1rem",
|
|
20
21
|
borderRadius: "0.5rem",
|
|
21
22
|
overflow: "hidden",
|
|
22
23
|
}, children: children }) }));
|
|
@@ -32,7 +33,6 @@ const TabList = ({ children, width }) => {
|
|
|
32
33
|
display: "flex",
|
|
33
34
|
flexDirection: type === "vertical" ? "column" : "row",
|
|
34
35
|
width: width ? width : type === "vertical" ? "25%" : "100%",
|
|
35
|
-
gap: "1rem",
|
|
36
36
|
flexShrink: 0,
|
|
37
37
|
flexGrow: 0,
|
|
38
38
|
}, children: children }));
|
package/package.json
CHANGED