cozy-ui-plus 8.0.0 → 9.0.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 (82) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/AppIcon/index.js +5 -7
  3. package/dist/AppSections/components/DropdownFilter.js +4 -6
  4. package/dist/AppTile/index.js +4 -6
  5. package/dist/CipherIcon/index.js +4 -6
  6. package/dist/CollectionField/index.js +6 -10
  7. package/dist/Contacts/AddModal/ContactForm/FieldInputAccordion.js +4 -8
  8. package/dist/Contacts/AddModal/ContactForm/FieldInputArray.js +4 -6
  9. package/dist/Contacts/AddModal/ContactForm/FieldInputLayout.js +3 -3
  10. package/dist/Contacts/AddModal/ContactForm/RemoveButton.js +4 -6
  11. package/dist/Contacts/AddModal/ContactForm/fieldsConfig.js +14 -36
  12. package/dist/Contacts/AddModal/types.js +1 -3
  13. package/dist/Contacts/GroupsSelect/GroupCreation.js +4 -6
  14. package/dist/Contacts/GroupsSelect/SelectBox/Control.js +4 -6
  15. package/dist/Contacts/Header/ImportDropdown.js +6 -10
  16. package/dist/Contacts/Header/index.js +4 -6
  17. package/dist/ContactsListModal/AddContact/AddContactContent.js +4 -6
  18. package/dist/ContactsListModal/ContactsListModal.js +6 -8
  19. package/dist/ContactsListModal/MobileHeader.js +4 -6
  20. package/dist/Dialogs/AuthentificationDialog/index.js +3 -3
  21. package/dist/FilePicker/FilePickerBodyItem.js +4 -8
  22. package/dist/FilePicker/FilePickerBreadcrumb.js +4 -6
  23. package/dist/FilePicker/FilePickerHeader.js +4 -6
  24. package/dist/ListItem/ExpandedAttributes/ExpandedAttribute.js +4 -6
  25. package/dist/ListItem/ListItemBase/index.js +4 -6
  26. package/dist/ListItem/ListItemContact/index.js +5 -7
  27. package/dist/ListItem/ListItemFile/ItemIcon.js +4 -8
  28. package/dist/ListItem/ListItemFile/index.js +3 -3
  29. package/dist/Paywall/Paywall.js +4 -6
  30. package/dist/Qualification/QualificationGrid/index.js +12 -30
  31. package/dist/Qualification/QualificationIcon/index.js +35 -99
  32. package/dist/Qualification/QualificationItem/index.js +6 -13
  33. package/dist/Qualification/QualificationModal/helpers.js +4 -6
  34. package/dist/SquareAppIcon/index.js +10 -20
  35. package/dist/Storage/StorageButton.js +4 -6
  36. package/dist/Storage/StorageProgress.js +4 -6
  37. package/dist/providers/CozyTheme/CozyThemeWithQuery.js +3 -1
  38. package/dist/src/AppIcon/index.d.ts +9 -10
  39. package/dist/src/Contacts/AddModal/ContactAddressDialog/index.d.ts +1 -1
  40. package/dist/src/Contacts/AddModal/types.d.ts +1 -1
  41. package/jest.config.js +2 -1
  42. package/package.json +4 -2
  43. package/src/AppIcon/index.jsx +7 -4
  44. package/src/AppIcon/index.spec.js +9 -7
  45. package/src/AppSections/components/DropdownFilter.jsx +2 -3
  46. package/src/AppTile/index.jsx +2 -3
  47. package/src/CipherIcon/index.jsx +2 -3
  48. package/src/CollectionField/index.jsx +3 -7
  49. package/src/Contacts/AddModal/ContactForm/FieldInputAccordion.jsx +2 -4
  50. package/src/Contacts/AddModal/ContactForm/FieldInputArray.jsx +2 -3
  51. package/src/Contacts/AddModal/ContactForm/FieldInputLayout.jsx +1 -1
  52. package/src/Contacts/AddModal/ContactForm/RemoveButton.jsx +2 -3
  53. package/src/Contacts/AddModal/ContactForm/fieldsConfig.jsx +25 -23
  54. package/src/Contacts/AddModal/types.js +5 -3
  55. package/src/Contacts/GroupsSelect/GroupCreation.jsx +2 -3
  56. package/src/Contacts/GroupsSelect/SelectBox/Control.jsx +2 -3
  57. package/src/Contacts/Header/ImportDropdown.jsx +3 -8
  58. package/src/Contacts/Header/index.jsx +2 -3
  59. package/src/ContactsListModal/AddContact/AddContactContent.jsx +2 -3
  60. package/src/ContactsListModal/ContactsListModal.jsx +3 -4
  61. package/src/ContactsListModal/MobileHeader.jsx +2 -3
  62. package/src/Dialogs/AuthentificationDialog/index.jsx +2 -2
  63. package/src/FilePicker/FilePickerBodyItem.jsx +1 -3
  64. package/src/FilePicker/FilePickerBreadcrumb.jsx +2 -3
  65. package/src/FilePicker/FilePickerHeader.jsx +1 -2
  66. package/src/ListItem/ExpandedAttributes/ExpandedAttribute.jsx +2 -3
  67. package/src/ListItem/ListItemBase/index.jsx +2 -3
  68. package/src/ListItem/ListItemContact/index.jsx +3 -4
  69. package/src/ListItem/ListItemFile/ItemIcon.jsx +2 -4
  70. package/src/ListItem/ListItemFile/index.jsx +2 -2
  71. package/src/Paywall/Paywall.jsx +2 -3
  72. package/src/Qualification/QualificationGrid/index.jsx +22 -20
  73. package/src/Qualification/QualificationIcon/index.jsx +67 -65
  74. package/src/Qualification/QualificationItem/index.jsx +8 -4
  75. package/src/Qualification/QualificationModal/helpers.js +2 -3
  76. package/src/SquareAppIcon/SquareAppIcon.spec.js +3 -4
  77. package/src/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap +36 -87
  78. package/src/SquareAppIcon/index.jsx +12 -10
  79. package/src/Storage/StorageButton.jsx +2 -3
  80. package/src/Storage/StorageProgress.jsx +2 -3
  81. package/src/providers/CozyTheme/CozyThemeWithQuery.jsx +3 -1
  82. package/test/__mocks__/twake-icons.js +23 -0
