@digigov/react-icons 1.0.0-rc → 1.0.0-rc.1

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 (110) 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 +13 -69
  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/BurgerIcon/index.d.ts +1 -1
  10. package/BurgerIcon/index.js +1 -1
  11. package/CaretIcon/config.d.ts +7 -0
  12. package/CaretIcon/index.d.ts +1 -1
  13. package/CaretIcon/index.js +1 -1
  14. package/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  15. package/CheckIcon/index.d.ts +1 -1
  16. package/CheckIcon/index.js +1 -1
  17. package/CheckIcon/index.test.js +13 -69
  18. package/CloseIcon/index.d.ts +1 -1
  19. package/CloseIcon/index.js +1 -1
  20. package/GlobeIcon/index.d.ts +1 -1
  21. package/GlobeIcon/index.js +1 -1
  22. package/Icon/__snapshots__/index.test.tsx.snap +343 -0
  23. package/Icon/index.d.ts +25 -0
  24. package/Icon/index.js +58 -0
  25. package/Icon/index.test.d.ts +1 -0
  26. package/Icon/index.test.js +88 -0
  27. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  28. package/MoreVertIcon/index.d.ts +1 -1
  29. package/MoreVertIcon/index.js +1 -1
  30. package/MoreVertIcon/index.test.js +13 -61
  31. package/SearchIcon/index.d.ts +1 -1
  32. package/SearchIcon/index.js +1 -1
  33. package/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  34. package/UncheckIcon/index.d.ts +1 -1
  35. package/UncheckIcon/index.js +1 -1
  36. package/UncheckIcon/index.test.js +15 -63
  37. package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  38. package/es/AccessibilityIcon/index.js +1 -1
  39. package/es/AccessibilityIcon/index.test.js +13 -69
  40. package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  41. package/es/ArrowIcon/index.js +1 -1
  42. package/es/BurgerIcon/index.js +1 -1
  43. package/es/CaretIcon/index.js +1 -1
  44. package/es/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  45. package/es/CheckIcon/index.js +1 -1
  46. package/es/CheckIcon/index.test.js +13 -69
  47. package/es/CloseIcon/index.js +1 -1
  48. package/es/GlobeIcon/index.js +1 -1
  49. package/es/Icon/__snapshots__/index.test.tsx.snap +343 -0
  50. package/es/Icon/index.js +34 -0
  51. package/es/Icon/index.test.js +82 -0
  52. package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  53. package/es/MoreVertIcon/index.js +1 -1
  54. package/es/MoreVertIcon/index.test.js +13 -61
  55. package/es/SearchIcon/index.js +1 -1
  56. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  57. package/es/UncheckIcon/index.js +1 -1
  58. package/es/UncheckIcon/index.test.js +15 -63
  59. package/es/registry.js +2 -0
  60. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  61. package/esm/AccessibilityIcon/index.js +1 -1
  62. package/esm/AccessibilityIcon/index.test.js +13 -69
  63. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  64. package/esm/ArrowIcon/index.js +1 -1
  65. package/esm/BurgerIcon/index.js +1 -1
  66. package/esm/CaretIcon/index.js +1 -1
  67. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  68. package/esm/CheckIcon/index.js +1 -1
  69. package/esm/CheckIcon/index.test.js +13 -69
  70. package/esm/CloseIcon/index.js +1 -1
  71. package/esm/GlobeIcon/index.js +1 -1
  72. package/esm/Icon/__snapshots__/index.test.tsx.snap +343 -0
  73. package/esm/Icon/index.js +34 -0
  74. package/esm/Icon/index.test.js +82 -0
  75. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  76. package/esm/MoreVertIcon/index.js +1 -1
  77. package/esm/MoreVertIcon/index.test.js +13 -61
  78. package/esm/SearchIcon/index.js +1 -1
  79. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  80. package/esm/UncheckIcon/index.js +1 -1
  81. package/esm/UncheckIcon/index.test.js +15 -63
  82. package/esm/registry.js +2 -0
  83. package/package.json +2 -3
  84. package/registry.d.ts +1 -0
  85. package/registry.js +3 -0
  86. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -315
  87. package/src/AccessibilityIcon/index.test.tsx +0 -21
  88. package/src/AccessibilityIcon/index.tsx +1 -1
  89. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +1 -1
  90. package/src/ArrowIcon/config.tsx +8 -1
  91. package/src/ArrowIcon/index.tsx +1 -1
  92. package/src/BurgerIcon/index.tsx +1 -1
  93. package/src/CaretIcon/config.tsx +8 -1
  94. package/src/CaretIcon/index.tsx +1 -1
  95. package/src/CheckIcon/__snapshots__/index.test.tsx.snap +0 -259
  96. package/src/CheckIcon/index.test.tsx +0 -21
  97. package/src/CheckIcon/index.tsx +1 -1
  98. package/src/CloseIcon/index.tsx +1 -1
  99. package/src/GlobeIcon/index.tsx +1 -1
  100. package/src/Icon/__snapshots__/index.test.tsx.snap +343 -0
  101. package/src/Icon/index.test.tsx +36 -0
  102. package/src/Icon/index.tsx +63 -0
  103. package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -294
  104. package/src/MoreVertIcon/index.test.tsx +0 -18
  105. package/src/MoreVertIcon/index.tsx +1 -1
  106. package/src/SearchIcon/index.tsx +1 -1
  107. package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -222
  108. package/src/UncheckIcon/index.test.tsx +0 -18
  109. package/src/UncheckIcon/index.tsx +1 -1
  110. package/src/registry.js +2 -0
