lupine.components 1.1.43 → 1.1.45

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.1.43",
3
+ "version": "1.1.45",
4
4
  "license": "MIT",
5
5
  "author": "uuware.com",
6
6
  "homepage": "https://github.com/uuware/lupine.js",
@@ -206,7 +206,7 @@ export class ActionSheet {
206
206
  </div>
207
207
  );
208
208
  base.style.position = 'fixed';
209
- base.style.zIndex = zIndex || 'var(--layer-actionsheet-window)';
209
+ base.style.zIndex = zIndex || 'var(--layer-notice)';
210
210
  document.body.appendChild(base);
211
211
  await mountInnerComponent(base, component);
212
212
  return handleClose;
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  );
14
14
  */
15
- import { VNode, CssProps, HtmlVar, RefProps, stopPropagation, MediaQueryRange } from 'lupine.components';
15
+ import { VNode, CssProps, HtmlVar, RefProps, stopPropagation, MediaQueryRange, isFrontEnd } from 'lupine.components';
16
16
 
17
17
  // addClass(SliderFramePosition) is used to show two SliderFrames for big screens,
18
18
  // so when the second is showing, it needs to set this on the first one
@@ -58,7 +58,19 @@ export const SliderFrame = (props: SliderFrameProps) => {
58
58
  };
59
59
  }
60
60
  const dom = new HtmlVar(<div class='slider-frame-default'>{props.defaultContent || '(No Content)'}</div>);
61
- const ref: RefProps = {};
61
+ const ref: RefProps = {
62
+ onLoad: async (el: Element) => {
63
+ // Keep fixed sliders out of padded/top-frame layout containers on iOS.
64
+ // iOS WebView can treat fixed children inside safe-area padded app frames inconsistently;
65
+ // mounting the slider at body level also makes z-index compare globally.
66
+ if (isFrontEnd()) {
67
+ const root = (window.parent as any).document.querySelector('.lupine-root') as HTMLElement;
68
+ if (root && el.parentElement !== root) {
69
+ root.appendChild(el);
70
+ }
71
+ }
72
+ },
73
+ };
62
74
  const css: CssProps = {
63
75
  display: 'flex',
64
76
  flexDirection: 'column',