@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.
- package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +626 -0
- package/AccessibilityIcon/index.d.ts +15 -0
- package/AccessibilityIcon/index.js +52 -0
- package/AccessibilityIcon/index.test.d.ts +1 -0
- package/AccessibilityIcon/index.test.js +137 -0
- package/AccessibilityTextIcon/__snapshots__/index.test.tsx.snap +511 -0
- package/AccessibilityTextIcon/index.d.ts +15 -0
- package/AccessibilityTextIcon/index.js +34 -0
- package/AccessibilityTextIcon/index.test.d.ts +1 -0
- package/AccessibilityTextIcon/index.test.js +129 -0
- package/CHANGELOG.md +21 -1
- package/CheckboxItem/__snapshots__/index.test.tsx.snap +68 -0
- package/CheckboxItem/index.d.ts +5 -0
- package/CheckboxItem/index.js +6 -3
- package/CheckboxItem/index.test.js +18 -0
- package/DetailsSummary/index.d.ts +2 -1
- package/DetailsSummary/index.js +4 -3
- package/FieldContainer/index.js +10 -3
- package/Nav/index.d.ts +16 -1
- package/Nav/index.js +8 -2
- package/RadioItem/__snapshots__/index.test.tsx.snap +70 -0
- package/RadioItem/index.d.ts +5 -0
- package/RadioItem/index.js +6 -3
- package/RadioItem/index.test.js +18 -0
- package/SectionBreak/index.d.ts +1 -1
- package/SectionBreak/index.js +4 -2
- package/SvgIcon/index.d.ts +1 -1
- package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +626 -0
- package/es/AccessibilityIcon/index.js +36 -0
- package/es/AccessibilityIcon/index.test.js +131 -0
- package/es/AccessibilityTextIcon/__snapshots__/index.test.tsx.snap +511 -0
- package/es/AccessibilityTextIcon/index.js +21 -0
- package/es/AccessibilityTextIcon/index.test.js +123 -0
- package/es/CheckboxItem/__snapshots__/index.test.tsx.snap +68 -0
- package/es/CheckboxItem/index.js +6 -3
- package/es/CheckboxItem/index.test.js +18 -0
- package/es/DetailsSummary/index.js +4 -3
- package/es/FieldContainer/index.js +8 -3
- package/es/Nav/index.js +8 -2
- package/es/RadioItem/__snapshots__/index.test.tsx.snap +70 -0
- package/es/RadioItem/index.js +6 -3
- package/es/RadioItem/index.test.js +18 -0
- package/es/SectionBreak/index.js +4 -2
- package/es/index.js +2 -0
- package/es/registry.js +4 -0
- package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +626 -0
- package/esm/AccessibilityIcon/index.js +36 -0
- package/esm/AccessibilityIcon/index.test.js +131 -0
- package/esm/AccessibilityTextIcon/__snapshots__/index.test.tsx.snap +511 -0
- package/esm/AccessibilityTextIcon/index.js +21 -0
- package/esm/AccessibilityTextIcon/index.test.js +123 -0
- package/esm/CheckboxItem/__snapshots__/index.test.tsx.snap +68 -0
- package/esm/CheckboxItem/index.js +6 -3
- package/esm/CheckboxItem/index.test.js +18 -0
- package/esm/DetailsSummary/index.js +4 -3
- package/esm/FieldContainer/index.js +8 -3
- package/esm/Nav/index.js +8 -2
- package/esm/RadioItem/__snapshots__/index.test.tsx.snap +70 -0
- package/esm/RadioItem/index.js +6 -3
- package/esm/RadioItem/index.test.js +18 -0
- package/esm/SectionBreak/index.js +4 -2
- package/esm/index.js +3 -1
- package/esm/registry.js +4 -0
- package/index.d.ts +2 -0
- package/index.js +26 -0
- package/package.json +2 -2
- package/registry.d.ts +2 -0
- package/registry.js +6 -0
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +626 -0
- package/src/AccessibilityIcon/index.test.tsx +53 -0
- package/src/AccessibilityIcon/index.tsx +41 -0
- package/src/AccessibilityTextIcon/__snapshots__/index.test.tsx.snap +511 -0
- package/src/AccessibilityTextIcon/index.test.tsx +50 -0
- package/src/AccessibilityTextIcon/index.tsx +28 -0
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +68 -0
- package/src/CheckboxItem/index.test.tsx +14 -0
- package/src/CheckboxItem/index.tsx +11 -1
- package/src/DetailsSummary/index.tsx +8 -2
- package/src/FieldContainer/index.tsx +2 -1
- package/src/Nav/index.tsx +29 -2
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +70 -0
- package/src/RadioItem/index.test.tsx +14 -0
- package/src/RadioItem/index.tsx +11 -1
- package/src/SectionBreak/index.tsx +5 -2
- package/src/SvgIcon/index.tsx +1 -1
- package/src/index.ts +2 -0
- package/src/registry.js +4 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import AccessibilityIcon from '@digigov/react-core/AccessibilityIcon';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(AccessibilityIcon, null);
|
|
6
|
+
|
|
7
|
+
it('renders the AccessibilityIcon with no props', function () {
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
12
|
+
size: "s"
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('renders the AccessibilityIcon with prop size=s', function () {
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
20
|
+
size: "m"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('renders the AccessibilityIcon with prop size=m', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
28
|
+
size: "l"
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('renders the AccessibilityIcon with prop size=l', function () {
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
var _ref5 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
36
|
+
size: "xl"
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('renders the AccessibilityIcon with prop size=xl', function () {
|
|
40
|
+
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var _ref6 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
44
|
+
size: "xxl"
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it('renders the AccessibilityIcon with prop size=xl', function () {
|
|
48
|
+
expect(mount(_ref6)).toMatchSnapshot();
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
var _ref7 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
52
|
+
variant: "dark"
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it('renders the AccessibilityIcon with prop variant=dark', function () {
|
|
56
|
+
expect(mount(_ref7)).toMatchSnapshot();
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var _ref8 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
60
|
+
variant: "light"
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('renders the AccessibilityIcon with prop variant=light', function () {
|
|
64
|
+
expect(mount(_ref8)).toMatchSnapshot();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
var _ref9 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
68
|
+
variant: "gray"
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it('renders the AccessibilityIcon with prop variant=gray', function () {
|
|
72
|
+
expect(mount(_ref9)).toMatchSnapshot();
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
var _ref10 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
76
|
+
variant: "primary"
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it('renders the AccessibilityIcon with prop variant=primary', function () {
|
|
80
|
+
expect(mount(_ref10)).toMatchSnapshot();
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
var _ref11 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
84
|
+
variant: "success"
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it('renders the AccessibilityIcon with prop variant=success', function () {
|
|
88
|
+
expect(mount(_ref11)).toMatchSnapshot();
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
var _ref12 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
92
|
+
variant: "warning"
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it('renders the AccessibilityIcon with prop variant=warning', function () {
|
|
96
|
+
expect(mount(_ref12)).toMatchSnapshot();
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
var _ref13 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
100
|
+
variant: "error"
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
it('renders the AccessibilityIcon with prop variant=error', function () {
|
|
104
|
+
expect(mount(_ref13)).toMatchSnapshot();
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
var _ref14 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
108
|
+
variant: "focus"
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it('renders the AccessibilityIcon with prop variant=focus', function () {
|
|
112
|
+
expect(mount(_ref14)).toMatchSnapshot();
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
var _ref15 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
116
|
+
variant: "warning",
|
|
117
|
+
size: "s"
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
it('renders the AccessibilityIcon with prop variant=warning and size=s', function () {
|
|
121
|
+
expect(mount(_ref15)).toMatchSnapshot();
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
var _ref16 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
125
|
+
variant: "warning",
|
|
126
|
+
size: "xl"
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
it('renders the AccessibilityIcon with prop variant=error and size= xl', function () {
|
|
130
|
+
expect(mount(_ref16)).toMatchSnapshot();
|
|
131
|
+
});
|
|
@@ -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,21 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import SvgIcon from '@digigov/react-core/SvgIcon';
|
|
4
|
+
|
|
5
|
+
var _ref2 = /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
6
|
+
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"
|
|
7
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
8
|
+
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"
|
|
9
|
+
}));
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Use AccessibilityTextIcon component when you need to show web accessibility options about text.
|
|
13
|
+
*/
|
|
14
|
+
export var AccessibilityTextIcon = /*#__PURE__*/React.forwardRef(function AccessibilityTextIcon(_ref, ref) {
|
|
15
|
+
var props = _extends({}, _ref);
|
|
16
|
+
|
|
17
|
+
return /*#__PURE__*/React.createElement(SvgIcon, _extends({
|
|
18
|
+
ref: ref
|
|
19
|
+
}, props), _ref2);
|
|
20
|
+
});
|
|
21
|
+
export default AccessibilityTextIcon;
|