@popmenu/admin-ui 0.40.5 → 0.43.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 +145 -39
- package/build/index.es.js.map +1 -1
- package/build/index.js +145 -39
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -228,19 +228,19 @@ function __rest(s, e) {
|
|
|
228
228
|
return t;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
var _path$
|
|
231
|
+
var _path$F;
|
|
232
232
|
|
|
233
|
-
function _extends$
|
|
233
|
+
function _extends$1s() { _extends$1s = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1s.apply(this, arguments); }
|
|
234
234
|
|
|
235
235
|
function SvgUser(props) {
|
|
236
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
236
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1s({
|
|
237
237
|
viewBox: "0 0 16 16",
|
|
238
238
|
fill: "none",
|
|
239
239
|
strokeLinecap: "round",
|
|
240
240
|
strokeLinejoin: "round",
|
|
241
241
|
width: "1em",
|
|
242
242
|
height: "1em"
|
|
243
|
-
}, props), _path$
|
|
243
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
244
244
|
d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z",
|
|
245
245
|
stroke: "currentColor"
|
|
246
246
|
})));
|
|
@@ -473,6 +473,79 @@ var Checkbox = React.forwardRef(function (props, ref) {
|
|
|
473
473
|
});
|
|
474
474
|
Checkbox.displayName = 'Checkbox';
|
|
475
475
|
|
|
476
|
+
var getBackground$1 = function (theme) { return function (props) {
|
|
477
|
+
var variant = props.variant, severity = props.severity;
|
|
478
|
+
var background;
|
|
479
|
+
var backgrounds = {
|
|
480
|
+
outlined: 'none',
|
|
481
|
+
error: 'error.main',
|
|
482
|
+
warning: 'warning.main',
|
|
483
|
+
info: 'info.light',
|
|
484
|
+
success: 'success.light',
|
|
485
|
+
};
|
|
486
|
+
if (variant === 'outlined') {
|
|
487
|
+
background = backgrounds[variant];
|
|
488
|
+
}
|
|
489
|
+
else if (severity) {
|
|
490
|
+
var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
|
|
491
|
+
background = theme.palette[color][colorVariant];
|
|
492
|
+
}
|
|
493
|
+
return background;
|
|
494
|
+
}; };
|
|
495
|
+
var getColor$1 = function (theme) { return function (props) {
|
|
496
|
+
var variant = props.variant, severity = props.severity;
|
|
497
|
+
var textColor;
|
|
498
|
+
if (variant === 'outlined' && severity) {
|
|
499
|
+
var textColors = {
|
|
500
|
+
error: theme.palette.error.main,
|
|
501
|
+
info: theme.palette.info.main,
|
|
502
|
+
warning: theme.palette.warning.dark,
|
|
503
|
+
success: theme.palette.success.dark,
|
|
504
|
+
};
|
|
505
|
+
textColor = textColors[severity];
|
|
506
|
+
}
|
|
507
|
+
else if (variant === 'outlined' && !severity) {
|
|
508
|
+
textColor = theme.palette.grey[700];
|
|
509
|
+
}
|
|
510
|
+
else if ((variant === 'default' || variant === undefined) && severity) {
|
|
511
|
+
var textColors = {
|
|
512
|
+
error: theme.palette.common.white,
|
|
513
|
+
info: theme.palette.secondary.main,
|
|
514
|
+
warning: theme.palette.secondary.main,
|
|
515
|
+
success: theme.palette.secondary.main,
|
|
516
|
+
};
|
|
517
|
+
textColor = textColors[severity];
|
|
518
|
+
}
|
|
519
|
+
return textColor;
|
|
520
|
+
}; };
|
|
521
|
+
var getBorder = function (theme) { return function (props) {
|
|
522
|
+
var variant = props.variant, severity = props.severity;
|
|
523
|
+
var borderColor;
|
|
524
|
+
if (variant === 'outlined' && severity) {
|
|
525
|
+
var borderColors = {
|
|
526
|
+
error: theme.palette.error.main,
|
|
527
|
+
info: theme.palette.info.main,
|
|
528
|
+
warning: theme.palette.warning.dark,
|
|
529
|
+
success: theme.palette.success.dark,
|
|
530
|
+
};
|
|
531
|
+
borderColor = borderColors[severity];
|
|
532
|
+
}
|
|
533
|
+
return borderColor;
|
|
534
|
+
}; };
|
|
535
|
+
styles.makeStyles(function (theme) { return ({
|
|
536
|
+
root: {
|
|
537
|
+
background: getBackground$1(theme),
|
|
538
|
+
color: getColor$1(theme),
|
|
539
|
+
borderColor: getBorder(theme),
|
|
540
|
+
borderRadius: theme.spacing(0.5),
|
|
541
|
+
},
|
|
542
|
+
icon: {
|
|
543
|
+
color: 'inherit',
|
|
544
|
+
height: theme.spacing(2),
|
|
545
|
+
width: theme.spacing(2),
|
|
546
|
+
},
|
|
547
|
+
}); });
|
|
548
|
+
|
|
476
549
|
var defaultTypographyProps = {
|
|
477
550
|
variant: 'body1',
|
|
478
551
|
};
|
|
@@ -810,136 +883,169 @@ core.makeStyles(function (theme) { return ({
|
|
|
810
883
|
},
|
|
811
884
|
}); });
|
|
812
885
|
|
|
813
|
-
var _g$
|
|
886
|
+
var _g$17, _defs$I;
|
|
814
887
|
|
|
815
|
-
function _extends$
|
|
888
|
+
function _extends$25() { _extends$25 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$25.apply(this, arguments); }
|
|
816
889
|
|
|
817
890
|
function SvgCheckCircle(props) {
|
|
818
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
891
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$25({
|
|
819
892
|
viewBox: "0 0 16 16",
|
|
820
893
|
fill: "none",
|
|
821
894
|
strokeLinecap: "round",
|
|
822
895
|
strokeLinejoin: "round",
|
|
823
896
|
width: "1em",
|
|
824
897
|
height: "1em"
|
|
825
|
-
}, props), _g$
|
|
898
|
+
}, props), _g$17 || (_g$17 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
899
|
+
clipPath: "url(#check-circle_svg__clip0_8_5831)",
|
|
826
900
|
stroke: "currentColor"
|
|
827
901
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
828
902
|
d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
|
|
829
903
|
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
830
904
|
d: "M14.667 2.667L8 9.34l-2-2"
|
|
831
|
-
})))
|
|
905
|
+
}))), _defs$I || (_defs$I = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
906
|
+
id: "check-circle_svg__clip0_8_5831"
|
|
907
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
908
|
+
fill: "currentColor",
|
|
909
|
+
d: "M0 0h16v16H0z"
|
|
910
|
+
})))));
|
|
832
911
|
}
|
|
833
912
|
|
|
834
|
-
var _path$
|
|
913
|
+
var _path$W;
|
|
835
914
|
|
|
836
|
-
function _extends$
|
|
915
|
+
function _extends$23() { _extends$23 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$23.apply(this, arguments); }
|
|
837
916
|
|
|
838
917
|
function SvgX(props) {
|
|
839
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
918
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$23({
|
|
840
919
|
viewBox: "0 0 16 16",
|
|
841
920
|
fill: "none",
|
|
842
921
|
strokeLinecap: "round",
|
|
843
922
|
strokeLinejoin: "round",
|
|
844
923
|
width: "1em",
|
|
845
924
|
height: "1em"
|
|
846
|
-
}, props), _path$
|
|
925
|
+
}, props), _path$W || (_path$W = /*#__PURE__*/React__namespace.createElement("path", {
|
|
847
926
|
d: "M12 4l-8 8m0-8l8 8",
|
|
848
927
|
stroke: "currentColor"
|
|
849
928
|
})));
|
|
850
929
|
}
|
|
851
930
|
|
|
852
|
-
var _g$
|
|
931
|
+
var _g$$, _defs$B;
|
|
853
932
|
|
|
854
|
-
function _extends$
|
|
933
|
+
function _extends$1V() { _extends$1V = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1V.apply(this, arguments); }
|
|
855
934
|
|
|
856
935
|
function SvgHelp(props) {
|
|
857
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
936
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1V({
|
|
858
937
|
viewBox: "0 0 16 16",
|
|
859
938
|
fill: "none",
|
|
860
939
|
strokeLinecap: "round",
|
|
861
940
|
strokeLinejoin: "round",
|
|
862
941
|
width: "1em",
|
|
863
942
|
height: "1em"
|
|
864
|
-
}, props), _g
|
|
943
|
+
}, props), _g$$ || (_g$$ = /*#__PURE__*/React__namespace.createElement("g", {
|
|
944
|
+
clipPath: "url(#help_svg__clip0_8_5446)",
|
|
865
945
|
stroke: "currentColor"
|
|
866
946
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
867
947
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
|
|
868
948
|
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
869
949
|
d: "M6.06 6a2 2 0 013.887.667c0 1.333-2 2-2 2M8 11.334h.007"
|
|
870
|
-
})))
|
|
950
|
+
}))), _defs$B || (_defs$B = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
951
|
+
id: "help_svg__clip0_8_5446"
|
|
952
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
953
|
+
fill: "currentColor",
|
|
954
|
+
d: "M0 0h16v16H0z"
|
|
955
|
+
})))));
|
|
871
956
|
}
|
|
872
957
|
|
|
873
|
-
var
|
|
958
|
+
var _g$Z, _defs$A;
|
|
874
959
|
|
|
875
|
-
function _extends$
|
|
960
|
+
function _extends$1T() { _extends$1T = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1T.apply(this, arguments); }
|
|
876
961
|
|
|
877
962
|
function SvgInfo(props) {
|
|
878
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
963
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1T({
|
|
879
964
|
viewBox: "0 0 16 16",
|
|
880
965
|
fill: "none",
|
|
881
966
|
strokeLinecap: "round",
|
|
882
967
|
strokeLinejoin: "round",
|
|
883
968
|
width: "1em",
|
|
884
969
|
height: "1em"
|
|
885
|
-
}, props),
|
|
886
|
-
|
|
970
|
+
}, props), _g$Z || (_g$Z = /*#__PURE__*/React__namespace.createElement("g", {
|
|
971
|
+
clipPath: "url(#info_svg__clip0_8_5377)",
|
|
887
972
|
stroke: "currentColor"
|
|
888
|
-
}
|
|
973
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
974
|
+
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
|
|
975
|
+
}))), _defs$A || (_defs$A = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
976
|
+
id: "info_svg__clip0_8_5377"
|
|
977
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
978
|
+
fill: "currentColor",
|
|
979
|
+
d: "M0 0h16v16H0z"
|
|
980
|
+
})))));
|
|
889
981
|
}
|
|
890
982
|
|
|
891
|
-
var
|
|
983
|
+
var _g$K, _defs$r;
|
|
892
984
|
|
|
893
|
-
function _extends$
|
|
985
|
+
function _extends$1o() { _extends$1o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1o.apply(this, arguments); }
|
|
894
986
|
|
|
895
987
|
function SvgError(props) {
|
|
896
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
988
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1o({
|
|
897
989
|
viewBox: "0 0 16 16",
|
|
898
990
|
fill: "none",
|
|
899
991
|
strokeLinecap: "round",
|
|
900
992
|
strokeLinejoin: "round",
|
|
901
993
|
width: "1em",
|
|
902
994
|
height: "1em"
|
|
903
|
-
}, props),
|
|
904
|
-
|
|
995
|
+
}, props), _g$K || (_g$K = /*#__PURE__*/React__namespace.createElement("g", {
|
|
996
|
+
clipPath: "url(#error_svg__clip0_8_5411)",
|
|
905
997
|
stroke: "currentColor"
|
|
906
|
-
}
|
|
998
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
999
|
+
d: "M5.24 1.333h5.52l3.907 3.907v5.52l-3.907 3.907H5.24L1.333 10.76V5.24L5.24 1.333zm2.76 4V8m0 2.666h.008"
|
|
1000
|
+
}))), _defs$r || (_defs$r = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1001
|
+
id: "error_svg__clip0_8_5411"
|
|
1002
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1003
|
+
fill: "currentColor",
|
|
1004
|
+
d: "M0 0h16v16H0z"
|
|
1005
|
+
})))));
|
|
907
1006
|
}
|
|
908
1007
|
|
|
909
|
-
var _path$
|
|
1008
|
+
var _path$C;
|
|
910
1009
|
|
|
911
|
-
function _extends$
|
|
1010
|
+
function _extends$1n() { _extends$1n = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1n.apply(this, arguments); }
|
|
912
1011
|
|
|
913
1012
|
function SvgWarning(props) {
|
|
914
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1013
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1n({
|
|
915
1014
|
viewBox: "0 0 16 16",
|
|
916
1015
|
fill: "none",
|
|
917
1016
|
strokeLinecap: "round",
|
|
918
1017
|
strokeLinejoin: "round",
|
|
919
1018
|
width: "1em",
|
|
920
1019
|
height: "1em"
|
|
921
|
-
}, props), _path$
|
|
1020
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
922
1021
|
d: "M6.86 2.573L1.213 12a1.334 1.334 0 001.14 2h11.294a1.332 1.332 0 001.14-2L9.14 2.573a1.333 1.333 0 00-2.28 0v0zM8 6v2.667m0 2.667h.007",
|
|
923
1022
|
stroke: "currentColor"
|
|
924
1023
|
})));
|
|
925
1024
|
}
|
|
926
1025
|
|
|
927
|
-
var
|
|
1026
|
+
var _g$q, _defs$k;
|
|
928
1027
|
|
|
929
|
-
function _extends$
|
|
1028
|
+
function _extends$H() { _extends$H = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$H.apply(this, arguments); }
|
|
930
1029
|
|
|
931
1030
|
function SvgCircle(props) {
|
|
932
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1031
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
933
1032
|
viewBox: "0 0 16 16",
|
|
934
1033
|
fill: "none",
|
|
935
1034
|
strokeLinecap: "round",
|
|
936
1035
|
strokeLinejoin: "round",
|
|
937
1036
|
width: "1em",
|
|
938
1037
|
height: "1em"
|
|
939
|
-
}, props),
|
|
1038
|
+
}, props), _g$q || (_g$q = /*#__PURE__*/React__namespace.createElement("g", {
|
|
1039
|
+
clipPath: "url(#circle_svg__clip0_8_2293)"
|
|
1040
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
940
1041
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z",
|
|
941
1042
|
stroke: "currentColor"
|
|
942
|
-
})))
|
|
1043
|
+
}))), _defs$k || (_defs$k = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("clipPath", {
|
|
1044
|
+
id: "circle_svg__clip0_8_2293"
|
|
1045
|
+
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1046
|
+
fill: "currentColor",
|
|
1047
|
+
d: "M0 0h16v16H0z"
|
|
1048
|
+
})))));
|
|
943
1049
|
}
|
|
944
1050
|
|
|
945
1051
|
var useAlertStyles = styles.makeStyles(function (theme) { return ({
|