@digigov/react-icons 1.0.0-21c8c3dc → 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.
Files changed (199) hide show
  1. package/AccessibilityIcon/config/package.json +6 -0
  2. package/AccessibilityIcon/index.js +6 -21
  3. package/{es/AccessibilityIcon/index.test.js → AccessibilityIcon/index.test/index.js} +1 -1
  4. package/AccessibilityIcon/index.test/package.json +6 -0
  5. package/AccessibilityIcon/package.json +6 -0
  6. package/ArrowIcon/config/index.js +27 -0
  7. package/ArrowIcon/config/package.json +6 -0
  8. package/ArrowIcon/config.d.ts +1 -1
  9. package/ArrowIcon/index.js +6 -21
  10. package/{esm/ArrowIcon/index.test.js → ArrowIcon/index.test/index.js} +1 -1
  11. package/ArrowIcon/index.test/package.json +6 -0
  12. package/ArrowIcon/package.json +6 -0
  13. package/BurgerIcon/config/package.json +6 -0
  14. package/BurgerIcon/index.js +6 -21
  15. package/{esm/BurgerIcon/index.test.js → BurgerIcon/index.test/index.js} +1 -1
  16. package/BurgerIcon/index.test/package.json +6 -0
  17. package/BurgerIcon/package.json +6 -0
  18. package/CaretIcon/config/package.json +6 -0
  19. package/CaretIcon/index.js +6 -21
  20. package/{esm/CaretIcon/index.test.js → CaretIcon/index.test/index.js} +1 -1
  21. package/CaretIcon/index.test/package.json +6 -0
  22. package/CaretIcon/package.json +6 -0
  23. package/CheckIcon/config/package.json +6 -0
  24. package/CheckIcon/index.js +6 -21
  25. package/{esm/CheckIcon/index.test.js → CheckIcon/index.test/index.js} +1 -1
  26. package/CheckIcon/index.test/package.json +6 -0
  27. package/CheckIcon/package.json +6 -0
  28. package/{es/ArrowIcon/config.js → ChevronIcon/config/index.js} +3 -3
  29. package/ChevronIcon/config/package.json +6 -0
  30. package/ChevronIcon/config.d.ts +14 -0
  31. package/ChevronIcon/index.d.ts +4 -0
  32. package/{es/CheckIcon → ChevronIcon}/index.js +4 -4
  33. package/ChevronIcon/index.test/index.js +33 -0
  34. package/ChevronIcon/index.test/package.json +6 -0
  35. package/ChevronIcon/index.test.d.ts +1 -0
  36. package/ChevronIcon/package.json +6 -0
  37. package/CloseIcon/config/package.json +6 -0
  38. package/CloseIcon/index.js +6 -21
  39. package/{esm/CloseIcon/index.test.js → CloseIcon/index.test/index.js} +1 -1
  40. package/CloseIcon/index.test/package.json +6 -0
  41. package/CloseIcon/package.json +6 -0
  42. package/GlobeIcon/config/package.json +6 -0
  43. package/GlobeIcon/index.js +6 -21
  44. package/{esm/GlobeIcon/index.test.js → GlobeIcon/index.test/index.js} +1 -1
  45. package/GlobeIcon/index.test/package.json +6 -0
  46. package/GlobeIcon/package.json +6 -0
  47. package/Icon/index.d.ts +1 -1
  48. package/Icon/index.js +16 -40
  49. package/{es/Icon/index.test.js → Icon/index.test/index.js} +1 -1
  50. package/Icon/index.test/package.json +6 -0
  51. package/Icon/package.json +6 -0
  52. package/MoreVertIcon/config/package.json +6 -0
  53. package/MoreVertIcon/index.js +6 -21
  54. package/{es/MoreVertIcon/index.test.js → MoreVertIcon/index.test/index.js} +1 -1
  55. package/MoreVertIcon/index.test/package.json +6 -0
  56. package/MoreVertIcon/package.json +6 -0
  57. package/SearchIcon/config/package.json +6 -0
  58. package/SearchIcon/index.js +6 -21
  59. package/{esm/SearchIcon/index.test.js → SearchIcon/index.test/index.js} +1 -1
  60. package/SearchIcon/index.test/package.json +6 -0
  61. package/SearchIcon/package.json +6 -0
  62. package/UncheckIcon/config/package.json +6 -0
  63. package/UncheckIcon/index.js +6 -21
  64. package/{esm/UncheckIcon/index.test.js → UncheckIcon/index.test/index.js} +1 -1
  65. package/UncheckIcon/index.test/package.json +6 -0
  66. package/UncheckIcon/package.json +6 -0
  67. package/cjs/AccessibilityIcon/index.js +24 -0
  68. package/{AccessibilityIcon/index.test.js → cjs/AccessibilityIcon/index.test/index.js} +10 -10
  69. package/cjs/ArrowIcon/config/index.js +39 -0
  70. package/cjs/ArrowIcon/index.js +24 -0
  71. package/{ArrowIcon/index.test.js → cjs/ArrowIcon/index.test/index.js} +5 -5
  72. package/cjs/BurgerIcon/index.js +24 -0
  73. package/{BurgerIcon/index.test.js → cjs/BurgerIcon/index.test/index.js} +7 -7
  74. package/cjs/CaretIcon/index.js +24 -0
  75. package/{CaretIcon/index.test.js → cjs/CaretIcon/index.test/index.js} +5 -5
  76. package/cjs/CheckIcon/index.js +24 -0
  77. package/{CheckIcon/index.test.js → cjs/CheckIcon/index.test/index.js} +9 -9
  78. package/{ArrowIcon/config.js → cjs/ChevronIcon/config/index.js} +5 -5
  79. package/cjs/ChevronIcon/index.js +24 -0
  80. package/cjs/ChevronIcon/index.test/index.js +39 -0
  81. package/cjs/CloseIcon/index.js +24 -0
  82. package/{CloseIcon/index.test.js → cjs/CloseIcon/index.test/index.js} +2 -2
  83. package/cjs/GlobeIcon/index.js +24 -0
  84. package/{GlobeIcon/index.test.js → cjs/GlobeIcon/index.test/index.js} +5 -5
  85. package/cjs/Icon/index.js +58 -0
  86. package/{Icon/index.test.js → cjs/Icon/index.test/index.js} +11 -11
  87. package/cjs/MoreVertIcon/index.js +24 -0
  88. package/{MoreVertIcon/index.test.js → cjs/MoreVertIcon/index.test/index.js} +10 -10
  89. package/cjs/SearchIcon/index.js +24 -0
  90. package/{SearchIcon/index.test.js → cjs/SearchIcon/index.test/index.js} +2 -2
  91. package/cjs/UncheckIcon/index.js +24 -0
  92. package/{UncheckIcon/index.test.js → cjs/UncheckIcon/index.test/index.js} +10 -10
  93. package/{icons.js → cjs/icons/index.js} +23 -10
  94. package/cjs/index.js +148 -0
  95. package/{registry.js → cjs/registry/index.js} +16 -13
  96. package/icons/index.js +12 -0
  97. package/icons/package.json +6 -0
  98. package/icons.d.ts +3 -0
  99. package/index.d.ts +1 -0
  100. package/index.js +11 -135
  101. package/package.json +4 -4
  102. package/{es/registry.js → registry/index.js} +15 -13
  103. package/registry/package.json +6 -0
  104. package/registry.d.ts +1 -0
  105. package/src/ArrowIcon/config.tsx +6 -6
  106. package/src/ChevronIcon/config.tsx +37 -0
  107. package/src/ChevronIcon/index.test.tsx +20 -0
  108. package/src/ChevronIcon/index.tsx +8 -0
  109. package/src/Icon/index.tsx +2 -2
  110. package/src/icons.ts +3 -0
  111. package/src/index.ts +1 -0
  112. package/src/registry.js +2 -0
  113. package/es/AccessibilityIcon/index.js +0 -9
  114. package/es/ArrowIcon/index.js +0 -9
  115. package/es/ArrowIcon/index.test.js +0 -33
  116. package/es/BurgerIcon/index.js +0 -9
  117. package/es/BurgerIcon/index.test.js +0 -50
  118. package/es/CaretIcon/index.js +0 -9
  119. package/es/CaretIcon/index.test.js +0 -33
  120. package/es/CheckIcon/index.test.js +0 -67
  121. package/es/CloseIcon/index.js +0 -9
  122. package/es/CloseIcon/index.test.js +0 -9
  123. package/es/GlobeIcon/index.js +0 -9
  124. package/es/GlobeIcon/index.test.js +0 -33
  125. package/es/Icon/index.js +0 -34
  126. package/es/MoreVertIcon/index.js +0 -9
  127. package/es/SearchIcon/index.js +0 -9
  128. package/es/SearchIcon/index.test.js +0 -9
  129. package/es/UncheckIcon/index.js +0 -9
  130. package/es/UncheckIcon/index.test.js +0 -75
  131. package/es/icons.js +0 -11
  132. package/es/index.js +0 -10
  133. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
  134. package/esm/AccessibilityIcon/config.js +0 -19
  135. package/esm/AccessibilityIcon/index.js +0 -9
  136. package/esm/AccessibilityIcon/index.test.js +0 -75
  137. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
  138. package/esm/ArrowIcon/config.js +0 -27
  139. package/esm/ArrowIcon/index.js +0 -9
  140. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
  141. package/esm/BurgerIcon/config.js +0 -32
  142. package/esm/BurgerIcon/index.js +0 -9
  143. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
  144. package/esm/CaretIcon/config.js +0 -27
  145. package/esm/CaretIcon/index.js +0 -9
  146. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
  147. package/esm/CheckIcon/config.js +0 -11
  148. package/esm/CheckIcon/index.js +0 -9
  149. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
  150. package/esm/CloseIcon/config.js +0 -11
  151. package/esm/CloseIcon/index.js +0 -9
  152. package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
  153. package/esm/GlobeIcon/config.js +0 -11
  154. package/esm/GlobeIcon/index.js +0 -9
  155. package/esm/Icon/__snapshots__/index.test.tsx.snap +0 -343
  156. package/esm/Icon/index.js +0 -34
  157. package/esm/Icon/index.test.js +0 -82
  158. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
  159. package/esm/MoreVertIcon/config.js +0 -25
  160. package/esm/MoreVertIcon/index.js +0 -9
  161. package/esm/MoreVertIcon/index.test.js +0 -75
  162. package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
  163. package/esm/SearchIcon/config.js +0 -11
  164. package/esm/SearchIcon/index.js +0 -9
  165. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
  166. package/esm/UncheckIcon/config.js +0 -11
  167. package/esm/UncheckIcon/index.js +0 -9
  168. package/esm/icons.js +0 -11
  169. package/esm/index.js +0 -10
  170. package/esm/registry.js +0 -44
  171. /package/{es/AccessibilityIcon/config.js → AccessibilityIcon/config/index.js} +0 -0
  172. /package/{es/BurgerIcon/config.js → BurgerIcon/config/index.js} +0 -0
  173. /package/{es/CaretIcon/config.js → CaretIcon/config/index.js} +0 -0
  174. /package/{es/CheckIcon/config.js → CheckIcon/config/index.js} +0 -0
  175. /package/{es/CloseIcon/config.js → CloseIcon/config/index.js} +0 -0
  176. /package/{es/GlobeIcon/config.js → GlobeIcon/config/index.js} +0 -0
  177. /package/{es/MoreVertIcon/config.js → MoreVertIcon/config/index.js} +0 -0
  178. /package/{es/SearchIcon/config.js → SearchIcon/config/index.js} +0 -0
  179. /package/{es/UncheckIcon/config.js → UncheckIcon/config/index.js} +0 -0
  180. /package/{es → cjs}/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -0
  181. /package/{AccessibilityIcon/config.js → cjs/AccessibilityIcon/config/index.js} +0 -0
  182. /package/{es → cjs}/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -0
  183. /package/{es → cjs}/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -0
  184. /package/{BurgerIcon/config.js → cjs/BurgerIcon/config/index.js} +0 -0
  185. /package/{es → cjs}/CaretIcon/__snapshots__/index.test.tsx.snap +0 -0
  186. /package/{CaretIcon/config.js → cjs/CaretIcon/config/index.js} +0 -0
  187. /package/{es → cjs}/CheckIcon/__snapshots__/index.test.tsx.snap +0 -0
  188. /package/{CheckIcon/config.js → cjs/CheckIcon/config/index.js} +0 -0
  189. /package/{es → cjs}/CloseIcon/__snapshots__/index.test.tsx.snap +0 -0
  190. /package/{CloseIcon/config.js → cjs/CloseIcon/config/index.js} +0 -0
  191. /package/{es → cjs}/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -0
  192. /package/{GlobeIcon/config.js → cjs/GlobeIcon/config/index.js} +0 -0
  193. /package/{es → cjs}/Icon/__snapshots__/index.test.tsx.snap +0 -0
  194. /package/{es → cjs}/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -0
  195. /package/{MoreVertIcon/config.js → cjs/MoreVertIcon/config/index.js} +0 -0
  196. /package/{es → cjs}/SearchIcon/__snapshots__/index.test.tsx.snap +0 -0
  197. /package/{SearchIcon/config.js → cjs/SearchIcon/config/index.js} +0 -0
  198. /package/{es → cjs}/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -0
  199. /package/{UncheckIcon/config.js → cjs/UncheckIcon/config/index.js} +0 -0
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/AccessibilityIcon/config/index.js"
6
+ }
@@ -1,24 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = exports.AccessibilityIcon = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
-
16
- var AccessibilityIcon = function AccessibilityIcon(props) {
17
- return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import Icon from "../Icon";
4
+ export var AccessibilityIcon = function AccessibilityIcon(props) {
5
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
18
6
  icon: "accessibility"
19
7
  }));
