@digigov/react-icons 2.0.0-b3ec0588 → 2.0.0-cbc56209
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/AccessibilityIcon/__snapshots__/index.test.tsx.snap +6 -6
- package/AccessibilityIcon/index.test/index.js +2 -2
- package/BurgerIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/BurgerIcon/index.test/index.js +6 -6
- package/CancelIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/CancelIcon/index.test/index.js +2 -2
- package/ChatIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/ChatIcon/index.test/index.js +2 -2
- package/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
- package/CheckIcon/index.test/index.js +2 -2
- package/DownloadIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/DownloadIcon/index.test/index.js +2 -2
- package/ExclamationIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/ExclamationIcon/index.test/index.js +2 -2
- package/GlobeIcon/__snapshots__/index.test.tsx.snap +16 -20
- package/GlobeIcon/config/index.js +2 -2
- package/GlobeIcon/index.test/index.js +4 -4
- package/Icon/__snapshots__/index.test.tsx.snap +1 -2
- package/LockIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/LockIcon/index.test/index.js +2 -2
- package/LoginIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/LoginIcon/index.test/index.js +2 -2
- package/MinusIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/MinusIcon/index.test/index.js +2 -2
- package/PdfFileIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/PdfFileIcon/index.test/index.js +2 -2
- package/PlusIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/PlusIcon/index.test/index.js +2 -2
- package/PrintIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/PrintIcon/index.test/index.js +2 -2
- package/ReplyIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/ReplyIcon/index.test/index.js +2 -2
- package/RestoreIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/RestoreIcon/index.test/index.js +2 -2
- package/UncheckIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/UncheckIcon/index.test/index.js +2 -2
- package/cjs/AccessibilityIcon/__snapshots__/index.test.tsx.snap +6 -6
- package/cjs/AccessibilityIcon/index.test/index.js +2 -2
- package/cjs/BurgerIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/BurgerIcon/index.test/index.js +6 -6
- package/cjs/CancelIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/CancelIcon/index.test/index.js +2 -2
- package/cjs/ChatIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/ChatIcon/index.test/index.js +2 -2
- package/cjs/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
- package/cjs/CheckIcon/index.test/index.js +2 -2
- package/cjs/DownloadIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/DownloadIcon/index.test/index.js +2 -2
- package/cjs/ExclamationIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/cjs/ExclamationIcon/index.test/index.js +2 -2
- package/cjs/GlobeIcon/__snapshots__/index.test.tsx.snap +16 -20
- package/cjs/GlobeIcon/config/index.js +2 -2
- package/cjs/GlobeIcon/index.test/index.js +4 -4
- package/cjs/Icon/__snapshots__/index.test.tsx.snap +1 -2
- package/cjs/LockIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/LockIcon/index.test/index.js +2 -2
- package/cjs/LoginIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/LoginIcon/index.test/index.js +2 -2
- package/cjs/MinusIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/MinusIcon/index.test/index.js +2 -2
- package/cjs/PdfFileIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/PdfFileIcon/index.test/index.js +2 -2
- package/cjs/PlusIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/PlusIcon/index.test/index.js +2 -2
- package/cjs/PrintIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/cjs/PrintIcon/index.test/index.js +2 -2
- package/cjs/ReplyIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/ReplyIcon/index.test/index.js +2 -2
- package/cjs/RestoreIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/cjs/RestoreIcon/index.test/index.js +2 -2
- package/cjs/UncheckIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/cjs/UncheckIcon/index.test/index.js +2 -2
- package/cjs/lazy/index.js +229 -0
- package/index.js +1 -1
- package/lazy/index.js +171 -0
- package/lazy/package.json +6 -0
- package/lazy.d.ts +27 -0
- package/package.json +3 -3
- package/src/AccessibilityIcon/__snapshots__/index.test.tsx.snap +6 -6
- package/src/AccessibilityIcon/index.test.tsx +2 -2
- package/src/BurgerIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/BurgerIcon/index.test.tsx +6 -6
- package/src/CancelIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/CancelIcon/index.test.tsx +2 -2
- package/src/ChatIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/ChatIcon/index.test.tsx +2 -2
- package/src/CheckIcon/__snapshots__/index.test.tsx.snap +24 -24
- package/src/CheckIcon/index.test.tsx +2 -2
- package/src/DownloadIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/DownloadIcon/index.test.tsx +2 -2
- package/src/ExclamationIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/src/ExclamationIcon/index.test.tsx +2 -2
- package/src/GlobeIcon/__snapshots__/index.test.tsx.snap +16 -20
- package/src/GlobeIcon/config.tsx +1 -12
- package/src/GlobeIcon/index.test.tsx +4 -4
- package/src/Icon/__snapshots__/index.test.tsx.snap +1 -2
- package/src/LockIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/LockIcon/index.test.tsx +2 -2
- package/src/LoginIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/LoginIcon/index.test.tsx +2 -2
- package/src/MinusIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/MinusIcon/index.test.tsx +2 -2
- package/src/PdfFileIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/PdfFileIcon/index.test.tsx +2 -2
- package/src/PlusIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/PlusIcon/index.test.tsx +2 -2
- package/src/PrintIcon/__snapshots__/index.test.tsx.snap +12 -12
- package/src/PrintIcon/index.test.tsx +2 -2
- package/src/ReplyIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/ReplyIcon/index.test.tsx +2 -2
- package/src/RestoreIcon/__snapshots__/index.test.tsx.snap +18 -18
- package/src/RestoreIcon/index.test.tsx +2 -2
- package/src/UncheckIcon/__snapshots__/index.test.tsx.snap +21 -21
- package/src/UncheckIcon/index.test.tsx +2 -2
- package/src/lazy.js +28 -0
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
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); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(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; }
|
|
12
|
+
var _default = exports["default"] = {
|
|
13
|
+
'AccessibilityIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
14
|
+
return Promise.resolve().then(function () {
|
|
15
|
+
return _interopRequireWildcard(require('@digigov/react-icons/AccessibilityIcon'));
|
|
16
|
+
}).then(function (module) {
|
|
17
|
+
return {
|
|
18
|
+
"default": module['AccessibilityIcon']
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
}),
|
|
22
|
+
'ArrowIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
23
|
+
return Promise.resolve().then(function () {
|
|
24
|
+
return _interopRequireWildcard(require('@digigov/react-icons/ArrowIcon'));
|
|
25
|
+
}).then(function (module) {
|
|
26
|
+
return {
|
|
27
|
+
"default": module['ArrowIcon']
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
}),
|
|
31
|
+
'BurgerIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
32
|
+
return Promise.resolve().then(function () {
|
|
33
|
+
return _interopRequireWildcard(require('@digigov/react-icons/BurgerIcon'));
|
|
34
|
+
}).then(function (module) {
|
|
35
|
+
return {
|
|
36
|
+
"default": module['BurgerIcon']
|
|
37
|
+
};
|
|
38
|
+
});
|
|
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
|
+
}),
|
|
49
|
+
'CaretIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
50
|
+
return Promise.resolve().then(function () {
|
|
51
|
+
return _interopRequireWildcard(require('@digigov/react-icons/CaretIcon'));
|
|
52
|
+
}).then(function (module) {
|
|
53
|
+
return {
|
|
54
|
+
"default": module['CaretIcon']
|
|
55
|
+
};
|
|
56
|
+
});
|
|
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
|
+
}),
|
|
67
|
+
'CheckIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
68
|
+
return Promise.resolve().then(function () {
|
|
69
|
+
return _interopRequireWildcard(require('@digigov/react-icons/CheckIcon'));
|
|
70
|
+
}).then(function (module) {
|
|
71
|
+
return {
|
|
72
|
+
"default": module['CheckIcon']
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
}),
|
|
76
|
+
'ChevronIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
77
|
+
return Promise.resolve().then(function () {
|
|
78
|
+
return _interopRequireWildcard(require('@digigov/react-icons/ChevronIcon'));
|
|
79
|
+
}).then(function (module) {
|
|
80
|
+
return {
|
|
81
|
+
"default": module['ChevronIcon']
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
}),
|
|
85
|
+
'CloseIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
86
|
+
return Promise.resolve().then(function () {
|
|
87
|
+
return _interopRequireWildcard(require('@digigov/react-icons/CloseIcon'));
|
|
88
|
+
}).then(function (module) {
|
|
89
|
+
return {
|
|
90
|
+
"default": module['CloseIcon']
|
|
91
|
+
};
|
|
92
|
+
});
|
|
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
|
+
}),
|
|
112
|
+
'GlobeIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
113
|
+
return Promise.resolve().then(function () {
|
|
114
|
+
return _interopRequireWildcard(require('@digigov/react-icons/GlobeIcon'));
|
|
115
|
+
}).then(function (module) {
|
|
116
|
+
return {
|
|
117
|
+
"default": module['GlobeIcon']
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
}),
|
|
121
|
+
'Icon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
122
|
+
return Promise.resolve().then(function () {
|
|
123
|
+
return _interopRequireWildcard(require('@digigov/react-icons/Icon'));
|
|
124
|
+
}).then(function (module) {
|
|
125
|
+
return {
|
|
126
|
+
"default": module['Icon']
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
}),
|
|
130
|
+
'UncheckIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
131
|
+
return Promise.resolve().then(function () {
|
|
132
|
+
return _interopRequireWildcard(require('@digigov/react-icons/UncheckIcon'));
|
|
133
|
+
}).then(function (module) {
|
|
134
|
+
return {
|
|
135
|
+
"default": module['UncheckIcon']
|
|
136
|
+
};
|
|
137
|
+
});
|
|
138
|
+
}),
|
|
139
|
+
'MoreVertIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
140
|
+
return Promise.resolve().then(function () {
|
|
141
|
+
return _interopRequireWildcard(require('@digigov/react-icons/MoreVertIcon'));
|
|
142
|
+
}).then(function (module) {
|
|
143
|
+
return {
|
|
144
|
+
"default": module['MoreVertIcon']
|
|
145
|
+
};
|
|
146
|
+
});
|
|
147
|
+
}),
|
|
148
|
+
'SearchIcon': /*#__PURE__*/(0, _react.lazy)(function () {
|
|
149
|
+
return Promise.resolve().then(function () {
|
|
150
|
+
return _interopRequireWildcard(require('@digigov/react-icons/SearchIcon'));
|
|
151
|
+
}).then(function (module) {
|
|
152
|
+
return {
|
|
153
|
+
"default": module['SearchIcon']
|
|
154
|
+
};
|
|
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
|
+
});
|
|
228
|
+
})
|
|
229
|
+
};
|
package/index.js
CHANGED
package/lazy/index.js
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
export default {
|
|
3
|
+
'AccessibilityIcon': /*#__PURE__*/lazy(function () {
|
|
4
|
+
return import('@digigov/react-icons/AccessibilityIcon').then(function (module) {
|
|
5
|
+
return {
|
|
6
|
+
"default": module['AccessibilityIcon']
|
|
7
|
+
};
|
|
8
|
+
});
|
|
9
|
+
}),
|
|
10
|
+
'ArrowIcon': /*#__PURE__*/lazy(function () {
|
|
11
|
+
return import('@digigov/react-icons/ArrowIcon').then(function (module) {
|
|
12
|
+
return {
|
|
13
|
+
"default": module['ArrowIcon']
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
}),
|
|
17
|
+
'BurgerIcon': /*#__PURE__*/lazy(function () {
|
|
18
|
+
return import('@digigov/react-icons/BurgerIcon').then(function (module) {
|
|
19
|
+
return {
|
|
20
|
+
"default": module['BurgerIcon']
|
|
21
|
+
};
|
|
22
|
+
});
|
|
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
|
+
}),
|
|
31
|
+
'CaretIcon': /*#__PURE__*/lazy(function () {
|
|
32
|
+
return import('@digigov/react-icons/CaretIcon').then(function (module) {
|
|
33
|
+
return {
|
|
34
|
+
"default": module['CaretIcon']
|
|
35
|
+
};
|
|
36
|
+
});
|
|
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
|
+
}),
|
|
45
|
+
'CheckIcon': /*#__PURE__*/lazy(function () {
|
|
46
|
+
return import('@digigov/react-icons/CheckIcon').then(function (module) {
|
|
47
|
+
return {
|
|
48
|
+
"default": module['CheckIcon']
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}),
|
|
52
|
+
'ChevronIcon': /*#__PURE__*/lazy(function () {
|
|
53
|
+
return import('@digigov/react-icons/ChevronIcon').then(function (module) {
|
|
54
|
+
return {
|
|
55
|
+
"default": module['ChevronIcon']
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}),
|
|
59
|
+
'CloseIcon': /*#__PURE__*/lazy(function () {
|
|
60
|
+
return import('@digigov/react-icons/CloseIcon').then(function (module) {
|
|
61
|
+
return {
|
|
62
|
+
"default": module['CloseIcon']
|
|
63
|
+
};
|
|
64
|
+
});
|
|
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
|
+
}),
|
|
80
|
+
'GlobeIcon': /*#__PURE__*/lazy(function () {
|
|
81
|
+
return import('@digigov/react-icons/GlobeIcon').then(function (module) {
|
|
82
|
+
return {
|
|
83
|
+
"default": module['GlobeIcon']
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
}),
|
|
87
|
+
'Icon': /*#__PURE__*/lazy(function () {
|
|
88
|
+
return import('@digigov/react-icons/Icon').then(function (module) {
|
|
89
|
+
return {
|
|
90
|
+
"default": module['Icon']
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}),
|
|
94
|
+
'UncheckIcon': /*#__PURE__*/lazy(function () {
|
|
95
|
+
return import('@digigov/react-icons/UncheckIcon').then(function (module) {
|
|
96
|
+
return {
|
|
97
|
+
"default": module['UncheckIcon']
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
}),
|
|
101
|
+
'MoreVertIcon': /*#__PURE__*/lazy(function () {
|
|
102
|
+
return import('@digigov/react-icons/MoreVertIcon').then(function (module) {
|
|
103
|
+
return {
|
|
104
|
+
"default": module['MoreVertIcon']
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
}),
|
|
108
|
+
'SearchIcon': /*#__PURE__*/lazy(function () {
|
|
109
|
+
return import('@digigov/react-icons/SearchIcon').then(function (module) {
|
|
110
|
+
return {
|
|
111
|
+
"default": module['SearchIcon']
|
|
112
|
+
};
|
|
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
|
+
});
|
|
170
|
+
})
|
|
171
|
+
};
|
package/lazy.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let AccessibilityIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"accessibility">>>;
|
|
3
|
+
let ArrowIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"arrow">>>;
|
|
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">>>;
|
|
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">>>;
|
|
8
|
+
let CheckIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"check">>>;
|
|
9
|
+
let ChevronIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"chevron">>>;
|
|
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">>>;
|
|
13
|
+
let GlobeIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"globe">>>;
|
|
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)>;
|
|
15
|
+
let UncheckIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"uncheck">>>;
|
|
16
|
+
let MoreVertIcon: import("react").LazyExoticComponent<import("react").FC<import("@digigov/react-icons/Icon").IconProps<"moreVert">>>;
|
|
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">>>;
|
|
26
|
+
}
|
|
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-
|
|
3
|
+
"version": "2.0.0-cbc56209",
|
|
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-
|
|
10
|
+
"@digigov/css": "2.0.0-cbc56209",
|
|
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-
|
|
14
|
+
"@digigov/react-core": "2.0.0-cbc56209"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"ts-morph": "18.0.0"
|
|
@@ -41,28 +41,28 @@ exports[`renders the AccessibilityIcon with no props 1`] = `
|
|
|
41
41
|
</AccessibilityIcon>
|
|
42
42
|
`;
|
|
43
43
|
|
|
44
|
-
exports[`renders the AccessibilityIcon with prop color=
|
|
44
|
+
exports[`renders the AccessibilityIcon with prop color=base-content 1`] = `
|
|
45
45
|
<AccessibilityIcon
|
|
46
|
-
color="
|
|
46
|
+
color="base-content"
|
|
47
47
|
>
|
|
48
48
|
<ForwardRef(Icon)
|
|
49
|
-
color="
|
|
49
|
+
color="base-content"
|
|
50
50
|
icon="accessibility"
|
|
51
51
|
>
|
|
52
52
|
<ForwardRef(SvgIcon)
|
|
53
53
|
className="ds-svg-icon--accessibility"
|
|
54
|
-
color="
|
|
54
|
+
color="base-content"
|
|
55
55
|
>
|
|
56
56
|
<ForwardRef(Base)
|
|
57
57
|
aria-hidden="true"
|
|
58
58
|
as="svg"
|
|
59
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
59
|
+
className="ds-svg-icon--accessibility ds-svg-icon--base-content ds-svg-icon"
|
|
60
60
|
focusable="false"
|
|
61
61
|
viewBox="0 0 24 24"
|
|
62
62
|
>
|
|
63
63
|
<svg
|
|
64
64
|
aria-hidden="true"
|
|
65
|
-
className="ds-svg-icon--accessibility ds-svg-icon--
|
|
65
|
+
className="ds-svg-icon--accessibility ds-svg-icon--base-content ds-svg-icon"
|
|
66
66
|
focusable="false"
|
|
67
67
|
viewBox="0 0 24 24"
|
|
68
68
|
>
|
|
@@ -12,8 +12,8 @@ it('renders the AccessibilityIcon with prop size=s', () => {
|
|
|
12
12
|
it('renders the AccessibilityIcon with prop size=l', () => {
|
|
13
13
|
expect(mount(<AccessibilityIcon size="lg" />)).toMatchSnapshot();
|
|
14
14
|
});
|
|
15
|
-
it('renders the AccessibilityIcon with prop color=
|
|
16
|
-
expect(mount(<AccessibilityIcon color="
|
|
15
|
+
it('renders the AccessibilityIcon with prop color=base-content', () => {
|
|
16
|
+
expect(mount(<AccessibilityIcon color="base-content" />)).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
18
|
it('renders the AccessibilityIcon with prop color=primary', () => {
|
|
19
19
|
expect(mount(<AccessibilityIcon color="primary" />)).toMatchSnapshot();
|
|
@@ -53,28 +53,28 @@ exports[`renders the BurgerIcon prop color= "error" 1`] = `
|
|
|
53
53
|
</BurgerIcon>
|
|
54
54
|
`;
|
|
55
55
|
|
|
56
|
-
exports[`renders the BurgerIcon prop color= "
|
|
56
|
+
exports[`renders the BurgerIcon prop color= "white" 1`] = `
|
|
57
57
|
<BurgerIcon
|
|
58
|
-
color="
|
|
58
|
+
color="white"
|
|
59
59
|
>
|
|
60
60
|
<ForwardRef(Icon)
|
|
61
|
-
color="
|
|
61
|
+
color="white"
|
|
62
62
|
icon="burger"
|
|
63
63
|
>
|
|
64
64
|
<ForwardRef(SvgIcon)
|
|
65
65
|
className="ds-svg-icon--burger"
|
|
66
|
-
color="
|
|
66
|
+
color="white"
|
|
67
67
|
>
|
|
68
68
|
<ForwardRef(Base)
|
|
69
69
|
aria-hidden="true"
|
|
70
70
|
as="svg"
|
|
71
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
71
|
+
className="ds-svg-icon--burger ds-svg-icon--white ds-svg-icon"
|
|
72
72
|
focusable="false"
|
|
73
73
|
viewBox="0 0 24 24"
|
|
74
74
|
>
|
|
75
75
|
<svg
|
|
76
76
|
aria-hidden="true"
|
|
77
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
77
|
+
className="ds-svg-icon--burger ds-svg-icon--white ds-svg-icon"
|
|
78
78
|
focusable="false"
|
|
79
79
|
viewBox="0 0 24 24"
|
|
80
80
|
>
|
|
@@ -106,30 +106,30 @@ exports[`renders the BurgerIcon prop color= "light" 1`] = `
|
|
|
106
106
|
</BurgerIcon>
|
|
107
107
|
`;
|
|
108
108
|
|
|
109
|
-
exports[`renders the BurgerIcon props active color= "
|
|
109
|
+
exports[`renders the BurgerIcon props active color= "white" 1`] = `
|
|
110
110
|
<BurgerIcon
|
|
111
111
|
active={true}
|
|
112
|
-
color="
|
|
112
|
+
color="white"
|
|
113
113
|
>
|
|
114
114
|
<ForwardRef(Icon)
|
|
115
115
|
active={true}
|
|
116
|
-
color="
|
|
116
|
+
color="white"
|
|
117
117
|
icon="burger"
|
|
118
118
|
>
|
|
119
119
|
<ForwardRef(SvgIcon)
|
|
120
120
|
className="ds-svg-icon--burger"
|
|
121
|
-
color="
|
|
121
|
+
color="white"
|
|
122
122
|
>
|
|
123
123
|
<ForwardRef(Base)
|
|
124
124
|
aria-hidden="true"
|
|
125
125
|
as="svg"
|
|
126
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
126
|
+
className="ds-svg-icon--burger ds-svg-icon--white ds-svg-icon"
|
|
127
127
|
focusable="false"
|
|
128
128
|
viewBox="0 0 24 24"
|
|
129
129
|
>
|
|
130
130
|
<svg
|
|
131
131
|
aria-hidden="true"
|
|
132
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
132
|
+
className="ds-svg-icon--burger ds-svg-icon--white ds-svg-icon"
|
|
133
133
|
focusable="false"
|
|
134
134
|
viewBox="0 0 24 24"
|
|
135
135
|
>
|
|
@@ -266,28 +266,28 @@ exports[`renders the BurgerIcon with prop active=true 1`] = `
|
|
|
266
266
|
</BurgerIcon>
|
|
267
267
|
`;
|
|
268
268
|
|
|
269
|
-
exports[`renders the BurgerIcon with prop color=
|
|
269
|
+
exports[`renders the BurgerIcon with prop color=base-content 1`] = `
|
|
270
270
|
<BurgerIcon
|
|
271
|
-
color="
|
|
271
|
+
color="base-content"
|
|
272
272
|
>
|
|
273
273
|
<ForwardRef(Icon)
|
|
274
|
-
color="
|
|
274
|
+
color="base-content"
|
|
275
275
|
icon="burger"
|
|
276
276
|
>
|
|
277
277
|
<ForwardRef(SvgIcon)
|
|
278
278
|
className="ds-svg-icon--burger"
|
|
279
|
-
color="
|
|
279
|
+
color="base-content"
|
|
280
280
|
>
|
|
281
281
|
<ForwardRef(Base)
|
|
282
282
|
aria-hidden="true"
|
|
283
283
|
as="svg"
|
|
284
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
284
|
+
className="ds-svg-icon--burger ds-svg-icon--base-content ds-svg-icon"
|
|
285
285
|
focusable="false"
|
|
286
286
|
viewBox="0 0 24 24"
|
|
287
287
|
>
|
|
288
288
|
<svg
|
|
289
289
|
aria-hidden="true"
|
|
290
|
-
className="ds-svg-icon--burger ds-svg-icon--
|
|
290
|
+
className="ds-svg-icon--burger ds-svg-icon--base-content ds-svg-icon"
|
|
291
291
|
focusable="false"
|
|
292
292
|
viewBox="0 0 24 24"
|
|
293
293
|
>
|
|
@@ -11,16 +11,16 @@ it('renders the BurgerIcon with prop active=true', () => {
|
|
|
11
11
|
expect(mount(<BurgerIcon active={true} />)).toMatchSnapshot();
|
|
12
12
|
});
|
|
13
13
|
|
|
14
|
-
it('renders the BurgerIcon with prop color=
|
|
15
|
-
expect(mount(<BurgerIcon color="
|
|
14
|
+
it('renders the BurgerIcon with prop color=base-content', () => {
|
|
15
|
+
expect(mount(<BurgerIcon color="base-content" />)).toMatchSnapshot();
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
it('renders the BurgerIcon prop color= "
|
|
19
|
-
expect(mount(<BurgerIcon color="
|
|
18
|
+
it('renders the BurgerIcon prop color= "white"', () => {
|
|
19
|
+
expect(mount(<BurgerIcon color="white" />)).toMatchSnapshot();
|
|
20
20
|
});
|
|
21
21
|
it('renders the BurgerIcon prop color= "error"', () => {
|
|
22
22
|
expect(mount(<BurgerIcon color="error" />)).toMatchSnapshot();
|
|
23
23
|
});
|
|
24
|
-
it('renders the BurgerIcon props active color= "
|
|
25
|
-
expect(mount(<BurgerIcon active color="
|
|
24
|
+
it('renders the BurgerIcon props active color= "white"', () => {
|
|
25
|
+
expect(mount(<BurgerIcon active color="white" />)).toMatchSnapshot();
|
|
26
26
|
});
|