@momo-kits/native-kits 0.162.2-sp.1-debug → 0.162.2-sp.10-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 +15 -1
- package/CLAUDE.md +78 -0
- package/compose/build.gradle.kts +12 -8
- package/compose/build.gradle.kts.backup +11 -7
- package/compose/compose.podspec +1 -1
- package/compose/src/androidMain/kotlin/vn/momo/kits/platform/OsFontScale.android.kt +7 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/AnimationSearchInput.kt +2 -7
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Context.kt +8 -11
- 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 +5 -16
- 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 +8 -19
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Screen.kt +8 -33
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/WidgetContainer.kt +56 -0
- 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 +42 -65
- 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 +4 -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/KitFontScale.kt +22 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Theme.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +11 -20
- 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 +120 -93
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigator.kt +48 -33
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +88 -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/OsFontScale.kt +9 -0
- 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/OsFontScale.ios.kt +66 -0
- 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/ApplicationEnvironment.swift +15 -2
- package/ios/Application/Components.swift +16 -0
- package/ios/Application/HeaderRight.swift +79 -45
- package/ios/Application/Localize.swift +277 -0
- package/ios/Application/MaxApi.swift +18 -0
- package/ios/Application/Navigation/BottomTab/BottomTab.swift +3 -1
- package/ios/Application/Navigation/NavigationContainer.swift +53 -4
- package/ios/Application/Navigation/Navigator.swift +54 -29
- package/ios/Application/Navigation/Overplay/BottomSheet.swift +98 -18
- package/ios/Application/Navigation/Overplay/ModalScreen.swift +6 -0
- package/ios/Application/Navigation/Tracking/ScreenTracker.swift +117 -0
- package/ios/Application/Screen.swift +2 -1
- package/ios/Application/StackScreen.swift +55 -3
- package/ios/Badge/BadgeRibbon.swift +80 -0
- package/ios/Button/Button.swift +67 -11
- package/ios/Carousel/Carousel.swift +16 -1
- package/ios/Checkbox/Checkbox.swift +14 -20
- package/ios/Chip/Chip.swift +35 -26
- package/ios/Collapse/Collapse.swift +11 -1
- package/ios/Colors+Radius+Spacing/Colors.swift +20 -17
- package/ios/Colors+Radius+Spacing/Spacing.swift +3 -1
- package/ios/Colors+Radius+Spacing/Theme.swift +15 -15
- package/ios/DateTimePicker/DateTimePicker.swift +4 -2
- package/ios/DateTimePicker/WheelPicker.swift +7 -3
- package/ios/Extensions/ActiveOpacityButtonStyle.swift +14 -0
- package/ios/Extensions/Color++.swift +32 -0
- package/ios/Icon/Icon.swift +5 -1
- package/ios/IconButton/IconButton.swift +35 -7
- package/ios/Image/Image.swift +16 -3
- package/ios/Information/Information.swift +3 -1
- package/ios/Input/ErrorView.swift +3 -1
- package/ios/Input/Input.swift +31 -8
- package/ios/Input/InputPhoneNumber.swift +14 -3
- package/ios/Input/InputSearch.swift +7 -1
- package/ios/Input/InputTextArea.swift +78 -34
- package/ios/InputDropDown/InputDropDown.swift +4 -1
- package/ios/InputMoney/InputMoney.swift +16 -4
- package/ios/Popup/PopupDisplay.swift +3 -4
- package/ios/Popup/PopupNotify.swift +3 -4
- package/ios/ProgressInfo/ProgressInfo.swift +4 -2
- package/ios/Radio/Radio.swift +12 -13
- package/ios/Rating/Rating.swift +1 -1
- package/ios/Resources/MoMoUIKitsColors.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Background.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Border.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Card.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Contents.json +6 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Error.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Primary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/PrimaryDark.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/PrimaryLight.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Secondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Success.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Text.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/TextSecondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/Contents.json +9 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-default.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-disable.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-pressed.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-selected.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-surface.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-tonal.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-default.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-disable.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/gradient.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/primary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/secondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-container.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-primary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-secondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-default.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-disable.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-hint.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-secondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Warning.colorset/Contents.json +38 -0
- package/ios/Stepper/Stepper.swift +2 -2
- package/ios/Steps/Steps.swift +22 -6
- package/ios/SuggestAction/SuggestAction.swift +5 -3
- package/ios/Swipeable/SwipeCell.swift +5 -3
- package/ios/Switch/Switch.swift +53 -28
- package/ios/TabView/TabView.swift +18 -14
- package/ios/Template/TrustBanner/TrustBanner.swift +6 -7
- package/ios/Tooltip/Tooltip.swift +3 -0
- package/ios/Typography/FontScaleStore.swift +19 -0
- package/ios/Typography/Text.swift +3 -0
- package/ios/Typography/Typography.swift +8 -5
- package/ios/Uploader/Uploader.swift +0 -9
- package/ios/native-kits.podspec +6 -3
- package/ios-demo/MoMoUIKitsDemo.podspec +5 -3
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoFactory.swift +9 -57
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/Home.swift +21 -3
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LocalizeDemo.swift +188 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift +2 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SwiftUIDemoBrowserView.swift +5 -4
- package/package.json +1 -1
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-tonal.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xFD",
|
|
8
|
+
"green": "0xEA",
|
|
9
|
+
"blue": "0xF4",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0xFE",
|
|
20
|
+
"green": "0xF4",
|
|
21
|
+
"blue": "0xFA",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-default.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xE8",
|
|
8
|
+
"green": "0xE8",
|
|
9
|
+
"blue": "0xE8",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0x2A",
|
|
20
|
+
"green": "0x2A",
|
|
21
|
+
"blue": "0x2A",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-disable.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xF9",
|
|
8
|
+
"green": "0xF9",
|
|
9
|
+
"blue": "0xF9",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0x24",
|
|
20
|
+
"green": "0x24",
|
|
21
|
+
"blue": "0x24",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xFD",
|
|
8
|
+
"green": "0xCA",
|
|
9
|
+
"blue": "0xDE",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0xFD",
|
|
20
|
+
"green": "0xCA",
|
|
21
|
+
"blue": "0xDE",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xEB",
|
|
8
|
+
"green": "0x2F",
|
|
9
|
+
"blue": "0x96",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0xED",
|
|
20
|
+
"green": "0x43",
|
|
21
|
+
"blue": "0xA0",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xF7",
|
|
8
|
+
"green": "0xAC",
|
|
9
|
+
"blue": "0xD5",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0xFB",
|
|
20
|
+
"green": "0xD5",
|
|
21
|
+
"blue": "0xEA",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-container.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xD6",
|
|
8
|
+
"green": "0xF4",
|
|
9
|
+
"blue": "0xDE",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0xD6",
|
|
20
|
+
"green": "0xF4",
|
|
21
|
+
"blue": "0xDE",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-primary.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0x34",
|
|
8
|
+
"green": "0xC7",
|
|
9
|
+
"blue": "0x59",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0x34",
|
|
20
|
+
"green": "0xC7",
|
|
21
|
+
"blue": "0x59",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-secondary.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xAE",
|
|
8
|
+
"green": "0xE9",
|
|
9
|
+
"blue": "0xBD",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0xAE",
|
|
20
|
+
"green": "0xE9",
|
|
21
|
+
"blue": "0xBD",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-default.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0x30",
|
|
8
|
+
"green": "0x32",
|
|
9
|
+
"blue": "0x33",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0xFF",
|
|
20
|
+
"green": "0xFF",
|
|
21
|
+
"blue": "0xFF",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-disable.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0xC6",
|
|
8
|
+
"green": "0xC6",
|
|
9
|
+
"blue": "0xC6",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0x50",
|
|
20
|
+
"green": "0x50",
|
|
21
|
+
"blue": "0x50",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0x72",
|
|
8
|
+
"green": "0x72",
|
|
9
|
+
"blue": "0x72",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0x72",
|
|
20
|
+
"green": "0x72",
|
|
21
|
+
"blue": "0x72",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-secondary.colorset/Contents.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": [
|
|
3
|
+
{
|
|
4
|
+
"color": {
|
|
5
|
+
"color-space": "srgb",
|
|
6
|
+
"components": {
|
|
7
|
+
"red": "0x48",
|
|
8
|
+
"green": "0x48",
|
|
9
|
+
"blue": "0x48",
|
|
10
|
+
"alpha": "1.000"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom": "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"color": {
|
|
17
|
+
"color-space": "srgb",
|
|
18
|
+
"components": {
|
|
19
|
+
"red": "0xB0",
|
|
20
|
+
"green": "0xB0",
|
|
21
|
+
"blue": "0xB0",
|
|
22
|
+
"alpha": "1.000"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"idiom": "universal",
|
|
26
|
+
"appearances": [
|
|
27
|
+
{
|
|
28
|
+
"appearance": "luminosity",
|
|
29
|
+
"value": "dark"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info": {
|
|
35
|
+
"author": "xcode",
|
|
36
|
+
"version": 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors" : [
|
|
3
|
+
{
|
|
4
|
+
"color" : {
|
|
5
|
+
"color-space" : "srgb",
|
|
6
|
+
"components" : {
|
|
7
|
+
"alpha" : "1.000",
|
|
8
|
+
"blue" : "0.086",
|
|
9
|
+
"green" : "0.549",
|
|
10
|
+
"red" : "0.980"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"idiom" : "universal"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"appearances" : [
|
|
17
|
+
{
|
|
18
|
+
"appearance" : "luminosity",
|
|
19
|
+
"value" : "dark"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"color" : {
|
|
23
|
+
"color-space" : "srgb",
|
|
24
|
+
"components" : {
|
|
25
|
+
"alpha" : "1.000",
|
|
26
|
+
"blue" : "0.086",
|
|
27
|
+
"green" : "0.549",
|
|
28
|
+
"red" : "0.980"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"idiom" : "universal"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"info" : {
|
|
35
|
+
"author" : "xcode",
|
|
36
|
+
"version" : 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -70,14 +70,14 @@ private struct StepperButton: View {
|
|
|
70
70
|
let iconColor: Color = disabled ? theme.colors.text.disable : theme.colors.primary
|
|
71
71
|
let iconName = sign == "-" ? "24_navigation_minus_circle" : "24_navigation_plus_circle"
|
|
72
72
|
|
|
73
|
-
SwiftUI.Button(action:
|
|
73
|
+
SwiftUI.Button(action: onPress) {
|
|
74
74
|
ZStack {
|
|
75
75
|
Circle().fill(theme.colors.background.disable)
|
|
76
76
|
Icon(source: iconName, size: specs.iconSize, color: iconColor)
|
|
77
77
|
}
|
|
78
78
|
.frame(width: specs.buttonSize, height: specs.buttonSize)
|
|
79
79
|
}
|
|
80
|
-
.buttonStyle(
|
|
80
|
+
.buttonStyle(ActiveOpacityButtonStyle())
|
|
81
81
|
.disabled(disabled)
|
|
82
82
|
}
|
|
83
83
|
}
|
package/ios/Steps/Steps.swift
CHANGED
|
@@ -201,7 +201,7 @@ private struct StepsHorizontal: View {
|
|
|
201
201
|
|
|
202
202
|
let clickable = status == .completed && onPress != nil && !disabled
|
|
203
203
|
|
|
204
|
-
VStack(alignment: colAlignment, spacing: 0) {
|
|
204
|
+
let columnBody = VStack(alignment: colAlignment, spacing: 0) {
|
|
205
205
|
if let time = item.time, !time.isEmpty {
|
|
206
206
|
MomoText(time, typography: .descriptionXsRegular, color: subColor)
|
|
207
207
|
.multilineTextAlignment(textAlignment)
|
|
@@ -250,8 +250,16 @@ private struct StepsHorizontal: View {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
.contentShape(Rectangle())
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
|
|
254
|
+
if clickable {
|
|
255
|
+
// Mirrors Compose's `activeOpacityClickable` press feedback; non-clickable
|
|
256
|
+
// steps render with no press interaction at all.
|
|
257
|
+
SwiftUI.Button(action: { onPress?(item, index) }) {
|
|
258
|
+
columnBody
|
|
259
|
+
}
|
|
260
|
+
.buttonStyle(ActiveOpacityButtonStyle())
|
|
261
|
+
} else {
|
|
262
|
+
columnBody
|
|
255
263
|
}
|
|
256
264
|
}
|
|
257
265
|
|
|
@@ -338,7 +346,7 @@ private struct StepsVertical: View {
|
|
|
338
346
|
|
|
339
347
|
let clickable = status == .completed && onPress != nil && !disabled
|
|
340
348
|
|
|
341
|
-
HStack(alignment: .top, spacing: 0) {
|
|
349
|
+
let rowBody = HStack(alignment: .top, spacing: 0) {
|
|
342
350
|
VStack(spacing: 0) {
|
|
343
351
|
StepBubble(
|
|
344
352
|
index: index,
|
|
@@ -380,8 +388,16 @@ private struct StepsVertical: View {
|
|
|
380
388
|
}
|
|
381
389
|
.frame(maxWidth: .infinity)
|
|
382
390
|
.contentShape(Rectangle())
|
|
383
|
-
|
|
384
|
-
|
|
391
|
+
|
|
392
|
+
if clickable {
|
|
393
|
+
// Mirrors Compose's `activeOpacityClickable` press feedback; non-clickable
|
|
394
|
+
// steps render with no press interaction at all.
|
|
395
|
+
SwiftUI.Button(action: { onPress?(item, index) }) {
|
|
396
|
+
rowBody
|
|
397
|
+
}
|
|
398
|
+
.buttonStyle(ActiveOpacityButtonStyle())
|
|
399
|
+
} else {
|
|
400
|
+
rowBody
|
|
385
401
|
}
|
|
386
402
|
}
|
|
387
403
|
}
|
|
@@ -77,9 +77,11 @@ public struct SuggestAction: View {
|
|
|
77
77
|
|
|
78
78
|
Spacer().frame(width: Spacing.S)
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
.
|
|
82
|
-
|
|
80
|
+
SwiftUI.Button(action: onClose) {
|
|
81
|
+
Icon(source: "navigation_close", size: 24, color: theme.colors.text.default)
|
|
82
|
+
.contentShape(Rectangle())
|
|
83
|
+
}
|
|
84
|
+
.buttonStyle(ActiveOpacityButtonStyle())
|
|
83
85
|
}
|
|
84
86
|
.padding(Spacing.M)
|
|
85
87
|
.frame(maxWidth: .infinity)
|
|
@@ -6,6 +6,8 @@ private let swipeActionWidth: CGFloat = 56
|
|
|
6
6
|
// MARK: - Swipe
|
|
7
7
|
|
|
8
8
|
public struct Swipe<Content: View>: View {
|
|
9
|
+
@Environment(\.appTheme) private var theme
|
|
10
|
+
|
|
9
11
|
private let leftActions: [SwipeAction]
|
|
10
12
|
private let rightActions: [SwipeAction]
|
|
11
13
|
private let height: CGFloat
|
|
@@ -54,7 +56,7 @@ public struct Swipe<Content: View>: View {
|
|
|
54
56
|
action: action,
|
|
55
57
|
height: height,
|
|
56
58
|
itemRadius: itemRadius,
|
|
57
|
-
defaultBackgroundColor:
|
|
59
|
+
defaultBackgroundColor: theme.colors.primary
|
|
58
60
|
)
|
|
59
61
|
}
|
|
60
62
|
Spacer(minLength: 0)
|
|
@@ -69,14 +71,14 @@ public struct Swipe<Content: View>: View {
|
|
|
69
71
|
action: action,
|
|
70
72
|
height: height,
|
|
71
73
|
itemRadius: itemRadius,
|
|
72
|
-
defaultBackgroundColor:
|
|
74
|
+
defaultBackgroundColor: theme.colors.error.primary
|
|
73
75
|
)
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
ZStack {
|
|
79
|
-
|
|
81
|
+
theme.colors.background.surface
|
|
80
82
|
content()
|
|
81
83
|
}
|
|
82
84
|
.frame(maxWidth: .infinity)
|