@digigov/react-icons 1.0.0-88820b1e → 1.0.0-8b33e4c8
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.js +7 -19
- package/AccessibilityIcon/index.d.ts +1 -1
- package/AccessibilityIcon/index.js +6 -21
- package/AccessibilityIcon/index.test.js +21 -27
- package/AccessibilityIcon/package.json +6 -0
- package/ArrowIcon/config.d.ts +1 -1
- package/ArrowIcon/config.js +13 -25
- package/ArrowIcon/index.d.ts +1 -1
- package/ArrowIcon/index.js +6 -21
- package/ArrowIcon/index.test.js +11 -17
- package/ArrowIcon/package.json +6 -0
- package/BurgerIcon/config.js +9 -22
- package/BurgerIcon/index.d.ts +1 -1
- package/BurgerIcon/index.js +6 -21
- package/BurgerIcon/index.test.js +15 -21
- package/BurgerIcon/package.json +6 -0
- package/CaretIcon/config.js +8 -20
- package/CaretIcon/index.d.ts +1 -1
- package/CaretIcon/index.js +6 -21
- package/CaretIcon/index.test.js +11 -17
- package/CaretIcon/package.json +6 -0
- package/CheckIcon/config.js +5 -17
- package/CheckIcon/index.d.ts +1 -1
- package/CheckIcon/index.js +6 -21
- package/CheckIcon/index.test.js +19 -25
- package/CheckIcon/package.json +6 -0
- package/ChevronIcon/config.d.ts +14 -0
- package/{es/ArrowIcon → ChevronIcon}/config.js +3 -3
- package/ChevronIcon/index.d.ts +4 -0
- package/{es/ArrowIcon → ChevronIcon}/index.js +4 -4
- package/ChevronIcon/index.test.d.ts +1 -0
- package/ChevronIcon/index.test.js +33 -0
- package/ChevronIcon/package.json +6 -0
- package/CloseIcon/config.js +5 -17
- package/CloseIcon/index.d.ts +1 -1
- package/CloseIcon/index.js +6 -21
- package/CloseIcon/index.test.js +5 -11
- package/CloseIcon/package.json +6 -0
- package/GlobeIcon/config.js +5 -17
- package/GlobeIcon/index.d.ts +1 -1
- package/GlobeIcon/index.js +6 -21
- package/GlobeIcon/index.test.js +11 -17
- 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.d.ts +1 -0
- package/Icon/index.test.js +82 -0
- package/Icon/package.json +6 -0
- package/MoreVertIcon/config.js +7 -19
- package/MoreVertIcon/index.d.ts +1 -1
- package/MoreVertIcon/index.js +6 -21
- package/MoreVertIcon/index.test.js +21 -27
- package/MoreVertIcon/package.json +6 -0
- package/SearchIcon/config.js +5 -17
- package/SearchIcon/index.d.ts +1 -1
- package/SearchIcon/index.js +6 -21
- package/SearchIcon/index.test.js +5 -11
- package/SearchIcon/package.json +6 -0
- package/UncheckIcon/config.js +5 -17
- package/UncheckIcon/index.d.ts +1 -1
- package/UncheckIcon/index.js +6 -21
- package/UncheckIcon/index.test.js +21 -27
- package/UncheckIcon/package.json +6 -0
- package/cjs/AccessibilityIcon/config.js +31 -0
- package/cjs/AccessibilityIcon/index.js +24 -0
- package/cjs/AccessibilityIcon/index.test.js +81 -0
- package/cjs/ArrowIcon/config.js +39 -0
- package/cjs/ArrowIcon/index.js +24 -0
- package/cjs/ArrowIcon/index.test.js +39 -0
- package/cjs/BurgerIcon/config.js +45 -0
- package/cjs/BurgerIcon/index.js +24 -0
- package/cjs/BurgerIcon/index.test.js +56 -0
- package/cjs/CaretIcon/config.js +39 -0
- package/cjs/CaretIcon/index.js +24 -0
- package/cjs/CaretIcon/index.test.js +39 -0
- package/cjs/CheckIcon/config.js +23 -0
- package/cjs/CheckIcon/index.js +24 -0
- package/cjs/CheckIcon/index.test.js +73 -0
- package/cjs/ChevronIcon/config.js +39 -0
- package/cjs/ChevronIcon/index.js +24 -0
- package/cjs/ChevronIcon/index.test.js +39 -0
- package/cjs/CloseIcon/config.js +23 -0
- package/cjs/CloseIcon/index.js +24 -0
- package/cjs/CloseIcon/index.test.js +15 -0
- package/{esm → cjs}/GlobeIcon/config.js +17 -5
- package/cjs/GlobeIcon/index.js +24 -0
- package/cjs/GlobeIcon/index.test.js +39 -0
- package/cjs/Icon/__snapshots__/index.test.tsx.snap +343 -0
- package/cjs/Icon/index.js +58 -0
- package/cjs/Icon/index.test.js +88 -0
- package/cjs/MoreVertIcon/config.js +37 -0
- package/cjs/MoreVertIcon/index.js +24 -0
- package/cjs/MoreVertIcon/index.test.js +81 -0
- package/cjs/SearchIcon/config.js +23 -0
- package/cjs/SearchIcon/index.js +24 -0
- package/cjs/SearchIcon/index.test.js +15 -0
- package/cjs/UncheckIcon/config.js +23 -0
- package/cjs/UncheckIcon/index.js +24 -0
- package/cjs/UncheckIcon/index.test.js +81 -0
- package/cjs/icons.js +148 -0
- package/cjs/index.js +148 -0
- package/cjs/registry.js +73 -0
- package/icons.d.ts +3 -0
- package/icons.js +12 -135
- package/index.d.ts +1 -0
- package/index.js +11 -135
- package/package.json +4 -5
- package/registry.d.ts +2 -0
- package/registry.js +18 -39
- 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/config.js +0 -19
- package/es/AccessibilityIcon/index.js +0 -9
- package/es/AccessibilityIcon/index.test.js +0 -75
- package/es/ArrowIcon/index.test.js +0 -33
- package/es/BurgerIcon/config.js +0 -32
- package/es/BurgerIcon/index.js +0 -9
- package/es/BurgerIcon/index.test.js +0 -50
- package/es/CaretIcon/config.js +0 -27
- package/es/CaretIcon/index.js +0 -9
- package/es/CaretIcon/index.test.js +0 -33
- package/es/CheckIcon/config.js +0 -11
- package/es/CheckIcon/index.js +0 -9
- package/es/CheckIcon/index.test.js +0 -67
- package/es/CloseIcon/config.js +0 -11
- package/es/CloseIcon/index.js +0 -9
- package/es/CloseIcon/index.test.js +0 -9
- package/es/GlobeIcon/config.js +0 -11
- package/es/GlobeIcon/index.js +0 -9
- package/es/GlobeIcon/index.test.js +0 -33
- package/es/MoreVertIcon/config.js +0 -25
- package/es/MoreVertIcon/index.js +0 -9
- package/es/MoreVertIcon/index.test.js +0 -75
- package/es/SearchIcon/config.js +0 -11
- package/es/SearchIcon/index.js +0 -9
- package/es/SearchIcon/index.test.js +0 -9
- package/es/UncheckIcon/config.js +0 -11
- package/es/UncheckIcon/index.js +0 -9
- package/es/UncheckIcon/index.test.js +0 -75
- package/es/icons.js +0 -11
- package/es/index.js +0 -10
- package/es/registry.js +0 -42
- 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/ArrowIcon/index.test.js +0 -33
- 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/BurgerIcon/index.test.js +0 -50
- 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/CaretIcon/index.test.js +0 -33
- 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/CheckIcon/index.test.js +0 -67
- 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/CloseIcon/index.test.js +0 -9
- package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
- package/esm/GlobeIcon/index.js +0 -9
- package/esm/GlobeIcon/index.test.js +0 -33
- 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/SearchIcon/index.test.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/UncheckIcon/index.test.js +0 -75
- package/esm/icons.js +0 -11
- package/esm/index.js +0 -10
- package/esm/registry.js +0 -42
- /package/{es → cjs}/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/CaretIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/CheckIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/CloseIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/SearchIcon/__snapshots__/index.test.tsx.snap +0 -0
- /package/{es → cjs}/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -0
package/index.js
CHANGED
|
@@ -1,135 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _AccessibilityIcon[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
var _ArrowIcon = require("@digigov/react-icons/ArrowIcon");
|
|
21
|
-
|
|
22
|
-
Object.keys(_ArrowIcon).forEach(function (key) {
|
|
23
|
-
if (key === "default" || key === "__esModule") return;
|
|
24
|
-
if (key in exports && exports[key] === _ArrowIcon[key]) return;
|
|
25
|
-
Object.defineProperty(exports, key, {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _ArrowIcon[key];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
var _BurgerIcon = require("@digigov/react-icons/BurgerIcon");
|
|
34
|
-
|
|
35
|
-
Object.keys(_BurgerIcon).forEach(function (key) {
|
|
36
|
-
if (key === "default" || key === "__esModule") return;
|
|
37
|
-
if (key in exports && exports[key] === _BurgerIcon[key]) return;
|
|
38
|
-
Object.defineProperty(exports, key, {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function get() {
|
|
41
|
-
return _BurgerIcon[key];
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
var _CaretIcon = require("@digigov/react-icons/CaretIcon");
|
|
47
|
-
|
|
48
|
-
Object.keys(_CaretIcon).forEach(function (key) {
|
|
49
|
-
if (key === "default" || key === "__esModule") return;
|
|
50
|
-
if (key in exports && exports[key] === _CaretIcon[key]) return;
|
|
51
|
-
Object.defineProperty(exports, key, {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function get() {
|
|
54
|
-
return _CaretIcon[key];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
var _CheckIcon = require("@digigov/react-icons/CheckIcon");
|
|
60
|
-
|
|
61
|
-
Object.keys(_CheckIcon).forEach(function (key) {
|
|
62
|
-
if (key === "default" || key === "__esModule") return;
|
|
63
|
-
if (key in exports && exports[key] === _CheckIcon[key]) return;
|
|
64
|
-
Object.defineProperty(exports, key, {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function get() {
|
|
67
|
-
return _CheckIcon[key];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
var _UncheckIcon = require("@digigov/react-icons/UncheckIcon");
|
|
73
|
-
|
|
74
|
-
Object.keys(_UncheckIcon).forEach(function (key) {
|
|
75
|
-
if (key === "default" || key === "__esModule") return;
|
|
76
|
-
if (key in exports && exports[key] === _UncheckIcon[key]) return;
|
|
77
|
-
Object.defineProperty(exports, key, {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function get() {
|
|
80
|
-
return _UncheckIcon[key];
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
var _CloseIcon = require("@digigov/react-icons/CloseIcon");
|
|
86
|
-
|
|
87
|
-
Object.keys(_CloseIcon).forEach(function (key) {
|
|
88
|
-
if (key === "default" || key === "__esModule") return;
|
|
89
|
-
if (key in exports && exports[key] === _CloseIcon[key]) return;
|
|
90
|
-
Object.defineProperty(exports, key, {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function get() {
|
|
93
|
-
return _CloseIcon[key];
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
var _GlobeIcon = require("@digigov/react-icons/GlobeIcon");
|
|
99
|
-
|
|
100
|
-
Object.keys(_GlobeIcon).forEach(function (key) {
|
|
101
|
-
if (key === "default" || key === "__esModule") return;
|
|
102
|
-
if (key in exports && exports[key] === _GlobeIcon[key]) return;
|
|
103
|
-
Object.defineProperty(exports, key, {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function get() {
|
|
106
|
-
return _GlobeIcon[key];
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
var _MoreVertIcon = require("@digigov/react-icons/MoreVertIcon");
|
|
112
|
-
|
|
113
|
-
Object.keys(_MoreVertIcon).forEach(function (key) {
|
|
114
|
-
if (key === "default" || key === "__esModule") return;
|
|
115
|
-
if (key in exports && exports[key] === _MoreVertIcon[key]) return;
|
|
116
|
-
Object.defineProperty(exports, key, {
|
|
117
|
-
enumerable: true,
|
|
118
|
-
get: function get() {
|
|
119
|
-
return _MoreVertIcon[key];
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
var _SearchIcon = require("@digigov/react-icons/SearchIcon");
|
|
125
|
-
|
|
126
|
-
Object.keys(_SearchIcon).forEach(function (key) {
|
|
127
|
-
if (key === "default" || key === "__esModule") return;
|
|
128
|
-
if (key in exports && exports[key] === _SearchIcon[key]) return;
|
|
129
|
-
Object.defineProperty(exports, key, {
|
|
130
|
-
enumerable: true,
|
|
131
|
-
get: function get() {
|
|
132
|
-
return _SearchIcon[key];
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
});
|
|
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,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-icons",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-8b33e4c8",
|
|
4
4
|
"description": "@digigov react icons",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
7
|
-
"main": "./index.js",
|
|
8
|
-
"module": "./
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"module": "./index.js",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public",
|
|
11
11
|
"directory": "dist"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@digigov/css": "1.0.0-
|
|
15
|
-
"@digigov/react-core": "1.0.0-88820b1e",
|
|
14
|
+
"@digigov/css": "1.0.0-8b33e4c8",
|
|
16
15
|
"clsx": "1.1.1",
|
|
17
16
|
"react": "^16.8.0 || ^17.0.0",
|
|
18
17
|
"react-dom": "^16.8.0 || ^17.0.0"
|
package/registry.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ declare var _default: {
|
|
|
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': {};
|
|
10
|
+
'@digigov/react-icons/Icon': {};
|
|
9
11
|
'@digigov/react-icons/icons': {};
|
|
10
12
|
'@digigov/react-icons': {};
|
|
11
13
|
'@digigov/react-icons/MoreVertIcon': {};
|
package/registry.js
CHANGED
|
@@ -1,39 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var _digigov_react_icons_CaretIcon = _interopRequireWildcard(require("@digigov/react-icons/CaretIcon"));
|
|
17
|
-
|
|
18
|
-
var _digigov_react_icons_CheckIcon = _interopRequireWildcard(require("@digigov/react-icons/CheckIcon"));
|
|
19
|
-
|
|
20
|
-
var _digigov_react_icons_CloseIcon = _interopRequireWildcard(require("@digigov/react-icons/CloseIcon"));
|
|
21
|
-
|
|
22
|
-
var _digigov_react_icons_GlobeIcon = _interopRequireWildcard(require("@digigov/react-icons/GlobeIcon"));
|
|
23
|
-
|
|
24
|
-
var _digigov_react_icons_icons = _interopRequireWildcard(require("@digigov/react-icons/icons"));
|
|
25
|
-
|
|
26
|
-
var _digigov_react_icons = _interopRequireWildcard(require("@digigov/react-icons"));
|
|
27
|
-
|
|
28
|
-
var _digigov_react_icons_MoreVertIcon = _interopRequireWildcard(require("@digigov/react-icons/MoreVertIcon"));
|
|
29
|
-
|
|
30
|
-
var _digigov_react_icons_SearchIcon = _interopRequireWildcard(require("@digigov/react-icons/SearchIcon"));
|
|
31
|
-
|
|
32
|
-
var _digigov_react_icons_UncheckIcon = _interopRequireWildcard(require("@digigov/react-icons/UncheckIcon"));
|
|
33
|
-
|
|
34
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
|
-
|
|
36
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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";
|
|
37
15
|
|
|
38
16
|
function lazyImport(pkgImport) {
|
|
39
17
|
// eslint-disable-next-line no-undef
|
|
@@ -50,18 +28,19 @@ function lazyImport(pkgImport) {
|
|
|
50
28
|
});
|
|
51
29
|
}
|
|
52
30
|
|
|
53
|
-
|
|
31
|
+
export default {
|
|
54
32
|
'@digigov/react-icons/AccessibilityIcon': lazyImport(_digigov_react_icons_AccessibilityIcon),
|
|
55
33
|
'@digigov/react-icons/ArrowIcon': lazyImport(_digigov_react_icons_ArrowIcon),
|
|
56
34
|
'@digigov/react-icons/BurgerIcon': lazyImport(_digigov_react_icons_BurgerIcon),
|
|
57
35
|
'@digigov/react-icons/CaretIcon': lazyImport(_digigov_react_icons_CaretIcon),
|
|
58
36
|
'@digigov/react-icons/CheckIcon': lazyImport(_digigov_react_icons_CheckIcon),
|
|
37
|
+
'@digigov/react-icons/ChevronIcon': lazyImport(_digigov_react_icons_ChevronIcon),
|
|
59
38
|
'@digigov/react-icons/CloseIcon': lazyImport(_digigov_react_icons_CloseIcon),
|
|
60
39
|
'@digigov/react-icons/GlobeIcon': lazyImport(_digigov_react_icons_GlobeIcon),
|
|
40
|
+
'@digigov/react-icons/Icon': lazyImport(_digigov_react_icons_Icon),
|
|
61
41
|
'@digigov/react-icons/icons': lazyImport(_digigov_react_icons_icons),
|
|
62
42
|
'@digigov/react-icons': lazyImport(_digigov_react_icons),
|
|
63
43
|
'@digigov/react-icons/MoreVertIcon': lazyImport(_digigov_react_icons_MoreVertIcon),
|
|
64
44
|
'@digigov/react-icons/SearchIcon': lazyImport(_digigov_react_icons_SearchIcon),
|
|
65
45
|
'@digigov/react-icons/UncheckIcon': lazyImport(_digigov_react_icons_UncheckIcon)
|
|
66
|
-
};
|
|
67
|
-
exports["default"] = _default;
|
|
46
|
+
};
|
package/src/ArrowIcon/config.tsx
CHANGED
|
@@ -6,25 +6,25 @@ export interface ArrowType {
|
|
|
6
6
|
* @value 'right'
|
|
7
7
|
* @value 'up'
|
|
8
8
|
* @value 'down'
|
|
9
|
-
* @default '
|
|
9
|
+
* @default 'up'
|
|
10
10
|
*/
|
|
11
11
|
direction?: 'left' | 'right' | 'up' | 'down'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const arrow: React.FC<ArrowType> = ({ direction = '
|
|
14
|
+
export const arrow: React.FC<ArrowType> = ({ direction = 'up' }) => {
|
|
15
15
|
return (
|
|
16
16
|
<>
|
|
17
17
|
{direction === 'left' && (
|
|
18
|
-
<
|
|
18
|
+
<polygon 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" />
|
|
19
19
|
)}
|
|
20
20
|
{direction === 'right' && (
|
|
21
|
-
<
|
|
21
|
+
<polygon 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" />
|
|
22
22
|
)}
|
|
23
23
|
{direction === 'up' && (
|
|
24
|
-
<
|
|
24
|
+
<polygon 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" />
|
|
25
25
|
)}
|
|
26
26
|
{direction === 'down' && (
|
|
27
|
-
<
|
|
27
|
+
<polygon 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" />
|
|
28
28
|
)}
|
|
29
29
|
</>
|
|
30
30
|
);
|
package/src/ArrowIcon/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 ArrowIcon: React.FC<IconProps<'arrow'>> = (props) => {
|
|
5
5
|
return <Icon {...props} icon="arrow"></Icon>;
|
package/src/BurgerIcon/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 BurgerIcon: React.FC<IconProps<'burger'>> = (props) => {
|
|
5
5
|
return <Icon {...props} icon="burger"></Icon>;
|
package/src/CaretIcon/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 CaretIcon: React.FC<IconProps<'caret'>> = (props) => {
|
|
5
5
|
return <Icon {...props} icon="caret"></Icon>;
|
package/src/CheckIcon/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 CheckIcon: React.FC<IconProps<'check'>> = (props) => {
|
|
5
5
|
return <Icon {...props} icon="check"></Icon>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ChevronType {
|
|
4
|
+
/**
|
|
5
|
+
* direction sets the direction of the chevron icon.
|
|
6
|
+
* @value 'left'
|
|
7
|
+
* @value 'right'
|
|
8
|
+
* @value 'up'
|
|
9
|
+
* @value 'down'
|
|
10
|
+
* @default 'right'
|
|
11
|
+
*/
|
|
12
|
+
direction?: 'left' | 'right' | 'up' | 'down'
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const chevron: React.FC<ChevronType> = ({ direction = 'right' }) => {
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
{direction === 'left' && (
|
|
19
|
+
<path d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z" />
|
|
20
|
+
)}
|
|
21
|
+
{direction === 'right' && (
|
|
22
|
+
<path d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z" />
|
|
23
|
+
)}
|
|
24
|
+
{direction === 'up' && (
|
|
25
|
+
<path d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z" />
|
|
26
|
+
)}
|
|
27
|
+
{direction === 'down' && (
|
|
28
|
+
<path d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z" />
|
|
29
|
+
)}
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
chevron.props = ['direction'];
|
|
36
|
+
|
|
37
|
+
export default chevron;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { mount } from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import ChevronIcon from '@digigov/react-icons/ChevronIcon';
|
|
5
|
+
|
|
6
|
+
it('renders the ChevronIcon with no props, direction prop is right by default', () => {
|
|
7
|
+
expect(mount(<ChevronIcon />)).toMatchSnapshot();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('renders the ChevronIcon with direction left prop', () => {
|
|
11
|
+
expect(mount(<ChevronIcon direction="left" />)).toMatchSnapshot();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('renders the ChevronIcon with direction up prop', () => {
|
|
15
|
+
expect(mount(<ChevronIcon direction="up" />)).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it('renders the ChevronIcon with direction down prop', () => {
|
|
19
|
+
expect(mount(<ChevronIcon direction="down" />)).toMatchSnapshot();
|
|
20
|
+
});
|
package/src/CloseIcon/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 CloseIcon: React.FC<IconProps<'close'>> = (props) => {
|
|
5
5
|
return <Icon {...props} icon="close"></Icon>;
|
package/src/GlobeIcon/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 GlobeIcon: React.FC<IconProps<'globe'>> = (props) => {
|
|
5
5
|
return <Icon {...props} icon="globe"></Icon>;
|