@digigov/react-icons 1.0.0-079f34f3d → 1.0.0-23c81d9f

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 (219) hide show
  1. package/AccessibilityIcon/config/package.json +6 -0
  2. package/AccessibilityIcon/index.d.ts +1 -1
  3. package/AccessibilityIcon/index.js +6 -21
  4. package/{es/AccessibilityIcon/index.test.js → AccessibilityIcon/index.test/index.js} +1 -1
  5. package/AccessibilityIcon/index.test/package.json +6 -0
  6. package/AccessibilityIcon/package.json +6 -0
  7. package/ArrowIcon/config/index.js +27 -0
  8. package/ArrowIcon/config/package.json +6 -0
  9. package/ArrowIcon/config.d.ts +1 -1
  10. package/ArrowIcon/index.d.ts +1 -1
  11. package/ArrowIcon/index.js +6 -21
  12. package/{esm/ArrowIcon/index.test.js → ArrowIcon/index.test/index.js} +1 -1
  13. package/ArrowIcon/index.test/package.json +6 -0
  14. package/ArrowIcon/package.json +6 -0
  15. package/BurgerIcon/config/package.json +6 -0
  16. package/BurgerIcon/index.d.ts +1 -1
  17. package/BurgerIcon/index.js +6 -21
  18. package/{esm/BurgerIcon/index.test.js → BurgerIcon/index.test/index.js} +1 -1
  19. package/BurgerIcon/index.test/package.json +6 -0
  20. package/BurgerIcon/package.json +6 -0
  21. package/CaretIcon/config/package.json +6 -0
  22. package/CaretIcon/index.d.ts +1 -1
  23. package/CaretIcon/index.js +6 -21
  24. package/{esm/CaretIcon/index.test.js → CaretIcon/index.test/index.js} +1 -1
  25. package/CaretIcon/index.test/package.json +6 -0
  26. package/CaretIcon/package.json +6 -0
  27. package/CheckIcon/config/package.json +6 -0
  28. package/CheckIcon/index.d.ts +1 -1
  29. package/CheckIcon/index.js +6 -21
  30. package/{esm/CheckIcon/index.test.js → CheckIcon/index.test/index.js} +1 -1
  31. package/CheckIcon/index.test/package.json +6 -0
  32. package/CheckIcon/package.json +6 -0
  33. package/{es/ArrowIcon/config.js → ChevronIcon/config/index.js} +3 -3
  34. package/ChevronIcon/config/package.json +6 -0
  35. package/ChevronIcon/config.d.ts +14 -0
  36. package/ChevronIcon/index.d.ts +4 -0
  37. package/{es/CheckIcon → ChevronIcon}/index.js +4 -4
  38. package/ChevronIcon/index.test/index.js +33 -0
  39. package/ChevronIcon/index.test/package.json +6 -0
  40. package/ChevronIcon/index.test.d.ts +1 -0
  41. package/ChevronIcon/package.json +6 -0
  42. package/CloseIcon/config/package.json +6 -0
  43. package/CloseIcon/index.d.ts +1 -1
  44. package/CloseIcon/index.js +6 -21
  45. package/{esm/CloseIcon/index.test.js → CloseIcon/index.test/index.js} +1 -1
  46. package/CloseIcon/index.test/package.json +6 -0
  47. package/CloseIcon/package.json +6 -0
  48. package/GlobeIcon/config/package.json +6 -0
  49. package/GlobeIcon/index.d.ts +1 -1
  50. package/GlobeIcon/index.js +6 -21
  51. package/{esm/GlobeIcon/index.test.js → GlobeIcon/index.test/index.js} +1 -1
  52. package/GlobeIcon/index.test/package.json +6 -0
  53. package/GlobeIcon/package.json +6 -0
  54. package/Icon/__snapshots__/index.test.tsx.snap +343 -0
  55. package/Icon/index.d.ts +25 -0
  56. package/Icon/index.js +34 -0
  57. package/Icon/index.test/index.js +82 -0
  58. package/Icon/index.test/package.json +6 -0
  59. package/Icon/index.test.d.ts +1 -0
  60. package/Icon/package.json +6 -0
  61. package/MoreVertIcon/config/package.json +6 -0
  62. package/MoreVertIcon/index.d.ts +1 -1
  63. package/MoreVertIcon/index.js +6 -21
  64. package/{es/MoreVertIcon/index.test.js → MoreVertIcon/index.test/index.js} +1 -1
  65. package/MoreVertIcon/index.test/package.json +6 -0
  66. package/MoreVertIcon/package.json +6 -0
  67. package/SearchIcon/config/package.json +6 -0
  68. package/SearchIcon/index.d.ts +1 -1
  69. package/SearchIcon/index.js +6 -21
  70. package/{esm/SearchIcon/index.test.js → SearchIcon/index.test/index.js} +1 -1
  71. package/SearchIcon/index.test/package.json +6 -0
  72. package/SearchIcon/package.json +6 -0
  73. package/UncheckIcon/config/package.json +6 -0
  74. package/UncheckIcon/index.d.ts +1 -1
  75. package/UncheckIcon/index.js +6 -21
  76. package/{esm/UncheckIcon/index.test.js → UncheckIcon/index.test/index.js} +1 -1
  77. package/UncheckIcon/index.test/package.json +6 -0
  78. package/UncheckIcon/package.json +6 -0
  79. package/cjs/AccessibilityIcon/index.js +24 -0
  80. package/{AccessibilityIcon/index.test.js → cjs/AccessibilityIcon/index.test/index.js} +10 -10
  81. package/cjs/ArrowIcon/config/index.js +39 -0
  82. package/cjs/ArrowIcon/index.js +24 -0
  83. package/{ArrowIcon/index.test.js → cjs/ArrowIcon/index.test/index.js} +5 -5
  84. package/cjs/BurgerIcon/index.js +24 -0
  85. package/{BurgerIcon/index.test.js → cjs/BurgerIcon/index.test/index.js} +7 -7
  86. package/cjs/CaretIcon/index.js +24 -0
  87. package/{CaretIcon/index.test.js → cjs/CaretIcon/index.test/index.js} +5 -5
  88. package/cjs/CheckIcon/index.js +24 -0
  89. package/{CheckIcon/index.test.js → cjs/CheckIcon/index.test/index.js} +9 -9
  90. package/{ArrowIcon/config.js → cjs/ChevronIcon/config/index.js} +5 -5
  91. package/cjs/ChevronIcon/index.js +24 -0
  92. package/cjs/ChevronIcon/index.test/index.js +39 -0
  93. package/cjs/CloseIcon/index.js +24 -0
  94. package/{CloseIcon/index.test.js → cjs/CloseIcon/index.test/index.js} +2 -2
  95. package/cjs/GlobeIcon/index.js +24 -0
  96. package/{GlobeIcon/index.test.js → cjs/GlobeIcon/index.test/index.js} +5 -5
  97. package/cjs/Icon/__snapshots__/index.test.tsx.snap +343 -0
  98. package/cjs/Icon/index.js +58 -0
  99. package/cjs/Icon/index.test/index.js +88 -0
  100. package/cjs/MoreVertIcon/index.js +24 -0
  101. package/{MoreVertIcon/index.test.js → cjs/MoreVertIcon/index.test/index.js} +10 -10
  102. package/cjs/SearchIcon/index.js +24 -0
  103. package/{SearchIcon/index.test.js → cjs/SearchIcon/index.test/index.js} +2 -2
  104. package/cjs/UncheckIcon/index.js +24 -0
  105. package/{UncheckIcon/index.test.js → cjs/UncheckIcon/index.test/index.js} +10 -10
  106. package/{icons.js → cjs/icons/index.js} +23 -10
  107. package/cjs/index.js +148 -0
  108. package/{registry.js → cjs/registry/index.js} +18 -12
  109. package/icons/index.js +12 -0
  110. package/icons/package.json +6 -0
  111. package/icons.d.ts +3 -0
  112. package/index.d.ts +1 -0
  113. package/index.js +11 -135
  114. package/package.json +4 -5
  115. package/{es/registry.js → registry/index.js} +16 -12
  116. package/registry/package.json +6 -0
  117. package/registry.d.ts +2 -0
  118. package/src/AccessibilityIcon/index.tsx +1 -1
  119. package/src/ArrowIcon/config.tsx +6 -6
  120. package/src/ArrowIcon/index.tsx +1 -1
  121. package/src/BurgerIcon/index.tsx +1 -1
  122. package/src/CaretIcon/index.tsx +1 -1
  123. package/src/CheckIcon/index.tsx +1 -1
  124. package/src/ChevronIcon/config.tsx +37 -0
  125. package/src/ChevronIcon/index.test.tsx +20 -0
  126. package/src/ChevronIcon/index.tsx +8 -0
  127. package/src/CloseIcon/index.tsx +1 -1
  128. package/src/GlobeIcon/index.tsx +1 -1
  129. package/src/Icon/__snapshots__/index.test.tsx.snap +343 -0
  130. package/src/Icon/index.test.tsx +36 -0
  131. package/src/Icon/index.tsx +63 -0
  132. package/src/MoreVertIcon/index.tsx +1 -1
  133. package/src/SearchIcon/index.tsx +1 -1
  134. package/src/UncheckIcon/index.tsx +1 -1
  135. package/src/icons.ts +3 -0
  136. package/src/index.ts +1 -0
  137. package/src/registry.js +4 -0
  138. package/es/AccessibilityIcon/index.js +0 -9
  139. package/es/ArrowIcon/index.js +0 -9
  140. package/es/ArrowIcon/index.test.js +0 -33
  141. package/es/BurgerIcon/index.js +0 -9
  142. package/es/BurgerIcon/index.test.js +0 -50
  143. package/es/CaretIcon/index.js +0 -9
  144. package/es/CaretIcon/index.test.js +0 -33
  145. package/es/CheckIcon/index.test.js +0 -67
  146. package/es/CloseIcon/index.js +0 -9
  147. package/es/CloseIcon/index.test.js +0 -9
  148. package/es/GlobeIcon/index.js +0 -9
  149. package/es/GlobeIcon/index.test.js +0 -33
  150. package/es/MoreVertIcon/index.js +0 -9
  151. package/es/SearchIcon/index.js +0 -9
  152. package/es/SearchIcon/index.test.js +0 -9
  153. package/es/UncheckIcon/index.js +0 -9
  154. package/es/UncheckIcon/index.test.js +0 -75
  155. package/es/icons.js +0 -11
  156. package/es/index.js +0 -10
  157. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
  158. package/esm/AccessibilityIcon/config.js +0 -19
  159. package/esm/AccessibilityIcon/index.js +0 -9
  160. package/esm/AccessibilityIcon/index.test.js +0 -75
  161. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
  162. package/esm/ArrowIcon/config.js +0 -27
  163. package/esm/ArrowIcon/index.js +0 -9
  164. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
  165. package/esm/BurgerIcon/config.js +0 -32
  166. package/esm/BurgerIcon/index.js +0 -9
  167. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
  168. package/esm/CaretIcon/config.js +0 -27
  169. package/esm/CaretIcon/index.js +0 -9
  170. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
  171. package/esm/CheckIcon/config.js +0 -11
  172. package/esm/CheckIcon/index.js +0 -9
  173. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
  174. package/esm/CloseIcon/config.js +0 -11
  175. package/esm/CloseIcon/index.js +0 -9
  176. package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
  177. package/esm/GlobeIcon/config.js +0 -11
  178. package/esm/GlobeIcon/index.js +0 -9
  179. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
  180. package/esm/MoreVertIcon/config.js +0 -25
  181. package/esm/MoreVertIcon/index.js +0 -9
  182. package/esm/MoreVertIcon/index.test.js +0 -75
  183. package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
  184. package/esm/SearchIcon/config.js +0 -11
  185. package/esm/SearchIcon/index.js +0 -9
  186. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
  187. package/esm/UncheckIcon/config.js +0 -11
  188. package/esm/UncheckIcon/index.js +0 -9
  189. package/esm/icons.js +0 -11
  190. package/esm/index.js +0 -10
  191. package/esm/registry.js +0 -42
  192. /package/{es/AccessibilityIcon/config.js → AccessibilityIcon/config/index.js} +0 -0
  193. /package/{es/BurgerIcon/config.js → BurgerIcon/config/index.js} +0 -0
  194. /package/{es/CaretIcon/config.js → CaretIcon/config/index.js} +0 -0
  195. /package/{es/CheckIcon/config.js → CheckIcon/config/index.js} +0 -0
  196. /package/{es/CloseIcon/config.js → CloseIcon/config/index.js} +0 -0
  197. /package/{es/GlobeIcon/config.js → GlobeIcon/config/index.js} +0 -0
  198. /package/{es/MoreVertIcon/config.js → MoreVertIcon/config/index.js} +0 -0
  199. /package/{es/SearchIcon/config.js → SearchIcon/config/index.js} +0 -0
  200. /package/{es/UncheckIcon/config.js → UncheckIcon/config/index.js} +0 -0
  201. /package/{es → cjs}/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -0
  202. /package/{AccessibilityIcon/config.js → cjs/AccessibilityIcon/config/index.js} +0 -0
  203. /package/{es → cjs}/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -0
  204. /package/{es → cjs}/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -0
  205. /package/{BurgerIcon/config.js → cjs/BurgerIcon/config/index.js} +0 -0
  206. /package/{es → cjs}/CaretIcon/__snapshots__/index.test.tsx.snap +0 -0
  207. /package/{CaretIcon/config.js → cjs/CaretIcon/config/index.js} +0 -0
  208. /package/{es → cjs}/CheckIcon/__snapshots__/index.test.tsx.snap +0 -0
  209. /package/{CheckIcon/config.js → cjs/CheckIcon/config/index.js} +0 -0
  210. /package/{es → cjs}/CloseIcon/__snapshots__/index.test.tsx.snap +0 -0
  211. /package/{CloseIcon/config.js → cjs/CloseIcon/config/index.js} +0 -0
  212. /package/{es → cjs}/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -0
  213. /package/{GlobeIcon/config.js → cjs/GlobeIcon/config/index.js} +0 -0
  214. /package/{es → cjs}/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -0
  215. /package/{MoreVertIcon/config.js → cjs/MoreVertIcon/config/index.js} +0 -0
  216. /package/{es → cjs}/SearchIcon/__snapshots__/index.test.tsx.snap +0 -0
  217. /package/{SearchIcon/config.js → cjs/SearchIcon/config/index.js} +0 -0
  218. /package/{es → cjs}/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -0
  219. /package/{UncheckIcon/config.js → cjs/UncheckIcon/config/index.js} +0 -0
