@digigov/react-core 0.13.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.
- package/CHANGELOG.md +12 -1
- package/Container/__snapshots__/index.test.tsx.snap +33 -0
- package/Container/index.test.js +17 -0
- package/Masthead/__snapshots__/index.test.tsx.snap +1 -9
- package/Masthead/index.js +1 -3
- package/es/Container/__snapshots__/index.test.tsx.snap +33 -0
- package/es/Container/index.test.js +17 -0
- package/es/Masthead/__snapshots__/index.test.tsx.snap +1 -9
- package/es/Masthead/index.js +1 -2
- package/esm/Container/__snapshots__/index.test.tsx.snap +33 -0
- package/esm/Container/index.test.js +17 -0
- package/esm/Masthead/__snapshots__/index.test.tsx.snap +1 -9
- package/esm/Masthead/index.js +1 -2
- package/esm/index.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# Change Log - @digigov/react-core
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 16 May 2022 14:42:45 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.14.0
|
|
6
|
+
Mon, 16 May 2022 14:42:45 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- remove Container from Masthead component
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Change MIT License to BSD-2-Clause
|
|
4
15
|
|
|
5
16
|
## 0.13.0
|
|
6
17
|
Tue, 10 May 2022 14:04:00 GMT
|
|
@@ -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
|
package/Container/index.test.js
CHANGED
|
@@ -12,4 +12,21 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Container["default"], n
|
|
|
12
12
|
|
|
13
13
|
it('renders the Container with no props', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Container["default"], {
|
|
18
|
+
fullWidth: true
|
|
19
|
+
}, "hello");
|
|
20
|
+
|
|
21
|
+
it('renders the Container with fullWidth prop', function () {
|
|
22
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Container["default"], {
|
|
26
|
+
fullWidth: true,
|
|
27
|
+
cols: false
|
|
28
|
+
}, "hello");
|
|
29
|
+
|
|
30
|
+
it('renders the Container with cols={false} prop', function () {
|
|
31
|
+
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
15
32
|
});
|
|
@@ -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
|
-
|
|
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
|
`;
|
package/Masthead/index.js
CHANGED
|
@@ -15,8 +15,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
15
15
|
|
|
16
16
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
17
17
|
|
|
18
|
-
var _Container = _interopRequireDefault(require("@digigov/react-core/Container"));
|
|
19
|
-
|
|
20
18
|
var _excluded = ["className", "children"];
|
|
21
19
|
|
|
22
20
|
/**
|
|
@@ -29,7 +27,7 @@ var Masthead = /*#__PURE__*/_react["default"].forwardRef(function Masthead(_ref,
|
|
|
29
27
|
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({
|
|
30
28
|
ref: ref,
|
|
31
29
|
className: (0, _clsx["default"])(className, true && ['govgr-masthead', 'govgr-background-dark'])
|
|
32
|
-
}, props),
|
|
30
|
+
}, props), children);
|
|
33
31
|
});
|
|
34
32
|
|
|
35
33
|
exports.Masthead = Masthead;
|
|
@@ -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
|
});
|
|
@@ -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
|
-
|
|
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
|
`;
|
package/es/Masthead/index.js
CHANGED
|
@@ -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),
|
|
18
|
+
}, props), children);
|
|
20
19
|
});
|
|
21
20
|
export default Masthead;
|
|
@@ -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
|
});
|
|
@@ -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
|
-
|
|
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
|
`;
|
package/esm/Masthead/index.js
CHANGED
|
@@ -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),
|
|
18
|
+
}, props), children);
|
|
20
19
|
});
|
|
21
20
|
export default Masthead;
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** @license Digigov v0.
|
|
1
|
+
/** @license Digigov v0.14.0
|
|
2
2
|
*
|
|
3
|
-
* This source code is licensed under the
|
|
3
|
+
* This source code is licensed under the BSD-2-Clause license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
5
5
|
*/
|
|
6
6
|
export { default as Accordion } from '@digigov/react-core/Accordion';
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "@digigov react core components",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
|
-
"license": "
|
|
6
|
+
"license": "BSD-2-Clause",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"module": "./esm/index.js",
|
|
9
9
|
"publishConfig": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@digigov/css": "0.
|
|
14
|
+
"@digigov/css": "0.24.0",
|
|
15
15
|
"clsx": "1.1.1",
|
|
16
16
|
"react": "16.14.0",
|
|
17
17
|
"react-dom": "16.14.0"
|