@digigov/react-icons 1.0.0-rc.3 → 1.0.0-rc.5
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/{es/AccessibilityIcon/config.js → AccessibilityIcon/config/index.js} +0 -4
- package/AccessibilityIcon/config/package.json +6 -0
- package/AccessibilityIcon/index.js +6 -21
- package/{es/AccessibilityIcon/index.test.js → AccessibilityIcon/index.test/index.js} +0 -18
- package/AccessibilityIcon/index.test/package.json +6 -0
- package/AccessibilityIcon/package.json +6 -0
- package/ArrowIcon/config/index.js +22 -0
- package/ArrowIcon/config/package.json +6 -0
- package/ArrowIcon/config.d.ts +6 -6
- package/ArrowIcon/index.js +6 -21
- package/{esm/ArrowIcon/index.test.js → ArrowIcon/index.test/index.js} +0 -8
- package/ArrowIcon/index.test/package.json +6 -0
- package/ArrowIcon/package.json +6 -0
- package/{esm/BurgerIcon/config.js → BurgerIcon/config/index.js} +3 -7
- package/BurgerIcon/config/package.json +6 -0
- package/BurgerIcon/config.d.ts +1 -1
- package/BurgerIcon/index.js +6 -21
- package/{esm/BurgerIcon/index.test.js → BurgerIcon/index.test/index.js} +0 -12
- package/BurgerIcon/index.test/package.json +6 -0
- package/BurgerIcon/package.json +6 -0
- package/{esm/CaretIcon/config.js → CaretIcon/config/index.js} +3 -8
- package/CaretIcon/config/package.json +6 -0
- package/CaretIcon/config.d.ts +6 -6
- package/CaretIcon/index.js +6 -21
- package/{esm/CaretIcon/index.test.js → CaretIcon/index.test/index.js} +0 -8
- package/CaretIcon/index.test/package.json +6 -0
- package/CaretIcon/package.json +6 -0
- package/{es/CheckIcon/config.js → CheckIcon/config/index.js} +0 -2
- package/CheckIcon/config/package.json +6 -0
- package/CheckIcon/index.js +6 -21
- package/{esm/CheckIcon/index.test.js → CheckIcon/index.test/index.js} +0 -16
- package/CheckIcon/index.test/package.json +6 -0
- package/CheckIcon/package.json +6 -0
- package/{es/ArrowIcon/config.js → ChevronIcon/config/index.js} +6 -11
- package/ChevronIcon/config/package.json +6 -0
- package/ChevronIcon/config.d.ts +14 -0
- package/ChevronIcon/index.d.ts +4 -0
- package/{es/CheckIcon → ChevronIcon}/index.js +3 -3
- package/ChevronIcon/index.test/index.js +25 -0
- package/ChevronIcon/index.test/package.json +6 -0
- package/ChevronIcon/index.test.d.ts +1 -0
- package/ChevronIcon/package.json +6 -0
- package/{esm/CloseIcon/config.js → CloseIcon/config/index.js} +0 -2
- package/CloseIcon/config/package.json +6 -0
- package/CloseIcon/index.js +6 -21
- package/{es/CloseIcon/index.test.js → CloseIcon/index.test/index.js} +0 -2
- package/CloseIcon/index.test/package.json +6 -0
- package/CloseIcon/package.json +6 -0
- package/{esm/GlobeIcon/config.js → GlobeIcon/config/index.js} +0 -2
- package/GlobeIcon/config/package.json +6 -0
- package/GlobeIcon/index.js +6 -21
- package/{esm/GlobeIcon/index.test.js → GlobeIcon/index.test/index.js} +0 -8
- package/GlobeIcon/index.test/package.json +6 -0
- package/GlobeIcon/package.json +6 -0
- package/Icon/index.d.ts +4 -4
- package/Icon/index.js +18 -44
- package/{es/Icon/index.test.js → Icon/index.test/index.js} +0 -20
- package/Icon/index.test/package.json +6 -0
- package/Icon/package.json +6 -0
- package/{es/MoreVertIcon/config.js → MoreVertIcon/config/index.js} +0 -4
- package/MoreVertIcon/config/package.json +6 -0
- package/MoreVertIcon/index.js +6 -21
- package/{es/MoreVertIcon/index.test.js → MoreVertIcon/index.test/index.js} +0 -18
- package/MoreVertIcon/index.test/package.json +6 -0
- package/MoreVertIcon/package.json +6 -0
- package/{esm/SearchIcon/config.js → SearchIcon/config/index.js} +0 -2
- package/SearchIcon/config/package.json +6 -0
- package/SearchIcon/index.js +6 -21
- package/{esm/SearchIcon/index.test.js → SearchIcon/index.test/index.js} +0 -2
- package/SearchIcon/index.test/package.json +6 -0
- package/SearchIcon/package.json +6 -0
- package/{esm/UncheckIcon/config.js → UncheckIcon/config/index.js} +0 -2
- package/UncheckIcon/config/package.json +6 -0
- package/UncheckIcon/index.js +6 -21
- package/{esm/UncheckIcon/index.test.js → UncheckIcon/index.test/index.js} +0 -18
- package/UncheckIcon/index.test/package.json +6 -0
- package/UncheckIcon/package.json +6 -0
- package/{AccessibilityIcon/config.js → cjs/AccessibilityIcon/config/index.js} +1 -9
- package/cjs/AccessibilityIcon/index.js +16 -0
- package/{AccessibilityIcon/index.test.js → cjs/AccessibilityIcon/index.test/index.js} +0 -21
- package/cjs/ArrowIcon/config/index.js +29 -0
- package/cjs/ArrowIcon/index.js +16 -0
- package/{ArrowIcon/index.test.js → cjs/ArrowIcon/index.test/index.js} +0 -11
- package/{BurgerIcon/config.js → cjs/BurgerIcon/config/index.js} +5 -15
- package/cjs/BurgerIcon/index.js +16 -0
- package/{BurgerIcon/index.test.js → cjs/BurgerIcon/index.test/index.js} +0 -15
- package/{CaretIcon/config.js → cjs/CaretIcon/config/index.js} +5 -15
- package/cjs/CaretIcon/index.js +16 -0
- package/{CaretIcon/index.test.js → cjs/CaretIcon/index.test/index.js} +0 -11
- package/{CheckIcon/config.js → cjs/CheckIcon/config/index.js} +1 -7
- package/cjs/CheckIcon/index.js +16 -0
- package/{CheckIcon/index.test.js → cjs/CheckIcon/index.test/index.js} +0 -19
- package/{ArrowIcon/config.js → cjs/ChevronIcon/config/index.js} +7 -17
- package/cjs/ChevronIcon/index.js +16 -0
- package/cjs/ChevronIcon/index.test/index.js +28 -0
- package/{CloseIcon/config.js → cjs/CloseIcon/config/index.js} +1 -7
- package/cjs/CloseIcon/index.js +16 -0
- package/{CloseIcon/index.test.js → cjs/CloseIcon/index.test/index.js} +0 -5
- package/{GlobeIcon/config.js → cjs/GlobeIcon/config/index.js} +1 -7
- package/cjs/GlobeIcon/index.js +16 -0
- package/{GlobeIcon/index.test.js → cjs/GlobeIcon/index.test/index.js} +0 -11
- package/cjs/Icon/index.js +42 -0
- package/{Icon/index.test.js → cjs/Icon/index.test/index.js} +0 -23
- package/{MoreVertIcon/config.js → cjs/MoreVertIcon/config/index.js} +1 -9
- package/cjs/MoreVertIcon/index.js +16 -0
- package/{MoreVertIcon/index.test.js → cjs/MoreVertIcon/index.test/index.js} +0 -21
- package/{SearchIcon/config.js → cjs/SearchIcon/config/index.js} +1 -7
- package/cjs/SearchIcon/index.js +16 -0
- package/{SearchIcon/index.test.js → cjs/SearchIcon/index.test/index.js} +0 -5
- package/{UncheckIcon/config.js → cjs/UncheckIcon/config/index.js} +1 -7
- package/cjs/UncheckIcon/index.js +16 -0
- package/{UncheckIcon/index.test.js → cjs/UncheckIcon/index.test/index.js} +0 -21
- package/{icons.js → cjs/icons/index.js} +17 -26
- package/cjs/index.js +126 -0
- package/{registry.js → cjs/registry/index.js} +6 -23
- package/{es/icons.js → icons/index.js} +1 -0
- package/icons/package.json +6 -0
- package/icons.d.ts +3 -0
- package/index.d.ts +1 -0
- package/index.js +11 -135
- package/package.json +4 -4
- package/{es/registry.js → registry/index.js} +2 -2
- package/registry/package.json +6 -0
- package/registry.d.ts +2 -1
- package/src/ArrowIcon/config.tsx +12 -12
- package/src/CaretIcon/config.tsx +7 -7
- 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 +22 -12
- package/es/AccessibilityIcon/index.js +0 -9
- package/es/ArrowIcon/index.js +0 -9
- 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/index.test.js +0 -67
- package/es/CloseIcon/config.js +0 -11
- package/es/CloseIcon/index.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/MoreVertIcon/index.js +0 -9
- 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/index.js +0 -10
- 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/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
- package/esm/BurgerIcon/index.js +0 -9
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/esm/CaretIcon/index.js +0 -9
- 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/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
- 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/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/index.js +0 -9
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
- package/esm/UncheckIcon/index.js +0 -9
- 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,17 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
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
|
-
|
|
5
3
|
var _ref2 = /*#__PURE__*/React.createElement("circle", {
|
|
6
4
|
cx: "12",
|
|
7
5
|
cy: "3",
|
|
8
6
|
r: "3"
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
var _ref3 = /*#__PURE__*/React.createElement("path", {
|
|
12
9
|
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"
|
|
13
10
|
});
|
|
14
|
-
|
|
15
11
|
export function accessibility() {
|
|
16
12
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2, _ref3);
|
|
17
13
|
}
|
|
@@ -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 '@digigov/react-icons/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,75 +1,57 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
3
|
import AccessibilityIcon from '@digigov/react-icons/AccessibilityIcon';
|
|
4
|
-
|
|
5
4
|
var _ref = /*#__PURE__*/React.createElement(AccessibilityIcon, null);
|
|
6
|
-
|
|
7
5
|
it('renders the AccessibilityIcon with no props', function () {
|
|
8
6
|
expect(mount(_ref)).toMatchSnapshot();
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
var _ref2 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
12
9
|
size: "sm"
|
|
13
10
|
});
|
|
14
|
-
|
|
15
11
|
it('renders the AccessibilityIcon with prop size=s', function () {
|
|
16
12
|
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
13
|
});
|
|
18
|
-
|
|
19
14
|
var _ref3 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
20
15
|
size: "lg"
|
|
21
16
|
});
|
|
22
|
-
|
|
23
17
|
it('renders the AccessibilityIcon with prop size=l', function () {
|
|
24
18
|
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
19
|
});
|
|
26
|
-
|
|
27
20
|
var _ref4 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
28
21
|
variant: "dark"
|
|
29
22
|
});
|
|
30
|
-
|
|
31
23
|
it('renders the AccessibilityIcon with prop variant=dark', function () {
|
|
32
24
|
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
25
|
});
|
|
34
|
-
|
|
35
26
|
var _ref5 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
36
27
|
variant: "primary"
|
|
37
28
|
});
|
|
38
|
-
|
|
39
29
|
it('renders the AccessibilityIcon with prop variant=primary', function () {
|
|
40
30
|
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
31
|
});
|
|
42
|
-
|
|
43
32
|
var _ref6 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
44
33
|
variant: "success"
|
|
45
34
|
});
|
|
46
|
-
|
|
47
35
|
it('renders the AccessibilityIcon with prop variant=success', function () {
|
|
48
36
|
expect(mount(_ref6)).toMatchSnapshot();
|
|
49
37
|
});
|
|
50
|
-
|
|
51
38
|
var _ref7 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
52
39
|
variant: "error"
|
|
53
40
|
});
|
|
54
|
-
|
|
55
41
|
it('renders the AccessibilityIcon with prop variant=error', function () {
|
|
56
42
|
expect(mount(_ref7)).toMatchSnapshot();
|
|
57
43
|
});
|
|
58
|
-
|
|
59
44
|
var _ref8 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
60
45
|
variant: "warning",
|
|
61
46
|
size: "sm"
|
|
62
47
|
});
|
|
63
|
-
|
|
64
48
|
it('renders the AccessibilityIcon with prop variant=warning and size=s', function () {
|
|
65
49
|
expect(mount(_ref8)).toMatchSnapshot();
|
|
66
50
|
});
|
|
67
|
-
|
|
68
51
|
var _ref9 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
|
|
69
52
|
variant: "warning",
|
|
70
53
|
size: "xl"
|
|
71
54
|
});
|
|
72
|
-
|
|
73
55
|
it('renders the AccessibilityIcon with prop variant=error and size= xl', function () {
|
|
74
56
|
expect(mount(_ref9)).toMatchSnapshot();
|
|
75
57
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
var _ref2 = /*#__PURE__*/React.createElement("polygon", {
|
|
3
|
+
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"
|
|
4
|
+
});
|
|
5
|
+
var _ref3 = /*#__PURE__*/React.createElement("polygon", {
|
|
6
|
+
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"
|
|
7
|
+
});
|
|
8
|
+
var _ref4 = /*#__PURE__*/React.createElement("polygon", {
|
|
9
|
+
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"
|
|
10
|
+
});
|
|
11
|
+
var _ref5 = /*#__PURE__*/React.createElement("polygon", {
|
|
12
|
+
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"
|
|
13
|
+
});
|
|
14
|
+
export var arrow = function arrow(_ref) {
|
|
15
|
+
var _ref$direction = _ref.direction,
|
|
16
|
+
direction = _ref$direction === void 0 ? 'up' : _ref$direction;
|
|
17
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
|
|
18
|
+
};
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
arrow.props = ['direction'];
|
|
22
|
+
export default arrow;
|
package/ArrowIcon/config.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface ArrowType {
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
* @value 'left'
|
|
5
|
+
* @value 'right'
|
|
6
|
+
* @value 'up'
|
|
7
|
+
* @value 'down'
|
|
8
|
+
* @default 'up'
|
|
9
|
+
*/
|
|
10
10
|
direction?: 'left' | 'right' | 'up' | 'down';
|
|
11
11
|
}
|
|
12
12
|
export declare const arrow: React.FC<ArrowType>;
|
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 '@digigov/react-icons/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;
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
3
|
import ArrowIcon from '@digigov/react-icons/ArrowIcon';
|
|
4
|
-
|
|
5
4
|
var _ref = /*#__PURE__*/React.createElement(ArrowIcon, null);
|
|
6
|
-
|
|
7
5
|
it('renders the ArrowIcon with no props, direction prop is right by default', function () {
|
|
8
6
|
expect(mount(_ref)).toMatchSnapshot();
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
var _ref2 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
12
9
|
direction: "left"
|
|
13
10
|
});
|
|
14
|
-
|
|
15
11
|
it('renders the ArrowIcon with direction left prop', function () {
|
|
16
12
|
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
13
|
});
|
|
18
|
-
|
|
19
14
|
var _ref3 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
20
15
|
direction: "up"
|
|
21
16
|
});
|
|
22
|
-
|
|
23
17
|
it('renders the ArrowIcon with direction up prop', function () {
|
|
24
18
|
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
19
|
});
|
|
26
|
-
|
|
27
20
|
var _ref4 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
28
21
|
direction: "down"
|
|
29
22
|
});
|
|
30
|
-
|
|
31
23
|
it('renders the ArrowIcon with direction down prop', function () {
|
|
32
24
|
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
25
|
});
|
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
|
|
4
3
|
var _ref2 = /*#__PURE__*/React.createElement("rect", {
|
|
5
4
|
id: "govgr-svg-icon--burger__line-1",
|
|
6
5
|
width: "20",
|
|
7
6
|
height: "3.3"
|
|
8
7
|
});
|
|
9
|
-
|
|
10
8
|
var _ref3 = /*#__PURE__*/React.createElement("rect", {
|
|
11
9
|
id: "govgr-svg-icon--burger__line-2",
|
|
12
10
|
width: "20",
|
|
13
11
|
height: "3.3"
|
|
14
12
|
});
|
|
15
|
-
|
|
16
13
|
var _ref4 = /*#__PURE__*/React.createElement("rect", {
|
|
17
14
|
id: "govgr-svg-icon--burger__line-3",
|
|
18
15
|
width: "20",
|
|
19
16
|
height: "3.3"
|
|
20
17
|
});
|
|
21
|
-
|
|
22
18
|
export var burger = function burger(_ref) {
|
|
23
19
|
var _ref$active = _ref.active,
|
|
24
|
-
|
|
20
|
+
active = _ref$active === void 0 ? false : _ref$active;
|
|
25
21
|
return /*#__PURE__*/React.createElement("g", {
|
|
26
22
|
className: clsx(active && "govgr-svg-icon--burger--active")
|
|
27
23
|
}, _ref2, _ref3, _ref4);
|
|
28
|
-
};
|
|
24
|
+
};
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
29
26
|
// @ts-ignore
|
|
30
|
-
|
|
31
27
|
burger.props = ['active'];
|
|
32
28
|
export default burger;
|
package/BurgerIcon/config.d.ts
CHANGED
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 '@digigov/react-icons/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;
|
|
@@ -1,50 +1,38 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
3
|
import BurgerIcon from '@digigov/react-icons/BurgerIcon';
|
|
4
|
-
|
|
5
4
|
var _ref = /*#__PURE__*/React.createElement(BurgerIcon, null);
|
|
6
|
-
|
|
7
5
|
it('renders the BurgerIcon with no props', function () {
|
|
8
6
|
expect(mount(_ref)).toMatchSnapshot();
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
var _ref2 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
12
9
|
active: true
|
|
13
10
|
});
|
|
14
|
-
|
|
15
11
|
it('renders the BurgerIcon with prop active=true', function () {
|
|
16
12
|
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
13
|
});
|
|
18
|
-
|
|
19
14
|
var _ref3 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
20
15
|
variant: "dark"
|
|
21
16
|
});
|
|
22
|
-
|
|
23
17
|
it('renders the BurgerIcon with prop variant=dark', function () {
|
|
24
18
|
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
19
|
});
|
|
26
|
-
|
|
27
20
|
var _ref4 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
28
21
|
variant: "light"
|
|
29
22
|
});
|
|
30
|
-
|
|
31
23
|
it('renders the BurgerIcon prop variant= "light"', function () {
|
|
32
24
|
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
25
|
});
|
|
34
|
-
|
|
35
26
|
var _ref5 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
36
27
|
variant: "error"
|
|
37
28
|
});
|
|
38
|
-
|
|
39
29
|
it('renders the BurgerIcon prop variant= "error"', function () {
|
|
40
30
|
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
31
|
});
|
|
42
|
-
|
|
43
32
|
var _ref6 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
44
33
|
active: true,
|
|
45
34
|
variant: "light"
|
|
46
35
|
});
|
|
47
|
-
|
|
48
36
|
it('renders the BurgerIcon props active variant= "light"', function () {
|
|
49
37
|
expect(mount(_ref6)).toMatchSnapshot();
|
|
50
38
|
});
|
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
var _ref2 = /*#__PURE__*/React.createElement("path", {
|
|
4
3
|
d: "M18,22V2L6,12L18,22z"
|
|
5
4
|
});
|
|
6
|
-
|
|
7
5
|
var _ref3 = /*#__PURE__*/React.createElement("path", {
|
|
8
6
|
d: "M6,2v20l12-10L6,2z"
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
var _ref4 = /*#__PURE__*/React.createElement("path", {
|
|
12
9
|
d: "M2,18h20L12,6L2,18z"
|
|
13
10
|
});
|
|
14
|
-
|
|
15
11
|
var _ref5 = /*#__PURE__*/React.createElement("path", {
|
|
16
12
|
d: "M22,6H2l10,12L22,6z"
|
|
17
13
|
});
|
|
18
|
-
|
|
19
14
|
export var caret = function caret(_ref) {
|
|
20
15
|
var _ref$direction = _ref.direction,
|
|
21
|
-
|
|
16
|
+
direction = _ref$direction === void 0 ? 'left' : _ref$direction;
|
|
22
17
|
return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
|
|
23
|
-
};
|
|
18
|
+
};
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
24
20
|
// @ts-ignore
|
|
25
|
-
|
|
26
21
|
caret.props = ['direction'];
|
|
27
22
|
export default caret;
|
package/CaretIcon/config.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface CaretType {
|
|
3
3
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
* @value 'left'
|
|
5
|
+
* @value 'right'
|
|
6
|
+
* @value 'up'
|
|
7
|
+
* @value 'down'
|
|
8
|
+
* @default 'left'
|
|
9
|
+
*/
|
|
10
10
|
direction?: 'left' | 'right' | 'up' | 'down';
|
|
11
11
|
}
|
|
12
12
|
export declare const caret: React.FC<CaretType>;
|
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 '@digigov/react-icons/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;
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { mount } from 'enzyme';
|
|
3
3
|
import CaretIcon from '@digigov/react-icons/CaretIcon';
|
|
4
|
-
|
|
5
4
|
var _ref = /*#__PURE__*/React.createElement(CaretIcon, null);
|
|
6
|
-
|
|
7
5
|
it('renders the CaretIcon with no props, direction prop is left by default', function () {
|
|
8
6
|
expect(mount(_ref)).toMatchSnapshot();
|
|
9
7
|
});
|
|
10
|
-
|
|
11
8
|
var _ref2 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
12
9
|
direction: "right"
|
|
13
10
|
});
|
|
14
|
-
|
|
15
11
|
it('renders the CaretIcon with direction right prop', function () {
|
|
16
12
|
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
13
|
});
|
|
18
|
-
|
|
19
14
|
var _ref3 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
20
15
|
direction: "up"
|
|
21
16
|
});
|
|
22
|
-
|
|
23
17
|
it('renders the CaretIcon with direction up prop', function () {
|
|
24
18
|
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
19
|
});
|
|
26
|
-
|
|
27
20
|
var _ref4 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
28
21
|
direction: "down"
|
|
29
22
|
});
|
|
30
|
-
|
|
31
23
|
it('renders the CaretIcon with direction down prop', function () {
|
|
32
24
|
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
25
|
});
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
var _ref = /*#__PURE__*/React.createElement("polygon", {
|
|
4
3
|
points: "9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
|
|
5
4
|
});
|
|
6
|
-
|
|
7
5
|
export function check() {
|
|
8
6
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
|
|
9
7
|
}
|
package/CheckIcon/index.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.CheckIcon = 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 CheckIcon = function CheckIcon(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 '@digigov/react-icons/Icon';
|
|
4
|
+
export var CheckIcon = function CheckIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
18
6
|
icon: "check"
|
|
19
7
|
}));
|
|
20
8
|
};
|
|
21
|
-
|
|
22
|
-
exports.CheckIcon = CheckIcon;
|
|
23
|
-
var _default = CheckIcon;
|
|
24
|
-
exports["default"] = _default;
|
|
9
|
+
export default CheckIcon;
|