@astral/ui 1.19.2 → 1.19.4

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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.backdropStackManager = void 0;
4
4
  class BackdropStackManager {
5
5
  constructor() {
6
+ var _a;
6
7
  this.stack = [];
7
8
  // сохраняем информацию о том какой был предыдущий вызов pop,
8
9
  // нужен для предотвращения синхронного закрытия при последовательности 'blur' и 'backdropClick' в рамках одного клика
@@ -35,7 +36,7 @@ class BackdropStackManager {
35
36
  }
36
37
  return false;
37
38
  };
38
- document === null || document === void 0 ? void 0 : document.addEventListener('pointerdown', () => (this.currentPointerId = this.generateID()));
39
+ (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.addEventListener('pointerdown', () => (this.currentPointerId = this.generateID()));
39
40
  }
40
41
  }
41
42
  exports.backdropStackManager = new BackdropStackManager();
package/Grid/styled.js CHANGED
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StyledGrid = void 0;
4
4
  const material_1 = require("@mui/material");
5
5
  const styles_1 = require("../styles");
6
- exports.StyledGrid = (0, styles_1.styled)(material_1.Box) `
6
+ exports.StyledGrid = (0, styles_1.styled)(material_1.Box, {
7
+ shouldForwardProp: (prop) => prop !== 'container',
8
+ }) `
7
9
  display: ${({ container }) => container && 'grid'};
8
10
  `;
@@ -1,5 +1,6 @@
1
1
  class BackdropStackManager {
2
2
  constructor() {
3
+ var _a;
3
4
  this.stack = [];
4
5
  // сохраняем информацию о том какой был предыдущий вызов pop,
5
6
  // нужен для предотвращения синхронного закрытия при последовательности 'blur' и 'backdropClick' в рамках одного клика
@@ -32,7 +33,7 @@ class BackdropStackManager {
32
33
  }
33
34
  return false;
34
35
  };
35
- document === null || document === void 0 ? void 0 : document.addEventListener('pointerdown', () => (this.currentPointerId = this.generateID()));
36
+ (_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.addEventListener('pointerdown', () => (this.currentPointerId = this.generateID()));
36
37
  }
37
38
  }
38
39
  export const backdropStackManager = new BackdropStackManager();
@@ -1,5 +1,7 @@
1
1
  import { Box } from '@mui/material';
2
2
  import { styled } from '../styles';
3
- export const StyledGrid = styled(Box) `
3
+ export const StyledGrid = styled(Box, {
4
+ shouldForwardProp: (prop) => prop !== 'container',
5
+ }) `
4
6
  display: ${({ container }) => container && 'grid'};
5
7
  `;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "1.19.2",
3
+ "version": "1.19.4",
4
4
  "browser": "./esm/index.js",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@astral/icons": "^1.19.2",
7
+ "@astral/icons": "^1.19.4",
8
8
  "@emotion/cache": "11.7.1",
9
9
  "@emotion/react": "11.9.0",
10
10
  "@emotion/server": "11.4.0",