@momo-kits/native-kits 0.113.1-beta.4 → 0.113.1-beta.6
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.
|
@@ -115,7 +115,7 @@ fun PopupNotify(
|
|
|
115
115
|
)
|
|
116
116
|
|
|
117
117
|
Column(modifier = Modifier.padding(Spacing.XL)) {
|
|
118
|
-
Text(style = Typography.titleXs, maxLines =
|
|
118
|
+
Text(style = Typography.titleXs, maxLines = 2, text = title)
|
|
119
119
|
content(Modifier.padding(top = Spacing.S))
|
|
120
120
|
if (error.isNotEmpty()) {
|
|
121
121
|
Text(
|
package/ios/Button/Button.swift
CHANGED
|
@@ -98,9 +98,8 @@ private extension View {
|
|
|
98
98
|
case .secondary:
|
|
99
99
|
return AnyView(self
|
|
100
100
|
.background(Colors.card)
|
|
101
|
-
.foregroundColor(Colors.
|
|
101
|
+
.foregroundColor(Colors.primary)
|
|
102
102
|
.cornerRadius(8)
|
|
103
|
-
.overlay(RoundedRectangle(cornerRadius: Radius.S).stroke(Colors.black06, lineWidth: 1))
|
|
104
103
|
.padding(2)
|
|
105
104
|
)
|
|
106
105
|
case .outline:
|
|
@@ -43,6 +43,7 @@ public struct PopupDisplay: View {
|
|
|
43
43
|
Image(systemName: "xmark.circle.fill")
|
|
44
44
|
.resizable()
|
|
45
45
|
.frame(width: 16, height: 16)
|
|
46
|
+
.overlay(RoundedRectangle(cornerRadius: Radius.S).stroke(Colors.black01, lineWidth: 1))
|
|
46
47
|
}.foregroundColor(Colors.black20)
|
|
47
48
|
.background(Colors.black01.cornerRadius(8))
|
|
48
49
|
.offset(x: 6, y: -6)
|
|
@@ -52,15 +53,17 @@ public struct PopupDisplay: View {
|
|
|
52
53
|
WebImage(url: URL(string: url), isAnimating: .constant(true))
|
|
53
54
|
.resizable()
|
|
54
55
|
.scaledToFill()
|
|
55
|
-
.frame(maxWidth: .infinity
|
|
56
|
+
.frame(maxWidth: .infinity)
|
|
56
57
|
.clipShape(RoundedCorner(radius: 8, corners: [.topLeft, .topRight]))
|
|
58
|
+
.aspectRatio(2, contentMode: .fit)
|
|
57
59
|
|
|
58
60
|
VStack(alignment: .leading) {
|
|
59
61
|
Text(title)
|
|
60
62
|
.foregroundColor(.black)
|
|
61
|
-
.font(.
|
|
62
|
-
.padding(.top,
|
|
63
|
-
.padding(.bottom,
|
|
63
|
+
.font(.title3)
|
|
64
|
+
.padding(.top, 16)
|
|
65
|
+
.padding(.bottom, 8)
|
|
66
|
+
.lineLimit(2)
|
|
64
67
|
|
|
65
68
|
Text(description)
|
|
66
69
|
.foregroundColor(.black)
|
|
@@ -87,10 +90,8 @@ public struct PopupDisplay: View {
|
|
|
87
90
|
}.clipped()
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
|
-
.background(Color.white.cornerRadius(
|
|
91
|
-
.
|
|
92
|
-
.shadow(color: .black.opacity(0.16), radius: 24, x: 0, y: 0)
|
|
93
|
-
.padding(.horizontal, 40)
|
|
93
|
+
.background(Color.white.cornerRadius(15))
|
|
94
|
+
.padding(.horizontal, 24)
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
// MARK: Internal
|
|
@@ -106,7 +107,7 @@ public struct PopupDisplay: View {
|
|
|
106
107
|
var onClose: () -> Void
|
|
107
108
|
var actionButtonTitle: String
|
|
108
109
|
var closeButtonTitle: String
|
|
109
|
-
|
|
110
|
+
|
|
110
111
|
var RowTextButtons: some View {
|
|
111
112
|
HStack {
|
|
112
113
|
SwiftUI.Button(action: onPressCloseButton) {
|
|
@@ -153,7 +154,10 @@ public struct PopupDisplay: View {
|
|
|
153
154
|
|
|
154
155
|
var ColumnButtons: some View {
|
|
155
156
|
VStack(alignment: .trailing) {
|
|
156
|
-
Button(
|
|
157
|
+
Button(
|
|
158
|
+
title: actionButtonTitle,
|
|
159
|
+
action: onPressAction
|
|
160
|
+
)
|
|
157
161
|
Button(title: closeButtonTitle, action: onPressCloseButton, type: .secondary)
|
|
158
162
|
}
|
|
159
163
|
.frame(maxWidth: .infinity, alignment: .trailing)
|
package/local.properties
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
# Location of the SDK. This is only used by Gradle.
|
|
5
5
|
# For customization when using a Version Control System, please read the
|
|
6
6
|
# header note.
|
|
7
|
-
#
|
|
8
|
-
sdk.dir=/Users/
|
|
7
|
+
#Thu Jan 09 10:43:10 ICT 2025
|
|
8
|
+
sdk.dir=/Users/sophia/Library/Android/sdk
|