@digigov/react-icons 1.0.0-rc.3 → 1.0.0-rc.5

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 (201) hide show
  1. package/{es/AccessibilityIcon/config.js → AccessibilityIcon/config/index.js} +0 -4
  2. package/AccessibilityIcon/config/package.json +6 -0
  3. package/AccessibilityIcon/index.js +6 -21
  4. package/{es/AccessibilityIcon/index.test.js → AccessibilityIcon/index.test/index.js} +0 -18
  5. package/AccessibilityIcon/index.test/package.json +6 -0
  6. package/AccessibilityIcon/package.json +6 -0
  7. package/ArrowIcon/config/index.js +22 -0
  8. package/ArrowIcon/config/package.json +6 -0
  9. package/ArrowIcon/config.d.ts +6 -6
  10. package/ArrowIcon/index.js +6 -21
  11. package/{esm/ArrowIcon/index.test.js → ArrowIcon/index.test/index.js} +0 -8
  12. package/ArrowIcon/index.test/package.json +6 -0
  13. package/ArrowIcon/package.json +6 -0
  14. package/{esm/BurgerIcon/config.js → BurgerIcon/config/index.js} +3 -7
  15. package/BurgerIcon/config/package.json +6 -0
  16. package/BurgerIcon/config.d.ts +1 -1
  17. package/BurgerIcon/index.js +6 -21
  18. package/{esm/BurgerIcon/index.test.js → BurgerIcon/index.test/index.js} +0 -12
  19. package/BurgerIcon/index.test/package.json +6 -0
  20. package/BurgerIcon/package.json +6 -0
  21. package/{esm/CaretIcon/config.js → CaretIcon/config/index.js} +3 -8
  22. package/CaretIcon/config/package.json +6 -0
  23. package/CaretIcon/config.d.ts +6 -6
  24. package/CaretIcon/index.js +6 -21
  25. package/{esm/CaretIcon/index.test.js → CaretIcon/index.test/index.js} +0 -8
  26. package/CaretIcon/index.test/package.json +6 -0
  27. package/CaretIcon/package.json +6 -0
  28. package/{es/CheckIcon/config.js → CheckIcon/config/index.js} +0 -2
  29. package/CheckIcon/config/package.json +6 -0
  30. package/CheckIcon/index.js +6 -21
  31. package/{esm/CheckIcon/index.test.js → CheckIcon/index.test/index.js} +0 -16
  32. package/CheckIcon/index.test/package.json +6 -0
  33. package/CheckIcon/package.json +6 -0
  34. package/{es/ArrowIcon/config.js → ChevronIcon/config/index.js} +6 -11
  35. package/ChevronIcon/config/package.json +6 -0
  36. package/ChevronIcon/config.d.ts +14 -0
  37. package/ChevronIcon/index.d.ts +4 -0
  38. package/{es/CheckIcon → ChevronIcon}/index.js +3 -3
  39. package/ChevronIcon/index.test/index.js +25 -0
  40. package/ChevronIcon/index.test/package.json +6 -0
  41. package/ChevronIcon/index.test.d.ts +1 -0
  42. package/ChevronIcon/package.json +6 -0
  43. package/{esm/CloseIcon/config.js → CloseIcon/config/index.js} +0 -2
  44. package/CloseIcon/config/package.json +6 -0
  45. package/CloseIcon/index.js +6 -21
  46. package/{es/CloseIcon/index.test.js → CloseIcon/index.test/index.js} +0 -2
  47. package/CloseIcon/index.test/package.json +6 -0
  48. package/CloseIcon/package.json +6 -0
  49. package/{esm/GlobeIcon/config.js → GlobeIcon/config/index.js} +0 -2
  50. package/GlobeIcon/config/package.json +6 -0
  51. package/GlobeIcon/index.js +6 -21
  52. package/{esm/GlobeIcon/index.test.js → GlobeIcon/index.test/index.js} +0 -8
  53. package/GlobeIcon/index.test/package.json +6 -0
  54. package/GlobeIcon/package.json +6 -0
  55. package/Icon/index.d.ts +4 -4
  56. package/Icon/index.js +18 -44
  57. package/{es/Icon/index.test.js → Icon/index.test/index.js} +0 -20
  58. package/Icon/index.test/package.json +6 -0
  59. package/Icon/package.json +6 -0
  60. package/{es/MoreVertIcon/config.js → MoreVertIcon/config/index.js} +0 -4
  61. package/MoreVertIcon/config/package.json +6 -0
  62. package/MoreVertIcon/index.js +6 -21
  63. package/{es/MoreVertIcon/index.test.js → MoreVertIcon/index.test/index.js} +0 -18
  64. package/MoreVertIcon/index.test/package.json +6 -0
  65. package/MoreVertIcon/package.json +6 -0
  66. package/{esm/SearchIcon/config.js → SearchIcon/config/index.js} +0 -2
  67. package/SearchIcon/config/package.json +6 -0
  68. package/SearchIcon/index.js +6 -21
  69. package/{esm/SearchIcon/index.test.js → SearchIcon/index.test/index.js} +0 -2
  70. package/SearchIcon/index.test/package.json +6 -0
  71. package/SearchIcon/package.json +6 -0
  72. package/{esm/UncheckIcon/config.js → UncheckIcon/config/index.js} +0 -2
  73. package/UncheckIcon/config/package.json +6 -0
  74. package/UncheckIcon/index.js +6 -21
  75. package/{esm/UncheckIcon/index.test.js → UncheckIcon/index.test/index.js} +0 -18
  76. package/UncheckIcon/index.test/package.json +6 -0
  77. package/UncheckIcon/package.json +6 -0
  78. package/{AccessibilityIcon/config.js → cjs/AccessibilityIcon/config/index.js} +1 -9
  79. package/cjs/AccessibilityIcon/index.js +16 -0
  80. package/{AccessibilityIcon/index.test.js → cjs/AccessibilityIcon/index.test/index.js} +0 -21
  81. package/cjs/ArrowIcon/config/index.js +29 -0
  82. package/cjs/ArrowIcon/index.js +16 -0
  83. package/{ArrowIcon/index.test.js → cjs/ArrowIcon/index.test/index.js} +0 -11
  84. package/{BurgerIcon/config.js → cjs/BurgerIcon/config/index.js} +5 -15
  85. package/cjs/BurgerIcon/index.js +16 -0
  86. package/{BurgerIcon/index.test.js → cjs/BurgerIcon/index.test/index.js} +0 -15
  87. package/{CaretIcon/config.js → cjs/CaretIcon/config/index.js} +5 -15
  88. package/cjs/CaretIcon/index.js +16 -0
  89. package/{CaretIcon/index.test.js → cjs/CaretIcon/index.test/index.js} +0 -11
  90. package/{CheckIcon/config.js → cjs/CheckIcon/config/index.js} +1 -7
  91. package/cjs/CheckIcon/index.js +16 -0
  92. package/{CheckIcon/index.test.js → cjs/CheckIcon/index.test/index.js} +0 -19
  93. package/{ArrowIcon/config.js → cjs/ChevronIcon/config/index.js} +7 -17
  94. package/cjs/ChevronIcon/index.js +16 -0
  95. package/cjs/ChevronIcon/index.test/index.js +28 -0
  96. package/{CloseIcon/config.js → cjs/CloseIcon/config/index.js} +1 -7
  97. package/cjs/CloseIcon/index.js +16 -0
  98. package/{CloseIcon/index.test.js → cjs/CloseIcon/index.test/index.js} +0 -5
  99. package/{GlobeIcon/config.js → cjs/GlobeIcon/config/index.js} +1 -7
  100. package/cjs/GlobeIcon/index.js +16 -0
  101. package/{GlobeIcon/index.test.js → cjs/GlobeIcon/index.test/index.js} +0 -11
  102. package/cjs/Icon/index.js +42 -0
  103. package/{Icon/index.test.js → cjs/Icon/index.test/index.js} +0 -23
  104. package/{MoreVertIcon/config.js → cjs/MoreVertIcon/config/index.js} +1 -9
  105. package/cjs/MoreVertIcon/index.js +16 -0
  106. package/{MoreVertIcon/index.test.js → cjs/MoreVertIcon/index.test/index.js} +0 -21
  107. package/{SearchIcon/config.js → cjs/SearchIcon/config/index.js} +1 -7
  108. package/cjs/SearchIcon/index.js +16 -0
  109. package/{SearchIcon/index.test.js → cjs/SearchIcon/index.test/index.js} +0 -5
  110. package/{UncheckIcon/config.js → cjs/UncheckIcon/config/index.js} +1 -7
  111. package/cjs/UncheckIcon/index.js +16 -0
  112. package/{UncheckIcon/index.test.js → cjs/UncheckIcon/index.test/index.js} +0 -21
  113. package/{icons.js → cjs/icons/index.js} +17 -26
  114. package/cjs/index.js +126 -0
  115. package/{registry.js → cjs/registry/index.js} +6 -23
  116. package/{es/icons.js → icons/index.js} +1 -0
  117. package/icons/package.json +6 -0
  118. package/icons.d.ts +3 -0
  119. package/index.d.ts +1 -0
  120. package/index.js +11 -135
  121. package/package.json +4 -4
  122. package/{es/registry.js → registry/index.js} +2 -2
  123. package/registry/package.json +6 -0
  124. package/registry.d.ts +2 -1
  125. package/src/ArrowIcon/config.tsx +12 -12
  126. package/src/CaretIcon/config.tsx +7 -7
  127. package/src/ChevronIcon/config.tsx +37 -0
  128. package/src/ChevronIcon/index.test.tsx +20 -0
  129. package/src/ChevronIcon/index.tsx +8 -0
  130. package/src/Icon/index.tsx +2 -2
  131. package/src/icons.ts +3 -0
  132. package/src/index.ts +1 -0
  133. package/src/registry.js +22 -12
  134. package/es/AccessibilityIcon/index.js +0 -9
  135. package/es/ArrowIcon/index.js +0 -9
  136. package/es/ArrowIcon/index.test.js +0 -33
  137. package/es/BurgerIcon/config.js +0 -32
  138. package/es/BurgerIcon/index.js +0 -9
  139. package/es/BurgerIcon/index.test.js +0 -50
  140. package/es/CaretIcon/config.js +0 -27
  141. package/es/CaretIcon/index.js +0 -9
  142. package/es/CaretIcon/index.test.js +0 -33
  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/GlobeIcon/config.js +0 -11
  147. package/es/GlobeIcon/index.js +0 -9
  148. package/es/GlobeIcon/index.test.js +0 -33
  149. package/es/Icon/index.js +0 -34
  150. package/es/MoreVertIcon/index.js +0 -9
  151. package/es/SearchIcon/config.js +0 -11
  152. package/es/SearchIcon/index.js +0 -9
  153. package/es/SearchIcon/index.test.js +0 -9
  154. package/es/UncheckIcon/config.js +0 -11
  155. package/es/UncheckIcon/index.js +0 -9
  156. package/es/UncheckIcon/index.test.js +0 -75
  157. package/es/index.js +0 -10
  158. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -408
  159. package/esm/AccessibilityIcon/config.js +0 -19
  160. package/esm/AccessibilityIcon/index.js +0 -9
  161. package/esm/AccessibilityIcon/index.test.js +0 -75
  162. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -148
  163. package/esm/ArrowIcon/config.js +0 -27
  164. package/esm/ArrowIcon/index.js +0 -9
  165. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -320
  166. package/esm/BurgerIcon/index.js +0 -9
  167. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +0 -148
  168. package/esm/CaretIcon/index.js +0 -9
  169. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +0 -299
  170. package/esm/CheckIcon/config.js +0 -11
  171. package/esm/CheckIcon/index.js +0 -9
  172. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +0 -34
  173. package/esm/CloseIcon/index.js +0 -9
  174. package/esm/CloseIcon/index.test.js +0 -9
  175. package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -149
  176. package/esm/GlobeIcon/index.js +0 -9
  177. package/esm/Icon/__snapshots__/index.test.tsx.snap +0 -343
  178. package/esm/Icon/index.js +0 -34
  179. package/esm/Icon/index.test.js +0 -82
  180. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -444
  181. package/esm/MoreVertIcon/config.js +0 -25
  182. package/esm/MoreVertIcon/index.js +0 -9
  183. package/esm/MoreVertIcon/index.test.js +0 -75
  184. package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +0 -34
  185. package/esm/SearchIcon/index.js +0 -9
  186. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -336
  187. package/esm/UncheckIcon/index.js +0 -9
  188. package/esm/icons.js +0 -11
  189. package/esm/index.js +0 -10
  190. package/esm/registry.js +0 -44
  191. /package/{es → cjs}/AccessibilityIcon/__snapshots__/index.test.tsx.snap +0 -0
  192. /package/{es → cjs}/ArrowIcon/__snapshots__/index.test.tsx.snap +0 -0
  193. /package/{es → cjs}/BurgerIcon/__snapshots__/index.test.tsx.snap +0 -0
  194. /package/{es → cjs}/CaretIcon/__snapshots__/index.test.tsx.snap +0 -0
  195. /package/{es → cjs}/CheckIcon/__snapshots__/index.test.tsx.snap +0 -0
  196. /package/{es → cjs}/CloseIcon/__snapshots__/index.test.tsx.snap +0 -0
  197. /package/{es → cjs}/GlobeIcon/__snapshots__/index.test.tsx.snap +0 -0
  198. /package/{es → cjs}/Icon/__snapshots__/index.test.tsx.snap +0 -0
  199. /package/{es → cjs}/MoreVertIcon/__snapshots__/index.test.tsx.snap +0 -0
  200. /package/{es → cjs}/SearchIcon/__snapshots__/index.test.tsx.snap +0 -0
  201. /package/{es → cjs}/UncheckIcon/__snapshots__/index.test.tsx.snap +0 -0