20
8
  };
21
-
22
- exports.AccessibilityIcon = AccessibilityIcon;
23
- var _default = AccessibilityIcon;
24
- exports["default"] = _default;
9
+ export default AccessibilityIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import AccessibilityIcon from '@digigov/react-icons/AccessibilityIcon';
3
+ import AccessibilityIcon from "./";
4
4
 
5
5
  var _ref = /*#__PURE__*/React.createElement(AccessibilityIcon, null);
6
6
 
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/AccessibilityIcon/index.test/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/AccessibilityIcon/index.js"
6
+ }
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+
3
+ var _ref2 = /*#__PURE__*/React.createElement("polygon", {
4
+ points: "14.4 19.7 8.48 13.7 21.93 13.7 22 10.37 8.48 10.32 14.4 4.4 12 2 2 12 12 22 14.4 19.7"
5
+ });
6
+
7
+ var _ref3 = /*#__PURE__*/React.createElement("polygon", {
8
+ points: "9.6 4.3 15.52 10.3 2.07 10.3 2 13.63 15.52 13.68 9.6 19.6 12 22 22 12 12 2 9.6 4.3"
9
+ });
10
+
11
+ var _ref4 = /*#__PURE__*/React.createElement("polygon", {
12
+ points: "22 12 12 2 2 12 4.3 14.4 10.3 8.48 10.3 21.93 13.63 22 13.68 8.48 19.6 14.4 22 12"
13
+ });
14
+
15
+ var _ref5 = /*#__PURE__*/React.createElement("polygon", {
16
+ points: "19.7 9.6 13.7 15.52 13.7 2.07 10.37 2 10.32 15.52 4.4 9.6 2 12 12 22 22 12 19.7 9.6"
17
+ });
18
+
19
+ export var arrow = function arrow(_ref) {
20
+ var _ref$direction = _ref.direction,
21
+ direction = _ref$direction === void 0 ? 'up' : _ref$direction;
22
+ return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
23
+ }; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
+ // @ts-ignore
25
+
26
+ arrow.props = ['direction'];
27
+ export default arrow;
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/ArrowIcon/config/index.js"
6
+ }
@@ -5,7 +5,7 @@ export interface ArrowType {
5
5
  * @value 'right'
6
6
  * @value 'up'
7
7
  * @value 'down'
8
- * @default 'right'
8
+ * @default 'up'
9
9
  */
10
10
  direction?: 'left' | 'right' | 'up' | 'down';
11
11
  }
