@digigov/react-icons 1.0.0-002c630d → 1.0.0-05af31dd

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.
Files changed (134) hide show
  1. package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  2. package/AccessibilityIcon/index.d.ts +1 -1
  3. package/AccessibilityIcon/index.js +1 -1
  4. package/AccessibilityIcon/index.test.js +17 -73
  5. package/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  6. package/ArrowIcon/config.d.ts +7 -0
  7. package/ArrowIcon/index.d.ts +1 -1
  8. package/ArrowIcon/index.js +1 -1
  9. package/ArrowIcon/index.test.js +5 -5
  10. package/BurgerIcon/index.d.ts +1 -1
  11. package/BurgerIcon/index.js +1 -1
  12. package/BurgerIcon/index.test.js +7 -7
  13. package/CaretIcon/config.d.ts +7 -0
  14. package/CaretIcon/index.d.ts +1 -1
  15. package/CaretIcon/index.js +1 -1
  16. package/CaretIcon/index.test.js +5 -5
  17. package/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  18. package/CheckIcon/index.d.ts +1 -1
  19. package/CheckIcon/index.js +1 -1
  20. package/CheckIcon/index.test.js +16 -72
  21. package/CloseIcon/index.d.ts +1 -1
  22. package/CloseIcon/index.js +1 -1
  23. package/CloseIcon/index.test.js +2 -2
  24. package/GlobeIcon/index.d.ts +1 -1
  25. package/GlobeIcon/index.js +1 -1
  26. package/GlobeIcon/index.test.js +5 -5
  27. package/Icon/__snapshots__/index.test.tsx.snap +343 -0
  28. package/Icon/index.d.ts +25 -0
  29. package/Icon/index.js +58 -0
  30. package/Icon/index.test.d.ts +1 -0
  31. package/Icon/index.test.js +88 -0
  32. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  33. package/MoreVertIcon/index.d.ts +1 -1
  34. package/MoreVertIcon/index.js +1 -1
  35. package/MoreVertIcon/index.test.js +17 -65
  36. package/SearchIcon/index.d.ts +1 -1
  37. package/SearchIcon/index.js +1 -1
  38. package/SearchIcon/index.test.js +2 -2
  39. package/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  40. package/UncheckIcon/index.d.ts +1 -1
  41. package/UncheckIcon/index.js +1 -1
  42. package/UncheckIcon/index.test.js +18 -66
  43. package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  44. package/es/AccessibilityIcon/index.js +1 -1
  45. package/es/AccessibilityIcon/index.test.js +14 -70
  46. package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  47. package/es/ArrowIcon/index.js +1 -1
  48. package/es/ArrowIcon/index.test.js +1 -1
  49. package/es/BurgerIcon/index.js +1 -1
  50. package/es/BurgerIcon/index.test.js +1 -1
  51. package/es/CaretIcon/index.js +1 -1
  52. package/es/CaretIcon/index.test.js +1 -1
  53. package/es/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  54. package/es/CheckIcon/index.js +1 -1
  55. package/es/CheckIcon/index.test.js +14 -70
  56. package/es/CloseIcon/index.js +1 -1
  57. package/es/CloseIcon/index.test.js +1 -1
  58. package/es/GlobeIcon/index.js +1 -1
  59. package/es/GlobeIcon/index.test.js +1 -1
  60. package/es/Icon/__snapshots__/index.test.tsx.snap +343 -0
  61. package/es/Icon/index.js +34 -0
  62. package/es/Icon/index.test.js +82 -0
  63. package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  64. package/es/MoreVertIcon/index.js +1 -1
  65. package/es/MoreVertIcon/index.test.js +14 -62
  66. package/es/SearchIcon/index.js +1 -1
  67. package/es/SearchIcon/index.test.js +1 -1
  68. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  69. package/es/UncheckIcon/index.js +1 -1
  70. package/es/UncheckIcon/index.test.js +16 -64
  71. package/es/icons.js +10 -10
  72. package/es/index.js +10 -10
  73. package/es/registry.js +14 -12
  74. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  75. package/esm/AccessibilityIcon/index.js +1 -1
  76. package/esm/AccessibilityIcon/index.test.js +14 -70
  77. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  78. package/esm/ArrowIcon/index.js +1 -1
  79. package/esm/ArrowIcon/index.test.js +1 -1
  80. package/esm/BurgerIcon/index.js +1 -1
  81. package/esm/BurgerIcon/index.test.js +1 -1
  82. package/esm/CaretIcon/index.js +1 -1
  83. package/esm/CaretIcon/index.test.js +1 -1
  84. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  85. package/esm/CheckIcon/index.js +1 -1
  86. package/esm/CheckIcon/index.test.js +14 -70
  87. package/esm/CloseIcon/index.js +1 -1
  88. package/esm/CloseIcon/index.test.js +1 -1
  89. package/esm/GlobeIcon/index.js +1 -1
  90. package/esm/GlobeIcon/index.test.js +1 -1
  91. package/esm/Icon/__snapshots__/index.test.tsx.snap +343 -0
  92. package/esm/Icon/index.js +34 -0
  93. package/esm/Icon/index.test.js +82 -0
  94. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  95. package/esm/MoreVertIcon/index.js +1 -1
  96. package/esm/MoreVertIcon/index.test.js +14 -62
  97. package/esm/SearchIcon/index.js +1 -1
  98. package/esm/SearchIcon/index.test.js +1 -1
  99. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  100. package/esm/UncheckIcon/index.js +1 -1
  101. package/esm/UncheckIcon/index.test.js +16 -64
  102. package/esm/icons.js +10 -10
  103. package/esm/index.js +10 -10
  104. package/esm/registry.js +14 -12
  105. package/icons.js +10 -10
  106. package/index.js +10 -10
  107. package/package.json +2 -3
  108. package/registry.d.ts +1 -0
  109. package/registry.js +15 -12
  110. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  111. package/src/AccessibilityIcon/index.test.tsx +0 -21
  112. package/src/AccessibilityIcon/index.tsx +1 -1
  113. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  114. package/src/ArrowIcon/config.tsx +8 -1
  115. package/src/ArrowIcon/index.tsx +1 -1
  116. package/src/BurgerIcon/index.tsx +1 -1
  117. package/src/CaretIcon/config.tsx +8 -1
  118. package/src/CaretIcon/index.tsx +1 -1
  119. package/src/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  120. package/src/CheckIcon/index.test.tsx +0 -21
  121. package/src/CheckIcon/index.tsx +1 -1
  122. package/src/CloseIcon/index.tsx +1 -1
  123. package/src/GlobeIcon/index.tsx +1 -1
  124. package/src/Icon/__snapshots__/index.test.tsx.snap +343 -0
  125. package/src/Icon/index.test.tsx +36 -0
  126. package/src/Icon/index.tsx +63 -0
  127. package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  128. package/src/MoreVertIcon/index.test.tsx +0 -18
  129. package/src/MoreVertIcon/index.tsx +1 -1
  130. package/src/SearchIcon/index.tsx +1 -1
  131. package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  132. package/src/UncheckIcon/index.test.tsx +0 -18
  133. package/src/UncheckIcon/index.tsx +1 -1
  134. package/src/registry.js +2 -0
