@popmenu/admin-ui 0.27.0 → 0.30.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.
@@ -1,4 +1,2 @@
1
- import React from 'react';
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,2 @@
1
+ import { HTMLAttributes, PropsWithChildren } from 'react';
2
+ export declare const PageBody: (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { PageBody } from './PageBody';
@@ -1,4 +1,2 @@
1
- import React from 'react';
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,2 @@
1
+ import { HTMLAttributes, PropsWithChildren } from 'react';
2
+ export declare const PageSectionTitle: (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { PageSectionTitle } from './PageSectionTitle';
@@ -0,0 +1,2 @@
1
+ import { HTMLAttributes, PropsWithChildren } from 'react';
2
+ export declare const PageSections: (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { PageSections } from './PageSections';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { SettingsIndexCardProps } from './SettingsIndexCardProps';
3
+ export declare const SettingsIndexCard: React.ForwardRefExoticComponent<SettingsIndexCardProps & React.RefAttributes<HTMLButtonElement>>;
@@ -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,2 @@
1
+ import { SettingsIndexCardProps } from './SettingsIndexCardProps';
2
+ export declare const useSettingsIndexCardStyles: (props: SettingsIndexCardProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -0,0 +1,2 @@
1
+ export { SettingsIndexCard } from './SettingsIndexCard';
2
+ export { SettingsIndexCardProps } from './SettingsIndexCardProps';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BoxProps } from '@popmenu/common-ui';
3
+ export declare const SettingsIndexCardGroup: (props: BoxProps) => JSX.Element;
@@ -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 { PageContent } from './PageContent';
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,21 +175,21 @@ function __rest(s, e) {
175
175
  return t;
176
176
  }
177
177
 
178
- var _path$2P;
178
+ var _path$23;
179
179
 
180
- function _extends$33() { _extends$33 = 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$33.apply(this, arguments); }
180
+ function _extends$3g() { _extends$3g = 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$3g.apply(this, arguments); }
181
181
 
182
182
  function SvgUser(props) {
183
- return /*#__PURE__*/React.createElement("svg", _extends$33({
183
+ return /*#__PURE__*/React.createElement("svg", _extends$3g({
184
184
  viewBox: "0 0 16 16",
185
+ fill: "none",
185
186
  strokeLinecap: "round",
186
187
  strokeLinejoin: "round",
187
- stroke: "currentColor",
188
188
  width: "1em",
189
- height: "1em",
190
- fill: "none"
191
- }, props), _path$2P || (_path$2P = /*#__PURE__*/React.createElement("path", {
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"
189
+ height: "1em"
190
+ }, props), _path$23 || (_path$23 = /*#__PURE__*/React.createElement("path", {
191
+ 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",
192
+ stroke: "currentColor"
193
193
  })));
194
194
  }
195
195
 
@@ -420,29 +420,108 @@ var Checkbox = forwardRef(function (props, ref) {
420
420
  });
421
421
  Checkbox.displayName = 'Checkbox';
422
422
 
423
- var useTypographyStyles = makeStyles$1(function () { return ({
424
- root: function (_a) {
425
- var _b;
426
- var weight = _a.weight;
427
- return (__assign((_b = {}, _b["& ." + iconStaticClassName] = {
428
- position: 'relative',
429
- top: '0.125em',
430
- padding: '0 0.125em',
431
- boxSizing: 'content-box',
432
- }, _b), (weight && { fontWeight: (weight === 'semi-bold' && 600) || (weight === 'bold' && 700) || 400 })));
433
- },
434
- caption: {
435
- display: 'inline',
436
- },
437
- overline: {
438
- display: 'inline',
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
- return React__default.createElement(Typography$1, __assign({ ref: ref, classes: classes }, restProps));
523
+ var component = variantMap[variant];
524
+ return React__default.createElement(Typography$1, __assign({ component: component, ref: ref, classes: classes }, restProps));
446
525
  });
447
526
  Typography.displayName = 'Typography';
448
527
 
@@ -703,113 +782,135 @@ makeStyles(function (theme) { return ({
703
782
  },
704
783
  }); });
705
784
 
706
- var _path$3S, _path2$19;
785
+ var _g$1y;
707
786
 
708
- function _extends$46() { _extends$46 = 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$46.apply(this, arguments); }
787
+ function _extends$4l() { _extends$4l = 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$4l.apply(this, arguments); }
709
788
 
710
789
  function SvgCheckCircle(props) {
711
- return /*#__PURE__*/React.createElement("svg", _extends$46({
790
+ return /*#__PURE__*/React.createElement("svg", _extends$4l({
712
791
  viewBox: "0 0 16 16",
792
+ fill: "none",
713
793
  strokeLinecap: "round",
714
794
  strokeLinejoin: "round",
715
- stroke: "currentColor",
716
795
  width: "1em",
717
- height: "1em",
718
- fill: "none"
719
- }, props), _path$3S || (_path$3S = /*#__PURE__*/React.createElement("path", {
796
+ height: "1em"
797
+ }, props), _g$1y || (_g$1y = /*#__PURE__*/React.createElement("g", {
798
+ stroke: "currentColor"
799
+ }, /*#__PURE__*/React.createElement("path", {
720
800
  d: "M14.667 7.387V8a6.667 6.667 0 11-3.954-6.093"
721
- })), _path2$19 || (_path2$19 = /*#__PURE__*/React.createElement("path", {
801
+ }), /*#__PURE__*/React.createElement("path", {
722
802
  d: "M14.667 2.667L8 9.34l-2-2"
723
- })));
803
+ }))));
724
804
  }
725
805
 
726
- var _path$3P;
806
+ var _path$2O;
727
807
 
728
- function _extends$43() { _extends$43 = 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$43.apply(this, arguments); }
808
+ function _extends$4i() { _extends$4i = 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$4i.apply(this, arguments); }
729
809
 
730
810
  function SvgX(props) {
731
- return /*#__PURE__*/React.createElement("svg", _extends$43({
811
+ return /*#__PURE__*/React.createElement("svg", _extends$4i({
732
812
  viewBox: "0 0 16 16",
813
+ fill: "none",
733
814
  strokeLinecap: "round",
734
815
  strokeLinejoin: "round",
735
- stroke: "currentColor",
736
816
  width: "1em",
737
- height: "1em",
738
- fill: "none"
739
- }, props), _path$3P || (_path$3P = /*#__PURE__*/React.createElement("path", {
740
- d: "M12 4l-8 8m0-8l8 8"
817
+ height: "1em"
818
+ }, props), _path$2O || (_path$2O = /*#__PURE__*/React.createElement("path", {
819
+ d: "M12 4l-8 8m0-8l8 8",
820
+ stroke: "currentColor"
741
821
  })));
742
822
  }
743
823
 
744
- var _path$3u;
824
+ var _g$1p;
745
825
 
746
- function _extends$3K() { _extends$3K = 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$3K.apply(this, arguments); }
826
+ function _extends$40() { _extends$40 = 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$40.apply(this, arguments); }
827
+
828
+ function SvgHelp(props) {
829
+ return /*#__PURE__*/React.createElement("svg", _extends$40({
830
+ viewBox: "0 0 16 16",
831
+ fill: "none",
832
+ strokeLinecap: "round",
833
+ strokeLinejoin: "round",
834
+ width: "1em",
835
+ height: "1em"
836
+ }, props), _g$1p || (_g$1p = /*#__PURE__*/React.createElement("g", {
837
+ stroke: "currentColor"
838
+ }, /*#__PURE__*/React.createElement("path", {
839
+ d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
840
+ }), /*#__PURE__*/React.createElement("path", {
841
+ d: "M6.06 6a2 2 0 013.887.667c0 1.333-2 2-2 2M8 11.334h.007"
842
+ }))));
843
+ }
844
+
845
+ var _path$2C;
846
+
847
+ function _extends$3Z() { _extends$3Z = 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$3Z.apply(this, arguments); }
747
848
 
748
849
  function SvgInfo(props) {
749
- return /*#__PURE__*/React.createElement("svg", _extends$3K({
850
+ return /*#__PURE__*/React.createElement("svg", _extends$3Z({
750
851
  viewBox: "0 0 16 16",
852
+ fill: "none",
751
853
  strokeLinecap: "round",
752
854
  strokeLinejoin: "round",
753
- stroke: "currentColor",
754
855
  width: "1em",
755
- height: "1em",
756
- fill: "none"
757
- }, props), _path$3u || (_path$3u = /*#__PURE__*/React.createElement("path", {
758
- d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007"
856
+ height: "1em"
857
+ }, props), _path$2C || (_path$2C = /*#__PURE__*/React.createElement("path", {
858
+ d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333zm0-4V8m0-2.667h.007",
859
+ stroke: "currentColor"
759
860
  })));
760
861
  }
761
862
 
762
- var _path$2F;
863
+ var _path$1W;
763
864
 
764
- function _extends$2U() { _extends$2U = 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$2U.apply(this, arguments); }
865
+ function _extends$37() { _extends$37 = 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$37.apply(this, arguments); }
765
866
 
766
867
  function SvgError(props) {
767
- return /*#__PURE__*/React.createElement("svg", _extends$2U({
868
+ return /*#__PURE__*/React.createElement("svg", _extends$37({
768
869
  viewBox: "0 0 16 16",
870
+ fill: "none",
769
871
  strokeLinecap: "round",
770
872
  strokeLinejoin: "round",
771
- stroke: "currentColor",
772
873
  width: "1em",
773
- height: "1em",
774
- fill: "none"
775
- }, props), _path$2F || (_path$2F = /*#__PURE__*/React.createElement("path", {
776
- 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"
874
+ height: "1em"
875
+ }, props), _path$1W || (_path$1W = /*#__PURE__*/React.createElement("path", {
876
+ 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",
877
+ stroke: "currentColor"
777
878
  })));
778
879
  }
779
880
 
780
- var _path$2E;
881
+ var _path$1V;
781
882
 
782
- function _extends$2T() { _extends$2T = 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$2T.apply(this, arguments); }
883
+ function _extends$36() { _extends$36 = 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$36.apply(this, arguments); }
783
884
 
784
885
  function SvgWarning(props) {
785
- return /*#__PURE__*/React.createElement("svg", _extends$2T({
886
+ return /*#__PURE__*/React.createElement("svg", _extends$36({
786
887
  viewBox: "0 0 16 16",
888
+ fill: "none",
787
889
  strokeLinecap: "round",
788
890
  strokeLinejoin: "round",
789
- stroke: "currentColor",
790
891
  width: "1em",
791
- height: "1em",
792
- fill: "none"
793
- }, props), _path$2E || (_path$2E = /*#__PURE__*/React.createElement("path", {
794
- 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"
892
+ height: "1em"
893
+ }, props), _path$1V || (_path$1V = /*#__PURE__*/React.createElement("path", {
894
+ 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",
895
+ stroke: "currentColor"
795
896
  })));
796
897
  }
797
898
 
798
- var _path$S;
899
+ var _path$M;
799
900
 
800
- function _extends$V() { _extends$V = 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$V.apply(this, arguments); }
901
+ function _extends$19() { _extends$19 = 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$19.apply(this, arguments); }
801
902
 
802
903
  function SvgCircle(props) {
803
- return /*#__PURE__*/React.createElement("svg", _extends$V({
904
+ return /*#__PURE__*/React.createElement("svg", _extends$19({
804
905
  viewBox: "0 0 16 16",
906
+ fill: "none",
805
907
  strokeLinecap: "round",
806
908
  strokeLinejoin: "round",
807
- stroke: "currentColor",
808
909
  width: "1em",
809
- height: "1em",
810
- fill: "none"
811
- }, props), _path$S || (_path$S = /*#__PURE__*/React.createElement("path", {
812
- d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z"
910
+ height: "1em"
911
+ }, props), _path$M || (_path$M = /*#__PURE__*/React.createElement("path", {
912
+ d: "M8 14.667A6.667 6.667 0 108 1.334a6.667 6.667 0 000 13.333z",
913
+ stroke: "currentColor"
813
914
  })));
814
915
  }
815
916
 
@@ -1522,21 +1623,68 @@ var DialogActions = function (props) {
1522
1623
  };
1523
1624
 
1524
1625
  var Page = function (props) {
1525
- var children = props.children;
1526
- return React__default.createElement(Box, { marginTop: 8 }, children);
1626
+ var children = props.children, restProps = __rest$1(props, ["children"]);
1627
+ return (React__default.createElement(Box, __assign$1({ marginTop: 8, display: "flex", alignItems: "center", flexDirection: "column" }, restProps), children));
1527
1628
  };
1528
1629
 
1529
- var PageContent = function (props) {
1530
- var children = props.children;
1531
- return (React__default.createElement(Box, { py: 2, px: 5.5 }, children));
1630
+ var PageBody = function (props) {
1631
+ var children = props.children, restProps = __rest$1(props, ["children"]);
1632
+ return (React__default.createElement(Box, __assign$1({ py: 2, px: 5.5, maxWidth: 1100, width: "100%" }, restProps), children));
1532
1633
  };
1533
1634
 
1534
1635
  var PageSection = function (props) {
1535
- var children = props.children;
1536
- return (React__default.createElement(Card, null,
1636
+ var children = props.children, restProps = __rest$1(props, ["children"]);
1637
+ return (React__default.createElement(Card, __assign$1({}, restProps),
1537
1638
  React__default.createElement(CardContent, null, children)));
1538
1639
  };
1539
1640
 
1641
+ var SettingsIndexCardGroup = function (props) {
1642
+ var children = props.children, restProps = __rest$1(props, ["children"]);
1643
+ return (React__default.createElement(Box, __assign$1({ display: "grid", gridGap: 16, gridTemplateColumns: "repeat(auto-fit, minmax(250px, 1fr))" }, restProps), children));
1644
+ };
1645
+
1646
+ var useSettingsIndexCardStyles = makeStyles$1(function (theme) { return ({
1647
+ cardRoot: {
1648
+ alignSelf: 'stretch',
1649
+ flexGrow: 1,
1650
+ '&:hover': {
1651
+ backgroundColor: '#52B7FF1A',
1652
+ },
1653
+ },
1654
+ cardContentRoot: {
1655
+ padding: theme.spacing(4),
1656
+ '&:last-child': {
1657
+ paddingBottom: theme.spacing(4),
1658
+ },
1659
+ },
1660
+ }); });
1661
+
1662
+ var SettingsIndexCard = forwardRef(function (props, ref) {
1663
+ 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"]);
1664
+ var classes = useSettingsIndexCardStyles(props);
1665
+ var showStatusLabel = (statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.text) && (statusLabel === null || statusLabel === void 0 ? void 0 : statusLabel.color);
1666
+ return (React__default.createElement(ButtonBase, __assign$1({ onClick: onClick, ref: ref }, restProps),
1667
+ React__default.createElement(Card, { classes: { root: classes.cardRoot } },
1668
+ React__default.createElement(CardContent, { classes: { root: classes.cardContentRoot } },
1669
+ React__default.createElement(Box, { fontSize: "32px", display: "flex", justifyContent: 'space-between', alignItems: "center", paddingBottom: 2 },
1670
+ React__default.createElement(Icon, { icon: Icon$1 || SvgHelp, size: "inherit" }),
1671
+ 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))),
1672
+ React__default.createElement(Typography, { align: "left", variant: "h7", gutterBottom: true }, title),
1673
+ description && (React__default.createElement(Typography, { align: "left", variant: "body2", color: "grey.700" }, description))))));
1674
+ });
1675
+ SettingsIndexCard.displayName = 'SettingsIndexCard';
1676
+
1677
+ var PageSections = function (props) {
1678
+ var children = props.children, restProps = __rest$1(props, ["children"]);
1679
+ return (React__default.createElement(Box, __assign$1({ display: "flex", flexDirection: "column", gridGap: 16 }, restProps), children));
1680
+ };
1681
+
1682
+ var PageSectionTitle = function (props) {
1683
+ var children = props.children, restProps = __rest$1(props, ["children"]);
1684
+ return (React__default.createElement(Box, __assign$1({}, restProps),
1685
+ React__default.createElement(Typography, { gutterBottom: true, variant: "h4" }, children)));
1686
+ };
1687
+
1540
1688
  var useFullScreenStepperContext = function () { return useContext(FullScreenStepperContext); };
1541
1689
 
1542
1690
  /**
@@ -1591,32 +1739,37 @@ var adminThemeTypography = {
1591
1739
  h1: {
1592
1740
  fontWeight: 400,
1593
1741
  fontSize: '6rem',
1594
- lineHeight: '7.75rem',
1742
+ lineHeight: '9rem',
1595
1743
  },
1596
1744
  h2: {
1597
1745
  fontWeight: 400,
1598
1746
  fontSize: '3.75rem',
1599
- lineHeight: '4.875rem',
1747
+ lineHeight: '5.625rem',
1600
1748
  },
1601
1749
  h3: {
1602
1750
  fontWeight: 400,
1603
1751
  fontSize: '3rem',
1604
- lineHeight: '3.875rem',
1752
+ lineHeight: '4.5rem',
1605
1753
  },
1606
1754
  h4: {
1607
1755
  fontWeight: 400,
1608
1756
  fontSize: '2.125rem',
1609
- lineHeight: '2.75rem',
1757
+ lineHeight: '3.25rem',
1610
1758
  },
1611
1759
  h5: {
1612
- fontWeight: 700,
1760
+ fontWeight: 500,
1613
1761
  fontSize: '1.5rem',
1614
- lineHeight: '2rem',
1762
+ lineHeight: '2.25rem',
1615
1763
  },
1616
1764
  h6: {
1617
- fontWeight: 700,
1765
+ fontWeight: 500,
1618
1766
  fontSize: '1.25rem',
1619
- lineHeight: '1.625rem',
1767
+ lineHeight: '1.875rem',
1768
+ },
1769
+ h7: {
1770
+ fontWeight: 400,
1771
+ fontSize: '1.125rem',
1772
+ lineHeight: '1.75rem',
1620
1773
  },
1621
1774
  body1: {
1622
1775
  fontWeight: 400,
@@ -1797,5 +1950,5 @@ var adminLight = createTheme(adminLightOptions);
1797
1950
  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
1951
  var adminDark = createTheme(adminDarkOptions);
1799
1952
 
1800
- export { Alert, AlertDialog, AlertDialogHeader, AlertTitle, Button, ButtonGroup, DialogActions, FeatureIntro, FullScreenStepper, FullScreenStepperContent, FullScreenStepperContext, Page, PageContent, PageSection, SelectableCard, Toast, adminDark, adminDarkOptions, adminLight, adminLightOptions, useFullScreenStepperContext, useSelectableCard };
1953
+ 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
1954
  //# sourceMappingURL=index.es.js.map