cozy-harvest-lib 36.2.6 → 37.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/components/AccountForm/ReadOnlyIdentifier.js +7 -2
- package/dist/components/AccountsList/AccountsList.js +7 -3
- package/dist/components/AccountsList/AccountsListItem.js +7 -2
- package/dist/components/DisconnectedAccountModal.js +8 -2
- package/dist/components/__snapshots__/OAuthForm.spec.js.snap +7 -7
- package/dist/components/cards/AppLinkCard.js +12 -6
- package/dist/components/cards/ConnectCard.js +7 -2
- package/dist/components/cards/InformationsCard.js +7 -2
- package/dist/components/cards/LaunchTriggerCard.js +2 -3
- package/dist/datacards/DoctypeDebugCard.js +8 -2
- package/dist/datacards/FileDataCard.js +11 -6
- package/dist/datacards/GeoDataCard.js +6 -2
- package/package.json +7 -7
- package/src/components/AccountForm/ReadOnlyIdentifier.jsx +8 -3
- package/src/components/AccountsList/AccountsList.jsx +9 -3
- package/src/components/AccountsList/AccountsListItem.jsx +8 -3
- package/src/components/DisconnectedAccountModal.jsx +10 -2
- package/src/components/__snapshots__/OAuthForm.spec.js.snap +7 -7
- package/src/components/cards/AppLinkCard.jsx +12 -10
- package/src/components/cards/ConnectCard.tsx +10 -3
- package/src/components/cards/InformationsCard.tsx +10 -3
- package/src/components/cards/LaunchTriggerCard.jsx +0 -3
- package/src/datacards/DoctypeDebugCard.jsx +9 -3
- package/src/datacards/FileDataCard.jsx +13 -10
- package/src/datacards/GeoDataCard.jsx +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [37.0.1](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@37.0.0...cozy-harvest-lib@37.0.1) (2026-03-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package cozy-harvest-lib
|
|
9
|
+
|
|
10
|
+
# [37.0.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@36.2.6...cozy-harvest-lib@37.0.0) (2026-03-24)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **cozy-harvest:** Upgrade packages ([4bb429d](https://github.com/cozy/cozy-libs/commit/4bb429df7ef43475a7294c9e7caa2456b327fe47))
|
|
15
|
+
|
|
16
|
+
### BREAKING CHANGES
|
|
17
|
+
|
|
18
|
+
- **cozy-harvest:** You must have `cozy-ui >= 138.1.0, cozy-ui-plus >= 6.0.0, cozy-viewer >= 28.0.0`
|
|
19
|
+
|
|
6
20
|
## [36.2.6](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@36.2.5...cozy-harvest-lib@36.2.6) (2026-03-24)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package cozy-harvest-lib
|
|
@@ -4,7 +4,7 @@ var _excluded = ["className", "onClick", "konnector", "identifier"];
|
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import
|
|
7
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
9
|
import BottomSelectIcon from 'cozy-ui/transpiled/react/Icons/BottomSelect';
|
|
10
10
|
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/deprecated/Media';
|
|
@@ -17,7 +17,12 @@ var ReadOnlyIdentifier = function ReadOnlyIdentifier(props) {
|
|
|
17
17
|
identifier = props.identifier,
|
|
18
18
|
rest = _objectWithoutProperties(props, _excluded);
|
|
19
19
|
|
|
20
|
-
return /*#__PURE__*/React.createElement(
|
|
20
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
21
|
+
display: "block",
|
|
22
|
+
border: 1,
|
|
23
|
+
borderColor: "var(--dividerColor)",
|
|
24
|
+
borderRadius: 8,
|
|
25
|
+
padding: 2,
|
|
21
26
|
className: cx({
|
|
22
27
|
'u-c-pointer': onClick
|
|
23
28
|
}, className),
|
|
@@ -10,8 +10,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
10
10
|
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import React from 'react';
|
|
13
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
13
14
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
14
|
-
import Card from 'cozy-ui/transpiled/react/Card';
|
|
15
15
|
import { DialogContent } from 'cozy-ui/transpiled/react/Dialog';
|
|
16
16
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
17
17
|
import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus';
|
|
@@ -55,8 +55,12 @@ export var AccountsList = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
55
55
|
}));
|
|
56
56
|
}), /*#__PURE__*/React.createElement("li", {
|
|
57
57
|
className: "u-mb-half"
|
|
58
|
-
}, /*#__PURE__*/React.createElement(
|
|
59
|
-
|
|
58
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
59
|
+
display: "block",
|
|
60
|
+
border: 1,
|
|
61
|
+
borderColor: "var(--dividerColor)",
|
|
62
|
+
borderRadius: 8,
|
|
63
|
+
padding: 0
|
|
60
64
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
61
65
|
label: t('modal.addAccount.button'),
|
|
62
66
|
variant: "text",
|
|
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { Account } from 'cozy-doctypes';
|
|
14
|
-
import
|
|
14
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
15
15
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
16
16
|
import Status from './Status';
|
|
17
17
|
export var AccountsListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -38,7 +38,12 @@ export var AccountsListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
38
38
|
// So we have to check if accountLogin is not undefined before doing the check
|
|
39
39
|
|
|
40
40
|
var shouldShowAccountLogin = accountLogin && accountName !== accountLogin;
|
|
41
|
-
return /*#__PURE__*/React.createElement(
|
|
41
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
42
|
+
display: "block",
|
|
43
|
+
border: 1,
|
|
44
|
+
borderColor: "var(--dividerColor)",
|
|
45
|
+
borderRadius: 8,
|
|
46
|
+
padding: 2,
|
|
42
47
|
className: "u-flex u-flex-justify-between u-flex-items-center u-c-pointer u-maw-100",
|
|
43
48
|
onClick: onClick
|
|
44
49
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React, { useRef, useState } from 'react';
|
|
5
5
|
import { getCreatedByApp } from 'cozy-client/dist/models/utils';
|
|
6
|
-
import
|
|
6
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
7
7
|
import { useCozyDialog, DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
8
8
|
import Dialog from 'cozy-ui/transpiled/react/Dialog';
|
|
9
9
|
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
@@ -90,7 +90,13 @@ var DisconnectedModal = function DisconnectedModal(_ref) {
|
|
|
90
90
|
label: t('modal.tabs.configuration')
|
|
91
91
|
})), /*#__PURE__*/React.createElement(Divider, null), activeTab === 0 ? /*#__PURE__*/React.createElement(DialogContent, {
|
|
92
92
|
className: "u-pb-1-half"
|
|
93
|
-
}, /*#__PURE__*/React.createElement(
|
|
93
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
94
|
+
display: "block",
|
|
95
|
+
border: 1,
|
|
96
|
+
borderColor: "var(--dividerColor)",
|
|
97
|
+
borderRadius: 8,
|
|
98
|
+
padding: 2
|
|
99
|
+
}, t('disconnectedAccountModal.disconnected-help'))) : null, activeTab === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, accounts.length ? /*#__PURE__*/React.createElement(DialogContent, {
|
|
94
100
|
className: isMobile ? 'u-ph-0' : 'u-pt-1-half'
|
|
95
101
|
}, /*#__PURE__*/React.createElement(Contracts, {
|
|
96
102
|
contracts: accounts,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`OAuthForm should bypass reconnect button when updating an account 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
class="TwakeTheme--light
|
|
6
|
+
class="TwakeTheme--light u-dc"
|
|
7
7
|
/>
|
|
8
8
|
</div>
|
|
9
9
|
`;
|
|
@@ -11,7 +11,7 @@ exports[`OAuthForm should bypass reconnect button when updating an account 1`] =
|
|
|
11
11
|
exports[`OAuthForm should handle oauth cancelation 1`] = `
|
|
12
12
|
<div>
|
|
13
13
|
<div
|
|
14
|
-
class="TwakeTheme--light
|
|
14
|
+
class="TwakeTheme--light u-dc"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
17
17
|
class="styles__Infos___tpCYh styles__Infos--danger___1HWww u-mb-1"
|
|
@@ -44,7 +44,7 @@ exports[`OAuthForm should handle oauth cancelation 1`] = `
|
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
46
|
<div
|
|
47
|
-
class="
|
|
47
|
+
class="MuiBox-root MuiBox-root-11 u-flex u-flex-wrap"
|
|
48
48
|
>
|
|
49
49
|
<div
|
|
50
50
|
class="styles__c-empty___3w5oV"
|
|
@@ -102,7 +102,7 @@ exports[`OAuthForm should handle oauth cancelation 1`] = `
|
|
|
102
102
|
exports[`OAuthForm should handle oauth cancelation 2`] = `
|
|
103
103
|
<div>
|
|
104
104
|
<div
|
|
105
|
-
class="TwakeTheme--light
|
|
105
|
+
class="TwakeTheme--light u-dc"
|
|
106
106
|
>
|
|
107
107
|
<div
|
|
108
108
|
class="styles__Infos___tpCYh styles__Infos--danger___1HWww u-mb-1"
|
|
@@ -135,7 +135,7 @@ exports[`OAuthForm should handle oauth cancelation 2`] = `
|
|
|
135
135
|
</div>
|
|
136
136
|
</div>
|
|
137
137
|
<div
|
|
138
|
-
class="
|
|
138
|
+
class="MuiBox-root MuiBox-root-13 u-flex u-flex-wrap"
|
|
139
139
|
>
|
|
140
140
|
<div
|
|
141
141
|
class="styles__c-empty___3w5oV"
|
|
@@ -177,10 +177,10 @@ exports[`OAuthForm should handle oauth cancelation 2`] = `
|
|
|
177
177
|
exports[`OAuthForm should render 1`] = `
|
|
178
178
|
<div>
|
|
179
179
|
<div
|
|
180
|
-
class="TwakeTheme--light
|
|
180
|
+
class="TwakeTheme--light u-dc"
|
|
181
181
|
>
|
|
182
182
|
<div
|
|
183
|
-
class="
|
|
183
|
+
class="MuiBox-root MuiBox-root-3 u-flex u-flex-wrap"
|
|
184
184
|
>
|
|
185
185
|
<div
|
|
186
186
|
class="styles__c-empty___3w5oV"
|
|
@@ -2,9 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useClient } from 'cozy-client';
|
|
5
|
+
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
6
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
5
7
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
6
|
-
import Card from 'cozy-ui/transpiled/react/Card';
|
|
7
|
-
import Circle from 'cozy-ui/transpiled/react/Circle';
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
9
9
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
10
10
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
@@ -77,12 +77,18 @@ var AppLinkCard = function AppLinkCard(_ref3) {
|
|
|
77
77
|
var _useI18n2 = useI18n(),
|
|
78
78
|
t = _useI18n2.t;
|
|
79
79
|
|
|
80
|
-
return /*#__PURE__*/React.createElement(
|
|
80
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
81
|
+
display: "block",
|
|
82
|
+
border: 1,
|
|
83
|
+
borderColor: "var(--dividerColor)",
|
|
84
|
+
borderRadius: 8,
|
|
85
|
+
padding: 2
|
|
86
|
+
}, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Typography, {
|
|
81
87
|
variant: "h6",
|
|
82
88
|
gutterBottom: true
|
|
83
|
-
}, icon ? /*#__PURE__*/React.createElement(
|
|
84
|
-
size: "
|
|
85
|
-
|
|
89
|
+
}, icon ? /*#__PURE__*/React.createElement(Avatar, {
|
|
90
|
+
size: "sm",
|
|
91
|
+
color: palette[iconColor],
|
|
86
92
|
className: "u-mr-half"
|
|
87
93
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
88
94
|
icon: icon,
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
3
4
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
4
|
-
import Card from 'cozy-ui/transpiled/react/Card';
|
|
5
5
|
import Empty from 'cozy-ui/transpiled/react/Empty';
|
|
6
6
|
import CloudSync2 from 'cozy-ui/transpiled/react/Icons/CloudSync2';
|
|
7
7
|
export var ConnectCard = function ConnectCard(_ref) {
|
|
8
8
|
var buttonProps = _ref.buttonProps,
|
|
9
9
|
description = _ref.description,
|
|
10
10
|
title = _ref.title;
|
|
11
|
-
return /*#__PURE__*/React.createElement(
|
|
11
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
12
|
+
display: "block",
|
|
13
|
+
border: 1,
|
|
14
|
+
borderColor: "var(--dividerColor)",
|
|
15
|
+
borderRadius: 8,
|
|
16
|
+
padding: 2,
|
|
12
17
|
className: "u-flex u-flex-wrap"
|
|
13
18
|
}, /*#__PURE__*/React.createElement(Empty, {
|
|
14
19
|
icon: CloudSync2,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import cx from 'classnames';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { useClient, generateWebLink } from 'cozy-client';
|
|
7
|
-
import
|
|
7
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
8
8
|
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
9
9
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
10
10
|
import GlobeIcon from 'cozy-ui/transpiled/react/Icons/Globe';
|
|
@@ -116,7 +116,12 @@ export var InformationsCard = function InformationsCard(_ref4) {
|
|
|
116
116
|
var _useI18n3 = useI18n(),
|
|
117
117
|
t = _useI18n3.t;
|
|
118
118
|
|
|
119
|
-
return /*#__PURE__*/React.createElement(
|
|
119
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
120
|
+
display: "block",
|
|
121
|
+
border: 1,
|
|
122
|
+
borderColor: "var(--dividerColor)",
|
|
123
|
+
borderRadius: 8,
|
|
124
|
+
padding: 2,
|
|
120
125
|
className: cx('u-p-0', className)
|
|
121
126
|
}, /*#__PURE__*/React.createElement("div", {
|
|
122
127
|
className: "u-ph-1 u-flex u-flex-items-center",
|
|
@@ -7,7 +7,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import Card from 'cozy-ui/transpiled/react/Card';
|
|
11
10
|
import { translate } from 'twake-i18n';
|
|
12
11
|
import LaunchTriggerAlert from './LaunchTriggerAlert';
|
|
13
12
|
import { intentsApiProptype } from '../../helpers/proptypes';
|
|
@@ -42,7 +41,7 @@ var LaunchTriggerCard = function LaunchTriggerCard(props) {
|
|
|
42
41
|
});
|
|
43
42
|
};
|
|
44
43
|
|
|
45
|
-
LaunchTriggerCard.propTypes =
|
|
44
|
+
LaunchTriggerCard.propTypes = {
|
|
46
45
|
/** @type {Object} A ConnectionFlow instance */
|
|
47
46
|
flow: PropTypes.object,
|
|
48
47
|
|
|
@@ -55,5 +54,5 @@ LaunchTriggerCard.propTypes = _objectSpread(_objectSpread({}, Card.propTypes), {
|
|
|
55
54
|
disabled: PropTypes.bool,
|
|
56
55
|
intentsApi: intentsApiProptype,
|
|
57
56
|
account: PropTypes.object
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
export default translate()(LaunchTriggerCard);
|
|
@@ -2,8 +2,8 @@ import PropTypes from 'prop-types';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import ReactJsonPrint from 'react-json-print';
|
|
4
4
|
import CozyClient, { Q, useQuery, hasQueryBeenLoaded, RealTimeQueries } from 'cozy-client';
|
|
5
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
5
6
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
6
|
-
import Card from 'cozy-ui/transpiled/react/Card';
|
|
7
7
|
import Divider from 'cozy-ui/transpiled/react/Divider';
|
|
8
8
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
9
9
|
import logger from '../logger';
|
|
@@ -46,7 +46,13 @@ var DoctypeDebugCard = function DoctypeDebugCard(_ref) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
var clipBoardAvailable = (_navigator$clipboard = navigator.clipboard) === null || _navigator$clipboard === void 0 ? void 0 : _navigator$clipboard.writeText;
|
|
49
|
-
return !failed && loaded ? /*#__PURE__*/React.createElement(
|
|
49
|
+
return !failed && loaded ? /*#__PURE__*/React.createElement(Box, {
|
|
50
|
+
display: "block",
|
|
51
|
+
border: 1,
|
|
52
|
+
borderColor: "var(--dividerColor)",
|
|
53
|
+
borderRadius: 8,
|
|
54
|
+
padding: 2
|
|
55
|
+
}, /*#__PURE__*/React.createElement(RealTimeQueries, {
|
|
50
56
|
doctype: doctype
|
|
51
57
|
}), /*#__PURE__*/React.createElement(Typography, {
|
|
52
58
|
variant: "button"
|
|
@@ -6,8 +6,8 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import { useNavigate } from 'react-router-dom';
|
|
8
8
|
import { RealTimeQueries } from 'cozy-client';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Avatar from 'cozy-ui/transpiled/react/Avatar';
|
|
10
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
11
11
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
12
12
|
import FileIcon from 'cozy-ui/transpiled/react/Icons/File';
|
|
13
13
|
import List from 'cozy-ui/transpiled/react/List';
|
|
@@ -102,15 +102,20 @@ var FileCard = function FileCard(_ref4) {
|
|
|
102
102
|
_useState2 = _slicedToArray(_useState, 1),
|
|
103
103
|
initialFilesById = _useState2[0];
|
|
104
104
|
|
|
105
|
-
return /*#__PURE__*/React.createElement(
|
|
105
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
106
|
+
display: "block",
|
|
107
|
+
border: 1,
|
|
108
|
+
borderColor: "var(--dividerColor)",
|
|
109
|
+
borderRadius: 8,
|
|
110
|
+
padding: 2,
|
|
106
111
|
className: "u-ph-0 u-pb-0 u-ov-hidden"
|
|
107
112
|
}, /*#__PURE__*/React.createElement("div", {
|
|
108
113
|
className: "u-ph-1 u-mb-half"
|
|
109
114
|
}, /*#__PURE__*/React.createElement(Media, {
|
|
110
115
|
align: "top"
|
|
111
|
-
}, /*#__PURE__*/React.createElement(Img, null, /*#__PURE__*/React.createElement(
|
|
112
|
-
size: "
|
|
113
|
-
|
|
116
|
+
}, /*#__PURE__*/React.createElement(Img, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
117
|
+
size: "sm",
|
|
118
|
+
color: palette['puertoRico'],
|
|
114
119
|
className: "u-mr-1"
|
|
115
120
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
116
121
|
icon: FileIcon,
|
|
@@ -22,7 +22,6 @@ import SwipeableViews from 'react-swipeable-views';
|
|
|
22
22
|
import CozyClient, { Q, queryConnect, isQueryLoading, hasQueryBeenLoaded, RealTimeQueries } from 'cozy-client';
|
|
23
23
|
import flag from 'cozy-flags';
|
|
24
24
|
import Box from 'cozy-ui/transpiled/react/Box';
|
|
25
|
-
import Card from 'cozy-ui/transpiled/react/Card';
|
|
26
25
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
27
26
|
import IconButton from 'cozy-ui/transpiled/react/IconButton';
|
|
28
27
|
import ClockIcon from 'cozy-ui/transpiled/react/Icons/Clock';
|
|
@@ -237,7 +236,12 @@ var GeoDataCard = function GeoDataCard(_ref4) {
|
|
|
237
236
|
setPrev = _useCycle2[1],
|
|
238
237
|
setNext = _useCycle2[2];
|
|
239
238
|
|
|
240
|
-
return /*#__PURE__*/React.createElement(
|
|
239
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
240
|
+
display: "block",
|
|
241
|
+
border: 1,
|
|
242
|
+
borderColor: "var(--dividerColor)",
|
|
243
|
+
borderRadius: 8,
|
|
244
|
+
padding: 2,
|
|
241
245
|
className: "u-ph-0 u-pb-0 u-ov-hidden"
|
|
242
246
|
}, /*#__PURE__*/React.createElement("div", {
|
|
243
247
|
className: "u-ph-1 u-mb-half"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-harvest-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "37.0.1",
|
|
4
4
|
"description": "Provides logic, modules and components for Cozy's harvest applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"cozy-keys-lib": "^6.1.1",
|
|
74
74
|
"cozy-realtime": "^5.9.1",
|
|
75
75
|
"cozy-tsconfig": "^1.8.1",
|
|
76
|
-
"cozy-ui": "^
|
|
76
|
+
"cozy-ui": "^138.1.0",
|
|
77
77
|
"cozy-ui-plus": "^6.0.0",
|
|
78
|
-
"cozy-viewer": "^28.0.
|
|
78
|
+
"cozy-viewer": "^28.0.2",
|
|
79
79
|
"form-data": "4.0.0",
|
|
80
80
|
"identity-obj-proxy": "3.0.0",
|
|
81
81
|
"isomorphic-fetch": "^2.2.1",
|
|
@@ -104,13 +104,13 @@
|
|
|
104
104
|
"cozy-interapp": ">=0.9.0",
|
|
105
105
|
"cozy-keys-lib": ">=6.1.1",
|
|
106
106
|
"cozy-realtime": ">=4.2.8",
|
|
107
|
-
"cozy-ui": ">=
|
|
108
|
-
"cozy-ui-plus": ">=
|
|
109
|
-
"cozy-viewer": ">=
|
|
107
|
+
"cozy-ui": ">=138.1.0",
|
|
108
|
+
"cozy-ui-plus": ">=6.0.0",
|
|
109
|
+
"cozy-viewer": ">=28.0.0",
|
|
110
110
|
"leaflet": "^1.7.1",
|
|
111
111
|
"react-router-dom": ">=6.14.2",
|
|
112
112
|
"twake-i18n": ">=0.3.0"
|
|
113
113
|
},
|
|
114
114
|
"sideEffects": false,
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "32c42c7b2beb61697f0d0826b81d354f2de5d272"
|
|
116
116
|
}
|
|
@@ -2,7 +2,7 @@ import cx from 'classnames'
|
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
6
6
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
7
7
|
import BottomSelectIcon from 'cozy-ui/transpiled/react/Icons/BottomSelect'
|
|
8
8
|
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/deprecated/Media'
|
|
@@ -13,7 +13,12 @@ const ReadOnlyIdentifier = props => {
|
|
|
13
13
|
const { className, onClick, konnector, identifier, ...rest } = props
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<
|
|
16
|
+
<Box
|
|
17
|
+
display="block"
|
|
18
|
+
border={1}
|
|
19
|
+
borderColor="var(--dividerColor)"
|
|
20
|
+
borderRadius={8}
|
|
21
|
+
padding={2}
|
|
17
22
|
className={cx({ 'u-c-pointer': onClick }, className)}
|
|
18
23
|
onClick={onClick}
|
|
19
24
|
{...rest}
|
|
@@ -27,7 +32,7 @@ const ReadOnlyIdentifier = props => {
|
|
|
27
32
|
<Icon icon={BottomSelectIcon} />
|
|
28
33
|
</Img>
|
|
29
34
|
</Media>
|
|
30
|
-
</
|
|
35
|
+
</Box>
|
|
31
36
|
)
|
|
32
37
|
}
|
|
33
38
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
4
5
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
5
|
-
import Card from 'cozy-ui/transpiled/react/Card'
|
|
6
6
|
import { DialogContent } from 'cozy-ui/transpiled/react/Dialog'
|
|
7
7
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
8
8
|
import PlusIcon from 'cozy-ui/transpiled/react/Icons/Plus'
|
|
@@ -28,7 +28,13 @@ export class AccountsList extends React.PureComponent {
|
|
|
28
28
|
</li>
|
|
29
29
|
))}
|
|
30
30
|
<li className="u-mb-half">
|
|
31
|
-
<
|
|
31
|
+
<Box
|
|
32
|
+
display="block"
|
|
33
|
+
border={1}
|
|
34
|
+
borderColor="var(--dividerColor)"
|
|
35
|
+
borderRadius={8}
|
|
36
|
+
padding={0}
|
|
37
|
+
>
|
|
32
38
|
<Button
|
|
33
39
|
label={t('modal.addAccount.button')}
|
|
34
40
|
variant="text"
|
|
@@ -37,7 +43,7 @@ export class AccountsList extends React.PureComponent {
|
|
|
37
43
|
className="u-bdrs-4"
|
|
38
44
|
onClick={addAccount}
|
|
39
45
|
/>
|
|
40
|
-
</
|
|
46
|
+
</Box>
|
|
41
47
|
</li>
|
|
42
48
|
</ul>
|
|
43
49
|
</DialogContent>
|
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types'
|
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { Account } from 'cozy-doctypes'
|
|
5
|
-
import
|
|
5
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
6
6
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
7
7
|
|
|
8
8
|
import Status from './Status'
|
|
@@ -17,7 +17,12 @@ export class AccountsListItem extends React.PureComponent {
|
|
|
17
17
|
// So we have to check if accountLogin is not undefined before doing the check
|
|
18
18
|
const shouldShowAccountLogin = accountLogin && accountName !== accountLogin
|
|
19
19
|
return (
|
|
20
|
-
<
|
|
20
|
+
<Box
|
|
21
|
+
display="block"
|
|
22
|
+
border={1}
|
|
23
|
+
borderColor="var(--dividerColor)"
|
|
24
|
+
borderRadius={8}
|
|
25
|
+
padding={2}
|
|
21
26
|
className="u-flex u-flex-justify-between u-flex-items-center u-c-pointer u-maw-100"
|
|
22
27
|
onClick={onClick}
|
|
23
28
|
>
|
|
@@ -40,7 +45,7 @@ export class AccountsListItem extends React.PureComponent {
|
|
|
40
45
|
)}
|
|
41
46
|
</div>
|
|
42
47
|
<Status konnector={konnector} trigger={trigger} />
|
|
43
|
-
</
|
|
48
|
+
</Box>
|
|
44
49
|
)
|
|
45
50
|
}
|
|
46
51
|
}
|
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types'
|
|
|
2
2
|
import React, { useRef, useState } from 'react'
|
|
3
3
|
|
|
4
4
|
import { getCreatedByApp } from 'cozy-client/dist/models/utils'
|
|
5
|
-
import
|
|
5
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
6
6
|
import {
|
|
7
7
|
useCozyDialog,
|
|
8
8
|
DialogCloseButton
|
|
@@ -76,7 +76,15 @@ const DisconnectedModal = ({
|
|
|
76
76
|
|
|
77
77
|
{activeTab === 0 ? (
|
|
78
78
|
<DialogContent className="u-pb-1-half">
|
|
79
|
-
<
|
|
79
|
+
<Box
|
|
80
|
+
display="block"
|
|
81
|
+
border={1}
|
|
82
|
+
borderColor="var(--dividerColor)"
|
|
83
|
+
borderRadius={8}
|
|
84
|
+
padding={2}
|
|
85
|
+
>
|
|
86
|
+
{t('disconnectedAccountModal.disconnected-help')}
|
|
87
|
+
</Box>
|
|
80
88
|
</DialogContent>
|
|
81
89
|
) : null}
|
|
82
90
|
{activeTab === 1 ? (
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`OAuthForm should bypass reconnect button when updating an account 1`] = `
|
|
4
4
|
<div>
|
|
5
5
|
<div
|
|
6
|
-
class="TwakeTheme--light
|
|
6
|
+
class="TwakeTheme--light u-dc"
|
|
7
7
|
/>
|
|
8
8
|
</div>
|
|
9
9
|
`;
|
|
@@ -11,7 +11,7 @@ exports[`OAuthForm should bypass reconnect button when updating an account 1`] =
|
|
|
11
11
|
exports[`OAuthForm should handle oauth cancelation 1`] = `
|
|
12
12
|
<div>
|
|
13
13
|
<div
|
|
14
|
-
class="TwakeTheme--light
|
|
14
|
+
class="TwakeTheme--light u-dc"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
17
17
|
class="styles__Infos___tpCYh styles__Infos--danger___1HWww u-mb-1"
|
|
@@ -44,7 +44,7 @@ exports[`OAuthForm should handle oauth cancelation 1`] = `
|
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
46
|
<div
|
|
47
|
-
class="
|
|
47
|
+
class="MuiBox-root MuiBox-root-11 u-flex u-flex-wrap"
|
|
48
48
|
>
|
|
49
49
|
<div
|
|
50
50
|
class="styles__c-empty___3w5oV"
|
|
@@ -102,7 +102,7 @@ exports[`OAuthForm should handle oauth cancelation 1`] = `
|
|
|
102
102
|
exports[`OAuthForm should handle oauth cancelation 2`] = `
|
|
103
103
|
<div>
|
|
104
104
|
<div
|
|
105
|
-
class="TwakeTheme--light
|
|
105
|
+
class="TwakeTheme--light u-dc"
|
|
106
106
|
>
|
|
107
107
|
<div
|
|
108
108
|
class="styles__Infos___tpCYh styles__Infos--danger___1HWww u-mb-1"
|
|
@@ -135,7 +135,7 @@ exports[`OAuthForm should handle oauth cancelation 2`] = `
|
|
|
135
135
|
</div>
|
|
136
136
|
</div>
|
|
137
137
|
<div
|
|
138
|
-
class="
|
|
138
|
+
class="MuiBox-root MuiBox-root-13 u-flex u-flex-wrap"
|
|
139
139
|
>
|
|
140
140
|
<div
|
|
141
141
|
class="styles__c-empty___3w5oV"
|
|
@@ -177,10 +177,10 @@ exports[`OAuthForm should handle oauth cancelation 2`] = `
|
|
|
177
177
|
exports[`OAuthForm should render 1`] = `
|
|
178
178
|
<div>
|
|
179
179
|
<div
|
|
180
|
-
class="TwakeTheme--light
|
|
180
|
+
class="TwakeTheme--light u-dc"
|
|
181
181
|
>
|
|
182
182
|
<div
|
|
183
|
-
class="
|
|
183
|
+
class="MuiBox-root MuiBox-root-3 u-flex u-flex-wrap"
|
|
184
184
|
>
|
|
185
185
|
<div
|
|
186
186
|
class="styles__c-empty___3w5oV"
|
|
@@ -2,9 +2,9 @@ import PropTypes from 'prop-types'
|
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
4
|
import { useClient } from 'cozy-client'
|
|
5
|
+
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
6
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
5
7
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
6
|
-
import Card from 'cozy-ui/transpiled/react/Card'
|
|
7
|
-
import Circle from 'cozy-ui/transpiled/react/Circle'
|
|
8
8
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
9
9
|
import Stack from 'cozy-ui/transpiled/react/Stack'
|
|
10
10
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
@@ -65,17 +65,19 @@ const AppLinkCard = ({ slug, path, icon, iconColor }) => {
|
|
|
65
65
|
const { t } = useI18n()
|
|
66
66
|
|
|
67
67
|
return (
|
|
68
|
-
<
|
|
68
|
+
<Box
|
|
69
|
+
display="block"
|
|
70
|
+
border={1}
|
|
71
|
+
borderColor="var(--dividerColor)"
|
|
72
|
+
borderRadius={8}
|
|
73
|
+
padding={2}
|
|
74
|
+
>
|
|
69
75
|
<Stack>
|
|
70
76
|
<Typography variant="h6" gutterBottom>
|
|
71
77
|
{icon ? (
|
|
72
|
-
<
|
|
73
|
-
size="small"
|
|
74
|
-
backgroundColor={palette[iconColor]}
|
|
75
|
-
className="u-mr-half"
|
|
76
|
-
>
|
|
78
|
+
<Avatar size="sm" color={palette[iconColor]} className="u-mr-half">
|
|
77
79
|
<Icon icon={icon} color={palette['white']} />
|
|
78
|
-
</
|
|
80
|
+
</Avatar>
|
|
79
81
|
) : null}
|
|
80
82
|
{t(`card.appLink.${slug}.title`)}
|
|
81
83
|
</Typography>
|
|
@@ -84,7 +86,7 @@ const AppLinkCard = ({ slug, path, icon, iconColor }) => {
|
|
|
84
86
|
</Typography>
|
|
85
87
|
<AppLinkButton path={path} slug={slug} />
|
|
86
88
|
</Stack>
|
|
87
|
-
</
|
|
89
|
+
</Box>
|
|
88
90
|
)
|
|
89
91
|
}
|
|
90
92
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
|
|
3
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
3
4
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
4
|
-
import Card from 'cozy-ui/transpiled/react/Card'
|
|
5
5
|
import Empty from 'cozy-ui/transpiled/react/Empty'
|
|
6
6
|
import CloudSync2 from 'cozy-ui/transpiled/react/Icons/CloudSync2'
|
|
7
7
|
|
|
@@ -21,9 +21,16 @@ export const ConnectCard = ({
|
|
|
21
21
|
description,
|
|
22
22
|
title
|
|
23
23
|
}: ConnectCardProps): JSX.Element => (
|
|
24
|
-
<
|
|
24
|
+
<Box
|
|
25
|
+
display="block"
|
|
26
|
+
border={1}
|
|
27
|
+
borderColor="var(--dividerColor)"
|
|
28
|
+
borderRadius={8}
|
|
29
|
+
padding={2}
|
|
30
|
+
className="u-flex u-flex-wrap"
|
|
31
|
+
>
|
|
25
32
|
<Empty icon={CloudSync2} title={title} text={description} />
|
|
26
33
|
|
|
27
34
|
<Button className="u-mh-auto" {...buttonProps} />
|
|
28
|
-
</
|
|
35
|
+
</Box>
|
|
29
36
|
)
|
|
@@ -4,7 +4,7 @@ import cx from 'classnames'
|
|
|
4
4
|
import React from 'react'
|
|
5
5
|
|
|
6
6
|
import { useClient, generateWebLink } from 'cozy-client'
|
|
7
|
-
import
|
|
7
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
8
8
|
import Divider from 'cozy-ui/transpiled/react/Divider'
|
|
9
9
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
10
10
|
import GlobeIcon from 'cozy-ui/transpiled/react/Icons/Globe'
|
|
@@ -137,7 +137,14 @@ export const InformationsCard = ({
|
|
|
137
137
|
const { t } = useI18n()
|
|
138
138
|
|
|
139
139
|
return (
|
|
140
|
-
<
|
|
140
|
+
<Box
|
|
141
|
+
display="block"
|
|
142
|
+
border={1}
|
|
143
|
+
borderColor="var(--dividerColor)"
|
|
144
|
+
borderRadius={8}
|
|
145
|
+
padding={2}
|
|
146
|
+
className={cx('u-p-0', className)}
|
|
147
|
+
>
|
|
141
148
|
<div
|
|
142
149
|
className="u-ph-1 u-flex u-flex-items-center"
|
|
143
150
|
style={{ minHeight: '64px' }}
|
|
@@ -151,6 +158,6 @@ export const InformationsCard = ({
|
|
|
151
158
|
<StoreButton appSlug={konnector.slug} />
|
|
152
159
|
<VendorLinkButton vendorLink={konnector.vendor_link} />
|
|
153
160
|
</List>
|
|
154
|
-
</
|
|
161
|
+
</Box>
|
|
155
162
|
)
|
|
156
163
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
|
|
4
|
-
import Card from 'cozy-ui/transpiled/react/Card'
|
|
5
4
|
import { translate } from 'twake-i18n'
|
|
6
5
|
|
|
7
6
|
import LaunchTriggerAlert from './LaunchTriggerAlert'
|
|
@@ -38,8 +37,6 @@ const LaunchTriggerCard = props => {
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
LaunchTriggerCard.propTypes = {
|
|
41
|
-
...Card.propTypes,
|
|
42
|
-
|
|
43
40
|
/** @type {Object} A ConnectionFlow instance */
|
|
44
41
|
flow: PropTypes.object,
|
|
45
42
|
|
|
@@ -8,8 +8,8 @@ import CozyClient, {
|
|
|
8
8
|
hasQueryBeenLoaded,
|
|
9
9
|
RealTimeQueries
|
|
10
10
|
} from 'cozy-client'
|
|
11
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
11
12
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
12
|
-
import Card from 'cozy-ui/transpiled/react/Card'
|
|
13
13
|
import Divider from 'cozy-ui/transpiled/react/Divider'
|
|
14
14
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
15
15
|
|
|
@@ -57,7 +57,13 @@ const DoctypeDebugCard = ({ sourceAccountIdentifier, konnector, doctype }) => {
|
|
|
57
57
|
|
|
58
58
|
const clipBoardAvailable = navigator.clipboard?.writeText
|
|
59
59
|
return !failed && loaded ? (
|
|
60
|
-
<
|
|
60
|
+
<Box
|
|
61
|
+
display="block"
|
|
62
|
+
border={1}
|
|
63
|
+
borderColor="var(--dividerColor)"
|
|
64
|
+
borderRadius={8}
|
|
65
|
+
padding={2}
|
|
66
|
+
>
|
|
61
67
|
<RealTimeQueries doctype={doctype} />
|
|
62
68
|
<Typography variant="button">{doctype}</Typography>
|
|
63
69
|
{clipBoardAvailable ? (
|
|
@@ -78,7 +84,7 @@ const DoctypeDebugCard = ({ sourceAccountIdentifier, konnector, doctype }) => {
|
|
|
78
84
|
) : null}
|
|
79
85
|
<Divider className="u-ml-0 u-maw-100 u-mb-half" />
|
|
80
86
|
<ReactJsonPrint dataObject={savedDocuments.data} />
|
|
81
|
-
</
|
|
87
|
+
</Box>
|
|
82
88
|
) : null
|
|
83
89
|
}
|
|
84
90
|
|
|
@@ -6,8 +6,8 @@ import React, { useState } from 'react'
|
|
|
6
6
|
import { useNavigate } from 'react-router-dom'
|
|
7
7
|
|
|
8
8
|
import { RealTimeQueries } from 'cozy-client'
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
10
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
11
11
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
12
12
|
import FileIcon from 'cozy-ui/transpiled/react/Icons/File'
|
|
13
13
|
import List from 'cozy-ui/transpiled/react/List'
|
|
@@ -84,17 +84,20 @@ const FileCard = ({ files, loading, konnector, trigger, accountId }) => {
|
|
|
84
84
|
const [initialFilesById] = useState(() => keyBy(files, x => x._id))
|
|
85
85
|
|
|
86
86
|
return (
|
|
87
|
-
<
|
|
87
|
+
<Box
|
|
88
|
+
display="block"
|
|
89
|
+
border={1}
|
|
90
|
+
borderColor="var(--dividerColor)"
|
|
91
|
+
borderRadius={8}
|
|
92
|
+
padding={2}
|
|
93
|
+
className="u-ph-0 u-pb-0 u-ov-hidden"
|
|
94
|
+
>
|
|
88
95
|
<div className="u-ph-1 u-mb-half">
|
|
89
96
|
<Media align="top">
|
|
90
97
|
<Img>
|
|
91
|
-
<
|
|
92
|
-
size="small"
|
|
93
|
-
backgroundColor={palette['puertoRico']}
|
|
94
|
-
className="u-mr-1"
|
|
95
|
-
>
|
|
98
|
+
<Avatar size="sm" color={palette['puertoRico']} className="u-mr-1">
|
|
96
99
|
<Icon icon={FileIcon} color={palette['white']} />
|
|
97
|
-
</
|
|
100
|
+
</Avatar>
|
|
98
101
|
</Img>
|
|
99
102
|
<Bd>
|
|
100
103
|
<Typography variant="h5">{t('datacards.files.title')}</Typography>
|
|
@@ -144,7 +147,7 @@ const FileCard = ({ files, loading, konnector, trigger, accountId }) => {
|
|
|
144
147
|
path={`#/files/${get(trigger, 'message.folder_to_save')}`}
|
|
145
148
|
/>
|
|
146
149
|
</div>
|
|
147
|
-
</
|
|
150
|
+
</Box>
|
|
148
151
|
)
|
|
149
152
|
}
|
|
150
153
|
|
|
@@ -16,7 +16,6 @@ import CozyClient, {
|
|
|
16
16
|
} from 'cozy-client'
|
|
17
17
|
import flag from 'cozy-flags'
|
|
18
18
|
import Box from 'cozy-ui/transpiled/react/Box'
|
|
19
|
-
import Card from 'cozy-ui/transpiled/react/Card'
|
|
20
19
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
21
20
|
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
22
21
|
import ClockIcon from 'cozy-ui/transpiled/react/Icons/Clock'
|
|
@@ -208,7 +207,14 @@ const GeoDataCard = ({ trips, loading, konnector }) => {
|
|
|
208
207
|
loading || !trips ? undefined : trips.length - 1
|
|
209
208
|
)
|
|
210
209
|
return (
|
|
211
|
-
<
|
|
210
|
+
<Box
|
|
211
|
+
display="block"
|
|
212
|
+
border={1}
|
|
213
|
+
borderColor="var(--dividerColor)"
|
|
214
|
+
borderRadius={8}
|
|
215
|
+
padding={2}
|
|
216
|
+
className="u-ph-0 u-pb-0 u-ov-hidden"
|
|
217
|
+
>
|
|
212
218
|
<div className="u-ph-1 u-mb-half">
|
|
213
219
|
<Typography variant="h6">{t('datacards.trips.title')}</Typography>
|
|
214
220
|
<Typography variant="caption">
|
|
@@ -257,7 +263,7 @@ const GeoDataCard = ({ trips, loading, konnector }) => {
|
|
|
257
263
|
) : (
|
|
258
264
|
<TripsMap trips={trips} index={index} />
|
|
259
265
|
)}
|
|
260
|
-
</
|
|
266
|
+
</Box>
|
|
261
267
|
)
|
|
262
268
|
}
|
|
263
269
|
|