@digigov/react-icons 1.0.0-079f34f3d → 1.0.0-23c81d9f
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
package/src/SearchIcon/index.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Icon, { IconProps } from '@digigov/react-
|
|
2
|
+
import Icon, { IconProps } from '@digigov/react-icons/Icon';
|
|
3
3
|
|
|
4
4
|
export const SearchIcon: React.FC<IconProps<'search'>> = (props) => {
|
|
5
5
|
return <Icon {...props} icon="search"></Icon>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Icon, { IconProps } from '@digigov/react-
|
|
2
|
+
import Icon, { IconProps } from '@digigov/react-icons/Icon';
|
|
3
3
|
|
|
4
4
|
export const UncheckIcon: React.FC<IconProps<'uncheck'>> = (props) => {
|
|
5
5
|
return <Icon {...props} icon="uncheck"></Icon>;
|
package/src/icons.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';
|
|
@@ -13,6 +14,7 @@ export * from '@digigov/react-icons/AccessibilityIcon/config';
|
|
|
13
14
|
export * from '@digigov/react-icons/ArrowIcon/config';
|
|
14
15
|
export * from '@digigov/react-icons/BurgerIcon/config';
|
|
15
16
|
export * from '@digigov/react-icons/CaretIcon/config';
|
|
17
|
+
export * from '@digigov/react-icons/ChevronIcon/config';
|
|
16
18
|
export * from '@digigov/react-icons/CloseIcon/config';
|
|
17
19
|
export * from '@digigov/react-icons/CheckIcon/config';
|
|
18
20
|
export * from '@digigov/react-icons/GlobeIcon/config';
|
|
@@ -31,4 +33,5 @@ export interface IconTypes {
|
|
|
31
33
|
moreVert: MoreVertType;
|
|
32
34
|
uncheck: UncheckType;
|
|
33
35
|
search: SearchType;
|
|
36
|
+
chevron: ChevronType;
|
|
34
37
|
}
|
package/src/index.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/src/registry.js
CHANGED
|
@@ -4,8 +4,10 @@ import * as _digigov_react_icons_ArrowIcon from '@digigov/react-icons/ArrowIcon'
|
|
|
4
4
|
import * as _digigov_react_icons_BurgerIcon from '@digigov/react-icons/BurgerIcon';
|
|
5
5
|
import * as _digigov_react_icons_CaretIcon from '@digigov/react-icons/CaretIcon';
|
|
6
6
|
import * as _digigov_react_icons_CheckIcon from '@digigov/react-icons/CheckIcon';
|
|
7
|
+
import * as _digigov_react_icons_ChevronIcon from '@digigov/react-icons/ChevronIcon';
|
|
7
8
|
import * as _digigov_react_icons_CloseIcon from '@digigov/react-icons/CloseIcon';
|
|
8
9
|
import * as _digigov_react_icons_GlobeIcon from '@digigov/react-icons/GlobeIcon';
|
|
10
|
+
import * as _digigov_react_icons_Icon from '@digigov/react-icons/Icon';
|
|
9
11
|
import * as _digigov_react_icons_icons from '@digigov/react-icons/icons';
|
|
10
12
|
import * as _digigov_react_icons from '@digigov/react-icons';
|
|
11
13
|
import * as _digigov_react_icons_MoreVertIcon from '@digigov/react-icons/MoreVertIcon';
|
|
@@ -36,8 +38,10 @@ export default {
|
|
|
36
38
|
'@digigov/react-icons/BurgerIcon': lazyImport(_digigov_react_icons_BurgerIcon),
|
|
37
39
|
'@digigov/react-icons/CaretIcon': lazyImport(_digigov_react_icons_CaretIcon),
|
|
38
40
|
'@digigov/react-icons/CheckIcon': lazyImport(_digigov_react_icons_CheckIcon),
|
|
41
|
+
'@digigov/react-icons/ChevronIcon': lazyImport(_digigov_react_icons_ChevronIcon),
|
|
39
42
|
'@digigov/react-icons/CloseIcon': lazyImport(_digigov_react_icons_CloseIcon),
|
|
40
43
|
'@digigov/react-icons/GlobeIcon': lazyImport(_digigov_react_icons_GlobeIcon),
|
|
44
|
+
'@digigov/react-icons/Icon': lazyImport(_digigov_react_icons_Icon),
|
|
41
45
|
'@digigov/react-icons/icons': lazyImport(_digigov_react_icons_icons),
|
|
42
46
|
'@digigov/react-icons': lazyImport(_digigov_react_icons),
|
|
43
47
|
'@digigov/react-icons/MoreVertIcon': lazyImport(_digigov_react_icons_MoreVertIcon),
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var AccessibilityIcon = function AccessibilityIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "accessibility"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default AccessibilityIcon;
|
package/es/ArrowIcon/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var ArrowIcon = function ArrowIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "arrow"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default ArrowIcon;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import ArrowIcon from '@digigov/react-icons/ArrowIcon';
|
|
4
|
-
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(ArrowIcon, null);
|
|
6
|
-
|
|
7
|
-
it('renders the ArrowIcon with no props, direction prop is right by default', function () {
|
|
8
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
var _ref2 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
12
|
-
direction: "left"
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('renders the ArrowIcon with direction left prop', function () {
|
|
16
|
-
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
var _ref3 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
20
|
-
direction: "up"
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('renders the ArrowIcon with direction up prop', function () {
|
|
24
|
-
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var _ref4 = /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
28
|
-
direction: "down"
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('renders the ArrowIcon with direction down prop', function () {
|
|
32
|
-
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
-
});
|
package/es/BurgerIcon/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var BurgerIcon = function BurgerIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "burger"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default BurgerIcon;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import BurgerIcon from '@digigov/react-icons/BurgerIcon';
|
|
4
|
-
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(BurgerIcon, null);
|
|
6
|
-
|
|
7
|
-
it('renders the BurgerIcon with no props', function () {
|
|
8
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
var _ref2 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
12
|
-
active: true
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('renders the BurgerIcon with prop active=true', function () {
|
|
16
|
-
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
var _ref3 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
20
|
-
variant: "dark"
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('renders the BurgerIcon with prop variant=dark', function () {
|
|
24
|
-
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var _ref4 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
28
|
-
variant: "light"
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('renders the BurgerIcon prop variant= "light"', function () {
|
|
32
|
-
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
var _ref5 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
36
|
-
variant: "error"
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('renders the BurgerIcon prop variant= "error"', function () {
|
|
40
|
-
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
var _ref6 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
44
|
-
active: true,
|
|
45
|
-
variant: "light"
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
it('renders the BurgerIcon props active variant= "light"', function () {
|
|
49
|
-
expect(mount(_ref6)).toMatchSnapshot();
|
|
50
|
-
});
|
package/es/CaretIcon/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var CaretIcon = function CaretIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "caret"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default CaretIcon;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import CaretIcon from '@digigov/react-icons/CaretIcon';
|
|
4
|
-
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(CaretIcon, null);
|
|
6
|
-
|
|
7
|
-
it('renders the CaretIcon with no props, direction prop is left by default', function () {
|
|
8
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
var _ref2 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
12
|
-
direction: "right"
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('renders the CaretIcon with direction right prop', function () {
|
|
16
|
-
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
var _ref3 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
20
|
-
direction: "up"
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('renders the CaretIcon with direction up prop', function () {
|
|
24
|
-
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var _ref4 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
28
|
-
direction: "down"
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('renders the CaretIcon with direction down prop', function () {
|
|
32
|
-
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
-
});
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import CheckIcon from '@digigov/react-icons/CheckIcon';
|
|
4
|
-
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(CheckIcon, null);
|
|
6
|
-
|
|
7
|
-
it('renders the CheckIcon with no props', function () {
|
|
8
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
var _ref2 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
12
|
-
size: "md"
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('renders the CheckIcon with prop size=m', function () {
|
|
16
|
-
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
var _ref3 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
20
|
-
size: "xl"
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('renders the CheckIcon with prop size=xl', function () {
|
|
24
|
-
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var _ref4 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
28
|
-
variant: "light"
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('renders the CheckIcon with prop variant=light', function () {
|
|
32
|
-
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
var _ref5 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
36
|
-
variant: "success"
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('renders the CheckIcon with prop variant=success', function () {
|
|
40
|
-
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
var _ref6 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
44
|
-
variant: "warning"
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('renders the CheckIcon with prop variant=warning', function () {
|
|
48
|
-
expect(mount(_ref6)).toMatchSnapshot();
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
var _ref7 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
52
|
-
variant: "warning",
|
|
53
|
-
size: "sm"
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
it('renders the CheckIcon with prop variant=warning and size=s', function () {
|
|
57
|
-
expect(mount(_ref7)).toMatchSnapshot();
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
var _ref8 = /*#__PURE__*/React.createElement(CheckIcon, {
|
|
61
|
-
variant: "warning",
|
|
62
|
-
size: "xl"
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
it('renders the CheckIcon with prop variant=error and size= xl', function () {
|
|
66
|
-
expect(mount(_ref8)).toMatchSnapshot();
|
|
67
|
-
});
|
package/es/CloseIcon/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var CloseIcon = function CloseIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "close"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default CloseIcon;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import CloseIcon from '@digigov/react-icons/CloseIcon';
|
|
4
|
-
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(CloseIcon, null);
|
|
6
|
-
|
|
7
|
-
it('renders the CloseIcon with no props', function () {
|
|
8
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
-
});
|
package/es/GlobeIcon/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var GlobeIcon = function GlobeIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "globe"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default GlobeIcon;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import GlobeIcon from '@digigov/react-icons/GlobeIcon';
|
|
4
|
-
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(GlobeIcon, null);
|
|
6
|
-
|
|
7
|
-
it('renders the GlobeIcon with no props', function () {
|
|
8
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
var _ref2 = /*#__PURE__*/React.createElement(GlobeIcon, {
|
|
12
|
-
variant: "dark"
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('renders the GlobeIcon with prop variant=dark', function () {
|
|
16
|
-
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
var _ref3 = /*#__PURE__*/React.createElement(GlobeIcon, {
|
|
20
|
-
variant: "light"
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('renders the GlobeIcon prop variant= "light"', function () {
|
|
24
|
-
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var _ref4 = /*#__PURE__*/React.createElement(GlobeIcon, {
|
|
28
|
-
variant: "error"
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('renders the GlobeIcon prop variant= "error"', function () {
|
|
32
|
-
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
-
});
|
package/es/MoreVertIcon/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var MoreVertIcon = function MoreVertIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "moreVert"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default MoreVertIcon;
|
package/es/SearchIcon/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var SearchIcon = function SearchIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "search"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default SearchIcon;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import SearchIcon from '@digigov/react-icons/SearchIcon';
|
|
4
|
-
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(SearchIcon, null);
|
|
6
|
-
|
|
7
|
-
it('renders the SearchIcon with no props', function () {
|
|
8
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
-
});
|
package/es/UncheckIcon/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Icon from '@digigov/react-core/Icon';
|
|
4
|
-
export var UncheckIcon = function UncheckIcon(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
6
|
-
icon: "uncheck"
|
|
7
|
-
}));
|
|
8
|
-
};
|
|
9
|
-
export default UncheckIcon;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { mount } from 'enzyme';
|
|
3
|
-
import UncheckIcon from '@digigov/react-icons/UncheckIcon';
|
|
4
|
-
|
|
5
|
-
var _ref = /*#__PURE__*/React.createElement(UncheckIcon, null);
|
|
6
|
-
|
|
7
|
-
it('renders the UncheckIcon with no props', function () {
|
|
8
|
-
expect(mount(_ref)).toMatchSnapshot();
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
var _ref2 = /*#__PURE__*/React.createElement(UncheckIcon, {
|
|
12
|
-
size: "md"
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('renders the UncheckIcon with prop size=m', function () {
|
|
16
|
-
expect(mount(_ref2)).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
var _ref3 = /*#__PURE__*/React.createElement(UncheckIcon, {
|
|
20
|
-
size: "lg"
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('renders the UncheckIcon with prop size=l', function () {
|
|
24
|
-
expect(mount(_ref3)).toMatchSnapshot();
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var _ref4 = /*#__PURE__*/React.createElement(UncheckIcon, {
|
|
28
|
-
variant: "dark"
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it('renders the UncheckIcon with prop variant=dark', function () {
|
|
32
|
-
expect(mount(_ref4)).toMatchSnapshot();
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
var _ref5 = /*#__PURE__*/React.createElement(UncheckIcon, {
|
|
36
|
-
variant: "light"
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
it('renders the UncheckIcon with prop variant=light', function () {
|
|
40
|
-
expect(mount(_ref5)).toMatchSnapshot();
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
var _ref6 = /*#__PURE__*/React.createElement(UncheckIcon, {
|
|
44
|
-
variant: "gray"
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it('renders the UncheckIcon with prop variant=gray', function () {
|
|
48
|
-
expect(mount(_ref6)).toMatchSnapshot();
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
var _ref7 = /*#__PURE__*/React.createElement(UncheckIcon, {
|
|
52
|
-
variant: "primary"
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
it('renders the UncheckIcon with prop variant=primary', function () {
|
|
56
|
-
expect(mount(_ref7)).toMatchSnapshot();
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
var _ref8 = /*#__PURE__*/React.createElement(UncheckIcon, {
|
|
60
|
-
variant: "warning",
|
|
61
|
-
size: "sm"
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
it('renders the UncheckIcon with prop variant=warning and size=s', function () {
|
|
65
|
-
expect(mount(_ref8)).toMatchSnapshot();
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
var _ref9 = /*#__PURE__*/React.createElement(UncheckIcon, {
|
|
69
|
-
variant: "warning",
|
|
70
|
-
size: "xl"
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it('renders the UncheckIcon with prop variant=error and size= xl', function () {
|
|
74
|
-
expect(mount(_ref9)).toMatchSnapshot();
|
|
75
|
-
});
|
package/es/icons.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from '@digigov/react-icons/AccessibilityIcon/config';
|
|
2
|
-
export * from '@digigov/react-icons/ArrowIcon/config';
|
|
3
|
-
export * from '@digigov/react-icons/BurgerIcon/config';
|
|
4
|
-
export * from '@digigov/react-icons/CaretIcon/config';
|
|
5
|
-
export * from '@digigov/react-icons/CloseIcon/config';
|
|
6
|
-
export * from '@digigov/react-icons/CheckIcon/config';
|
|
7
|
-
export * from '@digigov/react-icons/GlobeIcon/config';
|
|
8
|
-
export * from '@digigov/react-icons/MoreVertIcon/config';
|
|
9
|
-
export * from '@digigov/react-icons/UncheckIcon/config';
|
|
10
|
-
export * from '@digigov/react-icons/SearchIcon/config';
|
|
11
|
-
export {};
|
package/es/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from '@digigov/react-icons/AccessibilityIcon';
|
|
2
|
-
export * from '@digigov/react-icons/ArrowIcon';
|
|
3
|
-
export * from '@digigov/react-icons/BurgerIcon';
|
|
4
|
-
export * from '@digigov/react-icons/CaretIcon';
|
|
5
|
-
export * from '@digigov/react-icons/CheckIcon';
|
|
6
|
-
export * from '@digigov/react-icons/UncheckIcon';
|
|
7
|
-
export * from '@digigov/react-icons/CloseIcon';
|
|
8
|
-
export * from '@digigov/react-icons/GlobeIcon';
|
|
9
|
-
export * from '@digigov/react-icons/MoreVertIcon';
|
|
10
|
-
export * from '@digigov/react-icons/SearchIcon';
|