@momo-kits/native-kits 0.156.9-debug → 0.156.10-debug

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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.156.9-debug"
43
+ version = "0.156.10-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
package/gradle.properties CHANGED
@@ -18,7 +18,7 @@ kotlin.apple.xcodeCompatibility.nowarn=true
18
18
  name="ComposeKits"
19
19
  group=vn.momo.kits
20
20
  artifact.id=kits
21
- version=0.156.9
21
+ version=0.156.10
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
@@ -154,7 +154,7 @@ public struct FloatingButton: View {
154
154
  Spacer().frame(width: 8)
155
155
  Text(label)
156
156
  .foregroundColor(.white)
157
- .font(.system(size: 16, weight: .bold))
157
+ .font(.system(size: scaleSize(16), weight: .bold))
158
158
  .lineLimit(1)
159
159
  .background(
160
160
  GeometryReader { geo in
@@ -137,7 +137,7 @@ public struct BadgeRibbon: View {
137
137
  private var roundContent: some View {
138
138
  HStack(spacing: 0) {
139
139
  Text(label)
140
- .font(.system(size: 12, weight: .medium))
140
+ .font(.system(size: scaleSize(12), weight: .medium))
141
141
  .foregroundColor(Colors.black01)
142
142
  .lineLimit(1)
143
143
  .rotationEffect(rotation)
@@ -158,7 +158,7 @@ public struct BadgeRibbon: View {
158
158
  private var skewContent: some View {
159
159
  HStack(spacing: 0) {
160
160
  Text(label)
161
- .font(.system(size: 12, weight: .medium))
161
+ .font(.system(size: scaleSize(12), weight: .medium))
162
162
  .foregroundColor(Colors.black01)
163
163
  .lineLimit(1)
164
164
  .rotationEffect(rotation)
@@ -128,9 +128,7 @@ public struct PopupDisplay: View {
128
128
  .clipped()
129
129
  }
130
130
  VStack(alignment: .leading, spacing: 0) {
131
- Text(title)
132
- .foregroundColor(.black)
133
- .font(.header_default_semibold)
131
+ MomoText(title, typography: .headerDefaultBold)
134
132
  .padding(.top, 24)
135
133
  .padding(.bottom, 8)
136
134
  .lineLimit(2)
@@ -139,9 +137,7 @@ public struct PopupDisplay: View {
139
137
  Group {
140
138
  if isScrollable {
141
139
  ScrollView(showsIndicators: false) {
142
- Text(description)
143
- .font(.body_default_regular)
144
- .foregroundColor(Colors.black17)
140
+ MomoText(description, typography: .bodyDefaultRegular)
145
141
  .multilineTextAlignment(.leading)
146
142
  .background(GeometryReader { geo in
147
143
  Color.clear.onAppear { textHeight = geo.size.height }
@@ -149,13 +145,12 @@ public struct PopupDisplay: View {
149
145
  .measureLineHeights(font: .body_default_regular,
150
146
  oneLine: $oneLineH,
151
147
  twoLines: $twoLineH)
148
+ .accessibility(identifier: "description_popup_permission")
152
149
  }
153
150
  // Cap the visible height to ~8.5 lines
154
151
  .frame(height: min(maxHeight8_5, textHeight))
155
152
  } else {
156
- Text(description)
157
- .font(.body_default_regular)
158
- .foregroundColor(Colors.black17)
153
+ MomoText(description, typography: .bodyDefaultRegular)
159
154
  .multilineTextAlignment(.leading)
160
155
  .background(GeometryReader { geo in
161
156
  Color.clear.onAppear {
@@ -167,14 +162,13 @@ public struct PopupDisplay: View {
167
162
  .measureLineHeights(font: .body_default_regular,
168
163
  oneLine: $oneLineH,
169
164
  twoLines: $twoLineH)
165
+ .accessibility(identifier: "description_popup_permission")
170
166
  }
171
167
  }
172
168
  .padding(.bottom, 8)
173
169
 
174
170
  if(!errorCode.isEmpty) {
175
- Text((errorCodeLabels[language] ?? "Mã lỗi: ") + errorCode)
176
- .foregroundColor(Colors.black12)
177
- .font(.description_xs_regular)
171
+ MomoText((errorCodeLabels[language] ?? "Mã lỗi: ") + errorCode, typography: .descriptionXsRegular, color: Colors.black12)
178
172
  .lineLimit(1)
179
173
  .padding(.bottom, 8)
180
174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.156.9-debug",
3
+ "version": "0.156.10-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},