@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
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the Heading with no props 1`] = `
|
|
4
4
|
<ForwardRef(Heading)>
|
|
5
|
-
<ForwardRef(
|
|
5
|
+
<ForwardRef(Typography)
|
|
6
6
|
as="h1"
|
|
7
7
|
className="govgr-heading-xl"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
9
|
+
<ForwardRef(Base)
|
|
10
|
+
as="h1"
|
|
10
11
|
className="govgr-heading-xl"
|
|
11
12
|
>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
<h1
|
|
14
|
+
className="govgr-heading-xl"
|
|
15
|
+
>
|
|
16
|
+
hello
|
|
17
|
+
</h1>
|
|
18
|
+
</ForwardRef(Base)>
|
|
19
|
+
</ForwardRef(Typography)>
|
|
15
20
|
</ForwardRef(Heading)>
|
|
16
21
|
`;
|
|
17
22
|
|
|
@@ -20,16 +25,21 @@ exports[`renders the Heading with size=l and element h2 1`] = `
|
|
|
20
25
|
element="h2"
|
|
21
26
|
size="lg"
|
|
22
27
|
>
|
|
23
|
-
<ForwardRef(
|
|
28
|
+
<ForwardRef(Typography)
|
|
24
29
|
as="h2"
|
|
25
30
|
className="govgr-heading-lg"
|
|
26
31
|
>
|
|
27
|
-
<
|
|
32
|
+
<ForwardRef(Base)
|
|
33
|
+
as="h2"
|
|
28
34
|
className="govgr-heading-lg"
|
|
29
35
|
>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
<h2
|
|
37
|
+
className="govgr-heading-lg"
|
|
38
|
+
>
|
|
39
|
+
hello
|
|
40
|
+
</h2>
|
|
41
|
+
</ForwardRef(Base)>
|
|
42
|
+
</ForwardRef(Typography)>
|
|
33
43
|
</ForwardRef(Heading)>
|
|
34
44
|
`;
|
|
35
45
|
|
|
@@ -38,16 +48,21 @@ exports[`renders the Heading with size=l and element h3 1`] = `
|
|
|
38
48
|
element="h3"
|
|
39
49
|
size="lg"
|
|
40
50
|
>
|
|
41
|
-
<ForwardRef(
|
|
51
|
+
<ForwardRef(Typography)
|
|
42
52
|
as="h3"
|
|
43
53
|
className="govgr-heading-lg"
|
|
44
54
|
>
|
|
45
|
-
<
|
|
55
|
+
<ForwardRef(Base)
|
|
56
|
+
as="h3"
|
|
46
57
|
className="govgr-heading-lg"
|
|
47
58
|
>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
59
|
+
<h3
|
|
60
|
+
className="govgr-heading-lg"
|
|
61
|
+
>
|
|
62
|
+
hello
|
|
63
|
+
</h3>
|
|
64
|
+
</ForwardRef(Base)>
|
|
65
|
+
</ForwardRef(Typography)>
|
|
51
66
|
</ForwardRef(Heading)>
|
|
52
67
|
`;
|
|
53
68
|
|
|
@@ -56,16 +71,21 @@ exports[`renders the Heading with size=l and element h4 1`] = `
|
|
|
56
71
|
element="h4"
|
|
57
72
|
size="lg"
|
|
58
73
|
>
|
|
59
|
-
<ForwardRef(
|
|
74
|
+
<ForwardRef(Typography)
|
|
60
75
|
as="h4"
|
|
61
76
|
className="govgr-heading-lg"
|
|
62
77
|
>
|
|
63
|
-
<
|
|
78
|
+
<ForwardRef(Base)
|
|
79
|
+
as="h4"
|
|
64
80
|
className="govgr-heading-lg"
|
|
65
81
|
>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
82
|
+
<h4
|
|
83
|
+
className="govgr-heading-lg"
|
|
84
|
+
>
|
|
85
|
+
hello
|
|
86
|
+
</h4>
|
|
87
|
+
</ForwardRef(Base)>
|
|
88
|
+
</ForwardRef(Typography)>
|
|
69
89
|
</ForwardRef(Heading)>
|
|
70
90
|
`;
|
|
71
91
|
|
|
@@ -73,16 +93,21 @@ exports[`renders the Heading with size=lg 1`] = `
|
|
|
73
93
|
<ForwardRef(Heading)
|
|
74
94
|
size="lg"
|
|
75
95
|
>
|
|
76
|
-
<ForwardRef(
|
|
96
|
+
<ForwardRef(Typography)
|
|
77
97
|
as="h2"
|
|
78
98
|
className="govgr-heading-lg"
|
|
79
99
|
>
|
|
80
|
-
<
|
|
100
|
+
<ForwardRef(Base)
|
|
101
|
+
as="h2"
|
|
81
102
|
className="govgr-heading-lg"
|
|
82
103
|
>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
104
|
+
<h2
|
|
105
|
+
className="govgr-heading-lg"
|
|
106
|
+
>
|
|
107
|
+
hello
|
|
108
|
+
</h2>
|
|
109
|
+
</ForwardRef(Base)>
|
|
110
|
+
</ForwardRef(Typography)>
|
|
86
111
|
</ForwardRef(Heading)>
|
|
87
112
|
`;
|
|
88
113
|
|
|
@@ -91,16 +116,21 @@ exports[`renders the Heading with size=m and element h2 1`] = `
|
|
|
91
116
|
element="h2"
|
|
92
117
|
size="md"
|
|
93
118
|
>
|
|
94
|
-
<ForwardRef(
|
|
119
|
+
<ForwardRef(Typography)
|
|
95
120
|
as="h2"
|
|
96
121
|
className="govgr-heading-md"
|
|
97
122
|
>
|
|
98
|
-
<
|
|
123
|
+
<ForwardRef(Base)
|
|
124
|
+
as="h2"
|
|
99
125
|
className="govgr-heading-md"
|
|
100
126
|
>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
127
|
+
<h2
|
|
128
|
+
className="govgr-heading-md"
|
|
129
|
+
>
|
|
130
|
+
hello
|
|
131
|
+
</h2>
|
|
132
|
+
</ForwardRef(Base)>
|
|
133
|
+
</ForwardRef(Typography)>
|
|
104
134
|
</ForwardRef(Heading)>
|
|
105
135
|
`;
|
|
106
136
|
|
|
@@ -109,16 +139,21 @@ exports[`renders the Heading with size=m and element h3 1`] = `
|
|
|
109
139
|
element="h3"
|
|
110
140
|
size="md"
|
|
111
141
|
>
|
|
112
|
-
<ForwardRef(
|
|
142
|
+
<ForwardRef(Typography)
|
|
113
143
|
as="h3"
|
|
114
144
|
className="govgr-heading-md"
|
|
115
145
|
>
|
|
116
|
-
<
|
|
146
|
+
<ForwardRef(Base)
|
|
147
|
+
as="h3"
|
|
117
148
|
className="govgr-heading-md"
|
|
118
149
|
>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
150
|
+
<h3
|
|
151
|
+
className="govgr-heading-md"
|
|
152
|
+
>
|
|
153
|
+
hello
|
|
154
|
+
</h3>
|
|
155
|
+
</ForwardRef(Base)>
|
|
156
|
+
</ForwardRef(Typography)>
|
|
122
157
|
</ForwardRef(Heading)>
|
|
123
158
|
`;
|
|
124
159
|
|
|
@@ -127,16 +162,21 @@ exports[`renders the Heading with size=m and element h4 1`] = `
|
|
|
127
162
|
element="h4"
|
|
128
163
|
size="md"
|
|
129
164
|
>
|
|
130
|
-
<ForwardRef(
|
|
165
|
+
<ForwardRef(Typography)
|
|
131
166
|
as="h4"
|
|
132
167
|
className="govgr-heading-md"
|
|
133
168
|
>
|
|
134
|
-
<
|
|
169
|
+
<ForwardRef(Base)
|
|
170
|
+
as="h4"
|
|
135
171
|
className="govgr-heading-md"
|
|
136
172
|
>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
173
|
+
<h4
|
|
174
|
+
className="govgr-heading-md"
|
|
175
|
+
>
|
|
176
|
+
hello
|
|
177
|
+
</h4>
|
|
178
|
+
</ForwardRef(Base)>
|
|
179
|
+
</ForwardRef(Typography)>
|
|
140
180
|
</ForwardRef(Heading)>
|
|
141
181
|
`;
|
|
142
182
|
|
|
@@ -144,16 +184,21 @@ exports[`renders the Heading with size=md 1`] = `
|
|
|
144
184
|
<ForwardRef(Heading)
|
|
145
185
|
size="md"
|
|
146
186
|
>
|
|
147
|
-
<ForwardRef(
|
|
187
|
+
<ForwardRef(Typography)
|
|
148
188
|
as="h3"
|
|
149
189
|
className="govgr-heading-md"
|
|
150
190
|
>
|
|
151
|
-
<
|
|
191
|
+
<ForwardRef(Base)
|
|
192
|
+
as="h3"
|
|
152
193
|
className="govgr-heading-md"
|
|
153
194
|
>
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
195
|
+
<h3
|
|
196
|
+
className="govgr-heading-md"
|
|
197
|
+
>
|
|
198
|
+
hello
|
|
199
|
+
</h3>
|
|
200
|
+
</ForwardRef(Base)>
|
|
201
|
+
</ForwardRef(Typography)>
|
|
157
202
|
</ForwardRef(Heading)>
|
|
158
203
|
`;
|
|
159
204
|
|
|
@@ -162,16 +207,21 @@ exports[`renders the Heading with size=s and element h2 1`] = `
|
|
|
162
207
|
element="h2"
|
|
163
208
|
size="sm"
|
|
164
209
|
>
|
|
165
|
-
<ForwardRef(
|
|
210
|
+
<ForwardRef(Typography)
|
|
166
211
|
as="h2"
|
|
167
212
|
className="govgr-heading-sm"
|
|
168
213
|
>
|
|
169
|
-
<
|
|
214
|
+
<ForwardRef(Base)
|
|
215
|
+
as="h2"
|
|
170
216
|
className="govgr-heading-sm"
|
|
171
217
|
>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
218
|
+
<h2
|
|
219
|
+
className="govgr-heading-sm"
|
|
220
|
+
>
|
|
221
|
+
hello
|
|
222
|
+
</h2>
|
|
223
|
+
</ForwardRef(Base)>
|
|
224
|
+
</ForwardRef(Typography)>
|
|
175
225
|
</ForwardRef(Heading)>
|
|
176
226
|
`;
|
|
177
227
|
|
|
@@ -180,16 +230,21 @@ exports[`renders the Heading with size=s and element h3 1`] = `
|
|
|
180
230
|
element="h3"
|
|
181
231
|
size="sm"
|
|
182
232
|
>
|
|
183
|
-
<ForwardRef(
|
|
233
|
+
<ForwardRef(Typography)
|
|
184
234
|
as="h3"
|
|
185
235
|
className="govgr-heading-sm"
|
|
186
236
|
>
|
|
187
|
-
<
|
|
237
|
+
<ForwardRef(Base)
|
|
238
|
+
as="h3"
|
|
188
239
|
className="govgr-heading-sm"
|
|
189
240
|
>
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
241
|
+
<h3
|
|
242
|
+
className="govgr-heading-sm"
|
|
243
|
+
>
|
|
244
|
+
hello
|
|
245
|
+
</h3>
|
|
246
|
+
</ForwardRef(Base)>
|
|
247
|
+
</ForwardRef(Typography)>
|
|
193
248
|
</ForwardRef(Heading)>
|
|
194
249
|
`;
|
|
195
250
|
|
|
@@ -198,16 +253,21 @@ exports[`renders the Heading with size=s and element h4 1`] = `
|
|
|
198
253
|
element="h4"
|
|
199
254
|
size="sm"
|
|
200
255
|
>
|
|
201
|
-
<ForwardRef(
|
|
256
|
+
<ForwardRef(Typography)
|
|
202
257
|
as="h4"
|
|
203
258
|
className="govgr-heading-sm"
|
|
204
259
|
>
|
|
205
|
-
<
|
|
260
|
+
<ForwardRef(Base)
|
|
261
|
+
as="h4"
|
|
206
262
|
className="govgr-heading-sm"
|
|
207
263
|
>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
264
|
+
<h4
|
|
265
|
+
className="govgr-heading-sm"
|
|
266
|
+
>
|
|
267
|
+
hello
|
|
268
|
+
</h4>
|
|
269
|
+
</ForwardRef(Base)>
|
|
270
|
+
</ForwardRef(Typography)>
|
|
211
271
|
</ForwardRef(Heading)>
|
|
212
272
|
`;
|
|
213
273
|
|
|
@@ -215,16 +275,21 @@ exports[`renders the Heading with size=sm 1`] = `
|
|
|
215
275
|
<ForwardRef(Heading)
|
|
216
276
|
size="sm"
|
|
217
277
|
>
|
|
218
|
-
<ForwardRef(
|
|
278
|
+
<ForwardRef(Typography)
|
|
219
279
|
as="h4"
|
|
220
280
|
className="govgr-heading-sm"
|
|
221
281
|
>
|
|
222
|
-
<
|
|
282
|
+
<ForwardRef(Base)
|
|
283
|
+
as="h4"
|
|
223
284
|
className="govgr-heading-sm"
|
|
224
285
|
>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
286
|
+
<h4
|
|
287
|
+
className="govgr-heading-sm"
|
|
288
|
+
>
|
|
289
|
+
hello
|
|
290
|
+
</h4>
|
|
291
|
+
</ForwardRef(Base)>
|
|
292
|
+
</ForwardRef(Typography)>
|
|
228
293
|
</ForwardRef(Heading)>
|
|
229
294
|
`;
|
|
230
295
|
|
|
@@ -232,16 +297,21 @@ exports[`renders the Heading with size=xl 1`] = `
|
|
|
232
297
|
<ForwardRef(Heading)
|
|
233
298
|
size="xl"
|
|
234
299
|
>
|
|
235
|
-
<ForwardRef(
|
|
300
|
+
<ForwardRef(Typography)
|
|
236
301
|
as="h1"
|
|
237
302
|
className="govgr-heading-xl"
|
|
238
303
|
>
|
|
239
|
-
<
|
|
304
|
+
<ForwardRef(Base)
|
|
305
|
+
as="h1"
|
|
240
306
|
className="govgr-heading-xl"
|
|
241
307
|
>
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
308
|
+
<h1
|
|
309
|
+
className="govgr-heading-xl"
|
|
310
|
+
>
|
|
311
|
+
hello
|
|
312
|
+
</h1>
|
|
313
|
+
</ForwardRef(Base)>
|
|
314
|
+
</ForwardRef(Typography)>
|
|
245
315
|
</ForwardRef(Heading)>
|
|
246
316
|
`;
|
|
247
317
|
|
|
@@ -250,16 +320,21 @@ exports[`renders the Heading with size=xl and element h2 1`] = `
|
|
|
250
320
|
element="h2"
|
|
251
321
|
size="xl"
|
|
252
322
|
>
|
|
253
|
-
<ForwardRef(
|
|
323
|
+
<ForwardRef(Typography)
|
|
254
324
|
as="h2"
|
|
255
325
|
className="govgr-heading-xl"
|
|
256
326
|
>
|
|
257
|
-
<
|
|
327
|
+
<ForwardRef(Base)
|
|
328
|
+
as="h2"
|
|
258
329
|
className="govgr-heading-xl"
|
|
259
330
|
>
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
331
|
+
<h2
|
|
332
|
+
className="govgr-heading-xl"
|
|
333
|
+
>
|
|
334
|
+
hello
|
|
335
|
+
</h2>
|
|
336
|
+
</ForwardRef(Base)>
|
|
337
|
+
</ForwardRef(Typography)>
|
|
263
338
|
</ForwardRef(Heading)>
|
|
264
339
|
`;
|
|
265
340
|
|
|
@@ -268,16 +343,21 @@ exports[`renders the Heading with size=xl and element h3 1`] = `
|
|
|
268
343
|
element="h3"
|
|
269
344
|
size="xl"
|
|
270
345
|
>
|
|
271
|
-
<ForwardRef(
|
|
346
|
+
<ForwardRef(Typography)
|
|
272
347
|
as="h3"
|
|
273
348
|
className="govgr-heading-xl"
|
|
274
349
|
>
|
|
275
|
-
<
|
|
350
|
+
<ForwardRef(Base)
|
|
351
|
+
as="h3"
|
|
276
352
|
className="govgr-heading-xl"
|
|
277
353
|
>
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
354
|
+
<h3
|
|
355
|
+
className="govgr-heading-xl"
|
|
356
|
+
>
|
|
357
|
+
hello
|
|
358
|
+
</h3>
|
|
359
|
+
</ForwardRef(Base)>
|
|
360
|
+
</ForwardRef(Typography)>
|
|
281
361
|
</ForwardRef(Heading)>
|
|
282
362
|
`;
|
|
283
363
|
|
|
@@ -286,16 +366,21 @@ exports[`renders the Heading with size=xl and element h4 1`] = `
|
|
|
286
366
|
element="h4"
|
|
287
367
|
size="xl"
|
|
288
368
|
>
|
|
289
|
-
<ForwardRef(
|
|
369
|
+
<ForwardRef(Typography)
|
|
290
370
|
as="h4"
|
|
291
371
|
className="govgr-heading-xl"
|
|
292
372
|
>
|
|
293
|
-
<
|
|
373
|
+
<ForwardRef(Base)
|
|
374
|
+
as="h4"
|
|
294
375
|
className="govgr-heading-xl"
|
|
295
376
|
>
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
377
|
+
<h4
|
|
378
|
+
className="govgr-heading-xl"
|
|
379
|
+
>
|
|
380
|
+
hello
|
|
381
|
+
</h4>
|
|
382
|
+
</ForwardRef(Base)>
|
|
383
|
+
</ForwardRef(Typography)>
|
|
299
384
|
</ForwardRef(Heading)>
|
|
300
385
|
`;
|
|
301
386
|
|
|
@@ -303,16 +388,21 @@ exports[`renders the Heading with size=xs 1`] = `
|
|
|
303
388
|
<ForwardRef(Heading)
|
|
304
389
|
size="xs"
|
|
305
390
|
>
|
|
306
|
-
<ForwardRef(
|
|
391
|
+
<ForwardRef(Typography)
|
|
307
392
|
as="h5"
|
|
308
393
|
className="govgr-heading-xs"
|
|
309
394
|
>
|
|
310
|
-
<
|
|
395
|
+
<ForwardRef(Base)
|
|
396
|
+
as="h5"
|
|
311
397
|
className="govgr-heading-xs"
|
|
312
398
|
>
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
399
|
+
<h5
|
|
400
|
+
className="govgr-heading-xs"
|
|
401
|
+
>
|
|
402
|
+
hello
|
|
403
|
+
</h5>
|
|
404
|
+
</ForwardRef(Base)>
|
|
405
|
+
</ForwardRef(Typography)>
|
|
316
406
|
</ForwardRef(Heading)>
|
|
317
407
|
`;
|
|
318
408
|
|
|
@@ -321,15 +411,20 @@ exports[`renders the Heading with size=xs and element h4 1`] = `
|
|
|
321
411
|
element="h4"
|
|
322
412
|
size="xs"
|
|
323
413
|
>
|
|
324
|
-
<ForwardRef(
|
|
414
|
+
<ForwardRef(Typography)
|
|
325
415
|
as="h4"
|
|
326
416
|
className="govgr-heading-xs"
|
|
327
417
|
>
|
|
328
|
-
<
|
|
418
|
+
<ForwardRef(Base)
|
|
419
|
+
as="h4"
|
|
329
420
|
className="govgr-heading-xs"
|
|
330
421
|
>
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
422
|
+
<h4
|
|
423
|
+
className="govgr-heading-xs"
|
|
424
|
+
>
|
|
425
|
+
hello
|
|
426
|
+
</h4>
|
|
427
|
+
</ForwardRef(Base)>
|
|
428
|
+
</ForwardRef(Typography)>
|
|
334
429
|
</ForwardRef(Heading)>
|
|
335
430
|
`;
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the HeadingCaption with no props 1`] = `
|
|
4
4
|
<ForwardRef(HeadingCaption)>
|
|
5
|
-
<ForwardRef(
|
|
5
|
+
<ForwardRef(Typography)
|
|
6
6
|
as="span"
|
|
7
7
|
className="govgr-caption-lg"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
9
|
+
<ForwardRef(Base)
|
|
10
|
+
as="span"
|
|
10
11
|
className="govgr-caption-lg"
|
|
11
12
|
>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
<span
|
|
14
|
+
className="govgr-caption-lg"
|
|
15
|
+
>
|
|
16
|
+
hello
|
|
17
|
+
</span>
|
|
18
|
+
</ForwardRef(Base)>
|
|
19
|
+
</ForwardRef(Typography)>
|
|
15
20
|
</ForwardRef(HeadingCaption)>
|
|
16
21
|
`;
|
|
17
22
|
|
|
@@ -19,16 +24,21 @@ exports[`renders the HeadingCaption with size=l 1`] = `
|
|
|
19
24
|
<ForwardRef(HeadingCaption)
|
|
20
25
|
size="lg"
|
|
21
26
|
>
|
|
22
|
-
<ForwardRef(
|
|
27
|
+
<ForwardRef(Typography)
|
|
23
28
|
as="span"
|
|
24
29
|
className="govgr-caption-lg"
|
|
25
30
|
>
|
|
26
|
-
<
|
|
31
|
+
<ForwardRef(Base)
|
|
32
|
+
as="span"
|
|
27
33
|
className="govgr-caption-lg"
|
|
28
34
|
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
35
|
+
<span
|
|
36
|
+
className="govgr-caption-lg"
|
|
37
|
+
>
|
|
38
|
+
hello
|
|
39
|
+
</span>
|
|
40
|
+
</ForwardRef(Base)>
|
|
41
|
+
</ForwardRef(Typography)>
|
|
32
42
|
</ForwardRef(HeadingCaption)>
|
|
33
43
|
`;
|
|
34
44
|
|
|
@@ -36,16 +46,21 @@ exports[`renders the HeadingCaption with size=m 1`] = `
|
|
|
36
46
|
<ForwardRef(HeadingCaption)
|
|
37
47
|
size="md"
|
|
38
48
|
>
|
|
39
|
-
<ForwardRef(
|
|
49
|
+
<ForwardRef(Typography)
|
|
40
50
|
as="span"
|
|
41
51
|
className="govgr-caption-md"
|
|
42
52
|
>
|
|
43
|
-
<
|
|
53
|
+
<ForwardRef(Base)
|
|
54
|
+
as="span"
|
|
44
55
|
className="govgr-caption-md"
|
|
45
56
|
>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
57
|
+
<span
|
|
58
|
+
className="govgr-caption-md"
|
|
59
|
+
>
|
|
60
|
+
hello
|
|
61
|
+
</span>
|
|
62
|
+
</ForwardRef(Base)>
|
|
63
|
+
</ForwardRef(Typography)>
|
|
49
64
|
</ForwardRef(HeadingCaption)>
|
|
50
65
|
`;
|
|
51
66
|
|
|
@@ -53,15 +68,20 @@ exports[`renders the HeadingCaption with size=xl 1`] = `
|
|
|
53
68
|
<ForwardRef(HeadingCaption)
|
|
54
69
|
size="xl"
|
|
55
70
|
>
|
|
56
|
-
<ForwardRef(
|
|
71
|
+
<ForwardRef(Typography)
|
|
57
72
|
as="span"
|
|
58
73
|
className="govgr-caption-xl"
|
|
59
74
|
>
|
|
60
|
-
<
|
|
75
|
+
<ForwardRef(Base)
|
|
76
|
+
as="span"
|
|
61
77
|
className="govgr-caption-xl"
|
|
62
78
|
>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
79
|
+
<span
|
|
80
|
+
className="govgr-caption-xl"
|
|
81
|
+
>
|
|
82
|
+
hello
|
|
83
|
+
</span>
|
|
84
|
+
</ForwardRef(Base)>
|
|
85
|
+
</ForwardRef(Typography)>
|
|
66
86
|
</ForwardRef(HeadingCaption)>
|
|
67
87
|
`;
|
|
@@ -2,17 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the Main with no props 1`] = `
|
|
4
4
|
<ForwardRef(Main)>
|
|
5
|
-
<ForwardRef(
|
|
5
|
+
<ForwardRef(Grid)
|
|
6
6
|
as="main"
|
|
7
|
-
className="govgr-
|
|
7
|
+
className="govgr-main"
|
|
8
8
|
id="main-content"
|
|
9
|
+
item={true}
|
|
10
|
+
md={8}
|
|
11
|
+
xs={12}
|
|
9
12
|
>
|
|
10
|
-
<
|
|
11
|
-
|
|
13
|
+
<ForwardRef(Base)
|
|
14
|
+
as="main"
|
|
15
|
+
className="govgr-main xs:govgr-grid__col-span-12 md:govgr-grid__col-span-8"
|
|
12
16
|
id="main-content"
|
|
13
17
|
>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
<main
|
|
19
|
+
className="govgr-main xs:govgr-grid__col-span-12 md:govgr-grid__col-span-8"
|
|
20
|
+
id="main-content"
|
|
21
|
+
>
|
|
22
|
+
hello
|
|
23
|
+
</main>
|
|
24
|
+
</ForwardRef(Base)>
|
|
25
|
+
</ForwardRef(Grid)>
|
|
17
26
|
</ForwardRef(Main)>
|
|
18
27
|
`;
|
package/es/Main/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["className", "children", "id"];
|
|
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
|
|
9
|
+
* Use this inside Container component for placing the main content of the page.
|
|
10
10
|
*/
|
|
11
11
|
export var Main = /*#__PURE__*/React.forwardRef(function Main(_ref, ref) {
|
|
12
12
|
var className = _ref.className,
|
|
@@ -15,11 +15,14 @@ export var Main = /*#__PURE__*/React.forwardRef(function Main(_ref, ref) {
|
|
|
15
15
|
id = _ref$id === void 0 ? 'main-content' : _ref$id,
|
|
16
16
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
17
17
|
|
|
18
|
-
return /*#__PURE__*/React.createElement(
|
|
18
|
+
return /*#__PURE__*/React.createElement(Grid, _extends({
|
|
19
|
+
item: true,
|
|
20
|
+
xs: 12,
|
|
21
|
+
md: 8,
|
|
19
22
|
as: "main",
|
|
20
23
|
id: id,
|
|
21
24
|
ref: ref,
|
|
22
|
-
className: clsx(className, true && 'govgr-
|
|
25
|
+
className: clsx(className, true && 'govgr-main')
|
|
23
26
|
}, props), children);
|
|
24
27
|
});
|
|
25
28
|
export default Main;
|