cozy-ui 57.5.0 → 57.5.4
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 +28 -0
- package/package.json +1 -1
- package/react/AppTile/Readme.md +7 -4
- package/react/AppTile/index.jsx +1 -1
- package/react/MuiCozyTheme/makeOverrides.js +2 -2
- package/react/SquareAppIcon/Readme.md +1 -1
- package/react/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap +8 -8
- package/react/SquareAppIcon/index.jsx +4 -1
- package/transpiled/react/AppTile/index.js +1 -1
- package/transpiled/react/MuiCozyTheme/makeOverrides.js +2 -2
- package/transpiled/react/SquareAppIcon/index.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [57.5.4](https://github.com/cozy/cozy-ui/compare/v57.5.3...v57.5.4) (2021-11-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* AppTile doesn't require name prop ([3a74932](https://github.com/cozy/cozy-ui/commit/3a74932))
|
|
7
|
+
|
|
8
|
+
## [57.5.3](https://github.com/cozy/cozy-ui/compare/v57.5.2...v57.5.3) (2021-11-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Border color of Accordion ([4628488](https://github.com/cozy/cozy-ui/commit/4628488))
|
|
14
|
+
|
|
15
|
+
## [57.5.2](https://github.com/cozy/cozy-ui/compare/v57.5.1...v57.5.2) (2021-11-02)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Use u-spacellipsis instead of u-ellipsis ([3a4a6c3](https://github.com/cozy/cozy-ui/commit/3a4a6c3))
|
|
21
|
+
|
|
22
|
+
## [57.5.1](https://github.com/cozy/cozy-ui/compare/v57.5.0...v57.5.1) (2021-11-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* Set correct argos batchCount ([8a6179d](https://github.com/cozy/cozy-ui/commit/8a6179d)), closes [cozy/cozy-ui#1917](https://github.com/cozy/cozy-ui/issues/1917)
|
|
28
|
+
|
|
1
29
|
# [57.5.0](https://github.com/cozy/cozy-ui/compare/v57.4.0...v57.5.0) (2021-10-28)
|
|
2
30
|
|
|
3
31
|
|
package/package.json
CHANGED
package/react/AppTile/Readme.md
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
Component used to show an app status, can be used in
|
|
2
2
|
a list of apps for example in the Store.
|
|
3
3
|
|
|
4
|
-
```
|
|
4
|
+
```jsx
|
|
5
5
|
import AppTile from '.'
|
|
6
6
|
import mockApps from '../AppSections/_mockApps'
|
|
7
7
|
import { I18n } from '../I18n'
|
|
8
|
+
import Grid from 'cozy-ui/transpiled/react/MuiCozyTheme/Grid'
|
|
8
9
|
|
|
9
10
|
const locale = {}
|
|
11
|
+
const app = mockApps[0]
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
;
|
|
12
14
|
|
|
13
15
|
<I18n dictRequire={lang => locale} lang="en">
|
|
14
|
-
<
|
|
16
|
+
<Grid container>
|
|
15
17
|
<AppTile app={app} />
|
|
16
18
|
<AppTile app={{...app, maintenance: true}} />
|
|
19
|
+
<AppTile app={{...app, maintenance: true}} displaySpecificMaintenanceStyle={true} />
|
|
17
20
|
<AppTile app={{...app, availableVersion: true}} />
|
|
18
21
|
<AppTile app={{...app, availableVersion: true}} showStatus={['maintenance']} />
|
|
19
|
-
</
|
|
22
|
+
</Grid>
|
|
20
23
|
</I18n>
|
|
21
24
|
```
|
package/react/AppTile/index.jsx
CHANGED
|
@@ -73,7 +73,7 @@ const makeOverrides = theme => ({
|
|
|
73
73
|
boxShadow: '0 4px 12px 0 rgba(0, 0, 0, 0.08)',
|
|
74
74
|
borderWidth: '0.0625rem',
|
|
75
75
|
borderStyle: 'solid',
|
|
76
|
-
borderColor: theme.palette.
|
|
76
|
+
borderColor: theme.palette.border.main,
|
|
77
77
|
overflow: 'hidden',
|
|
78
78
|
marginBottom: '1rem'
|
|
79
79
|
}
|
|
@@ -119,7 +119,7 @@ const makeOverrides = theme => ({
|
|
|
119
119
|
MuiAccordionDetails: {
|
|
120
120
|
root: {
|
|
121
121
|
padding: 0,
|
|
122
|
-
borderTop: `0.0625rem solid ${theme.palette.
|
|
122
|
+
borderTop: `0.0625rem solid ${theme.palette.border.main}`
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
MuiStepConnector: {
|
|
@@ -27,7 +27,7 @@ const theme = useCozyTheme()
|
|
|
27
27
|
<SquareAppIcon name="Add" variant="add" />
|
|
28
28
|
</Grid>
|
|
29
29
|
<Grid item>
|
|
30
|
-
<SquareAppIcon app="testapp" name="No Account" variant="ghost" />
|
|
30
|
+
<SquareAppIcon app="testapp" name="No Account long name very very very very long" variant="ghost" />
|
|
31
31
|
</Grid>
|
|
32
32
|
<Grid item>
|
|
33
33
|
<SquareAppIcon name="Shortcut" variant="shortcut" />
|
|
@@ -35,7 +35,7 @@ exports[`SquareAppIcon component should render an app correctly with the app nam
|
|
|
35
35
|
/>
|
|
36
36
|
</span>
|
|
37
37
|
<h6
|
|
38
|
-
class="MuiTypography-root makeStyles-name-7 u-
|
|
38
|
+
class="MuiTypography-root makeStyles-name-7 u-spacellipsis MuiTypography-h6 MuiTypography-alignCenter"
|
|
39
39
|
>
|
|
40
40
|
Test
|
|
41
41
|
</h6>
|
|
@@ -77,7 +77,7 @@ exports[`SquareAppIcon component should render an app correctly with the given n
|
|
|
77
77
|
/>
|
|
78
78
|
</span>
|
|
79
79
|
<h6
|
|
80
|
-
class="MuiTypography-root makeStyles-name-1 u-
|
|
80
|
+
class="MuiTypography-root makeStyles-name-1 u-spacellipsis MuiTypography-h6 MuiTypography-alignCenter"
|
|
81
81
|
>
|
|
82
82
|
modified
|
|
83
83
|
</h6>
|
|
@@ -119,7 +119,7 @@ exports[`SquareAppIcon component should render an app with the app slug if no na
|
|
|
119
119
|
/>
|
|
120
120
|
</span>
|
|
121
121
|
<h6
|
|
122
|
-
class="MuiTypography-root makeStyles-name-13 u-
|
|
122
|
+
class="MuiTypography-root makeStyles-name-13 u-spacellipsis MuiTypography-h6 MuiTypography-alignCenter"
|
|
123
123
|
>
|
|
124
124
|
testslug
|
|
125
125
|
</h6>
|
|
@@ -168,7 +168,7 @@ exports[`SquareAppIcon component should render correctly an app in add state 1`]
|
|
|
168
168
|
/>
|
|
169
169
|
</span>
|
|
170
170
|
<h6
|
|
171
|
-
class="MuiTypography-root makeStyles-name-37 u-
|
|
171
|
+
class="MuiTypography-root makeStyles-name-37 u-spacellipsis MuiTypography-h6 MuiTypography-alignCenter"
|
|
172
172
|
/>
|
|
173
173
|
</div>
|
|
174
174
|
`;
|
|
@@ -220,7 +220,7 @@ exports[`SquareAppIcon component should render correctly an app in error state 1
|
|
|
220
220
|
/>
|
|
221
221
|
</span>
|
|
222
222
|
<h6
|
|
223
|
-
class="MuiTypography-root makeStyles-name-31 u-
|
|
223
|
+
class="MuiTypography-root makeStyles-name-31 u-spacellipsis MuiTypography-h6 MuiTypography-alignCenter"
|
|
224
224
|
>
|
|
225
225
|
Test
|
|
226
226
|
</h6>
|
|
@@ -262,7 +262,7 @@ exports[`SquareAppIcon component should render correctly an app in ghost state 1
|
|
|
262
262
|
/>
|
|
263
263
|
</span>
|
|
264
264
|
<h6
|
|
265
|
-
class="MuiTypography-root makeStyles-name-25 u-
|
|
265
|
+
class="MuiTypography-root makeStyles-name-25 u-spacellipsis MuiTypography-h6 MuiTypography-alignCenter"
|
|
266
266
|
>
|
|
267
267
|
Test
|
|
268
268
|
</h6>
|
|
@@ -304,7 +304,7 @@ exports[`SquareAppIcon component should render correctly an app in maintenance s
|
|
|
304
304
|
/>
|
|
305
305
|
</span>
|
|
306
306
|
<h6
|
|
307
|
-
class="MuiTypography-root makeStyles-name-19 u-
|
|
307
|
+
class="MuiTypography-root makeStyles-name-19 u-spacellipsis MuiTypography-h6 MuiTypography-alignCenter"
|
|
308
308
|
>
|
|
309
309
|
Test
|
|
310
310
|
</h6>
|
|
@@ -349,7 +349,7 @@ exports[`SquareAppIcon component should render correctly an app in shortcut stat
|
|
|
349
349
|
</span>
|
|
350
350
|
</span>
|
|
351
351
|
<h6
|
|
352
|
-
class="MuiTypography-root makeStyles-name-43 u-
|
|
352
|
+
class="MuiTypography-root makeStyles-name-43 u-spacellipsis MuiTypography-h6 MuiTypography-alignCenter"
|
|
353
353
|
>
|
|
354
354
|
shortcut
|
|
355
355
|
</h6>
|
|
@@ -26,6 +26,9 @@ const useStyles = makeStyles(theme => ({
|
|
|
26
26
|
lineHeight: '1.188rem',
|
|
27
27
|
margin: '0.5rem 0.25rem 0 0.25rem',
|
|
28
28
|
textShadow: theme.textShadows[1],
|
|
29
|
+
lineClamp: '2',
|
|
30
|
+
boxOrient: 'vertical',
|
|
31
|
+
display: '-webkit-box',
|
|
29
32
|
height: '2.375rem',
|
|
30
33
|
[theme.breakpoints.down('sm')]: {
|
|
31
34
|
width: '3.75rem',
|
|
@@ -121,7 +124,7 @@ export const SquareAppIcon = ({ app, name, variant }) => {
|
|
|
121
124
|
</Badge>
|
|
122
125
|
</InfosBadge>
|
|
123
126
|
<Typography
|
|
124
|
-
className={cx(classes.name, 'u-
|
|
127
|
+
className={cx(classes.name, 'u-spacellipsis')}
|
|
125
128
|
variant="h6"
|
|
126
129
|
align="center"
|
|
127
130
|
>
|
|
@@ -98,7 +98,7 @@ export var AppTile = function AppTile(_ref) {
|
|
|
98
98
|
};
|
|
99
99
|
AppTile.propTypes = {
|
|
100
100
|
app: AppDoctype,
|
|
101
|
-
name: PropTypes.string
|
|
101
|
+
name: PropTypes.string,
|
|
102
102
|
namePrefix: PropTypes.string,
|
|
103
103
|
onClick: PropTypes.func,
|
|
104
104
|
IconComponent: PropTypes.element,
|
|
@@ -74,7 +74,7 @@ var makeOverrides = function makeOverrides(theme) {
|
|
|
74
74
|
boxShadow: '0 4px 12px 0 rgba(0, 0, 0, 0.08)',
|
|
75
75
|
borderWidth: '0.0625rem',
|
|
76
76
|
borderStyle: 'solid',
|
|
77
|
-
borderColor: theme.palette.
|
|
77
|
+
borderColor: theme.palette.border.main,
|
|
78
78
|
overflow: 'hidden',
|
|
79
79
|
marginBottom: '1rem'
|
|
80
80
|
}
|
|
@@ -120,7 +120,7 @@ var makeOverrides = function makeOverrides(theme) {
|
|
|
120
120
|
MuiAccordionDetails: {
|
|
121
121
|
root: {
|
|
122
122
|
padding: 0,
|
|
123
|
-
borderTop: "0.0625rem solid ".concat(theme.palette.
|
|
123
|
+
borderTop: "0.0625rem solid ".concat(theme.palette.border.main)
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
MuiStepConnector: {
|
|
@@ -38,6 +38,9 @@ var useStyles = makeStyles(function (theme) {
|
|
|
38
38
|
lineHeight: '1.188rem',
|
|
39
39
|
margin: '0.5rem 0.25rem 0 0.25rem',
|
|
40
40
|
textShadow: theme.textShadows[1],
|
|
41
|
+
lineClamp: '2',
|
|
42
|
+
boxOrient: 'vertical',
|
|
43
|
+
display: '-webkit-box',
|
|
41
44
|
height: '2.375rem'
|
|
42
45
|
}, theme.breakpoints.down('sm'), {
|
|
43
46
|
width: '3.75rem',
|
|
@@ -113,7 +116,7 @@ export var SquareAppIcon = function SquareAppIcon(_ref) {
|
|
|
113
116
|
}) : React.createElement(AppIcon, {
|
|
114
117
|
app: app
|
|
115
118
|
})))), React.createElement(Typography, {
|
|
116
|
-
className: cx(classes.name, 'u-
|
|
119
|
+
className: cx(classes.name, 'u-spacellipsis'),
|
|
117
120
|
variant: "h6",
|
|
118
121
|
align: "center"
|
|
119
122
|
}, appName));
|