cozy-ui 119.0.1 → 119.0.2

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
+ ## [119.0.2](https://github.com/cozy/cozy-ui/compare/v119.0.1...v119.0.2) (2025-03-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Cube:** Missed `ref` props ([d7c4010](https://github.com/cozy/cozy-ui/commit/d7c4010))
7
+
1
8
  ## [119.0.1](https://github.com/cozy/cozy-ui/compare/v119.0.0...v119.0.1) (2025-03-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "119.0.1",
3
+ "version": "119.0.2",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -4,10 +4,10 @@ import React from 'react'
4
4
  import SvgCubeTwake from './Cube_twake'
5
5
  import { isTwakeTheme } from '../helpers/isTwakeTheme'
6
6
 
7
- function SvgCube(props) {
8
- if (isTwakeTheme()) return SvgCubeTwake(props)
7
+ function SvgCube({ iconRef, ...props }) {
8
+ if (isTwakeTheme()) return SvgCubeTwake({ iconRef, ...props })
9
9
  return (
10
- <svg viewBox="0 0 16 16" {...props}>
10
+ <svg viewBox="0 0 16 16" {...props} ref={iconRef}>
11
11
  <path d="M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z" />
12
12
  </svg>
13
13
  )
@@ -1,9 +1,9 @@
1
1
  // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/twake/cube_twake.svg` to regenerate;
2
2
  import React from 'react'
3
3
 
4
- function SvgCubeTwake(props) {
4
+ function SvgCubeTwake({ iconRef, ...props }) {
5
5
  return (
6
- <svg viewBox="0 0 15 16" {...props}>
6
+ <svg viewBox="0 0 15 16" {...props} ref={iconRef}>
7
7
  <path d="M14.4 4L7.2 0 0 4v8l7.2 4 7.2-4V4zM7.2 1.832l4.728 2.624L9.52 5.792a3.213 3.213 0 00-4.64 0L2.472 4.456 7.2 1.832zm-.8 11.896l-4.8-2.664V5.808L4.104 7.2A3.193 3.193 0 006.4 11.096v2.632zM5.6 8c0-.88.72-1.6 1.6-1.6.88 0 1.6.72 1.6 1.6 0 .88-.72 1.6-1.6 1.6-.88 0-1.6-.72-1.6-1.6zM8 13.728v-2.624a3.193 3.193 0 002.4-3.096c0-.28-.032-.552-.104-.808L12.8 5.808v5.256L8 13.728z" />
8
8
  </svg>
9
9
  )
@@ -1,14 +1,29 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["iconRef"];
5
+
6
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
+
8
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
+
2
10
  // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/cube.svg` to regenerate
3
11
  import React from 'react';
4
12
  import SvgCubeTwake from "cozy-ui/transpiled/react/Icons/Cube_twake";
5
13
  import { isTwakeTheme } from "cozy-ui/transpiled/react/helpers/isTwakeTheme";
6
14
 
7
- function SvgCube(props) {
8
- if (isTwakeTheme()) return SvgCubeTwake(props);
15
+ function SvgCube(_ref) {
16
+ var iconRef = _ref.iconRef,
17
+ props = _objectWithoutProperties(_ref, _excluded);
18
+
19
+ if (isTwakeTheme()) return SvgCubeTwake(_objectSpread({
20
+ iconRef: iconRef
21
+ }, props));
9
22
  return /*#__PURE__*/React.createElement("svg", _extends({
10
23
  viewBox: "0 0 16 16"
11
- }, props), /*#__PURE__*/React.createElement("path", {
24
+ }, props, {
25
+ ref: iconRef
26
+ }), /*#__PURE__*/React.createElement("path", {
12
27
  d: "M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"
13
28
  }));
14
29
  }
@@ -1,11 +1,18 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["iconRef"];
2
4
  // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/twake/cube_twake.svg` to regenerate;
3
5
  import React from 'react';
4
6
 
5
- function SvgCubeTwake(props) {
7
+ function SvgCubeTwake(_ref) {
8
+ var iconRef = _ref.iconRef,
9
+ props = _objectWithoutProperties(_ref, _excluded);
10
+
6
11
  return /*#__PURE__*/React.createElement("svg", _extends({
7
12
  viewBox: "0 0 15 16"
8
- }, props), /*#__PURE__*/React.createElement("path", {
13
+ }, props, {
14
+ ref: iconRef
15
+ }), /*#__PURE__*/React.createElement("path", {
9
16
  d: "M14.4 4L7.2 0 0 4v8l7.2 4 7.2-4V4zM7.2 1.832l4.728 2.624L9.52 5.792a3.213 3.213 0 00-4.64 0L2.472 4.456 7.2 1.832zm-.8 11.896l-4.8-2.664V5.808L4.104 7.2A3.193 3.193 0 006.4 11.096v2.632zM5.6 8c0-.88.72-1.6 1.6-1.6.88 0 1.6.72 1.6 1.6 0 .88-.72 1.6-1.6 1.6-.88 0-1.6-.72-1.6-1.6zM8 13.728v-2.624a3.193 3.193 0 002.4-3.096c0-.28-.032-.552-.104-.808L12.8 5.808v5.256L8 13.728z"
10
17
  }));
11
18
  }