@digigov/react-icons 1.0.0-rc

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 (208) hide show
  1. package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
  2. package/AccessibilityIcon/config.d.ts +8 -0
  3. package/AccessibilityIcon/config.js +31 -0
  4. package/AccessibilityIcon/index.d.ts +4 -0
  5. package/AccessibilityIcon/index.js +24 -0
  6. package/AccessibilityIcon/index.test.d.ts +1 -0
  7. package/AccessibilityIcon/index.test.js +137 -0
  8. package/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
  9. package/ArrowIcon/config.d.ts +6 -0
  10. package/ArrowIcon/config.js +39 -0
  11. package/ArrowIcon/index.d.ts +4 -0
  12. package/ArrowIcon/index.js +24 -0
  13. package/ArrowIcon/index.test.d.ts +1 -0
  14. package/ArrowIcon/index.test.js +39 -0
  15. package/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
  16. package/BurgerIcon/config.d.ts +6 -0
  17. package/BurgerIcon/config.js +45 -0
  18. package/BurgerIcon/index.d.ts +4 -0
  19. package/BurgerIcon/index.js +24 -0
  20. package/BurgerIcon/index.test.d.ts +1 -0
  21. package/BurgerIcon/index.test.js +56 -0
  22. package/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
  23. package/CaretIcon/config.d.ts +6 -0
  24. package/CaretIcon/config.js +39 -0
  25. package/CaretIcon/index.d.ts +4 -0
  26. package/CaretIcon/index.js +24 -0
  27. package/CaretIcon/index.test.d.ts +1 -0
  28. package/CaretIcon/index.test.js +39 -0
  29. package/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  30. package/CheckIcon/config.d.ts +8 -0
  31. package/CheckIcon/config.js +23 -0
  32. package/CheckIcon/index.d.ts +4 -0
  33. package/CheckIcon/index.js +24 -0
  34. package/CheckIcon/index.test.d.ts +1 -0
  35. package/CheckIcon/index.test.js +129 -0
  36. package/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
  37. package/CloseIcon/config.d.ts +8 -0
  38. package/CloseIcon/config.js +23 -0
  39. package/CloseIcon/index.d.ts +4 -0
  40. package/CloseIcon/index.js +24 -0
  41. package/CloseIcon/index.test.d.ts +1 -0
  42. package/CloseIcon/index.test.js +15 -0
  43. package/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
  44. package/GlobeIcon/config.d.ts +8 -0
  45. package/GlobeIcon/config.js +23 -0
  46. package/GlobeIcon/index.d.ts +4 -0
  47. package/GlobeIcon/index.js +24 -0
  48. package/GlobeIcon/index.test.d.ts +1 -0
  49. package/GlobeIcon/index.test.js +39 -0
  50. package/LICENSE +0 -0
  51. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
  52. package/MoreVertIcon/config.d.ts +8 -0
  53. package/MoreVertIcon/config.js +37 -0
  54. package/MoreVertIcon/index.d.ts +4 -0
  55. package/MoreVertIcon/index.js +24 -0
  56. package/MoreVertIcon/index.test.d.ts +1 -0
  57. package/MoreVertIcon/index.test.js +129 -0
  58. package/README.md +0 -0
  59. package/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
  60. package/SearchIcon/config.d.ts +8 -0
  61. package/SearchIcon/config.js +23 -0
  62. package/SearchIcon/index.d.ts +4 -0
  63. package/SearchIcon/index.js +24 -0
  64. package/SearchIcon/index.test.d.ts +1 -0
  65. package/SearchIcon/index.test.js +15 -0
  66. package/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  67. package/UncheckIcon/config.d.ts +8 -0
  68. package/UncheckIcon/config.js +23 -0
  69. package/UncheckIcon/index.d.ts +4 -0
  70. package/UncheckIcon/index.js +24 -0
  71. package/UncheckIcon/index.test.d.ts +1 -0
  72. package/UncheckIcon/index.test.js +129 -0
  73. package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
  74. package/es/AccessibilityIcon/config.js +19 -0
  75. package/es/AccessibilityIcon/index.js +9 -0
  76. package/es/AccessibilityIcon/index.test.js +131 -0
  77. package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
  78. package/es/ArrowIcon/config.js +27 -0
  79. package/es/ArrowIcon/index.js +9 -0
  80. package/es/ArrowIcon/index.test.js +33 -0
  81. package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
  82. package/es/BurgerIcon/config.js +32 -0
  83. package/es/BurgerIcon/index.js +9 -0
  84. package/es/BurgerIcon/index.test.js +50 -0
  85. package/es/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
  86. package/es/CaretIcon/config.js +27 -0
  87. package/es/CaretIcon/index.js +9 -0
  88. package/es/CaretIcon/index.test.js +33 -0
  89. package/es/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  90. package/es/CheckIcon/config.js +11 -0
  91. package/es/CheckIcon/index.js +9 -0
  92. package/es/CheckIcon/index.test.js +123 -0
  93. package/es/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
  94. package/es/CloseIcon/config.js +11 -0
  95. package/es/CloseIcon/index.js +9 -0
  96. package/es/CloseIcon/index.test.js +9 -0
  97. package/es/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
  98. package/es/GlobeIcon/config.js +11 -0
  99. package/es/GlobeIcon/index.js +9 -0
  100. package/es/GlobeIcon/index.test.js +33 -0
  101. package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
  102. package/es/MoreVertIcon/config.js +25 -0
  103. package/es/MoreVertIcon/index.js +9 -0
  104. package/es/MoreVertIcon/index.test.js +123 -0
  105. package/es/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
  106. package/es/SearchIcon/config.js +11 -0
  107. package/es/SearchIcon/index.js +9 -0
  108. package/es/SearchIcon/index.test.js +9 -0
  109. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  110. package/es/UncheckIcon/config.js +11 -0
  111. package/es/UncheckIcon/index.js +9 -0
  112. package/es/UncheckIcon/index.test.js +123 -0
  113. package/es/icons.js +11 -0
  114. package/es/index.js +10 -0
  115. package/es/registry.js +42 -0
  116. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
  117. package/esm/AccessibilityIcon/config.js +19 -0
  118. package/esm/AccessibilityIcon/index.js +9 -0
  119. package/esm/AccessibilityIcon/index.test.js +131 -0
  120. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
  121. package/esm/ArrowIcon/config.js +27 -0
  122. package/esm/ArrowIcon/index.js +9 -0
  123. package/esm/ArrowIcon/index.test.js +33 -0
  124. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
  125. package/esm/BurgerIcon/config.js +32 -0
  126. package/esm/BurgerIcon/index.js +9 -0
  127. package/esm/BurgerIcon/index.test.js +50 -0
  128. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
  129. package/esm/CaretIcon/config.js +27 -0
  130. package/esm/CaretIcon/index.js +9 -0
  131. package/esm/CaretIcon/index.test.js +33 -0
  132. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  133. package/esm/CheckIcon/config.js +11 -0
  134. package/esm/CheckIcon/index.js +9 -0
  135. package/esm/CheckIcon/index.test.js +123 -0
  136. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
  137. package/esm/CloseIcon/config.js +11 -0
  138. package/esm/CloseIcon/index.js +9 -0
  139. package/esm/CloseIcon/index.test.js +9 -0
  140. package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
  141. package/esm/GlobeIcon/config.js +11 -0
  142. package/esm/GlobeIcon/index.js +9 -0
  143. package/esm/GlobeIcon/index.test.js +33 -0
  144. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
  145. package/esm/MoreVertIcon/config.js +25 -0
  146. package/esm/MoreVertIcon/index.js +9 -0
  147. package/esm/MoreVertIcon/index.test.js +123 -0
  148. package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
  149. package/esm/SearchIcon/config.js +11 -0
  150. package/esm/SearchIcon/index.js +9 -0
  151. package/esm/SearchIcon/index.test.js +9 -0
  152. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  153. package/esm/UncheckIcon/config.js +11 -0
  154. package/esm/UncheckIcon/index.js +9 -0
  155. package/esm/UncheckIcon/index.test.js +123 -0
  156. package/esm/icons.js +11 -0
  157. package/esm/index.js +10 -0
  158. package/esm/registry.js +42 -0
  159. package/icons.d.ts +32 -0
  160. package/icons.js +135 -0
  161. package/index.d.ts +10 -0
  162. package/index.js +135 -0
  163. package/package.json +25 -0
  164. package/registry.d.ts +15 -0
  165. package/registry.js +67 -0
  166. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
  167. package/src/AccessibilityIcon/config.tsx +22 -0
  168. package/src/AccessibilityIcon/index.test.tsx +57 -0
  169. package/src/AccessibilityIcon/index.tsx +10 -0
  170. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
  171. package/src/ArrowIcon/config.tsx +29 -0
  172. package/src/ArrowIcon/index.test.tsx +20 -0
  173. package/src/ArrowIcon/index.tsx +8 -0
  174. package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
  175. package/src/BurgerIcon/config.tsx +25 -0
  176. package/src/BurgerIcon/index.test.tsx +26 -0
  177. package/src/BurgerIcon/index.tsx +8 -0
  178. package/src/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
  179. package/src/CaretIcon/config.tsx +21 -0
  180. package/src/CaretIcon/index.test.tsx +20 -0
  181. package/src/CaretIcon/index.tsx +8 -0
  182. package/src/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  183. package/src/CheckIcon/config.tsx +15 -0
  184. package/src/CheckIcon/index.test.tsx +50 -0
  185. package/src/CheckIcon/index.tsx +8 -0
  186. package/src/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
  187. package/src/CloseIcon/config.tsx +15 -0
  188. package/src/CloseIcon/index.test.tsx +8 -0
  189. package/src/CloseIcon/index.tsx +8 -0
  190. package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
  191. package/src/GlobeIcon/config.tsx +26 -0
  192. package/src/GlobeIcon/index.test.tsx +19 -0
  193. package/src/GlobeIcon/index.tsx +8 -0
  194. package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
  195. package/src/MoreVertIcon/config.tsx +17 -0
  196. package/src/MoreVertIcon/index.test.tsx +50 -0
  197. package/src/MoreVertIcon/index.tsx +8 -0
  198. package/src/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
  199. package/src/SearchIcon/config.tsx +15 -0
  200. package/src/SearchIcon/index.test.tsx +8 -0
  201. package/src/SearchIcon/index.tsx +8 -0
  202. package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  203. package/src/UncheckIcon/config.tsx +15 -0
  204. package/src/UncheckIcon/index.test.tsx +50 -0
  205. package/src/UncheckIcon/index.tsx +8 -0
  206. package/src/icons.ts +34 -0
  207. package/src/index.ts +10 -0
  208. package/src/registry.js +47 -0
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _enzyme = require("enzyme");
8
+
9
+ var _CaretIcon = _interopRequireDefault(require("@digigov/react-icons/CaretIcon"));
10
+
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], null);
12
+
13
+ it('renders the CaretIcon with no props, direction prop is left by default', function () {
14
+ expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
+ });
16
+
17
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], {
18
+ direction: "right"
19
+ });
20
+
21
+ it('renders the CaretIcon with direction right prop', function () {
22
+ expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
23
+ });
24
+
25
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], {
26
+ direction: "up"
27
+ });
28
+
29
+ it('renders the CaretIcon with direction up prop', function () {
30
+ expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
31
+ });
32
+
33
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], {
34
+ direction: "down"
35
+ });
36
+
37
+ it('renders the CaretIcon with direction down prop', function () {
38
+ expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
39
+ });
@@ -0,0 +1,558 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the CheckIcon with no props 1`] = `
4
+ <CheckIcon>
5
+ <ForwardRef(Icon)
6
+ icon="check"
7
+ >
8
+ <ForwardRef(SvgIcon)
9
+ className="govgr-svg-icon--check"
10
+ >
11
+ <ForwardRef(Base)
12
+ aria-hidden="true"
13
+ as="svg"
14
+ className="govgr-svg-icon--check govgr-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ >
18
+ <svg
19
+ aria-hidden="true"
20
+ className="govgr-svg-icon--check govgr-svg-icon"
21
+ focusable="false"
22
+ viewBox="0 0 24 24"
23
+ >
24
+ <check>
25
+ <polygon
26
+ 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"
27
+ />
28
+ </check>
29
+ </svg>
30
+ </ForwardRef(Base)>
31
+ </ForwardRef(SvgIcon)>
32
+ </ForwardRef(Icon)>
33
+ </CheckIcon>
34
+ `;
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
+ exports[`renders the CheckIcon with prop size=m 1`] = `
74
+ <CheckIcon
75
+ size="md"
76
+ >
77
+ <ForwardRef(Icon)
78
+ icon="check"
79
+ size="md"
80
+ >
81
+ <ForwardRef(SvgIcon)
82
+ className="govgr-svg-icon--check"
83
+ size="md"
84
+ >
85
+ <ForwardRef(Base)
86
+ aria-hidden="true"
87
+ as="svg"
88
+ className="govgr-svg-icon--check govgr-svg-icon--md govgr-svg-icon"
89
+ focusable="false"
90
+ viewBox="0 0 24 24"
91
+ >
92
+ <svg
93
+ aria-hidden="true"
94
+ className="govgr-svg-icon--check govgr-svg-icon--md govgr-svg-icon"
95
+ focusable="false"
96
+ viewBox="0 0 24 24"
97
+ >
98
+ <check>
99
+ <polygon
100
+ 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"
101
+ />
102
+ </check>
103
+ </svg>
104
+ </ForwardRef(Base)>
105
+ </ForwardRef(SvgIcon)>
106
+ </ForwardRef(Icon)>
107
+ </CheckIcon>
108
+ `;
109
+
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
+ exports[`renders the CheckIcon with prop size=xl 1`] = `
148
+ <CheckIcon
149
+ size="xl"
150
+ >
151
+ <ForwardRef(Icon)
152
+ icon="check"
153
+ size="xl"
154
+ >
155
+ <ForwardRef(SvgIcon)
156
+ className="govgr-svg-icon--check"
157
+ size="xl"
158
+ >
159
+ <ForwardRef(Base)
160
+ aria-hidden="true"
161
+ as="svg"
162
+ className="govgr-svg-icon--check 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--check govgr-svg-icon--xl govgr-svg-icon"
169
+ focusable="false"
170
+ viewBox="0 0 24 24"
171
+ >
172
+ <check>
173
+ <polygon
174
+ 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"
175
+ />
176
+ </check>
177
+ </svg>
178
+ </ForwardRef(Base)>
179
+ </ForwardRef(SvgIcon)>
180
+ </ForwardRef(Icon)>
181
+ </CheckIcon>
182
+ `;
183
+
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
+ exports[`renders the CheckIcon with prop variant=error and size= xl 1`] = `
259
+ <CheckIcon
260
+ size="xl"
261
+ variant="warning"
262
+ >
263
+ <ForwardRef(Icon)
264
+ icon="check"
265
+ size="xl"
266
+ variant="warning"
267
+ >
268
+ <ForwardRef(SvgIcon)
269
+ className="govgr-svg-icon--check"
270
+ size="xl"
271
+ variant="warning"
272
+ >
273
+ <ForwardRef(Base)
274
+ aria-hidden="true"
275
+ as="svg"
276
+ className="govgr-svg-icon--check govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon"
277
+ focusable="false"
278
+ viewBox="0 0 24 24"
279
+ >
280
+ <svg
281
+ aria-hidden="true"
282
+ className="govgr-svg-icon--check govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon"
283
+ focusable="false"
284
+ viewBox="0 0 24 24"
285
+ >
286
+ <check>
287
+ <polygon
288
+ points="9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
289
+ />
290
+ </check>
291
+ </svg>
292
+ </ForwardRef(Base)>
293
+ </ForwardRef(SvgIcon)>
294
+ </ForwardRef(Icon)>
295
+ </CheckIcon>
296
+ `;
297
+
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
+ exports[`renders the CheckIcon with prop variant=light 1`] = `
373
+ <CheckIcon
374
+ variant="light"
375
+ >
376
+ <ForwardRef(Icon)
377
+ icon="check"
378
+ variant="light"
379
+ >
380
+ <ForwardRef(SvgIcon)
381
+ className="govgr-svg-icon--check"
382
+ variant="light"
383
+ >
384
+ <ForwardRef(Base)
385
+ aria-hidden="true"
386
+ as="svg"
387
+ className="govgr-svg-icon--check govgr-svg-icon--light govgr-svg-icon"
388
+ focusable="false"
389
+ viewBox="0 0 24 24"
390
+ >
391
+ <svg
392
+ aria-hidden="true"
393
+ className="govgr-svg-icon--check govgr-svg-icon--light govgr-svg-icon"
394
+ focusable="false"
395
+ viewBox="0 0 24 24"
396
+ >
397
+ <check>
398
+ <polygon
399
+ 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"
400
+ />
401
+ </check>
402
+ </svg>
403
+ </ForwardRef(Base)>
404
+ </ForwardRef(SvgIcon)>
405
+ </ForwardRef(Icon)>
406
+ </CheckIcon>
407
+ `;
408
+
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
+ exports[`renders the CheckIcon with prop variant=success 1`] = `
447
+ <CheckIcon
448
+ variant="success"
449
+ >
450
+ <ForwardRef(Icon)
451
+ icon="check"
452
+ variant="success"
453
+ >
454
+ <ForwardRef(SvgIcon)
455
+ className="govgr-svg-icon--check"
456
+ variant="success"
457
+ >
458
+ <ForwardRef(Base)
459
+ aria-hidden="true"
460
+ as="svg"
461
+ className="govgr-svg-icon--check 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--check govgr-svg-icon--success govgr-svg-icon"
468
+ focusable="false"
469
+ viewBox="0 0 24 24"
470
+ >
471
+ <check>
472
+ <polygon
473
+ 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"
474
+ />
475
+ </check>
476
+ </svg>
477
+ </ForwardRef(Base)>
478
+ </ForwardRef(SvgIcon)>
479
+ </ForwardRef(Icon)>
480
+ </CheckIcon>
481
+ `;
482
+
483
+ exports[`renders the CheckIcon with prop variant=warning 1`] = `
484
+ <CheckIcon
485
+ variant="warning"
486
+ >
487
+ <ForwardRef(Icon)
488
+ icon="check"
489
+ variant="warning"
490
+ >
491
+ <ForwardRef(SvgIcon)
492
+ className="govgr-svg-icon--check"
493
+ variant="warning"
494
+ >
495
+ <ForwardRef(Base)
496
+ aria-hidden="true"
497
+ as="svg"
498
+ className="govgr-svg-icon--check 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--check govgr-svg-icon--warning govgr-svg-icon"
505
+ focusable="false"
506
+ viewBox="0 0 24 24"
507
+ >
508
+ <check>
509
+ <polygon
510
+ 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"
511
+ />
512
+ </check>
513
+ </svg>
514
+ </ForwardRef(Base)>
515
+ </ForwardRef(SvgIcon)>
516
+ </ForwardRef(Icon)>
517
+ </CheckIcon>
518
+ `;
519
+
520
+ exports[`renders the CheckIcon with prop variant=warning and size=s 1`] = `
521
+ <CheckIcon
522
+ size="sm"
523
+ variant="warning"
524
+ >
525
+ <ForwardRef(Icon)
526
+ icon="check"
527
+ size="sm"
528
+ variant="warning"
529
+ >
530
+ <ForwardRef(SvgIcon)
531
+ className="govgr-svg-icon--check"
532
+ size="sm"
533
+ variant="warning"
534
+ >
535
+ <ForwardRef(Base)
536
+ aria-hidden="true"
537
+ as="svg"
538
+ className="govgr-svg-icon--check govgr-svg-icon--warning govgr-svg-icon--sm govgr-svg-icon"
539
+ focusable="false"
540
+ viewBox="0 0 24 24"
541
+ >
542
+ <svg
543
+ aria-hidden="true"
544
+ className="govgr-svg-icon--check govgr-svg-icon--warning govgr-svg-icon--sm govgr-svg-icon"
545
+ focusable="false"
546
+ viewBox="0 0 24 24"
547
+ >
548
+ <check>
549
+ <polygon
550
+ 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"
551
+ />
552
+ </check>
553
+ </svg>
554
+ </ForwardRef(Base)>
555
+ </ForwardRef(SvgIcon)>
556
+ </ForwardRef(Icon)>
557
+ </CheckIcon>
558
+ `;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface CheckType {
3
+ }
4
+ export declare function check(): React.ReactElement;
5
+ export declare namespace check {
6
+ var props: any[];
7
+ }
8
+ export default check;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.check = check;
9
+ exports["default"] = void 0;
10
+
11
+ var _react = _interopRequireDefault(require("react"));
12
+
13
+ var _ref = /*#__PURE__*/_react["default"].createElement("polygon", {
14
+ 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"
15
+ });
16
+
17
+ function check() {
18
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref);
19
+ }
20
+
21
+ check.props = [];
22
+ var _default = check;
23
+ exports["default"] = _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '@digigov/react-core/Icon';
3
+ export declare const CheckIcon: React.FC<IconProps<'check'>>;
4
+ export default CheckIcon;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.CheckIcon = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _Icon = _interopRequireDefault(require("@digigov/react-core/Icon"));
15
+
16
+ var CheckIcon = function CheckIcon(props) {
17
+ return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
18
+ icon: "check"
19
+ }));
20
+ };
21
+
22
+ exports.CheckIcon = CheckIcon;
23
+ var _default = CheckIcon;
24
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ export {};