@digigov/react-icons 1.2.0-2702533a → 1.2.0-a7ffb5dc

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 (167) hide show
  1. package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +27 -27
  2. package/ArrowIcon/__snapshots__/index.test.tsx.snap +20 -20
  3. package/BurgerIcon/__snapshots__/index.test.tsx.snap +38 -38
  4. package/BurgerIcon/config/index.js +4 -4
  5. package/CaretIcon/__snapshots__/index.test.tsx.snap +12 -12
  6. package/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
  7. package/CloseIcon/__snapshots__/index.test.tsx.snap +3 -3
  8. package/GlobeIcon/__snapshots__/index.test.tsx.snap +12 -12
  9. package/Icon/__snapshots__/index.test.tsx.snap +37 -37
  10. package/Icon/index.js +1 -1
  11. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +27 -27
  12. package/SearchIcon/__snapshots__/index.test.tsx.snap +3 -3
  13. package/UncheckIcon/__snapshots__/index.test.tsx.snap +27 -27
  14. package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +27 -27
  15. package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +20 -20
  16. package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +38 -38
  17. package/cjs/BurgerIcon/config/index.js +4 -4
  18. package/cjs/CaretIcon/__snapshots__/index.test.tsx.snap +12 -12
  19. package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
  20. package/cjs/CloseIcon/__snapshots__/index.test.tsx.snap +3 -3
  21. package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +12 -12
  22. package/cjs/Icon/__snapshots__/index.test.tsx.snap +37 -37
  23. package/cjs/Icon/index.js +2 -2
  24. package/cjs/MoreVertIcon/__snapshots__/index.test.tsx.snap +27 -27
  25. package/cjs/SearchIcon/__snapshots__/index.test.tsx.snap +3 -3
  26. package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +27 -27
  27. package/cjs/icons/index.js +0 -66
  28. package/cjs/index.js +0 -66
  29. package/cjs/lazy/index.js +121 -0
  30. package/cjs/registry/index.js +0 -12
  31. package/icons/index.js +0 -6
  32. package/icons.d.ts +0 -18
  33. package/index.d.ts +0 -6
  34. package/index.js +2 -8
  35. package/lazy/index.js +87 -0
  36. package/{PlusIcon → lazy}/package.json +1 -1
  37. package/lazy.d.ts +15 -0
  38. package/package.json +3 -4
  39. package/registry/index.js +0 -12
  40. package/registry.d.ts +0 -6
  41. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +27 -27
  42. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +20 -20
  43. package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +38 -38
  44. package/src/BurgerIcon/config.tsx +4 -4
  45. package/src/CaretIcon/__snapshots__/index.test.tsx.snap +12 -12
  46. package/src/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
  47. package/src/CloseIcon/__snapshots__/index.test.tsx.snap +3 -3
  48. package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +12 -12
  49. package/src/Icon/__snapshots__/index.test.tsx.snap +37 -37
  50. package/src/Icon/index.tsx +1 -1
  51. package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +27 -27
  52. package/src/SearchIcon/__snapshots__/index.test.tsx.snap +3 -3
  53. package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +27 -27
  54. package/src/icons.ts +0 -18
  55. package/src/index.ts +0 -6
  56. package/src/lazy.js +16 -0
  57. package/src/registry.js +0 -12
  58. package/CancelIcon/__snapshots__/index.test.tsx.snap +0 -262
  59. package/CancelIcon/config/index.js +0 -9
  60. package/CancelIcon/config/package.json +0 -6
  61. package/CancelIcon/config.d.ts +0 -8
  62. package/CancelIcon/index.d.ts +0 -4
  63. package/CancelIcon/index.js +0 -9
  64. package/CancelIcon/index.test/index.js +0 -45
  65. package/CancelIcon/index.test/package.json +0 -6
  66. package/CancelIcon/index.test.d.ts +0 -1
  67. package/CancelIcon/package.json +0 -6
  68. package/ChevronIcon/__snapshots__/index.test.tsx.snap +0 -148
  69. package/DownloadIcon/__snapshots__/index.test.tsx.snap +0 -318
  70. package/DownloadIcon/config/index.js +0 -14
  71. package/DownloadIcon/config/package.json +0 -6
  72. package/DownloadIcon/config.d.ts +0 -8
  73. package/DownloadIcon/index.d.ts +0 -4
  74. package/DownloadIcon/index.js +0 -9
  75. package/DownloadIcon/index.test/index.js +0 -45
  76. package/DownloadIcon/index.test/package.json +0 -6
  77. package/DownloadIcon/index.test.d.ts +0 -1
  78. package/DownloadIcon/package.json +0 -6
  79. package/LockIcon/__snapshots__/index.test.tsx.snap +0 -262
  80. package/LockIcon/config/index.js +0 -9
  81. package/LockIcon/config/package.json +0 -6
  82. package/LockIcon/config.d.ts +0 -8
  83. package/LockIcon/index.d.ts +0 -4
  84. package/LockIcon/index.js +0 -9
  85. package/LockIcon/index.test/index.js +0 -45
  86. package/LockIcon/index.test/package.json +0 -6
  87. package/LockIcon/index.test.d.ts +0 -1
  88. package/LockIcon/package.json +0 -6
  89. package/MinusIcon/__snapshots__/index.test.tsx.snap +0 -283
  90. package/MinusIcon/config/index.js +0 -12
  91. package/MinusIcon/config/package.json +0 -6
  92. package/MinusIcon/config.d.ts +0 -8
  93. package/MinusIcon/index.d.ts +0 -4
  94. package/MinusIcon/index.js +0 -9
  95. package/MinusIcon/index.test/index.js +0 -45
  96. package/MinusIcon/index.test/package.json +0 -6
  97. package/MinusIcon/index.test.d.ts +0 -1
  98. package/MinusIcon/package.json +0 -6
  99. package/PdfFileIcon/__snapshots__/index.test.tsx.snap +0 -353
  100. package/PdfFileIcon/config/index.js +0 -15
  101. package/PdfFileIcon/config/package.json +0 -6
  102. package/PdfFileIcon/config.d.ts +0 -8
  103. package/PdfFileIcon/index.d.ts +0 -4
  104. package/PdfFileIcon/index.js +0 -9
  105. package/PdfFileIcon/index.test/index.js +0 -45
  106. package/PdfFileIcon/index.test/package.json +0 -6
  107. package/PdfFileIcon/index.test.d.ts +0 -1
  108. package/PdfFileIcon/package.json +0 -6
  109. package/PlusIcon/__snapshots__/index.test.tsx.snap +0 -262
  110. package/PlusIcon/config/index.js +0 -9
  111. package/PlusIcon/config/package.json +0 -6
  112. package/PlusIcon/config.d.ts +0 -8
  113. package/PlusIcon/index.d.ts +0 -4
  114. package/PlusIcon/index.js +0 -9
  115. package/PlusIcon/index.test/index.js +0 -45
  116. package/PlusIcon/index.test/package.json +0 -6
  117. package/PlusIcon/index.test.d.ts +0 -1
  118. package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +0 -262
  119. package/cjs/CancelIcon/config/index.js +0 -17
  120. package/cjs/CancelIcon/index.js +0 -16
  121. package/cjs/CancelIcon/index.test/index.js +0 -48
  122. package/cjs/ChevronIcon/__snapshots__/index.test.tsx.snap +0 -148
  123. package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +0 -318
  124. package/cjs/DownloadIcon/config/index.js +0 -22
  125. package/cjs/DownloadIcon/index.js +0 -16
  126. package/cjs/DownloadIcon/index.test/index.js +0 -48
  127. package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +0 -262
  128. package/cjs/LockIcon/config/index.js +0 -17
  129. package/cjs/LockIcon/index.js +0 -16
  130. package/cjs/LockIcon/index.test/index.js +0 -48
  131. package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +0 -283
  132. package/cjs/MinusIcon/config/index.js +0 -20
  133. package/cjs/MinusIcon/index.js +0 -16
  134. package/cjs/MinusIcon/index.test/index.js +0 -48
  135. package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +0 -353
  136. package/cjs/PdfFileIcon/config/index.js +0 -23
  137. package/cjs/PdfFileIcon/index.js +0 -16
  138. package/cjs/PdfFileIcon/index.test/index.js +0 -48
  139. package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +0 -262
  140. package/cjs/PlusIcon/config/index.js +0 -17
  141. package/cjs/PlusIcon/index.js +0 -16
  142. package/cjs/PlusIcon/index.test/index.js +0 -48
  143. package/src/CancelIcon/__snapshots__/index.test.tsx.snap +0 -262
  144. package/src/CancelIcon/config.tsx +0 -15
  145. package/src/CancelIcon/index.test.tsx +0 -26
  146. package/src/CancelIcon/index.tsx +0 -8
  147. package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +0 -148
  148. package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +0 -318
  149. package/src/DownloadIcon/config.tsx +0 -16
  150. package/src/DownloadIcon/index.test.tsx +0 -26
  151. package/src/DownloadIcon/index.tsx +0 -8
  152. package/src/LockIcon/__snapshots__/index.test.tsx.snap +0 -262
  153. package/src/LockIcon/config.tsx +0 -15
  154. package/src/LockIcon/index.test.tsx +0 -26
  155. package/src/LockIcon/index.tsx +0 -8
  156. package/src/MinusIcon/__snapshots__/index.test.tsx.snap +0 -283
  157. package/src/MinusIcon/config.tsx +0 -15
  158. package/src/MinusIcon/index.test.tsx +0 -26
  159. package/src/MinusIcon/index.tsx +0 -8
  160. package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +0 -353
  161. package/src/PdfFileIcon/config.tsx +0 -20
  162. package/src/PdfFileIcon/index.test.tsx +0 -26
  163. package/src/PdfFileIcon/index.tsx +0 -8
  164. package/src/PlusIcon/__snapshots__/index.test.tsx.snap +0 -262
  165. package/src/PlusIcon/config.tsx +0 -15
  166. package/src/PlusIcon/index.test.tsx +0 -26
  167. package/src/PlusIcon/index.tsx +0 -8
