@momo-kits/native-kits 0.162.2-beta.26 → 0.162.2-beta.27
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.md +1 -1
- package/ios/Application/ApplicationEnvironment.swift +0 -11
- package/ios/Application/Components.swift +44 -34
- package/ios/Application/FloatingButton.swift +9 -10
- package/ios/Application/HeaderRight.swift +45 -79
- package/ios/Application/Screen.swift +1 -2
- package/ios/Badge/Badge.swift +14 -11
- package/ios/Badge/BadgeRibbon.swift +21 -12
- package/ios/Button/Button.swift +22 -61
- package/ios/Checkbox/Checkbox.swift +13 -14
- package/ios/Chip/Chip.swift +9 -23
- package/ios/Colors+Radius+Spacing/Colors.swift +12 -12
- package/ios/Extensions/Color++.swift +0 -32
- package/ios/Icon/Icon.swift +1 -6
- package/ios/Input/Input.swift +25 -41
- package/ios/Input/InputPhoneNumber.swift +19 -20
- package/ios/Input/InputSearch.swift +47 -100
- package/ios/Input/InputTextArea.swift +40 -66
- package/ios/Popup/PopupDisplay.swift +16 -8
- package/ios/Popup/PopupInput.swift +8 -2
- package/ios/Swipeable/SwipeCell.swift +0 -185
- package/ios/Swipeable/SwipeCellModel.swift +0 -21
- package/ios/Typography/Text.swift +5 -79
- package/ios/Typography/Typography.swift +0 -3
- package/ios/native-kits.podspec +8 -61
- package/package.json +1 -1
- package/publish.sh +0 -50
- package/.claude/settings.local.json +0 -39
- package/ios/Application/Navigation/BottomTab/BottomTab.swift +0 -103
- package/ios/Application/Navigation/BottomTab/BottomTabBar.swift +0 -215
- package/ios/Application/Navigation/BottomTab/CurvedContainer.swift +0 -65
- package/ios/Application/Navigation/HeaderBackProps.swift +0 -66
- package/ios/Application/Navigation/HeaderTitle.swift +0 -57
- package/ios/Application/Navigation/HeaderUser.swift +0 -209
- package/ios/Application/Navigation/NavigationContainer.swift +0 -176
- package/ios/Application/Navigation/NavigationOptions.swift +0 -109
- package/ios/Application/Navigation/Navigator.swift +0 -364
- package/ios/Application/Navigation/Overplay/BottomSheet.swift +0 -188
- package/ios/Application/Navigation/Overplay/ModalScreen.swift +0 -68
- package/ios/Application/Navigation/Overplay/SnackBar.swift +0 -144
- package/ios/Application/Navigation/component/Header.swift +0 -178
- package/ios/Application/Navigation/component/HeaderBackground.swift +0 -83
- package/ios/Application/Navigation/component/HeaderColor.swift +0 -65
- package/ios/Application/StackScreen.swift +0 -453
- package/ios/Avatar/Avatar.swift +0 -193
- package/ios/BaselineView/BaselineView.swift +0 -163
- package/ios/Carousel/Carousel.swift +0 -181
- package/ios/Collapse/Collapse.swift +0 -182
- package/ios/Colors+Radius+Spacing/Theme.swift +0 -295
- package/ios/DateTimePicker/DateTimePicker.swift +0 -210
- package/ios/DateTimePicker/DateTimePickerTypes.swift +0 -55
- package/ios/DateTimePicker/DateTimePickerUtils.swift +0 -167
- package/ios/DateTimePicker/WheelPicker.swift +0 -161
- package/ios/Divider/Divider.swift +0 -16
- package/ios/IconButton/IconButton.swift +0 -112
- package/ios/InputDropDown/InputDropDown.swift +0 -198
- package/ios/InputMoney/InputMoney.swift +0 -335
- package/ios/InputOTP/InputOTP.swift +0 -210
- package/ios/Loader/Loader.swift +0 -113
- package/ios/MoMoUIKits.podspec +0 -5
- package/ios/Pagination/PaginationDot.swift +0 -61
- package/ios/Pagination/PaginationNumber.swift +0 -35
- package/ios/Pagination/PaginationScroll.swift +0 -101
- package/ios/Pagination/PaginationWhiteDot.swift +0 -37
- package/ios/Popup/PopupNotify.swift +0 -219
- package/ios/ProgressInfo/ProgressInfo.swift +0 -294
- package/ios/Radio/Radio.swift +0 -70
- package/ios/Rating/Rating.swift +0 -82
- package/ios/Resources/MoMoUIKitsColors.xcassets/AccentColor.colorset/Contents.json +0 -11
- package/ios/Resources/MoMoUIKitsColors.xcassets/Background.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/Border.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/Card.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/Contents.json +0 -6
- package/ios/Resources/MoMoUIKitsColors.xcassets/Error.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/Primary.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/PrimaryDark.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/PrimaryLight.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/Secondary.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/Success.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/Text.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/TextSecondary.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/Contents.json +0 -9
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-default.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-disable.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-pressed.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-selected.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-surface.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-tonal.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-default.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-disable.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/gradient.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/primary.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/secondary.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-container.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-primary.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-secondary.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-default.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-disable.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-hint.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-secondary.colorset/Contents.json +0 -38
- package/ios/Resources/MoMoUIKitsColors.xcassets/Warning.colorset/Contents.json +0 -38
- package/ios/Skeleton/Skeleton.swift +0 -99
- package/ios/Slider/Slider.swift +0 -237
- package/ios/Stepper/Stepper.swift +0 -220
- package/ios/Steps/Steps.swift +0 -451
- package/ios/SuggestAction/SuggestAction.swift +0 -97
- package/ios/TabView/TabView.swift +0 -530
- package/ios/Tag/Tag.swift +0 -98
- package/ios/Title/Title.swift +0 -269
- package/ios/Tooltip/Tooltip.swift +0 -482
- package/ios/Typography/FontScaleStore.swift +0 -19
- package/ios/Uploader/Uploader.swift +0 -183
- package/ios-demo/MoMoUIKitsDemo.podspec +0 -20
- package/ios-demo/Resources/dot_loading.json +0 -558
- package/ios-demo/Resources/icon.json +0 -4052
- package/ios-demo/Resources/lottie_circle_loader.json +0 -1
- package/ios-demo/Sources/MoMoUIKitsDemo/DemoScaffold.swift +0 -48
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsBadgeDemoView.swift +0 -25
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsButtonDemoView.swift +0 -26
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsCheckboxDemoView.swift +0 -19
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsChipDemoView.swift +0 -33
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsInputDemoView.swift +0 -48
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsPopupDemoView.swift +0 -21
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsRadioDemoView.swift +0 -17
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsTypographyDemoView.swift +0 -28
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoContext.swift +0 -31
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoFactory.swift +0 -24
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AnimatedHeaderDemo.swift +0 -110
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AvatarDemo.swift +0 -93
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BadgeDemo.swift +0 -269
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BaselineView.swift +0 -117
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BottomTabDemo.swift +0 -89
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ButtonDemo.swift +0 -100
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CarouselDemo.swift +0 -126
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CheckboxDemo.swift +0 -63
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ChipDemo.swift +0 -20
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CollapseDemo.swift +0 -93
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ContentView.swift +0 -107
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DateTimePickerDemo.swift +0 -124
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DividerDemo.swift +0 -14
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/HeaderUserDemo.swift +0 -49
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/Home.swift +0 -278
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/IconButtonDemo.swift +0 -58
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ImageDemo.swift +0 -78
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InformationDemo.swift +0 -138
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDemo.swift +0 -111
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDropDownDemo.swift +0 -136
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputMoneyDemo.swift +0 -107
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputOTPDemo.swift +0 -73
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputPhoneNumberDemo.swift +0 -100
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputSearchDemo.swift +0 -32
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputTextAreaDemo.swift +0 -57
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LoaderDemo.swift +0 -70
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift +0 -227
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PaginationDemo.swift +0 -72
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupDisplayDemo.swift +0 -175
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupNotifyDemo.swift +0 -121
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupPromotionDemo.swift +0 -76
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ProgressInfoDemo.swift +0 -89
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RadioDemo.swift +0 -32
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RatingDemo.swift +0 -56
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SkeletonDemo.swift +0 -32
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SliderDemo.swift +0 -150
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SnackBarDemo.swift +0 -138
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepperDemo.swift +0 -103
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepsDemo.swift +0 -94
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SuggestActionDemo.swift +0 -79
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwipeDemo.swift +0 -152
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwitchDemo.swift +0 -33
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TabViewDemo.swift +0 -190
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TagDemo.swift +0 -34
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ThemeDemo.swift +0 -182
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TitleDemo.swift +0 -109
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TooltipDemo.swift +0 -187
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TypographyDemo.swift +0 -87
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/UploaderDemo.swift +0 -131
- package/ios-demo/Sources/MoMoUIKitsDemo/SwiftUIDemoBrowserView.swift +0 -51
- package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoModels.swift +0 -15
- package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoRegistry.swift +0 -73
- package/scripts/gen-ios-color.mjs +0 -136
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-default.colorset/Contents.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/secondary.colorset/Contents.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-hint.colorset/Contents.json
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
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
|
-
}
|