@@ -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-core/Icon"));
14
+ var _Icon = _interopRequireDefault(require("../Icon"));
15
15
 
16
16
  var CaretIcon = function CaretIcon(props) {
17
17
  return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
@@ -6,15 +6,15 @@ var _react = _interopRequireDefault(require("react"));
6
6
 
7
7
  var _enzyme = require("enzyme");
8
8
 
9
- var _CaretIcon = _interopRequireDefault(require("@digigov/react-icons/CaretIcon"));
9
+ var _ = _interopRequireDefault(require("./"));
10
10
 
11
- var _ref = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], null);
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
12
12
 
13
13
  it('renders the CaretIcon with no props, direction prop is left by default', function () {
14
14
  expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
15
  });
16
16
 
17
- var _ref2 = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], {
17
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_["default"], {
18
18
  direction: "right"
19
19
  });
20
20
 
@@ -22,7 +22,7 @@ it('renders the CaretIcon with direction right prop', function () {
22
22
  expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
23
23
  });
24
24
 
25
- var _ref3 = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], {
25
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_["default"], {
26
26
  direction: "up"
27
27
  });
28
28
 
@@ -30,7 +30,7 @@ it('renders the CaretIcon with direction up prop', function () {
30
30
  expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
31
31
  });
32
32
 
33
- var _ref4 = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], {
33
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_["default"], {
34
34
  direction: "down"
35
35
  });
36
36
 
@@ -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"
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const CheckIcon: React.FC<IconProps<'check'>>;
4
4
  export default CheckIcon;
