@superdispatch/ui 0.24.7 → 0.24.9

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.
@@ -1119,7 +1119,7 @@ function useVisibilityObserver(node) {
1119
1119
 
1120
1120
  var observer = new IntersectionObserver(_ref => {
1121
1121
  var [entry] = _ref;
1122
- setState(entry !== null && entry !== void 0 && entry.isIntersecting ? 'visible' : 'invisible');
1122
+ setState(entry !== null && entry !== void 0 && entry.isIntersecting && document.visibilityState === 'visible' ? 'visible' : 'invisible');
1123
1123
  }, {
1124
1124
  rootMargin,
1125
1125
  threshold
@@ -3148,6 +3148,11 @@ function overrideMenu(theme) {
3148
3148
  horizontal: 'left'
3149
3149
  }
3150
3150
  };
3151
+ theme.overrides.MuiMenu = {
3152
+ paper: {
3153
+ border: "1px solid ".concat(exports.Color.Silver400)
3154
+ }
3155
+ };
3151
3156
  theme.overrides.MuiMenuItem = {
3152
3157
  root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3153
3158
  paddingTop: theme.spacing(1),
@@ -3207,6 +3212,14 @@ function overridePaper(theme) {
3207
3212
  };
3208
3213
  }
3209
3214
 
3215
+ function overridePreloader(theme) {
3216
+ theme.overrides.MuiSkeleton = {
3217
+ text: {
3218
+ borderRadius: '3px'
3219
+ }
3220
+ };
3221
+ }
3222
+
3210
3223
  function overrideRadio(theme) {
3211
3224
  theme.props.MuiRadio = {
3212
3225
  color: 'primary',
@@ -3261,18 +3274,24 @@ function overrideSnackbar(theme) {
3261
3274
  anchorOriginBottomCenter: {
3262
3275
  left: 0,
3263
3276
  right: 0,
3264
- bottom: 0
3277
+ bottom: 0,
3278
+ padding: theme.spacing(0),
3279
+ background: 'transparent'
3265
3280
  }
3266
3281
  };
3267
3282
  theme.overrides.MuiSnackbarContent = {
3268
3283
  root: {
3269
- width: '100%',
3270
- borderRadius: 0,
3271
3284
  minHeight: theme.spacing(7.5),
3272
- [theme.breakpoints.up('sm')]: {
3273
- width: theme.spacing(54),
3274
- maxWidth: theme.spacing(54),
3275
- borderRadius: theme.spacing(0.5)
3285
+ '&.SD-SnackbarContent-root': {
3286
+ width: '100%',
3287
+ position: 'relative',
3288
+ left: 0,
3289
+ right: 0,
3290
+ bottom: 0,
3291
+ borderRadius: theme.spacing(0),
3292
+ [theme.breakpoints.up('sm')]: {
3293
+ borderRadius: theme.spacing(0.5)
3294
+ }
3276
3295
  }
3277
3296
  },
3278
3297
  message: {
@@ -3501,6 +3520,10 @@ function overrideTextField(theme) {
3501
3520
  }),
3502
3521
  input: {
3503
3522
  textOverflow: 'ellipsis',
3523
+ '&::placeholder': {
3524
+ color: exports.Color.Dark100,
3525
+ opacity: 1
3526
+ },
3504
3527
  '&.MuiInputBase-input': {
3505
3528
  fontSize: theme.spacing(2),
3506
3529
  [sm]: {
@@ -3873,6 +3896,7 @@ function createSuperDispatchTheme() {
3873
3896
  overrideTooltip(theme);
3874
3897
  overrideTypography(theme);
3875
3898
  overridePagination(theme);
3899
+ overridePreloader(theme);
3876
3900
  return theme;
3877
3901
  }
3878
3902
 
@@ -3885,6 +3909,10 @@ function generateClassName(rule, sheet) {
3885
3909
  } = (sheet === null || sheet === void 0 ? void 0 : sheet.options) || {};
3886
3910
 
3887
3911
  if (meta && rule.type === 'style') {
3912
+ if (meta.startsWith('MuiSnackbar') && sheet) {
3913
+ return "SDSnackbar-".concat(rule.key);
3914
+ }
3915
+
3888
3916
  if (meta.startsWith('SD-')) {
3889
3917
  return "".concat(meta, "-").concat(rule.key);
3890
3918
  }