@@ -107,80 +107,6 @@ exports[`renders the UncheckIcon with prop size=m 1`] = `
107
107
  </UncheckIcon>
108
108
  `;
109
109
 
110
- exports[`renders the UncheckIcon with prop size=s 1`] = `
111
- <UncheckIcon
112
- size="sm"
113
- >
114
- <ForwardRef(Icon)
115
- icon="uncheck"
116
- size="sm"
117
- >
118
- <ForwardRef(SvgIcon)
119
- className="govgr-svg-icon--uncheck"
120
- size="sm"
121
- >
122
- <ForwardRef(Base)
123
- aria-hidden="true"
124
- as="svg"
125
- className="govgr-svg-icon--uncheck 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--uncheck govgr-svg-icon--sm govgr-svg-icon"
132
- focusable="false"
133
- viewBox="0 0 24 24"
134
- >
135
- <uncheck>
136
- <polygon
137
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
138
- />
139
- </uncheck>
140
- </svg>
141
- </ForwardRef(Base)>
142
- </ForwardRef(SvgIcon)>
143
- </ForwardRef(Icon)>
144
- </UncheckIcon>
145
- `;
146
-
147
- exports[`renders the UncheckIcon with prop size=xl 1`] = `
148
- <UncheckIcon
149
- size="xl"
150
- >
151
- <ForwardRef(Icon)
152
- icon="uncheck"
153
- size="xl"
154
- >
155
- <ForwardRef(SvgIcon)
156
- className="govgr-svg-icon--uncheck"
157
- size="xl"
158
- >
159
- <ForwardRef(Base)
160
- aria-hidden="true"
161
- as="svg"
162
- className="govgr-svg-icon--uncheck govgr-svg-icon--xl govgr-svg-icon"
163
- focusable="false"
164
- viewBox="0 0 24 24"
165
- >
166
- <svg
167
- aria-hidden="true"
168
- className="govgr-svg-icon--uncheck govgr-svg-icon--xl govgr-svg-icon"
169
- focusable="false"
170
- viewBox="0 0 24 24"
171
- >
172
- <uncheck>
173
- <polygon
174
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
175
- />
176
- </uncheck>
177
- </svg>
178
- </ForwardRef(Base)>
179
- </ForwardRef(SvgIcon)>
180
- </ForwardRef(Icon)>
181
- </UncheckIcon>
182
- `;
183
-
184
110
  exports[`renders the UncheckIcon with prop variant=dark 1`] = `
185
111
  <UncheckIcon
186
112
  variant="dark"
@@ -218,43 +144,6 @@ exports[`renders the UncheckIcon with prop variant=dark 1`] = `
218
144
  </UncheckIcon>