@@ -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-core/Icon"));
14
+ var _Icon = _interopRequireDefault(require("../Icon"));
15
15
 
16
16
  var CheckIcon = function CheckIcon(props) {
17
17
  return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
@@ -6,124 +6,68 @@ var _react = _interopRequireDefault(require("react"));
6
6
 
7
7
  var _enzyme = require("enzyme");
8
8
 
9
- var _CheckIcon = _interopRequireDefault(require("@digigov/react-icons/CheckIcon"));
9
+ var _ = _interopRequireDefault(require("./"));
10
10
 
11
- var _ref = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], null);
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
12
12
 
13
13
  it('renders the CheckIcon with no props', function () {
14
14
  expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
15
  });
16
16
 
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"], {
17
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_["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)(_ref3)).toMatchSnapshot();
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 _ref5 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
25
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_["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)(_ref5)).toMatchSnapshot();
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 _ref7 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
33
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_["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)(_ref7)).toMatchSnapshot();
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 _ref10 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
41
+ var _ref5 = /*#__PURE__*/_react["default"].createElement(_["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)(_ref10)).toMatchSnapshot();
46
+ expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
87
47
  });
88
48
 
89
- var _ref11 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
49
+ var _ref6 = /*#__PURE__*/_react["default"].createElement(_["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)(_ref11)).toMatchSnapshot();
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 _ref14 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
57
+ var _ref7 = /*#__PURE__*/_react["default"].createElement(_["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)(_ref14)).toMatchSnapshot();
63
+ expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
120
64
  });
121
65
 
122
- var _ref15 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
66
+ var _ref8 = /*#__PURE__*/_react["default"].createElement(_["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)(_ref15)).toMatchSnapshot();
72
+ expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
129
73
  });
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const CloseIcon: React.FC<IconProps<'close'>>;
4
4
  export default CloseIcon;
@@ -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-core/Icon"));
14
+ var _Icon = _interopRequireDefault(require("../Icon"));
15
15
 
16
16
  var CloseIcon = function CloseIcon(props) {
17
17
  return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
@@ -6,9 +6,9 @@ var _react = _interopRequireDefault(require("react"));
6
6
 
7
7
  var _enzyme = require("enzyme");
8
8
 
9
- var _CloseIcon = _interopRequireDefault(require("@digigov/react-icons/CloseIcon"));
9
+ var _ = _interopRequireDefault(require("./"));
10
10
 
11
- var _ref = /*#__PURE__*/_react["default"].createElement(_CloseIcon["default"], null);
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
12
12
 
13
13
  it('renders the CloseIcon with no props', function () {
14
14
  expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const GlobeIcon: React.FC<IconProps<'globe'>>;
4
4
  export default GlobeIcon;
@@ -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-core/Icon"));
14
+ var _Icon = _interopRequireDefault(require("../Icon"));
15
15
 
16
16
  var GlobeIcon = function GlobeIcon(props) {
17
17
  return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
@@ -6,15 +6,15 @@ var _react = _interopRequireDefault(require("react"));
6
6
 
7
7
  var _enzyme = require("enzyme");
8
8
 
9
- var _GlobeIcon = _interopRequireDefault(require("@digigov/react-icons/GlobeIcon"));
9
+ var _ = _interopRequireDefault(require("./"));
10
10
 
11
- var _ref = /*#__PURE__*/_react["default"].createElement(_GlobeIcon["default"], null);
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
12
12
 
13
13
  it('renders the GlobeIcon with no props', function () {
14
14
  expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
15
  });
16
16
 
17
- var _ref2 = /*#__PURE__*/_react["default"].createElement(_GlobeIcon["default"], {
17
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_["default"], {
18
18
  variant: "dark"
19
19
  });
20
20
 
@@ -22,7 +22,7 @@ it('renders the GlobeIcon with prop variant=dark', function () {
22
22
  expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
23
23
  });
24
24
 
25
- var _ref3 = /*#__PURE__*/_react["default"].createElement(_GlobeIcon["default"], {
25
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_["default"], {
26
26
  variant: "light"
27
27
  });
28
28
 
@@ -30,7 +30,7 @@ it('renders the GlobeIcon prop variant= "light"', function () {
30
30
  expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
31
31
  });
32
32
 
33
- var _ref4 = /*#__PURE__*/_react["default"].createElement(_GlobeIcon["default"], {
33
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_["default"], {
34
34
  variant: "error"
35
35
  });
36
36