@@ -1,17 +1,13 @@
1
1
  import React from 'react';
2
-
3
2
  var _ref = /*#__PURE__*/React.createElement("title", null, "\u039C\u03B5\u03BD\u03BF\u03CD \u03A0\u03C1\u03BF\u03C3\u03B2\u03B1\u03C3\u03B9\u03BC\u03CC\u03C4\u03B7\u03C4\u03B1\u03C2");
4
-
5
3
  var _ref2 = /*#__PURE__*/React.createElement("circle", {
6
4
  cx: "12",
7
5
  cy: "3",
8
6
  r: "3"
9
7
  });
10
-
11
8
  var _ref3 = /*#__PURE__*/React.createElement("path", {
12
9
  d: "M19.76,6.13c-4.94,2.01-10.57,2.01-15.51,0c-0.71-0.3-1.55-0.04-1.98,0.66c-1.41,2.6,3.27,3.76,4.94,4.37 c0.4,0.11,0.81,0.2,1.22,0.28c0.56,0.11,0.92,0.67,0.79,1.25c-0.79,3.66-1.96,9.1-1.96,9.1c-0.46,2.27,2.72,3.15,3.39,0.92L12,17.93 l1.36,4.78c0.67,2.22,3.85,1.36,3.39-0.92c0,0-1.16-5.4-1.95-9.06c-0.12-0.57,0.22-1.16,0.77-1.27c2.01-0.41,3.94-1.17,5.68-2.31 C22.89,8.04,21.58,5.38,19.76,6.13z"
13
10
  });
