@digigov/react-core 0.6.1 → 0.6.2
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/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/ArrowIcon/index.d.ts +4 -3
- package/ArrowIcon/index.js +13 -27
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
- package/BurgerIcon/index.d.ts +13 -7
- package/BurgerIcon/index.js +13 -33
- package/BurgerIcon/index.test.js +47 -5
- package/Button/index.d.ts +1 -1
- package/CHANGELOG.md +9 -1
- package/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/CaretIcon/index.d.ts +4 -3
- package/CaretIcon/index.js +13 -27
- package/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
- package/CheckIcon/index.d.ts +7 -11
- package/CheckIcon/index.js +10 -34
- package/CheckboxItem/index.d.ts +1 -1
- package/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
- package/CloseIcon/index.d.ts +9 -3
- package/CloseIcon/index.js +10 -7
- package/DateInputItem/index.d.ts +1 -1
- package/FieldsetLegend/index.d.ts +1 -1
- package/FileUpload/index.d.ts +1 -1
- package/Grid/index.d.ts +1 -1
- package/LabelTitle/index.d.ts +1 -1
- package/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
- package/MoreVertIcon/index.d.ts +7 -11
- package/MoreVertIcon/index.js +10 -34
- package/NormalText/index.d.ts +1 -1
- package/Paragraph/index.d.ts +1 -1
- package/RadioItem/index.d.ts +1 -1
- package/Select/index.d.ts +1 -1
- package/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
- package/SvgIcon/index.d.ts +20 -0
- package/SvgIcon/index.js +41 -0
- package/SvgIcon/index.test.d.ts +1 -0
- package/SvgIcon/index.test.js +129 -0
- package/Table/index.d.ts +1 -1
- package/TextArea/index.d.ts +1 -1
- package/TextInput/index.d.ts +1 -1
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
- package/UncheckIcon/index.d.ts +9 -13
- package/UncheckIcon/index.js +15 -39
- package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/es/ArrowIcon/index.js +12 -19
- package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
- package/es/BurgerIcon/index.js +12 -25
- package/es/BurgerIcon/index.test.js +47 -5
- package/es/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/es/CaretIcon/index.js +12 -19
- package/es/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
- package/es/CheckIcon/index.js +9 -26
- package/es/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
- package/es/CloseIcon/index.js +9 -7
- package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
- package/es/MoreVertIcon/index.js +9 -26
- package/es/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
- package/es/SvgIcon/index.js +26 -0
- package/es/SvgIcon/index.test.js +123 -0
- package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
- package/es/UncheckIcon/index.js +12 -29
- package/es/index.js +1 -0
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/esm/ArrowIcon/index.js +12 -19
- package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +323 -126
- package/esm/BurgerIcon/index.js +12 -25
- package/esm/BurgerIcon/index.test.js +47 -5
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +48 -32
- package/esm/CaretIcon/index.js +12 -19
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +196 -136
- package/esm/CheckIcon/index.js +9 -26
- package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +12 -8
- package/esm/CloseIcon/index.js +9 -7
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +391 -315
- package/esm/MoreVertIcon/index.js +9 -26
- package/esm/SvgIcon/__snapshots__/index.test.tsx.snap +224 -0
- package/esm/SvgIcon/index.js +26 -0
- package/esm/SvgIcon/index.test.js +123 -0
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +241 -165
- package/esm/UncheckIcon/index.js +12 -29
- package/esm/index.js +2 -1
- package/index.d.ts +1 -0
- package/index.js +8 -0
- package/package.json +2 -2
|
@@ -4,16 +4,20 @@ exports[`renders the ArrowIcon with direction down prop 1`] = `
|
|
|
4
4
|
<ForwardRef(ArrowIcon)
|
|
5
5
|
direction="down"
|
|
6
6
|
>
|
|
7
|
-
<
|
|
8
|
-
aria-hidden="true"
|
|
7
|
+
<ForwardRef(SvgIcon)
|
|
9
8
|
className="govgr-arrow--down"
|
|
10
|
-
focusable="false"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
9
|
>
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
<svg
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-arrow--down govgr-svg-icon"
|
|
13
|
+
focusable="false"
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
>
|
|
16
|
+
<path
|
|
17
|
+
d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
</ForwardRef(SvgIcon)>
|
|
17
21
|
</ForwardRef(ArrowIcon)>
|
|
18
22
|
`;
|
|
19
23
|
|
|
@@ -21,16 +25,20 @@ exports[`renders the ArrowIcon with direction left prop 1`] = `
|
|
|
21
25
|
<ForwardRef(ArrowIcon)
|
|
22
26
|
direction="left"
|
|
23
27
|
>
|
|
24
|
-
<
|
|
25
|
-
aria-hidden="true"
|
|
28
|
+
<ForwardRef(SvgIcon)
|
|
26
29
|
className="govgr-arrow--left"
|
|
27
|
-
focusable="false"
|
|
28
|
-
viewBox="0 0 24 24"
|
|
29
30
|
>
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
<svg
|
|
32
|
+
aria-hidden="true"
|
|
33
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-arrow--left govgr-svg-icon"
|
|
34
|
+
focusable="false"
|
|
35
|
+
viewBox="0 0 24 24"
|
|
36
|
+
>
|
|
37
|
+
<path
|
|
38
|
+
d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z"
|
|
39
|
+
/>
|
|
40
|
+
</svg>
|
|
41
|
+
</ForwardRef(SvgIcon)>
|
|
34
42
|
</ForwardRef(ArrowIcon)>
|
|
35
43
|
`;
|
|
36
44
|
|
|
@@ -38,30 +46,38 @@ exports[`renders the ArrowIcon with direction up prop 1`] = `
|
|
|
38
46
|
<ForwardRef(ArrowIcon)
|
|
39
47
|
direction="up"
|
|
40
48
|
>
|
|
41
|
-
<
|
|
42
|
-
aria-hidden="true"
|
|
49
|
+
<ForwardRef(SvgIcon)
|
|
43
50
|
className="govgr-arrow--up"
|
|
44
|
-
focusable="false"
|
|
45
|
-
viewBox="0 0 24 24"
|
|
46
51
|
>
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
<svg
|
|
53
|
+
aria-hidden="true"
|
|
54
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-arrow--up govgr-svg-icon"
|
|
55
|
+
focusable="false"
|
|
56
|
+
viewBox="0 0 24 24"
|
|
57
|
+
>
|
|
58
|
+
<path
|
|
59
|
+
d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z"
|
|
60
|
+
/>
|
|
61
|
+
</svg>
|
|
62
|
+
</ForwardRef(SvgIcon)>
|
|
51
63
|
</ForwardRef(ArrowIcon)>
|
|
52
64
|
`;
|
|
53
65
|
|
|
54
66
|
exports[`renders the ArrowIcon with no props, direction prop is right by default 1`] = `
|
|
55
67
|
<ForwardRef(ArrowIcon)>
|
|
56
|
-
<
|
|
57
|
-
aria-hidden="true"
|
|
68
|
+
<ForwardRef(SvgIcon)
|
|
58
69
|
className="govgr-arrow--right"
|
|
59
|
-
focusable="false"
|
|
60
|
-
viewBox="0 0 24 24"
|
|
61
70
|
>
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
<svg
|
|
72
|
+
aria-hidden="true"
|
|
73
|
+
className="govgr-svg-icon--dark govgr-svg-icon--m govgr-arrow--right govgr-svg-icon"
|
|
74
|
+
focusable="false"
|
|
75
|
+
viewBox="0 0 24 24"
|
|
76
|
+
>
|
|
77
|
+
<path
|
|
78
|
+
d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z"
|
|
79
|
+
/>
|
|
80
|
+
</svg>
|
|
81
|
+
</ForwardRef(SvgIcon)>
|
|
66
82
|
</ForwardRef(ArrowIcon)>
|
|
67
83
|
`;
|
package/esm/ArrowIcon/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["direction", "className"];
|
|
5
|
-
import React
|
|
3
|
+
var _excluded = ["size", "variant", "direction", "className"];
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import SvgIcon from '@digigov/react-core/SvgIcon';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
|
|
8
8
|
var _ref2 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -26,25 +26,18 @@ var _ref5 = /*#__PURE__*/React.createElement("path", {
|
|
|
26
26
|
* ArrowIcon component can be used inside other components, for example CallToAction component.
|
|
27
27
|
*/
|
|
28
28
|
export var ArrowIcon = /*#__PURE__*/React.forwardRef(function ArrowIcon(_ref, ref) {
|
|
29
|
-
var
|
|
29
|
+
var size = _ref.size,
|
|
30
|
+
variant = _ref.variant,
|
|
31
|
+
_ref$direction = _ref.direction,
|
|
30
32
|
direction = _ref$direction === void 0 ? 'right' : _ref$direction,
|
|
31
33
|
className = _ref.className,
|
|
32
34
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
setDirection(direction);
|
|
41
|
-
}, [direction]);
|
|
42
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
43
|
-
ref: ref,
|
|
44
|
-
className: clsx(arrowDirection === 'right' && 'govgr-arrow--right', arrowDirection === 'left' && 'govgr-arrow--left', arrowDirection === 'down' && 'govgr-arrow--down', arrowDirection === 'up' && 'govgr-arrow--up', className && className),
|
|
45
|
-
focusable: "false",
|
|
46
|
-
viewBox: "0 0 24 24",
|
|
47
|
-
"aria-hidden": "true"
|
|
48
|
-
}, props), arrowDirection === 'left' && _ref2, arrowDirection === 'right' && _ref3, arrowDirection === 'up' && _ref4, arrowDirection === 'down' && _ref5);
|
|
36
|
+
return /*#__PURE__*/React.createElement(SvgIcon, _extends({
|
|
37
|
+
size: size,
|
|
38
|
+
variant: variant,
|
|
39
|
+
className: clsx(direction === 'right' && 'govgr-arrow--right', direction === 'left' && 'govgr-arrow--left', direction === 'down' && 'govgr-arrow--down', direction === 'up' && 'govgr-arrow--up', className && className),
|
|
40
|
+
ref: ref
|
|
41
|
+
}, props), direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
|
|
49
42
|
});
|
|
50
43
|
export default ArrowIcon;
|
|
@@ -1,88 +1,235 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`renders the BurgerIcon prop hidden="l" 1`] = `
|
|
4
|
+
<ForwardRef(BurgerIcon)
|
|
5
|
+
hidden="l"
|
|
6
|
+
>
|
|
7
|
+
<ForwardRef(SvgIcon)
|
|
8
|
+
className="govgr-burger-icon--hidden-l govgr-burger-icon"
|
|
9
|
+
>
|
|
10
|
+
<svg
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
className="govgr-burger-icon--hidden-l govgr-burger-icon govgr-svg-icon"
|
|
13
|
+
focusable="false"
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
>
|
|
16
|
+
<rect
|
|
17
|
+
height="3.3"
|
|
18
|
+
id="govgr-burger-icon__line-1"
|
|
19
|
+
width="20"
|
|
20
|
+
/>
|
|
21
|
+
<rect
|
|
22
|
+
height="3.3"
|
|
23
|
+
id="govgr-burger-icon__line-2"
|
|
24
|
+
width="20"
|
|
25
|
+
/>
|
|
26
|
+
<rect
|
|
27
|
+
height="3.3"
|
|
28
|
+
id="govgr-burger-icon__line-3"
|
|
29
|
+
width="20"
|
|
30
|
+
/>
|
|
31
|
+
</svg>
|
|
32
|
+
</ForwardRef(SvgIcon)>
|
|
33
|
+
</ForwardRef(BurgerIcon)>
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
exports[`renders the BurgerIcon prop hidden="m" 1`] = `
|
|
37
|
+
<ForwardRef(BurgerIcon)
|
|
38
|
+
hidden="m"
|
|
39
|
+
>
|
|
40
|
+
<ForwardRef(SvgIcon)
|
|
41
|
+
className="govgr-burger-icon--hidden-m govgr-burger-icon"
|
|
42
|
+
>
|
|
43
|
+
<svg
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
className="govgr-burger-icon--hidden-m govgr-burger-icon govgr-svg-icon"
|
|
46
|
+
focusable="false"
|
|
47
|
+
viewBox="0 0 24 24"
|
|
48
|
+
>
|
|
49
|
+
<rect
|
|
50
|
+
height="3.3"
|
|
51
|
+
id="govgr-burger-icon__line-1"
|
|
52
|
+
width="20"
|
|
53
|
+
/>
|
|
54
|
+
<rect
|
|
55
|
+
height="3.3"
|
|
56
|
+
id="govgr-burger-icon__line-2"
|
|
57
|
+
width="20"
|
|
58
|
+
/>
|
|
59
|
+
<rect
|
|
60
|
+
height="3.3"
|
|
61
|
+
id="govgr-burger-icon__line-3"
|
|
62
|
+
width="20"
|
|
63
|
+
/>
|
|
64
|
+
</svg>
|
|
65
|
+
</ForwardRef(SvgIcon)>
|
|
66
|
+
</ForwardRef(BurgerIcon)>
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
exports[`renders the BurgerIcon prop hidden="s" 1`] = `
|
|
70
|
+
<ForwardRef(BurgerIcon)
|
|
71
|
+
hidden="s"
|
|
72
|
+
>
|
|
73
|
+
<ForwardRef(SvgIcon)
|
|
74
|
+
className="govgr-burger-icon--hidden-s govgr-burger-icon"
|
|
75
|
+
>
|
|
76
|
+
<svg
|
|
77
|
+
aria-hidden="true"
|
|
78
|
+
className="govgr-burger-icon--hidden-s govgr-burger-icon govgr-svg-icon"
|
|
79
|
+
focusable="false"
|
|
80
|
+
viewBox="0 0 24 24"
|
|
81
|
+
>
|
|
82
|
+
<rect
|
|
83
|
+
height="3.3"
|
|
84
|
+
id="govgr-burger-icon__line-1"
|
|
85
|
+
width="20"
|
|
86
|
+
/>
|
|
87
|
+
<rect
|
|
88
|
+
height="3.3"
|
|
89
|
+
id="govgr-burger-icon__line-2"
|
|
90
|
+
width="20"
|
|
91
|
+
/>
|
|
92
|
+
<rect
|
|
93
|
+
height="3.3"
|
|
94
|
+
id="govgr-burger-icon__line-3"
|
|
95
|
+
width="20"
|
|
96
|
+
/>
|
|
97
|
+
</svg>
|
|
98
|
+
</ForwardRef(SvgIcon)>
|
|
99
|
+
</ForwardRef(BurgerIcon)>
|
|
100
|
+
`;
|
|
101
|
+
|
|
102
|
+
exports[`renders the BurgerIcon prop variant= "error" 1`] = `
|
|
103
|
+
<ForwardRef(BurgerIcon)
|
|
104
|
+
variant="error"
|
|
105
|
+
>
|
|
106
|
+
<ForwardRef(SvgIcon)
|
|
107
|
+
className="govgr-burger-icon"
|
|
108
|
+
variant="error"
|
|
109
|
+
>
|
|
110
|
+
<svg
|
|
111
|
+
aria-hidden="true"
|
|
112
|
+
className="govgr-svg-icon--error govgr-burger-icon govgr-svg-icon"
|
|
113
|
+
focusable="false"
|
|
114
|
+
viewBox="0 0 24 24"
|
|
115
|
+
>
|
|
116
|
+
<rect
|
|
117
|
+
height="3.3"
|
|
118
|
+
id="govgr-burger-icon__line-1"
|
|
119
|
+
width="20"
|
|
120
|
+
/>
|
|
121
|
+
<rect
|
|
122
|
+
height="3.3"
|
|
123
|
+
id="govgr-burger-icon__line-2"
|
|
124
|
+
width="20"
|
|
125
|
+
/>
|
|
126
|
+
<rect
|
|
127
|
+
height="3.3"
|
|
128
|
+
id="govgr-burger-icon__line-3"
|
|
129
|
+
width="20"
|
|
130
|
+
/>
|
|
131
|
+
</svg>
|
|
132
|
+
</ForwardRef(SvgIcon)>
|
|
133
|
+
</ForwardRef(BurgerIcon)>
|
|
134
|
+
`;
|
|
135
|
+
|
|
3
136
|
exports[`renders the BurgerIcon prop variant= "light" 1`] = `
|
|
4
137
|
<ForwardRef(BurgerIcon)
|
|
5
138
|
variant="light"
|
|
6
139
|
>
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
focusable="false"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
140
|
+
<ForwardRef(SvgIcon)
|
|
141
|
+
className="govgr-burger-icon"
|
|
142
|
+
variant="light"
|
|
12
143
|
>
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
144
|
+
<svg
|
|
145
|
+
aria-hidden="true"
|
|
146
|
+
className="govgr-svg-icon--light govgr-burger-icon govgr-svg-icon"
|
|
147
|
+
focusable="false"
|
|
148
|
+
viewBox="0 0 24 24"
|
|
149
|
+
>
|
|
150
|
+
<rect
|
|
151
|
+
height="3.3"
|
|
152
|
+
id="govgr-burger-icon__line-1"
|
|
153
|
+
width="20"
|
|
154
|
+
/>
|
|
155
|
+
<rect
|
|
156
|
+
height="3.3"
|
|
157
|
+
id="govgr-burger-icon__line-2"
|
|
158
|
+
width="20"
|
|
159
|
+
/>
|
|
160
|
+
<rect
|
|
161
|
+
height="3.3"
|
|
162
|
+
id="govgr-burger-icon__line-3"
|
|
163
|
+
width="20"
|
|
164
|
+
/>
|
|
165
|
+
</svg>
|
|
166
|
+
</ForwardRef(SvgIcon)>
|
|
29
167
|
</ForwardRef(BurgerIcon)>
|
|
30
168
|
`;
|
|
31
169
|
|
|
32
|
-
exports[`renders the BurgerIcon props active hidden="
|
|
170
|
+
exports[`renders the BurgerIcon props active hidden="no" variant= "light" 1`] = `
|
|
33
171
|
<ForwardRef(BurgerIcon)
|
|
34
172
|
active={true}
|
|
35
173
|
variant="light"
|
|
36
174
|
>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
focusable="false"
|
|
41
|
-
viewBox="0 0 24 24"
|
|
175
|
+
<ForwardRef(SvgIcon)
|
|
176
|
+
className="govgr-burger-icon--active govgr-burger-icon"
|
|
177
|
+
variant="light"
|
|
42
178
|
>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
179
|
+
<svg
|
|
180
|
+
aria-hidden="true"
|
|
181
|
+
className="govgr-svg-icon--light govgr-burger-icon--active govgr-burger-icon govgr-svg-icon"
|
|
182
|
+
focusable="false"
|
|
183
|
+
viewBox="0 0 24 24"
|
|
184
|
+
>
|
|
185
|
+
<rect
|
|
186
|
+
height="3.3"
|
|
187
|
+
id="govgr-burger-icon__line-1"
|
|
188
|
+
width="20"
|
|
189
|
+
/>
|
|
190
|
+
<rect
|
|
191
|
+
height="3.3"
|
|
192
|
+
id="govgr-burger-icon__line-2"
|
|
193
|
+
width="20"
|
|
194
|
+
/>
|
|
195
|
+
<rect
|
|
196
|
+
height="3.3"
|
|
197
|
+
id="govgr-burger-icon__line-3"
|
|
198
|
+
width="20"
|
|
199
|
+
/>
|
|
200
|
+
</svg>
|
|
201
|
+
</ForwardRef(SvgIcon)>
|
|
59
202
|
</ForwardRef(BurgerIcon)>
|
|
60
203
|
`;
|
|
61
204
|
|
|
62
205
|
exports[`renders the BurgerIcon with no props 1`] = `
|
|
63
206
|
<ForwardRef(BurgerIcon)>
|
|
64
|
-
<
|
|
65
|
-
aria-hidden="true"
|
|
207
|
+
<ForwardRef(SvgIcon)
|
|
66
208
|
className="govgr-burger-icon"
|
|
67
|
-
focusable="false"
|
|
68
|
-
viewBox="0 0 24 24"
|
|
69
209
|
>
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
210
|
+
<svg
|
|
211
|
+
aria-hidden="true"
|
|
212
|
+
className="govgr-burger-icon govgr-svg-icon"
|
|
213
|
+
focusable="false"
|
|
214
|
+
viewBox="0 0 24 24"
|
|
215
|
+
>
|
|
216
|
+
<rect
|
|
217
|
+
height="3.3"
|
|
218
|
+
id="govgr-burger-icon__line-1"
|
|
219
|
+
width="20"
|
|
220
|
+
/>
|
|
221
|
+
<rect
|
|
222
|
+
height="3.3"
|
|
223
|
+
id="govgr-burger-icon__line-2"
|
|
224
|
+
width="20"
|
|
225
|
+
/>
|
|
226
|
+
<rect
|
|
227
|
+
height="3.3"
|
|
228
|
+
id="govgr-burger-icon__line-3"
|
|
229
|
+
width="20"
|
|
230
|
+
/>
|
|
231
|
+
</svg>
|
|
232
|
+
</ForwardRef(SvgIcon)>
|
|
86
233
|
</ForwardRef(BurgerIcon)>
|
|
87
234
|
`;
|
|
88
235
|
|
|
@@ -90,28 +237,32 @@ exports[`renders the BurgerIcon with prop active=true 1`] = `
|
|
|
90
237
|
<ForwardRef(BurgerIcon)
|
|
91
238
|
active={true}
|
|
92
239
|
>
|
|
93
|
-
<
|
|
94
|
-
aria-hidden="true"
|
|
240
|
+
<ForwardRef(SvgIcon)
|
|
95
241
|
className="govgr-burger-icon--active govgr-burger-icon"
|
|
96
|
-
focusable="false"
|
|
97
|
-
viewBox="0 0 24 24"
|
|
98
242
|
>
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
243
|
+
<svg
|
|
244
|
+
aria-hidden="true"
|
|
245
|
+
className="govgr-burger-icon--active govgr-burger-icon govgr-svg-icon"
|
|
246
|
+
focusable="false"
|
|
247
|
+
viewBox="0 0 24 24"
|
|
248
|
+
>
|
|
249
|
+
<rect
|
|
250
|
+
height="3.3"
|
|
251
|
+
id="govgr-burger-icon__line-1"
|
|
252
|
+
width="20"
|
|
253
|
+
/>
|
|
254
|
+
<rect
|
|
255
|
+
height="3.3"
|
|
256
|
+
id="govgr-burger-icon__line-2"
|
|
257
|
+
width="20"
|
|
258
|
+
/>
|
|
259
|
+
<rect
|
|
260
|
+
height="3.3"
|
|
261
|
+
id="govgr-burger-icon__line-3"
|
|
262
|
+
width="20"
|
|
263
|
+
/>
|
|
264
|
+
</svg>
|
|
265
|
+
</ForwardRef(SvgIcon)>
|
|
115
266
|
</ForwardRef(BurgerIcon)>
|
|
116
267
|
`;
|
|
117
268
|
|
|
@@ -119,57 +270,103 @@ exports[`renders the BurgerIcon with prop variant=dark 1`] = `
|
|
|
119
270
|
<ForwardRef(BurgerIcon)
|
|
120
271
|
variant="dark"
|
|
121
272
|
>
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
focusable="false"
|
|
126
|
-
viewBox="0 0 24 24"
|
|
273
|
+
<ForwardRef(SvgIcon)
|
|
274
|
+
className="govgr-burger-icon"
|
|
275
|
+
variant="dark"
|
|
127
276
|
>
|
|
128
|
-
<
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
277
|
+
<svg
|
|
278
|
+
aria-hidden="true"
|
|
279
|
+
className="govgr-svg-icon--dark govgr-burger-icon govgr-svg-icon"
|
|
280
|
+
focusable="false"
|
|
281
|
+
viewBox="0 0 24 24"
|
|
282
|
+
>
|
|
283
|
+
<rect
|
|
284
|
+
height="3.3"
|
|
285
|
+
id="govgr-burger-icon__line-1"
|
|
286
|
+
width="20"
|
|
287
|
+
/>
|
|
288
|
+
<rect
|
|
289
|
+
height="3.3"
|
|
290
|
+
id="govgr-burger-icon__line-2"
|
|
291
|
+
width="20"
|
|
292
|
+
/>
|
|
293
|
+
<rect
|
|
294
|
+
height="3.3"
|
|
295
|
+
id="govgr-burger-icon__line-3"
|
|
296
|
+
width="20"
|
|
297
|
+
/>
|
|
298
|
+
</svg>
|
|
299
|
+
</ForwardRef(SvgIcon)>
|
|
144
300
|
</ForwardRef(BurgerIcon)>
|
|
145
301
|
`;
|
|
146
302
|
|
|
147
|
-
exports[`renders the BurgerIcon with props active hidden=
|
|
303
|
+
exports[`renders the BurgerIcon with props active hidden="s" and variant="dark" 1`] = `
|
|
148
304
|
<ForwardRef(BurgerIcon)
|
|
149
305
|
active={true}
|
|
306
|
+
hidden="s"
|
|
150
307
|
variant="dark"
|
|
151
308
|
>
|
|
152
|
-
<
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
309
|
+
<ForwardRef(SvgIcon)
|
|
310
|
+
className="govgr-burger-icon--active govgr-burger-icon--hidden-s govgr-burger-icon"
|
|
311
|
+
variant="dark"
|
|
312
|
+
>
|
|
313
|
+
<svg
|
|
314
|
+
aria-hidden="true"
|
|
315
|
+
className="govgr-svg-icon--dark govgr-burger-icon--active govgr-burger-icon--hidden-s govgr-burger-icon govgr-svg-icon"
|
|
316
|
+
focusable="false"
|
|
317
|
+
viewBox="0 0 24 24"
|
|
318
|
+
>
|
|
319
|
+
<rect
|
|
320
|
+
height="3.3"
|
|
321
|
+
id="govgr-burger-icon__line-1"
|
|
322
|
+
width="20"
|
|
323
|
+
/>
|
|
324
|
+
<rect
|
|
325
|
+
height="3.3"
|
|
326
|
+
id="govgr-burger-icon__line-2"
|
|
327
|
+
width="20"
|
|
328
|
+
/>
|
|
329
|
+
<rect
|
|
330
|
+
height="3.3"
|
|
331
|
+
id="govgr-burger-icon__line-3"
|
|
332
|
+
width="20"
|
|
333
|
+
/>
|
|
334
|
+
</svg>
|
|
335
|
+
</ForwardRef(SvgIcon)>
|
|
336
|
+
</ForwardRef(BurgerIcon)>
|
|
337
|
+
`;
|
|
338
|
+
|
|
339
|
+
exports[`renders the BurgerIcon with props hidden="l" and variant="success" 1`] = `
|
|
340
|
+
<ForwardRef(BurgerIcon)
|
|
341
|
+
hidden="l"
|
|
342
|
+
variant="success"
|
|
343
|
+
>
|
|
344
|
+
<ForwardRef(SvgIcon)
|
|
345
|
+
className="govgr-burger-icon--hidden-l govgr-burger-icon"
|
|
346
|
+
variant="success"
|
|
157
347
|
>
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
348
|
+
<svg
|
|
349
|
+
aria-hidden="true"
|
|
350
|
+
className="govgr-svg-icon--success govgr-burger-icon--hidden-l govgr-burger-icon govgr-svg-icon"
|
|
351
|
+
focusable="false"
|
|
352
|
+
viewBox="0 0 24 24"
|
|
353
|
+
>
|
|
354
|
+
<rect
|
|
355
|
+
height="3.3"
|
|
356
|
+
id="govgr-burger-icon__line-1"
|
|
357
|
+
width="20"
|
|
358
|
+
/>
|
|
359
|
+
<rect
|
|
360
|
+
height="3.3"
|
|
361
|
+
id="govgr-burger-icon__line-2"
|
|
362
|
+
width="20"
|
|
363
|
+
/>
|
|
364
|
+
<rect
|
|
365
|
+
height="3.3"
|
|
366
|
+
id="govgr-burger-icon__line-3"
|
|
367
|
+
width="20"
|
|
368
|
+
/>
|
|
369
|
+
</svg>
|
|
370
|
+
</ForwardRef(SvgIcon)>
|
|
174
371
|
</ForwardRef(BurgerIcon)>
|
|
175
372
|
`;
|