-
+
)
}
diff --git a/react/ContextHeader/index.jsx b/react/ContextHeader/index.jsx
index 25a216ff0a..6273551093 100644
--- a/react/ContextHeader/index.jsx
+++ b/react/ContextHeader/index.jsx
@@ -7,6 +7,8 @@ import styles from './styles.styl'
import palette from '../palette'
import cx from 'classnames'
+import CrossIcon from 'cozy-ui/transpiled/react/Icons/Cross'
+
const ContextHeader = ({ icon, title, text, onClose, className }) => {
return (
@@ -24,7 +26,7 @@ const ContextHeader = ({ icon, title, text, onClose, className }) => {
type="button"
>
{
return (
)
diff --git a/react/CozyDialogs/DialogCloseButton.jsx b/react/CozyDialogs/DialogCloseButton.jsx
index 8c90c1c033..9adecc7da5 100644
--- a/react/CozyDialogs/DialogCloseButton.jsx
+++ b/react/CozyDialogs/DialogCloseButton.jsx
@@ -5,6 +5,8 @@ import IconButton from 'cozy-ui/transpiled/react/IconButton'
import Icon from 'cozy-ui/transpiled/react/Icon'
import styles from './styles.styl'
+import CrossMediumIcon from 'cozy-ui/transpiled/react/Icons/CrossMedium'
+
const CloseButton = ({ onClick, ...props }) => {
return (
{
className={styles.DialogCloseButton}
{...props}
>
-
+
)
}
diff --git a/react/DateMonthPicker/index.jsx b/react/DateMonthPicker/index.jsx
index e0d47ad0ea..698e7114d1 100644
--- a/react/DateMonthPicker/index.jsx
+++ b/react/DateMonthPicker/index.jsx
@@ -7,6 +7,9 @@ import { format } from 'date-fns'
import styles from './styles.styl'
import cx from 'classnames'
+import LeftIcon from 'cozy-ui/transpiled/react/Icons/Left'
+import RightIcon from 'cozy-ui/transpiled/react/Icons/Right'
+
const MonthButton = translate()(({ monthNum, f, onClick, isSelected }) => {
// We do not care care about year and day since we are creating the date
// only to be able to format it into a monthName
@@ -56,7 +59,7 @@ const DateMonthPicker = ({ initialValue, onSelect }) => {
title={year - 1}
onClick={decreaseYear}
>
-
+
{year}
{
title={year + 1}
onClick={increaseYear}
>
-
+
diff --git a/react/DateMonthPicker/index.spec.jsx b/react/DateMonthPicker/index.spec.jsx
index 37c2259f5e..067068d894 100644
--- a/react/DateMonthPicker/index.spec.jsx
+++ b/react/DateMonthPicker/index.spec.jsx
@@ -3,6 +3,8 @@ import React from 'react'
import DateMonthPicker from './index'
import I18n from '../I18n'
import { act } from 'react-dom/test-utils'
+import LeftIcon from 'cozy-ui/transpiled/react/Icons/Left'
+import RightIcon from 'cozy-ui/transpiled/react/Icons/Right'
const findButtonWithLabel = (root, label) =>
root.findWhere(n => n.type() == 'button' && n.props().children === label)
@@ -46,7 +48,7 @@ describe('DateMonthPicker', () => {
it('should be able to go to previous year', async () => {
const { root, handleSelect } = setup({ initialValue: '2015-08' })
- const prevYearButton = findButtonWithIcon(root, 'left')
+ const prevYearButton = findButtonWithIcon(root, LeftIcon)
act(() => {
prevYearButton.props().onClick()
})
@@ -59,7 +61,7 @@ describe('DateMonthPicker', () => {
it('should be able to go to next year', async () => {
const { root, handleSelect } = setup({ initialValue: '2015-08' })
- const nextYearButton = findButtonWithIcon(root, 'right')
+ const nextYearButton = findButtonWithIcon(root, RightIcon)
act(() => {
nextYearButton.props().onClick()
})
diff --git a/react/DropdownButton/index.jsx b/react/DropdownButton/index.jsx
index f2ba5ccd59..3b9d4d03e3 100644
--- a/react/DropdownButton/index.jsx
+++ b/react/DropdownButton/index.jsx
@@ -3,6 +3,8 @@ import cx from 'classnames'
import styles from './styles.styl'
import Icon from '../Icon'
+import BottomIcon from 'cozy-ui/transpiled/react/Icons/Bottom'
+
const DropdownButton = React.forwardRef(
({ children, className, ...props }, ref) => (
{children}
diff --git a/react/HistoryRow/index.jsx b/react/HistoryRow/index.jsx
index e49dcec049..0315deabaa 100644
--- a/react/HistoryRow/index.jsx
+++ b/react/HistoryRow/index.jsx
@@ -8,6 +8,8 @@ import palette from '../palette'
import styles from './styles.styl'
+import DownloadIcon from 'cozy-ui/transpiled/react/Icons/Download'
+
/**
*
* This component display a timeline of file's version
@@ -44,7 +46,7 @@ const HistoryRow = ({
downloadLink()}
/>
diff --git a/react/Icons/BottomSelect.jsx b/react/Icons/BottomSelect.jsx
new file mode 100644
index 0000000000..7cb33f5915
--- /dev/null
+++ b/react/Icons/BottomSelect.jsx
@@ -0,0 +1,16 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/bottom-select.svg` to regenerate;
+import React from 'react'
+
+function SvgBottomSelect(props) {
+ return (
+
+
+
+ )
+}
+
+export default SvgBottomSelect
diff --git a/react/Icons/CheckWhite.jsx b/react/Icons/CheckWhite.jsx
new file mode 100644
index 0000000000..f1d32361bf
--- /dev/null
+++ b/react/Icons/CheckWhite.jsx
@@ -0,0 +1,17 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/check-white.svg` to regenerate;
+import React from 'react'
+
+function SvgCheckWhite(props) {
+ return (
+
+
+
+ )
+}
+
+export default SvgCheckWhite
diff --git a/react/Icons/CloudBroken.jsx b/react/Icons/CloudBroken.jsx
new file mode 100644
index 0000000000..69d251cc01
--- /dev/null
+++ b/react/Icons/CloudBroken.jsx
@@ -0,0 +1,23 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/cloud-broken.svg` to regenerate;
+import React from 'react'
+
+function SvgCloudBroken(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgCloudBroken
diff --git a/react/Icons/Cozy.jsx b/react/Icons/Cozy.jsx
new file mode 100644
index 0000000000..c733cc75f9
--- /dev/null
+++ b/react/Icons/Cozy.jsx
@@ -0,0 +1,16 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/cozy.svg` to regenerate;
+import React from 'react'
+
+function SvgCozy(props) {
+ return (
+
+
+
+ )
+}
+
+export default SvgCozy
diff --git a/react/Icons/CozyLogo.jsx b/react/Icons/CozyLogo.jsx
new file mode 100644
index 0000000000..12e5f156c0
--- /dev/null
+++ b/react/Icons/CozyLogo.jsx
@@ -0,0 +1,18 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/cozy-logo.svg` to regenerate;
+import React from 'react'
+
+function SvgCozyLogo(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgCozyLogo
diff --git a/react/Icons/CrossWhite.jsx b/react/Icons/CrossWhite.jsx
new file mode 100644
index 0000000000..a2815be1e6
--- /dev/null
+++ b/react/Icons/CrossWhite.jsx
@@ -0,0 +1,16 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/cross-white.svg` to regenerate;
+import React from 'react'
+
+function SvgCrossWhite(props) {
+ return (
+
+
+
+ )
+}
+
+export default SvgCrossWhite
diff --git a/react/Icons/DashWhite.jsx b/react/Icons/DashWhite.jsx
new file mode 100644
index 0000000000..50412fab76
--- /dev/null
+++ b/react/Icons/DashWhite.jsx
@@ -0,0 +1,12 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/dash-white.svg` to regenerate;
+import React from 'react'
+
+function SvgDashWhite(props) {
+ return (
+
+
+
+ )
+}
+
+export default SvgDashWhite
diff --git a/react/Icons/DeviceBrowser.jsx b/react/Icons/DeviceBrowser.jsx
new file mode 100644
index 0000000000..7d50f9db6a
--- /dev/null
+++ b/react/Icons/DeviceBrowser.jsx
@@ -0,0 +1,18 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/device-browser.svg` to regenerate;
+import React from 'react'
+
+function SvgDeviceBrowser(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgDeviceBrowser
diff --git a/react/Icons/DeviceLaptop.jsx b/react/Icons/DeviceLaptop.jsx
new file mode 100644
index 0000000000..be375d9591
--- /dev/null
+++ b/react/Icons/DeviceLaptop.jsx
@@ -0,0 +1,22 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/device-laptop.svg` to regenerate;
+import React from 'react'
+
+function SvgDeviceLaptop(props) {
+ return (
+
+
+
+
+
+
+
+ )
+}
+
+export default SvgDeviceLaptop
diff --git a/react/Icons/DevicePhone.jsx b/react/Icons/DevicePhone.jsx
new file mode 100644
index 0000000000..7d06f8788b
--- /dev/null
+++ b/react/Icons/DevicePhone.jsx
@@ -0,0 +1,27 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/device-phone.svg` to regenerate;
+import React from 'react'
+
+function SvgDevicePhone(props) {
+ return (
+
+
+
+
+
+
+
+
+ )
+}
+
+export default SvgDevicePhone
diff --git a/react/Icons/DeviceTablet.jsx b/react/Icons/DeviceTablet.jsx
new file mode 100644
index 0000000000..7495284a98
--- /dev/null
+++ b/react/Icons/DeviceTablet.jsx
@@ -0,0 +1,20 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/device-tablet.svg` to regenerate;
+import React from 'react'
+
+function SvgDeviceTablet(props) {
+ return (
+
+
+
+
+
+
+
+ )
+}
+
+export default SvgDeviceTablet
diff --git a/react/Icons/DotsWhite.jsx b/react/Icons/DotsWhite.jsx
new file mode 100644
index 0000000000..058bbdbb63
--- /dev/null
+++ b/react/Icons/DotsWhite.jsx
@@ -0,0 +1,16 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/dots-white.svg` to regenerate;
+import React from 'react'
+
+function SvgDotsWhite(props) {
+ return (
+
+
+
+ )
+}
+
+export default SvgDotsWhite
diff --git a/react/Icons/FileTypeAudio.jsx b/react/Icons/FileTypeAudio.jsx
new file mode 100644
index 0000000000..4a7d5aea71
--- /dev/null
+++ b/react/Icons/FileTypeAudio.jsx
@@ -0,0 +1,18 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-audio.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeAudio(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeAudio
diff --git a/react/Icons/FileTypeBin.jsx b/react/Icons/FileTypeBin.jsx
new file mode 100644
index 0000000000..d68c164013
--- /dev/null
+++ b/react/Icons/FileTypeBin.jsx
@@ -0,0 +1,25 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-bin.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeBin(props) {
+ return (
+
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeBin
diff --git a/react/Icons/FileTypeCode.jsx b/react/Icons/FileTypeCode.jsx
new file mode 100644
index 0000000000..56b23227e6
--- /dev/null
+++ b/react/Icons/FileTypeCode.jsx
@@ -0,0 +1,25 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-code.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeCode(props) {
+ return (
+
+
+
+
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeCode
diff --git a/react/Icons/FileTypeFiles.jsx b/react/Icons/FileTypeFiles.jsx
new file mode 100644
index 0000000000..9cafcf40ae
--- /dev/null
+++ b/react/Icons/FileTypeFiles.jsx
@@ -0,0 +1,21 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-files.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeFiles(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeFiles
diff --git a/react/Icons/FileTypeFolder.jsx b/react/Icons/FileTypeFolder.jsx
new file mode 100644
index 0000000000..26836cbe6b
--- /dev/null
+++ b/react/Icons/FileTypeFolder.jsx
@@ -0,0 +1,18 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-folder.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeFolder(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeFolder
diff --git a/react/Icons/FileTypeImage.jsx b/react/Icons/FileTypeImage.jsx
new file mode 100644
index 0000000000..6097927628
--- /dev/null
+++ b/react/Icons/FileTypeImage.jsx
@@ -0,0 +1,25 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-image.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeImage(props) {
+ return (
+
+
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeImage
diff --git a/react/Icons/FileTypePdf.jsx b/react/Icons/FileTypePdf.jsx
new file mode 100644
index 0000000000..ba65b462f2
--- /dev/null
+++ b/react/Icons/FileTypePdf.jsx
@@ -0,0 +1,21 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-pdf.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypePdf(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypePdf
diff --git a/react/Icons/FileTypeSheet.jsx b/react/Icons/FileTypeSheet.jsx
new file mode 100644
index 0000000000..507cc1dec7
--- /dev/null
+++ b/react/Icons/FileTypeSheet.jsx
@@ -0,0 +1,21 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-sheet.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeSheet(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeSheet
diff --git a/react/Icons/FileTypeSlide.jsx b/react/Icons/FileTypeSlide.jsx
new file mode 100644
index 0000000000..8ffb5b1de5
--- /dev/null
+++ b/react/Icons/FileTypeSlide.jsx
@@ -0,0 +1,21 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-slide.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeSlide(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeSlide
diff --git a/react/Icons/FileTypeText.jsx b/react/Icons/FileTypeText.jsx
new file mode 100644
index 0000000000..9a14a95f36
--- /dev/null
+++ b/react/Icons/FileTypeText.jsx
@@ -0,0 +1,21 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-text.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeText(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeText
diff --git a/react/Icons/FileTypeVideo.jsx b/react/Icons/FileTypeVideo.jsx
new file mode 100644
index 0000000000..b5b6c2594a
--- /dev/null
+++ b/react/Icons/FileTypeVideo.jsx
@@ -0,0 +1,21 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-video.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeVideo(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeVideo
diff --git a/react/Icons/FileTypeZip.jsx b/react/Icons/FileTypeZip.jsx
new file mode 100644
index 0000000000..d68ed9a93e
--- /dev/null
+++ b/react/Icons/FileTypeZip.jsx
@@ -0,0 +1,18 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/file-type-zip.svg` to regenerate;
+import React from 'react'
+
+function SvgFileTypeZip(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgFileTypeZip
diff --git a/react/Icons/Google.jsx b/react/Icons/Google.jsx
new file mode 100644
index 0000000000..45f1b7676f
--- /dev/null
+++ b/react/Icons/Google.jsx
@@ -0,0 +1,29 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/google.svg` to regenerate;
+import React from 'react'
+
+function SvgGoogle(props) {
+ return (
+
+
+
+
+
+
+
+
+ )
+}
+
+export default SvgGoogle
diff --git a/react/Icons/Keychain.jsx b/react/Icons/Keychain.jsx
new file mode 100644
index 0000000000..be5fd019f3
--- /dev/null
+++ b/react/Icons/Keychain.jsx
@@ -0,0 +1,21 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/keychain.svg` to regenerate;
+import React from 'react'
+
+function SvgKeychain(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgKeychain
diff --git a/react/Icons/LogoutLarge.jsx b/react/Icons/LogoutLarge.jsx
new file mode 100644
index 0000000000..39ff46a2a6
--- /dev/null
+++ b/react/Icons/LogoutLarge.jsx
@@ -0,0 +1,30 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/logout-large.svg` to regenerate;
+import React from 'react'
+
+function SvgLogoutLarge(props) {
+ return (
+
+
+
+
+
+
+
+ )
+}
+
+export default SvgLogoutLarge
diff --git a/react/Icons/ShareGrey08.jsx b/react/Icons/ShareGrey08.jsx
new file mode 100644
index 0000000000..b140d33476
--- /dev/null
+++ b/react/Icons/ShareGrey08.jsx
@@ -0,0 +1,15 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/share-grey08.svg` to regenerate;
+import React from 'react'
+
+function SvgShareGrey08(props) {
+ return (
+
+
+
+
+
+
+ )
+}
+
+export default SvgShareGrey08
diff --git a/react/Icons/TopSelect.jsx b/react/Icons/TopSelect.jsx
new file mode 100644
index 0000000000..d2f5ab52a8
--- /dev/null
+++ b/react/Icons/TopSelect.jsx
@@ -0,0 +1,16 @@
+// Automatically created, please run `scripts/generate-svg-icon.sh assets/icons/illus/top-select.svg` to regenerate;
+import React from 'react'
+
+function SvgTopSelect(props) {
+ return (
+
+
+
+ )
+}
+
+export default SvgTopSelect
diff --git a/react/Infos/index.jsx b/react/Infos/index.jsx
index 354fcbbd5d..57575519f2 100644
--- a/react/Infos/index.jsx
+++ b/react/Infos/index.jsx
@@ -9,6 +9,8 @@ import createDepreciationLogger from '../helpers/createDepreciationLogger'
import styles from './styles.styl'
+import CrossIcon from 'cozy-ui/transpiled/react/Icons/Cross'
+
export const Infos = ({
description,
action,
@@ -26,7 +28,7 @@ export const Infos = ({
{dismissAction && (
-
+
)}
diff --git a/react/InfosCarrousel/index.jsx b/react/InfosCarrousel/index.jsx
index eeca6d5231..19ca06b023 100644
--- a/react/InfosCarrousel/index.jsx
+++ b/react/InfosCarrousel/index.jsx
@@ -8,6 +8,9 @@ import styles from './styles.styl'
import Icon from '../Icon'
import IconButton from '../IconButton'
+import LeftIcon from 'cozy-ui/transpiled/react/Icons/Left'
+import RightIcon from 'cozy-ui/transpiled/react/Icons/Right'
+
const useClampedValue = (initialValue, min, max) => {
const [value, setValue] = useState(initialValue)
@@ -54,11 +57,11 @@ const InfosCarrousel = ({ children, theme, className, swipeableProps }) => {
{React.Children.count(children) > 1 ? (
-
+
-
+
) : null}
diff --git a/react/Labs/CollectionField/index.jsx b/react/Labs/CollectionField/index.jsx
index 95432f7825..f8c8248858 100644
--- a/react/Labs/CollectionField/index.jsx
+++ b/react/Labs/CollectionField/index.jsx
@@ -7,6 +7,9 @@ import Stack from '../../Stack'
import Icon from '../../Icon'
import { FieldContainer } from '../../Field'
+import CrossSmallIcon from 'cozy-ui/transpiled/react/Icons/CrossSmall'
+import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus'
+
/**
* Handles a collection of form fields.
* This is a controlled component. You have to give it some values and handle
@@ -85,7 +88,9 @@ const CollectionField = props => {
label={removeButtonLabel}
iconOnly
round
- icon={ }
+ icon={
+
+ }
onClick={() => handleRemove(index)}
/>
@@ -100,7 +105,7 @@ const CollectionField = props => {
theme="text"
icon={
}
diff --git a/react/Modal/ModalCross.jsx b/react/Modal/ModalCross.jsx
index da166f2b60..ae84c5b4b2 100644
--- a/react/Modal/ModalCross.jsx
+++ b/react/Modal/ModalCross.jsx
@@ -5,6 +5,8 @@ import Icon from '../Icon'
import palette from '../palette'
import withBreakpoints from '../helpers/withBreakpoints'
+import CrossIcon from 'cozy-ui/transpiled/react/Icons/Cross'
+
export const ModalCrossIcon = withBreakpoints()(props => {
const {
color,
@@ -12,7 +14,7 @@ export const ModalCrossIcon = withBreakpoints()(props => {
} = props
return (
diff --git a/react/NestedSelect/Modal.jsx b/react/NestedSelect/Modal.jsx
index 09261b0ec1..24e2a054c8 100644
--- a/react/NestedSelect/Modal.jsx
+++ b/react/NestedSelect/Modal.jsx
@@ -10,11 +10,13 @@ import NestedSelect from './NestedSelect'
import styles from './styles.styl'
+import LeftIcon from 'cozy-ui/transpiled/react/Icons/Left'
+
const ModalTitle = ({ showBack, onClickBack, title }) => (
{showBack && (
-
+
)}
diff --git a/react/NestedSelect/NestedSelect.jsx b/react/NestedSelect/NestedSelect.jsx
index a25043bb90..ca574086ba 100644
--- a/react/NestedSelect/NestedSelect.jsx
+++ b/react/NestedSelect/NestedSelect.jsx
@@ -8,6 +8,8 @@ import cx from 'classnames'
import omit from 'lodash/omit'
import palette from '../palette'
+import RightIcon from 'cozy-ui/transpiled/react/Icons/Right'
+
/**
* Select like component to choose an option among a list of options.
* Options can have children; selecting an option that has children
@@ -217,7 +219,7 @@ export const ItemRow = ({ item, onClick, isSelected, radioPosition }) => {
onClick={() => onClick(item)}
right={
item.children && item.children.length > 0 ? (
-
+
) : radioPosition !== 'right' ? null : (
(
{children}
)
@@ -32,7 +34,7 @@ const Row = ({
{children}
{hasArrow && (
-
+
)}
diff --git a/react/PushClientBanner/index.jsx b/react/PushClientBanner/index.jsx
index 62efc9ad41..f87eeac3bb 100644
--- a/react/PushClientBanner/index.jsx
+++ b/react/PushClientBanner/index.jsx
@@ -8,6 +8,9 @@ import PropTypes from 'prop-types'
import { Button, ButtonLink } from '../Button'
import Icon from '../Icon'
+import CozyIcon from 'cozy-ui/transpiled/react/Icons/Cozy'
+import CrossIcon from 'cozy-ui/transpiled/react/Icons/Cross'
+
const BannerClient = props => {
const {
text,
@@ -31,7 +34,7 @@ const BannerClient = props => {
/>
-
+
{text}
{
extension="narrow"
className={styles['close-banner']}
onClick={onClick}
- icon={ }
+ icon={ }
iconOnly
label="Close"
/>
diff --git a/react/PushClientButton/index.jsx b/react/PushClientButton/index.jsx
index f650a263a5..9fc260e212 100644
--- a/react/PushClientButton/index.jsx
+++ b/react/PushClientButton/index.jsx
@@ -5,6 +5,8 @@ import PropTypes from 'prop-types'
import cx from 'classnames'
import Icon from '../Icon'
+import DeviceLaptopIcon from 'cozy-ui/transpiled/react/Icons/DeviceLaptop'
+
const ButtonClient = props => {
const { label, href, onClick, className } = props
return (
@@ -16,7 +18,7 @@ const ButtonClient = props => {
onClick={onClick}
>
-
+
{label}
diff --git a/react/SelectionBar/index.jsx b/react/SelectionBar/index.jsx
index cdedeb8bc9..f040f0cbee 100644
--- a/react/SelectionBar/index.jsx
+++ b/react/SelectionBar/index.jsx
@@ -6,6 +6,8 @@ import useBreakpoints from '../hooks/useBreakpoints'
import styles from './styles.styl'
+import CrossIcon from 'cozy-ui/transpiled/react/Icons/Cross'
+
/*
If you want use SelectionBar component, you must have `actions` parameter, like :
@@ -64,7 +66,7 @@ const SelectionBar = ({ actions, selected, hideSelectionBar }) => {
onClick={hideSelectionBar}
extension="narrow"
>
-
+
)
diff --git a/react/Spinner/index.jsx b/react/Spinner/index.jsx
index 7d49b8fa89..d5447a7bf8 100644
--- a/react/Spinner/index.jsx
+++ b/react/Spinner/index.jsx
@@ -5,6 +5,7 @@ import cx from 'classnames'
import PropTypes from 'prop-types'
import styles from './styles.styl'
import palette from '../palette'
+import SpinnerIcon from 'cozy-ui/transpiled/react/Icons/Spinner'
export const Spinner = ({
t,
loadingType,
@@ -35,7 +36,7 @@ export const Spinner = ({
className
)}
>
-
+
{loadingType && {t(`loading.${loadingType}`)}
}
)
diff --git a/react/UploadQueue/index.jsx b/react/UploadQueue/index.jsx
index 59c2636789..2af65e5281 100644
--- a/react/UploadQueue/index.jsx
+++ b/react/UploadQueue/index.jsx
@@ -18,6 +18,10 @@ import localeEn from './locales/en.json'
import localeEs from './locales/es.json'
import localeFr from './locales/fr.json'
+import CrossIcon from 'cozy-ui/transpiled/react/Icons/Cross'
+import WarningIcon from 'cozy-ui/transpiled/react/Icons/Warning'
+import CheckIcon from 'cozy-ui/transpiled/react/Icons/Check'
+
const locales = {
en: localeEn,
es: localeEs,
@@ -108,17 +112,25 @@ const Item = translate()(
) : null
} else if (statusToUse === CANCEL) {
statusIcon = (
-
+
)
} else if (ERROR_STATUSES.includes(statusToUse)) {
error = true
statusIcon = (
-
+
)
} else if (DONE_STATUSES.includes(statusToUse)) {
done = true
statusIcon = (
-
+
)
} else if (statusToUse === PENDING) {
statusIcon =
diff --git a/react/Viewer/AudioViewer.jsx b/react/Viewer/AudioViewer.jsx
index 9d3716b6b2..31824abc90 100644
--- a/react/Viewer/AudioViewer.jsx
+++ b/react/Viewer/AudioViewer.jsx
@@ -4,9 +4,11 @@ import Icon from '../Icon'
import withFileUrl from './withFileUrl'
import styles from './styles.styl'
+import FileTypeAudioIcon from 'cozy-ui/transpiled/react/Icons/FileTypeAudio'
+
const AudioViewer = ({ file, url }) => (
diff --git a/react/Viewer/NoNetworkViewer.jsx b/react/Viewer/NoNetworkViewer.jsx
index cd39e4cccd..0fb1f0de2a 100644
--- a/react/Viewer/NoNetworkViewer.jsx
+++ b/react/Viewer/NoNetworkViewer.jsx
@@ -5,9 +5,11 @@ import { translate } from '../I18n'
import styles from './styles.styl'
+import CloudBrokenIcon from 'cozy-ui/transpiled/react/Icons/CloudBroken'
+
const NoNetworkViewer = ({ t, onReload }) => (
-
+
{t('Viewer.error')}
diff --git a/react/Viewer/ViewerControls.jsx b/react/Viewer/ViewerControls.jsx
index 5a3b4693b5..c09b0d0e71 100644
--- a/react/Viewer/ViewerControls.jsx
+++ b/react/Viewer/ViewerControls.jsx
@@ -10,6 +10,9 @@ import Icon from '../Icon'
import styles from './styles.styl'
+import PreviousIcon from 'cozy-ui/transpiled/react/Icons/Previous'
+import NextIcon from 'cozy-ui/transpiled/react/Icons/Next'
+
const ACTIONS_HIDE_DELAY = 3000
class ViewerControls extends Component {
@@ -155,7 +158,7 @@ class ViewerControls extends Component {
onMouseLeave={this.hideControls}
>
@@ -177,7 +180,7 @@ class ViewerControls extends Component {
onMouseLeave={this.hideControls}
>
diff --git a/react/Wizard/index.jsx b/react/Wizard/index.jsx
index db3a97d4b8..bf0731c4d6 100644
--- a/react/Wizard/index.jsx
+++ b/react/Wizard/index.jsx
@@ -8,6 +8,8 @@ import Input from 'cozy-ui/transpiled/react/Input'
import styles from './styles.styl'
+import CloudIcon from 'cozy-ui/transpiled/react/Icons/Cloud'
+
export const Wizard = ({ children, tag, ...props }) => {
const Component = tag || 'div'
return (
@@ -75,7 +77,7 @@ export const WizardLogo = ({ src, badgeIcon, badgeColor }) => (
focusable="false"
/>
-
+
)
diff --git a/react/__snapshots__/examples.spec.jsx.snap b/react/__snapshots__/examples.spec.jsx.snap
index 61c5524685..6ccf5b916d 100644
--- a/react/__snapshots__/examples.spec.jsx.snap
+++ b/react/__snapshots__/examples.spec.jsx.snap
@@ -2,8 +2,8 @@
exports[`ActionMenu should render examples: ActionMenu 1`] = `
"
-
Show action menu
-
+ Show action menu
+
@@ -39,8 +39,8 @@ exports[`ActionMenu should render examples: ActionMenu 1`] = `
exports[`ActionMenu should render examples: ActionMenu 2`] = `
"
-
Show action menu
-
+ Show action menu
+
@@ -72,8 +72,8 @@ exports[`ActionMenu should render examples: ActionMenu 2`] = `
exports[`ActionMenu should render examples: ActionMenu 3`] = `
"
-
Show action menu
-
+ Show action menu
+
@@ -93,8 +93,8 @@ exports[`ActionMenu should render examples: ActionMenu 3`] = `
exports[`ActionMenu should render examples: ActionMenu 4`] = `
"
-
Show action menu
-
+ Show action menu
+
@@ -114,8 +114,8 @@ exports[`ActionMenu should render examples: ActionMenu 4`] = `
exports[`ActionMenu should render examples: ActionMenu 5`] = `
"
-
Show action menu
-
+ Show action menu
+
@@ -141,8 +141,8 @@ exports[`AppTitle should render examples: AppTitle 1`] = `
exports[`Avatar should render examples: Avatar 1`] = `
"
-
"
`;
@@ -162,8 +162,8 @@ exports[`Avatar should render examples: Avatar 3`] = `
exports[`Avatar should render examples: Avatar 4`] = `
"
-
-
+
CD
@@ -175,36 +175,36 @@ exports[`Avatar should render examples: Avatar 5`] = `
"
-
-
-
-
-
-
+
CD
@@ -264,29 +264,37 @@ exports[`BarButton should render examples: BarButton 4`] = `
exports[`Button should render examples: Button 1`] = `
"
-
regular regular regular
-
+ regular regular regular
+
+
- ghost ghost ghost
-
+ ghost ghost ghost
+
+
- danger danger danger
-
+ danger danger danger
+
+
- highlight highlight highlight
-
+ highlight highlight highlight
+
+
- secondary secondary secondary
-
+ secondary secondary secondary
+
+
- danger-outline danger-outline danger-outline
-
+ danger-outline danger-outline danger-outline
+
+
- alpha alpha alpha
-
+ alpha alpha alpha
+
+
- text text text
-
+ text text text
+
+
"
@@ -332,8 +340,9 @@ exports[`Button should render examples: Button 5`] = `
exports[`Button should render examples: Button 6`] = `"Show alert
"`;
exports[`Button should render examples: Button 7`] = `
-"Loading
-
+""
`;
@@ -369,14 +378,18 @@ exports[`Button should render examples: Button 13`] = `
Tiny text Small text Regular text Large text
Secondary theme Highlight theme DANGER theme
Disabled
- Busy
-
- Busy secondary
-
- Busy highlight
-
- Busy danger
-
+ Busy
+
+
+ Busy secondary
+
+
+ Busy highlight
+
+
+ Busy danger
+
+
Cozy
Subtle Secondary Cozy
@@ -2068,11 +2081,11 @@ exports[`ContactsListModal should render examples: ContactsListModal 1`] = `"
-
-
+
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
@@ -2331,8 +2344,8 @@ exports[`HistoryRow should render examples: HistoryRow 1`] = `
12/12/12 12:12
Current Version
-
10ko
@@ -2352,8 +2365,8 @@ exports[`HistoryRow should render examples: HistoryRow 1`] = `
12/12/12 12:10
-
9ko
@@ -2373,8 +2386,8 @@ exports[`HistoryRow should render examples: HistoryRow 1`] = `
12/12/12 12:09
V2
-
9ko
@@ -2394,8 +2407,8 @@ exports[`HistoryRow should render examples: HistoryRow 1`] = `
12/12/12 12:07
-
9ko
@@ -2415,8 +2428,8 @@ exports[`HistoryRow should render examples: HistoryRow 1`] = `
12/12/12 12:05
-
9ko
@@ -2436,8 +2449,8 @@ exports[`HistoryRow should render examples: HistoryRow 1`] = `
12/12/12 12:04
-
9ko
@@ -2457,8 +2470,8 @@ exports[`HistoryRow should render examples: HistoryRow 1`] = `
12/12/12 12:03
V1
-
9ko
@@ -6306,8 +6319,8 @@ exports[`Infos should render examples: Infos 1`] = `
one two three
-
-
+
+
@@ -6348,10 +6361,10 @@ exports[`InfosCarrousel should render examples: InfosCarrousel 1`] = `
-
@@ -6533,8 +6546,8 @@ exports[`Labs/CollectionField should render examples: Labs/CollectionField 1`] =
Contacts
-
isabelle.durand@cozycloud.cc Remove this contact
-
Add a contact
+
isabelle.durand@cozycloud.cc Remove this contact
+
Add a contact
"
@@ -7161,24 +7174,30 @@ exports[`Sidebar should render examples: Sidebar 1`] = `
exports[`Spinner should render examples: Spinner 1`] = `
"
-
"
`;
exports[`Spinner should render examples: Spinner 2`] = `
"
-
blue (default):
-
-
or
-
-
grey:
-
-
white:
-
-
red:
-
+ blue (default):
or
grey:
white:
red:
"
@@ -7187,8 +7206,9 @@ exports[`Spinner should render examples: Spinner 2`] = `
exports[`Spinner should render examples: Spinner 3`] = `
"
"
@@ -7196,20 +7216,27 @@ exports[`Spinner should render examples: Spinner 3`] = `
exports[`Spinner should render examples: Spinner 4`] = `
"
-
tiny:
-
-
small:
-
-
medium (default):
-
-
or
-
-
large:
-
-
xlarge:
-
-
xxlarge:
-
+ tiny:
small:
medium (default):
or
large:
xlarge:
xxlarge:
"
@@ -7218,8 +7245,9 @@ exports[`Spinner should render examples: Spinner 4`] = `
exports[`Spinner should render examples: Spinner 5`] = `
"