studiokit-scaffolding-js 7.0.8 → 7.0.9-alpha.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.
@@ -13,6 +13,7 @@ export interface FullscreenModalOwnProps {
13
13
  */
14
14
  closeModal?: () => void;
15
15
  contentLabel?: string;
16
+ zIndex?: number;
16
17
  }
17
18
  /** The props that are provided to the HOC component, either directly or from other wrapping HOCs */
18
19
  export declare type FullscreenModalComponentProps = FullscreenModalOwnProps & ConnectedModalWrappedProps & GuidComponentWrappedProps;
@@ -133,7 +133,7 @@ function configureFullscreenModalComponent(WrappedComponent) {
133
133
  });
134
134
  };
135
135
  FullscreenModalComponent.prototype.render = function () {
136
- var _a = this.props, contentLabel = _a.contentLabel, isTopOpenFullscreenModal = _a.isTopOpenFullscreenModal, onEntering = _a.onEntering, onExited = _a.onExited, _ = _a.isOpen, closeModal = _a.closeModal, remainingProps = __rest(_a, ["contentLabel", "isTopOpenFullscreenModal", "onEntering", "onExited", "isOpen", "closeModal"]);
136
+ var _a = this.props, contentLabel = _a.contentLabel, isTopOpenFullscreenModal = _a.isTopOpenFullscreenModal, onEntering = _a.onEntering, onExited = _a.onExited, _ = _a.isOpen, closeModal = _a.closeModal, zIndex = _a.zIndex, remainingProps = __rest(_a, ["contentLabel", "isTopOpenFullscreenModal", "onEntering", "onExited", "isOpen", "closeModal", "zIndex"]);
137
137
  // do not pass ConnectedModalWrappedProps to wrapped component
138
138
  var wrappedProps = __assign(__assign({}, remainingProps), { closeModal: this.closeModal });
139
139
  var isOpen = this.state.isOpen;
@@ -155,7 +155,7 @@ function configureFullscreenModalComponent(WrappedComponent) {
155
155
  left: 0,
156
156
  right: 0,
157
157
  bottom: 0,
158
- zIndex: 2000
158
+ zIndex: zIndex !== null && zIndex !== void 0 ? zIndex : 2000
159
159
  }
160
160
  },
161
161
  // hide the rendered portal if this is not the top open fullscreen modal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "studiokit-scaffolding-js",
3
- "version": "7.0.8",
3
+ "version": "7.0.9-alpha.2",
4
4
  "description": "Common scaffolding for Studio apps at Purdue",
5
5
  "repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
6
6
  "license": "MIT",