@momo-kits/native-kits 0.89.5 → 0.89.7
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.
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Components.kt +7 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +3 -0
- package/package.json +1 -1
- package/publish.sh +1 -1
- package/android/.gradle/8.0/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.0/gc.properties +0 -0
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +0 -12
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/vcs.xml +0 -6
- package/android/.idea/workspace.xml +0 -50
- package/android/local.properties +0 -8
- package/local.properties +0 -8
|
@@ -49,9 +49,15 @@ fun HeaderImage(
|
|
|
49
49
|
headerType: HeaderType = HeaderType.DEFAULT,
|
|
50
50
|
headerBackground: String?,
|
|
51
51
|
) {
|
|
52
|
+
val statusBarHeight = if (getPlatformName() == "iOS") {
|
|
53
|
+
WindowInsets.systemBars.asPaddingValues().calculateTopPadding()
|
|
54
|
+
} else {
|
|
55
|
+
AppStatusBar.current
|
|
56
|
+
}
|
|
57
|
+
|
|
52
58
|
when (headerType) {
|
|
53
59
|
HeaderType.DEFAULT -> {
|
|
54
|
-
val height =
|
|
60
|
+
val height = statusBarHeight + 52.dp
|
|
55
61
|
Image(
|
|
56
62
|
source = headerBackground ?: "",
|
|
57
63
|
modifier = Modifier.fillMaxWidth().height(height),
|
|
@@ -7,6 +7,7 @@ import androidx.compose.ui.text.TextLayoutResult
|
|
|
7
7
|
import androidx.compose.ui.text.TextStyle
|
|
8
8
|
import androidx.compose.ui.text.style.TextAlign
|
|
9
9
|
import androidx.compose.ui.text.style.TextDecoration
|
|
10
|
+
import androidx.compose.ui.text.style.TextOverflow
|
|
10
11
|
import androidx.compose.ui.unit.sp
|
|
11
12
|
import vn.momo.kits.const.AppTheme
|
|
12
13
|
import vn.momo.kits.const.Typography
|
|
@@ -21,6 +22,7 @@ fun Text(
|
|
|
21
22
|
textAlign: TextAlign? = TextAlign.Start,
|
|
22
23
|
modifier: Modifier = Modifier,
|
|
23
24
|
maxLines: Int = Int.MAX_VALUE,
|
|
25
|
+
overflow: TextOverflow = TextOverflow.Clip,
|
|
24
26
|
textDecoration: TextDecoration? = null,
|
|
25
27
|
onTextLayout: ((TextLayoutResult) -> Unit)? = null,
|
|
26
28
|
) {
|
|
@@ -38,5 +40,6 @@ fun Text(
|
|
|
38
40
|
maxLines = maxLines,
|
|
39
41
|
textDecoration = textDecoration,
|
|
40
42
|
onTextLayout = onTextLayout,
|
|
43
|
+
overflow = overflow
|
|
41
44
|
)
|
|
42
45
|
}
|
package/package.json
CHANGED
package/publish.sh
CHANGED
|
@@ -16,4 +16,4 @@ npm publish --tag beta --access=public
|
|
|
16
16
|
cd ..
|
|
17
17
|
rm -rf dist
|
|
18
18
|
|
|
19
|
-
curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/native new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/native-kits"}'
|
|
19
|
+
#curl -X POST -H 'Content-Type: application/json' 'https://chat.googleapis.com/v1/spaces/AAAAbP8987c/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=UGSFRvk_oYb9uGsAgs31bVvMm6jDkmD8zihGm3eyaQA%3D&threadKey=JoaXTEYaNNkl' -d '{"text": "@momo-kits/native new version release: '*"$VERSION"*' https://www.npmjs.com/package/@momo-kits/native-kits"}'
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
package/android/.idea/gradle.xml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleSettings">
|
|
4
|
-
<option name="linkedExternalProjectsSettings">
|
|
5
|
-
<GradleProjectSettings>
|
|
6
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
7
|
-
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
8
|
-
<option name="resolveExternalAnnotations" value="false" />
|
|
9
|
-
</GradleProjectSettings>
|
|
10
|
-
</option>
|
|
11
|
-
</component>
|
|
12
|
-
</project>
|
package/android/.idea/misc.xml
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
-
<component name="ProjectRootManager">
|
|
5
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
6
|
-
</component>
|
|
7
|
-
<component name="ProjectType">
|
|
8
|
-
<option name="id" value="Android" />
|
|
9
|
-
</component>
|
|
10
|
-
</project>
|
package/android/.idea/vcs.xml
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="AutoImportSettings">
|
|
4
|
-
<option name="autoReloadType" value="NONE" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="7ac6a412-719a-420a-88c9-469c04bccebf" name="Changes" comment="" />
|
|
8
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
9
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
11
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
12
|
-
</component>
|
|
13
|
-
<component name="ClangdSettings">
|
|
14
|
-
<option name="formatViaClangd" value="false" />
|
|
15
|
-
</component>
|
|
16
|
-
<component name="Git.Settings">
|
|
17
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
|
18
|
-
</component>
|
|
19
|
-
<component name="ProjectId" id="2a7VYs7GWpDvnabiqoEP3S5zR6T" />
|
|
20
|
-
<component name="ProjectViewState">
|
|
21
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
22
|
-
<option name="showLibraryContents" value="true" />
|
|
23
|
-
</component>
|
|
24
|
-
<component name="PropertiesComponent"><![CDATA[{
|
|
25
|
-
"keyToString": {
|
|
26
|
-
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
27
|
-
"RunOnceActivity.cidr.known.project.marker": "true",
|
|
28
|
-
"android.gradle.sync.needed": "true",
|
|
29
|
-
"cf.first.check.clang-format": "false",
|
|
30
|
-
"cidr.known.project.marker": "true",
|
|
31
|
-
"dart.analysis.tool.window.visible": "false",
|
|
32
|
-
"project.structure.last.edited": "Project",
|
|
33
|
-
"project.structure.proportion": "0.17",
|
|
34
|
-
"project.structure.side.proportion": "0.0",
|
|
35
|
-
"settings.editor.selected.configurable": "preferences.lookFeel",
|
|
36
|
-
"show.migrate.to.gradle.popup": "false"
|
|
37
|
-
}
|
|
38
|
-
}]]></component>
|
|
39
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
40
|
-
<component name="TaskManager">
|
|
41
|
-
<task active="true" id="Default" summary="Default task">
|
|
42
|
-
<changelist id="7ac6a412-719a-420a-88c9-469c04bccebf" name="Changes" comment="" />
|
|
43
|
-
<created>1703669655154</created>
|
|
44
|
-
<option name="number" value="Default" />
|
|
45
|
-
<option name="presentableId" value="Default" />
|
|
46
|
-
<updated>1703669655154</updated>
|
|
47
|
-
</task>
|
|
48
|
-
<servers />
|
|
49
|
-
</component>
|
|
50
|
-
</project>
|
package/android/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Wed Dec 27 16:34:14 ICT 2023
|
|
8
|
-
sdk.dir=/Users/wem/Library/Android/sdk
|
package/local.properties
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
-
# as it contains information specific to your local configuration.
|
|
3
|
-
#
|
|
4
|
-
# Location of the SDK. This is only used by Gradle.
|
|
5
|
-
# For customization when using a Version Control System, please read the
|
|
6
|
-
# header note.
|
|
7
|
-
#Mon Mar 04 18:29:01 ICT 2024
|
|
8
|
-
sdk.dir=/Users/wem/Library/Android/sdk
|