cozy-ui 121.3.0 → 121.4.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,12 @@
1
+ # [121.4.0](https://github.com/cozy/cozy-ui/compare/v121.3.0...v121.4.0) (2025-03-24)
2
+
3
+
4
+ ### Features
5
+
6
+ * Add DesktopDownload icon ([97766b5](https://github.com/cozy/cozy-ui/commit/97766b5))
7
+ * Adjust PhoneDownload Icon ([8bd5753](https://github.com/cozy/cozy-ui/commit/8bd5753))
8
+ * **Banner:** Add possibility to hide bottom divider ([cc5a2c8](https://github.com/cozy/cozy-ui/commit/cc5a2c8))
9
+
1
10
  # [121.3.0](https://github.com/cozy/cozy-ui/compare/v121.2.0...v121.3.0) (2025-03-20)
2
11
 
3
12
 
@@ -1 +1 @@
1
- <svg width="14" height="16" viewBox="0 0 14 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.177 5.647H9.412V0H3.765v5.647H0l6.588 6.588 6.589-6.588ZM5.647 7.53V1.882H7.53V7.53h1.102L6.588 9.572 4.546 7.529h1.101ZM0 14.118h13.177V16H0v-1.882Z"/></svg>
1
+ <svg width="14" height="17" viewBox="0 0 14 17" xmlns="http://www.w3.org/2000/svg"><path d="M9.182 12.586H1.909V3.859H7V2.404H1.91v-.727H7V.229L1.91.222C1.11.222.454.877.454 1.677v13.09c0 .8.654 1.455 1.454 1.455h7.273c.8 0 1.454-.654 1.454-1.454V11.13H9.182v1.455Zm0 2.182H1.909v-.728h7.273v.728Z"/><path d="m9.91 9.677 3.636-3.637-1.026-1.025-1.884 1.876V1.677H9.182V6.89L7.298 5.015 6.273 6.04l3.636 3.637Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="16" height="15" viewBox="0 0 16 15" xmlns="http://www.w3.org/2000/svg"><path d="M14.4 11.2H1.6V1.6H8V0H1.6C.712 0 0 .712 0 1.6v9.6c0 .88.712 1.6 1.6 1.6h3.2v1.6h6.4v-1.6h3.2c.88 0 1.6-.72 1.6-1.6V8.8h-1.6v2.4Z"/><path d="m12 8.8 4-4-1.128-1.128L12.8 5.736V0h-1.6v5.736L9.128 3.672 8 4.8l4 4Z"/></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "121.3.0",
3
+ "version": "121.4.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -22,6 +22,7 @@ const initialVariants = [{
22
22
  buttonOne: true,
23
23
  buttonTwo: true,
24
24
  inline: true,
25
+ noDivider: false,
25
26
  backgroundColor: true,
26
27
  disableIconStyles: false
27
28
  }]
@@ -39,6 +40,7 @@ const initialVariants = [{
39
40
  buttonOne={variant.buttonOne && buttonOne}
40
41
  buttonTwo={variant.buttonTwo && buttonTwo}
41
42
  inline={variant.inline}
43
+ noDivider={variant.noDivider}
42
44
  disableIconStyles={variant.disableIconStyles}
43
45
  />
44
46
  )}
@@ -19,6 +19,7 @@ const Banner = ({
19
19
  buttonOne,
20
20
  buttonTwo,
21
21
  inline,
22
+ noDivider,
22
23
  disableIconStyles
23
24
  }) => {
24
25
  const position = {
@@ -76,7 +77,7 @@ const Banner = ({
76
77
  </Grid>
77
78
  </div>
78
79
  </Paper>
79
- <Divider />
80
+ {!noDivider && <Divider />}
80
81
  </>
81
82
  )
82
83
  }
@@ -94,6 +95,8 @@ Banner.propTypes = {
94
95
  buttonTwo: PropTypes.node,
95
96
  /** Show banner on one line (only desktop) */
96
97
  inline: PropTypes.bool,
98
+ /** Disables the bottom divider */
99
+ noDivider: PropTypes.bool,
97
100
  /** Disables the styles of the wrapper around the icon */
98
101
  disableIconWrapper: PropTypes.bool
99
102
  }
@@ -142,6 +142,7 @@ import Dash from 'cozy-ui/transpiled/react/Icons/Dash'
142
142
  import Dashboard from 'cozy-ui/transpiled/react/Icons/Dashboard'
143
143
  import DataControl from 'cozy-ui/transpiled/react/Icons/DataControl'
144
144
  import Debit from 'cozy-ui/transpiled/react/Icons/Debit'
145
+ import DesktopDownload from 'cozy-ui/transpiled/react/Icons/DesktopDownload'
145
146
  import Devices from 'cozy-ui/transpiled/react/Icons/Devices'
146
147
  import Dots from 'cozy-ui/transpiled/react/Icons/Dots'
147
148
  import Down from 'cozy-ui/transpiled/react/Icons/Down'
@@ -412,6 +413,7 @@ const icons = [
412
413
  Dashboard,
413
414
  DataControl,
414
415
  Debit,
416
+ DesktopDownload,
415
417
  Devices,
416
418
  Dots,
417
419
  Down,
@@ -940,7 +942,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
940
942
 
941
943
  const colors = ['#297EF2', '#08b442', '#B449E7', '#F52D2D', '#FF962F']
942
944
  let i = 0
943
- const availableIcons = ['album-add','album-remove','album','answer','apple','archive','arrowUp','attachment','attention','bank-check','bank','banking-add','banking','bell','benefit','bike','bill','bottom','browser-brave','browser-chrome','browser-duckduckgo','browser-edge','browser-edge-chromium','browser-firefox','browser-ie','browser-opera','browser-safari','burger','bus','calendar','camera','car','carbonCopy','carpooling','categories','certified','check-circle','check-list','check-square','check','checkbox','chess','child','circle-filled','clock','clock-outline','cloud-happy','cloud-plus-outlined','cloud','collect','cocktail','comment','company','compare','compass','connector','contract','contrast','copy','cozy-circle','cozy-laugh', 'cozy-lock', 'cozy-text', 'cozy-release', 'credit-card-add','credit-card','credit','crop','cross-circle-outline','cross-circle','cross-medium','cross-small','cross','cube','dash','dashboard','data-control','debit','devices','dots','down','download','drawing-arrow-up','dropdown-close','dropdown-open','dropdown','dropup','electric-bike','electric-car','electric-scooter','email-notification','email','eu','euro','exchange','eye-closed','eye','face-id','file-add','file-duotone','file-new','file-none','file-outline','file','filter','fingerprint','fitness','flag-outlined','flag','flash-auto','flashlight','folder-add','folder-moveto','folder-open','folder','forbidden','from-user','gear','globe','gouv','graph-circle','grid','group-list','groups','growth','hand','heart','help','help-outlined','history','home','hourglass','image','info-outlined','info','justice','key','label-outlined','laudry','laptop','left','library','lightbulb','lightning','link-out','link','list','list-min','location','lock', 'lock-screen', 'logout','magic-trick','magnet','magnifier','merge','moped','mosaic-min','motorcycle','mountain','movement-in','movement-out','mouvement','moveto','multi-files','music','new','next','note','notification-email','number','offline','online', 'openapp', 'openwith','palette','paper','paperplane','password','pen','people','percent-circle','percent','personal-data','phone-download','phone-upload','phone','pie-chart','pin','plane','plus-small','plus', 'pop-inside', 'previous','printer','qualify','radio-checked','radio-unchecked','refresh','relationship','remboursement','rename','repare','reply','restaurant','restore-straight','restore','right','rise','rotate-left','rotate-right','sad-cozy','safe','school','scooter','select-all','server','setting','share-circle','share','shield','shop','sound','spinner','sport-bag','stack','star','star-outline','stats','stop', 'subway', 'support', 'swap', 'sync-cozy','sync','tab','tag','target','task','team','telecom','telephone','text','text-info','to-the-cloud','top','train','tram','trash','trophy', 'uncloud', 'unknow','unlink','unlock','up','upload','videos','walk','wallet-add','wallet-new','wallet','warn','warning-circle','warning','water','wrench-circle','work']
945
+ const availableIcons = ['album-add','album-remove','album','answer','apple','archive','arrowUp','attachment','attention','bank-check','bank','banking-add','banking','bell','benefit','bike','bill','bottom','browser-brave','browser-chrome','browser-duckduckgo','browser-edge','browser-edge-chromium','browser-firefox','browser-ie','browser-opera','browser-safari','burger','bus','calendar','camera','car','carbonCopy','carpooling','categories','certified','check-circle','check-list','check-square','check','checkbox','chess','child','circle-filled','clock','clock-outline','cloud-happy','cloud-plus-outlined','cloud','collect','cocktail','comment','company','compare','compass','connector','contract','contrast','copy','cozy-circle','cozy-laugh', 'cozy-lock', 'cozy-text', 'cozy-release', 'credit-card-add','credit-card','credit','crop','cross-circle-outline','cross-circle','cross-medium','cross-small','cross','cube','dash','dashboard','data-control','debit','desktop-download','devices','dots','down','download','drawing-arrow-up','dropdown-close','dropdown-open','dropdown','dropup','electric-bike','electric-car','electric-scooter','email-notification','email','eu','euro','exchange','eye-closed','eye','face-id','file-add','file-duotone','file-new','file-none','file-outline','file','filter','fingerprint','fitness','flag-outlined','flag','flash-auto','flashlight','folder-add','folder-moveto','folder-open','folder','forbidden','from-user','gear','globe','gouv','graph-circle','grid','group-list','groups','growth','hand','heart','help','help-outlined','history','home','hourglass','image','info-outlined','info','justice','key','label-outlined','laudry','laptop','left','library','lightbulb','lightning','link-out','link','list','list-min','location','lock', 'lock-screen', 'logout','magic-trick','magnet','magnifier','merge','moped','mosaic-min','motorcycle','mountain','movement-in','movement-out','mouvement','moveto','multi-files','music','new','next','note','notification-email','number','offline','online', 'openapp', 'openwith','palette','paper','paperplane','password','pen','people','percent-circle','percent','personal-data','phone-download','phone-upload','phone','pie-chart','pin','plane','plus-small','plus', 'pop-inside', 'previous','printer','qualify','radio-checked','radio-unchecked','refresh','relationship','remboursement','rename','repare','reply','restaurant','restore-straight','restore','right','rise','rotate-left','rotate-right','sad-cozy','safe','school','scooter','select-all','server','setting','share-circle','share','shield','shop','sound','spinner','sport-bag','stack','star','star-outline','stats','stop', 'subway', 'support', 'swap', 'sync-cozy','sync','tab','tag','target','task','team','telecom','telephone','text','text-info','to-the-cloud','top','train','tram','trash','trophy', 'uncloud', 'unknow','unlink','unlock','up','upload','videos','walk','wallet-add','wallet-new','wallet','warn','warning-circle','warning','water','wrench-circle','work']
944
946
  ;
945
947
  <div style={{ fontSize: '2rem', display: 'grid', gridTemplateColumns: 'repeat(6, 1fr)' }}>
946
948
  <Sprite />
@@ -0,0 +1,13 @@
1
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/desktop-download.svg` to regenerate;
2
+ import React from 'react'
3
+
4
+ function SvgDesktopDownload(props) {
5
+ return (
6
+ <svg viewBox="0 0 16 15" {...props}>
7
+ <path d="M14.4 11.2H1.6V1.6H8V0H1.6C.712 0 0 .712 0 1.6v9.6c0 .88.712 1.6 1.6 1.6h3.2v1.6h6.4v-1.6h3.2c.88 0 1.6-.72 1.6-1.6V8.8h-1.6v2.4z" />
8
+ <path d="M12 8.8l4-4-1.128-1.128L12.8 5.736V0h-1.6v5.736L9.128 3.672 8 4.8l4 4z" />
9
+ </svg>
10
+ )
11
+ }
12
+
13
+ export default SvgDesktopDownload
@@ -3,8 +3,9 @@ import React from 'react'
3
3
 
4
4
  function SvgPhoneDownloadTwake(props) {
5
5
  return (
6
- <svg viewBox="0 0 14 16" {...props}>
7
- <path d="M13.177 5.647H9.412V0H3.765v5.647H0l6.588 6.588 6.589-6.588zM5.647 7.53V1.882H7.53V7.53h1.102L6.588 9.572 4.546 7.529h1.101zM0 14.118h13.177V16H0v-1.882z" />
6
+ <svg viewBox="0 0 14 17" {...props}>
7
+ <path d="M9.182 12.586H1.909V3.859H7V2.404H1.91v-.727H7V.229L1.91.222C1.11.222.454.877.454 1.677v13.09c0 .8.654 1.455 1.454 1.455h7.273c.8 0 1.454-.654 1.454-1.454V11.13H9.182v1.455zm0 2.182H1.909v-.728h7.273v.728z" />
8
+ <path d="M9.91 9.677l3.636-3.637-1.026-1.025-1.884 1.876V1.677H9.182V6.89L7.298 5.015 6.273 6.04l3.636 3.637z" />
8
9
  </svg>
9
10
  )
10
11
  }
@@ -24,6 +24,7 @@ var Banner = function Banner(_ref) {
24
24
  buttonOne = _ref.buttonOne,
25
25
  buttonTwo = _ref.buttonTwo,
26
26
  inline = _ref.inline,
27
+ noDivider = _ref.noDivider,
27
28
  disableIconStyles = _ref.disableIconStyles;
28
29
  var position = {
29
30
  row: [8, 4],
@@ -67,7 +68,7 @@ var Banner = function Banner(_ref) {
67
68
  }, /*#__PURE__*/React.createElement(Grid, {
68
69
  item: true,
69
70
  className: styles['c-banner-buttons']
70
- }, buttonOne && buttonOne, buttonTwo && buttonTwo))))), /*#__PURE__*/React.createElement(Divider, null));
71
+ }, buttonOne && buttonOne, buttonTwo && buttonTwo))))), !noDivider && /*#__PURE__*/React.createElement(Divider, null));
71
72
  };
72
73
 
73
74
  Banner.propTypes = {
@@ -89,6 +90,9 @@ Banner.propTypes = {
89
90
  /** Show banner on one line (only desktop) */
90
91
  inline: PropTypes.bool,
91
92
 
93
+ /** Disables the bottom divider */
94
+ noDivider: PropTypes.bool,
95
+
92
96
  /** Disables the styles of the wrapper around the icon */
93
97
  disableIconWrapper: PropTypes.bool
94
98
  };