@popmenu/admin-ui 0.19.5 → 0.20.0

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/build/index.es.js CHANGED
@@ -193,42 +193,6 @@ function SvgUser(props) {
193
193
  })));
194
194
  }
195
195
 
196
- var useIconStyles = makeStyles(function (_a) {
197
- var spacing = _a.spacing, palette = _a.palette;
198
- var getFontSize = function (_a) {
199
- var size = _a.size;
200
- var sizes = {
201
- inherit: 'inherit',
202
- small: spacing(1.5),
203
- medium: spacing(2),
204
- large: spacing(2.5),
205
- 'extra-large': spacing(3),
206
- };
207
- return size ? sizes[size] : 'inherit';
208
- };
209
- var getColor = function (props) {
210
- var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
211
- var value = 'inherit';
212
- if (props.color) {
213
- if (semanticColors.includes(props.color.split('.')[0])) {
214
- var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
215
- value = palette[color][variant];
216
- }
217
- else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
218
- value = props.color;
219
- }
220
- }
221
- return value;
222
- };
223
- return {
224
- root: {
225
- color: getColor,
226
- fontSize: getFontSize,
227
- strokeWidth: '1.3px',
228
- },
229
- };
230
- });
231
-
232
196
  var classnames = {exports: {}};
233
197
 
234
198
  /*!
@@ -289,6 +253,42 @@ var classnames = {exports: {}};
289
253
 
290
254
  var classNames = classnames.exports;
291
255
 
256
+ var useIconStyles = makeStyles(function (_a) {
257
+ var spacing = _a.spacing, palette = _a.palette;
258
+ var getFontSize = function (_a) {
259
+ var size = _a.size;
260
+ var sizes = {
261
+ inherit: 'inherit',
262
+ small: spacing(1.5),
263
+ medium: spacing(2),
264
+ large: spacing(2.5),
265
+ 'extra-large': spacing(3),
266
+ };
267
+ return size ? sizes[size] : 'inherit';
268
+ };
269
+ var getColor = function (props) {
270
+ var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
271
+ var value = 'inherit';
272
+ if (props.color) {
273
+ if (semanticColors.includes(props.color.split('.')[0])) {
274
+ var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
275
+ value = palette[color][variant];
276
+ }
277
+ else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
278
+ value = props.color;
279
+ }
280
+ }
281
+ return value;
282
+ };
283
+ return {
284
+ root: {
285
+ color: getColor,
286
+ fontSize: getFontSize,
287
+ strokeWidth: '1.3px',
288
+ },
289
+ };
290
+ });
291
+
292
292
  var iconStaticClassName = 'pop-icon';
293
293
  var Icon = function (props) {
294
294
  var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);