@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.
Files changed (213) hide show
  1. package/AccessibilityIcon/config.js +7 -19
  2. package/AccessibilityIcon/index.d.ts +1 -1
  3. package/AccessibilityIcon/index.js +6 -21
  4. package/AccessibilityIcon/index.test.js +21 -27
  5. package/AccessibilityIcon/package.json +6 -0
  6. package/ArrowIcon/config.d.ts +1 -1
  7. package/ArrowIcon/config.js +13 -25
  8. package/ArrowIcon/index.d.ts +1 -1
  9. package/ArrowIcon/index.js +6 -21
  10. package/ArrowIcon/index.test.js +11 -17
  11. package/ArrowIcon/package.json +6 -0
  12. package/BurgerIcon/config.js +9 -22
  13. package/BurgerIcon/index.d.ts +1 -1
  14. package/BurgerIcon/index.js +6 -21
  15. package/BurgerIcon/index.test.js +15 -21
  16. package/BurgerIcon/package.json +6 -0
  17. package/CaretIcon/config.js +8 -20
  18. package/CaretIcon/index.d.ts +1 -1
  19. package/CaretIcon/index.js +6 -21
  20. package/CaretIcon/index.test.js +11 -17
  21. package/CaretIcon/package.json +6 -0
  22. package/CheckIcon/config.js +5 -17
  23. package/CheckIcon/index.d.ts +1 -1
  24. package/CheckIcon/index.js +6 -21
  25. package/CheckIcon/index.test.js +19 -25
  26. package/CheckIcon/package.json +6 -0
  27. package/ChevronIcon/config.d.ts +14 -0
  28. package/{es/ArrowIcon → ChevronIcon}/config.js +3 -3
  29. package/ChevronIcon/index.d.ts +4 -0
  30. package/{es/ArrowIcon → ChevronIcon}/index.js +4 -4
  31. package/ChevronIcon/index.test.d.ts +1 -0
  32. package/ChevronIcon/index.test.js +33 -0
  33. package/ChevronIcon/package.json +6 -0
  34. package/CloseIcon/config.js +5 -17
  35. package/CloseIcon/index.d.ts +1 -1
  36. package/CloseIcon/index.js +6 -21
  37. package/CloseIcon/index.test.js +5 -11
  38. package/CloseIcon/package.json +6 -0
  39. package/GlobeIcon/config.js +5 -17
  40. package/GlobeIcon/index.d.ts +1 -1
  41. package/GlobeIcon/index.js +6 -21
  42. package/GlobeIcon/index.test.js +11 -17
  43. package/GlobeIcon/package.json +6 -0
  44. package/Icon/__snapshots__/index.test.tsx.snap +343 -0
  45. package/Icon/index.d.ts +25 -0
  46. package/Icon/index.js +34 -0
  47. package/Icon/index.test.d.ts +1 -0
  48. package/Icon/index.test.js +82 -0
  49. package/Icon/package.json +6 -0
  50. package/MoreVertIcon/config.js +7 -19
  51. package/MoreVertIcon/index.d.ts +1 -1
  52. package/MoreVertIcon/index.js +6 -21
  53. package/MoreVertIcon/index.test.js +21 -27
  54. package/MoreVertIcon/package.json +6 -0
  55. package/SearchIcon/config.js +5 -17
  56. package/SearchIcon/index.d.ts +1 -1
  57. package/SearchIcon/index.js +6 -21
  58. package/SearchIcon/index.test.js +5 -11
  59. package/SearchIcon/package.json +6 -0
  60. package/UncheckIcon/config.js +5 -17
  61. package/UncheckIcon/index.d.ts +1 -1
  62. package/UncheckIcon/index.js +6 -21
  63. package/UncheckIcon/index.test.js +21 -27
  64. package/UncheckIcon/package.json +6 -0
  65. package/cjs/AccessibilityIcon/config.js +31 -0
  66. package/cjs/AccessibilityIcon/index.js +24 -0
  67. package/cjs/AccessibilityIcon/index.test.js +81 -0
  68. package/cjs/ArrowIcon/config.js +39 -0
  69. package/cjs/ArrowIcon/index.js +24 -0
  70. package/cjs/ArrowIcon/index.test.js +39 -0
  71. package/cjs/BurgerIcon/config.js +45 -0
  72. package/cjs/BurgerIcon/index.js +24 -0
  73. package/cjs/BurgerIcon/index.test.js +56 -0
  74. package/cjs/CaretIcon/config.js +39 -0
  75. package/cjs/CaretIcon/index.js +24 -0
  76. package/cjs/CaretIcon/index.test.js +39 -0
  77. package/cjs/CheckIcon/config.js +23 -0
  78. package/cjs/CheckIcon/index.js +24 -0
  79. package/cjs/CheckIcon/index.test.js +73 -0
  80. package/cjs/ChevronIcon/config.js +39 -0
  81. package/cjs/ChevronIcon/index.js +24 -0
  82. package/cjs/ChevronIcon/index.test.js +39 -0
  83. package/cjs/CloseIcon/config.js +23 -0
  84. package/cjs/CloseIcon/index.js +24 -0
  85. package/cjs/CloseIcon/index.test.js +15 -0
  86. package/{esm → cjs}/GlobeIcon/config.js +17 -5
  87. package/cjs/GlobeIcon/index.js +24 -0
  88. package/cjs/GlobeIcon/index.test.js +39 -0
  89. package/cjs/Icon/__snapshots__/index.test.tsx.snap +343 -0
  90. package/cjs/Icon/index.js +58 -0
  91. package/cjs/Icon/index.test.js +88 -0
  92. package/cjs/MoreVertIcon/config.js +37 -0
  93. package/cjs/MoreVertIcon/index.js +24 -0
  94. package/cjs/MoreVertIcon/index.test.js +81 -0
  95. package/cjs/SearchIcon/config.js +23 -0
  96. package/cjs/SearchIcon/index.js +24 -0
  97. package/cjs/SearchIcon/index.test.js +15 -0
  98. package/cjs/UncheckIcon/config.js +23 -0
  99. package/cjs/UncheckIcon/index.js +24 -0
  100. package/cjs/UncheckIcon/index.test.js +81 -0
  101. package/cjs/icons.js +148 -0
  102. package/cjs/index.js +148 -0
  103. package/cjs/registry.js +73 -0
  104. package/icons.d.ts +3 -0
  105. package/icons.js +12 -135
  106. package/index.d.ts +1 -0
  107. package/index.js +11 -135
  108. package/package.json +4 -5
  109. package/registry.d.ts +2 -0
  110. package/registry.js +18 -39
  111. package/src/AccessibilityIcon/index.tsx +1 -1
  112. package/src/ArrowIcon/config.tsx +6 -6
  113. package/src/ArrowIcon/index.tsx +1 -1
  114. package/src/BurgerIcon/index.tsx +1 -1
  115. package/src/CaretIcon/index.tsx +1 -1
  116. package/src/CheckIcon/index.tsx +1 -1
  117. package/src/ChevronIcon/config.tsx +37 -0
  118. package/src/ChevronIcon/index.test.tsx +20 -0
  119. package/src/ChevronIcon/index.tsx +8 -0
  120. package/src/CloseIcon/index.tsx +1 -1
  121. package/src/GlobeIcon/index.tsx +1 -1
  122. package/src/Icon/__snapshots__/index.test.tsx.snap +343 -0
  123. package/src/Icon/index.test.tsx +36 -0
  124. package/src/Icon/index.tsx +63 -0
  125. package/src/MoreVertIcon/index.tsx +1 -1
  126. package/src/SearchIcon/index.tsx +1 -1
  127. package/src/UncheckIcon/index.tsx +1 -1
  128. package/src/icons.ts +3 -0
  129. package/src/index.ts +1 -0
  130. package/src/registry.js +4 -0
  131. package/es/AccessibilityIcon/config.js +0 -19
  132. package/es/AccessibilityIcon/index.js +0 -9
  133. package/es/AccessibilityIcon/index.test.js +0 -75
  134. package/es/ArrowIcon/index.test.js +0 -33
  135. package/es/BurgerIcon/config.js +0 -32
  136. package/es/BurgerIcon/index.js +0 -9
  137. package/es/BurgerIcon/index.test.js +0 -50
  138. package/es/CaretIcon/config.js +0 -27
  139. package/es/CaretIcon/index.js +0 -9
  140. package/es/CaretIcon/index.test.js +0 -33
  141. package/es/CheckIcon/config.js +0 -11
  142. package/es/CheckIcon/index.js +0 -9
  143. package/es/CheckIcon/index.test.js +0 -67
  144. package/es/CloseIcon/config.js +0 -11
  145. package/es/CloseIcon/index.js +0 -9
  146. package/es/CloseIcon/index.test.js +0 -9
  147. package/es/GlobeIcon/config.js +0 -11
  148. package/es/GlobeIcon/index.js +0 -9
  149. package/es/GlobeIcon/index.test.js +0 -33
  150. package/es/MoreVertIcon/config.js +0 -25
  151. package/es/MoreVertIcon/index.js +0 -9
  152. package/es/MoreVertIcon/index.test.js +0 -75
  153. package/es/SearchIcon/config.js +0 -11
  154. package/es/SearchIcon/index.js +0 -9
  155. package/es/SearchIcon/index.test.js +0 -9
  156. package/es/UncheckIcon/config.js +0 -11
  157. package/es/UncheckIcon/index.js +0 -9
  158. package/es/UncheckIcon/index.test.js +0 -75
  159. package/es/icons.js +0 -11
  160. package/es/index.js +0 -10
  161. package/es/registry.js +0 -42
  162. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
  163. package/esm/AccessibilityIcon/config.js +0 -19
  164. package/esm/AccessibilityIcon/index.js +0 -9
  165. package/esm/AccessibilityIcon/index.test.js +0 -75
  166. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
  167. package/esm/ArrowIcon/config.js +0 -27
  168. package/esm/ArrowIcon/index.js +0 -9
  169. package/esm/ArrowIcon/index.test.js +0 -33
  170. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
  171. package/esm/BurgerIcon/config.js +0 -32
  172. package/esm/BurgerIcon/index.js +0 -9
  173. package/esm/BurgerIcon/index.test.js +0 -50
  174. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
  175. package/esm/CaretIcon/config.js +0 -27
  176. package/esm/CaretIcon/index.js +0 -9
  177. package/esm/CaretIcon/index.test.js +0 -33
  178. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
  179. package/esm/CheckIcon/config.js +0 -11
  180. package/esm/CheckIcon/index.js +0 -9
  181. package/esm/CheckIcon/index.test.js +0 -67
  182. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
  183. package/esm/CloseIcon/config.js +0 -11
  184. package/esm/CloseIcon/index.js +0 -9
  185. package/esm/CloseIcon/index.test.js +0 -9
  186. package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
  187. package/esm/GlobeIcon/index.js +0 -9
  188. package/esm/GlobeIcon/index.test.js +0 -33
  189. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
  190. package/esm/MoreVertIcon/config.js +0 -25
  191. package/esm/MoreVertIcon/index.js +0 -9
  192. package/esm/MoreVertIcon/index.test.js +0 -75
  193. package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
  194. package/esm/SearchIcon/config.js +0 -11
  195. package/esm/SearchIcon/index.js +0 -9
  196. package/esm/SearchIcon/index.test.js +0 -9
  197. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
  198. package/esm/UncheckIcon/config.js +0 -11
  199. package/esm/UncheckIcon/index.js +0 -9
  200. package/esm/UncheckIcon/index.test.js +0 -75
  201. package/esm/icons.js +0 -11
  202. package/esm/index.js +0 -10
  203. package/esm/registry.js +0 -42
  204. /package/{es → cjs}/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -0
  205. /package/{es → cjs}/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -0
  206. /package/{es → cjs}/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -0
  207. /package/{es → cjs}/CaretIcon/__snapshots__/index.test.tsx.snap +0 -0
  208. /package/{es → cjs}/CheckIcon/__snapshots__/index.test.tsx.snap +0 -0
  209. /package/{es → cjs}/CloseIcon/__snapshots__/index.test.tsx.snap +0 -0
  210. /package/{es → cjs}/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -0
  211. /package/{es → cjs}/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -0
  212. /package/{es → cjs}/SearchIcon/__snapshots__/index.test.tsx.snap +0 -0
  213. /package/{es → cjs}/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -0
