@digigov/react-icons 1.2.0-dcbd7ded → 2.0.0-4be8f7cc

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 (282) 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/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
  5. package/BurgerIcon/index.test/index.js +8 -8
  6. package/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  7. package/CancelIcon/config/index.js +9 -0
  8. package/CancelIcon/config/package.json +6 -0
  9. package/CancelIcon/config.d.ts +8 -0
  10. package/CancelIcon/index.d.ts +4 -0
  11. package/CancelIcon/index.js +9 -0
  12. package/CancelIcon/index.test/index.js +45 -0
  13. package/CancelIcon/index.test/package.json +6 -0
  14. package/CancelIcon/index.test.d.ts +1 -0
  15. package/CancelIcon/package.json +6 -0
  16. package/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  17. package/ChatIcon/config/index.js +17 -0
  18. package/ChatIcon/config/package.json +6 -0
  19. package/ChatIcon/config.d.ts +11 -0
  20. package/ChatIcon/index.d.ts +4 -0
  21. package/ChatIcon/index.js +9 -0
  22. package/ChatIcon/index.test/index.js +51 -0
  23. package/ChatIcon/index.test/package.json +6 -0
  24. package/ChatIcon/index.test.d.ts +1 -0
  25. package/ChatIcon/package.json +6 -0
  26. package/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
  27. package/CheckIcon/index.test/index.js +10 -10
  28. package/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  29. package/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  30. package/DownloadIcon/config/index.js +14 -0
  31. package/DownloadIcon/config/package.json +6 -0
  32. package/DownloadIcon/config.d.ts +8 -0
  33. package/DownloadIcon/index.d.ts +4 -0
  34. package/DownloadIcon/index.js +9 -0
  35. package/DownloadIcon/index.test/index.js +45 -0
  36. package/DownloadIcon/index.test/package.json +6 -0
  37. package/DownloadIcon/index.test.d.ts +1 -0
  38. package/DownloadIcon/package.json +6 -0
  39. package/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  40. package/ExclamationIcon/config/index.js +14 -0
  41. package/ExclamationIcon/config/package.json +6 -0
  42. package/ExclamationIcon/config.d.ts +8 -0
  43. package/ExclamationIcon/index.d.ts +4 -0
  44. package/ExclamationIcon/index.js +9 -0
  45. package/ExclamationIcon/index.test/index.js +45 -0
  46. package/ExclamationIcon/index.test/package.json +6 -0
  47. package/ExclamationIcon/index.test.d.ts +1 -0
  48. package/ExclamationIcon/package.json +6 -0
  49. package/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
  50. package/GlobeIcon/config/index.js +2 -2
  51. package/GlobeIcon/index.test/index.js +6 -6
  52. package/Icon/__snapshots__/index.test.tsx.snap +11 -12
  53. package/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  54. package/LockIcon/config/index.js +9 -0
  55. package/LockIcon/config/package.json +6 -0
  56. package/LockIcon/config.d.ts +8 -0
  57. package/LockIcon/index.d.ts +4 -0
  58. package/LockIcon/index.js +9 -0
  59. package/LockIcon/index.test/index.js +45 -0
  60. package/LockIcon/index.test/package.json +6 -0
  61. package/LockIcon/index.test.d.ts +1 -0
  62. package/LockIcon/package.json +6 -0
  63. package/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  64. package/LoginIcon/config/index.js +12 -0
  65. package/LoginIcon/config/package.json +6 -0
  66. package/LoginIcon/config.d.ts +8 -0
  67. package/LoginIcon/index.d.ts +4 -0
  68. package/LoginIcon/index.js +9 -0
  69. package/LoginIcon/index.test/index.js +45 -0
  70. package/LoginIcon/index.test/package.json +6 -0
  71. package/LoginIcon/index.test.d.ts +1 -0
  72. package/LoginIcon/package.json +6 -0
  73. package/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  74. package/MinusIcon/config/index.js +12 -0
  75. package/MinusIcon/config/package.json +6 -0
  76. package/MinusIcon/config.d.ts +8 -0
  77. package/MinusIcon/index.d.ts +4 -0
  78. package/MinusIcon/index.js +9 -0
  79. package/MinusIcon/index.test/index.js +45 -0
  80. package/MinusIcon/index.test/package.json +6 -0
  81. package/MinusIcon/index.test.d.ts +1 -0
  82. package/MinusIcon/package.json +6 -0
  83. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
  84. package/MoreVertIcon/index.test/index.js +12 -12
  85. package/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  86. package/PdfFileIcon/config/index.js +15 -0
  87. package/PdfFileIcon/config/package.json +6 -0
  88. package/PdfFileIcon/config.d.ts +8 -0
  89. package/PdfFileIcon/index.d.ts +4 -0
  90. package/PdfFileIcon/index.js +9 -0
  91. package/PdfFileIcon/index.test/index.js +45 -0
  92. package/PdfFileIcon/index.test/package.json +6 -0
  93. package/PdfFileIcon/index.test.d.ts +1 -0
  94. package/PdfFileIcon/package.json +6 -0
  95. package/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  96. package/PlusIcon/config/index.js +9 -0
  97. package/PlusIcon/config/package.json +6 -0
  98. package/PlusIcon/config.d.ts +8 -0
  99. package/PlusIcon/index.d.ts +4 -0
  100. package/PlusIcon/index.js +9 -0
  101. package/PlusIcon/index.test/index.js +45 -0
  102. package/PlusIcon/index.test/package.json +6 -0
  103. package/PlusIcon/index.test.d.ts +1 -0
  104. package/PlusIcon/package.json +6 -0
  105. package/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  106. package/PrintIcon/config/index.js +15 -0
  107. package/PrintIcon/config/package.json +6 -0
  108. package/PrintIcon/config.d.ts +8 -0
  109. package/PrintIcon/index.d.ts +4 -0
  110. package/PrintIcon/index.js +9 -0
  111. package/PrintIcon/index.test/index.js +45 -0
  112. package/PrintIcon/index.test/package.json +6 -0
  113. package/PrintIcon/index.test.d.ts +1 -0
  114. package/PrintIcon/package.json +6 -0
  115. package/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  116. package/ReplyIcon/config/index.js +9 -0
  117. package/ReplyIcon/config/package.json +6 -0
  118. package/ReplyIcon/config.d.ts +8 -0
  119. package/ReplyIcon/index.d.ts +4 -0
  120. package/ReplyIcon/index.js +9 -0
  121. package/ReplyIcon/index.test/index.js +45 -0
  122. package/ReplyIcon/index.test/package.json +6 -0
  123. package/ReplyIcon/index.test.d.ts +1 -0
  124. package/ReplyIcon/package.json +6 -0
  125. package/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  126. package/RestoreIcon/config/index.js +17 -0
  127. package/RestoreIcon/config/package.json +6 -0
  128. package/RestoreIcon/config.d.ts +8 -0
  129. package/RestoreIcon/index.d.ts +4 -0
  130. package/RestoreIcon/index.js +9 -0
  131. package/RestoreIcon/index.test/index.js +45 -0
  132. package/RestoreIcon/index.test/package.json +6 -0
  133. package/RestoreIcon/index.test.d.ts +1 -0
  134. package/RestoreIcon/package.json +6 -0
  135. package/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
  136. package/UncheckIcon/index.test/index.js +12 -12
  137. package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
  138. package/cjs/AccessibilityIcon/index.test/index.js +12 -12
  139. package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  140. package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
  141. package/cjs/BurgerIcon/index.test/index.js +8 -8
  142. package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  143. package/cjs/CancelIcon/config/index.js +17 -0
  144. package/cjs/CancelIcon/index.js +16 -0
  145. package/cjs/CancelIcon/index.test/index.js +48 -0
  146. package/cjs/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  147. package/cjs/ChatIcon/config/index.js +24 -0
  148. package/cjs/ChatIcon/index.js +16 -0
  149. package/cjs/ChatIcon/index.test/index.js +54 -0
  150. package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
  151. package/cjs/CheckIcon/index.test/index.js +10 -10
  152. package/cjs/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  153. package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  154. package/cjs/DownloadIcon/config/index.js +22 -0
  155. package/cjs/DownloadIcon/index.js +16 -0
  156. package/cjs/DownloadIcon/index.test/index.js +48 -0
  157. package/cjs/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  158. package/cjs/ExclamationIcon/config/index.js +22 -0
  159. package/cjs/ExclamationIcon/index.js +16 -0
  160. package/cjs/ExclamationIcon/index.test/index.js +48 -0
  161. package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
  162. package/cjs/GlobeIcon/config/index.js +2 -2
  163. package/cjs/GlobeIcon/index.test/index.js +6 -6
  164. package/cjs/Icon/__snapshots__/index.test.tsx.snap +11 -12
  165. package/cjs/Icon/index.js +1 -1
  166. package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  167. package/cjs/LockIcon/config/index.js +17 -0
  168. package/cjs/LockIcon/index.js +16 -0
  169. package/cjs/LockIcon/index.test/index.js +48 -0
  170. package/cjs/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  171. package/cjs/LoginIcon/config/index.js +20 -0
  172. package/cjs/LoginIcon/index.js +16 -0
  173. package/cjs/LoginIcon/index.test/index.js +48 -0
  174. package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  175. package/cjs/MinusIcon/config/index.js +20 -0
  176. package/cjs/MinusIcon/index.js +16 -0
  177. package/cjs/MinusIcon/index.test/index.js +48 -0
  178. package/cjs/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
  179. package/cjs/MoreVertIcon/index.test/index.js +12 -12
  180. package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  181. package/cjs/PdfFileIcon/config/index.js +23 -0
  182. package/cjs/PdfFileIcon/index.js +16 -0
  183. package/cjs/PdfFileIcon/index.test/index.js +48 -0
  184. package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  185. package/cjs/PlusIcon/config/index.js +17 -0
  186. package/cjs/PlusIcon/index.js +16 -0
  187. package/cjs/PlusIcon/index.test/index.js +48 -0
  188. package/cjs/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  189. package/cjs/PrintIcon/config/index.js +23 -0
  190. package/cjs/PrintIcon/index.js +16 -0
  191. package/cjs/PrintIcon/index.test/index.js +48 -0
  192. package/cjs/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  193. package/cjs/ReplyIcon/config/index.js +17 -0
  194. package/cjs/ReplyIcon/index.js +16 -0
  195. package/cjs/ReplyIcon/index.test/index.js +48 -0
  196. package/cjs/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  197. package/cjs/RestoreIcon/config/index.js +25 -0
  198. package/cjs/RestoreIcon/index.js +16 -0
  199. package/cjs/RestoreIcon/index.test/index.js +48 -0
  200. package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
  201. package/cjs/UncheckIcon/index.test/index.js +12 -12
  202. package/cjs/icons/index.js +132 -0
  203. package/cjs/index.js +132 -0
  204. package/cjs/lazy/index.js +108 -0
  205. package/cjs/registry/index.js +24 -0
  206. package/icons/index.js +12 -0
  207. package/icons.d.ts +36 -0
  208. package/index.d.ts +12 -0
  209. package/index.js +14 -2
  210. package/lazy/index.js +84 -0
  211. package/lazy.d.ts +12 -0
  212. package/package.json +4 -3
  213. package/registry/index.js +24 -0
  214. package/registry.d.ts +12 -0
  215. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +51 -51
  216. package/src/AccessibilityIcon/index.test.tsx +12 -12
  217. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +8 -8
  218. package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +22 -22
  219. package/src/BurgerIcon/index.test.tsx +8 -8
  220. package/src/CancelIcon/__snapshots__/index.test.tsx.snap +262 -0
  221. package/src/CancelIcon/config.tsx +15 -0
  222. package/src/CancelIcon/index.test.tsx +26 -0
  223. package/src/CancelIcon/index.tsx +8 -0
  224. package/src/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
  225. package/src/ChatIcon/config.tsx +28 -0
  226. package/src/ChatIcon/index.test.tsx +29 -0
  227. package/src/ChatIcon/index.tsx +8 -0
  228. package/src/CheckIcon/__snapshots__/index.test.tsx.snap +48 -48
  229. package/src/CheckIcon/index.test.tsx +10 -10
  230. package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +148 -0
  231. package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +318 -0
  232. package/src/DownloadIcon/config.tsx +16 -0
  233. package/src/DownloadIcon/index.test.tsx +26 -0
  234. package/src/DownloadIcon/index.tsx +8 -0
  235. package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
  236. package/src/ExclamationIcon/config.tsx +16 -0
  237. package/src/ExclamationIcon/index.test.tsx +26 -0
  238. package/src/ExclamationIcon/index.tsx +8 -0
  239. package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +20 -24
  240. package/src/GlobeIcon/config.tsx +1 -12
  241. package/src/GlobeIcon/index.test.tsx +6 -6
  242. package/src/Icon/__snapshots__/index.test.tsx.snap +11 -12
  243. package/src/LockIcon/__snapshots__/index.test.tsx.snap +262 -0
  244. package/src/LockIcon/config.tsx +15 -0
  245. package/src/LockIcon/index.test.tsx +26 -0
  246. package/src/LockIcon/index.tsx +8 -0
  247. package/src/LoginIcon/__snapshots__/index.test.tsx.snap +283 -0
  248. package/src/LoginIcon/config.tsx +16 -0
  249. package/src/LoginIcon/index.test.tsx +26 -0
  250. package/src/LoginIcon/index.tsx +8 -0
  251. package/src/MinusIcon/__snapshots__/index.test.tsx.snap +283 -0
  252. package/src/MinusIcon/config.tsx +15 -0
  253. package/src/MinusIcon/index.test.tsx +26 -0
  254. package/src/MinusIcon/index.tsx +8 -0
  255. package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +51 -51
  256. package/src/MoreVertIcon/index.test.tsx +12 -12
  257. package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +353 -0
  258. package/src/PdfFileIcon/config.tsx +20 -0
  259. package/src/PdfFileIcon/index.test.tsx +26 -0
  260. package/src/PdfFileIcon/index.tsx +8 -0
  261. package/src/PlusIcon/__snapshots__/index.test.tsx.snap +262 -0
  262. package/src/PlusIcon/config.tsx +15 -0
  263. package/src/PlusIcon/index.test.tsx +26 -0
  264. package/src/PlusIcon/index.tsx +8 -0
  265. package/src/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
  266. package/src/PrintIcon/config.tsx +16 -0
  267. package/src/PrintIcon/index.test.tsx +26 -0
  268. package/src/PrintIcon/index.tsx +8 -0
  269. package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
  270. package/src/ReplyIcon/config.tsx +15 -0
  271. package/src/ReplyIcon/index.test.tsx +26 -0
  272. package/src/ReplyIcon/index.tsx +8 -0
  273. package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
  274. package/src/RestoreIcon/config.tsx +17 -0
  275. package/src/RestoreIcon/index.test.tsx +26 -0
  276. package/src/RestoreIcon/index.tsx +8 -0
  277. package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +54 -54
  278. package/src/UncheckIcon/index.test.tsx +12 -12
  279. package/src/icons.ts +37 -0
  280. package/src/index.ts +12 -0
  281. package/src/lazy.js +12 -0
  282. package/src/registry.js +24 -0
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+
3
+ export interface PdfFileType {}
4
+
5
+ export function pdfFile(): React.ReactElement {
6
+ return (
7
+ <g>
8
+ <polygon points="4 19 4 7 2 7 2 21 18 21 18 19 4 19" />
9
+ <g>
10
+ <path d="M9.594,8.364h-.838v1.504h.823c.243,0,.429-.061.557-.183.128-.122.192-.294.192-.516,0-.243-.066-.438-.197-.584-.131-.146-.31-.22-.537-.222Z" />
11
+ <path d="M13.952,8.364h-.422v3.276h.437c.36,0,.637-.128.831-.385.193-.257.29-.638.29-1.144v-.226c0-.504-.097-.883-.29-1.139-.193-.255-.475-.383-.845-.383Z" />
12
+ <path d="M6,3v14h16V3H6ZM11.057,10.381c-.364.304-.863.456-1.498.456h-.802v1.769h-1.257v-5.213h2.08c.399,0,.751.073,1.058.22s.544.356.712.627c.168.271.252.578.252.922,0,.508-.182.915-.546,1.219ZM16.368,10.111c0,.477-.101.905-.303,1.284-.202.378-.486.674-.852.888-.366.214-.775.322-1.226.324h-1.715v-5.213h1.679c.461,0,.875.104,1.242.313.368.209.655.504.861.884.206.381.311.807.313,1.28v.24ZM20.5,8.364h-2.231v1.199h2.026v.967h-2.026v2.077h-1.257v-5.213h3.487v.97Z" />
13
+ </g>
14
+ </g>
15
+ );
16
+ }
17
+
18
+ pdfFile.props = [];
19
+
20
+ export default pdfFile;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+
4
+ import PdfFileIcon from '@digigov/react-icons/PdfFileIcon';
5
+
6
+ it('renders the PdfFileIcon with no props', () => {
7
+ expect(mount(<PdfFileIcon />)).toMatchSnapshot();
8
+ });
9
+ it('renders the PdfFileIcon with prop size=m', () => {
10
+ expect(mount(<PdfFileIcon size="md" />)).toMatchSnapshot();
11
+ });
12
+ it('renders the PdfFileIcon with prop size=xl', () => {
13
+ expect(mount(<PdfFileIcon size="xl" />)).toMatchSnapshot();
14
+ });
15
+ it('renders the PdfFileIcon with prop color=white', () => {
16
+ expect(mount(<PdfFileIcon color="white" />)).toMatchSnapshot();
17
+ });
18
+ it('renders the PdfFileIcon with prop color=warning', () => {
19
+ expect(mount(<PdfFileIcon color="warning" />)).toMatchSnapshot();
20
+ });
21
+ it('renders the PdfFileIcon with prop color=warning and size=s', () => {
22
+ expect(mount(<PdfFileIcon color="warning" size="sm" />)).toMatchSnapshot();
23
+ });
24
+ it('renders the PdfFileIcon with prop color=error and size= xl', () => {
25
+ expect(mount(<PdfFileIcon color="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 PdfFileIcon: React.FC<IconProps<'pdfFile'>> = (props) => {
5
+ return <Icon {...props} icon="pdfFile"></Icon>;
6
+ };
7
+
8
+ export default PdfFileIcon;
@@ -0,0 +1,262 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the PlusIcon with no props 1`] = `
4
+ <PlusIcon>
5
+ <ForwardRef(Icon)
6
+ icon="plus"
7
+ >
8
+ <ForwardRef(SvgIcon)
9
+ className="ds-svg-icon--plus"
10
+ >
11
+ <ForwardRef(Base)
12
+ aria-hidden="true"
13
+ as="svg"
14
+ className="ds-svg-icon--plus ds-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ >
18
+ <svg
19
+ aria-hidden="true"
20
+ className="ds-svg-icon--plus ds-svg-icon"
21
+ focusable="false"
22
+ viewBox="0 0 24 24"
23
+ >
24
+ <plus>
25
+ <polygon
26
+ points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
27
+ />
28
+ </plus>
29
+ </svg>
30
+ </ForwardRef(Base)>
31
+ </ForwardRef(SvgIcon)>
32
+ </ForwardRef(Icon)>
33
+ </PlusIcon>
34
+ `;
35
+
36
+ exports[`renders the PlusIcon with prop color=error and size= xl 1`] = `
37
+ <PlusIcon
38
+ color="warning"
39
+ size="xl"
40
+ >
41
+ <ForwardRef(Icon)
42
+ color="warning"
43
+ icon="plus"
44
+ size="xl"
45
+ >
46
+ <ForwardRef(SvgIcon)
47
+ className="ds-svg-icon--plus"
48
+ color="warning"
49
+ size="xl"
50
+ >
51
+ <ForwardRef(Base)
52
+ aria-hidden="true"
53
+ as="svg"
54
+ className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
55
+ focusable="false"
56
+ viewBox="0 0 24 24"
57
+ >
58
+ <svg
59
+ aria-hidden="true"
60
+ className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
61
+ focusable="false"
62
+ viewBox="0 0 24 24"
63
+ >
64
+ <plus>
65
+ <polygon
66
+ points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
67
+ />
68
+ </plus>
69
+ </svg>
70
+ </ForwardRef(Base)>
71
+ </ForwardRef(SvgIcon)>
72
+ </ForwardRef(Icon)>
73
+ </PlusIcon>
74
+ `;
75
+
76
+ exports[`renders the PlusIcon with prop color=warning 1`] = `
77
+ <PlusIcon
78
+ color="warning"
79
+ >
80
+ <ForwardRef(Icon)
81
+ color="warning"
82
+ icon="plus"
83
+ >
84
+ <ForwardRef(SvgIcon)
85
+ className="ds-svg-icon--plus"
86
+ color="warning"
87
+ >
88
+ <ForwardRef(Base)
89
+ aria-hidden="true"
90
+ as="svg"
91
+ className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon"
92
+ focusable="false"
93
+ viewBox="0 0 24 24"
94
+ >
95
+ <svg
96
+ aria-hidden="true"
97
+ className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon"
98
+ focusable="false"
99
+ viewBox="0 0 24 24"
100
+ >
101
+ <plus>
102
+ <polygon
103
+ points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
104
+ />
105
+ </plus>
106
+ </svg>
107
+ </ForwardRef(Base)>
108
+ </ForwardRef(SvgIcon)>
109
+ </ForwardRef(Icon)>
110
+ </PlusIcon>
111
+ `;
112
+
113
+ exports[`renders the PlusIcon with prop color=warning and size=s 1`] = `
114
+ <PlusIcon
115
+ color="warning"
116
+ size="sm"
117
+ >
118
+ <ForwardRef(Icon)
119
+ color="warning"
120
+ icon="plus"
121
+ size="sm"
122
+ >
123
+ <ForwardRef(SvgIcon)
124
+ className="ds-svg-icon--plus"
125
+ color="warning"
126
+ size="sm"
127
+ >
128
+ <ForwardRef(Base)
129
+ aria-hidden="true"
130
+ as="svg"
131
+ className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
132
+ focusable="false"
133
+ viewBox="0 0 24 24"
134
+ >
135
+ <svg
136
+ aria-hidden="true"
137
+ className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
138
+ focusable="false"
139
+ viewBox="0 0 24 24"
140
+ >
141
+ <plus>
142
+ <polygon
143
+ points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
144
+ />
145
+ </plus>
146
+ </svg>
147
+ </ForwardRef(Base)>
148
+ </ForwardRef(SvgIcon)>
149
+ </ForwardRef(Icon)>
150
+ </PlusIcon>
151
+ `;
152
+
153
+ exports[`renders the PlusIcon with prop color=white 1`] = `
154
+ <PlusIcon
155
+ color="white"
156
+ >
157
+ <ForwardRef(Icon)
158
+ color="white"
159
+ icon="plus"
160
+ >
161
+ <ForwardRef(SvgIcon)
162
+ className="ds-svg-icon--plus"
163
+ color="white"
164
+ >
165
+ <ForwardRef(Base)
166
+ aria-hidden="true"
167
+ as="svg"
168
+ className="ds-svg-icon--plus ds-svg-icon--white ds-svg-icon"
169
+ focusable="false"
170
+ viewBox="0 0 24 24"
171
+ >
172
+ <svg
173
+ aria-hidden="true"
174
+ className="ds-svg-icon--plus ds-svg-icon--white ds-svg-icon"
175
+ focusable="false"
176
+ viewBox="0 0 24 24"
177
+ >
178
+ <plus>
179
+ <polygon
180
+ points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
181
+ />
182
+ </plus>
183
+ </svg>
184
+ </ForwardRef(Base)>
185
+ </ForwardRef(SvgIcon)>
186
+ </ForwardRef(Icon)>
187
+ </PlusIcon>
188
+ `;
189
+
190
+ exports[`renders the PlusIcon with prop size=m 1`] = `
191
+ <PlusIcon
192
+ size="md"
193
+ >
194
+ <ForwardRef(Icon)
195
+ icon="plus"
196
+ size="md"
197
+ >
198
+ <ForwardRef(SvgIcon)
199
+ className="ds-svg-icon--plus"
200
+ size="md"
201
+ >
202
+ <ForwardRef(Base)
203
+ aria-hidden="true"
204
+ as="svg"
205
+ className="ds-svg-icon--plus ds-svg-icon--md ds-svg-icon"
206
+ focusable="false"
207
+ viewBox="0 0 24 24"
208
+ >
209
+ <svg
210
+ aria-hidden="true"
211
+ className="ds-svg-icon--plus ds-svg-icon--md ds-svg-icon"
212
+ focusable="false"
213
+ viewBox="0 0 24 24"
214
+ >
215
+ <plus>
216
+ <polygon
217
+ points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
218
+ />
219
+ </plus>
220
+ </svg>
221
+ </ForwardRef(Base)>
222
+ </ForwardRef(SvgIcon)>
223
+ </ForwardRef(Icon)>
224
+ </PlusIcon>
225
+ `;
226
+
227
+ exports[`renders the PlusIcon with prop size=xl 1`] = `
228
+ <PlusIcon
229
+ size="xl"
230
+ >
231
+ <ForwardRef(Icon)
232
+ icon="plus"
233
+ size="xl"
234
+ >
235
+ <ForwardRef(SvgIcon)
236
+ className="ds-svg-icon--plus"
237
+ size="xl"
238
+ >
239
+ <ForwardRef(Base)
240
+ aria-hidden="true"
241
+ as="svg"
242
+ className="ds-svg-icon--plus ds-svg-icon--xl ds-svg-icon"
243
+ focusable="false"
244
+ viewBox="0 0 24 24"
245
+ >
246
+ <svg
247
+ aria-hidden="true"
248
+ className="ds-svg-icon--plus ds-svg-icon--xl ds-svg-icon"
249
+ focusable="false"
250
+ viewBox="0 0 24 24"
251
+ >
252
+ <plus>
253
+ <polygon
254
+ points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35"
255
+ />
256
+ </plus>
257
+ </svg>
258
+ </ForwardRef(Base)>
259
+ </ForwardRef(SvgIcon)>
260
+ </ForwardRef(Icon)>
261
+ </PlusIcon>
262
+ `;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+
3
+ export interface PlusType {}
4
+
5
+ export function plus(): React.ReactElement {
6
+ return (
7
+ <>
8
+ <polygon points="22 10.35 13.65 10.35 13.65 2 10.35 2 10.35 10.35 2 10.35 2 13.65 10.35 13.65 10.35 22 13.65 22 13.65 13.65 22 13.65 22 10.35" />
9
+ </>
10
+ );
11
+ }
12
+
13
+ plus.props = [];
14
+
15
+ export default plus;
@@ -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 color=white', () => {
16
+ expect(mount(<PlusIcon color="white" />)).toMatchSnapshot();
17
+ });
18
+ it('renders the PlusIcon with prop color=warning', () => {
19
+ expect(mount(<PlusIcon color="warning" />)).toMatchSnapshot();
20
+ });
21
+ it('renders the PlusIcon with prop color=warning and size=s', () => {
22
+ expect(mount(<PlusIcon color="warning" size="sm" />)).toMatchSnapshot();
23
+ });
24
+ it('renders the PlusIcon with prop color=error and size= xl', () => {
25
+ expect(mount(<PlusIcon color="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 color=error and size=sm 1`] = `
43
+ <PrintIcon
44
+ color="error"
45
+ size="sm"
46
+ >
47
+ <ForwardRef(Icon)
48
+ color="error"
49
+ icon="print"
50
+ size="sm"
51
+ >
52
+ <ForwardRef(SvgIcon)
53
+ className="ds-svg-icon--print"
54
+ color="error"
55
+ size="sm"
56
+ >
57
+ <ForwardRef(Base)
58
+ aria-hidden="true"
59
+ as="svg"
60
+ className="ds-svg-icon--print ds-svg-icon--error ds-svg-icon--sm ds-svg-icon"
61
+ focusable="false"
62
+ viewBox="0 0 24 24"
63
+ >
64
+ <svg
65
+ aria-hidden="true"
66
+ className="ds-svg-icon--print ds-svg-icon--error ds-svg-icon--sm ds-svg-icon"
67
+ focusable="false"
68
+ viewBox="0 0 24 24"
69
+ >
70
+ <print>
71
+ <rect
72
+ height="4"
73
+ width="10"
74
+ x="7"
75
+ y="2"
76
+ />
77
+ <path
78
+ 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"
79
+ />
80
+ </print>
81
+ </svg>
82
+ </ForwardRef(Base)>
83
+ </ForwardRef(SvgIcon)>
84
+ </ForwardRef(Icon)>
85
+ </PrintIcon>
86
+ `;
87
+
88
+ exports[`renders the PrintIcon with prop color=info and size= xl 1`] = `
89
+ <PrintIcon
90
+ color="info"
91
+ size="xl"
92
+ >
93
+ <ForwardRef(Icon)
94
+ color="info"
95
+ icon="print"
96
+ size="xl"
97
+ >
98
+ <ForwardRef(SvgIcon)
99
+ className="ds-svg-icon--print"
100
+ color="info"
101
+ size="xl"
102
+ >
103
+ <ForwardRef(Base)
104
+ aria-hidden="true"
105
+ as="svg"
106
+ className="ds-svg-icon--print ds-svg-icon--info ds-svg-icon--xl ds-svg-icon"
107
+ focusable="false"
108
+ viewBox="0 0 24 24"
109
+ >
110
+ <svg
111
+ aria-hidden="true"
112
+ className="ds-svg-icon--print ds-svg-icon--info ds-svg-icon--xl ds-svg-icon"
113
+ focusable="false"
114
+ viewBox="0 0 24 24"
115
+ >
116
+ <print>
117
+ <rect
118
+ height="4"
119
+ width="10"
120
+ x="7"
121
+ y="2"
122
+ />
123
+ <path
124
+ 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"
125
+ />
126
+ </print>
127
+ </svg>
128
+ </ForwardRef(Base)>
129
+ </ForwardRef(SvgIcon)>
130
+ </ForwardRef(Icon)>
131
+ </PrintIcon>
132
+ `;
133
+
134
+ exports[`renders the PrintIcon with prop color=warning 1`] = `
135
+ <PrintIcon
136
+ color="warning"
137
+ >
138
+ <ForwardRef(Icon)
139
+ color="warning"
140
+ icon="print"
141
+ >
142
+ <ForwardRef(SvgIcon)
143
+ className="ds-svg-icon--print"
144
+ color="warning"
145
+ >
146
+ <ForwardRef(Base)
147
+ aria-hidden="true"
148
+ as="svg"
149
+ className="ds-svg-icon--print ds-svg-icon--warning ds-svg-icon"
150
+ focusable="false"
151
+ viewBox="0 0 24 24"
152
+ >
153
+ <svg
154
+ aria-hidden="true"
155
+ className="ds-svg-icon--print ds-svg-icon--warning ds-svg-icon"
156
+ focusable="false"
157
+ viewBox="0 0 24 24"
158
+ >
159
+ <print>
160
+ <rect
161
+ height="4"
162
+ width="10"
163
+ x="7"
164
+ y="2"
165
+ />
166
+ <path
167
+ 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"
168
+ />
169
+ </print>
170
+ </svg>
171
+ </ForwardRef(Base)>
172
+ </ForwardRef(SvgIcon)>
173
+ </ForwardRef(Icon)>
174
+ </PrintIcon>
175
+ `;
176
+
177
+ exports[`renders the PrintIcon with prop color=white 1`] = `
178
+ <PrintIcon
179
+ color="white"
180
+ >
181
+ <ForwardRef(Icon)
182
+ color="white"
183
+ icon="print"
184
+ >
185
+ <ForwardRef(SvgIcon)
186
+ className="ds-svg-icon--print"
187
+ color="white"
188
+ >
189
+ <ForwardRef(Base)
190
+ aria-hidden="true"
191
+ as="svg"
192
+ className="ds-svg-icon--print ds-svg-icon--white 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--white 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 size=md 1`] = `
221
+ <PrintIcon
222
+ size="md"
223
+ >
224
+ <ForwardRef(Icon)
225
+ icon="print"
226
+ size="md"
227
+ >
228
+ <ForwardRef(SvgIcon)
229
+ className="ds-svg-icon--print"
230
+ size="md"
231
+ >
232
+ <ForwardRef(Base)
233
+ aria-hidden="true"
234
+ as="svg"
235
+ className="ds-svg-icon--print ds-svg-icon--md 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--md 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 size=xl 1`] = `
264
+ <PrintIcon
265
+ size="xl"
266
+ >
267
+ <ForwardRef(Icon)
268
+ icon="print"
269
+ size="xl"
270
+ >
271
+ <ForwardRef(SvgIcon)
272
+ className="ds-svg-icon--print"
273
+ size="xl"
274
+ >
275
+ <ForwardRef(Base)
276
+ aria-hidden="true"
277
+ as="svg"
278
+ className="ds-svg-icon--print ds-svg-icon--xl 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--xl 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;