@digigov/react-icons 1.2.0-a7ffb5dc → 2.0.0-0edebf87

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 (303) hide show
  1. package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
  2. package/AccessibilityIcon/index.test/index.js +12 -12
  3. package/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  4. package/Base/index.d.ts +95 -0
  5. package/Base/index.js +69 -0
  6. package/Base/package.json +6 -0
  7. package/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
  8. package/BurgerIcon/index.test/index.js +8 -8
  9. package/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  10. package/CancelIcon/config/index.js +9 -0
  11. package/CancelIcon/config/package.json +6 -0
  12. package/CancelIcon/config.d.ts +8 -0
  13. package/CancelIcon/index.d.ts +4 -0
  14. package/CancelIcon/index.js +9 -0
  15. package/CancelIcon/index.test/index.js +45 -0
  16. package/CancelIcon/index.test/package.json +6 -0
  17. package/CancelIcon/index.test.d.ts +1 -0
  18. package/CancelIcon/package.json +6 -0
  19. package/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  20. package/ChatIcon/config/index.js +17 -0
  21. package/ChatIcon/config/package.json +6 -0
  22. package/ChatIcon/config.d.ts +11 -0
  23. package/ChatIcon/index.d.ts +4 -0
  24. package/ChatIcon/index.js +9 -0
  25. package/ChatIcon/index.test/index.js +51 -0
  26. package/ChatIcon/index.test/package.json +6 -0
  27. package/ChatIcon/index.test.d.ts +1 -0
  28. package/ChatIcon/package.json +6 -0
  29. package/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
  30. package/CheckIcon/index.test/index.js +10 -10
  31. package/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  32. package/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  33. package/DownloadIcon/config/index.js +14 -0
  34. package/DownloadIcon/config/package.json +6 -0
  35. package/DownloadIcon/config.d.ts +8 -0
  36. package/DownloadIcon/index.d.ts +4 -0
  37. package/DownloadIcon/index.js +9 -0
  38. package/DownloadIcon/index.test/index.js +45 -0
  39. package/DownloadIcon/index.test/package.json +6 -0
  40. package/DownloadIcon/index.test.d.ts +1 -0
  41. package/DownloadIcon/package.json +6 -0
  42. package/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  43. package/ExclamationIcon/config/index.js +14 -0
  44. package/ExclamationIcon/config/package.json +6 -0
  45. package/ExclamationIcon/config.d.ts +8 -0
  46. package/ExclamationIcon/index.d.ts +4 -0
  47. package/ExclamationIcon/index.js +9 -0
  48. package/ExclamationIcon/index.test/index.js +45 -0
  49. package/ExclamationIcon/index.test/package.json +6 -0
  50. package/ExclamationIcon/index.test.d.ts +1 -0
  51. package/ExclamationIcon/package.json +6 -0
  52. package/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
  53. package/GlobeIcon/config/index.js +2 -2
  54. package/GlobeIcon/index.test/index.js +6 -6
  55. package/Icon/__snapshots__/index.test.tsx.snap +11 -12
  56. package/Icon/index.d.ts +1 -1
  57. package/Icon/index.js +1 -1
  58. package/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  59. package/LockIcon/config/index.js +9 -0
  60. package/LockIcon/config/package.json +6 -0
  61. package/LockIcon/config.d.ts +8 -0
  62. package/LockIcon/index.d.ts +4 -0
  63. package/LockIcon/index.js +9 -0
  64. package/LockIcon/index.test/index.js +45 -0
  65. package/LockIcon/index.test/package.json +6 -0
  66. package/LockIcon/index.test.d.ts +1 -0
  67. package/LockIcon/package.json +6 -0
  68. package/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  69. package/LoginIcon/config/index.js +12 -0
  70. package/LoginIcon/config/package.json +6 -0
  71. package/LoginIcon/config.d.ts +8 -0
  72. package/LoginIcon/index.d.ts +4 -0
  73. package/LoginIcon/index.js +9 -0
  74. package/LoginIcon/index.test/index.js +45 -0
  75. package/LoginIcon/index.test/package.json +6 -0
  76. package/LoginIcon/index.test.d.ts +1 -0
  77. package/LoginIcon/package.json +6 -0
  78. package/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  79. package/MinusIcon/config/index.js +12 -0
  80. package/MinusIcon/config/package.json +6 -0
  81. package/MinusIcon/config.d.ts +8 -0
  82. package/MinusIcon/index.d.ts +4 -0
  83. package/MinusIcon/index.js +9 -0
  84. package/MinusIcon/index.test/index.js +45 -0
  85. package/MinusIcon/index.test/package.json +6 -0
  86. package/MinusIcon/index.test.d.ts +1 -0
  87. package/MinusIcon/package.json +6 -0
  88. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
  89. package/MoreVertIcon/index.test/index.js +12 -12
  90. package/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  91. package/PdfFileIcon/config/index.js +15 -0
  92. package/PdfFileIcon/config/package.json +6 -0
  93. package/PdfFileIcon/config.d.ts +8 -0
  94. package/PdfFileIcon/index.d.ts +4 -0
  95. package/PdfFileIcon/index.js +9 -0
  96. package/PdfFileIcon/index.test/index.js +45 -0
  97. package/PdfFileIcon/index.test/package.json +6 -0
  98. package/PdfFileIcon/index.test.d.ts +1 -0
  99. package/PdfFileIcon/package.json +6 -0
  100. package/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  101. package/PlusIcon/config/index.js +9 -0
  102. package/PlusIcon/config/package.json +6 -0
  103. package/PlusIcon/config.d.ts +8 -0
  104. package/PlusIcon/index.d.ts +4 -0
  105. package/PlusIcon/index.js +9 -0
  106. package/PlusIcon/index.test/index.js +45 -0
  107. package/PlusIcon/index.test/package.json +6 -0
  108. package/PlusIcon/index.test.d.ts +1 -0
  109. package/PlusIcon/package.json +6 -0
  110. package/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  111. package/PrintIcon/config/index.js +15 -0
  112. package/PrintIcon/config/package.json +6 -0
  113. package/PrintIcon/config.d.ts +8 -0
  114. package/PrintIcon/index.d.ts +4 -0
  115. package/PrintIcon/index.js +9 -0
  116. package/PrintIcon/index.test/index.js +45 -0
  117. package/PrintIcon/index.test/package.json +6 -0
  118. package/PrintIcon/index.test.d.ts +1 -0
  119. package/PrintIcon/package.json +6 -0
  120. package/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  121. package/ReplyIcon/config/index.js +9 -0
  122. package/ReplyIcon/config/package.json +6 -0
  123. package/ReplyIcon/config.d.ts +8 -0
  124. package/ReplyIcon/index.d.ts +4 -0
  125. package/ReplyIcon/index.js +9 -0
  126. package/ReplyIcon/index.test/index.js +45 -0
  127. package/ReplyIcon/index.test/package.json +6 -0
  128. package/ReplyIcon/index.test.d.ts +1 -0
  129. package/ReplyIcon/package.json +6 -0
  130. package/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  131. package/RestoreIcon/config/index.js +17 -0
  132. package/RestoreIcon/config/package.json +6 -0
  133. package/RestoreIcon/config.d.ts +8 -0
  134. package/RestoreIcon/index.d.ts +4 -0
  135. package/RestoreIcon/index.js +9 -0
  136. package/RestoreIcon/index.test/index.js +45 -0
  137. package/RestoreIcon/index.test/package.json +6 -0
  138. package/RestoreIcon/index.test.d.ts +1 -0
  139. package/RestoreIcon/package.json +6 -0
  140. package/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
  141. package/SvgIcon/index.d.ts +37 -0
  142. package/SvgIcon/index.js +26 -0
  143. package/SvgIcon/index.test/index.js +105 -0
  144. package/SvgIcon/index.test/package.json +6 -0
  145. package/SvgIcon/index.test.d.ts +1 -0
  146. package/SvgIcon/package.json +6 -0
  147. package/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
  148. package/UncheckIcon/index.test/index.js +12 -12
  149. package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
  150. package/cjs/AccessibilityIcon/index.test/index.js +12 -12
  151. package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  152. package/cjs/Base/index.js +75 -0
  153. package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
  154. package/cjs/BurgerIcon/index.test/index.js +8 -8
  155. package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  156. package/cjs/CancelIcon/config/index.js +17 -0
  157. package/cjs/CancelIcon/index.js +16 -0
  158. package/cjs/CancelIcon/index.test/index.js +48 -0
  159. package/cjs/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  160. package/cjs/ChatIcon/config/index.js +24 -0
  161. package/cjs/ChatIcon/index.js +16 -0
  162. package/cjs/ChatIcon/index.test/index.js +54 -0
  163. package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
  164. package/cjs/CheckIcon/index.test/index.js +10 -10
  165. package/cjs/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  166. package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  167. package/cjs/DownloadIcon/config/index.js +22 -0
  168. package/cjs/DownloadIcon/index.js +16 -0
  169. package/cjs/DownloadIcon/index.test/index.js +48 -0
  170. package/cjs/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  171. package/cjs/ExclamationIcon/config/index.js +22 -0
  172. package/cjs/ExclamationIcon/index.js +16 -0
  173. package/cjs/ExclamationIcon/index.test/index.js +48 -0
  174. package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
  175. package/cjs/GlobeIcon/config/index.js +2 -2
  176. package/cjs/GlobeIcon/index.test/index.js +6 -6
  177. package/cjs/Icon/__snapshots__/index.test.tsx.snap +11 -12
  178. package/cjs/Icon/index.js +1 -1
  179. package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  180. package/cjs/LockIcon/config/index.js +17 -0
  181. package/cjs/LockIcon/index.js +16 -0
  182. package/cjs/LockIcon/index.test/index.js +48 -0
  183. package/cjs/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  184. package/cjs/LoginIcon/config/index.js +20 -0
  185. package/cjs/LoginIcon/index.js +16 -0
  186. package/cjs/LoginIcon/index.test/index.js +48 -0
  187. package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  188. package/cjs/MinusIcon/config/index.js +20 -0
  189. package/cjs/MinusIcon/index.js +16 -0
  190. package/cjs/MinusIcon/index.test/index.js +48 -0
  191. package/cjs/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
  192. package/cjs/MoreVertIcon/index.test/index.js +12 -12
  193. package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  194. package/cjs/PdfFileIcon/config/index.js +23 -0
  195. package/cjs/PdfFileIcon/index.js +16 -0
  196. package/cjs/PdfFileIcon/index.test/index.js +48 -0
  197. package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  198. package/cjs/PlusIcon/config/index.js +17 -0
  199. package/cjs/PlusIcon/index.js +16 -0
  200. package/cjs/PlusIcon/index.test/index.js +48 -0
  201. package/cjs/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  202. package/cjs/PrintIcon/config/index.js +23 -0
  203. package/cjs/PrintIcon/index.js +16 -0
  204. package/cjs/PrintIcon/index.test/index.js +48 -0
  205. package/cjs/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  206. package/cjs/ReplyIcon/config/index.js +17 -0
  207. package/cjs/ReplyIcon/index.js +16 -0
  208. package/cjs/ReplyIcon/index.test/index.js +48 -0
  209. package/cjs/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  210. package/cjs/RestoreIcon/config/index.js +25 -0
  211. package/cjs/RestoreIcon/index.js +16 -0
  212. package/cjs/RestoreIcon/index.test/index.js +48 -0
  213. package/cjs/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
  214. package/cjs/SvgIcon/index.js +33 -0
  215. package/cjs/SvgIcon/index.test/index.js +108 -0
  216. package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
  217. package/cjs/UncheckIcon/index.test/index.js +12 -12
  218. package/cjs/icons/index.js +132 -0
  219. package/cjs/index.js +132 -0
  220. package/cjs/lazy/index.js +126 -0
  221. package/cjs/registry/index.js +28 -0
  222. package/icons/index.js +12 -0
  223. package/icons.d.ts +36 -0
  224. package/index.d.ts +12 -0
  225. package/index.js +14 -2
  226. package/lazy/index.js +98 -0
  227. package/lazy.d.ts +14 -0
  228. package/package.json +4 -3
  229. package/registry/index.js +28 -0
  230. package/registry.d.ts +14 -0
  231. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
  232. package/src/AccessibilityIcon/index.test.tsx +12 -12
  233. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  234. package/src/Base/index.tsx +257 -0
  235. package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
  236. package/src/BurgerIcon/index.test.tsx +8 -8
  237. package/src/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  238. package/src/CancelIcon/config.tsx +15 -0
  239. package/src/CancelIcon/index.test.tsx +26 -0
  240. package/src/CancelIcon/index.tsx +8 -0
  241. package/src/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  242. package/src/ChatIcon/config.tsx +28 -0
  243. package/src/ChatIcon/index.test.tsx +29 -0
  244. package/src/ChatIcon/index.tsx +8 -0
  245. package/src/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
  246. package/src/CheckIcon/index.test.tsx +10 -10
  247. package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  248. package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  249. package/src/DownloadIcon/config.tsx +16 -0
  250. package/src/DownloadIcon/index.test.tsx +26 -0
  251. package/src/DownloadIcon/index.tsx +8 -0
  252. package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  253. package/src/ExclamationIcon/config.tsx +16 -0
  254. package/src/ExclamationIcon/index.test.tsx +26 -0
  255. package/src/ExclamationIcon/index.tsx +8 -0
  256. package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
  257. package/src/GlobeIcon/config.tsx +1 -12
  258. package/src/GlobeIcon/index.test.tsx +6 -6
  259. package/src/Icon/__snapshots__/index.test.tsx.snap +11 -12
  260. package/src/Icon/index.tsx +1 -1
  261. package/src/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  262. package/src/LockIcon/config.tsx +15 -0
  263. package/src/LockIcon/index.test.tsx +26 -0
  264. package/src/LockIcon/index.tsx +8 -0
  265. package/src/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  266. package/src/LoginIcon/config.tsx +16 -0
  267. package/src/LoginIcon/index.test.tsx +26 -0
  268. package/src/LoginIcon/index.tsx +8 -0
  269. package/src/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  270. package/src/MinusIcon/config.tsx +15 -0
  271. package/src/MinusIcon/index.test.tsx +26 -0
  272. package/src/MinusIcon/index.tsx +8 -0
  273. package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
  274. package/src/MoreVertIcon/index.test.tsx +12 -12
  275. package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  276. package/src/PdfFileIcon/config.tsx +20 -0
  277. package/src/PdfFileIcon/index.test.tsx +26 -0
  278. package/src/PdfFileIcon/index.tsx +8 -0
  279. package/src/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  280. package/src/PlusIcon/config.tsx +15 -0
  281. package/src/PlusIcon/index.test.tsx +26 -0
  282. package/src/PlusIcon/index.tsx +8 -0
  283. package/src/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  284. package/src/PrintIcon/config.tsx +16 -0
  285. package/src/PrintIcon/index.test.tsx +26 -0
  286. package/src/PrintIcon/index.tsx +8 -0
  287. package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  288. package/src/ReplyIcon/config.tsx +15 -0
  289. package/src/ReplyIcon/index.test.tsx +26 -0
  290. package/src/ReplyIcon/index.tsx +8 -0
  291. package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  292. package/src/RestoreIcon/config.tsx +17 -0
  293. package/src/RestoreIcon/index.test.tsx +26 -0
  294. package/src/RestoreIcon/index.tsx +8 -0
  295. package/src/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
  296. package/src/SvgIcon/index.test.tsx +68 -0
  297. package/src/SvgIcon/index.tsx +72 -0
  298. package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
  299. package/src/UncheckIcon/index.test.tsx +12 -12
  300. package/src/icons.ts +37 -0
  301. package/src/index.ts +12 -0
  302. package/src/lazy.js +14 -0
  303. package/src/registry.js +28 -0