14
-
15
11
  export function accessibility() {
16
12
  return /*#__PURE__*/React.createElement(React.Fragment, null, _ref, _ref2, _ref3);
17
13
  }
@@ -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 '@digigov/react-icons/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,75 +1,57 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
3
  import AccessibilityIcon from '@digigov/react-icons/AccessibilityIcon';
4
-
5
4
  var _ref = /*#__PURE__*/React.createElement(AccessibilityIcon, null);
6
-
7
5
  it('renders the AccessibilityIcon with no props', function () {
8
6
  expect(mount(_ref)).toMatchSnapshot();
9
7
  });
10
-
11
8
  var _ref2 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
12
9
  size: "sm"
13
10
  });
14
-
15
11
  it('renders the AccessibilityIcon with prop size=s', function () {
16
12
  expect(mount(_ref2)).toMatchSnapshot();
17
13
  });
18
-
19
14
  var _ref3 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
20
15
  size: "lg"
21
16
  });
22
-
23
17
  it('renders the AccessibilityIcon with prop size=l', function () {
24
18
  expect(mount(_ref3)).toMatchSnapshot();
25
19
  });
26
-
27
20
  var _ref4 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
28
21
  variant: "dark"
29
22
  });
30
-
31
23
  it('renders the AccessibilityIcon with prop variant=dark', function () {
32
24
  expect(mount(_ref4)).toMatchSnapshot();
33
25
  });
