lupine.components 1.0.3 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lupine.components",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "author": "uuware.com",
6
6
  "homepage": "https://uuware.com/",
@@ -14,6 +14,7 @@ export type FloatWindowShowProps = {
14
14
  closeEvent?: () => void;
15
15
  handleClicked: (index: number, close: FloatWindowCloseProps) => void;
16
16
  closeWhenClickOutside?: boolean; // default false
17
+ zIndex?: string;
17
18
  };
18
19
 
19
20
  // because it's over a mask, so it can use primary colors
@@ -43,6 +44,7 @@ export class FloatWindow {
43
44
  closeEvent,
44
45
  handleClicked,
45
46
  closeWhenClickOutside = false,
47
+ zIndex,
46
48
  }: FloatWindowShowProps): Promise<FloatWindowCloseProps> {
47
49
  const onClickContainer = (event: any) => {
48
50
  if (closeWhenClickOutside !== false && event.target.className === 'fwin-box') {
@@ -177,7 +179,7 @@ export class FloatWindow {
177
179
  </div>
178
180
  );
179
181
  base.style.position = 'fixed';
180
- base.style.zIndex = 'var(--layer-float-window)';
182
+ base.style.zIndex = zIndex || 'var(--layer-float-window)';
181
183
  document.body.appendChild(base);
182
184
  await mountComponents(base, component);
183
185
  return handleClose;