@momo-kits/native-kits 0.114.2-beta.13 → 0.114.2-beta.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.
@@ -11,6 +11,7 @@ import androidx.compose.foundation.shape.RoundedCornerShape
11
11
  import androidx.compose.runtime.Composable
12
12
  import androidx.compose.ui.Alignment
13
13
  import androidx.compose.ui.Modifier
14
+ import androidx.compose.ui.graphics.Color
14
15
  import androidx.compose.ui.unit.dp
15
16
  import vn.momo.kits.const.AppTheme
16
17
  import vn.momo.kits.const.Colors
@@ -27,8 +28,8 @@ fun CheckBox(
27
28
  title: String = "",
28
29
  ) {
29
30
  var borderColor = AppTheme.current.colors.text.default
30
- var backgroundColor = AppTheme.current.colors.background.surface
31
- val iconSource = if (indeterminate) "minus" else "ic_checked"
31
+ var backgroundColor = Color.Transparent
32
+ val iconSource = if (indeterminate) "navigation_minus" else "ic_checked"
32
33
 
33
34
  if (checked) {
34
35
  borderColor = AppTheme.current.colors.primary
@@ -36,7 +37,7 @@ fun CheckBox(
36
37
  }
37
38
  if (disabled) {
38
39
  borderColor = AppTheme.current.colors.border.disable
39
- backgroundColor = AppTheme.current.colors.background.surface
40
+ backgroundColor = Color.Transparent
40
41
  if (checked) {
41
42
  borderColor = AppTheme.current.colors.background.tonal
42
43
  backgroundColor = AppTheme.current.colors.background.tonal
@@ -138,7 +138,6 @@ public struct Header: View {
138
138
 
139
139
  public var body: some View {
140
140
 
141
- // let statusBarHeight = safeAreaTopInset()
142
141
  let tintIconColor = Colors.black17
143
142
  let backgroundButton = Colors.black01.opacity(0.6)
144
143
 
@@ -197,8 +196,7 @@ public struct Header: View {
197
196
  }
198
197
  } else {
199
198
  Text(title)
200
- .font(.title_xs)
201
- .lineSpacing(22)
199
+ .font(Font.system(size: 17).weight(.bold)) .lineSpacing(22)
202
200
  .foregroundColor(tintIconColor)
203
201
  .frame(maxWidth: titlePosition == .center ? UIScreen.main.bounds.width - 252 : nil)
204
202
  .frame(maxWidth: titlePosition == .center ? .infinity : UIScreen.main.bounds.width - 172, alignment: titlePosition == .center ? .center : .leading)
@@ -75,7 +75,7 @@ public struct Checkbox: View{
75
75
  } else if checked {
76
76
  return Colors.primary
77
77
  } else {
78
- return Colors.black01
78
+ return Color.clear
79
79
  }
80
80
  }
81
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.114.2-beta.13",
3
+ "version": "0.114.2-beta.15",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},