@digigov/react-core 0.6.1 → 0.6.2
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/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/ArrowIcon/index.d.ts +4 -3
- package/ArrowIcon/index.js +13 -27
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
- package/BurgerIcon/index.d.ts +13 -7
- package/BurgerIcon/index.js +13 -33
- package/BurgerIcon/index.test.js +47 -5
- package/Button/index.d.ts +1 -1
- package/CHANGELOG.md +9 -1
- package/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/CaretIcon/index.d.ts +4 -3
- package/CaretIcon/index.js +13 -27
- package/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
- package/CheckIcon/index.d.ts +7 -11
- package/CheckIcon/index.js +10 -34
- package/CheckboxItem/index.d.ts +1 -1
- package/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
- package/CloseIcon/index.d.ts +9 -3
- package/CloseIcon/index.js +10 -7
- package/DateInputItem/index.d.ts +1 -1
- package/FieldsetLegend/index.d.ts +1 -1
- package/FileUpload/index.d.ts +1 -1
- package/Grid/index.d.ts +1 -1
- package/LabelTitle/index.d.ts +1 -1
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
- package/MoreVertIcon/index.d.ts +7 -11
- package/MoreVertIcon/index.js +10 -34
- package/NormalText/index.d.ts +1 -1
- package/Paragraph/index.d.ts +1 -1
- package/RadioItem/index.d.ts +1 -1
- package/Select/index.d.ts +1 -1
- package/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
- package/SvgIcon/index.d.ts +20 -0
- package/SvgIcon/index.js +41 -0
- package/SvgIcon/index.test.d.ts +1 -0
- package/SvgIcon/index.test.js +129 -0
- package/Table/index.d.ts +1 -1
- package/TextArea/index.d.ts +1 -1
- package/TextInput/index.d.ts +1 -1
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
- package/UncheckIcon/index.d.ts +9 -13
- package/UncheckIcon/index.js +15 -39
- package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/es/ArrowIcon/index.js +12 -19
- package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
- package/es/BurgerIcon/index.js +12 -25
- package/es/BurgerIcon/index.test.js +47 -5
- package/es/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/es/CaretIcon/index.js +12 -19
- package/es/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
- package/es/CheckIcon/index.js +9 -26
- package/es/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
- package/es/CloseIcon/index.js +9 -7
- package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
- package/es/MoreVertIcon/index.js +9 -26
- package/es/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
- package/es/SvgIcon/index.js +26 -0
- package/es/SvgIcon/index.test.js +123 -0
- package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
- package/es/UncheckIcon/index.js +12 -29
- package/es/index.js +1 -0
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/esm/ArrowIcon/index.js +12 -19
- package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
- package/esm/BurgerIcon/index.js +12 -25
- package/esm/BurgerIcon/index.test.js +47 -5
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/esm/CaretIcon/index.js +12 -19
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
- package/esm/CheckIcon/index.js +9 -26
- package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
- package/esm/CloseIcon/index.js +9 -7
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
- package/esm/MoreVertIcon/index.js +9 -26
- package/esm/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
- package/esm/SvgIcon/index.js +26 -0
- package/esm/SvgIcon/index.test.js +123 -0
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
- package/esm/UncheckIcon/index.js +12 -29
- package/esm/index.js +2 -1
- package/index.d.ts +1 -0
- package/index.js +8 -0
- package/package.json +2 -2
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the CheckIcon with no props 1`] = `
|
|
4
4
|
<ForwardRef(CheckIcon)>
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
<ForwardRef(SvgIcon)>
|
|
6
|
+
<svg
|
|
7
|
+
aria-hidden="true"
|
|
8
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
9
|
+
focusable="false"
|
|
10
|
+
viewBox="0 0 24 24"
|
|
11
|
+
>
|
|
12
|
+
<polygon
|
|
13
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
14
|
+
/>
|
|
15
|
+
</svg>
|
|
16
|
+
</ForwardRef(SvgIcon)>
|
|
15
17
|
</ForwardRef(CheckIcon)>
|
|
16
18
|
`;
|
|
17
19
|
|
|
@@ -19,16 +21,20 @@ exports[`renders the CheckIcon with prop size=l 1`] = `
|
|
|
19
21
|
<ForwardRef(CheckIcon)
|
|
20
22
|
size="l"
|
|
21
23
|
>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
className="govgr-svg-icon--dark govgr-svg-icon--l govgr-svg-icon--check govgr-svg-icon"
|
|
25
|
-
focusable="false"
|
|
26
|
-
viewBox="0 0 24 24"
|
|
24
|
+
<ForwardRef(SvgIcon)
|
|
25
|
+
size="l"
|
|
27
26
|
>
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
<svg
|
|
28
|
+
aria-hidden="true"
|
|
29
|
+
className="govgr-svg-icon--dark govgr-svg-icon--l govgr-svg-icon--check govgr-svg-icon"
|
|
30
|
+
focusable="false"
|
|
31
|
+
viewBox="0 0 24 24"
|
|
32
|
+
>
|
|
33
|
+
<polygon
|
|
34
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
35
|
+
/>
|
|
36
|
+
</svg>
|
|
37
|
+
</ForwardRef(SvgIcon)>
|
|
32
38
|
</ForwardRef(CheckIcon)>
|
|
33
39
|
`;
|
|
34
40
|
|
|
@@ -36,16 +42,20 @@ exports[`renders the CheckIcon with prop size=m 1`] = `
|
|
|
36
42
|
<ForwardRef(CheckIcon)
|
|
37
43
|
size="m"
|
|
38
44
|
>
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
42
|
-
focusable="false"
|
|
43
|
-
viewBox="0 0 24 24"
|
|
45
|
+
<ForwardRef(SvgIcon)
|
|
46
|
+
size="m"
|
|
44
47
|
>
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
<svg
|
|
49
|
+
aria-hidden="true"
|
|
50
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
51
|
+
focusable="false"
|
|
52
|
+
viewBox="0 0 24 24"
|
|
53
|
+
>
|
|
54
|
+
<polygon
|
|
55
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
56
|
+
/>
|
|
57
|
+
</svg>
|
|
58
|
+
</ForwardRef(SvgIcon)>
|
|
49
59
|
</ForwardRef(CheckIcon)>
|
|
50
60
|
`;
|
|
51
61
|
|
|
@@ -53,16 +63,20 @@ exports[`renders the CheckIcon with prop size=s 1`] = `
|
|
|
53
63
|
<ForwardRef(CheckIcon)
|
|
54
64
|
size="s"
|
|
55
65
|
>
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
className="govgr-svg-icon--dark govgr-svg-icon--s govgr-svg-icon--check govgr-svg-icon"
|
|
59
|
-
focusable="false"
|
|
60
|
-
viewBox="0 0 24 24"
|
|
66
|
+
<ForwardRef(SvgIcon)
|
|
67
|
+
size="s"
|
|
61
68
|
>
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
69
|
+
<svg
|
|
70
|
+
aria-hidden="true"
|
|
71
|
+
className="govgr-svg-icon--dark govgr-svg-icon--s govgr-svg-icon--check govgr-svg-icon"
|
|
72
|
+
focusable="false"
|
|
73
|
+
viewBox="0 0 24 24"
|
|
74
|
+
>
|
|
75
|
+
<polygon
|
|
76
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
77
|
+
/>
|
|
78
|
+
</svg>
|
|
79
|
+
</ForwardRef(SvgIcon)>
|
|
66
80
|
</ForwardRef(CheckIcon)>
|
|
67
81
|
`;
|
|
68
82
|
|
|
@@ -70,16 +84,20 @@ exports[`renders the CheckIcon with prop size=xl 1`] = `
|
|
|
70
84
|
<ForwardRef(CheckIcon)
|
|
71
85
|
size="xl"
|
|
72
86
|
>
|
|
73
|
-
<
|
|
74
|
-
|
|
75
|
-
className="govgr-svg-icon--dark govgr-svg-icon--xl govgr-svg-icon--check govgr-svg-icon"
|
|
76
|
-
focusable="false"
|
|
77
|
-
viewBox="0 0 24 24"
|
|
87
|
+
<ForwardRef(SvgIcon)
|
|
88
|
+
size="xl"
|
|
78
89
|
>
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
90
|
+
<svg
|
|
91
|
+
aria-hidden="true"
|
|
92
|
+
className="govgr-svg-icon--dark govgr-svg-icon--xl govgr-svg-icon--check govgr-svg-icon"
|
|
93
|
+
focusable="false"
|
|
94
|
+
viewBox="0 0 24 24"
|
|
95
|
+
>
|
|
96
|
+
<polygon
|
|
97
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
98
|
+
/>
|
|
99
|
+
</svg>
|
|
100
|
+
</ForwardRef(SvgIcon)>
|
|
83
101
|
</ForwardRef(CheckIcon)>
|
|
84
102
|
`;
|
|
85
103
|
|
|
@@ -87,16 +105,20 @@ exports[`renders the CheckIcon with prop variant=dark 1`] = `
|
|
|
87
105
|
<ForwardRef(CheckIcon)
|
|
88
106
|
variant="dark"
|
|
89
107
|
>
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
93
|
-
focusable="false"
|
|
94
|
-
viewBox="0 0 24 24"
|
|
108
|
+
<ForwardRef(SvgIcon)
|
|
109
|
+
variant="dark"
|
|
95
110
|
>
|
|
96
|
-
<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
111
|
+
<svg
|
|
112
|
+
aria-hidden="true"
|
|
113
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
114
|
+
focusable="false"
|
|
115
|
+
viewBox="0 0 24 24"
|
|
116
|
+
>
|
|
117
|
+
<polygon
|
|
118
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
119
|
+
/>
|
|
120
|
+
</svg>
|
|
121
|
+
</ForwardRef(SvgIcon)>
|
|
100
122
|
</ForwardRef(CheckIcon)>
|
|
101
123
|
`;
|
|
102
124
|
|
|
@@ -104,16 +126,20 @@ exports[`renders the CheckIcon with prop variant=error 1`] = `
|
|
|
104
126
|
<ForwardRef(CheckIcon)
|
|
105
127
|
variant="error"
|
|
106
128
|
>
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
className="govgr-svg-icon--error govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
110
|
-
focusable="false"
|
|
111
|
-
viewBox="0 0 24 24"
|
|
129
|
+
<ForwardRef(SvgIcon)
|
|
130
|
+
variant="error"
|
|
112
131
|
>
|
|
113
|
-
<
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
132
|
+
<svg
|
|
133
|
+
aria-hidden="true"
|
|
134
|
+
className="govgr-svg-icon--error govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
135
|
+
focusable="false"
|
|
136
|
+
viewBox="0 0 24 24"
|
|
137
|
+
>
|
|
138
|
+
<polygon
|
|
139
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
140
|
+
/>
|
|
141
|
+
</svg>
|
|
142
|
+
</ForwardRef(SvgIcon)>
|
|
117
143
|
</ForwardRef(CheckIcon)>
|
|
118
144
|
`;
|
|
119
145
|
|
|
@@ -122,16 +148,21 @@ exports[`renders the CheckIcon with prop variant=error and size= xl 1`] = `
|
|
|
122
148
|
size="xl"
|
|
123
149
|
variant="warning"
|
|
124
150
|
>
|
|
125
|
-
<
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
focusable="false"
|
|
129
|
-
viewBox="0 0 24 24"
|
|
151
|
+
<ForwardRef(SvgIcon)
|
|
152
|
+
size="xl"
|
|
153
|
+
variant="warning"
|
|
130
154
|
>
|
|
131
|
-
<
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
155
|
+
<svg
|
|
156
|
+
aria-hidden="true"
|
|
157
|
+
className="govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon--check govgr-svg-icon"
|
|
158
|
+
focusable="false"
|
|
159
|
+
viewBox="0 0 24 24"
|
|
160
|
+
>
|
|
161
|
+
<polygon
|
|
162
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
163
|
+
/>
|
|
164
|
+
</svg>
|
|
165
|
+
</ForwardRef(SvgIcon)>
|
|
135
166
|
</ForwardRef(CheckIcon)>
|
|
136
167
|
`;
|
|
137
168
|
|
|
@@ -139,16 +170,20 @@ exports[`renders the CheckIcon with prop variant=focus 1`] = `
|
|
|
139
170
|
<ForwardRef(CheckIcon)
|
|
140
171
|
variant="focus"
|
|
141
172
|
>
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
className="govgr-svg-icon--focus govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
145
|
-
focusable="false"
|
|
146
|
-
viewBox="0 0 24 24"
|
|
173
|
+
<ForwardRef(SvgIcon)
|
|
174
|
+
variant="focus"
|
|
147
175
|
>
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
176
|
+
<svg
|
|
177
|
+
aria-hidden="true"
|
|
178
|
+
className="govgr-svg-icon--focus govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
179
|
+
focusable="false"
|
|
180
|
+
viewBox="0 0 24 24"
|
|
181
|
+
>
|
|
182
|
+
<polygon
|
|
183
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
184
|
+
/>
|
|
185
|
+
</svg>
|
|
186
|
+
</ForwardRef(SvgIcon)>
|
|
152
187
|
</ForwardRef(CheckIcon)>
|
|
153
188
|
`;
|
|
154
189
|
|
|
@@ -156,16 +191,20 @@ exports[`renders the CheckIcon with prop variant=gray 1`] = `
|
|
|
156
191
|
<ForwardRef(CheckIcon)
|
|
157
192
|
variant="gray"
|
|
158
193
|
>
|
|
159
|
-
<
|
|
160
|
-
|
|
161
|
-
className="govgr-svg-icon--gray govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
162
|
-
focusable="false"
|
|
163
|
-
viewBox="0 0 24 24"
|
|
194
|
+
<ForwardRef(SvgIcon)
|
|
195
|
+
variant="gray"
|
|
164
196
|
>
|
|
165
|
-
<
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
197
|
+
<svg
|
|
198
|
+
aria-hidden="true"
|
|
199
|
+
className="govgr-svg-icon--gray govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
200
|
+
focusable="false"
|
|
201
|
+
viewBox="0 0 24 24"
|
|
202
|
+
>
|
|
203
|
+
<polygon
|
|
204
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
205
|
+
/>
|
|
206
|
+
</svg>
|
|
207
|
+
</ForwardRef(SvgIcon)>
|
|
169
208
|
</ForwardRef(CheckIcon)>
|
|
170
209
|
`;
|
|
171
210
|
|
|
@@ -173,16 +212,20 @@ exports[`renders the CheckIcon with prop variant=light 1`] = `
|
|
|
173
212
|
<ForwardRef(CheckIcon)
|
|
174
213
|
variant="light"
|
|
175
214
|
>
|
|
176
|
-
<
|
|
177
|
-
|
|
178
|
-
className="govgr-svg-icon--light govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
179
|
-
focusable="false"
|
|
180
|
-
viewBox="0 0 24 24"
|
|
215
|
+
<ForwardRef(SvgIcon)
|
|
216
|
+
variant="light"
|
|
181
217
|
>
|
|
182
|
-
<
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
218
|
+
<svg
|
|
219
|
+
aria-hidden="true"
|
|
220
|
+
className="govgr-svg-icon--light govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
221
|
+
focusable="false"
|
|
222
|
+
viewBox="0 0 24 24"
|
|
223
|
+
>
|
|
224
|
+
<polygon
|
|
225
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
226
|
+
/>
|
|
227
|
+
</svg>
|
|
228
|
+
</ForwardRef(SvgIcon)>
|
|
186
229
|
</ForwardRef(CheckIcon)>
|
|
187
230
|
`;
|
|
188
231
|
|
|
@@ -190,16 +233,20 @@ exports[`renders the CheckIcon with prop variant=primary 1`] = `
|
|
|
190
233
|
<ForwardRef(CheckIcon)
|
|
191
234
|
variant="primary"
|
|
192
235
|
>
|
|
193
|
-
<
|
|
194
|
-
|
|
195
|
-
className="govgr-svg-icon--primary govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
196
|
-
focusable="false"
|
|
197
|
-
viewBox="0 0 24 24"
|
|
236
|
+
<ForwardRef(SvgIcon)
|
|
237
|
+
variant="primary"
|
|
198
238
|
>
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
239
|
+
<svg
|
|
240
|
+
aria-hidden="true"
|
|
241
|
+
className="govgr-svg-icon--primary govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
242
|
+
focusable="false"
|
|
243
|
+
viewBox="0 0 24 24"
|
|
244
|
+
>
|
|
245
|
+
<polygon
|
|
246
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
247
|
+
/>
|
|
248
|
+
</svg>
|
|
249
|
+
</ForwardRef(SvgIcon)>
|
|
203
250
|
</ForwardRef(CheckIcon)>
|
|
204
251
|
`;
|
|
205
252
|
|
|
@@ -207,16 +254,20 @@ exports[`renders the CheckIcon with prop variant=success 1`] = `
|
|
|
207
254
|
<ForwardRef(CheckIcon)
|
|
208
255
|
variant="success"
|
|
209
256
|
>
|
|
210
|
-
<
|
|
211
|
-
|
|
212
|
-
className="govgr-svg-icon--success govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
213
|
-
focusable="false"
|
|
214
|
-
viewBox="0 0 24 24"
|
|
257
|
+
<ForwardRef(SvgIcon)
|
|
258
|
+
variant="success"
|
|
215
259
|
>
|
|
216
|
-
<
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
260
|
+
<svg
|
|
261
|
+
aria-hidden="true"
|
|
262
|
+
className="govgr-svg-icon--success govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
263
|
+
focusable="false"
|
|
264
|
+
viewBox="0 0 24 24"
|
|
265
|
+
>
|
|
266
|
+
<polygon
|
|
267
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
268
|
+
/>
|
|
269
|
+
</svg>
|
|
270
|
+
</ForwardRef(SvgIcon)>
|
|
220
271
|
</ForwardRef(CheckIcon)>
|
|
221
272
|
`;
|
|
222
273
|
|
|
@@ -224,16 +275,20 @@ exports[`renders the CheckIcon with prop variant=warning 1`] = `
|
|
|
224
275
|
<ForwardRef(CheckIcon)
|
|
225
276
|
variant="warning"
|
|
226
277
|
>
|
|
227
|
-
<
|
|
228
|
-
|
|
229
|
-
className="govgr-svg-icon--warning govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
230
|
-
focusable="false"
|
|
231
|
-
viewBox="0 0 24 24"
|
|
278
|
+
<ForwardRef(SvgIcon)
|
|
279
|
+
variant="warning"
|
|
232
280
|
>
|
|
233
|
-
<
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
281
|
+
<svg
|
|
282
|
+
aria-hidden="true"
|
|
283
|
+
className="govgr-svg-icon--warning govgr-svg-icon--m govgr-svg-icon--check govgr-svg-icon"
|
|
284
|
+
focusable="false"
|
|
285
|
+
viewBox="0 0 24 24"
|
|
286
|
+
>
|
|
287
|
+
<polygon
|
|
288
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
289
|
+
/>
|
|
290
|
+
</svg>
|
|
291
|
+
</ForwardRef(SvgIcon)>
|
|
237
292
|
</ForwardRef(CheckIcon)>
|
|
238
293
|
`;
|
|
239
294
|
|
|
@@ -242,15 +297,20 @@ exports[`renders the CheckIcon with prop variant=warning and size=s 1`] = `
|
|
|
242
297
|
size="s"
|
|
243
298
|
variant="warning"
|
|
244
299
|
>
|
|
245
|
-
<
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
focusable="false"
|
|
249
|
-
viewBox="0 0 24 24"
|
|
300
|
+
<ForwardRef(SvgIcon)
|
|
301
|
+
size="s"
|
|
302
|
+
variant="warning"
|
|
250
303
|
>
|
|
251
|
-
<
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
304
|
+
<svg
|
|
305
|
+
aria-hidden="true"
|
|
306
|
+
className="govgr-svg-icon--warning govgr-svg-icon--s govgr-svg-icon--check govgr-svg-icon"
|
|
307
|
+
focusable="false"
|
|
308
|
+
viewBox="0 0 24 24"
|
|
309
|
+
>
|
|
310
|
+
<polygon
|
|
311
|
+
points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
312
|
+
/>
|
|
313
|
+
</svg>
|
|
314
|
+
</ForwardRef(SvgIcon)>
|
|
255
315
|
</ForwardRef(CheckIcon)>
|
|
256
316
|
`;
|
package/CheckIcon/index.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export interface CheckIconProps extends
|
|
2
|
+
import { SvgIconProps } from '@digigov/react-core/SvgIcon';
|
|
3
|
+
export interface CheckIconProps extends SvgIconProps {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* ref is optional.
|
|
6
|
+
* ref prop declares the reference of the svg icon component.
|
|
7
|
+
* It can be used to to access the DOM element and the React element.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* variant property styles svg icon with Gov.gr palette's basic colors.
|
|
11
|
-
* variant property is optional. The default value is 'dark'
|
|
12
|
-
*/
|
|
13
|
-
variant?: 'dark' | 'light' | 'gray' | 'primary' | 'success' | 'warning' | 'error' | 'focus' | 'link';
|
|
9
|
+
ref?: React.Ref<SVGSVGElement>;
|
|
14
10
|
}
|
|
15
11
|
/**
|
|
16
12
|
* Use CheckIcon component when you need a check icon.
|
|
17
13
|
*/
|
|
18
|
-
export declare const CheckIcon: React.
|
|
14
|
+
export declare const CheckIcon: React.FC<CheckIconProps>;
|
|
19
15
|
export default CheckIcon;
|
package/CheckIcon/index.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -11,20 +9,16 @@ exports["default"] = exports.CheckIcon = void 0;
|
|
|
11
9
|
|
|
12
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
11
|
|
|
14
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
-
|
|
16
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
13
|
|
|
18
|
-
var _react =
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _SvgIcon = _interopRequireDefault(require("@digigov/react-core/SvgIcon"));
|
|
19
17
|
|
|
20
18
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
21
19
|
|
|
22
20
|
var _excluded = ["size", "variant", "className"];
|
|
23
21
|
|
|
24
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
|
|
28
22
|
var _ref2 = /*#__PURE__*/_react["default"].createElement("polygon", {
|
|
29
23
|
points: "9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
30
24
|
});
|
|
@@ -33,33 +27,15 @@ var _ref2 = /*#__PURE__*/_react["default"].createElement("polygon", {
|
|
|
33
27
|
* Use CheckIcon component when you need a check icon.
|
|
34
28
|
*/
|
|
35
29
|
var CheckIcon = /*#__PURE__*/_react["default"].forwardRef(function CheckIcon(_ref, ref) {
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
_ref$variant = _ref.variant,
|
|
39
|
-
variant = _ref$variant === void 0 ? 'dark' : _ref$variant,
|
|
30
|
+
var size = _ref.size,
|
|
31
|
+
variant = _ref.variant,
|
|
40
32
|
className = _ref.className,
|
|
41
33
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
var _useState3 = (0, _react.useState)(variant),
|
|
49
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
50
|
-
checkVariant = _useState4[0],
|
|
51
|
-
setVariant = _useState4[1];
|
|
52
|
-
|
|
53
|
-
(0, _react.useEffect)(function () {
|
|
54
|
-
setSize(size);
|
|
55
|
-
setVariant(variant);
|
|
56
|
-
}, [size, variant]);
|
|
57
|
-
return /*#__PURE__*/_react["default"].createElement("svg", (0, _extends2["default"])({
|
|
58
|
-
ref: ref,
|
|
59
|
-
className: (0, _clsx["default"])(checkVariant === 'success' && 'govgr-svg-icon--success', checkVariant === 'primary' && 'govgr-svg-icon--primary', checkVariant === 'warning' && 'govgr-svg-icon--warning', checkVariant === 'light' && 'govgr-svg-icon--light', checkVariant === 'error' && 'govgr-svg-icon--error', checkVariant === 'focus' && 'govgr-svg-icon--focus', checkVariant === 'dark' && 'govgr-svg-icon--dark', checkVariant === 'gray' && 'govgr-svg-icon--gray', checkVariant === 'link' && 'govgr-svg-icon--link', checkSize === 'xl' && 'govgr-svg-icon--xl', checkSize === 's' && 'govgr-svg-icon--s', checkSize === 'm' && 'govgr-svg-icon--m', checkSize === 'l' && 'govgr-svg-icon--l', className && className, true && ['govgr-svg-icon--check', 'govgr-svg-icon']),
|
|
60
|
-
focusable: "false",
|
|
61
|
-
viewBox: "0 0 24 24",
|
|
62
|
-
"aria-hidden": "true"
|
|
34
|
+
return /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], (0, _extends2["default"])({
|
|
35
|
+
size: size,
|
|
36
|
+
variant: variant,
|
|
37
|
+
className: (0, _clsx["default"])(className && className, true && 'govgr-svg-icon--check'),
|
|
38
|
+
ref: ref
|
|
63
39
|
}, props), _ref2);
|
|
64
40
|
});
|
|
65
41
|
|
package/CheckboxItem/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export interface CheckboxItemProps extends InputElementAttributes {
|
|
|
15
15
|
* CheckboxItem component allows the user to select one or more checkboxes
|
|
16
16
|
* CheckboxItem must be used inside Checkbox component
|
|
17
17
|
*/
|
|
18
|
-
export declare const CheckboxItem: React.ForwardRefExoticComponent<Pick<CheckboxItemProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "list" | "step" | "height" | "max" | "min" | "name" | "type" | "width" | "crossOrigin" | "value" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "
|
|
18
|
+
export declare const CheckboxItem: React.ForwardRefExoticComponent<Pick<CheckboxItemProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "list" | "step" | "size" | "height" | "max" | "min" | "name" | "type" | "width" | "crossOrigin" | "value" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "src"> & React.RefAttributes<HTMLInputElement>>;
|
|
19
19
|
export default CheckboxItem;
|
|
@@ -2,15 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`renders the CloseIcon with no props 1`] = `
|
|
4
4
|
<ForwardRef(CloseIcon)>
|
|
5
|
-
<
|
|
6
|
-
aria-hidden="true"
|
|
5
|
+
<ForwardRef(SvgIcon)
|
|
7
6
|
className="govgr-close-icon"
|
|
8
|
-
focusable="false"
|
|
9
|
-
viewBox="0 0 24 24"
|
|
10
7
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
<svg
|
|
9
|
+
aria-hidden="true"
|
|
10
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-close-icon govgr-svg-icon"
|
|
11
|
+
focusable="false"
|
|
12
|
+
viewBox="0 0 24 24"
|
|
13
|
+
>
|
|
14
|
+
<polygon
|
|
15
|
+
points="14.4,11.8 22,4.2 19.7,1.8 12,9.4 4.4,1.8 2,4.2 9.7,11.9 2.1,19.5 4.4,21.9 12.1,14.3 19.7,21.9 22.1,19.5 "
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
</ForwardRef(SvgIcon)>
|
|
15
19
|
</ForwardRef(CloseIcon)>
|
|
16
20
|
`;
|