@digigov/react-core 1.0.0-079f34f3d → 1.0.0-266e80f3
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/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
- package/ImageLogo/index.d.ts +20 -0
- package/ImageLogo/index.js +45 -0
- package/ImageLogo/index.test.js +26 -0
- package/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
- package/ImageLogoSet/index.d.ts +20 -0
- package/ImageLogoSet/index.js +45 -0
- package/ImageLogoSet/index.test.d.ts +1 -0
- package/ImageLogoSet/index.test.js +29 -0
- 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/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
- package/es/ImageLogo/index.js +29 -0
- package/es/ImageLogo/index.test.js +20 -0
- package/es/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
- package/es/ImageLogoSet/index.js +30 -0
- package/es/ImageLogoSet/index.test.js +23 -0
- 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 +2 -1
- package/es/registry.js +4 -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/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
- package/esm/ImageLogo/index.js +29 -0
- package/esm/ImageLogo/index.test.js +20 -0
- package/esm/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
- package/esm/ImageLogoSet/index.js +30 -0
- package/esm/ImageLogoSet/index.test.js +23 -0
- 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 +3 -2
- package/esm/registry.js +4 -2
- package/index.d.ts +2 -1
- package/index.js +17 -4
- package/package.json +3 -3
- package/registry.d.ts +2 -1
- package/registry.js +5 -2
- 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/ImageLogo/__snapshots__/index.test.tsx.snap +36 -0
- package/src/ImageLogo/index.test.tsx +13 -0
- package/src/ImageLogo/index.tsx +43 -0
- package/src/ImageLogoSet/__snapshots__/index.test.tsx.snap +118 -0
- package/src/ImageLogoSet/index.test.tsx +17 -0
- package/src/ImageLogoSet/index.tsx +36 -0
- 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 +42 -0
- package/src/index.ts +2 -1
- package/src/registry.js +5 -4
- 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.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/{Icon → ImageLogo}/index.test.d.ts +0 -0
package/registry.js
CHANGED
|
@@ -253,7 +253,9 @@ var _digigov_react_core_Hidden = _interopRequireWildcard(require("@digigov/react
|
|
|
253
253
|
|
|
254
254
|
var _digigov_react_core_Hint = _interopRequireWildcard(require("@digigov/react-core/Hint"));
|
|
255
255
|
|
|
256
|
-
var
|
|
256
|
+
var _digigov_react_core_ImageLogo = _interopRequireWildcard(require("@digigov/react-core/ImageLogo"));
|
|
257
|
+
|
|
258
|
+
var _digigov_react_core_ImageLogoSet = _interopRequireWildcard(require("@digigov/react-core/ImageLogoSet"));
|
|
257
259
|
|
|
258
260
|
var _digigov_react_core = _interopRequireWildcard(require("@digigov/react-core"));
|
|
259
261
|
|
|
@@ -644,7 +646,8 @@ var _default = {
|
|
|
644
646
|
'@digigov/react-core/HellenicRepublicLogo/logo-inverted-en': lazyImport(_digigov_react_core_HellenicRepublicLogo_logo_inverted_en),
|
|
645
647
|
'@digigov/react-core/Hidden': lazyImport(_digigov_react_core_Hidden),
|
|
646
648
|
'@digigov/react-core/Hint': lazyImport(_digigov_react_core_Hint),
|
|
647
|
-
'@digigov/react-core/
|
|
649
|
+
'@digigov/react-core/ImageLogo': lazyImport(_digigov_react_core_ImageLogo),
|
|
650
|
+
'@digigov/react-core/ImageLogoSet': lazyImport(_digigov_react_core_ImageLogoSet),
|
|
648
651
|
'@digigov/react-core': lazyImport(_digigov_react_core),
|
|
649
652
|
'@digigov/react-core/KitchenSinkAllComponents': lazyImport(_digigov_react_core_KitchenSinkAllComponents),
|
|
650
653
|
'@digigov/react-core/KitchenSinkCard': lazyImport(_digigov_react_core_KitchenSinkCard),
|
|
@@ -4,10 +4,10 @@ exports[`renders the Accordion with no props 1`] = `
|
|
|
4
4
|
<ForwardRef(Accordion)>
|
|
5
5
|
<ForwardRef(Base)
|
|
6
6
|
as="div"
|
|
7
|
-
className="govgr-accordion"
|
|
7
|
+
className="govgr-accordion--border-top govgr-accordion"
|
|
8
8
|
>
|
|
9
9
|
<div
|
|
10
|
-
className="govgr-accordion"
|
|
10
|
+
className="govgr-accordion--border-top govgr-accordion"
|
|
11
11
|
>
|
|
12
12
|
hello
|
|
13
13
|
</div>
|
|
@@ -2,19 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the AdminContainer with no props 1`] = `
|
|
4
4
|
<ForwardRef(AdminContainer)>
|
|
5
|
-
<ForwardRef(
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<ForwardRef(Container)
|
|
6
|
+
fullWidth={true}
|
|
7
|
+
grid={false}
|
|
8
8
|
>
|
|
9
|
-
<
|
|
10
|
-
className="govgr-
|
|
9
|
+
<ForwardRef(Grid)
|
|
10
|
+
className="govgr-container--full-width govgr-container"
|
|
11
|
+
container={false}
|
|
11
12
|
>
|
|
12
|
-
<
|
|
13
|
-
|
|
13
|
+
<ForwardRef(Base)
|
|
14
|
+
as="div"
|
|
15
|
+
className="govgr-container--full-width govgr-container"
|
|
14
16
|
>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
<div
|
|
18
|
+
className="govgr-container--full-width govgr-container"
|
|
19
|
+
>
|
|
20
|
+
<div
|
|
21
|
+
className="govgr-admin-main-wrapper"
|
|
22
|
+
>
|
|
23
|
+
hello
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</ForwardRef(Base)>
|
|
27
|
+
</ForwardRef(Grid)>
|
|
28
|
+
</ForwardRef(Container)>
|
|
19
29
|
</ForwardRef(AdminContainer)>
|
|
20
30
|
`;
|
|
@@ -2,15 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the Aside with no props 1`] = `
|
|
4
4
|
<ForwardRef(Aside)>
|
|
5
|
-
<ForwardRef(
|
|
5
|
+
<ForwardRef(Grid)
|
|
6
6
|
as="aside"
|
|
7
|
-
className="govgr-aside
|
|
7
|
+
className="govgr-aside"
|
|
8
|
+
item={true}
|
|
9
|
+
md={4}
|
|
10
|
+
spacing={4}
|
|
11
|
+
xs={12}
|
|
8
12
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
13
|
+
<ForwardRef(Base)
|
|
14
|
+
as="aside"
|
|
15
|
+
className="govgr-aside xs:govgr-grid__col-span-12 md:govgr-grid__col-span-4"
|
|
11
16
|
>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
<aside
|
|
18
|
+
className="govgr-aside xs:govgr-grid__col-span-12 md:govgr-grid__col-span-4"
|
|
19
|
+
>
|
|
20
|
+
hello
|
|
21
|
+
</aside>
|
|
22
|
+
</ForwardRef(Base)>
|
|
23
|
+
</ForwardRef(Grid)>
|
|
15
24
|
</ForwardRef(Aside)>
|
|
16
25
|
`;
|
package/src/Aside/index.tsx
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import
|
|
3
|
+
import Grid, { GridProps } from '@digigov/react-core/Grid';
|
|
4
4
|
|
|
5
|
-
export interface AsideProps extends
|
|
5
|
+
export interface AsideProps extends GridProps {}
|
|
6
6
|
/**
|
|
7
|
-
* Use this inside the
|
|
8
|
-
* that will be shown on the left one third of the page
|
|
7
|
+
* Use this inside the Container component for additional content.
|
|
8
|
+
* that will be shown on the left one third of the page.
|
|
9
9
|
*/
|
|
10
10
|
export const Aside = React.forwardRef<HTMLElement, AsideProps>(function Aside(
|
|
11
11
|
{ className, children, ...props },
|
|
12
12
|
ref
|
|
13
13
|
) {
|
|
14
14
|
return (
|
|
15
|
-
<
|
|
15
|
+
<Grid
|
|
16
|
+
item
|
|
17
|
+
xs={12}
|
|
18
|
+
md={4}
|
|
19
|
+
spacing={4}
|
|
16
20
|
as="aside"
|
|
17
21
|
ref={ref}
|
|
18
22
|
className={clsx(className, {
|
|
19
23
|
'govgr-aside': true,
|
|
20
|
-
'govgr-grid-column-one-third': true,
|
|
21
24
|
})}
|
|
22
25
|
{...props}
|
|
23
26
|
>
|
|
24
27
|
{children}
|
|
25
|
-
</
|
|
28
|
+
</Grid>
|
|
26
29
|
);
|
|
27
30
|
});
|
|
28
31
|
|
|
@@ -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>
|
|
@@ -11,16 +11,13 @@ export const BottomInfoContent = React.forwardRef<
|
|
|
11
11
|
HTMLDivElement,
|
|
12
12
|
BottomInfoContentProps
|
|
13
13
|
>(function BottomInfoContent(
|
|
14
|
-
{ className, xs =
|
|
14
|
+
{ className, xs = 12, children, ...props },
|
|
15
15
|
ref
|
|
16
16
|
) {
|
|
17
17
|
return (
|
|
18
18
|
<Grid
|
|
19
19
|
item
|
|
20
20
|
xs={xs}
|
|
21
|
-
md={md}
|
|
22
|
-
lg={lg}
|
|
23
|
-
xl={xl}
|
|
24
21
|
ref={ref}
|
|
25
22
|
className={clsx(className, {
|
|
26
23
|
'govgr-bottom-info__content': true,
|
|
@@ -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>
|
|
@@ -49,11 +49,11 @@ export const CircularProgress = React.forwardRef<
|
|
|
49
49
|
{...props}
|
|
50
50
|
>
|
|
51
51
|
<path
|
|
52
|
-
className="govgr-
|
|
52
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--1"
|
|
53
53
|
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"
|
|
54
54
|
/>
|
|
55
55
|
<path
|
|
56
|
-
className="govgr-
|
|
56
|
+
className="govgr-circular-progress__circle govgr-circular-progress__circle--2"
|
|
57
57
|
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"
|
|
58
58
|
/>
|
|
59
59
|
</Base>
|
|
@@ -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/src/Container/index.tsx
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import
|
|
3
|
+
import Grid, { GridProps } from '@digigov/react-core/Grid';
|
|
4
4
|
|
|
5
|
-
export interface ContainerProps extends
|
|
5
|
+
export interface ContainerProps extends GridProps {
|
|
6
6
|
/**
|
|
7
|
-
* grid is optional. Set to false if you don't need
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* grid is optional. Set to false if you don't need grid layout.
|
|
8
|
+
* @value true
|
|
9
|
+
* @value false
|
|
10
|
+
* @default true
|
|
11
11
|
*/
|
|
12
12
|
grid?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
* fullWidth is optional. Set to true if you need a full width layout.
|
|
15
|
+
* @value true
|
|
16
|
+
* @value false
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
19
|
fullWidth?: boolean;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
@@ -27,8 +27,9 @@ export const Container = React.forwardRef<HTMLDivElement, ContainerProps>(
|
|
|
27
27
|
ref
|
|
28
28
|
) {
|
|
29
29
|
return (
|
|
30
|
-
<
|
|
31
|
-
|
|
30
|
+
<Grid
|
|
31
|
+
container={grid}
|
|
32
|
+
spacing={grid ? {sm:12}: undefined}
|
|
32
33
|
ref={ref}
|
|
33
34
|
className={clsx(className, {
|
|
34
35
|
'govgr-container': true,
|
|
@@ -36,16 +37,8 @@ export const Container = React.forwardRef<HTMLDivElement, ContainerProps>(
|
|
|
36
37
|
})}
|
|
37
38
|
{...props}
|
|
38
39
|
>
|
|
39
|
-
{
|
|
40
|
-
|
|
41
|
-
className={clsx({
|
|
42
|
-
'govgr-main-wrapper': grid,
|
|
43
|
-
})}
|
|
44
|
-
>
|
|
45
|
-
{children}
|
|
46
|
-
</div> :
|
|
47
|
-
<>{children}</>}
|
|
48
|
-
</Base>
|
|
40
|
+
{children}
|
|
41
|
+
</Grid>
|
|
49
42
|
);
|
|
50
43
|
}
|
|
51
44
|
);
|
|
@@ -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
|
`;
|