@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,26 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+
4
+ import PlusIcon from '@digigov/react-icons/PlusIcon';
5
+
6
+ it('renders the PlusIcon with no props', () => {
7
+ expect(mount(<PlusIcon />)).toMatchSnapshot();
8
+ });
9
+ it('renders the PlusIcon with prop size=m', () => {
10
+ expect(mount(<PlusIcon size="md" />)).toMatchSnapshot();
11
+ });
12
+ it('renders the PlusIcon with prop size=xl', () => {
13
+ expect(mount(<PlusIcon size="xl" />)).toMatchSnapshot();
14
+ });
15
+ it('renders the PlusIcon with prop variant=light', () => {
16
+ expect(mount(<PlusIcon variant="light" />)).toMatchSnapshot();
17
+ });
18
+ it('renders the PlusIcon with prop variant=warning', () => {
19
+ expect(mount(<PlusIcon variant="warning" />)).toMatchSnapshot();
20
+ });
21
+ it('renders the PlusIcon with prop variant=warning and size=s', () => {
22
+ expect(mount(<PlusIcon variant="warning" size="sm" />)).toMatchSnapshot();
23
+ });
24
+ it('renders the PlusIcon with prop variant=error and size= xl', () => {
25
+ expect(mount(<PlusIcon 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 PlusIcon: React.FC<IconProps<'plus'>> = (props) => {
5
+ return <Icon {...props} icon="plus"></Icon>;
6
+ };
7
+
8
+ export default PlusIcon;
@@ -0,0 +1,304 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the PrintIcon with no props 1`] = `
4
+ <PrintIcon>
5
+ <ForwardRef(Icon)
6
+ icon="print"
7
+ >
8
+ <ForwardRef(SvgIcon)
9
+ className="ds-svg-icon--print"
10
+ >
11
+ <ForwardRef(Base)
12
+ aria-hidden="true"
13
+ as="svg"
14
+ className="ds-svg-icon--print ds-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ >
18
+ <svg
19
+ aria-hidden="true"
20
+ className="ds-svg-icon--print ds-svg-icon"
21
+ focusable="false"
22
+ viewBox="0 0 24 24"
23
+ >
24
+ <print>
25
+ <rect
26
+ height="4"
27
+ width="10"
28
+ x="7"
29
+ y="2"
30
+ />
31
+ <path
32
+ d="M18.7,7.935H5.3c-1.823,0-3.3,1.477-3.3,3.3v6.7h2.4v4.065h15.2v-4.065h2.4v-6.7c0-1.823-1.477-3.3-3.3-3.3ZM17,19.4H7v-5h10v5ZM18.7,12.535c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z"
33
+ />
34
+ </print>
35
+ </svg>
36
+ </ForwardRef(Base)>
37
+ </ForwardRef(SvgIcon)>
38
+ </ForwardRef(Icon)>
39
+ </PrintIcon>
40
+ `;
41
+
42
+ exports[`renders the PrintIcon with prop size=md 1`] = `
43
+ <PrintIcon
44
+ size="md"
45
+ >
46
+ <ForwardRef(Icon)
47
+ icon="print"
48
+ size="md"
49
+ >
50
+ <ForwardRef(SvgIcon)
51
+ className="ds-svg-icon--print"
52
+ size="md"
53
+ >
54
+ <ForwardRef(Base)
55
+ aria-hidden="true"
56
+ as="svg"
57
+ className="ds-svg-icon--print ds-svg-icon--md ds-svg-icon"
58
+ focusable="false"
59
+ viewBox="0 0 24 24"
60
+ >
61
+ <svg
62
+ aria-hidden="true"
63
+ className="ds-svg-icon--print ds-svg-icon--md ds-svg-icon"
64
+ focusable="false"
65
+ viewBox="0 0 24 24"
66
+ >
67
+ <print>
68
+ <rect
69
+ height="4"
70
+ width="10"
71
+ x="7"
72
+ y="2"
73
+ />
74
+ <path
75
+ d="M18.7,7.935H5.3c-1.823,0-3.3,1.477-3.3,3.3v6.7h2.4v4.065h15.2v-4.065h2.4v-6.7c0-1.823-1.477-3.3-3.3-3.3ZM17,19.4H7v-5h10v5ZM18.7,12.535c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z"
76
+ />
77
+ </print>
78
+ </svg>
79
+ </ForwardRef(Base)>
80
+ </ForwardRef(SvgIcon)>
81
+ </ForwardRef(Icon)>
82
+ </PrintIcon>
83
+ `;
84
+
85
+ exports[`renders the PrintIcon with prop size=xl 1`] = `
86
+ <PrintIcon
87
+ size="xl"
88
+ >
89
+ <ForwardRef(Icon)
90
+ icon="print"
91
+ size="xl"
92
+ >
93
+ <ForwardRef(SvgIcon)
94
+ className="ds-svg-icon--print"
95
+ size="xl"
96
+ >
97
+ <ForwardRef(Base)
98
+ aria-hidden="true"
99
+ as="svg"
100
+ className="ds-svg-icon--print ds-svg-icon--xl ds-svg-icon"
101
+ focusable="false"
102
+ viewBox="0 0 24 24"
103
+ >
104
+ <svg
105
+ aria-hidden="true"
106
+ className="ds-svg-icon--print ds-svg-icon--xl ds-svg-icon"
107
+ focusable="false"
108
+ viewBox="0 0 24 24"
109
+ >
110
+ <print>
111
+ <rect
112
+ height="4"
113
+ width="10"
114
+ x="7"
115
+ y="2"
116
+ />
117
+ <path
118
+ d="M18.7,7.935H5.3c-1.823,0-3.3,1.477-3.3,3.3v6.7h2.4v4.065h15.2v-4.065h2.4v-6.7c0-1.823-1.477-3.3-3.3-3.3ZM17,19.4H7v-5h10v5ZM18.7,12.535c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z"
119
+ />
120
+ </print>
121
+ </svg>
122
+ </ForwardRef(Base)>
123
+ </ForwardRef(SvgIcon)>
124
+ </ForwardRef(Icon)>
125
+ </PrintIcon>
126
+ `;
127
+
128
+ exports[`renders the PrintIcon with prop variant=error and size=sm 1`] = `
129
+ <PrintIcon
130
+ size="sm"
131
+ variant="error"
132
+ >
133
+ <ForwardRef(Icon)
134
+ icon="print"
135
+ size="sm"
136
+ variant="error"
137
+ >
138
+ <ForwardRef(SvgIcon)
139
+ className="ds-svg-icon--print"
140
+ size="sm"
141
+ variant="error"
142
+ >
143
+ <ForwardRef(Base)
144
+ aria-hidden="true"
145
+ as="svg"
146
+ className="ds-svg-icon--print ds-svg-icon--error ds-svg-icon--sm ds-svg-icon"
147
+ focusable="false"
148
+ viewBox="0 0 24 24"
149
+ >
150
+ <svg
151
+ aria-hidden="true"
152
+ className="ds-svg-icon--print ds-svg-icon--error ds-svg-icon--sm ds-svg-icon"
153
+ focusable="false"
154
+ viewBox="0 0 24 24"
155
+ >
156
+ <print>
157
+ <rect
158
+ height="4"
159
+ width="10"
160
+ x="7"
161
+ y="2"
162
+ />
163
+ <path
164
+ d="M18.7,7.935H5.3c-1.823,0-3.3,1.477-3.3,3.3v6.7h2.4v4.065h15.2v-4.065h2.4v-6.7c0-1.823-1.477-3.3-3.3-3.3ZM17,19.4H7v-5h10v5ZM18.7,12.535c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z"
165
+ />
166
+ </print>
167
+ </svg>
168
+ </ForwardRef(Base)>
169
+ </ForwardRef(SvgIcon)>
170
+ </ForwardRef(Icon)>
171
+ </PrintIcon>
172
+ `;
173
+
174
+ exports[`renders the PrintIcon with prop variant=info and size= xl 1`] = `
175
+ <PrintIcon
176
+ size="xl"
177
+ variant="info"
178
+ >
179
+ <ForwardRef(Icon)
180
+ icon="print"
181
+ size="xl"
182
+ variant="info"
183
+ >
184
+ <ForwardRef(SvgIcon)
185
+ className="ds-svg-icon--print"
186
+ size="xl"
187
+ variant="info"
188
+ >
189
+ <ForwardRef(Base)
190
+ aria-hidden="true"
191
+ as="svg"
192
+ className="ds-svg-icon--print ds-svg-icon--info ds-svg-icon--xl ds-svg-icon"
193
+ focusable="false"
194
+ viewBox="0 0 24 24"
195
+ >
196
+ <svg
197
+ aria-hidden="true"
198
+ className="ds-svg-icon--print ds-svg-icon--info ds-svg-icon--xl ds-svg-icon"
199
+ focusable="false"
200
+ viewBox="0 0 24 24"
201
+ >
202
+ <print>
203
+ <rect
204
+ height="4"
205
+ width="10"
206
+ x="7"
207
+ y="2"
208
+ />
209
+ <path
210
+ d="M18.7,7.935H5.3c-1.823,0-3.3,1.477-3.3,3.3v6.7h2.4v4.065h15.2v-4.065h2.4v-6.7c0-1.823-1.477-3.3-3.3-3.3ZM17,19.4H7v-5h10v5ZM18.7,12.535c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z"
211
+ />
212
+ </print>
213
+ </svg>
214
+ </ForwardRef(Base)>
215
+ </ForwardRef(SvgIcon)>
216
+ </ForwardRef(Icon)>
217
+ </PrintIcon>
218
+ `;
219
+
220
+ exports[`renders the PrintIcon with prop variant=light 1`] = `
221
+ <PrintIcon
222
+ variant="light"
223
+ >
224
+ <ForwardRef(Icon)
225
+ icon="print"
226
+ variant="light"
227
+ >
228
+ <ForwardRef(SvgIcon)
229
+ className="ds-svg-icon--print"
230
+ variant="light"
231
+ >
232
+ <ForwardRef(Base)
233
+ aria-hidden="true"
234
+ as="svg"
235
+ className="ds-svg-icon--print ds-svg-icon--light ds-svg-icon"
236
+ focusable="false"
237
+ viewBox="0 0 24 24"
238
+ >
239
+ <svg
240
+ aria-hidden="true"
241
+ className="ds-svg-icon--print ds-svg-icon--light ds-svg-icon"
242
+ focusable="false"
243
+ viewBox="0 0 24 24"
244
+ >
245
+ <print>
246
+ <rect
247
+ height="4"
248
+ width="10"
249
+ x="7"
250
+ y="2"
251
+ />
252
+ <path
253
+ d="M18.7,7.935H5.3c-1.823,0-3.3,1.477-3.3,3.3v6.7h2.4v4.065h15.2v-4.065h2.4v-6.7c0-1.823-1.477-3.3-3.3-3.3ZM17,19.4H7v-5h10v5ZM18.7,12.535c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z"
254
+ />
255
+ </print>
256
+ </svg>
257
+ </ForwardRef(Base)>
258
+ </ForwardRef(SvgIcon)>
259
+ </ForwardRef(Icon)>
260
+ </PrintIcon>
261
+ `;
262
+
263
+ exports[`renders the PrintIcon with prop variant=warning 1`] = `
264
+ <PrintIcon
265
+ variant="warning"
266
+ >
267
+ <ForwardRef(Icon)
268
+ icon="print"
269
+ variant="warning"
270
+ >
271
+ <ForwardRef(SvgIcon)
272
+ className="ds-svg-icon--print"
273
+ variant="warning"
274
+ >
275
+ <ForwardRef(Base)
276
+ aria-hidden="true"
277
+ as="svg"
278
+ className="ds-svg-icon--print ds-svg-icon--warning ds-svg-icon"
279
+ focusable="false"
280
+ viewBox="0 0 24 24"
281
+ >
282
+ <svg
283
+ aria-hidden="true"
284
+ className="ds-svg-icon--print ds-svg-icon--warning ds-svg-icon"
285
+ focusable="false"
286
+ viewBox="0 0 24 24"
287
+ >
288
+ <print>
289
+ <rect
290
+ height="4"
291
+ width="10"
292
+ x="7"
293
+ y="2"
294
+ />
295
+ <path
296
+ d="M18.7,7.935H5.3c-1.823,0-3.3,1.477-3.3,3.3v6.7h2.4v4.065h15.2v-4.065h2.4v-6.7c0-1.823-1.477-3.3-3.3-3.3ZM17,19.4H7v-5h10v5ZM18.7,12.535c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z"
297
+ />
298
+ </print>
299
+ </svg>
300
+ </ForwardRef(Base)>
301
+ </ForwardRef(SvgIcon)>
302
+ </ForwardRef(Icon)>
303
+ </PrintIcon>
304
+ `;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+
3
+ export interface PrintType {}
4
+
5
+ export function print(): React.ReactElement {
6
+ return (
7
+ <>
8
+ <rect x="7" y="2" width="10" height="4" />
9
+ <path d="M18.7,7.935H5.3c-1.823,0-3.3,1.477-3.3,3.3v6.7h2.4v4.065h15.2v-4.065h2.4v-6.7c0-1.823-1.477-3.3-3.3-3.3ZM17,19.4H7v-5h10v5ZM18.7,12.535c-.718,0-1.3-.582-1.3-1.3s.582-1.3,1.3-1.3,1.3.582,1.3,1.3-.582,1.3-1.3,1.3Z" />
10
+ </>
11
+ );
12
+ }
13
+
14
+ print.props = [];
15
+
16
+ export default print;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+
4
+ import PrintIcon from '@digigov/react-icons/PrintIcon';
5
+
6
+ it('renders the PrintIcon with no props', () => {
7
+ expect(mount(<PrintIcon />)).toMatchSnapshot();
8
+ });
9
+ it('renders the PrintIcon with prop size=md', () => {
10
+ expect(mount(<PrintIcon size="md" />)).toMatchSnapshot();
11
+ });
12
+ it('renders the PrintIcon with prop size=xl', () => {
13
+ expect(mount(<PrintIcon size="xl" />)).toMatchSnapshot();
14
+ });
15
+ it('renders the PrintIcon with prop variant=light', () => {
16
+ expect(mount(<PrintIcon variant="light" />)).toMatchSnapshot();
17
+ });
18
+ it('renders the PrintIcon with prop variant=warning', () => {
19
+ expect(mount(<PrintIcon variant="warning" />)).toMatchSnapshot();
20
+ });
21
+ it('renders the PrintIcon with prop variant=error and size=sm', () => {
22
+ expect(mount(<PrintIcon variant="error" size="sm" />)).toMatchSnapshot();
23
+ });
24
+ it('renders the PrintIcon with prop variant=info and size= xl', () => {
25
+ expect(mount(<PrintIcon variant="info" 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 PrintIcon: React.FC<IconProps<'print'>> = (props) => {
5
+ return <Icon {...props} icon="print"></Icon>;
6
+ };
7
+
8
+ export default PrintIcon;
@@ -0,0 +1,262 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the ReplyIcon with no props 1`] = `
4
+ <ReplyIcon>
5
+ <ForwardRef(Icon)
6
+ icon="reply"
7
+ >
8
+ <ForwardRef(SvgIcon)
9
+ className="ds-svg-icon--reply"
10
+ >
11
+ <ForwardRef(Base)
12
+ aria-hidden="true"
13
+ as="svg"
14
+ className="ds-svg-icon--reply ds-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ >
18
+ <svg
19
+ aria-hidden="true"
20
+ className="ds-svg-icon--reply ds-svg-icon"
21
+ focusable="false"
22
+ viewBox="0 0 24 24"
23
+ >
24
+ <reply>
25
+ <path
26
+ d="M16.35,9.517h-8.034l4.184-4.184-2.334-2.333L2,11.167l8.166,8.167,2.334-2.334-4.184-4.183h8.033c1.296,0,2.35,1.054,2.35,2.35v5.834h3.301v-5.834c0-3.115-2.535-5.65-5.65-5.65Z"
27
+ />
28
+ </reply>
29
+ </svg>
30
+ </ForwardRef(Base)>
31
+ </ForwardRef(SvgIcon)>
32
+ </ForwardRef(Icon)>
33
+ </ReplyIcon>
34
+ `;
35
+
36
+ exports[`renders the ReplyIcon with prop size=md 1`] = `
37
+ <ReplyIcon
38
+ size="md"
39
+ >
40
+ <ForwardRef(Icon)
41
+ icon="reply"
42
+ size="md"
43
+ >
44
+ <ForwardRef(SvgIcon)
45
+ className="ds-svg-icon--reply"
46
+ size="md"
47
+ >
48
+ <ForwardRef(Base)
49
+ aria-hidden="true"
50
+ as="svg"
51
+ className="ds-svg-icon--reply ds-svg-icon--md ds-svg-icon"
52
+ focusable="false"
53
+ viewBox="0 0 24 24"
54
+ >
55
+ <svg
56
+ aria-hidden="true"
57
+ className="ds-svg-icon--reply ds-svg-icon--md ds-svg-icon"
58
+ focusable="false"
59
+ viewBox="0 0 24 24"
60
+ >
61
+ <reply>
62
+ <path
63
+ d="M16.35,9.517h-8.034l4.184-4.184-2.334-2.333L2,11.167l8.166,8.167,2.334-2.334-4.184-4.183h8.033c1.296,0,2.35,1.054,2.35,2.35v5.834h3.301v-5.834c0-3.115-2.535-5.65-5.65-5.65Z"
64
+ />
65
+ </reply>
66
+ </svg>
67
+ </ForwardRef(Base)>
68
+ </ForwardRef(SvgIcon)>
69
+ </ForwardRef(Icon)>
70
+ </ReplyIcon>
71
+ `;
72
+
73
+ exports[`renders the ReplyIcon with prop size=xl 1`] = `
74
+ <ReplyIcon
75
+ size="xl"
76
+ >
77
+ <ForwardRef(Icon)
78
+ icon="reply"
79
+ size="xl"
80
+ >
81
+ <ForwardRef(SvgIcon)
82
+ className="ds-svg-icon--reply"
83
+ size="xl"
84
+ >
85
+ <ForwardRef(Base)
86
+ aria-hidden="true"
87
+ as="svg"
88
+ className="ds-svg-icon--reply ds-svg-icon--xl ds-svg-icon"
89
+ focusable="false"
90
+ viewBox="0 0 24 24"
91
+ >
92
+ <svg
93
+ aria-hidden="true"
94
+ className="ds-svg-icon--reply ds-svg-icon--xl ds-svg-icon"
95
+ focusable="false"
96
+ viewBox="0 0 24 24"
97
+ >
98
+ <reply>
99
+ <path
100
+ d="M16.35,9.517h-8.034l4.184-4.184-2.334-2.333L2,11.167l8.166,8.167,2.334-2.334-4.184-4.183h8.033c1.296,0,2.35,1.054,2.35,2.35v5.834h3.301v-5.834c0-3.115-2.535-5.65-5.65-5.65Z"
101
+ />
102
+ </reply>
103
+ </svg>
104
+ </ForwardRef(Base)>
105
+ </ForwardRef(SvgIcon)>
106
+ </ForwardRef(Icon)>
107
+ </ReplyIcon>
108
+ `;
109
+
110
+ exports[`renders the ReplyIcon with prop variant=error and size= xl 1`] = `
111
+ <ReplyIcon
112
+ size="xl"
113
+ variant="warning"
114
+ >
115
+ <ForwardRef(Icon)
116
+ icon="reply"
117
+ size="xl"
118
+ variant="warning"
119
+ >
120
+ <ForwardRef(SvgIcon)
121
+ className="ds-svg-icon--reply"
122
+ size="xl"
123
+ variant="warning"
124
+ >
125
+ <ForwardRef(Base)
126
+ aria-hidden="true"
127
+ as="svg"
128
+ className="ds-svg-icon--reply ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
129
+ focusable="false"
130
+ viewBox="0 0 24 24"
131
+ >
132
+ <svg
133
+ aria-hidden="true"
134
+ className="ds-svg-icon--reply ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
135
+ focusable="false"
136
+ viewBox="0 0 24 24"
137
+ >
138
+ <reply>
139
+ <path
140
+ d="M16.35,9.517h-8.034l4.184-4.184-2.334-2.333L2,11.167l8.166,8.167,2.334-2.334-4.184-4.183h8.033c1.296,0,2.35,1.054,2.35,2.35v5.834h3.301v-5.834c0-3.115-2.535-5.65-5.65-5.65Z"
141
+ />
142
+ </reply>
143
+ </svg>
144
+ </ForwardRef(Base)>
145
+ </ForwardRef(SvgIcon)>
146
+ </ForwardRef(Icon)>
147
+ </ReplyIcon>
148
+ `;
149
+
150
+ exports[`renders the ReplyIcon with prop variant=light 1`] = `
151
+ <ReplyIcon
152
+ variant="light"
153
+ >
154
+ <ForwardRef(Icon)
155
+ icon="reply"
156
+ variant="light"
157
+ >
158
+ <ForwardRef(SvgIcon)
159
+ className="ds-svg-icon--reply"
160
+ variant="light"
161
+ >
162
+ <ForwardRef(Base)
163
+ aria-hidden="true"
164
+ as="svg"
165
+ className="ds-svg-icon--reply ds-svg-icon--light ds-svg-icon"
166
+ focusable="false"
167
+ viewBox="0 0 24 24"
168
+ >
169
+ <svg
170
+ aria-hidden="true"
171
+ className="ds-svg-icon--reply ds-svg-icon--light ds-svg-icon"
172
+ focusable="false"
173
+ viewBox="0 0 24 24"
174
+ >
175
+ <reply>
176
+ <path
177
+ d="M16.35,9.517h-8.034l4.184-4.184-2.334-2.333L2,11.167l8.166,8.167,2.334-2.334-4.184-4.183h8.033c1.296,0,2.35,1.054,2.35,2.35v5.834h3.301v-5.834c0-3.115-2.535-5.65-5.65-5.65Z"
178
+ />
179
+ </reply>
180
+ </svg>
181
+ </ForwardRef(Base)>
182
+ </ForwardRef(SvgIcon)>
183
+ </ForwardRef(Icon)>
184
+ </ReplyIcon>
185
+ `;
186
+
187
+ exports[`renders the ReplyIcon with prop variant=warning 1`] = `
188
+ <ReplyIcon
189
+ variant="warning"
190
+ >
191
+ <ForwardRef(Icon)
192
+ icon="reply"
193
+ variant="warning"
194
+ >
195
+ <ForwardRef(SvgIcon)
196
+ className="ds-svg-icon--reply"
197
+ variant="warning"
198
+ >
199
+ <ForwardRef(Base)
200
+ aria-hidden="true"
201
+ as="svg"
202
+ className="ds-svg-icon--reply ds-svg-icon--warning ds-svg-icon"
203
+ focusable="false"
204
+ viewBox="0 0 24 24"
205
+ >
206
+ <svg
207
+ aria-hidden="true"
208
+ className="ds-svg-icon--reply ds-svg-icon--warning ds-svg-icon"
209
+ focusable="false"
210
+ viewBox="0 0 24 24"
211
+ >
212
+ <reply>
213
+ <path
214
+ d="M16.35,9.517h-8.034l4.184-4.184-2.334-2.333L2,11.167l8.166,8.167,2.334-2.334-4.184-4.183h8.033c1.296,0,2.35,1.054,2.35,2.35v5.834h3.301v-5.834c0-3.115-2.535-5.65-5.65-5.65Z"
215
+ />
216
+ </reply>
217
+ </svg>
218
+ </ForwardRef(Base)>
219
+ </ForwardRef(SvgIcon)>
220
+ </ForwardRef(Icon)>
221
+ </ReplyIcon>
222
+ `;
223
+
224
+ exports[`renders the ReplyIcon with prop variant=warning and size=sm 1`] = `
225
+ <ReplyIcon
226
+ size="sm"
227
+ variant="warning"
228
+ >
229
+ <ForwardRef(Icon)
230
+ icon="reply"
231
+ size="sm"
232
+ variant="warning"
233
+ >
234
+ <ForwardRef(SvgIcon)
235
+ className="ds-svg-icon--reply"
236
+ size="sm"
237
+ variant="warning"
238
+ >
239
+ <ForwardRef(Base)
240
+ aria-hidden="true"
241
+ as="svg"
242
+ className="ds-svg-icon--reply ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
243
+ focusable="false"
244
+ viewBox="0 0 24 24"
245
+ >
246
+ <svg
247
+ aria-hidden="true"
248
+ className="ds-svg-icon--reply ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
249
+ focusable="false"
250
+ viewBox="0 0 24 24"
251
+ >
252
+ <reply>
253
+ <path
254
+ d="M16.35,9.517h-8.034l4.184-4.184-2.334-2.333L2,11.167l8.166,8.167,2.334-2.334-4.184-4.183h8.033c1.296,0,2.35,1.054,2.35,2.35v5.834h3.301v-5.834c0-3.115-2.535-5.65-5.65-5.65Z"
255
+ />
256
+ </reply>
257
+ </svg>
258
+ </ForwardRef(Base)>
259
+ </ForwardRef(SvgIcon)>
260
+ </ForwardRef(Icon)>
261
+ </ReplyIcon>
262
+ `;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+
3
+ export interface ReplyType {}
4
+
5
+ export function reply(): React.ReactElement {
6
+ return (
7
+ <>
8
+ <path d="M16.35,9.517h-8.034l4.184-4.184-2.334-2.333L2,11.167l8.166,8.167,2.334-2.334-4.184-4.183h8.033c1.296,0,2.35,1.054,2.35,2.35v5.834h3.301v-5.834c0-3.115-2.535-5.65-5.65-5.65Z" />
9
+ </>
10
+ );
11
+ }
12
+
13
+ reply.props = [];
14
+
15
+ export default reply;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+
4
+ import ReplyIcon from '@digigov/react-icons/ReplyIcon';
5
+
6
+ it('renders the ReplyIcon with no props', () => {
7
+ expect(mount(<ReplyIcon />)).toMatchSnapshot();
8
+ });
9
+ it('renders the ReplyIcon with prop size=md', () => {
10
+ expect(mount(<ReplyIcon size="md" />)).toMatchSnapshot();
11
+ });
12
+ it('renders the ReplyIcon with prop size=xl', () => {
13
+ expect(mount(<ReplyIcon size="xl" />)).toMatchSnapshot();
14
+ });
15
+ it('renders the ReplyIcon with prop variant=light', () => {
16
+ expect(mount(<ReplyIcon variant="light" />)).toMatchSnapshot();
17
+ });
18
+ it('renders the ReplyIcon with prop variant=warning', () => {
19
+ expect(mount(<ReplyIcon variant="warning" />)).toMatchSnapshot();
20
+ });
21
+ it('renders the ReplyIcon with prop variant=warning and size=sm', () => {
22
+ expect(mount(<ReplyIcon variant="warning" size="sm" />)).toMatchSnapshot();
23
+ });
24
+ it('renders the ReplyIcon with prop variant=error and size= xl', () => {
25
+ expect(mount(<ReplyIcon variant="warning" size="xl" />)).toMatchSnapshot();
26
+ });