@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/index.js CHANGED
@@ -2222,6 +2222,15 @@ var dataVizPalette = {
2222
2222
  },
2223
2223
  };
2224
2224
 
2225
+ var props = {
2226
+ MuiSwitch: {
2227
+ color: 'default',
2228
+ },
2229
+ MuiTextField: {
2230
+ variant: 'outlined',
2231
+ },
2232
+ };
2233
+
2225
2234
  /**
2226
2235
  * These theme properties should be considered legacy. Make efforts to avoid new usage as well as refactor out existing
2227
2236
  * usage.
@@ -2249,37 +2258,73 @@ var adminThemeZIndex = {
2249
2258
  /** The defaults for MuiInputBase and MuiInputLabel can be removed once the BasicForm & 'shared' inputs have either:
2250
2259
  * 1. been refactored to use secondary color.
2251
2260
  * 2. been replaced with new common components.
2261
+ *
2262
+ * props as imported from './props' are part updated design system.
2252
2263
  */
2253
2264
  var adminThemeDefaultProps = {
2254
- props: {
2265
+ props: __assign$1(__assign$1({}, props), {
2266
+ // Legacy below
2255
2267
  MuiCard: {
2256
2268
  elevation: 0,
2257
- },
2258
- MuiTooltip: {
2269
+ }, MuiTooltip: {
2259
2270
  title: '',
2260
2271
  placement: 'right',
2261
- },
2262
- MuiPaper: {
2272
+ }, MuiPaper: {
2263
2273
  elevation: 0,
2264
- },
2265
- MuiAppBar: {
2274
+ }, MuiAppBar: {
2266
2275
  position: 'static',
2267
- },
2268
- MuiInputBase: {
2276
+ }, MuiInputBase: {
2269
2277
  color: 'secondary',
2270
- },
2271
- MuiInputLabel: {
2278
+ }, MuiInputLabel: {
2272
2279
  color: 'secondary',
2280
+ } }),
2281
+ };
2282
+
2283
+ var overrides = {
2284
+ MuiSwitch: {
2285
+ checked: {},
2286
+ track: {},
2287
+ switchBase: {
2288
+ '&$checked': {
2289
+ color: basePalette.success.main,
2290
+ '& + $track': {
2291
+ background: basePalette.success.light,
2292
+ },
2293
+ },
2273
2294
  },
2274
2295
  },
2275
2296
  };
2276
2297
 
2277
- 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);
2298
+ 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);
2278
2299
  var adminLight = createTheme__default['default'](adminLightOptions);
2279
2300
 
2280
- 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);
2301
+ 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);
2281
2302
  var adminDark = createTheme__default['default'](adminDarkOptions);
2282
2303
 
2304
+ Object.defineProperty(exports, 'CircularProgress', {
2305
+ enumerable: true,
2306
+ get: function () {
2307
+ return core.CircularProgress;
2308
+ }
2309
+ });
2310
+ Object.defineProperty(exports, 'MenuItem', {
2311
+ enumerable: true,
2312
+ get: function () {
2313
+ return core.MenuItem;
2314
+ }
2315
+ });
2316
+ Object.defineProperty(exports, 'Switch', {
2317
+ enumerable: true,
2318
+ get: function () {
2319
+ return core.Switch;
2320
+ }
2321
+ });
2322
+ Object.defineProperty(exports, 'TextField', {
2323
+ enumerable: true,
2324
+ get: function () {
2325
+ return core.TextField;
2326
+ }
2327
+ });
2283
2328
  Object.defineProperty(exports, 'Dialog', {
2284
2329
  enumerable: true,
2285
2330
  get: function () {