@digigov/react-icons 1.2.0-496927f3 → 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.
- 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/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/PrintIcon/config/index.js +15 -0
- package/PrintIcon/config/package.json +6 -0
- package/PrintIcon/config.d.ts +8 -0
- package/PrintIcon/index.d.ts +4 -0
- package/PrintIcon/index.js +9 -0
- package/PrintIcon/index.test/index.js +45 -0
- package/PrintIcon/index.test/package.json +6 -0
- package/PrintIcon/index.test.d.ts +1 -0
- package/PrintIcon/package.json +6 -0
- 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/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/cjs/PrintIcon/config/index.js +23 -0
- package/cjs/PrintIcon/index.js +16 -0
- package/cjs/PrintIcon/index.test/index.js +48 -0
- 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 +55 -0
- package/cjs/index.js +55 -0
- package/cjs/registry/index.js +10 -0
- package/icons/index.js +5 -0
- package/icons.d.ts +15 -0
- package/index.d.ts +5 -0
- package/index.js +7 -2
- package/package.json +3 -3
- package/registry/index.js +10 -0
- package/registry.d.ts +5 -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/PrintIcon/__snapshots__/index.test.tsx.snap +304 -0
- package/src/PrintIcon/config.tsx +16 -0
- package/src/PrintIcon/index.test.tsx +26 -0
- package/src/PrintIcon/index.tsx +8 -0
- 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 +16 -0
- package/src/index.ts +5 -0
- package/src/registry.js +10 -0
|
@@ -6,18 +6,18 @@ exports[`renders the CancelIcon with no props 1`] = `
|
|
|
6
6
|
icon="cancel"
|
|
7
7
|
>
|
|
8
8
|
<ForwardRef(SvgIcon)
|
|
9
|
-
className="
|
|
9
|
+
className="ds-svg-icon--cancel"
|
|
10
10
|
>
|
|
11
11
|
<ForwardRef(Base)
|
|
12
12
|
aria-hidden="true"
|
|
13
13
|
as="svg"
|
|
14
|
-
className="
|
|
14
|
+
className="ds-svg-icon--cancel 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--cancel ds-svg-icon"
|
|
21
21
|
focusable="false"
|
|
22
22
|
viewBox="0 0 24 24"
|
|
23
23
|
>
|
|
@@ -42,19 +42,19 @@ exports[`renders the CancelIcon with prop size=m 1`] = `
|
|
|
42
42
|
size="md"
|
|
43
43
|
>
|
|
44
44
|
<ForwardRef(SvgIcon)
|
|
45
|
-
className="
|
|
45
|
+
className="ds-svg-icon--cancel"
|
|
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--cancel 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--cancel 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 CancelIcon with prop size=xl 1`] = `
|
|
|
79
79
|
size="xl"
|
|
80
80
|
>
|
|
81
81
|
<ForwardRef(SvgIcon)
|
|
82
|
-
className="
|
|
82
|
+
className="ds-svg-icon--cancel"
|
|
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--cancel 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--cancel 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 CancelIcon 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--cancel"
|
|
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--cancel 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--cancel 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 CancelIcon with prop variant=light 1`] = `
|
|
|
156
156
|
variant="light"
|
|
157
157
|
>
|
|
158
158
|
<ForwardRef(SvgIcon)
|
|
159
|
-
className="
|
|
159
|
+
className="ds-svg-icon--cancel"
|
|
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--cancel 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--cancel 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 CancelIcon with prop variant=warning 1`] = `
|
|
|
193
193
|
variant="warning"
|
|
194
194
|
>
|
|
195
195
|
<ForwardRef(SvgIcon)
|
|
196
|
-
className="
|
|
196
|
+
className="ds-svg-icon--cancel"
|
|
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--cancel 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--cancel 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 CancelIcon 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--cancel"
|
|
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--cancel 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--cancel ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
249
249
|
focusable="false"
|
|
250
250
|
viewBox="0 0 24 24"
|
|
251
251
|
>
|
|
@@ -9,18 +9,18 @@ exports[`renders the CaretIcon with direction down prop 1`] = `
|
|
|
9
9
|
icon="caret"
|
|
10
10
|
>
|
|
11
11
|
<ForwardRef(SvgIcon)
|
|
12
|
-
className="
|
|
12
|
+
className="ds-svg-icon--caret"
|
|
13
13
|
>
|
|
14
14
|
<ForwardRef(Base)
|
|
15
15
|
aria-hidden="true"
|
|
16
16
|
as="svg"
|
|
17
|
-
className="
|
|
17
|
+
className="ds-svg-icon--caret ds-svg-icon"
|
|
18
18
|
focusable="false"
|
|
19
19
|
viewBox="0 0 24 24"
|
|
20
20
|
>
|
|
21
21
|
<svg
|
|
22
22
|
aria-hidden="true"
|
|
23
|
-
className="
|
|
23
|
+
className="ds-svg-icon--caret ds-svg-icon"
|
|
24
24
|
focusable="false"
|
|
25
25
|
viewBox="0 0 24 24"
|
|
26
26
|
>
|
|
@@ -47,18 +47,18 @@ exports[`renders the CaretIcon with direction right prop 1`] = `
|
|
|
47
47
|
icon="caret"
|
|
48
48
|
>
|
|
49
49
|
<ForwardRef(SvgIcon)
|
|
50
|
-
className="
|
|
50
|
+
className="ds-svg-icon--caret"
|
|
51
51
|
>
|
|
52
52
|
<ForwardRef(Base)
|
|
53
53
|
aria-hidden="true"
|
|
54
54
|
as="svg"
|
|
55
|
-
className="
|
|
55
|
+
className="ds-svg-icon--caret ds-svg-icon"
|
|
56
56
|
focusable="false"
|
|
57
57
|
viewBox="0 0 24 24"
|
|
58
58
|
>
|
|
59
59
|
<svg
|
|
60
60
|
aria-hidden="true"
|
|
61
|
-
className="
|
|
61
|
+
className="ds-svg-icon--caret ds-svg-icon"
|
|
62
62
|
focusable="false"
|
|
63
63
|
viewBox="0 0 24 24"
|
|
64
64
|
>
|
|
@@ -85,18 +85,18 @@ exports[`renders the CaretIcon with direction up prop 1`] = `
|
|
|
85
85
|
icon="caret"
|
|
86
86
|
>
|
|
87
87
|
<ForwardRef(SvgIcon)
|
|
88
|
-
className="
|
|
88
|
+
className="ds-svg-icon--caret"
|
|
89
89
|
>
|
|
90
90
|
<ForwardRef(Base)
|
|
91
91
|
aria-hidden="true"
|
|
92
92
|
as="svg"
|
|
93
|
-
className="
|
|
93
|
+
className="ds-svg-icon--caret ds-svg-icon"
|
|
94
94
|
focusable="false"
|
|
95
95
|
viewBox="0 0 24 24"
|
|
96
96
|
>
|
|
97
97
|
<svg
|
|
98
98
|
aria-hidden="true"
|
|
99
|
-
className="
|
|
99
|
+
className="ds-svg-icon--caret ds-svg-icon"
|
|
100
100
|
focusable="false"
|
|
101
101
|
viewBox="0 0 24 24"
|
|
102
102
|
>
|
|
@@ -120,18 +120,18 @@ exports[`renders the CaretIcon with no props, direction prop is left by default
|
|
|
120
120
|
icon="caret"
|
|
121
121
|
>
|
|
122
122
|
<ForwardRef(SvgIcon)
|
|
123
|
-
className="
|
|
123
|
+
className="ds-svg-icon--caret"
|
|
124
124
|
>
|
|
125
125
|
<ForwardRef(Base)
|
|
126
126
|
aria-hidden="true"
|
|
127
127
|
as="svg"
|
|
128
|
-
className="
|
|
128
|
+
className="ds-svg-icon--caret 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--caret ds-svg-icon"
|
|
135
135
|
focusable="false"
|
|
136
136
|
viewBox="0 0 24 24"
|
|
137
137
|
>
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`renders the ChatIcon with dots 1`] = `
|
|
4
|
+
<ChatIcon
|
|
5
|
+
dots={true}
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(Icon)
|
|
8
|
+
dots={true}
|
|
9
|
+
icon="chat"
|
|
10
|
+
>
|
|
11
|
+
<ForwardRef(SvgIcon)
|
|
12
|
+
className="ds-svg-icon--chat"
|
|
13
|
+
>
|
|
14
|
+
<ForwardRef(Base)
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
as="svg"
|
|
17
|
+
className="ds-svg-icon--chat ds-svg-icon"
|
|
18
|
+
focusable="false"
|
|
19
|
+
viewBox="0 0 24 24"
|
|
20
|
+
>
|
|
21
|
+
<svg
|
|
22
|
+
aria-hidden="true"
|
|
23
|
+
className="ds-svg-icon--chat ds-svg-icon"
|
|
24
|
+
focusable="false"
|
|
25
|
+
viewBox="0 0 24 24"
|
|
26
|
+
>
|
|
27
|
+
<chat
|
|
28
|
+
dots={true}
|
|
29
|
+
>
|
|
30
|
+
<path
|
|
31
|
+
d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2ZM7.65,11.3c-.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.3ZM12,11.3c-.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.3ZM16.35,11.3c-.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"
|
|
32
|
+
/>
|
|
33
|
+
</chat>
|
|
34
|
+
</svg>
|
|
35
|
+
</ForwardRef(Base)>
|
|
36
|
+
</ForwardRef(SvgIcon)>
|
|
37
|
+
</ForwardRef(Icon)>
|
|
38
|
+
</ChatIcon>
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
exports[`renders the ChatIcon with no props 1`] = `
|
|
42
|
+
<ChatIcon>
|
|
43
|
+
<ForwardRef(Icon)
|
|
44
|
+
icon="chat"
|
|
45
|
+
>
|
|
46
|
+
<ForwardRef(SvgIcon)
|
|
47
|
+
className="ds-svg-icon--chat"
|
|
48
|
+
>
|
|
49
|
+
<ForwardRef(Base)
|
|
50
|
+
aria-hidden="true"
|
|
51
|
+
as="svg"
|
|
52
|
+
className="ds-svg-icon--chat ds-svg-icon"
|
|
53
|
+
focusable="false"
|
|
54
|
+
viewBox="0 0 24 24"
|
|
55
|
+
>
|
|
56
|
+
<svg
|
|
57
|
+
aria-hidden="true"
|
|
58
|
+
className="ds-svg-icon--chat ds-svg-icon"
|
|
59
|
+
focusable="false"
|
|
60
|
+
viewBox="0 0 24 24"
|
|
61
|
+
>
|
|
62
|
+
<chat>
|
|
63
|
+
<path
|
|
64
|
+
d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z"
|
|
65
|
+
/>
|
|
66
|
+
</chat>
|
|
67
|
+
</svg>
|
|
68
|
+
</ForwardRef(Base)>
|
|
69
|
+
</ForwardRef(SvgIcon)>
|
|
70
|
+
</ForwardRef(Icon)>
|
|
71
|
+
</ChatIcon>
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
exports[`renders the ChatIcon with prop size=md 1`] = `
|
|
75
|
+
<ChatIcon
|
|
76
|
+
size="md"
|
|
77
|
+
>
|
|
78
|
+
<ForwardRef(Icon)
|
|
79
|
+
icon="chat"
|
|
80
|
+
size="md"
|
|
81
|
+
>
|
|
82
|
+
<ForwardRef(SvgIcon)
|
|
83
|
+
className="ds-svg-icon--chat"
|
|
84
|
+
size="md"
|
|
85
|
+
>
|
|
86
|
+
<ForwardRef(Base)
|
|
87
|
+
aria-hidden="true"
|
|
88
|
+
as="svg"
|
|
89
|
+
className="ds-svg-icon--chat ds-svg-icon--md ds-svg-icon"
|
|
90
|
+
focusable="false"
|
|
91
|
+
viewBox="0 0 24 24"
|
|
92
|
+
>
|
|
93
|
+
<svg
|
|
94
|
+
aria-hidden="true"
|
|
95
|
+
className="ds-svg-icon--chat ds-svg-icon--md ds-svg-icon"
|
|
96
|
+
focusable="false"
|
|
97
|
+
viewBox="0 0 24 24"
|
|
98
|
+
>
|
|
99
|
+
<chat>
|
|
100
|
+
<path
|
|
101
|
+
d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z"
|
|
102
|
+
/>
|
|
103
|
+
</chat>
|
|
104
|
+
</svg>
|
|
105
|
+
</ForwardRef(Base)>
|
|
106
|
+
</ForwardRef(SvgIcon)>
|
|
107
|
+
</ForwardRef(Icon)>
|
|
108
|
+
</ChatIcon>
|
|
109
|
+
`;
|
|
110
|
+
|
|
111
|
+
exports[`renders the ChatIcon with prop size=xl 1`] = `
|
|
112
|
+
<ChatIcon
|
|
113
|
+
size="xl"
|
|
114
|
+
>
|
|
115
|
+
<ForwardRef(Icon)
|
|
116
|
+
icon="chat"
|
|
117
|
+
size="xl"
|
|
118
|
+
>
|
|
119
|
+
<ForwardRef(SvgIcon)
|
|
120
|
+
className="ds-svg-icon--chat"
|
|
121
|
+
size="xl"
|
|
122
|
+
>
|
|
123
|
+
<ForwardRef(Base)
|
|
124
|
+
aria-hidden="true"
|
|
125
|
+
as="svg"
|
|
126
|
+
className="ds-svg-icon--chat ds-svg-icon--xl ds-svg-icon"
|
|
127
|
+
focusable="false"
|
|
128
|
+
viewBox="0 0 24 24"
|
|
129
|
+
>
|
|
130
|
+
<svg
|
|
131
|
+
aria-hidden="true"
|
|
132
|
+
className="ds-svg-icon--chat ds-svg-icon--xl ds-svg-icon"
|
|
133
|
+
focusable="false"
|
|
134
|
+
viewBox="0 0 24 24"
|
|
135
|
+
>
|
|
136
|
+
<chat>
|
|
137
|
+
<path
|
|
138
|
+
d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z"
|
|
139
|
+
/>
|
|
140
|
+
</chat>
|
|
141
|
+
</svg>
|
|
142
|
+
</ForwardRef(Base)>
|
|
143
|
+
</ForwardRef(SvgIcon)>
|
|
144
|
+
</ForwardRef(Icon)>
|
|
145
|
+
</ChatIcon>
|
|
146
|
+
`;
|
|
147
|
+
|
|
148
|
+
exports[`renders the ChatIcon with prop variant=error and size= xl 1`] = `
|
|
149
|
+
<ChatIcon
|
|
150
|
+
size="xl"
|
|
151
|
+
variant="warning"
|
|
152
|
+
>
|
|
153
|
+
<ForwardRef(Icon)
|
|
154
|
+
icon="chat"
|
|
155
|
+
size="xl"
|
|
156
|
+
variant="warning"
|
|
157
|
+
>
|
|
158
|
+
<ForwardRef(SvgIcon)
|
|
159
|
+
className="ds-svg-icon--chat"
|
|
160
|
+
size="xl"
|
|
161
|
+
variant="warning"
|
|
162
|
+
>
|
|
163
|
+
<ForwardRef(Base)
|
|
164
|
+
aria-hidden="true"
|
|
165
|
+
as="svg"
|
|
166
|
+
className="ds-svg-icon--chat ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
167
|
+
focusable="false"
|
|
168
|
+
viewBox="0 0 24 24"
|
|
169
|
+
>
|
|
170
|
+
<svg
|
|
171
|
+
aria-hidden="true"
|
|
172
|
+
className="ds-svg-icon--chat ds-svg-icon--warning ds-svg-icon--xl ds-svg-icon"
|
|
173
|
+
focusable="false"
|
|
174
|
+
viewBox="0 0 24 24"
|
|
175
|
+
>
|
|
176
|
+
<chat>
|
|
177
|
+
<path
|
|
178
|
+
d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z"
|
|
179
|
+
/>
|
|
180
|
+
</chat>
|
|
181
|
+
</svg>
|
|
182
|
+
</ForwardRef(Base)>
|
|
183
|
+
</ForwardRef(SvgIcon)>
|
|
184
|
+
</ForwardRef(Icon)>
|
|
185
|
+
</ChatIcon>
|
|
186
|
+
`;
|
|
187
|
+
|
|
188
|
+
exports[`renders the ChatIcon with prop variant=light 1`] = `
|
|
189
|
+
<ChatIcon
|
|
190
|
+
variant="light"
|
|
191
|
+
>
|
|
192
|
+
<ForwardRef(Icon)
|
|
193
|
+
icon="chat"
|
|
194
|
+
variant="light"
|
|
195
|
+
>
|
|
196
|
+
<ForwardRef(SvgIcon)
|
|
197
|
+
className="ds-svg-icon--chat"
|
|
198
|
+
variant="light"
|
|
199
|
+
>
|
|
200
|
+
<ForwardRef(Base)
|
|
201
|
+
aria-hidden="true"
|
|
202
|
+
as="svg"
|
|
203
|
+
className="ds-svg-icon--chat ds-svg-icon--light ds-svg-icon"
|
|
204
|
+
focusable="false"
|
|
205
|
+
viewBox="0 0 24 24"
|
|
206
|
+
>
|
|
207
|
+
<svg
|
|
208
|
+
aria-hidden="true"
|
|
209
|
+
className="ds-svg-icon--chat ds-svg-icon--light ds-svg-icon"
|
|
210
|
+
focusable="false"
|
|
211
|
+
viewBox="0 0 24 24"
|
|
212
|
+
>
|
|
213
|
+
<chat>
|
|
214
|
+
<path
|
|
215
|
+
d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z"
|
|
216
|
+
/>
|
|
217
|
+
</chat>
|
|
218
|
+
</svg>
|
|
219
|
+
</ForwardRef(Base)>
|
|
220
|
+
</ForwardRef(SvgIcon)>
|
|
221
|
+
</ForwardRef(Icon)>
|
|
222
|
+
</ChatIcon>
|
|
223
|
+
`;
|
|
224
|
+
|
|
225
|
+
exports[`renders the ChatIcon with prop variant=warning 1`] = `
|
|
226
|
+
<ChatIcon
|
|
227
|
+
variant="warning"
|
|
228
|
+
>
|
|
229
|
+
<ForwardRef(Icon)
|
|
230
|
+
icon="chat"
|
|
231
|
+
variant="warning"
|
|
232
|
+
>
|
|
233
|
+
<ForwardRef(SvgIcon)
|
|
234
|
+
className="ds-svg-icon--chat"
|
|
235
|
+
variant="warning"
|
|
236
|
+
>
|
|
237
|
+
<ForwardRef(Base)
|
|
238
|
+
aria-hidden="true"
|
|
239
|
+
as="svg"
|
|
240
|
+
className="ds-svg-icon--chat ds-svg-icon--warning ds-svg-icon"
|
|
241
|
+
focusable="false"
|
|
242
|
+
viewBox="0 0 24 24"
|
|
243
|
+
>
|
|
244
|
+
<svg
|
|
245
|
+
aria-hidden="true"
|
|
246
|
+
className="ds-svg-icon--chat ds-svg-icon--warning ds-svg-icon"
|
|
247
|
+
focusable="false"
|
|
248
|
+
viewBox="0 0 24 24"
|
|
249
|
+
>
|
|
250
|
+
<chat>
|
|
251
|
+
<path
|
|
252
|
+
d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z"
|
|
253
|
+
/>
|
|
254
|
+
</chat>
|
|
255
|
+
</svg>
|
|
256
|
+
</ForwardRef(Base)>
|
|
257
|
+
</ForwardRef(SvgIcon)>
|
|
258
|
+
</ForwardRef(Icon)>
|
|
259
|
+
</ChatIcon>
|
|
260
|
+
`;
|
|
261
|
+
|
|
262
|
+
exports[`renders the ChatIcon with prop variant=warning and size=sm 1`] = `
|
|
263
|
+
<ChatIcon
|
|
264
|
+
size="sm"
|
|
265
|
+
variant="warning"
|
|
266
|
+
>
|
|
267
|
+
<ForwardRef(Icon)
|
|
268
|
+
icon="chat"
|
|
269
|
+
size="sm"
|
|
270
|
+
variant="warning"
|
|
271
|
+
>
|
|
272
|
+
<ForwardRef(SvgIcon)
|
|
273
|
+
className="ds-svg-icon--chat"
|
|
274
|
+
size="sm"
|
|
275
|
+
variant="warning"
|
|
276
|
+
>
|
|
277
|
+
<ForwardRef(Base)
|
|
278
|
+
aria-hidden="true"
|
|
279
|
+
as="svg"
|
|
280
|
+
className="ds-svg-icon--chat ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
281
|
+
focusable="false"
|
|
282
|
+
viewBox="0 0 24 24"
|
|
283
|
+
>
|
|
284
|
+
<svg
|
|
285
|
+
aria-hidden="true"
|
|
286
|
+
className="ds-svg-icon--chat ds-svg-icon--warning ds-svg-icon--sm ds-svg-icon"
|
|
287
|
+
focusable="false"
|
|
288
|
+
viewBox="0 0 24 24"
|
|
289
|
+
>
|
|
290
|
+
<chat>
|
|
291
|
+
<path
|
|
292
|
+
d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z"
|
|
293
|
+
/>
|
|
294
|
+
</chat>
|
|
295
|
+
</svg>
|
|
296
|
+
</ForwardRef(Base)>
|
|
297
|
+
</ForwardRef(SvgIcon)>
|
|
298
|
+
</ForwardRef(Icon)>
|
|
299
|
+
</ChatIcon>
|
|
300
|
+
`;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ChatType {
|
|
4
|
+
/**
|
|
5
|
+
* @value 'false'
|
|
6
|
+
* @value 'true'
|
|
7
|
+
* @default 'false'
|
|
8
|
+
*/
|
|
9
|
+
dots?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const chat: React.FC<ChatType> = ({ dots = false }) => {
|
|
13
|
+
return (
|
|
14
|
+
<>
|
|
15
|
+
{dots ? (
|
|
16
|
+
<path d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2ZM7.65,11.3c-.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.3ZM12,11.3c-.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.3ZM16.35,11.3c-.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" />
|
|
17
|
+
) : (
|
|
18
|
+
<path d="M2,3.5v13h4.35l2.5,3,2.5-3h10.65V3.5H2Z" />
|
|
19
|
+
)}
|
|
20
|
+
</>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
chat.props = ['dots'];
|
|
27
|
+
|
|
28
|
+
export default chat;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import ChatIcon from '@digigov/react-icons/ChatIcon';
|
|
5
|
+
|
|
6
|
+
it('renders the ChatIcon with no props', () => {
|
|
7
|
+
expect(mount(<ChatIcon />)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
it('renders the ChatIcon with dots', () => {
|
|
10
|
+
expect(mount(<ChatIcon dots/>)).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
it('renders the ChatIcon with prop size=md', () => {
|
|
13
|
+
expect(mount(<ChatIcon size="md" />)).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
it('renders the ChatIcon with prop size=xl', () => {
|
|
16
|
+
expect(mount(<ChatIcon size="xl" />)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
it('renders the ChatIcon with prop variant=light', () => {
|
|
19
|
+
expect(mount(<ChatIcon variant="light" />)).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
it('renders the ChatIcon with prop variant=warning', () => {
|
|
22
|
+
expect(mount(<ChatIcon variant="warning" />)).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
it('renders the ChatIcon with prop variant=warning and size=sm', () => {
|
|
25
|
+
expect(mount(<ChatIcon variant="warning" size="sm" />)).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
it('renders the ChatIcon with prop variant=error and size= xl', () => {
|
|
28
|
+
expect(mount(<ChatIcon variant="warning" size="xl" />)).toMatchSnapshot();
|
|
29
|
+
});
|