@@ -1,17 +1,19 @@
1
+ import {
2
+ Icon,
3
+ Bottom,
4
+ Calendar,
5
+ Cloud,
6
+ Comment,
7
+ Company,
8
+ Email,
9
+ Location,
10
+ Matrix,
11
+ People,
12
+ Relationship,
13
+ Telephone
14
+ } from '@linagora/twake-icons'
1
15
  import React from 'react'
2
16
 
3
- import Icon from 'cozy-ui/transpiled/react/Icon'
4
- import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom'
5
- import CalendarIcon from 'cozy-ui/transpiled/react/Icons/Calendar'
6
- import CloudIcon from 'cozy-ui/transpiled/react/Icons/Cloud'
7
- import CommentIcon from 'cozy-ui/transpiled/react/Icons/Comment'
8
- import CompanyIcon from 'cozy-ui/transpiled/react/Icons/Company'
9
- import EmailIcon from 'cozy-ui/transpiled/react/Icons/Email'
10
- import LocationIcon from 'cozy-ui/transpiled/react/Icons/Location'
11
- import MatrixIcon from 'cozy-ui/transpiled/react/Icons/Matrix'
12
- import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People'
13
- import RelationshipIcon from 'cozy-ui/transpiled/react/Icons/Relationship'
14
- import TelephoneIcon from 'cozy-ui/transpiled/react/Icons/Telephone'
15
17
  import InputAdornment from 'cozy-ui/transpiled/react/InputAdornment'
16
18
 
17
19
  import TextFieldPhone from './TextFieldPhone/index'
