cozy-ui 139.0.0 → 139.0.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [139.0.1](https://github.com/cozy/cozy-ui/compare/v139.0.0...v139.0.1) (2026-06-01)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Table:** Disable double click when `disableClick` is true in column config ([6da0985](https://github.com/cozy/cozy-ui/commit/6da0985))
7
+
1
8
  # [139.0.0](https://github.com/cozy/cozy-ui/compare/v138.13.1...v139.0.0) (2026-06-01)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "139.0.0",
3
+ "version": "139.0.1",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -121,8 +121,8 @@ const ExampleTable = ({ variant, ...props }) => {
121
121
  row.id !== 1
122
122
  ? console.info(`long press on cell. Row ${row['id']}, Column ${column['id']}`)
123
123
  : undefined
124
- },
125
- },
124
+ }
125
+ }
126
126
  }}
127
127
  />
128
128
  </div>
@@ -70,7 +70,9 @@ const Cell = ({
70
70
  align={column.textAlign ?? 'left'}
71
71
  padding={column.disablePadding ? 'none' : 'normal'}
72
72
  onClick={handleClick}
73
- onDoubleClick={() => onDoubleClick?.(row, column)}
73
+ onDoubleClick={() =>
74
+ column.disableClick ? undefined : onDoubleClick?.(row, column)
75
+ }
74
76
  onContextMenu={isLongPress ? ev => ev.preventDefault() : undefined}
75
77
  >
76
78
  {children
@@ -88,7 +88,7 @@ var Cell = function Cell(_ref4) {
88
88
  padding: column.disablePadding ? 'none' : 'normal',
89
89
  onClick: handleClick,
90
90
  onDoubleClick: function onDoubleClick() {
91
- return _onDoubleClick === null || _onDoubleClick === void 0 ? void 0 : _onDoubleClick(row, column);
91
+ return column.disableClick ? undefined : _onDoubleClick === null || _onDoubleClick === void 0 ? void 0 : _onDoubleClick(row, column);
92
92
  },
93
93
  onContextMenu: isLongPress ? function (ev) {
94
94
  return ev.preventDefault();