@momo-kits/native-kits 0.0.1-beta.4 → 0.0.2-alpha.1

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.
Files changed (296) hide show
  1. package/CLAUDE.md +99 -0
  2. package/PUBLISH_GUIDE.md +675 -0
  3. package/README.md +184 -5
  4. package/ios/Application/ApplicationEnvironment.swift +71 -0
  5. package/ios/Application/Components.swift +270 -0
  6. package/ios/Application/ComposeApi.swift +22 -0
  7. package/ios/Application/FloatingButton.swift +174 -0
  8. package/ios/Application/HeaderRight.swift +306 -0
  9. package/ios/Application/LanguageSource.swift +93 -0
  10. package/ios/Application/Localize.swift +378 -0
  11. package/ios/Application/LocalizeModifier.swift +30 -0
  12. package/ios/Application/MaxApi.swift +18 -0
  13. package/ios/Application/Navigation/BottomTab/BottomTab.swift +104 -0
  14. package/ios/Application/Navigation/BottomTab/BottomTabBar.swift +215 -0
  15. package/ios/Application/Navigation/BottomTab/CurvedContainer.swift +65 -0
  16. package/ios/Application/Navigation/HeaderBackProps.swift +66 -0
  17. package/ios/Application/Navigation/HeaderTitle.swift +57 -0
  18. package/ios/Application/Navigation/HeaderUser.swift +209 -0
  19. package/ios/Application/Navigation/NavigationContainer.swift +213 -0
  20. package/ios/Application/Navigation/NavigationOptions.swift +109 -0
  21. package/ios/Application/Navigation/Navigator.swift +453 -0
  22. package/ios/Application/Navigation/NavigatorManager.swift +22 -0
  23. package/ios/Application/Navigation/Overplay/BottomSheet.swift +256 -0
  24. package/ios/Application/Navigation/Overplay/ModalScreen.swift +74 -0
  25. package/ios/Application/Navigation/Overplay/SnackBar.swift +144 -0
  26. package/ios/Application/Navigation/Tracking/ScreenTracker.swift +117 -0
  27. package/ios/Application/Navigation/component/Header.swift +178 -0
  28. package/ios/Application/Navigation/component/HeaderBackground.swift +83 -0
  29. package/ios/Application/Navigation/component/HeaderColor.swift +65 -0
  30. package/ios/Application/Navigation/component/HeaderRightWidthKey.swift +11 -0
  31. package/ios/Application/Navigation/component/NavigationFooter.swift +90 -0
  32. package/ios/Application/Navigation/component/NavigationHeaderRight.swift +196 -0
  33. package/ios/Application/Screen.swift +250 -0
  34. package/ios/Application/StackScreen.swift +492 -0
  35. package/ios/Avatar/Avatar.swift +193 -0
  36. package/ios/Badge/Badge.swift +84 -0
  37. package/ios/Badge/BadgeDot.swift +31 -0
  38. package/ios/Badge/BadgeRibbon.swift +319 -0
  39. package/ios/BaselineView/BaselineView.swift +163 -0
  40. package/ios/Button/Button.swift +232 -84
  41. package/ios/CalculatorKeyboard/CalculatorKeyboard.swift +126 -0
  42. package/ios/Carousel/Carousel.swift +196 -0
  43. package/ios/Checkbox/Checkbox.swift +77 -0
  44. package/ios/Chip/Chip.swift +120 -0
  45. package/ios/Collapse/Collapse.swift +192 -0
  46. package/ios/{Colors+Spacing → Colors+Radius+Spacing}/Colors.swift +42 -37
  47. package/ios/Colors+Radius+Spacing/Radius.swift +22 -0
  48. package/ios/{Colors+Spacing → Colors+Radius+Spacing}/Spacing.swift +3 -1
  49. package/ios/Colors+Radius+Spacing/Theme.swift +295 -0
  50. package/ios/DateTimePicker/DateTimePicker.swift +212 -0
  51. package/ios/DateTimePicker/DateTimePickerTypes.swift +55 -0
  52. package/ios/DateTimePicker/DateTimePickerUtils.swift +167 -0
  53. package/ios/DateTimePicker/WheelPicker.swift +165 -0
  54. package/ios/Divider/Divider.swift +16 -0
  55. package/ios/Extensions/ActiveOpacityButtonStyle.swift +14 -0
  56. package/ios/Extensions/Color++.swift +32 -0
  57. package/ios/Icon/Icon.swift +69 -0
  58. package/ios/IconButton/IconButton.swift +140 -0
  59. package/ios/Image/Image.swift +87 -0
  60. package/ios/Information/Information.swift +156 -0
  61. package/ios/Input/ErrorView.swift +58 -0
  62. package/ios/Input/Input.swift +461 -77
  63. package/ios/Input/InputPhoneNumber.swift +192 -0
  64. package/ios/Input/InputSearch.swift +301 -0
  65. package/ios/Input/InputTextArea.swift +318 -0
  66. package/ios/InputDropDown/InputDropDown.swift +201 -0
  67. package/ios/InputMoney/InputMoney.swift +405 -0
  68. package/ios/InputOTP/InputOTP.swift +211 -0
  69. package/ios/Layout/GridContext.swift +30 -0
  70. package/ios/Layout/Item.swift +42 -0
  71. package/ios/Layout/Section.swift +134 -0
  72. package/ios/Loader/Loader.swift +113 -0
  73. package/ios/Lottie/LottieView.swift +86 -0
  74. package/ios/MoMoUIKits.podspec +5 -0
  75. package/ios/OTPKeyboard/KeyboardButton.swift +13 -5
  76. package/ios/OTPKeyboard/OTPKeyboard.swift +1 -1
  77. package/ios/Pagination/PaginationDot.swift +61 -0
  78. package/ios/Pagination/PaginationNumber.swift +35 -0
  79. package/ios/Pagination/PaginationScroll.swift +101 -0
  80. package/ios/Pagination/PaginationWhiteDot.swift +37 -0
  81. package/ios/Popup/PopupDisplay.swift +279 -0
  82. package/ios/Popup/PopupInput.swift +92 -0
  83. package/ios/Popup/PopupNotify.swift +219 -0
  84. package/ios/Popup/PopupPromotion.swift +74 -0
  85. package/ios/PopupView/FullscreenPopup.swift +251 -0
  86. package/ios/{Popup → PopupView}/Modifiers.swift +6 -20
  87. package/ios/{Popup → PopupView}/PopupView.swift +38 -146
  88. package/ios/PopupView/Utils++.swift +281 -0
  89. package/ios/ProgressInfo/ProgressInfo.swift +297 -0
  90. package/ios/Radio/Radio.swift +69 -0
  91. package/ios/Rating/Rating.swift +83 -0
  92. package/{example/ios/Example/Preview Content/Preview Assets.xcassets/Contents.json → ios/Resources/MoMoUIKitsColors.xcassets/AccentColor.colorset/Contents.json} +5 -0
  93. package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Text.colorset/Contents.json +3 -3
  94. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/Contents.json +9 -0
  95. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-default.colorset/Contents.json +38 -0
  96. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-disable.colorset/Contents.json +38 -0
  97. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-pressed.colorset/Contents.json +38 -0
  98. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-selected.colorset/Contents.json +38 -0
  99. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-surface.colorset/Contents.json +38 -0
  100. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-tonal.colorset/Contents.json +38 -0
  101. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-default.colorset/Contents.json +38 -0
  102. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-disable.colorset/Contents.json +38 -0
  103. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/gradient.colorset/Contents.json +38 -0
  104. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/primary.colorset/Contents.json +38 -0
  105. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/secondary.colorset/Contents.json +38 -0
  106. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-container.colorset/Contents.json +38 -0
  107. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-primary.colorset/Contents.json +38 -0
  108. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-secondary.colorset/Contents.json +38 -0
  109. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-default.colorset/Contents.json +38 -0
  110. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-disable.colorset/Contents.json +38 -0
  111. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-hint.colorset/Contents.json +38 -0
  112. package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-secondary.colorset/Contents.json +38 -0
  113. package/ios/ScrollIndicator/ScrollIndicator.swift +110 -0
  114. package/ios/Skeleton/Skeleton.swift +99 -0
  115. package/ios/Slider/Slider.swift +237 -0
  116. package/ios/StatusBarTap/StatusBarTap.h +13 -0
  117. package/ios/StatusBarTap/StatusBarTap.m +75 -0
  118. package/ios/Stepper/Stepper.swift +221 -0
  119. package/ios/Steps/Steps.swift +467 -0
  120. package/ios/SuggestAction/SuggestAction.swift +100 -0
  121. package/ios/Swipeable/SwipeCell.swift +226 -31
  122. package/ios/Swipeable/SwipeCellModel.swift +21 -0
  123. package/ios/Switch/Switch.swift +69 -0
  124. package/ios/TabView/TabView.swift +534 -0
  125. package/ios/Tag/Tag.swift +99 -0
  126. package/ios/Template/Logo/Logo.swift +75 -0
  127. package/ios/Template/TrustBanner/TrustBanner.swift +123 -0
  128. package/ios/Title/Title.swift +270 -0
  129. package/ios/Tooltip/Tooltip.swift +486 -0
  130. package/ios/Typography/FontScale.swift +103 -0
  131. package/ios/Typography/FontScaleStore.swift +58 -0
  132. package/ios/Typography/KitDesignSystem.swift +17 -0
  133. package/ios/Typography/Text.swift +262 -0
  134. package/ios/Typography/Typography.swift +80 -23
  135. package/ios/Uploader/Uploader.swift +174 -0
  136. package/ios/native-kits.podspec +73 -13
  137. package/ios-demo/MoMoUIKitsDemo.podspec +20 -0
  138. package/ios-demo/Resources/dot_loading.json +558 -0
  139. package/ios-demo/Resources/icon.json +4052 -0
  140. package/ios-demo/Resources/lottie_circle_loader.json +1 -0
  141. package/ios-demo/Sources/MoMoUIKitsDemo/DemoScaffold.swift +48 -0
  142. package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsBadgeDemoView.swift +25 -0
  143. package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsButtonDemoView.swift +26 -0
  144. package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsCheckboxDemoView.swift +19 -0
  145. package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsChipDemoView.swift +33 -0
  146. package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsInputDemoView.swift +48 -0
  147. package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsPopupDemoView.swift +21 -0
  148. package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsRadioDemoView.swift +17 -0
  149. package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsTypographyDemoView.swift +28 -0
  150. package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoContext.swift +31 -0
  151. package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoFactory.swift +24 -0
  152. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AnimatedHeaderDemo.swift +110 -0
  153. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AvatarDemo.swift +107 -0
  154. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BadgeDemo.swift +75 -0
  155. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BaselineView.swift +117 -0
  156. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BottomTabDemo.swift +89 -0
  157. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ButtonDemo.swift +108 -0
  158. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CarouselDemo.swift +96 -0
  159. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CheckboxDemo.swift +60 -0
  160. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ChipDemo.swift +76 -0
  161. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CollapseDemo.swift +102 -0
  162. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ContentView.swift +107 -0
  163. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DateTimePickerDemo.swift +100 -0
  164. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DemoScreen.swift +420 -0
  165. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DividerDemo.swift +56 -0
  166. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/HeaderUserDemo.swift +49 -0
  167. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/Home.swift +276 -0
  168. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/IconButtonDemo.swift +93 -0
  169. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/IconDemo.swift +81 -0
  170. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ImageDemo.swift +65 -0
  171. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InformationDemo.swift +96 -0
  172. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDemo.swift +117 -0
  173. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDropDownDemo.swift +94 -0
  174. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputMoneyDemo.swift +94 -0
  175. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputOTPDemo.swift +88 -0
  176. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputPhoneNumberDemo.swift +120 -0
  177. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputSearchDemo.swift +85 -0
  178. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputTextAreaDemo.swift +87 -0
  179. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LoaderDemo.swift +73 -0
  180. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LocalizeDemo.swift +235 -0
  181. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift +241 -0
  182. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PaginationDemo.swift +68 -0
  183. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PlaygroundData.swift +76 -0
  184. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupDisplayDemo.swift +175 -0
  185. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupNotifyDemo.swift +95 -0
  186. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupPromotionDemo.swift +67 -0
  187. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ProgressInfoDemo.swift +101 -0
  188. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RadioDemo.swift +64 -0
  189. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RatingDemo.swift +68 -0
  190. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SectionDemo.swift +83 -0
  191. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SkeletonDemo.swift +61 -0
  192. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SliderDemo.swift +90 -0
  193. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SnackBarDemo.swift +82 -0
  194. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepperDemo.swift +93 -0
  195. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepsDemo.swift +114 -0
  196. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SuggestActionDemo.swift +90 -0
  197. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwipeDemo.swift +107 -0
  198. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwitchDemo.swift +58 -0
  199. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TabViewDemo.swift +114 -0
  200. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TagDemo.swift +86 -0
  201. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ThemeDemo.swift +181 -0
  202. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TitleDemo.swift +104 -0
  203. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TooltipDemo.swift +118 -0
  204. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TypographyDemo.swift +87 -0
  205. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/UploaderDemo.swift +85 -0
  206. package/ios-demo/Sources/MoMoUIKitsDemo/SwiftUIDemoBrowserView.swift +53 -0
  207. package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoModels.swift +15 -0
  208. package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoRegistry.swift +73 -0
  209. package/package.json +6 -6
  210. package/publish.sh +554 -20
  211. package/scripts/gen-ios-color.mjs +136 -0
  212. package/CODE_OF_CONDUCT.md +0 -133
  213. package/CONTRIBUTING.md +0 -114
  214. package/LICENSE +0 -20
  215. package/android/build.gradle +0 -82
  216. package/android/gradle.properties +0 -5
  217. package/android/src/main/AndroidManifest.xml +0 -4
  218. package/android/src/main/java/com/momoplatform/nativekits/NativeKitsPackage.kt +0 -17
  219. package/android/src/main/java/com/momoplatform/nativekits/NativeKitsViewManager.kt +0 -20
  220. package/example/ios/Example/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -63
  221. package/example/ios/Example/ComponentDetail.swift +0 -35
  222. package/example/ios/Example/ComponentItem.swift +0 -24
  223. package/example/ios/Example/ComponentModel.swift +0 -33
  224. package/example/ios/Example/ContentView.swift +0 -53
  225. package/example/ios/Example/Example.entitlements +0 -10
  226. package/example/ios/Example/Foundation/ButtonDemo.swift +0 -80
  227. package/example/ios/Example/Foundation/Popup/ActionSheets.swift +0 -136
  228. package/example/ios/Example/Foundation/Popup/Floats.swift +0 -127
  229. package/example/ios/Example/Foundation/Popup/Popups.swift +0 -101
  230. package/example/ios/Example/Foundation/PopupDemo.swift +0 -366
  231. package/example/ios/Example/Foundation/TextInputDemo.swift +0 -31
  232. package/example/ios/Example/Foundation/TypographyDemo.swift +0 -53
  233. package/example/ios/Example/Foundation.swift +0 -26
  234. package/example/ios/Example/Info.plist +0 -18
  235. package/example/ios/Example/Library/SwipeableDemo.swift +0 -105
  236. package/example/ios/Example/Library.swift +0 -26
  237. package/example/ios/Example/Main.swift +0 -11
  238. package/example/ios/Example/Overview.swift +0 -20
  239. package/example/ios/Example/Resource/SFProText-Black.ttf +0 -0
  240. package/example/ios/Example/Resource/SFProText-Bold.ttf +0 -0
  241. package/example/ios/Example/Resource/SFProText-Heavy.ttf +0 -0
  242. package/example/ios/Example/Resource/SFProText-Light.ttf +0 -0
  243. package/example/ios/Example/Resource/SFProText-Medium.ttf +0 -0
  244. package/example/ios/Example/Resource/SFProText-Regular.ttf +0 -0
  245. package/example/ios/Example/Resource/SFProText-Semibold.ttf +0 -0
  246. package/example/ios/Example/Resource/SFProText-Thin.ttf +0 -0
  247. package/example/ios/Example/Resource/SFProText-Ultralight.ttf +0 -0
  248. package/example/ios/Example/Resource/foundation.json +0 -33
  249. package/example/ios/Example/Resource/library.json +0 -8
  250. package/example/ios/Example/Utils.swift +0 -30
  251. package/example/ios/Example/ViewModifier/DarkViewModifier.swift +0 -22
  252. package/example/ios/Example.xcodeproj/project.pbxproj +0 -570
  253. package/example/ios/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  254. package/example/ios/Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  255. package/example/ios/Example.xcodeproj/project.xcworkspace/xcuserdata/wem.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  256. package/example/ios/Example.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  257. package/example/ios/Example.xcworkspace/contents.xcworkspacedata +0 -10
  258. package/example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  259. package/example/ios/Example.xcworkspace/xcuserdata/wem.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  260. package/example/ios/Example.xcworkspace/xcuserdata/wem.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -6
  261. package/example/ios/Podfile +0 -6
  262. package/example/ios/Podfile.lock +0 -16
  263. package/example/ios/Pods/Local Podspecs/MoMoUIKits.podspec.json +0 -29
  264. package/example/ios/Pods/Manifest.lock +0 -16
  265. package/example/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -661
  266. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/MoMoUIKits.xcscheme +0 -58
  267. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/Pods-Example.xcscheme +0 -58
  268. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/xcschememanagement.plist +0 -25
  269. package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits-dummy.m +0 -5
  270. package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits-prefix.pch +0 -12
  271. package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits-umbrella.h +0 -16
  272. package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits.debug.xcconfig +0 -12
  273. package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits.modulemap +0 -6
  274. package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits.release.xcconfig +0 -12
  275. package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.markdown +0 -3
  276. package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.plist +0 -29
  277. package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-dummy.m +0 -5
  278. package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-umbrella.h +0 -16
  279. package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig +0 -14
  280. package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example.modulemap +0 -6
  281. package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig +0 -14
  282. package/ios/Colors+Spacing/Radius.swift +0 -11
  283. package/ios/Popup/Utils++.swift +0 -163
  284. package/ios/Theme.md +0 -18
  285. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Background.colorset/Contents.json +0 -0
  286. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Border.colorset/Contents.json +0 -0
  287. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Card.colorset/Contents.json +0 -0
  288. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Contents.json +0 -0
  289. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Error.colorset/Contents.json +0 -0
  290. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Primary.colorset/Contents.json +0 -0
  291. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/PrimaryDark.colorset/Contents.json +0 -0
  292. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/PrimaryLight.colorset/Contents.json +0 -0
  293. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Secondary.colorset/Contents.json +0 -0
  294. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Success.colorset/Contents.json +0 -0
  295. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/TextSecondary.colorset/Contents.json +0 -0
  296. /package/{example/ios/Example/Assets.xcassets → ios/Resources/MoMoUIKitsColors.xcassets}/Warning.colorset/Contents.json +0 -0
