@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 +36 -36
- package/build/index.es.js.map +1 -1
- package/build/index.js +36 -36
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -244,42 +244,6 @@ function SvgUser(props) {
|
|
|
244
244
|
})));
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
var useIconStyles = core.makeStyles(function (_a) {
|
|
248
|
-
var spacing = _a.spacing, palette = _a.palette;
|
|
249
|
-
var getFontSize = function (_a) {
|
|
250
|
-
var size = _a.size;
|
|
251
|
-
var sizes = {
|
|
252
|
-
inherit: 'inherit',
|
|
253
|
-
small: spacing(1.5),
|
|
254
|
-
medium: spacing(2),
|
|
255
|
-
large: spacing(2.5),
|
|
256
|
-
'extra-large': spacing(3),
|
|
257
|
-
};
|
|
258
|
-
return size ? sizes[size] : 'inherit';
|
|
259
|
-
};
|
|
260
|
-
var getColor = function (props) {
|
|
261
|
-
var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
|
|
262
|
-
var value = 'inherit';
|
|
263
|
-
if (props.color) {
|
|
264
|
-
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
265
|
-
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
266
|
-
value = palette[color][variant];
|
|
267
|
-
}
|
|
268
|
-
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
269
|
-
value = props.color;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
return value;
|
|
273
|
-
};
|
|
274
|
-
return {
|
|
275
|
-
root: {
|
|
276
|
-
color: getColor,
|
|
277
|
-
fontSize: getFontSize,
|
|
278
|
-
strokeWidth: '1.3px',
|
|
279
|
-
},
|
|
280
|
-
};
|
|
281
|
-
});
|
|
282
|
-
|
|
283
247
|
var classnames = {exports: {}};
|
|
284
248
|
|
|
285
249
|
/*!
|
|
@@ -340,6 +304,42 @@ var classnames = {exports: {}};
|
|
|
340
304
|
|
|
341
305
|
var classNames = classnames.exports;
|
|
342
306
|
|
|
307
|
+
var useIconStyles = core.makeStyles(function (_a) {
|
|
308
|
+
var spacing = _a.spacing, palette = _a.palette;
|
|
309
|
+
var getFontSize = function (_a) {
|
|
310
|
+
var size = _a.size;
|
|
311
|
+
var sizes = {
|
|
312
|
+
inherit: 'inherit',
|
|
313
|
+
small: spacing(1.5),
|
|
314
|
+
medium: spacing(2),
|
|
315
|
+
large: spacing(2.5),
|
|
316
|
+
'extra-large': spacing(3),
|
|
317
|
+
};
|
|
318
|
+
return size ? sizes[size] : 'inherit';
|
|
319
|
+
};
|
|
320
|
+
var getColor = function (props) {
|
|
321
|
+
var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
|
|
322
|
+
var value = 'inherit';
|
|
323
|
+
if (props.color) {
|
|
324
|
+
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
325
|
+
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
326
|
+
value = palette[color][variant];
|
|
327
|
+
}
|
|
328
|
+
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
329
|
+
value = props.color;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return value;
|
|
333
|
+
};
|
|
334
|
+
return {
|
|
335
|
+
root: {
|
|
336
|
+
color: getColor,
|
|
337
|
+
fontSize: getFontSize,
|
|
338
|
+
strokeWidth: '1.3px',
|
|
339
|
+
},
|
|
340
|
+
};
|
|
341
|
+
});
|
|
342
|
+
|
|
343
343
|
var iconStaticClassName = 'pop-icon';
|
|
344
344
|
var Icon = function (props) {
|
|
345
345
|
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|