@digigov/react-icons 1.2.0-a7ffb5dc → 2.0.0-8de46296

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 (243) 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/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  95. package/PrintIcon/config/index.js +15 -0
  96. package/PrintIcon/config/package.json +6 -0
  97. package/PrintIcon/config.d.ts +8 -0
  98. package/PrintIcon/index.d.ts +4 -0
  99. package/PrintIcon/index.js +9 -0
  100. package/PrintIcon/index.test/index.js +45 -0
  101. package/PrintIcon/index.test/package.json +6 -0
  102. package/PrintIcon/index.test.d.ts +1 -0
  103. package/PrintIcon/package.json +6 -0
  104. package/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  105. package/ReplyIcon/config/index.js +9 -0
  106. package/ReplyIcon/config/package.json +6 -0
  107. package/ReplyIcon/config.d.ts +8 -0
  108. package/ReplyIcon/index.d.ts +4 -0
  109. package/ReplyIcon/index.js +9 -0
  110. package/ReplyIcon/index.test/index.js +45 -0
  111. package/ReplyIcon/index.test/package.json +6 -0
  112. package/ReplyIcon/index.test.d.ts +1 -0
  113. package/ReplyIcon/package.json +6 -0
  114. package/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  115. package/RestoreIcon/config/index.js +17 -0
  116. package/RestoreIcon/config/package.json +6 -0
  117. package/RestoreIcon/config.d.ts +8 -0
  118. package/RestoreIcon/index.d.ts +4 -0
  119. package/RestoreIcon/index.js +9 -0
  120. package/RestoreIcon/index.test/index.js +45 -0
  121. package/RestoreIcon/index.test/package.json +6 -0
  122. package/RestoreIcon/index.test.d.ts +1 -0
  123. package/RestoreIcon/package.json +6 -0
  124. package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  125. package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  126. package/cjs/CancelIcon/config/index.js +17 -0
  127. package/cjs/CancelIcon/index.js +16 -0
  128. package/cjs/CancelIcon/index.test/index.js +48 -0
  129. package/cjs/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  130. package/cjs/ChatIcon/config/index.js +24 -0
  131. package/cjs/ChatIcon/index.js +16 -0
  132. package/cjs/ChatIcon/index.test/index.js +54 -0
  133. package/cjs/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  134. package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  135. package/cjs/DownloadIcon/config/index.js +22 -0
  136. package/cjs/DownloadIcon/index.js +16 -0
  137. package/cjs/DownloadIcon/index.test/index.js +48 -0
  138. package/cjs/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  139. package/cjs/ExclamationIcon/config/index.js +22 -0
  140. package/cjs/ExclamationIcon/index.js +16 -0
  141. package/cjs/ExclamationIcon/index.test/index.js +48 -0
  142. package/cjs/Icon/__snapshots__/index.test.tsx.snap +10 -10
  143. package/cjs/Icon/index.js +1 -1
  144. package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  145. package/cjs/LockIcon/config/index.js +17 -0
  146. package/cjs/LockIcon/index.js +16 -0
  147. package/cjs/LockIcon/index.test/index.js +48 -0
  148. package/cjs/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  149. package/cjs/LoginIcon/config/index.js +20 -0
  150. package/cjs/LoginIcon/index.js +16 -0
  151. package/cjs/LoginIcon/index.test/index.js +48 -0
  152. package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  153. package/cjs/MinusIcon/config/index.js +20 -0
  154. package/cjs/MinusIcon/index.js +16 -0
  155. package/cjs/MinusIcon/index.test/index.js +48 -0
  156. package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  157. package/cjs/PdfFileIcon/config/index.js +23 -0
  158. package/cjs/PdfFileIcon/index.js +16 -0
  159. package/cjs/PdfFileIcon/index.test/index.js +48 -0
  160. package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  161. package/cjs/PlusIcon/config/index.js +17 -0
  162. package/cjs/PlusIcon/index.js +16 -0
  163. package/cjs/PlusIcon/index.test/index.js +48 -0
  164. package/cjs/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  165. package/cjs/PrintIcon/config/index.js +23 -0
  166. package/cjs/PrintIcon/index.js +16 -0
  167. package/cjs/PrintIcon/index.test/index.js +48 -0
  168. package/cjs/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  169. package/cjs/ReplyIcon/config/index.js +17 -0
  170. package/cjs/ReplyIcon/index.js +16 -0
  171. package/cjs/ReplyIcon/index.test/index.js +48 -0
  172. package/cjs/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  173. package/cjs/RestoreIcon/config/index.js +25 -0
  174. package/cjs/RestoreIcon/index.js +16 -0
  175. package/cjs/RestoreIcon/index.test/index.js +48 -0
  176. package/cjs/icons/index.js +132 -0
  177. package/cjs/index.js +132 -0
  178. package/cjs/registry/index.js +24 -0
  179. package/icons/index.js +12 -0
  180. package/icons.d.ts +36 -0
  181. package/index.d.ts +12 -0
  182. package/index.js +14 -2
  183. package/package.json +4 -3
  184. package/registry/index.js +24 -0
  185. package/registry.d.ts +12 -0
  186. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  187. package/src/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  188. package/src/CancelIcon/config.tsx +15 -0
  189. package/src/CancelIcon/index.test.tsx +26 -0
  190. package/src/CancelIcon/index.tsx +8 -0
  191. package/src/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  192. package/src/ChatIcon/config.tsx +28 -0
  193. package/src/ChatIcon/index.test.tsx +29 -0
  194. package/src/ChatIcon/index.tsx +8 -0
  195. package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  196. package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  197. package/src/DownloadIcon/config.tsx +16 -0
  198. package/src/DownloadIcon/index.test.tsx +26 -0
  199. package/src/DownloadIcon/index.tsx +8 -0
  200. package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  201. package/src/ExclamationIcon/config.tsx +16 -0
  202. package/src/ExclamationIcon/index.test.tsx +26 -0
  203. package/src/ExclamationIcon/index.tsx +8 -0
  204. package/src/Icon/__snapshots__/index.test.tsx.snap +10 -10
  205. package/src/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  206. package/src/LockIcon/config.tsx +15 -0
  207. package/src/LockIcon/index.test.tsx +26 -0
  208. package/src/LockIcon/index.tsx +8 -0
  209. package/src/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  210. package/src/LoginIcon/config.tsx +16 -0
  211. package/src/LoginIcon/index.test.tsx +26 -0
  212. package/src/LoginIcon/index.tsx +8 -0
  213. package/src/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  214. package/src/MinusIcon/config.tsx +15 -0
  215. package/src/MinusIcon/index.test.tsx +26 -0
  216. package/src/MinusIcon/index.tsx +8 -0
  217. package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  218. package/src/PdfFileIcon/config.tsx +20 -0
  219. package/src/PdfFileIcon/index.test.tsx +26 -0
  220. package/src/PdfFileIcon/index.tsx +8 -0
  221. package/src/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  222. package/src/PlusIcon/config.tsx +15 -0
  223. package/src/PlusIcon/index.test.tsx +26 -0
  224. package/src/PlusIcon/index.tsx +8 -0
  225. package/src/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  226. package/src/PrintIcon/config.tsx +16 -0
  227. package/src/PrintIcon/index.test.tsx +26 -0
  228. package/src/PrintIcon/index.tsx +8 -0
  229. package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  230. package/src/ReplyIcon/config.tsx +15 -0
  231. package/src/ReplyIcon/index.test.tsx +26 -0
  232. package/src/ReplyIcon/index.tsx +8 -0
  233. package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  234. package/src/RestoreIcon/config.tsx +17 -0
  235. package/src/RestoreIcon/index.test.tsx +26 -0
  236. package/src/RestoreIcon/index.tsx +8 -0
  237. package/src/icons.ts +37 -0
  238. package/src/index.ts +12 -0
  239. package/src/registry.js +24 -0
  240. package/cjs/lazy/index.js +0 -121
  241. package/lazy/index.js +0 -87
  242. package/lazy.d.ts +0 -15
  243. package/src/lazy.js +0 -16
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import Icon, { IconProps } from '@digigov/react-icons/Icon';
3
+
4
+ export const ReplyIcon: React.FC<IconProps<'reply'>> = (props) => {
5
+ return <Icon {...props} icon="reply"></Icon>;
6
+ };
7
+
8
+ export default ReplyIcon;
@@ -0,0 +1,318 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the RestoreIcon with no props 1`] = `
4
+ <RestoreIcon>
5
+ <ForwardRef(Icon)
6
+ icon="restore"
7
+ >
8
+ <ForwardRef(SvgIcon)
9
+ className="ds-svg-icon--restore"
10
+ >
11
+ <ForwardRef(Base)
12
+ aria-hidden="true"
13
+ as="svg"
14
+ className="ds-svg-icon--restore ds-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ >
18
+ <svg
19
+ aria-hidden="true"
20
+ className="ds-svg-icon--restore ds-svg-icon"
21
+ focusable="false"
22
+ viewBox="0 0 24 24"
23
+ >
24
+ <restore>
25
+ <path
26
+ d="M12,21.3c-2.37,0-4.691-.929-6.407-2.559l1.669-2.003c1.247,1.247,2.974,1.962,4.738,1.962,3.694,0,6.7-3.006,6.7-6.7s-3.006-6.7-6.7-6.7-6.7,3.006-6.7,6.7h-2.6C2.7,6.872,6.872,2.7,12,2.7s9.3,4.172,9.3,9.3-4.172,9.3-9.3,9.3Z"
27
+ />
28
+ <path
29
+ d="M7.5,12H.5l3.5,4.2,3.5-4.2Z"
30
+ />
31
+ <circle
32
+ cx="12"
33
+ cy="12"
34
+ r="1.65"
35
+ />
36
+ </restore>
37
+ </svg>
38
+ </ForwardRef(Base)>
39
+ </ForwardRef(SvgIcon)>
40
+ </ForwardRef(Icon)>
41
+ </RestoreIcon>
42
+ `;
43
+
44
+ exports[`renders the RestoreIcon with prop size=md 1`] = `
45
+ <RestoreIcon
46
+ size="md"
47
+ >
48
+ <ForwardRef(Icon)
49
+ icon="restore"
50
+ size="md"
51
+ >
52
+ <ForwardRef(SvgIcon)
53
+ className="ds-svg-icon--restore"
54
+ size="md"
55
+ >
56
+ <ForwardRef(Base)
57
+ aria-hidden="true"
58
+ as="svg"
59
+ className="ds-svg-icon--restore ds-svg-icon--md ds-svg-icon"
60
+ focusable="false"
61
+ viewBox="0 0 24 24"
62
+ >
63
+ <svg
64
+ aria-hidden="true"
65
+ className="ds-svg-icon--restore ds-svg-icon--md ds-svg-icon"
66
+ focusable="false"
67
+ viewBox="0 0 24 24"
68
+ >
69
+ <restore>
70
+ <path
71
+ d="M12,21.3c-2.37,0-4.691-.929-6.407-2.559l1.669-2.003c1.247,1.247,2.974,1.962,4.738,1.962,3.694,0,6.7-3.006,6.7-6.7s-3.006-6.7-6.7-6.7-6.7,3.006-6.7,6.7h-2.6C2.7,6.872,6.872,2.7,12,2.7s9.3,4.172,9.3,9.3-4.172,9.3-9.3,9.3Z"
72
+ />
73
+ <path
74
+ d="M7.5,12H.5l3.5,4.2,3.5-4.2Z"
75
+ />
76
+ <circle
77
+ cx="12"
78
+ cy="12"
79
+ r="1.65"
80
+ />
81
+ </restore>
82
+ </svg>
83
+ </ForwardRef(Base)>
84
+ </ForwardRef(SvgIcon)>
85
+ </ForwardRef(Icon)>
86
+ </RestoreIcon>
87
+ `;
88
+
89
+ exports[`renders the RestoreIcon with prop size=xl 1`] = `
90
+ <RestoreIcon
91
+ size="xl"
92
+ >
93
+ <ForwardRef(Icon)
94
+ icon="restore"
95
+ size="xl"
96
+ >
97
+ <ForwardRef(SvgIcon)
98
+ className="ds-svg-icon--restore"
99
+ size="xl"
100
+ >
101
+ <ForwardRef(Base)
102
+ aria-hidden="true"
103
+ as="svg"
104
+ className="ds-svg-icon--restore ds-svg-icon--xl ds-svg-icon"
105
+ focusable="false"
106
+ viewBox="0 0 24 24"
107
+ >
108
+ <svg
109
+ aria-hidden="true"
110
+ className="ds-svg-icon--restore ds-svg-icon--xl ds-svg-icon"
111
+ focusable="false"
112
+ viewBox="0 0 24 24"
113
+ >
114
+ <restore>
115
+ <path
116
+ d="M12,21.3c-2.37,0-4.691-.929-6.407-2.559l1.669-2.003c1.247,1.247,2.974,1.962,4.738,1.962,3.694,0,6.7-3.006,6.7-6.7s-3.006-6.7-6.7-6.7-6.7,3.006-6.7,6.7h-2.6C2.7,6.872,6.872,2.7,12,2.7s9.3,4.172,9.3,9.3-4.172,9.3-9.3,9.3Z"
117
+ />
118
+ <path
119
+ d="M7.5,12H.5l3.5,4.2,3.5-4.2Z"
120
+ />
121
+ <circle
122
+ cx="12"
123
+ cy="12"
124
+ r="1.65"
125
+ />
126
+ </restore>
127
+ </svg>
128
+ </ForwardRef(Base)>
129
+ </ForwardRef(SvgIcon)>
130
+ </ForwardRef(Icon)>
131
+ </RestoreIcon>
132
+ `;
133
+
134
+ exports[`renders the RestoreIcon with prop variant=error and size= xl 1`] = `
135
+ <RestoreIcon
136
+ size="xl"
137
+ variant="warning"
138
+ >
139
+ <ForwardRef(Icon)
140
+ icon="restore"
141
+ size="xl"
142
+ variant="warning"
143
+ >
144
+ <ForwardRef(SvgIcon)
145
+ className="ds-svg-icon--restore"
146
+ size="xl"
147
+ variant="warning"
148
+ >
149
+ <ForwardRef(Base)
150
+ aria-hidden="true"
151
+ as="svg"
152
+ className="ds-svg-icon--restore ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
153
+ focusable="false"
154
+ viewBox="0 0 24 24"
155
+ >
156
+ <svg
157
+ aria-hidden="true"
158
+ className="ds-svg-icon--restore ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
159
+ focusable="false"
160
+ viewBox="0 0 24 24"
161
+ >
162
+ <restore>
163
+ <path
164
+ d="M12,21.3c-2.37,0-4.691-.929-6.407-2.559l1.669-2.003c1.247,1.247,2.974,1.962,4.738,1.962,3.694,0,6.7-3.006,6.7-6.7s-3.006-6.7-6.7-6.7-6.7,3.006-6.7,6.7h-2.6C2.7,6.872,6.872,2.7,12,2.7s9.3,4.172,9.3,9.3-4.172,9.3-9.3,9.3Z"
165
+ />
166
+ <path
167
+ d="M7.5,12H.5l3.5,4.2,3.5-4.2Z"
168
+ />
169
+ <circle
170
+ cx="12"
171
+ cy="12"
172
+ r="1.65"
173
+ />
174
+ </restore>
175
+ </svg>
176
+ </ForwardRef(Base)>
177
+ </ForwardRef(SvgIcon)>
178
+ </ForwardRef(Icon)>
179
+ </RestoreIcon>
180
+ `;
181
+
182
+ exports[`renders the RestoreIcon with prop variant=light 1`] = `
183
+ <RestoreIcon
184
+ variant="light"
185
+ >
186
+ <ForwardRef(Icon)
187
+ icon="restore"
188
+ variant="light"
189
+ >
190
+ <ForwardRef(SvgIcon)
191
+ className="ds-svg-icon--restore"
192
+ variant="light"
193
+ >
194
+ <ForwardRef(Base)
195
+ aria-hidden="true"
196
+ as="svg"
197
+ className="ds-svg-icon--restore ds-svg-icon--light ds-svg-icon"
198
+ focusable="false"
199
+ viewBox="0 0 24 24"
200
+ >
201
+ <svg
202
+ aria-hidden="true"
203
+ className="ds-svg-icon--restore ds-svg-icon--light ds-svg-icon"
204
+ focusable="false"
205
+ viewBox="0 0 24 24"
206
+ >
207
+ <restore>
208
+ <path
209
+ d="M12,21.3c-2.37,0-4.691-.929-6.407-2.559l1.669-2.003c1.247,1.247,2.974,1.962,4.738,1.962,3.694,0,6.7-3.006,6.7-6.7s-3.006-6.7-6.7-6.7-6.7,3.006-6.7,6.7h-2.6C2.7,6.872,6.872,2.7,12,2.7s9.3,4.172,9.3,9.3-4.172,9.3-9.3,9.3Z"
210
+ />
211
+ <path
212
+ d="M7.5,12H.5l3.5,4.2,3.5-4.2Z"
213
+ />
214
+ <circle
215
+ cx="12"
216
+ cy="12"
217
+ r="1.65"
218
+ />
219
+ </restore>
220
+ </svg>
221
+ </ForwardRef(Base)>
222
+ </ForwardRef(SvgIcon)>
223
+ </ForwardRef(Icon)>
224
+ </RestoreIcon>
225
+ `;
226
+
227
+ exports[`renders the RestoreIcon with prop variant=warning 1`] = `
228
+ <RestoreIcon
229
+ variant="warning"
230
+ >
231
+ <ForwardRef(Icon)
232
+ icon="restore"
233
+ variant="warning"
234
+ >
235
+ <ForwardRef(SvgIcon)
236
+ className="ds-svg-icon--restore"
237
+ variant="warning"
238
+ >
239
+ <ForwardRef(Base)
240
+ aria-hidden="true"
241
+ as="svg"
242
+ className="ds-svg-icon--restore ds-svg-icon--warning ds-svg-icon"
243
+ focusable="false"
244
+ viewBox="0 0 24 24"
245
+ >
246
+ <svg
247
+ aria-hidden="true"
248
+ className="ds-svg-icon--restore ds-svg-icon--warning ds-svg-icon"
249
+ focusable="false"
250
+ viewBox="0 0 24 24"
251
+ >
252
+ <restore>
253
+ <path
254
+ d="M12,21.3c-2.37,0-4.691-.929-6.407-2.559l1.669-2.003c1.247,1.247,2.974,1.962,4.738,1.962,3.694,0,6.7-3.006,6.7-6.7s-3.006-6.7-6.7-6.7-6.7,3.006-6.7,6.7h-2.6C2.7,6.872,6.872,2.7,12,2.7s9.3,4.172,9.3,9.3-4.172,9.3-9.3,9.3Z"
255
+ />
256
+ <path
257
+ d="M7.5,12H.5l3.5,4.2,3.5-4.2Z"
258
+ />
259
+ <circle
260
+ cx="12"
261
+ cy="12"
262
+ r="1.65"
263
+ />
264
+ </restore>
265
+ </svg>
266
+ </ForwardRef(Base)>
267
+ </ForwardRef(SvgIcon)>
268
+ </ForwardRef(Icon)>
269
+ </RestoreIcon>
270
+ `;
271
+
272
+ exports[`renders the RestoreIcon with prop variant=warning and size=sm 1`] = `
273
+ <RestoreIcon
274
+ size="sm"
275
+ variant="warning"
276
+ >
277
+ <ForwardRef(Icon)
278
+ icon="restore"
279
+ size="sm"
280
+ variant="warning"
281
+ >
282
+ <ForwardRef(SvgIcon)
283
+ className="ds-svg-icon--restore"
284
+ size="sm"
285
+ variant="warning"
286
+ >
287
+ <ForwardRef(Base)
288
+ aria-hidden="true"
289
+ as="svg"
290
+ className="ds-svg-icon--restore ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
291
+ focusable="false"
292
+ viewBox="0 0 24 24"
293
+ >
294
+ <svg
295
+ aria-hidden="true"
296
+ className="ds-svg-icon--restore ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
297
+ focusable="false"
298
+ viewBox="0 0 24 24"
299
+ >
300
+ <restore>
301
+ <path
302
+ d="M12,21.3c-2.37,0-4.691-.929-6.407-2.559l1.669-2.003c1.247,1.247,2.974,1.962,4.738,1.962,3.694,0,6.7-3.006,6.7-6.7s-3.006-6.7-6.7-6.7-6.7,3.006-6.7,6.7h-2.6C2.7,6.872,6.872,2.7,12,2.7s9.3,4.172,9.3,9.3-4.172,9.3-9.3,9.3Z"
303
+ />
304
+ <path
305
+ d="M7.5,12H.5l3.5,4.2,3.5-4.2Z"
306
+ />
307
+ <circle
308
+ cx="12"
309
+ cy="12"
310
+ r="1.65"
311
+ />
312
+ </restore>
313
+ </svg>
314
+ </ForwardRef(Base)>
315
+ </ForwardRef(SvgIcon)>
316
+ </ForwardRef(Icon)>
317
+ </RestoreIcon>
318
+ `;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+
3
+ export interface RestoreType {}
4
+
5
+ export function restore(): React.ReactElement {
6
+ return (
7
+ <>
8
+ <path d="M12,21.3c-2.37,0-4.691-.929-6.407-2.559l1.669-2.003c1.247,1.247,2.974,1.962,4.738,1.962,3.694,0,6.7-3.006,6.7-6.7s-3.006-6.7-6.7-6.7-6.7,3.006-6.7,6.7h-2.6C2.7,6.872,6.872,2.7,12,2.7s9.3,4.172,9.3,9.3-4.172,9.3-9.3,9.3Z" />
9
+ <path d="M7.5,12H.5l3.5,4.2,3.5-4.2Z" />
10
+ <circle cx="12" cy="12" r="1.65" />
11
+ </>
12
+ );
13
+ }
14
+
15
+ restore.props = [];
16
+
17
+ export default restore;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+
4
+ import RestoreIcon from '@digigov/react-icons/RestoreIcon';
5
+
6
+ it('renders the RestoreIcon with no props', () => {
7
+ expect(mount(<RestoreIcon />)).toMatchSnapshot();
8
+ });
9
+ it('renders the RestoreIcon with prop size=md', () => {
10
+ expect(mount(<RestoreIcon size="md" />)).toMatchSnapshot();
11
+ });
12
+ it('renders the RestoreIcon with prop size=xl', () => {
13
+ expect(mount(<RestoreIcon size="xl" />)).toMatchSnapshot();
14
+ });
15
+ it('renders the RestoreIcon with prop variant=light', () => {
16
+ expect(mount(<RestoreIcon variant="light" />)).toMatchSnapshot();
17
+ });
18
+ it('renders the RestoreIcon with prop variant=warning', () => {
19
+ expect(mount(<RestoreIcon variant="warning" />)).toMatchSnapshot();
20
+ });
21
+ it('renders the RestoreIcon with prop variant=warning and size=sm', () => {
22
+ expect(mount(<RestoreIcon variant="warning" size="sm" />)).toMatchSnapshot();
23
+ });
24
+ it('renders the RestoreIcon with prop variant=error and size= xl', () => {
25
+ expect(mount(<RestoreIcon variant="warning" size="xl" />)).toMatchSnapshot();
26
+ });
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import Icon, { IconProps } from '@digigov/react-icons/Icon';
3
+
4
+ export const RestoreIcon: React.FC<IconProps<'restore'>> = (props) => {
5
+ return <Icon {...props} icon="restore"></Icon>;
6
+ };
7
+
8
+ export default RestoreIcon;
package/src/icons.ts CHANGED
@@ -9,6 +9,18 @@ import type { GlobeType } from '@digigov/react-icons/GlobeIcon/config';
9
9
  import type { MoreVertType } from '@digigov/react-icons/MoreVertIcon/config';
10
10
  import type { SearchType } from '@digigov/react-icons/SearchIcon/config';
11
11
  import type { UncheckType } from '@digigov/react-icons/UncheckIcon/config';
12
+ import type { LockType } from '@digigov/react-icons/LockIcon/config';
13
+ import type { DownloadType } from '@digigov/react-icons/DownloadIcon/config';
14
+ import type { PdfFileType } from '@digigov/react-icons/PdfFileIcon/config';
15
+ import type { CancelType } from '@digigov/react-icons/CancelIcon/config';
16
+ import type { PlusType } from '@digigov/react-icons/PlusIcon/config';
17
+ import type { MinusType } from '@digigov/react-icons/MinusIcon/config';
18
+ import type { LoginType } from '@digigov/react-icons/LoginIcon/config';
19
+ import type { RestoreType } from '@digigov/react-icons/RestoreIcon/config';
20
+ import type { ReplyType } from '@digigov/react-icons/ReplyIcon/config';
21
+ import type { ChatType } from '@digigov/react-icons/ChatIcon/config';
22
+ import type { ExclamationType } from '@digigov/react-icons/ExclamationIcon/config';
23
+ import type { PrintType } from '@digigov/react-icons/PrintIcon/config';
12
24
 
13
25
  export * from '@digigov/react-icons/AccessibilityIcon/config';
14
26
  export * from '@digigov/react-icons/ArrowIcon/config';
@@ -21,6 +33,19 @@ export * from '@digigov/react-icons/GlobeIcon/config';
21
33
  export * from '@digigov/react-icons/MoreVertIcon/config';
22
34
  export * from '@digigov/react-icons/UncheckIcon/config';
23
35
  export * from '@digigov/react-icons/SearchIcon/config';
36
+ export * from '@digigov/react-icons/LockIcon/config';
37
+ export * from '@digigov/react-icons/DownloadIcon/config';
38
+ export * from '@digigov/react-icons/PdfFileIcon/config';
39
+ export * from '@digigov/react-icons/CancelIcon/config';
40
+ export * from '@digigov/react-icons/PlusIcon/config';
41
+ export * from '@digigov/react-icons/MinusIcon/config';
42
+ export * from '@digigov/react-icons/LoginIcon/config';
43
+ export * from '@digigov/react-icons/RestoreIcon/config';
44
+ export * from '@digigov/react-icons/ReplyIcon/config';
45
+ export * from '@digigov/react-icons/ChatIcon/config';
46
+ export * from '@digigov/react-icons/ExclamationIcon/config';
47
+ export * from '@digigov/react-icons/PrintIcon/config';
48
+
24
49
 
25
50
  export interface IconTypes {
26
51
  accessibility: AccessibilityType;
@@ -34,4 +59,16 @@ export interface IconTypes {
34
59
  uncheck: UncheckType;
35
60
  search: SearchType;
36
61
  chevron: ChevronType;
62
+ lock: LockType;
63
+ download: DownloadType;
64
+ pdfFile: PdfFileType;
65
+ cancel: CancelType;
66
+ plus: PlusType;
67
+ minus: MinusType;
68
+ login: LoginType;
69
+ restore: RestoreType;
70
+ reply: ReplyType;
71
+ chat: ChatType;
72
+ exclamation: ExclamationType;
73
+ print: PrintType;
37
74
  }
package/src/index.ts CHANGED
@@ -9,3 +9,15 @@ export * from '@digigov/react-icons/CloseIcon';
9
9
  export * from '@digigov/react-icons/GlobeIcon';
10
10
  export * from '@digigov/react-icons/MoreVertIcon';
11
11
  export * from '@digigov/react-icons/SearchIcon';
12
+ export * from '@digigov/react-icons/CancelIcon';
13
+ export * from '@digigov/react-icons/LockIcon';
14
+ export * from '@digigov/react-icons/DownloadIcon';
15
+ export * from '@digigov/react-icons/PdfFileIcon';
16
+ export * from '@digigov/react-icons/PlusIcon';
17
+ export * from '@digigov/react-icons/MinusIcon';
18
+ export * from '@digigov/react-icons/LoginIcon';
19
+ export * from '@digigov/react-icons/RestoreIcon';
20
+ export * from '@digigov/react-icons/ReplyIcon';
21
+ export * from '@digigov/react-icons/ChatIcon';
22
+ export * from '@digigov/react-icons/ExclamationIcon';
23
+ export * from '@digigov/react-icons/PrintIcon';
package/src/registry.js CHANGED
@@ -2,15 +2,27 @@
2
2
  import * as _digigov_react_icons_AccessibilityIcon from '@digigov/react-icons/AccessibilityIcon';
3
3
  import * as _digigov_react_icons_ArrowIcon from '@digigov/react-icons/ArrowIcon';
4
4
  import * as _digigov_react_icons_BurgerIcon from '@digigov/react-icons/BurgerIcon';
5
+ import * as _digigov_react_icons_CancelIcon from '@digigov/react-icons/CancelIcon';
5
6
  import * as _digigov_react_icons_CaretIcon from '@digigov/react-icons/CaretIcon';
7
+ import * as _digigov_react_icons_ChatIcon from '@digigov/react-icons/ChatIcon';
6
8
  import * as _digigov_react_icons_CheckIcon from '@digigov/react-icons/CheckIcon';
7
9
  import * as _digigov_react_icons_ChevronIcon from '@digigov/react-icons/ChevronIcon';
8
10
  import * as _digigov_react_icons_CloseIcon from '@digigov/react-icons/CloseIcon';
11
+ import * as _digigov_react_icons_DownloadIcon from '@digigov/react-icons/DownloadIcon';
12
+ import * as _digigov_react_icons_ExclamationIcon from '@digigov/react-icons/ExclamationIcon';
9
13
  import * as _digigov_react_icons_GlobeIcon from '@digigov/react-icons/GlobeIcon';
10
14
  import * as _digigov_react_icons_Icon from '@digigov/react-icons/Icon';
11
15
  import * as _digigov_react_icons_icons from '@digigov/react-icons/icons';
12
16
  import * as _digigov_react_icons from '@digigov/react-icons';
17
+ import * as _digigov_react_icons_LockIcon from '@digigov/react-icons/LockIcon';
18
+ import * as _digigov_react_icons_LoginIcon from '@digigov/react-icons/LoginIcon';
19
+ import * as _digigov_react_icons_MinusIcon from '@digigov/react-icons/MinusIcon';
13
20
  import * as _digigov_react_icons_MoreVertIcon from '@digigov/react-icons/MoreVertIcon';
21
+ import * as _digigov_react_icons_PdfFileIcon from '@digigov/react-icons/PdfFileIcon';
22
+ import * as _digigov_react_icons_PlusIcon from '@digigov/react-icons/PlusIcon';
23
+ import * as _digigov_react_icons_PrintIcon from '@digigov/react-icons/PrintIcon';
24
+ import * as _digigov_react_icons_ReplyIcon from '@digigov/react-icons/ReplyIcon';
25
+ import * as _digigov_react_icons_RestoreIcon from '@digigov/react-icons/RestoreIcon';
14
26
  import * as _digigov_react_icons_SearchIcon from '@digigov/react-icons/SearchIcon';
15
27
  import * as _digigov_react_icons_UncheckIcon from '@digigov/react-icons/UncheckIcon'
16
28
  function lazyImport(pkgImport) {
@@ -36,15 +48,27 @@ export default {
36
48
  '@digigov/react-icons/AccessibilityIcon': lazyImport(_digigov_react_icons_AccessibilityIcon),
37
49
  '@digigov/react-icons/ArrowIcon': lazyImport(_digigov_react_icons_ArrowIcon),
38
50
  '@digigov/react-icons/BurgerIcon': lazyImport(_digigov_react_icons_BurgerIcon),
51
+ '@digigov/react-icons/CancelIcon': lazyImport(_digigov_react_icons_CancelIcon),
39
52
  '@digigov/react-icons/CaretIcon': lazyImport(_digigov_react_icons_CaretIcon),
53
+ '@digigov/react-icons/ChatIcon': lazyImport(_digigov_react_icons_ChatIcon),
40
54
  '@digigov/react-icons/CheckIcon': lazyImport(_digigov_react_icons_CheckIcon),
41
55
  '@digigov/react-icons/ChevronIcon': lazyImport(_digigov_react_icons_ChevronIcon),
42
56
  '@digigov/react-icons/CloseIcon': lazyImport(_digigov_react_icons_CloseIcon),
57
+ '@digigov/react-icons/DownloadIcon': lazyImport(_digigov_react_icons_DownloadIcon),
58
+ '@digigov/react-icons/ExclamationIcon': lazyImport(_digigov_react_icons_ExclamationIcon),
43
59
  '@digigov/react-icons/GlobeIcon': lazyImport(_digigov_react_icons_GlobeIcon),
44
60
  '@digigov/react-icons/Icon': lazyImport(_digigov_react_icons_Icon),
45
61
  '@digigov/react-icons/icons': lazyImport(_digigov_react_icons_icons),
46
62
  '@digigov/react-icons': lazyImport(_digigov_react_icons),
63
+ '@digigov/react-icons/LockIcon': lazyImport(_digigov_react_icons_LockIcon),
64
+ '@digigov/react-icons/LoginIcon': lazyImport(_digigov_react_icons_LoginIcon),
65
+ '@digigov/react-icons/MinusIcon': lazyImport(_digigov_react_icons_MinusIcon),
47
66
  '@digigov/react-icons/MoreVertIcon': lazyImport(_digigov_react_icons_MoreVertIcon),
67
+ '@digigov/react-icons/PdfFileIcon': lazyImport(_digigov_react_icons_PdfFileIcon),
68
+ '@digigov/react-icons/PlusIcon': lazyImport(_digigov_react_icons_PlusIcon),
69
+ '@digigov/react-icons/PrintIcon': lazyImport(_digigov_react_icons_PrintIcon),
70
+ '@digigov/react-icons/ReplyIcon': lazyImport(_digigov_react_icons_ReplyIcon),
71
+ '@digigov/react-icons/RestoreIcon': lazyImport(_digigov_react_icons_RestoreIcon),
48
72
  '@digigov/react-icons/SearchIcon': lazyImport(_digigov_react_icons_SearchIcon),
49
73
  '@digigov/react-icons/UncheckIcon': lazyImport(_digigov_react_icons_UncheckIcon)
50
74
  };
package/cjs/lazy/index.js DELETED
@@ -1,121 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
- var _react = require("react");
10
- 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); }
11
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
12
- var _default = exports["default"] = {
13
- 'AccessibilityIcon': /*#__PURE__*/(0, _react.lazy)(function () {
14
- return Promise.resolve().then(function () {
15
- return _interopRequireWildcard(require('@digigov/react-icons/AccessibilityIcon'));
16
- }).then(function (module) {
17
- return {
18
- "default": module['AccessibilityIcon']
19
- };
20
- });
21
- }),
22
- 'ArrowIcon': /*#__PURE__*/(0, _react.lazy)(function () {
23
- return Promise.resolve().then(function () {
24
- return _interopRequireWildcard(require('@digigov/react-icons/ArrowIcon'));
25
- }).then(function (module) {
26
- return {
27
- "default": module['ArrowIcon']
28
- };
29
- });
30
- }),
31
- 'BurgerIcon': /*#__PURE__*/(0, _react.lazy)(function () {
32
- return Promise.resolve().then(function () {
33
- return _interopRequireWildcard(require('@digigov/react-icons/BurgerIcon'));
34
- }).then(function (module) {
35
- return {
36
- "default": module['BurgerIcon']
37
- };
38
- });
39
- }),
40
- 'CaretIcon': /*#__PURE__*/(0, _react.lazy)(function () {
41
- return Promise.resolve().then(function () {
42
- return _interopRequireWildcard(require('@digigov/react-icons/CaretIcon'));
43
- }).then(function (module) {
44
- return {
45
- "default": module['CaretIcon']
46
- };
47
- });
48
- }),
49
- 'CheckIcon': /*#__PURE__*/(0, _react.lazy)(function () {
50
- return Promise.resolve().then(function () {
51
- return _interopRequireWildcard(require('@digigov/react-icons/CheckIcon'));
52
- }).then(function (module) {
53
- return {
54
- "default": module['CheckIcon']
55
- };
56
- });
57
- }),
58
- 'ChevronIcon': /*#__PURE__*/(0, _react.lazy)(function () {
59
- return Promise.resolve().then(function () {
60
- return _interopRequireWildcard(require('@digigov/react-icons/ChevronIcon'));
61
- }).then(function (module) {
62
- return {
63
- "default": module['ChevronIcon']
64
- };
65
- });
66
- }),
67
- 'CloseIcon': /*#__PURE__*/(0, _react.lazy)(function () {
68
- return Promise.resolve().then(function () {
69
- return _interopRequireWildcard(require('@digigov/react-icons/CloseIcon'));
70
- }).then(function (module) {
71
- return {
72
- "default": module['CloseIcon']
73
- };
74
- });
75
- }),
76
- 'GlobeIcon': /*#__PURE__*/(0, _react.lazy)(function () {
77
- return Promise.resolve().then(function () {
78
- return _interopRequireWildcard(require('@digigov/react-icons/GlobeIcon'));
79
- }).then(function (module) {
80
- return {
81
- "default": module['GlobeIcon']
82
- };
83
- });
84
- }),
85
- 'Icon': /*#__PURE__*/(0, _react.lazy)(function () {
86
- return Promise.resolve().then(function () {
87
- return _interopRequireWildcard(require('@digigov/react-icons/Icon'));
88
- }).then(function (module) {
89
- return {
90
- "default": module['Icon']
91
- };
92
- });
93
- }),
94
- 'UncheckIcon': /*#__PURE__*/(0, _react.lazy)(function () {
95
- return Promise.resolve().then(function () {
96
- return _interopRequireWildcard(require('@digigov/react-icons/UncheckIcon'));
97
- }).then(function (module) {
98
- return {
99
- "default": module['UncheckIcon']
100
- };
101
- });
102
- }),
103
- 'MoreVertIcon': /*#__PURE__*/(0, _react.lazy)(function () {
104
- return Promise.resolve().then(function () {
105
- return _interopRequireWildcard(require('@digigov/react-icons/MoreVertIcon'));
106
- }).then(function (module) {
107
- return {
108
- "default": module['MoreVertIcon']
109
- };
110
- });
111
- }),
112
- 'SearchIcon': /*#__PURE__*/(0, _react.lazy)(function () {
113
- return Promise.resolve().then(function () {
114
- return _interopRequireWildcard(require('@digigov/react-icons/SearchIcon'));
115
- }).then(function (module) {
116
- return {
117
- "default": module['SearchIcon']
118
- };
119
- });
120
- })
121
- };