@digigov/react-icons 1.2.0-496927f3 → 2.0.0-af1b5f33
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.
- package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/ArrowIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +38 -38
- package/BurgerIcon/config/index.js +4 -4
- package/CancelIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/CaretIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/ChatIcon/config/index.js +17 -0
- package/ChatIcon/config/package.json +6 -0
- package/ChatIcon/config.d.ts +11 -0
- package/ChatIcon/index.d.ts +4 -0
- package/ChatIcon/index.js +9 -0
- package/ChatIcon/index.test/index.js +51 -0
- package/ChatIcon/index.test/package.json +6 -0
- package/ChatIcon/index.test.d.ts +1 -0
- package/ChatIcon/package.json +6 -0
- package/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
- package/ChevronIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/CloseIcon/__snapshots__/index.test.tsx.snap +3 -3
- package/DownloadIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/ExclamationIcon/config/index.js +14 -0
- package/ExclamationIcon/config/package.json +6 -0
- package/ExclamationIcon/config.d.ts +8 -0
- package/ExclamationIcon/index.d.ts +4 -0
- package/ExclamationIcon/index.js +9 -0
- package/ExclamationIcon/index.test/index.js +45 -0
- package/ExclamationIcon/index.test/package.json +6 -0
- package/ExclamationIcon/index.test.d.ts +1 -0
- package/ExclamationIcon/package.json +6 -0
- package/GlobeIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/Icon/__snapshots__/index.test.tsx.snap +33 -33
- package/Icon/index.js +1 -1
- package/LockIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/LoginIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/MinusIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/PdfFileIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/PlusIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/ReplyIcon/config/index.js +9 -0
- package/ReplyIcon/config/package.json +6 -0
- package/ReplyIcon/config.d.ts +8 -0
- package/ReplyIcon/index.d.ts +4 -0
- package/ReplyIcon/index.js +9 -0
- package/ReplyIcon/index.test/index.js +45 -0
- package/ReplyIcon/index.test/package.json +6 -0
- package/ReplyIcon/index.test.d.ts +1 -0
- package/ReplyIcon/package.json +6 -0
- package/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/RestoreIcon/config/index.js +17 -0
- package/RestoreIcon/config/package.json +6 -0
- package/RestoreIcon/config.d.ts +8 -0
- package/RestoreIcon/index.d.ts +4 -0
- package/RestoreIcon/index.js +9 -0
- package/RestoreIcon/index.test/index.js +45 -0
- package/RestoreIcon/index.test/package.json +6 -0
- package/RestoreIcon/index.test.d.ts +1 -0
- package/RestoreIcon/package.json +6 -0
- package/SearchIcon/__snapshots__/index.test.tsx.snap +3 -3
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/cjs/ArrowIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +38 -38
- package/cjs/BurgerIcon/config/index.js +4 -4
- package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/cjs/CaretIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/cjs/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/cjs/ChatIcon/config/index.js +24 -0
- package/cjs/ChatIcon/index.js +16 -0
- package/cjs/ChatIcon/index.test/index.js +54 -0
- package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
- package/cjs/ChevronIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/cjs/CloseIcon/__snapshots__/index.test.tsx.snap +3 -3
- package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/cjs/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/cjs/ExclamationIcon/config/index.js +22 -0
- package/cjs/ExclamationIcon/index.js +16 -0
- package/cjs/ExclamationIcon/index.test/index.js +48 -0
- package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/cjs/Icon/__snapshots__/index.test.tsx.snap +33 -33
- package/cjs/Icon/index.js +1 -1
- package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/cjs/LoginIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/cjs/MoreVertIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/cjs/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/cjs/ReplyIcon/config/index.js +17 -0
- package/cjs/ReplyIcon/index.js +16 -0
- package/cjs/ReplyIcon/index.test/index.js +48 -0
- package/cjs/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/cjs/RestoreIcon/config/index.js +25 -0
- package/cjs/RestoreIcon/index.js +16 -0
- package/cjs/RestoreIcon/index.test/index.js +48 -0
- package/cjs/SearchIcon/__snapshots__/index.test.tsx.snap +3 -3
- package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/cjs/icons/index.js +44 -0
- package/cjs/index.js +44 -0
- package/cjs/registry/index.js +9 -1
- package/icons/index.js +4 -0
- package/icons.d.ts +12 -0
- package/index.d.ts +4 -0
- package/index.js +6 -2
- package/package.json +3 -3
- package/registry/index.js +9 -1
- package/registry.d.ts +4 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +38 -38
- package/src/BurgerIcon/config.tsx +4 -4
- package/src/CancelIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/src/CaretIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/src/ChatIcon/__snapshots__/index.test.tsx.snap +300 -0
- package/src/ChatIcon/config.tsx +28 -0
- package/src/ChatIcon/index.test.tsx +29 -0
- package/src/ChatIcon/index.tsx +8 -0
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
- package/src/ChevronIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/src/CloseIcon/__snapshots__/index.test.tsx.snap +3 -3
- package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +297 -0
- package/src/ExclamationIcon/config.tsx +16 -0
- package/src/ExclamationIcon/index.test.tsx +26 -0
- package/src/ExclamationIcon/index.tsx +8 -0
- package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/src/Icon/__snapshots__/index.test.tsx.snap +33 -33
- package/src/Icon/index.tsx +1 -1
- package/src/LockIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/src/LoginIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/src/MinusIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/src/PlusIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +262 -0
- package/src/ReplyIcon/config.tsx +15 -0
- package/src/ReplyIcon/index.test.tsx +26 -0
- package/src/ReplyIcon/index.tsx +8 -0
- package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +318 -0
- package/src/RestoreIcon/config.tsx +17 -0
- package/src/RestoreIcon/index.test.tsx +26 -0
- package/src/RestoreIcon/index.tsx +8 -0
- package/src/SearchIcon/__snapshots__/index.test.tsx.snap +3 -3
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +27 -27
- package/src/icons.ts +13 -0
- package/src/index.ts +4 -0
- package/src/registry.js +10 -2
|
@@ -6,18 +6,18 @@ exports[`renders the PlusIcon with no props 1`] = `
|
|
|
6
6
|
icon="plus"
|
|
7
7
|
>
|
|
8
8
|
<ForwardRef(SvgIcon)
|
|
9
|
-
className="
|
|
9
|
+
className="ds-svg-icon--plus"
|
|
10
10
|
>
|
|
11
11
|
<ForwardRef(Base)
|
|
12
12
|
aria-hidden="true"
|
|
13
13
|
as="svg"
|
|
14
|
-
className="
|
|
14
|
+
className="ds-svg-icon--plus ds-svg-icon"
|
|
15
15
|
focusable="false"
|
|
16
16
|
viewBox="0 0 24 24"
|
|
17
17
|
>
|
|
18
18
|
<svg
|
|
19
19
|
aria-hidden="true"
|
|
20
|
-
className="
|
|
20
|
+
className="ds-svg-icon--plus ds-svg-icon"
|
|
21
21
|
focusable="false"
|
|
22
22
|
viewBox="0 0 24 24"
|
|
23
23
|
>
|
|
@@ -42,19 +42,19 @@ exports[`renders the PlusIcon with prop size=m 1`] = `
|
|
|
42
42
|
size="md"
|
|
43
43
|
>
|
|
44
44
|
<ForwardRef(SvgIcon)
|
|
45
|
-
className="
|
|
45
|
+
className="ds-svg-icon--plus"
|
|
46
46
|
size="md"
|
|
47
47
|
>
|
|
48
48
|
<ForwardRef(Base)
|
|
49
49
|
aria-hidden="true"
|
|
50
50
|
as="svg"
|
|
51
|
-
className="
|
|
51
|
+
className="ds-svg-icon--plus ds-svg-icon--md ds-svg-icon"
|
|
52
52
|
focusable="false"
|
|
53
53
|
viewBox="0 0 24 24"
|
|
54
54
|
>
|
|
55
55
|
<svg
|
|
56
56
|
aria-hidden="true"
|
|
57
|
-
className="
|
|
57
|
+
className="ds-svg-icon--plus ds-svg-icon--md ds-svg-icon"
|
|
58
58
|
focusable="false"
|
|
59
59
|
viewBox="0 0 24 24"
|
|
60
60
|
>
|
|
@@ -79,19 +79,19 @@ exports[`renders the PlusIcon with prop size=xl 1`] = `
|
|
|
79
79
|
size="xl"
|
|
80
80
|
>
|
|
81
81
|
<ForwardRef(SvgIcon)
|
|
82
|
-
className="
|
|
82
|
+
className="ds-svg-icon--plus"
|
|
83
83
|
size="xl"
|
|
84
84
|
>
|
|
85
85
|
<ForwardRef(Base)
|
|
86
86
|
aria-hidden="true"
|
|
87
87
|
as="svg"
|
|
88
|
-
className="
|
|
88
|
+
className="ds-svg-icon--plus ds-svg-icon--xl ds-svg-icon"
|
|
89
89
|
focusable="false"
|
|
90
90
|
viewBox="0 0 24 24"
|
|
91
91
|
>
|
|
92
92
|
<svg
|
|
93
93
|
aria-hidden="true"
|
|
94
|
-
className="
|
|
94
|
+
className="ds-svg-icon--plus ds-svg-icon--xl ds-svg-icon"
|
|
95
95
|
focusable="false"
|
|
96
96
|
viewBox="0 0 24 24"
|
|
97
97
|
>
|
|
@@ -118,20 +118,20 @@ exports[`renders the PlusIcon with prop variant=error and size= xl 1`] = `
|
|
|
118
118
|
variant="warning"
|
|
119
119
|
>
|
|
120
120
|
<ForwardRef(SvgIcon)
|
|
121
|
-
className="
|
|
121
|
+
className="ds-svg-icon--plus"
|
|
122
122
|
size="xl"
|
|
123
123
|
variant="warning"
|
|
124
124
|
>
|
|
125
125
|
<ForwardRef(Base)
|
|
126
126
|
aria-hidden="true"
|
|
127
127
|
as="svg"
|
|
128
|
-
className="
|
|
128
|
+
className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
129
129
|
focusable="false"
|
|
130
130
|
viewBox="0 0 24 24"
|
|
131
131
|
>
|
|
132
132
|
<svg
|
|
133
133
|
aria-hidden="true"
|
|
134
|
-
className="
|
|
134
|
+
className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
135
135
|
focusable="false"
|
|
136
136
|
viewBox="0 0 24 24"
|
|
137
137
|
>
|
|
@@ -156,19 +156,19 @@ exports[`renders the PlusIcon with prop variant=light 1`] = `
|
|
|
156
156
|
variant="light"
|
|
157
157
|
>
|
|
158
158
|
<ForwardRef(SvgIcon)
|
|
159
|
-
className="
|
|
159
|
+
className="ds-svg-icon--plus"
|
|
160
160
|
variant="light"
|
|
161
161
|
>
|
|
162
162
|
<ForwardRef(Base)
|
|
163
163
|
aria-hidden="true"
|
|
164
164
|
as="svg"
|
|
165
|
-
className="
|
|
165
|
+
className="ds-svg-icon--plus ds-svg-icon--light ds-svg-icon"
|
|
166
166
|
focusable="false"
|
|
167
167
|
viewBox="0 0 24 24"
|
|
168
168
|
>
|
|
169
169
|
<svg
|
|
170
170
|
aria-hidden="true"
|
|
171
|
-
className="
|
|
171
|
+
className="ds-svg-icon--plus ds-svg-icon--light ds-svg-icon"
|
|
172
172
|
focusable="false"
|
|
173
173
|
viewBox="0 0 24 24"
|
|
174
174
|
>
|
|
@@ -193,19 +193,19 @@ exports[`renders the PlusIcon with prop variant=warning 1`] = `
|
|
|
193
193
|
variant="warning"
|
|
194
194
|
>
|
|
195
195
|
<ForwardRef(SvgIcon)
|
|
196
|
-
className="
|
|
196
|
+
className="ds-svg-icon--plus"
|
|
197
197
|
variant="warning"
|
|
198
198
|
>
|
|
199
199
|
<ForwardRef(Base)
|
|
200
200
|
aria-hidden="true"
|
|
201
201
|
as="svg"
|
|
202
|
-
className="
|
|
202
|
+
className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon"
|
|
203
203
|
focusable="false"
|
|
204
204
|
viewBox="0 0 24 24"
|
|
205
205
|
>
|
|
206
206
|
<svg
|
|
207
207
|
aria-hidden="true"
|
|
208
|
-
className="
|
|
208
|
+
className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon"
|
|
209
209
|
focusable="false"
|
|
210
210
|
viewBox="0 0 24 24"
|
|
211
211
|
>
|
|
@@ -232,20 +232,20 @@ exports[`renders the PlusIcon with prop variant=warning and size=s 1`] = `
|
|
|
232
232
|
variant="warning"
|
|
233
233
|
>
|
|
234
234
|
<ForwardRef(SvgIcon)
|
|
235
|
-
className="
|
|
235
|
+
className="ds-svg-icon--plus"
|
|
236
236
|
size="sm"
|
|
237
237
|
variant="warning"
|
|
238
238
|
>
|
|
239
239
|
<ForwardRef(Base)
|
|
240
240
|
aria-hidden="true"
|
|
241
241
|
as="svg"
|
|
242
|
-
className="
|
|
242
|
+
className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
243
243
|
focusable="false"
|
|
244
244
|
viewBox="0 0 24 24"
|
|
245
245
|
>
|
|
246
246
|
<svg
|
|
247
247
|
aria-hidden="true"
|
|
248
|
-
className="
|
|
248
|
+
className="ds-svg-icon--plus ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
249
249
|
focusable="false"
|
|
250
250
|
viewBox="0 0 24 24"
|
|
251
251
|
>
|
|
@@ -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
|
+
});
|