219
145
  `;
220
146
 
221
- exports[`renders the UncheckIcon with prop variant=error 1`] = `
222
- <UncheckIcon
223
- variant="error"
224
- >
225
- <ForwardRef(Icon)
226
- icon="uncheck"
227
- variant="error"
228
- >
229
- <ForwardRef(SvgIcon)
230
- className="govgr-svg-icon--uncheck"
231
- variant="error"
232
- >
233
- <ForwardRef(Base)
234
- aria-hidden="true"
235
- as="svg"
236
- className="govgr-svg-icon--uncheck 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--uncheck govgr-svg-icon--error govgr-svg-icon"
243
- focusable="false"
244
- viewBox="0 0 24 24"
245
- >
246
- <uncheck>
247
- <polygon
248
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
249
- />
250
- </uncheck>
251
- </svg>
252
- </ForwardRef(Base)>
253
- </ForwardRef(SvgIcon)>
254
- </ForwardRef(Icon)>
255
- </UncheckIcon>
256
- `;
257
-
258
147
  exports[`renders the UncheckIcon with prop variant=error and size= xl 1`] = `
259
148
  <UncheckIcon
260
149
  size="xl"
@@ -295,43 +184,6 @@ exports[`renders the UncheckIcon with prop variant=error and size= xl 1`] = `
295
184
  </UncheckIcon>
296
185
  `;
297
186
 
298
- exports[`renders the UncheckIcon with prop variant=focus 1`] = `
299
- <UncheckIcon
300
- variant="focus"
301
- >
302
- <ForwardRef(Icon)
303
- icon="uncheck"
304
- variant="focus"
305
- >
306
- <ForwardRef(SvgIcon)
307
- className="govgr-svg-icon--uncheck"
308
- variant="focus"
309
- >
310
- <ForwardRef(Base)
311
- aria-hidden="true"
312
- as="svg"
313
- className="govgr-svg-icon--uncheck 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--uncheck govgr-svg-icon--focus govgr-svg-icon"
320
- focusable="false"
321
- viewBox="0 0 24 24"
322
- >
323
- <uncheck>
324
- <polygon
325
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
326
- />
327
- </uncheck>
328
- </svg>
329
- </ForwardRef(Base)>
330
- </ForwardRef(SvgIcon)>
331
- </ForwardRef(Icon)>
332
- </UncheckIcon>
333
- `;
334
-
335
187
  exports[`renders the UncheckIcon with prop variant=gray 1`] = `
336
188
  <UncheckIcon
337
189
  variant="gray"
@@ -443,80 +295,6 @@ exports[`renders the UncheckIcon with prop variant=primary 1`] = `
443
295
  </UncheckIcon>
444
296
  `;
445
297
 
446
- exports[`renders the UncheckIcon with prop variant=success 1`] = `
447
- <UncheckIcon
448
- variant="success"
449
- >
450
- <ForwardRef(Icon)
451
- icon="uncheck"
452
- variant="success"
453
- >
454
- <ForwardRef(SvgIcon)
455
- className="govgr-svg-icon--uncheck"
456
- variant="success"
457
- >
458
- <ForwardRef(Base)
459
- aria-hidden="true"
460
- as="svg"
461
- className="govgr-svg-icon--uncheck govgr-svg-icon--success govgr-svg-icon"
462
- focusable="false"
463
- viewBox="0 0 24 24"
464
- >
465
- <svg
466
- aria-hidden="true"
467
- className="govgr-svg-icon--uncheck govgr-svg-icon--success govgr-svg-icon"
468
- focusable="false"
469
- viewBox="0 0 24 24"
470
- >
471
- <uncheck>
472
- <polygon
473
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
474
- />
475
- </uncheck>
476
- </svg>
477
- </ForwardRef(Base)>
478
- </ForwardRef(SvgIcon)>
479
- </ForwardRef(Icon)>
480
- </UncheckIcon>
481
- `;
482
-
483
- exports[`renders the UncheckIcon with prop variant=warning 1`] = `
484
- <UncheckIcon
485
- variant="warning"
486
- >
487
- <ForwardRef(Icon)
488
- icon="uncheck"
489
- variant="warning"
490
- >
491
- <ForwardRef(SvgIcon)
492
- className="govgr-svg-icon--uncheck"
493
- variant="warning"
494
- >
495
- <ForwardRef(Base)
496
- aria-hidden="true"
497
- as="svg"
498
- className="govgr-svg-icon--uncheck govgr-svg-icon--warning govgr-svg-icon"
499
- focusable="false"
500
- viewBox="0 0 24 24"
501
- >
502
- <svg
503
- aria-hidden="true"
504
- className="govgr-svg-icon--uncheck govgr-svg-icon--warning govgr-svg-icon"
505
- focusable="false"
506
- viewBox="0 0 24 24"
507
- >
508
- <uncheck>
509
- <polygon
510
- points="20.59 5.74 18.26 3.41 12 9.67 5.742 3.41 3.41 5.74 9.67 12 3.41 18.26 5.74 20.6 12 14.33 18.26 20.59 20.59 18.26 14.33 12 20.59 5.74"
511
- />
512
- </uncheck>
513
- </svg>
514
- </ForwardRef(Base)>
515
- </ForwardRef(SvgIcon)>
516
- </ForwardRef(Icon)>
517
- </UncheckIcon>
518
- `;
519
-
520
298
  exports[`renders the UncheckIcon with prop variant=warning and size=s 1`] = `
