@digigov/react-icons 1.0.0-rc

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 (208) hide show
  1. package/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
  2. package/AccessibilityIcon/config.d.ts +8 -0
  3. package/AccessibilityIcon/config.js +31 -0
  4. package/AccessibilityIcon/index.d.ts +4 -0
  5. package/AccessibilityIcon/index.js +24 -0
  6. package/AccessibilityIcon/index.test.d.ts +1 -0
  7. package/AccessibilityIcon/index.test.js +137 -0
  8. package/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
  9. package/ArrowIcon/config.d.ts +6 -0
  10. package/ArrowIcon/config.js +39 -0
  11. package/ArrowIcon/index.d.ts +4 -0
  12. package/ArrowIcon/index.js +24 -0
  13. package/ArrowIcon/index.test.d.ts +1 -0
  14. package/ArrowIcon/index.test.js +39 -0
  15. package/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
  16. package/BurgerIcon/config.d.ts +6 -0
  17. package/BurgerIcon/config.js +45 -0
  18. package/BurgerIcon/index.d.ts +4 -0
  19. package/BurgerIcon/index.js +24 -0
  20. package/BurgerIcon/index.test.d.ts +1 -0
  21. package/BurgerIcon/index.test.js +56 -0
  22. package/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
  23. package/CaretIcon/config.d.ts +6 -0
  24. package/CaretIcon/config.js +39 -0
  25. package/CaretIcon/index.d.ts +4 -0
  26. package/CaretIcon/index.js +24 -0
  27. package/CaretIcon/index.test.d.ts +1 -0
  28. package/CaretIcon/index.test.js +39 -0
  29. package/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  30. package/CheckIcon/config.d.ts +8 -0
  31. package/CheckIcon/config.js +23 -0
  32. package/CheckIcon/index.d.ts +4 -0
  33. package/CheckIcon/index.js +24 -0
  34. package/CheckIcon/index.test.d.ts +1 -0
  35. package/CheckIcon/index.test.js +129 -0
  36. package/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
  37. package/CloseIcon/config.d.ts +8 -0
  38. package/CloseIcon/config.js +23 -0
  39. package/CloseIcon/index.d.ts +4 -0
  40. package/CloseIcon/index.js +24 -0
  41. package/CloseIcon/index.test.d.ts +1 -0
  42. package/CloseIcon/index.test.js +15 -0
  43. package/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
  44. package/GlobeIcon/config.d.ts +8 -0
  45. package/GlobeIcon/config.js +23 -0
  46. package/GlobeIcon/index.d.ts +4 -0
  47. package/GlobeIcon/index.js +24 -0
  48. package/GlobeIcon/index.test.d.ts +1 -0
  49. package/GlobeIcon/index.test.js +39 -0
  50. package/LICENSE +0 -0
  51. package/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
  52. package/MoreVertIcon/config.d.ts +8 -0
  53. package/MoreVertIcon/config.js +37 -0
  54. package/MoreVertIcon/index.d.ts +4 -0
  55. package/MoreVertIcon/index.js +24 -0
  56. package/MoreVertIcon/index.test.d.ts +1 -0
  57. package/MoreVertIcon/index.test.js +129 -0
  58. package/README.md +0 -0
  59. package/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
  60. package/SearchIcon/config.d.ts +8 -0
  61. package/SearchIcon/config.js +23 -0
  62. package/SearchIcon/index.d.ts +4 -0
  63. package/SearchIcon/index.js +24 -0
  64. package/SearchIcon/index.test.d.ts +1 -0
  65. package/SearchIcon/index.test.js +15 -0
  66. package/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  67. package/UncheckIcon/config.d.ts +8 -0
  68. package/UncheckIcon/config.js +23 -0
  69. package/UncheckIcon/index.d.ts +4 -0
  70. package/UncheckIcon/index.js +24 -0
  71. package/UncheckIcon/index.test.d.ts +1 -0
  72. package/UncheckIcon/index.test.js +129 -0
  73. package/es/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
  74. package/es/AccessibilityIcon/config.js +19 -0
  75. package/es/AccessibilityIcon/index.js +9 -0
  76. package/es/AccessibilityIcon/index.test.js +131 -0
  77. package/es/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
  78. package/es/ArrowIcon/config.js +27 -0
  79. package/es/ArrowIcon/index.js +9 -0
  80. package/es/ArrowIcon/index.test.js +33 -0
  81. package/es/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
  82. package/es/BurgerIcon/config.js +32 -0
  83. package/es/BurgerIcon/index.js +9 -0
  84. package/es/BurgerIcon/index.test.js +50 -0
  85. package/es/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
  86. package/es/CaretIcon/config.js +27 -0
  87. package/es/CaretIcon/index.js +9 -0
  88. package/es/CaretIcon/index.test.js +33 -0
  89. package/es/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  90. package/es/CheckIcon/config.js +11 -0
  91. package/es/CheckIcon/index.js +9 -0
  92. package/es/CheckIcon/index.test.js +123 -0
  93. package/es/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
  94. package/es/CloseIcon/config.js +11 -0
  95. package/es/CloseIcon/index.js +9 -0
  96. package/es/CloseIcon/index.test.js +9 -0
  97. package/es/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
  98. package/es/GlobeIcon/config.js +11 -0
  99. package/es/GlobeIcon/index.js +9 -0
  100. package/es/GlobeIcon/index.test.js +33 -0
  101. package/es/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
  102. package/es/MoreVertIcon/config.js +25 -0
  103. package/es/MoreVertIcon/index.js +9 -0
  104. package/es/MoreVertIcon/index.test.js +123 -0
  105. package/es/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
  106. package/es/SearchIcon/config.js +11 -0
  107. package/es/SearchIcon/index.js +9 -0
  108. package/es/SearchIcon/index.test.js +9 -0
  109. package/es/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  110. package/es/UncheckIcon/config.js +11 -0
  111. package/es/UncheckIcon/index.js +9 -0
  112. package/es/UncheckIcon/index.test.js +123 -0
  113. package/es/icons.js +11 -0
  114. package/es/index.js +10 -0
  115. package/es/registry.js +42 -0
  116. package/esm/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
  117. package/esm/AccessibilityIcon/config.js +19 -0
  118. package/esm/AccessibilityIcon/index.js +9 -0
  119. package/esm/AccessibilityIcon/index.test.js +131 -0
  120. package/esm/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
  121. package/esm/ArrowIcon/config.js +27 -0
  122. package/esm/ArrowIcon/index.js +9 -0
  123. package/esm/ArrowIcon/index.test.js +33 -0
  124. package/esm/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
  125. package/esm/BurgerIcon/config.js +32 -0
  126. package/esm/BurgerIcon/index.js +9 -0
  127. package/esm/BurgerIcon/index.test.js +50 -0
  128. package/esm/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
  129. package/esm/CaretIcon/config.js +27 -0
  130. package/esm/CaretIcon/index.js +9 -0
  131. package/esm/CaretIcon/index.test.js +33 -0
  132. package/esm/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  133. package/esm/CheckIcon/config.js +11 -0
  134. package/esm/CheckIcon/index.js +9 -0
  135. package/esm/CheckIcon/index.test.js +123 -0
  136. package/esm/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
  137. package/esm/CloseIcon/config.js +11 -0
  138. package/esm/CloseIcon/index.js +9 -0
  139. package/esm/CloseIcon/index.test.js +9 -0
  140. package/esm/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
  141. package/esm/GlobeIcon/config.js +11 -0
  142. package/esm/GlobeIcon/index.js +9 -0
  143. package/esm/GlobeIcon/index.test.js +33 -0
  144. package/esm/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
  145. package/esm/MoreVertIcon/config.js +25 -0
  146. package/esm/MoreVertIcon/index.js +9 -0
  147. package/esm/MoreVertIcon/index.test.js +123 -0
  148. package/esm/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
  149. package/esm/SearchIcon/config.js +11 -0
  150. package/esm/SearchIcon/index.js +9 -0
  151. package/esm/SearchIcon/index.test.js +9 -0
  152. package/esm/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  153. package/esm/UncheckIcon/config.js +11 -0
  154. package/esm/UncheckIcon/index.js +9 -0
  155. package/esm/UncheckIcon/index.test.js +123 -0
  156. package/esm/icons.js +11 -0
  157. package/esm/index.js +10 -0
  158. package/esm/registry.js +42 -0
  159. package/icons.d.ts +32 -0
  160. package/icons.js +135 -0
  161. package/index.d.ts +10 -0
  162. package/index.js +135 -0
  163. package/package.json +25 -0
  164. package/registry.d.ts +15 -0
  165. package/registry.js +67 -0
  166. package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +723 -0
  167. package/src/AccessibilityIcon/config.tsx +22 -0
  168. package/src/AccessibilityIcon/index.test.tsx +57 -0
  169. package/src/AccessibilityIcon/index.tsx +10 -0
  170. package/src/ArrowIcon/__snapshots__/index.test.tsx.snap +148 -0
  171. package/src/ArrowIcon/config.tsx +29 -0
  172. package/src/ArrowIcon/index.test.tsx +20 -0
  173. package/src/ArrowIcon/index.tsx +8 -0
  174. package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +320 -0
  175. package/src/BurgerIcon/config.tsx +25 -0
  176. package/src/BurgerIcon/index.test.tsx +26 -0
  177. package/src/BurgerIcon/index.tsx +8 -0
  178. package/src/CaretIcon/__snapshots__/index.test.tsx.snap +148 -0
  179. package/src/CaretIcon/config.tsx +21 -0
  180. package/src/CaretIcon/index.test.tsx +20 -0
  181. package/src/CaretIcon/index.tsx +8 -0
  182. package/src/CheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  183. package/src/CheckIcon/config.tsx +15 -0
  184. package/src/CheckIcon/index.test.tsx +50 -0
  185. package/src/CheckIcon/index.tsx +8 -0
  186. package/src/CloseIcon/__snapshots__/index.test.tsx.snap +34 -0
  187. package/src/CloseIcon/config.tsx +15 -0
  188. package/src/CloseIcon/index.test.tsx +8 -0
  189. package/src/CloseIcon/index.tsx +8 -0
  190. package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +149 -0
  191. package/src/GlobeIcon/config.tsx +26 -0
  192. package/src/GlobeIcon/index.test.tsx +19 -0
  193. package/src/GlobeIcon/index.tsx +8 -0
  194. package/src/MoreVertIcon/__snapshots__/index.test.tsx.snap +738 -0
  195. package/src/MoreVertIcon/config.tsx +17 -0
  196. package/src/MoreVertIcon/index.test.tsx +50 -0
  197. package/src/MoreVertIcon/index.tsx +8 -0
  198. package/src/SearchIcon/__snapshots__/index.test.tsx.snap +34 -0
  199. package/src/SearchIcon/config.tsx +15 -0
  200. package/src/SearchIcon/index.test.tsx +8 -0
  201. package/src/SearchIcon/index.tsx +8 -0
  202. package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +558 -0
  203. package/src/UncheckIcon/config.tsx +15 -0
  204. package/src/UncheckIcon/index.test.tsx +50 -0
  205. package/src/UncheckIcon/index.tsx +8 -0
  206. package/src/icons.ts +34 -0
  207. package/src/index.ts +10 -0
  208. package/src/registry.js +47 -0
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _enzyme = require("enzyme");
8
+
9
+ var _CheckIcon = _interopRequireDefault(require("@digigov/react-icons/CheckIcon"));
10
+
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], null);
12
+
13
+ it('renders the CheckIcon with no props', function () {
14
+ expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
+ });
16
+
17
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
18
+ size: "sm"
19
+ });
20
+
21
+ it('renders the CheckIcon with prop size=s', function () {
22
+ expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
23
+ });
24
+
25
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
26
+ size: "md"
27
+ });
28
+
29
+ it('renders the CheckIcon with prop size=m', function () {
30
+ expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
31
+ });
32
+
33
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
34
+ size: "lg"
35
+ });
36
+
37
+ it('renders the CheckIcon with prop size=l', function () {
38
+ expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
39
+ });
40
+
41
+ var _ref5 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
42
+ size: "xl"
43
+ });
44
+
45
+ it('renders the CheckIcon with prop size=xl', function () {
46
+ expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
47
+ });
48
+
49
+ var _ref6 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
50
+ variant: "dark"
51
+ });
52
+
53
+ it('renders the CheckIcon with prop variant=dark', function () {
54
+ expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
55
+ });
56
+
57
+ var _ref7 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
58
+ variant: "light"
59
+ });
60
+
61
+ it('renders the CheckIcon with prop variant=light', function () {
62
+ expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
63
+ });
64
+
65
+ var _ref8 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
66
+ variant: "gray"
67
+ });
68
+
69
+ it('renders the CheckIcon with prop variant=gray', function () {
70
+ expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
71
+ });
72
+
73
+ var _ref9 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
74
+ variant: "primary"
75
+ });
76
+
77
+ it('renders the CheckIcon with prop variant=primary', function () {
78
+ expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
79
+ });
80
+
81
+ var _ref10 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
82
+ variant: "success"
83
+ });
84
+
85
+ it('renders the CheckIcon with prop variant=success', function () {
86
+ expect((0, _enzyme.mount)(_ref10)).toMatchSnapshot();
87
+ });
88
+
89
+ var _ref11 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
90
+ variant: "warning"
91
+ });
92
+
93
+ it('renders the CheckIcon with prop variant=warning', function () {
94
+ expect((0, _enzyme.mount)(_ref11)).toMatchSnapshot();
95
+ });
96
+
97
+ var _ref12 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
98
+ variant: "error"
99
+ });
100
+
101
+ it('renders the CheckIcon with prop variant=error', function () {
102
+ expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
103
+ });
104
+
105
+ var _ref13 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
106
+ variant: "focus"
107
+ });
108
+
109
+ it('renders the CheckIcon with prop variant=focus', function () {
110
+ expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
111
+ });
112
+
113
+ var _ref14 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
114
+ variant: "warning",
115
+ size: "sm"
116
+ });
117
+
118
+ it('renders the CheckIcon with prop variant=warning and size=s', function () {
119
+ expect((0, _enzyme.mount)(_ref14)).toMatchSnapshot();
120
+ });
121
+
122
+ var _ref15 = /*#__PURE__*/_react["default"].createElement(_CheckIcon["default"], {
123
+ variant: "warning",
124
+ size: "xl"
125
+ });
126
+
127
+ it('renders the CheckIcon with prop variant=error and size= xl', function () {
128
+ expect((0, _enzyme.mount)(_ref15)).toMatchSnapshot();
129
+ });
@@ -0,0 +1,34 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the CloseIcon with no props 1`] = `
4
+ <CloseIcon>
5
+ <ForwardRef(Icon)
6
+ icon="close"
7
+ >
8
+ <ForwardRef(SvgIcon)
9
+ className="govgr-svg-icon--close"
10
+ >
11
+ <ForwardRef(Base)
12
+ aria-hidden="true"
13
+ as="svg"
14
+ className="govgr-svg-icon--close govgr-svg-icon"
15
+ focusable="false"
16
+ viewBox="0 0 24 24"
17
+ >
18
+ <svg
19
+ aria-hidden="true"
20
+ className="govgr-svg-icon--close govgr-svg-icon"
21
+ focusable="false"
22
+ viewBox="0 0 24 24"
23
+ >
24
+ <close>
25
+ <polygon
26
+ points="14.4,11.8 22,4.2 19.7,1.8 12,9.4 4.4,1.8 2,4.2 9.7,11.9 2.1,19.5 4.4,21.9 12.1,14.3 19.7,21.9 22.1,19.5 "
27
+ />
28
+ </close>
29
+ </svg>
30
+ </ForwardRef(Base)>
31
+ </ForwardRef(SvgIcon)>
32
+ </ForwardRef(Icon)>
33
+ </CloseIcon>
34
+ `;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface CloseType {
3
+ }
4
+ export declare function close(): React.ReactElement;
5
+ export declare namespace close {
6
+ var props: any[];
7
+ }
8
+ export default close;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.close = close;
9
+ exports["default"] = void 0;
10
+
11
+ var _react = _interopRequireDefault(require("react"));
12
+
13
+ var _ref = /*#__PURE__*/_react["default"].createElement("polygon", {
14
+ points: "14.4,11.8 22,4.2 19.7,1.8 12,9.4 4.4,1.8 2,4.2 9.7,11.9 2.1,19.5 4.4,21.9 12.1,14.3 19.7,21.9 22.1,19.5 "
15
+ });
16
+
17
+ function close() {
18
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref);
19
+ }
20
+
21
+ close.props = [];
22
+ var _default = close;
23
+ exports["default"] = _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '@digigov/react-core/Icon';
3
+ export declare const CloseIcon: React.FC<IconProps<'close'>>;
4
+ export default CloseIcon;
@@ -0,0 +1,24 @@
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, {
18
+ icon: "close"
19
+ }));
20
+ };
21
+
22
+ exports.CloseIcon = CloseIcon;
23
+ var _default = CloseIcon;
24
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _enzyme = require("enzyme");
8
+
9
+ var _CloseIcon = _interopRequireDefault(require("@digigov/react-icons/CloseIcon"));
10
+
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_CloseIcon["default"], null);
12
+
13
+ it('renders the CloseIcon with no props', function () {
14
+ expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
+ });
@@ -0,0 +1,149 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`renders the GlobeIcon prop variant= "error" 1`] = `
4
+ <GlobeIcon
5
+ variant="error"
6
+ >
7
+ <ForwardRef(Icon)
8
+ icon="globe"
9
+ variant="error"
10
+ >
11
+ <ForwardRef(SvgIcon)
12
+ className="govgr-svg-icon--globe"
13
+ variant="error"
14
+ >
15
+ <ForwardRef(Base)
16
+ aria-hidden="true"
17
+ as="svg"
18
+ className="govgr-svg-icon--globe govgr-svg-icon--error govgr-svg-icon"
19
+ focusable="false"
20
+ viewBox="0 0 24 24"
21
+ >
22
+ <svg
23
+ aria-hidden="true"
24
+ className="govgr-svg-icon--globe govgr-svg-icon--error govgr-svg-icon"
25
+ focusable="false"
26
+ viewBox="0 0 24 24"
27
+ >
28
+ <globe>
29
+ <path
30
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
31
+ />
32
+
33
+ </globe>
34
+ </svg>
35
+ </ForwardRef(Base)>
36
+ </ForwardRef(SvgIcon)>
37
+ </ForwardRef(Icon)>
38
+ </GlobeIcon>
39
+ `;
40
+
41
+ exports[`renders the GlobeIcon prop variant= "light" 1`] = `
42
+ <GlobeIcon
43
+ variant="light"
44
+ >
45
+ <ForwardRef(Icon)
46
+ icon="globe"
47
+ variant="light"
48
+ >
49
+ <ForwardRef(SvgIcon)
50
+ className="govgr-svg-icon--globe"
51
+ variant="light"
52
+ >
53
+ <ForwardRef(Base)
54
+ aria-hidden="true"
55
+ as="svg"
56
+ className="govgr-svg-icon--globe govgr-svg-icon--light govgr-svg-icon"
57
+ focusable="false"
58
+ viewBox="0 0 24 24"
59
+ >
60
+ <svg
61
+ aria-hidden="true"
62
+ className="govgr-svg-icon--globe govgr-svg-icon--light govgr-svg-icon"
63
+ focusable="false"
64
+ viewBox="0 0 24 24"
65
+ >
66
+ <globe>
67
+ <path
68
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
69
+ />
70
+
71
+ </globe>
72
+ </svg>
73
+ </ForwardRef(Base)>
74
+ </ForwardRef(SvgIcon)>
75
+ </ForwardRef(Icon)>
76
+ </GlobeIcon>
77
+ `;
78
+
79
+ exports[`renders the GlobeIcon with no props 1`] = `
80
+ <GlobeIcon>
81
+ <ForwardRef(Icon)
82
+ icon="globe"
83
+ >
84
+ <ForwardRef(SvgIcon)
85
+ className="govgr-svg-icon--globe"
86
+ >
87
+ <ForwardRef(Base)
88
+ aria-hidden="true"
89
+ as="svg"
90
+ className="govgr-svg-icon--globe govgr-svg-icon"
91
+ focusable="false"
92
+ viewBox="0 0 24 24"
93
+ >
94
+ <svg
95
+ aria-hidden="true"
96
+ className="govgr-svg-icon--globe govgr-svg-icon"
97
+ focusable="false"
98
+ viewBox="0 0 24 24"
99
+ >
100
+ <globe>
101
+ <path
102
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
103
+ />
104
+
105
+ </globe>
106
+ </svg>
107
+ </ForwardRef(Base)>
108
+ </ForwardRef(SvgIcon)>
109
+ </ForwardRef(Icon)>
110
+ </GlobeIcon>
111
+ `;
112
+
113
+ exports[`renders the GlobeIcon with prop variant=dark 1`] = `
114
+ <GlobeIcon
115
+ variant="dark"
116
+ >
117
+ <ForwardRef(Icon)
118
+ icon="globe"
119
+ variant="dark"
120
+ >
121
+ <ForwardRef(SvgIcon)
122
+ className="govgr-svg-icon--globe"
123
+ variant="dark"
124
+ >
125
+ <ForwardRef(Base)
126
+ aria-hidden="true"
127
+ as="svg"
128
+ className="govgr-svg-icon--globe govgr-svg-icon--dark govgr-svg-icon"
129
+ focusable="false"
130
+ viewBox="0 0 24 24"
131
+ >
132
+ <svg
133
+ aria-hidden="true"
134
+ className="govgr-svg-icon--globe govgr-svg-icon--dark govgr-svg-icon"
135
+ focusable="false"
136
+ viewBox="0 0 24 24"
137
+ >
138
+ <globe>
139
+ <path
140
+ d="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
141
+ />
142
+
143
+ </globe>
144
+ </svg>
145
+ </ForwardRef(Base)>
146
+ </ForwardRef(SvgIcon)>
147
+ </ForwardRef(Icon)>
148
+ </GlobeIcon>
149
+ `;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface GlobeType {
3
+ }
4
+ export declare function globe(): React.ReactElement;
5
+ export declare namespace globe {
6
+ var props: any[];
7
+ }
8
+ export default globe;
@@ -0,0 +1,23 @@
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"] = void 0;
9
+ exports.globe = globe;
10
+
11
+ var _react = _interopRequireDefault(require("react"));
12
+
13
+ var _ref = /*#__PURE__*/_react["default"].createElement("path", {
14
+ d: "M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z M22.4,13.1C22.4,13.1,22.4,13.2,22.4,13.1 c0,0.4-0.1,0.8-0.2,1.1v0h-3.6c0.2-1.5,0.2-3,0-4.5h3.6v0c0.1,0.4,0.1,0.7,0.2,1.1c0,0,0,0,0,0C22.5,11.6,22.5,12.4,22.4,13.1z M16,21.7c1.1-1.5,2-3.5,2.4-6h3.4c0,0,0,0,0,0C20.8,18.4,18.7,20.6,16,21.7z M21.8,8.2C21.8,8.2,21.8,8.2,21.8,8.2l-3.4,0 c-0.4-2.4-1.3-4.5-2.4-6C18.7,3.4,20.8,5.6,21.8,8.2L21.8,8.2z M17.1,9.7c0.2,1.5,0.2,3,0,4.5h-4.4V9.7L17.1,9.7L17.1,9.7z M12.7,8.2V1.6c1.9,0.6,3.5,3.2,4.1,6.6L12.7,8.2L12.7,8.2z M12.7,15.7h4.1c-0.7,3.4-2.3,6.1-4.1,6.6V15.7L12.7,15.7z M2.2,15.8 C2.2,15.8,2.2,15.8,2.2,15.8l3.4,0c0.4,2.4,1.3,4.5,2.4,6C5.3,20.6,3.2,18.4,2.2,15.8L2.2,15.8z M8,2.3c-1.1,1.5-2,3.5-2.4,6H2.2 c0,0,0,0,0,0C3.2,5.6,5.3,3.4,8,2.3z M6.9,14.3c-0.2-1.5-0.2-3,0-4.5h4.4v4.5H6.9L6.9,14.3z M11.2,15.8v6.6 c-1.9-0.6-3.5-3.2-4.1-6.6L11.2,15.8L11.2,15.8z M11.2,8.3H7.1c0.7-3.4,2.3-6.1,4.1-6.6V8.3L11.2,8.3z M1.6,10.9 C1.6,10.9,1.6,10.8,1.6,10.9c0-0.4,0.1-0.8,0.2-1.1v0h3.6c-0.2,1.5-0.2,3,0,4.5H1.7v0c-0.1-0.4-0.1-0.7-0.2-1.1c0,0,0,0,0,0 C1.5,12.4,1.5,11.6,1.6,10.9z"
15
+ });
16
+
17
+ function globe() {
18
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref, ' ');
19
+ }
20
+
21
+ globe.props = [];
22
+ var _default = globe;
23
+ exports["default"] = _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '@digigov/react-core/Icon';
3
+ export declare const GlobeIcon: React.FC<IconProps<'globe'>>;
4
+ export default GlobeIcon;
@@ -0,0 +1,24 @@
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, {
18
+ icon: "globe"
19
+ }));
20
+ };
21
+
22
+ exports.GlobeIcon = GlobeIcon;
23
+ var _default = GlobeIcon;
24
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ var _react = _interopRequireDefault(require("react"));
6
+
7
+ var _enzyme = require("enzyme");
8
+
9
+ var _GlobeIcon = _interopRequireDefault(require("@digigov/react-icons/GlobeIcon"));
10
+
11
+ var _ref = /*#__PURE__*/_react["default"].createElement(_GlobeIcon["default"], null);
12
+
13
+ it('renders the GlobeIcon with no props', function () {
14
+ expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
15
+ });
16
+
17
+ var _ref2 = /*#__PURE__*/_react["default"].createElement(_GlobeIcon["default"], {
18
+ variant: "dark"
19
+ });
20
+
21
+ it('renders the GlobeIcon with prop variant=dark', function () {
22
+ expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
23
+ });
24
+
25
+ var _ref3 = /*#__PURE__*/_react["default"].createElement(_GlobeIcon["default"], {
26
+ variant: "light"
27
+ });
28
+
29
+ it('renders the GlobeIcon prop variant= "light"', function () {
30
+ expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
31
+ });
32
+
33
+ var _ref4 = /*#__PURE__*/_react["default"].createElement(_GlobeIcon["default"], {
34
+ variant: "error"
35
+ });
36
+
37
+ it('renders the GlobeIcon prop variant= "error"', function () {
38
+ expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
39
+ });
package/LICENSE ADDED
File without changes