34
-
35
26
  var _ref5 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
36
27
  variant: "primary"
37
28
  });
38
-
39
29
  it('renders the AccessibilityIcon with prop variant=primary', function () {
40
30
  expect(mount(_ref5)).toMatchSnapshot();
41
31
  });
42
-
43
32
  var _ref6 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
44
33
  variant: "success"
45
34
  });
46
-
47
35
  it('renders the AccessibilityIcon with prop variant=success', function () {
48
36
  expect(mount(_ref6)).toMatchSnapshot();
49
37
  });
50
-
51
38
  var _ref7 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
52
39
  variant: "error"
53
40
  });
54
-
55
41
  it('renders the AccessibilityIcon with prop variant=error', function () {
56
42
  expect(mount(_ref7)).toMatchSnapshot();
57
43
  });
58
-
59
44
  var _ref8 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
60
45
  variant: "warning",
61
46
  size: "sm"
62
47
  });
63
-
64
48
  it('renders the AccessibilityIcon with prop variant=warning and size=s', function () {
65
49
  expect(mount(_ref8)).toMatchSnapshot();
66
50
  });
67
-
68
51
  var _ref9 = /*#__PURE__*/React.createElement(AccessibilityIcon, {
69
52
  variant: "warning",
70
53
  size: "xl"
71
54
  });