@@ -1,33 +0,0 @@
1
- //
2
- // ComponentModel.swift
3
- // Example
4
- //
5
- // Created by Wem on 23/12/2022.
6
- //
7
-
8
- import Foundation
9
- import SwiftUI
10
- import CoreLocation
11
-
12
- struct ComponentModel: Hashable, Codable, Identifiable {
13
- var id: String
14
- var name: String
15
- var description: String
16
- var component: AnyView? {
17
- switch id {
18
- case "Typography":
19
- return AnyView(TypographyDemo())
20
- case "Button":
21
- return AnyView(ButtonDemo())
22
- case "SwipeableCell":
23
- return AnyView(SwipeableDemo())
24
- case "Popup":
25
- return AnyView(PopupDemo())
26
- case "TextInput":
27
- return AnyView(TextInputDemo())
28
- default:
29
- return nil
30
- }
31
- }
32
- }
33
-
@@ -1,53 +0,0 @@
1
-
2
- import MoMoUIKits
3
- import SwiftUI
4
-
5
- // MARK: - ContentView
6
-
7
- struct ContentView: View {
8
- @State var foundations: [ComponentModel] = []
9
- @State var libraries: [ComponentModel] = []
10
- @State var otpValue: String = ""
11
-
12
- @AppStorage("showOTPKeyboard") var showOTPKeyboard: Bool = false
13
-
14
- var body: some View {
15
- TabView {
16
- Overview()
17
- .tabItem {
18
- Label("Overview", systemImage: "lightbulb")
19
- }
20
- Foundation(foundations: foundations)
21
- .tabItem {
22
- Label("Foundation", systemImage: "internaldrive")
23
- }
24
- Library(libraries: libraries)
25
- .tabItem {
26
- Label("Library", systemImage: "folder")
27
- }
28
- }.onAppear {
29
- foundations = load("foundation.json")
30
- libraries = load("library.json")
31
- }
32
- .popup(isPresented: $showOTPKeyboard, type: .toast, dragToDismiss: false, closeOnTap: false, backgroundColor: .black.opacity(0.4)) {
33
- VStack {
34
- OTPKeyboard(value: $otpValue, length: 8, onChange: onChange, onClose: {
35
- showOTPKeyboard = false
36
- }).padding()
37
- }
38
- .background(Colors.background)
39
- }
40
- }
41
-
42
- func onChange(otp: String) {
43
- print(otp)
44
- }
45
- }
46
-
47
- // MARK: - ContentView_Previews
48
-
49
- struct ContentView_Previews: PreviewProvider {
50
- static var previews: some View {
51
- ContentView()
52
- }
53
- }
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>com.apple.security.app-sandbox</key>
6
- <true/>
7
- <key>com.apple.security.files.user-selected.read-only</key>
8
- <true/>
9
- </dict>
10
- </plist>
@@ -1,80 +0,0 @@
1
- //
2
- // Foundation.swift
3
- // Example
4
- //
5
- // Created by Wem on 13/12/2022.
6
- //
7
-
8
- import Foundation
9
- import MoMoUIKits
10
- import SwiftUI
11
-
12
- // MARK: - ButtonDemo
13
-
14
- struct ButtonDemo: View {
15
- // MARK: Internal
16
-
17
- var body: some View {
18
- ScrollView {
19
- VStack {
20
- Toggle("Disabled", isOn: $disabled)
21
-
22
- Group {
23
- Button(title: "Button", action: onPress, type: disabled ? .disabled : .primary, size: .large, iconRight: AnyView(Image(systemName: "checkmark.circle")))
24
- Button(title: "Button", action: onPress, size: .medium, iconRight: AnyView(ProgressView().padding(.leading, 2).progressViewStyle(CircularProgressViewStyle(tint: Colors.background))
25
- ))
26
- Button(title: "Button", action: onPress, size: .small)
27
- }
28
-
29
- Group {
30
- Button(title: "Button", action: onPress, type: .danger, iconLeft: AnyView(Image(
31
- systemName: "checkmark.circle"
32
- )))
33
- Button(title: "Button", action: onPress, type: .danger, size: .medium)
34
- Button(title: "Button", action: onPress, type: .danger, size: .small)
35
- }
36
-
37
- Group {
38
- Button(title: "Button", action: onPress, type: .tonal, size: .large)
39
- Button(title: "Button", action: onPress, type: .tonal, size: .medium)
40
- Button(title: "Button", action: onPress, type: .tonal, size: .small)
41
- }
42
-
43
- Group {
44
- Button(title: "Button", action: onPress, type: .secondary, size: .large)
45
- Button(title: "Button", action: onPress, type: .secondary, size: .medium)
46
- Button(title: "Button", action: onPress, type: .secondary, size: .small)
47
- }
48
-
49
- Group {
50
- Button(title: "Button", action: onPress, type: .outline, size: .large)
51
- Button(title: "Button", action: onPress, type: .outline, size: .medium)
52
- Button(title: "Button", action: onPress, type: .outline, size: .small)
53
- }
54
-
55
- Group {
56
- Button(title: "Button", action: onPress, type: .disabled, size: .large)
57
- Button(title: "Button", action: onPress, type: .disabled, size: .medium)
58
- Button(title: "Button", action: onPress, type: .disabled, size: .small)
59
- }
60
- }.padding(16)
61
- }.padding(.top)
62
- }
63
-
64
- func onPress() {
65
- print("Button")
66
- }
67
-
68
- // MARK: Private
69
-
70
- @State private var value: String = ""
71
- @State private var disabled: Bool = false
72
- }
73
-
74
- // MARK: - ButtonDemo_Previews
75
-
76
- struct ButtonDemo_Previews: PreviewProvider {
77
- static var previews: some View {
78
- ButtonDemo()
79
- }
80
- }
@@ -1,136 +0,0 @@
1
-
2
- import SwiftUI
3
-
4
- // MARK: - ActionSheetView
5
-
6
- struct ActionSheetView<Content: View>: View {
7
- // MARK: Lifecycle
8
-
9
- init(topPadding: CGFloat = 100, fixedHeight: Bool = false, bgColor: Color = .white, @ViewBuilder content: () -> Content) {
10
- self.content = content()
11
- self.topPadding = topPadding
12
- self.fixedHeight = fixedHeight
13
- self.bgColor = bgColor
14
- }
15
-
16
- // MARK: Internal
17
-
18
- let content: Content
19
- let topPadding: CGFloat
20
- let fixedHeight: Bool
21
- let bgColor: Color
22
-
23
- var body: some View {
24
- ZStack {
25
- VStack {
26
- Color.black
27
- .opacity(0.2)
28
- .frame(width: 30, height: 6)
29
- .clipShape(Capsule())
30
- .padding(.top, 15)
31
- .padding(.bottom, 10)
32
-
33
- content
34
- .padding(.bottom, 30)
35
- .applyIf(fixedHeight) {
36
- $0.frame(height: UIScreen.main.bounds.height - topPadding)
37
- }
38
- .applyIf(!fixedHeight) {
39
- $0.frame(maxHeight: UIScreen.main.bounds.height - topPadding)
40
- }
41
- }
42
- }
43
- .background(bgColor)
44
- .fixedSize(horizontal: false, vertical: true)
45
- }
46
- }
47
-
48
- // MARK: - ActivityView
49
-
50
- private struct ActivityView: View {
51
- let emoji: String
52
- let name: String
53
- let isSelected: Bool
54
-
55
- var body: some View {
56
- HStack(spacing: 12) {
57
- Text(emoji)
58
- .font(.system(size: 24))
59
-
60
- Text(name.uppercased())
61
- .font(.system(size: 13, weight: isSelected ? .regular : .light))
62
-
63
- Spacer()
64
-
65
- if isSelected {
66
- Image(systemName: "checkmark")
67
- .foregroundColor(Color(hex: "9265F8"))
68
- }
69
- }
70
- .opacity(isSelected ? 1.0 : 0.8)
71
- }
72
- }
73
-
74
- // MARK: - ActionSheetFirst
75
-
76
- struct ActionSheetFirst: View {
77
- var body: some View {
78
- ActionSheetView(bgColor: .white) {
79
- ScrollView {
80
- VStack(alignment: .leading, spacing: 24) {
81
- ActivityView(emoji: "🤼‍♂️", name: "Sparring", isSelected: true)
82
- ActivityView(emoji: "🧘", name: "Yoga", isSelected: false)
83
- ActivityView(emoji: "🚴", name: "cycling", isSelected: false)
84
- ActivityView(emoji: "🏊", name: "Swimming", isSelected: false)
85
- ActivityView(emoji: "🏄", name: "Surfing", isSelected: false)
86
- ActivityView(emoji: "🤸", name: "Fitness", isSelected: false)
87
- ActivityView(emoji: "⛹️", name: "Basketball", isSelected: true)
88
- ActivityView(emoji: "🏋️", name: "Lifting Weights", isSelected: false)
89
- ActivityView(emoji: "⚽️", name: "Football", isSelected: false)
90
- }
91
- .padding(.horizontal, 20)
92
- }
93
- }
94
- }
95
- }
96
-
97
- // MARK: - ActionSheetSecond
98
-
99
- struct ActionSheetSecond: View {
100
- var description: String = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam consectetur orci eget rutrum dignissim. Vivamus aliquam a massa a scelerisque. Integer eleifend lectus non blandit ultricies."
101
-
102
- var body: some View {
103
- ActionSheetView(bgColor: .white) {
104
- ScrollView {
105
- VStack(alignment: .leading, spacing: 16) {
106
- Text("Privacy Policy")
107
- .font(.system(size: 24))
108
-
109
- Text("\(description)\(description)\(description)\(description)\(description)\(description)")
110
- .font(.system(size: 14))
111
- .opacity(0.6)
112
- }
113
- .padding(.horizontal, 24)
114
- }
115
- }
116
- }
117
- }
118
-
119
- // MARK: - ActionSheets_Previews
120
-
121
- struct ActionSheets_Previews: PreviewProvider {
122
- static var previews: some View {
123
- ZStack {
124
- Rectangle()
125
- .ignoresSafeArea()
126
- ActionSheetFirst()
127
- }
128
-
129
- ZStack {
130
- Rectangle()
131
- .ignoresSafeArea()
132
- ActionSheetSecond()
133
- }
134
- }
135
- }
136
-
@@ -1,127 +0,0 @@
1
-
2
-
3
- import SwiftUI
4
-
5
- // MARK: - FloatTopFirst
6
-
7
- struct FloatTopFirst: View {
8
- var body: some View {
9
- ZStack {
10
- RoundedRectangle(cornerRadius: 12)
11
- .fill(Color(hex: "E0E3E8"))
12
-
13
- HStack(spacing: 0) {
14
- Image("avatar1")
15
- .aspectRatio(1.0, contentMode: .fit)
16
- .cornerRadius(16)
17
- .padding(16.0)
18
-
19
- VStack(alignment: .leading, spacing: 8) {
20
- Group {
21
- Text("Adam Jameson")
22
- .bold()
23
- .foregroundColor(.black) +
24
- Text(" invites you to join his training")
25
- .foregroundColor(.black.opacity(0.6))
26
- }
27
-
28
- Button {
29
- debugPrint("Accepted!")
30
- } label: {
31
- Text("Accept".uppercased())
32
- .font(.system(size: 14, weight: .black))
33
- }
34
- }
35
-
36
- Spacer()
37
- }
38
- }
39
- .frame(height: 98)
40
- .padding(.horizontal, 16)
41
- }
42
- }
43
-
44
- // MARK: - FloatTopSecond
45
-
46
- struct FloatTopSecond: View {
47
- var body: some View {
48
- HStack(spacing: 0) {
49
- VStack(alignment: .leading, spacing: 2) {
50
- Text("We give you a gift!")
51
- .foregroundColor(.white)
52
- .font(.system(size: 18))
53
-
54
- Text("30% discount until the end of the month on all products of the company.")
55
- .foregroundColor(.white)
56
- .font(.system(size: 16))
57
- .opacity(0.8)
58
- }
59
-
60
- Spacer()
61
-
62
- Image("gift")
63
- .aspectRatio(1.0, contentMode: .fit)
64
- }
65
- .padding(16)
66
- .background(Color(hex: "9265F8").cornerRadius(12))
67
- .shadow(color: Color(hex: "9265F8").opacity(0.5), radius: 40, x: 0, y: 12)
68
- .padding(.horizontal, 16)
69
- }
70
- }
71
-
72
- // MARK: - FloatBottomFirst
73
-
74
- struct FloatBottomFirst: View {
75
- var body: some View {
76
- HStack(spacing: 0) {
77
- Text("Your message has been sent to Alex Brant")
78
- .font(.system(size: 15))
79
- .foregroundColor(.black)
80
- Spacer()
81
- Image("avatar2")
82
- .frame(width: 32, height: 32)
83
- .cornerRadius(16)
84
- }
85
- .padding(16)
86
- .background(Color.white.cornerRadius(12))
87
- .shadow(color: .black.opacity(0.08), radius: 2, x: 0, y: 0)
88
- .shadow(color: .black.opacity(0.16), radius: 24, x: 0, y: 0)
89
- .padding(.horizontal, 16)
90
- }
91
- }
92
-
93
- // MARK: - FloatBottomSecond
94
-
95
- struct FloatBottomSecond: View {
96
- var body: some View {
97
- HStack(spacing: 8) {
98
- Image(systemName: "wifi.slash")
99
- .foregroundColor(.white)
100
- .frame(width: 24, height: 24)
101
-
102
- Text("Check your network connection and try again")
103
- .foregroundColor(.white)
104
- .font(.system(size: 16))
105
- }
106
- .padding(16)
107
- .background(Color(hex: "FFB93D").cornerRadius(12))
108
- .padding(.horizontal, 16)
109
- }
110
- }
111
-
112
- // MARK: - Floats_Previews
113
-
114
- struct Floats_Previews: PreviewProvider {
115
- static var previews: some View {
116
- ZStack {
117
- Rectangle()
118
- .ignoresSafeArea()
119
- VStack {
120
- FloatTopFirst()
121
- FloatTopSecond()
122
- FloatBottomFirst()
123
- FloatBottomSecond()
124
- }
125
- }
126
- }
127
- }
@@ -1,101 +0,0 @@
1
-
2
- import SwiftUI
3
-
4
- // MARK: - PopupMiddle
5
-
6
- struct PopupMiddle: View {
7
- @Binding var isPresented: Bool
8
-
9
- var body: some View {
10
- VStack(spacing: 12) {
11
- Image("winner")
12
- .resizable()
13
- .scaledToFit()
14
- .frame(maxWidth: 226, maxHeight: 226)
15
-
16
- Text("Congratulations!")
17
- .foregroundColor(.black)
18
- .font(.system(size: 24))
19
- .padding(.top, 12)
20
-
21
- Text("In two weeks, you did 12 workouts and burned 2671 calories. That's 566 calories more than last month. Continue at the same pace and the result will please you.")
22
- .foregroundColor(.black)
23
- .font(.system(size: 16))
24
- .opacity(0.6)
25
- .multilineTextAlignment(.center)
26
- .padding(.bottom, 20)
27
-
28
- Button("Thanks") {
29
- isPresented = false
30
- }
31
- .buttonStyle(.plain)
32
- .font(.system(size: 18, weight: .bold))
33
- .frame(maxWidth: .infinity)
34
- .padding(.vertical, 18)
35
- .padding(.horizontal, 24)
36
- .foregroundColor(.white)
37
- .background(Color(hex: "9265F8"))
38
- .cornerRadius(12)
39
- }
40
- .padding(EdgeInsets(top: 37, leading: 24, bottom: 40, trailing: 24))
41
- .background(Color.white.cornerRadius(20))
42
- .shadow(color: .black.opacity(0.08), radius: 2, x: 0, y: 0)
43
- .shadow(color: .black.opacity(0.16), radius: 24, x: 0, y: 0)
44
- .padding(.horizontal, 40)
45
- }
46
- }
47
-
48
- // MARK: - PopupBottomFirst
49
-
50
- struct PopupBottomFirst: View {
51
- @Binding var isPresented: Bool
52
-
53
- var body: some View {
54
- VStack(spacing: 12) {
55
- Text("Policy changes")
56
- .foregroundColor(.black)
57
- .font(.system(size: 24))
58
-
59
- Text("Policy change occurs through interactions between wide external changes or shocks to the political system and the success of the ideas in the coalitions, which may cause actors in the advocacy coalition to shift coalitions.")
60
- .foregroundColor(.black)
61
- .font(.system(size: 16))
62
- .opacity(0.6)
63
- .multilineTextAlignment(.center)
64
- .padding(.bottom, 12)
65
-
66
- Button("Ok, I accept") {
67
- isPresented = false
68
- }
69
- .buttonStyle(.plain)
70
- .font(.system(size: 18, weight: .bold))
71
- .frame(maxWidth: .infinity)
72
- .padding(.vertical, 18)
73
- .foregroundColor(.white)
74
- .background(Color(hex: "FFB93D"))
75
- .cornerRadius(12)
76
- }
77
- .padding(EdgeInsets(top: 37, leading: 24, bottom: 40, trailing: 24))
78
- .background(Color.white.cornerRadius(20))
79
- .shadow(color: .black.opacity(0.08), radius: 2, x: 0, y: 0)
80
- .shadow(color: .black.opacity(0.16), radius: 24, x: 0, y: 0)
81
- .padding(.horizontal, 16)
82
- }
83
- }
84
-
85
- // MARK: - Popups_Previews
86
-
87
- struct Popups_Previews: PreviewProvider {
88
- static var previews: some View {
89
- ZStack {
90
- Rectangle()
91
- .ignoresSafeArea()
92
- PopupMiddle(isPresented: .constant(true))
93
- }
94
-
95
- ZStack {
96
- Rectangle()
97
- .ignoresSafeArea()
98
- PopupBottomFirst(isPresented: .constant(false))
99
- }
100
- }
101
- }