@popmenu/admin-ui 0.23.0 → 0.25.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/Page/Page.d.ts +4 -0
- package/build/components/Page/index.d.ts +1 -0
- package/build/components/PageContent/PageContent.d.ts +4 -0
- package/build/components/PageContent/index.d.ts +1 -0
- package/build/components/PageSection/PageSection.d.ts +4 -0
- package/build/components/PageSection/index.d.ts +1 -0
- package/build/components/Toast/ToastProps.d.ts +1 -1
- package/build/components/index.d.ts +3 -0
- package/build/index.es.js +86 -71
- package/build/index.es.js.map +1 -1
- package/build/index.js +87 -70
- package/build/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Page } from './Page';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageContent } from './PageContent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageSection } from './PageSection';
|
|
@@ -2,7 +2,7 @@ import { SnackbarProps } from '@material-ui/core/Snackbar';
|
|
|
2
2
|
import { AlertProps as MuiAlertProps } from '@material-ui/lab/Alert';
|
|
3
3
|
export interface ToastProps extends SnackbarProps {
|
|
4
4
|
/** Applied to the built in [Alert](?path=/docs/admin-ui-alert--props) Component. */
|
|
5
|
-
AlertProps
|
|
5
|
+
AlertProps?: Omit<MuiAlertProps, 'ref'>;
|
|
6
6
|
/** The severity of the Alert. */
|
|
7
7
|
severity: 'error' | 'warning' | 'info' | 'success';
|
|
8
8
|
/** @ignore */
|
|
@@ -13,3 +13,6 @@ export { DialogTitle, DialogTitleProps } from './DialogTitle';
|
|
|
13
13
|
export { DialogActions, DialogActionsProps } from './DialogActions';
|
|
14
14
|
export { Dialog, DialogProps } from './Dialog';
|
|
15
15
|
export { DialogContent, DialogContentProps } from './DialogContent';
|
|
16
|
+
export { Page } from './Page';
|
|
17
|
+
export { PageContent } from './PageContent';
|
|
18
|
+
export { PageSection } from './PageSection';
|
package/build/index.es.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { createElement, forwardRef, createContext, useState, useContext } from 'react';
|
|
3
3
|
import CommonAlert from '@material-ui/lab/Alert';
|
|
4
|
-
import { makeStyles, Paper as Paper$1, Link as Link$1, Box } from '@material-ui/core';
|
|
4
|
+
import { makeStyles, Typography as Typography$1, Paper as Paper$1, Link as Link$1, Box } from '@material-ui/core';
|
|
5
5
|
import '@material-ui/core/AppBar';
|
|
6
6
|
import MuiIconButton from '@material-ui/core/IconButton';
|
|
7
|
-
import MuiTypography from '@material-ui/core/Typography';
|
|
8
7
|
import { makeStyles as makeStyles$1, useTheme, lighten } from '@material-ui/core/styles';
|
|
9
8
|
import MuiAvatar from '@material-ui/core/Avatar';
|
|
10
9
|
import '@material-ui/core/Badge';
|
|
@@ -176,20 +175,20 @@ function __rest(s, e) {
|
|
|
176
175
|
return t;
|
|
177
176
|
}
|
|
178
177
|
|
|
179
|
-
var _path$
|
|
178
|
+
var _path$3l;
|
|
180
179
|
|
|
181
|
-
function _extends$
|
|
180
|
+
function _extends$3C() { _extends$3C = 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$3C.apply(this, arguments); }
|
|
182
181
|
|
|
183
182
|
function SvgUser(props) {
|
|
184
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
183
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3C({
|
|
185
184
|
viewBox: "0 0 16 16",
|
|
186
185
|
strokeLinecap: "round",
|
|
187
186
|
strokeLinejoin: "round",
|
|
188
187
|
stroke: "currentColor",
|
|
189
|
-
fill: "none",
|
|
190
188
|
width: "1em",
|
|
191
|
-
height: "1em"
|
|
192
|
-
|
|
189
|
+
height: "1em",
|
|
190
|
+
fill: "none"
|
|
191
|
+
}, props), _path$3l || (_path$3l = /*#__PURE__*/React.createElement("path", {
|
|
193
192
|
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"
|
|
194
193
|
})));
|
|
195
194
|
}
|
|
@@ -316,29 +315,29 @@ IconButton.defaultProps = {
|
|
|
316
315
|
color: 'secondary',
|
|
317
316
|
};
|
|
318
317
|
|
|
319
|
-
var useTypographyStyles = makeStyles$1(function () {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
});
|
|
318
|
+
var useTypographyStyles = makeStyles$1(function () { return ({
|
|
319
|
+
root: function (_a) {
|
|
320
|
+
var _b;
|
|
321
|
+
var weight = _a.weight;
|
|
322
|
+
return (__assign((_b = {}, _b["& ." + iconStaticClassName] = {
|
|
323
|
+
position: 'relative',
|
|
324
|
+
top: '0.125em',
|
|
325
|
+
padding: '0 0.125em',
|
|
326
|
+
boxSizing: 'content-box',
|
|
327
|
+
}, _b), (weight && { fontWeight: (weight === 'semi-bold' && 600) || (weight === 'bold' && 700) || 400 })));
|
|
328
|
+
},
|
|
329
|
+
caption: {
|
|
330
|
+
display: 'inline',
|
|
331
|
+
},
|
|
332
|
+
overline: {
|
|
333
|
+
display: 'inline',
|
|
334
|
+
},
|
|
335
|
+
}); });
|
|
338
336
|
|
|
339
337
|
var Typography = forwardRef(function (props, ref) {
|
|
338
|
+
props.weight; var restProps = __rest(props, ["weight"]);
|
|
340
339
|
var classes = useTypographyStyles(props);
|
|
341
|
-
return React__default.createElement(
|
|
340
|
+
return React__default.createElement(Typography$1, __assign({ ref: ref, classes: classes }, restProps));
|
|
342
341
|
});
|
|
343
342
|
Typography.displayName = 'Typography';
|
|
344
343
|
|
|
@@ -745,113 +744,113 @@ makeStyles(function (theme) { return ({
|
|
|
745
744
|
},
|
|
746
745
|
}); });
|
|
747
746
|
|
|
748
|
-
var _path$
|
|
747
|
+
var _path$4o, _path2$1q;
|
|
749
748
|
|
|
750
|
-
function _extends$
|
|
749
|
+
function _extends$4F() { _extends$4F = 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$4F.apply(this, arguments); }
|
|
751
750
|
|
|
752
751
|
function SvgCheckCircle(props) {
|
|
753
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
752
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4F({
|
|
754
753
|
viewBox: "0 0 16 16",
|
|
755
754
|
strokeLinecap: "round",
|
|
756
755
|
strokeLinejoin: "round",
|
|
757
756
|
stroke: "currentColor",
|
|
758
|
-
fill: "none",
|
|
759
757
|
width: "1em",
|
|
760
|
-
height: "1em"
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
758
|
+
height: "1em",
|
|
759
|
+
fill: "none"
|
|
760
|
+
}, props), _path$4o || (_path$4o = /*#__PURE__*/React.createElement("path", {
|
|
761
|
+
d: "M14.667 7.387V8a6.666 6.666 0 11-3.954-6.093"
|
|
762
|
+
})), _path2$1q || (_path2$1q = /*#__PURE__*/React.createElement("path", {
|
|
764
763
|
d: "M14.667 2.667L8 9.34l-2-2"
|
|
765
764
|
})));
|
|
766
765
|
}
|
|
767
766
|
|
|
768
|
-
var _path$
|
|
767
|
+
var _path$4l;
|
|
769
768
|
|
|
770
|
-
function _extends$
|
|
769
|
+
function _extends$4C() { _extends$4C = 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$4C.apply(this, arguments); }
|
|
771
770
|
|
|
772
771
|
function SvgX(props) {
|
|
773
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
772
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4C({
|
|
774
773
|
viewBox: "0 0 16 16",
|
|
775
774
|
strokeLinecap: "round",
|
|
776
775
|
strokeLinejoin: "round",
|
|
777
776
|
stroke: "currentColor",
|
|
778
|
-
fill: "none",
|
|
779
777
|
width: "1em",
|
|
780
|
-
height: "1em"
|
|
781
|
-
|
|
778
|
+
height: "1em",
|
|
779
|
+
fill: "none"
|
|
780
|
+
}, props), _path$4l || (_path$4l = /*#__PURE__*/React.createElement("path", {
|
|
782
781
|
d: "M12 4l-8 8m0-8l8 8"
|
|
783
782
|
})));
|
|
784
783
|
}
|
|
785
784
|
|
|
786
|
-
var _path$
|
|
785
|
+
var _path$40;
|
|
787
786
|
|
|
788
|
-
function _extends$
|
|
787
|
+
function _extends$4h() { _extends$4h = 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$4h.apply(this, arguments); }
|
|
789
788
|
|
|
790
789
|
function SvgInfo(props) {
|
|
791
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
790
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4h({
|
|
792
791
|
viewBox: "0 0 16 16",
|
|
793
792
|
strokeLinecap: "round",
|
|
794
793
|
strokeLinejoin: "round",
|
|
795
794
|
stroke: "currentColor",
|
|
796
|
-
fill: "none",
|
|
797
795
|
width: "1em",
|
|
798
|
-
height: "1em"
|
|
799
|
-
|
|
800
|
-
|
|
796
|
+
height: "1em",
|
|
797
|
+
fill: "none"
|
|
798
|
+
}, props), _path$40 || (_path$40 = /*#__PURE__*/React.createElement("path", {
|
|
799
|
+
d: "M8 14.667A6.667 6.667 0 108 1.333a6.667 6.667 0 000 13.334zm0-4V8m0-2.667h.007"
|
|
801
800
|
})));
|
|
802
801
|
}
|
|
803
802
|
|
|
804
|
-
var _path$
|
|
803
|
+
var _path$3b;
|
|
805
804
|
|
|
806
|
-
function _extends$
|
|
805
|
+
function _extends$3r() { _extends$3r = 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$3r.apply(this, arguments); }
|
|
807
806
|
|
|
808
807
|
function SvgError(props) {
|
|
809
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
808
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3r({
|
|
810
809
|
viewBox: "0 0 16 16",
|
|
811
810
|
strokeLinecap: "round",
|
|
812
811
|
strokeLinejoin: "round",
|
|
813
812
|
stroke: "currentColor",
|
|
814
|
-
fill: "none",
|
|
815
813
|
width: "1em",
|
|
816
|
-
height: "1em"
|
|
817
|
-
|
|
818
|
-
|
|
814
|
+
height: "1em",
|
|
815
|
+
fill: "none"
|
|
816
|
+
}, props), _path$3b || (_path$3b = /*#__PURE__*/React.createElement("path", {
|
|
817
|
+
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.667h.008"
|
|
819
818
|
})));
|
|
820
819
|
}
|
|
821
820
|
|
|
822
|
-
var _path$
|
|
821
|
+
var _path$3a;
|
|
823
822
|
|
|
824
|
-
function _extends$
|
|
823
|
+
function _extends$3q() { _extends$3q = 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$3q.apply(this, arguments); }
|
|
825
824
|
|
|
826
825
|
function SvgWarning(props) {
|
|
827
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
826
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3q({
|
|
828
827
|
viewBox: "0 0 16 16",
|
|
829
828
|
strokeLinecap: "round",
|
|
830
829
|
strokeLinejoin: "round",
|
|
831
830
|
stroke: "currentColor",
|
|
832
|
-
fill: "none",
|
|
833
831
|
width: "1em",
|
|
834
|
-
height: "1em"
|
|
835
|
-
|
|
836
|
-
|
|
832
|
+
height: "1em",
|
|
833
|
+
fill: "none"
|
|
834
|
+
}, props), _path$3a || (_path$3a = /*#__PURE__*/React.createElement("path", {
|
|
835
|
+
d: "M6.86 2.573L1.213 12a1.333 1.333 0 001.14 2h11.294a1.334 1.334 0 001.14-2L9.14 2.573a1.333 1.333 0 00-2.28 0v0zM8 6v2.667m0 2.666h.007"
|
|
837
836
|
})));
|
|
838
837
|
}
|
|
839
838
|
|
|
840
|
-
var _path$
|
|
839
|
+
var _path$T;
|
|
841
840
|
|
|
842
|
-
function _extends$
|
|
841
|
+
function _extends$11() { _extends$11 = 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$11.apply(this, arguments); }
|
|
843
842
|
|
|
844
843
|
function SvgCircle(props) {
|
|
845
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
844
|
+
return /*#__PURE__*/React.createElement("svg", _extends$11({
|
|
846
845
|
viewBox: "0 0 16 16",
|
|
847
846
|
strokeLinecap: "round",
|
|
848
847
|
strokeLinejoin: "round",
|
|
849
848
|
stroke: "currentColor",
|
|
850
|
-
fill: "none",
|
|
851
849
|
width: "1em",
|
|
852
|
-
height: "1em"
|
|
853
|
-
|
|
854
|
-
|
|
850
|
+
height: "1em",
|
|
851
|
+
fill: "none"
|
|
852
|
+
}, props), _path$T || (_path$T = /*#__PURE__*/React.createElement("path", {
|
|
853
|
+
d: "M8 14.667A6.667 6.667 0 108 1.333a6.667 6.667 0 000 13.334z"
|
|
855
854
|
})));
|
|
856
855
|
}
|
|
857
856
|
|
|
@@ -1563,6 +1562,22 @@ var DialogActions = function (props) {
|
|
|
1563
1562
|
return React__default.createElement(CommonDialogActions, __assign$1({ classes: classes }, props));
|
|
1564
1563
|
};
|
|
1565
1564
|
|
|
1565
|
+
var Page = function (props) {
|
|
1566
|
+
var children = props.children;
|
|
1567
|
+
return React__default.createElement(Box, { marginTop: 8 }, children);
|
|
1568
|
+
};
|
|
1569
|
+
|
|
1570
|
+
var PageContent = function (props) {
|
|
1571
|
+
var children = props.children;
|
|
1572
|
+
return (React__default.createElement(Box, { py: 2, px: 5.5 }, children));
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1575
|
+
var PageSection = function (props) {
|
|
1576
|
+
var children = props.children;
|
|
1577
|
+
return (React__default.createElement(Card, null,
|
|
1578
|
+
React__default.createElement(CardContent, null, children)));
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1566
1581
|
var useFullScreenStepperContext = function () { return useContext(FullScreenStepperContext); };
|
|
1567
1582
|
|
|
1568
1583
|
/**
|
|
@@ -1823,5 +1838,5 @@ var adminLight = createTheme(adminLightOptions);
|
|
|
1823
1838
|
var adminDarkOptions = __assign$1(__assign$1(__assign$1(__assign$1({ themeName: 'Admin Dark', palette: __assign$1(__assign$1({}, basePalette), adminDarkPalette), breakpoints: adminThemeBreakpoints, typography: adminThemeTypography }, adminDarkPlaceholder), adminThemeZIndex), adminThemeStatus), adminThemeDefaultProps);
|
|
1824
1839
|
var adminDark = createTheme(adminDarkOptions);
|
|
1825
1840
|
|
|
1826
|
-
export { Alert, AlertDialog, AlertDialogHeader, AlertTitle, Button, ButtonGroup, DialogActions, FeatureIntro, FullScreenStepper, FullScreenStepperContent, FullScreenStepperContext, SelectableCard, Toast, adminDark, adminDarkOptions, adminLight, adminLightOptions, useFullScreenStepperContext, useSelectableCard };
|
|
1841
|
+
export { Alert, AlertDialog, AlertDialogHeader, AlertTitle, Button, ButtonGroup, DialogActions, FeatureIntro, FullScreenStepper, FullScreenStepperContent, FullScreenStepperContext, Page, PageContent, PageSection, SelectableCard, Toast, adminDark, adminDarkOptions, adminLight, adminLightOptions, useFullScreenStepperContext, useSelectableCard };
|
|
1827
1842
|
//# sourceMappingURL=index.es.js.map
|