@@ -1,24 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = exports.ArrowIcon = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
-
16
- var ArrowIcon = function ArrowIcon(props) {
17
- return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import Icon from "../Icon";
4
+ export var ArrowIcon = function ArrowIcon(props) {
5
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
18
6
  icon: "arrow"
19
7
  }));
20
8
  };
21
-
22
- exports.ArrowIcon = ArrowIcon;
23
- var _default = ArrowIcon;
24
- exports["default"] = _default;
9
+ export default ArrowIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import ArrowIcon from '@digigov/react-icons/ArrowIcon';
3
+ import ArrowIcon from "./";
4
4
 
5
5
  var _ref = /*#__PURE__*/React.createElement(ArrowIcon, null);
6
6
 
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/ArrowIcon/index.test/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/ArrowIcon/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/BurgerIcon/config/index.js"
6
+ }
@@ -1,24 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = exports.BurgerIcon = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
-
16
- var BurgerIcon = function BurgerIcon(props) {
17
- return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import Icon from "../Icon";
4
+ export var BurgerIcon = function BurgerIcon(props) {
5
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
18
6
  icon: "burger"
19
7
  }));
20
8
  };
21
-
22
- exports.BurgerIcon = BurgerIcon;
23
- var _default = BurgerIcon;
24
- exports["default"] = _default;
9
+ export default BurgerIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import BurgerIcon from '@digigov/react-icons/BurgerIcon';
3
+ import BurgerIcon from "./";
4
4
 