72
-
73
55
  it('renders the AccessibilityIcon with prop variant=error and size= xl', function () {
74
56
  expect(mount(_ref9)).toMatchSnapshot();
75
57
  });
@@ -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,22 @@
1
+ import React from 'react';
2
+ var _ref2 = /*#__PURE__*/React.createElement("polygon", {
3
+ 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"
4
+ });
5
+ var _ref3 = /*#__PURE__*/React.createElement("polygon", {
6
+ 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"
7
+ });
8
+ var _ref4 = /*#__PURE__*/React.createElement("polygon", {
9
+ 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"
10
+ });
11
+ var _ref5 = /*#__PURE__*/React.createElement("polygon", {
12
+ 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"
13
+ });
14
+ export var arrow = function arrow(_ref) {
15
+ var _ref$direction = _ref.direction,
16
+ direction = _ref$direction === void 0 ? 'up' : _ref$direction;
17
+ return /*#__PURE__*/React.createElement(React.Fragment, null, direction === 'left' && _ref2, direction === 'right' && _ref3, direction === 'up' && _ref4, direction === 'down' && _ref5);
18
+ };
19
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
20
+ // @ts-ignore
21
+ arrow.props = ['direction'];
22
+ 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
+ }
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  export interface ArrowType {
3
3
  /**
4
- * @value 'left'
5
- * @value 'right'
6
- * @value 'up'
7
- * @value 'down'
8
- * @default 'right'
9
- */
4
+ * @value 'left'
5
+ * @value 'right'
6
+ * @value 'up'
7
+ * @value 'down'
8
+ * @default 'up'
9
+ */
10
10
  direction?: 'left' | 'right' | 'up' | 'down';
11
11
  }
12
12
  export declare const arrow: React.FC<ArrowType>;
@@ -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 '@digigov/react-icons/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,33 +1,25 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
3
  import ArrowIcon from '@digigov/react-icons/ArrowIcon';
4
-
5
4
  var _ref = /*#__PURE__*/React.createElement(ArrowIcon, null);
6
-
7
5
  it('renders the ArrowIcon with no props, direction prop is right by default', function () {
8
6
  expect(mount(_ref)).toMatchSnapshot();
9
7
  });
10
-
11
8
  var _ref2 = /*#__PURE__*/React.createElement(ArrowIcon, {
12
9
  direction: "left"
13
10
  });
