cozy-ui 111.19.0 → 111.21.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,17 @@
1
+ # [111.21.0](https://github.com/cozy/cozy-ui/compare/v111.20.0...v111.21.0) (2024-10-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * **ListItemSkeleton:** Add gutters property to mock ListItem behavior ([01ce10a](https://github.com/cozy/cozy-ui/commit/01ce10a))
7
+
8
+ # [111.20.0](https://github.com/cozy/cozy-ui/compare/v111.19.0...v111.20.0) (2024-10-17)
9
+
10
+
11
+ ### Features
12
+
13
+ * Add tab icon ([4431b22](https://github.com/cozy/cozy-ui/commit/4431b22))
14
+
1
15
  # [111.19.0](https://github.com/cozy/cozy-ui/compare/v111.18.1...v111.19.0) (2024-10-16)
2
16
 
3
17
 
@@ -0,0 +1 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13 12v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V3a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-1Zm1-9H5v1h6a2 2 0 0 1 2 2v4h1V3ZM2 6h9v7H2V6Z"/></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "111.19.0",
3
+ "version": "111.21.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -294,6 +294,7 @@ import Support from 'cozy-ui/transpiled/react/Icons/Support'
294
294
  import Swap from 'cozy-ui/transpiled/react/Icons/Swap'
295
295
  import Sync from 'cozy-ui/transpiled/react/Icons/Sync'
296
296
  import SyncCozy from 'cozy-ui/transpiled/react/Icons/SyncCozy'
297
+ import Tab from 'cozy-ui/transpiled/react/Icons/Tab'
297
298
  import Tag from 'cozy-ui/transpiled/react/Icons/Tag'
298
299
  import Target from 'cozy-ui/transpiled/react/Icons/Target'
299
300
  import Task from 'cozy-ui/transpiled/react/Icons/Task'
@@ -557,6 +558,7 @@ const icons = [
557
558
  Swap,
558
559
  Sync,
559
560
  SyncCozy,
561
+ Tab,
560
562
  Tag,
561
563
  Target,
562
564
  Task,
@@ -925,7 +927,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
925
927
 
926
928
  const colors = ['#297EF2', '#08b442', '#B449E7', '#F52D2D', '#FF962F']
927
929
  let i = 0
928
- 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','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','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','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','setting','share-circle','share','shield','shop','sound','spinner','sport-bag','stack','star','star-outline','stats','stop', 'subway', 'support', 'swap', 'sync-cozy','sync','tag','target','task','team','telecom','telephone','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']
930
+ 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','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','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','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','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-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']
929
931
  ;
930
932
  <div style={{ fontSize: '2rem', display: 'grid', gridTemplateColumns: 'repeat(6, 1fr)' }}>
931
933
  <Sprite />
@@ -0,0 +1,16 @@
1
+ // Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/tab.svg` to regenerate;
2
+ import React from 'react'
3
+
4
+ function SvgTab(props) {
5
+ return (
6
+ <svg viewBox="0 0 16 16" {...props}>
7
+ <path
8
+ fillRule="evenodd"
9
+ clipRule="evenodd"
10
+ d="M13 12v1a2 2 0 01-2 2H2a2 2 0 01-2-2V6a2 2 0 012-2h1V3a2 2 0 012-2h9a2 2 0 012 2v7a2 2 0 01-2 2h-1zm1-9H5v1h6a2 2 0 012 2v4h1V3zM2 6h9v7H2V6z"
11
+ />
12
+ </svg>
13
+ )
14
+ }
15
+
16
+ export default SvgTab
@@ -7,10 +7,10 @@ import ListItemIcon from '../ListItemIcon'
7
7
  import ListItemText from '../ListItemText'
8
8
  import Skeleton from '../Skeleton'
9
9
 
10
- const ListItemSkeleton = ({ hasSecondary, divider }) => {
10
+ const ListItemSkeleton = ({ hasSecondary, divider, gutters }) => {
11
11
  return (
12
12
  <>
13
- <ListItem>
13
+ <ListItem gutters={gutters}>
14
14
  <ListItemIcon>
15
15
  <Skeleton
16
16
  className="u-bdrs-4"
@@ -35,7 +35,8 @@ ListItemSkeleton.propTypes = {
35
35
  /** Show secondary line or not */
36
36
  hasSecondary: PropTypes.bool,
37
37
  /** Show divider after the ListItem */
38
- divider: PropTypes.bool
38
+ divider: PropTypes.bool,
39
+ gutters: PropTypes.string
39
40
  }
40
41
 
41
42
  export default ListItemSkeleton
@@ -26,16 +26,25 @@ const initialVariants = [{ hasSecondary: false, withSubheader: false, divider: f
26
26
  import Variants from 'cozy-ui/docs/components/Variants'
27
27
  import ListItemSkeleton from 'cozy-ui/transpiled/react/Skeletons/ListItemSkeleton'
28
28
 
29
- const initialVariants = [{ hasSecondary: false, divider: false }]
29
+ const initialVariants = [{
30
+ hasSecondary: false,
31
+ divider: false,
32
+ disabledGutters: false,
33
+ doubleGutters: false
34
+ }]
30
35
 
31
36
  ;
32
37
 
33
38
  <Variants initialVariants={initialVariants} screenshotAllVariants>
34
- {variant => (
39
+ {variant => {
40
+ const gutters = variant.disabledGutters ? 'disabled' : variant.doubleGutters ? 'double' : 'default'
41
+
42
+ return (
35
43
  <ListItemSkeleton
36
44
  hasSecondary={variant.hasSecondary}
37
45
  divider={variant.divider}
46
+ gutters={gutters}
38
47
  />
39
- )}
48
+ )}}
40
49
  </Variants>
41
50
  ```