@megha-ui/react 1.2.595 → 1.2.597

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.
@@ -1353,19 +1353,20 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1353
1353
  }, onClick: () => removeChip(chip), children: "\u00D7" })] }) }, chip))) })] })), _jsxs("div", { style: {
1354
1354
  display: "flex",
1355
1355
  alignItems: "center",
1356
+ flexWrap: "wrap",
1356
1357
  justifyContent: globalSearch || filterDetails.hasFilters || sortDetails.hasSort
1357
1358
  ? "space-between"
1358
1359
  : "end",
1359
1360
  }, children: [_jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [globalSearch && (_jsx("div", { style: { width: expandedGI ? 300 : "fit-content" }, children: _jsx(GlobalSearchChiProps, { expanded: expandedGI, setExpanded: setExpandedGI, globalInputSearch: globalInputSearch, setGlobalInputSearch: setGlobalInputSearch, chips: chips, setChips: setChips, inputValue: inputValue, setInputValue: setInputValue, shouldClose: !globalSearchOpen }) })), filterDetails.hasFilters && (_jsx("div", { title: "Clear All Filters", onClick: () => clearAllFilter(), style: {
1360
1361
  cursor: "pointer",
1361
- marginLeft: 10,
1362
+ marginLeft: "0.75rem",
1362
1363
  color: "var(--clear-color)",
1363
1364
  }, children: _jsx(MdFilterAltOff, { size: 18 }) })), sortDetails.hasSort && (_jsx("div", { title: "Clear All Sorts", onClick: () => {
1364
1365
  // setChanged((prev) => [...prev, "sorts"]);
1365
1366
  setSortQueries({});
1366
1367
  }, style: {
1367
1368
  cursor: "pointer",
1368
- marginLeft: 10,
1369
+ marginLeft: "0.75rem",
1369
1370
  transform: "rotate(-90deg)",
1370
1371
  color: "var(--clear-color)",
1371
1372
  }, children: _jsx(TbAntennaBarsOff, { size: 18 }) })), summarise.hasSummarise && (_jsx("div", { title: "Clear All Sorts", onClick: () => {
@@ -1374,7 +1375,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1374
1375
  // setChanged((prev) => [...prev, "summary"]);
1375
1376
  }, style: {
1376
1377
  cursor: "pointer",
1377
- marginLeft: 10,
1378
+ marginLeft: "0.75rem",
1378
1379
  color: "var(--clear-color)",
1379
1380
  }, children: _jsx(TbCalculatorOff, {}) })), fixedColumns.map((column) => {
1380
1381
  const selectedValues = fixedFilterValues[column.key]
@@ -1403,6 +1404,7 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1403
1404
  return (_jsx("div", { style: {
1404
1405
  position: "relative",
1405
1406
  width: "18rem",
1407
+ marginLeft: "0.75rem",
1406
1408
  }, children: _jsx(Dropdown, { options: options.map((option) => ({
1407
1409
  label: option,
1408
1410
  value: option,
@@ -1433,8 +1435,8 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
1433
1435
  return null;
1434
1436
  })] }), _jsxs("div", { style: { display: "flex", alignItems: "center" }, children: [isSummarise && (_jsx("div", { onClick: () => setSummariseAvailable((prev) => !prev), style: {
1435
1437
  cursor: "pointer",
1436
- marginLeft: 10,
1437
- }, children: SummariseIcon ? (SummariseIcon) : summariseAvailable ? (_jsx(TbCalculatorFilled, { color: summarizeColor, size: 18 })) : (_jsx(TbCalculator, { size: 18 })) })), showHideAvailable && (_jsx("div", { onClick: openSetting, style: { cursor: "pointer", marginLeft: 10 }, children: SettingIcon ? SettingIcon : _jsx(FiEye, { size: 18 }) })), exportAvailable && (_jsx("div", { onClick: handleExport, style: { cursor: "pointer", marginLeft: 10 }, children: ExportIcon ? ExportIcon : _jsx(FiShare, { size: 16 }) })), _jsx("div", { onClick: () => setHideDuplicates((prev) => !prev), style: { cursor: "pointer", marginLeft: 10 }, title: hideDuplicates ? "Show Duplicates" : "Hide Duplicates", children: hideDuplicates ? _jsx(TbCopyOff, { size: 18 }) : _jsx(TbCopy, { size: 18 }) }), fullScreen && (_jsx("div", { onClick: toggleFullScreen, style: { cursor: "pointer", marginLeft: 10 }, children: isFullScreen ? (_jsx(MdFullscreenExit, { size: 20 })) : (_jsx(MdFullscreen, { size: 20 })) })), freezeColumnsAvailable && (_jsx("div", { onClick: toggleCollapse, style: { cursor: "pointer", marginLeft: 10 }, children: isCollapsed ? (_jsx(FiChevronsRight, { size: 20 })) : (_jsx(FiChevronsLeft, { size: 20 })) })), (filterDetails.filtersUpdated ||
1438
+ marginLeft: "0.75rem",
1439
+ }, children: SummariseIcon ? (SummariseIcon) : summariseAvailable ? (_jsx(TbCalculatorFilled, { color: summarizeColor, size: 18 })) : (_jsx(TbCalculator, { size: 18 })) })), showHideAvailable && (_jsx("div", { onClick: openSetting, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: SettingIcon ? SettingIcon : _jsx(FiEye, { size: 18 }) })), exportAvailable && (_jsx("div", { onClick: handleExport, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: ExportIcon ? ExportIcon : _jsx(FiShare, { size: 16 }) })), _jsx("div", { onClick: () => setHideDuplicates((prev) => !prev), style: { cursor: "pointer", marginLeft: "0.75rem" }, title: hideDuplicates ? "Show Duplicates" : "Hide Duplicates", children: hideDuplicates ? _jsx(TbCopyOff, { size: 18 }) : _jsx(TbCopy, { size: 18 }) }), fullScreen && (_jsx("div", { onClick: toggleFullScreen, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: isFullScreen ? (_jsx(MdFullscreenExit, { size: 20 })) : (_jsx(MdFullscreen, { size: 20 })) })), freezeColumnsAvailable && (_jsx("div", { onClick: toggleCollapse, style: { cursor: "pointer", marginLeft: "0.75rem" }, children: isCollapsed ? (_jsx(FiChevronsRight, { size: 20 })) : (_jsx(FiChevronsLeft, { size: 20 })) })), (filterDetails.filtersUpdated ||
1438
1440
  sortDetails.sortUpdated ||
1439
1441
  summarise.summariseUpdated ||
1440
1442
  gridGroupBy !== (groupBy || "")) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.595",
3
+ "version": "1.2.597",
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",