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.
Files changed (47) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/jest.config.js +1 -2
  3. package/package.json +6 -12
  4. package/react/AppSections/components/AppsSection.spec.jsx +10 -19
  5. package/react/AppSections/index.spec.jsx +98 -77
  6. package/react/ContactsList/ContactRow.spec.js +28 -53
  7. package/react/DateMonthPicker/index.spec.jsx +17 -45
  8. package/react/Field/index.spec.js +28 -5
  9. package/react/Figure/Figure.spec.jsx +9 -4
  10. package/react/Figure/__snapshots__/Figure.spec.jsx.snap +289 -225
  11. package/react/FileInput/index.jsx +1 -0
  12. package/react/FileInput/index.spec.jsx +16 -38
  13. package/react/Paywall/Paywall.spec.jsx +3 -5
  14. package/react/Popup/index.spec.jsx +90 -41
  15. package/react/QualificationIconStack/Readme.md +4 -1
  16. package/react/QualificationIconStack/index.jsx +28 -7
  17. package/react/QualificationModal/Readme.md +28 -0
  18. package/react/QualificationModal/index.jsx +94 -0
  19. package/react/QualificationModal/locales/en.json +5 -0
  20. package/react/QualificationModal/locales/fr.json +5 -0
  21. package/react/QualificationModal/locales/index.jsx +7 -0
  22. package/react/deprecated/ViewStack/example.jsx +1 -1
  23. package/react/hooks/useClientErrors.spec.jsx +16 -24
  24. package/react/index.js +2 -0
  25. package/react/providers/I18n/index.spec.jsx +13 -5
  26. package/react/providers/I18n/withLocales.spec.jsx +4 -4
  27. package/transpiled/react/FileInput/index.js +2 -1
  28. package/transpiled/react/QualificationIconStack/index.js +26 -6
  29. package/transpiled/react/QualificationModal/index.js +126 -0
  30. package/transpiled/react/QualificationModal/locales/index.js +14 -0
  31. package/transpiled/react/deprecated/ViewStack/example.js +1 -1
  32. package/transpiled/react/index.js +2 -0
  33. package/react/AppSections/__snapshots__/index.spec.jsx.snap +0 -1843
  34. package/react/AppSections/components/__snapshots__/AppsSection.spec.jsx.snap +0 -41
  35. package/react/ContactsList/__snapshots__/ContactRow.spec.js.snap +0 -69
  36. package/react/FileInput/__snapshots__/index.spec.jsx.snap +0 -86
  37. package/react/Input/__snapshots__/index.spec.jsx.snap +0 -11
  38. package/react/Input/index.spec.jsx +0 -12
  39. package/react/__snapshots__/examples.spec.jsx.snap +0 -3720
  40. package/react/deprecated/ActionMenu/__snapshots__/index.spec.jsx.snap +0 -157
  41. package/react/deprecated/ActionMenu/index.spec.jsx +0 -115
  42. package/react/deprecated/Alerter/__snapshots__/alerter.spec.js.snap +0 -88
  43. package/react/deprecated/Alerter/alerter.spec.js +0 -78
  44. package/react/deprecated/InfosCarrousel/index.spec.jsx +0 -71
  45. package/react/deprecated/Modal/index.spec.jsx +0 -70
  46. package/react/deprecated/ViewStack/index.spec.jsx +0 -64
  47. package/react/examples.spec.jsx +0 -67
@@ -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')