studiokit-scaffolding-js 7.0.8 → 7.0.9-alpha.1

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,8 @@ 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;
137
+ var _b = this.props, contentLabel = _b.contentLabel, isTopOpenFullscreenModal = _b.isTopOpenFullscreenModal, onEntering = _b.onEntering, onExited = _b.onExited, _ = _b.isOpen, closeModal = _b.closeModal, remainingProps = __rest(_b, ["contentLabel", "isTopOpenFullscreenModal", "onEntering", "onExited", "isOpen", "closeModal"]);
137
138
  // do not pass ConnectedModalWrappedProps to wrapped component
138
139
  var wrappedProps = __assign(__assign({}, remainingProps), { closeModal: this.closeModal });
139
140
  var isOpen = this.state.isOpen;
@@ -155,7 +156,7 @@ function configureFullscreenModalComponent(WrappedComponent) {
155
156
  left: 0,
156
157
  right: 0,
157
158
  bottom: 0,
158
- zIndex: 2000
159
+ zIndex: (_a = this.props.zIndex) !== null && _a !== void 0 ? _a : 2000
159
160
  }
160
161
  },
161
162
  // 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.1",
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",