@digigov/react-icons 1.2.0-a7ffb5dc → 2.0.0-af1b5f33

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 (225) hide show
  1. package/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  2. package/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  3. package/CancelIcon/config/index.js +9 -0
  4. package/CancelIcon/config/package.json +6 -0
  5. package/CancelIcon/config.d.ts +8 -0
  6. package/CancelIcon/index.d.ts +4 -0
  7. package/CancelIcon/index.js +9 -0
  8. package/CancelIcon/index.test/index.js +45 -0
  9. package/CancelIcon/index.test/package.json +6 -0
  10. package/CancelIcon/index.test.d.ts +1 -0
  11. package/CancelIcon/package.json +6 -0
  12. package/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  13. package/ChatIcon/config/index.js +17 -0
  14. package/ChatIcon/config/package.json +6 -0
  15. package/ChatIcon/config.d.ts +11 -0
  16. package/ChatIcon/index.d.ts +4 -0
  17. package/ChatIcon/index.js +9 -0
  18. package/ChatIcon/index.test/index.js +51 -0
  19. package/ChatIcon/index.test/package.json +6 -0
  20. package/ChatIcon/index.test.d.ts +1 -0
  21. package/{lazy → ChatIcon}/package.json +1 -1
  22. package/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  23. package/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  24. package/DownloadIcon/config/index.js +14 -0
  25. package/DownloadIcon/config/package.json +6 -0
  26. package/DownloadIcon/config.d.ts +8 -0
  27. package/DownloadIcon/index.d.ts +4 -0
  28. package/DownloadIcon/index.js +9 -0
  29. package/DownloadIcon/index.test/index.js +45 -0
  30. package/DownloadIcon/index.test/package.json +6 -0
  31. package/DownloadIcon/index.test.d.ts +1 -0
  32. package/DownloadIcon/package.json +6 -0
  33. package/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  34. package/ExclamationIcon/config/index.js +14 -0
  35. package/ExclamationIcon/config/package.json +6 -0
  36. package/ExclamationIcon/config.d.ts +8 -0
  37. package/ExclamationIcon/index.d.ts +4 -0
  38. package/ExclamationIcon/index.js +9 -0
  39. package/ExclamationIcon/index.test/index.js +45 -0
  40. package/ExclamationIcon/index.test/package.json +6 -0
  41. package/ExclamationIcon/index.test.d.ts +1 -0
  42. package/ExclamationIcon/package.json +6 -0
  43. package/Icon/__snapshots__/index.test.tsx.snap +10 -10
  44. package/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  45. package/LockIcon/config/index.js +9 -0
  46. package/LockIcon/config/package.json +6 -0
  47. package/LockIcon/config.d.ts +8 -0
  48. package/LockIcon/index.d.ts +4 -0
  49. package/LockIcon/index.js +9 -0
  50. package/LockIcon/index.test/index.js +45 -0
  51. package/LockIcon/index.test/package.json +6 -0
  52. package/LockIcon/index.test.d.ts +1 -0
  53. package/LockIcon/package.json +6 -0
  54. package/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  55. package/LoginIcon/config/index.js +12 -0
  56. package/LoginIcon/config/package.json +6 -0
  57. package/LoginIcon/config.d.ts +8 -0
  58. package/LoginIcon/index.d.ts +4 -0
  59. package/LoginIcon/index.js +9 -0
  60. package/LoginIcon/index.test/index.js +45 -0
  61. package/LoginIcon/index.test/package.json +6 -0
  62. package/LoginIcon/index.test.d.ts +1 -0
  63. package/LoginIcon/package.json +6 -0
  64. package/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  65. package/MinusIcon/config/index.js +12 -0
  66. package/MinusIcon/config/package.json +6 -0
  67. package/MinusIcon/config.d.ts +8 -0
  68. package/MinusIcon/index.d.ts +4 -0
  69. package/MinusIcon/index.js +9 -0
  70. package/MinusIcon/index.test/index.js +45 -0
  71. package/MinusIcon/index.test/package.json +6 -0
  72. package/MinusIcon/index.test.d.ts +1 -0
  73. package/MinusIcon/package.json +6 -0
  74. package/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  75. package/PdfFileIcon/config/index.js +15 -0
  76. package/PdfFileIcon/config/package.json +6 -0
  77. package/PdfFileIcon/config.d.ts +8 -0
  78. package/PdfFileIcon/index.d.ts +4 -0
  79. package/PdfFileIcon/index.js +9 -0
  80. package/PdfFileIcon/index.test/index.js +45 -0
  81. package/PdfFileIcon/index.test/package.json +6 -0
  82. package/PdfFileIcon/index.test.d.ts +1 -0
  83. package/PdfFileIcon/package.json +6 -0
  84. package/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  85. package/PlusIcon/config/index.js +9 -0
  86. package/PlusIcon/config/package.json +6 -0
  87. package/PlusIcon/config.d.ts +8 -0
  88. package/PlusIcon/index.d.ts +4 -0
  89. package/PlusIcon/index.js +9 -0
  90. package/PlusIcon/index.test/index.js +45 -0
  91. package/PlusIcon/index.test/package.json +6 -0
  92. package/PlusIcon/index.test.d.ts +1 -0
  93. package/PlusIcon/package.json +6 -0
  94. package/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  95. package/ReplyIcon/config/index.js +9 -0
  96. package/ReplyIcon/config/package.json +6 -0
  97. package/ReplyIcon/config.d.ts +8 -0
  98. package/ReplyIcon/index.d.ts +4 -0
  99. package/ReplyIcon/index.js +9 -0
  100. package/ReplyIcon/index.test/index.js +45 -0
  101. package/ReplyIcon/index.test/package.json +6 -0
  102. package/ReplyIcon/index.test.d.ts +1 -0
  103. package/ReplyIcon/package.json +6 -0
  104. package/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  105. package/RestoreIcon/config/index.js +17 -0
  106. package/RestoreIcon/config/package.json +6 -0
  107. package/RestoreIcon/config.d.ts +8 -0
  108. package/RestoreIcon/index.d.ts +4 -0
  109. package/RestoreIcon/index.js +9 -0
  110. package/RestoreIcon/index.test/index.js +45 -0
  111. package/RestoreIcon/index.test/package.json +6 -0
  112. package/RestoreIcon/index.test.d.ts +1 -0
  113. package/RestoreIcon/package.json +6 -0
  114. package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  115. package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  116. package/cjs/CancelIcon/config/index.js +17 -0
  117. package/cjs/CancelIcon/index.js +16 -0
  118. package/cjs/CancelIcon/index.test/index.js +48 -0
  119. package/cjs/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  120. package/cjs/ChatIcon/config/index.js +24 -0
  121. package/cjs/ChatIcon/index.js +16 -0
  122. package/cjs/ChatIcon/index.test/index.js +54 -0
  123. package/cjs/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  124. package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  125. package/cjs/DownloadIcon/config/index.js +22 -0
  126. package/cjs/DownloadIcon/index.js +16 -0
  127. package/cjs/DownloadIcon/index.test/index.js +48 -0
  128. package/cjs/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  129. package/cjs/ExclamationIcon/config/index.js +22 -0
  130. package/cjs/ExclamationIcon/index.js +16 -0
  131. package/cjs/ExclamationIcon/index.test/index.js +48 -0
  132. package/cjs/Icon/__snapshots__/index.test.tsx.snap +10 -10
  133. package/cjs/Icon/index.js +1 -1
  134. package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  135. package/cjs/LockIcon/config/index.js +17 -0
  136. package/cjs/LockIcon/index.js +16 -0
  137. package/cjs/LockIcon/index.test/index.js +48 -0
  138. package/cjs/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  139. package/cjs/LoginIcon/config/index.js +20 -0
  140. package/cjs/LoginIcon/index.js +16 -0
  141. package/cjs/LoginIcon/index.test/index.js +48 -0
  142. package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  143. package/cjs/MinusIcon/config/index.js +20 -0
  144. package/cjs/MinusIcon/index.js +16 -0
  145. package/cjs/MinusIcon/index.test/index.js +48 -0
  146. package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  147. package/cjs/PdfFileIcon/config/index.js +23 -0
  148. package/cjs/PdfFileIcon/index.js +16 -0
  149. package/cjs/PdfFileIcon/index.test/index.js +48 -0
  150. package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  151. package/cjs/PlusIcon/config/index.js +17 -0
  152. package/cjs/PlusIcon/index.js +16 -0
  153. package/cjs/PlusIcon/index.test/index.js +48 -0
  154. package/cjs/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  155. package/cjs/ReplyIcon/config/index.js +17 -0
  156. package/cjs/ReplyIcon/index.js +16 -0
  157. package/cjs/ReplyIcon/index.test/index.js +48 -0
  158. package/cjs/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  159. package/cjs/RestoreIcon/config/index.js +25 -0
  160. package/cjs/RestoreIcon/index.js +16 -0
  161. package/cjs/RestoreIcon/index.test/index.js +48 -0
  162. package/cjs/icons/index.js +121 -0
  163. package/cjs/index.js +121 -0
  164. package/cjs/registry/index.js +23 -1
  165. package/icons/index.js +11 -0
  166. package/icons.d.ts +33 -0
  167. package/index.d.ts +11 -0
  168. package/index.js +13 -2
  169. package/package.json +4 -3
  170. package/registry/index.js +23 -1
  171. package/registry.d.ts +11 -0
  172. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  173. package/src/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  174. package/src/CancelIcon/config.tsx +15 -0
  175. package/src/CancelIcon/index.test.tsx +26 -0
  176. package/src/CancelIcon/index.tsx +8 -0
  177. package/src/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  178. package/src/ChatIcon/config.tsx +28 -0
  179. package/src/ChatIcon/index.test.tsx +29 -0
  180. package/src/ChatIcon/index.tsx +8 -0
  181. package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  182. package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  183. package/src/DownloadIcon/config.tsx +16 -0
  184. package/src/DownloadIcon/index.test.tsx +26 -0
  185. package/src/DownloadIcon/index.tsx +8 -0
  186. package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  187. package/src/ExclamationIcon/config.tsx +16 -0
  188. package/src/ExclamationIcon/index.test.tsx +26 -0
  189. package/src/ExclamationIcon/index.tsx +8 -0
  190. package/src/Icon/__snapshots__/index.test.tsx.snap +10 -10
  191. package/src/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  192. package/src/LockIcon/config.tsx +15 -0
  193. package/src/LockIcon/index.test.tsx +26 -0
  194. package/src/LockIcon/index.tsx +8 -0
  195. package/src/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  196. package/src/LoginIcon/config.tsx +16 -0
  197. package/src/LoginIcon/index.test.tsx +26 -0
  198. package/src/LoginIcon/index.tsx +8 -0
  199. package/src/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  200. package/src/MinusIcon/config.tsx +15 -0
  201. package/src/MinusIcon/index.test.tsx +26 -0
  202. package/src/MinusIcon/index.tsx +8 -0
  203. package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  204. package/src/PdfFileIcon/config.tsx +20 -0
  205. package/src/PdfFileIcon/index.test.tsx +26 -0
  206. package/src/PdfFileIcon/index.tsx +8 -0
  207. package/src/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  208. package/src/PlusIcon/config.tsx +15 -0
  209. package/src/PlusIcon/index.test.tsx +26 -0
  210. package/src/PlusIcon/index.tsx +8 -0
  211. package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  212. package/src/ReplyIcon/config.tsx +15 -0
  213. package/src/ReplyIcon/index.test.tsx +26 -0
  214. package/src/ReplyIcon/index.tsx +8 -0
  215. package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  216. package/src/RestoreIcon/config.tsx +17 -0
  217. package/src/RestoreIcon/index.test.tsx +26 -0
  218. package/src/RestoreIcon/index.tsx +8 -0
  219. package/src/icons.ts +34 -0
  220. package/src/index.ts +11 -0
  221. package/src/registry.js +24 -2
  222. package/cjs/lazy/index.js +0 -121
  223. package/lazy/index.js +0 -87
  224. package/lazy.d.ts +0 -15
  225. package/src/lazy.js +0 -16
