@digigov/react-icons 1.0.0-rc → 1.0.0-rc.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/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
- package/AccessibilityIcon/index.d.ts +1 -1
- package/AccessibilityIcon/index.js +1 -1
- package/AccessibilityIcon/index.test.js +13 -69
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
- package/ArrowIcon/config.d.ts +7 -0
- package/ArrowIcon/index.d.ts +1 -1
- package/ArrowIcon/index.js +1 -1
- package/BurgerIcon/index.d.ts +1 -1
- package/BurgerIcon/index.js +1 -1
- package/CaretIcon/config.d.ts +7 -0
- package/CaretIcon/index.d.ts +1 -1
- package/CaretIcon/index.js +1 -1
- package/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
- package/CheckIcon/index.d.ts +1 -1
- package/CheckIcon/index.js +1 -1
- package/CheckIcon/index.test.js +13 -69
- package/CloseIcon/index.d.ts +1 -1
- package/CloseIcon/index.js +1 -1
- package/GlobeIcon/index.d.ts +1 -1
- package/GlobeIcon/index.js +1 -1
- package/Icon/__snapshots__/index.test.tsx.snap +343 -0
- package/Icon/index.d.ts +25 -0
- package/Icon/index.js +58 -0
- package/Icon/index.test.d.ts +1 -0
- package/Icon/index.test.js +88 -0
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
- package/MoreVertIcon/index.d.ts +1 -1
- package/MoreVertIcon/index.js +1 -1
- package/MoreVertIcon/index.test.js +13 -61
- package/SearchIcon/index.d.ts +1 -1
- package/SearchIcon/index.js +1 -1
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
- package/UncheckIcon/index.d.ts +1 -1
- package/UncheckIcon/index.js +1 -1
- package/UncheckIcon/index.test.js +15 -63
- package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
- package/es/AccessibilityIcon/index.js +1 -1
- package/es/AccessibilityIcon/index.test.js +13 -69
- package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
- package/es/ArrowIcon/index.js +1 -1
- package/es/BurgerIcon/index.js +1 -1
- package/es/CaretIcon/index.js +1 -1
- package/es/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
- package/es/CheckIcon/index.js +1 -1
- package/es/CheckIcon/index.test.js +13 -69
- package/es/CloseIcon/index.js +1 -1
- package/es/GlobeIcon/index.js +1 -1
- package/es/Icon/__snapshots__/index.test.tsx.snap +343 -0
- package/es/Icon/index.js +34 -0
- package/es/Icon/index.test.js +82 -0
- package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
- package/es/MoreVertIcon/index.js +1 -1
- package/es/MoreVertIcon/index.test.js +13 -61
- package/es/SearchIcon/index.js +1 -1
- package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
- package/es/UncheckIcon/index.js +1 -1
- package/es/UncheckIcon/index.test.js +15 -63
- package/es/registry.js +2 -0
- package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
- package/esm/AccessibilityIcon/index.js +1 -1
- package/esm/AccessibilityIcon/index.test.js +13 -69
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
- package/esm/ArrowIcon/index.js +1 -1
- package/esm/BurgerIcon/index.js +1 -1
- package/esm/CaretIcon/index.js +1 -1
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
- package/esm/CheckIcon/index.js +1 -1
- package/esm/CheckIcon/index.test.js +13 -69
- package/esm/CloseIcon/index.js +1 -1
- package/esm/GlobeIcon/index.js +1 -1
- package/esm/Icon/__snapshots__/index.test.tsx.snap +343 -0
- package/esm/Icon/index.js +34 -0
- package/esm/Icon/index.test.js +82 -0
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
- package/esm/MoreVertIcon/index.js +1 -1
- package/esm/MoreVertIcon/index.test.js +13 -61
- package/esm/SearchIcon/index.js +1 -1
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
- package/esm/UncheckIcon/index.js +1 -1
- package/esm/UncheckIcon/index.test.js +15 -63
- package/esm/registry.js +2 -0
- package/package.json +2 -3
- package/registry.d.ts +1 -0
- package/registry.js +3 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
- package/src/AccessibilityIcon/index.test.tsx +0 -21
- package/src/AccessibilityIcon/index.tsx +1 -1
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
- package/src/ArrowIcon/config.tsx +8 -1
- package/src/ArrowIcon/index.tsx +1 -1
- package/src/BurgerIcon/index.tsx +1 -1
- package/src/CaretIcon/config.tsx +8 -1
- package/src/CaretIcon/index.tsx +1 -1
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
- package/src/CheckIcon/index.test.tsx +0 -21
- package/src/CheckIcon/index.tsx +1 -1
- package/src/CloseIcon/index.tsx +1 -1
- package/src/GlobeIcon/index.tsx +1 -1
- package/src/Icon/__snapshots__/index.test.tsx.snap +343 -0
- package/src/Icon/index.test.tsx +36 -0
- package/src/Icon/index.tsx +63 -0
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
- package/src/MoreVertIcon/index.test.tsx +0 -18
- package/src/MoreVertIcon/index.tsx +1 -1
- package/src/SearchIcon/index.tsx +1 -1
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
- package/src/UncheckIcon/index.test.tsx +0 -18
- package/src/UncheckIcon/index.tsx +1 -1
- package/src/registry.js +2 -0
|
@@ -33,43 +33,6 @@ exports[`renders the CheckIcon with no props 1`] = `
|
|
|
33
33
|
</CheckIcon>
|
|
34
34
|
`;
|
|
35
35
|
|
|
36
|
-
exports[`renders the CheckIcon with prop size=l 1`] = `
|
|
37
|
-
<CheckIcon
|
|
38
|
-
size="lg"
|
|
39
|
-
>
|
|
40
|
-
<ForwardRef(Icon)
|
|
41
|
-
icon="check"
|
|
42
|
-
size="lg"
|
|
43
|
-
>
|
|
44
|
-
<ForwardRef(SvgIcon)
|
|
45
|
-
className="govgr-svg-icon--check"
|
|
46
|
-
size="lg"
|
|
47
|
-
>
|
|
48
|
-
<ForwardRef(Base)
|
|
49
|
-
aria-hidden="true"
|
|
50
|
-
as="svg"
|
|
51
|
-
className="govgr-svg-icon--check govgr-svg-icon--lg govgr-svg-icon"
|
|
52
|
-
focusable="false"
|
|
53
|
-
viewBox="0 0 24 24"
|
|
54
|
-
>
|
|
55
|
-
<svg
|
|
56
|
-
aria-hidden="true"
|
|
57
|
-
className="govgr-svg-icon--check govgr-svg-icon--lg govgr-svg-icon"
|
|
58
|
-
focusable="false"
|
|
59
|
-
viewBox="0 0 24 24"
|
|
60
|
-
>
|
|
61
|
-
<check>
|
|
62
|
-
<polygon
|
|
63
|
-
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"
|
|
64
|
-
/>
|
|
65
|
-
</check>
|
|
66
|
-
</svg>
|
|
67
|
-
</ForwardRef(Base)>
|
|
68
|
-
</ForwardRef(SvgIcon)>
|
|
69
|
-
</ForwardRef(Icon)>
|
|
70
|
-
</CheckIcon>
|
|
71
|
-
`;
|
|
72
|
-
|
|
73
36
|
exports[`renders the CheckIcon with prop size=m 1`] = `
|
|
74
37
|
<CheckIcon
|
|
75
38
|
size="md"
|
|
@@ -107,43 +70,6 @@ exports[`renders the CheckIcon with prop size=m 1`] = `
|
|
|
107
70
|
</CheckIcon>
|
|
108
71
|
`;
|
|
109
72
|
|
|
110
|
-
exports[`renders the CheckIcon with prop size=s 1`] = `
|
|
111
|
-
<CheckIcon
|
|
112
|
-
size="sm"
|
|
113
|
-
>
|
|
114
|
-
<ForwardRef(Icon)
|
|
115
|
-
icon="check"
|
|
116
|
-
size="sm"
|
|
117
|
-
>
|
|
118
|
-
<ForwardRef(SvgIcon)
|
|
119
|
-
className="govgr-svg-icon--check"
|
|
120
|
-
size="sm"
|
|
121
|
-
>
|
|
122
|
-
<ForwardRef(Base)
|
|
123
|
-
aria-hidden="true"
|
|
124
|
-
as="svg"
|
|
125
|
-
className="govgr-svg-icon--check govgr-svg-icon--sm govgr-svg-icon"
|
|
126
|
-
focusable="false"
|
|
127
|
-
viewBox="0 0 24 24"
|
|
128
|
-
>
|
|
129
|
-
<svg
|
|
130
|
-
aria-hidden="true"
|
|
131
|
-
className="govgr-svg-icon--check govgr-svg-icon--sm govgr-svg-icon"
|
|
132
|
-
focusable="false"
|
|
133
|
-
viewBox="0 0 24 24"
|
|
134
|
-
>
|
|
135
|
-
<check>
|
|
136
|
-
<polygon
|
|
137
|
-
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"
|
|
138
|
-
/>
|
|
139
|
-
</check>
|
|
140
|
-
</svg>
|
|
141
|
-
</ForwardRef(Base)>
|
|
142
|
-
</ForwardRef(SvgIcon)>
|
|
143
|
-
</ForwardRef(Icon)>
|
|
144
|
-
</CheckIcon>
|
|
145
|
-
`;
|
|
146
|
-
|
|
147
73
|
exports[`renders the CheckIcon with prop size=xl 1`] = `
|
|
148
74
|
<CheckIcon
|
|
149
75
|
size="xl"
|
|
@@ -181,80 +107,6 @@ exports[`renders the CheckIcon with prop size=xl 1`] = `
|
|
|
181
107
|
</CheckIcon>
|
|
182
108
|
`;
|
|
183
109
|
|
|
184
|
-
exports[`renders the CheckIcon with prop variant=dark 1`] = `
|
|
185
|
-
<CheckIcon
|
|
186
|
-
variant="dark"
|
|
187
|
-
>
|
|
188
|
-
<ForwardRef(Icon)
|
|
189
|
-
icon="check"
|
|
190
|
-
variant="dark"
|
|
191
|
-
>
|
|
192
|
-
<ForwardRef(SvgIcon)
|
|
193
|
-
className="govgr-svg-icon--check"
|
|
194
|
-
variant="dark"
|
|
195
|
-
>
|
|
196
|
-
<ForwardRef(Base)
|
|
197
|
-
aria-hidden="true"
|
|
198
|
-
as="svg"
|
|
199
|
-
className="govgr-svg-icon--check govgr-svg-icon--dark govgr-svg-icon"
|
|
200
|
-
focusable="false"
|
|
201
|
-
viewBox="0 0 24 24"
|
|
202
|
-
>
|
|
203
|
-
<svg
|
|
204
|
-
aria-hidden="true"
|
|
205
|
-
className="govgr-svg-icon--check govgr-svg-icon--dark govgr-svg-icon"
|
|
206
|
-
focusable="false"
|
|
207
|
-
viewBox="0 0 24 24"
|
|
208
|
-
>
|
|
209
|
-
<check>
|
|
210
|
-
<polygon
|
|
211
|
-
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"
|
|
212
|
-
/>
|
|
213
|
-
</check>
|
|
214
|
-
</svg>
|
|
215
|
-
</ForwardRef(Base)>
|
|
216
|
-
</ForwardRef(SvgIcon)>
|
|
217
|
-
</ForwardRef(Icon)>
|
|
218
|
-
</CheckIcon>
|
|
219
|
-
`;
|
|
220
|
-
|
|
221
|
-
exports[`renders the CheckIcon with prop variant=error 1`] = `
|
|
222
|
-
<CheckIcon
|
|
223
|
-
variant="error"
|
|
224
|
-
>
|
|
225
|
-
<ForwardRef(Icon)
|
|
226
|
-
icon="check"
|
|
227
|
-
variant="error"
|
|
228
|
-
>
|
|
229
|
-
<ForwardRef(SvgIcon)
|
|
230
|
-
className="govgr-svg-icon--check"
|
|
231
|
-
variant="error"
|
|
232
|
-
>
|
|
233
|
-
<ForwardRef(Base)
|
|
234
|
-
aria-hidden="true"
|
|
235
|
-
as="svg"
|
|
236
|
-
className="govgr-svg-icon--check govgr-svg-icon--error govgr-svg-icon"
|
|
237
|
-
focusable="false"
|
|
238
|
-
viewBox="0 0 24 24"
|
|
239
|
-
>
|
|
240
|
-
<svg
|
|
241
|
-
aria-hidden="true"
|
|
242
|
-
className="govgr-svg-icon--check govgr-svg-icon--error govgr-svg-icon"
|
|
243
|
-
focusable="false"
|
|
244
|
-
viewBox="0 0 24 24"
|
|
245
|
-
>
|
|
246
|
-
<check>
|
|
247
|
-
<polygon
|
|
248
|
-
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"
|
|
249
|
-
/>
|
|
250
|
-
</check>
|
|
251
|
-
</svg>
|
|
252
|
-
</ForwardRef(Base)>
|
|
253
|
-
</ForwardRef(SvgIcon)>
|
|
254
|
-
</ForwardRef(Icon)>
|
|
255
|
-
</CheckIcon>
|
|
256
|
-
`;
|
|
257
|
-
|
|
258
110
|
exports[`renders the CheckIcon with prop variant=error and size= xl 1`] = `
|
|
259
111
|
<CheckIcon
|
|
260
112
|
size="xl"
|
|
@@ -295,80 +147,6 @@ exports[`renders the CheckIcon with prop variant=error and size= xl 1`] = `
|
|
|
295
147
|
</CheckIcon>
|
|
296
148
|
`;
|
|
297
149
|
|
|
298
|
-
exports[`renders the CheckIcon with prop variant=focus 1`] = `
|
|
299
|
-
<CheckIcon
|
|
300
|
-
variant="focus"
|
|
301
|
-
>
|
|
302
|
-
<ForwardRef(Icon)
|
|
303
|
-
icon="check"
|
|
304
|
-
variant="focus"
|
|
305
|
-
>
|
|
306
|
-
<ForwardRef(SvgIcon)
|
|
307
|
-
className="govgr-svg-icon--check"
|
|
308
|
-
variant="focus"
|
|
309
|
-
>
|
|
310
|
-
<ForwardRef(Base)
|
|
311
|
-
aria-hidden="true"
|
|
312
|
-
as="svg"
|
|
313
|
-
className="govgr-svg-icon--check govgr-svg-icon--focus govgr-svg-icon"
|
|
314
|
-
focusable="false"
|
|
315
|
-
viewBox="0 0 24 24"
|
|
316
|
-
>
|
|
317
|
-
<svg
|
|
318
|
-
aria-hidden="true"
|
|
319
|
-
className="govgr-svg-icon--check govgr-svg-icon--focus govgr-svg-icon"
|
|
320
|
-
focusable="false"
|
|
321
|
-
viewBox="0 0 24 24"
|
|
322
|
-
>
|
|
323
|
-
<check>
|
|
324
|
-
<polygon
|
|
325
|
-
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"
|
|
326
|
-
/>
|
|
327
|
-
</check>
|
|
328
|
-
</svg>
|
|
329
|
-
</ForwardRef(Base)>
|
|
330
|
-
</ForwardRef(SvgIcon)>
|
|
331
|
-
</ForwardRef(Icon)>
|
|
332
|
-
</CheckIcon>
|
|
333
|
-
`;
|
|
334
|
-
|
|
335
|
-
exports[`renders the CheckIcon with prop variant=gray 1`] = `
|
|
336
|
-
<CheckIcon
|
|
337
|
-
variant="gray"
|
|
338
|
-
>
|
|
339
|
-
<ForwardRef(Icon)
|
|
340
|
-
icon="check"
|
|
341
|
-
variant="gray"
|
|
342
|
-
>
|
|
343
|
-
<ForwardRef(SvgIcon)
|
|
344
|
-
className="govgr-svg-icon--check"
|
|
345
|
-
variant="gray"
|
|
346
|
-
>
|
|
347
|
-
<ForwardRef(Base)
|
|
348
|
-
aria-hidden="true"
|
|
349
|
-
as="svg"
|
|
350
|
-
className="govgr-svg-icon--check govgr-svg-icon--gray govgr-svg-icon"
|
|
351
|
-
focusable="false"
|
|
352
|
-
viewBox="0 0 24 24"
|
|
353
|
-
>
|
|
354
|
-
<svg
|
|
355
|
-
aria-hidden="true"
|
|
356
|
-
className="govgr-svg-icon--check govgr-svg-icon--gray govgr-svg-icon"
|
|
357
|
-
focusable="false"
|
|
358
|
-
viewBox="0 0 24 24"
|
|
359
|
-
>
|
|
360
|
-
<check>
|
|
361
|
-
<polygon
|
|
362
|
-
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"
|
|
363
|
-
/>
|
|
364
|
-
</check>
|
|
365
|
-
</svg>
|
|
366
|
-
</ForwardRef(Base)>
|
|
367
|
-
</ForwardRef(SvgIcon)>
|
|
368
|
-
</ForwardRef(Icon)>
|
|
369
|
-
</CheckIcon>
|
|
370
|
-
`;
|
|
371
|
-
|
|
372
150
|
exports[`renders the CheckIcon with prop variant=light 1`] = `
|
|
373
151
|
<CheckIcon
|
|
374
152
|
variant="light"
|
|
@@ -406,43 +184,6 @@ exports[`renders the CheckIcon with prop variant=light 1`] = `
|
|
|
406
184
|
</CheckIcon>
|
|
407
185
|
`;
|
|
408
186
|
|
|
409
|
-
exports[`renders the CheckIcon with prop variant=primary 1`] = `
|
|
410
|
-
<CheckIcon
|
|
411
|
-
variant="primary"
|
|
412
|
-
>
|
|
413
|
-
<ForwardRef(Icon)
|
|
414
|
-
icon="check"
|
|
415
|
-
variant="primary"
|
|
416
|
-
>
|
|
417
|
-
<ForwardRef(SvgIcon)
|
|
418
|
-
className="govgr-svg-icon--check"
|
|
419
|
-
variant="primary"
|
|
420
|
-
>
|
|
421
|
-
<ForwardRef(Base)
|
|
422
|
-
aria-hidden="true"
|
|
423
|
-
as="svg"
|
|
424
|
-
className="govgr-svg-icon--check govgr-svg-icon--primary govgr-svg-icon"
|
|
425
|
-
focusable="false"
|
|
426
|
-
viewBox="0 0 24 24"
|
|
427
|
-
>
|
|
428
|
-
<svg
|
|
429
|
-
aria-hidden="true"
|
|
430
|
-
className="govgr-svg-icon--check govgr-svg-icon--primary govgr-svg-icon"
|
|
431
|
-
focusable="false"
|
|
432
|
-
viewBox="0 0 24 24"
|
|
433
|
-
>
|
|
434
|
-
<check>
|
|
435
|
-
<polygon
|
|
436
|
-
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"
|
|
437
|
-
/>
|
|
438
|
-
</check>
|
|
439
|
-
</svg>
|
|
440
|
-
</ForwardRef(Base)>
|
|
441
|
-
</ForwardRef(SvgIcon)>
|
|
442
|
-
</ForwardRef(Icon)>
|
|
443
|
-
</CheckIcon>
|
|
444
|
-
`;
|
|
445
|
-
|
|
446
187
|
exports[`renders the CheckIcon with prop variant=success 1`] = `
|
|
447
188
|
<CheckIcon
|
|
448
189
|
variant="success"
|
package/CheckIcon/index.d.ts
CHANGED
package/CheckIcon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("@digigov/react-
|
|
14
|
+
var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
|
|
15
15
|
|
|
16
16
|
var CheckIcon = function CheckIcon(props) {
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
package/CheckIcon/index.test.js
CHANGED
|
@@ -15,115 +15,59 @@ it('renders the CheckIcon with no props', function () {
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
var _ref2 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
18
|
-
size: "sm"
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('renders the CheckIcon with prop size=s', function () {
|
|
22
|
-
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
26
18
|
size: "md"
|
|
27
19
|
});
|
|
28
20
|
|
|
29
21
|
it('renders the CheckIcon with prop size=m', function () {
|
|
30
|
-
expect((0, _enzyme.mount)(
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
34
|
-
size: "lg"
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('renders the CheckIcon with prop size=l', function () {
|
|
38
|
-
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
22
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
39
23
|
});
|
|
40
24
|
|
|
41
|
-
var
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
42
26
|
size: "xl"
|
|
43
27
|
});
|
|
44
28
|
|
|
45
29
|
it('renders the CheckIcon with prop size=xl', function () {
|
|
46
|
-
expect((0, _enzyme.mount)(
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
var _ref6 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
50
|
-
variant: "dark"
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
it('renders the CheckIcon with prop variant=dark', function () {
|
|
54
|
-
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
30
|
+
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
55
31
|
});
|
|
56
32
|
|
|
57
|
-
var
|
|
33
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
58
34
|
variant: "light"
|
|
59
35
|
});
|
|
60
36
|
|
|
61
37
|
it('renders the CheckIcon with prop variant=light', function () {
|
|
62
|
-
expect((0, _enzyme.mount)(
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
var _ref8 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
66
|
-
variant: "gray"
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
it('renders the CheckIcon with prop variant=gray', function () {
|
|
70
|
-
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
var _ref9 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
74
|
-
variant: "primary"
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
it('renders the CheckIcon with prop variant=primary', function () {
|
|
78
|
-
expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
|
|
38
|
+
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
79
39
|
});
|
|
80
40
|
|
|
81
|
-
var
|
|
41
|
+
var _ref5 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
82
42
|
variant: "success"
|
|
83
43
|
});
|
|
84
44
|
|
|
85
45
|
it('renders the CheckIcon with prop variant=success', function () {
|
|
86
|
-
expect((0, _enzyme.mount)(
|
|
46
|
+
expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
|
|
87
47
|
});
|
|
88
48
|
|
|
89
|
-
var
|
|
49
|
+
var _ref6 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
90
50
|
variant: "warning"
|
|
91
51
|
});
|
|
92
52
|
|
|
93
53
|
it('renders the CheckIcon with prop variant=warning', function () {
|
|
94
|
-
expect((0, _enzyme.mount)(
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
var _ref12 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
98
|
-
variant: "error"
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
it('renders the CheckIcon with prop variant=error', function () {
|
|
102
|
-
expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
var _ref13 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
106
|
-
variant: "focus"
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
it('renders the CheckIcon with prop variant=focus', function () {
|
|
110
|
-
expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
|
|
54
|
+
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
111
55
|
});
|
|
112
56
|
|
|
113
|
-
var
|
|
57
|
+
var _ref7 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
114
58
|
variant: "warning",
|
|
115
59
|
size: "sm"
|
|
116
60
|
});
|
|
117
61
|
|
|
118
62
|
it('renders the CheckIcon with prop variant=warning and size=s', function () {
|
|
119
|
-
expect((0, _enzyme.mount)(
|
|
63
|
+
expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
|
|
120
64
|
});
|
|
121
65
|
|
|
122
|
-
var
|
|
66
|
+
var _ref8 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
|
|
123
67
|
variant: "warning",
|
|
124
68
|
size: "xl"
|
|
125
69
|
});
|
|
126
70
|
|
|
127
71
|
it('renders the CheckIcon with prop variant=error and size= xl', function () {
|
|
128
|
-
expect((0, _enzyme.mount)(
|
|
72
|
+
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
129
73
|
});
|
package/CloseIcon/index.d.ts
CHANGED
package/CloseIcon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("@digigov/react-
|
|
14
|
+
var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
|
|
15
15
|
|
|
16
16
|
var CloseIcon = function CloseIcon(props) {
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
package/GlobeIcon/index.d.ts
CHANGED
package/GlobeIcon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("@digigov/react-
|
|
14
|
+
var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
|
|
15
15
|
|
|
16
16
|
var GlobeIcon = function GlobeIcon(props) {
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|