cozy-ui 126.0.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,22 @@
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
+
13
+ # [126.1.0](https://github.com/cozy/cozy-ui/compare/v126.0.0...v126.1.0) (2025-06-13)
14
+
15
+
16
+ ### Features
17
+
18
+ * Add OnlyOffice icon ([fd8d3c0](https://github.com/cozy/cozy-ui/commit/fd8d3c0))
19
+
1
20
  # [126.0.0](https://github.com/cozy/cozy-ui/compare/v125.1.0...v126.0.0) (2025-06-11)
2
21
 
3
22
 
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_6882_51948)" fill-rule="evenodd" clip-rule="evenodd"><path d="m7 15.172-6.58-3.02c-.56-.264-.56-.672 0-.912l2.291-1.055 4.265 1.966c.56.264 1.463.264 1.999 0l4.265-1.966 2.29 1.055c.561.264.561.671 0 .911l-6.58 3.021c-.511.24-1.413.24-1.95 0Z" fill="url(#paint0_linear_6882_51948)"/><path d="M7 11.456.42 8.436c-.56-.265-.56-.672 0-.912l2.243-1.03L7 8.483c.56.263 1.462.263 1.998 0l4.338-1.99 2.242 1.03c.561.264.561.671 0 .911L9 11.456c-.56.264-1.462.264-1.998 0Z" fill="url(#paint1_linear_6882_51948)"/><path d="M7 7.836.42 4.815c-.56-.264-.56-.672 0-.911L7 .883c.561-.264 1.463-.264 2 0l6.58 3.02c.56.264.56.672 0 .912L9 7.835c-.561.24-1.463.24-2 0Z" fill="url(#paint2_linear_6882_51948)"/></g><defs><linearGradient id="paint0_linear_6882_51948" x1="7.994" y1="18.035" x2="7.994" y2="7.007" gradientUnits="userSpaceOnUse"><stop stop-color="#FCC2B1"/><stop offset=".885" stop-color="#D9420B"/></linearGradient><linearGradient id="paint1_linear_6882_51948" x1="7.994" y1="13.26" x2="7.994" y2="6.007" gradientUnits="userSpaceOnUse"><stop stop-color="#DEEDC9"/><stop offset=".661" stop-color="#8BBA25"/></linearGradient><linearGradient id="paint2_linear_6882_51948" x1="7.994" y1="10.323" x2="7.994" y2=".453" gradientUnits="userSpaceOnUse"><stop stop-color="#C2EBFA"/><stop offset="1" stop-color="#26A8DE"/></linearGradient><clipPath id="clip0_6882_51948"><path fill="#fff" transform="translate(0 .556)" d="M0 0h16v14.889H0z"/></clipPath></defs></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "126.0.0",
3
+ "version": "126.2.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -29,7 +29,7 @@ const ActionsMenu = forwardRef(
29
29
  return (
30
30
  <ActionsMenuWrapper
31
31
  {...props}
32
- anchorEl={ref.current}
32
+ anchorEl={ref?.current}
33
33
  getContentAnchorEl={null}
34
34
  anchorOrigin={anchorOrigin}
35
35
  transformOrigin={transformOrigin}
@@ -735,6 +735,7 @@ import KeychainIcon from 'cozy-ui/transpiled/react/Icons/Keychain'
735
735
  import LogoutLargeIcon from 'cozy-ui/transpiled/react/Icons/LogoutLarge'
736
736
  import MailIcon from 'cozy-ui/transpiled/react/Icons/Mail'
737
737
  import NotesIcon from 'cozy-ui/transpiled/react/Icons/Notes'
738
+ import OnlyOfficeIcon from 'cozy-ui/transpiled/react/Icons/OnlyOffice'
738
739
  import PapersIcon from 'cozy-ui/transpiled/react/Icons/Papers'
739
740
  import PassIcon from 'cozy-ui/transpiled/react/Icons/Pass'
740
741
  import ShareGrey08Icon from 'cozy-ui/transpiled/react/Icons/ShareGrey08'
@@ -786,6 +787,7 @@ const icons = [
786
787
  LogoutLargeIcon,
787
788
  MailIcon,
788
789
  NotesIcon,
790
+ OnlyOfficeIcon,
789
791
  PapersIcon,
790
792
  PassIcon,
791
793
  ShareGrey08Icon,
@@ -1018,7 +1020,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
1018
1020
  import Grid from 'cozy-ui/transpiled/react/Grid'
1019
1021
  import Sprite from 'cozy-ui/transpiled/react/Icon/Sprite'
1020
1022
 
1021
- const availableIcons = ['account', 'bottom-select', 'check-white', 'cloud-broken', 'contacts', 'cozy-authentification', 'cozy-logo', 'cozy-upgrade', 'credit-card-large', 'dash-white', 'device-browser', 'device-laptop', 'device-phone', 'device-tablet', 'file-type-audio', 'file-type-banking-account' , 'file-type-bin', 'file-type-code', 'file-type-files', 'file-type-folder', 'file-type-server', 'file-type-image', 'file-type-note', 'file-type-pdf', 'file-type-sheet', 'file-type-slide', 'file-type-text', 'file-type-video', 'file-type-zip', 'forbidden-sign', 'google', 'keychain', 'logout-large', 'papers', 'store', 'top-select', 'trash-duotone', 'cozy']
1023
+ const availableIcons = ['account', 'bottom-select', 'check-white', 'cloud-broken', 'contacts', 'cozy-authentification', 'cozy-logo', 'cozy-upgrade', 'credit-card-large', 'dash-white', 'device-browser', 'device-laptop', 'device-phone', 'device-tablet', 'file-type-audio', 'file-type-banking-account' , 'file-type-bin', 'file-type-code', 'file-type-files', 'file-type-folder', 'file-type-server', 'file-type-image', 'file-type-note', 'file-type-pdf', 'file-type-sheet', 'file-type-slide', 'file-type-text', 'file-type-video', 'file-type-zip', 'forbidden-sign', 'google', 'keychain', 'logout-large', 'papers', 'only-office', 'store', 'top-select', 'trash-duotone', 'cozy']
1022
1024
 
1023
1025
  ;
1024
1026
 
@@ -0,0 +1,71 @@
1
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/illus/only-office.svg` to regenerate;
2
+ import React from 'react'
3
+
4
+ function SvgOnlyOffice(props) {
5
+ return (
6
+ <svg viewBox="0 0 16 16" fill="none" {...props}>
7
+ <g
8
+ clipPath="url(#only-office_svg__clip0_6882_51948)"
9
+ fillRule="evenodd"
10
+ clipRule="evenodd"
11
+ >
12
+ <path
13
+ d="M7 15.172l-6.58-3.02c-.56-.264-.56-.672 0-.912l2.291-1.055 4.265 1.966c.56.264 1.463.264 1.999 0l4.265-1.966 2.29 1.055c.561.264.561.671 0 .911l-6.58 3.021c-.511.24-1.413.24-1.95 0z"
14
+ fill="url(#only-office_svg__paint0_linear_6882_51948)"
15
+ />
16
+ <path
17
+ d="M7 11.456L.42 8.436c-.56-.265-.56-.672 0-.912l2.243-1.03L7 8.483c.56.263 1.462.263 1.998 0l4.338-1.99 2.242 1.03c.561.264.561.671 0 .911L9 11.456c-.56.264-1.462.264-1.998 0z"
18
+ fill="url(#only-office_svg__paint1_linear_6882_51948)"
19
+ />
20
+ <path
21
+ d="M7 7.836L.42 4.815c-.56-.264-.56-.672 0-.911L7 .883c.561-.264 1.463-.264 2 0l6.58 3.02c.56.264.56.672 0 .912L9 7.835c-.561.24-1.463.24-2 0z"
22
+ fill="url(#only-office_svg__paint2_linear_6882_51948)"
23
+ />
24
+ </g>
25
+ <defs>
26
+ <linearGradient
27
+ id="only-office_svg__paint0_linear_6882_51948"
28
+ x1={7.994}
29
+ y1={18.035}
30
+ x2={7.994}
31
+ y2={7.007}
32
+ gradientUnits="userSpaceOnUse"
33
+ >
34
+ <stop stopColor="#FCC2B1" />
35
+ <stop offset={0.885} stopColor="#D9420B" />
36
+ </linearGradient>
37
+ <linearGradient
38
+ id="only-office_svg__paint1_linear_6882_51948"
39
+ x1={7.994}
40
+ y1={13.26}
41
+ x2={7.994}
42
+ y2={6.007}
43
+ gradientUnits="userSpaceOnUse"
44
+ >
45
+ <stop stopColor="#DEEDC9" />
46
+ <stop offset={0.661} stopColor="#8BBA25" />
47
+ </linearGradient>
48
+ <linearGradient
49
+ id="only-office_svg__paint2_linear_6882_51948"
50
+ x1={7.994}
51
+ y1={10.323}
52
+ x2={7.994}
53
+ y2={0.453}
54
+ gradientUnits="userSpaceOnUse"
55
+ >
56
+ <stop stopColor="#C2EBFA" />
57
+ <stop offset={1} stopColor="#26A8DE" />
58
+ </linearGradient>
59
+ <clipPath id="only-office_svg__clip0_6882_51948">
60
+ <path
61
+ fill="#fff"
62
+ transform="translate(0 .556)"
63
+ d="M0 0h16v14.889H0z"
64
+ />
65
+ </clipPath>
66
+ </defs>
67
+ </svg>
68
+ )
69
+ }
70
+
71
+ export default SvgOnlyOffice
@@ -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
- const { className, ...rest } = props
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
- const { className, ...rest } = props
15
-
16
- return <div className={cx(styles.TableHead, className)} {...rest} ref={ref} />
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
- const { className, ...rest } = props
21
-
22
- return <div className={cx(styles.TableBody, className)} {...rest} ref={ref} />
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
- const { className, ...rest } = props
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
- const { className, ...rest } = props
33
-
34
- return <div className={cx(styles.TableCell, className)} {...rest} ref={ref} />
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)} {...rest} ref={ref} />
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,