@popmenu/admin-ui 0.31.0 → 0.34.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/components/PageSection/PageSection.d.ts +3 -2
- package/build/components/PageSection/PageSectionProps.d.ts +5 -0
- package/build/components/PageSection/PageSectionStyles.d.ts +2 -0
- package/build/index.es.js +51 -50
- package/build/index.es.js.map +1 -1
- package/build/index.js +51 -50
- package/build/index.js.map +1 -1
- package/build/theme/adminDarkTheme.d.ts +6 -0
- package/build/theme/adminLightTheme.d.ts +6 -0
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -227,19 +227,19 @@ function __rest(s, e) {
|
|
|
227
227
|
return t;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
var _path$
|
|
230
|
+
var _path$F;
|
|
231
231
|
|
|
232
|
-
function _extends$
|
|
232
|
+
function _extends$1c() { _extends$1c = 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$1c.apply(this, arguments); }
|
|
233
233
|
|
|
234
234
|
function SvgUser(props) {
|
|
235
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
235
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1c({
|
|
236
236
|
viewBox: "0 0 16 16",
|
|
237
237
|
fill: "none",
|
|
238
238
|
strokeLinecap: "round",
|
|
239
239
|
strokeLinejoin: "round",
|
|
240
240
|
width: "1em",
|
|
241
241
|
height: "1em"
|
|
242
|
-
}, props), _path$
|
|
242
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
243
243
|
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",
|
|
244
244
|
stroke: "currentColor"
|
|
245
245
|
})));
|
|
@@ -546,18 +546,7 @@ var useTypographyStyles = styles.makeStyles(function (theme) {
|
|
|
546
546
|
var Typography = React.forwardRef(function (props, ref) {
|
|
547
547
|
props.weight; props.color; var restProps = __rest(props, ["weight", "color"]);
|
|
548
548
|
var classes = useTypographyStyles(__assign({}, props));
|
|
549
|
-
var variantMapping = {
|
|
550
|
-
h1: 'h1',
|
|
551
|
-
h2: 'h2',
|
|
552
|
-
h3: 'h3',
|
|
553
|
-
h4: 'h4',
|
|
554
|
-
h5: 'h5',
|
|
555
|
-
h6: 'h6',
|
|
556
|
-
subtitle1: 'p',
|
|
557
|
-
subtitle2: 'p',
|
|
558
|
-
body1: 'p',
|
|
559
|
-
body2: 'p',
|
|
560
|
-
};
|
|
549
|
+
var variantMapping = { subtitle1: 'p' };
|
|
561
550
|
return React__default['default'].createElement(core.Typography, __assign({ ref: ref, classes: classes, variantMapping: variantMapping }, restProps));
|
|
562
551
|
});
|
|
563
552
|
Typography.displayName = 'Typography';
|
|
@@ -820,19 +809,19 @@ core.makeStyles(function (theme) { return ({
|
|
|
820
809
|
},
|
|
821
810
|
}); });
|
|
822
811
|
|
|
823
|
-
var _g$
|
|
812
|
+
var _g$M;
|
|
824
813
|
|
|
825
|
-
function _extends$
|
|
814
|
+
function _extends$1R() { _extends$1R = 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$1R.apply(this, arguments); }
|
|
826
815
|
|
|
827
816
|
function SvgCheckCircle(props) {
|
|
828
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
817
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1R({
|
|
829
818
|
viewBox: "0 0 16 16",
|
|
830
819
|
fill: "none",
|
|
831
820
|
strokeLinecap: "round",
|
|
832
821
|
strokeLinejoin: "round",
|
|
833
822
|
width: "1em",
|
|
834
823
|
height: "1em"
|
|
835
|
-
}, props), _g$
|
|
824
|
+
}, props), _g$M || (_g$M = /*#__PURE__*/React__namespace.createElement("g", {
|
|
836
825
|
stroke: "currentColor"
|
|
837
826
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
838
827
|
d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
|
|
@@ -841,37 +830,37 @@ function SvgCheckCircle(props) {
|
|
|
841
830
|
}))));
|
|
842
831
|
}
|
|
843
832
|
|
|
844
|
-
var _path$
|
|
833
|
+
var _path$14;
|
|
845
834
|
|
|
846
|
-
function _extends$
|
|
835
|
+
function _extends$1P() { _extends$1P = 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$1P.apply(this, arguments); }
|
|
847
836
|
|
|
848
837
|
function SvgX(props) {
|
|
849
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
838
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1P({
|
|
850
839
|
viewBox: "0 0 16 16",
|
|
851
840
|
fill: "none",
|
|
852
841
|
strokeLinecap: "round",
|
|
853
842
|
strokeLinejoin: "round",
|
|
854
843
|
width: "1em",
|
|
855
844
|
height: "1em"
|
|
856
|
-
}, props), _path$
|
|
845
|
+
}, props), _path$14 || (_path$14 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
857
846
|
d: "M12 4l-8 8m0-8l8 8",
|
|
858
847
|
stroke: "currentColor"
|
|
859
848
|
})));
|
|
860
849
|
}
|
|
861
850
|
|
|
862
|
-
var _g$
|
|
851
|
+
var _g$H;
|
|
863
852
|
|
|
864
|
-
function _extends$
|
|
853
|
+
function _extends$1F() { _extends$1F = 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$1F.apply(this, arguments); }
|
|
865
854
|
|
|
866
855
|
function SvgHelp(props) {
|
|
867
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
856
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1F({
|
|
868
857
|
viewBox: "0 0 16 16",
|
|
869
858
|
fill: "none",
|
|
870
859
|
strokeLinecap: "round",
|
|
871
860
|
strokeLinejoin: "round",
|
|
872
861
|
width: "1em",
|
|
873
862
|
height: "1em"
|
|
874
|
-
}, props), _g$
|
|
863
|
+
}, props), _g$H || (_g$H = /*#__PURE__*/React__namespace.createElement("g", {
|
|
875
864
|
stroke: "currentColor"
|
|
876
865
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
877
866
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
|
|
@@ -880,73 +869,73 @@ function SvgHelp(props) {
|
|
|
880
869
|
}))));
|
|
881
870
|
}
|
|
882
871
|
|
|
883
|
-
var _path$
|
|
872
|
+
var _path$Z;
|
|
884
873
|
|
|
885
|
-
function _extends$
|
|
874
|
+
function _extends$1D() { _extends$1D = 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$1D.apply(this, arguments); }
|
|
886
875
|
|
|
887
876
|
function SvgInfo(props) {
|
|
888
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
877
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1D({
|
|
889
878
|
viewBox: "0 0 16 16",
|
|
890
879
|
fill: "none",
|
|
891
880
|
strokeLinecap: "round",
|
|
892
881
|
strokeLinejoin: "round",
|
|
893
882
|
width: "1em",
|
|
894
883
|
height: "1em"
|
|
895
|
-
}, props), _path$
|
|
884
|
+
}, props), _path$Z || (_path$Z = /*#__PURE__*/React__namespace.createElement("path", {
|
|
896
885
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007",
|
|
897
886
|
stroke: "currentColor"
|
|
898
887
|
})));
|
|
899
888
|
}
|
|
900
889
|
|
|
901
|
-
var _path$
|
|
890
|
+
var _path$C;
|
|
902
891
|
|
|
903
|
-
function _extends$
|
|
892
|
+
function _extends$18() { _extends$18 = 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$18.apply(this, arguments); }
|
|
904
893
|
|
|
905
894
|
function SvgError(props) {
|
|
906
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
895
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$18({
|
|
907
896
|
viewBox: "0 0 16 16",
|
|
908
897
|
fill: "none",
|
|
909
898
|
strokeLinecap: "round",
|
|
910
899
|
strokeLinejoin: "round",
|
|
911
900
|
width: "1em",
|
|
912
901
|
height: "1em"
|
|
913
|
-
}, props), _path$
|
|
902
|
+
}, props), _path$C || (_path$C = /*#__PURE__*/React__namespace.createElement("path", {
|
|
914
903
|
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",
|
|
915
904
|
stroke: "currentColor"
|
|
916
905
|
})));
|
|
917
906
|
}
|
|
918
907
|
|
|
919
|
-
var _path$
|
|
908
|
+
var _path$B;
|
|
920
909
|
|
|
921
|
-
function _extends$
|
|
910
|
+
function _extends$17() { _extends$17 = 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$17.apply(this, arguments); }
|
|
922
911
|
|
|
923
912
|
function SvgWarning(props) {
|
|
924
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
913
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$17({
|
|
925
914
|
viewBox: "0 0 16 16",
|
|
926
915
|
fill: "none",
|
|
927
916
|
strokeLinecap: "round",
|
|
928
917
|
strokeLinejoin: "round",
|
|
929
918
|
width: "1em",
|
|
930
919
|
height: "1em"
|
|
931
|
-
}, props), _path$
|
|
920
|
+
}, props), _path$B || (_path$B = /*#__PURE__*/React__namespace.createElement("path", {
|
|
932
921
|
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",
|
|
933
922
|
stroke: "currentColor"
|
|
934
923
|
})));
|
|
935
924
|
}
|
|
936
925
|
|
|
937
|
-
var _path$
|
|
926
|
+
var _path$b;
|
|
938
927
|
|
|
939
|
-
function _extends$
|
|
928
|
+
function _extends$r() { _extends$r = 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$r.apply(this, arguments); }
|
|
940
929
|
|
|
941
930
|
function SvgCircle(props) {
|
|
942
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
931
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
943
932
|
viewBox: "0 0 16 16",
|
|
944
933
|
fill: "none",
|
|
945
934
|
strokeLinecap: "round",
|
|
946
935
|
strokeLinejoin: "round",
|
|
947
936
|
width: "1em",
|
|
948
937
|
height: "1em"
|
|
949
|
-
}, props), _path$
|
|
938
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
950
939
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z",
|
|
951
940
|
stroke: "currentColor"
|
|
952
941
|
})));
|
|
@@ -1670,11 +1659,22 @@ var PageBody = function (props) {
|
|
|
1670
1659
|
return (React__default['default'].createElement(core.Box, __assign$1({ py: 2, px: 5.5, maxWidth: 1100, width: "100%" }, restProps), children));
|
|
1671
1660
|
};
|
|
1672
1661
|
|
|
1673
|
-
var
|
|
1674
|
-
|
|
1675
|
-
|
|
1662
|
+
var usePageSectionStyles = core.makeStyles(function () { return ({
|
|
1663
|
+
root: {
|
|
1664
|
+
background: function (_a) {
|
|
1665
|
+
var uncontained = _a.uncontained;
|
|
1666
|
+
return (uncontained ? 'transparent' : undefined);
|
|
1667
|
+
},
|
|
1668
|
+
},
|
|
1669
|
+
}); });
|
|
1670
|
+
|
|
1671
|
+
var PageSection = React.forwardRef(function (props, ref) {
|
|
1672
|
+
var children = props.children; props.uncontained; var restProps = __rest$1(props, ["children", "uncontained"]);
|
|
1673
|
+
var classes = usePageSectionStyles(props);
|
|
1674
|
+
return (React__default['default'].createElement(Card__default['default'], __assign$1({ classes: { root: classes.root }, ref: ref }, restProps),
|
|
1676
1675
|
React__default['default'].createElement(CardContent__default['default'], null, children)));
|
|
1677
|
-
};
|
|
1676
|
+
});
|
|
1677
|
+
PageSection.displayName = 'PageSection';
|
|
1678
1678
|
|
|
1679
1679
|
var PageSections = function (props) {
|
|
1680
1680
|
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
@@ -1684,16 +1684,17 @@ var PageSections = function (props) {
|
|
|
1684
1684
|
var PageSectionTitle = function (props) {
|
|
1685
1685
|
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
1686
1686
|
return (React__default['default'].createElement(core.Box, __assign$1({}, restProps),
|
|
1687
|
-
React__default['default'].createElement(Typography, { gutterBottom: true, variant: "
|
|
1687
|
+
React__default['default'].createElement(Typography, { gutterBottom: true, variant: "h5" }, children)));
|
|
1688
1688
|
};
|
|
1689
1689
|
|
|
1690
1690
|
var SettingsIndexCardGroup = function (props) {
|
|
1691
1691
|
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
1692
|
-
return (React__default['default'].createElement(core.Box, __assign$1({ display: "grid", gridGap: 16, gridTemplateColumns: "repeat(auto-
|
|
1692
|
+
return (React__default['default'].createElement(core.Box, __assign$1({ display: "grid", gridGap: 16, gridTemplateColumns: "repeat(auto-fill, minmax(250px, 1fr))" }, restProps), children));
|
|
1693
1693
|
};
|
|
1694
1694
|
|
|
1695
1695
|
var useSettingsIndexCardStyles = styles.makeStyles(function (theme) { return ({
|
|
1696
1696
|
cardRoot: {
|
|
1697
|
+
border: "1px solid " + theme.palette.grey[300],
|
|
1697
1698
|
alignSelf: 'stretch',
|
|
1698
1699
|
flexGrow: 1,
|
|
1699
1700
|
'&:hover': {
|