lecom-ui 5.0.10 → 5.0.12

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.
@@ -40,7 +40,7 @@ function Table({
40
40
  }
41
41
  )));
42
42
  }
43
- return /* @__PURE__ */ React.createElement("table", { id: "data-table", className: "w-full" }, /* @__PURE__ */ React.createElement("thead", { className: "sticky top-0 z-10" }, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React.createElement("tr", { key: headerGroup.id }, headerGroup.headers.map((header) => /* @__PURE__ */ React.createElement(
43
+ return /* @__PURE__ */ React.createElement("table", { id: "data-table", className: "w-full" }, /* @__PURE__ */ React.createElement("thead", { className: "sticky top-0 z-10 bg-white" }, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React.createElement("tr", { key: headerGroup.id }, headerGroup.headers.map((header) => /* @__PURE__ */ React.createElement(
44
44
  "th",
45
45
  {
46
46
  key: header.id,
@@ -44,7 +44,8 @@ const Item = ({
44
44
  bgColor,
45
45
  textColor,
46
46
  highlight,
47
- onClick
47
+ onClick,
48
+ noHover
48
49
  }) => {
49
50
  if (render) {
50
51
  return render;
@@ -66,8 +67,10 @@ const Item = ({
66
67
  {
67
68
  onClick: handleClickItem,
68
69
  className: cn(
69
- "flex gap-4 items-center p-2 rounded-md hover:bg-grey-200/70 hover:cursor-pointer transition-all duration-300",
70
- !!disabled && "opacity-50 hover:cursor-not-allowed"
70
+ "flex gap-4 items-center p-2 rounded-md transition-all duration-300",
71
+ !disabled && !noHover && "hover:bg-grey-200/70 hover:cursor-pointer",
72
+ (disabled || noHover) && "cursor-default",
73
+ disabled && "opacity-50 cursor-not-allowed"
71
74
  )
72
75
  },
73
76
  /* @__PURE__ */ React.createElement(
package/dist/index.d.ts CHANGED
@@ -610,6 +610,7 @@ interface ModulesMenuItem {
610
610
  textColor: string;
611
611
  highlight?: React$1.ReactNode;
612
612
  onClick?: () => void;
613
+ noHover?: boolean;
613
614
  }
614
615
  interface ModulesMenuProps {
615
616
  customStyles: CustomStyles$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "5.0.10",
3
+ "version": "5.0.12",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",