@digigov/react-core 0.8.0 → 0.10.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +21 -1
  2. package/Hint/__snapshots__/index.test.tsx.snap +36 -0
  3. package/Hint/index.d.ts +6 -1
  4. package/Hint/index.js +4 -3
  5. package/Hint/index.test.js +24 -0
  6. package/{TableHeaderCell → TableHeadCell}/__snapshots__/index.test.tsx.snap +49 -49
  7. package/TableHeadCell/index.d.ts +21 -0
  8. package/{TableHeaderCell → TableHeadCell}/index.js +5 -5
  9. package/{TableHeaderCell → TableHeadCell}/index.test.d.ts +0 -0
  10. package/{TableHeaderCell → TableHeadCell}/index.test.js +27 -27
  11. package/TableNoDataRow/__snapshots__/index.test.tsx.snap +16 -0
  12. package/TableNoDataRow/index.d.ts +10 -0
  13. package/TableNoDataRow/index.js +39 -0
  14. package/TableNoDataRow/index.test.d.ts +1 -0
  15. package/TableNoDataRow/index.test.js +15 -0
  16. package/es/Hint/__snapshots__/index.test.tsx.snap +36 -0
  17. package/es/Hint/index.js +4 -3
  18. package/es/Hint/index.test.js +24 -0
  19. package/{esm/TableHeaderCell → es/TableHeadCell}/__snapshots__/index.test.tsx.snap +49 -49
  20. package/es/{TableHeaderCell → TableHeadCell}/index.js +3 -3
  21. package/es/TableHeadCell/index.test.js +119 -0
  22. package/es/TableNoDataRow/__snapshots__/index.test.tsx.snap +16 -0
  23. package/es/TableNoDataRow/index.js +24 -0
  24. package/es/TableNoDataRow/index.test.js +9 -0
  25. package/es/index.js +2 -1
  26. package/esm/Hint/__snapshots__/index.test.tsx.snap +36 -0
  27. package/esm/Hint/index.js +4 -3
  28. package/esm/Hint/index.test.js +24 -0
  29. package/{es/TableHeaderCell → esm/TableHeadCell}/__snapshots__/index.test.tsx.snap +49 -49
  30. package/esm/{TableHeaderCell → TableHeadCell}/index.js +3 -3
  31. package/esm/TableHeadCell/index.test.js +119 -0
  32. package/esm/TableNoDataRow/__snapshots__/index.test.tsx.snap +16 -0
  33. package/esm/TableNoDataRow/index.js +24 -0
  34. package/esm/TableNoDataRow/index.test.js +9 -0
  35. package/esm/index.js +3 -2
  36. package/index.d.ts +2 -1
  37. package/index.js +11 -3
  38. package/package.json +2 -2
  39. package/TableHeaderCell/index.d.ts +0 -21
  40. package/es/TableHeaderCell/index.test.js +0 -119
  41. package/esm/TableHeaderCell/index.test.js +0 -119
