@momo-kits/native-kits 0.169.5-beta.1 → 0.169.5-beta.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.
@@ -79,8 +79,8 @@ public extension ModalLayout {
79
79
  return ModalLayout(
80
80
  isFoldable: false,
81
81
  placement: placement,
82
- popup: popupGeometry(placementWidth: width, maxHeight: nil, margin: Spacing.XL, radius: Radius.L),
83
- sheet: SheetGeometry(width: nil, maxHeight: nil, minHeight: 0, margin: 0, radius: Radius.M),
82
+ popup: popupGeometry(placementWidth: width, maxHeight: nil, margin: Spacing.XL, radius: Radius.XL),
83
+ sheet: SheetGeometry(width: nil, maxHeight: nil, minHeight: 0, margin: 0, radius: Radius.XL),
84
84
  scrimOpacity: ModalMetrics.phoneScrimOpacity
85
85
  )
86
86
  }
@@ -108,7 +108,7 @@ public struct PopupDisplay: View {
108
108
  }
109
109
  .fixedSize(horizontal: false, vertical: true)
110
110
  .background(theme.colors.background.surface)
111
- .clipShape(RoundedRectangle(cornerRadius: layout.popupRadius()))
111
+ .clipShape(RoundedRectangle(cornerRadius: layout.popupRadius))
112
112
 
113
113
  if isShowCloseIcon {
114
114
  ModalIconButton(icon: "navigation_close", accessibilityId: "ic_popup_close", action: onClose)
@@ -116,8 +116,8 @@ public struct PopupDisplay: View {
116
116
  .padding(.trailing, Spacing.M)
117
117
  }
118
118
  }
119
- .frame(maxWidth: layout.popupMaxWidth)
120
- .padding(.horizontal, layout.popupHorizontalPadding(12))
119
+ // window minus 24 a side on phones too, host padding included (PopupNotify parity)
120
+ .frame(maxWidth: layout.modalLayout.popup.maxWidth)
121
121
  .accessibilityElement(children: .contain)
122
122
  .accessibilityIdentifier("popup_notify")
123
123
  }
@@ -61,7 +61,7 @@ public struct PopupInput: View {
61
61
  .padding(.trailing, Spacing.M)
62
62
  }
63
63
  }
64
- .background(theme.colors.background.surface.cornerRadius(layout.popupRadius(8)))
64
+ .background(theme.colors.background.surface.cornerRadius(layout.popupRadius))
65
65
  .shadow(color: .black.opacity(0.08), radius: 2, x: 0, y: 0)
66
66
  .shadow(color: .black.opacity(0.16), radius: 24, x: 0, y: 0)
67
67
  .frame(maxWidth: layout.popupMaxWidth)
@@ -19,9 +19,9 @@ extension ScreenLayout {
19
19
  modalLayout.popup.maxHeight
20
20
  }
21
21
 
22
- func popupRadius(_ regular: CGFloat = Radius.L) -> CGFloat {
23
- let modal = modalLayout
24
- return modal.isFoldable ? modal.popup.radius : regular
22
+ /// Popup corner radius on every device (`modalLayout`, Compose `popupRadius`).
23
+ var popupRadius: CGFloat {
24
+ modalLayout.popup.radius
25
25
  }
26
26
  }
27
27
 
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKits'
3
- s.version = '0.169.5-beta.1'
3
+ s.version = '0.169.5-beta.2'
4
4
  s.summary = 'MoMoUIKits for iOS'
5
5
  s.homepage = 'https://momo.vn'
6
6
  s.license = { :type => 'MIT' }
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKitsDemo'
3
- s.version = '0.169.5-beta.1'
3
+ s.version = '0.169.5-beta.2'
4
4
  s.summary = 'Demo browser for MoMoUIKits SwiftUI components'
5
5
  s.homepage = 'https://momo.vn'
6
6
  s.license = { :type => 'MIT' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.169.5-beta.1",
3
+ "version": "0.169.5-beta.2",
4
4
  "private": false,
5
5
  "dependeNavigationncies": {},
6
6
  "devDependencies": {},