cozy-ui 76.2.0 → 77.1.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 +25 -0
- package/assets/icons/ui/clock-outline.svg +1 -0
- package/assets/icons/ui/compare.svg +1 -0
- package/package.json +1 -1
- package/react/ContactsList/ContactsList.jsx +8 -10
- package/react/Icon/Readme.md +5 -1
- package/react/Icon/icons-sprite.js +2 -2
- package/react/Icons/ClockOutline.jsx +15 -0
- package/react/Icons/Compare.jsx +15 -0
- package/react/MuiCozyTheme/List/Readme.md +198 -240
- package/react/MuiCozyTheme/makeOverrides.js +0 -6
- package/react/UploadQueue/index.jsx +1 -1
- package/react/__snapshots__/examples.spec.jsx.snap +1385 -1605
- package/transpiled/react/ContactsList/ContactsList.js +7 -7
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/ClockOutline.js +14 -0
- package/transpiled/react/Icons/Compare.js +14 -0
- package/transpiled/react/MuiCozyTheme/makeOverrides.js +0 -6
- package/transpiled/react/UploadQueue/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
# [77.1.0](https://github.com/cozy/cozy-ui/compare/v77.0.0...v77.1.0) (2022-10-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **Icon:** Add compare and clock-outline icons ([97e00db](https://github.com/cozy/cozy-ui/commit/97e00db))
|
|
7
|
+
|
|
8
|
+
# [77.0.0](https://github.com/cozy/cozy-ui/compare/v76.2.0...v77.0.0) (2022-10-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **ContactsList:** Adjust list construction ([f301927](https://github.com/cozy/cozy-ui/commit/f301927))
|
|
14
|
+
* **UploadQueue:** Remove default vertical paddings ([830bad3](https://github.com/cozy/cozy-ui/commit/830bad3))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **List:** Add vertical padding of 8px inside List ([f17d0b7](https://github.com/cozy/cozy-ui/commit/f17d0b7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* **List:** List elements have been readjusted. The result may not be appropriate for your use case, refer to the documentation to apply adjustments if necessary. A simple trick might be to remove the vertical paddings `<List className="u-pv-0">`
|
|
25
|
+
|
|
1
26
|
# [76.2.0](https://github.com/cozy/cozy-ui/compare/v76.1.0...v76.2.0) (2022-10-10)
|
|
2
27
|
|
|
3
28
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2Zm0 2a1 1 0 0 1 .993.883L9 5v2.6l2 1.9a1 1 0 0 1-1.32 1.497l-.094-.083-2.293-2.207a1 1 0 0 1-.284-.576L7 8V5a1 1 0 0 1 1-1Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M1 6h4.586L4.293 7.293a1 1 0 0 0 1.414 1.414l3-3a1 1 0 0 0 0-1.414l-3-3a1 1 0 0 0-1.414 1.414L5.586 4H1a1 1 0 0 0 0 2Zm14 4h-4.586l1.293-1.293a1 1 0 0 0-1.414-1.414l-3 3a1 1 0 0 0 0 1.414l3 3a1 1 0 0 0 1.414-1.414L10.414 12H15a1 1 0 1 0 0-2Z"/></svg>
|
package/package.json
CHANGED
|
@@ -15,17 +15,15 @@ const ContactsList = ({ contacts, onItemClick, ...rest }) => {
|
|
|
15
15
|
return (
|
|
16
16
|
<Table {...rest}>
|
|
17
17
|
{sortedHeaders.map(header => (
|
|
18
|
-
<List key={header}>
|
|
19
|
-
<ListSubheader>{header}</ListSubheader>
|
|
18
|
+
<List key={header} subheader={<ListSubheader>{header}</ListSubheader>}>
|
|
20
19
|
{categorizedContacts[header].map((contact, index) => (
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</List>
|
|
20
|
+
<ContactRow
|
|
21
|
+
key={contact._id}
|
|
22
|
+
id={contact._id}
|
|
23
|
+
contact={contact}
|
|
24
|
+
divider={index !== categorizedContacts[header].length - 1}
|
|
25
|
+
onClick={onItemClick}
|
|
26
|
+
/>
|
|
29
27
|
))}
|
|
30
28
|
</List>
|
|
31
29
|
))}
|
package/react/Icon/Readme.md
CHANGED
|
@@ -65,11 +65,13 @@ import CheckList from 'cozy-ui/transpiled/react/Icons/CheckList'
|
|
|
65
65
|
import CheckSquare from 'cozy-ui/transpiled/react/Icons/CheckSquare'
|
|
66
66
|
import CircleFilled from 'cozy-ui/transpiled/react/Icons/CircleFilled'
|
|
67
67
|
import Clock from 'cozy-ui/transpiled/react/Icons/Clock'
|
|
68
|
+
import ClockOutline from 'cozy-ui/transpiled/react/Icons/ClockOutline'
|
|
68
69
|
import Cloud from 'cozy-ui/transpiled/react/Icons/Cloud'
|
|
69
70
|
import CloudHappy from 'cozy-ui/transpiled/react/Icons/CloudHappy'
|
|
70
71
|
import Collect from 'cozy-ui/transpiled/react/Icons/Collect'
|
|
71
72
|
import Comment from 'cozy-ui/transpiled/react/Icons/Comment'
|
|
72
73
|
import Company from 'cozy-ui/transpiled/react/Icons/Company'
|
|
74
|
+
import Compare from 'cozy-ui/transpiled/react/Icons/Compare'
|
|
73
75
|
import Compass from 'cozy-ui/transpiled/react/Icons/Compass'
|
|
74
76
|
import Connector from 'cozy-ui/transpiled/react/Icons/Connector'
|
|
75
77
|
import Contract from 'cozy-ui/transpiled/react/Icons/Contract'
|
|
@@ -286,11 +288,13 @@ const icons = [
|
|
|
286
288
|
CheckSquare,
|
|
287
289
|
CircleFilled,
|
|
288
290
|
Clock,
|
|
291
|
+
ClockOutline,
|
|
289
292
|
Cloud,
|
|
290
293
|
CloudHappy,
|
|
291
294
|
Collect,
|
|
292
295
|
Comment,
|
|
293
296
|
Company,
|
|
297
|
+
Compare,
|
|
294
298
|
Compass,
|
|
295
299
|
Connector,
|
|
296
300
|
Contract,
|
|
@@ -834,7 +838,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
|
834
838
|
|
|
835
839
|
const colors = ['#297EF2', '#08b442', '#B449E7', '#F52D2D', '#FF962F']
|
|
836
840
|
let i = 0
|
|
837
|
-
const availableIcons = ['album-add','album-remove','album','answer','apple','archive','attachment','attention','bank','banking-add','banking','bell','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','categories','certified','check-circle','check-list','check-square','check',
|
|
841
|
+
const availableIcons = ['album-add','album-remove','album','answer','apple','archive','attachment','attention','bank','banking-add','banking','bell','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','categories','certified','check-circle','check-list','check-square','check','checkbox','circle-filled','clock','clock-outline','cloud-happy','cloud','collect','comment','company','compare','compass','connector','contract','contrast','copy','cozy-circle','cozy-laugh','cozy-text','credit-card-add','credit-card','credit','crop','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','email-notification','email','eu','euro','exchange','eye-closed','eye','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','graph-circle','grid','group-list','groups','hand','heart','help','help-outlined','history','home','hourglass','image','info-outlined','info','key','laptop','left','lightbulb','link-out','link','list','location','lock', 'lock-screen', 'logout','magic-trick','magnet','magnifier','merge','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','previous','printer','qualify','radio-checked','radio-unchecked','refresh','repare','reply','restaurant','restore-straight','restore','right','rise','rotate-left','rotate-right','sad-cozy','safe','school','select-all','setting','share-circle','share','shield','shop','sound','spinner','stack','star','stats','subway', 'swap', 'sync-cozy','sync','tag','target','team','telephone','to-the-cloud','top','train','trash','trophy','unknow','unlink','unlock','up','upload','videos','walk','wallet-add','wallet-new','wallet','warn','warning-circle','warning','wrench-circle']
|
|
838
842
|
;
|
|
839
843
|
<div style={{ fontSize: '2rem', display: 'grid', gridTemplateColumns: 'repeat(6, 1fr)' }}>
|
|
840
844
|
<Sprite />
|
|
@@ -161,7 +161,7 @@ module.exports = `<svg><defs>
|
|
|
161
161
|
</g>
|
|
162
162
|
</symbol><symbol id="circle-filled" viewBox="0 0 16 16">
|
|
163
163
|
<circle cx="8" cy="8" r="8" fill-rule="evenodd"/>
|
|
164
|
-
</symbol><symbol id="clock" viewBox="0 0 16 16">
|
|
164
|
+
</symbol><symbol id="clock-outline" viewBox="0 0 16 16"><path clip-rule="evenodd" d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm0 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2Zm0 2a1 1 0 0 1 .993.883L9 5v2.6l2 1.9a1 1 0 0 1-1.32 1.497l-.094-.083-2.293-2.207a1 1 0 0 1-.284-.576L7 8V5a1 1 0 0 1 1-1Z"/></symbol><symbol id="clock" viewBox="0 0 16 16">
|
|
165
165
|
<path fill-rule="evenodd" d="M136,48 C140.418278,48 144,44.418278 144,40 C144,35.581722 140.418278,32 136,32 C131.581722,32 128,35.581722 128,40 C128,44.418278 131.581722,48 136,48 Z M135,40 C135,40.2652165 135.105357,40.5195704 135.292893,40.7071068 L138.292893,43.7071068 C138.683418,44.0976311 139.316582,44.0976311 139.707107,43.7071068 C140.097631,43.3165825 140.097631,42.6834175 139.707107,42.2928932 L137,39.6004639 L137,36 C137,35.4477153 136.552285,35 136,35 C135.447715,35 135,35.4477153 135,36 L135,40 Z" transform="translate(-128 -32)"/>
|
|
166
166
|
</symbol><symbol id="cloud-happy" viewBox="0 0 16 16">
|
|
167
167
|
<path fill-rule="evenodd" d="M4 6a4 4 0 1 1 8 0 4 4 0 1 1 0 8H4a4 4 0 1 1 0-8zm1 3s0 2 3 2 3-2 3-2H5z"/>
|
|
@@ -180,7 +180,7 @@ module.exports = `<svg><defs>
|
|
|
180
180
|
<path fill-rule="evenodd" d="M0 .999A.997.997 0 0 1 1 0h14a1 1 0 0 1 1 .999V12c0 .552-.453.999-.997.999H8l-6 3v-3H1a1 1 0 0 1-1-.999V1zM4 5c0 .556.446 1 .997 1h6.006c.544 0 .997-.448.997-1 0-.556-.446-1-.997-1H4.997C4.453 4 4 4.448 4 5zm0 3c0 .556.444 1 .99 1h4.02A1 1 0 0 0 10 8c0-.556-.444-1-.99-1H4.99A1 1 0 0 0 4 8z"/>
|
|
181
181
|
</symbol><symbol id="company" viewBox="0 0 16 16">
|
|
182
182
|
<path fill-rule="evenodd" d="M10 0v16H0V0h10zM4 12v-2H2v2h2zm0-4V6H2v2h2zm0-4V2H2v2h2zm4 0V2H6v2h2zm0 4V6H6v2h2zm0 4v-2H6v2h2zm3-8h5v12h-5V4zm3.5 8v-2h-2v2h2zm0-4V6h-2v2h2z"/>
|
|
183
|
-
</symbol><symbol id="compass" viewBox="0 0 16 16">
|
|
183
|
+
</symbol><symbol id="compare" viewBox="0 0 16 16"><path clip-rule="evenodd" d="M1 6h4.586L4.293 7.293a1 1 0 0 0 1.414 1.414l3-3a1 1 0 0 0 0-1.414l-3-3a1 1 0 0 0-1.414 1.414L5.586 4H1a1 1 0 0 0 0 2Zm14 4h-4.586l1.293-1.293a1 1 0 0 0-1.414-1.414l-3 3a1 1 0 0 0 0 1.414l3 3a1 1 0 0 0 1.414-1.414L10.414 12H15a1 1 0 1 0 0-2Z"/></symbol><symbol id="compass" viewBox="0 0 16 16">
|
|
184
184
|
<path fill-rule="evenodd" d="M7.864 10.663a2.667 2.667 0 0 0 2.8-2.8l1.22-3.175c.197-.51-.058-.77-.572-.573L8.136 5.337a2.667 2.667 0 0 0-2.8 2.8l-1.22 3.175c-.197.51.058.77.572.573l3.176-1.222zM8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-6.667a1.333 1.333 0 1 1 0-2.666 1.333 1.333 0 0 1 0 2.666z"/>
|
|
185
185
|
</symbol><symbol id="connector" viewBox="0 0 20 27">
|
|
186
186
|
<title>collect</title>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/clock-outline.svg` to regenerate;
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
function SvgClockOutline(props) {
|
|
5
|
+
return (
|
|
6
|
+
<svg viewBox="0 0 16 16" {...props}>
|
|
7
|
+
<path
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M8 0a8 8 0 110 16A8 8 0 018 0zm0 2a6 6 0 100 12A6 6 0 008 2zm0 2a1 1 0 01.993.883L9 5v2.6l2 1.9a1 1 0 01-1.32 1.497l-.094-.083-2.293-2.207a1 1 0 01-.284-.576L7 8V5a1 1 0 011-1z"
|
|
10
|
+
/>
|
|
11
|
+
</svg>
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default SvgClockOutline
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/ui/compare.svg` to regenerate;
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
function SvgCompare(props) {
|
|
5
|
+
return (
|
|
6
|
+
<svg viewBox="0 0 16 16" {...props}>
|
|
7
|
+
<path
|
|
8
|
+
clipRule="evenodd"
|
|
9
|
+
d="M1 6h4.586L4.293 7.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 00-1.414 1.414L5.586 4H1a1 1 0 000 2zm14 4h-4.586l1.293-1.293a1 1 0 00-1.414-1.414l-3 3a1 1 0 000 1.414l3 3a1 1 0 001.414-1.414L10.414 12H15a1 1 0 100-2z"
|
|
10
|
+
/>
|
|
11
|
+
</svg>
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default SvgCompare
|