@@ -1,320 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the BurgerIcon prop variant= "error" 1`] = `
4
- <BurgerIcon
5
- variant="error"
6
- >
7
- <ForwardRef(Icon)
8
- icon="burger"
9
- variant="error"
10
- >
11
- <ForwardRef(SvgIcon)
12
- className="govgr-svg-icon--burger"
13
- variant="error"
14
- >
15
- <ForwardRef(Base)
16
- aria-hidden="true"
17
- as="svg"
18
- className="govgr-svg-icon--burger govgr-svg-icon--error govgr-svg-icon"
19
- focusable="false"
20
- viewBox="0 0 24 24"
21
- >
22
- <svg
23
- aria-hidden="true"
24
- className="govgr-svg-icon--burger govgr-svg-icon--error govgr-svg-icon"
25
- focusable="false"
26
- viewBox="0 0 24 24"
27
- >
28
- <burger>
29
- <g
30
- className=""
31
- >
32
- <rect
33
- height="3.3"
34
- id="govgr-svg-icon--burger__line-1"
35
- width="20"
36
- />
37
- <rect
38
- height="3.3"
39
- id="govgr-svg-icon--burger__line-2"
40
- width="20"
41
- />
42
- <rect
43
- height="3.3"
44
- id="govgr-svg-icon--burger__line-3"
45
- width="20"
46
- />
47
- </g>
48
- </burger>
49
- </svg>
50
- </ForwardRef(Base)>
51
- </ForwardRef(SvgIcon)>
52
- </ForwardRef(Icon)>
53
- </BurgerIcon>
54
- `;
55
-
56
- exports[`renders the BurgerIcon prop variant= "light" 1`] = `
57
- <BurgerIcon
58
- variant="light"
59
- >
60
- <ForwardRef(Icon)
61
- icon="burger"
62
- variant="light"
63
- >
64
- <ForwardRef(SvgIcon)
65
- className="govgr-svg-icon--burger"
66
- variant="light"
67
- >
68
- <ForwardRef(Base)
69
- aria-hidden="true"
70
- as="svg"
71
- className="govgr-svg-icon--burger govgr-svg-icon--light govgr-svg-icon"
72
- focusable="false"
73
- viewBox="0 0 24 24"
74
- >
75
- <svg
76
- aria-hidden="true"
77
- className="govgr-svg-icon--burger govgr-svg-icon--light govgr-svg-icon"
78
- focusable="false"
79
- viewBox="0 0 24 24"
80
- >
81
- <burger>
82
- <g
83
- className=""
84
- >
85
- <rect
86
- height="3.3"
87
- id="govgr-svg-icon--burger__line-1"
88
- width="20"
89
- />
90
- <rect
91
- height="3.3"
92
- id="govgr-svg-icon--burger__line-2"
93
- width="20"
94
- />
95
- <rect
96
- height="3.3"
97
- id="govgr-svg-icon--burger__line-3"
98
- width="20"
99
- />
100
- </g>
101
- </burger>
102
- </svg>
103
- </ForwardRef(Base)>
104
- </ForwardRef(SvgIcon)>
105
- </ForwardRef(Icon)>
106
- </BurgerIcon>
107
- `;
108
-
109
- exports[`renders the BurgerIcon props active variant= "light" 1`] = `
110
- <BurgerIcon
111
- active={true}
112
- variant="light"
113
- >
114
- <ForwardRef(Icon)
115
- active={true}
116
- icon="burger"
117
- variant="light"
118
- >
119
- <ForwardRef(SvgIcon)
120
- className="govgr-svg-icon--burger"
121
- variant="light"
122
- >
123
- <ForwardRef(Base)
124
- aria-hidden="true"
125
- as="svg"
126
- className="govgr-svg-icon--burger govgr-svg-icon--light govgr-svg-icon"
127
- focusable="false"
128
- viewBox="0 0 24 24"
129
- >
130
- <svg
131
- aria-hidden="true"
132
- className="govgr-svg-icon--burger govgr-svg-icon--light govgr-svg-icon"
133
- focusable="false"
134
- viewBox="0 0 24 24"
135
- >
136
- <burger
137
- active={true}
138
- >
139
- <g
140
- className="govgr-svg-icon--burger--active"
141
- >
142
- <rect
143
- height="3.3"
144
- id="govgr-svg-icon--burger__line-1"
145
- width="20"
146
- />
147
- <rect
148
- height="3.3"
149
- id="govgr-svg-icon--burger__line-2"
150
- width="20"
151
- />
152
- <rect
153
- height="3.3"
154
- id="govgr-svg-icon--burger__line-3"
155
- width="20"
156
- />
157
- </g>
158
- </burger>
159
- </svg>
160
- </ForwardRef(Base)>
161
- </ForwardRef(SvgIcon)>
162
- </ForwardRef(Icon)>
163
- </BurgerIcon>
164
- `;
165
-
166
- exports[`renders the BurgerIcon with no props 1`] = `
167
- <BurgerIcon>
168
- <ForwardRef(Icon)
169
- icon="burger"
170
- >
171
- <ForwardRef(SvgIcon)
172
- className="govgr-svg-icon--burger"
173
- >
174
- <ForwardRef(Base)
175
- aria-hidden="true"
176
- as="svg"
177
- className="govgr-svg-icon--burger govgr-svg-icon"
178
- focusable="false"
179
- viewBox="0 0 24 24"
180
- >
181
- <svg
182
- aria-hidden="true"
183
- className="govgr-svg-icon--burger govgr-svg-icon"
184
- focusable="false"
185
- viewBox="0 0 24 24"
186
- >
187
- <burger>
188
- <g
189
- className=""
190
- >
191
- <rect
192
- height="3.3"
193
- id="govgr-svg-icon--burger__line-1"
194
- width="20"
195
- />
196
- <rect
197
- height="3.3"
198
- id="govgr-svg-icon--burger__line-2"
199
- width="20"
200
- />
201
- <rect
202
- height="3.3"
203
- id="govgr-svg-icon--burger__line-3"
204
- width="20"
205
- />
206
- </g>
207
- </burger>
208
- </svg>
209
- </ForwardRef(Base)>
210
- </ForwardRef(SvgIcon)>
211
- </ForwardRef(Icon)>
212
- </BurgerIcon>
213
- `;
214
-
215
- exports[`renders the BurgerIcon with prop active=true 1`] = `
216
- <BurgerIcon
217
- active={true}
218
- >
219
- <ForwardRef(Icon)
220
- active={true}
221
- icon="burger"
222
- >
223
- <ForwardRef(SvgIcon)
224
- className="govgr-svg-icon--burger"
225
- >
226
- <ForwardRef(Base)
227
- aria-hidden="true"
228
- as="svg"
229
- className="govgr-svg-icon--burger govgr-svg-icon"
230
- focusable="false"
231
- viewBox="0 0 24 24"
232
- >
233
- <svg
234
- aria-hidden="true"
235
- className="govgr-svg-icon--burger govgr-svg-icon"
236
- focusable="false"
237
- viewBox="0 0 24 24"
238
- >
239
- <burger
240
- active={true}
241
- >
242
- <g
243
- className="govgr-svg-icon--burger--active"
244
- >
245
- <rect
246
- height="3.3"
247
- id="govgr-svg-icon--burger__line-1"
248
- width="20"
249
- />
250
- <rect
251
- height="3.3"
252
- id="govgr-svg-icon--burger__line-2"
253
- width="20"
254
- />
255
- <rect
256
- height="3.3"
257
- id="govgr-svg-icon--burger__line-3"
258
- width="20"
259
- />
260
- </g>
261
- </burger>
262
- </svg>
263
- </ForwardRef(Base)>
264
- </ForwardRef(SvgIcon)>
265
- </ForwardRef(Icon)>
266
- </BurgerIcon>
267
- `;
268
-
269
- exports[`renders the BurgerIcon with prop variant=dark 1`] = `
270
- <BurgerIcon
271
- variant="dark"
272
- >
273
- <ForwardRef(Icon)
274
- icon="burger"
275
- variant="dark"
276
- >
277
- <ForwardRef(SvgIcon)
278
- className="govgr-svg-icon--burger"
279
- variant="dark"
280
- >
281
- <ForwardRef(Base)
282
- aria-hidden="true"
283
- as="svg"
284
- className="govgr-svg-icon--burger govgr-svg-icon--dark govgr-svg-icon"
285
- focusable="false"
286
- viewBox="0 0 24 24"
287
- >
288
- <svg
289
- aria-hidden="true"
290
- className="govgr-svg-icon--burger govgr-svg-icon--dark govgr-svg-icon"
291
- focusable="false"
292
- viewBox="0 0 24 24"
293
- >
294
- <burger>
295
- <g
296
- className=""
297
- >
298
- <rect
299
- height="3.3"
300
- id="govgr-svg-icon--burger__line-1"
301
- width="20"
302
- />
303
- <rect
304
- height="3.3"
305
- id="govgr-svg-icon--burger__line-2"
306
- width="20"
307
- />
308
- <rect
309
- height="3.3"
310
- id="govgr-svg-icon--burger__line-3"
311
- width="20"
312
- />
313
- </g>
314
- </burger>
315
- </svg>
316
- </ForwardRef(Base)>
317
- </ForwardRef(SvgIcon)>
318
- </ForwardRef(Icon)>
319
- </BurgerIcon>
320
- `;
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import clsx from 'clsx';
3
-
4
- var _ref2 = /*#__PURE__*/React.createElement("rect", {
5
- id: "govgr-svg-icon--burger__line-1",
6
- width: "20",
7
- height: "3.3"
8
- });
9
-
10
- var _ref3 = /*#__PURE__*/React.createElement("rect", {
11
- id: "govgr-svg-icon--burger__line-2",
12
- width: "20",
13
- height: "3.3"
14
- });
15
-
16
- var _ref4 = /*#__PURE__*/React.createElement("rect", {
17
- id: "govgr-svg-icon--burger__line-3",
18
- width: "20",
19
- height: "3.3"
20
- });
21
-
22
- export var burger = function burger(_ref) {
23
- var _ref$active = _ref.active,
24
- active = _ref$active === void 0 ? false : _ref$active;
25
- return /*#__PURE__*/React.createElement("g", {
26
- className: clsx(active && "govgr-svg-icon--burger--active")
27
- }, _ref2, _ref3, _ref4);
28
- }; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
29
- // @ts-ignore
30
-
31
- burger.props = ['active'];
32
- export default burger;
@@ -1,9 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import React from 'react';
3
- import Icon from '@digigov/react-core/Icon';
4
- export var BurgerIcon = function BurgerIcon(props) {
5
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
6
- icon: "burger"
7
- }));
8
- };
9
- export default BurgerIcon;
@@ -1,148 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`renders the CaretIcon with direction down prop 1`] = `
4
- <CaretIcon
5
- direction="down"
6
- >
7
- <ForwardRef(Icon)
8
- direction="down"
9
- icon="caret"
10
- >
11
- <ForwardRef(SvgIcon)
12
- className="govgr-svg-icon--caret"
13
- >
14
- <ForwardRef(Base)
15
- aria-hidden="true"
16
- as="svg"
17
- className="govgr-svg-icon--caret govgr-svg-icon"
18
- focusable="false"
19
- viewBox="0 0 24 24"
20
- >
21
- <svg
22
- aria-hidden="true"
23
- className="govgr-svg-icon--caret govgr-svg-icon"
24
- focusable="false"
25
- viewBox="0 0 24 24"
26
- >
27
- <caret
28
- direction="down"
29
- >
30
- <path
31
- d="M22,6H2l10,12L22,6z"
32
- />
33
- </caret>
34
- </svg>
35
- </ForwardRef(Base)>
36
- </ForwardRef(SvgIcon)>
37
- </ForwardRef(Icon)>
38
- </CaretIcon>
39
- `;
40
-
41
- exports[`renders the CaretIcon with direction right prop 1`] = `
42
- <CaretIcon
43
- direction="right"
44
- >
45
- <ForwardRef(Icon)
46
- direction="right"
47
- icon="caret"
48
- >
49
- <ForwardRef(SvgIcon)
50
- className="govgr-svg-icon--caret"
51
- >
52
- <ForwardRef(Base)
53
- aria-hidden="true"
54
- as="svg"
55
- className="govgr-svg-icon--caret govgr-svg-icon"
56
- focusable="false"
57
- viewBox="0 0 24 24"
58
- >
59
- <svg
60
- aria-hidden="true"
61
- className="govgr-svg-icon--caret govgr-svg-icon"
62
- focusable="false"
63
- viewBox="0 0 24 24"
64
- >
65
- <caret
66
- direction="right"
67
- >
68
- <path
69
- d="M6,2v20l12-10L6,2z"
70
- />
71
- </caret>
72
- </svg>
73
- </ForwardRef(Base)>
74
- </ForwardRef(SvgIcon)>
75
- </ForwardRef(Icon)>
76
- </CaretIcon>
77
- `;
78
-
79
- exports[`renders the CaretIcon with direction up prop 1`] = `
80
- <CaretIcon
81
- direction="up"
82
- >
83
- <ForwardRef(Icon)
84
- direction="up"
85
- icon="caret"
86
- >
87
- <ForwardRef(SvgIcon)
88
- className="govgr-svg-icon--caret"
89
- >
90
- <ForwardRef(Base)
91
- aria-hidden="true"
92
- as="svg"
93
- className="govgr-svg-icon--caret govgr-svg-icon"
94
- focusable="false"
95
- viewBox="0 0 24 24"
96
- >
97
- <svg
98
- aria-hidden="true"
99
- className="govgr-svg-icon--caret govgr-svg-icon"
100
- focusable="false"
101
- viewBox="0 0 24 24"
102
- >
103
- <caret
104
- direction="up"
105
- >
106
- <path
107
- d="M2,18h20L12,6L2,18z"
108
- />
109
- </caret>
110
- </svg>
111
- </ForwardRef(Base)>
112
- </ForwardRef(SvgIcon)>
113
- </ForwardRef(Icon)>
114
- </CaretIcon>
115
- `;
116
-
117
- exports[`renders the CaretIcon with no props, direction prop is left by default 1`] = `
118
- <CaretIcon>
119
- <ForwardRef(Icon)
120
- icon="caret"
121
- >
122
- <ForwardRef(SvgIcon)
123
- className="govgr-svg-icon--caret"
124
- >
125
- <ForwardRef(Base)
126
- aria-hidden="true"
127
- as="svg"
128
- className="govgr-svg-icon--caret govgr-svg-icon"
129
- focusable="false"
130
- viewBox="0 0 24 24"
131
- >
132
- <svg
133
- aria-hidden="true"
134
- className="govgr-svg-icon--caret govgr-svg-icon"
135
- focusable="false"
136
- viewBox="0 0 24 24"
137
- >
138
- <caret>
139
- <path
140
- d="M18,22V2L6,12L18,22z"
141
- />
142
- </caret>
143
- </svg>
144
- </ForwardRef(Base)>
145
- </ForwardRef(SvgIcon)>
146
- </ForwardRef(Icon)>
147
- </CaretIcon>
148
- `;
@@ -1,27 +0,0 @@
1
- import React from 'react';
2
-
3
- var _ref2 = /*#__PURE__*/React.createElement("path", {
4
- d: "M18,22V2L6,12L18,22z"
5
- });
6
-
7
- var _ref3 = /*#__PURE__*/React.createElement("path", {
8
- d: "M6,2v20l12-10L6,2z"
9
- });
10
-
11
- var _ref4 = /*#__PURE__*/React.createElement("path", {
12
- d: "M2,18h20L12,6L2,18z"
13
- });
14
-
15
- var _ref5 = /*#__PURE__*/React.createElement("path", {
16
- d: "M22,6H2l10,12L22,6z"
17
- });
18
-
19
- export var caret = function caret(_ref) {
20
- var _ref$direction = _ref.direction,
21
- direction = _ref$direction === void 0 ? 'left' : _ref$direction;
22
- return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
23
- }; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
- // @ts-ignore
25
-
26
- caret.props = ['direction'];
27
- export default caret;
@@ -1,9 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import React from 'react';
3
- import Icon from '@digigov/react-core/Icon';
4
- export var CaretIcon = function CaretIcon(props) {
5
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
6
- icon: "caret"
7
- }));
8
- };
9
- export default CaretIcon;