@popmenu/admin-ui 0.61.0 → 0.62.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/index.d.ts +1 -0
- package/build/index.es.js +35 -13
- package/build/index.es.js.map +1 -1
- package/build/index.js +58 -13
- package/build/index.js.map +1 -1
- package/build/theme/adminDarkTheme.d.ts +22 -1
- package/build/theme/adminLightTheme.d.ts +21 -1
- package/build/theme/customThemeProperties.d.ts +8 -0
- package/build/theme/overrides.d.ts +14 -0
- package/build/theme/props.d.ts +8 -0
- package/package.json +2 -2
|
@@ -24,3 +24,4 @@ export { SettingsIndexCardGroup } from './SettingsIndexCardGroup';
|
|
|
24
24
|
export { SettingsIndexCard, SettingsIndexCardProps } from './SettingsIndexCard';
|
|
25
25
|
export { List, ListProps } from './List';
|
|
26
26
|
export { StandardListItem, StandardListItemProps } from './StandardListItem';
|
|
27
|
+
export { Switch, SwitchProps, TextField, TextFieldProps, MenuItem, MenuItemProps, CircularProgress, CircularProgressProps, } from '@material-ui/core';
|
package/build/index.es.js
CHANGED
|
@@ -2,6 +2,7 @@ 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
4
|
import { makeStyles, Typography as Typography$1, Link as Link$1, Paper as Paper$1, Box, useTheme as useTheme$1, ButtonBase, List as List$1, ListItem, ListItemAvatar, ListItemText, Chip, ListItemSecondaryAction, IconButton as IconButton$1 } from '@material-ui/core';
|
|
5
|
+
export { CircularProgress, MenuItem, Switch, TextField } from '@material-ui/core';
|
|
5
6
|
import '@material-ui/core/AppBar';
|
|
6
7
|
import MuiAvatar from '@material-ui/core/Avatar';
|
|
7
8
|
import { makeStyles as makeStyles$1, useTheme, lighten } from '@material-ui/core/styles';
|
|
@@ -2170,6 +2171,15 @@ var dataVizPalette = {
|
|
|
2170
2171
|
},
|
|
2171
2172
|
};
|
|
2172
2173
|
|
|
2174
|
+
var props = {
|
|
2175
|
+
MuiSwitch: {
|
|
2176
|
+
color: 'default',
|
|
2177
|
+
},
|
|
2178
|
+
MuiTextField: {
|
|
2179
|
+
variant: 'outlined',
|
|
2180
|
+
},
|
|
2181
|
+
};
|
|
2182
|
+
|
|
2173
2183
|
/**
|
|
2174
2184
|
* These theme properties should be considered legacy. Make efforts to avoid new usage as well as refactor out existing
|
|
2175
2185
|
* usage.
|
|
@@ -2197,35 +2207,47 @@ var adminThemeZIndex = {
|
|
|
2197
2207
|
/** The defaults for MuiInputBase and MuiInputLabel can be removed once the BasicForm & 'shared' inputs have either:
|
|
2198
2208
|
* 1. been refactored to use secondary color.
|
|
2199
2209
|
* 2. been replaced with new common components.
|
|
2210
|
+
*
|
|
2211
|
+
* props as imported from './props' are part updated design system.
|
|
2200
2212
|
*/
|
|
2201
2213
|
var adminThemeDefaultProps = {
|
|
2202
|
-
props: {
|
|
2214
|
+
props: __assign$1(__assign$1({}, props), {
|
|
2215
|
+
// Legacy below
|
|
2203
2216
|
MuiCard: {
|
|
2204
2217
|
elevation: 0,
|
|
2205
|
-
},
|
|
2206
|
-
MuiTooltip: {
|
|
2218
|
+
}, MuiTooltip: {
|
|
2207
2219
|
title: '',
|
|
2208
2220
|
placement: 'right',
|
|
2209
|
-
},
|
|
2210
|
-
MuiPaper: {
|
|
2221
|
+
}, MuiPaper: {
|
|
2211
2222
|
elevation: 0,
|
|
2212
|
-
},
|
|
2213
|
-
MuiAppBar: {
|
|
2223
|
+
}, MuiAppBar: {
|
|
2214
2224
|
position: 'static',
|
|
2215
|
-
},
|
|
2216
|
-
MuiInputBase: {
|
|
2225
|
+
}, MuiInputBase: {
|
|
2217
2226
|
color: 'secondary',
|
|
2218
|
-
},
|
|
2219
|
-
MuiInputLabel: {
|
|
2227
|
+
}, MuiInputLabel: {
|
|
2220
2228
|
color: 'secondary',
|
|
2229
|
+
} }),
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2232
|
+
var overrides = {
|
|
2233
|
+
MuiSwitch: {
|
|
2234
|
+
checked: {},
|
|
2235
|
+
track: {},
|
|
2236
|
+
switchBase: {
|
|
2237
|
+
'&$checked': {
|
|
2238
|
+
color: basePalette.success.main,
|
|
2239
|
+
'& + $track': {
|
|
2240
|
+
background: basePalette.success.light,
|
|
2241
|
+
},
|
|
2242
|
+
},
|
|
2221
2243
|
},
|
|
2222
2244
|
},
|
|
2223
2245
|
};
|
|
2224
2246
|
|
|
2225
|
-
var adminLightOptions = __assign$1(__assign$1(__assign$1(__assign$1({ themeName: 'Admin Light', palette: __assign$1(__assign$1(__assign$1({}, basePalette), adminLightPalette), dataVizPalette), breakpoints: adminThemeBreakpoints, typography: adminThemeTypography }, adminLightPlaceholder), adminThemeZIndex), adminThemeStatus), adminThemeDefaultProps);
|
|
2247
|
+
var adminLightOptions = __assign$1(__assign$1(__assign$1(__assign$1({ themeName: 'Admin Light', palette: __assign$1(__assign$1(__assign$1({}, basePalette), adminLightPalette), dataVizPalette), breakpoints: adminThemeBreakpoints, typography: adminThemeTypography, overrides: overrides }, adminLightPlaceholder), adminThemeZIndex), adminThemeStatus), adminThemeDefaultProps);
|
|
2226
2248
|
var adminLight = createTheme(adminLightOptions);
|
|
2227
2249
|
|
|
2228
|
-
var adminDarkOptions = __assign$1(__assign$1(__assign$1(__assign$1({ themeName: 'Admin Dark', palette: __assign$1(__assign$1(__assign$1({}, basePalette), adminDarkPalette), dataVizPalette), breakpoints: adminThemeBreakpoints, typography: adminThemeTypography }, adminDarkPlaceholder), adminThemeZIndex), adminThemeStatus), adminThemeDefaultProps);
|
|
2250
|
+
var adminDarkOptions = __assign$1(__assign$1(__assign$1(__assign$1({ themeName: 'Admin Dark', palette: __assign$1(__assign$1(__assign$1({}, basePalette), adminDarkPalette), dataVizPalette), breakpoints: adminThemeBreakpoints, typography: adminThemeTypography, overrides: overrides }, adminDarkPlaceholder), adminThemeZIndex), adminThemeStatus), adminThemeDefaultProps);
|
|
2229
2251
|
var adminDark = createTheme(adminDarkOptions);
|
|
2230
2252
|
|
|
2231
2253
|
export { Alert, AlertDialog, AlertDialogHeader, AlertTitle, Button, ButtonGroup, DialogActions, FeatureIntro, FullScreenStepper, FullScreenStepperActions, FullScreenStepperContent, FullScreenStepperContext, List, Page, PageBody, PageSection, PageSectionHead, PageSectionTitle, PageSections, SelectableCard, SettingsIndexCard, SettingsIndexCardGroup, StandardListItem, Toast, adminDark, adminDarkOptions, adminLight, adminLightOptions, useDialog, useFullScreenStepperContext, useSelectableCard };
|