@@ -1,119 +0,0 @@
1
- import React from 'react';
2
- import { mount } from 'enzyme';
3
- import TableHeaderCell from '@digigov/react-core/TableHeaderCell';
4
-
5
- var _ref = /*#__PURE__*/React.createElement(TableHeaderCell, null, "hello");
6
-
7
- it('renders the Table with no props', function () {
8
- expect(mount(_ref)).toMatchSnapshot();
9
- });
10
-
11
- var _ref2 = /*#__PURE__*/React.createElement(TableHeaderCell, {
12
- dataType: "numeric"
13
- }, "hello");
14
-
15
- it('renders the Table with dataType="numeric" prop', function () {
16
- expect(mount(_ref2)).toMatchSnapshot();
17
- });
18
-
19
- var _ref3 = /*#__PURE__*/React.createElement(TableHeaderCell, {
20
- cellWidth: 'one-quarter'
21
- });
22
-
23
- it('renders the TableHeaderCell with cellWidth=one-quarter', function () {
24
- expect(mount(_ref3)).toMatchSnapshot();
25
- });
26
-
27
- var _ref4 = /*#__PURE__*/React.createElement(TableHeaderCell, {
28
- cellWidth: 'one-third'
29
- });
30
-
31
- it('renders the TableHeaderCell with cellWidth=one-third', function () {
32
- expect(mount(_ref4)).toMatchSnapshot();
33
- });
34
-
35
- var _ref5 = /*#__PURE__*/React.createElement(TableHeaderCell, {
36
- cellWidth: 'one-half'
37
- });
38
-
39
- it('renders the TableHeaderCell with cellWidth=one-half', function () {
40
- expect(mount(_ref5)).toMatchSnapshot();
41
- });
42
-
43
- var _ref6 = /*#__PURE__*/React.createElement(TableHeaderCell, {
44
- cellWidth: 'two-thirds'
45
- });
46
-
47
- it('renders the TableHeaderCell with cellWidth=two-thirds', function () {
48
- expect(mount(_ref6)).toMatchSnapshot();
49
- });
50
-
51
- var _ref7 = /*#__PURE__*/React.createElement(TableHeaderCell, {
52
- cellWidth: 'three-quarters'
53
- });
54
-
55
- it('renders the TableHeaderCell with cellWidth=three-quarters', function () {
56
- expect(mount(_ref7)).toMatchSnapshot();
57
- });
58
-
59
- var _ref8 = /*#__PURE__*/React.createElement(TableHeaderCell, {
60
- cellWidth: 'full'
61
- });
62
-
63
- it('renders the TableHeaderCell with cellWidth=full', function () {
64
- expect(mount(_ref8)).toMatchSnapshot();
65
- });
66
-
67
- var _ref9 = /*#__PURE__*/React.createElement(TableHeaderCell, {
68
- dataType: "numeric",
69
- cellWidth: 'one-quarter'
70
- });
71
-
72
- it('renders the TableHeaderCell with dataType="numeric" cellWidth=one-quarter', function () {
73
- expect(mount(_ref9)).toMatchSnapshot();
74
- });
75
-
76
- var _ref10 = /*#__PURE__*/React.createElement(TableHeaderCell, {
77
- dataType: "numeric",
78
- cellWidth: 'one-third'
79
- });
80
-
81
- it('renders the TableHeaderCell with dataType="numeric" and cellWidth=one-third', function () {
82
- expect(mount(_ref10)).toMatchSnapshot();
83
- });
84
-
85
- var _ref11 = /*#__PURE__*/React.createElement(TableHeaderCell, {
86
- dataType: "numeric",
87
- cellWidth: 'one-half'
88
- });
89
-
90
- it('renders the TableHeaderCell with dataType="numeric" and dataType="numeric" and cellWidth=one-half', function () {
91
- expect(mount(_ref11)).toMatchSnapshot();
92
- });
93
-
94
- var _ref12 = /*#__PURE__*/React.createElement(TableHeaderCell, {
95
- dataType: "numeric",
96
- cellWidth: 'two-thirds'
97
- });
98
-
99
- it('renders the TableHeaderCell with dataType="numeric" and cellWidth=two-thirds', function () {
100
- expect(mount(_ref12)).toMatchSnapshot();
101
- });
102
-
103
- var _ref13 = /*#__PURE__*/React.createElement(TableHeaderCell, {
104
- dataType: "numeric",
105
- cellWidth: 'three-quarters'
106
- });
107
-
108
- it('renders the TableHeaderCell with dataType="numeric" and cellWidth=three-quarters', function () {
109
- expect(mount(_ref13)).toMatchSnapshot();
110
- });
111
-
112
- var _ref14 = /*#__PURE__*/React.createElement(TableHeaderCell, {
113
- dataType: "numeric",
114
- cellWidth: 'full'
115
- });
116
-
117
- it('renders the TableHeaderCell dataType="numeric" and with cellWidth=full', function () {
118
- expect(mount(_ref14)).toMatchSnapshot();
119
- });
@@ -1,119 +0,0 @@
1
- import React from 'react';
2
- import { mount } from 'enzyme';
3
- import TableHeaderCell from '@digigov/react-core/TableHeaderCell';
4
-
5
- var _ref = /*#__PURE__*/React.createElement(TableHeaderCell, null, "hello");
6
-
7
- it('renders the Table with no props', function () {
8
- expect(mount(_ref)).toMatchSnapshot();
9
- });
10
-
11
- var _ref2 = /*#__PURE__*/React.createElement(TableHeaderCell, {
12
- dataType: "numeric"
13
- }, "hello");
14
-
15
- it('renders the Table with dataType="numeric" prop', function () {
16
- expect(mount(_ref2)).toMatchSnapshot();
17
- });
18
-
19
- var _ref3 = /*#__PURE__*/React.createElement(TableHeaderCell, {
20
- cellWidth: 'one-quarter'
21
- });
22
-
23
- it('renders the TableHeaderCell with cellWidth=one-quarter', function () {
24
- expect(mount(_ref3)).toMatchSnapshot();
25
- });
26
-
27
- var _ref4 = /*#__PURE__*/React.createElement(TableHeaderCell, {
28
- cellWidth: 'one-third'
29
- });
30
-
31
- it('renders the TableHeaderCell with cellWidth=one-third', function () {
32
- expect(mount(_ref4)).toMatchSnapshot();
33
- });
34
-
35
- var _ref5 = /*#__PURE__*/React.createElement(TableHeaderCell, {
36
- cellWidth: 'one-half'
37
- });
38
-
39
- it('renders the TableHeaderCell with cellWidth=one-half', function () {
40
- expect(mount(_ref5)).toMatchSnapshot();
41
- });
42
-
43
- var _ref6 = /*#__PURE__*/React.createElement(TableHeaderCell, {
44
- cellWidth: 'two-thirds'
45
- });
46
-
47
- it('renders the TableHeaderCell with cellWidth=two-thirds', function () {
48
- expect(mount(_ref6)).toMatchSnapshot();
49
- });
50
-
51
- var _ref7 = /*#__PURE__*/React.createElement(TableHeaderCell, {
52
- cellWidth: 'three-quarters'
53
- });
54
-
55
- it('renders the TableHeaderCell with cellWidth=three-quarters', function () {
56
- expect(mount(_ref7)).toMatchSnapshot();
57
- });
58
-
59
- var _ref8 = /*#__PURE__*/React.createElement(TableHeaderCell, {
60
- cellWidth: 'full'
61
- });
62
-
63
- it('renders the TableHeaderCell with cellWidth=full', function () {
64
- expect(mount(_ref8)).toMatchSnapshot();
65
- });
66
-
67
- var _ref9 = /*#__PURE__*/React.createElement(TableHeaderCell, {
68
- dataType: "numeric",
69
- cellWidth: 'one-quarter'
70
- });
71
-
72
- it('renders the TableHeaderCell with dataType="numeric" cellWidth=one-quarter', function () {
73
- expect(mount(_ref9)).toMatchSnapshot();
74
- });
75
-
76
- var _ref10 = /*#__PURE__*/React.createElement(TableHeaderCell, {
77
- dataType: "numeric",
78
- cellWidth: 'one-third'
79
- });
80
-
81
- it('renders the TableHeaderCell with dataType="numeric" and cellWidth=one-third', function () {
82
- expect(mount(_ref10)).toMatchSnapshot();
83
- });
84
-
85
- var _ref11 = /*#__PURE__*/React.createElement(TableHeaderCell, {
86
- dataType: "numeric",
87
- cellWidth: 'one-half'
88
- });
89
-
90
- it('renders the TableHeaderCell with dataType="numeric" and dataType="numeric" and cellWidth=one-half', function () {
91
- expect(mount(_ref11)).toMatchSnapshot();
92
- });
93
-
94
- var _ref12 = /*#__PURE__*/React.createElement(TableHeaderCell, {
95
- dataType: "numeric",
96
- cellWidth: 'two-thirds'
97
- });
98
-
99
- it('renders the TableHeaderCell with dataType="numeric" and cellWidth=two-thirds', function () {
100
- expect(mount(_ref12)).toMatchSnapshot();
101
- });
102
-
103
- var _ref13 = /*#__PURE__*/React.createElement(TableHeaderCell, {
104
- dataType: "numeric",
105
- cellWidth: 'three-quarters'
106
- });
107
-
108
- it('renders the TableHeaderCell with dataType="numeric" and cellWidth=three-quarters', function () {
109
- expect(mount(_ref13)).toMatchSnapshot();
110
- });
111
-
112
- var _ref14 = /*#__PURE__*/React.createElement(TableHeaderCell, {
113
- dataType: "numeric",
114
- cellWidth: 'full'
115
- });
116
-
117
- it('renders the TableHeaderCell dataType="numeric" and with cellWidth=full', function () {
118
- expect(mount(_ref14)).toMatchSnapshot();
119
- });