@popmenu/admin-ui 0.19.5 → 0.21.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.
package/build/index.js CHANGED
@@ -25,9 +25,9 @@ var FormControlLabel = require('@material-ui/core/FormControlLabel');
25
25
  require('@material-ui/core/Chip');
26
26
  require('@material-ui/core/Collapse');
27
27
  var Dialog = require('@material-ui/core/Dialog');
28
- require('@material-ui/core/DialogActions');
29
- require('@material-ui/core/DialogContent');
30
- require('@material-ui/core/DialogTitle');
28
+ var CommonDialogActions = require('@material-ui/core/DialogActions');
29
+ var DialogContent = require('@material-ui/core/DialogContent');
30
+ var DialogTitle = require('@material-ui/core/DialogTitle');
31
31
  require('@material-ui/core/Drawer');
32
32
  require('@material-ui/core/FormControl');
33
33
  require('@material-ui/core/Grid');
@@ -92,6 +92,9 @@ var CardContent__default = /*#__PURE__*/_interopDefaultLegacy(CardContent);
92
92
  var MuiCheckbox__default = /*#__PURE__*/_interopDefaultLegacy(MuiCheckbox);
93
93
  var FormControlLabel__default = /*#__PURE__*/_interopDefaultLegacy(FormControlLabel);
94
94
  var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
95
+ var CommonDialogActions__default = /*#__PURE__*/_interopDefaultLegacy(CommonDialogActions);
96
+ var DialogContent__default = /*#__PURE__*/_interopDefaultLegacy(DialogContent);
97
+ var DialogTitle__default = /*#__PURE__*/_interopDefaultLegacy(DialogTitle);
95
98
  var MuiRadio__default = /*#__PURE__*/_interopDefaultLegacy(MuiRadio);
96
99
  var MuiSwitch__default = /*#__PURE__*/_interopDefaultLegacy(MuiSwitch);
97
100
  var MuiToggleButton__default = /*#__PURE__*/_interopDefaultLegacy(MuiToggleButton);
@@ -244,42 +247,6 @@ function SvgUser(props) {
244
247
  })));
245
248
  }
246
249
 
247
- var useIconStyles = core.makeStyles(function (_a) {
248
- var spacing = _a.spacing, palette = _a.palette;
249
- var getFontSize = function (_a) {
250
- var size = _a.size;
251
- var sizes = {
252
- inherit: 'inherit',
253
- small: spacing(1.5),
254
- medium: spacing(2),
255
- large: spacing(2.5),
256
- 'extra-large': spacing(3),
257
- };
258
- return size ? sizes[size] : 'inherit';
259
- };
260
- var getColor = function (props) {
261
- var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
262
- var value = 'inherit';
263
- if (props.color) {
264
- if (semanticColors.includes(props.color.split('.')[0])) {
265
- var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
266
- value = palette[color][variant];
267
- }
268
- else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
269
- value = props.color;
270
- }
271
- }
272
- return value;
273
- };
274
- return {
275
- root: {
276
- color: getColor,
277
- fontSize: getFontSize,
278
- strokeWidth: '1.3px',
279
- },
280
- };
281
- });
282
-
283
250
  var classnames = {exports: {}};
284
251
 