14
-
15
11
  it('renders the ArrowIcon with direction left prop', function () {
16
12
  expect(mount(_ref2)).toMatchSnapshot();
17
13
  });
18
-
19
14
  var _ref3 = /*#__PURE__*/React.createElement(ArrowIcon, {
20
15
  direction: "up"
21
16
  });
22
-
23
17
  it('renders the ArrowIcon with direction up prop', function () {
24
18
  expect(mount(_ref3)).toMatchSnapshot();
25
19
  });
26
-
27
20
  var _ref4 = /*#__PURE__*/React.createElement(ArrowIcon, {
28
21
  direction: "down"
29
22
  });
30
-
31
23
  it('renders the ArrowIcon with direction down prop', function () {
32
24
  expect(mount(_ref4)).toMatchSnapshot();
33
25
  });
@@ -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
+ }
@@ -1,32 +1,28 @@
1
1
  import React from 'react';
2
2
  import clsx from 'clsx';
3
-
4
3
  var _ref2 = /*#__PURE__*/React.createElement("rect", {
5
4
  id: "govgr-svg-icon--burger__line-1",
6
5
  width: "20",
7
6
  height: "3.3"
8
7
  });
9
-
10
8
  var _ref3 = /*#__PURE__*/React.createElement("rect", {
11
9
  id: "govgr-svg-icon--burger__line-2",
12
10
  width: "20",
13
11
  height: "3.3"
14
12
  });
15
-
16
13
  var _ref4 = /*#__PURE__*/React.createElement("rect", {
17
14
  id: "govgr-svg-icon--burger__line-3",
18
15
  width: "20",
19
16
  height: "3.3"
20
17
  });
21
-
22
18
  export var burger = function burger(_ref) {
23
19
  var _ref$active = _ref.active,
24
- active = _ref$active === void 0 ? false : _ref$active;
20
+ active = _ref$active === void 0 ? false : _ref$active;
25
21
  return /*#__PURE__*/React.createElement("g", {
26
22
  className: clsx(active && "govgr-svg-icon--burger--active")
27
23
  }, _ref2, _ref3, _ref4);
28
- }; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
+ };
25
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
29
26
  // @ts-ignore
30
-
31
27
  burger.props = ['active'];
32
28
  export default burger;
@@ -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,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type BurgerType = {
2
+ export type BurgerType = {
3
3
  active?: boolean;
4
4
  };
5
5
  export declare const burger: React.FC<BurgerType>;
@@ -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 '@digigov/react-icons/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,50 +1,38 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
3
  import BurgerIcon from '@digigov/react-icons/BurgerIcon';
4
-
5
4
  var _ref = /*#__PURE__*/React.createElement(BurgerIcon, null);
6
-
7
5
  it('renders the BurgerIcon with no props', function () {
8
6
  expect(mount(_ref)).toMatchSnapshot();
9
7
  });
10
-
11
8
  var _ref2 = /*#__PURE__*/React.createElement(BurgerIcon, {
12
9
  active: true
13
10
  });
14
-
15
11
  it('renders the BurgerIcon with prop active=true', function () {
16
12
  expect(mount(_ref2)).toMatchSnapshot();
17
13
  });
18
-
19
14
  var _ref3 = /*#__PURE__*/React.createElement(BurgerIcon, {
20
15
  variant: "dark"
21
16
  });
22
-
23
17
  it('renders the BurgerIcon with prop variant=dark', function () {
24
18
  expect(mount(_ref3)).toMatchSnapshot();
25
19
  });
26
-
27
20
  var _ref4 = /*#__PURE__*/React.createElement(BurgerIcon, {
28
21
  variant: "light"
29
22
  });
30
-
31
23
  it('renders the BurgerIcon prop variant= "light"', function () {
32
24
  expect(mount(_ref4)).toMatchSnapshot();
33
25
  });
34
-
35
26
  var _ref5 = /*#__PURE__*/React.createElement(BurgerIcon, {
36
27
  variant: "error"
37
28
  });
38
-
39
29
  it('renders the BurgerIcon prop variant= "error"', function () {
40
30
  expect(mount(_ref5)).toMatchSnapshot();
41
31
  });
42
-
43
32
  var _ref6 = /*#__PURE__*/React.createElement(BurgerIcon, {
44
33
  active: true,
45
34
  variant: "light"
46
35
  });
47
-
48
36
  it('renders the BurgerIcon props active variant= "light"', function () {
49
37
  expect(mount(_ref6)).toMatchSnapshot();
50
38
  });
@@ -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
+ }
@@ -1,27 +1,22 @@
1
1
  import React from 'react';