@@ -1,262 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the PlusIcon with no props 1`] = `
4
- <PlusIcon>
5
- <ForwardRef(Icon)
6
- icon="plus"
7
- >
8
- <ForwardRef(SvgIcon)
9
- className="govgr-svg-icon--plus"
10
- >
11
- <ForwardRef(Base)
12
- aria-hidden="true"
13
- as="svg"
14
- className="govgr-svg-icon--plus govgr-svg-icon"
15
- focusable="false"
16
- viewBox="0 0 24 24"
17
- >
18
- <svg
19
- aria-hidden="true"
20
- className="govgr-svg-icon--plus govgr-svg-icon"
21
- focusable="false"
22
- viewBox="0 0 24 24"
23
- >
24
- <plus>
25
- <polygon
26
- points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
27
- />
28
- </plus>
29
- </svg>
30
- </ForwardRef(Base)>
31
- </ForwardRef(SvgIcon)>
32
- </ForwardRef(Icon)>
33
- </PlusIcon>
34
- `;
35
-
36
- exports[`renders the PlusIcon with prop size=m 1`] = `
37
- <PlusIcon
38
- size="md"
39
- >
40
- <ForwardRef(Icon)
41
- icon="plus"
42
- size="md"
43
- >
44
- <ForwardRef(SvgIcon)
45
- className="govgr-svg-icon--plus"
46
- size="md"
47
- >
48
- <ForwardRef(Base)
49
- aria-hidden="true"
50
- as="svg"
51
- className="govgr-svg-icon--plus govgr-svg-icon--md govgr-svg-icon"
52
- focusable="false"
53
- viewBox="0 0 24 24"
54
- >
55
- <svg
56
- aria-hidden="true"
57
- className="govgr-svg-icon--plus govgr-svg-icon--md govgr-svg-icon"
58
- focusable="false"
59
- viewBox="0 0 24 24"
60
- >
61
- <plus>
62
- <polygon
63
- points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
64
- />
65
- </plus>
66
- </svg>
67
- </ForwardRef(Base)>
68
- </ForwardRef(SvgIcon)>
69
- </ForwardRef(Icon)>
70
- </PlusIcon>
71
- `;
72
-
73
- exports[`renders the PlusIcon with prop size=xl 1`] = `
74
- <PlusIcon
75
- size="xl"
76
- >
77
- <ForwardRef(Icon)
78
- icon="plus"
79
- size="xl"
80
- >
81
- <ForwardRef(SvgIcon)
82
- className="govgr-svg-icon--plus"
83
- size="xl"
84
- >
85
- <ForwardRef(Base)
86
- aria-hidden="true"
87
- as="svg"
88
- className="govgr-svg-icon--plus govgr-svg-icon--xl govgr-svg-icon"
89
- focusable="false"
90
- viewBox="0 0 24 24"
91
- >
92
- <svg
93
- aria-hidden="true"
94
- className="govgr-svg-icon--plus govgr-svg-icon--xl govgr-svg-icon"
95
- focusable="false"
96
- viewBox="0 0 24 24"
97
- >
98
- <plus>
99
- <polygon
100
- points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
101
- />
102
- </plus>
103
- </svg>
104
- </ForwardRef(Base)>
105
- </ForwardRef(SvgIcon)>
106
- </ForwardRef(Icon)>
107
- </PlusIcon>
108
- `;
109
-
110
- exports[`renders the PlusIcon with prop variant=error and size= xl 1`] = `
111
- <PlusIcon
112
- size="xl"
113
- variant="warning"
114
- >
115
- <ForwardRef(Icon)
116
- icon="plus"
117
- size="xl"
118
- variant="warning"
119
- >
120
- <ForwardRef(SvgIcon)
121
- className="govgr-svg-icon--plus"
122
- size="xl"
123
- variant="warning"
124
- >
125
- <ForwardRef(Base)
126
- aria-hidden="true"
127
- as="svg"
128
- className="govgr-svg-icon--plus govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon"
129
- focusable="false"
130
- viewBox="0 0 24 24"
131
- >
132
- <svg
133
- aria-hidden="true"
134
- className="govgr-svg-icon--plus govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon"
135
- focusable="false"
136
- viewBox="0 0 24 24"
137
- >
138
- <plus>
139
- <polygon
140
- points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
141
- />
142
- </plus>
143
- </svg>
144
- </ForwardRef(Base)>
145
- </ForwardRef(SvgIcon)>
146
- </ForwardRef(Icon)>
147
- </PlusIcon>
148
- `;
149
-
150
- exports[`renders the PlusIcon with prop variant=light 1`] = `
151
- <PlusIcon
152
- variant="light"
153
- >
154
- <ForwardRef(Icon)
155
- icon="plus"
156
- variant="light"
157
- >
158
- <ForwardRef(SvgIcon)
159
- className="govgr-svg-icon--plus"
160
- variant="light"
161
- >
162
- <ForwardRef(Base)
163
- aria-hidden="true"
164
- as="svg"
165
- className="govgr-svg-icon--plus govgr-svg-icon--light govgr-svg-icon"
166
- focusable="false"
167
- viewBox="0 0 24 24"
168
- >
169
- <svg
170
- aria-hidden="true"
171
- className="govgr-svg-icon--plus govgr-svg-icon--light govgr-svg-icon"
172
- focusable="false"
173
- viewBox="0 0 24 24"
174
- >
175
- <plus>
176
- <polygon
177
- points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
178
- />
179
- </plus>
180
- </svg>
181
- </ForwardRef(Base)>
182
- </ForwardRef(SvgIcon)>
183
- </ForwardRef(Icon)>
184
- </PlusIcon>
185
- `;
186
-
187
- exports[`renders the PlusIcon with prop variant=warning 1`] = `
188
- <PlusIcon
189
- variant="warning"
190
- >
191
- <ForwardRef(Icon)
192
- icon="plus"
193
- variant="warning"
194
- >
195
- <ForwardRef(SvgIcon)
196
- className="govgr-svg-icon--plus"
197
- variant="warning"
198
- >
199
- <ForwardRef(Base)
200
- aria-hidden="true"
201
- as="svg"
202
- className="govgr-svg-icon--plus govgr-svg-icon--warning govgr-svg-icon"
203
- focusable="false"
204
- viewBox="0 0 24 24"
205
- >
206
- <svg
207
- aria-hidden="true"
208
- className="govgr-svg-icon--plus govgr-svg-icon--warning govgr-svg-icon"
209
- focusable="false"
210
- viewBox="0 0 24 24"
211
- >
212
- <plus>
213
- <polygon
214
- points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
215
- />
216
- </plus>
217
- </svg>
218
- </ForwardRef(Base)>
219
- </ForwardRef(SvgIcon)>
220
- </ForwardRef(Icon)>
221
- </PlusIcon>
222
- `;
223
-
224
- exports[`renders the PlusIcon with prop variant=warning and size=s 1`] = `
225
- <PlusIcon
226
- size="sm"
227
- variant="warning"
228
- >
229
- <ForwardRef(Icon)
230
- icon="plus"
231
- size="sm"
232
- variant="warning"
233
- >
234
- <ForwardRef(SvgIcon)
235
- className="govgr-svg-icon--plus"
236
- size="sm"
237
- variant="warning"
238
- >
239
- <ForwardRef(Base)
240
- aria-hidden="true"
241
- as="svg"
242
- className="govgr-svg-icon--plus govgr-svg-icon--warning govgr-svg-icon--sm govgr-svg-icon"
243
- focusable="false"
244
- viewBox="0 0 24 24"
245
- >
246
- <svg
247
- aria-hidden="true"
248
- className="govgr-svg-icon--plus govgr-svg-icon--warning govgr-svg-icon--sm govgr-svg-icon"
249
- focusable="false"
250
- viewBox="0 0 24 24"
251
- >
252
- <plus>
253
- <polygon
254
- points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
255
- />
256
- </plus>
257
- </svg>
258
- </ForwardRef(Base)>
259
- </ForwardRef(SvgIcon)>
260
- </ForwardRef(Icon)>
261
- </PlusIcon>
262
- `;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- var _ref = /*#__PURE__*/React.createElement("polygon", {
3
- points: "22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
4
- });
5
- export function plus() {
6
- return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
7
- }
8
- plus.props = [];
9
- export default plus;
@@ -1,6 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "module": "./index.js",
4
- "types": "./index.d.ts",
5
- "main": "../../cjs/PlusIcon/config/index.js"
6
- }
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- export interface PlusType {
3
- }
4
- export declare function plus(): React.ReactElement;
5
- export declare namespace plus {
6
- var props: any[];
7
- }
8
- export default plus;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { IconProps } from '@digigov/react-icons/Icon';
3
- export declare const PlusIcon: React.FC<IconProps<'plus'>>;
4
- export default PlusIcon;
package/PlusIcon/index.js DELETED
@@ -1,9 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import React from 'react';
3
- import Icon from '@digigov/react-icons/Icon';
4
- export var PlusIcon = function PlusIcon(props) {
5
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
6
- icon: "plus"
7
- }));
8
- };
9
- export default PlusIcon;
@@ -1,45 +0,0 @@
1
- import React from 'react';
2
- import { mount } from 'enzyme';
3
- import PlusIcon from '@digigov/react-icons/PlusIcon';
4
- var _ref = /*#__PURE__*/React.createElement(PlusIcon, null);
5
- it('renders the PlusIcon with no props', function () {
6
- expect(mount(_ref)).toMatchSnapshot();
7
- });
8
- var _ref2 = /*#__PURE__*/React.createElement(PlusIcon, {
9
- size: "md"
10
- });
11
- it('renders the PlusIcon with prop size=m', function () {
12
- expect(mount(_ref2)).toMatchSnapshot();
13
- });
14
- var _ref3 = /*#__PURE__*/React.createElement(PlusIcon, {
15
- size: "xl"
16
- });
17
- it('renders the PlusIcon with prop size=xl', function () {
18
- expect(mount(_ref3)).toMatchSnapshot();
19
- });
20
- var _ref4 = /*#__PURE__*/React.createElement(PlusIcon, {
21
- variant: "light"
22
- });
23
- it('renders the PlusIcon with prop variant=light', function () {
24
- expect(mount(_ref4)).toMatchSnapshot();
25
- });
26
- var _ref5 = /*#__PURE__*/React.createElement(PlusIcon, {
27
- variant: "warning"
28
- });
29
- it('renders the PlusIcon with prop variant=warning', function () {
30
- expect(mount(_ref5)).toMatchSnapshot();
31
- });
32
- var _ref6 = /*#__PURE__*/React.createElement(PlusIcon, {
33
- variant: "warning",
34
- size: "sm"
35
- });
36
- it('renders the PlusIcon with prop variant=warning and size=s', function () {
37
- expect(mount(_ref6)).toMatchSnapshot();
38
- });
39
- var _ref7 = /*#__PURE__*/React.createElement(PlusIcon, {
40
- variant: "warning",
41
- size: "xl"
42
- });
43
- it('renders the PlusIcon with prop variant=error and size= xl', function () {
44
- expect(mount(_ref7)).toMatchSnapshot();
45
- });
@@ -1,6 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "module": "./index.js",
4
- "types": "./index.d.ts",
5
- "main": "../../cjs/PlusIcon/index.test/index.js"
6
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,262 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the CancelIcon with no props 1`] = `
4
- <CancelIcon>
5
- <ForwardRef(Icon)
6
- icon="cancel"
7
- >
8
- <ForwardRef(SvgIcon)
9
- className="govgr-svg-icon--cancel"
10
- >
11
- <ForwardRef(Base)
12
- aria-hidden="true"
13
- as="svg"
14
- className="govgr-svg-icon--cancel govgr-svg-icon"
15
- focusable="false"
16
- viewBox="0 0 24 24"
17
- >
18
- <svg
19
- aria-hidden="true"
20
- className="govgr-svg-icon--cancel govgr-svg-icon"
21
- focusable="false"
22
- viewBox="0 0 24 24"
23
- >
24
- <cancel>
25
- <path
26
- d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
27
- />
28
- </cancel>
29
- </svg>
30
- </ForwardRef(Base)>
31
- </ForwardRef(SvgIcon)>
32
- </ForwardRef(Icon)>
33
- </CancelIcon>
34
- `;
35
-
36
- exports[`renders the CancelIcon with prop size=m 1`] = `
37
- <CancelIcon
38
- size="md"
39
- >
40
- <ForwardRef(Icon)
41
- icon="cancel"
42
- size="md"
43
- >
44
- <ForwardRef(SvgIcon)
45
- className="govgr-svg-icon--cancel"
46
- size="md"
47
- >
48
- <ForwardRef(Base)
49
- aria-hidden="true"
50
- as="svg"
51
- className="govgr-svg-icon--cancel govgr-svg-icon--md govgr-svg-icon"
52
- focusable="false"
53
- viewBox="0 0 24 24"
54
- >
55
- <svg
56
- aria-hidden="true"
57
- className="govgr-svg-icon--cancel govgr-svg-icon--md govgr-svg-icon"
58
- focusable="false"
59
- viewBox="0 0 24 24"
60
- >
61
- <cancel>
62
- <path
63
- d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
64
- />
65
- </cancel>
66
- </svg>
67
- </ForwardRef(Base)>
68
- </ForwardRef(SvgIcon)>
69
- </ForwardRef(Icon)>
70
- </CancelIcon>
71
- `;
72
-
73
- exports[`renders the CancelIcon with prop size=xl 1`] = `
74
- <CancelIcon
75
- size="xl"
76
- >
77
- <ForwardRef(Icon)
78
- icon="cancel"
79
- size="xl"
80
- >
81
- <ForwardRef(SvgIcon)
82
- className="govgr-svg-icon--cancel"
83
- size="xl"
84
- >
85
- <ForwardRef(Base)
86
- aria-hidden="true"
87
- as="svg"
88
- className="govgr-svg-icon--cancel govgr-svg-icon--xl govgr-svg-icon"
89
- focusable="false"
90
- viewBox="0 0 24 24"
91
- >
92
- <svg
93
- aria-hidden="true"
94
- className="govgr-svg-icon--cancel govgr-svg-icon--xl govgr-svg-icon"
95
- focusable="false"
96
- viewBox="0 0 24 24"
97
- >
98
- <cancel>
99
- <path
100
- d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
101
- />
102
- </cancel>
103
- </svg>
104
- </ForwardRef(Base)>
105
- </ForwardRef(SvgIcon)>
106
- </ForwardRef(Icon)>
107
- </CancelIcon>
108
- `;
109
-
110
- exports[`renders the CancelIcon with prop variant=error and size= xl 1`] = `
111
- <CancelIcon
112
- size="xl"
113
- variant="warning"
114
- >
115
- <ForwardRef(Icon)
116
- icon="cancel"
117
- size="xl"
118
- variant="warning"
119
- >
120
- <ForwardRef(SvgIcon)
121
- className="govgr-svg-icon--cancel"
122
- size="xl"
123
- variant="warning"
124
- >
125
- <ForwardRef(Base)
126
- aria-hidden="true"
127
- as="svg"
128
- className="govgr-svg-icon--cancel govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon"
129
- focusable="false"
130
- viewBox="0 0 24 24"
131
- >
132
- <svg
133
- aria-hidden="true"
134
- className="govgr-svg-icon--cancel govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon"
135
- focusable="false"
136
- viewBox="0 0 24 24"
137
- >
138
- <cancel>
139
- <path
140
- d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
141
- />
142
- </cancel>
143
- </svg>
144
- </ForwardRef(Base)>
145
- </ForwardRef(SvgIcon)>
146
- </ForwardRef(Icon)>
147
- </CancelIcon>
148
- `;
149
-
150
- exports[`renders the CancelIcon with prop variant=light 1`] = `
151
- <CancelIcon
152
- variant="light"
153
- >
154
- <ForwardRef(Icon)
155
- icon="cancel"
156
- variant="light"
157
- >
158
- <ForwardRef(SvgIcon)
159
- className="govgr-svg-icon--cancel"
160
- variant="light"
161
- >
162
- <ForwardRef(Base)
163
- aria-hidden="true"
164
- as="svg"
165
- className="govgr-svg-icon--cancel govgr-svg-icon--light govgr-svg-icon"
166
- focusable="false"
167
- viewBox="0 0 24 24"
168
- >
169
- <svg
170
- aria-hidden="true"
171
- className="govgr-svg-icon--cancel govgr-svg-icon--light govgr-svg-icon"
172
- focusable="false"
173
- viewBox="0 0 24 24"
174
- >
175
- <cancel>
176
- <path
177
- d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
178
- />
179
- </cancel>
180
- </svg>
181
- </ForwardRef(Base)>
182
- </ForwardRef(SvgIcon)>
183
- </ForwardRef(Icon)>
184
- </CancelIcon>
185
- `;
186
-
187
- exports[`renders the CancelIcon with prop variant=warning 1`] = `
188
- <CancelIcon
189
- variant="warning"
190
- >
191
- <ForwardRef(Icon)
192
- icon="cancel"
193
- variant="warning"
194
- >
195
- <ForwardRef(SvgIcon)
196
- className="govgr-svg-icon--cancel"
197
- variant="warning"
198
- >
199
- <ForwardRef(Base)
200
- aria-hidden="true"
201
- as="svg"
202
- className="govgr-svg-icon--cancel govgr-svg-icon--warning govgr-svg-icon"
203
- focusable="false"
204
- viewBox="0 0 24 24"
205
- >
206
- <svg
207
- aria-hidden="true"
208
- className="govgr-svg-icon--cancel govgr-svg-icon--warning govgr-svg-icon"
209
- focusable="false"
210
- viewBox="0 0 24 24"
211
- >
212
- <cancel>
213
- <path
214
- d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
215
- />
216
- </cancel>
217
- </svg>
218
- </ForwardRef(Base)>
219
- </ForwardRef(SvgIcon)>
220
- </ForwardRef(Icon)>
221
- </CancelIcon>
222
- `;
223
-
224
- exports[`renders the CancelIcon with prop variant=warning and size=s 1`] = `
225
- <CancelIcon
226
- size="sm"
227
- variant="warning"
228
- >
229
- <ForwardRef(Icon)
230
- icon="cancel"
231
- size="sm"
232
- variant="warning"
233
- >
234
- <ForwardRef(SvgIcon)
235
- className="govgr-svg-icon--cancel"
236
- size="sm"
237
- variant="warning"
238
- >
239
- <ForwardRef(Base)
240
- aria-hidden="true"
241
- as="svg"
242
- className="govgr-svg-icon--cancel govgr-svg-icon--warning govgr-svg-icon--sm govgr-svg-icon"
243
- focusable="false"
244
- viewBox="0 0 24 24"
245
- >
246
- <svg
247
- aria-hidden="true"
248
- className="govgr-svg-icon--cancel govgr-svg-icon--warning govgr-svg-icon--sm govgr-svg-icon"
249
- focusable="false"
250
- viewBox="0 0 24 24"
251
- >
252
- <cancel>
253
- <path
254
- d="M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
255
- />
256
- </cancel>
257
- </svg>
258
- </ForwardRef(Base)>
259
- </ForwardRef(SvgIcon)>
260
- </ForwardRef(Icon)>
261
- </CancelIcon>
262
- `;
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.cancel = cancel;
8
- exports["default"] = void 0;
9
- var _react = _interopRequireDefault(require("react"));
10
- var _ref = /*#__PURE__*/_react["default"].createElement("path", {
11
- d: "M12,2C6.477,2,2,6.477,2,12s4.477,10,10,10,10-4.477,10-10S17.523,2,12,2ZM17.419,15.581l-1.838,1.838-3.581-3.581-3.581,3.581-1.838-1.838,3.581-3.581-3.581-3.581,1.838-1.839,3.581,3.581,3.581-3.581,1.838,1.839-3.581,3.581,3.581,3.581Z"
12
- });
13
- function cancel() {
14
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref);
15
- }
16
- cancel.props = [];
17
- var _default = exports["default"] = cancel;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = exports.CancelIcon = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
11
- var CancelIcon = exports.CancelIcon = function CancelIcon(props) {
12
- return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
13
- icon: "cancel"
14
- }));
15
- };
16
- var _default = exports["default"] = CancelIcon;