@instructure/ui-modal 8.33.1 → 8.33.2

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/es/Modal/ModalBody/index.js +29 -25
  3. package/es/Modal/ModalBody/props.js +1 -1
  4. package/es/Modal/ModalBody/styles.js +0 -1
  5. package/es/Modal/ModalBody/theme.js +0 -1
  6. package/es/Modal/ModalFooter/index.js +2 -14
  7. package/es/Modal/ModalFooter/props.js +1 -0
  8. package/es/Modal/ModalFooter/styles.js +0 -1
  9. package/es/Modal/ModalFooter/theme.js +4 -4
  10. package/es/Modal/ModalHeader/index.js +2 -16
  11. package/es/Modal/ModalHeader/props.js +1 -0
  12. package/es/Modal/ModalHeader/styles.js +1 -2
  13. package/es/Modal/ModalHeader/theme.js +3 -3
  14. package/es/Modal/ModalLocator.js +9 -6
  15. package/es/Modal/index.js +29 -53
  16. package/es/Modal/locator.js +1 -0
  17. package/es/Modal/props.js +1 -0
  18. package/es/Modal/styles.js +2 -3
  19. package/es/Modal/theme.js +7 -7
  20. package/lib/Modal/ModalBody/index.js +29 -36
  21. package/lib/Modal/ModalBody/props.js +1 -5
  22. package/lib/Modal/ModalBody/styles.js +0 -2
  23. package/lib/Modal/ModalBody/theme.js +0 -2
  24. package/lib/Modal/ModalFooter/index.js +2 -22
  25. package/lib/Modal/ModalFooter/props.js +1 -3
  26. package/lib/Modal/ModalFooter/styles.js +0 -2
  27. package/lib/Modal/ModalFooter/theme.js +4 -5
  28. package/lib/Modal/ModalHeader/index.js +2 -29
  29. package/lib/Modal/ModalHeader/props.js +1 -3
  30. package/lib/Modal/ModalHeader/styles.js +1 -3
  31. package/lib/Modal/ModalHeader/theme.js +3 -4
  32. package/lib/Modal/ModalLocator.js +7 -8
  33. package/lib/Modal/index.js +29 -72
  34. package/lib/Modal/locator.js +0 -2
  35. package/lib/Modal/props.js +1 -9
  36. package/lib/Modal/styles.js +2 -4
  37. package/lib/Modal/theme.js +7 -8
  38. package/lib/index.js +0 -1
  39. package/package.json +21 -20
  40. package/src/Modal/ModalBody/index.tsx +30 -3
  41. package/src/Modal/ModalBody/props.ts +5 -1
  42. package/tsconfig.build.json +1 -0
  43. package/tsconfig.build.tsbuildinfo +1 -1
  44. package/types/Modal/ModalBody/index.d.ts +17 -4
  45. package/types/Modal/ModalBody/index.d.ts.map +1 -1
  46. package/types/Modal/ModalBody/props.d.ts +4 -1
  47. package/types/Modal/ModalBody/props.d.ts.map +1 -1
@@ -1,34 +1,22 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = exports.ModalBody = void 0;
9
-
10
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
-
12
9
  var _react = require("react");
13
-
14
10
  var _View = require("@instructure/ui-view/lib/View");
15
-
16
11
  var _testable = require("@instructure/ui-testable/lib/testable.js");
17
-
18
12
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
19
-
13
+ var _getComputedStyle = require("@instructure/ui-dom-utils/lib/getComputedStyle.js");
20
14
  var _emotion = require("@instructure/emotion");
21
-
22
15
  var _styles = _interopRequireDefault(require("./styles"));
23
-
24
16
  var _theme = _interopRequireDefault(require("./theme"));
25
-
26
17
  var _props = require("./props");
27
-
28
18
  const _excluded = ["as", "elementRef", "overflow", "variant", "padding", "children"];
29
-
30
19
  var _dec, _dec2, _class, _class2;
31
-
32
20
  /**
33
21
  ---
34
22
  parent: Modal
@@ -37,46 +25,48 @@ id: Modal.Body
37
25
  @tsProps
38
26
  **/
