@momo-kits/native-kits 0.89.32-nav.2 → 0.89.32-nav.3

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.
@@ -90,6 +90,7 @@ fun HeaderBackground(
90
90
  modifier = Modifier
91
91
  .height(height)
92
92
  .fillMaxWidth()
93
+ .alpha(opacityAni)
93
94
  .background(
94
95
  Brush.linearGradient(
95
96
  colors = listOf(
@@ -121,8 +122,8 @@ fun HeaderBackground(
121
122
  .background(
122
123
  Brush.linearGradient(
123
124
  colors = listOf(
124
- Color(0xFFFDCACE),
125
- Color(0x00FDCACE)
125
+ Color(0xFFFDCADE),
126
+ Color(0x00FDCADE)
126
127
  ),
127
128
  start = Offset(0f, 0f),
128
129
  end = Offset(0f, with(LocalDensity.current) { 154.dp.toPx() })
@@ -139,23 +140,22 @@ fun HeaderBackground(
139
140
  )
140
141
  }
141
142
  }
142
- Box(
143
- modifier = Modifier.fillMaxWidth().height(statusBarHeight + 52.dp)
144
- .alpha(1 - opacityAni)
145
- .background(Colors.black_01)
146
- .then(
147
- if (useShadow == true) Modifier.shadow() else Modifier.bottomBorder(
148
- 1.dp,
149
- Colors.black_04
150
- )
151
- )
152
- )
153
143
  }
154
-
155
144
  else -> {
156
145
  Box(modifier = Modifier.fillMaxWidth())
157
146
  }
158
147
  }
148
+ Box(
149
+ modifier = Modifier.fillMaxWidth().height(statusBarHeight + 52.dp)
150
+ .alpha(1 - opacityAni)
151
+ .background(Colors.black_01)
152
+ .then(
153
+ if (useShadow == true) Modifier.shadow() else Modifier.bottomBorder(
154
+ 1.dp,
155
+ Colors.black_04
156
+ )
157
+ )
158
+ )
159
159
  }
160
160
 
161
161
  @Composable
@@ -185,14 +185,6 @@ fun Header(
185
185
  .collect { fraction -> colorFraction = fraction }
186
186
  }
187
187
 
188
- val tintIconColorAnim by animateColorAsState(
189
- targetValue = animateColor(
190
- Colors.black_01,
191
- AppTheme.current.colors.text.default,
192
- colorFraction
193
- )
194
- )
195
-
196
188
  val backgroundSearch by animateColorAsState(
197
189
  targetValue = animateColor(
198
190
  Colors.black_01,
@@ -242,7 +234,7 @@ fun Header(
242
234
  ) {
243
235
  Icon(
244
236
  source = "arrow-back",
245
- color = if (animatedHeader !== null) tintIconColorAnim else tintIconColor,
237
+ color = Colors.black_20,
246
238
  size = 20.dp,
247
239
  )
248
240
  }
@@ -279,7 +271,7 @@ fun Header(
279
271
  ) {
280
272
  HeaderTitle(
281
273
  title = title,
282
- color = if (animatedHeader !== null) tintIconColorAnim else tintIconColor,
274
+ color = tintIconColor,
283
275
  modifier = Modifier.semantics {
284
276
  contentDescription = title
285
277
  testTag = "title_navigation_header"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.89.32-nav.2",
3
+ "version": "0.89.32-nav.3",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},
package/publish.sh CHANGED
@@ -3,7 +3,7 @@ rm -rf dist
3
3
  mkdir dist
4
4
 
5
5
  cp . ./dist
6
-
6
+ mpo
7
7
  # GET VERSION from mck_package.json
8
8
  VERSIONSTRING=( v$(jq .version package.json) )
9
9
  VERSION=(${VERSIONSTRING//[\"]/})