@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
package/es/ArrowIcon/index.js
CHANGED
|
@@ -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 ArrowIcon = function ArrowIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "arrow"
|
package/es/BurgerIcon/index.js
CHANGED
|
@@ -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 BurgerIcon = function BurgerIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "burger"
|
package/es/CaretIcon/index.js
CHANGED
|
@@ -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 CaretIcon = function CaretIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "caret"
|
package/es/CheckIcon/index.js
CHANGED
|
@@ -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 CheckIcon = function CheckIcon(props) {
|
|
5
5
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
6
|
icon: "check"
|
|
@@ -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,9 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Icon from "../Icon";
|
|
4
|
+
export var ChevronIcon = function ChevronIcon(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
+
icon: "chevron"
|
|
7
|
+
}));
|
|
8
|
+
};
|
|
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
|
+
});
|
package/es/CloseIcon/index.js
CHANGED
|
@@ -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/es/GlobeIcon/index.js
CHANGED
|
@@ -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/es/Icon/index.js
CHANGED
|
@@ -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/es/Icon/index.test.js
CHANGED
package/es/MoreVertIcon/index.js
CHANGED
|
@@ -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"
|
package/es/SearchIcon/index.js
CHANGED
|
@@ -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/es/UncheckIcon/index.js
CHANGED
|
@@ -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"
|
package/es/icons.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
1
|
+
export * from "./AccessibilityIcon/config";
|
|
2
|
+
export * from "./ArrowIcon/config";
|
|
3
|
+
export * from "./BurgerIcon/config";
|
|
4
|
+
export * from "./CaretIcon/config";
|
|
5
|
+
export * from "./ChevronIcon/config";
|
|
6
|
+
export * from "./CloseIcon/config";
|
|
7
|
+
export * from "./CheckIcon/config";
|
|
8
|
+
export * from "./GlobeIcon/config";
|
|
9
|
+
export * from "./MoreVertIcon/config";
|
|
10
|
+
export * from "./UncheckIcon/config";
|
|
11
|
+
export * from "./SearchIcon/config";
|
|
11
12
|
export {};
|
package/es/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
1
|
+
export * from "./AccessibilityIcon";
|
|
2
|
+
export * from "./ArrowIcon";
|
|
3
|
+
export * from "./BurgerIcon";
|
|
4
|
+
export * from "./CaretIcon";
|
|
5
|
+
export * from "./CheckIcon";
|
|
6
|
+
export * from "./ChevronIcon";
|
|
7
|
+
export * from "./UncheckIcon";
|
|
8
|
+
export * from "./CloseIcon";
|
|
9
|
+
export * from "./GlobeIcon";
|
|
10
|
+
export * from "./MoreVertIcon";
|
|
11
|
+
export * from "./SearchIcon";
|
package/es/registry.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import * as _digigov_react_icons_AccessibilityIcon from
|
|
2
|
-
import * as _digigov_react_icons_ArrowIcon from
|
|
3
|
-
import * as _digigov_react_icons_BurgerIcon from
|
|
4
|
-
import * as _digigov_react_icons_CaretIcon from
|
|
5
|
-
import * as _digigov_react_icons_CheckIcon from
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
1
|
+
import * as _digigov_react_icons_AccessibilityIcon from "./AccessibilityIcon";
|
|
2
|
+
import * as _digigov_react_icons_ArrowIcon from "./ArrowIcon";
|
|
3
|
+
import * as _digigov_react_icons_BurgerIcon from "./BurgerIcon";
|
|
4
|
+
import * as _digigov_react_icons_CaretIcon from "./CaretIcon";
|
|
5
|
+
import * as _digigov_react_icons_CheckIcon from "./CheckIcon";
|
|
6
|
+
import * as _digigov_react_icons_ChevronIcon from "./ChevronIcon";
|
|
7
|
+
import * as _digigov_react_icons_CloseIcon from "./CloseIcon";
|
|
8
|
+
import * as _digigov_react_icons_GlobeIcon from "./GlobeIcon";
|
|
9
|
+
import * as _digigov_react_icons_Icon from "./Icon";
|
|
10
|
+
import * as _digigov_react_icons_icons from "./icons";
|
|
11
|
+
import * as _digigov_react_icons from "./";
|
|
12
|
+
import * as _digigov_react_icons_MoreVertIcon from "./MoreVertIcon";
|
|
13
|
+
import * as _digigov_react_icons_SearchIcon from "./SearchIcon";
|
|
14
|
+
import * as _digigov_react_icons_UncheckIcon from "./UncheckIcon";
|
|
14
15
|
|
|
15
16
|
function lazyImport(pkgImport) {
|
|
16
17
|
// eslint-disable-next-line no-undef
|
|
@@ -33,6 +34,7 @@ export default {
|
|
|
33
34
|
'@digigov/react-icons/BurgerIcon': lazyImport(_digigov_react_icons_BurgerIcon),
|
|
34
35
|
'@digigov/react-icons/CaretIcon': lazyImport(_digigov_react_icons_CaretIcon),
|
|
35
36
|
'@digigov/react-icons/CheckIcon': lazyImport(_digigov_react_icons_CheckIcon),
|
|
37
|
+
'@digigov/react-icons/ChevronIcon': lazyImport(_digigov_react_icons_ChevronIcon),
|
|
36
38
|
'@digigov/react-icons/CloseIcon': lazyImport(_digigov_react_icons_CloseIcon),
|
|
37
39
|
'@digigov/react-icons/GlobeIcon': lazyImport(_digigov_react_icons_GlobeIcon),
|
|
38
40
|
'@digigov/react-icons/Icon': lazyImport(_digigov_react_icons_Icon),
|
package/icons.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { ArrowType } from '@digigov/react-icons/ArrowIcon/config';
|
|
|
3
3
|
import type { BurgerType } from '@digigov/react-icons/BurgerIcon/config';
|
|
4
4
|
import type { CaretType } from '@digigov/react-icons/CaretIcon/config';
|
|
5
5
|
import type { CheckType } from '@digigov/react-icons/CheckIcon/config';
|
|
6
|
+
import type { ChevronType } from '@digigov/react-icons/ChevronIcon/config';
|
|
6
7
|
import type { CloseType } from '@digigov/react-icons/CloseIcon/config';
|
|
7
8
|
import type { GlobeType } from '@digigov/react-icons/GlobeIcon/config';
|
|
8
9
|
import type { MoreVertType } from '@digigov/react-icons/MoreVertIcon/config';
|
|
@@ -12,6 +13,7 @@ export * from '@digigov/react-icons/AccessibilityIcon/config';
|
|
|
12
13
|
export * from '@digigov/react-icons/ArrowIcon/config';
|
|
13
14
|
export * from '@digigov/react-icons/BurgerIcon/config';
|
|
14
15
|
export * from '@digigov/react-icons/CaretIcon/config';
|
|
16
|
+
export * from '@digigov/react-icons/ChevronIcon/config';
|
|
15
17
|
export * from '@digigov/react-icons/CloseIcon/config';
|
|
16
18
|
export * from '@digigov/react-icons/CheckIcon/config';
|
|
17
19
|
export * from '@digigov/react-icons/GlobeIcon/config';
|
|
@@ -29,4 +31,5 @@ export interface IconTypes {
|
|
|
29
31
|
moreVert: MoreVertType;
|
|
30
32
|
uncheck: UncheckType;
|
|
31
33
|
search: SearchType;
|
|
34
|
+
chevron: ChevronType;
|
|
32
35
|
}
|
package/icons.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
var _config = require("
|
|
7
|
+
var _config = require("./AccessibilityIcon/config");
|
|
8
8
|
|
|
9
9
|
Object.keys(_config).forEach(function (key) {
|
|
10
10
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -17,7 +17,7 @@ Object.keys(_config).forEach(function (key) {
|
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
var _config2 = require("
|
|
20
|
+
var _config2 = require("./ArrowIcon/config");
|
|
21
21
|
|
|
22
22
|
Object.keys(_config2).forEach(function (key) {
|
|
23
23
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -30,7 +30,7 @@ Object.keys(_config2).forEach(function (key) {
|
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
var _config3 = require("
|
|
33
|
+
var _config3 = require("./BurgerIcon/config");
|
|
34
34
|
|
|
35
35
|
Object.keys(_config3).forEach(function (key) {
|
|
36
36
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -43,7 +43,7 @@ Object.keys(_config3).forEach(function (key) {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
var _config4 = require("
|
|
46
|
+
var _config4 = require("./CaretIcon/config");
|
|
47
47
|
|
|
48
48
|
Object.keys(_config4).forEach(function (key) {
|
|
49
49
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -56,7 +56,7 @@ Object.keys(_config4).forEach(function (key) {
|
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
var _config5 = require("
|
|
59
|
+
var _config5 = require("./ChevronIcon/config");
|
|
60
60
|
|
|
61
61
|
Object.keys(_config5).forEach(function (key) {
|
|
62
62
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -69,7 +69,7 @@ Object.keys(_config5).forEach(function (key) {
|
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
var _config6 = require("
|
|
72
|
+
var _config6 = require("./CloseIcon/config");
|
|
73
73
|
|
|
74
74
|
Object.keys(_config6).forEach(function (key) {
|
|
75
75
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -82,7 +82,7 @@ Object.keys(_config6).forEach(function (key) {
|
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
-
var _config7 = require("
|
|
85
|
+
var _config7 = require("./CheckIcon/config");
|
|
86
86
|
|
|
87
87
|
Object.keys(_config7).forEach(function (key) {
|
|
88
88
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -95,7 +95,7 @@ Object.keys(_config7).forEach(function (key) {
|
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
var _config8 = require("
|
|
98
|
+
var _config8 = require("./GlobeIcon/config");
|
|
99
99
|
|
|
100
100
|
Object.keys(_config8).forEach(function (key) {
|
|
101
101
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -108,7 +108,7 @@ Object.keys(_config8).forEach(function (key) {
|
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
var _config9 = require("
|
|
111
|
+
var _config9 = require("./MoreVertIcon/config");
|
|
112
112
|
|
|
113
113
|
Object.keys(_config9).forEach(function (key) {
|
|
114
114
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -121,7 +121,7 @@ Object.keys(_config9).forEach(function (key) {
|
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
var _config10 = require("
|
|
124
|
+
var _config10 = require("./UncheckIcon/config");
|
|
125
125
|
|
|
126
126
|
Object.keys(_config10).forEach(function (key) {
|
|
127
127
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -132,4 +132,17 @@ Object.keys(_config10).forEach(function (key) {
|
|
|
132
132
|
return _config10[key];
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
var _config11 = require("./SearchIcon/config");
|
|
138
|
+
|
|
139
|
+
Object.keys(_config11).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (key in exports && exports[key] === _config11[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function get() {
|
|
145
|
+
return _config11[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
135
148
|
});
|
package/icons.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./AccessibilityIcon/config";
|
|
2
|
+
export * from "./ArrowIcon/config";
|
|
3
|
+
export * from "./BurgerIcon/config";
|
|
4
|
+
export * from "./CaretIcon/config";
|
|
5
|
+
export * from "./ChevronIcon/config";
|
|
6
|
+
export * from "./CloseIcon/config";
|
|
7
|
+
export * from "./CheckIcon/config";
|
|
8
|
+
export * from "./GlobeIcon/config";
|
|
9
|
+
export * from "./MoreVertIcon/config";
|
|
10
|
+
export * from "./UncheckIcon/config";
|
|
11
|
+
export * from "./SearchIcon/config";
|
|
12
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from '@digigov/react-icons/ArrowIcon';
|
|
|
3
3
|
export * from '@digigov/react-icons/BurgerIcon';
|
|
4
4
|
export * from '@digigov/react-icons/CaretIcon';
|
|
5
5
|
export * from '@digigov/react-icons/CheckIcon';
|
|
6
|
+
export * from '@digigov/react-icons/ChevronIcon';
|
|
6
7
|
export * from '@digigov/react-icons/UncheckIcon';
|
|
7
8
|
export * from '@digigov/react-icons/CloseIcon';
|
|
8
9
|
export * from '@digigov/react-icons/GlobeIcon';
|
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
var _AccessibilityIcon = require("
|
|
7
|
+
var _AccessibilityIcon = require("./AccessibilityIcon");
|
|
8
8
|
|
|
9
9
|
Object.keys(_AccessibilityIcon).forEach(function (key) {
|
|
10
10
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -17,7 +17,7 @@ Object.keys(_AccessibilityIcon).forEach(function (key) {
|
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
var _ArrowIcon = require("
|
|
20
|
+
var _ArrowIcon = require("./ArrowIcon");
|
|
21
21
|
|
|
22
22
|
Object.keys(_ArrowIcon).forEach(function (key) {
|
|
23
23
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -30,7 +30,7 @@ Object.keys(_ArrowIcon).forEach(function (key) {
|
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
var _BurgerIcon = require("
|
|
33
|
+
var _BurgerIcon = require("./BurgerIcon");
|
|
34
34
|
|
|
35
35
|
Object.keys(_BurgerIcon).forEach(function (key) {
|
|
36
36
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -43,7 +43,7 @@ Object.keys(_BurgerIcon).forEach(function (key) {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
var _CaretIcon = require("
|
|
46
|
+
var _CaretIcon = require("./CaretIcon");
|
|
47
47
|
|
|
48
48
|
Object.keys(_CaretIcon).forEach(function (key) {
|
|
49
49
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -56,7 +56,7 @@ Object.keys(_CaretIcon).forEach(function (key) {
|
|
|
56
56
|
});
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
var _CheckIcon = require("
|
|
59
|
+
var _CheckIcon = require("./CheckIcon");
|
|
60
60
|
|
|
61
61
|
Object.keys(_CheckIcon).forEach(function (key) {
|
|
62
62
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -69,7 +69,20 @@ Object.keys(_CheckIcon).forEach(function (key) {
|
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _ChevronIcon = require("./ChevronIcon");
|
|
73
|
+
|
|
74
|
+
Object.keys(_ChevronIcon).forEach(function (key) {
|
|
75
|
+
if (key === "default" || key === "__esModule") return;
|
|
76
|
+
if (key in exports && exports[key] === _ChevronIcon[key]) return;
|
|
77
|
+
Object.defineProperty(exports, key, {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function get() {
|
|
80
|
+
return _ChevronIcon[key];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
var _UncheckIcon = require("./UncheckIcon");
|
|
73
86
|
|
|
74
87
|
Object.keys(_UncheckIcon).forEach(function (key) {
|
|
75
88
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -82,7 +95,7 @@ Object.keys(_UncheckIcon).forEach(function (key) {
|
|
|
82
95
|
});
|
|
83
96
|
});
|
|
84
97
|
|
|
85
|
-
var _CloseIcon = require("
|
|
98
|
+
var _CloseIcon = require("./CloseIcon");
|
|
86
99
|
|
|
87
100
|
Object.keys(_CloseIcon).forEach(function (key) {
|
|
88
101
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -95,7 +108,7 @@ Object.keys(_CloseIcon).forEach(function (key) {
|
|
|
95
108
|
});
|
|
96
109
|
});
|
|
97
110
|
|
|
98
|
-
var _GlobeIcon = require("
|
|
111
|
+
var _GlobeIcon = require("./GlobeIcon");
|
|
99
112
|
|
|
100
113
|
Object.keys(_GlobeIcon).forEach(function (key) {
|
|
101
114
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -108,7 +121,7 @@ Object.keys(_GlobeIcon).forEach(function (key) {
|
|
|
108
121
|
});
|
|
109
122
|
});
|
|
110
123
|
|
|
111
|
-
var _MoreVertIcon = require("
|
|
124
|
+
var _MoreVertIcon = require("./MoreVertIcon");
|
|
112
125
|
|
|
113
126
|
Object.keys(_MoreVertIcon).forEach(function (key) {
|
|
114
127
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -121,7 +134,7 @@ Object.keys(_MoreVertIcon).forEach(function (key) {
|
|
|
121
134
|
});
|
|
122
135
|
});
|
|
123
136
|
|
|
124
|
-
var _SearchIcon = require("
|
|
137
|
+
var _SearchIcon = require("./SearchIcon");
|
|
125
138
|
|
|
126
139
|
Object.keys(_SearchIcon).forEach(function (key) {
|
|
127
140
|
if (key === "default" || key === "__esModule") return;
|
package/index.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./AccessibilityIcon";
|
|
2
|
+
export * from "./ArrowIcon";
|
|
3
|
+
export * from "./BurgerIcon";
|
|
4
|
+
export * from "./CaretIcon";
|
|
5
|
+
export * from "./CheckIcon";
|
|
6
|
+
export * from "./ChevronIcon";
|
|
7
|
+
export * from "./UncheckIcon";
|
|
8
|
+
export * from "./CloseIcon";
|
|
9
|
+
export * from "./GlobeIcon";
|
|
10
|
+
export * from "./MoreVertIcon";
|
|
11
|
+
export * from "./SearchIcon";
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-icons",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-a131264d",
|
|
4
4
|
"description": "@digigov react icons",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
7
7
|
"main": "./index.js",
|
|
8
|
-
"module": "./
|
|
8
|
+
"module": "./index.mjs",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public",
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@digigov/css": "1.0.0-
|
|
14
|
+
"@digigov/css": "1.0.0-a131264d",
|
|
15
15
|
"clsx": "1.1.1",
|
|
16
16
|
"react": "^16.8.0 || ^17.0.0",
|
|
17
17
|
"react-dom": "^16.8.0 || ^17.0.0"
|
package/registry.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: {
|
|
2
2
|
'@digigov/react-icons/AccessibilityIcon': {};
|
|
3
3
|
'@digigov/react-icons/ArrowIcon': {};
|
|
4
4
|
'@digigov/react-icons/BurgerIcon': {};
|
|
5
5
|
'@digigov/react-icons/CaretIcon': {};
|
|
6
6
|
'@digigov/react-icons/CheckIcon': {};
|
|
7
|
+
'@digigov/react-icons/ChevronIcon': {};
|
|
7
8
|
'@digigov/react-icons/CloseIcon': {};
|
|
8
9
|
'@digigov/react-icons/GlobeIcon': {};
|
|
9
10
|
'@digigov/react-icons/Icon': {};
|