521
299
  <UncheckIcon
522
300
  size="sm"
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import Icon from '@digigov/react-core/Icon';
3
+ import Icon from '@digigov/react-icons/Icon';
4
4
  export var UncheckIcon = function UncheckIcon(props) {
5
5
  return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
6
6
  icon: "uncheck"
@@ -9,115 +9,67 @@ it('renders the UncheckIcon with no props', function () {
9
9
  });
10
10
 
11
11
  var _ref2 = /*#__PURE__*/React.createElement(UncheckIcon, {
12
- size: "sm"
13
- });
14
-
15
- it('renders the UncheckIcon with prop size=s', function () {
16
- expect(mount(_ref2)).toMatchSnapshot();
17
- });
18
-
19
- var _ref3 = /*#__PURE__*/React.createElement(UncheckIcon, {
20
12
  size: "md"
21
13
  });
22
14
 
23
15
  it('renders the UncheckIcon with prop size=m', function () {
24
- expect(mount(_ref3)).toMatchSnapshot();
16
+ expect(mount(_ref2)).toMatchSnapshot();
25
17
  });
26
18
 
27
- var _ref4 = /*#__PURE__*/React.createElement(UncheckIcon, {
19
+ var _ref3 = /*#__PURE__*/React.createElement(UncheckIcon, {
28
20
  size: "lg"
29
21
  });
30
22
 
31
23
  it('renders the UncheckIcon with prop size=l', function () {
32
- expect(mount(_ref4)).toMatchSnapshot();
33
- });
34
-
35
- var _ref5 = /*#__PURE__*/React.createElement(UncheckIcon, {
36
- size: "xl"
37
- });
38
-
39
- it('renders the UncheckIcon with prop size=xl', function () {
40
- expect(mount(_ref5)).toMatchSnapshot();
24
+ expect(mount(_ref3)).toMatchSnapshot();
41
25
  });
42
26
 
43
- var _ref6 = /*#__PURE__*/React.createElement(UncheckIcon, {
27
+ var _ref4 = /*#__PURE__*/React.createElement(UncheckIcon, {
44
28
  variant: "dark"
45
29
  });
46
30
 
47
31
  it('renders the UncheckIcon with prop variant=dark', function () {
48
- expect(mount(_ref6)).toMatchSnapshot();
32
+ expect(mount(_ref4)).toMatchSnapshot();
49
33
  });
50
34
 
51
- var _ref7 = /*#__PURE__*/React.createElement(UncheckIcon, {
35
+ var _ref5 = /*#__PURE__*/React.createElement(UncheckIcon, {
52
36
  variant: "light"
53
37
  });
54
38
 
55
39
  it('renders the UncheckIcon with prop variant=light', function () {
56
- expect(mount(_ref7)).toMatchSnapshot();
40
+ expect(mount(_ref5)).toMatchSnapshot();
57
41
  });
58
42
 
59
- var _ref8 = /*#__PURE__*/React.createElement(UncheckIcon, {
43
+ var _ref6 = /*#__PURE__*/React.createElement(UncheckIcon, {
60
44
  variant: "gray"
61
45
  });
62
46
 
63
47
  it('renders the UncheckIcon with prop variant=gray', function () {
64
- expect(mount(_ref8)).toMatchSnapshot();
48
+ expect(mount(_ref6)).toMatchSnapshot();
65
49
  });
66
50
 
67
- var _ref9 = /*#__PURE__*/React.createElement(UncheckIcon, {
51
+ var _ref7 = /*#__PURE__*/React.createElement(UncheckIcon, {
68
52
  variant: "primary"
69
53
  });
70
54
 
71
55
  it('renders the UncheckIcon with prop variant=primary', function () {
72
- expect(mount(_ref9)).toMatchSnapshot();
73
- });
74
-
75
- var _ref10 = /*#__PURE__*/React.createElement(UncheckIcon, {
76
- variant: "success"
77
- });
78
-
79
- it('renders the UncheckIcon with prop variant=success', function () {
80
- expect(mount(_ref10)).toMatchSnapshot();
81
- });
82
-
83
- var _ref11 = /*#__PURE__*/React.createElement(UncheckIcon, {
84
- variant: "warning"
85
- });
86
-
87
- it('renders the UncheckIcon with prop variant=warning', function () {
88
- expect(mount(_ref11)).toMatchSnapshot();
89
- });
90
-
91
- var _ref12 = /*#__PURE__*/React.createElement(UncheckIcon, {
92
- variant: "error"
93
- });
94
-
95
- it('renders the UncheckIcon with prop variant=error', function () {
96
- expect(mount(_ref12)).toMatchSnapshot();
97
- });
98
-
99
- var _ref13 = /*#__PURE__*/React.createElement(UncheckIcon, {
100
- variant: "focus"
101
- });
102
-
103
- it('renders the UncheckIcon with prop variant=focus', function () {
104
- expect(mount(_ref13)).toMatchSnapshot();
56
+ expect(mount(_ref7)).toMatchSnapshot();
105
57
  });
106
58
 
107
- var _ref14 = /*#__PURE__*/React.createElement(UncheckIcon, {
59
+ var _ref8 = /*#__PURE__*/React.createElement(UncheckIcon, {
108
60
  variant: "warning",
109
61
  size: "sm"
110
62
  });
111
63
 
112
64
  it('renders the UncheckIcon with prop variant=warning and size=s', function () {
113
- expect(mount(_ref14)).toMatchSnapshot();
65
+ expect(mount(_ref8)).toMatchSnapshot();
114
66
  });
115
67
 
116
- var _ref15 = /*#__PURE__*/React.createElement(UncheckIcon, {
68
+ var _ref9 = /*#__PURE__*/React.createElement(UncheckIcon, {
117
69
  variant: "warning",
118
70
  size: "xl"
119
71
  });
120
72
 
121
73
  it('renders the UncheckIcon with prop variant=error and size= xl', function () {
122
- expect(mount(_ref15)).toMatchSnapshot();
74
+ expect(mount(_ref9)).toMatchSnapshot();
123
75
  });
package/es/registry.js CHANGED
@@ -5,6 +5,7 @@ import * as _digigov_react_icons_CaretIcon from '@digigov/react-icons/CaretIcon'
5
5
  import * as _digigov_react_icons_CheckIcon from '@digigov/react-icons/CheckIcon';
6
6
  import * as _digigov_react_icons_CloseIcon from '@digigov/react-icons/CloseIcon';
7
7
  import * as _digigov_react_icons_GlobeIcon from '@digigov/react-icons/GlobeIcon';
8
+ import * as _digigov_react_icons_Icon from '@digigov/react-icons/Icon';
8
9
  import * as _digigov_react_icons_icons from '@digigov/react-icons/icons';
9
10
  import * as _digigov_react_icons from '@digigov/react-icons';
10
11
  import * as _digigov_react_icons_MoreVertIcon from '@digigov/react-icons/MoreVertIcon';
@@ -34,6 +35,7 @@ export default {
34
35
  '@digigov/react-icons/CheckIcon': lazyImport(_digigov_react_icons_CheckIcon),
35
36
  '@digigov/react-icons/CloseIcon': lazyImport(_digigov_react_icons_CloseIcon),
36
37
  '@digigov/react-icons/GlobeIcon': lazyImport(_digigov_react_icons_GlobeIcon),
38
+ '@digigov/react-icons/Icon': lazyImport(_digigov_react_icons_Icon),
37
39
  '@digigov/react-icons/icons': lazyImport(_digigov_react_icons_icons),
38
40
  '@digigov/react-icons': lazyImport(_digigov_react_icons),
39
41
  '@digigov/react-icons/MoreVertIcon': lazyImport(_digigov_react_icons_MoreVertIcon),