@momo-kits/native-kits 0.157.1-beta.3-debug → 0.157.1-beta.4-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.157.1-beta.3-debug"
43
+ version = "0.157.1-beta.4-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |spec|
2
2
  spec.name = 'compose'
3
- spec.version = '0.157.1-beta.3'
3
+ spec.version = '0.156.6-beta.16'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -525,6 +525,12 @@ private fun TooltipSingleButton(btn: TooltipButton) {
525
525
  )
526
526
  }
527
527
  }
528
+
529
+ private const val MAX_BUTTON_LENGTH = 16
530
+
531
+ private fun String.limitWithEllipsis(max: Int = 16): String {
532
+ return if (length > max) take(max) + "…" else this
533
+ }
528
534
  @Composable
529
535
  private fun TooltipPrimaryButton(
530
536
  title: String,
@@ -532,7 +538,7 @@ private fun TooltipPrimaryButton(
532
538
  ) {
533
539
  Button(
534
540
  onClick = onPress,
535
- title = title,
541
+ title = title.limitWithEllipsis(),
536
542
  type = ButtonType.SECONDARY,
537
543
  size = Size.MEDIUM,
538
544
  isFull = false,
@@ -552,7 +558,7 @@ private fun TooltipSecondaryButton(
552
558
  .padding(horizontal = Spacing.M, vertical = Spacing.S),
553
559
  ) {
554
560
  Text(
555
- text = title,
561
+ text = title.limitWithEllipsis(),
556
562
  color = Colors.black_01,
557
563
  style = Typography.actionSBold,
558
564
  maxLines = 1,
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.157.1-beta.3
21
+ version=0.156.6-beta.16
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.157.1-beta.3-debug",
3
+ "version": "0.157.1-beta.4-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},
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 Dec 22 10:07:29 ICT 2025
8
- sdk.dir=/Users/phuc/Library/Android/sdk