@@ -0,0 +1,390 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the SvgIcon with no props 1`] = `
4
+ <ForwardRef(SvgIcon)>
5
+ <ForwardRef(Base)
6
+ aria-hidden="true"
7
+ as="svg"
8
+ className="ds-svg-icon"
9
+ focusable="false"
10
+ viewBox="0 0 24 24"
11
+ >
12
+ <svg
13
+ aria-hidden="true"
14
+ className="ds-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ />
18
+ </ForwardRef(Base)>
19
+ </ForwardRef(SvgIcon)>
20
+ `;
21
+
22
+ exports[`renders the SvgIcon with prop color=base-content 1`] = `
23
+ <ForwardRef(SvgIcon)
24
+ color="base-content"
25
+ >
26
+ <ForwardRef(Base)
27
+ aria-hidden="true"
28
+ as="svg"
29
+ className="ds-svg-icon--base-content ds-svg-icon"
30
+ focusable="false"
31
+ viewBox="0 0 24 24"
32
+ >
33
+ <svg
34
+ aria-hidden="true"
35
+ className="ds-svg-icon--base-content ds-svg-icon"
36
+ focusable="false"
37
+ viewBox="0 0 24 24"
38
+ >
39
+ hello
40
+ </svg>
41
+ </ForwardRef(Base)>
42
+ </ForwardRef(SvgIcon)>
43
+ `;
44
+
45
+ exports[`renders the SvgIcon with prop color=dark 1`] = `
46
+ <ForwardRef(SvgIcon)
47
+ color="dark"
48
+ >
49
+ <ForwardRef(Base)
50
+ aria-hidden="true"
51
+ as="svg"
52
+ className="ds-svg-icon--dark ds-svg-icon"
53
+ focusable="false"
54
+ viewBox="0 0 24 24"
55
+ >
56
+ <svg
57
+ aria-hidden="true"
58
+ className="ds-svg-icon--dark ds-svg-icon"
59
+ focusable="false"
60
+ viewBox="0 0 24 24"
61
+ >
62
+ hello
63
+ </svg>
64
+ </ForwardRef(Base)>
65
+ </ForwardRef(SvgIcon)>
66
+ `;
67
+
68
+ exports[`renders the SvgIcon with prop color=error 1`] = `
69
+ <ForwardRef(SvgIcon)
70
+ color="error"
71
+ >
72
+ <ForwardRef(Base)
73
+ aria-hidden="true"
74
+ as="svg"
75
+ className="ds-svg-icon--error ds-svg-icon"
76
+ focusable="false"
77
+ viewBox="0 0 24 24"
78
+ >
79
+ <svg
80
+ aria-hidden="true"
81
+ className="ds-svg-icon--error ds-svg-icon"
82
+ focusable="false"
83
+ viewBox="0 0 24 24"
84
+ >
85
+ hello
86
+ </svg>
87
+ </ForwardRef(Base)>
88
+ </ForwardRef(SvgIcon)>
89
+ `;
90
+
91
+ exports[`renders the SvgIcon with prop color=error and size= xl 1`] = `
92
+ <ForwardRef(SvgIcon)
93
+ color="warning"
94
+ size="xl"
95
+ >
96
+ <ForwardRef(Base)
97
+ aria-hidden="true"
98
+ as="svg"
99
+ className="ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
100
+ focusable="false"
101
+ viewBox="0 0 24 24"
102
+ >
103
+ <svg
104
+ aria-hidden="true"
105
+ className="ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
106
+ focusable="false"
107
+ viewBox="0 0 24 24"
108
+ >
109
+ hello
110
+ </svg>
111
+ </ForwardRef(Base)>
112
+ </ForwardRef(SvgIcon)>
113
+ `;
114
+
115
+ exports[`renders the SvgIcon with prop color=focus 1`] = `
116
+ <ForwardRef(SvgIcon)
117
+ color="focus"
118
+ >
119
+ <ForwardRef(Base)
120
+ aria-hidden="true"
121
+ as="svg"
122
+ className="ds-svg-icon--focus ds-svg-icon"
123
+ focusable="false"
124
+ viewBox="0 0 24 24"
125
+ >
126
+ <svg
127
+ aria-hidden="true"
128
+ className="ds-svg-icon--focus ds-svg-icon"
129
+ focusable="false"
130
+ viewBox="0 0 24 24"
131
+ >
132
+ hello
133
+ </svg>
134
+ </ForwardRef(Base)>
135
+ </ForwardRef(SvgIcon)>
136
+ `;
137
+
138
+ exports[`renders the SvgIcon with prop color=gray 1`] = `
139
+ <ForwardRef(SvgIcon)
140
+ color="gray"
141
+ >
142
+ <ForwardRef(Base)
143
+ aria-hidden="true"
144
+ as="svg"
145
+ className="ds-svg-icon--gray ds-svg-icon"
146
+ focusable="false"
147
+ viewBox="0 0 24 24"
148
+ >
149
+ <svg
150
+ aria-hidden="true"
151
+ className="ds-svg-icon--gray ds-svg-icon"
152
+ focusable="false"
153
+ viewBox="0 0 24 24"
154
+ >
155
+ hello
156
+ </svg>
157
+ </ForwardRef(Base)>
158
+ </ForwardRef(SvgIcon)>
159
+ `;
160
+
161
+ exports[`renders the SvgIcon with prop color=primary 1`] = `
162
+ <ForwardRef(SvgIcon)
163
+ color="primary"
164
+ >
165
+ <ForwardRef(Base)
166
+ aria-hidden="true"
167
+ as="svg"
168
+ className="ds-svg-icon--primary ds-svg-icon"
169
+ focusable="false"
170
+ viewBox="0 0 24 24"
171
+ >
172
+ <svg
173
+ aria-hidden="true"
174
+ className="ds-svg-icon--primary ds-svg-icon"
175
+ focusable="false"
176
+ viewBox="0 0 24 24"
177
+ >
178
+ hello
179
+ </svg>
180
+ </ForwardRef(Base)>
181
+ </ForwardRef(SvgIcon)>
182
+ `;
183
+
184
+ exports[`renders the SvgIcon with prop color=success 1`] = `
185
+ <ForwardRef(SvgIcon)
186
+ color="success"
187
+ >
188
+ <ForwardRef(Base)
189
+ aria-hidden="true"
190
+ as="svg"
191
+ className="ds-svg-icon--success ds-svg-icon"
192
+ focusable="false"
193
+ viewBox="0 0 24 24"
194
+ >
195
+ <svg
196
+ aria-hidden="true"
197
+ className="ds-svg-icon--success ds-svg-icon"
198
+ focusable="false"
199
+ viewBox="0 0 24 24"
200
+ >
201
+ hello
202
+ </svg>
203
+ </ForwardRef(Base)>
204
+ </ForwardRef(SvgIcon)>
205
+ `;
206
+
207
+ exports[`renders the SvgIcon with prop color=warning 1`] = `
208
+ <ForwardRef(SvgIcon)
209
+ color="warning"
210
+ >
211
+ <ForwardRef(Base)
212
+ aria-hidden="true"
213
+ as="svg"
214
+ className="ds-svg-icon--warning ds-svg-icon"
215
+ focusable="false"
216
+ viewBox="0 0 24 24"
217
+ >
218
+ <svg
219
+ aria-hidden="true"
220
+ className="ds-svg-icon--warning ds-svg-icon"
221
+ focusable="false"
222
+ viewBox="0 0 24 24"
223
+ >
224
+ hello
225
+ </svg>
226
+ </ForwardRef(Base)>
227
+ </ForwardRef(SvgIcon)>
228
+ `;
229
+
230
+ exports[`renders the SvgIcon with prop color=warning and size=sm 1`] = `
231
+ <ForwardRef(SvgIcon)
232
+ color="warning"
233
+ size="sm"
234
+ >
235
+ <ForwardRef(Base)
236
+ aria-hidden="true"
237
+ as="svg"
238
+ className="ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
239
+ focusable="false"
240
+ viewBox="0 0 24 24"
241
+ >
242
+ <svg
243
+ aria-hidden="true"
244
+ className="ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
245
+ focusable="false"
246
+ viewBox="0 0 24 24"
247
+ >
248
+ hello
249
+ </svg>
250
+ </ForwardRef(Base)>
251
+ </ForwardRef(SvgIcon)>
252
+ `;
253
+
254
+ exports[`renders the SvgIcon with prop color=white 1`] = `
255
+ <ForwardRef(SvgIcon)
256
+ color="white"
257
+ >
258
+ <ForwardRef(Base)
259
+ aria-hidden="true"
260
+ as="svg"
261
+ className="ds-svg-icon--white ds-svg-icon"
262
+ focusable="false"
263
+ viewBox="0 0 24 24"
264
+ >
265
+ <svg
266
+ aria-hidden="true"
267
+ className="ds-svg-icon--white ds-svg-icon"
268
+ focusable="false"
269
+ viewBox="0 0 24 24"
270
+ >
271
+ hello
272
+ </svg>
273
+ </ForwardRef(Base)>
274
+ </ForwardRef(SvgIcon)>
275
+ `;
276
+
277
+ exports[`renders the SvgIcon with prop size=lg 1`] = `
278
+ <ForwardRef(SvgIcon)
279
+ size="lg"
280
+ >
281
+ <ForwardRef(Base)
282
+ aria-hidden="true"
283
+ as="svg"
284
+ className="ds-svg-icon--lg ds-svg-icon"
285
+ focusable="false"
286
+ viewBox="0 0 24 24"
287
+ >
288
+ <svg
289
+ aria-hidden="true"
290
+ className="ds-svg-icon--lg ds-svg-icon"
291
+ focusable="false"
292
+ viewBox="0 0 24 24"
293
+ >
294
+ hello
295
+ </svg>
296
+ </ForwardRef(Base)>
297
+ </ForwardRef(SvgIcon)>
298
+ `;
299
+
300
+ exports[`renders the SvgIcon with prop size=md 1`] = `
301
+ <ForwardRef(SvgIcon)
302
+ size="md"
303
+ >
304
+ <ForwardRef(Base)
305
+ aria-hidden="true"
306
+ as="svg"
307
+ className="ds-svg-icon--md ds-svg-icon"
308
+ focusable="false"
309
+ viewBox="0 0 24 24"
310
+ >
311
+ <svg
312
+ aria-hidden="true"
313
+ className="ds-svg-icon--md ds-svg-icon"
314
+ focusable="false"
315
+ viewBox="0 0 24 24"
316
+ >
317
+ hello
318
+ </svg>
319
+ </ForwardRef(Base)>
320
+ </ForwardRef(SvgIcon)>
321
+ `;
322
+
323
+ exports[`renders the SvgIcon with prop size=sm 1`] = `
324
+ <ForwardRef(SvgIcon)
325
+ size="sm"
326
+ >
327
+ <ForwardRef(Base)
328
+ aria-hidden="true"
329
+ as="svg"
330
+ className="ds-svg-icon--sm ds-svg-icon"
331
+ focusable="false"
332
+ viewBox="0 0 24 24"
333
+ >
334
+ <svg
335
+ aria-hidden="true"
336
+ className="ds-svg-icon--sm ds-svg-icon"
337
+ focusable="false"
338
+ viewBox="0 0 24 24"
339
+ >
340
+ hello
341
+ </svg>
342
+ </ForwardRef(Base)>
343
+ </ForwardRef(SvgIcon)>
344
+ `;
345
+
346
+ exports[`renders the SvgIcon with prop size=xl 1`] = `
347
+ <ForwardRef(SvgIcon)
348
+ size="xl"
349
+ >
350
+ <ForwardRef(Base)
351
+ aria-hidden="true"
352
+ as="svg"
353
+ className="ds-svg-icon--xl ds-svg-icon"
354
+ focusable="false"
355
+ viewBox="0 0 24 24"
356
+ >
357
+ <svg
358
+ aria-hidden="true"
359
+ className="ds-svg-icon--xl ds-svg-icon"
360
+ focusable="false"
361
+ viewBox="0 0 24 24"
362
+ >
363
+ hello
364
+ </svg>
365
+ </ForwardRef(Base)>
366
+ </ForwardRef(SvgIcon)>
367
+ `;
368
+
369
+ exports[`renders the SvgIcon with prop size=xs 1`] = `
370
+ <ForwardRef(SvgIcon)
371
+ size="xs"
372
+ >
373
+ <ForwardRef(Base)
374
+ aria-hidden="true"
375
+ as="svg"
376
+ className="ds-svg-icon--xs ds-svg-icon"
377
+ focusable="false"
378
+ viewBox="0 0 24 24"
379
+ >
380
+ <svg
381
+ aria-hidden="true"
382
+ className="ds-svg-icon--xs ds-svg-icon"
383
+ focusable="false"
384
+ viewBox="0 0 24 24"
385
+ >
386
+ hello
387
+ </svg>
388
+ </ForwardRef(Base)>
389
+ </ForwardRef(SvgIcon)>
390
+ `;
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { BaseProps } from '@digigov/react-icons/Base';
3
+ export interface SvgIconProps extends BaseProps<'svg'> {
4
+ /**
5
+ * size is optional.
6
+ * size prop declares the size of the svg icon.
7
+ * @value 'xs'
8
+ * @value 'sm'
9
+ * @value 'md'
10
+ * @value 'lg'
11
+ * @value 'xl'
12
+ * @default 'sm'
13
+ */
14
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
15
+ /**
16
+ * color property styles svg icon with Gov.gr palette's basic colors.
17
+ * color property is optional.
18
+ * @value 'base-content'
19
+ * @value 'dark', always dark, among all themes
20
+ * @value 'white', always white, among all themes
21
+ * @value 'gray'
22
+ * @value 'primary'
23
+ * @value 'success'
24
+ * @value 'warning'
25
+ * @value 'error'
26
+ * @value 'focus', use only in focus state, in dark background
27
+ * @value 'info'
28
+ * @value 'link'
29
+ */
30
+ color?: 'base-content' | 'dark' | 'white' | 'gray' | 'primary' | 'success' | 'warning' | 'error' | 'focus' | 'info' | 'link';
31
+ }
32
+ /**
33
+ * Use SvgIcon as global svg component.
34
+ * SvgIcon can be used inside other svg components as children such as CheckIcon, CaretIcon etc.
35
+ */
36
+ export declare const SvgIcon: React.ForwardRefExoticComponent<Pick<SvgIconProps, "string" | "p" | "style" | "clipPath" | "filter" | "mask" | "path" | "children" | "direction" | "as" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "hidden" | "size" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "m" | "mt" | "mb" | "ml" | "mr" | "mx" | "my" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "pt" | "pb" | "pl" | "pr" | "px" | "py" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden"> & React.RefAttributes<SVGSVGElement>>;
37
+ export default SvgIcon;
@@ -0,0 +1,26 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["size", "color", "children", "className"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+ import Base from '@digigov/react-icons/Base';
7
+ /**
8
+ * Use SvgIcon as global svg component.
9
+ * SvgIcon can be used inside other svg components as children such as CheckIcon, CaretIcon etc.
10
+ */
11
+ export var SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(_ref, ref) {
12
+ var size = _ref.size,
13
+ color = _ref.color,
14
+ children = _ref.children,
15
+ className = _ref.className,
16
+ props = _objectWithoutProperties(_ref, _excluded);
17
+ return /*#__PURE__*/React.createElement(Base, _extends({
18
+ as: "svg",
19
+ ref: ref,
20
+ className: clsx(className, color !== undefined && "ds-svg-icon--".concat(color), size !== undefined && "ds-svg-icon--".concat(size), true && 'ds-svg-icon'),
21
+ focusable: "false",
22
+ viewBox: "0 0 24 24",
23
+ "aria-hidden": "true"
24
+ }, props), children);
25
+ });
26
+ export default SvgIcon;
@@ -0,0 +1,105 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import SvgIcon from '@digigov/react-icons/SvgIcon';
4
+ var _ref = /*#__PURE__*/React.createElement(SvgIcon, null);
5
+ it('renders the SvgIcon with no props', function () {
6
+ expect(mount(_ref)).toMatchSnapshot();
7
+ });
8
+ var _ref2 = /*#__PURE__*/React.createElement(SvgIcon, {
9
+ size: "xs"
10
+ }, "hello");
11
+ it('renders the SvgIcon with prop size=xs', function () {
12
+ expect(mount(_ref2)).toMatchSnapshot();
13
+ });
14
+ var _ref3 = /*#__PURE__*/React.createElement(SvgIcon, {
15
+ size: "sm"
16
+ }, "hello");
17
+ it('renders the SvgIcon with prop size=sm', function () {
18
+ expect(mount(_ref3)).toMatchSnapshot();
19
+ });
20
+ var _ref4 = /*#__PURE__*/React.createElement(SvgIcon, {
21
+ size: "md"
22
+ }, "hello");
23
+ it('renders the SvgIcon with prop size=md', function () {
24
+ expect(mount(_ref4)).toMatchSnapshot();
25
+ });
26
+ var _ref5 = /*#__PURE__*/React.createElement(SvgIcon, {
27
+ size: "lg"
28
+ }, "hello");
29
+ it('renders the SvgIcon with prop size=lg', function () {
30
+ expect(mount(_ref5)).toMatchSnapshot();
31
+ });
32
+ var _ref6 = /*#__PURE__*/React.createElement(SvgIcon, {
33
+ size: "xl"
34
+ }, "hello");
35
+ it('renders the SvgIcon with prop size=xl', function () {
36
+ expect(mount(_ref6)).toMatchSnapshot();
37
+ });
38
+ var _ref7 = /*#__PURE__*/React.createElement(SvgIcon, {
39
+ color: "base-content"
40
+ }, "hello");
41
+ it('renders the SvgIcon with prop color=base-content', function () {
42
+ expect(mount(_ref7)).toMatchSnapshot();
43
+ });
44
+ var _ref8 = /*#__PURE__*/React.createElement(SvgIcon, {
45
+ color: "dark"
46
+ }, "hello");
47
+ it('renders the SvgIcon with prop color=dark', function () {
48
+ expect(mount(_ref8)).toMatchSnapshot();
49
+ });
50
+ var _ref9 = /*#__PURE__*/React.createElement(SvgIcon, {
51
+ color: "white"
52
+ }, "hello");
53
+ it('renders the SvgIcon with prop color=white', function () {
54
+ expect(mount(_ref9)).toMatchSnapshot();
55
+ });
56
+ var _ref10 = /*#__PURE__*/React.createElement(SvgIcon, {
57
+ color: "gray"
58
+ }, "hello");
59
+ it('renders the SvgIcon with prop color=gray', function () {
60
+ expect(mount(_ref10)).toMatchSnapshot();
61
+ });
62
+ var _ref11 = /*#__PURE__*/React.createElement(SvgIcon, {
63
+ color: "primary"
64
+ }, "hello");
65
+ it('renders the SvgIcon with prop color=primary', function () {
66
+ expect(mount(_ref11)).toMatchSnapshot();
67
+ });
68
+ var _ref12 = /*#__PURE__*/React.createElement(SvgIcon, {
69
+ color: "success"
70
+ }, "hello");
71
+ it('renders the SvgIcon with prop color=success', function () {
72
+ expect(mount(_ref12)).toMatchSnapshot();
73
+ });
74
+ var _ref13 = /*#__PURE__*/React.createElement(SvgIcon, {
75
+ color: "warning"
76
+ }, "hello");
77
+ it('renders the SvgIcon with prop color=warning', function () {
78
+ expect(mount(_ref13)).toMatchSnapshot();
79
+ });
80
+ var _ref14 = /*#__PURE__*/React.createElement(SvgIcon, {
81
+ color: "error"
82
+ }, "hello");
83
+ it('renders the SvgIcon with prop color=error', function () {
84
+ expect(mount(_ref14)).toMatchSnapshot();
85
+ });
86
+ var _ref15 = /*#__PURE__*/React.createElement(SvgIcon, {
87
+ color: "focus"
88
+ }, "hello");
89
+ it('renders the SvgIcon with prop color=focus', function () {
90
+ expect(mount(_ref15)).toMatchSnapshot();
91
+ });
92
+ var _ref16 = /*#__PURE__*/React.createElement(SvgIcon, {
93
+ color: "warning",
94
+ size: "sm"
95
+ }, "hello");
96
+ it('renders the SvgIcon with prop color=warning and size=sm', function () {
97
+ expect(mount(_ref16)).toMatchSnapshot();
98
+ });
99
+ var _ref17 = /*#__PURE__*/React.createElement(SvgIcon, {
100
+ color: "warning",
101
+ size: "xl"
102
+ }, "hello");
103
+ it('renders the SvgIcon with prop color=error and size= xl', function () {
104
+ expect(mount(_ref17)).toMatchSnapshot();
105
+ });
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/SvgIcon/index.test/index.js"
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/SvgIcon/index.js"
6
+ }