@@ -22,7 +24,7 @@ import TextFieldPhone from './TextFieldPhone/index'
22
24
  export const fields = [
23
25
  {
24
26
  name: 'gender',
25
- icon: PeopleIcon,
27
+ icon: People,
26
28
  select: true,
27
29
  options: [
28
30
  {
@@ -62,7 +64,7 @@ export const fields = [
62
64
  },
63
65
  {
64
66
  name: 'company',
65
- icon: CompanyIcon,
67
+ icon: Company,
66
68
  type: 'text',
67
69
  layout: 'accordion',
68
70
  subFields: [
@@ -75,7 +77,7 @@ export const fields = [
75
77
  },
76
78
  {
77
79
  name: 'phone',
78
- icon: TelephoneIcon,
80
+ icon: Telephone,
79
81
  type: 'tel',
80
82
  layout: 'array',
81
83
  component: TextFieldPhone,
@@ -119,7 +121,7 @@ export const fields = [
119
121
  },
120
122
  {
121
123
  name: 'email',
122
- icon: EmailIcon,
124
+ icon: Email,
123
125
  type: 'email',
124
126
  layout: 'array',
125
127
  label: {
@@ -146,12 +148,12 @@ export const fields = [
146
148
  },
147
149
  {
148
150
  name: 'matrix',
149
- icon: MatrixIcon,
151
+ icon: Matrix,
150
152
  type: 'text'
151
153
  },
152
154
  {
153
155
  name: 'address',
154
- icon: LocationIcon,
156
+ icon: Location,
155
157
  type: 'text',
156
158
  layout: 'array',
157
159
  InputProps: {
@@ -243,13 +245,13 @@ export const fields = [
243
245
  },
244
246
  {
245
247
  name: 'note',
246
- icon: CommentIcon,
248
+ icon: Comment,
247
249
  type: 'text',
248
250
  multiline: true
249
251
  },
250
252
  {
251
253
  name: 'cozy',
252
- icon: CloudIcon,
254
+ icon: Cloud,
253
255
  type: 'url',
254
256
  isSecondary: true,
255
257
  label: {
@@ -276,7 +278,7 @@ export const fields = [
276
278
  },
277
279
  {
278
280
  name: 'birthday',
279
- icon: CalendarIcon,
281
+ icon: Calendar,
280
282
  type: 'date',
281
283
  isSecondary: true,
282
284
  InputLabelProps: { shrink: true }
@@ -289,14 +291,14 @@ export const fields = [
289
291
  },
290
292
  {
291
293
  name: 'relatedContact',
292
- icon: RelationshipIcon,
294
+ icon: Relationship,
293
295
  layout: 'array',
294
296
  isSecondary: true,
295
297
  InputProps: {
296
298
  readOnly: true,
297
299
  endAdornment: (
298
300
  <InputAdornment position="end">
299
- <Icon icon={BottomIcon} color="var(--iconTextColor)" />
301
+ <Icon icon={Bottom} color="var(--iconTextColor)" />
300
302
  </InputAdornment>
301
303
  )
302
304
  },
@@ -1,7 +1,5 @@
1
1
  import PropTypes from 'prop-types'
2
2
 
3
- import { iconPropType } from 'cozy-ui/transpiled/react/Icon'
4
-
5
3
  /**
6
4
  * @typedef {'text'|'tel'|'email'|'button'|'url'|'date'} FieldType
7
5
  */
@@ -64,7 +62,11 @@ export const labelPropTypes = PropTypes.shape({
64
62
 
65
63
  export const fieldInputAttributesTypes = PropTypes.shape({
66
64
  name: PropTypes.string,
67
- icon: iconPropType,
65
+ icon: PropTypes.oneOfType([
66
+ PropTypes.string,
67
+ PropTypes.object,
68
+ PropTypes.func
69
+ ]),
68
70
  type: PropTypes.string,
69
71
  label: labelPropTypes,
70
72
  layout: PropTypes.string,
@@ -1,8 +1,7 @@
1
+ import { Icon, Plus } from '@linagora/twake-icons'
1
2
  import classNames from 'classnames'
2
3
  import React, { Component } from 'react'
3
4
 
4
- import Icon from 'cozy-ui/transpiled/react/Icon'
5
- import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus'
6
5
  import Input from 'cozy-ui/transpiled/react/legacy/Input'
7
6
  import { translate } from 'twake-i18n'
8
7
 
@@ -66,7 +65,7 @@ class GroupCreation extends Component {
66
65
  onClick={this.handleClick}
67
66
  className={styles['contact-group-create-div-icon']}
68
67
  >
69
- <Icon icon={PlusIcon} />
68
+ <Icon icon={Plus} />
70
69
  <span className="u-pl-half">
71
70
  {t('Contacts.GroupsSelect.create')}
72
71
  </span>
@@ -1,9 +1,8 @@
1
+ import { Icon, BottomSelect } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React from 'react'
3
4
 
4
5
  import Button from 'cozy-ui/transpiled/react/Buttons'
5
- import Icon from 'cozy-ui/transpiled/react/Icon'
6
- import BottomSelectIcon from 'cozy-ui/transpiled/react/Icons/BottomSelect'
7
6
  import { useI18n, useExtendI18n } from 'twake-i18n'
8
7
 
9
8
  import { locales } from '../locales'
@@ -24,7 +23,7 @@ const Control = ({
24
23
  onClick={onControlClicked}
25
24
  onTouchStart={onControlClicked}
26
25
  label={t('Contacts.GroupsSelect.manage')}
27
- startIcon={<Icon icon={BottomSelectIcon} width="12" />}
26
+ startIcon={<Icon icon={BottomSelect} width="12" />}
28
27
  />
29
28
  </div>
30
29
  )
@@ -1,11 +1,9 @@
1
+ import { Icon, Bottom, Team } from '@linagora/twake-icons'
1
2
  import React, { useState, useRef } from 'react'
2
3
 
3
4
  import { useClient, generateWebLink } from 'cozy-client'
4
5
  import { CONTACTS_DOCTYPE } from 'cozy-client/dist/models/contact'
5
6
  import Button from 'cozy-ui/transpiled/react/Buttons'
6
- import Icon from 'cozy-ui/transpiled/react/Icon'
7
- import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom'
8
- import TeamIcon from 'cozy-ui/transpiled/react/Icons/Team'
9
7
  import Link from 'cozy-ui/transpiled/react/Link'
10
8
  import ActionMenu, {
11
9
  ActionMenuItem
@@ -37,7 +35,7 @@ const ImportDropdown = ({ onContactImport }) => {
37
35
  ref={anchorRef}
38
36
  variant="secondary"
39
37
  label={t('Contacts.Header.import.title')}
40
- endIcon={<Icon icon={BottomIcon} />}
38
+ endIcon={<Icon icon={Bottom} />}
41
39
  fullWidth
42
40
  onClick={() => setShowMenu(v => !v)}
43
41
  />
@@ -48,10 +46,7 @@ const ImportDropdown = ({ onContactImport }) => {
48
46
  popperOptions={{ placement: 'bottom-end' }}
49
47
  onClose={() => setShowMenu(false)}
50
48
  >
51
- <ActionMenuItem
52
- left={<Icon icon={TeamIcon} />}
53
- onClick={onContactImport}
54
- >
49
+ <ActionMenuItem left={<Icon icon={Team} />} onClick={onContactImport}>
55
50
  {t('Contacts.Header.import.vcard')}
56
51
  </ActionMenuItem>
57
52
 
@@ -1,10 +1,9 @@
1
+ import { Icon, PersonAdd } from '@linagora/twake-icons'
1
2
  import cx from 'classnames'
2
3
  import PropTypes from 'prop-types'
3
4
  import React from 'react'
4
5
 
5
6
  import Button from 'cozy-ui/transpiled/react/Buttons'
6
- import Icon from 'cozy-ui/transpiled/react/Icon'
7
- import PersonAddIcon from 'cozy-ui/transpiled/react/Icons/PersonAdd'
8
7
  import { useBreakpoints } from 'cozy-ui/transpiled/react/providers/Breakpoints'
9
8
  import { useI18n, useExtendI18n } from 'twake-i18n'
10
9
 
@@ -37,7 +36,7 @@ const Header = ({
37
36
  <Button
38
37
  className="u-mr-half"
39
38
  variant="ghost"
40
- startIcon={<Icon icon={PersonAddIcon} />}
39
+ startIcon={<Icon icon={PersonAdd} />}
41
40
  label={t('Contacts.Header.create')}
42
41
  fullWidth
43
42
  onClick={onContactCreate}
@@ -1,8 +1,7 @@
1
+ import { Icon, People } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React from 'react'
3
4
 
4
- import Icon from 'cozy-ui/transpiled/react/Icon'
5
- import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People'
6
5
  import TextField from 'cozy-ui/transpiled/react/TextField'
7
6
  import Typography from 'cozy-ui/transpiled/react/Typography'
8
7
  import { Media, Img, Bd } from 'cozy-ui/transpiled/react/deprecated/Media'
@@ -21,7 +20,7 @@ const AddContactContent = ({ t, setContactValues }) => {
21
20
  <Typography variant="h5">{t('coordinates')}</Typography>
22
21
  <Media>
23
22
  <Img className={styles.icon}>
24
- <Icon icon={PeopleIcon} />
23
+ <Icon icon={People} />
25
24
  </Img>
26
25
  <Bd className="u-mr-1">
27
26
  <TextField
@@ -1,3 +1,4 @@
1
+ import { Icon, Plus } from '@linagora/twake-icons'
1
2
  import cx from 'classnames'
2
3
  import PropTypes from 'prop-types'
3
4
  import React, { useState } from 'react'
@@ -10,8 +11,6 @@ import {
10
11
  useCozyDialog
11
12
  } from 'cozy-ui/transpiled/react/CozyDialogs'
12
13
  import { DialogTitle, DialogContent } from 'cozy-ui/transpiled/react/Dialog'
13
- import Icon from 'cozy-ui/transpiled/react/Icon'
14
- import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus'
15
14
  import TextField from 'cozy-ui/transpiled/react/TextField'
16
15
  import useEventListener from 'cozy-ui/transpiled/react/hooks/useEventListener'
17
16
  import useRealtime from 'cozy-ui/transpiled/react/hooks/useRealtime'
@@ -97,9 +96,9 @@ const ContactsListModal = ({
97
96
  className={isMobile && 'u-mt-1'}
98
97
  variant="secondary"
99
98
  theme="secondary"
100
- label={selfAddContactLabel || <Icon icon={PlusIcon} />}
99
+ label={selfAddContactLabel || <Icon icon={Plus} />}
101
100
  {...(selfAddContactLabel && {
102
- startIcon: <Icon icon={PlusIcon} />
101
+ startIcon: <Icon icon={Plus} />
103
102
  })}
104
103
  onClick={setShowAddDialog}
105
104
  />
@@ -1,9 +1,8 @@
1
+ import { Icon, Previous } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React from 'react'
3
4
 
4
- import Icon from 'cozy-ui/transpiled/react/Icon'
5
5
  import IconButton from 'cozy-ui/transpiled/react/IconButton'
6
- import PreviousIcon from 'cozy-ui/transpiled/react/Icons/Previous'
7
6
  import Input from 'cozy-ui/transpiled/react/Input'
8
7
  import Paper from 'cozy-ui/transpiled/react/Paper'
9
8
 
@@ -20,7 +19,7 @@ const MobileHeader = ({ filter, placeholder, onChange, onDismiss }) => {
20
19
  style={barStyle}
21
20
  >
22
21
  <IconButton className="u-mr-half" onClick={onDismiss} size="medium">
23
- <Icon icon={PreviousIcon} />
22
+ <Icon icon={Previous} />
24
23
  </IconButton>
25
24
  <Input
26
25
  type="text"
@@ -1,10 +1,10 @@
1
+ import { CozyAuthentification } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React, { useMemo, useState } from 'react'
3
4
 
4
5
  import { useClient } from 'cozy-client'
5
6
  import Buttons from 'cozy-ui/transpiled/react/Buttons'
6
7
  import PermissionDialog from 'cozy-ui/transpiled/react/CozyDialogs/PermissionDialog'
7
- import CozyAuthentificationIcon from 'cozy-ui/transpiled/react/Icons/CozyAuthentification'
8
8
  import PasswordField from 'cozy-ui/transpiled/react/PasswordField'
9
9
  import Typography from 'cozy-ui/transpiled/react/Typography'
10
10
  import { useI18n } from 'twake-i18n'
@@ -49,7 +49,7 @@ const AuthentificationDialog = ({
49
49
  open
50
50
  onClose={onClose}
51
51
  title={t(`authentification-dialog.${isOIDC ? 'title-oidc' : 'title'}`)}
52
- icon={CozyAuthentificationIcon}
52
+ icon={CozyAuthentification}
53
53
  content={
54
54
  <form onSubmit={handleSubmit}>
55
55
  <Typography variant="body1" className="u-ta-center">
@@ -1,3 +1,4 @@
1
+ import { Icon, FileTypeFolder, FileTypeText } from '@linagora/twake-icons'
1
2
  import cx from 'classnames'
2
3
  import filesize from 'filesize'
3
4
  import PropTypes from 'prop-types'
@@ -6,9 +7,6 @@ import React from 'react'
6
7
  import { models } from 'cozy-client'
7
8
  import Checkbox from 'cozy-ui/transpiled/react/Checkbox'
8
9
  import Divider from 'cozy-ui/transpiled/react/Divider'
9
- import Icon from 'cozy-ui/transpiled/react/Icon'
10
- import FileTypeFolder from 'cozy-ui/transpiled/react/Icons/FileTypeFolder'
11
- import FileTypeText from 'cozy-ui/transpiled/react/Icons/FileTypeText'
12
10
  import ListItem from 'cozy-ui/transpiled/react/ListItem'
13
11
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
14
12
  import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
@@ -1,8 +1,7 @@
1
+ import { Icon, Right } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React, { Fragment, useCallback, memo } from 'react'
3
4
 
4
- import Icon from 'cozy-ui/transpiled/react/Icon'
5
- import RightIcon from 'cozy-ui/transpiled/react/Icons/Right'
6
5
  import Typography from 'cozy-ui/transpiled/react/Typography'
7
6
  import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints'
8
7
 
@@ -33,7 +32,7 @@ const FilePickerBreadcrumb = ({ path, onBreadcrumbClick }) => {
33
32
  {folder.name}
34
33
  </span>
35
34
  <Icon
36
- icon={RightIcon}
35
+ icon={Right}
37
36
  className={styles['filePickerBreadcrumb-icon']}
38
37
  />
39
38
  </Fragment>
@@ -1,12 +1,11 @@
1
+ import { Icon, Previous } from '@linagora/twake-icons'
1
2
  import get from 'lodash/get'
2
3
  import uniqBy from 'lodash/uniqBy'
3
4
  import PropTypes from 'prop-types'
4
5
  import React, { useCallback, memo } from 'react'
5
6
 
6
7
  import { useQuery, hasQueryBeenLoaded } from 'cozy-client'
7
- import Icon from 'cozy-ui/transpiled/react/Icon'
8
8
  import IconButton from 'cozy-ui/transpiled/react/IconButton'
9
- import Previous from 'cozy-ui/transpiled/react/Icons/Previous'
10
9
  import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints'
11
10
 
12
11
  import { ROOT_DIR_ID } from '.'
@@ -1,8 +1,7 @@
1
+ import { Icon, Copy } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React from 'react'
3
4
 
4
- import Icon from 'cozy-ui/transpiled/react/Icon'
5
- import CopyIcon from 'cozy-ui/transpiled/react/Icons/Copy'
6
5
  import ListItem from 'cozy-ui/transpiled/react/ListItem'
7
6
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
8
7
  import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
@@ -21,7 +20,7 @@ const ExpandedAttribute = ({ label, value, setAlertProps }) => {
21
20
  onClick={copyToClipboard({ value, setAlertProps, t })}
22
21
  >
23
22
  <ListItemIcon>
24
- <Icon icon={CopyIcon} />
23
+ <Icon icon={Copy} />
25
24
  </ListItemIcon>
26
25
  <ListItemText
27
26
  primary={<Typography variant="caption">{label}</Typography>}
@@ -1,12 +1,11 @@
1
+ import { Icon, Dots } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React, { useState, useRef } from 'react'
3
4
 
4
5
  import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu'
5
6
  import ActionsMenuMobileHeader from 'cozy-ui/transpiled/react/ActionsMenu/ActionsMenuMobileHeader'
6
7
  import Checkbox from 'cozy-ui/transpiled/react/Checkbox'
7
- import Icon from 'cozy-ui/transpiled/react/Icon'
8
8
  import IconButton from 'cozy-ui/transpiled/react/IconButton'
9
- import DotsIcon from 'cozy-ui/transpiled/react/Icons/Dots'
10
9
  import ListItem from 'cozy-ui/transpiled/react/ListItem'
11
10
  import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
12
11
  import ListItemSecondaryAction from 'cozy-ui/transpiled/react/ListItemSecondaryAction'
@@ -58,7 +57,7 @@ const ListItemBase = ({
58
57
  {actions && !isSelectActive && (
59
58
  <ListItemSecondaryAction>
60
59
  <IconButton ref={anchorRef} onClick={toggleMenu}>
61
- <Icon icon={DotsIcon} />
60
+ <Icon icon={Dots} />
62
61
  </IconButton>
63
62
  </ListItemSecondaryAction>
64
63
  )}
@@ -1,10 +1,9 @@
1
+ import { Icon, Contacts } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React from 'react'
3
4
 
4
5
  import { getDisplayName } from 'cozy-client/dist/models/contact'
5
6
  import Filename from 'cozy-ui/transpiled/react/Filename'
6
- import Icon from 'cozy-ui/transpiled/react/Icon'
7
- import ContactsIcon from 'cozy-ui/transpiled/react/Icons/Contacts'
8
7
 
9
8
  import useActions from './useActions'
10
9
  import ListItemBase from '../ListItemBase'
@@ -22,7 +21,7 @@ const ListItemContact = ({
22
21
  const defaultActions = useActions(contact)
23
22
  const primaryText = primary || getDisplayName(contact)
24
23
  const secondaryText = secondary || contact.email?.[0]?.address
25
- const itemIcon = icon || <Icon icon={ContactsIcon} width="32" height="32" />
24
+ const itemIcon = icon || <Icon icon={Contacts} width="32" height="32" />
26
25
 
27
26
  const itemActions = defaultActions.concat(actions)
28
27
 
@@ -34,7 +33,7 @@ const ListItemContact = ({
34
33
  icon={itemIcon}
35
34
  actions={itemActions}
36
35
  actionMenuComp={{
37
- Header: <Filename icon={ContactsIcon} filename={primaryText} />
36
+ Header: <Filename icon={Contacts} filename={primaryText} />
38
37
  }}
39
38
  selectProps={selectProps}
40
39
  expandedAttributesProps={expandedAttributesProps}
@@ -1,11 +1,9 @@
1
+ import { Icon, FileTypeNote, FileTypeText } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React from 'react'
3
4
 
4
5
  import { useClient } from 'cozy-client'
5
6
  import { isNote } from 'cozy-client/dist/models/file'
6
- import Icon from 'cozy-ui/transpiled/react/Icon'
7
- import FiletypeNoteIcon from 'cozy-ui/transpiled/react/Icons/FileTypeNote'
8
- import FiletypeTextIcon from 'cozy-ui/transpiled/react/Icons/FileTypeText'
9
7
  import Skeleton from 'cozy-ui/transpiled/react/Skeleton'
10
8
 
11
9
  import FileImageLoader from '../../FileImageLoader'
@@ -42,7 +40,7 @@ const ItemIcon = ({ icon, file }) => {
42
40
  }}
43
41
  renderFallback={() => (
44
42
  <div className="u-flex u-w-2 u-h-2 u-flex-items-center u-flex-justify-center">
45
- <Icon icon={isNote(file) ? FiletypeNoteIcon : FiletypeTextIcon} />
43
+ <Icon icon={isNote(file) ? FileTypeNote : FileTypeText} />
46
44
  </div>
47
45
  )}
48
46
  />
@@ -1,9 +1,9 @@
1
+ import { FileTypePdf } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React from 'react'
3
4
 
4
5
  import { splitFilename } from 'cozy-client/dist/models/file'
5
6
  import Filename from 'cozy-ui/transpiled/react/Filename'
6
- import FiletypePdfIcon from 'cozy-ui/transpiled/react/Icons/FileTypePdf'
7
7
 
8
8
  import ItemIcon from './ItemIcon'
9
9
  import PrimaryText from './PrimaryText'
@@ -35,7 +35,7 @@ const ListItemFile = ({
35
35
  actionMenuComp={{
36
36
  Header: (
37
37
  <Filename
38
- icon={FiletypePdfIcon}
38
+ icon={FileTypePdf}
39
39
  filename={filename}
40
40
  extension={extension}
41
41
  />
@@ -1,3 +1,4 @@
1
+ import { Icon, CozyUpgrade } from '@linagora/twake-icons'
1
2
  import PropTypes from 'prop-types'
2
3
  import React, { useEffect, useState } from 'react'
3
4
 
@@ -7,8 +8,6 @@ import { isFlagshipApp } from 'cozy-device-helper'
7
8
  import { useWebviewIntent } from 'cozy-intent'
8
9
  import Button from 'cozy-ui/transpiled/react/Buttons'
9
10
  import { IllustrationDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
10
- import Icon from 'cozy-ui/transpiled/react/Icon'
11
- import CozyUpgradeIcon from 'cozy-ui/transpiled/react/Icons/CozyUpgrade'
12
11
  import Markdown from 'cozy-ui/transpiled/react/Markdown'
13
12
  import Spinner from 'cozy-ui/transpiled/react/Spinner'
14
13
  import Typography from 'cozy-ui/transpiled/react/Typography'
@@ -77,7 +76,7 @@ const Paywall = ({
77
76
  actionsLayout="column"
78
77
  title={
79
78
  <div className="u-flex u-flex-column u-flex-items-center">
80
- <Icon icon={CozyUpgradeIcon} width={128} height={128} />
79
+ <Icon icon={CozyUpgrade} width={128} height={128} />
81
80
  <Typography variant="h3" className="u-mt-1">
82
81
  {t(`${variant}Paywall.${type}.title`)}
83
82
  </Typography>
@@ -1,17 +1,19 @@
1
+ import {
2
+ Bank,
3
+ Bill,
4
+ Car,
5
+ Chess,
6
+ Dots,
7
+ Heart,
8
+ Home,
9
+ People,
10
+ Team,
11
+ Work
12
+ } from '@linagora/twake-icons'
1
13
  import PropTypes from 'prop-types'
2
14
  import React, { Fragment, useState } from 'react'
3
15
 
4
16
  import Grid from 'cozy-ui/transpiled/react/Grid'
5
- import BankIcon from 'cozy-ui/transpiled/react/Icons/Bank'
6
- import BillIcon from 'cozy-ui/transpiled/react/Icons/Bill'
7
- import CarIcon from 'cozy-ui/transpiled/react/Icons/Car'
8
- import ChessIcon from 'cozy-ui/transpiled/react/Icons/Chess'
9
- import DotsIcon from 'cozy-ui/transpiled/react/Icons/Dots'
10
- import HeartIcon from 'cozy-ui/transpiled/react/Icons/Heart'
11
- import HomeIcon from 'cozy-ui/transpiled/react/Icons/Home'
12
- import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People'
13
- import TeamIcon from 'cozy-ui/transpiled/react/Icons/Team'
14
- import WorkIcon from 'cozy-ui/transpiled/react/Icons/Work'
15
17
  import { useI18n } from 'twake-i18n'
16
18
 
17
19
  import { getThemesList } from './helpers'
@@ -19,16 +21,16 @@ import QualificationItem from '../QualificationItem'
19
21
  import withLocales from './locales/withLocales'
20
22
 
21
23
  const IconByName = {
22
- people: PeopleIcon,
23
- team: TeamIcon,
24
- work: WorkIcon,
25
- heart: HeartIcon,
26
- home: HomeIcon,
27
- car: CarIcon,
28
- chess: ChessIcon,
29
- bank: BankIcon,
30
- bill: BillIcon,
31
- dots: DotsIcon
24
+ people: People,
25
+ team: Team,
26
+ work: Work,
27
+ heart: Heart,
28
+ home: Home,
29
+ car: Car,
30
+ chess: Chess,
31
+ bank: Bank,
32
+ bill: Bill,
33
+ dots: Dots
32
34
  }
33
35
 
34
36
  const QualificationGrid = ({ noUndefined, noOthers, noHealth, onClick }) => {