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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "57.5.0",
3
+ "version": "57.5.4",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -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
- const app = mockApps[0];
13
+ ;
12
14
 
13
15
  <I18n dictRequire={lang => locale} lang="en">
14
- <div className='u-flex'>
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
- </div>
22
+ </Grid>
20
23
  </I18n>
21
24
  ```
@@ -106,7 +106,7 @@ export const AppTile = ({
106
106
 
107
107
  AppTile.propTypes = {
108
108
  app: AppDoctype,
109
- name: PropTypes.string.isRequired,
109
+ name: PropTypes.string,
110
110
  namePrefix: PropTypes.string,
111
111
  onClick: PropTypes.func,
112
112
  IconComponent: PropTypes.element,
@@ -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.grey[200],
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.grey[200]}`
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-ellipsis u-ov-hidden MuiTypography-h6 MuiTypography-alignCenter"
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-ellipsis u-ov-hidden MuiTypography-h6 MuiTypography-alignCenter"
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-ellipsis u-ov-hidden MuiTypography-h6 MuiTypography-alignCenter"
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-ellipsis u-ov-hidden MuiTypography-h6 MuiTypography-alignCenter"
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-ellipsis u-ov-hidden MuiTypography-h6 MuiTypography-alignCenter"
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-ellipsis u-ov-hidden MuiTypography-h6 MuiTypography-alignCenter"
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-ellipsis u-ov-hidden MuiTypography-h6 MuiTypography-alignCenter"
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-ellipsis u-ov-hidden MuiTypography-h6 MuiTypography-alignCenter"
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-ellipsis', 'u-ov-hidden')}
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.isRequired,
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.grey[200],
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.grey[200])
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-ellipsis', 'u-ov-hidden'),
119
+ className: cx(classes.name, 'u-spacellipsis'),
117
120
  variant: "h6",
118
121
  align: "center"
119
122
  }, appName));