@digigov/react-core 0.21.0 → 0.22.0

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 (87) hide show
  1. package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +626 -0
  2. package/AccessibilityIcon/index.d.ts +15 -0
  3. package/AccessibilityIcon/index.js +52 -0
  4. package/AccessibilityIcon/index.test.d.ts +1 -0
  5. package/AccessibilityIcon/index.test.js +137 -0
  6. package/AccessibilityTextIcon/__snapshots__/index.test.tsx.snap +511 -0
  7. package/AccessibilityTextIcon/index.d.ts +15 -0
  8. package/AccessibilityTextIcon/index.js +34 -0
  9. package/AccessibilityTextIcon/index.test.d.ts +1 -0
  10. package/AccessibilityTextIcon/index.test.js +129 -0
  11. package/CHANGELOG.md +21 -1
  12. package/CheckboxItem/__snapshots__/index.test.tsx.snap +68 -0
  13. package/CheckboxItem/index.d.ts +5 -0
  14. package/CheckboxItem/index.js +6 -3
  15. package/CheckboxItem/index.test.js +18 -0
  16. package/DetailsSummary/index.d.ts +2 -1
  17. package/DetailsSummary/index.js +4 -3
  18. package/FieldContainer/index.js +10 -3
  19. package/Nav/index.d.ts +16 -1
  20. package/Nav/index.js +8 -2
  21. package/RadioItem/__snapshots__/index.test.tsx.snap +70 -0
  22. package/RadioItem/index.d.ts +5 -0
  23. package/RadioItem/index.js +6 -3
  24. package/RadioItem/index.test.js +18 -0
  25. package/SectionBreak/index.d.ts +1 -1
  26. package/SectionBreak/index.js +4 -2
  27. package/SvgIcon/index.d.ts +1 -1
  28. package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +626 -0
  29. package/es/AccessibilityIcon/index.js +36 -0
  30. package/es/AccessibilityIcon/index.test.js +131 -0
  31. package/es/AccessibilityTextIcon/__snapshots__/index.test.tsx.snap +511 -0
  32. package/es/AccessibilityTextIcon/index.js +21 -0
  33. package/es/AccessibilityTextIcon/index.test.js +123 -0
  34. package/es/CheckboxItem/__snapshots__/index.test.tsx.snap +68 -0
  35. package/es/CheckboxItem/index.js +6 -3
  36. package/es/CheckboxItem/index.test.js +18 -0
  37. package/es/DetailsSummary/index.js +4 -3
  38. package/es/FieldContainer/index.js +8 -3
  39. package/es/Nav/index.js +8 -2
  40. package/es/RadioItem/__snapshots__/index.test.tsx.snap +70 -0
  41. package/es/RadioItem/index.js +6 -3
  42. package/es/RadioItem/index.test.js +18 -0
  43. package/es/SectionBreak/index.js +4 -2
  44. package/es/index.js +2 -0
  45. package/es/registry.js +4 -0
  46. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +626 -0
  47. package/esm/AccessibilityIcon/index.js +36 -0
  48. package/esm/AccessibilityIcon/index.test.js +131 -0
  49. package/esm/AccessibilityTextIcon/__snapshots__/index.test.tsx.snap +511 -0
  50. package/esm/AccessibilityTextIcon/index.js +21 -0
  51. package/esm/AccessibilityTextIcon/index.test.js +123 -0
  52. package/esm/CheckboxItem/__snapshots__/index.test.tsx.snap +68 -0
  53. package/esm/CheckboxItem/index.js +6 -3
  54. package/esm/CheckboxItem/index.test.js +18 -0
  55. package/esm/DetailsSummary/index.js +4 -3
  56. package/esm/FieldContainer/index.js +8 -3
  57. package/esm/Nav/index.js +8 -2
  58. package/esm/RadioItem/__snapshots__/index.test.tsx.snap +70 -0
  59. package/esm/RadioItem/index.js +6 -3
  60. package/esm/RadioItem/index.test.js +18 -0
  61. package/esm/SectionBreak/index.js +4 -2
  62. package/esm/index.js +3 -1
  63. package/esm/registry.js +4 -0
  64. package/index.d.ts +2 -0
  65. package/index.js +26 -0
  66. package/package.json +2 -2
  67. package/registry.d.ts +2 -0
  68. package/registry.js +6 -0
  69. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +626 -0
  70. package/src/AccessibilityIcon/index.test.tsx +53 -0
  71. package/src/AccessibilityIcon/index.tsx +41 -0
  72. package/src/AccessibilityTextIcon/__snapshots__/index.test.tsx.snap +511 -0
  73. package/src/AccessibilityTextIcon/index.test.tsx +50 -0
  74. package/src/AccessibilityTextIcon/index.tsx +28 -0
  75. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +68 -0
  76. package/src/CheckboxItem/index.test.tsx +14 -0
  77. package/src/CheckboxItem/index.tsx +11 -1
  78. package/src/DetailsSummary/index.tsx +8 -2
  79. package/src/FieldContainer/index.tsx +2 -1
  80. package/src/Nav/index.tsx +29 -2
  81. package/src/RadioItem/__snapshots__/index.test.tsx.snap +70 -0
  82. package/src/RadioItem/index.test.tsx +14 -0
  83. package/src/RadioItem/index.tsx +11 -1
  84. package/src/SectionBreak/index.tsx +5 -2
  85. package/src/SvgIcon/index.tsx +1 -1
  86. package/src/index.ts +2 -0
  87. package/src/registry.js +4 -0
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _enzyme = require("enzyme");
8
+
9
+ var _AccessibilityIcon = _interopRequireDefault(require("@digigov/react-core/AccessibilityIcon"));
10
+
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], null);
12
+
13
+ it('renders the AccessibilityIcon with no props', function () {
14
+ expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
+ });
16
+
17
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
18
+ size: "s"
19
+ });
20
+
21
+ it('renders the AccessibilityIcon with prop size=s', function () {
22
+ expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
23
+ });
24
+
25
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
26
+ size: "m"
27
+ });
28
+
29
+ it('renders the AccessibilityIcon with prop size=m', function () {
30
+ expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
31
+ });
32
+
33
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
34
+ size: "l"
35
+ });
36
+
37
+ it('renders the AccessibilityIcon with prop size=l', function () {
38
+ expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
39
+ });
40
+
41
+ var _ref5 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
42
+ size: "xl"
43
+ });
44
+
45
+ it('renders the AccessibilityIcon with prop size=xl', function () {
46
+ expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
47
+ });
48
+
49
+ var _ref6 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
50
+ size: "xxl"
51
+ });
52
+
53
+ it('renders the AccessibilityIcon with prop size=xl', function () {
54
+ expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
55
+ });
56
+
57
+ var _ref7 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
58
+ variant: "dark"
59
+ });
60
+
61
+ it('renders the AccessibilityIcon with prop variant=dark', function () {
62
+ expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
63
+ });
64
+
65
+ var _ref8 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
66
+ variant: "light"
67
+ });
68
+
69
+ it('renders the AccessibilityIcon with prop variant=light', function () {
70
+ expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
71
+ });
72
+
73
+ var _ref9 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
74
+ variant: "gray"
75
+ });
76
+
77
+ it('renders the AccessibilityIcon with prop variant=gray', function () {
78
+ expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
79
+ });
80
+
81
+ var _ref10 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
82
+ variant: "primary"
83
+ });
84
+
85
+ it('renders the AccessibilityIcon with prop variant=primary', function () {
86
+ expect((0, _enzyme.mount)(_ref10)).toMatchSnapshot();
87
+ });
88
+
89
+ var _ref11 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
90
+ variant: "success"
91
+ });
92
+
93
+ it('renders the AccessibilityIcon with prop variant=success', function () {
94
+ expect((0, _enzyme.mount)(_ref11)).toMatchSnapshot();
95
+ });
96
+
97
+ var _ref12 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
98
+ variant: "warning"
99
+ });
100
+
101
+ it('renders the AccessibilityIcon with prop variant=warning', function () {
102
+ expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
103
+ });
104
+
105
+ var _ref13 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
106
+ variant: "error"
107
+ });
108
+
109
+ it('renders the AccessibilityIcon with prop variant=error', function () {
110
+ expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
111
+ });
112
+
113
+ var _ref14 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
114
+ variant: "focus"
115
+ });
116
+
117
+ it('renders the AccessibilityIcon with prop variant=focus', function () {
118
+ expect((0, _enzyme.mount)(_ref14)).toMatchSnapshot();
119
+ });
120
+
121
+ var _ref15 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
122
+ variant: "warning",
123
+ size: "s"
124
+ });
125
+
126
+ it('renders the AccessibilityIcon with prop variant=warning and size=s', function () {
127
+ expect((0, _enzyme.mount)(_ref15)).toMatchSnapshot();
128
+ });
129
+
130
+ var _ref16 = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], {
131
+ variant: "warning",
132
+ size: "xl"
133
+ });
134
+
135
+ it('renders the AccessibilityIcon with prop variant=error and size= xl', function () {
136
+ expect((0, _enzyme.mount)(_ref16)).toMatchSnapshot();
137
+ });
@@ -0,0 +1,511 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the AccessibilityTextIcon with no props 1`] = `
4
+ <ForwardRef(AccessibilityTextIcon)>
5
+ <ForwardRef(SvgIcon)>
6
+ <ForwardRef(Base)
7
+ aria-hidden="true"
8
+ as="svg"
9
+ className="govgr-svg-icon"
10
+ focusable="false"
11
+ viewBox="0 0 24 24"
12
+ >
13
+ <svg
14
+ aria-hidden="true"
15
+ className="govgr-svg-icon"
16
+ focusable="false"
17
+ viewBox="0 0 24 24"
18
+ >
19
+ <g>
20
+ <path
21
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
22
+ />
23
+ <path
24
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
25
+ />
26
+ </g>
27
+ </svg>
28
+ </ForwardRef(Base)>
29
+ </ForwardRef(SvgIcon)>
30
+ </ForwardRef(AccessibilityTextIcon)>
31
+ `;
32
+
33
+ exports[`renders the AccessibilityTextIcon with prop size=l 1`] = `
34
+ <ForwardRef(AccessibilityTextIcon)
35
+ size="l"
36
+ >
37
+ <ForwardRef(SvgIcon)
38
+ size="l"
39
+ >
40
+ <ForwardRef(Base)
41
+ aria-hidden="true"
42
+ as="svg"
43
+ className="govgr-svg-icon--l govgr-svg-icon"
44
+ focusable="false"
45
+ viewBox="0 0 24 24"
46
+ >
47
+ <svg
48
+ aria-hidden="true"
49
+ className="govgr-svg-icon--l govgr-svg-icon"
50
+ focusable="false"
51
+ viewBox="0 0 24 24"
52
+ >
53
+ <g>
54
+ <path
55
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
56
+ />
57
+ <path
58
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
59
+ />
60
+ </g>
61
+ </svg>
62
+ </ForwardRef(Base)>
63
+ </ForwardRef(SvgIcon)>
64
+ </ForwardRef(AccessibilityTextIcon)>
65
+ `;
66
+
67
+ exports[`renders the AccessibilityTextIcon with prop size=m 1`] = `
68
+ <ForwardRef(AccessibilityTextIcon)
69
+ size="m"
70
+ >
71
+ <ForwardRef(SvgIcon)
72
+ size="m"
73
+ >
74
+ <ForwardRef(Base)
75
+ aria-hidden="true"
76
+ as="svg"
77
+ className="govgr-svg-icon--m govgr-svg-icon"
78
+ focusable="false"
79
+ viewBox="0 0 24 24"
80
+ >
81
+ <svg
82
+ aria-hidden="true"
83
+ className="govgr-svg-icon--m govgr-svg-icon"
84
+ focusable="false"
85
+ viewBox="0 0 24 24"
86
+ >
87
+ <g>
88
+ <path
89
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
90
+ />
91
+ <path
92
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
93
+ />
94
+ </g>
95
+ </svg>
96
+ </ForwardRef(Base)>
97
+ </ForwardRef(SvgIcon)>
98
+ </ForwardRef(AccessibilityTextIcon)>
99
+ `;
100
+
101
+ exports[`renders the AccessibilityTextIcon with prop size=s 1`] = `
102
+ <ForwardRef(AccessibilityTextIcon)
103
+ size="s"
104
+ >
105
+ <ForwardRef(SvgIcon)
106
+ size="s"
107
+ >
108
+ <ForwardRef(Base)
109
+ aria-hidden="true"
110
+ as="svg"
111
+ className="govgr-svg-icon--s govgr-svg-icon"
112
+ focusable="false"
113
+ viewBox="0 0 24 24"
114
+ >
115
+ <svg
116
+ aria-hidden="true"
117
+ className="govgr-svg-icon--s govgr-svg-icon"
118
+ focusable="false"
119
+ viewBox="0 0 24 24"
120
+ >
121
+ <g>
122
+ <path
123
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
124
+ />
125
+ <path
126
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
127
+ />
128
+ </g>
129
+ </svg>
130
+ </ForwardRef(Base)>
131
+ </ForwardRef(SvgIcon)>
132
+ </ForwardRef(AccessibilityTextIcon)>
133
+ `;
134
+
135
+ exports[`renders the AccessibilityTextIcon with prop size=xl 1`] = `
136
+ <ForwardRef(AccessibilityTextIcon)
137
+ size="xl"
138
+ >
139
+ <ForwardRef(SvgIcon)
140
+ size="xl"
141
+ >
142
+ <ForwardRef(Base)
143
+ aria-hidden="true"
144
+ as="svg"
145
+ className="govgr-svg-icon--xl govgr-svg-icon"
146
+ focusable="false"
147
+ viewBox="0 0 24 24"
148
+ >
149
+ <svg
150
+ aria-hidden="true"
151
+ className="govgr-svg-icon--xl govgr-svg-icon"
152
+ focusable="false"
153
+ viewBox="0 0 24 24"
154
+ >
155
+ <g>
156
+ <path
157
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
158
+ />
159
+ <path
160
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
161
+ />
162
+ </g>
163
+ </svg>
164
+ </ForwardRef(Base)>
165
+ </ForwardRef(SvgIcon)>
166
+ </ForwardRef(AccessibilityTextIcon)>
167
+ `;
168
+
169
+ exports[`renders the AccessibilityTextIcon with prop variant=dark 1`] = `
170
+ <ForwardRef(AccessibilityTextIcon)
171
+ variant="dark"
172
+ >
173
+ <ForwardRef(SvgIcon)
174
+ variant="dark"
175
+ >
176
+ <ForwardRef(Base)
177
+ aria-hidden="true"
178
+ as="svg"
179
+ className="govgr-svg-icon--dark govgr-svg-icon"
180
+ focusable="false"
181
+ viewBox="0 0 24 24"
182
+ >
183
+ <svg
184
+ aria-hidden="true"
185
+ className="govgr-svg-icon--dark govgr-svg-icon"
186
+ focusable="false"
187
+ viewBox="0 0 24 24"
188
+ >
189
+ <g>
190
+ <path
191
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
192
+ />
193
+ <path
194
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
195
+ />
196
+ </g>
197
+ </svg>
198
+ </ForwardRef(Base)>
199
+ </ForwardRef(SvgIcon)>
200
+ </ForwardRef(AccessibilityTextIcon)>
201
+ `;
202
+
203
+ exports[`renders the AccessibilityTextIcon with prop variant=error 1`] = `
204
+ <ForwardRef(AccessibilityTextIcon)
205
+ variant="error"
206
+ >
207
+ <ForwardRef(SvgIcon)
208
+ variant="error"
209
+ >
210
+ <ForwardRef(Base)
211
+ aria-hidden="true"
212
+ as="svg"
213
+ className="govgr-svg-icon--error govgr-svg-icon"
214
+ focusable="false"
215
+ viewBox="0 0 24 24"
216
+ >
217
+ <svg
218
+ aria-hidden="true"
219
+ className="govgr-svg-icon--error govgr-svg-icon"
220
+ focusable="false"
221
+ viewBox="0 0 24 24"
222
+ >
223
+ <g>
224
+ <path
225
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
226
+ />
227
+ <path
228
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
229
+ />
230
+ </g>
231
+ </svg>
232
+ </ForwardRef(Base)>
233
+ </ForwardRef(SvgIcon)>
234
+ </ForwardRef(AccessibilityTextIcon)>
235
+ `;
236
+
237
+ exports[`renders the AccessibilityTextIcon with prop variant=error and size= xl 1`] = `
238
+ <ForwardRef(AccessibilityTextIcon)
239
+ size="xl"
240
+ variant="warning"
241
+ >
242
+ <ForwardRef(SvgIcon)
243
+ size="xl"
244
+ variant="warning"
245
+ >
246
+ <ForwardRef(Base)
247
+ aria-hidden="true"
248
+ as="svg"
249
+ className="govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon"
250
+ focusable="false"
251
+ viewBox="0 0 24 24"
252
+ >
253
+ <svg
254
+ aria-hidden="true"
255
+ className="govgr-svg-icon--warning govgr-svg-icon--xl govgr-svg-icon"
256
+ focusable="false"
257
+ viewBox="0 0 24 24"
258
+ >
259
+ <g>
260
+ <path
261
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
262
+ />
263
+ <path
264
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
265
+ />
266
+ </g>
267
+ </svg>
268
+ </ForwardRef(Base)>
269
+ </ForwardRef(SvgIcon)>
270
+ </ForwardRef(AccessibilityTextIcon)>
271
+ `;
272
+
273
+ exports[`renders the AccessibilityTextIcon with prop variant=focus 1`] = `
274
+ <ForwardRef(AccessibilityTextIcon)
275
+ variant="focus"
276
+ >
277
+ <ForwardRef(SvgIcon)
278
+ variant="focus"
279
+ >
280
+ <ForwardRef(Base)
281
+ aria-hidden="true"
282
+ as="svg"
283
+ className="govgr-svg-icon--focus govgr-svg-icon"
284
+ focusable="false"
285
+ viewBox="0 0 24 24"
286
+ >
287
+ <svg
288
+ aria-hidden="true"
289
+ className="govgr-svg-icon--focus govgr-svg-icon"
290
+ focusable="false"
291
+ viewBox="0 0 24 24"
292
+ >
293
+ <g>
294
+ <path
295
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
296
+ />
297
+ <path
298
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
299
+ />
300
+ </g>
301
+ </svg>
302
+ </ForwardRef(Base)>
303
+ </ForwardRef(SvgIcon)>
304
+ </ForwardRef(AccessibilityTextIcon)>
305
+ `;
306
+
307
+ exports[`renders the AccessibilityTextIcon with prop variant=gray 1`] = `
308
+ <ForwardRef(AccessibilityTextIcon)
309
+ variant="gray"
310
+ >
311
+ <ForwardRef(SvgIcon)
312
+ variant="gray"
313
+ >
314
+ <ForwardRef(Base)
315
+ aria-hidden="true"
316
+ as="svg"
317
+ className="govgr-svg-icon--gray govgr-svg-icon"
318
+ focusable="false"
319
+ viewBox="0 0 24 24"
320
+ >
321
+ <svg
322
+ aria-hidden="true"
323
+ className="govgr-svg-icon--gray govgr-svg-icon"
324
+ focusable="false"
325
+ viewBox="0 0 24 24"
326
+ >
327
+ <g>
328
+ <path
329
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
330
+ />
331
+ <path
332
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
333
+ />
334
+ </g>
335
+ </svg>
336
+ </ForwardRef(Base)>
337
+ </ForwardRef(SvgIcon)>
338
+ </ForwardRef(AccessibilityTextIcon)>
339
+ `;
340
+
341
+ exports[`renders the AccessibilityTextIcon with prop variant=light 1`] = `
342
+ <ForwardRef(AccessibilityTextIcon)
343
+ variant="light"
344
+ >
345
+ <ForwardRef(SvgIcon)
346
+ variant="light"
347
+ >
348
+ <ForwardRef(Base)
349
+ aria-hidden="true"
350
+ as="svg"
351
+ className="govgr-svg-icon--light govgr-svg-icon"
352
+ focusable="false"
353
+ viewBox="0 0 24 24"
354
+ >
355
+ <svg
356
+ aria-hidden="true"
357
+ className="govgr-svg-icon--light govgr-svg-icon"
358
+ focusable="false"
359
+ viewBox="0 0 24 24"
360
+ >
361
+ <g>
362
+ <path
363
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
364
+ />
365
+ <path
366
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
367
+ />
368
+ </g>
369
+ </svg>
370
+ </ForwardRef(Base)>
371
+ </ForwardRef(SvgIcon)>
372
+ </ForwardRef(AccessibilityTextIcon)>
373
+ `;
374
+
375
+ exports[`renders the AccessibilityTextIcon with prop variant=primary 1`] = `
376
+ <ForwardRef(AccessibilityTextIcon)
377
+ variant="primary"
378
+ >
379
+ <ForwardRef(SvgIcon)
380
+ variant="primary"
381
+ >
382
+ <ForwardRef(Base)
383
+ aria-hidden="true"
384
+ as="svg"
385
+ className="govgr-svg-icon--primary govgr-svg-icon"
386
+ focusable="false"
387
+ viewBox="0 0 24 24"
388
+ >
389
+ <svg
390
+ aria-hidden="true"
391
+ className="govgr-svg-icon--primary govgr-svg-icon"
392
+ focusable="false"
393
+ viewBox="0 0 24 24"
394
+ >
395
+ <g>
396
+ <path
397
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
398
+ />
399
+ <path
400
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
401
+ />
402
+ </g>
403
+ </svg>
404
+ </ForwardRef(Base)>
405
+ </ForwardRef(SvgIcon)>
406
+ </ForwardRef(AccessibilityTextIcon)>
407
+ `;
408
+
409
+ exports[`renders the AccessibilityTextIcon with prop variant=success 1`] = `
410
+ <ForwardRef(AccessibilityTextIcon)
411
+ variant="success"
412
+ >
413
+ <ForwardRef(SvgIcon)
414
+ variant="success"
415
+ >
416
+ <ForwardRef(Base)
417
+ aria-hidden="true"
418
+ as="svg"
419
+ className="govgr-svg-icon--success govgr-svg-icon"
420
+ focusable="false"
421
+ viewBox="0 0 24 24"
422
+ >
423
+ <svg
424
+ aria-hidden="true"
425
+ className="govgr-svg-icon--success govgr-svg-icon"
426
+ focusable="false"
427
+ viewBox="0 0 24 24"
428
+ >
429
+ <g>
430
+ <path
431
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
432
+ />
433
+ <path
434
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
435
+ />
436
+ </g>
437
+ </svg>
438
+ </ForwardRef(Base)>
439
+ </ForwardRef(SvgIcon)>
440
+ </ForwardRef(AccessibilityTextIcon)>
441
+ `;
442
+
443
+ exports[`renders the AccessibilityTextIcon with prop variant=warning 1`] = `
444
+ <ForwardRef(AccessibilityTextIcon)
445
+ variant="warning"
446
+ >
447
+ <ForwardRef(SvgIcon)
448
+ variant="warning"
449
+ >
450
+ <ForwardRef(Base)
451
+ aria-hidden="true"
452
+ as="svg"
453
+ className="govgr-svg-icon--warning govgr-svg-icon"
454
+ focusable="false"
455
+ viewBox="0 0 24 24"
456
+ >
457
+ <svg
458
+ aria-hidden="true"
459
+ className="govgr-svg-icon--warning govgr-svg-icon"
460
+ focusable="false"
461
+ viewBox="0 0 24 24"
462
+ >
463
+ <g>
464
+ <path
465
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
466
+ />
467
+ <path
468
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
469
+ />
470
+ </g>
471
+ </svg>
472
+ </ForwardRef(Base)>
473
+ </ForwardRef(SvgIcon)>
474
+ </ForwardRef(AccessibilityTextIcon)>
475
+ `;
476
+
477
+ exports[`renders the AccessibilityTextIcon with prop variant=warning and size=s 1`] = `
478
+ <ForwardRef(AccessibilityTextIcon)
479
+ size="s"
480
+ variant="warning"
481
+ >
482
+ <ForwardRef(SvgIcon)
483
+ size="s"
484
+ variant="warning"
485
+ >
486
+ <ForwardRef(Base)
487
+ aria-hidden="true"
488
+ as="svg"
489
+ className="govgr-svg-icon--warning govgr-svg-icon--s govgr-svg-icon"
490
+ focusable="false"
491
+ viewBox="0 0 24 24"
492
+ >
493
+ <svg
494
+ aria-hidden="true"
495
+ className="govgr-svg-icon--warning govgr-svg-icon--s govgr-svg-icon"
496
+ focusable="false"
497
+ viewBox="0 0 24 24"
498
+ >
499
+ <g>
500
+ <path
501
+ d="M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
502
+ />
503
+ <path
504
+ d="M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
505
+ />
506
+ </g>
507
+ </svg>
508
+ </ForwardRef(Base)>
509
+ </ForwardRef(SvgIcon)>
510
+ </ForwardRef(AccessibilityTextIcon)>
511
+ `;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { SvgIconProps } from '@digigov/react-core/SvgIcon';
3
+ export interface AccessibilityTextIconProps extends SvgIconProps {
4
+ /**
5
+ * ref is optional.
6
+ * ref prop declares the reference of the svg icon component.
7
+ * It can be used to to access the DOM element and the React element.
8
+ */
9
+ ref?: React.Ref<SVGSVGElement>;
10
+ }
11
+ /**
12
+ * Use AccessibilityTextIcon component when you need to show web accessibility options about text.
13
+ */
14
+ export declare const AccessibilityTextIcon: React.FC<AccessibilityTextIconProps>;
15
+ export default AccessibilityTextIcon;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.AccessibilityTextIcon = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _react = _interopRequireDefault(require("react"));
13
+
14
+ var _SvgIcon = _interopRequireDefault(require("@digigov/react-core/SvgIcon"));
15
+
16
+ var _ref2 = /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("path", {
17
+ d: "M19.79,16.09h-6.2l-1.3,3.73H9.41l6.04-16h2.49l6.05,16h-2.9L19.79,16.09z M14.37,13.85h4.64l-2.32-6.64L14.37,13.85z"
18
+ }), /*#__PURE__*/_react["default"].createElement("path", {
19
+ d: "M6.09,17.63H2.45l-0.76,2.18H0l3.54-9.38H5l3.55,9.38h-1.7L6.09,17.63z M2.91,16.32h2.72l-1.36-3.89L2.91,16.32z"
20
+ }));
21
+
22
+ /**
23
+ * Use AccessibilityTextIcon component when you need to show web accessibility options about text.
24
+ */
25
+ var AccessibilityTextIcon = /*#__PURE__*/_react["default"].forwardRef(function AccessibilityTextIcon(_ref, ref) {
26
+ var props = (0, _extends2["default"])({}, _ref);
27
+ return /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], (0, _extends2["default"])({
28
+ ref: ref
29
+ }, props), _ref2);
30
+ });
31
+
32
+ exports.AccessibilityTextIcon = AccessibilityTextIcon;
33
+ var _default = AccessibilityTextIcon;
34
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ export {};