cozy-ui 81.0.0 → 81.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 +14 -0
- package/assets/icons/illus/cloud-sync2.svg +1 -0
- package/package.json +1 -1
- package/react/ActionMenu/index.spec.jsx +1 -1
- package/react/Alerter/alerter.spec.js +1 -1
- package/react/AppLinker/index.deprecated.spec.jsx +1 -1
- package/react/AppLinker/index.spec.jsx +1 -1
- package/react/AppLinker/native.js +1 -1
- package/react/AppTile/AppTile.spec.jsx +1 -1
- package/react/Avatar/index.jsx +1 -0
- package/react/Banner/index.spec.jsx +1 -1
- package/react/CipherIcon/index.spec.jsx +1 -1
- package/react/ContactsList/Contacts/ContactCozy.jsx +4 -1
- package/react/ContactsList/Contacts/ContactEmail.jsx +4 -1
- package/react/ContactsList/Contacts/ContactIdentity.jsx +1 -0
- package/react/ContactsList/Contacts/ContactName.jsx +1 -0
- package/react/ContactsList/Contacts/ContactPhone.jsx +4 -1
- package/react/ContactsList/__snapshots__/ContactRow.spec.js.snap +6 -0
- package/react/ContactsListModal/index.jsx +1 -1
- package/react/DateMonthPicker/index.spec.jsx +1 -1
- package/react/Field/index.spec.js +1 -1
- package/react/FileInput/index.spec.jsx +1 -1
- package/react/FilePicker/FilePickerHeader.jsx +1 -1
- package/react/I18n/withLocales.jsx +1 -1
- package/react/Icon/Readme.md +2 -0
- package/react/Icon/icons-sprite.js +1 -1
- package/react/Icons/CloudSync2.jsx +23 -0
- package/react/Input/index.spec.jsx +1 -1
- package/react/Modal/index.spec.jsx +1 -1
- package/react/PieChart/index.spec.jsx +1 -1
- package/react/Popup/index.spec.jsx +1 -1
- package/react/PushClientButton/index.spec.jsx +1 -1
- package/react/Radio/index.spec.jsx +1 -1
- package/react/SquareAppIcon/SquareAppIcon.spec.js +1 -1
- package/react/UploadQueue/index.spec.jsx +1 -1
- package/react/ViewStack/example.jsx +1 -1
- package/react/ViewStack/index.spec.jsx +1 -1
- package/react/Viewer/Viewer.jsx +1 -1
- package/react/Viewer/ViewerExposer.js +1 -1
- package/react/Viewer/components/ViewerControls.jsx +1 -1
- package/react/__snapshots__/examples.spec.jsx.snap +809 -795
- package/react/hooks/useConfirmExit/index.spec.js +1 -1
- package/transpiled/react/AppLinker/native.js +1 -1
- package/transpiled/react/Avatar/index.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactCozy.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactEmail.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactIdentity.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactName.js +2 -0
- package/transpiled/react/ContactsList/Contacts/ContactPhone.js +2 -0
- package/transpiled/react/ContactsListModal/index.js +1 -1
- package/transpiled/react/FilePicker/FilePickerHeader.js +1 -1
- package/transpiled/react/Icon/icons-sprite.js +1 -1
- package/transpiled/react/Icons/CloudSync2.js +22 -0
- package/transpiled/react/ViewStack/example.js +1 -1
- package/transpiled/react/Viewer/Viewer.js +1 -1
- package/transpiled/react/Viewer/ViewerExposer.js +1 -1
- package/transpiled/react/Viewer/components/ViewerControls.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [81.2.0](https://github.com/cozy/cozy-ui/compare/v81.1.0...v81.2.0) (2023-02-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add new icon cloud sync ([9af423e](https://github.com/cozy/cozy-ui/commit/9af423e))
|
|
7
|
+
|
|
8
|
+
# [81.1.0](https://github.com/cozy/cozy-ui/compare/v81.0.0...v81.1.0) (2023-02-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Use bare directories instead of index files in specifiers ([00dd09e](https://github.com/cozy/cozy-ui/commit/00dd09e))
|
|
14
|
+
|
|
1
15
|
# [81.0.0](https://github.com/cozy/cozy-ui/compare/v80.3.0...v81.0.0) (2023-02-13)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M26.667 83.676C11.939 83.676 0 71.737 0 57.01c0-13.06 9.387-23.926 21.781-26.22C24.075 18.395 34.941 9.01 48 9.01c13.059 0 23.925 9.386 26.22 21.78C86.613 33.085 96 43.95 96 57.01c0 14.464-11.516 26.239-25.88 26.655l-.787.011H26.667Z" fill="#B2D3FF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M66.156 57.51a2.668 2.668 0 0 1 1.214 3.57c-3.603 7.304-11.12 12.096-19.371 12.096-6.307 0-12.117-2.885-16.117-7.413-.275 1.181-1.283 2.08-2.55 2.08a2.668 2.668 0 0 1-2.666-2.667V54.51c0-.168.042-.318.069-.475.016-.072.013-.144.032-.213a2.58 2.58 0 0 1 .395-.854c.02-.026.048-.048.066-.072.168-.218.37-.402.595-.557a2.648 2.648 0 0 1 2.043-.424c.072.016.14.035.21.053.23.067.446.171.659.307.072.045.144.077.213.128.03.024.064.035.094.059l8 6.666a2.665 2.665 0 0 1 .338 3.755 2.629 2.629 0 0 1-1.917.939c2.877 2.496 6.592 4.021 10.536 4.021 6.195 0 11.875-3.619 14.587-9.12a2.665 2.665 0 0 1 3.57-1.213Zm3.094-7.766c-.01.053-.008.107-.022.157a2.568 2.568 0 0 1-.415.843c-.032.045-.07.075-.105.115a2.546 2.546 0 0 1-.57.514c-.067.046-.128.091-.2.128a2.76 2.76 0 0 1-.886.31c-.008 0-.016.005-.02.008-.025.002-.046-.008-.07-.006a2.625 2.625 0 0 1-1.086-.109 2.552 2.552 0 0 1-.674-.33c-.061-.04-.126-.067-.181-.113-.02-.016-.043-.018-.062-.037l-8-6.667a2.665 2.665 0 0 1-.341-3.754c.55-.659 1.346-.942 2.139-.915a16.33 16.33 0 0 0-10.758-4.045c-6.31 0-12.021 3.64-14.666 9.184a2.667 2.667 0 0 1-4.813-2.296C32.043 35.34 39.625 30.509 48 30.509c6.38 0 12.183 2.79 16.154 7.238.33-1.094 1.31-1.904 2.512-1.904a2.668 2.668 0 0 1 2.666 2.666v10.667c0 .203-.042.384-.082.568Z" fill="#297EF1"/></svg>
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import Icon from '../Icon'
|
|
|
10
10
|
import FileIcon from '../Icons/File'
|
|
11
11
|
import WarningIcon from '../Icons/Warning'
|
|
12
12
|
|
|
13
|
-
import ActionMenu, { ActionMenuItem, ActionMenuRadio } from '
|
|
13
|
+
import ActionMenu, { ActionMenuItem, ActionMenuRadio } from '.'
|
|
14
14
|
|
|
15
15
|
describe('ActionMenu', () => {
|
|
16
16
|
fixPopperTesting()
|
package/react/Avatar/index.jsx
CHANGED
|
@@ -55,6 +55,7 @@ export const Avatar = ({
|
|
|
55
55
|
const IconToRender = Icon.isProperIcon(icon) ? <Icon icon={icon} /> : icon
|
|
56
56
|
return (
|
|
57
57
|
<div
|
|
58
|
+
data-testid="Avatar" // used by a test in cozy-contacts
|
|
58
59
|
className={cx(
|
|
59
60
|
styles['c-avatar'],
|
|
60
61
|
text ? styles['c-avatar--text'] : '',
|
|
@@ -5,7 +5,10 @@ import { TableCell } from '../../Table'
|
|
|
5
5
|
import styles from '../styles.styl'
|
|
6
6
|
|
|
7
7
|
const ContactCozy = ({ cozyUrl }) => (
|
|
8
|
-
<TableCell
|
|
8
|
+
<TableCell
|
|
9
|
+
data-testid="ContactCozy" // used by a test in cozy-contacts
|
|
10
|
+
className={`${styles['contact-cozyurl']} u-ellipsis`}
|
|
11
|
+
>
|
|
9
12
|
{cozyUrl}
|
|
10
13
|
</TableCell>
|
|
11
14
|
)
|
|
@@ -5,7 +5,10 @@ import { TableCell } from '../../Table'
|
|
|
5
5
|
import styles from '../styles.styl'
|
|
6
6
|
|
|
7
7
|
const ContactEmail = ({ email }) => (
|
|
8
|
-
<TableCell
|
|
8
|
+
<TableCell
|
|
9
|
+
data-testid="ContactEmail" // used by a test in cozy-contacts
|
|
10
|
+
className={`${styles['contact-email']} u-ellipsis`}
|
|
11
|
+
>
|
|
9
12
|
{email}
|
|
10
13
|
</TableCell>
|
|
11
14
|
)
|
|
@@ -5,7 +5,10 @@ import { TableCell } from '../../Table'
|
|
|
5
5
|
import styles from '../styles.styl'
|
|
6
6
|
|
|
7
7
|
const ContactPhone = ({ phone }) => (
|
|
8
|
-
<TableCell
|
|
8
|
+
<TableCell
|
|
9
|
+
data-testid="ContactPhone" // used by a test in cozy-contacts
|
|
10
|
+
className={`${styles['contact-phone']} u-ellipsis`}
|
|
11
|
+
>
|
|
9
12
|
{phone}
|
|
10
13
|
</TableCell>
|
|
11
14
|
)
|
|
@@ -9,9 +9,11 @@ exports[`ContactRow should match the contact snapshot 1`] = `
|
|
|
9
9
|
>
|
|
10
10
|
<div
|
|
11
11
|
className="styles__TableCell___yJCq7 styles__contact-identity___mL3IJ u-flex u-flex-items-center u-ellipsis"
|
|
12
|
+
data-testid="ContactIdentity"
|
|
12
13
|
>
|
|
13
14
|
<div
|
|
14
15
|
className="styles__c-avatar___PpDI- styles__c-avatar--text___2dvna"
|
|
16
|
+
data-testid="Avatar"
|
|
15
17
|
style={
|
|
16
18
|
Object {
|
|
17
19
|
"--circleSize": "32px",
|
|
@@ -28,6 +30,7 @@ exports[`ContactRow should match the contact snapshot 1`] = `
|
|
|
28
30
|
</div>
|
|
29
31
|
<p
|
|
30
32
|
className="MuiTypography-root u-ml-1 MuiTypography-body1 MuiTypography-colorTextPrimary MuiTypography-noWrap MuiTypography-gutterBottom MuiTypography-displayInline"
|
|
33
|
+
data-testid="ContactName"
|
|
31
34
|
>
|
|
32
35
|
<span
|
|
33
36
|
className=""
|
|
@@ -45,16 +48,19 @@ exports[`ContactRow should match the contact snapshot 1`] = `
|
|
|
45
48
|
</div>
|
|
46
49
|
<div
|
|
47
50
|
className="styles__TableCell___yJCq7 styles__contact-email___3n3q2 u-ellipsis"
|
|
51
|
+
data-testid="ContactEmail"
|
|
48
52
|
>
|
|
49
53
|
johndoe@localhost
|
|
50
54
|
</div>
|
|
51
55
|
<div
|
|
52
56
|
className="styles__TableCell___yJCq7 styles__contact-phone___1sA_m u-ellipsis"
|
|
57
|
+
data-testid="ContactPhone"
|
|
53
58
|
>
|
|
54
59
|
0123456789
|
|
55
60
|
</div>
|
|
56
61
|
<div
|
|
57
62
|
className="styles__TableCell___yJCq7 styles__contact-cozyurl___3kBp5 u-ellipsis"
|
|
63
|
+
data-testid="ContactCozy"
|
|
58
64
|
>
|
|
59
65
|
http://johndoe.mycozy.cloud
|
|
60
66
|
</div>
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
useCozyDialog
|
|
14
14
|
} from '../CozyDialogs'
|
|
15
15
|
import useRealtime from '../hooks/useRealtime'
|
|
16
|
-
import useEventListener from '../hooks/useEventListener
|
|
16
|
+
import useEventListener from '../hooks/useEventListener'
|
|
17
17
|
import useBreakpoints from '../hooks/useBreakpoints'
|
|
18
18
|
import Button from '../Buttons'
|
|
19
19
|
import PlusIcon from '../Icons/Plus'
|
|
@@ -12,7 +12,7 @@ import Previous from '../Icons/Previous'
|
|
|
12
12
|
|
|
13
13
|
import FilePickerBreadcrumb from './FilePickerBreadcrumb'
|
|
14
14
|
import { buildCurrentFolderQuery } from './queries'
|
|
15
|
-
import { ROOT_DIR_ID } from '
|
|
15
|
+
import { ROOT_DIR_ID } from '.'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @param {IOCozyFolder} displayedFolder - An io.cozy.files folder
|
package/react/Icon/Readme.md
CHANGED
|
@@ -550,6 +550,7 @@ import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
|
550
550
|
|
|
551
551
|
import CozyIcon from 'cozy-ui/transpiled/react/Icons/Cozy'
|
|
552
552
|
import CloudBrokenIcon from 'cozy-ui/transpiled/react/Icons/CloudBroken'
|
|
553
|
+
import CloudSync2 from 'cozy-ui/transpiled/react/Icons/CloudSync2'
|
|
553
554
|
import CozyLogoIcon from 'cozy-ui/transpiled/react/Icons/CozyLogo'
|
|
554
555
|
import DeviceLaptopIcon from 'cozy-ui/transpiled/react/Icons/DeviceLaptop'
|
|
555
556
|
import DevicePhoneIcon from 'cozy-ui/transpiled/react/Icons/DevicePhone'
|
|
@@ -583,6 +584,7 @@ import KeychainIcon from 'cozy-ui/transpiled/react/Icons/Keychain'
|
|
|
583
584
|
const icons = [
|
|
584
585
|
CozyIcon,
|
|
585
586
|
CloudBrokenIcon,
|
|
587
|
+
CloudSync2,
|
|
586
588
|
CozyLogoIcon,
|
|
587
589
|
DeviceLaptopIcon,
|
|
588
590
|
DevicePhoneIcon,
|
|
@@ -20,7 +20,7 @@ module.exports = `<svg><defs>
|
|
|
20
20
|
</g>
|
|
21
21
|
</symbol><symbol id="check-white" viewBox="0 0 20 20">
|
|
22
22
|
<path d="M3 10.019l4.523 4.523 9.541-9.541" stroke="#FFF" stroke-width="2" fill="none"/>
|
|
23
|
-
</symbol><symbol id="cloud-broken" viewBox="0 0 160 160"><g fill="none" fill-rule="evenodd"><path fill="#93BEF8" d="M61.763 130.593l-3.174 7.933h59.045-.003c23.356 0 42.369-19.126 42.369-42.634 0-22.218-16.977-40.52-38.56-42.467a42.494 42.494 0 0 0-12.426-25.27 42.873 42.873 0 0 0-4.68-3.992l-3.156 7.892c7.203 6.153 11.888 15.26 12.12 25.41.055 2.478 2.056 4.446 4.499 4.446h.34c18.71 0 33.93 15.405 33.93 34.338 0 18.936-15.22 34.34-33.93 34.34h-.324l-.01.004h-56.04zm39.415-106.538l3.157-7.892C97.128 10.86 88.462 8 79.387 8 68.245 8 57.724 12.311 49.76 20.158c-6.974 6.868-11.308 15.77-12.438 25.4-9.568 1.135-18.411 5.5-25.239 12.514C4.29 66.086 0 76.677 0 87.89c0 23.511 19 42.637 42.366 42.637H58.59l3.174-7.933H42.537c-.097-.007-.194-.007-.292-.007l-.107.007h-.275c-18.71 0-33.93-15.405-33.93-34.341 0-18.507 14.863-33.905 33.132-34.331 2.406-.056 4.343-2.017 4.398-4.45.419-18.494 15.638-33.538 33.92-33.538 8.248 0 15.873 3.062 21.795 8.122z"/><path stroke="#297EF1" stroke-linecap="round" stroke-width="8" d="M50 156L110 4"/></g></symbol><symbol id="cloud-sync" viewBox="0 0 32 32">
|
|
23
|
+
</symbol><symbol id="cloud-broken" viewBox="0 0 160 160"><g fill="none" fill-rule="evenodd"><path fill="#93BEF8" d="M61.763 130.593l-3.174 7.933h59.045-.003c23.356 0 42.369-19.126 42.369-42.634 0-22.218-16.977-40.52-38.56-42.467a42.494 42.494 0 0 0-12.426-25.27 42.873 42.873 0 0 0-4.68-3.992l-3.156 7.892c7.203 6.153 11.888 15.26 12.12 25.41.055 2.478 2.056 4.446 4.499 4.446h.34c18.71 0 33.93 15.405 33.93 34.338 0 18.936-15.22 34.34-33.93 34.34h-.324l-.01.004h-56.04zm39.415-106.538l3.157-7.892C97.128 10.86 88.462 8 79.387 8 68.245 8 57.724 12.311 49.76 20.158c-6.974 6.868-11.308 15.77-12.438 25.4-9.568 1.135-18.411 5.5-25.239 12.514C4.29 66.086 0 76.677 0 87.89c0 23.511 19 42.637 42.366 42.637H58.59l3.174-7.933H42.537c-.097-.007-.194-.007-.292-.007l-.107.007h-.275c-18.71 0-33.93-15.405-33.93-34.341 0-18.507 14.863-33.905 33.132-34.331 2.406-.056 4.343-2.017 4.398-4.45.419-18.494 15.638-33.538 33.92-33.538 8.248 0 15.873 3.062 21.795 8.122z"/><path stroke="#297EF1" stroke-linecap="round" stroke-width="8" d="M50 156L110 4"/></g></symbol><symbol id="cloud-sync2" viewBox="0 0 96 96"><path fill-rule="evenodd" clip-rule="evenodd" d="M26.667 83.676C11.939 83.676 0 71.737 0 57.01c0-13.06 9.387-23.926 21.781-26.22C24.075 18.395 34.941 9.01 48 9.01c13.059 0 23.925 9.386 26.22 21.78C86.613 33.085 96 43.95 96 57.01c0 14.464-11.516 26.239-25.88 26.655l-.787.011H26.667Z" fill="#B2D3FF"/><path fill-rule="evenodd" clip-rule="evenodd" d="M66.156 57.51a2.668 2.668 0 0 1 1.214 3.57c-3.603 7.304-11.12 12.096-19.371 12.096-6.307 0-12.117-2.885-16.117-7.413-.275 1.181-1.283 2.08-2.55 2.08a2.668 2.668 0 0 1-2.666-2.667V54.51c0-.168.042-.318.069-.475.016-.072.013-.144.032-.213a2.58 2.58 0 0 1 .395-.854c.02-.026.048-.048.066-.072.168-.218.37-.402.595-.557a2.648 2.648 0 0 1 2.043-.424c.072.016.14.035.21.053.23.067.446.171.659.307.072.045.144.077.213.128.03.024.064.035.094.059l8 6.666a2.665 2.665 0 0 1 .338 3.755 2.629 2.629 0 0 1-1.917.939c2.877 2.496 6.592 4.021 10.536 4.021 6.195 0 11.875-3.619 14.587-9.12a2.665 2.665 0 0 1 3.57-1.213Zm3.094-7.766c-.01.053-.008.107-.022.157a2.568 2.568 0 0 1-.415.843c-.032.045-.07.075-.105.115a2.546 2.546 0 0 1-.57.514c-.067.046-.128.091-.2.128a2.76 2.76 0 0 1-.886.31c-.008 0-.016.005-.02.008-.025.002-.046-.008-.07-.006a2.625 2.625 0 0 1-1.086-.109 2.552 2.552 0 0 1-.674-.33c-.061-.04-.126-.067-.181-.113-.02-.016-.043-.018-.062-.037l-8-6.667a2.665 2.665 0 0 1-.341-3.754c.55-.659 1.346-.942 2.139-.915a16.33 16.33 0 0 0-10.758-4.045c-6.31 0-12.021 3.64-14.666 9.184a2.667 2.667 0 0 1-4.813-2.296C32.043 35.34 39.625 30.509 48 30.509c6.38 0 12.183 2.79 16.154 7.238.33-1.094 1.31-1.904 2.512-1.904a2.668 2.668 0 0 1 2.666 2.666v10.667c0 .203-.042.384-.082.568Z" fill="#297EF1"/></symbol><symbol id="cloud-sync" viewBox="0 0 32 32">
|
|
24
24
|
<g fill="none" fill-rule="evenodd">
|
|
25
25
|
<g>
|
|
26
26
|
<path fill="#B2D3FF" d="M8.889 27.892c-4.91 0-8.889-3.98-8.889-8.889 0-4.353 3.129-7.975 7.26-8.74.765-4.13 4.387-7.26 8.74-7.26 4.353 0 7.975 3.13 8.74 7.26 4.131.765 7.26 4.387 7.26 8.74 0 4.822-3.839 8.747-8.627 8.885l-.262.004H8.89z"/>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Automatically created, please run `scripts/generate-svgr-icon.sh assets/icons/illus/cloud-sync-2.svg` to regenerate;
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
function SvgCloudSync2(props) {
|
|
5
|
+
return (
|
|
6
|
+
<svg viewBox="0 0 96 96" fill="none" {...props}>
|
|
7
|
+
<path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M26.667 83.676C11.939 83.676 0 71.737 0 57.01c0-13.06 9.387-23.926 21.781-26.22C24.075 18.395 34.941 9.01 48 9.01c13.059 0 23.925 9.386 26.22 21.78C86.613 33.085 96 43.95 96 57.01c0 14.464-11.516 26.239-25.88 26.655l-.787.011H26.667z"
|
|
11
|
+
fill="#B2D3FF"
|
|
12
|
+
/>
|
|
13
|
+
<path
|
|
14
|
+
fillRule="evenodd"
|
|
15
|
+
clipRule="evenodd"
|
|
16
|
+
d="M66.156 57.51a2.668 2.668 0 011.214 3.57c-3.603 7.304-11.12 12.096-19.371 12.096-6.307 0-12.117-2.885-16.117-7.413-.275 1.181-1.283 2.08-2.55 2.08a2.668 2.668 0 01-2.666-2.667V54.51c0-.168.042-.318.069-.475.016-.072.013-.144.032-.213a2.58 2.58 0 01.395-.854c.02-.026.048-.048.066-.072.168-.218.37-.402.595-.557a2.648 2.648 0 012.043-.424c.072.016.14.035.21.053.23.067.446.171.659.307.072.045.144.077.213.128.03.024.064.035.094.059l8 6.666a2.665 2.665 0 01.338 3.755 2.629 2.629 0 01-1.917.939c2.877 2.496 6.592 4.021 10.536 4.021 6.195 0 11.875-3.619 14.587-9.12a2.665 2.665 0 013.57-1.213zm3.094-7.766c-.01.053-.008.107-.022.157a2.568 2.568 0 01-.415.843c-.032.045-.07.075-.105.115a2.546 2.546 0 01-.57.514c-.067.046-.128.091-.2.128a2.76 2.76 0 01-.886.31.037.037 0 00-.02.008c-.025.002-.046-.008-.07-.006a2.625 2.625 0 01-1.086-.109 2.552 2.552 0 01-.674-.33c-.061-.04-.126-.067-.181-.113-.02-.016-.043-.018-.062-.037l-8-6.667a2.665 2.665 0 01-.341-3.754c.55-.659 1.346-.942 2.139-.915a16.33 16.33 0 00-10.758-4.045c-6.31 0-12.021 3.64-14.666 9.184a2.667 2.667 0 01-4.813-2.296C32.043 35.34 39.625 30.509 48 30.509c6.38 0 12.183 2.79 16.154 7.238.33-1.094 1.31-1.904 2.512-1.904a2.668 2.668 0 012.666 2.666v10.667c0 .203-.042.384-.082.568z"
|
|
17
|
+
fill="#297EF1"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default SvgCloudSync2
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import { act } from 'react-dom/test-utils'
|
|
3
3
|
import { useState } from 'react'
|
|
4
4
|
import { mount } from 'enzyme'
|
|
5
|
-
import Modal, { BODY_CLASS } from '
|
|
5
|
+
import Modal, { BODY_CLASS } from '.'
|
|
6
6
|
import { BreakpointsProvider } from '../hooks/useBreakpoints'
|
|
7
7
|
|
|
8
8
|
describe('Modal', () => {
|
|
@@ -8,7 +8,7 @@ import CozyClient, { CozyProvider } from 'cozy-client'
|
|
|
8
8
|
import Icon from '../Icon'
|
|
9
9
|
import CozyIcon from '../Icons/Cozy'
|
|
10
10
|
import MuiCozyTheme from '../MuiCozyTheme'
|
|
11
|
-
import SquareAppIcon from '
|
|
11
|
+
import SquareAppIcon from '.'
|
|
12
12
|
|
|
13
13
|
const appMock = {
|
|
14
14
|
slug: 'test',
|
|
@@ -2,7 +2,7 @@ import { mount } from 'enzyme'
|
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { act } from 'react-dom/test-utils'
|
|
4
4
|
import { Slide } from './example'
|
|
5
|
-
import ViewStack from '
|
|
5
|
+
import ViewStack from '.'
|
|
6
6
|
import Button from '../Button'
|
|
7
7
|
import SwipeableViews from 'react-swipeable-views'
|
|
8
8
|
|
package/react/Viewer/Viewer.jsx
CHANGED
|
@@ -5,7 +5,7 @@ import { FileDoctype } from '../proptypes'
|
|
|
5
5
|
|
|
6
6
|
import ViewerControls from './components/ViewerControls'
|
|
7
7
|
import ViewerByFile from './components/ViewerByFile'
|
|
8
|
-
import { toolbarPropsPropType } from '
|
|
8
|
+
import { toolbarPropsPropType } from '.'
|
|
9
9
|
|
|
10
10
|
const KEY_CODE_LEFT = 37
|
|
11
11
|
const KEY_CODE_RIGHT = 39
|
|
@@ -8,7 +8,7 @@ import { withStyles } from '../../styles'
|
|
|
8
8
|
import withBreakpoints from '../../helpers/withBreakpoints'
|
|
9
9
|
|
|
10
10
|
import { isValidForPanel } from '../helpers'
|
|
11
|
-
import { toolbarPropsPropType } from '
|
|
11
|
+
import { toolbarPropsPropType } from '..'
|
|
12
12
|
import { infoWidth } from './InformationPanel'
|
|
13
13
|
import Toolbar from './Toolbar'
|
|
14
14
|
import Navigation from './Navigation'
|