cozy-ui-plus 5.2.1 → 5.2.3
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 +8 -0
- package/dist/AppSections/Sections.js +2 -2
- package/dist/AppTile/index.js +2 -2
- package/dist/Contacts/AddModal/ContactAddressDialog/index.js +2 -2
- package/dist/Contacts/AddModal/ContactForm/FieldInputAccordion.js +2 -2
- package/dist/Contacts/AddModal/ContactForm/FieldInputArray.js +2 -2
- package/dist/Contacts/AddModal/ContactForm/FieldInputLayout.js +2 -2
- package/dist/Contacts/AddModal/ContactForm/TextFieldSelect.js +2 -2
- package/dist/Contacts/AddModal/ContactForm/helpers.js +0 -1
- package/dist/Contacts/AddModal/ContactForm/index.js +2 -2
- package/dist/Contacts/AddModal/CustomLabelDialog/index.js +2 -2
- package/dist/Contacts/AddModal/index.js +2 -2
- package/dist/Contacts/GroupsSelect/GroupCreation.js +2 -2
- package/dist/Contacts/GroupsSelect/SelectBox/Control.js +2 -2
- package/dist/Contacts/GroupsSelect/useGroupSelect.js +2 -2
- package/dist/Contacts/Header/GroupsSelection.js +2 -2
- package/dist/Contacts/Header/ImportDropdown.js +2 -2
- package/dist/Contacts/Header/index.js +2 -2
- package/dist/ContactsList/Contacts/ContactIdentity.js +2 -2
- package/dist/ContactsList/ContactsList.js +2 -2
- package/dist/ContactsListModal/ContactsListContent.js +2 -2
- package/dist/ContactsListModal/ContactsListModal.js +2 -2
- package/dist/FilePicker/FilePickerBodyItem.js +2 -2
- package/dist/FilePicker/FilePickerFooter.js +2 -2
- package/dist/FilePicker/docs/DemoProvider.js +2 -2
- package/dist/ListItem/ExpandedAttributes/ExpandedAttribute.js +2 -2
- package/dist/ListItem/ExpandedAttributes/index.js +2 -2
- package/dist/ListItem/ListItemBase/Renaming/RenameDialog.js +2 -2
- package/dist/ListItem/ListItemFile/ExpirationAnnotation.js +2 -2
- package/dist/ListItem/ListItemFile/SecondaryText.js +2 -2
- package/dist/Paywall/Paywall.js +2 -2
- package/dist/Qualification/QualificationGrid/index.js +2 -2
- package/dist/Qualification/QualificationModal/index.js +2 -2
- package/dist/SquareAppIcon/index.js +4 -2
- package/dist/Storage/StorageButton.js +2 -2
- package/dist/Storage/StorageProgress.js +2 -2
- package/dist/UploadQueue/Item.js +2 -2
- package/dist/UploadQueue/Pending.js +2 -2
- package/dist/UploadQueue/RemainingTime.js +2 -2
- package/dist/UploadQueue/index.js +2 -2
- package/dist/hooks/useClientErrors.js +1 -0
- package/package.json +4 -4
- package/src/AppIcon/index.spec.js +0 -1
- package/src/AppSections/Sections.jsx +1 -1
- package/src/AppSections/categories.spec.js +0 -2
- package/src/AppSections/components/AppsSection.spec.jsx +0 -2
- package/src/AppSections/index.spec.jsx +0 -2
- package/src/AppSections/search.spec.js +0 -2
- package/src/AppTile/AppTile.spec.jsx +1 -2
- package/src/AppTile/index.jsx +3 -3
- package/src/ContactPicker/index.jsx +1 -1
- package/src/Contacts/AddModal/ContactAddressDialog/index.jsx +1 -1
- package/src/Contacts/AddModal/ContactForm/FieldInput.jsx +1 -0
- package/src/Contacts/AddModal/ContactForm/FieldInputAccordion.jsx +1 -1
- package/src/Contacts/AddModal/ContactForm/FieldInputArray.jsx +1 -1
- package/src/Contacts/AddModal/ContactForm/FieldInputLayout.jsx +1 -1
- package/src/Contacts/AddModal/ContactForm/FieldInputWrapper.jsx +6 -6
- package/src/Contacts/AddModal/ContactForm/TextFieldCustomLabelSelect.jsx +1 -0
- package/src/Contacts/AddModal/ContactForm/TextFieldSelect.jsx +1 -1
- package/src/Contacts/AddModal/ContactForm/contactToFormValues.spec.js +0 -1
- package/src/Contacts/AddModal/ContactForm/helpers.js +1 -1
- package/src/Contacts/AddModal/ContactForm/index.jsx +1 -1
- package/src/Contacts/AddModal/CustomLabelDialog/index.jsx +1 -1
- package/src/Contacts/AddModal/index.jsx +1 -1
- package/src/Contacts/GroupsSelect/GroupCreation.jsx +1 -1
- package/src/Contacts/GroupsSelect/GroupsSelectProvider.jsx +1 -0
- package/src/Contacts/GroupsSelect/SelectBox/Control.jsx +1 -1
- package/src/Contacts/GroupsSelect/useGroupSelect.jsx +1 -1
- package/src/Contacts/Header/GroupsSelection.jsx +1 -1
- package/src/Contacts/Header/ImportDropdown.jsx +1 -1
- package/src/Contacts/Header/index.jsx +1 -1
- package/src/ContactsList/Contacts/ContactIdentity.jsx +1 -1
- package/src/ContactsList/ContactsList.jsx +1 -1
- package/src/ContactsListModal/ContactsListContent.jsx +1 -1
- package/src/ContactsListModal/ContactsListModal.jsx +1 -1
- package/src/FilePicker/FilePickerBodyItem.jsx +1 -1
- package/src/FilePicker/FilePickerFooter.jsx +1 -1
- package/src/FilePicker/docs/DemoProvider.jsx +1 -1
- package/src/ListItem/ExpandedAttributes/ExpandedAttribute.jsx +1 -1
- package/src/ListItem/ExpandedAttributes/helpers.js +1 -1
- package/src/ListItem/ExpandedAttributes/index.jsx +1 -1
- package/src/ListItem/ListItemBase/Renaming/RenameDialog.jsx +1 -1
- package/src/ListItem/ListItemFile/ExpirationAnnotation.jsx +1 -1
- package/src/ListItem/ListItemFile/SecondaryText.jsx +1 -1
- package/src/Paywall/Paywall.jsx +3 -3
- package/src/Qualification/QualificationGrid/index.jsx +1 -1
- package/src/Qualification/QualificationIcon/index.jsx +2 -2
- package/src/Qualification/QualificationModal/index.jsx +1 -1
- package/src/SquareAppIcon/SquareAppIcon.spec.js +0 -2
- package/src/SquareAppIcon/index.jsx +2 -0
- package/src/Storage/StorageButton.jsx +1 -1
- package/src/Storage/StorageProgress.jsx +1 -1
- package/src/UploadQueue/Item.jsx +1 -1
- package/src/UploadQueue/Pending.jsx +1 -1
- package/src/UploadQueue/RemainingTime.jsx +1 -1
- package/src/UploadQueue/index.jsx +1 -1
- package/src/hooks/useClientErrors.jsx +1 -0
package/src/Paywall/Paywall.jsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React, { useEffect, useState } from 'react'
|
|
3
|
-
import { useI18n } from 'twake-i18n'
|
|
4
3
|
|
|
5
4
|
import { useInstanceInfo } from 'cozy-client'
|
|
6
5
|
import { buildPremiumLink } from 'cozy-client/dist/models/instance'
|
|
@@ -13,6 +12,7 @@ import CozyUpgradeIcon from 'cozy-ui/transpiled/react/Icons/CozyUpgrade'
|
|
|
13
12
|
import Markdown from 'cozy-ui/transpiled/react/Markdown'
|
|
14
13
|
import Spinner from 'cozy-ui/transpiled/react/Spinner'
|
|
15
14
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
15
|
+
import { useI18n } from 'twake-i18n'
|
|
16
16
|
|
|
17
17
|
import { makeType } from './helpers'
|
|
18
18
|
import withPaywallLocales from './locales/withPaywallLocales'
|
|
@@ -90,8 +90,8 @@ const Paywall = ({
|
|
|
90
90
|
isFlagshipAppIapAvailable === null
|
|
91
91
|
? t(`action.loading`)
|
|
92
92
|
: canOpenPremiumLink
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
? t(`${variant}Paywall.${type}.action`)
|
|
94
|
+
: t(`action.withoutIAP`)
|
|
95
95
|
}
|
|
96
96
|
busy={isFlagshipAppIapAvailable === null}
|
|
97
97
|
/>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React, { Fragment, useState } from 'react'
|
|
3
|
-
import { useI18n } from 'twake-i18n'
|
|
4
3
|
|
|
5
4
|
import Grid from 'cozy-ui/transpiled/react/Grid'
|
|
6
5
|
import BankIcon from 'cozy-ui/transpiled/react/Icons/Bank'
|
|
@@ -13,6 +12,7 @@ import HomeIcon from 'cozy-ui/transpiled/react/Icons/Home'
|
|
|
13
12
|
import PeopleIcon from 'cozy-ui/transpiled/react/Icons/People'
|
|
14
13
|
import TeamIcon from 'cozy-ui/transpiled/react/Icons/Team'
|
|
15
14
|
import WorkIcon from 'cozy-ui/transpiled/react/Icons/Work'
|
|
15
|
+
import { useI18n } from 'twake-i18n'
|
|
16
16
|
|
|
17
17
|
import { getThemesList } from './helpers'
|
|
18
18
|
import QualificationItem from '../QualificationItem'
|
|
@@ -88,8 +88,8 @@ const QualificationIcon = ({ theme, qualification, ...props }) => {
|
|
|
88
88
|
const _Icon = qualification
|
|
89
89
|
? IconByLabel[getIconByLabel(qualification)]
|
|
90
90
|
: theme
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
? IconByLabel[themeIconByLabel[theme]]
|
|
92
|
+
: null
|
|
93
93
|
|
|
94
94
|
return <Icon icon={_Icon} color="#E049BF" size={16} {...props} />
|
|
95
95
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React, { useMemo } from 'react'
|
|
3
|
-
import { useI18n, useExtendI18n } from 'twake-i18n'
|
|
4
3
|
|
|
5
4
|
import { useClient } from 'cozy-client'
|
|
6
5
|
import { isSupportedQualification } from 'cozy-client/dist/models/document/qualification'
|
|
7
6
|
import NestedSelectResponsive from 'cozy-ui/transpiled/react/NestedSelect/NestedSelectResponsive'
|
|
7
|
+
import { useI18n, useExtendI18n } from 'twake-i18n'
|
|
8
8
|
|
|
9
9
|
import { makeOptions, makeSearchOptions } from './helpers'
|
|
10
10
|
import { locales } from './locales'
|
|
@@ -120,9 +120,11 @@ export const SquareAppIcon = ({
|
|
|
120
120
|
useEffect(() => {
|
|
121
121
|
const curr = prevVariant.current
|
|
122
122
|
|
|
123
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
123
124
|
if (curr === 'loading' && variant === 'error') setAnimationState('failed')
|
|
124
125
|
|
|
125
126
|
if (curr === 'loading' && (variant === 'default' || variant === undefined))
|
|
127
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
126
128
|
setAnimationState('success')
|
|
127
129
|
|
|
128
130
|
prevVariant.current = variant
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import cx from 'classnames'
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import { useI18n, useExtendI18n } from 'twake-i18n'
|
|
4
3
|
|
|
5
4
|
import { useInstanceInfo } from 'cozy-client'
|
|
6
5
|
import { buildPremiumLink } from 'cozy-client/dist/models/instance'
|
|
7
6
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
8
7
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
9
8
|
import TwakeWorkplaceIcon from 'cozy-ui/transpiled/react/Icons/TwakeWorkplace'
|
|
9
|
+
import { useI18n, useExtendI18n } from 'twake-i18n'
|
|
10
10
|
|
|
11
11
|
import { locales } from './locales'
|
|
12
12
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { useI18n, useExtendI18n } from 'twake-i18n'
|
|
3
2
|
|
|
4
3
|
import { useInstanceInfo } from 'cozy-client'
|
|
5
4
|
import { makeDiskInfos } from 'cozy-client/dist/models/instance'
|
|
@@ -7,6 +6,7 @@ import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
|
7
6
|
import CloudIcon from 'cozy-ui/transpiled/react/Icons/Cloud'
|
|
8
7
|
import LinearProgress from 'cozy-ui/transpiled/react/LinearProgress'
|
|
9
8
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
9
|
+
import { useI18n, useExtendI18n } from 'twake-i18n'
|
|
10
10
|
|
|
11
11
|
import { locales } from './locales'
|
|
12
12
|
|
package/src/UploadQueue/Item.jsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import cx from 'classnames'
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import { translate } from 'twake-i18n'
|
|
4
3
|
|
|
5
4
|
import { splitFilename } from 'cozy-client/dist/models/file'
|
|
6
5
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
@@ -9,6 +8,7 @@ import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
|
9
8
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
10
9
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
11
10
|
import { Img } from 'cozy-ui/transpiled/react/deprecated/Media'
|
|
11
|
+
import { translate } from 'twake-i18n'
|
|
12
12
|
|
|
13
13
|
import FileUploadProgress from './FileUploadProgress'
|
|
14
14
|
import Pending from './Pending'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { translate } from 'twake-i18n'
|
|
3
2
|
|
|
4
3
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
4
|
+
import { translate } from 'twake-i18n'
|
|
5
5
|
|
|
6
6
|
const Pending = translate()(props => (
|
|
7
7
|
<Typography variant="subtitle1" color="primary">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import cx from 'classnames'
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import { useI18n } from 'twake-i18n'
|
|
4
3
|
|
|
5
4
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
5
|
+
import { useI18n } from 'twake-i18n'
|
|
6
6
|
|
|
7
7
|
import { numberOfReferencesForPluralForm } from './helpers'
|
|
8
8
|
import { formatRemainingTime } from './index'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import cx from 'classnames'
|
|
2
2
|
import React, { Component } from 'react'
|
|
3
|
-
import { formatLocallyDistanceToNow, withLocales } from 'twake-i18n'
|
|
4
3
|
|
|
5
4
|
import LinearProgress from 'cozy-ui/transpiled/react/LinearProgress'
|
|
6
5
|
import List from 'cozy-ui/transpiled/react/List'
|
|
7
6
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
8
7
|
import Button from 'cozy-ui/transpiled/react/deprecated/Button'
|
|
9
8
|
import { withStyles } from 'cozy-ui/transpiled/react/styles'
|
|
9
|
+
import { formatLocallyDistanceToNow, withLocales } from 'twake-i18n'
|
|
10
10
|
|
|
11
11
|
import Item from './Item'
|
|
12
12
|
import localeEn from './locales/en.json'
|
|
@@ -135,6 +135,7 @@ export default function useClientErrors({ handleExceptions = true } = {}) {
|
|
|
135
135
|
[errorStack, setErrorStack]
|
|
136
136
|
)
|
|
137
137
|
// @ts-ignore
|
|
138
|
+
// eslint-disable-next-line react-hooks/immutability
|
|
138
139
|
ClientErrors.displayName = 'ClientErrors'
|
|
139
140
|
return { ClientErrors }
|
|
140
141
|
}
|