cozy-ui 113.8.0 → 113.9.0
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 +7 -0
- package/jest.config.js +1 -2
- package/package.json +1 -7
- package/react/AppSections/components/AppsSection.spec.jsx +10 -19
- package/react/AppSections/index.spec.jsx +98 -77
- package/react/ContactsList/ContactRow.spec.js +28 -53
- package/react/DateMonthPicker/index.spec.jsx +17 -45
- package/react/Field/index.spec.js +28 -5
- package/react/Figure/Figure.spec.jsx +9 -4
- package/react/Figure/__snapshots__/Figure.spec.jsx.snap +289 -225
- package/react/FileInput/index.jsx +1 -0
- package/react/FileInput/index.spec.jsx +16 -38
- package/react/Popup/index.spec.jsx +90 -41
- package/react/QualificationIconStack/Readme.md +4 -1
- package/react/QualificationIconStack/index.jsx +28 -7
- package/react/deprecated/ViewStack/example.jsx +1 -1
- package/react/hooks/useClientErrors.spec.jsx +16 -24
- package/react/providers/I18n/index.spec.jsx +13 -5
- package/react/providers/I18n/withLocales.spec.jsx +4 -4
- package/transpiled/react/FileInput/index.js +2 -1
- package/transpiled/react/QualificationIconStack/index.js +26 -6
- package/transpiled/react/deprecated/ViewStack/example.js +1 -1
- package/react/AppSections/__snapshots__/index.spec.jsx.snap +0 -1843
- package/react/AppSections/components/__snapshots__/AppsSection.spec.jsx.snap +0 -41
- package/react/ContactsList/__snapshots__/ContactRow.spec.js.snap +0 -69
- package/react/FileInput/__snapshots__/index.spec.jsx.snap +0 -86
- package/react/Input/__snapshots__/index.spec.jsx.snap +0 -11
- package/react/Input/index.spec.jsx +0 -12
- package/react/__snapshots__/examples.spec.jsx.snap +0 -3720
- package/react/deprecated/ActionMenu/__snapshots__/index.spec.jsx.snap +0 -157
- package/react/deprecated/ActionMenu/index.spec.jsx +0 -115
- package/react/deprecated/Alerter/__snapshots__/alerter.spec.js.snap +0 -88
- package/react/deprecated/Alerter/alerter.spec.js +0 -78
- package/react/deprecated/InfosCarrousel/index.spec.jsx +0 -71
- package/react/deprecated/Modal/index.spec.jsx +0 -70
- package/react/deprecated/ViewStack/index.spec.jsx +0 -64
- package/react/examples.spec.jsx +0 -67
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`AppsSection component should be rendered correctly with apps list, subtitle 1`] = `
|
|
4
|
-
Array [
|
|
5
|
-
Object {
|
|
6
|
-
"developer": "By Cozy",
|
|
7
|
-
"status": null,
|
|
8
|
-
"title": "Bouilligue",
|
|
9
|
-
},
|
|
10
|
-
Object {
|
|
11
|
-
"developer": "By Cozy",
|
|
12
|
-
"status": "Installed",
|
|
13
|
-
"title": "Cozy Collect",
|
|
14
|
-
},
|
|
15
|
-
Object {
|
|
16
|
-
"developer": "By Cozy",
|
|
17
|
-
"status": null,
|
|
18
|
-
"title": "DevOnly",
|
|
19
|
-
},
|
|
20
|
-
Object {
|
|
21
|
-
"developer": "By Cozy",
|
|
22
|
-
"status": "Installed",
|
|
23
|
-
"title": "Cozy Drive",
|
|
24
|
-
},
|
|
25
|
-
Object {
|
|
26
|
-
"developer": "By Cozy",
|
|
27
|
-
"status": null,
|
|
28
|
-
"title": "Cozy Photos",
|
|
29
|
-
},
|
|
30
|
-
Object {
|
|
31
|
-
"developer": null,
|
|
32
|
-
"status": "Update available",
|
|
33
|
-
"title": "Tasky",
|
|
34
|
-
},
|
|
35
|
-
Object {
|
|
36
|
-
"developer": "By Cozy",
|
|
37
|
-
"status": "Installed",
|
|
38
|
-
"title": "Trinlane",
|
|
39
|
-
},
|
|
40
|
-
]
|
|
41
|
-
`;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`ContactRow should match the contact snapshot 1`] = `
|
|
4
|
-
<li
|
|
5
|
-
className="MuiListItem-root medium MuiListItem-gutters makeStyles-gutters-1 makeStyles-gutters-11"
|
|
6
|
-
data-testid="contact-listItem"
|
|
7
|
-
disabled={false}
|
|
8
|
-
onClick={[Function]}
|
|
9
|
-
size="medium"
|
|
10
|
-
>
|
|
11
|
-
<div
|
|
12
|
-
className="styles__TableCell___3vgVE styles__contact-identity___mL3IJ u-flex u-flex-items-center u-ellipsis u-p-0"
|
|
13
|
-
data-testid="ContactIdentity"
|
|
14
|
-
>
|
|
15
|
-
<div
|
|
16
|
-
className="styles__c-avatar___PpDI- styles__c-avatar--text___2dvna"
|
|
17
|
-
data-testid="Avatar"
|
|
18
|
-
style={
|
|
19
|
-
Object {
|
|
20
|
-
"--circleSize": "32px",
|
|
21
|
-
"backgroundColor": "#FFC644",
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
>
|
|
25
|
-
|
|
26
|
-
<span
|
|
27
|
-
className="styles__c-avatar-initials___310qC"
|
|
28
|
-
>
|
|
29
|
-
JD
|
|
30
|
-
</span>
|
|
31
|
-
</div>
|
|
32
|
-
<p
|
|
33
|
-
className="MuiTypography-root u-ml-1 MuiTypography-body1 MuiTypography-colorTextPrimary MuiTypography-noWrap MuiTypography-gutterBottom MuiTypography-displayInline"
|
|
34
|
-
data-testid="ContactName"
|
|
35
|
-
>
|
|
36
|
-
<span
|
|
37
|
-
className=""
|
|
38
|
-
>
|
|
39
|
-
John
|
|
40
|
-
|
|
41
|
-
</span>
|
|
42
|
-
<span
|
|
43
|
-
className="u-fw-bold"
|
|
44
|
-
>
|
|
45
|
-
Doe
|
|
46
|
-
|
|
47
|
-
</span>
|
|
48
|
-
</p>
|
|
49
|
-
</div>
|
|
50
|
-
<div
|
|
51
|
-
className="styles__TableCell___3vgVE styles__contact-email___3n3q2 u-ellipsis u-p-0"
|
|
52
|
-
data-testid="ContactEmail"
|
|
53
|
-
>
|
|
54
|
-
johndoe@localhost
|
|
55
|
-
</div>
|
|
56
|
-
<div
|
|
57
|
-
className="styles__TableCell___3vgVE styles__contact-phone___1sA_m u-ellipsis u-p-0"
|
|
58
|
-
data-testid="ContactPhone"
|
|
59
|
-
>
|
|
60
|
-
0123456789
|
|
61
|
-
</div>
|
|
62
|
-
<div
|
|
63
|
-
className="styles__TableCell___3vgVE styles__contact-cozyurl___3kBp5 u-ellipsis u-p-0"
|
|
64
|
-
data-testid="ContactCozy"
|
|
65
|
-
>
|
|
66
|
-
http://johndoe.mycozy.cloud
|
|
67
|
-
</div>
|
|
68
|
-
</li>
|
|
69
|
-
`;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`FileInput component should pass props to the input 1`] = `
|
|
4
|
-
<label
|
|
5
|
-
className="styles__c-file-input___YNZSh"
|
|
6
|
-
disabled={false}
|
|
7
|
-
>
|
|
8
|
-
<span
|
|
9
|
-
aria-controls="file-input-123"
|
|
10
|
-
onKeyPress={[Function]}
|
|
11
|
-
role="button"
|
|
12
|
-
tabIndex={0}
|
|
13
|
-
>
|
|
14
|
-
Click me
|
|
15
|
-
</span>
|
|
16
|
-
<input
|
|
17
|
-
accept="image/*"
|
|
18
|
-
hidden={true}
|
|
19
|
-
id="file-input-123"
|
|
20
|
-
multiple={false}
|
|
21
|
-
onChange={[Function]}
|
|
22
|
-
type="file"
|
|
23
|
-
/>
|
|
24
|
-
</label>
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports[`FileInput component should render a default file selector 1`] = `
|
|
28
|
-
<label
|
|
29
|
-
className="styles__c-file-input___YNZSh"
|
|
30
|
-
disabled={false}
|
|
31
|
-
>
|
|
32
|
-
<input
|
|
33
|
-
hidden={false}
|
|
34
|
-
id="file-input-123"
|
|
35
|
-
multiple={false}
|
|
36
|
-
onChange={[Function]}
|
|
37
|
-
type="file"
|
|
38
|
-
/>
|
|
39
|
-
</label>
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
exports[`FileInput component should render a disabled file selector 1`] = `
|
|
43
|
-
<label
|
|
44
|
-
className="styles__c-file-input___YNZSh"
|
|
45
|
-
disabled={true}
|
|
46
|
-
>
|
|
47
|
-
<span
|
|
48
|
-
aria-controls="file-input-123"
|
|
49
|
-
onKeyPress={[Function]}
|
|
50
|
-
role="button"
|
|
51
|
-
tabIndex={0}
|
|
52
|
-
>
|
|
53
|
-
Click me
|
|
54
|
-
</span>
|
|
55
|
-
<input
|
|
56
|
-
hidden={true}
|
|
57
|
-
id="file-input-123"
|
|
58
|
-
multiple={false}
|
|
59
|
-
onChange={[Function]}
|
|
60
|
-
type="file"
|
|
61
|
-
/>
|
|
62
|
-
</label>
|
|
63
|
-
`;
|
|
64
|
-
|
|
65
|
-
exports[`FileInput component should render a file selector 1`] = `
|
|
66
|
-
<label
|
|
67
|
-
className="styles__c-file-input___YNZSh"
|
|
68
|
-
disabled={false}
|
|
69
|
-
>
|
|
70
|
-
<span
|
|
71
|
-
aria-controls="file-input-123"
|
|
72
|
-
onKeyPress={[Function]}
|
|
73
|
-
role="button"
|
|
74
|
-
tabIndex={0}
|
|
75
|
-
>
|
|
76
|
-
Click me
|
|
77
|
-
</span>
|
|
78
|
-
<input
|
|
79
|
-
hidden={true}
|
|
80
|
-
id="file-input-123"
|
|
81
|
-
multiple={false}
|
|
82
|
-
onChange={[Function]}
|
|
83
|
-
type="file"
|
|
84
|
-
/>
|
|
85
|
-
</label>
|
|
86
|
-
`;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`Input component should support number type 1`] = `
|
|
4
|
-
<input
|
|
5
|
-
className="styles__c-input-text___3TAv1 styles__c-input-text--large___28EaR"
|
|
6
|
-
onChange={[MockFunction]}
|
|
7
|
-
spellCheck={false}
|
|
8
|
-
type="number"
|
|
9
|
-
value="42"
|
|
10
|
-
/>
|
|
11
|
-
`;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import Input from '.'
|
|
4
|
-
|
|
5
|
-
describe('Input component', () => {
|
|
6
|
-
it('should support number type', () => {
|
|
7
|
-
const component = shallow(
|
|
8
|
-
<Input type="number" value="42" onChange={jest.fn()} />
|
|
9
|
-
).getElement()
|
|
10
|
-
expect(component).toMatchSnapshot()
|
|
11
|
-
})
|
|
12
|
-
})
|