@@ -0,0 +1,297 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the ExclamationIcon with no props 1`] = `
4
+ <ExclamationIcon>
5
+ <ForwardRef(Icon)
6
+ icon="exclamation"
7
+ >
8
+ <ForwardRef(SvgIcon)
9
+ className="ds-svg-icon--exclamation"
10
+ >
11
+ <ForwardRef(Base)
12
+ aria-hidden="true"
13
+ as="svg"
14
+ className="ds-svg-icon--exclamation ds-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ >
18
+ <svg
19
+ aria-hidden="true"
20
+ className="ds-svg-icon--exclamation ds-svg-icon"
21
+ focusable="false"
22
+ viewBox="0 0 24 24"
23
+ >
24
+ <exclamation>
25
+ <path
26
+ d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
27
+ />
28
+ <circle
29
+ cx="11.993"
30
+ cy="19.9"
31
+ r="2.1"
32
+ />
33
+ </exclamation>
34
+ </svg>
35
+ </ForwardRef(Base)>
36
+ </ForwardRef(SvgIcon)>
37
+ </ForwardRef(Icon)>
38
+ </ExclamationIcon>
39
+ `;
40
+
41
+ exports[`renders the ExclamationIcon with prop size=md 1`] = `
42
+ <ExclamationIcon
43
+ size="md"
44
+ >
45
+ <ForwardRef(Icon)
46
+ icon="exclamation"
47
+ size="md"
48
+ >
49
+ <ForwardRef(SvgIcon)
50
+ className="ds-svg-icon--exclamation"
51
+ size="md"
52
+ >
53
+ <ForwardRef(Base)
54
+ aria-hidden="true"
55
+ as="svg"
56
+ className="ds-svg-icon--exclamation ds-svg-icon--md ds-svg-icon"
57
+ focusable="false"
58
+ viewBox="0 0 24 24"
59
+ >
60
+ <svg
61
+ aria-hidden="true"
62
+ className="ds-svg-icon--exclamation ds-svg-icon--md ds-svg-icon"
63
+ focusable="false"
64
+ viewBox="0 0 24 24"
65
+ >
66
+ <exclamation>
67
+ <path
68
+ d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
69
+ />
70
+ <circle
71
+ cx="11.993"
72
+ cy="19.9"
73
+ r="2.1"
74
+ />
75
+ </exclamation>
76
+ </svg>
77
+ </ForwardRef(Base)>
78
+ </ForwardRef(SvgIcon)>
79
+ </ForwardRef(Icon)>
80
+ </ExclamationIcon>
81
+ `;
82
+
83
+ exports[`renders the ExclamationIcon with prop size=xl 1`] = `
84
+ <ExclamationIcon
85
+ size="xl"
86
+ >
87
+ <ForwardRef(Icon)
88
+ icon="exclamation"
89
+ size="xl"
90
+ >
91
+ <ForwardRef(SvgIcon)
92
+ className="ds-svg-icon--exclamation"
93
+ size="xl"
94
+ >
95
+ <ForwardRef(Base)
96
+ aria-hidden="true"
97
+ as="svg"
98
+ className="ds-svg-icon--exclamation ds-svg-icon--xl ds-svg-icon"
99
+ focusable="false"
100
+ viewBox="0 0 24 24"
101
+ >
102
+ <svg
103
+ aria-hidden="true"
104
+ className="ds-svg-icon--exclamation ds-svg-icon--xl ds-svg-icon"
105
+ focusable="false"
106
+ viewBox="0 0 24 24"
107
+ >
108
+ <exclamation>
109
+ <path
110
+ d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
111
+ />
112
+ <circle
113
+ cx="11.993"
114
+ cy="19.9"
115
+ r="2.1"
116
+ />
117
+ </exclamation>
118
+ </svg>
119
+ </ForwardRef(Base)>
120
+ </ForwardRef(SvgIcon)>
121
+ </ForwardRef(Icon)>
122
+ </ExclamationIcon>
123
+ `;
124
+
125
+ exports[`renders the ExclamationIcon with prop variant=error and size=sm 1`] = `
126
+ <ExclamationIcon
127
+ size="sm"
128
+ variant="error"
129
+ >
130
+ <ForwardRef(Icon)
131
+ icon="exclamation"
132
+ size="sm"
133
+ variant="error"
134
+ >
135
+ <ForwardRef(SvgIcon)
136
+ className="ds-svg-icon--exclamation"
137
+ size="sm"
138
+ variant="error"
139
+ >
140
+ <ForwardRef(Base)
141
+ aria-hidden="true"
142
+ as="svg"
143
+ className="ds-svg-icon--exclamation ds-svg-icon--error ds-svg-icon--sm ds-svg-icon"
144
+ focusable="false"
145
+ viewBox="0 0 24 24"
146
+ >
147
+ <svg
148
+ aria-hidden="true"
149
+ className="ds-svg-icon--exclamation ds-svg-icon--error ds-svg-icon--sm ds-svg-icon"
150
+ focusable="false"
151
+ viewBox="0 0 24 24"
152
+ >
153
+ <exclamation>
154
+ <path
155
+ d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
156
+ />
157
+ <circle
158
+ cx="11.993"
159
+ cy="19.9"
160
+ r="2.1"
161
+ />
162
+ </exclamation>
163
+ </svg>
164
+ </ForwardRef(Base)>
165
+ </ForwardRef(SvgIcon)>
166
+ </ForwardRef(Icon)>
167
+ </ExclamationIcon>
168
+ `;
169
+
170
+ exports[`renders the ExclamationIcon with prop variant=info and size= xl 1`] = `
171
+ <ExclamationIcon
172
+ size="xl"
173
+ variant="info"
174
+ >
175
+ <ForwardRef(Icon)
176
+ icon="exclamation"
177
+ size="xl"
178
+ variant="info"
179
+ >
180
+ <ForwardRef(SvgIcon)
181
+ className="ds-svg-icon--exclamation"
182
+ size="xl"
183
+ variant="info"
184
+ >
185
+ <ForwardRef(Base)
186
+ aria-hidden="true"
187
+ as="svg"
188
+ className="ds-svg-icon--exclamation ds-svg-icon--info ds-svg-icon--xl ds-svg-icon"
189
+ focusable="false"
190
+ viewBox="0 0 24 24"
191
+ >
192
+ <svg
193
+ aria-hidden="true"
194
+ className="ds-svg-icon--exclamation ds-svg-icon--info ds-svg-icon--xl ds-svg-icon"
195
+ focusable="false"
196
+ viewBox="0 0 24 24"
197
+ >
198
+ <exclamation>
199
+ <path
200
+ d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
201
+ />
202
+ <circle
203
+ cx="11.993"
204
+ cy="19.9"
205
+ r="2.1"
206
+ />
207
+ </exclamation>
208
+ </svg>
209
+ </ForwardRef(Base)>
210
+ </ForwardRef(SvgIcon)>
211
+ </ForwardRef(Icon)>
212
+ </ExclamationIcon>
213
+ `;
214
+
215
+ exports[`renders the ExclamationIcon with prop variant=light 1`] = `
216
+ <ExclamationIcon
217
+ variant="light"
218
+ >
219
+ <ForwardRef(Icon)
220
+ icon="exclamation"
221
+ variant="light"
222
+ >
223
+ <ForwardRef(SvgIcon)
224
+ className="ds-svg-icon--exclamation"
225
+ variant="light"
226
+ >
227
+ <ForwardRef(Base)
228
+ aria-hidden="true"
229
+ as="svg"
230
+ className="ds-svg-icon--exclamation ds-svg-icon--light ds-svg-icon"
231
+ focusable="false"
232
+ viewBox="0 0 24 24"
233
+ >
234
+ <svg
235
+ aria-hidden="true"
236
+ className="ds-svg-icon--exclamation ds-svg-icon--light ds-svg-icon"
237
+ focusable="false"
238
+ viewBox="0 0 24 24"
239
+ >
240
+ <exclamation>
241
+ <path
242
+ d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
243
+ />
244
+ <circle
245
+ cx="11.993"
246
+ cy="19.9"
247
+ r="2.1"
248
+ />
249
+ </exclamation>
250
+ </svg>
251
+ </ForwardRef(Base)>
252
+ </ForwardRef(SvgIcon)>
253
+ </ForwardRef(Icon)>
254
+ </ExclamationIcon>
255
+ `;
256
+
257
+ exports[`renders the ExclamationIcon with prop variant=warning 1`] = `
258
+ <ExclamationIcon
259
+ variant="warning"
260
+ >
261
+ <ForwardRef(Icon)
262
+ icon="exclamation"
263
+ variant="warning"
264
+ >
265
+ <ForwardRef(SvgIcon)
266
+ className="ds-svg-icon--exclamation"
267
+ variant="warning"
268
+ >
269
+ <ForwardRef(Base)
270
+ aria-hidden="true"
271
+ as="svg"
272
+ className="ds-svg-icon--exclamation ds-svg-icon--warning ds-svg-icon"
273
+ focusable="false"
274
+ viewBox="0 0 24 24"
275
+ >
276
+ <svg
277
+ aria-hidden="true"
278
+ className="ds-svg-icon--exclamation ds-svg-icon--warning ds-svg-icon"
279
+ focusable="false"
280
+ viewBox="0 0 24 24"
281
+ >
282
+ <exclamation>
283
+ <path
284
+ d="M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
285
+ />
286
+ <circle
287
+ cx="11.993"
288
+ cy="19.9"
289
+ r="2.1"
290
+ />
291
+ </exclamation>
292
+ </svg>
293
+ </ForwardRef(Base)>
294
+ </ForwardRef(SvgIcon)>
295
+ </ForwardRef(Icon)>
296
+ </ExclamationIcon>
297
+ `;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ exports.exclamation = exclamation;
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _ref = /*#__PURE__*/_react["default"].createElement("path", {
11
+ d: "M13.716,16.486h-3.446l-.488-14.486h4.422l-.488,14.486Z"
12
+ });
13
+ var _ref2 = /*#__PURE__*/_react["default"].createElement("circle", {
14
+ cx: "11.993",
15
+ cy: "19.9",
16
+ r: "2.1"
17
+ });
18
+ function exclamation() {
19
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref, _ref2);
20
+ }
21
+ exclamation.props = [];
22
+ var _default = exports["default"] = exclamation;
@@ -0,0 +1,16 @@
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.ExclamationIcon = 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 ExclamationIcon = exports.ExclamationIcon = function ExclamationIcon(props) {
12
+ return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
13
+ icon: "exclamation"
14
+ }));
15
+ };
16
+ var _default = exports["default"] = ExclamationIcon;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _react = _interopRequireDefault(require("react"));
5
+ var _enzyme = require("enzyme");
6
+ var _ExclamationIcon = _interopRequireDefault(require("@digigov/react-icons/ExclamationIcon"));
7
+ var _ref = /*#__PURE__*/_react["default"].createElement(_ExclamationIcon["default"], null);
8
+ it('renders the ExclamationIcon with no props', function () {
9
+ expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
10
+ });
11
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_ExclamationIcon["default"], {
12
+ size: "md"
13
+ });
14
+ it('renders the ExclamationIcon with prop size=md', function () {
15
+ expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
16
+ });
17
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_ExclamationIcon["default"], {
18
+ size: "xl"
19
+ });
20
+ it('renders the ExclamationIcon with prop size=xl', function () {
21
+ expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
22
+ });
23
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_ExclamationIcon["default"], {
24
+ variant: "light"
25
+ });
26
+ it('renders the ExclamationIcon with prop variant=light', function () {
27
+ expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
28
+ });
29
+ var _ref5 = /*#__PURE__*/_react["default"].createElement(_ExclamationIcon["default"], {
30
+ variant: "warning"
31
+ });
32
+ it('renders the ExclamationIcon with prop variant=warning', function () {
33
+ expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
34
+ });
35
+ var _ref6 = /*#__PURE__*/_react["default"].createElement(_ExclamationIcon["default"], {
36
+ variant: "error",
37
+ size: "sm"
38
+ });
39
+ it('renders the ExclamationIcon with prop variant=error and size=sm', function () {
40
+ expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
41
+ });
42
+ var _ref7 = /*#__PURE__*/_react["default"].createElement(_ExclamationIcon["default"], {
43
+ variant: "info",
44
+ size: "xl"
45
+ });
46
+ it('renders the ExclamationIcon with prop variant=info and size= xl', function () {
47
+ expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
48
+ });
@@ -204,26 +204,26 @@ exports[`renders the Icon props icon= "moreVert" 1`] = `
204
204
  exports[`renders the Icon with no props 1`] = `
205
205
  <ForwardRef(Icon)>
206
206
  <ForwardRef(SvgIcon)
207
- className="ds-svg-icon--arrow"
207
+ className="ds-svg-icon--chevron"
208
208
  >
209
209
  <ForwardRef(Base)
210
210
  aria-hidden="true"
211
211
  as="svg"
212
- className="ds-svg-icon--arrow ds-svg-icon"
212
+ className="ds-svg-icon--chevron ds-svg-icon"
213
213
  focusable="false"
214
214
  viewBox="0 0 24 24"
215
215
  >
216
216
  <svg
217
217
  aria-hidden="true"
218
- className="ds-svg-icon--arrow ds-svg-icon"
218
+ className="ds-svg-icon--chevron ds-svg-icon"
219
219
  focusable="false"
220
220
  viewBox="0 0 24 24"
221
221
  >
222
- <arrow>
222
+ <chevron>
223
223
  <path
224
224
  d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
225
225
  />
226
- </arrow>
226
+ </chevron>
227
227
  </svg>
228
228
  </ForwardRef(Base)>
229
229
  </ForwardRef(SvgIcon)>
@@ -235,28 +235,28 @@ exports[`renders the Icon with prop icon=arrow and direction=up 1`] = `
235
235
  direction="up"
