cozy-ui 140.5.0 → 140.5.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
+ ## [140.5.1](https://github.com/cozy/cozy-ui/compare/v140.5.0...v140.5.1) (2026-07-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **ColorList:** Now propagate onClick ev ([3227ee6](https://github.com/cozy/cozy-ui/commit/3227ee6))
7
+
1
8
  # [140.5.0](https://github.com/cozy/cozy-ui/compare/v140.4.0...v140.5.0) (2026-07-16)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "140.5.0",
3
+ "version": "140.5.1",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "engines": {
6
6
  "node": "24.x"
@@ -68,7 +68,7 @@ const ColorList = ({ size, selectedColor, customColorProps, onClick }) => {
68
68
  }}
69
69
  classes={{ label: 'u-flex u-w-auto' }}
70
70
  label={<Icon icon={Palette} size={iconSize} color="#000" />}
71
- onClick={() => customColorProps?.onClick()}
71
+ onClick={ev => customColorProps?.onClick(ev)}
72
72
  />
73
73
  </ImageListItem>
74
74
  )}
@@ -79,6 +79,10 @@ const ColorList = ({ size, selectedColor, customColorProps, onClick }) => {
79
79
  ColorList.propTypes = {
80
80
  size: propTypes.oneOf(['small', 'medium']),
81
81
  selectedColor: propTypes.string,
82
+ customColorProps: propTypes.shape({
83
+ enabled: propTypes.bool,
84
+ onClick: propTypes.func
85
+ }),
82
86
  onClick: propTypes.func
83
87
  }
84
88
 
@@ -11,6 +11,10 @@ declare namespace ColorList {
11
11
  namespace propTypes {
12
12
  const size: propTypes.Requireable<string>;
13
13
  const selectedColor: propTypes.Requireable<string>;
14
+ const customColorProps: propTypes.Requireable<propTypes.InferProps<{
15
+ enabled: propTypes.Requireable<boolean>;
16
+ onClick: propTypes.Requireable<(...args: any[]) => any>;
17
+ }>>;
14
18
  const onClick: propTypes.Requireable<(...args: any[]) => any>;
15
19
  }
16
20
  }
@@ -74,8 +74,8 @@ var ColorList = function ColorList(_ref) {
74
74
  size: iconSize,
75
75
  color: "#000"
76
76
  }),
77
- onClick: function onClick() {
78
- return customColorProps === null || customColorProps === void 0 ? void 0 : customColorProps.onClick();
77
+ onClick: function onClick(ev) {
78
+ return customColorProps === null || customColorProps === void 0 ? void 0 : customColorProps.onClick(ev);
79
79
  }
80
80
  })));
81
81
  };
@@ -83,6 +83,10 @@ var ColorList = function ColorList(_ref) {
83
83
  ColorList.propTypes = {
84
84
  size: propTypes.oneOf(['small', 'medium']),
85
85
  selectedColor: propTypes.string,
86
+ customColorProps: propTypes.shape({
87
+ enabled: propTypes.bool,
88
+ onClick: propTypes.func
89
+ }),
86
90
  onClick: propTypes.func
87
91
  };
88
92
  export { COLORS };