285
252
  /*!
@@ -340,6 +307,42 @@ var classnames = {exports: {}};
340
307
 
341
308
  var classNames = classnames.exports;
342
309
 
310
+ var useIconStyles = core.makeStyles(function (_a) {
311
+ var spacing = _a.spacing, palette = _a.palette;
312
+ var getFontSize = function (_a) {
313
+ var size = _a.size;
314
+ var sizes = {
315
+ inherit: 'inherit',
316
+ small: spacing(1.5),
317
+ medium: spacing(2),
318
+ large: spacing(2.5),
319
+ 'extra-large': spacing(3),
320
+ };
321
+ return size ? sizes[size] : 'inherit';
322
+ };
323
+ var getColor = function (props) {
324
+ var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
325
+ var value = 'inherit';
326
+ if (props.color) {
327
+ if (semanticColors.includes(props.color.split('.')[0])) {
328
+ var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
329
+ value = palette[color][variant];
330
+ }
331
+ else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
332
+ value = props.color;
333
+ }
334
+ }
335
+ return value;
336
+ };
337
+ return {
338
+ root: {
339
+ color: getColor,
340
+ fontSize: getFontSize,
341
+ strokeWidth: '1.3px',
342
+ },
343
+ };
344
+ });
345
+
343
346
  var iconStaticClassName = 'pop-icon';
344
347
  var Icon = function (props) {
345
348
  var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
@@ -392,7 +395,7 @@ var Typography = React.forwardRef(function (props, ref) {
392
395
  });
393
396
  Typography.displayName = 'Typography';
394
397
 
395
- var useStyles$1 = core.makeStyles(function (_a) {
398
+ var useStyles$1$1 = core.makeStyles(function (_a) {
396
399
  var spacing = _a.spacing;
397
400
  return ({
398
401
  root: {
@@ -406,7 +409,7 @@ var useStyles$1 = core.makeStyles(function (_a) {
406
409
  });
407
410
  var Paper = React.forwardRef(function (props, ref) {
408
411
  var legacyStyles = props.legacyStyles, restProps = __rest(props, ["legacyStyles"]);
409
- var classes = useStyles$1(props);
412
+ var classes = useStyles$1$1(props);
410
413
  return React__default['default'].createElement(core.Paper, __assign({}, ref, { classes: __assign({}, (legacyStyles && classes)) }, restProps));
411
414
  });
412
415
  Paper.displayName = 'Paper';
@@ -1279,14 +1282,14 @@ var StepperActionsPreviousButton = function (props) {
1279
1282
  return displayPreviousButton ? (React__default['default'].createElement(Button, __assign$1({ variant: "tertiary", disabled: stepCursor === 1 }, augmentedPreviousButtonProps), previousButtonText || 'previous')) : null;
1280
1283
  };
1281
1284
 
1282
- var useStyles = styles.makeStyles({
1285
+ var useStyles$1 = styles.makeStyles({
1283
1286
  root: {
1284
1287
  fontStyle: 'italic',
1285
1288
  },
1286
1289
  });
1287
1290
  var StepperActionsStatusText = function (props) {
1288
1291
  var statusText = props.statusText;
1289
- var classes = useStyles(props);
1292
+ var classes = useStyles$1(props);
1290
1293
  return statusText ? (React__default['default'].createElement(Typography, { classes: { root: classes.root }, variant: "body2" }, statusText)) : null;
1291
1294
  };
1292
1295
 
@@ -1572,6 +1575,19 @@ Toast.defaultProps = {
1572
1575
  };
1573
1576
  Toast.displayName = 'Toast';
1574
1577
 
1578
+ var useStyles = core.makeStyles(function (_a) {
1579
+ var palette = _a.palette;
1580
+ return ({
1581
+ root: {
1582
+ background: palette.grey['100'],
1583
+ },
1584
+ });
1585
+ });
1586
+ var DialogActions = function (props) {
1587
+ var classes = useStyles(props);
1588
+ return React__default['default'].createElement(CommonDialogActions__default['default'], __assign$1({ classes: classes }, props));
1589
+ };
1590
+
1575
1591
  var useFullScreenStepperContext = function () { return React.useContext(FullScreenStepperContext); };
1576
1592
 
1577
1593
  /**
@@ -1827,7 +1843,20 @@ var adminThemeDefaultProps = {
1827
1843
  };
1828
1844
 
1829
1845
  var adminOverrides = {
1830
- overrides: {},
1846
+ overrides: {
1847
+ MuiInputBase: {
1848
+ input: {
1849
+ '&::placeholder': {
1850
+ opacity: '.75',
1851
+ },
1852
+ },
1853
+ },
1854
+ MuiFormLabel: {
1855
+ root: {
1856
+ color: 'rgba(0,0,0,.65)',
1857
+ },
1858
+ },
1859
+ },
1831
1860
  };
1832
1861
 
1833
1862
  var adminLightOptions = __assign$1(__assign$1(__assign$1(__assign$1(__assign$1({ themeName: 'Admin Light', palette: __assign$1(__assign$1({}, basePalette), adminLightPalette), breakpoints: adminThemeBreakpoints, typography: adminThemeTypography }, adminLightPlaceholder), adminThemeZIndex), adminThemeStatus), adminThemeDefaultProps), adminOverrides);
@@ -1836,12 +1865,31 @@ var adminLight = createTheme__default['default'](adminLightOptions);
1836
1865
  var adminDarkOptions = __assign$1(__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), adminOverrides);
1837
1866
  var adminDark = createTheme__default['default'](adminDarkOptions);
1838
1867
 
1868
+ Object.defineProperty(exports, 'Dialog', {
1869
+ enumerable: true,
1870
+ get: function () {
1871
+ return Dialog__default['default'];
1872
+ }
1873
+ });
1874
+ Object.defineProperty(exports, 'DialogContent', {
1875
+ enumerable: true,
1876
+ get: function () {
1877
+ return DialogContent__default['default'];
1878
+ }
1879
+ });
1880
+ Object.defineProperty(exports, 'DialogTitle', {
1881
+ enumerable: true,
1882
+ get: function () {
1883
+ return DialogTitle__default['default'];
1884
+ }
1885
+ });
1839
1886
  exports.Alert = Alert;
1840
1887
  exports.AlertDialog = AlertDialog;
1841
1888
  exports.AlertDialogHeader = AlertDialogHeader;
1842
1889
  exports.AlertTitle = AlertTitle;
1843
1890
  exports.Button = Button;
1844
1891
  exports.ButtonGroup = ButtonGroup;
1892
+ exports.DialogActions = DialogActions;
1845
1893
  exports.FeatureIntro = FeatureIntro;
1846
1894
  exports.FullScreenStepper = FullScreenStepper;
1847
1895
  exports.FullScreenStepperContent = FullScreenStepperContent;