@digigov/react-core 0.11.0 → 0.14.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 (86) hide show
  1. package/AccordionControls/__snapshots__/index.test.tsx.snap +13 -0
  2. package/AccordionSection/__snapshots__/index.test.tsx.snap +9 -7
  3. package/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +2 -2
  4. package/AccordionSectionHeader/index.d.ts +1 -1
  5. package/AccordionSectionHeader/index.js +1 -1
  6. package/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +11 -0
  7. package/AccordionSectionSummary/index.d.ts +9 -0
  8. package/AccordionSectionSummary/index.js +35 -0
  9. package/AccordionSectionSummary/index.test.d.ts +1 -0
  10. package/AccordionSectionSummary/index.test.js +15 -0
  11. package/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +15 -0
  12. package/AccordionSectionSummaryHeading/index.d.ts +9 -0
  13. package/AccordionSectionSummaryHeading/index.js +37 -0
  14. package/AccordionSectionSummaryHeading/index.test.d.ts +1 -0
  15. package/AccordionSectionSummaryHeading/index.test.js +15 -0
  16. package/CHANGELOG.md +32 -1
  17. package/Card/index.d.ts +12 -2
  18. package/Card/index.js +1 -1
  19. package/Container/__snapshots__/index.test.tsx.snap +33 -0
  20. package/Container/index.test.js +17 -0
  21. package/List/__snapshots__/index.test.tsx.snap +15 -15
  22. package/List/index.d.ts +2 -2
  23. package/List/index.js +2 -2
  24. package/Masthead/__snapshots__/index.test.tsx.snap +1 -9
  25. package/Masthead/index.js +1 -3
  26. package/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +11 -0
  27. package/PhaseBannerHeaderContainer/inde.test.d.ts +1 -0
  28. package/PhaseBannerHeaderContainer/inde.test.js +15 -0
  29. package/PhaseBannerHeaderContainer/index.d.ts +8 -0
  30. package/PhaseBannerHeaderContainer/index.js +32 -0
  31. package/TableContainer/__snapshots__/index.test.tsx.snap +23 -0
  32. package/TableContainer/index.d.ts +13 -0
  33. package/TableContainer/index.js +37 -0
  34. package/TableContainer/index.test.d.ts +1 -0
  35. package/TableContainer/index.test.js +23 -0
  36. package/es/AccordionControls/__snapshots__/index.test.tsx.snap +13 -0
  37. package/es/AccordionSection/__snapshots__/index.test.tsx.snap +9 -7
  38. package/es/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +2 -2
  39. package/es/AccordionSectionHeader/index.js +1 -1
  40. package/es/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +11 -0
  41. package/es/AccordionSectionSummary/index.js +20 -0
  42. package/es/AccordionSectionSummary/index.test.js +9 -0
  43. package/es/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +15 -0
  44. package/es/AccordionSectionSummaryHeading/index.js +22 -0
  45. package/es/AccordionSectionSummaryHeading/index.test.js +9 -0
  46. package/es/Card/index.js +1 -1
  47. package/es/Container/__snapshots__/index.test.tsx.snap +33 -0
  48. package/es/Container/index.test.js +17 -0
  49. package/es/List/__snapshots__/index.test.tsx.snap +15 -15
  50. package/es/List/index.js +2 -2
  51. package/es/Masthead/__snapshots__/index.test.tsx.snap +1 -9
  52. package/es/Masthead/index.js +1 -2
  53. package/es/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +11 -0
  54. package/es/PhaseBannerHeaderContainer/inde.test.js +9 -0
  55. package/es/PhaseBannerHeaderContainer/index.js +16 -0
  56. package/es/TableContainer/__snapshots__/index.test.tsx.snap +23 -0
  57. package/es/TableContainer/index.js +22 -0
  58. package/es/TableContainer/index.test.js +17 -0
  59. package/es/index.js +4 -0
  60. package/esm/AccordionControls/__snapshots__/index.test.tsx.snap +13 -0
  61. package/esm/AccordionSection/__snapshots__/index.test.tsx.snap +9 -7
  62. package/esm/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +2 -2
  63. package/esm/AccordionSectionHeader/index.js +1 -1
  64. package/esm/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +11 -0
  65. package/esm/AccordionSectionSummary/index.js +20 -0
  66. package/esm/AccordionSectionSummary/index.test.js +9 -0
  67. package/esm/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +15 -0
  68. package/esm/AccordionSectionSummaryHeading/index.js +22 -0
  69. package/esm/AccordionSectionSummaryHeading/index.test.js +9 -0
  70. package/esm/Card/index.js +1 -1
  71. package/esm/Container/__snapshots__/index.test.tsx.snap +33 -0
  72. package/esm/Container/index.test.js +17 -0
  73. package/esm/List/__snapshots__/index.test.tsx.snap +15 -15
  74. package/esm/List/index.js +2 -2
  75. package/esm/Masthead/__snapshots__/index.test.tsx.snap +1 -9
  76. package/esm/Masthead/index.js +1 -2
  77. package/esm/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +11 -0
  78. package/esm/PhaseBannerHeaderContainer/inde.test.js +9 -0
  79. package/esm/PhaseBannerHeaderContainer/index.js +16 -0
  80. package/esm/TableContainer/__snapshots__/index.test.tsx.snap +23 -0
  81. package/esm/TableContainer/index.js +22 -0
  82. package/esm/TableContainer/index.test.js +17 -0
  83. package/esm/index.js +6 -2
  84. package/index.d.ts +4 -0
  85. package/index.js +32 -0
  86. package/package.json +3 -3
