master-components-react-ts 2.5.5 → 2.5.6

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.
@@ -6,6 +6,7 @@ export type ColumnType = {
6
6
  visible?: boolean;
7
7
  render?: (row: any) => React.ReactNode;
8
8
  rowTooltipProps?: TooltipConfig | ((row: any) => TooltipConfig);
9
+ sortable?: boolean;
9
10
  [key: string]: any;
10
11
  };
11
12
  export type ActionButtonType = {
package/dist/index.js CHANGED
@@ -3055,12 +3055,12 @@ const bt = ({
3055
3055
  be.map((d) => /* @__PURE__ */ i(
3056
3056
  "th",
3057
3057
  {
3058
- onClick: () => s?.(d.key),
3058
+ onClick: d.sortable ? () => s?.(d.key) : void 0,
3059
3059
  style: { width: C[d.key], position: "relative" },
3060
3060
  children: [
3061
3061
  /* @__PURE__ */ i("div", { className: H.headerContent, children: [
3062
3062
  d.label,
3063
- p && d.sortable && a?.[0]?.selector !== d.key && a?.[1]?.selector !== d.key && /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3063
+ p && d.sortable && a?.[0]?.selector !== d.key && a?.[1]?.selector !== d.key && /* @__PURE__ */ i("svg", { width: "13", height: "13", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3064
3064
  /* @__PURE__ */ e(
3065
3065
  "path",
3066
3066
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-components-react-ts",
3
3
  "private": false,
4
- "version": "2.5.5",
4
+ "version": "2.5.6",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",