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.
Files changed (57) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/assets/icons/illus/cloud-sync2.svg +1 -0
  3. package/package.json +1 -1
  4. package/react/ActionMenu/index.spec.jsx +1 -1
  5. package/react/Alerter/alerter.spec.js +1 -1
  6. package/react/AppLinker/index.deprecated.spec.jsx +1 -1
  7. package/react/AppLinker/index.spec.jsx +1 -1
  8. package/react/AppLinker/native.js +1 -1
  9. package/react/AppTile/AppTile.spec.jsx +1 -1
  10. package/react/Avatar/index.jsx +1 -0
  11. package/react/Banner/index.spec.jsx +1 -1
  12. package/react/CipherIcon/index.spec.jsx +1 -1
  13. package/react/ContactsList/Contacts/ContactCozy.jsx +4 -1
  14. package/react/ContactsList/Contacts/ContactEmail.jsx +4 -1
  15. package/react/ContactsList/Contacts/ContactIdentity.jsx +1 -0
  16. package/react/ContactsList/Contacts/ContactName.jsx +1 -0
  17. package/react/ContactsList/Contacts/ContactPhone.jsx +4 -1
  18. package/react/ContactsList/__snapshots__/ContactRow.spec.js.snap +6 -0
  19. package/react/ContactsListModal/index.jsx +1 -1
  20. package/react/DateMonthPicker/index.spec.jsx +1 -1
  21. package/react/Field/index.spec.js +1 -1
  22. package/react/FileInput/index.spec.jsx +1 -1
  23. package/react/FilePicker/FilePickerHeader.jsx +1 -1
  24. package/react/I18n/withLocales.jsx +1 -1
  25. package/react/Icon/Readme.md +2 -0
  26. package/react/Icon/icons-sprite.js +1 -1
  27. package/react/Icons/CloudSync2.jsx +23 -0
  28. package/react/Input/index.spec.jsx +1 -1
  29. package/react/Modal/index.spec.jsx +1 -1
  30. package/react/PieChart/index.spec.jsx +1 -1
  31. package/react/Popup/index.spec.jsx +1 -1
  32. package/react/PushClientButton/index.spec.jsx +1 -1
  33. package/react/Radio/index.spec.jsx +1 -1
  34. package/react/SquareAppIcon/SquareAppIcon.spec.js +1 -1
  35. package/react/UploadQueue/index.spec.jsx +1 -1
  36. package/react/ViewStack/example.jsx +1 -1
  37. package/react/ViewStack/index.spec.jsx +1 -1
  38. package/react/Viewer/Viewer.jsx +1 -1
  39. package/react/Viewer/ViewerExposer.js +1 -1
  40. package/react/Viewer/components/ViewerControls.jsx +1 -1
  41. package/react/__snapshots__/examples.spec.jsx.snap +809 -795
  42. package/react/hooks/useConfirmExit/index.spec.js +1 -1
  43. package/transpiled/react/AppLinker/native.js +1 -1
  44. package/transpiled/react/Avatar/index.js +2 -0
  45. package/transpiled/react/ContactsList/Contacts/ContactCozy.js +2 -0
  46. package/transpiled/react/ContactsList/Contacts/ContactEmail.js +2 -0
  47. package/transpiled/react/ContactsList/Contacts/ContactIdentity.js +2 -0
  48. package/transpiled/react/ContactsList/Contacts/ContactName.js +2 -0
  49. package/transpiled/react/ContactsList/Contacts/ContactPhone.js +2 -0
  50. package/transpiled/react/ContactsListModal/index.js +1 -1
  51. package/transpiled/react/FilePicker/FilePickerHeader.js +1 -1
  52. package/transpiled/react/Icon/icons-sprite.js +1 -1
  53. package/transpiled/react/Icons/CloudSync2.js +22 -0
  54. package/transpiled/react/ViewStack/example.js +1 -1
  55. package/transpiled/react/Viewer/Viewer.js +1 -1
  56. package/transpiled/react/Viewer/ViewerExposer.js +1 -1
  57. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "81.0.0",
