cozy-ui 57.5.1 → 57.5.2

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,10 @@
1
+ ## [57.5.2](https://github.com/cozy/cozy-ui/compare/v57.5.1...v57.5.2) (2021-11-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Use u-spacellipsis instead of u-ellipsis ([3a4a6c3](https://github.com/cozy/cozy-ui/commit/3a4a6c3))
7
+
1
8
  ## [57.5.1](https://github.com/cozy/cozy-ui/compare/v57.5.0...v57.5.1) (2021-11-02)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "57.5.1",
3
+ "version": "57.5.2",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -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
  >
@@ -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));