cozy-ui 126.1.0 → 126.2.0
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,15 @@
|
|
|
1
|
+
# [126.2.0](https://github.com/cozy/cozy-ui/compare/v126.1.0...v126.2.0) (2025-06-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Table:** Remove warning when using `ref` ([d81f9cb](https://github.com/cozy/cozy-ui/commit/d81f9cb))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **ActionMenu:** Using `ref` is now optional ([e9f951f](https://github.com/cozy/cozy-ui/commit/e9f951f))
|
|
12
|
+
|
|
1
13
|
# [126.1.0](https://github.com/cozy/cozy-ui/compare/v126.0.0...v126.1.0) (2025-06-13)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -4,66 +4,58 @@ import React from 'react'
|
|
|
4
4
|
|
|
5
5
|
import styles from './styles.styl'
|
|
6
6
|
|
|
7
|
-
export const Table = React.forwardRef((props, ref) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return <div className={cx(styles.Table, className)} {...rest} ref={ref} />
|
|
7
|
+
export const Table = React.forwardRef(({ className, ...props }, ref) => {
|
|
8
|
+
return <div className={cx(styles.Table, className)} {...props} ref={ref} />
|
|
11
9
|
})
|
|
12
10
|
|
|
13
|
-
export const TableHead = React.forwardRef((props, ref) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
export const TableHead = React.forwardRef(({ className, ...props }, ref) => {
|
|
12
|
+
return (
|
|
13
|
+
<div className={cx(styles.TableHead, className)} {...props} ref={ref} />
|
|
14
|
+
)
|
|
17
15
|
})
|
|
18
16
|
|
|
19
|
-
export const TableBody = React.forwardRef((props, ref) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
export const TableBody = React.forwardRef(({ className, ...props }, ref) => {
|
|
18
|
+
return (
|
|
19
|
+
<div className={cx(styles.TableBody, className)} {...props} ref={ref} />
|
|
20
|
+
)
|
|
23
21
|
})
|
|
24
22
|
|
|
25
|
-
export const TableRow = React.forwardRef((props, ref) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return <div className={cx(styles.TableRow, className)} {...rest} ref={ref} />
|
|
23
|
+
export const TableRow = React.forwardRef(({ className, ...props }, ref) => {
|
|
24
|
+
return <div className={cx(styles.TableRow, className)} {...props} ref={ref} />
|
|
29
25
|
})
|
|
30
26
|
|
|
31
|
-
export const TableCell = React.forwardRef((props, ref) => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
export const TableCell = React.forwardRef(({ className, ...props }, ref) => {
|
|
28
|
+
return (
|
|
29
|
+
<div className={cx(styles.TableCell, className)} {...props} ref={ref} />
|
|
30
|
+
)
|
|
35
31
|
})
|
|
36
32
|
|
|
37
|
-
export const TableHeader = React.forwardRef((props, ref) => {
|
|
38
|
-
const { className, ...rest } = props
|
|
39
|
-
|
|
33
|
+
export const TableHeader = React.forwardRef(({ className, ...props }, ref) => {
|
|
40
34
|
return (
|
|
41
|
-
<div className={cx(styles.TableHeader, className)} {...
|
|
35
|
+
<div className={cx(styles.TableHeader, className)} {...props} ref={ref} />
|
|
42
36
|
)
|
|
43
37
|
})
|
|
44
38
|
|
|
45
39
|
Table.propTypes = {
|
|
46
|
-
className: PropTypes.string
|
|
47
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
40
|
+
className: PropTypes.string
|
|
48
41
|
}
|
|
42
|
+
|
|
49
43
|
TableHead.propTypes = {
|
|
50
|
-
className: PropTypes.string
|
|
51
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
44
|
+
className: PropTypes.string
|
|
52
45
|
}
|
|
46
|
+
|
|
53
47
|
TableBody.propTypes = {
|
|
54
|
-
className: PropTypes.string
|
|
55
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
48
|
+
className: PropTypes.string
|
|
56
49
|
}
|
|
57
50
|
|
|
58
51
|
TableRow.propTypes = {
|
|
59
|
-
className: PropTypes.string
|
|
60
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
52
|
+
className: PropTypes.string
|
|
61
53
|
}
|
|
54
|
+
|
|
62
55
|
TableCell.propTypes = {
|
|
63
|
-
className: PropTypes.string
|
|
64
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
56
|
+
className: PropTypes.string
|
|
65
57
|
}
|
|
58
|
+
|
|
66
59
|
TableHeader.propTypes = {
|
|
67
|
-
className: PropTypes.string
|
|
68
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
60
|
+
className: PropTypes.string
|
|
69
61
|
}
|
|
@@ -27,7 +27,7 @@ var ActionsMenu = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
27
27
|
|
|
28
28
|
var transformOrigin = useTransformOrigin(anchorOrigin);
|
|
29
29
|
return /*#__PURE__*/React.createElement(ActionsMenuWrapper, _extends({}, props, {
|
|
30
|
-
anchorEl: ref.current,
|
|
30
|
+
anchorEl: ref === null || ref === void 0 ? void 0 : ref.current,
|
|
31
31
|
getContentAnchorEl: null,
|
|
32
32
|
anchorOrigin: anchorOrigin,
|
|
33
33
|
transformOrigin: transformOrigin,
|
|
@@ -17,87 +17,81 @@ var styles = {
|
|
|
17
17
|
"TableCell": "styles__TableCell___3vgVE",
|
|
18
18
|
"TableHeader": "styles__TableHeader___ERsVK"
|
|
19
19
|
};
|
|
20
|
-
export var Table = /*#__PURE__*/React.forwardRef(function (
|
|
21
|
-
var className =
|
|
22
|
-
|
|
20
|
+
export var Table = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21
|
+
var className = _ref.className,
|
|
22
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
23
|
|
|
24
24
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
25
25
|
className: cx(styles.Table, className)
|
|
26
|
-
},
|
|
26
|
+
}, props, {
|
|
27
27
|
ref: ref
|
|
28
28
|
}));
|
|
29
29
|
});
|
|
30
|
-
export var TableHead = /*#__PURE__*/React.forwardRef(function (
|
|
31
|
-
var className =
|
|
32
|
-
|
|
30
|
+
export var TableHead = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
31
|
+
var className = _ref2.className,
|
|
32
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
33
33
|
|
|
34
34
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
35
35
|
className: cx(styles.TableHead, className)
|
|
36
|
-
},
|
|
36
|
+
}, props, {
|
|
37
37
|
ref: ref
|
|
38
38
|
}));
|
|
39
39
|
});
|
|
40
|
-
export var TableBody = /*#__PURE__*/React.forwardRef(function (
|
|
41
|
-
var className =
|
|
42
|
-
|
|
40
|
+
export var TableBody = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
41
|
+
var className = _ref3.className,
|
|
42
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
43
43
|
|
|
44
44
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
45
45
|
className: cx(styles.TableBody, className)
|
|
46
|
-
},
|
|
46
|
+
}, props, {
|
|
47
47
|
ref: ref
|
|
48
48
|
}));
|
|
49
49
|
});
|
|
50
|
-
export var TableRow = /*#__PURE__*/React.forwardRef(function (
|
|
51
|
-
var className =
|
|
52
|
-
|
|
50
|
+
export var TableRow = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
51
|
+
var className = _ref4.className,
|
|
52
|
+
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
53
53
|
|
|
54
54
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
55
55
|
className: cx(styles.TableRow, className)
|
|
56
|
-
},
|
|
56
|
+
}, props, {
|
|
57
57
|
ref: ref
|
|
58
58
|
}));
|
|
59
59
|
});
|
|
60
|
-
export var TableCell = /*#__PURE__*/React.forwardRef(function (
|
|
61
|
-
var className =
|
|
62
|
-
|
|
60
|
+
export var TableCell = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
61
|
+
var className = _ref5.className,
|
|
62
|
+
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
63
63
|
|
|
64
64
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
65
65
|
className: cx(styles.TableCell, className)
|
|
66
|
-
},
|
|
66
|
+
}, props, {
|
|
67
67
|
ref: ref
|
|
68
68
|
}));
|
|
69
69
|
});
|
|
70
|
-
export var TableHeader = /*#__PURE__*/React.forwardRef(function (
|
|
71
|
-
var className =
|
|
72
|
-
|
|
70
|
+
export var TableHeader = /*#__PURE__*/React.forwardRef(function (_ref6, ref) {
|
|
71
|
+
var className = _ref6.className,
|
|
72
|
+
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
73
73
|
|
|
74
74
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
75
75
|
className: cx(styles.TableHeader, className)
|
|
76
|
-
},
|
|
76
|
+
}, props, {
|
|
77
77
|
ref: ref
|
|
78
78
|
}));
|
|
79
79
|
});
|
|
80
80
|
Table.propTypes = {
|
|
81
|
-
className: PropTypes.string
|
|
82
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
81
|
+
className: PropTypes.string
|
|
83
82
|
};
|
|
84
83
|
TableHead.propTypes = {
|
|
85
|
-
className: PropTypes.string
|
|
86
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
84
|
+
className: PropTypes.string
|
|
87
85
|
};
|
|
88
86
|
TableBody.propTypes = {
|
|
89
|
-
className: PropTypes.string
|
|
90
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
87
|
+
className: PropTypes.string
|
|
91
88
|
};
|
|
92
89
|
TableRow.propTypes = {
|
|
93
|
-
className: PropTypes.string
|
|
94
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
90
|
+
className: PropTypes.string
|
|
95
91
|
};
|
|
96
92
|
TableCell.propTypes = {
|
|
97
|
-
className: PropTypes.string
|
|
98
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
93
|
+
className: PropTypes.string
|
|
99
94
|
};
|
|
100
95
|
TableHeader.propTypes = {
|
|
101
|
-
className: PropTypes.string
|
|
102
|
-
ref: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
96
|
+
className: PropTypes.string
|
|
103
97
|
};
|