@digigov/react-icons 1.0.0-rc.2 → 1.0.0-rc.4
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/config.js +7 -19
- package/AccessibilityIcon/index.js +6 -21
- package/AccessibilityIcon/index.test.js +21 -27
- package/AccessibilityIcon/package.json +6 -0
- package/ArrowIcon/config.d.ts +1 -1
- package/ArrowIcon/config.js +13 -25
- package/ArrowIcon/index.js +6 -21
- package/ArrowIcon/index.test.js +11 -17
- package/ArrowIcon/package.json +6 -0
- package/BurgerIcon/config.js +9 -22
- package/BurgerIcon/index.js +6 -21
- package/BurgerIcon/index.test.js +15 -21
- package/BurgerIcon/package.json +6 -0
- package/CaretIcon/config.js +8 -20
- package/CaretIcon/index.js +6 -21
- package/CaretIcon/index.test.js +11 -17
- package/CaretIcon/package.json +6 -0
- package/CheckIcon/config.js +5 -17
- package/CheckIcon/index.js +6 -21
- package/CheckIcon/index.test.js +19 -25
- package/CheckIcon/package.json +6 -0
- package/ChevronIcon/config.d.ts +14 -0
- package/{es/ArrowIcon → ChevronIcon}/config.js +3 -3
- package/ChevronIcon/index.d.ts +4 -0
- package/{es/ArrowIcon → ChevronIcon}/index.js +4 -4
- package/ChevronIcon/index.test.d.ts +1 -0
- package/ChevronIcon/index.test.js +33 -0
- package/ChevronIcon/package.json +6 -0
- package/CloseIcon/config.js +5 -17
- package/CloseIcon/index.js +6 -21
- package/CloseIcon/index.test.js +5 -11
- package/CloseIcon/package.json +6 -0
- package/GlobeIcon/config.js +5 -17
- package/GlobeIcon/index.js +6 -21
- package/GlobeIcon/index.test.js +11 -17
- package/GlobeIcon/package.json +6 -0
- package/Icon/index.d.ts +1 -1
- package/Icon/index.js +16 -40
- package/Icon/index.test.js +23 -29
- package/Icon/package.json +6 -0
- package/MoreVertIcon/config.js +7 -19
- package/MoreVertIcon/index.js +6 -21
- package/MoreVertIcon/index.test.js +21 -27
- package/MoreVertIcon/package.json +6 -0
- package/SearchIcon/config.js +5 -17
- package/SearchIcon/index.js +6 -21
- package/SearchIcon/index.test.js +5 -11
- package/SearchIcon/package.json +6 -0
- package/UncheckIcon/config.js +5 -17
- package/UncheckIcon/index.js +6 -21
- package/UncheckIcon/index.test.js +21 -27
- package/UncheckIcon/package.json +6 -0
- package/cjs/AccessibilityIcon/config.js +31 -0
- package/cjs/AccessibilityIcon/index.js +24 -0
- package/cjs/AccessibilityIcon/index.test.js +81 -0
- package/cjs/ArrowIcon/config.js +39 -0
- package/cjs/ArrowIcon/index.js +24 -0
- package/cjs/ArrowIcon/index.test.js +39 -0
- package/cjs/BurgerIcon/config.js +45 -0
- package/cjs/BurgerIcon/index.js +24 -0
- package/cjs/BurgerIcon/index.test.js +56 -0
- package/cjs/CaretIcon/config.js +39 -0
- package/cjs/CaretIcon/index.js +24 -0
- package/cjs/CaretIcon/index.test.js +39 -0
- package/cjs/CheckIcon/config.js +23 -0
- package/cjs/CheckIcon/index.js +24 -0
- package/cjs/CheckIcon/index.test.js +73 -0
- package/cjs/ChevronIcon/config.js +39 -0
- package/cjs/ChevronIcon/index.js +24 -0
- package/cjs/ChevronIcon/index.test.js +39 -0
- package/cjs/CloseIcon/config.js +23 -0
- package/cjs/CloseIcon/index.js +24 -0
- package/cjs/CloseIcon/index.test.js +15 -0
- package/{esm → cjs}/GlobeIcon/config.js +17 -5
- package/cjs/GlobeIcon/index.js +24 -0
- package/cjs/GlobeIcon/index.test.js +39 -0
- package/cjs/Icon/index.js +58 -0
- package/cjs/Icon/index.test.js +88 -0
- package/cjs/MoreVertIcon/config.js +37 -0
- package/cjs/MoreVertIcon/index.js +24 -0
- package/cjs/MoreVertIcon/index.test.js +81 -0
- package/cjs/SearchIcon/config.js +23 -0
- package/cjs/SearchIcon/index.js +24 -0
- package/cjs/SearchIcon/index.test.js +15 -0
- package/cjs/UncheckIcon/config.js +23 -0
- package/cjs/UncheckIcon/index.js +24 -0
- package/cjs/UncheckIcon/index.test.js +81 -0
- package/cjs/icons.js +148 -0
- package/cjs/index.js +148 -0
- package/cjs/registry.js +73 -0
- package/icons.d.ts +3 -0
- package/icons.js +12 -135
- package/index.d.ts +1 -0
- package/index.js +11 -135
- package/package.json +4 -4
- package/registry.d.ts +1 -0
- package/registry.js +17 -41
- package/src/ArrowIcon/config.tsx +6 -6
- package/src/ChevronIcon/config.tsx +37 -0
- package/src/ChevronIcon/index.test.tsx +20 -0
- package/src/ChevronIcon/index.tsx +8 -0
- package/src/Icon/index.tsx +2 -2
- package/src/icons.ts +3 -0
- package/src/index.ts +1 -0
- package/src/registry.js +2 -0
- package/es/AccessibilityIcon/config.js +0 -19
- package/es/AccessibilityIcon/index.js +0 -9
- package/es/AccessibilityIcon/index.test.js +0 -75
- package/es/ArrowIcon/index.test.js +0 -33
- package/es/BurgerIcon/config.js +0 -32
- package/es/BurgerIcon/index.js +0 -9
- package/es/BurgerIcon/index.test.js +0 -50
- package/es/CaretIcon/config.js +0 -27
- package/es/CaretIcon/index.js +0 -9
- package/es/CaretIcon/index.test.js +0 -33
- package/es/CheckIcon/config.js +0 -11
- package/es/CheckIcon/index.js +0 -9
- package/es/CheckIcon/index.test.js +0 -67
- package/es/CloseIcon/config.js +0 -11
- package/es/CloseIcon/index.js +0 -9
- package/es/CloseIcon/index.test.js +0 -9
- package/es/GlobeIcon/config.js +0 -11
- package/es/GlobeIcon/index.js +0 -9
- package/es/GlobeIcon/index.test.js +0 -33
- package/es/Icon/index.js +0 -34
- package/es/Icon/index.test.js +0 -82
- package/es/MoreVertIcon/config.js +0 -25
- package/es/MoreVertIcon/index.js +0 -9
- package/es/MoreVertIcon/index.test.js +0 -75
- package/es/SearchIcon/config.js +0 -11
- package/es/SearchIcon/index.js +0 -9
- package/es/SearchIcon/index.test.js +0 -9
- package/es/UncheckIcon/config.js +0 -11
- package/es/UncheckIcon/index.js +0 -9
- package/es/UncheckIcon/index.test.js +0 -75
- package/es/icons.js +0 -11
- package/es/index.js +0 -10
- package/es/registry.js +0 -44
- package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
- package/esm/AccessibilityIcon/config.js +0 -19
- package/esm/AccessibilityIcon/index.js +0 -9
- package/esm/AccessibilityIcon/index.test.js +0 -75
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/esm/ArrowIcon/config.js +0 -27
- package/esm/ArrowIcon/index.js +0 -9
- package/esm/ArrowIcon/index.test.js +0 -33
- package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
- package/esm/BurgerIcon/config.js +0 -32
- package/esm/BurgerIcon/index.js +0 -9
- package/esm/BurgerIcon/index.test.js +0 -50
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/esm/CaretIcon/config.js +0 -27
- package/esm/CaretIcon/index.js +0 -9
- package/esm/CaretIcon/index.test.js +0 -33
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
- package/esm/CheckIcon/config.js +0 -11
- package/esm/CheckIcon/index.js +0 -9
- package/esm/CheckIcon/index.test.js +0 -67
- package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/esm/CloseIcon/config.js +0 -11
- package/esm/CloseIcon/index.js +0 -9
- package/esm/CloseIcon/index.test.js +0 -9
- package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
- package/esm/GlobeIcon/index.js +0 -9
- package/esm/GlobeIcon/index.test.js +0 -33
- package/esm/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/esm/Icon/index.js +0 -34
- package/esm/Icon/index.test.js +0 -82
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
- package/esm/MoreVertIcon/config.js +0 -25
- package/esm/MoreVertIcon/index.js +0 -9
- package/esm/MoreVertIcon/index.test.js +0 -75
- package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/esm/SearchIcon/config.js +0 -11
- package/esm/SearchIcon/index.js +0 -9
- package/esm/SearchIcon/index.test.js +0 -9
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
- package/esm/UncheckIcon/config.js +0 -11
- package/esm/UncheckIcon/index.js +0 -9
- package/esm/UncheckIcon/index.test.js +0 -75
- package/esm/icons.js +0 -11
- package/esm/index.js +0 -10
- package/esm/registry.js +0 -44
- /package/{es → cjs}/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/CaretIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/CheckIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/CloseIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/Icon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/SearchIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -0
|
@@ -1,31 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _ref = /*#__PURE__*/React.createElement("title", null, "\u039C\u03B5\u03BD\u03BF\u03CD \u03A0\u03C1\u03BF\u03C3\u03B2\u03B1\u03C3\u03B9\u03BC\u03CC\u03C4\u03B7\u03C4\u03B1\u03C2");
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.accessibility = accessibility;
|
|
9
|
-
exports["default"] = void 0;
|
|
10
|
-
|
|
11
|
-
var _react = _interopRequireDefault(require("react"));
|
|
12
|
-
|
|
13
|
-
var _ref = /*#__PURE__*/_react["default"].createElement("title", null, "\u039C\u03B5\u03BD\u03BF\u03CD \u03A0\u03C1\u03BF\u03C3\u03B2\u03B1\u03C3\u03B9\u03BC\u03CC\u03C4\u03B7\u03C4\u03B1\u03C2");
|
|
14
|
-
|
|
15
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement("circle", {
|
|
5
|
+
var _ref2 = /*#__PURE__*/React.createElement("circle", {
|
|
16
6
|
cx: "12",
|
|
17
7
|
cy: "3",
|
|
18
8
|
r: "3"
|
|
19
9
|
});
|
|
20
10
|
|
|
21
|
-
var _ref3 = /*#__PURE__*/
|
|
11
|
+
var _ref3 = /*#__PURE__*/React.createElement("path", {
|
|
22
12
|
d: "M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
|
|
23
13
|
});
|
|
24
14
|
|
|
25
|
-
function accessibility() {
|
|
26
|
-
return /*#__PURE__*/
|
|
15
|
+
export function accessibility() {
|
|
16
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2, _ref3);
|
|
27
17
|
}
|
|
28
|
-
|
|
29
18
|
accessibility.props = [];
|
|
30
|
-
|
|
31
|
-
exports["default"] = _default;
|
|
19
|
+
export default accessibility;
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.AccessibilityIcon = void 0;
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
|
|
15
|
-
|
|
16
|
-
var AccessibilityIcon = function AccessibilityIcon(props) {
|
|
17
|
-
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from "../Icon";
|
|
4
|
+
export var AccessibilityIcon = function AccessibilityIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
18
6
|
icon: "accessibility"
|
|
19
7
|
}));
|
|
20
8
|
};
|
|
21
|
-
|
|
22
|
-
exports.AccessibilityIcon = AccessibilityIcon;
|
|
23
|
-
var _default = AccessibilityIcon;
|
|
24
|
-
exports["default"] = _default;
|
|
9
|
+
export default AccessibilityIcon;
|
|
@@ -1,81 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import AccessibilityIcon from "./";
|
|
2
4
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
|
|
7
|
-
var _enzyme = require("enzyme");
|
|
8
|
-
|
|
9
|
-
var _AccessibilityIcon = _interopRequireDefault(require("@digigov/react-icons/AccessibilityIcon"));
|
|
10
|
-
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_AccessibilityIcon["default"], null);
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(AccessibilityIcon, null);
|
|
12
6
|
|
|
13
7
|
it('renders the AccessibilityIcon with no props', function () {
|
|
14
|
-
expect(
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
15
9
|
});
|
|
16
10
|
|
|
17
|
-
var _ref2 = /*#__PURE__*/
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
18
12
|
size: "sm"
|
|
19
13
|
});
|
|
20
14
|
|
|
21
15
|
it('renders the AccessibilityIcon with prop size=s', function () {
|
|
22
|
-
expect(
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
23
17
|
});
|
|
24
18
|
|
|
25
|
-
var _ref3 = /*#__PURE__*/
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
26
20
|
size: "lg"
|
|
27
21
|
});
|
|
28
22
|
|
|
29
23
|
it('renders the AccessibilityIcon with prop size=l', function () {
|
|
30
|
-
expect(
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
31
25
|
});
|
|
32
26
|
|
|
33
|
-
var _ref4 = /*#__PURE__*/
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
34
28
|
variant: "dark"
|
|
35
29
|
});
|
|
36
30
|
|
|
37
31
|
it('renders the AccessibilityIcon with prop variant=dark', function () {
|
|
38
|
-
expect(
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
39
33
|
});
|
|
40
34
|
|
|
41
|
-
var _ref5 = /*#__PURE__*/
|
|
35
|
+
var _ref5 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
42
36
|
variant: "primary"
|
|
43
37
|
});
|
|
44
38
|
|
|
45
39
|
it('renders the AccessibilityIcon with prop variant=primary', function () {
|
|
46
|
-
expect(
|
|
40
|
+
expect(mount(_ref5)).toMatchSnapshot();
|
|
47
41
|
});
|
|
48
42
|
|
|
49
|
-
var _ref6 = /*#__PURE__*/
|
|
43
|
+
var _ref6 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
50
44
|
variant: "success"
|
|
51
45
|
});
|
|
52
46
|
|
|
53
47
|
it('renders the AccessibilityIcon with prop variant=success', function () {
|
|
54
|
-
expect(
|
|
48
|
+
expect(mount(_ref6)).toMatchSnapshot();
|
|
55
49
|
});
|
|
56
50
|
|
|
57
|
-
var _ref7 = /*#__PURE__*/
|
|
51
|
+
var _ref7 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
58
52
|
variant: "error"
|
|
59
53
|
});
|
|
60
54
|
|
|
61
55
|
it('renders the AccessibilityIcon with prop variant=error', function () {
|
|
62
|
-
expect(
|
|
56
|
+
expect(mount(_ref7)).toMatchSnapshot();
|
|
63
57
|
});
|
|
64
58
|
|
|
65
|
-
var _ref8 = /*#__PURE__*/
|
|
59
|
+
var _ref8 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
66
60
|
variant: "warning",
|
|
67
61
|
size: "sm"
|
|
68
62
|
});
|
|
69
63
|
|
|
70
64
|
it('renders the AccessibilityIcon with prop variant=warning and size=s', function () {
|
|
71
|
-
expect(
|
|
65
|
+
expect(mount(_ref8)).toMatchSnapshot();
|
|
72
66
|
});
|
|
73
67
|
|
|
74
|
-
var _ref9 = /*#__PURE__*/
|
|
68
|
+
var _ref9 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
75
69
|
variant: "warning",
|
|
76
70
|
size: "xl"
|
|
77
71
|
});
|
|
78
72
|
|
|
79
73
|
it('renders the AccessibilityIcon with prop variant=error and size= xl', function () {
|
|
80
|
-
expect(
|
|
74
|
+
expect(mount(_ref9)).toMatchSnapshot();
|
|
81
75
|
});
|
package/ArrowIcon/config.d.ts
CHANGED
package/ArrowIcon/config.js
CHANGED
|
@@ -1,39 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
3
|
+
var _ref2 = /*#__PURE__*/React.createElement("polygon", {
|
|
4
|
+
points: "14.4 19.7 8.48 13.7 21.93 13.7 22 10.37 8.48 10.32 14.4 4.4 12 2 2 12 12 22 14.4 19.7"
|
|
7
5
|
});
|
|
8
|
-
exports["default"] = exports.arrow = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
6
|
|
|
12
|
-
var
|
|
13
|
-
|
|
7
|
+
var _ref3 = /*#__PURE__*/React.createElement("polygon", {
|
|
8
|
+
points: "9.6 4.3 15.52 10.3 2.07 10.3 2 13.63 15.52 13.68 9.6 19.6 12 22 22 12 12 2 9.6 4.3"
|
|
14
9
|
});
|
|
15
10
|
|
|
16
|
-
var
|
|
17
|
-
|
|
11
|
+
var _ref4 = /*#__PURE__*/React.createElement("polygon", {
|
|
12
|
+
points: "22 12 12 2 2 12 4.3 14.4 10.3 8.48 10.3 21.93 13.63 22 13.68 8.48 19.6 14.4 22 12"
|
|
18
13
|
});
|
|
19
14
|
|
|
20
|
-
var
|
|
21
|
-
|
|
15
|
+
var _ref5 = /*#__PURE__*/React.createElement("polygon", {
|
|
16
|
+
points: "19.7 9.6 13.7 15.52 13.7 2.07 10.37 2 10.32 15.52 4.4 9.6 2 12 12 22 22 12 19.7 9.6"
|
|
22
17
|
});
|
|
23
18
|
|
|
24
|
-
var
|
|
25
|
-
d: "M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
var arrow = function arrow(_ref) {
|
|
19
|
+
export var arrow = function arrow(_ref) {
|
|
29
20
|
var _ref$direction = _ref.direction,
|
|
30
|
-
direction = _ref$direction === void 0 ? '
|
|
31
|
-
return /*#__PURE__*/
|
|
21
|
+
direction = _ref$direction === void 0 ? 'up' : _ref$direction;
|
|
22
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
|
|
32
23
|
}; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33
24
|
// @ts-ignore
|
|
34
25
|
|
|
35
|
-
|
|
36
|
-
exports.arrow = arrow;
|
|
37
26
|
arrow.props = ['direction'];
|
|
38
|
-
|
|
39
|
-
exports["default"] = _default;
|
|
27
|
+
export default arrow;
|
package/ArrowIcon/index.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.ArrowIcon = void 0;
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
|
|
15
|
-
|
|
16
|
-
var ArrowIcon = function ArrowIcon(props) {
|
|
17
|
-
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from "../Icon";
|
|
4
|
+
export var ArrowIcon = function ArrowIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
18
6
|
icon: "arrow"
|
|
19
7
|
}));
|
|
20
8
|
};
|
|
21
|
-
|
|
22
|
-
exports.ArrowIcon = ArrowIcon;
|
|
23
|
-
var _default = ArrowIcon;
|
|
24
|
-
exports["default"] = _default;
|
|
9
|
+
export default ArrowIcon;
|
package/ArrowIcon/index.test.js
CHANGED
|
@@ -1,39 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import ArrowIcon from "./";
|
|
2
4
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
|
|
7
|
-
var _enzyme = require("enzyme");
|
|
8
|
-
|
|
9
|
-
var _ArrowIcon = _interopRequireDefault(require("@digigov/react-icons/ArrowIcon"));
|
|
10
|
-
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_ArrowIcon["default"], null);
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(ArrowIcon, null);
|
|
12
6
|
|
|
13
7
|
it('renders the ArrowIcon with no props, direction prop is right by default', function () {
|
|
14
|
-
expect(
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
15
9
|
});
|
|
16
10
|
|
|
17
|
-
var _ref2 = /*#__PURE__*/
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
18
12
|
direction: "left"
|
|
19
13
|
});
|
|
20
14
|
|
|
21
15
|
it('renders the ArrowIcon with direction left prop', function () {
|
|
22
|
-
expect(
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
23
17
|
});
|
|
24
18
|
|
|
25
|
-
var _ref3 = /*#__PURE__*/
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
26
20
|
direction: "up"
|
|
27
21
|
});
|
|
28
22
|
|
|
29
23
|
it('renders the ArrowIcon with direction up prop', function () {
|
|
30
|
-
expect(
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
31
25
|
});
|
|
32
26
|
|
|
33
|
-
var _ref4 = /*#__PURE__*/
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
34
28
|
direction: "down"
|
|
35
29
|
});
|
|
36
30
|
|
|
37
31
|
it('renders the ArrowIcon with direction down prop', function () {
|
|
38
|
-
expect(
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
39
33
|
});
|
package/BurgerIcon/config.js
CHANGED
|
@@ -1,45 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
2
3
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.burger = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
|
-
|
|
14
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement("rect", {
|
|
4
|
+
var _ref2 = /*#__PURE__*/React.createElement("rect", {
|
|
15
5
|
id: "govgr-svg-icon--burger__line-1",
|
|
16
6
|
width: "20",
|
|
17
7
|
height: "3.3"
|
|
18
8
|
});
|
|
19
9
|
|
|
20
|
-
var _ref3 = /*#__PURE__*/
|
|
10
|
+
var _ref3 = /*#__PURE__*/React.createElement("rect", {
|
|
21
11
|
id: "govgr-svg-icon--burger__line-2",
|
|
22
12
|
width: "20",
|
|
23
13
|
height: "3.3"
|
|
24
14
|
});
|
|
25
15
|
|
|
26
|
-
var _ref4 = /*#__PURE__*/
|
|
16
|
+
var _ref4 = /*#__PURE__*/React.createElement("rect", {
|
|
27
17
|
id: "govgr-svg-icon--burger__line-3",
|
|
28
18
|
width: "20",
|
|
29
19
|
height: "3.3"
|
|
30
20
|
});
|
|
31
21
|
|
|
32
|
-
var burger = function burger(_ref) {
|
|
22
|
+
export var burger = function burger(_ref) {
|
|
33
23
|
var _ref$active = _ref.active,
|
|
34
24
|
active = _ref$active === void 0 ? false : _ref$active;
|
|
35
|
-
return /*#__PURE__*/
|
|
36
|
-
className: (
|
|
25
|
+
return /*#__PURE__*/React.createElement("g", {
|
|
26
|
+
className: clsx(active && "govgr-svg-icon--burger--active")
|
|
37
27
|
}, _ref2, _ref3, _ref4);
|
|
38
28
|
}; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
39
29
|
// @ts-ignore
|
|
40
30
|
|
|
41
|
-
|
|
42
|
-
exports.burger = burger;
|
|
43
31
|
burger.props = ['active'];
|
|
44
|
-
|
|
45
|
-
exports["default"] = _default;
|
|
32
|
+
export default burger;
|
package/BurgerIcon/index.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.BurgerIcon = void 0;
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
|
|
15
|
-
|
|
16
|
-
var BurgerIcon = function BurgerIcon(props) {
|
|
17
|
-
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from "../Icon";
|
|
4
|
+
export var BurgerIcon = function BurgerIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
18
6
|
icon: "burger"
|
|
19
7
|
}));
|
|
20
8
|
};
|
|
21
|
-
|
|
22
|
-
exports.BurgerIcon = BurgerIcon;
|
|
23
|
-
var _default = BurgerIcon;
|
|
24
|
-
exports["default"] = _default;
|
|
9
|
+
export default BurgerIcon;
|
package/BurgerIcon/index.test.js
CHANGED
|
@@ -1,56 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import BurgerIcon from "./";
|
|
2
4
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
|
|
7
|
-
var _enzyme = require("enzyme");
|
|
8
|
-
|
|
9
|
-
var _BurgerIcon = _interopRequireDefault(require("@digigov/react-icons/BurgerIcon"));
|
|
10
|
-
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_BurgerIcon["default"], null);
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(BurgerIcon, null);
|
|
12
6
|
|
|
13
7
|
it('renders the BurgerIcon with no props', function () {
|
|
14
|
-
expect(
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
15
9
|
});
|
|
16
10
|
|
|
17
|
-
var _ref2 = /*#__PURE__*/
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
18
12
|
active: true
|
|
19
13
|
});
|
|
20
14
|
|
|
21
15
|
it('renders the BurgerIcon with prop active=true', function () {
|
|
22
|
-
expect(
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
23
17
|
});
|
|
24
18
|
|
|
25
|
-
var _ref3 = /*#__PURE__*/
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
26
20
|
variant: "dark"
|
|
27
21
|
});
|
|
28
22
|
|
|
29
23
|
it('renders the BurgerIcon with prop variant=dark', function () {
|
|
30
|
-
expect(
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
31
25
|
});
|
|
32
26
|
|
|
33
|
-
var _ref4 = /*#__PURE__*/
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
34
28
|
variant: "light"
|
|
35
29
|
});
|
|
36
30
|
|
|
37
31
|
it('renders the BurgerIcon prop variant= "light"', function () {
|
|
38
|
-
expect(
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
39
33
|
});
|
|
40
34
|
|
|
41
|
-
var _ref5 = /*#__PURE__*/
|
|
35
|
+
var _ref5 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
42
36
|
variant: "error"
|
|
43
37
|
});
|
|
44
38
|
|
|
45
39
|
it('renders the BurgerIcon prop variant= "error"', function () {
|
|
46
|
-
expect(
|
|
40
|
+
expect(mount(_ref5)).toMatchSnapshot();
|
|
47
41
|
});
|
|
48
42
|
|
|
49
|
-
var _ref6 = /*#__PURE__*/
|
|
43
|
+
var _ref6 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
50
44
|
active: true,
|
|
51
45
|
variant: "light"
|
|
52
46
|
});
|
|
53
47
|
|
|
54
48
|
it('renders the BurgerIcon props active variant= "light"', function () {
|
|
55
|
-
expect(
|
|
49
|
+
expect(mount(_ref6)).toMatchSnapshot();
|
|
56
50
|
});
|
package/CaretIcon/config.js
CHANGED
|
@@ -1,39 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.caret = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement("path", {
|
|
3
|
+
var _ref2 = /*#__PURE__*/React.createElement("path", {
|
|
13
4
|
d: "M18,22V2L6,12L18,22z"
|
|
14
5
|
});
|
|
15
6
|
|
|
16
|
-
var _ref3 = /*#__PURE__*/
|
|
7
|
+
var _ref3 = /*#__PURE__*/React.createElement("path", {
|
|
17
8
|
d: "M6,2v20l12-10L6,2z"
|
|
18
9
|
});
|
|
19
10
|
|
|
20
|
-
var _ref4 = /*#__PURE__*/
|
|
11
|
+
var _ref4 = /*#__PURE__*/React.createElement("path", {
|
|
21
12
|
d: "M2,18h20L12,6L2,18z"
|
|
22
13
|
});
|
|
23
14
|
|
|
24
|
-
var _ref5 = /*#__PURE__*/
|
|
15
|
+
var _ref5 = /*#__PURE__*/React.createElement("path", {
|
|
25
16
|
d: "M22,6H2l10,12L22,6z"
|
|
26
17
|
});
|
|
27
18
|
|
|
28
|
-
var caret = function caret(_ref) {
|
|
19
|
+
export var caret = function caret(_ref) {
|
|
29
20
|
var _ref$direction = _ref.direction,
|
|
30
21
|
direction = _ref$direction === void 0 ? 'left' : _ref$direction;
|
|
31
|
-
return /*#__PURE__*/
|
|
22
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
|
|
32
23
|
}; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33
24
|
// @ts-ignore
|
|
34
25
|
|
|
35
|
-
|
|
36
|
-
exports.caret = caret;
|
|
37
26
|
caret.props = ['direction'];
|
|
38
|
-
|
|
39
|
-
exports["default"] = _default;
|
|
27
|
+
export default caret;
|
package/CaretIcon/index.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.CaretIcon = void 0;
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
|
|
15
|
-
|
|
16
|
-
var CaretIcon = function CaretIcon(props) {
|
|
17
|
-
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from "../Icon";
|
|
4
|
+
export var CaretIcon = function CaretIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
18
6
|
icon: "caret"
|
|
19
7
|
}));
|
|
20
8
|
};
|
|
21
|
-
|
|
22
|
-
exports.CaretIcon = CaretIcon;
|
|
23
|
-
var _default = CaretIcon;
|
|
24
|
-
exports["default"] = _default;
|
|
9
|
+
export default CaretIcon;
|
package/CaretIcon/index.test.js
CHANGED
|
@@ -1,39 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import CaretIcon from "./";
|
|
2
4
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
|
|
7
|
-
var _enzyme = require("enzyme");
|
|
8
|
-
|
|
9
|
-
var _CaretIcon = _interopRequireDefault(require("@digigov/react-icons/CaretIcon"));
|
|
10
|
-
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_CaretIcon["default"], null);
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(CaretIcon, null);
|
|
12
6
|
|
|
13
7
|
it('renders the CaretIcon with no props, direction prop is left by default', function () {
|
|
14
|
-
expect(
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
15
9
|
});
|
|
16
10
|
|
|
17
|
-
var _ref2 = /*#__PURE__*/
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
18
12
|
direction: "right"
|
|
19
13
|
});
|
|
20
14
|
|
|
21
15
|
it('renders the CaretIcon with direction right prop', function () {
|
|
22
|
-
expect(
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
23
17
|
});
|
|
24
18
|
|
|
25
|
-
var _ref3 = /*#__PURE__*/
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
26
20
|
direction: "up"
|
|
27
21
|
});
|
|
28
22
|
|
|
29
23
|
it('renders the CaretIcon with direction up prop', function () {
|
|
30
|
-
expect(
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
31
25
|
});
|
|
32
26
|
|
|
33
|
-
var _ref4 = /*#__PURE__*/
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
34
28
|
direction: "down"
|
|
35
29
|
});
|
|
36
30
|
|
|
37
31
|
it('renders the CaretIcon with direction down prop', function () {
|
|
38
|
-
expect(
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
39
33
|
});
|