zkit-ui 2.0.14 → 2.0.15

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ActionDialog.d.ts","sourceRoot":"","sources":["../../../src/services/ActionDialogService/ActionDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyC/B,OAAO,KAAK,EAIV,iBAAiB,EACjB,eAAe,EAGhB,MAAM,SAAS,CAAC;AA0oBjB,eAAO,MAAM,YAAY,sFAA+B,CAAC"}
1
+ {"version":3,"file":"ActionDialog.d.ts","sourceRoot":"","sources":["../../../src/services/ActionDialogService/ActionDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyC/B,OAAO,KAAK,EAIV,iBAAiB,EACjB,eAAe,EAGhB,MAAM,SAAS,CAAC;AA8oBjB,eAAO,MAAM,YAAY,sFAA+B,CAAC"}
@@ -425,12 +425,16 @@ const ActionDialogRoot = React.forwardRef(function ActionDialog({ accessibilityL
425
425
  if (resolvedDismiss.backPress)
426
426
  dismissWithReason('back');
427
427
  }, pointerEvents: actualOpen ? 'auto' : 'none', style: [
428
- hostMode === 'inline' ? styles.inlineRoot : styles.modalRoot,
428
+ hostMode === 'inline' ? react_native_1.StyleSheet.absoluteFill : styles.modalRoot,
429
429
  {
430
430
  elevation: react_native_1.Platform.OS === 'android' ? (_b = layer === null || layer === void 0 ? void 0 : layer.zIndex) !== null && _b !== void 0 ? _b : shared_1.ACTION_DIALOG_DEFAULT_Z_INDEX : 0,
431
431
  zIndex: (_c = layer === null || layer === void 0 ? void 0 : layer.zIndex) !== null && _c !== void 0 ? _c : shared_1.ACTION_DIALOG_DEFAULT_Z_INDEX,
432
432
  },
433
- ], testID: testID, children: [(0, jsx_runtime_1.jsx)(react_native_1.Pressable, { accessible: false, onPress: handleOverlayPress, style: react_native_1.StyleSheet.absoluteFill, children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { pointerEvents: "none", style: [styles.backdrop, { backgroundColor: resolvedColors.backdrop }, overlayStyle] }) }), (0, jsx_runtime_1.jsx)(react_native_1.View, { pointerEvents: "box-none", style: [
433
+ ], testID: testID, children: [(0, jsx_runtime_1.jsx)(react_native_1.Pressable, { accessible: false, onPress: handleOverlayPress, style: react_native_1.StyleSheet.absoluteFill, children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { pointerEvents: "none", style: [
434
+ react_native_1.StyleSheet.absoluteFill,
435
+ { backgroundColor: resolvedColors.backdrop },
436
+ overlayStyle,
437
+ ] }) }), (0, jsx_runtime_1.jsx)(react_native_1.View, { pointerEvents: "box-none", style: [
434
438
  styles.center,
435
439
  {
436
440
  paddingBottom: Math.max(insets.bottom, (0, zkit_tools_1.wp)(16)),
@@ -478,12 +482,6 @@ const styles = react_native_1.StyleSheet.create({
478
482
  modalRoot: {
479
483
  flex: 1,
480
484
  },
481
- inlineRoot: {
482
- ...react_native_1.StyleSheet.absoluteFillObject,
483
- },
484
- backdrop: {
485
- ...react_native_1.StyleSheet.absoluteFillObject,
486
- },
487
485
  center: {
488
486
  alignItems: 'center',
489
487
  flex: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkit-ui",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -573,7 +573,7 @@ const ActionDialogRoot = React.forwardRef<ActionDialogRef, ActionDialogProps>(fu
573
573
  }}
574
574
  pointerEvents={actualOpen ? 'auto' : 'none'}
575
575
  style={[
576
- hostMode === 'inline' ? styles.inlineRoot : styles.modalRoot,
576
+ hostMode === 'inline' ? StyleSheet.absoluteFill : styles.modalRoot,
577
577
  {
578
578
  elevation: Platform.OS === 'android' ? layer?.zIndex ?? ACTION_DIALOG_DEFAULT_Z_INDEX : 0,
579
579
  zIndex: layer?.zIndex ?? ACTION_DIALOG_DEFAULT_Z_INDEX,
@@ -584,7 +584,11 @@ const ActionDialogRoot = React.forwardRef<ActionDialogRef, ActionDialogProps>(fu
584
584
  <Pressable accessible={false} onPress={handleOverlayPress} style={StyleSheet.absoluteFill}>
585
585
  <Animated.View
586
586
  pointerEvents="none"
587
- style={[styles.backdrop, { backgroundColor: resolvedColors.backdrop }, overlayStyle]}
587
+ style={[
588
+ StyleSheet.absoluteFill,
589
+ { backgroundColor: resolvedColors.backdrop },
590
+ overlayStyle,
591
+ ]}
588
592
  />
589
593
  </Pressable>
590
594
 
@@ -703,12 +707,6 @@ const styles = StyleSheet.create({
703
707
  modalRoot: {
704
708
  flex: 1,
705
709
  },
706
- inlineRoot: {
707
- ...StyleSheet.absoluteFillObject,
708
- },
709
- backdrop: {
710
- ...StyleSheet.absoluteFillObject,
711
- },
712
710
  center: {
713
711
  alignItems: 'center',
714
712
  flex: 1,