5
5
  var _ref = /*#__PURE__*/React.createElement(BurgerIcon, null);
6
6
 
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/BurgerIcon/index.test/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/BurgerIcon/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/CaretIcon/config/index.js"
6
+ }
@@ -1,24 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = exports.CaretIcon = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
-
16
- var CaretIcon = function CaretIcon(props) {
17
- return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import Icon from "../Icon";
4
+ export var CaretIcon = function CaretIcon(props) {
5
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
18
6
  icon: "caret"
19
7
  }));
20
8
  };
21
-
22
- exports.CaretIcon = CaretIcon;
23
- var _default = CaretIcon;
24
- exports["default"] = _default;
9
+ export default CaretIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import CaretIcon from '@digigov/react-icons/CaretIcon';
3
+ import CaretIcon from "./";
4
4
 
5
5
  var _ref = /*#__PURE__*/React.createElement(CaretIcon, null);
6
6
 
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/CaretIcon/index.test/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/CaretIcon/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/CheckIcon/config/index.js"
6
+ }
@@ -1,24 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = exports.CheckIcon = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
-
16
- var CheckIcon = function CheckIcon(props) {
17
- return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import Icon from "../Icon";
4
+ export var CheckIcon = function CheckIcon(props) {
5
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
18
6
  icon: "check"
19
7
  }));