39
27
  let ModalBody = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class ModalBody extends _react.Component {
40
- constructor() {
41
- super(...arguments);
28
+ constructor(props) {
29
+ super(props);
42
30
  this.ref = null;
43
-
44
31
  this.handleRef = el => {
45
32
  const elementRef = this.props.elementRef;
46
33
  this.ref = el;
47
-
48
34
  if (typeof elementRef === 'function') {
49
35
  elementRef(el);
50
36
  }
51
37
  };
38
+ this.state = {
39
+ isFirefox: false
40
+ };
52
41
  }
53
-
54
42
  componentDidMount() {
55
43
  var _this$props$makeStyle, _this$props;
56
-
57
44
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
58
- }
59
45
 
46
+ // We detect if -moz- prefixed style is present to identify whether we are in Firefox browser
47
+ const style = this.ref && (0, _getComputedStyle.getComputedStyle)(this.ref);
48
+ const isFirefox = !!(style && Array.prototype.slice.call(style).join('').match(/(?:-moz-)/));
49
+ if (isFirefox) {
50
+ this.setState({
51
+ isFirefox
52
+ });
53
+ }
54
+ }
60
55
  componentDidUpdate() {
61
56
  var _this$props$makeStyle2, _this$props2;
62
-
63
57
  (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
64
58
  }
65
-
66
59
  render() {
67
60
  var _this$props$styles;
68
-
69
61
  const _this$props3 = this.props,
70
- as = _this$props3.as,
71
- elementRef = _this$props3.elementRef,
72
- overflow = _this$props3.overflow,
73
- variant = _this$props3.variant,
74
- padding = _this$props3.padding,
75
- children = _this$props3.children,
76
- rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
77
-
62
+ as = _this$props3.as,
63
+ elementRef = _this$props3.elementRef,
64
+ overflow = _this$props3.overflow,
65
+ variant = _this$props3.variant,
66
+ padding = _this$props3.padding,
67
+ children = _this$props3.children,
68
+ rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
78
69
  const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(rest, ModalBody.allowedProps), ModalBody);
79
-
80
70
  const isFit = overflow === 'fit';
81
71
  return (0, _emotion.jsx)(_View.View, Object.assign({}, passthroughProps, {
82
72
  display: "block",
@@ -85,12 +75,15 @@ let ModalBody = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
85
75
  elementRef: this.handleRef,
86
76
  as: as,
87
77
  css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.modalBody,
88
- padding: padding,
89
- tabIndex: -1 // prevent FF from focusing view when scrollable
90
-
78
+ padding: padding
79
+ // We have to make an exception in Firefox, because it makes
80
+ // the container focusable when it is scrollable.
81
+ // This is a feature, not a bug, but it prevents VoiceOver
82
+ // to correctly focus inside the body in other browsers.
83
+ }, this.state.isFirefox && {
84
+ tabIndex: -1
91
85
  }), children);
92
86
  }
93
-
94
87
  }, _class2.displayName = "ModalBody", _class2.componentId = 'Modal.Body', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
95
88
  padding: 'medium',
96
89
  as: 'div',
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _emotion = require("@instructure/emotion");
13
-
14
10
  /*
15
11
  * The MIT License (MIT)
16
12
  *
@@ -34,10 +30,10 @@ var _emotion = require("@instructure/emotion");
34
30
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
31
  * SOFTWARE.
36
32
  */
