@digigov/react-core 1.0.0-079f34f3d → 1.0.0-290a96e2
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/Accordion/__snapshots__/index.test.tsx.snap +2 -2
- package/AdminAside/index.d.ts +1 -1
- package/AdminContainer/__snapshots__/index.test.tsx.snap +21 -11
- package/AdminContainer/index.d.ts +1 -1
- package/AdminMain/index.d.ts +1 -1
- package/AdminTopSection/index.d.ts +1 -1
- package/Aside/__snapshots__/index.test.tsx.snap +16 -7
- package/Aside/index.d.ts +5 -5
- package/Aside/index.js +9 -5
- package/BottomInfo/__snapshots__/index.test.tsx.snap +11 -15
- package/BottomInfo/index.d.ts +1 -1
- package/BottomInfoContainer/__snapshots__/index.test.tsx.snap +11 -15
- package/BottomInfoContainer/index.d.ts +1 -1
- package/BottomInfoContent/__snapshots__/index.test.tsx.snap +3 -6
- package/BottomInfoContent/index.d.ts +1 -1
- package/BottomInfoContent/index.js +2 -11
- package/ChipHeading/__snapshots__/index.test.tsx.snap +10 -5
- package/CircularProgress/__snapshots__/index.test.tsx.snap +12 -12
- package/CircularProgress/index.js +2 -2
- package/Container/__snapshots__/index.test.tsx.snap +32 -44
- package/Container/index.d.ts +12 -12
- package/Container/index.js +7 -6
- package/Drawer/__snapshots__/index.test.tsx.snap +10 -5
- package/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
- package/FieldContainer/index.d.ts +1 -1
- package/FooterContainer/__snapshots__/index.test.tsx.snap +10 -14
- package/FooterContainer/index.d.ts +1 -1
- package/FooterHeading/__snapshots__/index.test.tsx.snap +30 -15
- package/Grid/index.d.ts +64 -32
- package/Grid/index.js +1 -1
- package/Heading/__snapshots__/index.test.tsx.snap +190 -95
- package/HeadingCaption/__snapshots__/index.test.tsx.snap +40 -20
- package/Main/__snapshots__/index.test.tsx.snap +16 -7
- package/Main/index.d.ts +4 -4
- package/Main/index.js +7 -4
- package/ModalHeading/__snapshots__/index.test.tsx.snap +12 -6
- package/NavMenuContainer/__snapshots__/index.test.tsx.snap +13 -15
- package/NavMenuContainer/index.js +1 -0
- package/NavMenuContent/__snapshots__/index.test.tsx.snap +5 -3
- package/NavMenuContent/index.d.ts +1 -1
- package/NavMenuContent/index.js +3 -1
- package/NavMenuTitle/__snapshots__/index.test.tsx.snap +4 -3
- package/NavMenuTitle/index.js +2 -1
- package/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +12 -6
- package/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +10 -5
- package/PageTitleCaption/__snapshots__/index.test.tsx.snap +50 -25
- package/PageTitleHeading/__snapshots__/index.test.tsx.snap +50 -25
- package/TabsHeading/__snapshots__/index.test.tsx.snap +30 -15
- package/TabsListItem/__snapshots__/index.test.tsx.snap +25 -25
- package/TaskListItemHeading/__snapshots__/index.test.tsx.snap +66 -30
- package/TextInput/__snapshots__/index.test.tsx.snap +72 -72
- package/Unpurge/index.js +1 -1
- package/es/Accordion/__snapshots__/index.test.tsx.snap +2 -2
- package/es/AdminContainer/__snapshots__/index.test.tsx.snap +21 -11
- package/es/Aside/__snapshots__/index.test.tsx.snap +16 -7
- package/es/Aside/index.js +9 -5
- package/es/BottomInfo/__snapshots__/index.test.tsx.snap +11 -15
- package/es/BottomInfoContainer/__snapshots__/index.test.tsx.snap +11 -15
- package/es/BottomInfoContent/__snapshots__/index.test.tsx.snap +3 -6
- package/es/BottomInfoContent/index.js +2 -11
- package/es/ChipHeading/__snapshots__/index.test.tsx.snap +10 -5
- package/es/CircularProgress/__snapshots__/index.test.tsx.snap +12 -12
- package/es/CircularProgress/index.js +2 -2
- package/es/Container/__snapshots__/index.test.tsx.snap +32 -44
- package/es/Container/index.js +7 -6
- package/es/Drawer/__snapshots__/index.test.tsx.snap +10 -5
- package/es/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
- package/es/FooterContainer/__snapshots__/index.test.tsx.snap +10 -14
- package/es/FooterHeading/__snapshots__/index.test.tsx.snap +30 -15
- package/es/Grid/index.js +1 -1
- package/es/Heading/__snapshots__/index.test.tsx.snap +190 -95
- package/es/HeadingCaption/__snapshots__/index.test.tsx.snap +40 -20
- package/es/Main/__snapshots__/index.test.tsx.snap +16 -7
- package/es/Main/index.js +7 -4
- package/es/ModalHeading/__snapshots__/index.test.tsx.snap +12 -6
- package/es/NavMenuContainer/__snapshots__/index.test.tsx.snap +13 -15
- package/es/NavMenuContainer/index.js +1 -0
- package/es/NavMenuContent/__snapshots__/index.test.tsx.snap +5 -3
- package/es/NavMenuContent/index.js +3 -1
- package/es/NavMenuTitle/__snapshots__/index.test.tsx.snap +4 -3
- package/es/NavMenuTitle/index.js +2 -1
- package/es/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +12 -6
- package/es/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +10 -5
- package/es/PageTitleCaption/__snapshots__/index.test.tsx.snap +50 -25
- package/es/PageTitleHeading/__snapshots__/index.test.tsx.snap +50 -25
- package/es/TabsHeading/__snapshots__/index.test.tsx.snap +30 -15
- package/es/TabsListItem/__snapshots__/index.test.tsx.snap +25 -25
- package/es/TaskListItemHeading/__snapshots__/index.test.tsx.snap +66 -30
- package/es/TextInput/__snapshots__/index.test.tsx.snap +72 -72
- package/es/Unpurge/index.js +1 -1
- package/es/index.js +1 -1
- package/es/registry.js +0 -2
- package/esm/Accordion/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/AdminContainer/__snapshots__/index.test.tsx.snap +21 -11
- package/esm/Aside/__snapshots__/index.test.tsx.snap +16 -7
- package/esm/Aside/index.js +9 -5
- package/esm/BottomInfo/__snapshots__/index.test.tsx.snap +11 -15
- package/esm/BottomInfoContainer/__snapshots__/index.test.tsx.snap +11 -15
- package/esm/BottomInfoContent/__snapshots__/index.test.tsx.snap +3 -6
- package/esm/BottomInfoContent/index.js +2 -11
- package/esm/ChipHeading/__snapshots__/index.test.tsx.snap +10 -5
- package/esm/CircularProgress/__snapshots__/index.test.tsx.snap +12 -12
- package/esm/CircularProgress/index.js +2 -2
- package/esm/Container/__snapshots__/index.test.tsx.snap +32 -44
- package/esm/Container/index.js +7 -6
- package/esm/Drawer/__snapshots__/index.test.tsx.snap +10 -5
- package/esm/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
- package/esm/FooterContainer/__snapshots__/index.test.tsx.snap +10 -14
- package/esm/FooterHeading/__snapshots__/index.test.tsx.snap +30 -15
- package/esm/Grid/index.js +1 -1
- package/esm/Heading/__snapshots__/index.test.tsx.snap +190 -95
- package/esm/HeadingCaption/__snapshots__/index.test.tsx.snap +40 -20
- package/esm/Main/__snapshots__/index.test.tsx.snap +16 -7
- package/esm/Main/index.js +7 -4
- package/esm/ModalHeading/__snapshots__/index.test.tsx.snap +12 -6
- package/esm/NavMenuContainer/__snapshots__/index.test.tsx.snap +13 -15
- package/esm/NavMenuContainer/index.js +1 -0
- package/esm/NavMenuContent/__snapshots__/index.test.tsx.snap +5 -3
- package/esm/NavMenuContent/index.js +3 -1
- package/esm/NavMenuTitle/__snapshots__/index.test.tsx.snap +4 -3
- package/esm/NavMenuTitle/index.js +2 -1
- package/esm/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +12 -6
- package/esm/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +10 -5
- package/esm/PageTitleCaption/__snapshots__/index.test.tsx.snap +50 -25
- package/esm/PageTitleHeading/__snapshots__/index.test.tsx.snap +50 -25
- package/esm/TabsHeading/__snapshots__/index.test.tsx.snap +30 -15
- package/esm/TabsListItem/__snapshots__/index.test.tsx.snap +25 -25
- package/esm/TaskListItemHeading/__snapshots__/index.test.tsx.snap +66 -30
- package/esm/TextInput/__snapshots__/index.test.tsx.snap +72 -72
- package/esm/Unpurge/index.js +1 -1
- package/esm/index.js +2 -2
- package/esm/registry.js +0 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +3 -3
- package/registry.d.ts +0 -1
- package/registry.js +0 -3
- package/src/Accordion/__snapshots__/index.test.tsx.snap +2 -2
- package/src/AdminContainer/__snapshots__/index.test.tsx.snap +21 -11
- package/src/Aside/__snapshots__/index.test.tsx.snap +16 -7
- package/src/Aside/index.tsx +10 -7
- package/src/BottomInfo/__snapshots__/index.test.tsx.snap +11 -15
- package/src/BottomInfoContainer/__snapshots__/index.test.tsx.snap +11 -15
- package/src/BottomInfoContent/__snapshots__/index.test.tsx.snap +3 -6
- package/src/BottomInfoContent/index.tsx +1 -4
- package/src/ChipHeading/__snapshots__/index.test.tsx.snap +10 -5
- package/src/CircularProgress/__snapshots__/index.test.tsx.snap +12 -12
- package/src/CircularProgress/index.tsx +2 -2
- package/src/Container/__snapshots__/index.test.tsx.snap +32 -44
- package/src/Container/index.tsx +16 -23
- package/src/Drawer/__snapshots__/index.test.tsx.snap +10 -5
- package/src/DropdownContent/__snapshots__/index.test.tsx.snap +2 -2
- package/src/FooterContainer/__snapshots__/index.test.tsx.snap +10 -14
- package/src/FooterHeading/__snapshots__/index.test.tsx.snap +30 -15
- package/src/Grid/index.tsx +82 -39
- package/src/Heading/__snapshots__/index.test.tsx.snap +190 -95
- package/src/HeadingCaption/__snapshots__/index.test.tsx.snap +40 -20
- package/src/Main/__snapshots__/index.test.tsx.snap +16 -7
- package/src/Main/index.tsx +9 -6
- package/src/ModalHeading/__snapshots__/index.test.tsx.snap +12 -6
- package/src/NavMenuContainer/__snapshots__/index.test.tsx.snap +13 -15
- package/src/NavMenuContainer/index.tsx +1 -0
- package/src/NavMenuContent/__snapshots__/index.test.tsx.snap +5 -3
- package/src/NavMenuContent/index.tsx +1 -1
- package/src/NavMenuTitle/__snapshots__/index.test.tsx.snap +4 -3
- package/src/NavMenuTitle/index.tsx +2 -1
- package/src/NotificationBannerHeader/__snapshots__/index.test.tsx.snap +12 -6
- package/src/NotificationBannerHeading/__snapshots__/index.test.tsx.snap +10 -5
- package/src/PageTitleCaption/__snapshots__/index.test.tsx.snap +50 -25
- package/src/PageTitleHeading/__snapshots__/index.test.tsx.snap +50 -25
- package/src/TabsHeading/__snapshots__/index.test.tsx.snap +30 -15
- package/src/TabsListItem/__snapshots__/index.test.tsx.snap +25 -25
- package/src/TaskListItemHeading/__snapshots__/index.test.tsx.snap +66 -30
- package/src/TextInput/__snapshots__/index.test.tsx.snap +72 -72
- package/src/Unpurge/index.tsx +40 -0
- package/src/index.ts +1 -1
- package/src/registry.js +0 -2
- package/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/Icon/index.d.ts +0 -25
- package/Icon/index.js +0 -58
- package/Icon/index.test.d.ts +0 -1
- package/Icon/index.test.js +0 -88
- package/es/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/es/Icon/index.js +0 -34
- package/es/Icon/index.test.js +0 -82
- package/esm/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/esm/Icon/index.js +0 -34
- package/esm/Icon/index.test.js +0 -82
- package/src/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/src/Icon/index.test.tsx +0 -36
- package/src/Icon/index.tsx +0 -63
package/esm/Aside/index.js
CHANGED
|
@@ -3,21 +3,25 @@ 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
|
|
6
|
+
import Grid from '@digigov/react-core/Grid';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Use this inside the
|
|
10
|
-
* that will be shown on the left one third of the page
|
|
9
|
+
* Use this inside the Container component for additional content.
|
|
10
|
+
* that will be shown on the left one third of the page.
|
|
11
11
|
*/
|
|
12
12
|
export var Aside = /*#__PURE__*/React.forwardRef(function Aside(_ref, ref) {
|
|
13
13
|
var className = _ref.className,
|
|
14
14
|
children = _ref.children,
|
|
15
15
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
16
|
|
|
17
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
+
return /*#__PURE__*/React.createElement(Grid, _extends({
|
|
18
|
+
item: true,
|
|
19
|
+
xs: 12,
|
|
20
|
+
md: 4,
|
|
21
|
+
spacing: 4,
|
|
18
22
|
as: "aside",
|
|
19
23
|
ref: ref,
|
|
20
|
-
className: clsx(className, true &&
|
|
24
|
+
className: clsx(className, true && 'govgr-aside')
|
|
21
25
|
}, props), children);
|
|
22
26
|
});
|
|
23
27
|
export default Aside;
|
|
@@ -5,25 +5,21 @@ exports[`renders the BottomInfo with no props 1`] = `
|
|
|
5
5
|
<ForwardRef(Container)
|
|
6
6
|
className="govgr-bottom-info"
|
|
7
7
|
>
|
|
8
|
-
<ForwardRef(
|
|
9
|
-
as="div"
|
|
8
|
+
<ForwardRef(Grid)
|
|
10
9
|
className="govgr-bottom-info govgr-container"
|
|
10
|
+
container={true}
|
|
11
11
|
>
|
|
12
|
-
<
|
|
13
|
-
|
|
12
|
+
<ForwardRef(Base)
|
|
13
|
+
as="div"
|
|
14
|
+
className="govgr-bottom-info govgr-container govgr-grid"
|
|
14
15
|
>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
className="govgr-main-wrapper"
|
|
16
|
+
<div
|
|
17
|
+
className="govgr-bottom-info govgr-container govgr-grid"
|
|
18
18
|
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</div>
|
|
24
|
-
</ForwardRef(Base)>
|
|
25
|
-
</div>
|
|
26
|
-
</ForwardRef(Base)>
|
|
19
|
+
hello
|
|
20
|
+
</div>
|
|
21
|
+
</ForwardRef(Base)>
|
|
22
|
+
</ForwardRef(Grid)>
|
|
27
23
|
</ForwardRef(Container)>
|
|
28
24
|
</ForwardRef(BottomInfo)>
|
|
29
25
|
`;
|
|
@@ -5,25 +5,21 @@ exports[`renders the BottomInfoContainer with no props 1`] = `
|
|
|
5
5
|
<ForwardRef(Container)
|
|
6
6
|
className="govgr-bottom-info__container"
|
|
7
7
|
>
|
|
8
|
-
<ForwardRef(
|
|
9
|
-
as="div"
|
|
8
|
+
<ForwardRef(Grid)
|
|
10
9
|
className="govgr-bottom-info__container govgr-container"
|
|
10
|
+
container={true}
|
|
11
11
|
>
|
|
12
|
-
<
|
|
13
|
-
|
|
12
|
+
<ForwardRef(Base)
|
|
13
|
+
as="div"
|
|
14
|
+
className="govgr-bottom-info__container govgr-container govgr-grid"
|
|
14
15
|
>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
className="govgr-main-wrapper"
|
|
16
|
+
<div
|
|
17
|
+
className="govgr-bottom-info__container govgr-container govgr-grid"
|
|
18
18
|
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</div>
|
|
24
|
-
</ForwardRef(Base)>
|
|
25
|
-
</div>
|
|
26
|
-
</ForwardRef(Base)>
|
|
19
|
+
hello
|
|
20
|
+
</div>
|
|
21
|
+
</ForwardRef(Base)>
|
|
22
|
+
</ForwardRef(Grid)>
|
|
27
23
|
</ForwardRef(Container)>
|
|
28
24
|
</ForwardRef(BottomInfoContainer)>
|
|
29
25
|
`;
|
|
@@ -5,17 +5,14 @@ exports[`renders the BottomInfoContent with no props 1`] = `
|
|
|
5
5
|
<ForwardRef(Grid)
|
|
6
6
|
className="govgr-bottom-info__content"
|
|
7
7
|
item={true}
|
|
8
|
-
|
|
9
|
-
md={3}
|
|
10
|
-
xl={3}
|
|
11
|
-
xs={3}
|
|
8
|
+
xs={12}
|
|
12
9
|
>
|
|
13
10
|
<ForwardRef(Base)
|
|
14
11
|
as="div"
|
|
15
|
-
className="govgr-bottom-info__content xs:govgr-grid__col-span-
|
|
12
|
+
className="govgr-bottom-info__content xs:govgr-grid__col-span-12"
|
|
16
13
|
>
|
|
17
14
|
<div
|
|
18
|
-
className="govgr-bottom-info__content xs:govgr-grid__col-span-
|
|
15
|
+
className="govgr-bottom-info__content xs:govgr-grid__col-span-12"
|
|
19
16
|
>
|
|
20
17
|
hello
|
|
21
18
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["className", "xs", "
|
|
3
|
+
var _excluded = ["className", "xs", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import Grid from '@digigov/react-core/Grid';
|
|
@@ -11,22 +11,13 @@ import Grid from '@digigov/react-core/Grid';
|
|
|
11
11
|
export var BottomInfoContent = /*#__PURE__*/React.forwardRef(function BottomInfoContent(_ref, ref) {
|
|
12
12
|
var className = _ref.className,
|
|
13
13
|
_ref$xs = _ref.xs,
|
|
14
|
-
xs = _ref$xs === void 0 ?
|
|
15
|
-
_ref$md = _ref.md,
|
|
16
|
-
md = _ref$md === void 0 ? 3 : _ref$md,
|
|
17
|
-
_ref$lg = _ref.lg,
|
|
18
|
-
lg = _ref$lg === void 0 ? 3 : _ref$lg,
|
|
19
|
-
_ref$xl = _ref.xl,
|
|
20
|
-
xl = _ref$xl === void 0 ? 3 : _ref$xl,
|
|
14
|
+
xs = _ref$xs === void 0 ? 12 : _ref$xs,
|
|
21
15
|
children = _ref.children,
|
|
22
16
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
17
|
|
|
24
18
|
return /*#__PURE__*/React.createElement(Grid, _extends({
|
|
25
19
|
item: true,
|
|
26
20
|
xs: xs,
|
|
27
|
-
md: md,
|
|
28
|
-
lg: lg,
|
|
29
|
-
xl: xl,
|
|
30
21
|
ref: ref,
|
|
31
22
|
className: clsx(className, true && 'govgr-bottom-info__content')
|
|
32
23
|
}, props), children);
|
|
@@ -6,16 +6,21 @@ exports[`renders the ChipHeading with no props 1`] = `
|
|
|
6
6
|
element="h2"
|
|
7
7
|
size="xs"
|
|
8
8
|
>
|
|
9
|
-
<ForwardRef(
|
|
9
|
+
<ForwardRef(Typography)
|
|
10
10
|
as="h2"
|
|
11
11
|
className="govgr-heading-xs"
|
|
12
12
|
>
|
|
13
|
-
<
|
|
13
|
+
<ForwardRef(Base)
|
|
14
|
+
as="h2"
|
|
14
15
|
className="govgr-heading-xs"
|
|
15
16
|
>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
<h2
|
|
18
|
+
className="govgr-heading-xs"
|
|
19
|
+
>
|
|
20
|
+
hello
|
|
21
|
+
</h2>
|
|
22
|
+
</ForwardRef(Base)>
|
|
23
|
+
</ForwardRef(Typography)>
|
|
19
24
|
</ForwardRef(Heading)>
|
|
20
25
|
</ForwardRef(ChipHeading)>
|
|
21
26
|
`;
|
|
@@ -16,11 +16,11 @@ exports[`renders the CircularProgress 1`] = `
|
|
|
16
16
|
viewBox="0 0 200 200"
|
|
17
17
|
>
|
|
18
18
|
<path
|
|
19
|
-
className="govgr-
|
|
19
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--1"
|
|
20
20
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
21
21
|
/>
|
|
22
22
|
<path
|
|
23
|
-
className="govgr-
|
|
23
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--2"
|
|
24
24
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
25
25
|
/>
|
|
26
26
|
</svg>
|
|
@@ -47,11 +47,11 @@ exports[`renders the CircularProgress with color=secondary and size lg props 1`]
|
|
|
47
47
|
viewBox="0 0 200 200"
|
|
48
48
|
>
|
|
49
49
|
<path
|
|
50
|
-
className="govgr-
|
|
50
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--1"
|
|
51
51
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
52
52
|
/>
|
|
53
53
|
<path
|
|
54
|
-
className="govgr-
|
|
54
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--2"
|
|
55
55
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
56
56
|
/>
|
|
57
57
|
</svg>
|
|
@@ -78,11 +78,11 @@ exports[`renders the CircularProgress with color=secondary and size sm props 1`]
|
|
|
78
78
|
viewBox="0 0 200 200"
|
|
79
79
|
>
|
|
80
80
|
<path
|
|
81
|
-
className="govgr-
|
|
81
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--1"
|
|
82
82
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
83
83
|
/>
|
|
84
84
|
<path
|
|
85
|
-
className="govgr-
|
|
85
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--2"
|
|
86
86
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
87
87
|
/>
|
|
88
88
|
</svg>
|
|
@@ -108,11 +108,11 @@ exports[`renders the CircularProgress with color=secondary prop 1`] = `
|
|
|
108
108
|
viewBox="0 0 200 200"
|
|
109
109
|
>
|
|
110
110
|
<path
|
|
111
|
-
className="govgr-
|
|
111
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--1"
|
|
112
112
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
113
113
|
/>
|
|
114
114
|
<path
|
|
115
|
-
className="govgr-
|
|
115
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--2"
|
|
116
116
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
117
117
|
/>
|
|
118
118
|
</svg>
|
|
@@ -138,11 +138,11 @@ exports[`renders the CircularProgress with size lg 1`] = `
|
|
|
138
138
|
viewBox="0 0 200 200"
|
|
139
139
|
>
|
|
140
140
|
<path
|
|
141
|
-
className="govgr-
|
|
141
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--1"
|
|
142
142
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
143
143
|
/>
|
|
144
144
|
<path
|
|
145
|
-
className="govgr-
|
|
145
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--2"
|
|
146
146
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
147
147
|
/>
|
|
148
148
|
</svg>
|
|
@@ -168,11 +168,11 @@ exports[`renders the CircularProgress with size sm 1`] = `
|
|
|
168
168
|
viewBox="0 0 200 200"
|
|
169
169
|
>
|
|
170
170
|
<path
|
|
171
|
-
className="govgr-
|
|
171
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--1"
|
|
172
172
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
173
173
|
/>
|
|
174
174
|
<path
|
|
175
|
-
className="govgr-
|
|
175
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--2"
|
|
176
176
|
d="M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
177
177
|
/>
|
|
178
178
|
</svg>
|
|
@@ -6,12 +6,12 @@ import clsx from 'clsx';
|
|
|
6
6
|
import Base from '@digigov/react-core/Base';
|
|
7
7
|
|
|
8
8
|
var _ref2 = /*#__PURE__*/React.createElement("path", {
|
|
9
|
-
className: "govgr-
|
|
9
|
+
className: "govgr-circular-progress__circle govgr-circular-progress__circle--1",
|
|
10
10
|
d: "M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
var _ref3 = /*#__PURE__*/React.createElement("path", {
|
|
14
|
-
className: "govgr-
|
|
14
|
+
className: "govgr-circular-progress__circle govgr-circular-progress__circle--2",
|
|
15
15
|
d: "M26,99.551C26,55.478,60.246,27.5,99.85,27.5S174,55.478,174,99.551,139.455,172.5,99.85,172.5C60.273,172.473,26,143.6,26,99.551Z"
|
|
16
16
|
});
|
|
17
17
|
|
|
@@ -5,25 +5,21 @@ exports[`renders the Container with cols={false} prop 1`] = `
|
|
|
5
5
|
fullWidth={true}
|
|
6
6
|
grid={false}
|
|
7
7
|
>
|
|
8
|
-
<ForwardRef(
|
|
9
|
-
as="div"
|
|
8
|
+
<ForwardRef(Grid)
|
|
10
9
|
className="govgr-container--full-width govgr-container"
|
|
10
|
+
container={false}
|
|
11
11
|
>
|
|
12
|
-
<
|
|
12
|
+
<ForwardRef(Base)
|
|
13
|
+
as="div"
|
|
13
14
|
className="govgr-container--full-width govgr-container"
|
|
14
15
|
>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
className=""
|
|
16
|
+
<div
|
|
17
|
+
className="govgr-container--full-width govgr-container"
|
|
18
18
|
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</div>
|
|
24
|
-
</ForwardRef(Base)>
|
|
25
|
-
</div>
|
|
26
|
-
</ForwardRef(Base)>
|
|
19
|
+
hello
|
|
20
|
+
</div>
|
|
21
|
+
</ForwardRef(Base)>
|
|
22
|
+
</ForwardRef(Grid)>
|
|
27
23
|
</ForwardRef(Container)>
|
|
28
24
|
`;
|
|
29
25
|
|
|
@@ -31,48 +27,40 @@ exports[`renders the Container with fullWidth prop 1`] = `
|
|
|
31
27
|
<ForwardRef(Container)
|
|
32
28
|
fullWidth={true}
|
|
33
29
|
>
|
|
34
|
-
<ForwardRef(
|
|
35
|
-
as="div"
|
|
30
|
+
<ForwardRef(Grid)
|
|
36
31
|
className="govgr-container--full-width govgr-container"
|
|
32
|
+
container={true}
|
|
37
33
|
>
|
|
38
|
-
<
|
|
39
|
-
|
|
34
|
+
<ForwardRef(Base)
|
|
35
|
+
as="div"
|
|
36
|
+
className="govgr-container--full-width govgr-container govgr-grid"
|
|
40
37
|
>
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
className="govgr-main-wrapper"
|
|
38
|
+
<div
|
|
39
|
+
className="govgr-container--full-width govgr-container govgr-grid"
|
|
44
40
|
>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</div>
|
|
50
|
-
</ForwardRef(Base)>
|
|
51
|
-
</div>
|
|
52
|
-
</ForwardRef(Base)>
|
|
41
|
+
hello
|
|
42
|
+
</div>
|
|
43
|
+
</ForwardRef(Base)>
|
|
44
|
+
</ForwardRef(Grid)>
|
|
53
45
|
</ForwardRef(Container)>
|
|
54
46
|
`;
|
|
55
47
|
|
|
56
48
|
exports[`renders the Container with no props 1`] = `
|
|
57
49
|
<ForwardRef(Container)>
|
|
58
|
-
<ForwardRef(
|
|
59
|
-
as="div"
|
|
50
|
+
<ForwardRef(Grid)
|
|
60
51
|
className="govgr-container"
|
|
52
|
+
container={true}
|
|
61
53
|
>
|
|
62
|
-
<
|
|
63
|
-
|
|
54
|
+
<ForwardRef(Base)
|
|
55
|
+
as="div"
|
|
56
|
+
className="govgr-container govgr-grid"
|
|
64
57
|
>
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
className="govgr-main-wrapper"
|
|
58
|
+
<div
|
|
59
|
+
className="govgr-container govgr-grid"
|
|
68
60
|
>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</div>
|
|
74
|
-
</ForwardRef(Base)>
|
|
75
|
-
</div>
|
|
76
|
-
</ForwardRef(Base)>
|
|
61
|
+
hello
|
|
62
|
+
</div>
|
|
63
|
+
</ForwardRef(Base)>
|
|
64
|
+
</ForwardRef(Grid)>
|
|
77
65
|
</ForwardRef(Container)>
|
|
78
66
|
`;
|
package/esm/Container/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["grid", "fullWidth", "className", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
import
|
|
6
|
+
import Grid from '@digigov/react-core/Grid';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Use Container as a wrapper.
|
|
@@ -17,12 +17,13 @@ export var Container = /*#__PURE__*/React.forwardRef(function Container(_ref, re
|
|
|
17
17
|
children = _ref.children,
|
|
18
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
19
|
|
|
20
|
-
return /*#__PURE__*/React.createElement(
|
|
21
|
-
|
|
20
|
+
return /*#__PURE__*/React.createElement(Grid, _extends({
|
|
21
|
+
container: grid,
|
|
22
|
+
spacing: grid ? {
|
|
23
|
+
sm: 12
|
|
24
|
+
} : undefined,
|
|
22
25
|
ref: ref,
|
|
23
26
|
className: clsx(className, fullWidth && 'govgr-container--full-width', true && 'govgr-container')
|
|
24
|
-
}, props),
|
|
25
|
-
className: clsx(grid && 'govgr-main-wrapper')
|
|
26
|
-
}, children) : /*#__PURE__*/React.createElement(React.Fragment, null, children));
|
|
27
|
+
}, props), children);
|
|
27
28
|
});
|
|
28
29
|
export default Container;
|
|
@@ -14,16 +14,21 @@ exports[`renders the Drawer with \`open=true\` \`left=true\` props 1`] = `
|
|
|
14
14
|
>
|
|
15
15
|
<div>
|
|
16
16
|
<ForwardRef(Heading)>
|
|
17
|
-
<ForwardRef(
|
|
17
|
+
<ForwardRef(Typography)
|
|
18
18
|
as="h1"
|
|
19
19
|
className="govgr-heading-xl"
|
|
20
20
|
>
|
|
21
|
-
<
|
|
21
|
+
<ForwardRef(Base)
|
|
22
|
+
as="h1"
|
|
22
23
|
className="govgr-heading-xl"
|
|
23
24
|
>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
<h1
|
|
26
|
+
className="govgr-heading-xl"
|
|
27
|
+
>
|
|
28
|
+
Menu
|
|
29
|
+
</h1>
|
|
30
|
+
</ForwardRef(Base)>
|
|
31
|
+
</ForwardRef(Typography)>
|
|
27
32
|
</ForwardRef(Heading)>
|
|
28
33
|
<CloseIcon
|
|
29
34
|
className="govgr--drawer__close-icon"
|
|
@@ -4,10 +4,10 @@ exports[`renders the DropdownContent with no props 1`] = `
|
|
|
4
4
|
<ForwardRef(DropdownContent)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="div"
|
|
7
|
-
className="govgr-dropdown__content"
|
|
7
|
+
className="govgr-dropdown__content--full-width govgr-dropdown__content"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
className="govgr-dropdown__content"
|
|
10
|
+
className="govgr-dropdown__content--full-width govgr-dropdown__content"
|
|
11
11
|
>
|
|
12
12
|
hello
|
|
13
13
|
</div>
|
|
@@ -5,25 +5,21 @@ exports[`renders the FooterContainer with no props 1`] = `
|
|
|
5
5
|
<ForwardRef(Container)
|
|
6
6
|
grid={false}
|
|
7
7
|
>
|
|
8
|
-
<ForwardRef(
|
|
9
|
-
as="div"
|
|
8
|
+
<ForwardRef(Grid)
|
|
10
9
|
className="govgr-container"
|
|
10
|
+
container={false}
|
|
11
11
|
>
|
|
12
|
-
<
|
|
12
|
+
<ForwardRef(Base)
|
|
13
|
+
as="div"
|
|
13
14
|
className="govgr-container"
|
|
14
15
|
>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
className=""
|
|
16
|
+
<div
|
|
17
|
+
className="govgr-container"
|
|
18
18
|
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</div>
|
|
24
|
-
</ForwardRef(Base)>
|
|
25
|
-
</div>
|
|
26
|
-
</ForwardRef(Base)>
|
|
19
|
+
hello
|
|
20
|
+
</div>
|
|
21
|
+
</ForwardRef(Base)>
|
|
22
|
+
</ForwardRef(Grid)>
|
|
27
23
|
</ForwardRef(Container)>
|
|
28
24
|
</ForwardRef(FooterContainer)>
|
|
29
25
|
`;
|
|
@@ -7,16 +7,21 @@ exports[`renders the FooterHeading with no props 1`] = `
|
|
|
7
7
|
element="h2"
|
|
8
8
|
size="sm"
|
|
9
9
|
>
|
|
10
|
-
<ForwardRef(
|
|
10
|
+
<ForwardRef(Typography)
|
|
11
11
|
as="h2"
|
|
12
12
|
className="govgr-footer__heading govgr-heading-sm"
|
|
13
13
|
>
|
|
14
|
-
<
|
|
14
|
+
<ForwardRef(Base)
|
|
15
|
+
as="h2"
|
|
15
16
|
className="govgr-footer__heading govgr-heading-sm"
|
|
16
17
|
>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
<h2
|
|
19
|
+
className="govgr-footer__heading govgr-heading-sm"
|
|
20
|
+
>
|
|
21
|
+
hello
|
|
22
|
+
</h2>
|
|
23
|
+
</ForwardRef(Base)>
|
|
24
|
+
</ForwardRef(Typography)>
|
|
20
25
|
</ForwardRef(Heading)>
|
|
21
26
|
</ForwardRef(FooterHeading)>
|
|
22
27
|
`;
|
|
@@ -30,16 +35,21 @@ exports[`renders the FooterHeading with size=m 1`] = `
|
|
|
30
35
|
element="h2"
|
|
31
36
|
size="md"
|
|
32
37
|
>
|
|
33
|
-
<ForwardRef(
|
|
38
|
+
<ForwardRef(Typography)
|
|
34
39
|
as="h2"
|
|
35
40
|
className="govgr-footer__heading govgr-heading-md"
|
|
36
41
|
>
|
|
37
|
-
<
|
|
42
|
+
<ForwardRef(Base)
|
|
43
|
+
as="h2"
|
|
38
44
|
className="govgr-footer__heading govgr-heading-md"
|
|
39
45
|
>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
<h2
|
|
47
|
+
className="govgr-footer__heading govgr-heading-md"
|
|
48
|
+
>
|
|
49
|
+
hello
|
|
50
|
+
</h2>
|
|
51
|
+
</ForwardRef(Base)>
|
|
52
|
+
</ForwardRef(Typography)>
|
|
43
53
|
</ForwardRef(Heading)>
|
|
44
54
|
</ForwardRef(FooterHeading)>
|
|
45
55
|
`;
|
|
@@ -53,16 +63,21 @@ exports[`renders the FooterHeading with size=s 1`] = `
|
|
|
53
63
|
element="h2"
|
|
54
64
|
size="sm"
|
|
55
65
|
>
|
|
56
|
-
<ForwardRef(
|
|
66
|
+
<ForwardRef(Typography)
|
|
57
67
|
as="h2"
|
|
58
68
|
className="govgr-footer__heading govgr-heading-sm"
|
|
59
69
|
>
|
|
60
|
-
<
|
|
70
|
+
<ForwardRef(Base)
|
|
71
|
+
as="h2"
|
|
61
72
|
className="govgr-footer__heading govgr-heading-sm"
|
|
62
73
|
>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
<h2
|
|
75
|
+
className="govgr-footer__heading govgr-heading-sm"
|
|
76
|
+
>
|
|
77
|
+
hello
|
|
78
|
+
</h2>
|
|
79
|
+
</ForwardRef(Base)>
|
|
80
|
+
</ForwardRef(Typography)>
|
|
66
81
|
</ForwardRef(Heading)>
|
|
67
82
|
</ForwardRef(FooterHeading)>
|
|
68
83
|
`;
|
package/esm/Grid/index.js
CHANGED
|
@@ -28,7 +28,7 @@ export var Grid = /*#__PURE__*/React.forwardRef(function Grid(_ref, ref) {
|
|
|
28
28
|
return /*#__PURE__*/React.createElement(Base, _extends({
|
|
29
29
|
as: as || 'div',
|
|
30
30
|
ref: ref,
|
|
31
|
-
className: clsx(className, container && [spacing !== undefined && "govgr-gap-".concat(spacing), inline && 'govgr-grid-inline', 'govgr-grid'], item && [xs !== undefined && "xs:govgr-grid__col-span-".concat(xs), sm !== undefined && "sm:govgr-grid__col-span-".concat(sm), md !== undefined && "md:govgr-grid__col-span-".concat(md), lg !== undefined && "lg:govgr-grid__col-span-".concat(lg), xl !== undefined && "xl:govgr-grid__col-span-".concat(xl)])
|
|
31
|
+
className: clsx(className, container && [(spacing === null || spacing === void 0 ? void 0 : spacing.xs) !== undefined && "govgr-gap-xs-".concat(spacing === null || spacing === void 0 ? void 0 : spacing.xs), (spacing === null || spacing === void 0 ? void 0 : spacing.sm) !== undefined && "govgr-gap-sm-".concat(spacing === null || spacing === void 0 ? void 0 : spacing.sm), (spacing === null || spacing === void 0 ? void 0 : spacing.md) !== undefined && "govgr-gap-md-".concat(spacing === null || spacing === void 0 ? void 0 : spacing.md), (spacing === null || spacing === void 0 ? void 0 : spacing.lg) !== undefined && "govgr-gap-lg-".concat(spacing === null || spacing === void 0 ? void 0 : spacing.lg), (spacing === null || spacing === void 0 ? void 0 : spacing.xl) !== undefined && "govgr-gap-xl-".concat(spacing === null || spacing === void 0 ? void 0 : spacing.xl), typeof spacing === 'number' && "govgr-gap-".concat(spacing), inline && 'govgr-grid-inline', 'govgr-grid'], item && [xs !== undefined && "xs:govgr-grid__col-span-".concat(xs), sm !== undefined && "sm:govgr-grid__col-span-".concat(sm), md !== undefined && "md:govgr-grid__col-span-".concat(md), lg !== undefined && "lg:govgr-grid__col-span-".concat(lg), xl !== undefined && "xl:govgr-grid__col-span-".concat(xl)])
|
|
32
32
|
}, props), children);
|
|
33
33
|
});
|
|
34
34
|
export default Grid;
|