2
-
3
2
  var _ref2 = /*#__PURE__*/React.createElement("path", {
4
3
  d: "M18,22V2L6,12L18,22z"
5
4
  });
6
-
7
5
  var _ref3 = /*#__PURE__*/React.createElement("path", {
8
6
  d: "M6,2v20l12-10L6,2z"
9
7
  });
10
-
11
8
  var _ref4 = /*#__PURE__*/React.createElement("path", {
12
9
  d: "M2,18h20L12,6L2,18z"
13
10
  });
14
-
15
11
  var _ref5 = /*#__PURE__*/React.createElement("path", {
16
12
  d: "M22,6H2l10,12L22,6z"
17
13
  });
18
-
19
14
  export var caret = function caret(_ref) {
20
15
  var _ref$direction = _ref.direction,
21
- direction = _ref$direction === void 0 ? 'left' : _ref$direction;
16
+ direction = _ref$direction === void 0 ? 'left' : _ref$direction;
22
17
  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
18
+ };
19
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
24
20
  // @ts-ignore
25
-
26
21
  caret.props = ['direction'];
27
22
  export default caret;
@@ -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,12 +1,12 @@
1
1
  import React from 'react';
2
2
  export interface CaretType {
3
3
  /**
4
- * @value 'left'
5
- * @value 'right'
6
- * @value 'up'
7
- * @value 'down'
8
- * @default 'left'
9
- */
4
+ * @value 'left'
5
+ * @value 'right'
6
+ * @value 'up'
7
+ * @value 'down'
8
+ * @default 'left'
9
+ */
10
10
  direction?: 'left' | 'right' | 'up' | 'down';
11
11
  }
12
12
  export declare const caret: React.FC<CaretType>;
@@ -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 '@digigov/react-icons/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,33 +1,25 @@
1
1
  import React from 'react';
2
2
  import { mount } from 'enzyme';
3
3
  import CaretIcon from '@digigov/react-icons/CaretIcon';
4
-
5
4
  var _ref = /*#__PURE__*/React.createElement(CaretIcon, null);
6
-
7
5
  it('renders the CaretIcon with no props, direction prop is left by default', function () {
8
6
  expect(mount(_ref)).toMatchSnapshot();
9
7
  });
10
-
11
8
  var _ref2 = /*#__PURE__*/React.createElement(CaretIcon, {
12
9
  direction: "right"
13
10
  });
14
-
15
11
  it('renders the CaretIcon with direction right prop', function () {
16
12
  expect(mount(_ref2)).toMatchSnapshot();
17
13
  });
18
-
19
14
  var _ref3 = /*#__PURE__*/React.createElement(CaretIcon, {
20
15
  direction: "up"
21
16
  });
22
-
23
17
  it('renders the CaretIcon with direction up prop', function () {
24
18
  expect(mount(_ref3)).toMatchSnapshot();
25
19
  });
26
-
27
20
  var _ref4 = /*#__PURE__*/React.createElement(CaretIcon, {
28
21
  direction: "down"
29
22
  });
30
-
31
23
  it('renders the CaretIcon with direction down prop', function () {
32
24
  expect(mount(_ref4)).toMatchSnapshot();
33
25
  });
@@ -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
+ }
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
-
3
2
  var _ref = /*#__PURE__*/React.createElement("polygon", {
4
3
  points: "9.49 14.94 4.16 9.67 1.84 12.01 9.5 19.6 22.16 7.05 19.84 4.7 9.5 14.94"
5
4
  });
6
-
7
5
  export function check() {
8
6
  return /*#__PURE__*/React.createElement(React.Fragment, null, _ref);
9
7
  }
@@ -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 '@digigov/react-icons/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;