3
+ "version": "81.2.0",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -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()
@@ -4,7 +4,7 @@
4
4
  import React from 'react'
5
5
  import { shallow } from 'enzyme'
6
6
 
7
- import Alerter from './'
7
+ import Alerter from '.'
8
8
  import Alert from './Alert'
9
9
  import Button from '../Button'
10
10
 
@@ -19,7 +19,7 @@ import {
19
19
  checkApp
20
20
  } from 'cozy-device-helper'
21
21
 
22
- import AppLinker from './index'
22
+ import AppLinker from '.'
23
23
  import { generateUniversalLink } from './native'
24
24
  jest.useFakeTimers()
25
25
 
@@ -11,7 +11,7 @@ import {
11
11
  checkApp
12
12
  } from 'cozy-device-helper'
13
13
 
14
- import AppLinker from './index'
14
+ import AppLinker from '.'
15
15
  import { generateUniversalLink } from './native'
16
16
  jest.useFakeTimers()
17
17
 
@@ -3,7 +3,7 @@ import {
3
3
  ensureFirstSlash
4
4
  } from 'cozy-client'
5
5
 
6
- import { UNIVERSAL_LINK_URL } from './native.config.js'
6
+ import { UNIVERSAL_LINK_URL } from './native.config'
7
7
 
