@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/components/Dialog/index.d.ts +1 -0
- package/build/components/DialogActions/DialogActions.d.ts +3 -0
- package/build/components/DialogActions/index.d.ts +2 -0
- package/build/components/DialogContent/index.d.ts +1 -0
- package/build/components/DialogTitle/index.d.ts +1 -0
- package/build/components/index.d.ts +4 -0
- package/build/index.es.js +72 -45
- package/build/index.es.js.map +1 -1
- package/build/index.js +92 -44
- package/build/index.js.map +1 -1
- package/build/theme/overrides.d.ts +14 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog, DialogProps } from '@popmenu/common-ui';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogContent, DialogContentProps } from '@popmenu/common-ui';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogTitle, DialogTitleProps } from '@popmenu/common-ui';
|
|
@@ -9,3 +9,7 @@ export { default as FullScreenStepper, FullScreenStepperProps, FullScreenStepper
|
|
|
9
9
|
export { default as FullScreenStepperContent } from './FullScreenStepperContent';
|
|
10
10
|
export { default as SelectableCard, SelectableCardProps } from './SelectableCard';
|
|
11
11
|
export { default as Toast, ToastProps } from './Toast';
|
|
12
|
+
export { DialogTitle, DialogTitleProps } from './DialogTitle';
|
|
13
|
+
export { DialogActions, DialogActionsProps } from './DialogActions';
|
|
14
|
+
export { Dialog, DialogProps } from './Dialog';
|
|
15
|
+
export { DialogContent, DialogContentProps } from './DialogContent';
|
package/build/index.es.js
CHANGED
|
@@ -22,9 +22,10 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
|
|
|
22
22
|
import '@material-ui/core/Chip';
|
|
23
23
|
import '@material-ui/core/Collapse';
|
|
24
24
|
import Dialog from '@material-ui/core/Dialog';
|
|
25
|
-
|
|
26
|
-
import '@material-ui/core/
|
|
27
|
-
|
|
25
|
+
export { default as Dialog } from '@material-ui/core/Dialog';
|
|
26
|
+
import CommonDialogActions from '@material-ui/core/DialogActions';
|
|
27
|
+
export { default as DialogContent } from '@material-ui/core/DialogContent';
|
|
28
|
+
export { default as DialogTitle } from '@material-ui/core/DialogTitle';
|
|
28
29
|
import '@material-ui/core/Drawer';
|
|
29
30
|
import '@material-ui/core/FormControl';
|
|
30
31
|
import '@material-ui/core/Grid';
|
|
@@ -193,42 +194,6 @@ function SvgUser(props) {
|
|
|
193
194
|
})));
|
|
194
195
|
}
|
|
195
196
|
|
|
196
|
-
var useIconStyles = makeStyles(function (_a) {
|
|
197
|
-
var spacing = _a.spacing, palette = _a.palette;
|
|
198
|
-
var getFontSize = function (_a) {
|
|
199
|
-
var size = _a.size;
|
|
200
|
-
var sizes = {
|
|
201
|
-
inherit: 'inherit',
|
|
202
|
-
small: spacing(1.5),
|
|
203
|
-
medium: spacing(2),
|
|
204
|
-
large: spacing(2.5),
|
|
205
|
-
'extra-large': spacing(3),
|
|
206
|
-
};
|
|
207
|
-
return size ? sizes[size] : 'inherit';
|
|
208
|
-
};
|
|
209
|
-
var getColor = function (props) {
|
|
210
|
-
var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
|
|
211
|
-
var value = 'inherit';
|
|
212
|
-
if (props.color) {
|
|
213
|
-
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
214
|
-
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
215
|
-
value = palette[color][variant];
|
|
216
|
-
}
|
|
217
|
-
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
218
|
-
value = props.color;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return value;
|
|
222
|
-
};
|
|
223
|
-
return {
|
|
224
|
-
root: {
|
|
225
|
-
color: getColor,
|
|
226
|
-
fontSize: getFontSize,
|
|
227
|
-
strokeWidth: '1.3px',
|
|
228
|
-
},
|
|
229
|
-
};
|
|
230
|
-
});
|
|
231
|
-
|
|
232
197
|
var classnames = {exports: {}};
|
|
233
198
|
|
|
234
199
|
/*!
|
|
@@ -289,6 +254,42 @@ var classnames = {exports: {}};
|
|
|
289
254
|
|
|
290
255
|
var classNames = classnames.exports;
|
|
291
256
|
|
|
257
|
+
var useIconStyles = makeStyles(function (_a) {
|
|
258
|
+
var spacing = _a.spacing, palette = _a.palette;
|
|
259
|
+
var getFontSize = function (_a) {
|
|
260
|
+
var size = _a.size;
|
|
261
|
+
var sizes = {
|
|
262
|
+
inherit: 'inherit',
|
|
263
|
+
small: spacing(1.5),
|
|
264
|
+
medium: spacing(2),
|
|
265
|
+
large: spacing(2.5),
|
|
266
|
+
'extra-large': spacing(3),
|
|
267
|
+
};
|
|
268
|
+
return size ? sizes[size] : 'inherit';
|
|
269
|
+
};
|
|
270
|
+
var getColor = function (props) {
|
|
271
|
+
var semanticColors = ['primary', 'secondary', 'info', 'success', 'warning', 'error'];
|
|
272
|
+
var value = 'inherit';
|
|
273
|
+
if (props.color) {
|
|
274
|
+
if (semanticColors.includes(props.color.split('.')[0])) {
|
|
275
|
+
var _a = props.color.split('.'), color = _a[0], _b = _a[1], variant = _b === void 0 ? 'main' : _b;
|
|
276
|
+
value = palette[color][variant];
|
|
277
|
+
}
|
|
278
|
+
else if (props.color.search(/^(rgb|hsla|#)/) !== -1) {
|
|
279
|
+
value = props.color;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return value;
|
|
283
|
+
};
|
|
284
|
+
return {
|
|
285
|
+
root: {
|
|
286
|
+
color: getColor,
|
|
287
|
+
fontSize: getFontSize,
|
|
288
|
+
strokeWidth: '1.3px',
|
|
289
|
+
},
|
|
290
|
+
};
|
|
291
|
+
});
|
|
292
|
+
|
|
292
293
|
var iconStaticClassName = 'pop-icon';
|
|
293
294
|
var Icon = function (props) {
|
|
294
295
|
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
@@ -341,7 +342,7 @@ var Typography = forwardRef(function (props, ref) {
|
|
|
341
342
|
});
|
|
342
343
|
Typography.displayName = 'Typography';
|
|
343
344
|
|
|
344
|
-
var useStyles$1 = makeStyles(function (_a) {
|
|
345
|
+
var useStyles$1$1 = makeStyles(function (_a) {
|
|
345
346
|
var spacing = _a.spacing;
|
|
346
347
|
return ({
|
|
347
348
|
root: {
|
|
@@ -355,7 +356,7 @@ var useStyles$1 = makeStyles(function (_a) {
|
|
|
355
356
|
});
|
|
356
357
|
var Paper = forwardRef(function (props, ref) {
|
|
357
358
|
var legacyStyles = props.legacyStyles, restProps = __rest(props, ["legacyStyles"]);
|
|
358
|
-
var classes = useStyles$1(props);
|
|
359
|
+
var classes = useStyles$1$1(props);
|
|
359
360
|
return React__default.createElement(Paper$1, __assign({}, ref, { classes: __assign({}, (legacyStyles && classes)) }, restProps));
|
|
360
361
|
});
|
|
361
362
|
Paper.displayName = 'Paper';
|
|
@@ -1228,14 +1229,14 @@ var StepperActionsPreviousButton = function (props) {
|
|
|
1228
1229
|
return displayPreviousButton ? (React__default.createElement(Button, __assign$1({ variant: "tertiary", disabled: stepCursor === 1 }, augmentedPreviousButtonProps), previousButtonText || 'previous')) : null;
|
|
1229
1230
|
};
|
|
1230
1231
|
|
|
1231
|
-
var useStyles = makeStyles$1({
|
|
1232
|
+
var useStyles$1 = makeStyles$1({
|
|
1232
1233
|
root: {
|
|
1233
1234
|
fontStyle: 'italic',
|
|
1234
1235
|
},
|
|
1235
1236
|
});
|
|
1236
1237
|
var StepperActionsStatusText = function (props) {
|
|
1237
1238
|
var statusText = props.statusText;
|
|
1238
|
-
var classes = useStyles(props);
|
|
1239
|
+
var classes = useStyles$1(props);
|
|
1239
1240
|
return statusText ? (React__default.createElement(Typography, { classes: { root: classes.root }, variant: "body2" }, statusText)) : null;
|
|
1240
1241
|
};
|
|
1241
1242
|
|
|
@@ -1521,6 +1522,19 @@ Toast.defaultProps = {
|
|
|
1521
1522
|
};
|
|
1522
1523
|
Toast.displayName = 'Toast';
|
|
1523
1524
|
|
|
1525
|
+
var useStyles = makeStyles(function (_a) {
|
|
1526
|
+
var palette = _a.palette;
|
|
1527
|
+
return ({
|
|
1528
|
+
root: {
|
|
1529
|
+
background: palette.grey['100'],
|
|
1530
|
+
},
|
|
1531
|
+
});
|
|
1532
|
+
});
|
|
1533
|
+
var DialogActions = function (props) {
|
|
1534
|
+
var classes = useStyles(props);
|
|
1535
|
+
return React__default.createElement(CommonDialogActions, __assign$1({ classes: classes }, props));
|
|
1536
|
+
};
|
|
1537
|
+
|
|
1524
1538
|
var useFullScreenStepperContext = function () { return useContext(FullScreenStepperContext); };
|
|
1525
1539
|
|
|
1526
1540
|
/**
|
|
@@ -1776,7 +1790,20 @@ var adminThemeDefaultProps = {
|
|
|
1776
1790
|
};
|
|
1777
1791
|
|
|
1778
1792
|
var adminOverrides = {
|
|
1779
|
-
overrides: {
|
|
1793
|
+
overrides: {
|
|
1794
|
+
MuiInputBase: {
|
|
1795
|
+
input: {
|
|
1796
|
+
'&::placeholder': {
|
|
1797
|
+
opacity: '.75',
|
|
1798
|
+
},
|
|
1799
|
+
},
|
|
1800
|
+
},
|
|
1801
|
+
MuiFormLabel: {
|
|
1802
|
+
root: {
|
|
1803
|
+
color: 'rgba(0,0,0,.65)',
|
|
1804
|
+
},
|
|
1805
|
+
},
|
|
1806
|
+
},
|
|
1780
1807
|
};
|
|
1781
1808
|
|
|
1782
1809
|
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);
|
|
@@ -1785,5 +1812,5 @@ var adminLight = createTheme(adminLightOptions);
|
|
|
1785
1812
|
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);
|
|
1786
1813
|
var adminDark = createTheme(adminDarkOptions);
|
|
1787
1814
|
|
|
1788
|
-
export { Alert, AlertDialog, AlertDialogHeader, AlertTitle, Button, ButtonGroup, FeatureIntro, FullScreenStepper, FullScreenStepperContent, FullScreenStepperContext, SelectableCard, Toast, adminDark, adminDarkOptions, adminLight, adminLightOptions, useFullScreenStepperContext, useSelectableCard };
|
|
1815
|
+
export { Alert, AlertDialog, AlertDialogHeader, AlertTitle, Button, ButtonGroup, DialogActions, FeatureIntro, FullScreenStepper, FullScreenStepperContent, FullScreenStepperContext, SelectableCard, Toast, adminDark, adminDarkOptions, adminLight, adminLightOptions, useFullScreenStepperContext, useSelectableCard };
|
|
1789
1816
|
//# sourceMappingURL=index.es.js.map
|