package/index.js CHANGED
@@ -1,135 +1,11 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _AccessibilityIcon = require("@digigov/react-icons/AccessibilityIcon");
8
-
9
- Object.keys(_AccessibilityIcon).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _AccessibilityIcon[key]) return;
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-88820b1e",
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": "./esm/index.js",
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-88820b1e",
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
- "use strict";
2
-
3
- var _typeof = require("@babel/runtime/helpers/typeof");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _digigov_react_icons_AccessibilityIcon = _interopRequireWildcard(require("@digigov/react-icons/AccessibilityIcon"));
11
-
12
- var _digigov_react_icons_ArrowIcon = _interopRequireWildcard(require("@digigov/react-icons/ArrowIcon"));
13
-
14
- var _digigov_react_icons_BurgerIcon = _interopRequireWildcard(require("@digigov/react-icons/BurgerIcon"));
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
- var _default = {
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
+ };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Icon, { IconProps } from '@digigov/react-core/Icon';
2
+ import Icon, { IconProps } from '@digigov/react-icons/Icon';
3
3
 
4
4
  export const AccessibilityIcon: React.FC<IconProps<'accessibility'>> = (
5
5
  props
@@ -6,25 +6,25 @@ export interface ArrowType {
6
6
  * @value 'right'
7
7
  * @value 'up'
8
8
  * @value 'down'
9
- * @default 'right'
9
+ * @default 'up'
10
10
  */
11
11
  direction?: 'left' | 'right' | 'up' | 'down'
12
12
  }
13
13
 
14
- export const arrow: React.FC<ArrowType> = ({ direction = 'right' }) => {
14
+ export const arrow: React.FC<ArrowType> = ({ direction = 'up' }) => {
15
15
  return (
16
16
  <>
17
17
  {direction === 'left' && (
18
- <path d="M14.8,22l2.4-2.3L9.6,12l7.6-7.6L14.8,2l-10,10L14.8,22z" />
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
- <path d="M8.5,2L6.1,4.3l7.6,7.7l-7.6,7.6L8.5,22l10-10L8.5,2z" />
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
- <path d="M2,15.8l2.3,2.4l7.7-7.6l7.6,7.6l2.4-2.4l-10-10L2,15.8z" />
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
- <path d="M22,8.2l-2.3-2.4L12,13.4L4.4,5.8L2,8.2l10,10L22,8.2z" />
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
  );
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Icon, { IconProps } from '@digigov/react-core/Icon';
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>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Icon, { IconProps } from '@digigov/react-core/Icon';
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>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Icon, { IconProps } from '@digigov/react-core/Icon';
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>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Icon, { IconProps } from '@digigov/react-core/Icon';
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
+ });
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import Icon, { IconProps } from '@digigov/react-icons/Icon';
3
+
4
+ export const ChevronIcon: React.FC<IconProps<'chevron'>> = (props) => {
5
+ return <Icon {...props} icon="chevron"></Icon>;
6
+ };
7
+
8
+ export default ChevronIcon;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Icon, { IconProps } from '@digigov/react-core/Icon';
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>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Icon, { IconProps } from '@digigov/react-core/Icon';
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>;