@digigov/react-icons 2.0.0-rc.1 → 2.0.0-rc.10
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.
- package/Base/index.d.ts +95 -0
- package/Base/index.js +69 -0
- package/Base/package.json +6 -0
- package/Icon/index.d.ts +1 -1
- package/Icon/index.js +1 -1
- package/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/SvgIcon/index.d.ts +37 -0
- package/SvgIcon/index.js +26 -0
- package/SvgIcon/index.test/index.js +105 -0
- package/SvgIcon/index.test/package.json +6 -0
- package/SvgIcon/index.test.d.ts +1 -0
- package/SvgIcon/package.json +6 -0
- package/cjs/Base/index.js +75 -0
- package/cjs/Icon/index.js +1 -1
- package/cjs/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/cjs/SvgIcon/index.js +33 -0
- package/cjs/SvgIcon/index.test/index.js +108 -0
- package/cjs/lazy/index.js +108 -0
- package/cjs/registry/index.js +4 -0
- package/index.js +1 -1
- package/lazy/index.js +84 -0
- package/lazy.d.ts +12 -0
- package/package.json +3 -3
- package/registry/index.js +4 -0
- package/registry.d.ts +2 -0
- package/src/Base/index.tsx +257 -0
- package/src/Icon/index.tsx +1 -1
- package/src/SvgIcon/__snapshots__/index.test.tsx.snap +390 -0
- package/src/SvgIcon/index.test.tsx +68 -0
- package/src/SvgIcon/index.tsx +72 -0
- package/src/lazy.js +12 -0
- package/src/registry.js +4 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
|
5
|
+
var _enzyme = require("enzyme");
|
|
6
|
+
var _SvgIcon = _interopRequireDefault(require("@digigov/react-icons/SvgIcon"));
|
|
7
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], null);
|
|
8
|
+
it('renders the SvgIcon with no props', function () {
|
|
9
|
+
expect((0, _enzyme.mount)(_ref)).toMatchSnapshot();
|
|
10
|
+
});
|
|
11
|
+
var _ref2 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
12
|
+
size: "xs"
|
|
13
|
+
}, "hello");
|
|
14
|
+
it('renders the SvgIcon with prop size=xs', function () {
|
|
15
|
+
expect((0, _enzyme.mount)(_ref2)).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
var _ref3 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
18
|
+
size: "sm"
|
|
19
|
+
}, "hello");
|
|
20
|
+
it('renders the SvgIcon with prop size=sm', function () {
|
|
21
|
+
expect((0, _enzyme.mount)(_ref3)).toMatchSnapshot();
|
|
22
|
+
});
|
|
23
|
+
var _ref4 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
24
|
+
size: "md"
|
|
25
|
+
}, "hello");
|
|
26
|
+
it('renders the SvgIcon with prop size=md', function () {
|
|
27
|
+
expect((0, _enzyme.mount)(_ref4)).toMatchSnapshot();
|
|
28
|
+
});
|
|
29
|
+
var _ref5 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
30
|
+
size: "lg"
|
|
31
|
+
}, "hello");
|
|
32
|
+
it('renders the SvgIcon with prop size=lg', function () {
|
|
33
|
+
expect((0, _enzyme.mount)(_ref5)).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
var _ref6 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
36
|
+
size: "xl"
|
|
37
|
+
}, "hello");
|
|
38
|
+
it('renders the SvgIcon with prop size=xl', function () {
|
|
39
|
+
expect((0, _enzyme.mount)(_ref6)).toMatchSnapshot();
|
|
40
|
+
});
|
|
41
|
+
var _ref7 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
42
|
+
color: "base-content"
|
|
43
|
+
}, "hello");
|
|
44
|
+
it('renders the SvgIcon with prop color=base-content', function () {
|
|
45
|
+
expect((0, _enzyme.mount)(_ref7)).toMatchSnapshot();
|
|
46
|
+
});
|
|
47
|
+
var _ref8 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
48
|
+
color: "dark"
|
|
49
|
+
}, "hello");
|
|
50
|
+
it('renders the SvgIcon with prop color=dark', function () {
|
|
51
|
+
expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
|
|
52
|
+
});
|
|
53
|
+
var _ref9 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
54
|
+
color: "white"
|
|
55
|
+
}, "hello");
|
|
56
|
+
it('renders the SvgIcon with prop color=white', function () {
|
|
57
|
+
expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
|
|
58
|
+
});
|
|
59
|
+
var _ref10 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
60
|
+
color: "gray"
|
|
61
|
+
}, "hello");
|
|
62
|
+
it('renders the SvgIcon with prop color=gray', function () {
|
|
63
|
+
expect((0, _enzyme.mount)(_ref10)).toMatchSnapshot();
|
|
64
|
+
});
|
|
65
|
+
var _ref11 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
66
|
+
color: "primary"
|
|
67
|
+
}, "hello");
|
|
68
|
+
it('renders the SvgIcon with prop color=primary', function () {
|
|
69
|
+
expect((0, _enzyme.mount)(_ref11)).toMatchSnapshot();
|
|
70
|
+
});
|
|
71
|
+
var _ref12 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
72
|
+
color: "success"
|
|
73
|
+
}, "hello");
|
|
74
|
+
it('renders the SvgIcon with prop color=success', function () {
|
|
75
|
+
expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
|
|
76
|
+
});
|
|
77
|
+
var _ref13 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
78
|
+
color: "warning"
|
|
79
|
+
}, "hello");
|
|
80
|
+
it('renders the SvgIcon with prop color=warning', function () {
|
|
81
|
+
expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
|
|
82
|
+
});
|
|
83
|
+
var _ref14 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
84
|
+
color: "error"
|
|
85
|
+
}, "hello");
|
|
86
|
+
it('renders the SvgIcon with prop color=error', function () {
|
|
87
|
+
expect((0, _enzyme.mount)(_ref14)).toMatchSnapshot();
|
|
88
|
+
});
|
|
89
|
+
var _ref15 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
90
|
+
color: "focus"
|
|
91
|
+
}, "hello");
|
|
92
|
+
it('renders the SvgIcon with prop color=focus', function () {
|
|
93
|
+
expect((0, _enzyme.mount)(_ref15)).toMatchSnapshot();
|
|
94
|
+
});
|
|
95
|
+
var _ref16 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
96
|
+
color: "warning",
|
|
97
|
+
size: "sm"
|
|
98
|
+
}, "hello");
|
|
99
|
+
it('renders the SvgIcon with prop color=warning and size=sm', function () {
|
|
100
|
+
expect((0, _enzyme.mount)(_ref16)).toMatchSnapshot();
|
|
101
|
+
});
|
|
102
|
+
var _ref17 = /*#__PURE__*/_react["default"].createElement(_SvgIcon["default"], {
|
|
103
|
+
color: "warning",
|
|
104
|
+
size: "xl"
|
|
105
|
+
}, "hello");
|
|
106
|
+
it('renders the SvgIcon with prop color=error and size= xl', function () {
|
|
107
|
+
expect((0, _enzyme.mount)(_ref17)).toMatchSnapshot();
|
|
108
|
+
});
|
package/cjs/lazy/index.js
CHANGED
|
@@ -37,6 +37,15 @@ var _default = exports["default"] = {
|
|
|
37
37
|
};
|
|
38
38
|
});
|
|
39
39
|
}),
|
|
40
|
+
'CancelIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
41
|
+
return Promise.resolve().then(function () {
|
|
42
|
+
return _interopRequireWildcard(require('@digigov/react-icons/CancelIcon'));
|
|
43
|
+
}).then(function (module) {
|
|
44
|
+
return {
|
|
45
|
+
"default": module['CancelIcon']
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}),
|
|
40
49
|
'CaretIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
41
50
|
return Promise.resolve().then(function () {
|
|
42
51
|
return _interopRequireWildcard(require('@digigov/react-icons/CaretIcon'));
|
|
@@ -46,6 +55,15 @@ var _default = exports["default"] = {
|
|
|
46
55
|
};
|
|
47
56
|
});
|
|
48
57
|
}),
|
|
58
|
+
'ChatIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
59
|
+
return Promise.resolve().then(function () {
|
|
60
|
+
return _interopRequireWildcard(require('@digigov/react-icons/ChatIcon'));
|
|
61
|
+
}).then(function (module) {
|
|
62
|
+
return {
|
|
63
|
+
"default": module['ChatIcon']
|
|
64
|
+
};
|
|
65
|
+
});
|
|
66
|
+
}),
|
|
49
67
|
'CheckIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
50
68
|
return Promise.resolve().then(function () {
|
|
51
69
|
return _interopRequireWildcard(require('@digigov/react-icons/CheckIcon'));
|
|
@@ -73,6 +91,24 @@ var _default = exports["default"] = {
|
|
|
73
91
|
};
|
|
74
92
|
});
|
|
75
93
|
}),
|
|
94
|
+
'DownloadIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
95
|
+
return Promise.resolve().then(function () {
|
|
96
|
+
return _interopRequireWildcard(require('@digigov/react-icons/DownloadIcon'));
|
|
97
|
+
}).then(function (module) {
|
|
98
|
+
return {
|
|
99
|
+
"default": module['DownloadIcon']
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
}),
|
|
103
|
+
'ExclamationIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
104
|
+
return Promise.resolve().then(function () {
|
|
105
|
+
return _interopRequireWildcard(require('@digigov/react-icons/ExclamationIcon'));
|
|
106
|
+
}).then(function (module) {
|
|
107
|
+
return {
|
|
108
|
+
"default": module['ExclamationIcon']
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
}),
|
|
76
112
|
'GlobeIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
77
113
|
return Promise.resolve().then(function () {
|
|
78
114
|
return _interopRequireWildcard(require('@digigov/react-icons/GlobeIcon'));
|
|
@@ -117,5 +153,77 @@ var _default = exports["default"] = {
|
|
|
117
153
|
"default": module['SearchIcon']
|
|
118
154
|
};
|
|
119
155
|
});
|
|
156
|
+
}),
|
|
157
|
+
'LockIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
158
|
+
return Promise.resolve().then(function () {
|
|
159
|
+
return _interopRequireWildcard(require('@digigov/react-icons/LockIcon'));
|
|
160
|
+
}).then(function (module) {
|
|
161
|
+
return {
|
|
162
|
+
"default": module['LockIcon']
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
}),
|
|
166
|
+
'PdfFileIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
167
|
+
return Promise.resolve().then(function () {
|
|
168
|
+
return _interopRequireWildcard(require('@digigov/react-icons/PdfFileIcon'));
|
|
169
|
+
}).then(function (module) {
|
|
170
|
+
return {
|
|
171
|
+
"default": module['PdfFileIcon']
|
|
172
|
+
};
|
|
173
|
+
});
|
|
174
|
+
}),
|
|
175
|
+
'PlusIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
176
|
+
return Promise.resolve().then(function () {
|
|
177
|
+
return _interopRequireWildcard(require('@digigov/react-icons/PlusIcon'));
|
|
178
|
+
}).then(function (module) {
|
|
179
|
+
return {
|
|
180
|
+
"default": module['PlusIcon']
|
|
181
|
+
};
|
|
182
|
+
});
|
|
183
|
+
}),
|
|
184
|
+
'MinusIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
185
|
+
return Promise.resolve().then(function () {
|
|
186
|
+
return _interopRequireWildcard(require('@digigov/react-icons/MinusIcon'));
|
|
187
|
+
}).then(function (module) {
|
|
188
|
+
return {
|
|
189
|
+
"default": module['MinusIcon']
|
|
190
|
+
};
|
|
191
|
+
});
|
|
192
|
+
}),
|
|
193
|
+
'LoginIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
194
|
+
return Promise.resolve().then(function () {
|
|
195
|
+
return _interopRequireWildcard(require('@digigov/react-icons/LoginIcon'));
|
|
196
|
+
}).then(function (module) {
|
|
197
|
+
return {
|
|
198
|
+
"default": module['LoginIcon']
|
|
199
|
+
};
|
|
200
|
+
});
|
|
201
|
+
}),
|
|
202
|
+
'RestoreIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
203
|
+
return Promise.resolve().then(function () {
|
|
204
|
+
return _interopRequireWildcard(require('@digigov/react-icons/RestoreIcon'));
|
|
205
|
+
}).then(function (module) {
|
|
206
|
+
return {
|
|
207
|
+
"default": module['RestoreIcon']
|
|
208
|
+
};
|
|
209
|
+
});
|
|
210
|
+
}),
|
|
211
|
+
'ReplyIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
212
|
+
return Promise.resolve().then(function () {
|
|
213
|
+
return _interopRequireWildcard(require('@digigov/react-icons/ReplyIcon'));
|
|
214
|
+
}).then(function (module) {
|
|
215
|
+
return {
|
|
216
|
+
"default": module['ReplyIcon']
|
|
217
|
+
};
|
|
218
|
+
});
|
|
219
|
+
}),
|
|
220
|
+
'PrintIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
221
|
+
return Promise.resolve().then(function () {
|
|
222
|
+
return _interopRequireWildcard(require('@digigov/react-icons/PrintIcon'));
|
|
223
|
+
}).then(function (module) {
|
|
224
|
+
return {
|
|
225
|
+
"default": module['PrintIcon']
|
|
226
|
+
};
|
|
227
|
+
});
|
|
120
228
|
})
|
|
121
229
|
};
|
package/cjs/registry/index.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _digigov_react_icons_AccessibilityIcon = _interopRequireWildcard(require("@digigov/react-icons/AccessibilityIcon"));
|
|
9
9
|
var _digigov_react_icons_ArrowIcon = _interopRequireWildcard(require("@digigov/react-icons/ArrowIcon"));
|
|
10
|
+
var _digigov_react_icons_Base = _interopRequireWildcard(require("@digigov/react-icons/Base"));
|
|
10
11
|
var _digigov_react_icons_BurgerIcon = _interopRequireWildcard(require("@digigov/react-icons/BurgerIcon"));
|
|
11
12
|
var _digigov_react_icons_CancelIcon = _interopRequireWildcard(require("@digigov/react-icons/CancelIcon"));
|
|
12
13
|
var _digigov_react_icons_CaretIcon = _interopRequireWildcard(require("@digigov/react-icons/CaretIcon"));
|
|
@@ -30,6 +31,7 @@ var _digigov_react_icons_PrintIcon = _interopRequireWildcard(require("@digigov/r
|
|
|
30
31
|
var _digigov_react_icons_ReplyIcon = _interopRequireWildcard(require("@digigov/react-icons/ReplyIcon"));
|
|
31
32
|
var _digigov_react_icons_RestoreIcon = _interopRequireWildcard(require("@digigov/react-icons/RestoreIcon"));
|
|
32
33
|
var _digigov_react_icons_SearchIcon = _interopRequireWildcard(require("@digigov/react-icons/SearchIcon"));
|
|
34
|
+
var _digigov_react_icons_SvgIcon = _interopRequireWildcard(require("@digigov/react-icons/SvgIcon"));
|
|
33
35
|
var _digigov_react_icons_UncheckIcon = _interopRequireWildcard(require("@digigov/react-icons/UncheckIcon"));
|
|
34
36
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
35
37
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -50,6 +52,7 @@ function lazyImport(pkgImport) {
|
|
|
50
52
|
var _default = exports["default"] = {
|
|
51
53
|
'@digigov/react-icons/AccessibilityIcon': lazyImport(_digigov_react_icons_AccessibilityIcon),
|
|
52
54
|
'@digigov/react-icons/ArrowIcon': lazyImport(_digigov_react_icons_ArrowIcon),
|
|
55
|
+
'@digigov/react-icons/Base': lazyImport(_digigov_react_icons_Base),
|
|
53
56
|
'@digigov/react-icons/BurgerIcon': lazyImport(_digigov_react_icons_BurgerIcon),
|
|
54
57
|
'@digigov/react-icons/CancelIcon': lazyImport(_digigov_react_icons_CancelIcon),
|
|
55
58
|
'@digigov/react-icons/CaretIcon': lazyImport(_digigov_react_icons_CaretIcon),
|
|
@@ -73,5 +76,6 @@ var _default = exports["default"] = {
|
|
|
73
76
|
'@digigov/react-icons/ReplyIcon': lazyImport(_digigov_react_icons_ReplyIcon),
|
|
74
77
|
'@digigov/react-icons/RestoreIcon': lazyImport(_digigov_react_icons_RestoreIcon),
|
|
75
78
|
'@digigov/react-icons/SearchIcon': lazyImport(_digigov_react_icons_SearchIcon),
|
|
79
|
+
'@digigov/react-icons/SvgIcon': lazyImport(_digigov_react_icons_SvgIcon),
|
|
76
80
|
'@digigov/react-icons/UncheckIcon': lazyImport(_digigov_react_icons_UncheckIcon)
|
|
77
81
|
};
|
package/index.js
CHANGED
package/lazy/index.js
CHANGED
|
@@ -21,6 +21,13 @@ export default {
|
|
|
21
21
|
};
|
|
22
22
|
});
|
|
23
23
|
}),
|
|
24
|
+
'CancelIcon': /*#__PURE__*/lazy(function () {
|
|
25
|
+
return import('@digigov/react-icons/CancelIcon').then(function (module) {
|
|
26
|
+
return {
|
|
27
|
+
"default": module['CancelIcon']
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
}),
|
|
24
31
|
'CaretIcon': /*#__PURE__*/lazy(function () {
|
|
25
32
|
return import('@digigov/react-icons/CaretIcon').then(function (module) {
|
|
26
33
|
return {
|
|
@@ -28,6 +35,13 @@ export default {
|
|
|
28
35
|
};
|
|
29
36
|
});
|
|
30
37
|
}),
|
|
38
|
+
'ChatIcon': /*#__PURE__*/lazy(function () {
|
|
39
|
+
return import('@digigov/react-icons/ChatIcon').then(function (module) {
|
|
40
|
+
return {
|
|
41
|
+
"default": module['ChatIcon']
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
}),
|
|
31
45
|
'CheckIcon': /*#__PURE__*/lazy(function () {
|
|
32
46
|
return import('@digigov/react-icons/CheckIcon').then(function (module) {
|
|
33
47
|
return {
|
|
@@ -49,6 +63,20 @@ export default {
|
|
|
49
63
|
};
|
|
50
64
|
});
|
|
51
65
|
}),
|
|
66
|
+
'DownloadIcon': /*#__PURE__*/lazy(function () {
|
|
67
|
+
return import('@digigov/react-icons/DownloadIcon').then(function (module) {
|
|
68
|
+
return {
|
|
69
|
+
"default": module['DownloadIcon']
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
}),
|
|
73
|
+
'ExclamationIcon': /*#__PURE__*/lazy(function () {
|
|
74
|
+
return import('@digigov/react-icons/ExclamationIcon').then(function (module) {
|
|
75
|
+
return {
|
|
76
|
+
"default": module['ExclamationIcon']
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
}),
|
|
52
80
|
'GlobeIcon': /*#__PURE__*/lazy(function () {
|
|
53
81
|
return import('@digigov/react-icons/GlobeIcon').then(function (module) {
|
|
54
82
|
return {
|
|
@@ -83,5 +111,61 @@ export default {
|
|
|
83
111
|
"default": module['SearchIcon']
|
|
84
112
|
};
|
|
85
113
|
});
|
|
114
|
+
}),
|
|
115
|
+
'LockIcon': /*#__PURE__*/lazy(function () {
|
|
116
|
+
return import('@digigov/react-icons/LockIcon').then(function (module) {
|
|
117
|
+
return {
|
|
118
|
+
"default": module['LockIcon']
|
|
119
|
+
};
|
|
120
|
+
});
|
|
121
|
+
}),
|
|
122
|
+
'PdfFileIcon': /*#__PURE__*/lazy(function () {
|
|
123
|
+
return import('@digigov/react-icons/PdfFileIcon').then(function (module) {
|
|
124
|
+
return {
|
|
125
|
+
"default": module['PdfFileIcon']
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
}),
|
|
129
|
+
'PlusIcon': /*#__PURE__*/lazy(function () {
|
|
130
|
+
return import('@digigov/react-icons/PlusIcon').then(function (module) {
|
|
131
|
+
return {
|
|
132
|
+
"default": module['PlusIcon']
|
|
133
|
+
};
|
|
134
|
+
});
|
|
135
|
+
}),
|
|
136
|
+
'MinusIcon': /*#__PURE__*/lazy(function () {
|
|
137
|
+
return import('@digigov/react-icons/MinusIcon').then(function (module) {
|
|
138
|
+
return {
|
|
139
|
+
"default": module['MinusIcon']
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
}),
|
|
143
|
+
'LoginIcon': /*#__PURE__*/lazy(function () {
|
|
144
|
+
return import('@digigov/react-icons/LoginIcon').then(function (module) {
|
|
145
|
+
return {
|
|
146
|
+
"default": module['LoginIcon']
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
}),
|
|
150
|
+
'RestoreIcon': /*#__PURE__*/lazy(function () {
|
|
151
|
+
return import('@digigov/react-icons/RestoreIcon').then(function (module) {
|
|
152
|
+
return {
|
|
153
|
+
"default": module['RestoreIcon']
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
}),
|
|
157
|
+
'ReplyIcon': /*#__PURE__*/lazy(function () {
|
|
158
|
+
return import('@digigov/react-icons/ReplyIcon').then(function (module) {
|
|
159
|
+
return {
|
|
160
|
+
"default": module['ReplyIcon']
|
|
161
|
+
};
|
|
162
|
+
});
|
|
163
|
+
}),
|
|
164
|
+
'PrintIcon': /*#__PURE__*/lazy(function () {
|
|
165
|
+
return import('@digigov/react-icons/PrintIcon').then(function (module) {
|
|
166
|
+
return {
|
|
167
|
+
"default": module['PrintIcon']
|
|
168
|
+
};
|
|
169
|
+
});
|
|
86
170
|
})
|
|
87
171
|
};
|
package/lazy.d.ts
CHANGED
|
@@ -2,14 +2,26 @@ declare namespace _default {
|
|
|
2
2
|
let AccessibilityIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"accessibility">>>;
|
|
3
3
|
let ArrowIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"arrow">>>;
|
|
4
4
|
let BurgerIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"burger">>>;
|
|
5
|
+
let CancelIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"cancel">>>;
|
|
5
6
|
let CaretIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"caret">>>;
|
|
7
|
+
let ChatIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"chat">>>;
|
|
6
8
|
let CheckIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"check">>>;
|
|
7
9
|
let ChevronIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"chevron">>>;
|
|
8
10
|
let CloseIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"close">>>;
|
|
11
|
+
let DownloadIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"download">>>;
|
|
12
|
+
let ExclamationIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"exclamation">>>;
|
|
9
13
|
let GlobeIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"globe">>>;
|
|
10
14
|
let Icon: import("react").LazyExoticComponent<(<C extends keyof import("./icons").IconTypes>(props: import("@digigov/react-icons/Icon").IconProps<C>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null)>;
|
|
11
15
|
let UncheckIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"uncheck">>>;
|
|
12
16
|
let MoreVertIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"moreVert">>>;
|
|
13
17
|
let SearchIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"search">>>;
|
|
18
|
+
let LockIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"lock">>>;
|
|
19
|
+
let PdfFileIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"pdfFile">>>;
|
|
20
|
+
let PlusIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"plus">>>;
|
|
21
|
+
let MinusIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"minus">>>;
|
|
22
|
+
let LoginIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"login">>>;
|
|
23
|
+
let RestoreIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"restore">>>;
|
|
24
|
+
let ReplyIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"reply">>>;
|
|
25
|
+
let PrintIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"print">>>;
|
|
14
26
|
}
|
|
15
27
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-icons",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.10",
|
|
4
4
|
"description": "@digigov react icons",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
7
7
|
"main": "./cjs/index.js",
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@digigov/css": "2.0.0-rc.
|
|
10
|
+
"@digigov/css": "2.0.0-rc.10",
|
|
11
11
|
"clsx": "1.1.1",
|
|
12
12
|
"react": "^16.8.0 || ^17.0.0",
|
|
13
13
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
14
|
-
"@digigov/react-core": "2.0.0-rc.
|
|
14
|
+
"@digigov/react-core": "2.0.0-rc.10"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"ts-morph": "18.0.0"
|
package/registry/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _digigov_react_icons_AccessibilityIcon from '@digigov/react-icons/AccessibilityIcon';
|
|
2
2
|
import * as _digigov_react_icons_ArrowIcon from '@digigov/react-icons/ArrowIcon';
|
|
3
|
+
import * as _digigov_react_icons_Base from '@digigov/react-icons/Base';
|
|
3
4
|
import * as _digigov_react_icons_BurgerIcon from '@digigov/react-icons/BurgerIcon';
|
|
4
5
|
import * as _digigov_react_icons_CancelIcon from '@digigov/react-icons/CancelIcon';
|
|
5
6
|
import * as _digigov_react_icons_CaretIcon from '@digigov/react-icons/CaretIcon';
|
|
@@ -23,6 +24,7 @@ import * as _digigov_react_icons_PrintIcon from '@digigov/react-icons/PrintIcon'
|
|
|
23
24
|
import * as _digigov_react_icons_ReplyIcon from '@digigov/react-icons/ReplyIcon';
|
|
24
25
|
import * as _digigov_react_icons_RestoreIcon from '@digigov/react-icons/RestoreIcon';
|
|
25
26
|
import * as _digigov_react_icons_SearchIcon from '@digigov/react-icons/SearchIcon';
|
|
27
|
+
import * as _digigov_react_icons_SvgIcon from '@digigov/react-icons/SvgIcon';
|
|
26
28
|
import * as _digigov_react_icons_UncheckIcon from '@digigov/react-icons/UncheckIcon';
|
|
27
29
|
function lazyImport(pkgImport) {
|
|
28
30
|
// eslint-disable-next-line no-undef
|
|
@@ -41,6 +43,7 @@ function lazyImport(pkgImport) {
|
|
|
41
43
|
export default {
|
|
42
44
|
'@digigov/react-icons/AccessibilityIcon': lazyImport(_digigov_react_icons_AccessibilityIcon),
|
|
43
45
|
'@digigov/react-icons/ArrowIcon': lazyImport(_digigov_react_icons_ArrowIcon),
|
|
46
|
+
'@digigov/react-icons/Base': lazyImport(_digigov_react_icons_Base),
|
|
44
47
|
'@digigov/react-icons/BurgerIcon': lazyImport(_digigov_react_icons_BurgerIcon),
|
|
45
48
|
'@digigov/react-icons/CancelIcon': lazyImport(_digigov_react_icons_CancelIcon),
|
|
46
49
|
'@digigov/react-icons/CaretIcon': lazyImport(_digigov_react_icons_CaretIcon),
|
|
@@ -64,5 +67,6 @@ export default {
|
|
|
64
67
|
'@digigov/react-icons/ReplyIcon': lazyImport(_digigov_react_icons_ReplyIcon),
|
|
65
68
|
'@digigov/react-icons/RestoreIcon': lazyImport(_digigov_react_icons_RestoreIcon),
|
|
66
69
|
'@digigov/react-icons/SearchIcon': lazyImport(_digigov_react_icons_SearchIcon),
|
|
70
|
+
'@digigov/react-icons/SvgIcon': lazyImport(_digigov_react_icons_SvgIcon),
|
|
67
71
|
'@digigov/react-icons/UncheckIcon': lazyImport(_digigov_react_icons_UncheckIcon)
|
|
68
72
|
};
|
package/registry.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'@digigov/react-icons/AccessibilityIcon': {};
|
|
3
3
|
'@digigov/react-icons/ArrowIcon': {};
|
|
4
|
+
'@digigov/react-icons/Base': {};
|
|
4
5
|
'@digigov/react-icons/BurgerIcon': {};
|
|
5
6
|
'@digigov/react-icons/CancelIcon': {};
|
|
6
7
|
'@digigov/react-icons/CaretIcon': {};
|
|
@@ -24,6 +25,7 @@ declare const _default: {
|
|
|
24
25
|
'@digigov/react-icons/ReplyIcon': {};
|
|
25
26
|
'@digigov/react-icons/RestoreIcon': {};
|
|
26
27
|
'@digigov/react-icons/SearchIcon': {};
|
|
28
|
+
'@digigov/react-icons/SvgIcon': {};
|
|
27
29
|
'@digigov/react-icons/UncheckIcon': {};
|
|
28
30
|
};
|
|
29
31
|
export default _default;
|