@popmenu/admin-ui 0.27.0 → 0.28.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 +2 -4
- package/build/components/PageBody/PageBody.d.ts +2 -0
- package/build/components/PageBody/index.d.ts +1 -0
- package/build/components/PageSection/PageSection.d.ts +2 -4
- package/build/components/PageSectionTitle/PageSectionTitle.d.ts +2 -0
- package/build/components/PageSectionTitle/index.d.ts +1 -0
- package/build/components/PageSections/PageSections.d.ts +2 -0
- package/build/components/PageSections/index.d.ts +1 -0
- package/build/components/SettingsIndexCard/SettingsIndexCard.d.ts +3 -0
- package/build/components/SettingsIndexCard/SettingsIndexCardProps.d.ts +17 -0
- package/build/components/SettingsIndexCard/SettingsIndexCardStyles.d.ts +2 -0
- package/build/components/SettingsIndexCard/index.d.ts +2 -0
- package/build/components/SettingsIndexCardGroup/SettingsIndexCardGroup.d.ts +3 -0
- package/build/components/SettingsIndexCardGroup/index.d.ts +1 -0
- package/build/components/index.d.ts +5 -1
- package/build/index.es.js +213 -65
- package/build/index.es.js.map +1 -1
- package/build/index.js +216 -64
- package/build/index.js.map +1 -1
- package/build/theme/adminDarkTheme.d.ts +5 -0
- package/build/theme/adminLightTheme.d.ts +5 -0
- package/build/theme/typography.d.ts +5 -0
- package/package.json +2 -2
- package/build/components/PageContent/PageContent.d.ts +0 -4
- package/build/components/PageContent/index.d.ts +0 -1
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const Page: (props:
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}) => JSX.Element;
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
export declare const Page: (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageBody } from './PageBody';
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const PageSection: (props:
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}) => JSX.Element;
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
export declare const PageSection: (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageSectionTitle } from './PageSectionTitle';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PageSections } from './PageSections';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ThemeColors } from '@popmenu/common-ui/build/components/Typography/TypographyProps';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface SettingsIndexCardProps {
|
|
4
|
+
/** The icon from @popmenu/web-icons to be rendered */
|
|
5
|
+
Icon?: ReactNode;
|
|
6
|
+
/** Sets the title of the card */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Displays the given card description */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** Event callback for the Card click event */
|
|
11
|
+
onClick?: (event: any) => void;
|
|
12
|
+
/** Sets the text and color of the label */
|
|
13
|
+
statusLabel?: {
|
|
14
|
+
text: string;
|
|
15
|
+
color: ThemeColors;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
|
|
@@ -14,5 +14,9 @@ export { DialogActions, DialogActionsProps } from './DialogActions';
|
|
|
14
14
|
export { Dialog, DialogProps } from './Dialog';
|
|
15
15
|
export { DialogContent, DialogContentProps } from './DialogContent';
|
|
16
16
|
export { Page } from './Page';
|
|
17
|
-
export {
|
|
17
|
+
export { PageBody } from './PageBody';
|
|
18
18
|
export { PageSection } from './PageSection';
|
|
19
|
+
export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
|
|
20
|
+
export { SettingsIndexCard, SettingsIndexCardProps } from './SettingsIndexCard';
|
|
21
|
+
export { PageSections } from './PageSections';
|
|
22
|
+
export { PageSectionTitle } from './PageSectionTitle';
|
package/build/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, Typography as Typography$1, Link as Link$1, Paper as Paper$1, Box } from '@material-ui/core';
|
|
4
|
+
import { makeStyles, Typography as Typography$1, Link as Link$1, Paper as Paper$1, Box, ButtonBase } from '@material-ui/core';
|
|
5
5
|
import '@material-ui/core/AppBar';
|
|
6
6
|
import MuiAvatar from '@material-ui/core/Avatar';
|
|
7
7
|
import { makeStyles as makeStyles$1, useTheme, lighten } from '@material-ui/core/styles';
|
|
@@ -175,12 +175,12 @@ function __rest(s, e) {
|
|
|
175
175
|
return t;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
var _path$
|
|
178
|
+
var _path$2Q;
|
|
179
179
|
|
|
180
|
-
function _extends$
|
|
180
|
+
function _extends$35() { _extends$35 = 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$35.apply(this, arguments); }
|
|
181
181
|
|
|
182
182
|
function SvgUser(props) {
|
|
183
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
183
|
+
return /*#__PURE__*/React.createElement("svg", _extends$35({
|
|
184
184
|
viewBox: "0 0 16 16",
|
|
185
185
|
strokeLinecap: "round",
|
|
186
186
|
strokeLinejoin: "round",
|
|
@@ -188,7 +188,7 @@ function SvgUser(props) {
|
|
|
188
188
|
width: "1em",
|
|
189
189
|
height: "1em",
|
|
190
190
|
fill: "none"
|
|
191
|
-
}, props), _path$
|
|
191
|
+
}, props), _path$2Q || (_path$2Q = /*#__PURE__*/React.createElement("path", {
|
|
192
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"
|
|
193
193
|
})));
|
|
194
194
|
}
|
|
@@ -420,29 +420,108 @@ var Checkbox = forwardRef(function (props, ref) {
|
|
|
420
420
|
});
|
|
421
421
|
Checkbox.displayName = 'Checkbox';
|
|
422
422
|
|
|
423
|
-
var
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}
|
|
440
|
-
|
|
423
|
+
var weights = {
|
|
424
|
+
regular: 400,
|
|
425
|
+
'semi-bold': 600,
|
|
426
|
+
bold: 700,
|
|
427
|
+
};
|
|
428
|
+
var getColor$1 = function (theme, props) {
|
|
429
|
+
var color = props.color;
|
|
430
|
+
if (color === undefined) {
|
|
431
|
+
return undefined;
|
|
432
|
+
}
|
|
433
|
+
if (['white', 'black'].includes(color)) {
|
|
434
|
+
return theme.palette.common[color];
|
|
435
|
+
}
|
|
436
|
+
if (color.match(/^grey\.\d{3}/)) {
|
|
437
|
+
var scale = color.split('.')[1];
|
|
438
|
+
return theme.palette.grey[scale] || theme.palette.grey[900];
|
|
439
|
+
}
|
|
440
|
+
if ([
|
|
441
|
+
'primary.light',
|
|
442
|
+
'primary.dark',
|
|
443
|
+
'secondary.light',
|
|
444
|
+
'secondary',
|
|
445
|
+
'secondary.dark',
|
|
446
|
+
'info.light',
|
|
447
|
+
'info.dark',
|
|
448
|
+
'success.light',
|
|
449
|
+
'success.dark',
|
|
450
|
+
'error.light',
|
|
451
|
+
'error.dark',
|
|
452
|
+
'warning.light',
|
|
453
|
+
'warning.dark',
|
|
454
|
+
].includes(color)) {
|
|
455
|
+
var _a = color.split('.'), paletteKey = _a[0], variant = _a[1];
|
|
456
|
+
return theme.palette[paletteKey][variant];
|
|
457
|
+
}
|
|
458
|
+
if (['success', 'info', 'error', 'warning', 'primary', 'secondary'].includes(color)) {
|
|
459
|
+
return theme.palette[color].main;
|
|
460
|
+
}
|
|
461
|
+
if (['textPrimary', 'textSecondary'].includes(color)) {
|
|
462
|
+
return theme.palette.text[color.slice(4).toLowerCase()];
|
|
463
|
+
}
|
|
464
|
+
return undefined;
|
|
465
|
+
};
|
|
466
|
+
var useTypographyStyles = makeStyles$1(function (theme) {
|
|
467
|
+
var _a;
|
|
468
|
+
return ({
|
|
469
|
+
root: (_a = {},
|
|
470
|
+
_a["& ." + iconStaticClassName] = {
|
|
471
|
+
position: 'relative',
|
|
472
|
+
top: '0.125em',
|
|
473
|
+
padding: '0 0.125em',
|
|
474
|
+
boxSizing: 'content-box',
|
|
475
|
+
},
|
|
476
|
+
_a.fontFamily = theme.typography.fontFamily,
|
|
477
|
+
_a.fontWeight = function (_a) {
|
|
478
|
+
var variant = _a.variant, weight = _a.weight;
|
|
479
|
+
return (weight ? weights[weight] : theme.typography[variant || 'body1'].fontWeight);
|
|
480
|
+
},
|
|
481
|
+
_a.fontSize = function (_a) {
|
|
482
|
+
var variant = _a.variant;
|
|
483
|
+
return theme.typography[variant || 'body1'].fontSize;
|
|
484
|
+
},
|
|
485
|
+
_a.lineHeight = function (_a) {
|
|
486
|
+
var variant = _a.variant;
|
|
487
|
+
return theme.typography[variant || 'body1'].lineHeight;
|
|
488
|
+
},
|
|
489
|
+
_a.textTransform = function (_a) {
|
|
490
|
+
var variant = _a.variant;
|
|
491
|
+
return theme.typography[variant || 'body1'].textTransform;
|
|
492
|
+
},
|
|
493
|
+
_a.color = function (props) { return getColor$1(theme, props); },
|
|
494
|
+
_a),
|
|
495
|
+
caption: {
|
|
496
|
+
display: 'inline',
|
|
497
|
+
},
|
|
498
|
+
overline: {
|
|
499
|
+
display: 'inline',
|
|
500
|
+
},
|
|
501
|
+
});
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
var variantMap = {
|
|
505
|
+
h1: 'h1',
|
|
506
|
+
h2: 'h2',
|
|
507
|
+
h3: 'h3',
|
|
508
|
+
h4: 'h4',
|
|
509
|
+
h5: 'h5',
|
|
510
|
+
h6: 'h6',
|
|
511
|
+
h7: 'h6',
|
|
512
|
+
body1: 'p',
|
|
513
|
+
body2: 'p',
|
|
514
|
+
subtitle1: 'h6',
|
|
515
|
+
subtitle2: 'h6',
|
|
516
|
+
caption: 'span',
|
|
517
|
+
overline: 'span',
|
|
518
|
+
};
|
|
441
519
|
|
|
442
520
|
var Typography = forwardRef(function (props, ref) {
|
|
443
|
-
props.weight; var restProps = __rest(props, ["weight"]);
|
|
521
|
+
props.weight; var _a = props.variant, variant = _a === void 0 ? 'body1' : _a; props.color; var restProps = __rest(props, ["weight", "variant", "color"]);
|
|
444
522
|
var classes = useTypographyStyles(props);
|
|
445
|
-
|
|
523
|
+
var component = variantMap[variant];
|
|
524
|
+
return React__default.createElement(Typography$1, __assign({ component: component, ref: ref, classes: classes }, restProps, { variant: "inherit" }));
|
|
446
525
|
});
|
|
447
526
|
Typography.displayName = 'Typography';
|
|
448
527
|
|
|
@@ -703,12 +782,12 @@ makeStyles(function (theme) { return ({
|
|
|
703
782
|
},
|
|
704
783
|
}); });
|
|
705
784
|
|
|
706
|
-
var _path$
|
|
785
|
+
var _path$3T, _path2$19;
|
|
707
786
|
|
|
708
|
-
function _extends$
|
|
787
|
+
function _extends$48() { _extends$48 = 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$48.apply(this, arguments); }
|
|
709
788
|
|
|
710
789
|
function SvgCheckCircle(props) {
|
|
711
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
790
|
+
return /*#__PURE__*/React.createElement("svg", _extends$48({
|
|
712
791
|
viewBox: "0 0 16 16",
|
|
713
792
|
strokeLinecap: "round",
|
|
714
793
|
strokeLinejoin: "round",
|
|
@@ -716,19 +795,19 @@ function SvgCheckCircle(props) {
|
|
|
716
795
|
width: "1em",
|
|
717
796
|
height: "1em",
|
|
718
797
|
fill: "none"
|
|
719
|
-
}, props), _path$
|
|
798
|
+
}, props), _path$3T || (_path$3T = /*#__PURE__*/React.createElement("path", {
|
|
720
799
|
d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
|
|
721
800
|
})), _path2$19 || (_path2$19 = /*#__PURE__*/React.createElement("path", {
|
|
722
801
|
d: "M14.667 2.667L8 9.34l-2-2"
|
|
723
802
|
})));
|
|
724
803
|
}
|
|
725
804
|
|
|
726
|
-
var _path$
|
|
805
|
+
var _path$3Q;
|
|
727
806
|
|
|
728
|
-
function _extends$
|
|
807
|
+
function _extends$45() { _extends$45 = 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$45.apply(this, arguments); }
|
|
729
808
|
|
|
730
809
|
function SvgX(props) {
|
|
731
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
810
|
+
return /*#__PURE__*/React.createElement("svg", _extends$45({
|
|
732
811
|
viewBox: "0 0 16 16",
|
|
733
812
|
strokeLinecap: "round",
|
|
734
813
|
strokeLinejoin: "round",
|
|
@@ -736,17 +815,37 @@ function SvgX(props) {
|
|
|
736
815
|
width: "1em",
|
|
737
816
|
height: "1em",
|
|
738
817
|
fill: "none"
|
|
739
|
-
}, props), _path$
|
|
818
|
+
}, props), _path$3Q || (_path$3Q = /*#__PURE__*/React.createElement("path", {
|
|
740
819
|
d: "M12 4l-8 8m0-8l8 8"
|
|
741
820
|
})));
|
|
742
821
|
}
|
|
743
822
|
|
|
744
|
-
var _path$
|
|
823
|
+
var _path$3y, _path2$10;
|
|
824
|
+
|
|
825
|
+
function _extends$3P() { _extends$3P = 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$3P.apply(this, arguments); }
|
|
826
|
+
|
|
827
|
+
function SvgHelp(props) {
|
|
828
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3P({
|
|
829
|
+
viewBox: "0 0 16 16",
|
|
830
|
+
strokeLinecap: "round",
|
|
831
|
+
strokeLinejoin: "round",
|
|
832
|
+
stroke: "currentColor",
|
|
833
|
+
width: "1em",
|
|
834
|
+
height: "1em",
|
|
835
|
+
fill: "none"
|
|
836
|
+
}, props), _path$3y || (_path$3y = /*#__PURE__*/React.createElement("path", {
|
|
837
|
+
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
|
|
838
|
+
})), _path2$10 || (_path2$10 = /*#__PURE__*/React.createElement("path", {
|
|
839
|
+
d: "M6.06 6a2 2 0 013.887.667c0 1.333-2 2-2 2M8 11.334h.007"
|
|
840
|
+
})));
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
var _path$3v;
|
|
745
844
|
|
|
746
|
-
function _extends$
|
|
845
|
+
function _extends$3M() { _extends$3M = 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$3M.apply(this, arguments); }
|
|
747
846
|
|
|
748
847
|
function SvgInfo(props) {
|
|
749
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
848
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3M({
|
|
750
849
|
viewBox: "0 0 16 16",
|
|
751
850
|
strokeLinecap: "round",
|
|
752
851
|
strokeLinejoin: "round",
|
|
@@ -754,17 +853,17 @@ function SvgInfo(props) {
|
|
|
754
853
|
width: "1em",
|
|
755
854
|
height: "1em",
|
|
756
855
|
fill: "none"
|
|
757
|
-
}, props), _path$
|
|
856
|
+
}, props), _path$3v || (_path$3v = /*#__PURE__*/React.createElement("path", {
|
|
758
857
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
|
|
759
858
|
})));
|
|
760
859
|
}
|
|
761
860
|
|
|
762
|
-
var _path$
|
|
861
|
+
var _path$2G;
|
|
763
862
|
|
|
764
|
-
function _extends$
|
|
863
|
+
function _extends$2W() { _extends$2W = 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$2W.apply(this, arguments); }
|
|
765
864
|
|
|
766
865
|
function SvgError(props) {
|
|
767
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
866
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2W({
|
|
768
867
|
viewBox: "0 0 16 16",
|
|
769
868
|
strokeLinecap: "round",
|
|
770
869
|
strokeLinejoin: "round",
|
|
@@ -772,17 +871,17 @@ function SvgError(props) {
|
|
|
772
871
|
width: "1em",
|
|
773
872
|
height: "1em",
|
|
774
873
|
fill: "none"
|
|
775
|
-
}, props), _path$
|
|
874
|
+
}, props), _path$2G || (_path$2G = /*#__PURE__*/React.createElement("path", {
|
|
776
875
|
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"
|
|
777
876
|
})));
|
|
778
877
|
}
|
|
779
878
|
|
|
780
|
-
var _path$
|
|
879
|
+
var _path$2F;
|
|
781
880
|
|
|
782
|
-
function _extends$
|
|
881
|
+
function _extends$2V() { _extends$2V = 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$2V.apply(this, arguments); }
|
|
783
882
|
|
|
784
883
|
function SvgWarning(props) {
|
|
785
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
884
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2V({
|
|
786
885
|
viewBox: "0 0 16 16",
|
|
787
886
|
strokeLinecap: "round",
|
|
788
887
|
strokeLinejoin: "round",
|
|
@@ -790,17 +889,17 @@ function SvgWarning(props) {
|
|
|
790
889
|
width: "1em",
|
|
791
890
|
height: "1em",
|
|
792
891
|
fill: "none"
|
|
793
|
-
}, props), _path$
|
|
892
|
+
}, props), _path$2F || (_path$2F = /*#__PURE__*/React.createElement("path", {
|
|
794
893
|
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"
|
|
795
894
|
})));
|
|
796
895
|
}
|
|
797
896
|
|
|
798
|
-
var _path$
|
|
897
|
+
var _path$U;
|
|
799
898
|
|
|
800
|
-
function _extends$
|
|
899
|
+
function _extends$Y() { _extends$Y = 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$Y.apply(this, arguments); }
|
|
801
900
|
|
|
802
901
|
function SvgCircle(props) {
|
|
803
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
902
|
+
return /*#__PURE__*/React.createElement("svg", _extends$Y({
|
|
804
903
|
viewBox: "0 0 16 16",
|
|
805
904
|
strokeLinecap: "round",
|
|
806
905
|
strokeLinejoin: "round",
|
|
@@ -808,7 +907,7 @@ function SvgCircle(props) {
|
|
|
808
907
|
width: "1em",
|
|
809
908
|
height: "1em",
|
|
810
909
|
fill: "none"
|
|
811
|
-
}, props), _path$
|
|
910
|
+
}, props), _path$U || (_path$U = /*#__PURE__*/React.createElement("path", {
|
|
812
911
|
d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
|
|
813
912
|
})));
|
|
814
913
|
}
|
|
@@ -1522,21 +1621,65 @@ var DialogActions = function (props) {
|
|
|
1522
1621
|
};
|
|
1523
1622
|
|
|
1524
1623
|
var Page = function (props) {
|
|
1525
|
-
var children = props.children;
|
|
1526
|
-
return React__default.createElement(Box, { marginTop: 8 }, children);
|
|
1624
|
+
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
1625
|
+
return (React__default.createElement(Box, __assign$1({ marginTop: 8, display: "flex", alignItems: "center", flexDirection: "column" }, restProps), children));
|
|
1527
1626
|
};
|
|
1528
1627
|
|
|
1529
|
-
var
|
|
1530
|
-
var children = props.children;
|
|
1531
|
-
return (React__default.createElement(Box, { py: 2, px: 5.5 }, children));
|
|
1628
|
+
var PageBody = function (props) {
|
|
1629
|
+
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
1630
|
+
return (React__default.createElement(Box, __assign$1({ py: 2, px: 5.5, maxWidth: 1100, width: "100%" }, restProps), children));
|
|
1532
1631
|
};
|
|
1533
1632
|
|
|
1534
1633
|
var PageSection = function (props) {
|
|
1535
|
-
var children = props.children;
|
|
1536
|
-
return (React__default.createElement(Card,
|
|
1634
|
+
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
1635
|
+
return (React__default.createElement(Card, __assign$1({}, restProps),
|
|
1537
1636
|
React__default.createElement(CardContent, null, children)));
|
|
1538
1637
|
};
|
|
1539
1638
|
|
|
1639
|
+
var SettingsIndexCardGroup = function (props) {
|
|
1640
|
+
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
1641
|
+
return (React__default.createElement(Box, __assign$1({ display: "grid", gridGap: 16, gridTemplateColumns: "repeat(auto-fit, minmax(250px, 1fr))" }, restProps), children));
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
var useSettingsIndexCardStyles = makeStyles$1(function (theme) { return ({
|
|
1645
|
+
cardRoot: {
|
|
1646
|
+
alignSelf: 'stretch',
|
|
1647
|
+
flexGrow: 1,
|
|
1648
|
+
},
|
|
1649
|
+
cardContentRoot: {
|
|
1650
|
+
padding: theme.spacing(4),
|
|
1651
|
+
'&:last-child': {
|
|
1652
|
+
paddingBottom: theme.spacing(4),
|
|
1653
|
+
},
|
|
1654
|
+
},
|
|
1655
|
+
}); });
|
|
1656
|
+
|
|
1657
|
+
var SettingsIndexCard = forwardRef(function (props, ref) {
|
|
1658
|
+
var title = props.title, description = props.description, Icon$1 = props.Icon, onClick = props.onClick, statusLabel = props.statusLabel, restProps = __rest$1(props, ["title", "description", "Icon", "onClick", "statusLabel"]);
|
|
1659
|
+
var classes = useSettingsIndexCardStyles(props);
|
|
1660
|
+
var showStatusLabel = (statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.text) && (statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.color);
|
|
1661
|
+
return (React__default.createElement(ButtonBase, __assign$1({ onClick: onClick, ref: ref }, restProps),
|
|
1662
|
+
React__default.createElement(Card, { classes: { root: classes.cardRoot } },
|
|
1663
|
+
React__default.createElement(CardContent, { classes: { root: classes.cardContentRoot } },
|
|
1664
|
+
React__default.createElement(Box, { fontSize: "32px", display: "flex", justifyContent: 'space-between', alignItems: "center", paddingBottom: 2 },
|
|
1665
|
+
React__default.createElement(Icon, { icon: Icon$1 || SvgHelp, size: "inherit" }),
|
|
1666
|
+
showStatusLabel && (React__default.createElement(Typography, { weight: "semi-bold", variant: "body2", color: statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.color }, statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.text))),
|
|
1667
|
+
React__default.createElement(Typography, { align: "left", variant: "h7", gutterBottom: true }, title),
|
|
1668
|
+
description && (React__default.createElement(Typography, { align: "left", variant: "body2", color: "grey.700" }, description))))));
|
|
1669
|
+
});
|
|
1670
|
+
SettingsIndexCard.displayName = 'SettingsIndexCard';
|
|
1671
|
+
|
|
1672
|
+
var PageSections = function (props) {
|
|
1673
|
+
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
1674
|
+
return (React__default.createElement(Box, __assign$1({ display: "flex", flexDirection: "column", gridGap: 16 }, restProps), children));
|
|
1675
|
+
};
|
|
1676
|
+
|
|
1677
|
+
var PageSectionTitle = function (props) {
|
|
1678
|
+
var children = props.children, restProps = __rest$1(props, ["children"]);
|
|
1679
|
+
return (React__default.createElement(Box, __assign$1({}, restProps),
|
|
1680
|
+
React__default.createElement(Typography, { gutterBottom: true, variant: "h4" }, children)));
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1540
1683
|
var useFullScreenStepperContext = function () { return useContext(FullScreenStepperContext); };
|
|
1541
1684
|
|
|
1542
1685
|
/**
|
|
@@ -1591,32 +1734,37 @@ var adminThemeTypography = {
|
|
|
1591
1734
|
h1: {
|
|
1592
1735
|
fontWeight: 400,
|
|
1593
1736
|
fontSize: '6rem',
|
|
1594
|
-
lineHeight: '
|
|
1737
|
+
lineHeight: '9rem',
|
|
1595
1738
|
},
|
|
1596
1739
|
h2: {
|
|
1597
1740
|
fontWeight: 400,
|
|
1598
1741
|
fontSize: '3.75rem',
|
|
1599
|
-
lineHeight: '
|
|
1742
|
+
lineHeight: '5.625rem',
|
|
1600
1743
|
},
|
|
1601
1744
|
h3: {
|
|
1602
1745
|
fontWeight: 400,
|
|
1603
1746
|
fontSize: '3rem',
|
|
1604
|
-
lineHeight: '
|
|
1747
|
+
lineHeight: '4.5rem',
|
|
1605
1748
|
},
|
|
1606
1749
|
h4: {
|
|
1607
1750
|
fontWeight: 400,
|
|
1608
1751
|
fontSize: '2.125rem',
|
|
1609
|
-
lineHeight: '
|
|
1752
|
+
lineHeight: '3.25rem',
|
|
1610
1753
|
},
|
|
1611
1754
|
h5: {
|
|
1612
|
-
fontWeight:
|
|
1755
|
+
fontWeight: 500,
|
|
1613
1756
|
fontSize: '1.5rem',
|
|
1614
|
-
lineHeight: '
|
|
1757
|
+
lineHeight: '2.25rem',
|
|
1615
1758
|
},
|
|
1616
1759
|
h6: {
|
|
1617
|
-
fontWeight:
|
|
1760
|
+
fontWeight: 500,
|
|
1618
1761
|
fontSize: '1.25rem',
|
|
1619
|
-
lineHeight: '1.
|
|
1762
|
+
lineHeight: '1.875rem',
|
|
1763
|
+
},
|
|
1764
|
+
h7: {
|
|
1765
|
+
fontWeight: 400,
|
|
1766
|
+
fontSize: '1.125rem',
|
|
1767
|
+
lineHeight: '1.75rem',
|
|
1620
1768
|
},
|
|
1621
1769
|
body1: {
|
|
1622
1770
|
fontWeight: 400,
|
|
@@ -1797,5 +1945,5 @@ var adminLight = createTheme(adminLightOptions);
|
|
|
1797
1945
|
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);
|
|
1798
1946
|
var adminDark = createTheme(adminDarkOptions);
|
|
1799
1947
|
|
|
1800
|
-
export { Alert, AlertDialog, AlertDialogHeader, AlertTitle, Button, ButtonGroup, DialogActions, FeatureIntro, FullScreenStepper, FullScreenStepperContent, FullScreenStepperContext, Page,
|
|
1948
|
+
export { Alert, AlertDialog, AlertDialogHeader, AlertTitle, Button, ButtonGroup, DialogActions, FeatureIntro, FullScreenStepper, FullScreenStepperContent, FullScreenStepperContext, Page, PageBody, PageSection, PageSectionTitle, PageSections, SelectableCard, SettingsIndexCard, SettingsIndexCardGroup, Toast, adminDark, adminDarkOptions, adminLight, adminLightOptions, useFullScreenStepperContext, useSelectableCard };
|
|
1801
1949
|
//# sourceMappingURL=index.es.js.map
|