@digigov/react-icons 1.0.0-480e3d97 → 1.0.0-51c931ab
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/package.json +6 -0
- package/AccessibilityIcon/index.d.ts +1 -1
- package/AccessibilityIcon/index.js +6 -21
- package/{es/AccessibilityIcon/index.test.js → AccessibilityIcon/index.test/index.js} +1 -1
- package/AccessibilityIcon/index.test/package.json +6 -0
- package/AccessibilityIcon/package.json +6 -0
- package/ArrowIcon/config/index.js +27 -0
- package/ArrowIcon/config/package.json +6 -0
- package/ArrowIcon/config.d.ts +1 -1
- package/ArrowIcon/index.d.ts +1 -1
- package/ArrowIcon/index.js +6 -21
- package/{esm/ArrowIcon/index.test.js → ArrowIcon/index.test/index.js} +1 -1
- package/ArrowIcon/index.test/package.json +6 -0
- package/ArrowIcon/package.json +6 -0
- package/BurgerIcon/config/package.json +6 -0
- package/BurgerIcon/index.d.ts +1 -1
- package/BurgerIcon/index.js +6 -21
- package/{esm/BurgerIcon/index.test.js → BurgerIcon/index.test/index.js} +1 -1
- package/BurgerIcon/index.test/package.json +6 -0
- package/BurgerIcon/package.json +6 -0
- package/CaretIcon/config/package.json +6 -0
- package/CaretIcon/index.d.ts +1 -1
- package/CaretIcon/index.js +6 -21
- package/{esm/CaretIcon/index.test.js → CaretIcon/index.test/index.js} +1 -1
- package/CaretIcon/index.test/package.json +6 -0
- package/CaretIcon/package.json +6 -0
- package/CheckIcon/config/package.json +6 -0
- package/CheckIcon/index.d.ts +1 -1
- package/CheckIcon/index.js +6 -21
- package/{esm/CheckIcon/index.test.js → CheckIcon/index.test/index.js} +1 -1
- package/CheckIcon/index.test/package.json +6 -0
- package/CheckIcon/package.json +6 -0
- package/{es/ArrowIcon/config.js → ChevronIcon/config/index.js} +3 -3
- 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 +4 -4
- package/ChevronIcon/index.test/index.js +33 -0
- package/ChevronIcon/index.test/package.json +6 -0
- package/ChevronIcon/index.test.d.ts +1 -0
- package/ChevronIcon/package.json +6 -0
- package/CloseIcon/config/package.json +6 -0
- package/CloseIcon/index.d.ts +1 -1
- package/CloseIcon/index.js +6 -21
- package/{esm/CloseIcon/index.test.js → CloseIcon/index.test/index.js} +1 -1
- package/CloseIcon/index.test/package.json +6 -0
- package/CloseIcon/package.json +6 -0
- package/GlobeIcon/config/package.json +6 -0
- package/GlobeIcon/index.d.ts +1 -1
- package/GlobeIcon/index.js +6 -21
- package/{esm/GlobeIcon/index.test.js → GlobeIcon/index.test/index.js} +1 -1
- package/GlobeIcon/index.test/package.json +6 -0
- package/GlobeIcon/package.json +6 -0
- package/Icon/__snapshots__/index.test.tsx.snap +343 -0
- package/Icon/index.d.ts +25 -0
- package/Icon/index.js +34 -0
- package/Icon/index.test/index.js +82 -0
- package/Icon/index.test/package.json +6 -0
- package/Icon/index.test.d.ts +1 -0
- package/Icon/package.json +6 -0
- package/MoreVertIcon/config/package.json +6 -0
- package/MoreVertIcon/index.d.ts +1 -1
- package/MoreVertIcon/index.js +6 -21
- package/{es/MoreVertIcon/index.test.js → MoreVertIcon/index.test/index.js} +1 -1
- package/MoreVertIcon/index.test/package.json +6 -0
- package/MoreVertIcon/package.json +6 -0
- package/SearchIcon/config/package.json +6 -0
- package/SearchIcon/index.d.ts +1 -1
- package/SearchIcon/index.js +6 -21
- package/{esm/SearchIcon/index.test.js → SearchIcon/index.test/index.js} +1 -1
- package/SearchIcon/index.test/package.json +6 -0
- package/SearchIcon/package.json +6 -0
- package/UncheckIcon/config/package.json +6 -0
- package/UncheckIcon/index.d.ts +1 -1
- package/UncheckIcon/index.js +6 -21
- package/{esm/UncheckIcon/index.test.js → UncheckIcon/index.test/index.js} +1 -1
- package/UncheckIcon/index.test/package.json +6 -0
- package/UncheckIcon/package.json +6 -0
- package/cjs/AccessibilityIcon/index.js +24 -0
- package/{AccessibilityIcon/index.test.js → cjs/AccessibilityIcon/index.test/index.js} +10 -10
- package/cjs/ArrowIcon/config/index.js +39 -0
- package/cjs/ArrowIcon/index.js +24 -0
- package/{ArrowIcon/index.test.js → cjs/ArrowIcon/index.test/index.js} +5 -5
- package/cjs/BurgerIcon/index.js +24 -0
- package/{BurgerIcon/index.test.js → cjs/BurgerIcon/index.test/index.js} +7 -7
- package/cjs/CaretIcon/index.js +24 -0
- package/{CaretIcon/index.test.js → cjs/CaretIcon/index.test/index.js} +5 -5
- package/cjs/CheckIcon/index.js +24 -0
- package/{CheckIcon/index.test.js → cjs/CheckIcon/index.test/index.js} +9 -9
- package/{ArrowIcon/config.js → cjs/ChevronIcon/config/index.js} +5 -5
- package/cjs/ChevronIcon/index.js +24 -0
- package/cjs/ChevronIcon/index.test/index.js +39 -0
- package/cjs/CloseIcon/index.js +24 -0
- package/{CloseIcon/index.test.js → cjs/CloseIcon/index.test/index.js} +2 -2
- package/cjs/GlobeIcon/index.js +24 -0
- package/{GlobeIcon/index.test.js → cjs/GlobeIcon/index.test/index.js} +5 -5
- package/cjs/Icon/__snapshots__/index.test.tsx.snap +343 -0
- package/cjs/Icon/index.js +58 -0
- package/cjs/Icon/index.test/index.js +88 -0
- package/cjs/MoreVertIcon/index.js +24 -0
- package/{MoreVertIcon/index.test.js → cjs/MoreVertIcon/index.test/index.js} +10 -10
- package/cjs/SearchIcon/index.js +24 -0
- package/{SearchIcon/index.test.js → cjs/SearchIcon/index.test/index.js} +2 -2
- package/cjs/UncheckIcon/index.js +24 -0
- package/{UncheckIcon/index.test.js → cjs/UncheckIcon/index.test/index.js} +10 -10
- package/{icons.js → cjs/icons/index.js} +23 -10
- package/cjs/index.js +148 -0
- package/{registry.js → cjs/registry/index.js} +18 -12
- package/icons/index.js +12 -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 -5
- package/{es/registry.js → registry/index.js} +16 -12
- package/registry/package.json +6 -0
- package/registry.d.ts +2 -0
- package/src/AccessibilityIcon/index.tsx +1 -1
- package/src/ArrowIcon/config.tsx +6 -6
- package/src/ArrowIcon/index.tsx +1 -1
- package/src/BurgerIcon/index.tsx +1 -1
- package/src/CaretIcon/index.tsx +1 -1
- package/src/CheckIcon/index.tsx +1 -1
- package/src/ChevronIcon/config.tsx +37 -0
- package/src/ChevronIcon/index.test.tsx +20 -0
- package/src/ChevronIcon/index.tsx +8 -0
- package/src/CloseIcon/index.tsx +1 -1
- package/src/GlobeIcon/index.tsx +1 -1
- package/src/Icon/__snapshots__/index.test.tsx.snap +343 -0
- package/src/Icon/index.test.tsx +36 -0
- package/src/Icon/index.tsx +63 -0
- package/src/MoreVertIcon/index.tsx +1 -1
- package/src/SearchIcon/index.tsx +1 -1
- package/src/UncheckIcon/index.tsx +1 -1
- package/src/icons.ts +3 -0
- package/src/index.ts +1 -0
- package/src/registry.js +4 -0
- 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/index.js +0 -9
- package/es/BurgerIcon/index.test.js +0 -50
- 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/index.js +0 -9
- package/es/CloseIcon/index.test.js +0 -9
- package/es/GlobeIcon/index.js +0 -9
- package/es/GlobeIcon/index.test.js +0 -33
- package/es/MoreVertIcon/index.js +0 -9
- package/es/SearchIcon/index.js +0 -9
- package/es/SearchIcon/index.test.js +0 -9
- 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/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/config.js +0 -32
- package/esm/BurgerIcon/index.js +0 -9
- 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/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/config.js +0 -11
- package/esm/CloseIcon/index.js +0 -9
- package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
- package/esm/GlobeIcon/config.js +0 -11
- package/esm/GlobeIcon/index.js +0 -9
- 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/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
- package/esm/UncheckIcon/config.js +0 -11
- package/esm/UncheckIcon/index.js +0 -9
- package/esm/icons.js +0 -11
- package/esm/index.js +0 -10
- package/esm/registry.js +0 -42
- /package/{es/AccessibilityIcon/config.js → AccessibilityIcon/config/index.js} +0 -0
- /package/{es/BurgerIcon/config.js → BurgerIcon/config/index.js} +0 -0
- /package/{es/CaretIcon/config.js → CaretIcon/config/index.js} +0 -0
- /package/{es/CheckIcon/config.js → CheckIcon/config/index.js} +0 -0
- /package/{es/CloseIcon/config.js → CloseIcon/config/index.js} +0 -0
- /package/{es/GlobeIcon/config.js → GlobeIcon/config/index.js} +0 -0
- /package/{es/MoreVertIcon/config.js → MoreVertIcon/config/index.js} +0 -0
- /package/{es/SearchIcon/config.js → SearchIcon/config/index.js} +0 -0
- /package/{es/UncheckIcon/config.js → UncheckIcon/config/index.js} +0 -0
- /package/{es → cjs}/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{AccessibilityIcon/config.js → cjs/AccessibilityIcon/config/index.js} +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/{BurgerIcon/config.js → cjs/BurgerIcon/config/index.js} +0 -0
- /package/{es → cjs}/CaretIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{CaretIcon/config.js → cjs/CaretIcon/config/index.js} +0 -0
- /package/{es → cjs}/CheckIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{CheckIcon/config.js → cjs/CheckIcon/config/index.js} +0 -0
- /package/{es → cjs}/CloseIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{CloseIcon/config.js → cjs/CloseIcon/config/index.js} +0 -0
- /package/{es → cjs}/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{GlobeIcon/config.js → cjs/GlobeIcon/config/index.js} +0 -0
- /package/{es → cjs}/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{MoreVertIcon/config.js → cjs/MoreVertIcon/config/index.js} +0 -0
- /package/{es → cjs}/SearchIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{SearchIcon/config.js → cjs/SearchIcon/config/index.js} +0 -0
- /package/{es → cjs}/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{UncheckIcon/config.js → cjs/UncheckIcon/config/index.js} +0 -0
|
@@ -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-core/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;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
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"
|
|
5
|
+
});
|
|
6
|
+
|
|
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"
|
|
9
|
+
});
|
|
10
|
+
|
|
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"
|
|
13
|
+
});
|
|
14
|
+
|
|
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"
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export var arrow = function arrow(_ref) {
|
|
20
|
+
var _ref$direction = _ref.direction,
|
|
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);
|
|
23
|
+
}; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
|
|
26
|
+
arrow.props = ['direction'];
|
|
27
|
+
export default arrow;
|
package/ArrowIcon/config.d.ts
CHANGED
package/ArrowIcon/index.d.ts
CHANGED
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-core/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/BurgerIcon/index.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-core/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/CaretIcon/index.d.ts
CHANGED
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-core/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/CheckIcon/index.d.ts
CHANGED
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-core/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 "../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;
|
|
@@ -16,12 +16,12 @@ var _ref5 = /*#__PURE__*/React.createElement("path", {
|
|
|
16
16
|
d: "M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z"
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
export var
|
|
19
|
+
export var chevron = function chevron(_ref) {
|
|
20
20
|
var _ref$direction = _ref.direction,
|
|
21
21
|
direction = _ref$direction === void 0 ? 'right' : _ref$direction;
|
|
22
22
|
return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
|
|
23
23
|
}; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
export default
|
|
26
|
+
chevron.props = ['direction'];
|
|
27
|
+
export default chevron;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ChevronType {
|
|
3
|
+
/**
|
|
4
|
+
* direction sets the direction of the chevron icon.
|
|
5
|
+
* @value 'left'
|
|
6
|
+
* @value 'right'
|
|
7
|
+
* @value 'up'
|
|
8
|
+
* @value 'down'
|
|
9
|
+
* @default 'right'
|
|
10
|
+
*/
|
|
11
|
+
direction?: 'left' | 'right' | 'up' | 'down';
|
|
12
|
+
}
|
|
13
|
+
export declare const chevron: React.FC<ChevronType>;
|
|
14
|
+
export default chevron;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Icon from
|
|
4
|
-
export var
|
|
3
|
+
import Icon from "../Icon";
|
|
4
|
+
export var ChevronIcon = function ChevronIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "
|
|
6
|
+
icon: "chevron"
|
|
7
7
|
}));
|
|
8
8
|
};
|
|
9
|
-
export default
|
|
9
|
+
export default ChevronIcon;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
import ChevronIcon from "./";
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(ChevronIcon, null);
|
|
6
|
+
|
|
7
|
+
it('renders the ChevronIcon with no props, direction prop is right by default', function () {
|
|
8
|
+
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
var _ref2 = /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
12
|
+
direction: "left"
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it('renders the ChevronIcon with direction left prop', function () {
|
|
16
|
+
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _ref3 = /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
20
|
+
direction: "up"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
it('renders the ChevronIcon with direction up prop', function () {
|
|
24
|
+
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
var _ref4 = /*#__PURE__*/React.createElement(ChevronIcon, {
|
|
28
|
+
direction: "down"
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('renders the ChevronIcon with direction down prop', function () {
|
|
32
|
+
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/CloseIcon/index.d.ts
CHANGED
package/CloseIcon/index.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.CloseIcon = 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-core/Icon"));
|
|
15
|
-
|
|
16
|
-
var CloseIcon = function CloseIcon(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 CloseIcon = function CloseIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
18
6
|
icon: "close"
|
|
19
7
|
}));
|
|
20
8
|
};
|
|
21
|
-
|
|
22
|
-
exports.CloseIcon = CloseIcon;
|
|
23
|
-
var _default = CloseIcon;
|
|
24
|
-
exports["default"] = _default;
|
|
9
|
+
export default CloseIcon;
|
package/GlobeIcon/index.d.ts
CHANGED
package/GlobeIcon/index.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.GlobeIcon = 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-core/Icon"));
|
|
15
|
-
|
|
16
|
-
var GlobeIcon = function GlobeIcon(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 GlobeIcon = function GlobeIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
18
6
|
icon: "globe"
|
|
19
7
|
}));
|
|
20
8
|
};
|
|
21
|
-
|
|
22
|
-
exports.GlobeIcon = GlobeIcon;
|
|
23
|
-
var _default = GlobeIcon;
|
|
24
|
-
exports["default"] = _default;
|
|
9
|
+
export default GlobeIcon;
|