33
+
37
34
  const propTypes = {
38
35
  children: _propTypes.default.node,
39
36
  padding: _emotion.ThemeablePropTypes.spacing,
40
-
41
37
  /**
42
38
  * provides a reference to the underlying html root element
43
39
  */
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /*
9
8
  * The MIT License (MIT)
10
9
  *
@@ -57,6 +56,5 @@ const generateStyle = (componentTheme, props) => {
57
56
  }
58
57
  };
59
58
  };
60
-
61
59
  var _default = generateStyle;
62
60
  exports.default = _default;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /*
9
8
  * The MIT License (MIT)
10
9
  *
@@ -40,6 +39,5 @@ const generateComponentTheme = theme => {
40
39
  inverseBackground: colors === null || colors === void 0 ? void 0 : colors.backgroundBrandSecondary
41
40
  };
42
41
  };
43
-
44
42
  var _default = generateComponentTheme;
45
43
  exports.default = _default;
@@ -1,32 +1,20 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = exports.ModalFooter = void 0;
9
-
10
8
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
-
12
9
  var _react = require("react");
13
-
14
10
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
15
-
16
11
  var _testable = require("@instructure/ui-testable/lib/testable.js");
17
-
18
12
  var _emotion = require("@instructure/emotion");
19
-
20
13
  var _styles = _interopRequireDefault(require("./styles"));
21
-
22
14
  var _theme = _interopRequireDefault(require("./theme"));
23
-
24
15
  var _props = require("./props");
25
-
26
16
  const _excluded = ["children"];
27
-
28
17
  var _dec, _dec2, _class, _class2;
29
-
30
18
  /**
31
19
  ---
32
20
  parent: Modal
@@ -38,37 +26,29 @@ let ModalFooter = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
38
26
  constructor() {
39
27
  super(...arguments);
40
28
  this.ref = null;
41
-
42
29
  this.handleRef = el => {
43
30
  this.ref = el;
44
31
  };
45
32
  }
46
-
47
33
  componentDidMount() {
48
34
  var _this$props$makeStyle, _this$props;
49
-
50
35
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
51
36
  }
52
-
53
37
  componentDidUpdate() {
54
38
  var _this$props$makeStyle2, _this$props2;
55
-
56
39
  (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
57
40
  }
58
-
59
41
  render() {
60
42
  var _this$props$styles;
61
-
62
43
  const _this$props3 = this.props,
63
- children = _this$props3.children,
64
- rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
44
+ children = _this$props3.children,
45
+ rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
65
46
  return (0, _emotion.jsx)("div", Object.assign({
66
47
  css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.modalFooter
67
48
  }, (0, _passthroughProps.passthroughProps)(rest), {
68
49
  ref: this.handleRef
69
50
  }), children);
70
51
  }
71
-
72
52
  }, _class2.displayName = "ModalFooter", _class2.componentId = 'Modal.Footer', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
73
53
  variant: 'default'
74
54
  }, _class2)) || _class) || _class);
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -32,6 +29,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
32
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
30
  * SOFTWARE.
34
31
  */
32
+
35
33
  const propTypes = {
36
34
  children: _propTypes.default.node,
37
35
  variant: _propTypes.default.oneOf(['default', 'inverse'])
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /*
9
8
  * The MIT License (MIT)
10
9
  *
@@ -62,6 +61,5 @@ const generateStyle = (componentTheme, props) => {
62
61
  }
63
62
  };
64
63
  };
65
-
66
64
  var _default = generateStyle;
67
65
  exports.default = _default;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /*
9
8
  * The MIT License (MIT)
10
9
  *
@@ -36,8 +35,8 @@ exports.default = void 0;
36
35
  */
37
36
  const generateComponentTheme = theme => {
38
37
  const colors = theme.colors,
39
- spacing = theme.spacing,
40
- borders = theme.borders;
38
+ spacing = theme.spacing,
39
+ borders = theme.borders;
41
40
  const componentVariables = {
42
41
  background: colors === null || colors === void 0 ? void 0 : colors.backgroundLight,
43
42
  borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
@@ -47,9 +46,9 @@ const generateComponentTheme = theme => {
47
46
  inverseBackground: colors === null || colors === void 0 ? void 0 : colors.backgroundDarkest,
48
47
  inverseBorderColor: colors === null || colors === void 0 ? void 0 : colors.borderDarkest
49
48
  };
50
- return { ...componentVariables
49
+ return {
50
+ ...componentVariables
51
51
  };
52
52
  };
53
-
54
53
  var _default = generateComponentTheme;
55
54
  exports.default = _default;
@@ -1,38 +1,23 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports.default = exports.ModalHeader = void 0;
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
-
14
10
  var _react = _interopRequireWildcard(require("react"));
15
-
16
11
  var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
17
-
18
12
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
19
-
20
13
  var _testable = require("@instructure/ui-testable/lib/testable.js");
21
-
22
14
  var _emotion = require("@instructure/emotion");
23
-
24
15
  var _CloseButton = require("@instructure/ui-buttons/lib/CloseButton");
25
-
26
16
  var _styles = _interopRequireDefault(require("./styles"));
27
-
28
17
  var _theme = _interopRequireDefault(require("./theme"));
29
-
30
18
  var _props = require("./props");
31
-
32
19
  const _excluded = ["children"];
33
-
34
20
  var _dec, _dec2, _class, _class2;
35
-
36
21
  /**
37
22
  ---
38
23
  parent: Modal
@@ -44,55 +29,43 @@ let ModalHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
44
29
  constructor() {
45
30
  super(...arguments);
46
31
  this.ref = null;
47
-
48
32
  this.handleRef = el => {
49
33
  this.ref = el;
50
34
  };
51
-
52
35
  this.makeStyleProps = () => {
53
36
  return {
54
37
  withCloseButton: this.usesCloseButton
55
38
  };
56
39
  };
57
40
  }
58
-
59
41
  componentDidMount() {
60
42
  var _this$props$makeStyle, _this$props;
61
-
62
43
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props, this.makeStyleProps());
63
44
  }
64
-
65
45
  componentDidUpdate() {
66
46
  var _this$props$makeStyle2, _this$props2;
67
-
68
47
  (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2, this.makeStyleProps());
69
48
  }
70
-
71
49
  get usesCloseButton() {
72
50
  let hasCloseButton = false;
73
-
74
51
  _react.default.Children.forEach(this.props.children, child => {
75
52
  if (child && (0, _matchComponentTypes.matchComponentTypes)(child, [_CloseButton.CloseButton])) {
76
53
  hasCloseButton = true;
77
54
  }
78
55
  });
79
-
80
56
  return hasCloseButton;
81
57
  }
82
-
83
58
  render() {
84
59
  var _this$props$styles;
85
-
86
60
  const _this$props3 = this.props,
87
- children = _this$props3.children,
88
- rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
61
+ children = _this$props3.children,
62
+ rest = (0, _objectWithoutProperties2.default)(_this$props3, _excluded);
89
63
  return (0, _emotion.jsx)("div", Object.assign({
90
64
  css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.modalHeader
91
65
  }, (0, _passthroughProps.passthroughProps)(rest), {
92
66
  ref: this.handleRef
93
67
  }), children);
94
68
  }
95
-
96
69
  }, _class2.displayName = "ModalHeader", _class2.componentId = 'Modal.Header', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
97
70
  variant: 'default',
98
71
  spacing: 'default'
@@ -1,14 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.propTypes = exports.allowedProps = void 0;
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -32,6 +29,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
32
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
30
  * SOFTWARE.
34
31
  */
32
+
35
33
  const propTypes = {
36
34
  children: _propTypes.default.node,
37
35
  variant: _propTypes.default.oneOf(['default', 'inverse']),
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /*
9
8
  * The MIT License (MIT)
10
9
  *
@@ -41,7 +40,7 @@ exports.default = void 0;
41
40
  */
42
41
  const generateStyle = (componentTheme, props, state) => {
43
42
  const variant = props.variant,
44
- spacing = props.spacing;
43
+ spacing = props.spacing;
45
44
  const withCloseButton = state.withCloseButton;
46
45
  const sizeVariants = {
47
46
  default: {
@@ -73,6 +72,5 @@ const generateStyle = (componentTheme, props, state) => {
73
72
  }
74
73
  };
75
74
  };
76
-
77
75
  var _default = generateStyle;
78
76
  exports.default = _default;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  /*
9
8
  * The MIT License (MIT)
10
9
  *
@@ -36,7 +35,7 @@ exports.default = void 0;
36
35
  */
37
36
  const generateComponentTheme = theme => {
38
37
  const colors = theme.colors,
39
- spacing = theme.spacing;
38
+ spacing = theme.spacing;
40
39
  const componentVariables = {
41
40
  background: colors === null || colors === void 0 ? void 0 : colors.backgroundLightest,
42
41
  borderColor: colors === null || colors === void 0 ? void 0 : colors.borderMedium,
@@ -45,9 +44,9 @@ const generateComponentTheme = theme => {
45
44
  inverseBackground: colors === null || colors === void 0 ? void 0 : colors.backgroundDarkest,
46
45
  inverseBorderColor: colors === null || colors === void 0 ? void 0 : colors.backgroundDarkest
47
46
  };
48
- return { ...componentVariables
47
+ return {
48
+ ...componentVariables
49
49
  };
50
50
  };
51
-
52
51
  var _default = generateComponentTheme;
53
52
  exports.default = _default;
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ModalLocator = void 0;
7
-
8
7
  var _locator = require("@instructure/ui-test-locator/lib/utils/locator.js");
9
-
10
8
  var _index = require("./index");
11
-
12
9
  /*
13
10
  * The MIT License (MIT)
14
11
  *
@@ -32,13 +29,15 @@ var _index = require("./index");
32
29
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33
30
  * SOFTWARE.
34
31
  */
35
- // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
36
- const ModalHeaderLocator = (0, _locator.locator)(_index.Modal.Header.selector); // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
37
-
38
- const ModalBodyLocator = (0, _locator.locator)(_index.Modal.Body.selector); // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
39
32
 
40
- const ModalFooterLocator = (0, _locator.locator)(_index.Modal.Footer.selector); // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
33
+ // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
34
+ const ModalHeaderLocator = (0, _locator.locator)(_index.Modal.Header.selector);
35
+ // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
36
+ const ModalBodyLocator = (0, _locator.locator)(_index.Modal.Body.selector);
37
+ // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
38
+ const ModalFooterLocator = (0, _locator.locator)(_index.Modal.Footer.selector);
41
39
 
40
+ // @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
42
41
  const ModalLocator = (0, _locator.locator)(_index.Modal.selector, {
43
42
  findHeader: function () {
44
43
  return ModalHeaderLocator.find(...arguments);