@dexma/ui-components 5.4.0 → 5.6.1

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,13 +1,46 @@
1
- # [5.4.0](https://github.com/dexma/ui-components/compare/v5.3.3...v5.4.0) (2022-06-16)
1
+ ## [5.6.1](https://github.com/dexma/ui-components/compare/v5.6.0...v5.6.1) (2022-07-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **icon:** add heatmap icon, change treemap and pie and fix datapicker test ([40d0dbe](https://github.com/dexma/ui-components/commit/40d0dbeb00dbc22c7528c85db3ed4d4a38a94137))
7
+
8
+ # [5.6.0](https://github.com/dexma/ui-components/compare/v5.5.0...v5.6.0) (2022-07-18)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **styles:** add styles from antd to global styles ([fe645a9](https://github.com/dexma/ui-components/commit/fe645a9369ebab0f84cdc17a0d9723d7d53e2d74))
14
+ * **styles:** import antd styles without alias ([35f289a](https://github.com/dexma/ui-components/commit/35f289a58753ae586769657408fd51a1ad004a60))
15
+ * **test:** fix today and tomorrow values on tests ([dd49744](https://github.com/dexma/ui-components/commit/dd49744253ae4ef10b6395cad434bfefb402f493))
16
+ * **tooltip:** add retrocompatibility on Tooltip props ([29190ba](https://github.com/dexma/ui-components/commit/29190ba3b42204e511d979c06c976322ed02ea38))
17
+
18
+
19
+ ### Features
20
+
21
+ * **datepicker:** datepicker based on ant design ([cdc0277](https://github.com/dexma/ui-components/commit/cdc0277db07de28c5715173250b4c1d408cf5e9b))
22
+ * **deps:** bump antd from 3.16.1 to 4.21.0 ([880489e](https://github.com/dexma/ui-components/commit/880489ed0fe478eb8da0ef58906e65df736d3295))
23
+
24
+ # [5.5.0](https://github.com/dexma/ui-components/compare/v5.4.0...v5.5.0) (2022-07-14)
25
+
26
+
27
+ ### Features
28
+
29
+ * **version:** update version ([cc6d514](https://github.com/dexma/ui-components/commit/cc6d514056f27644ef960cc1117970b31edec9ec))
30
+
31
+ # [5.4.0](https://github.com/dexma/ui-components/compare/v5.3.2...v5.4.0) (2022-07-14) (deprecated)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * **select:** add ellipsis to multivalue_label to show multivalueremove ([b4d0b56](https://github.com/dexma/ui-components/commit/b4d0b5672d3dc28700dd7e94dc05e31d1da51da2))
2
37
 
3
38
 
4
39
  ### Features
5
40
 
6
- * **deps:** bump antd from 3.16.1 to 4.21.0 ([dd199a5](https://github.com/dexma/ui-components/commit/dd199a5499d5260b7475e866ad42c7dce572d4e2))
7
- * **table:** adapt styles Table component to new antd version ([fdac454](https://github.com/dexma/ui-components/commit/fdac454055c805270f986b3a9e2f852c3cf3f6a0))
8
- * **tabs:** adapt styles Tabs component to new antd version ([f26c6e7](https://github.com/dexma/ui-components/commit/f26c6e783cc819a260f04c9b1db2b76cc1d2d77f))
41
+ * **version:** update version ([f5c54c9](https://github.com/dexma/ui-components/commit/f5c54c9fea02af68887e9319c8465f91d1ea74b6))
9
42
 
10
- ## [5.3.3](https://github.com/dexma/ui-components/compare/v5.3.2...v5.3.3) (2022-06-16)
43
+ ## [5.3.3](https://github.com/dexma/ui-components/compare/v5.3.2...v5.3.3) (2022-07-14) (deprecated)
11
44
 
12
45
 
13
46
  ### Bug Fixes
package/README.md CHANGED
@@ -67,15 +67,35 @@ For the documentation we use storybook docs that transforms our stories into wor
67
67
  - If you need to export static doc run `npm run build-storybook` this will export a static folder with all our component docs
68
68
 
69
69
  ## Changelog
70
+
70
71
  For changelogs, check out [the CHANGELOG section of ui-components](https://github.com/dexma/ui-components/blob/master/CHANGELOG.md)
71
72
 
72
73
  ## Testing
74
+
73
75
  We use React Testing Library as our testing lib you can check out the [documentation](https://testing-library.com/docs/react-testing-library/intro)
74
76
 
75
77
  - To run our test: `npm run test`
76
78
 
77
- ## Contributing
78
- Check out the [CONTRIBUTING document](https://github.com/dexma/ui-components/blob/master/CONTRIBUTING.md) in the root of the repository to learn how you can contribute.
79
+ Note: Due to the use of third-party libraries, some components use methods that JSDOM (the DOM implementation used by Jest) hasn't implemented yet, testing it is not easily possible. This is the case with window.matchMedia(). Jest returns ```TypeError: window.matchMedia is not a function``` and doesn't properly execute the test.
79
80
 
81
+ In this case, to resolve this issue to execute successfully your tests when @dexma/ui-components is used, include the following code on setupTest file for Jest to mock matchMedia and it should solve the issue:
80
82
 
83
+ ```javascript
84
+ Object.defineProperty(window, 'matchMedia', {
85
+ writable: true,
86
+ value: jest.fn().mockImplementation(query => ({
87
+ matches: false,
88
+ media: query,
89
+ onchange: null,
90
+ addListener: jest.fn(), // deprecated
91
+ removeListener: jest.fn(), // deprecated
92
+ addEventListener: jest.fn(),
93
+ removeEventListener: jest.fn(),
94
+ dispatchEvent: jest.fn(),
95
+ })),
96
+ });
97
+ ```
98
+
99
+ ## Contributing
81
100
 
101
+ Check out the [CONTRIBUTING document](https://github.com/dexma/ui-components/blob/master/CONTRIBUTING.md) in the root of the repository to learn how you can contribute.