@digigov/react-icons 1.0.0-480e3d97 → 1.0.0-51c931ab

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 (219) hide show
  1. package/AccessibilityIcon/config/package.json +6 -0
  2. package/AccessibilityIcon/index.d.ts +1 -1
  3. package/AccessibilityIcon/index.js +6 -21
  4. package/{es/AccessibilityIcon/index.test.js → AccessibilityIcon/index.test/index.js} +1 -1
  5. package/AccessibilityIcon/index.test/package.json +6 -0
  6. package/AccessibilityIcon/package.json +6 -0
  7. package/ArrowIcon/config/index.js +27 -0
  8. package/ArrowIcon/config/package.json +6 -0
  9. package/ArrowIcon/config.d.ts +1 -1
  10. package/ArrowIcon/index.d.ts +1 -1
  11. package/ArrowIcon/index.js +6 -21
  12. package/{esm/ArrowIcon/index.test.js → ArrowIcon/index.test/index.js} +1 -1
  13. package/ArrowIcon/index.test/package.json +6 -0
  14. package/ArrowIcon/package.json +6 -0
  15. package/BurgerIcon/config/package.json +6 -0
  16. package/BurgerIcon/index.d.ts +1 -1
  17. package/BurgerIcon/index.js +6 -21
  18. package/{esm/BurgerIcon/index.test.js → BurgerIcon/index.test/index.js} +1 -1
  19. package/BurgerIcon/index.test/package.json +6 -0
  20. package/BurgerIcon/package.json +6 -0
  21. package/CaretIcon/config/package.json +6 -0
  22. package/CaretIcon/index.d.ts +1 -1
  23. package/CaretIcon/index.js +6 -21
  24. package/{esm/CaretIcon/index.test.js → CaretIcon/index.test/index.js} +1 -1
  25. package/CaretIcon/index.test/package.json +6 -0
  26. package/CaretIcon/package.json +6 -0
  27. package/CheckIcon/config/package.json +6 -0
  28. package/CheckIcon/index.d.ts +1 -1
  29. package/CheckIcon/index.js +6 -21
  30. package/{esm/CheckIcon/index.test.js → CheckIcon/index.test/index.js} +1 -1
  31. package/CheckIcon/index.test/package.json +6 -0
  32. package/CheckIcon/package.json +6 -0
  33. package/{es/ArrowIcon/config.js → ChevronIcon/config/index.js} +3 -3
  34. package/ChevronIcon/config/package.json +6 -0
  35. package/ChevronIcon/config.d.ts +14 -0
  36. package/ChevronIcon/index.d.ts +4 -0
  37. package/{es/CheckIcon → ChevronIcon}/index.js +4 -4
  38. package/ChevronIcon/index.test/index.js +33 -0
  39. package/ChevronIcon/index.test/package.json +6 -0
  40. package/ChevronIcon/index.test.d.ts +1 -0
  41. package/ChevronIcon/package.json +6 -0
  42. package/CloseIcon/config/package.json +6 -0
  43. package/CloseIcon/index.d.ts +1 -1
  44. package/CloseIcon/index.js +6 -21
  45. package/{esm/CloseIcon/index.test.js → CloseIcon/index.test/index.js} +1 -1
  46. package/CloseIcon/index.test/package.json +6 -0
  47. package/CloseIcon/package.json +6 -0
  48. package/GlobeIcon/config/package.json +6 -0
  49. package/GlobeIcon/index.d.ts +1 -1
  50. package/GlobeIcon/index.js +6 -21
  51. package/{esm/GlobeIcon/index.test.js → GlobeIcon/index.test/index.js} +1 -1
  52. package/GlobeIcon/index.test/package.json +6 -0
  53. package/GlobeIcon/package.json +6 -0
  54. package/Icon/__snapshots__/index.test.tsx.snap +343 -0
  55. package/Icon/index.d.ts +25 -0
  56. package/Icon/index.js +34 -0
  57. package/Icon/index.test/index.js +82 -0
  58. package/Icon/index.test/package.json +6 -0
  59. package/Icon/index.test.d.ts +1 -0
  60. package/Icon/package.json +6 -0
  61. package/MoreVertIcon/config/package.json +6 -0
  62. package/MoreVertIcon/index.d.ts +1 -1
  63. package/MoreVertIcon/index.js +6 -21
  64. package/{es/MoreVertIcon/index.test.js → MoreVertIcon/index.test/index.js} +1 -1
  65. package/MoreVertIcon/index.test/package.json +6 -0
  66. package/MoreVertIcon/package.json +6 -0
  67. package/SearchIcon/config/package.json +6 -0
  68. package/SearchIcon/index.d.ts +1 -1
  69. package/SearchIcon/index.js +6 -21
  70. package/{esm/SearchIcon/index.test.js → SearchIcon/index.test/index.js} +1 -1
  71. package/SearchIcon/index.test/package.json +6 -0
  72. package/SearchIcon/package.json +6 -0
  73. package/UncheckIcon/config/package.json +6 -0
  74. package/UncheckIcon/index.d.ts +1 -1
  75. package/UncheckIcon/index.js +6 -21
  76. package/{esm/UncheckIcon/index.test.js → UncheckIcon/index.test/index.js} +1 -1
  77. package/UncheckIcon/index.test/package.json +6 -0
  78. package/UncheckIcon/package.json +6 -0
  79. package/cjs/AccessibilityIcon/index.js +24 -0
  80. package/{AccessibilityIcon/index.test.js → cjs/AccessibilityIcon/index.test/index.js} +10 -10
  81. package/cjs/ArrowIcon/config/index.js +39 -0
  82. package/cjs/ArrowIcon/index.js +24 -0
  83. package/{ArrowIcon/index.test.js → cjs/ArrowIcon/index.test/index.js} +5 -5
  84. package/cjs/BurgerIcon/index.js +24 -0
  85. package/{BurgerIcon/index.test.js → cjs/BurgerIcon/index.test/index.js} +7 -7
  86. package/cjs/CaretIcon/index.js +24 -0
  87. package/{CaretIcon/index.test.js → cjs/CaretIcon/index.test/index.js} +5 -5
  88. package/cjs/CheckIcon/index.js +24 -0
  89. package/{CheckIcon/index.test.js → cjs/CheckIcon/index.test/index.js} +9 -9
  90. package/{ArrowIcon/config.js → cjs/ChevronIcon/config/index.js} +5 -5
  91. package/cjs/ChevronIcon/index.js +24 -0
  92. package/cjs/ChevronIcon/index.test/index.js +39 -0
  93. package/cjs/CloseIcon/index.js +24 -0
  94. package/{CloseIcon/index.test.js → cjs/CloseIcon/index.test/index.js} +2 -2
  95. package/cjs/GlobeIcon/index.js +24 -0
  96. package/{GlobeIcon/index.test.js → cjs/GlobeIcon/index.test/index.js} +5 -5
  97. package/cjs/Icon/__snapshots__/index.test.tsx.snap +343 -0
  98. package/cjs/Icon/index.js +58 -0
  99. package/cjs/Icon/index.test/index.js +88 -0
  100. package/cjs/MoreVertIcon/index.js +24 -0
  101. package/{MoreVertIcon/index.test.js → cjs/MoreVertIcon/index.test/index.js} +10 -10
  102. package/cjs/SearchIcon/index.js +24 -0
  103. package/{SearchIcon/index.test.js → cjs/SearchIcon/index.test/index.js} +2 -2
  104. package/cjs/UncheckIcon/index.js +24 -0
  105. package/{UncheckIcon/index.test.js → cjs/UncheckIcon/index.test/index.js} +10 -10
  106. package/{icons.js → cjs/icons/index.js} +23 -10
  107. package/cjs/index.js +148 -0
  108. package/{registry.js → cjs/registry/index.js} +18 -12
  109. package/icons/index.js +12 -0
  110. package/icons/package.json +6 -0
  111. package/icons.d.ts +3 -0
  112. package/index.d.ts +1 -0
  113. package/index.js +11 -135
  114. package/package.json +4 -5
  115. package/{es/registry.js → registry/index.js} +16 -12
  116. package/registry/package.json +6 -0
  117. package/registry.d.ts +2 -0
  118. package/src/AccessibilityIcon/index.tsx +1 -1
  119. package/src/ArrowIcon/config.tsx +6 -6
  120. package/src/ArrowIcon/index.tsx +1 -1
  121. package/src/BurgerIcon/index.tsx +1 -1
  122. package/src/CaretIcon/index.tsx +1 -1
  123. package/src/CheckIcon/index.tsx +1 -1
  124. package/src/ChevronIcon/config.tsx +37 -0
  125. package/src/ChevronIcon/index.test.tsx +20 -0
  126. package/src/ChevronIcon/index.tsx +8 -0
  127. package/src/CloseIcon/index.tsx +1 -1
  128. package/src/GlobeIcon/index.tsx +1 -1
  129. package/src/Icon/__snapshots__/index.test.tsx.snap +343 -0
  130. package/src/Icon/index.test.tsx +36 -0
  131. package/src/Icon/index.tsx +63 -0
  132. package/src/MoreVertIcon/index.tsx +1 -1
  133. package/src/SearchIcon/index.tsx +1 -1
  134. package/src/UncheckIcon/index.tsx +1 -1
  135. package/src/icons.ts +3 -0
  136. package/src/index.ts +1 -0
  137. package/src/registry.js +4 -0
  138. package/es/AccessibilityIcon/index.js +0 -9
  139. package/es/ArrowIcon/index.js +0 -9
  140. package/es/ArrowIcon/index.test.js +0 -33
  141. package/es/BurgerIcon/index.js +0 -9
  142. package/es/BurgerIcon/index.test.js +0 -50
  143. package/es/CaretIcon/index.js +0 -9
  144. package/es/CaretIcon/index.test.js +0 -33
  145. package/es/CheckIcon/index.test.js +0 -67
  146. package/es/CloseIcon/index.js +0 -9
  147. package/es/CloseIcon/index.test.js +0 -9
  148. package/es/GlobeIcon/index.js +0 -9
  149. package/es/GlobeIcon/index.test.js +0 -33
  150. package/es/MoreVertIcon/index.js +0 -9
  151. package/es/SearchIcon/index.js +0 -9
  152. package/es/SearchIcon/index.test.js +0 -9
  153. package/es/UncheckIcon/index.js +0 -9
  154. package/es/UncheckIcon/index.test.js +0 -75
  155. package/es/icons.js +0 -11
  156. package/es/index.js +0 -10
  157. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
  158. package/esm/AccessibilityIcon/config.js +0 -19
  159. package/esm/AccessibilityIcon/index.js +0 -9
  160. package/esm/AccessibilityIcon/index.test.js +0 -75
  161. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
  162. package/esm/ArrowIcon/config.js +0 -27
  163. package/esm/ArrowIcon/index.js +0 -9
  164. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
  165. package/esm/BurgerIcon/config.js +0 -32
  166. package/esm/BurgerIcon/index.js +0 -9
  167. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
  168. package/esm/CaretIcon/config.js +0 -27
  169. package/esm/CaretIcon/index.js +0 -9
  170. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
  171. package/esm/CheckIcon/config.js +0 -11
  172. package/esm/CheckIcon/index.js +0 -9
  173. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
  174. package/esm/CloseIcon/config.js +0 -11
  175. package/esm/CloseIcon/index.js +0 -9
  176. package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
  177. package/esm/GlobeIcon/config.js +0 -11
  178. package/esm/GlobeIcon/index.js +0 -9
  179. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
  180. package/esm/MoreVertIcon/config.js +0 -25
  181. package/esm/MoreVertIcon/index.js +0 -9
  182. package/esm/MoreVertIcon/index.test.js +0 -75
  183. package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
  184. package/esm/SearchIcon/config.js +0 -11
  185. package/esm/SearchIcon/index.js +0 -9
  186. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
  187. package/esm/UncheckIcon/config.js +0 -11
  188. package/esm/UncheckIcon/index.js +0 -9
  189. package/esm/icons.js +0 -11
  190. package/esm/index.js +0 -10
  191. package/esm/registry.js +0 -42
  192. /package/{es/AccessibilityIcon/config.js → AccessibilityIcon/config/index.js} +0 -0
  193. /package/{es/BurgerIcon/config.js → BurgerIcon/config/index.js} +0 -0
  194. /package/{es/CaretIcon/config.js → CaretIcon/config/index.js} +0 -0
  195. /package/{es/CheckIcon/config.js → CheckIcon/config/index.js} +0 -0
  196. /package/{es/CloseIcon/config.js → CloseIcon/config/index.js} +0 -0
  197. /package/{es/GlobeIcon/config.js → GlobeIcon/config/index.js} +0 -0
  198. /package/{es/MoreVertIcon/config.js → MoreVertIcon/config/index.js} +0 -0
  199. /package/{es/SearchIcon/config.js → SearchIcon/config/index.js} +0 -0
  200. /package/{es/UncheckIcon/config.js → UncheckIcon/config/index.js} +0 -0
  201. /package/{es → cjs}/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -0
  202. /package/{AccessibilityIcon/config.js → cjs/AccessibilityIcon/config/index.js} +0 -0
  203. /package/{es → cjs}/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -0
  204. /package/{es → cjs}/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -0
  205. /package/{BurgerIcon/config.js → cjs/BurgerIcon/config/index.js} +0 -0
  206. /package/{es → cjs}/CaretIcon/__snapshots__/index.test.tsx.snap +0 -0
  207. /package/{CaretIcon/config.js → cjs/CaretIcon/config/index.js} +0 -0
  208. /package/{es → cjs}/CheckIcon/__snapshots__/index.test.tsx.snap +0 -0
  209. /package/{CheckIcon/config.js → cjs/CheckIcon/config/index.js} +0 -0
  210. /package/{es → cjs}/CloseIcon/__snapshots__/index.test.tsx.snap +0 -0
  211. /package/{CloseIcon/config.js → cjs/CloseIcon/config/index.js} +0 -0
  212. /package/{es → cjs}/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -0
  213. /package/{GlobeIcon/config.js → cjs/GlobeIcon/config/index.js} +0 -0
  214. /package/{es → cjs}/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -0
  215. /package/{MoreVertIcon/config.js → cjs/MoreVertIcon/config/index.js} +0 -0
  216. /package/{es → cjs}/SearchIcon/__snapshots__/index.test.tsx.snap +0 -0
  217. /package/{SearchIcon/config.js → cjs/SearchIcon/config/index.js} +0 -0
  218. /package/{es → cjs}/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -0
  219. /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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const AccessibilityIcon: React.FC<IconProps<'accessibility'>>;
4
4
  export default AccessibilityIcon;
@@ -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-core/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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const ArrowIcon: React.FC<IconProps<'arrow'>>;
4
4
  export default ArrowIcon;
@@ -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-core/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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const BurgerIcon: React.FC<IconProps<'burger'>>;
4
4
  export default BurgerIcon;
@@ -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-core/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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const CaretIcon: React.FC<IconProps<'caret'>>;
4
4
  export default CaretIcon;
@@ -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-core/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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const CheckIcon: React.FC<IconProps<'check'>>;
4
4
  export default CheckIcon;
@@ -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-core/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-core/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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const CloseIcon: React.FC<IconProps<'close'>>;
4
4
  export default CloseIcon;
@@ -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-core/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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { IconProps } from '@digigov/react-core/Icon';
2
+ import { IconProps } from '@digigov/react-icons/Icon';
3
3
  export declare const GlobeIcon: React.FC<IconProps<'globe'>>;
4
4
  export default GlobeIcon;
@@ -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-core/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;