@popmenu/admin-ui 0.22.0 → 0.24.1

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.
@@ -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: Omit<MuiAlertProps, 'ref'>;
5
+ AlertProps?: Omit<MuiAlertProps, 'ref'>;
6
6
  /** The severity of the Alert. */
7
7
  severity: 'error' | 'warning' | 'info' | 'success';
8
8
  /** @ignore */
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';
@@ -316,29 +315,29 @@ IconButton.defaultProps = {
316
315
  color: 'secondary',
317
316
  };
318
317
 
319
- var useTypographyStyles = makeStyles$1(function () {
320
- var _a;
321
- return ({
322
- root: (_a = {},
323
- _a["& ." + iconStaticClassName] = {
324
- position: 'relative',
325
- top: '0.125em',
326
- padding: '0 0.125em',
327
- boxSizing: 'content-box',
328
- },
329
- _a),
330
- caption: {
331
- display: 'inline',
332
- },
333
- overline: {
334
- display: 'inline',
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(MuiTypography, __assign({ ref: ref, classes: classes }, props));
340
+ return React__default.createElement(Typography$1, __assign({ ref: ref, classes: classes }, restProps));
342
341
  });
343
342
  Typography.displayName = 'Typography';
344
343
 
@@ -745,12 +744,12 @@ makeStyles(function (theme) { return ({
745
744
  },
746
745
  }); });
747
746
 
748
- var _path$4n, _path2$1p;
747
+ var _path$4q, _path2$1q;
749
748
 
750
- function _extends$4E() { _extends$4E = 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$4E.apply(this, arguments); }
749
+ 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); }
751
750
 
752
751
  function SvgCheckCircle(props) {
753
- return /*#__PURE__*/React.createElement("svg", _extends$4E({
752
+ return /*#__PURE__*/React.createElement("svg", _extends$4H({
754
753
  viewBox: "0 0 16 16",
755
754
  strokeLinecap: "round",
756
755
  strokeLinejoin: "round",
@@ -758,19 +757,19 @@ function SvgCheckCircle(props) {
758
757
  width: "1em",
759
758
  height: "1em",
760
759
  fill: "none"
761
- }, props), _path$4n || (_path$4n = /*#__PURE__*/React.createElement("path", {
760
+ }, props), _path$4q || (_path$4q = /*#__PURE__*/React.createElement("path", {
762
761
  d: "M14.667 7.387V8a6.666 6.666 0 11-3.954-6.093"
763
- })), _path2$1p || (_path2$1p = /*#__PURE__*/React.createElement("path", {
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$4k;
767
+ var _path$4n;
769
768
 
770
- function _extends$4B() { _extends$4B = 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$4B.apply(this, arguments); }
769
+ function _extends$4E() { _extends$4E = 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$4E.apply(this, arguments); }
771
770
 
772
771
  function SvgX(props) {
773
- return /*#__PURE__*/React.createElement("svg", _extends$4B({
772
+ return /*#__PURE__*/React.createElement("svg", _extends$4E({
774
773
  viewBox: "0 0 16 16",
775
774
  strokeLinecap: "round",
776
775
  strokeLinejoin: "round",
@@ -778,17 +777,17 @@ function SvgX(props) {
778
777
  width: "1em",
779
778
  height: "1em",
780
779
  fill: "none"
781
- }, props), _path$4k || (_path$4k = /*#__PURE__*/React.createElement("path", {
780
+ }, props), _path$4n || (_path$4n = /*#__PURE__*/React.createElement("path", {
782
781
  d: "M12 4l-8 8m0-8l8 8"
783
782
  })));
784
783
  }
785
784
 
786
- var _path$3$;
785
+ var _path$42;
787
786
 
788
- function _extends$4g() { _extends$4g = 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$4g.apply(this, arguments); }
787
+ function _extends$4j() { _extends$4j = 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$4j.apply(this, arguments); }
789
788
 
790
789
  function SvgInfo(props) {
791
- return /*#__PURE__*/React.createElement("svg", _extends$4g({
790
+ return /*#__PURE__*/React.createElement("svg", _extends$4j({
792
791
  viewBox: "0 0 16 16",
793
792
  strokeLinecap: "round",
794
793
  strokeLinejoin: "round",
@@ -796,17 +795,17 @@ function SvgInfo(props) {
796
795
  width: "1em",
797
796
  height: "1em",
798
797
  fill: "none"
799
- }, props), _path$3$ || (_path$3$ = /*#__PURE__*/React.createElement("path", {
798
+ }, props), _path$42 || (_path$42 = /*#__PURE__*/React.createElement("path", {
800
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$3a;
803
+ var _path$3d;
805
804
 
806
- 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); }
805
+ function _extends$3t() { _extends$3t = 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$3t.apply(this, arguments); }
807
806
 
808
807
  function SvgError(props) {
809
- return /*#__PURE__*/React.createElement("svg", _extends$3q({
808
+ return /*#__PURE__*/React.createElement("svg", _extends$3t({
810
809
  viewBox: "0 0 16 16",
811
810
  strokeLinecap: "round",
812
811
  strokeLinejoin: "round",
@@ -814,17 +813,17 @@ function SvgError(props) {
814
813
  width: "1em",
815
814
  height: "1em",
816
815
  fill: "none"
817
- }, props), _path$3a || (_path$3a = /*#__PURE__*/React.createElement("path", {
816
+ }, props), _path$3d || (_path$3d = /*#__PURE__*/React.createElement("path", {
818
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$39;
821
+ var _path$3c;
823
822
 
824
- 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); }
823
+ function _extends$3s() { _extends$3s = 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$3s.apply(this, arguments); }
825
824
 
826
825
  function SvgWarning(props) {
827
- return /*#__PURE__*/React.createElement("svg", _extends$3p({
826
+ return /*#__PURE__*/React.createElement("svg", _extends$3s({
828
827
  viewBox: "0 0 16 16",
829
828
  strokeLinecap: "round",
830
829
  strokeLinejoin: "round",
@@ -832,17 +831,17 @@ function SvgWarning(props) {
832
831
  width: "1em",
833
832
  height: "1em",
834
833
  fill: "none"
835
- }, props), _path$39 || (_path$39 = /*#__PURE__*/React.createElement("path", {
834
+ }, props), _path$3c || (_path$3c = /*#__PURE__*/React.createElement("path", {
836
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$S;
839
+ var _path$V;
841
840
 
842
- function _extends$10() { _extends$10 = 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$10.apply(this, arguments); }
841
+ function _extends$13() { _extends$13 = 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$13.apply(this, arguments); }
843
842
 
844
843
  function SvgCircle(props) {
845
- return /*#__PURE__*/React.createElement("svg", _extends$10({
844
+ return /*#__PURE__*/React.createElement("svg", _extends$13({
846
845
  viewBox: "0 0 16 16",
847
846
  strokeLinecap: "round",
848
847
  strokeLinejoin: "round",
@@ -850,7 +849,7 @@ function SvgCircle(props) {
850
849
  width: "1em",
851
850
  height: "1em",
852
851
  fill: "none"
853
- }, props), _path$S || (_path$S = /*#__PURE__*/React.createElement("path", {
852
+ }, props), _path$V || (_path$V = /*#__PURE__*/React.createElement("path", {
854
853
  d: "M8 14.667A6.667 6.667 0 108 1.333a6.667 6.667 0 000 13.334z"
855
854
  })));
856
855
  }