20
8
  };
21
-
22
- exports.CheckIcon = CheckIcon;
23
- var _default = CheckIcon;
24
- exports["default"] = _default;
9
+ export default CheckIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import CheckIcon from '@digigov/react-icons/CheckIcon';
3
+ import CheckIcon from "./";
4
4
 
5
5
  var _ref = /*#__PURE__*/React.createElement(CheckIcon, null);
6
6
 
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/CheckIcon/index.test/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/CheckIcon/index.js"
6
+ }
@@ -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 arrow = function arrow(_ref) {
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
- arrow.props = ['direction'];
27
- export default arrow;
26
+ chevron.props = ['direction'];
27
+ export default chevron;
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/ChevronIcon/config/index.js"
6
+ }
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export interface ChevronType {
3
+ /**
4
+ * direction sets the direction of the chevron icon.
5
+ * @value 'left'
6
+ * @value 'right'
7
+ * @value 'up'
8
+ * @value 'down'
9
+ * @default 'right'
10
+ */
11
+ direction?: 'left' | 'right' | 'up' | 'down';
12
+ }
13
+ export declare const chevron: React.FC<ChevronType>;
14
+ export default chevron;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
+ export declare const ChevronIcon: React.FC<IconProps<'chevron'>>;
4
+ export default ChevronIcon;
@@ -1,9 +1,9 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import Icon from '@digigov/react-icons/Icon';
4
- export var CheckIcon = function CheckIcon(props) {
3
+ import Icon from "../Icon";
4
+ export var ChevronIcon = function ChevronIcon(props) {
5
5
  return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
6
- icon: "check"
6
+ icon: "chevron"
7
7
  }));
