@momo-kits/native-kits 0.162.2-test.2-debug → 0.162.2-test.21-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.
- package/.claude/settings.local.json +14 -0
- package/CLAUDE.md +78 -0
- package/compose/build.gradle.kts +12 -8
- package/compose/build.gradle.kts.backup +15 -11
- package/compose/compose.podspec +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/AnimationSearchInput.kt +2 -7
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Context.kt +6 -10
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/FloatingButton.kt +6 -24
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Header.kt +4 -19
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderAnimated.kt +1 -10
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderBackground.kt +2 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderDefault.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderExtended.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderRight.kt +6 -17
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderTitle.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/LiteScreen.kt +6 -101
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Localize.kt +269 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/NavigationContainer.kt +5 -19
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Screen.kt +8 -33
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/useHeaderSearchAnimation.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Badge.kt +22 -25
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeRibbon.kt +27 -29
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BaselineView.kt +3 -26
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Button.kt +30 -31
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Carousel.kt +3 -13
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/CheckBox.kt +0 -5
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Chip.kt +3 -11
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Collapse.kt +3 -18
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/CupertinoOverscroll.kt +11 -11
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/IconButton.kt +3 -11
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Image.kt +69 -26
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Information.kt +1 -5
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Input.kt +84 -59
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputDropDown.kt +13 -71
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputMoney.kt +10 -51
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputOTP.kt +6 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputPhoneNumber.kt +4 -21
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputSearch.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputTextArea.kt +16 -75
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/LazyColumnWithBouncing.kt +5 -26
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationDot.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationScroll.kt +3 -11
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +16 -40
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupPromotion.kt +3 -9
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/ProgressInfo.kt +0 -28
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Radio.kt +2 -13
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/ScaleSizeScope.kt +17 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Skeleton.kt +4 -10
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Slider.kt +3 -28
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Stepper.kt +8 -47
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Steps.kt +4 -25
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/SuggestAction.kt +2 -11
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Swipe.kt +1 -17
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Switch.kt +1 -6
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/TabView.kt +50 -111
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tag.kt +1 -5
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +1 -5
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Title.kt +1 -12
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tooltip.kt +4 -96
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/TrustBanner.kt +5 -7
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Uploader.kt +2 -12
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePicker.kt +9 -21
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerTypes.kt +2 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerUtils.kt +9 -14
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/WheelPicker.kt +8 -11
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Theme.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +7 -27
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Item.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/AutomationId.kt +0 -5
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Clickable.kt +0 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/DeprecatedModifier.kt +94 -4
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Shadow.kt +0 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/BottomSheet.kt +2 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ModalScreen.kt +3 -7
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigation.kt +12 -16
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/NavigationContainer.kt +33 -27
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigator.kt +48 -33
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +91 -63
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTab.kt +9 -14
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTabBar.kt +13 -31
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/CurvedContainer.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/FloatingButton.kt +6 -24
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/Header.kt +11 -6
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderBackground.kt +2 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderRight.kt +9 -6
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderTitle.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderUser.kt +3 -13
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/SnackBar.kt +3 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/tracking/ScreenTracker.kt +1 -40
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/ComposeLottieAnimation.kt +0 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/Platform.kt +0 -8
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Resources.kt +2 -17
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Tracking.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Utils.kt +3 -3
- package/compose/src/iosMain/kotlin/vn/momo/kits/navigation/ScrollToTop.ios.kt +2 -3
- package/compose/src/iosMain/kotlin/vn/momo/kits/platform/Platform.ios.kt +0 -2
- package/gradle/libs.versions.toml +2 -0
- package/gradle.properties +1 -1
- package/ios/Application/Components.swift +1 -0
- package/ios/Application/FloatingButton.swift +1 -0
- package/ios/Badge/Badge.swift +1 -0
- package/ios/Badge/BadgeRibbon.swift +2 -0
- package/ios/Button/Button.swift +1 -1
- package/ios/Checkbox/Checkbox.swift +1 -0
- package/ios/Information/Information.swift +151 -0
- package/ios/Input/Input.swift +1 -0
- package/ios/Input/InputPhoneNumber.swift +1 -0
- package/ios/Input/InputSearch.swift +3 -0
- package/ios/Input/InputTextArea.swift +1 -0
- package/ios/OTPKeyboard/KeyboardButton.swift +1 -1
- package/ios/Popup/PopupDisplay.swift +6 -0
- package/ios/Popup/PopupInput.swift +2 -0
- package/ios/Template/TrustBanner/TrustBanner.swift +2 -0
- package/ios/Typography/Text.swift +1 -0
- package/ios/Typography/Typography.swift +14 -5
- package/local.properties +2 -2
- package/package.json +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/FontScaleStore.kt +0 -77
- package/example/ios/Example.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/Example.xcscheme +0 -32
- package/example/ios/Example.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/WorkspaceSettings.xcsettings +0 -16
- package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -6
- package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/xcschemes/xcschememanagement.plist +0 -5
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/MoMoUIKits.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/Pods-Example.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/SDWebImage.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/SDWebImageSwiftUI.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/SkeletonUI.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/lottie-ios-LottiePrivacyInfo.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/lottie-ios.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/xcschememanagement.plist +0 -60
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"WebSearch",
|
|
5
|
+
"Bash(./gradlew assembleDebug 2>&1)",
|
|
6
|
+
"Bash(./gradlew :sample:androidApp:installDebug 2>&1)",
|
|
7
|
+
"Bash(./gradlew :compose:compileCommonMainKotlinMetadata -q)",
|
|
8
|
+
"Bash(mkdir -p compose/src/commonMain/composeResources/files)",
|
|
9
|
+
"Bash(cp sample/shared/src/commonMain/composeResources/files/anim_processing_transaction.json sample/shared/src/commonMain/composeResources/files/dot_loading.json sample/shared/src/commonMain/composeResources/files/face_loading.json sample/shared/src/commonMain/composeResources/files/lottie_circle_loader.json compose/src/commonMain/composeResources/files/)",
|
|
10
|
+
"Bash(git rm *)",
|
|
11
|
+
"Bash(./gradlew :sample:androidApp:compileDebugKotlin -q)"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
Guidance for working in this repo. Keep it accurate — update it when structure or commands change.
|
|
4
|
+
|
|
5
|
+
## What this is
|
|
6
|
+
|
|
7
|
+
`momo-native-kits` — MoMo's design-system / UI-kit as a **Kotlin Multiplatform + Compose Multiplatform** library, published for Android (AAR/Maven) and iOS (static framework + CocoaPods). It is the Compose port of the React Native `momo-kits`. Consumed by mini-apps embedded in the host MoMo app.
|
|
8
|
+
|
|
9
|
+
- Artifact: `vn.momo.kits:kits` (version in `gradle.properties`). NPM mirror: `@momo-kits/native-kits`.
|
|
10
|
+
- Targets: `androidTarget` (JVM 17, compile/min/target SDK 36/24/36), `iosArm64`, `iosSimulatorArm64` (framework `baseName = "kits"`, `isStatic = true`).
|
|
11
|
+
- Kotlin 2.3.10, Compose MP 1.10.3.
|
|
12
|
+
|
|
13
|
+
## Modules
|
|
14
|
+
|
|
15
|
+
- `:compose` — the published library. All real code lives here.
|
|
16
|
+
- `:sample:shared` + `:sample:androidApp` — demo app (`UIKitHome` lists all components). iOS demo in `sample/iosApp` (Xcode).
|
|
17
|
+
|
|
18
|
+
## Source layout (`compose/src/commonMain/kotlin/vn/momo/kits/`)
|
|
19
|
+
|
|
20
|
+
- `components/` — ~50 UI components, **one file per component** (`Button.kt`, `Input*.kt`, `PopupNotify.kt`, …).
|
|
21
|
+
- `application/` — app-level context & config: `Context.kt` (CompositionLocals, `MiniAppContext`, `DesignSystemConfig`), `Localize.kt` (i18n: `LocalizationObject`, `Localize`, default dictionary), `Screen.kt`, header pieces. Also holds the **deprecated** `ApplicationContainer`.
|
|
22
|
+
- `navigation/` — `NavigationContainer.kt` (**canonical entry point**), `Navigator.kt`, `Navigation.kt`, `StackScreen.kt`, `bottomtab/`, `component/`, `tracking/`.
|
|
23
|
+
- `const/` — design tokens: `Theme.kt`, `Colors.kt`, `Typography.kt`, `Spacing.kt`, `Radius.kt`.
|
|
24
|
+
- `layout/`, `modifier/`, `utils/`.
|
|
25
|
+
- `platform/` — `Platform.kt` `expect` declarations, actualized in `androidMain` / `iosMain` (`Platform.android.kt`, `Platform.ios.kt`).
|
|
26
|
+
|
|
27
|
+
## Build & verify
|
|
28
|
+
|
|
29
|
+
No unit-test suite is configured. Validate changes by compiling the relevant target(s); use the sample app for visual checks.
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
./gradlew :compose:compileCommonMainKotlinMetadata # validate commonMain (fast, do this first)
|
|
33
|
+
./gradlew :compose:compileDebugKotlinAndroid # Android target
|
|
34
|
+
./gradlew :compose:linkDebugFrameworkIosSimulatorArm64 # iOS framework (slow)
|
|
35
|
+
./gradlew :sample:androidApp:installDebug # run demo on device/emulator
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Publishing is automated (`publish.sh` + GitLab CI on `[ci build]` / `main`). Do not publish manually unless asked: `sh publish.sh beta` / `sh publish.sh release` (Maven→GitLab + NPM).
|
|
39
|
+
|
|
40
|
+
## Architecture essentials
|
|
41
|
+
|
|
42
|
+
- **Entry point:** wrap content in `NavigationContainer(...)` from `navigation/`. It builds the `Navigator`, takes a host-supplied `Localize` (falls back to an empty one), and provides the CompositionLocals below. **Do not use** `ApplicationContainer` (`application/NavigationContainer.kt`) — deprecated and does **not** wire `LocalLocalize` / `LocalNavigator` / `LocalMaxApi`.
|
|
43
|
+
- **Configuration flows via CompositionLocals**, not params. Public ones: `AppTheme`, `AppStatusBar`, `AppNavigationBar` (`const/Theme.kt`); `ApplicationContext`, `AppConfig`, `AppLanguage`, `LocalLocalize`, `ScaleSizeMaxRate` (`application/`); `LocalNavigator`, `LocalMaxApi` (`navigation/`). Read with `X.current`.
|
|
44
|
+
- **Platform code** goes through `expect`/`actual` in `platform/` — never reference Android/iOS APIs from `commonMain` directly.
|
|
45
|
+
- **Native bridge:** `IMaxApi` (`vn.momo.maxapi`, exposed as `LocalMaxApi`) is the host-app bridge (dismiss, tracking, device info, language).
|
|
46
|
+
- Navigation uses a runtime `DynamicScreenRegistry`; overlays (modal/bottom-sheet/snackbar) go through `Navigator` + `OverplayComponentRegistry`.
|
|
47
|
+
|
|
48
|
+
## i18n / Localize (port of RN `Localize`)
|
|
49
|
+
|
|
50
|
+
- `application/Localize.kt`: everything i18n. `LocalizationObject` is a data class with required `vi` / `en` maps (`LocalizationObject(vi = mapOf(…), en = mapOf(…))`). `Localize` constructors take a `LocalizationObject` or a `(vi, en)` map pair; the constructor **merges** the kit defaults with the host data (host wins on key clash). Methods: `translate(key)` (missing/empty → returns the key), `translateData(map)` / `translateData(vi, en)`, `addTranslations` (existing keys win), `changeLanguage(lang)`. Default language `"vi"`, `"en"` only on exact match; language is snapshot state so a switch recomposes consumers.
|
|
51
|
+
- The default dictionary lives **inside `Localize`** (companion `defaultLanguage`), **generated 1:1 from `momo-kits` RN `Assets/language.json`** — do not hand-edit that block; edit the RN source and regenerate.
|
|
52
|
+
- The host creates one `Localize` and passes it in: `NavigationContainer(localize = myLocalize, …)`. There is **no** `language` param and `DesignSystemConfig` carries no translations — overrides go through the `Localize` constructor / `addTranslations`. Switch language at runtime with `myLocalize.changeLanguage("en")`.
|
|
53
|
+
- Access in a `@Composable`: `LocalLocalize.current.translate("errorCode")`. Language is host-controlled, never read from the OS locale. `AppLanguage` is still provided (derived from `Localize.currentLanguage`) for older components that read it.
|
|
54
|
+
- Some older components still do ad-hoc `AppLanguage.current` + `Map` lookups; new/changed code should use `LocalLocalize`.
|
|
55
|
+
|
|
56
|
+
## Code conventions
|
|
57
|
+
|
|
58
|
+
- **Tokens, not literals:** use `Colors`, `Typography`, `Spacing`, `Radius` objects and `AppTheme.current` for colors/styles. Per-component sizing is bundled in enums (e.g. `Button.Size(val value: ButtonSpecs)`).
|
|
59
|
+
- **Composable signatures:** required params first, slot lambdas next, `modifier: Modifier = Modifier` **last**; give optional params sensible defaults.
|
|
60
|
+
- **Stability:** annotate token/config data classes `@Stable`/`@Immutable`; memoize derived colors/styles/handlers with `remember(keys) { … }`.
|
|
61
|
+
- **Custom modifiers** are preferred: `conditional(...)`, `setAutomationId(...)`, the `clickable` variants in `modifier/`.
|
|
62
|
+
- Match the surrounding file's style when adding code.
|
|
63
|
+
|
|
64
|
+
## Writing docs in code (follow this)
|
|
65
|
+
|
|
66
|
+
Comments are **sparse and in English**. Document only what is **not obvious from the code** — non-obvious behavior, platform quirks, RN-parity semantics, memoization intent, or important gotchas worth flagging. Do **not**:
|
|
67
|
+
|
|
68
|
+
- write KDoc walls or restate what the signature/code already says;
|
|
69
|
+
- narrate obvious steps or add section-banner noise;
|
|
70
|
+
- use a language other than English in code comments.
|
|
71
|
+
|
|
72
|
+
Prefer one tight line at the surprising spot over a paragraph. Match the (low) comment density already in the codebase.
|
|
73
|
+
|
|
74
|
+
## Gotchas
|
|
75
|
+
|
|
76
|
+
- **Resource qualifier drift:** the generated Compose `Res` namespace is `vn.momo.uikits.resources`, but `utils/Resources.kt` and `platform/Platform.ios.kt` reference `vn.momo.compose.resources`. Keep bundled strings/dictionaries as plain Kotlin (the `defaultLanguage` map in `Localize.kt`), not `composeResources/values`, to avoid iOS framework resource-loading issues.
|
|
77
|
+
- Prefer `NavigationContainer` over the deprecated `ApplicationContainer`; prefer `IMaxApi`/`LocalMaxApi` over the deprecated `PlatformApi`.
|
|
78
|
+
- iOS strings/maps must survive Kotlin/Native framework packaging — keep them compiled-in, not loaded from resource bundles.
|
package/compose/build.gradle.kts
CHANGED
|
@@ -12,14 +12,14 @@ plugins {
|
|
|
12
12
|
kotlin("plugin.serialization")
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
val gitlabName: String
|
|
16
|
-
val gitlabRepo: String
|
|
17
|
-
val gitlabUrl: String
|
|
18
|
-
val gitlabGroup: String
|
|
15
|
+
val gitlabName: String = findProperty("name") as String? ?: ""
|
|
16
|
+
val gitlabRepo: String = findProperty("repo") as String? ?: ""
|
|
17
|
+
val gitlabUrl: String = findProperty("url") as String? ?: ""
|
|
18
|
+
val gitlabGroup: String = findProperty("group") as String? ?: ""
|
|
19
19
|
val gitlabArtifactId: String = findProperty("artifact.id") as String? ?: ""
|
|
20
|
-
val gitlabVersion: String
|
|
21
|
-
val gitlabUser: String
|
|
22
|
-
val gitlabKey: String
|
|
20
|
+
val gitlabVersion: String = findProperty("version") as String? ?: ""
|
|
21
|
+
val gitlabUser: String = findProperty("gitlab.user") as String? ?: ""
|
|
22
|
+
val gitlabKey: String = findProperty("gitlab.password") as String? ?: ""
|
|
23
23
|
|
|
24
24
|
kotlin {
|
|
25
25
|
androidTarget {
|
|
@@ -40,7 +40,7 @@ kotlin {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
cocoapods {
|
|
43
|
-
version = "0.
|
|
43
|
+
version = "0.162.2-test.21-debug"
|
|
44
44
|
summary = "IOS Shared module"
|
|
45
45
|
homepage = "https://momo.vn"
|
|
46
46
|
ios.deploymentTarget = "15.0"
|
|
@@ -58,6 +58,9 @@ kotlin {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
sourceSets {
|
|
61
|
+
all {
|
|
62
|
+
languageSettings.optIn("vn.momo.kits.modifier.InternalApi")
|
|
63
|
+
}
|
|
61
64
|
commonMain.dependencies {
|
|
62
65
|
implementation(compose.runtime)
|
|
63
66
|
implementation(compose.material)
|
|
@@ -74,6 +77,7 @@ kotlin {
|
|
|
74
77
|
implementation(libs.kotlinx.datetime)
|
|
75
78
|
api(libs.native.max.api)
|
|
76
79
|
implementation(libs.compottie)
|
|
80
|
+
implementation(libs.gif.image)
|
|
77
81
|
}
|
|
78
82
|
androidMain.dependencies {
|
|
79
83
|
implementation(libs.ktor.client.okhttp)
|
|
@@ -12,14 +12,14 @@ plugins {
|
|
|
12
12
|
kotlin("plugin.serialization")
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
val gitlabName: String
|
|
16
|
-
val gitlabRepo: String
|
|
17
|
-
val gitlabUrl: String
|
|
18
|
-
val gitlabGroup: String
|
|
15
|
+
val gitlabName: String = findProperty("name") as String? ?: ""
|
|
16
|
+
val gitlabRepo: String = findProperty("repo") as String? ?: ""
|
|
17
|
+
val gitlabUrl: String = findProperty("url") as String? ?: ""
|
|
18
|
+
val gitlabGroup: String = findProperty("group") as String? ?: ""
|
|
19
19
|
val gitlabArtifactId: String = findProperty("artifact.id") as String? ?: ""
|
|
20
|
-
val gitlabVersion: String
|
|
21
|
-
val gitlabUser: String
|
|
22
|
-
val gitlabKey: String
|
|
20
|
+
val gitlabVersion: String = findProperty("version") as String? ?: ""
|
|
21
|
+
val gitlabUser: String = findProperty("gitlab.user") as String? ?: ""
|
|
22
|
+
val gitlabKey: String = findProperty("gitlab.password") as String? ?: ""
|
|
23
23
|
|
|
24
24
|
kotlin {
|
|
25
25
|
androidTarget {
|
|
@@ -40,7 +40,7 @@ kotlin {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
cocoapods {
|
|
43
|
-
version =
|
|
43
|
+
version = gitlabVersion
|
|
44
44
|
summary = "IOS Shared module"
|
|
45
45
|
homepage = "https://momo.vn"
|
|
46
46
|
ios.deploymentTarget = "15.0"
|
|
@@ -58,6 +58,9 @@ kotlin {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
sourceSets {
|
|
61
|
+
all {
|
|
62
|
+
languageSettings.optIn("vn.momo.kits.modifier.InternalApi")
|
|
63
|
+
}
|
|
61
64
|
commonMain.dependencies {
|
|
62
65
|
implementation(compose.runtime)
|
|
63
66
|
implementation(compose.material)
|
|
@@ -74,6 +77,7 @@ kotlin {
|
|
|
74
77
|
implementation(libs.kotlinx.datetime)
|
|
75
78
|
api(libs.native.max.api)
|
|
76
79
|
implementation(libs.compottie)
|
|
80
|
+
implementation(libs.gif.image)
|
|
77
81
|
}
|
|
78
82
|
androidMain.dependencies {
|
|
79
83
|
implementation(libs.ktor.client.okhttp)
|
|
@@ -86,14 +90,14 @@ kotlin {
|
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
android {
|
|
89
|
-
namespace = "
|
|
90
|
-
compileSdk =
|
|
93
|
+
namespace = "$gitlabGroup.$gitlabArtifactId"
|
|
94
|
+
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
91
95
|
compileOptions {
|
|
92
96
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
93
97
|
targetCompatibility = JavaVersion.VERSION_17
|
|
94
98
|
}
|
|
95
99
|
defaultConfig {
|
|
96
|
-
minSdk =
|
|
100
|
+
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
97
101
|
}
|
|
98
102
|
}
|
|
99
103
|
|
package/compose/compose.podspec
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
package vn.momo.kits.application
|
|
2
2
|
|
|
3
3
|
import androidx.compose.foundation.background
|
|
4
|
-
import androidx.compose.foundation.layout
|
|
5
|
-
import androidx.compose.foundation.layout.fillMaxWidth
|
|
6
|
-
import androidx.compose.foundation.layout.height
|
|
7
|
-
import androidx.compose.foundation.layout.offset
|
|
8
|
-
import androidx.compose.foundation.layout.padding
|
|
9
|
-
import androidx.compose.foundation.layout.width
|
|
4
|
+
import androidx.compose.foundation.layout.*
|
|
10
5
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
11
6
|
import androidx.compose.runtime.Composable
|
|
12
7
|
import androidx.compose.ui.Modifier
|
|
@@ -19,7 +14,7 @@ import vn.momo.kits.const.Radius
|
|
|
19
14
|
import vn.momo.kits.const.Spacing
|
|
20
15
|
|
|
21
16
|
@Composable
|
|
22
|
-
fun AnimationSearchInput(
|
|
17
|
+
internal fun AnimationSearchInput(
|
|
23
18
|
animations: HeaderAnimations,
|
|
24
19
|
inputSearchProps: InputSearchProps
|
|
25
20
|
) {
|
|
@@ -10,7 +10,7 @@ data class FeatureFlags(
|
|
|
10
10
|
)
|
|
11
11
|
|
|
12
12
|
@Immutable
|
|
13
|
-
data class
|
|
13
|
+
data class DesignSystemConfig(
|
|
14
14
|
val trustBanner: TrustBannerData? = null,
|
|
15
15
|
val headerBar: String? = null,
|
|
16
16
|
val headerGradient: String? = null,
|
|
@@ -28,6 +28,7 @@ data class MiniAppContext(
|
|
|
28
28
|
val providerId: String = "",
|
|
29
29
|
val permissions: List<Map<String, Any>>? = emptyList(),
|
|
30
30
|
val features: FeatureFlags? = null,
|
|
31
|
+
val scaleSizeMaxRate: Float? = null,
|
|
31
32
|
) {
|
|
32
33
|
companion object {
|
|
33
34
|
|
|
@@ -59,6 +60,7 @@ data class MiniAppContext(
|
|
|
59
60
|
providerId = parent.providerId.ifBlank { child.providerId },
|
|
60
61
|
permissions = if (!parent.permissions.isNullOrEmpty()) parent.permissions else child.permissions,
|
|
61
62
|
features = mergeFeatureFlags(parent.features, child.features),
|
|
63
|
+
scaleSizeMaxRate = parent.scaleSizeMaxRate ?: child.scaleSizeMaxRate,
|
|
62
64
|
)
|
|
63
65
|
}
|
|
64
66
|
|
|
@@ -88,18 +90,12 @@ data class ComponentInformation(
|
|
|
88
90
|
|
|
89
91
|
var IsShowBaseLineDebug = false
|
|
90
92
|
|
|
91
|
-
val
|
|
93
|
+
val LocalContext = staticCompositionLocalOf<MiniAppContext?> {
|
|
92
94
|
null
|
|
93
95
|
}
|
|
94
96
|
|
|
95
|
-
val
|
|
96
|
-
null
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
val AppLanguage = staticCompositionLocalOf<String?> {
|
|
97
|
+
val LocalComponentInformation = staticCompositionLocalOf<ComponentInformation?> {
|
|
100
98
|
null
|
|
101
99
|
}
|
|
102
100
|
|
|
103
|
-
val
|
|
104
|
-
null
|
|
105
|
-
}
|
|
101
|
+
val ScaleSizeMaxRate = staticCompositionLocalOf<Float?> { null }
|
|
@@ -1,37 +1,18 @@
|
|
|
1
1
|
package vn.momo.kits.application
|
|
2
2
|
|
|
3
|
-
import androidx.compose.animation
|
|
3
|
+
import androidx.compose.animation.*
|
|
4
4
|
import androidx.compose.animation.core.CubicBezierEasing
|
|
5
5
|
import androidx.compose.animation.core.animateDpAsState
|
|
6
6
|
import androidx.compose.animation.core.tween
|
|
7
|
-
import androidx.compose.animation.expandHorizontally
|
|
8
|
-
import androidx.compose.animation.fadeIn
|
|
9
|
-
import androidx.compose.animation.fadeOut
|
|
10
|
-
import androidx.compose.animation.shrinkHorizontally
|
|
11
7
|
import androidx.compose.foundation.ScrollState
|
|
12
8
|
import androidx.compose.foundation.background
|
|
13
9
|
import androidx.compose.foundation.interaction.MutableInteractionSource
|
|
14
|
-
import androidx.compose.foundation.layout
|
|
15
|
-
import androidx.compose.foundation.layout.Box
|
|
16
|
-
import androidx.compose.foundation.layout.Row
|
|
17
|
-
import androidx.compose.foundation.layout.Spacer
|
|
18
|
-
import androidx.compose.foundation.layout.fillMaxSize
|
|
19
|
-
import androidx.compose.foundation.layout.height
|
|
20
|
-
import androidx.compose.foundation.layout.offset
|
|
21
|
-
import androidx.compose.foundation.layout.padding
|
|
22
|
-
import androidx.compose.foundation.layout.sizeIn
|
|
23
|
-
import androidx.compose.foundation.layout.width
|
|
10
|
+
import androidx.compose.foundation.layout.*
|
|
24
11
|
import androidx.compose.material3.AlertDialogDefaults.shape
|
|
25
12
|
import androidx.compose.material3.FloatingActionButton
|
|
26
13
|
import androidx.compose.material3.FloatingActionButtonDefaults
|
|
27
|
-
import androidx.compose.runtime
|
|
28
|
-
import androidx.compose.runtime.LaunchedEffect
|
|
29
|
-
import androidx.compose.runtime.getValue
|
|
30
|
-
import androidx.compose.runtime.mutableStateOf
|
|
31
|
-
import androidx.compose.runtime.remember
|
|
32
|
-
import androidx.compose.runtime.rememberCoroutineScope
|
|
14
|
+
import androidx.compose.runtime.*
|
|
33
15
|
import androidx.compose.runtime.saveable.rememberSaveable
|
|
34
|
-
import androidx.compose.runtime.setValue
|
|
35
16
|
import androidx.compose.ui.Alignment
|
|
36
17
|
import androidx.compose.ui.Modifier
|
|
37
18
|
import androidx.compose.ui.graphics.Color
|
|
@@ -45,6 +26,7 @@ import kotlinx.coroutines.launch
|
|
|
45
26
|
import vn.momo.kits.components.Icon
|
|
46
27
|
import vn.momo.kits.components.Text
|
|
47
28
|
import vn.momo.kits.const.Typography
|
|
29
|
+
import kotlin.time.Duration.Companion.milliseconds
|
|
48
30
|
|
|
49
31
|
enum class FABSize {
|
|
50
32
|
SMALL,
|
|
@@ -69,7 +51,7 @@ data class FabProps(
|
|
|
69
51
|
|
|
70
52
|
@Deprecated("Use vn.momo.kits.navigation.FloatingButton instead", ReplaceWith("vn.momo.kits.navigation.FloatingButton"))
|
|
71
53
|
@Composable
|
|
72
|
-
fun FloatingButton(
|
|
54
|
+
internal fun FloatingButton(
|
|
73
55
|
scrollPosition: Int,
|
|
74
56
|
bottom: Dp,
|
|
75
57
|
onClick: () -> Unit,
|
|
@@ -112,7 +94,7 @@ fun FloatingButton(
|
|
|
112
94
|
scrollPositionStateFlow
|
|
113
95
|
.collectLatest { debouncedScrollPosition ->
|
|
114
96
|
isExpanded = debouncedScrollPosition > lastScrollPosition
|
|
115
|
-
delay(300)
|
|
97
|
+
delay(300.milliseconds)
|
|
116
98
|
lastScrollPosition = debouncedScrollPosition
|
|
117
99
|
|
|
118
100
|
}
|
|
@@ -4,24 +4,9 @@ import androidx.compose.animation.core.animateFloatAsState
|
|
|
4
4
|
import androidx.compose.foundation.background
|
|
5
5
|
import androidx.compose.foundation.border
|
|
6
6
|
import androidx.compose.foundation.clickable
|
|
7
|
-
import androidx.compose.foundation.layout
|
|
8
|
-
import androidx.compose.foundation.layout.Box
|
|
9
|
-
import androidx.compose.foundation.layout.BoxWithConstraints
|
|
10
|
-
import androidx.compose.foundation.layout.Row
|
|
11
|
-
import androidx.compose.foundation.layout.Spacer
|
|
12
|
-
import androidx.compose.foundation.layout.fillMaxWidth
|
|
13
|
-
import androidx.compose.foundation.layout.height
|
|
14
|
-
import androidx.compose.foundation.layout.padding
|
|
15
|
-
import androidx.compose.foundation.layout.size
|
|
16
|
-
import androidx.compose.foundation.layout.width
|
|
7
|
+
import androidx.compose.foundation.layout.*
|
|
17
8
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
18
|
-
import androidx.compose.runtime
|
|
19
|
-
import androidx.compose.runtime.LaunchedEffect
|
|
20
|
-
import androidx.compose.runtime.getValue
|
|
21
|
-
import androidx.compose.runtime.mutableStateOf
|
|
22
|
-
import androidx.compose.runtime.remember
|
|
23
|
-
import androidx.compose.runtime.setValue
|
|
24
|
-
import androidx.compose.runtime.snapshotFlow
|
|
9
|
+
import androidx.compose.runtime.*
|
|
25
10
|
import androidx.compose.ui.Alignment
|
|
26
11
|
import androidx.compose.ui.Modifier
|
|
27
12
|
import androidx.compose.ui.graphics.Color
|
|
@@ -74,7 +59,7 @@ fun getHeaderColor(animatedHeader: AnimatedHeader?, opacity: Float, tintColor: C
|
|
|
74
59
|
|
|
75
60
|
@Deprecated("Use vn.momo.kits.navigation.component.Header instead", ReplaceWith("vn.momo.kits.navigation.component.Header"))
|
|
76
61
|
@Composable
|
|
77
|
-
fun Header(
|
|
62
|
+
internal fun Header(
|
|
78
63
|
headerType: HeaderType = HeaderType.DEFAULT,
|
|
79
64
|
titlePosition: TitlePosition,
|
|
80
65
|
title: String,
|
|
@@ -214,7 +199,7 @@ fun Header(
|
|
|
214
199
|
if (searchAnimationEnable) {
|
|
215
200
|
AnimationSearchInput(
|
|
216
201
|
animations = animations,
|
|
217
|
-
inputSearchProps = inputSearchProps
|
|
202
|
+
inputSearchProps = inputSearchProps
|
|
218
203
|
)
|
|
219
204
|
}
|
|
220
205
|
}
|
|
@@ -13,7 +13,7 @@ import vn.momo.kits.components.Image
|
|
|
13
13
|
|
|
14
14
|
@Deprecated("Use vn.momo.kits.navigation.component.Header instead", ReplaceWith("vn.momo.kits.navigation.component.Header"))
|
|
15
15
|
@Composable
|
|
16
|
-
fun HeaderAnimated(image: String, scrollState: Int = 0) {
|
|
16
|
+
internal fun HeaderAnimated(image: String, scrollState: Int = 0) {
|
|
17
17
|
// Scale animation
|
|
18
18
|
val scale by animateFloatAsState(
|
|
19
19
|
targetValue = when {
|
|
@@ -23,15 +23,6 @@ fun HeaderAnimated(image: String, scrollState: Int = 0) {
|
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
|
|
26
|
-
// Opacity animation
|
|
27
|
-
val opacity by animateFloatAsState(
|
|
28
|
-
targetValue = when {
|
|
29
|
-
scrollState.toFloat() in 0f..150f -> 1f - (scrollState / 300f)
|
|
30
|
-
scrollState.toFloat() in 150f..300f -> 0.5f - ((scrollState - 150f) / 300f)
|
|
31
|
-
else -> 1f
|
|
32
|
-
}
|
|
33
|
-
)
|
|
34
|
-
|
|
35
26
|
// Translation Y animation
|
|
36
27
|
|
|
37
28
|
Box(modifier = Modifier.fillMaxWidth().height(200.dp)
|
|
@@ -27,7 +27,7 @@ data class AnimatedHeader(
|
|
|
27
27
|
val composable: @Composable (scrollState: Int) -> Unit = {}
|
|
28
28
|
)
|
|
29
29
|
|
|
30
|
-
fun animateColor(start: Color, stop: Color, fraction: Float): Color {
|
|
30
|
+
internal fun animateColor(start: Color, stop: Color, fraction: Float): Color {
|
|
31
31
|
return Color(
|
|
32
32
|
red = start.red + fraction * (stop.red - start.red),
|
|
33
33
|
green = start.green + fraction * (stop.green - start.green),
|
|
@@ -38,7 +38,7 @@ fun animateColor(start: Color, stop: Color, fraction: Float): Color {
|
|
|
38
38
|
|
|
39
39
|
@Deprecated("Use vn.momo.kits.navigation.component.HeaderBackground instead", ReplaceWith("vn.momo.kits.navigation.component.HeaderBackground"))
|
|
40
40
|
@Composable
|
|
41
|
-
fun HeaderBackground(
|
|
41
|
+
internal fun HeaderBackground(
|
|
42
42
|
headerType: HeaderType = HeaderType.DEFAULT,
|
|
43
43
|
scrollState: Int,
|
|
44
44
|
headerTransparent: Boolean = false,
|
|
@@ -21,7 +21,7 @@ import vn.momo.kits.utils.bottomBorder
|
|
|
21
21
|
|
|
22
22
|
@Deprecated("Use vn.momo.kits.navigation.component.Header instead", ReplaceWith("vn.momo.kits.navigation.component.Header"))
|
|
23
23
|
@Composable
|
|
24
|
-
fun HeaderDefault(
|
|
24
|
+
internal fun HeaderDefault(
|
|
25
25
|
opacityAni: Float,
|
|
26
26
|
statusBarHeight: Dp,
|
|
27
27
|
backgroundColor: Color?,
|
|
@@ -21,7 +21,7 @@ import vn.momo.kits.utils.bottomBorder
|
|
|
21
21
|
|
|
22
22
|
@Deprecated("Use vn.momo.kits.navigation.component.Header instead", ReplaceWith("vn.momo.kits.navigation.component.Header"))
|
|
23
23
|
@Composable
|
|
24
|
-
fun HeaderExtended(
|
|
24
|
+
internal fun HeaderExtended(
|
|
25
25
|
opacityAni: Float,
|
|
26
26
|
statusBarHeight: Dp,
|
|
27
27
|
backgroundColor: Color
|
|
@@ -3,22 +3,10 @@ package vn.momo.kits.application
|
|
|
3
3
|
import androidx.compose.foundation.background
|
|
4
4
|
import androidx.compose.foundation.border
|
|
5
5
|
import androidx.compose.foundation.clickable
|
|
6
|
-
import androidx.compose.foundation.layout
|
|
7
|
-
import androidx.compose.foundation.layout.Box
|
|
8
|
-
import androidx.compose.foundation.layout.Row
|
|
9
|
-
import androidx.compose.foundation.layout.height
|
|
10
|
-
import androidx.compose.foundation.layout.offset
|
|
11
|
-
import androidx.compose.foundation.layout.padding
|
|
12
|
-
import androidx.compose.foundation.layout.size
|
|
13
|
-
import androidx.compose.foundation.layout.width
|
|
6
|
+
import androidx.compose.foundation.layout.*
|
|
14
7
|
import androidx.compose.foundation.shape.CircleShape
|
|
15
8
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
16
|
-
import androidx.compose.runtime
|
|
17
|
-
import androidx.compose.runtime.Stable
|
|
18
|
-
import androidx.compose.runtime.getValue
|
|
19
|
-
import androidx.compose.runtime.mutableStateOf
|
|
20
|
-
import androidx.compose.runtime.remember
|
|
21
|
-
import androidx.compose.runtime.setValue
|
|
9
|
+
import androidx.compose.runtime.*
|
|
22
10
|
import androidx.compose.ui.Alignment
|
|
23
11
|
import androidx.compose.ui.Modifier
|
|
24
12
|
import androidx.compose.ui.draw.clip
|
|
@@ -108,7 +96,7 @@ private fun getNavigationButtonConfig(
|
|
|
108
96
|
icon = "navigation_more_icon"
|
|
109
97
|
onClickHandler = onPressMore
|
|
110
98
|
} else if (totalTools == 1 && !headerRight?.tools.isNullOrEmpty()) {
|
|
111
|
-
val singleTool = headerRight
|
|
99
|
+
val singleTool = headerRight.tools.first().items.firstOrNull()
|
|
112
100
|
if (singleTool != null) {
|
|
113
101
|
icon = singleTool.icon
|
|
114
102
|
onClickHandler = {
|
|
@@ -129,7 +117,7 @@ private fun ToolkitHeaderRight(
|
|
|
129
117
|
var isFavorite by remember { mutableStateOf(false) }
|
|
130
118
|
val isLoading by remember { mutableStateOf(false) }
|
|
131
119
|
val api = PlatformApi.current as? ComposeApi
|
|
132
|
-
val context =
|
|
120
|
+
val context = LocalContext.current
|
|
133
121
|
|
|
134
122
|
fun onPressShortcut() {
|
|
135
123
|
api?.request("onToolAction", mapOf("item" to mapOf("key" to "onFavorite"))) {
|
|
@@ -151,7 +139,7 @@ private fun ToolkitHeaderRight(
|
|
|
151
139
|
}
|
|
152
140
|
|
|
153
141
|
fun onPressClose() {
|
|
154
|
-
api?.request("dismissAll", ""
|
|
142
|
+
api?.request("dismissAll", "")
|
|
155
143
|
}
|
|
156
144
|
|
|
157
145
|
fun onPressMore() {
|
|
@@ -274,6 +262,7 @@ fun NavigationButton(
|
|
|
274
262
|
modifier = Modifier
|
|
275
263
|
.size(28.dp)
|
|
276
264
|
.clickable(enabled = !disabled, onClick = onClick)
|
|
265
|
+
|
|
277
266
|
) {
|
|
278
267
|
Box(
|
|
279
268
|
modifier = Modifier
|
|
@@ -12,7 +12,7 @@ import vn.momo.kits.const.Typography
|
|
|
12
12
|
|
|
13
13
|
@Deprecated("Use vn.momo.kits.navigation.component instead", ReplaceWith("vn.momo.kits.navigation.component"))
|
|
14
14
|
@Composable
|
|
15
|
-
fun HeaderTitle(
|
|
15
|
+
internal fun HeaderTitle(
|
|
16
16
|
title: String = "",
|
|
17
17
|
modifier: Modifier = Modifier,
|
|
18
18
|
textAlign: TextAlign = TextAlign.Start,
|