@momo-kits/native-kits 0.163.1-beta.2 → 0.163.1-beta.20-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 +112 -0
- package/CLAUDE.md +1 -1
- package/build.gradle.kts +11 -0
- package/compose/build.gradle.kts +190 -0
- package/compose/build.gradle.kts.backup +190 -0
- package/compose/compose.podspec +47 -0
- package/compose/src/androidMain/kotlin/vn/momo/kits/navigation/ScrollToTop.android.kt +6 -0
- package/compose/src/androidMain/kotlin/vn/momo/kits/platform/OsFontScale.android.kt +7 -0
- package/compose/src/androidMain/kotlin/vn/momo/kits/platform/Platform.android.kt +150 -0
- package/compose/src/commonMain/composeResources/font/momosignature.otf +0 -0
- package/compose/src/commonMain/composeResources/font/momotrustdisplay.otf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_black.otf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_black.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_bold.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_heavy.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_light.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_medium.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_regular.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_semibold.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_thin.otf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_thin.ttf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_ultralight.otf +0 -0
- package/compose/src/commonMain/composeResources/font/sfprotext_ultralight.ttf +0 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/AnimationSearchInput.kt +52 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Context.kt +106 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/FloatingButton.kt +183 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Header.kt +207 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderAnimated.kt +39 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderBackground.kt +86 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderDefault.kt +76 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderExtended.kt +76 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderRight.kt +293 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderTitle.kt +33 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/LiteScreen.kt +826 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Localize.kt +269 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/NavigationContainer.kt +110 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Screen.kt +378 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/WidgetContainer.kt +56 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/useHeaderSearchAnimation.kt +69 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Avatar.kt +157 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Badge.kt +82 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeDot.kt +32 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeRibbon.kt +338 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BaselineView.kt +175 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Button.kt +356 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Carousel.kt +113 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/CheckBox.kt +89 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Chip.kt +128 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Collapse.kt +209 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/CupertinoOverscroll.kt +542 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Divider.kt +23 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Icon.kt +76 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/IconButton.kt +125 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Image.kt +231 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Information.kt +112 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Input.kt +477 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputDropDown.kt +114 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputMoney.kt +214 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputOTP.kt +240 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputPhoneNumber.kt +216 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputSearch.kt +259 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputTextArea.kt +182 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/LazyColumnWithBouncing.kt +343 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Loader.kt +108 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationDot.kt +56 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationNumber.kt +41 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationScroll.kt +84 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationWhiteDot.kt +40 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +328 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupPromotion.kt +97 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/ProgressInfo.kt +310 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Radio.kt +59 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Rating.kt +87 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/ScaleSizeScope.kt +21 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Skeleton.kt +90 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Slider.kt +323 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Stepper.kt +217 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Steps.kt +473 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/SuggestAction.kt +122 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Swipe.kt +199 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Switch.kt +91 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/TabView.kt +470 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tag.kt +88 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +131 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Title.kt +203 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tooltip.kt +498 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/TrustBanner.kt +175 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Uploader.kt +182 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePicker.kt +193 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerTypes.kt +29 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerUtils.kt +234 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/WheelPicker.kt +188 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Colors.kt +325 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/KitFontScale.kt +22 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Radius.kt +12 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Spacing.kt +16 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Theme.kt +188 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +276 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Card.kt +52 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Item.kt +38 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Section.kt +39 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/AutomationId.kt +52 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Clickable.kt +66 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Conditional.kt +11 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/DeprecatedModifier.kt +104 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Shadow.kt +48 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Size.kt +51 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/BottomSheet.kt +299 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ModalScreen.kt +129 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigation.kt +100 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/NavigationContainer.kt +172 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigator.kt +372 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ScrollToTop.kt +8 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +581 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTab.kt +156 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTabBar.kt +225 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/CurvedContainer.kt +86 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/FloatingButton.kt +169 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/Header.kt +320 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderBackground.kt +81 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderRight.kt +309 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderTitle.kt +34 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderUser.kt +360 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/SnackBar.kt +132 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/tracking/ScreenTracker.kt +127 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/ComposeLottieAnimation.kt +91 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/OsFontScale.kt +9 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/Platform.kt +69 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Icons.kt +1329 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Resources.kt +55 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Tracking.kt +15 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Utils.kt +105 -0
- package/compose/src/iosMain/kotlin/vn/momo/kits/navigation/ScrollToTop.ios.kt +32 -0
- 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 +207 -0
- package/gradle/libs.versions.toml +69 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +8 -0
- package/gradle.properties +26 -0
- package/gradlew +252 -0
- package/gradlew.bat +94 -0
- package/ios/Application/ApplicationEnvironment.swift +15 -3
- package/ios/Application/Components.swift +36 -30
- package/ios/Application/FloatingButton.swift +10 -9
- package/ios/Application/Localize.swift +309 -0
- package/ios/Application/MaxApi.swift +18 -0
- package/ios/Application/Navigation/BottomTab/BottomTab.swift +104 -0
- package/ios/Application/Navigation/BottomTab/BottomTabBar.swift +215 -0
- package/ios/Application/Navigation/BottomTab/CurvedContainer.swift +65 -0
- package/ios/Application/Navigation/HeaderBackProps.swift +66 -0
- package/ios/Application/Navigation/HeaderTitle.swift +57 -0
- package/ios/Application/Navigation/HeaderUser.swift +209 -0
- package/ios/Application/Navigation/NavigationContainer.swift +203 -0
- package/ios/Application/Navigation/NavigationOptions.swift +109 -0
- package/ios/Application/Navigation/Navigator.swift +385 -0
- package/ios/Application/Navigation/Overplay/BottomSheet.swift +256 -0
- package/ios/Application/Navigation/Overplay/ModalScreen.swift +74 -0
- package/ios/Application/Navigation/Overplay/SnackBar.swift +144 -0
- package/ios/Application/Navigation/Tracking/ScreenTracker.swift +117 -0
- package/ios/Application/Navigation/component/Header.swift +178 -0
- package/ios/Application/Navigation/component/HeaderBackground.swift +83 -0
- package/ios/Application/Navigation/component/HeaderColor.swift +65 -0
- package/ios/Application/Navigation/component/HeaderRightWidthKey.swift +11 -0
- package/ios/Application/Navigation/component/NavigationHeaderRight.swift +196 -0
- package/ios/Application/Screen.swift +2 -1
- package/ios/Application/StackScreen.swift +501 -0
- package/ios/Avatar/Avatar.swift +193 -0
- package/ios/Badge/Badge.swift +11 -14
- package/ios/Badge/BadgeRibbon.swift +91 -17
- package/ios/BaselineView/BaselineView.swift +163 -0
- package/ios/Button/Button.swift +137 -28
- package/ios/Carousel/Carousel.swift +196 -0
- package/ios/Checkbox/Checkbox.swift +23 -28
- package/ios/Chip/Chip.swift +56 -33
- package/ios/Collapse/Collapse.swift +192 -0
- 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 +295 -0
- package/ios/DateTimePicker/DateTimePicker.swift +212 -0
- package/ios/DateTimePicker/DateTimePickerTypes.swift +55 -0
- package/ios/DateTimePicker/DateTimePickerUtils.swift +167 -0
- package/ios/DateTimePicker/WheelPicker.swift +165 -0
- package/ios/Divider/Divider.swift +16 -0
- package/ios/Extensions/ActiveOpacityButtonStyle.swift +14 -0
- package/ios/Extensions/Color++.swift +32 -0
- package/ios/Icon/Icon.swift +10 -1
- package/ios/IconButton/IconButton.swift +140 -0
- 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 +72 -33
- package/ios/Input/InputPhoneNumber.swift +33 -21
- package/ios/Input/InputSearch.swift +107 -48
- package/ios/Input/InputTextArea.swift +134 -64
- package/ios/InputDropDown/InputDropDown.swift +201 -0
- package/ios/InputMoney/InputMoney.swift +347 -0
- package/ios/InputOTP/InputOTP.swift +210 -0
- package/ios/Loader/Loader.swift +113 -0
- package/ios/MoMoUIKits.podspec +5 -0
- package/ios/Pagination/PaginationDot.swift +61 -0
- package/ios/Pagination/PaginationNumber.swift +35 -0
- package/ios/Pagination/PaginationScroll.swift +101 -0
- package/ios/Pagination/PaginationWhiteDot.swift +37 -0
- package/ios/Popup/PopupDisplay.swift +11 -20
- package/ios/Popup/PopupInput.swift +2 -8
- package/ios/Popup/PopupNotify.swift +218 -0
- package/ios/Popup/PopupPromotion.swift +5 -3
- package/ios/ProgressInfo/ProgressInfo.swift +296 -0
- package/ios/Radio/Radio.swift +69 -0
- package/ios/Rating/Rating.swift +82 -0
- 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/Skeleton/Skeleton.swift +99 -0
- package/ios/Slider/Slider.swift +237 -0
- package/ios/Stepper/Stepper.swift +220 -0
- package/ios/Steps/Steps.swift +467 -0
- package/ios/SuggestAction/SuggestAction.swift +99 -0
- package/ios/Swipeable/SwipeCell.swift +187 -0
- package/ios/Swipeable/SwipeCellModel.swift +21 -0
- package/ios/Switch/Switch.swift +53 -28
- package/ios/TabView/TabView.swift +534 -0
- package/ios/Tag/Tag.swift +98 -0
- package/ios/Template/TrustBanner/TrustBanner.swift +7 -8
- package/ios/Title/Title.swift +269 -0
- package/ios/Tooltip/Tooltip.swift +485 -0
- package/ios/Typography/FontScaleStore.swift +19 -0
- package/ios/Typography/Text.swift +86 -17
- package/ios/Typography/Typography.swift +12 -14
- package/ios/Uploader/Uploader.swift +174 -0
- package/ios/native-kits.podspec +61 -8
- package/ios-demo/MoMoUIKitsDemo.podspec +20 -0
- package/ios-demo/README.md +120 -0
- package/ios-demo/Resources/dot_loading.json +558 -0
- package/ios-demo/Resources/icon.json +4052 -0
- package/ios-demo/Resources/lottie_circle_loader.json +1 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/DemoScaffold.swift +48 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsBadgeDemoView.swift +25 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsButtonDemoView.swift +26 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsCheckboxDemoView.swift +19 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsChipDemoView.swift +33 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsInputDemoView.swift +48 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsPopupDemoView.swift +21 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsRadioDemoView.swift +17 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsTypographyDemoView.swift +28 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoContext.swift +31 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoFactory.swift +24 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AnimatedHeaderDemo.swift +110 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AvatarDemo.swift +93 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BadgeDemo.swift +269 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BaselineView.swift +117 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BottomTabDemo.swift +89 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ButtonDemo.swift +100 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CarouselDemo.swift +126 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CheckboxDemo.swift +64 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ChipDemo.swift +20 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CollapseDemo.swift +93 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ContentView.swift +107 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DateTimePickerDemo.swift +124 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DividerDemo.swift +14 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/HeaderUserDemo.swift +49 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/Home.swift +279 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/IconButtonDemo.swift +58 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ImageDemo.swift +78 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InformationDemo.swift +138 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDemo.swift +111 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDropDownDemo.swift +136 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputMoneyDemo.swift +107 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputOTPDemo.swift +73 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputPhoneNumberDemo.swift +100 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputSearchDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputTextAreaDemo.swift +57 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LoaderDemo.swift +70 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LocalizeDemo.swift +188 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift +229 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PaginationDemo.swift +72 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupDisplayDemo.swift +175 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupNotifyDemo.swift +121 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupPromotionDemo.swift +76 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ProgressInfoDemo.swift +89 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RadioDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RatingDemo.swift +56 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SkeletonDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SliderDemo.swift +150 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SnackBarDemo.swift +138 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepperDemo.swift +103 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepsDemo.swift +94 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SuggestActionDemo.swift +79 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwipeDemo.swift +152 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwitchDemo.swift +33 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TabViewDemo.swift +190 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TagDemo.swift +34 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ThemeDemo.swift +182 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TitleDemo.swift +109 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TooltipDemo.swift +187 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TypographyDemo.swift +87 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/UploaderDemo.swift +131 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SwiftUIDemoBrowserView.swift +51 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoModels.swift +15 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoRegistry.swift +73 -0
- package/local.properties +8 -0
- package/package.json +1 -1
- package/publish.sh +53 -0
- package/scripts/gen-ios-color.mjs +136 -0
- package/settings.gradle.kts +64 -0
- package/example/ios/Example.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/example/ios/Example.xcworkspace/xcuserdata/huynhdung.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/example/ios/Example.xcworkspace/xcuserdata/huynhdung.xcuserdatad/xcschemes/xcschememanagement.plist +0 -5
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/MoMoUIKits.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/Pods-Example.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/SDWebImage.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/SDWebImageSwiftUI.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/SkeletonUI.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/huynhdung.xcuserdatad/xcschemes/xcschememanagement.plist +0 -46
- package/ios/Application/FontScaleStore.swift +0 -59
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
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import SwiftUI
|
|
3
|
+
|
|
4
|
+
/// Native SwiftUI port of the Compose `Skeleton` component.
|
|
5
|
+
///
|
|
6
|
+
/// Fills the available space with a base placeholder color and overlays a
|
|
7
|
+
/// horizontal shimmer gradient that animates left-to-right on an infinite loop.
|
|
8
|
+
///
|
|
9
|
+
/// Mirrors the Compose surface: `Skeleton()` takes no required arguments and
|
|
10
|
+
/// fills its container. The shimmer animation parameters match the Compose
|
|
11
|
+
/// defaults (`durationMillis = 1000`, shimmer band = 60% of container width).
|
|
12
|
+
public struct Skeleton: View {
|
|
13
|
+
// Matches Compose `DEFAULT_DURATION_MILLIS = 1000`.
|
|
14
|
+
private let durationMillis: Int
|
|
15
|
+
// Matches Compose `angleOfAxisY = 0f` (horizontal gradient).
|
|
16
|
+
private let angleOfAxisY: CGFloat
|
|
17
|
+
|
|
18
|
+
public init(
|
|
19
|
+
durationMillis: Int = 1000,
|
|
20
|
+
angleOfAxisY: CGFloat = 0
|
|
21
|
+
) {
|
|
22
|
+
self.durationMillis = durationMillis
|
|
23
|
+
self.angleOfAxisY = angleOfAxisY
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public var body: some View {
|
|
27
|
+
GeometryReader { proxy in
|
|
28
|
+
ShimmerLoading(
|
|
29
|
+
size: proxy.size,
|
|
30
|
+
durationMillis: durationMillis,
|
|
31
|
+
angleOfAxisY: angleOfAxisY
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
// Compose base background (`Colors.black_05`).
|
|
35
|
+
.background(Colors.black05)
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/// Internal shimmer overlay. Reproduces Compose's `Modifier.shimmerLoadingAnimation`:
|
|
40
|
+
/// a linear gradient band (60% of the container width) translated across the
|
|
41
|
+
/// surface on an infinite, restarting, linearly-eased loop.
|
|
42
|
+
private struct ShimmerLoading: View {
|
|
43
|
+
let size: CGSize
|
|
44
|
+
let durationMillis: Int
|
|
45
|
+
let angleOfAxisY: CGFloat
|
|
46
|
+
|
|
47
|
+
@State private var phase: CGFloat = 0
|
|
48
|
+
|
|
49
|
+
// Matches Compose `SHADOW_BRUSH_PERCENTAGE = 0.6f`.
|
|
50
|
+
private static let shadowBrushPercentage: CGFloat = 0.6
|
|
51
|
+
|
|
52
|
+
// Pre-computed shimmer colors (Colors.black_05, black_03, black_05).
|
|
53
|
+
private static let shimmerColors: [Color] = [
|
|
54
|
+
Colors.black05,
|
|
55
|
+
Colors.black03,
|
|
56
|
+
Colors.black05,
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
private var widthOfShadowBrush: CGFloat {
|
|
60
|
+
(size.width * Self.shadowBrushPercentage).rounded(.towardZero)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Compose animates from 0 to (durationMillis + widthOfShadowBrush). Since the
|
|
64
|
+
// band is anchored at the animated value, the meaningful travel range spans
|
|
65
|
+
// from off-screen-left to off-screen-right: -widthOfShadowBrush ... maxWidth.
|
|
66
|
+
private var animationTarget: CGFloat {
|
|
67
|
+
size.width + widthOfShadowBrush
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var body: some View {
|
|
71
|
+
let startX = phase - widthOfShadowBrush
|
|
72
|
+
let endX = phase
|
|
73
|
+
|
|
74
|
+
Rectangle()
|
|
75
|
+
.fill(
|
|
76
|
+
LinearGradient(
|
|
77
|
+
gradient: Gradient(colors: Self.shimmerColors),
|
|
78
|
+
startPoint: .init(
|
|
79
|
+
x: size.width > 0 ? startX / size.width : 0,
|
|
80
|
+
y: 0
|
|
81
|
+
),
|
|
82
|
+
endPoint: .init(
|
|
83
|
+
x: size.width > 0 ? endX / size.width : 0,
|
|
84
|
+
y: size.height > 0 ? angleOfAxisY / size.height : 0
|
|
85
|
+
)
|
|
86
|
+
)
|
|
87
|
+
)
|
|
88
|
+
.onAppear {
|
|
89
|
+
guard size.width > 0 else { return }
|
|
90
|
+
phase = 0
|
|
91
|
+
withAnimation(
|
|
92
|
+
.linear(duration: Double(durationMillis) / 1000.0)
|
|
93
|
+
.repeatForever(autoreverses: false)
|
|
94
|
+
) {
|
|
95
|
+
phase = animationTarget
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|