@@ -0,0 +1,16 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["children"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+ export var PhaseBannerHeaderContainer = /*#__PURE__*/React.forwardRef(function PhaseBannerHeaderContainer(_ref, ref) {
7
+ var children = _ref.children,
8
+ props = _objectWithoutProperties(_ref, _excluded);
9
+
10
+ return /*#__PURE__*/React.createElement("div", _extends({
11
+ ref: ref
12
+ }, props, {
13
+ className: clsx(true && 'govgr-phase-banner_header')
14
+ }), children);
15
+ });
16
+ export default PhaseBannerHeaderContainer;
@@ -0,0 +1,23 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the TableContainer with border prop 1`] = `
4
+ <ForwardRef(TableContainer)
5
+ border={true}
6
+ >
7
+ <div
8
+ className="govgr-table-container--border govgr-table-container"
9
+ >
10
+ hello
11
+ </div>
12
+ </ForwardRef(TableContainer)>
13
+ `;
14
+
15
+ exports[`renders the TableContainer with no props 1`] = `
16
+ <ForwardRef(TableContainer)>
17
+ <div
18
+ className="govgr-table-container"
19
+ >
20
+ hello
21
+ </div>
22
+ </ForwardRef(TableContainer)>
23
+ `;
@@ -0,0 +1,22 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["border", "className", "children"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+
7
+ /**
8
+ * Use TableContainer as a wrapper for a Table. It is used when the table is wider that the viewport width.
9
+ */
10
+ export var TableContainer = /*#__PURE__*/React.forwardRef(function TableContainer(_ref, ref) {
11
+ var _ref$border = _ref.border,
12
+ border = _ref$border === void 0 ? false : _ref$border,
13
+ className = _ref.className,
14
+ children = _ref.children,
15
+ props = _objectWithoutProperties(_ref, _excluded);
16
+
17
+ return /*#__PURE__*/React.createElement("div", _extends({
18
+ ref: ref,
19
+ className: clsx(className, border && 'govgr-table-container--border', true && 'govgr-table-container')
20
+ }, props), children);
21
+ });
22
+ export default TableContainer;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import TableContainer from '@digigov/react-core/TableContainer';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(TableContainer, null, "hello");
6
+
7
+ it('renders the TableContainer with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(TableContainer, {
12
+ border: true
13
+ }, "hello");
14
+
15
+ it('renders the TableContainer with border prop', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
package/es/index.js CHANGED
@@ -3,6 +3,8 @@ export { default as AccordionControls } from '@digigov/react-core/AccordionContr
3
3
  export { default as AccordionSection } from '@digigov/react-core/AccordionSection';
4
4
  export { default as AccordionSectionContent } from '@digigov/react-core/AccordionSectionContent';
5
5
  export { default as AccordionSectionHeader } from '@digigov/react-core/AccordionSectionHeader';
6
+ export { default as AccordionSectionSummary } from '@digigov/react-core/AccordionSectionSummary';
7
+ export { default as AccordionSectionSummaryHeading } from '@digigov/react-core/AccordionSectionSummaryHeading';
6
8
  export { default as ArrowIcon } from '@digigov/react-core/ArrowIcon';
7
9
  export { default as Aside } from '@digigov/react-core/Aside';
8
10
  export { default as BackLink } from '@digigov/react-core/BackLink';
@@ -99,6 +101,7 @@ export { default as PageTitleCaption } from '@digigov/react-core/PageTitleCaptio
99
101
  export { default as PageTitleHeading } from '@digigov/react-core/PageTitleHeading';
100
102
  export { default as PageTitleSection } from '@digigov/react-core/PageTitleSection';
101
103
  export { default as Paragraph } from '@digigov/react-core/Paragraph';
104
+ export { default as PhaseBannerHeaderContainer } from '@digigov/react-core/PhaseBannerHeaderContainer';
102
105
  export { default as PhaseBanner } from '@digigov/react-core/PhaseBanner';
103
106
  export { default as PhaseBannerTag } from '@digigov/react-core/PhaseBannerTag';
104
107
  export { default as PhaseBannerText } from '@digigov/react-core/PhaseBannerText';
@@ -118,6 +121,7 @@ export { default as SvgIcon } from '@digigov/react-core/SvgIcon';
118
121
  export { default as Table } from '@digigov/react-core/Table';
119
122
  export { default as TableBody } from '@digigov/react-core/TableBody';
120
123
  export { default as TableCaption } from '@digigov/react-core/TableCaption';
124
+ export { default as TableContainer } from '@digigov/react-core/TableContainer';
121
125
  export { default as TableDataCell } from '@digigov/react-core/TableDataCell';
122
126
  export { default as TableNoDataRow } from '@digigov/react-core/TableNoDataRow';
123
127
  export { default as TableHead } from '@digigov/react-core/TableHead';
@@ -0,0 +1,13 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the AccordionControls with button 1`] = `
4
+ <ForwardRef(AccordionControls)>
5
+ <div
6
+ className="govgr-accordion__controls"
7
+ >
8
+ <button>
9
+ open all
10
+ </button>
11
+ </div>
12
+ </ForwardRef(AccordionControls)>
13
+ `;
@@ -2,11 +2,11 @@
2
2
 
3
3
  exports[`renders the AccordionSection with no props 1`] = `
4
4
  <ForwardRef(AccordionSection)>
5
- <div
5
+ <details
6
6
  className="govgr-accordion__section"
7
7
  >
8
8
  hello
9
- </div>
9
+ </details>
10
10
  </ForwardRef(AccordionSection)>
11
11
  `;
12
12
 
@@ -14,11 +14,12 @@ exports[`renders the AccordionSection with open=false 1`] = `
14
14
  <ForwardRef(AccordionSection)
15
15
  open={false}
16
16
  >
17
- <div
17
+ <details
18
18
  className="govgr-accordion__section"
19
+ open={false}
19
20
  >
20
21
  hello
21
- </div>
22
+ </details>
22
23
  </ForwardRef(AccordionSection)>
23
24
  `;
24
25
 
@@ -26,10 +27,11 @@ exports[`renders the AccordionSection with open=true 1`] = `
26
27
  <ForwardRef(AccordionSection)
27
28
  open={true}
28
29
  >
29
- <div
30
- className="govgr-accordion__section-open govgr-accordion__section"
30
+ <details
31
+ className="govgr-accordion__section"
32
+ open={true}
31
33
  >
32
34
  hello
33
- </div>
35
+ </details>
34
36
  </ForwardRef(AccordionSection)>
35
37
  `;
