cozy-ui 113.8.0 → 114.0.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 +20 -0
- package/jest.config.js +1 -2
- package/package.json +6 -12
- 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/Paywall/Paywall.spec.jsx +3 -5
- package/react/Popup/index.spec.jsx +90 -41
- package/react/QualificationIconStack/Readme.md +4 -1
- package/react/QualificationIconStack/index.jsx +28 -7
- package/react/QualificationModal/Readme.md +28 -0
- package/react/QualificationModal/index.jsx +94 -0
- package/react/QualificationModal/locales/en.json +5 -0
- package/react/QualificationModal/locales/fr.json +5 -0
- package/react/QualificationModal/locales/index.jsx +7 -0
- package/react/deprecated/ViewStack/example.jsx +1 -1
- package/react/hooks/useClientErrors.spec.jsx +16 -24
- package/react/index.js +2 -0
- 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/QualificationModal/index.js +126 -0
- package/transpiled/react/QualificationModal/locales/index.js +14 -0
- package/transpiled/react/deprecated/ViewStack/example.js +1 -1
- package/transpiled/react/index.js +2 -0
- 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
package/react/examples.spec.jsx
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import path from 'path'
|
|
2
|
-
|
|
3
|
-
import testFromStyleguidist from '../test/testFromStyleguidist'
|
|
4
|
-
|
|
5
|
-
// Popper does not work well inside of jest as it heavily relies on DOM APIs (see https://github.com/popperjs/popper-core/issues/478).
|
|
6
|
-
jest.mock('@material-ui/core/Popper', () => {
|
|
7
|
-
return ({ children }) => children
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
const makeRequire = subpath => m => {
|
|
11
|
-
if (m.indexOf('.') === 0) {
|
|
12
|
-
return require('./' + path.join(subpath, m))
|
|
13
|
-
} else {
|
|
14
|
-
return require(m)
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const testComponent = (ComponentName, options) => {
|
|
19
|
-
testFromStyleguidist(
|
|
20
|
-
ComponentName,
|
|
21
|
-
path.join(__dirname, ComponentName, 'Readme.md'),
|
|
22
|
-
makeRequire(ComponentName),
|
|
23
|
-
options
|
|
24
|
-
)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Please keep the list sorted
|
|
28
|
-
testComponent('Alert')
|
|
29
|
-
testComponent('AppTitle')
|
|
30
|
-
testComponent('Avatar')
|
|
31
|
-
testComponent('Badge')
|
|
32
|
-
testComponent('Banner')
|
|
33
|
-
testComponent('BarButton')
|
|
34
|
-
testComponent('Buttons')
|
|
35
|
-
testComponent('Card')
|
|
36
|
-
testComponent('Checkbox')
|
|
37
|
-
testComponent('Chips')
|
|
38
|
-
testComponent('ContactsList')
|
|
39
|
-
testComponent('ContactsListModal')
|
|
40
|
-
testComponent('DateMonthPicker')
|
|
41
|
-
testComponent('DropdownText')
|
|
42
|
-
testComponent('Dialog') // Prints error: Functions are not valid as a React child
|
|
43
|
-
testComponent('Empty')
|
|
44
|
-
// testComponent('Field') // fuzzy test, need to investigate why
|
|
45
|
-
testComponent('Hero')
|
|
46
|
-
testComponent('HistoryRow')
|
|
47
|
-
// testComponent('Icon') // fuzzy test, need to investigate why
|
|
48
|
-
// testComponent('IconButton') // fuzzy test, need to investigate why
|
|
49
|
-
testComponent('IconStack')
|
|
50
|
-
testComponent('InputGroup')
|
|
51
|
-
testComponent('Label')
|
|
52
|
-
testComponent('Labs/CollectionField')
|
|
53
|
-
testComponent('ListItemText')
|
|
54
|
-
testComponent('OrderedList')
|
|
55
|
-
testComponent('Paper')
|
|
56
|
-
testComponent('PasswordExample')
|
|
57
|
-
testComponent('PieChart')
|
|
58
|
-
testComponent('Progress')
|
|
59
|
-
testComponent('ProgressionBanner')
|
|
60
|
-
testComponent('Radios')
|
|
61
|
-
testComponent('SelectBox')
|
|
62
|
-
testComponent('Sidebar')
|
|
63
|
-
testComponent('Spinner')
|
|
64
|
-
testComponent('Switch')
|
|
65
|
-
testComponent('Textarea')
|
|
66
|
-
testComponent('UnorderedList')
|
|
67
|
-
testComponent('Wizard')
|