236
236
  >
237
237
  <ForwardRef(SvgIcon)
238
- className="ds-svg-icon--arrow"
238
+ className="ds-svg-icon--chevron"
239
239
  >
240
240
  <ForwardRef(Base)
241
241
  aria-hidden="true"
242
242
  as="svg"
243
- className="ds-svg-icon--arrow ds-svg-icon"
243
+ className="ds-svg-icon--chevron ds-svg-icon"
244
244
  focusable="false"
245
245
  viewBox="0 0 24 24"
246
246
  >
247
247
  <svg
248
248
  aria-hidden="true"
249
- className="ds-svg-icon--arrow ds-svg-icon"
249
+ className="ds-svg-icon--chevron ds-svg-icon"
250
250
  focusable="false"
251
251
  viewBox="0 0 24 24"
252
252
  >
253
- <arrow
253
+ <chevron
254
254
  direction="up"
255
255
  >
256
256
  <path
257
257
  d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
258
258
  />
259
- </arrow>
259
+ </chevron>
260
260
  </svg>
261
261
  </ForwardRef(Base)>
262
262
  </ForwardRef(SvgIcon)>
package/cjs/Icon/index.js CHANGED
@@ -11,7 +11,7 @@ var _extends3 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
  var _clsx = _interopRequireDefault(require("clsx"));
14
- var _SvgIcon = _interopRequireDefault(require("@digigov/react-core/SvgIcon"));
14
+ var _SvgIcon = _interopRequireDefault(require("@digigov/react-core/cjs/SvgIcon"));
15
15
  var icons = _interopRequireWildcard(require("@digigov/react-icons/icons"));
16
16
  var _excluded = ["icon", "className"];
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }