@digigov/react-core 0.12.0 → 0.13.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/AccordionControls/__snapshots__/index.test.tsx.snap +13 -0
- package/AccordionSection/__snapshots__/index.test.tsx.snap +9 -7
- package/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +2 -2
- package/AccordionSectionHeader/index.d.ts +1 -1
- package/AccordionSectionHeader/index.js +1 -1
- package/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +11 -0
- package/AccordionSectionSummary/index.d.ts +9 -0
- package/AccordionSectionSummary/index.js +35 -0
- package/AccordionSectionSummary/index.test.d.ts +1 -0
- package/AccordionSectionSummary/index.test.js +15 -0
- package/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +15 -0
- package/AccordionSectionSummaryHeading/index.d.ts +9 -0
- package/AccordionSectionSummaryHeading/index.js +37 -0
- package/AccordionSectionSummaryHeading/index.test.d.ts +1 -0
- package/AccordionSectionSummaryHeading/index.test.js +15 -0
- package/CHANGELOG.md +14 -1
- package/Card/index.d.ts +12 -2
- package/Card/index.js +1 -1
- package/List/__snapshots__/index.test.tsx.snap +15 -15
- package/List/index.d.ts +2 -2
- package/List/index.js +2 -2
- package/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +11 -0
- package/PhaseBannerHeaderContainer/inde.test.d.ts +1 -0
- package/PhaseBannerHeaderContainer/inde.test.js +15 -0
- package/PhaseBannerHeaderContainer/index.d.ts +8 -0
- package/PhaseBannerHeaderContainer/index.js +32 -0
- package/es/AccordionControls/__snapshots__/index.test.tsx.snap +13 -0
- package/es/AccordionSection/__snapshots__/index.test.tsx.snap +9 -7
- package/es/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +2 -2
- package/es/AccordionSectionHeader/index.js +1 -1
- package/es/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +11 -0
- package/es/AccordionSectionSummary/index.js +20 -0
- package/es/AccordionSectionSummary/index.test.js +9 -0
- package/es/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +15 -0
- package/es/AccordionSectionSummaryHeading/index.js +22 -0
- package/es/AccordionSectionSummaryHeading/index.test.js +9 -0
- package/es/Card/index.js +1 -1
- package/es/List/__snapshots__/index.test.tsx.snap +15 -15
- package/es/List/index.js +2 -2
- package/es/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +11 -0
- package/es/PhaseBannerHeaderContainer/inde.test.js +9 -0
- package/es/PhaseBannerHeaderContainer/index.js +16 -0
- package/es/index.js +3 -0
- package/esm/AccordionControls/__snapshots__/index.test.tsx.snap +13 -0
- package/esm/AccordionSection/__snapshots__/index.test.tsx.snap +9 -7
- package/esm/AccordionSectionHeader/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/AccordionSectionHeader/index.js +1 -1
- package/esm/AccordionSectionSummary/__snapshots__/index.test.tsx.snap +11 -0
- package/esm/AccordionSectionSummary/index.js +20 -0
- package/esm/AccordionSectionSummary/index.test.js +9 -0
- package/esm/AccordionSectionSummaryHeading/__snapshots__/index.test.tsx.snap +15 -0
- package/esm/AccordionSectionSummaryHeading/index.js +22 -0
- package/esm/AccordionSectionSummaryHeading/index.test.js +9 -0
- package/esm/Card/index.js +1 -1
- package/esm/List/__snapshots__/index.test.tsx.snap +15 -15
- package/esm/List/index.js +2 -2
- package/esm/PhaseBannerHeaderContainer/__snapshots__/inde.test.tsx.snap +11 -0
- package/esm/PhaseBannerHeaderContainer/inde.test.js +9 -0
- package/esm/PhaseBannerHeaderContainer/index.js +16 -0
- package/esm/index.js +4 -1
- package/index.d.ts +3 -0
- package/index.js +24 -0
- package/package.json +2 -2
|
@@ -4,11 +4,11 @@ exports[`renders the List with listStyle=bullet 1`] = `
|
|
|
4
4
|
<ForwardRef(List)
|
|
5
5
|
listStyle="bullet"
|
|
6
6
|
>
|
|
7
|
-
<
|
|
7
|
+
<ol
|
|
8
8
|
className="govgr-list--bullet govgr-list"
|
|
9
9
|
>
|
|
10
10
|
hello
|
|
11
|
-
</
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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
|
-
<
|
|
70
|
+
<ol
|
|
71
71
|
className="govgr-list--number govgr-list"
|
|
72
72
|
>
|
|
73
73
|
hello
|
|
74
|
-
</
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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
|
-
<
|
|
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
|
-
</
|
|
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
|
-
<
|
|
132
|
-
className="govgr-list"
|
|
131
|
+
<ol
|
|
132
|
+
className="govgr-list--bullet govgr-list"
|
|
133
133
|
>
|
|
134
134
|
hello
|
|
135
|
-
</
|
|
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 ? '
|
|
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("
|
|
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);
|
|
@@ -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;
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Digigov v0.
|
|
1
|
+
/** @license Digigov v0.13.0
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -8,6 +8,8 @@ export { default as AccordionControls } from '@digigov/react-core/AccordionContr
|
|
|
8
8
|
export { default as AccordionSection } from '@digigov/react-core/AccordionSection';
|
|
9
9
|
export { default as AccordionSectionContent } from '@digigov/react-core/AccordionSectionContent';
|
|
10
10
|
export { default as AccordionSectionHeader } from '@digigov/react-core/AccordionSectionHeader';
|
|
11
|
+
export { default as AccordionSectionSummary } from '@digigov/react-core/AccordionSectionSummary';
|
|
12
|
+
export { default as AccordionSectionSummaryHeading } from '@digigov/react-core/AccordionSectionSummaryHeading';
|
|
11
13
|
export { default as ArrowIcon } from '@digigov/react-core/ArrowIcon';
|
|
12
14
|
export { default as Aside } from '@digigov/react-core/Aside';
|
|
13
15
|
export { default as BackLink } from '@digigov/react-core/BackLink';
|
|
@@ -104,6 +106,7 @@ export { default as PageTitleCaption } from '@digigov/react-core/PageTitleCaptio
|
|
|
104
106
|
export { default as PageTitleHeading } from '@digigov/react-core/PageTitleHeading';
|
|
105
107
|
export { default as PageTitleSection } from '@digigov/react-core/PageTitleSection';
|
|
106
108
|
export { default as Paragraph } from '@digigov/react-core/Paragraph';
|
|
109
|
+
export { default as PhaseBannerHeaderContainer } from '@digigov/react-core/PhaseBannerHeaderContainer';
|
|
107
110
|
export { default as PhaseBanner } from '@digigov/react-core/PhaseBanner';
|
|
108
111
|
export { default as PhaseBannerTag } from '@digigov/react-core/PhaseBannerTag';
|
|
109
112
|
export { default as PhaseBannerText } from '@digigov/react-core/PhaseBannerText';
|
package/index.d.ts
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';
|
package/index.js
CHANGED
|
@@ -35,6 +35,18 @@ Object.defineProperty(exports, "AccordionSectionHeader", {
|
|
|
35
35
|
return _AccordionSectionHeader["default"];
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
+
Object.defineProperty(exports, "AccordionSectionSummary", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _AccordionSectionSummary["default"];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "AccordionSectionSummaryHeading", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _AccordionSectionSummaryHeading["default"];
|
|
48
|
+
}
|
|
49
|
+
});
|
|
38
50
|
Object.defineProperty(exports, "ArrowIcon", {
|
|
39
51
|
enumerable: true,
|
|
40
52
|
get: function get() {
|
|
@@ -611,6 +623,12 @@ Object.defineProperty(exports, "PhaseBanner", {
|
|
|
611
623
|
return _PhaseBanner["default"];
|
|
612
624
|
}
|
|
613
625
|
});
|
|
626
|
+
Object.defineProperty(exports, "PhaseBannerHeaderContainer", {
|
|
627
|
+
enumerable: true,
|
|
628
|
+
get: function get() {
|
|
629
|
+
return _PhaseBannerHeaderContainer["default"];
|
|
630
|
+
}
|
|
631
|
+
});
|
|
614
632
|
Object.defineProperty(exports, "PhaseBannerTag", {
|
|
615
633
|
enumerable: true,
|
|
616
634
|
get: function get() {
|
|
@@ -832,6 +850,10 @@ var _AccordionSectionContent = _interopRequireDefault(require("@digigov/react-co
|
|
|
832
850
|
|
|
833
851
|
var _AccordionSectionHeader = _interopRequireDefault(require("@digigov/react-core/AccordionSectionHeader"));
|
|
834
852
|
|
|
853
|
+
var _AccordionSectionSummary = _interopRequireDefault(require("@digigov/react-core/AccordionSectionSummary"));
|
|
854
|
+
|
|
855
|
+
var _AccordionSectionSummaryHeading = _interopRequireDefault(require("@digigov/react-core/AccordionSectionSummaryHeading"));
|
|
856
|
+
|
|
835
857
|
var _ArrowIcon = _interopRequireDefault(require("@digigov/react-core/ArrowIcon"));
|
|
836
858
|
|
|
837
859
|
var _Aside = _interopRequireDefault(require("@digigov/react-core/Aside"));
|
|
@@ -1024,6 +1046,8 @@ var _PageTitleSection = _interopRequireDefault(require("@digigov/react-core/Page
|
|
|
1024
1046
|
|
|
1025
1047
|
var _Paragraph = _interopRequireDefault(require("@digigov/react-core/Paragraph"));
|
|
1026
1048
|
|
|
1049
|
+
var _PhaseBannerHeaderContainer = _interopRequireDefault(require("@digigov/react-core/PhaseBannerHeaderContainer"));
|
|
1050
|
+
|
|
1027
1051
|
var _PhaseBanner = _interopRequireDefault(require("@digigov/react-core/PhaseBanner"));
|
|
1028
1052
|
|
|
1029
1053
|
var _PhaseBannerTag = _interopRequireDefault(require("@digigov/react-core/PhaseBannerTag"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "@digigov react core components",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@digigov/css": "0.
|
|
14
|
+
"@digigov/css": "0.23.0",
|
|
15
15
|
"clsx": "1.1.1",
|
|
16
16
|
"react": "16.14.0",
|
|
17
17
|
"react-dom": "16.14.0"
|