@momo-kits/native-kits 0.113.1-beta.10 → 0.113.1-beta.12

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 = 2, text = title)
118
+ Text(style = Typography.titleXs, maxLines = 1, text = title)
119
119
  content(Modifier.padding(top = Spacing.S))
120
120
  if (error.isNotEmpty()) {
121
121
  Text(
@@ -98,8 +98,9 @@ private extension View {
98
98
  case .secondary:
99
99
  return AnyView(self
100
100
  .background(Colors.card)
101
- .foregroundColor(Colors.primary)
101
+ .foregroundColor(Colors.text)
102
102
  .cornerRadius(8)
103
+ .overlay(RoundedRectangle(cornerRadius: Radius.S).stroke(Colors.black06, lineWidth: 1))
103
104
  .padding(2)
104
105
  )
105
106
  case .outline:
@@ -43,33 +43,24 @@ 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))
47
46
  }.foregroundColor(Colors.black20)
48
47
  .background(Colors.black01.cornerRadius(8))
49
48
  .offset(x: 6, y: -6)
50
49
  .zIndex(1)
51
50
 
52
51
  VStack {
53
- if(!url.isEmpty) {
54
52
  WebImage(url: URL(string: url), isAnimating: .constant(true))
55
53
  .resizable()
56
- .placeholder {
57
- Rectangle()
58
- .fill(Color.gray.opacity(0.3))
59
- .frame(maxWidth: .infinity, maxHeight: 184)
60
- }
61
54
  .scaledToFill()
62
- .frame(maxWidth: .infinity)
55
+ .frame(maxWidth: .infinity, maxHeight: 164)
63
56
  .clipShape(RoundedCorner(radius: 8, corners: [.topLeft, .topRight]))
64
- .aspectRatio(2, contentMode: .fit)
65
- }
57
+
66
58
  VStack(alignment: .leading) {
67
59
  Text(title)
68
60
  .foregroundColor(.black)
69
- .font(.header_default_bold)
70
- .padding(.top, 16)
71
- .padding(.bottom, 8)
72
- .lineLimit(2)
61
+ .font(.headerText1)
62
+ .padding(.top, 12)
63
+ .padding(.bottom, 24)
73
64
 
74
65
  Text(description)
75
66
  .foregroundColor(.black)
@@ -96,8 +87,10 @@ public struct PopupDisplay: View {
96
87
  }.clipped()
97
88
  }
98
89
  }
99
- .background(Color.white.cornerRadius(15))
100
- .padding(.horizontal, 24)
90
+ .background(Color.white.cornerRadius(8))
91
+ .shadow(color: .black.opacity(0.08), radius: 2, x: 0, y: 0)
92
+ .shadow(color: .black.opacity(0.16), radius: 24, x: 0, y: 0)
93
+ .padding(.horizontal, 40)
101
94
  }
102
95
 
103
96
  // MARK: Internal
@@ -113,7 +106,7 @@ public struct PopupDisplay: View {
113
106
  var onClose: () -> Void
114
107
  var actionButtonTitle: String
115
108
  var closeButtonTitle: String
116
-
109
+
117
110
  var RowTextButtons: some View {
118
111
  HStack {
119
112
  SwiftUI.Button(action: onPressCloseButton) {
@@ -150,8 +143,8 @@ public struct PopupDisplay: View {
150
143
 
151
144
  var RowButtons: some View {
152
145
  HStack {
153
- Button(title: closeButtonTitle, action: onPressCloseButton, type: .secondary, size: .medium)
154
- Button(title: actionButtonTitle, action: onPressAction, size: .medium)
146
+ Button(title: closeButtonTitle, action: onPressCloseButton, type: .secondary)
147
+ Button(title: actionButtonTitle, action: onPressAction)
155
148
  }
156
149
  .frame(maxWidth: .infinity, alignment: .center)
157
150
  .padding(.horizontal, 24)
@@ -160,12 +153,8 @@ public struct PopupDisplay: View {
160
153
 
161
154
  var ColumnButtons: some View {
162
155
  VStack(alignment: .trailing) {
163
- Button(
164
- title: actionButtonTitle,
165
- action: onPressAction,
166
- size: .medium
167
- )
168
- Button(title: closeButtonTitle, action: onPressCloseButton, type: .secondary, size: .medium)
156
+ Button(title: actionButtonTitle, action: onPressAction)
157
+ Button(title: closeButtonTitle, action: onPressCloseButton, type: .secondary)
169
158
  }
170
159
  .frame(maxWidth: .infinity, alignment: .trailing)
171
160
  .padding(.horizontal, 24)
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
- #Thu Jan 09 10:43:10 ICT 2025
8
- sdk.dir=/Users/sophia/Library/Android/sdk
7
+ #Tue Apr 23 16:40:15 ICT 2024
8
+ sdk.dir=/Users/hung.dao1/Library/Android/sdk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.113.1-beta.10",
3
+ "version": "0.113.1-beta.12",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},