@@ -2,7 +2,7 @@
2
2
 
3
3
  exports[`renders the AccordionSectionHeader with no props 1`] = `
4
4
  <ForwardRef(AccordionSectionHeader)>
5
- <div
5
+ <summary
6
6
  className="govgr-accordion__section-header"
7
7
  >
8
8
  <h2
@@ -14,6 +14,6 @@ exports[`renders the AccordionSectionHeader with no props 1`] = `
14
14
  hello
15
15
  </span>
16
16
  </h2>
17
- </div>
17
+ </summary>
18
18
  </ForwardRef(AccordionSectionHeader)>
19
19
  `;
@@ -5,7 +5,7 @@ import React from 'react';
5
5
  import clsx from 'clsx';
6
6
 
7
7
  /**
8
- * AccordionSectionHeader it should be inside the AccordionSection and it is the heading of the section.
8
+ * AccordionSectionHeader will be deprecated and implemented using AccordionSectionSummary and AccordionSectionSummaryHeading.
9
9
  */
10
10
  export var AccordionSectionHeader = /*#__PURE__*/React.forwardRef(function AccordionSectionHeader(_ref, ref) {
11
11
  var className = _ref.className,
@@ -0,0 +1,11 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the AccordionSectionSummary with no props 1`] = `
4
+ <ForwardRef(AccordionSectionSummary)>
5
+ <summary
6
+ className="govgr-accordion__section-summary"
7
+ >
8
+ hello
9
+ </summary>
10
+ </ForwardRef(AccordionSectionSummary)>
11
+ `;
@@ -0,0 +1,20 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["className", "children"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+
7
+ /**
8
+ * AccordionSectionSummary is used as a wrapper component for AccordionSectionSummaryHeading.
9
+ */
10
+ export var AccordionSectionSummary = /*#__PURE__*/React.forwardRef(function AccordionSectionSummary(_ref, ref) {
11
+ var className = _ref.className,
12
+ children = _ref.children,
13
+ props = _objectWithoutProperties(_ref, _excluded);
14
+
15
+ return /*#__PURE__*/React.createElement("summary", _extends({
16
+ ref: ref,
17
+ className: clsx(className, true && 'govgr-accordion__section-summary')
18
+ }, props), children);
19
+ });
20
+ export default AccordionSectionSummary;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import AccordionSectionSummary from '@digigov/react-core/AccordionSectionSummary';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(AccordionSectionSummary, null, "hello");
6
+
7
+ it('renders the AccordionSectionSummary with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
@@ -0,0 +1,15 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the AccordionSectionSummaryHeading with no props 1`] = `
4
+ <ForwardRef(AccordionSectionSummaryHeading)>
5
+ <h2
6
+ className="govgr-accordion__section-heading"
7
+ >
8
+ <span
9
+ className="govgr-accordion__section-button"
10
+ >
11
+ hello
12
+ </span>
13
+ </h2>
14
+ </ForwardRef(AccordionSectionSummaryHeading)>
15
+ `;
@@ -0,0 +1,22 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["className", "children"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+
7
+ /**
8
+ * AccordionSectionSummaryHeading should be placed inside AccordionSectionSummary.
9
+ */
10
+ export var AccordionSectionSummaryHeading = /*#__PURE__*/React.forwardRef(function AccordionSectionSummaryHeading(_ref, ref) {
11
+ var className = _ref.className,
12
+ children = _ref.children,
13
+ props = _objectWithoutProperties(_ref, _excluded);
14
+
15
+ return /*#__PURE__*/React.createElement("h2", _extends({
16
+ ref: ref,
17
+ className: clsx(className, true && 'govgr-accordion__section-heading')
18
+ }, props), /*#__PURE__*/React.createElement("span", {
19
+ className: clsx(true && 'govgr-accordion__section-button')
20
+ }, children));
21
+ });
22
+ export default AccordionSectionSummaryHeading;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import AccordionSectionSummaryHeading from '@digigov/react-core/AccordionSectionSummaryHeading';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(AccordionSectionSummaryHeading, null, "hello");
6
+
7
+ it('renders the AccordionSectionSummaryHeading with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
package/esm/Card/index.js CHANGED
@@ -20,7 +20,7 @@ export var Card = /*#__PURE__*/React.forwardRef(function Card(_ref, ref) {
20
20
 
21
21
  return /*#__PURE__*/React.createElement("div", _extends({
22
22
  ref: ref,
23
- className: clsx(className, variant === "border-top" && 'govgr-card--border-top', variant === "divider" && 'govgr-card--divider', variant === "border" && 'govgr-card--border', borderColor === "gray" && 'govgr-card--border-gray', borderColor === "dark" && 'govgr-card--border-dark', callToAction && 'govgr-card--cta', true && 'govgr-card')
23
+ className: clsx(className, variant === 'border-top' && 'govgr-card--border-top', borderColor === 'gray' && 'govgr-card--border-gray', borderColor === 'dark' && 'govgr-card--border-dark', variant === 'divider' && 'govgr-card--divider', variant === 'border' && 'govgr-card--border', callToAction && 'govgr-card--cta', true && 'govgr-card')
24
24
  }, props), /*#__PURE__*/React.createElement("div", {
25
25
  className: clsx(true && 'govgr-card__body')
26
26
  }, children));
@@ -1,5 +1,38 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`renders the Container with cols={false} prop 1`] = `
4
+ <ForwardRef(Container)
5
+ cols={false}
6
+ fullWidth={true}
7
+ >
8
+ <div
9
+ className="govgr-full-width-container"
10
+ >
11
+ <div
12
+ className=""
13
+ >
14
+ hello
15
+ </div>
16
+ </div>
17
+ </ForwardRef(Container)>
18
+ `;
19
+
20
+ exports[`renders the Container with fullWidth prop 1`] = `
21
+ <ForwardRef(Container)
22
+ fullWidth={true}
23
+ >
24
+ <div
25
+ className="govgr-full-width-container"
26
+ >
27
+ <div
28
+ className="govgr-main-wrapper"
29
+ >
30
+ hello
31
+ </div>
32
+ </div>
33
+ </ForwardRef(Container)>
34
+ `;
35
+
3
36
  exports[`renders the Container with no props 1`] = `
4
37
  <ForwardRef(Container)>
5
38
  <div
@@ -6,4 +6,21 @@ var _ref = /*#__PURE__*/React.createElement(Container, null, "hello");
6
6
 
7
7
  it('renders the Container with no props', function () {
8
8
  expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(Container, {
12
+ fullWidth: true
13
+ }, "hello");
14
+
15
+ it('renders the Container with fullWidth prop', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(Container, {
20
+ fullWidth: true,
21
+ cols: false
22
+ }, "hello");
23
+
24
+ it('renders the Container with cols={false} prop', function () {
25
+ expect(mount(_ref3)).toMatchSnapshot();
9
26
  });
@@ -4,11 +4,11 @@ exports[`renders the List with listStyle=bullet 1`] = `
4
4
  <ForwardRef(List)
5
5
  listStyle="bullet"
6
6
  >
7
- <ul
7
+ <ol
8
8
  className="govgr-list--bullet govgr-list"
9
9
  >
10
10
  hello
11
- </ul>
11
+ </ol>
12
12
  </ForwardRef(List)>
13
13
  `;
14
14
 
@@ -16,7 +16,7 @@ exports[`renders the List with listStyle=bullet 2`] = `
16
16
  <ForwardRef(List)
17
17
  listStyle="bullet"
18
18
  >
19
- <ul
19
+ <ol
20
20
  className="govgr-list--bullet govgr-list"
21
21
  >
22
22
  <ForwardRef(ListItem)>
@@ -33,7 +33,7 @@ exports[`renders the List with listStyle=bullet 2`] = `
33
33
  hello Katerina
34
34
  </li>
35
35
  </ForwardRef(ListItem)>
36
- </ul>
36
+ </ol>
37
37
  </ForwardRef(List)>
38
38
  `;
39
39
 
@@ -42,7 +42,7 @@ exports[`renders the List with listStyle=bullet and spaced 1`] = `
42
42
  listStyle="bullet"
43
43
  spaced={true}
44
44
  >
45
- <ul
45
+ <ol
46
46
  className="govgr-list--bullet govgr-list--spaced govgr-list"
47
47
  >
48
48
  <ForwardRef(ListItem)>
@@ -59,7 +59,7 @@ exports[`renders the List with listStyle=bullet and spaced 1`] = `
59
59
  hello Katerina
60
60
  </li>
61
61
  </ForwardRef(ListItem)>
62
- </ul>
62
+ </ol>
63
63
  </ForwardRef(List)>
64
64
  `;
65
65
 
@@ -67,11 +67,11 @@ exports[`renders the List with listStyle=number 1`] = `
67
67
  <ForwardRef(List)
68
68
  listStyle="number"
69
69
  >
70
- <ul
70
+ <ol
71
71
  className="govgr-list--number govgr-list"
72
72
  >
73
73
  hello
74
- </ul>
74
+ </ol>
75
75
  </ForwardRef(List)>
76
76
  `;
77
77
 
@@ -79,7 +79,7 @@ exports[`renders the List with listStyle=number 2`] = `
79
79
  <ForwardRef(List)
80
80
  listStyle="number"
81
81
  >
82
- <ul
82
+ <ol
83
83
  className="govgr-list--number govgr-list"
84
84
  >
85
85
  <ForwardRef(ListItem)>
@@ -96,7 +96,7 @@ exports[`renders the List with listStyle=number 2`] = `
96
96
  hello Katerina
97
97
  </li>
98
98
  </ForwardRef(ListItem)>
99
- </ul>
99
+ </ol>
100
100
  </ForwardRef(List)>
101
101
  `;
102
102
 
@@ -105,7 +105,7 @@ exports[`renders the List with listStyle=number and spaced 1`] = `
105
105
  listStyle="number"
106
106
  spaced={true}
107
107
  >
108
- <ul
108
+ <ol
109
109
  className="govgr-list--number govgr-list--spaced govgr-list"
110
110
  >
111
111
  <ForwardRef(ListItem)>
@@ -122,16 +122,16 @@ exports[`renders the List with listStyle=number and spaced 1`] = `
122
122
  hello Katerina
123
123
  </li>
124
124
  </ForwardRef(ListItem)>
125
- </ul>
125
+ </ol>
126
126
  </ForwardRef(List)>
127
127
  `;
128
128
 
129
129
  exports[`renders the List with no props 1`] = `
130
130
  <ForwardRef(List)>
131
- <ul
132
- className="govgr-list"
131
+ <ol
132
+ className="govgr-list--bullet govgr-list"
133
133
  >
134
134
  hello
135
- </ul>
135
+ </ol>
136
136
  </ForwardRef(List)>
137
137
  `;
package/esm/List/index.js CHANGED
@@ -10,14 +10,14 @@ import clsx from 'clsx';
10
10
  */
11
11
  export var List = /*#__PURE__*/React.forwardRef(function List(_ref, ref) {
12
12
  var _ref$listStyle = _ref.listStyle,
13
- listStyle = _ref$listStyle === void 0 ? 'bullet' : _ref$listStyle,
13
+ listStyle = _ref$listStyle === void 0 ? 'none' : _ref$listStyle,
14
14
  _ref$spaced = _ref.spaced,
15
15
  spaced = _ref$spaced === void 0 ? false : _ref$spaced,
16
16
  className = _ref.className,
17
17
  children = _ref.children,
18
18
  props = _objectWithoutProperties(_ref, _excluded);
19
19
 
20
- return /*#__PURE__*/React.createElement("ul", _extends({
20
+ return /*#__PURE__*/React.createElement("ol", _extends({
21
21
  ref: ref,
22
22
  className: clsx(className, listStyle === 'bullet' && 'govgr-list--bullet', listStyle === 'number' && 'govgr-list--number', spaced === true && 'govgr-list--spaced', true && 'govgr-list')
23
23
  }, props), children);
@@ -5,15 +5,7 @@ exports[`renders the Masthead with no props 1`] = `
5
5
  <div
6
6
  className="govgr-masthead govgr-background-dark"
7
7
  >
8
- <div
9
- className="govgr-width-container"
10
- >
11
- <div
12
- className="govgr-main-wrapper"
13
- >
14
- hello
15
- </div>
16
- </div>
8
+ hello
17
9
  </div>
18
10
  </ForwardRef(Masthead)>
19
11
  `;
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
- import Container from '@digigov/react-core/Container';
7
6
 
8
7
  /**
9
8
  * Use the Masthead on the top of the page.
@@ -16,6 +15,6 @@ export var Masthead = /*#__PURE__*/React.forwardRef(function Masthead(_ref, ref)
16
15
  return /*#__PURE__*/React.createElement("div", _extends({
17
16
  ref: ref,
18
17
  className: clsx(className, true && ['govgr-masthead', 'govgr-background-dark'])
19
- }, props), /*#__PURE__*/React.createElement(Container, null, children));
18
+ }, props), children);
20
19
  });
21
20
  export default Masthead;
@@ -0,0 +1,11 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the PhaseBannerHeaderContainer with no props 1`] = `
4
+ <ForwardRef(PhaseBannerHeaderContainer)>
5
+ <div
6
+ className="govgr-phase-banner_header"
7
+ >
8
+ hello
9
+ </div>
10
+ </ForwardRef(PhaseBannerHeaderContainer)>
11
+ `;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import PhaseBannerHeaderContainer from '@digigov/react-core/PhaseBannerHeaderContainer';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(PhaseBannerHeaderContainer, null, "hello");
6
+
7
+ it('renders the PhaseBannerHeaderContainer with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
@@ -0,0 +1,16 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["children"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+ export var PhaseBannerHeaderContainer = /*#__PURE__*/React.forwardRef(function PhaseBannerHeaderContainer(_ref, ref) {
7
+ var children = _ref.children,
8
+ props = _objectWithoutProperties(_ref, _excluded);
9
+
10
+ return /*#__PURE__*/React.createElement("div", _extends({
11
+ ref: ref
12
+ }, props, {
13
+ className: clsx(true && 'govgr-phase-banner_header')
14
+ }), children);
15
+ });
16
+ export default PhaseBannerHeaderContainer;
@@ -0,0 +1,23 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the TableContainer with border prop 1`] = `
4
+ <ForwardRef(TableContainer)
5
+ border={true}
6
+ >
7
+ <div
8
+ className="govgr-table-container--border govgr-table-container"
9
+ >
10
+ hello
11
+ </div>
12
+ </ForwardRef(TableContainer)>
13
+ `;
14
+
15
+ exports[`renders the TableContainer with no props 1`] = `
16
+ <ForwardRef(TableContainer)>
17
+ <div
18
+ className="govgr-table-container"
19
+ >
20
+ hello
21
+ </div>
22
+ </ForwardRef(TableContainer)>
23
+ `;
@@ -0,0 +1,22 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["border", "className", "children"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+
7
+ /**
8
+ * Use TableContainer as a wrapper for a Table. It is used when the table is wider that the viewport width.
9
+ */
10
+ export var TableContainer = /*#__PURE__*/React.forwardRef(function TableContainer(_ref, ref) {
11
+ var _ref$border = _ref.border,
12
+ border = _ref$border === void 0 ? false : _ref$border,
13
+ className = _ref.className,
14
+ children = _ref.children,
15
+ props = _objectWithoutProperties(_ref, _excluded);
16
+
17
+ return /*#__PURE__*/React.createElement("div", _extends({
18
+ ref: ref,
19
+ className: clsx(className, border && 'govgr-table-container--border', true && 'govgr-table-container')
20
+ }, props), children);
21
+ });
22
+ export default TableContainer;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import TableContainer from '@digigov/react-core/TableContainer';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(TableContainer, null, "hello");
6
+
7
+ it('renders the TableContainer with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(TableContainer, {
12
+ border: true
13
+ }, "hello");
14
+
15
+ it('renders the TableContainer with border prop', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });