@digigov/react-icons 1.0.0-8bbf3ef2 → 1.0.0-a131264d
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/index.js +1 -1
- package/{esm/AccessibilityIcon/index.js → AccessibilityIcon/index.mjs} +1 -1
- package/AccessibilityIcon/index.test.js +10 -10
- package/{esm/AccessibilityIcon/index.test.js → AccessibilityIcon/index.test.mjs} +1 -1
- package/ArrowIcon/config.d.ts +1 -1
- package/ArrowIcon/config.js +9 -9
- package/ArrowIcon/config.mjs +27 -0
- package/ArrowIcon/index.js +1 -1
- package/{esm/ArrowIcon/index.js → ArrowIcon/index.mjs} +1 -1
- package/ArrowIcon/index.test.js +5 -5
- package/{esm/ArrowIcon/index.test.js → ArrowIcon/index.test.mjs} +1 -1
- package/BurgerIcon/index.js +1 -1
- package/{esm/BurgerIcon/index.js → BurgerIcon/index.mjs} +1 -1
- package/BurgerIcon/index.test.js +7 -7
- package/{esm/BurgerIcon/index.test.js → BurgerIcon/index.test.mjs} +1 -1
- package/CaretIcon/index.js +1 -1
- package/{esm/CaretIcon/index.js → CaretIcon/index.mjs} +1 -1
- package/CaretIcon/index.test.js +5 -5
- package/{esm/CaretIcon/index.test.js → CaretIcon/index.test.mjs} +1 -1
- package/CheckIcon/index.js +1 -1
- package/{esm/CheckIcon/index.js → CheckIcon/index.mjs} +1 -1
- package/CheckIcon/index.test.js +9 -9
- package/{esm/CheckIcon/index.test.js → CheckIcon/index.test.mjs} +1 -1
- package/ChevronIcon/config.d.ts +14 -0
- package/ChevronIcon/config.js +39 -0
- package/ChevronIcon/config.mjs +27 -0
- package/ChevronIcon/index.d.ts +4 -0
- package/ChevronIcon/index.js +24 -0
- package/ChevronIcon/index.mjs +9 -0
- package/ChevronIcon/index.test.d.ts +1 -0
- package/ChevronIcon/index.test.js +39 -0
- package/ChevronIcon/index.test.mjs +33 -0
- package/CloseIcon/index.js +1 -1
- package/{esm/CloseIcon/index.js → CloseIcon/index.mjs} +1 -1
- package/CloseIcon/index.test.js +2 -2
- package/{esm/CloseIcon/index.test.js → CloseIcon/index.test.mjs} +1 -1
- package/GlobeIcon/index.js +1 -1
- package/{esm/GlobeIcon/index.js → GlobeIcon/index.mjs} +1 -1
- package/GlobeIcon/index.test.js +5 -5
- package/{esm/GlobeIcon/index.test.js → GlobeIcon/index.test.mjs} +1 -1
- package/Icon/index.d.ts +1 -1
- package/Icon/index.js +2 -2
- package/{esm/Icon/index.js → Icon/index.mjs} +2 -2
- package/Icon/index.test.js +11 -11
- package/{esm/Icon/index.test.js → Icon/index.test.mjs} +1 -1
- package/MoreVertIcon/index.js +1 -1
- package/{esm/MoreVertIcon/index.js → MoreVertIcon/index.mjs} +1 -1
- package/MoreVertIcon/index.test.js +10 -10
- package/{esm/MoreVertIcon/index.test.js → MoreVertIcon/index.test.mjs} +1 -1
- package/SearchIcon/index.js +1 -1
- package/{esm/SearchIcon/index.js → SearchIcon/index.mjs} +1 -1
- package/SearchIcon/index.test.js +2 -2
- package/{esm/SearchIcon/index.test.js → SearchIcon/index.test.mjs} +1 -1
- package/UncheckIcon/index.js +1 -1
- package/{esm/UncheckIcon/index.js → UncheckIcon/index.mjs} +1 -1
- package/UncheckIcon/index.test.js +10 -10
- package/{esm/UncheckIcon/index.test.js → UncheckIcon/index.test.mjs} +1 -1
- package/es/AccessibilityIcon/index.js +1 -1
- package/es/AccessibilityIcon/index.test.js +1 -1
- package/es/ArrowIcon/config.js +9 -9
- package/es/ArrowIcon/index.js +1 -1
- package/es/ArrowIcon/index.test.js +1 -1
- package/es/BurgerIcon/index.js +1 -1
- package/es/BurgerIcon/index.test.js +1 -1
- package/es/CaretIcon/index.js +1 -1
- package/es/CaretIcon/index.test.js +1 -1
- package/es/CheckIcon/index.js +1 -1
- package/es/CheckIcon/index.test.js +1 -1
- package/{esm/ArrowIcon → es/ChevronIcon}/config.js +3 -3
- package/es/ChevronIcon/index.js +9 -0
- package/es/ChevronIcon/index.test.js +33 -0
- package/es/CloseIcon/index.js +1 -1
- package/es/CloseIcon/index.test.js +1 -1
- package/es/GlobeIcon/index.js +1 -1
- package/es/GlobeIcon/index.test.js +1 -1
- package/es/Icon/index.js +2 -2
- package/es/Icon/index.test.js +1 -1
- package/es/MoreVertIcon/index.js +1 -1
- package/es/MoreVertIcon/index.test.js +1 -1
- package/es/SearchIcon/index.js +1 -1
- package/es/SearchIcon/index.test.js +1 -1
- package/es/UncheckIcon/index.js +1 -1
- package/es/UncheckIcon/index.test.js +1 -1
- package/es/icons.js +11 -10
- package/es/index.js +11 -10
- package/es/registry.js +15 -13
- package/icons.d.ts +3 -0
- package/icons.js +23 -10
- package/icons.mjs +12 -0
- package/index.d.ts +1 -0
- package/index.js +23 -10
- package/index.mjs +11 -0
- package/package.json +3 -3
- package/registry.d.ts +2 -1
- package/registry.js +16 -13
- package/{esm/registry.js → registry.mjs} +15 -13
- 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/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
- package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
- package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
- package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
- package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
- package/esm/Icon/__snapshots__/index.test.tsx.snap +0 -343
- package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
- package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
- package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
- package/esm/icons.js +0 -11
- package/esm/index.js +0 -10
- /package/{esm/AccessibilityIcon/config.js → AccessibilityIcon/config.mjs} +0 -0
- /package/{esm/BurgerIcon/config.js → BurgerIcon/config.mjs} +0 -0
- /package/{esm/CaretIcon/config.js → CaretIcon/config.mjs} +0 -0
- /package/{esm/CheckIcon/config.js → CheckIcon/config.mjs} +0 -0
- /package/{esm/CloseIcon/config.js → CloseIcon/config.mjs} +0 -0
- /package/{esm/GlobeIcon/config.js → GlobeIcon/config.mjs} +0 -0
- /package/{esm/MoreVertIcon/config.js → MoreVertIcon/config.mjs} +0 -0
- /package/{esm/SearchIcon/config.js → SearchIcon/config.mjs} +0 -0
- /package/{esm/UncheckIcon/config.js → UncheckIcon/config.mjs} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
|
|
7
|
+
var _enzyme = require("enzyme");
|
|
8
|
+
|
|
9
|
+
var _ = _interopRequireDefault(require("./"));
|
|
10
|
+
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
|
|
12
|
+
|
|
13
|
+
it('renders the ChevronIcon with no props, direction prop is right by default', function () {
|
|
14
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
18
|
+
direction: "left"
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('renders the ChevronIcon with direction left prop', function () {
|
|
22
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
26
|
+
direction: "up"
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it('renders the ChevronIcon with direction up prop', function () {
|
|
30
|
+
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
34
|
+
direction: "down"
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('renders the ChevronIcon with direction down prop', function () {
|
|
38
|
+
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
39
|
+
});
|
|
@@ -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
|
+
});
|
package/CloseIcon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("
|
|
14
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
15
15
|
|
|
16
16
|
var CloseIcon = function CloseIcon(props) {
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Icon from
|
|
3
|
+
import Icon from "../Icon";
|
|
4
4
|
export var CloseIcon = function CloseIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "close"
|
package/CloseIcon/index.test.js
CHANGED
|
@@ -6,9 +6,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _enzyme = require("enzyme");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ = _interopRequireDefault(require("./"));
|
|
10
10
|
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
|
|
12
12
|
|
|
13
13
|
it('renders the CloseIcon with no props', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
package/GlobeIcon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("
|
|
14
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
15
15
|
|
|
16
16
|
var GlobeIcon = function GlobeIcon(props) {
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Icon from
|
|
3
|
+
import Icon from "../Icon";
|
|
4
4
|
export var GlobeIcon = function GlobeIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "globe"
|
package/GlobeIcon/index.test.js
CHANGED
|
@@ -6,15 +6,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _enzyme = require("enzyme");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ = _interopRequireDefault(require("./"));
|
|
10
10
|
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
|
|
12
12
|
|
|
13
13
|
it('renders the GlobeIcon with no props', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
18
18
|
variant: "dark"
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ it('renders the GlobeIcon with prop variant=dark', function () {
|
|
|
22
22
|
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
26
26
|
variant: "light"
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ it('renders the GlobeIcon prop variant= "light"', function () {
|
|
|
30
30
|
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(
|
|
33
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
34
34
|
variant: "error"
|
|
35
35
|
});
|
|
36
36
|
|
package/Icon/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare type IconProps<N extends keyof IconTypes> = SvgIconProps & IconTy
|
|
|
10
10
|
ref?: React.Ref<SVGSVGElement>;
|
|
11
11
|
/**
|
|
12
12
|
* icon is optional, but strongly recommended.
|
|
13
|
-
* Default value is '
|
|
13
|
+
* Default value is 'chevron'.
|
|
14
14
|
* Use this prop to display the icon you want.
|
|
15
15
|
*/
|
|
16
16
|
icon?: N;
|
package/Icon/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
|
|
|
21
21
|
|
|
22
22
|
var _SvgIcon = _interopRequireDefault(require("@digigov/react-core/SvgIcon"));
|
|
23
23
|
|
|
24
|
-
var icons = _interopRequireWildcard(require("
|
|
24
|
+
var icons = _interopRequireWildcard(require("../icons"));
|
|
25
25
|
|
|
26
26
|
var _excluded = ["icon", "className"];
|
|
27
27
|
|
|
@@ -35,7 +35,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
35
35
|
*/
|
|
36
36
|
var Icon = /*#__PURE__*/_react["default"].forwardRef(function Icon(_ref, ref) {
|
|
37
37
|
var _ref$icon = _ref.icon,
|
|
38
|
-
icon = _ref$icon === void 0 ? '
|
|
38
|
+
icon = _ref$icon === void 0 ? 'chevron' : _ref$icon,
|
|
39
39
|
className = _ref.className,
|
|
40
40
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
41
41
|
var IconComponent = icons[icon]; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -5,7 +5,7 @@ var _excluded = ["icon", "className"];
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import SvgIcon from '@digigov/react-core/SvgIcon';
|
|
8
|
-
import * as icons from
|
|
8
|
+
import * as icons from "../icons";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Icon is used whenever we need a GOV.GR icon.
|
|
@@ -13,7 +13,7 @@ import * as icons from '@digigov/react-icons/icons';
|
|
|
13
13
|
*/
|
|
14
14
|
export var Icon = /*#__PURE__*/React.forwardRef(function Icon(_ref, ref) {
|
|
15
15
|
var _ref$icon = _ref.icon,
|
|
16
|
-
icon = _ref$icon === void 0 ? '
|
|
16
|
+
icon = _ref$icon === void 0 ? 'chevron' : _ref$icon,
|
|
17
17
|
className = _ref.className,
|
|
18
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
19
|
|
package/Icon/index.test.js
CHANGED
|
@@ -6,15 +6,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _enzyme = require("enzyme");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ = _interopRequireDefault(require("./"));
|
|
10
10
|
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
|
|
12
12
|
|
|
13
13
|
it('renders the Icon with no props', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
18
18
|
direction: "up"
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ it('renders the Icon with prop icon=arrow and direction=up', function () {
|
|
|
22
22
|
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
26
26
|
icon: "burger"
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ it('renders the Icon with prop prop icon=burger', function () {
|
|
|
30
30
|
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(
|
|
33
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
34
34
|
icon: "caret"
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ it('renders the Icon prop icon= "caret"', function () {
|
|
|
38
38
|
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
var _ref5 = /*#__PURE__*/_react["default"].createElement(
|
|
41
|
+
var _ref5 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
42
42
|
icon: "caret",
|
|
43
43
|
direction: "left"
|
|
44
44
|
});
|
|
@@ -47,7 +47,7 @@ it('renders the Icon prop icon= "caret" and direction=left', function () {
|
|
|
47
47
|
expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
var _ref6 = /*#__PURE__*/_react["default"].createElement(
|
|
50
|
+
var _ref6 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
51
51
|
icon: "check"
|
|
52
52
|
});
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ it('renders the Icon prop icon= "check"', function () {
|
|
|
55
55
|
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
var _ref7 = /*#__PURE__*/_react["default"].createElement(
|
|
58
|
+
var _ref7 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
59
59
|
icon: "close"
|
|
60
60
|
});
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ it('renders the Icon prop icon= "close"', function () {
|
|
|
63
63
|
expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
var _ref8 = /*#__PURE__*/_react["default"].createElement(
|
|
66
|
+
var _ref8 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
67
67
|
icon: "globe"
|
|
68
68
|
});
|
|
69
69
|
|
|
@@ -71,7 +71,7 @@ it('renders the Icon with prop prop icon=globe', function () {
|
|
|
71
71
|
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
var _ref9 = /*#__PURE__*/_react["default"].createElement(
|
|
74
|
+
var _ref9 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
75
75
|
icon: "moreVert"
|
|
76
76
|
});
|
|
77
77
|
|
|
@@ -79,7 +79,7 @@ it('renders the Icon props icon= "moreVert"', function () {
|
|
|
79
79
|
expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
var _ref10 = /*#__PURE__*/_react["default"].createElement(
|
|
82
|
+
var _ref10 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
83
83
|
icon: "uncheck"
|
|
84
84
|
});
|
|
85
85
|
|
package/MoreVertIcon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("
|
|
14
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
15
15
|
|
|
16
16
|
var MoreVertIcon = function MoreVertIcon(props) {
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Icon from
|
|
3
|
+
import Icon from "../Icon";
|
|
4
4
|
export var MoreVertIcon = function MoreVertIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "moreVert"
|
|
@@ -6,15 +6,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _enzyme = require("enzyme");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ = _interopRequireDefault(require("./"));
|
|
10
10
|
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
|
|
12
12
|
|
|
13
13
|
it('renders the MoreVertIcon with no props', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
18
18
|
size: "sm"
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ it('renders the MoreVertIcon with prop size=s', function () {
|
|
|
22
22
|
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
26
26
|
size: "lg"
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ it('renders the MoreVertIcon with prop size=l', function () {
|
|
|
30
30
|
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(
|
|
33
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
34
34
|
variant: "dark"
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ it('renders the MoreVertIcon with prop variant=dark', function () {
|
|
|
38
38
|
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
var _ref5 = /*#__PURE__*/_react["default"].createElement(
|
|
41
|
+
var _ref5 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
42
42
|
variant: "primary"
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ it('renders the MoreVertIcon with prop variant=primary', function () {
|
|
|
46
46
|
expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
var _ref6 = /*#__PURE__*/_react["default"].createElement(
|
|
49
|
+
var _ref6 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
50
50
|
variant: "success"
|
|
51
51
|
});
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ it('renders the MoreVertIcon with prop variant=success', function () {
|
|
|
54
54
|
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
var _ref7 = /*#__PURE__*/_react["default"].createElement(
|
|
57
|
+
var _ref7 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
58
58
|
variant: "focus"
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ it('renders the MoreVertIcon with prop variant=focus', function () {
|
|
|
62
62
|
expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
var _ref8 = /*#__PURE__*/_react["default"].createElement(
|
|
65
|
+
var _ref8 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
66
66
|
variant: "warning",
|
|
67
67
|
size: "sm"
|
|
68
68
|
});
|
|
@@ -71,7 +71,7 @@ it('renders the MoreVertIcon with prop variant=warning and size=s', function ()
|
|
|
71
71
|
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
var _ref9 = /*#__PURE__*/_react["default"].createElement(
|
|
74
|
+
var _ref9 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
75
75
|
variant: "warning",
|
|
76
76
|
size: "xl"
|
|
77
77
|
});
|
package/SearchIcon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("
|
|
14
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
15
15
|
|
|
16
16
|
var SearchIcon = function SearchIcon(props) {
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Icon from
|
|
3
|
+
import Icon from "../Icon";
|
|
4
4
|
export var SearchIcon = function SearchIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "search"
|
package/SearchIcon/index.test.js
CHANGED
|
@@ -6,9 +6,9 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _enzyme = require("enzyme");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ = _interopRequireDefault(require("./"));
|
|
10
10
|
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
|
|
12
12
|
|
|
13
13
|
it('renders the SearchIcon with no props', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
package/UncheckIcon/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _Icon = _interopRequireDefault(require("
|
|
14
|
+
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
15
15
|
|
|
16
16
|
var UncheckIcon = function UncheckIcon(props) {
|
|
17
17
|
return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Icon from
|
|
3
|
+
import Icon from "../Icon";
|
|
4
4
|
export var UncheckIcon = function UncheckIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "uncheck"
|
|
@@ -6,15 +6,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
|
|
7
7
|
var _enzyme = require("enzyme");
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _ = _interopRequireDefault(require("./"));
|
|
10
10
|
|
|
11
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(
|
|
11
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_["default"], null);
|
|
12
12
|
|
|
13
13
|
it('renders the UncheckIcon with no props', function () {
|
|
14
14
|
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(
|
|
17
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
18
18
|
size: "md"
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ it('renders the UncheckIcon with prop size=m', function () {
|
|
|
22
22
|
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(
|
|
25
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
26
26
|
size: "lg"
|
|
27
27
|
});
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ it('renders the UncheckIcon with prop size=l', function () {
|
|
|
30
30
|
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(
|
|
33
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
34
34
|
variant: "dark"
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ it('renders the UncheckIcon with prop variant=dark', function () {
|
|
|
38
38
|
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
var _ref5 = /*#__PURE__*/_react["default"].createElement(
|
|
41
|
+
var _ref5 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
42
42
|
variant: "light"
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ it('renders the UncheckIcon with prop variant=light', function () {
|
|
|
46
46
|
expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
var _ref6 = /*#__PURE__*/_react["default"].createElement(
|
|
49
|
+
var _ref6 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
50
50
|
variant: "gray"
|
|
51
51
|
});
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ it('renders the UncheckIcon with prop variant=gray', function () {
|
|
|
54
54
|
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
-
var _ref7 = /*#__PURE__*/_react["default"].createElement(
|
|
57
|
+
var _ref7 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
58
58
|
variant: "primary"
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ it('renders the UncheckIcon with prop variant=primary', function () {
|
|
|
62
62
|
expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
|
|
63
63
|
});
|
|
64
64
|
|
|
65
|
-
var _ref8 = /*#__PURE__*/_react["default"].createElement(
|
|
65
|
+
var _ref8 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
66
66
|
variant: "warning",
|
|
67
67
|
size: "sm"
|
|
68
68
|
});
|
|
@@ -71,7 +71,7 @@ it('renders the UncheckIcon with prop variant=warning and size=s', function () {
|
|
|
71
71
|
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
var _ref9 = /*#__PURE__*/_react["default"].createElement(
|
|
74
|
+
var _ref9 = /*#__PURE__*/_react["default"].createElement(_["default"], {
|
|
75
75
|
variant: "warning",
|
|
76
76
|
size: "xl"
|
|
77
77
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Icon from
|
|
3
|
+
import Icon from "../Icon";
|
|
4
4
|
export var AccessibilityIcon = function AccessibilityIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "accessibility"
|
package/es/ArrowIcon/config.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
var _ref2 = /*#__PURE__*/React.createElement("
|
|
4
|
-
|
|
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
5
|
});
|
|
6
6
|
|
|
7
|
-
var _ref3 = /*#__PURE__*/React.createElement("
|
|
8
|
-
|
|
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
9
|
});
|
|
10
10
|
|
|
11
|
-
var _ref4 = /*#__PURE__*/React.createElement("
|
|
12
|
-
|
|
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
13
|
});
|
|
14
14
|
|
|
15
|
-
var _ref5 = /*#__PURE__*/React.createElement("
|
|
16
|
-
|
|
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
17
|
});
|
|
18
18
|
|
|
19
19
|
export var arrow = function arrow(_ref) {
|
|
20
20
|
var _ref$direction = _ref.direction,
|
|
21
|
-
direction = _ref$direction === void 0 ? '
|
|
21
|
+
direction = _ref$direction === void 0 ? 'up' : _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
|