8
8
  export const getUniversalLinkDomain = () => {
9
9
  return UNIVERSAL_LINK_URL
@@ -9,7 +9,7 @@ import CozyClient, { CozyProvider } from 'cozy-client'
9
9
  import en from '../AppSections/locales/en.json'
10
10
  import I18n from '../I18n'
11
11
 
12
- import AppTile from './index'
12
+ import AppTile from '.'
13
13
 
14
14
  const appMock = {
15
15
  slug: 'test',
@@ -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'] : '',
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { render } from '@testing-library/react'
3
- import Banner from './index'
3
+ import Banner from '.'
4
4
 
5
5
  describe('Grid', () => {
6
6
  it('should render correctly justify content', () => {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { fireEvent, render } from '@testing-library/react'
3
- import CipherIcon from './index'
3
+ import CipherIcon from '.'
4
4
 
5
5
  jest.mock('cozy-client', () => ({
6
6
  withClient: Component => {
@@ -5,7 +5,10 @@ import { TableCell } from '../../Table'
5
5
  import styles from '../styles.styl'
6
6
 
7
7
  const ContactCozy = ({ cozyUrl }) => (
8
- <TableCell className={`${styles['contact-cozyurl']} u-ellipsis`}>
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 className={`${styles['contact-email']} u-ellipsis`}>
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
  )
@@ -20,6 +20,7 @@ const ContactIdentity = ({ contact }) => {
20
20
 
21
21
  return (
22
22
  <TableCell
23
+ data-testid="ContactIdentity" // used by a test in cozy-contacts
23
24
  className={`${
24
25
  styles['contact-identity']
25
26
  } u-flex u-flex-items-center u-ellipsis`}
@@ -9,6 +9,7 @@ const ContactName = ({ displayName, familyName }) => {
9
9
 
10
10
  return (
11
11
  <Typography
12
+ data-testid="ContactName" // used by a test in cozy-contacts
12
13
  className="u-ml-1"
13
14
  variant="body1"
14
15
  noWrap
@@ -5,7 +5,10 @@ import { TableCell } from '../../Table'
5
5
  import styles from '../styles.styl'
6
6
 
7
7
  const ContactPhone = ({ phone }) => (
8
- <TableCell className={`${styles['contact-phone']} u-ellipsis`}>
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.js'
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'
@@ -1,6 +1,6 @@
1
1
  import { mount } from 'enzyme'
2
2
  import React from 'react'
3
- import DateMonthPicker from './index'
3
+ import DateMonthPicker from '.'
4
4
  import { act } from 'react-dom/test-utils'
5
5
 
6
6
  import I18n from '../I18n'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import Field from './'
2
+ import Field from '.'
3
3
  import { shallow } from 'enzyme'
4
4
 
5
5
  describe('Field component', () => {
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import uniqueId from 'lodash/uniqueId'
3
3
 
4
- import FileInput from './index'
4
+ import FileInput from '.'
5
5
 
6
6
  jest.mock('lodash/uniqueId')
7
7
 
@@ -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 './index'
15
+ import { ROOT_DIR_ID } from '.'
16
16
 
17
17
  /**
18
18
  * @param {IOCozyFolder} displayedFolder - An io.cozy.files folder
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { I18n, translate } from './'
2
+ import { I18n, translate } from '.'
3
3
  import omit from 'lodash/omit'
4
4
 
5
5
  /**
@@ -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
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
 
3
- import Input from './index'
3
+ import Input from '.'
4
4
 
5
5
  describe('Input component', () => {
6
6
  it('should support number type', () => {
@@ -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 './index'
5
+ import Modal, { BODY_CLASS } from '.'
6
6
  import { BreakpointsProvider } from '../hooks/useBreakpoints'
7
7
 
8
8
  describe('Modal', () => {
@@ -1,4 +1,4 @@
1
- import { makeOptions, makeData } from './index'
1
+ import { makeOptions, makeData } from '.'
2
2
 
3
3
  describe('makeOptions', () => {
4
4
  it('should return default options', () => {
@@ -3,7 +3,7 @@ import { shallow } from 'enzyme'
3
3
 
4
4
  import { isMobileApp } from 'cozy-device-helper'
5
5
 
6
- import { Popup } from './'
6
+ import { Popup } from '.'
7
7
 
8
8
  jest.mock('cozy-device-helper', () => ({
9
9
  ...jest.requireActual('cozy-device-helper'),
@@ -2,7 +2,7 @@ import React from 'react'
2
2
 
3
3
  import { render } from '@testing-library/react'
4
4
 
5
- import PushClientButton from './'
5
+ import PushClientButton from '.'
6
6
 
7
7
  jest.mock('../Icons/DeviceLaptop', () => () => (
8
8
  <div data-testid="device-laptop" />
@@ -2,7 +2,7 @@ import React, { useState } from 'react'
2
2
 
3
3
  import { render, fireEvent } from '@testing-library/react'
4
4
 
5
- import Radio from './'
5
+ import Radio from '.'
6
6
  import RadioGroup from '../RadioGroup'
7
7
  import FormControlLabel from '../FormControlLabel'
8
8
 
@@ -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 './index'
11
+ import SquareAppIcon from '.'
12
12
 
13
13
  const appMock = {
14
14
  slug: 'test',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { UploadQueue, formatRemainingTime } from './index'
2
+ import { UploadQueue, formatRemainingTime } from '.'
3
3
  import { render } from '@testing-library/react'
4
4
  import { useI18n } from '../I18n'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { useViewStack } from './index'
2
+ import { useViewStack } from '.'
3
3
  import Button from '../Button'
4
4
 
5
5
  const PaddedParagraph = ({ children }) => (
@@ -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 './index'
5
+ import ViewStack from '.'
6
6
  import Button from '../Button'
7
7
  import SwipeableViews from 'react-swipeable-views'
8
8
 
@@ -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 './index'
8
+ import { toolbarPropsPropType } from '.'
9
9
 
10
10
  const KEY_CODE_LEFT = 37
11
11
  const KEY_CODE_RIGHT = 39
@@ -1,3 +1,3 @@
1
- import DefaultViewer from './index'
1
+ import DefaultViewer from '.'
2
2
 
3
3
  export default DefaultViewer
@@ -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 '../index'
11
+ import { toolbarPropsPropType } from '..'
12
12
  import { infoWidth } from './InformationPanel'
13
13
  import Toolbar from './Toolbar'
14
14
  import Navigation from './Navigation'