8
8
  };
9
- export default CheckIcon;
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
+ });
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/ChevronIcon/index.test/index.js"
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/ChevronIcon/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/CloseIcon/config/index.js"
6
+ }
@@ -1,24 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = exports.CloseIcon = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
-
16
- var CloseIcon = function CloseIcon(props) {
17
- return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import Icon from "../Icon";
4
+ export var CloseIcon = function CloseIcon(props) {
5
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
18
6
  icon: "close"
19
7
  }));
20
8
  };
21
-
22
- exports.CloseIcon = CloseIcon;
23
- var _default = CloseIcon;
24
- exports["default"] = _default;
9
+ export default CloseIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import CloseIcon from '@digigov/react-icons/CloseIcon';
3
+ import CloseIcon from "./";
4
4
 
5
5
  var _ref = /*#__PURE__*/React.createElement(CloseIcon, null);
6
6
 
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/CloseIcon/index.test/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/CloseIcon/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/GlobeIcon/config/index.js"
6
+ }
@@ -1,24 +1,9 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = exports.GlobeIcon = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _Icon = _interopRequireDefault(require("@digigov/react-icons/Icon"));
15
-
16
- var GlobeIcon = function GlobeIcon(props) {
17
- return /*#__PURE__*/_react["default"].createElement(_Icon["default"], (0, _extends2["default"])({}, props, {
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import React from 'react';
3
+ import Icon from "../Icon";
4
+ export var GlobeIcon = function GlobeIcon(props) {
5
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
18
6
  icon: "globe"
19
7
  }));
20
8
  };
21
-
22
- exports.GlobeIcon = GlobeIcon;
23
- var _default = GlobeIcon;
24
- exports["default"] = _default;
9
+ export default GlobeIcon;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
- import GlobeIcon from '@digigov/react-icons/GlobeIcon';
3
+ import GlobeIcon from "./";
4
4
 
5
5
  var _ref = /*#__PURE__*/React.createElement(GlobeIcon, null);
6
6
 
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../../cjs/GlobeIcon/index.test/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "main": "../cjs/GlobeIcon/index.js"
6
+ }
package/Icon/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare type IconProps<N extends keyof IconTypes> = SvgIconProps & IconTy
10
10
  ref?: React.Ref<SVGSVGElement>;
11
11
  /**
12
12
  * icon is optional, but strongly recommended.
13
- * Default value is 'arrow'.
13
+ * Default value is 'chevron'.
14
14
  * Use this prop to display the icon you want.
15
15
  */
16
16
  icon?: N;