@momo-kits/native-kits 0.163.2-beta.2 → 0.164.1-beta.1-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.
Files changed (247) hide show
  1. package/CLAUDE.md +19 -0
  2. package/build.gradle.kts +11 -0
  3. package/compose/build.gradle.kts +190 -0
  4. package/compose/build.gradle.kts.backup +190 -0
  5. package/compose/compose.podspec +47 -0
  6. package/compose/src/androidMain/kotlin/vn/momo/kits/navigation/ScrollToTop.android.kt +6 -0
  7. package/compose/src/androidMain/kotlin/vn/momo/kits/platform/OsFontScale.android.kt +7 -0
  8. package/compose/src/androidMain/kotlin/vn/momo/kits/platform/Platform.android.kt +150 -0
  9. package/compose/src/commonMain/composeResources/font/momosignature.otf +0 -0
  10. package/compose/src/commonMain/composeResources/font/momotrustdisplay.otf +0 -0
  11. package/compose/src/commonMain/composeResources/font/sfprotext_black.otf +0 -0
  12. package/compose/src/commonMain/composeResources/font/sfprotext_black.ttf +0 -0
  13. package/compose/src/commonMain/composeResources/font/sfprotext_bold.ttf +0 -0
  14. package/compose/src/commonMain/composeResources/font/sfprotext_heavy.ttf +0 -0
  15. package/compose/src/commonMain/composeResources/font/sfprotext_light.ttf +0 -0
  16. package/compose/src/commonMain/composeResources/font/sfprotext_medium.ttf +0 -0
  17. package/compose/src/commonMain/composeResources/font/sfprotext_regular.ttf +0 -0
  18. package/compose/src/commonMain/composeResources/font/sfprotext_semibold.ttf +0 -0
  19. package/compose/src/commonMain/composeResources/font/sfprotext_thin.otf +0 -0
  20. package/compose/src/commonMain/composeResources/font/sfprotext_thin.ttf +0 -0
  21. package/compose/src/commonMain/composeResources/font/sfprotext_ultralight.otf +0 -0
  22. package/compose/src/commonMain/composeResources/font/sfprotext_ultralight.ttf +0 -0
  23. package/compose/src/commonMain/kotlin/vn/momo/kits/application/AnimationSearchInput.kt +52 -0
  24. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Context.kt +106 -0
  25. package/compose/src/commonMain/kotlin/vn/momo/kits/application/FloatingButton.kt +183 -0
  26. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Header.kt +207 -0
  27. package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderAnimated.kt +39 -0
  28. package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderBackground.kt +86 -0
  29. package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderDefault.kt +76 -0
  30. package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderExtended.kt +76 -0
  31. package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderRight.kt +293 -0
  32. package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderTitle.kt +33 -0
  33. package/compose/src/commonMain/kotlin/vn/momo/kits/application/LiteScreen.kt +826 -0
  34. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Localize.kt +269 -0
  35. package/compose/src/commonMain/kotlin/vn/momo/kits/application/NavigationContainer.kt +110 -0
  36. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Screen.kt +378 -0
  37. package/compose/src/commonMain/kotlin/vn/momo/kits/application/WidgetContainer.kt +56 -0
  38. package/compose/src/commonMain/kotlin/vn/momo/kits/application/useHeaderSearchAnimation.kt +69 -0
  39. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Avatar.kt +157 -0
  40. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Badge.kt +82 -0
  41. package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeDot.kt +32 -0
  42. package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeRibbon.kt +338 -0
  43. package/compose/src/commonMain/kotlin/vn/momo/kits/components/BaselineView.kt +175 -0
  44. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Button.kt +356 -0
  45. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Carousel.kt +113 -0
  46. package/compose/src/commonMain/kotlin/vn/momo/kits/components/CheckBox.kt +89 -0
  47. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Chip.kt +128 -0
  48. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Collapse.kt +209 -0
  49. package/compose/src/commonMain/kotlin/vn/momo/kits/components/CupertinoOverscroll.kt +542 -0
  50. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Divider.kt +23 -0
  51. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Icon.kt +76 -0
  52. package/compose/src/commonMain/kotlin/vn/momo/kits/components/IconButton.kt +125 -0
  53. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Image.kt +231 -0
  54. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Information.kt +112 -0
  55. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Input.kt +477 -0
  56. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputDropDown.kt +114 -0
  57. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputMoney.kt +214 -0
  58. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputOTP.kt +240 -0
  59. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputPhoneNumber.kt +216 -0
  60. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputSearch.kt +259 -0
  61. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputTextArea.kt +182 -0
  62. package/compose/src/commonMain/kotlin/vn/momo/kits/components/LazyColumnWithBouncing.kt +343 -0
  63. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Loader.kt +108 -0
  64. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationDot.kt +56 -0
  65. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationNumber.kt +41 -0
  66. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationScroll.kt +84 -0
  67. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationWhiteDot.kt +40 -0
  68. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +328 -0
  69. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupPromotion.kt +97 -0
  70. package/compose/src/commonMain/kotlin/vn/momo/kits/components/ProgressInfo.kt +310 -0
  71. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Radio.kt +59 -0
  72. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Rating.kt +87 -0
  73. package/compose/src/commonMain/kotlin/vn/momo/kits/components/ScaleSizeScope.kt +21 -0
  74. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Skeleton.kt +90 -0
  75. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Slider.kt +323 -0
  76. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Stepper.kt +217 -0
  77. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Steps.kt +473 -0
  78. package/compose/src/commonMain/kotlin/vn/momo/kits/components/SuggestAction.kt +122 -0
  79. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Swipe.kt +199 -0
  80. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Switch.kt +91 -0
  81. package/compose/src/commonMain/kotlin/vn/momo/kits/components/TabView.kt +470 -0
  82. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tag.kt +88 -0
  83. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +131 -0
  84. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Title.kt +203 -0
  85. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tooltip.kt +498 -0
  86. package/compose/src/commonMain/kotlin/vn/momo/kits/components/TrustBanner.kt +175 -0
  87. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Uploader.kt +182 -0
  88. package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePicker.kt +193 -0
  89. package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerTypes.kt +29 -0
  90. package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerUtils.kt +234 -0
  91. package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/WheelPicker.kt +188 -0
  92. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Colors.kt +325 -0
  93. package/compose/src/commonMain/kotlin/vn/momo/kits/const/KitFontScale.kt +22 -0
  94. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Radius.kt +12 -0
  95. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Spacing.kt +16 -0
  96. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Theme.kt +188 -0
  97. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +276 -0
  98. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Card.kt +52 -0
  99. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Item.kt +38 -0
  100. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Section.kt +39 -0
  101. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/AutomationId.kt +52 -0
  102. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Clickable.kt +66 -0
  103. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Conditional.kt +11 -0
  104. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/DeprecatedModifier.kt +104 -0
  105. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Shadow.kt +48 -0
  106. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Size.kt +51 -0
  107. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/BottomSheet.kt +299 -0
  108. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ModalScreen.kt +129 -0
  109. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigation.kt +103 -0
  110. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/NavigationContainer.kt +172 -0
  111. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigator.kt +372 -0
  112. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ScrollToTop.kt +8 -0
  113. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +589 -0
  114. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTab.kt +156 -0
  115. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTabBar.kt +225 -0
  116. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/CurvedContainer.kt +86 -0
  117. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/FloatingButton.kt +169 -0
  118. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/Header.kt +320 -0
  119. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderBackground.kt +81 -0
  120. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderRight.kt +309 -0
  121. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderTitle.kt +34 -0
  122. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderUser.kt +360 -0
  123. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/SnackBar.kt +132 -0
  124. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/tracking/ScreenTracker.kt +127 -0
  125. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/ComposeLottieAnimation.kt +91 -0
  126. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/OsFontScale.kt +9 -0
  127. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/Platform.kt +69 -0
  128. package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Icons.kt +1329 -0
  129. package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Resources.kt +55 -0
  130. package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Tracking.kt +15 -0
  131. package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Utils.kt +105 -0
  132. package/compose/src/iosMain/kotlin/vn/momo/kits/navigation/ScrollToTop.ios.kt +32 -0
  133. package/compose/src/iosMain/kotlin/vn/momo/kits/platform/OsFontScale.ios.kt +66 -0
  134. package/compose/src/iosMain/kotlin/vn/momo/kits/platform/Platform.ios.kt +207 -0
  135. package/gradle/libs.versions.toml +69 -0
  136. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  137. package/gradle/wrapper/gradle-wrapper.properties +8 -0
  138. package/gradle.properties +26 -0
  139. package/gradlew +252 -0
  140. package/gradlew.bat +94 -0
  141. package/ios/Application/ApplicationEnvironment.swift +14 -6
  142. package/ios/Application/LanguageSource.swift +93 -0
  143. package/ios/Application/Localize.swift +73 -4
  144. package/ios/Application/LocalizeModifier.swift +30 -0
  145. package/ios/Application/Navigation/NavigationContainer.swift +28 -18
  146. package/ios/Application/Navigation/Navigator.swift +121 -53
  147. package/ios/Application/Navigation/NavigatorManager.swift +49 -0
  148. package/ios/Application/Navigation/component/NavigationFooter.swift +90 -0
  149. package/ios/Application/StackScreen.swift +19 -28
  150. package/ios/Badge/Badge.swift +2 -1
  151. package/ios/Badge/BadgeRibbon.swift +6 -2
  152. package/ios/Button/Button.swift +41 -61
  153. package/ios/Chip/Chip.swift +6 -5
  154. package/ios/Icon/Icon.swift +13 -4
  155. package/ios/Input/ErrorView.swift +2 -1
  156. package/ios/Input/Input.swift +9 -2
  157. package/ios/Input/InputPhoneNumber.swift +2 -1
  158. package/ios/Input/InputSearch.swift +3 -2
  159. package/ios/Input/InputTextArea.swift +6 -1
  160. package/ios/InputMoney/InputMoney.swift +5 -2
  161. package/ios/InputOTP/InputOTP.swift +2 -1
  162. package/ios/Layout/GridContext.swift +30 -0
  163. package/ios/Layout/Item.swift +42 -0
  164. package/ios/Layout/Section.swift +134 -0
  165. package/ios/Popup/PopupNotify.swift +2 -1
  166. package/ios/ProgressInfo/ProgressInfo.swift +4 -3
  167. package/ios/Rating/Rating.swift +2 -1
  168. package/ios/Stepper/Stepper.swift +2 -1
  169. package/ios/SuggestAction/SuggestAction.swift +3 -2
  170. package/ios/Tag/Tag.swift +2 -1
  171. package/ios/Template/TrustBanner/TrustBanner.swift +4 -2
  172. package/ios/Title/Title.swift +3 -2
  173. package/ios/Tooltip/Tooltip.swift +2 -1
  174. package/ios/Typography/FontScale.swift +103 -0
  175. package/ios/Typography/FontScaleStore.swift +52 -13
  176. package/ios/Typography/Text.swift +12 -29
  177. package/ios/Typography/Typography.swift +66 -86
  178. package/ios/native-kits.podspec +2 -1
  179. package/ios-demo/MoMoUIKitsDemo.podspec +1 -1
  180. package/ios-demo/README.md +120 -0
  181. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AvatarDemo.swift +87 -73
  182. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BadgeDemo.swift +55 -249
  183. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ButtonDemo.swift +90 -82
  184. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CarouselDemo.swift +74 -104
  185. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CheckboxDemo.swift +47 -50
  186. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ChipDemo.swift +63 -7
  187. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CollapseDemo.swift +90 -81
  188. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DateTimePickerDemo.swift +73 -97
  189. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DemoScreen.swift +420 -0
  190. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DividerDemo.swift +46 -4
  191. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/Home.swift +54 -57
  192. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/IconButtonDemo.swift +80 -45
  193. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/IconDemo.swift +81 -0
  194. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ImageDemo.swift +49 -62
  195. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InformationDemo.swift +66 -116
  196. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDemo.swift +104 -98
  197. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDropDownDemo.swift +76 -118
  198. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputMoneyDemo.swift +73 -86
  199. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputOTPDemo.swift +69 -54
  200. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputPhoneNumberDemo.swift +74 -54
  201. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputSearchDemo.swift +73 -20
  202. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputTextAreaDemo.swift +68 -38
  203. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LoaderDemo.swift +55 -52
  204. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LocalizeDemo.swift +51 -4
  205. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift +14 -2
  206. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PaginationDemo.swift +47 -51
  207. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PlaygroundData.swift +76 -0
  208. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupNotifyDemo.swift +67 -93
  209. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupPromotionDemo.swift +34 -43
  210. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ProgressInfoDemo.swift +83 -71
  211. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RadioDemo.swift +55 -23
  212. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RatingDemo.swift +58 -46
  213. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SectionDemo.swift +83 -0
  214. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SkeletonDemo.swift +41 -12
  215. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SliderDemo.swift +67 -127
  216. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SnackBarDemo.swift +54 -110
  217. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepperDemo.swift +69 -79
  218. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepsDemo.swift +78 -58
  219. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SuggestActionDemo.swift +76 -65
  220. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwipeDemo.swift +82 -127
  221. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwitchDemo.swift +44 -19
  222. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TabViewDemo.swift +92 -168
  223. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TagDemo.swift +79 -27
  224. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ThemeDemo.swift +0 -1
  225. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TitleDemo.swift +87 -92
  226. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TooltipDemo.swift +94 -163
  227. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TypographyDemo.swift +70 -70
  228. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/UploaderDemo.swift +68 -114
  229. package/ios-demo/Sources/MoMoUIKitsDemo/SwiftUIDemoBrowserView.swift +3 -1
  230. package/local.properties +8 -0
  231. package/package.json +2 -2
  232. package/settings.gradle.kts +64 -0
  233. package/.codegraph/.gitignore +0 -5
  234. package/example/ios/Example.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/Example.xcscheme +0 -32
  235. package/example/ios/Example.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  236. package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  237. package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/WorkspaceSettings.xcsettings +0 -16
  238. package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -6
  239. package/example/ios/Example.xcworkspace/xcuserdata/sonnguyen.xcuserdatad/xcschemes/xcschememanagement.plist +0 -5
  240. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/MoMoUIKits.xcscheme +0 -58
  241. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/Pods-Example.xcscheme +0 -58
  242. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/SDWebImage.xcscheme +0 -58
  243. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/SDWebImageSwiftUI.xcscheme +0 -58
  244. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/SkeletonUI.xcscheme +0 -58
  245. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/lottie-ios-LottiePrivacyInfo.xcscheme +0 -58
  246. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/lottie-ios.xcscheme +0 -58
  247. package/example/ios/Pods/Pods.xcodeproj/xcuserdata/sonnguyen.xcuserdatad/xcschemes/xcschememanagement.plist +0 -60
@@ -1,100 +1,108 @@
1
1
  //
2
- // Foundation.swift
2
+ // ButtonDemo.swift
3
3
  // Example
4
4
  //
5
- // Created by Wem on 13/12/2022.
5
+ // Preview + Playground demo, mirroring Compose's ButtonUsage.kt.
6
6
  //
7
7
 
8
- import Foundation
9
- import Lottie
10
8
  import MoMoUIKits
11
9
  import SwiftUI
12
10
 
13
- // MARK: - ButtonDemo
14
-
15
11
  struct ButtonDemo: View {
16
- // MARK: Internal
17
-
18
12
  var body: some View {
19
- ScrollView {
20
- VStack {
21
- Toggle("Disabled", isOn: $disabled)
22
-
23
- Group {
24
- Button(title: "Button", action: onPress, type: disabled ? .disabled : .primary, size: .large,
25
- iconRight: AnyView(Image(systemName: "checkmark.circle")))
26
- Button(title: "Button", action: onPress, size: .small)
27
- }
28
-
29
- Group {
30
- Button(title: "Button", action: onPress, type: .danger,
31
- iconLeft: AnyView(Image(systemName: "checkmark.circle")))
32
- Button(title: "Button", action: onPress, type: .danger, size: .medium)
33
- Button(title: "Button", action: onPress, type: .danger, size: .small)
34
- }
35
-
36
- Group {
37
- Button(title: "Button", action: onPress, type: .danger, iconLeft: AnyView(Image(systemName: "checkmark.circle")), isFull: false)
38
- Button(title: "Button", action: onPress, type: .danger, size: .medium, isFull: false)
39
- Button(title: "Button", action: onPress, type: .danger, size: .small, isFull: false)
40
- }
41
-
42
-
43
- Group {
44
- Button(title: "Button", action: onPress, type: .tonal, size: .large)
45
- Button(title: "Button", action: onPress, type: .tonal, size: .medium)
46
- Button(title: "Button", action: onPress, type: .tonal, size: .small)
47
- }
48
-
49
- Group {
50
- Button(title: "Tinted icon", action: onPress, type: .primary,
51
- iconLeft: AnyView(Image(systemName: "checkmark.circle")), useTintColor: true)
52
- Button(title: "Original icon", action: onPress, type: .primary,
53
- iconLeft: AnyView(Image(systemName: "checkmark.circle")), useTintColor: false)
54
- }
55
-
56
- Group {
57
- Button(title: "Button", action: onPress, type: .secondary, size: .large)
58
- Button(title: "Button", action: onPress, type: .secondary, size: .medium)
59
- Button(title: "Button", action: onPress, type: .secondary, size: .small)
60
- }
13
+ if #available(iOS 16.0, *) {
14
+ DemoScreen(preview: { ButtonPreview() }, playground: { ButtonPlayground() })
15
+ } else {
16
+ Text("Requires iOS 16+").padding()
17
+ }
18
+ }
19
+ }
61
20
 
62
- Group {
63
- Button(title: "Button", action: onPress, type: .text, size: .large)
64
- Button(title: "Button", action: onPress, type: .text, size: .medium)
65
- Button(title: "Button", action: onPress, type: .text, size: .small)
66
- }
21
+ // MARK: - Preview
67
22
 
68
- Group {
69
- Button(title: "Button", action: onPress, type: .outline, size: .large)
70
- Button(title: "Button", action: onPress, type: .outline, size: .medium)
71
- Button(title: "Button", action: onPress, type: .outline, size: .small)
72
- }
23
+ private struct ButtonPreview: View {
24
+ private let url = "https://static-00.iconduck.com/assets.00/external-link-icon-512x512-h2zzryfc.png"
73
25
 
74
- Group {
75
- Button(title: "Button", action: onPress, type: .disabled, size: .large)
76
- Button(title: "Button", action: onPress, type: .disabled, size: .medium)
77
- Button(title: "Button", action: onPress, type: .disabled, size: .small)
78
- }
79
- Group {
80
- Button(title: "Button", action: onPress, type: .primary, size: .medium, loading: true)
81
- Button(title: "Button", action: onPress, type: .danger, size: .medium, iconLeft: AnyView(Image(systemName: "checkmark.circle")), loading: true)
82
- Button(title: "Button", action: onPress, type: .disabled, size: .medium, iconRight: AnyView(Image(systemName: "checkmark.circle")), loading: true)
83
- Button(title: "Button", action: onPress, type: .outline, size: .medium, iconLeft: AnyView(Image(systemName: "checkmark.circle")), iconRight: AnyView(Image(systemName: "checkmark.circle")), loading: true)
84
- Button(title: "Button", action: onPress, type: .secondary, size: .medium, loading: true)
85
- Button(title: "Button", action: onPress, type: .text, size: .medium, loading: true)
86
- Button(title: "Button", action: onPress, type: .tonal, size: .medium, loading: true)
87
- }
88
- }.padding(16)
89
- }.padding(.top)
26
+ var body: some View {
27
+ BasicColumnBox("Title") {
28
+ MoMoUIKits.Button(title: "Open", action: {})
29
+ }
30
+
31
+ BasicColumnBox("Type") {
32
+ MoMoUIKits.Button(title: "PRIMARY", action: {}, type: .primary)
33
+ MoMoUIKits.Button(title: "DANGER", action: {}, type: .danger)
34
+ MoMoUIKits.Button(title: "SECONDARY", action: {}, type: .secondary)
35
+ MoMoUIKits.Button(title: "TONAL", action: {}, type: .tonal)
36
+ MoMoUIKits.Button(title: "OUTLINE", action: {}, type: .outline)
37
+ MoMoUIKits.Button(title: "TEXT", action: {}, type: .text)
38
+ MoMoUIKits.Button(title: "DISABLED", action: {}, type: .disabled)
39
+ }
40
+
41
+ BasicColumnBox("Size") {
42
+ MoMoUIKits.Button(title: "LARGE", action: {}, size: .large)
43
+ MoMoUIKits.Button(title: "MEDIUM", action: {}, size: .medium)
44
+ MoMoUIKits.Button(title: "SMALL", action: {}, size: .small)
45
+ }
46
+
47
+ BasicColumnBox("Loading") {
48
+ MoMoUIKits.Button(title: "PRIMARY", action: {}, type: .primary, loading: true)
49
+ MoMoUIKits.Button(title: "DANGER", action: {}, type: .danger, loading: true)
50
+ MoMoUIKits.Button(title: "SECONDARY", action: {}, type: .secondary, loading: true)
51
+ MoMoUIKits.Button(title: "TONAL", action: {}, type: .tonal, loading: true)
52
+ MoMoUIKits.Button(title: "OUTLINE", action: {}, type: .outline, loading: true)
53
+ MoMoUIKits.Button(title: "TEXT", action: {}, type: .text, loading: true)
54
+ MoMoUIKits.Button(title: "DISABLED", action: {}, type: .disabled, loading: true)
55
+ }
56
+
57
+ BasicColumnBox("Icon Right") {
58
+ MoMoUIKits.Button(title: "Icon", action: {}, iconRight: url)
59
+ }
60
+
61
+ BasicColumnBox("Icon Left") {
62
+ MoMoUIKits.Button(title: "Icon", action: {}, iconLeft: url)
63
+ }
90
64
  }
65
+ }
91
66
 
92
- func onPress() {
93
- print("Button")
94
- }
67
+ // MARK: - Playground
95
68
 
96
- // MARK: Private
69
+ @available(iOS 16.0, *)
70
+ private struct ButtonPlayground: View {
71
+ @State private var title = "Button"
72
+ @State private var type: PlaygroundOption? = buttonTypeList.first { $0.key == "primary" }
73
+ @State private var size: PlaygroundOption? = buttonSizeList.first { $0.key == "large" }
74
+ @State private var iconRight: PlaygroundOption?
75
+ // Seeded (Compose leaves both nil) so the UseTintColor toggle has an icon to act on.
76
+ @State private var iconLeft: PlaygroundOption? = playgroundIcons.first { $0.key == "basic_home" }
77
+ @State private var full = true
78
+ @State private var loading = false
79
+ @State private var useTintColor = true
97
80
 
98
- @State private var value: String = ""
99
- @State private var disabled: Bool = false
81
+ var body: some View {
82
+ PlaygroundTab(
83
+ component: {
84
+ MoMoUIKits.Button(
85
+ title: title,
86
+ action: {},
87
+ type: (type?.value as? ButtonType) ?? .primary,
88
+ size: (size?.value as? ButtonSize) ?? .large,
89
+ iconLeft: (iconLeft?.value as? String) ?? "",
90
+ iconRight: (iconRight?.value as? String) ?? "",
91
+ isFull: full,
92
+ loading: loading,
93
+ useTintColor: useTintColor
94
+ )
95
+ },
96
+ params: [
97
+ .string("Children", $title),
98
+ .radio("Type", buttonTypeList, $type),
99
+ .radio("Size", buttonSizeList, $size),
100
+ .checkbox("Full", $full),
101
+ .option("IconRight", playgroundIcons, $iconRight),
102
+ .option("IconLeft", playgroundIcons, $iconLeft),
103
+ .checkbox("Loading", $loading),
104
+ .checkbox("UseTintColor", $useTintColor),
105
+ ]
106
+ )
107
+ }
100
108
  }
@@ -2,125 +2,95 @@
2
2
  // CarouselDemo.swift
3
3
  // Example
4
4
  //
5
+ // Preview + Playground demo (DemoScreen pattern).
6
+ //
5
7
 
6
- import SwiftUI
7
8
  import MoMoUIKits
9
+ import SwiftUI
8
10
 
9
- struct CarouselDemo: View {
10
- // MARK: - Playground state
11
- @State private var loop = false
12
- @State private var autoplay = false
13
- @State private var scrollEnabled = true
14
- @State private var inactiveOpacity: Double = 1.0
15
- @State private var inactiveScale: Double = 1.0
11
+ private let slideColors: [Color] = [
12
+ Colors.pink09, Colors.blue08, Colors.green08, Colors.orange08, Colors.mint08,
13
+ ]
16
14
 
17
- private let slideColors: [Color] = [
18
- Colors.pink09,
19
- Colors.blue08,
20
- Colors.green08,
21
- Colors.orange08,
22
- Colors.mint08,
23
- ]
15
+ @ViewBuilder
16
+ private func carouselSlide(_ index: Int) -> some View {
17
+ ZStack {
18
+ slideColors[index % slideColors.count]
19
+ Text("Slide \(index + 1)")
20
+ .font(.headline)
21
+ .foregroundColor(Colors.black01)
22
+ }
23
+ .frame(maxWidth: .infinity)
24
+ .frame(height: 160)
25
+ .cornerRadius(Radius.M)
26
+ }
24
27
 
28
+ struct CarouselDemo: View {
25
29
  var body: some View {
26
- ScrollView {
27
- VStack(alignment: .leading, spacing: Spacing.XL) {
28
- preview
29
- Divider()
30
- playground
31
- }
32
- .padding(Spacing.L)
30
+ if #available(iOS 16.0, *) {
31
+ DemoScreen(preview: { CarouselPreview() }, playground: { CarouselPlayground() })
32
+ } else {
33
+ Text("Requires iOS 16+").padding()
33
34
  }
34
35
  }
36
+ }
35
37
 
36
- // MARK: - Preview cases (mirror CarouselUsage.kt)
37
- private var preview: some View {
38
- VStack(alignment: .leading, spacing: Spacing.XL) {
39
- section("Basic (3 slides)") {
40
- Carousel(itemCount: 3) { index in slide(index) }
41
- .frame(height: 160)
42
- }
43
-
44
- section("Loop enabled") {
45
- Carousel(itemCount: 5, loop: true) { index in slide(index) }
46
- .frame(height: 160)
47
- }
48
-
49
- section("Autoplay (3s interval)") {
50
- Carousel(
51
- itemCount: 5,
52
- loop: true,
53
- autoplay: true,
54
- autoplayInterval: 3.0
55
- ) { index in slide(index) }
56
- .frame(height: 160)
57
- }
58
-
59
- section("Inactive slide effects (opacity=0.5, scale=0.9)") {
60
- Carousel(
61
- itemCount: 5,
62
- loop: true,
63
- inactiveSlideOpacity: 0.5,
64
- inactiveSlideScale: 0.9,
65
- contentPadding: 32
66
- ) { index in slide(index) }
67
- .frame(height: 160)
68
- }
38
+ // MARK: - Preview
69
39
 
70
- section("Scroll disabled") {
71
- Carousel(itemCount: 3, scrollEnabled: false) { index in slide(index) }
72
- .frame(height: 160)
73
- }
40
+ private struct CarouselPreview: View {
41
+ var body: some View {
42
+ BasicColumnBox("Basic (3 slides)", alignment: .leading) {
43
+ Carousel(itemCount: 3) { carouselSlide($0) }.frame(height: 160)
74
44
  }
75
- }
76
-
77
- // MARK: - Playground
78
- private var playground: some View {
79
- VStack(alignment: .leading, spacing: Spacing.M) {
80
- Text("Playground").font(.headline)
81
-
82
- Toggle("Loop", isOn: $loop)
83
- Toggle("Autoplay", isOn: $autoplay)
84
- Toggle("Scroll Enabled", isOn: $scrollEnabled)
85
-
86
- VStack(alignment: .leading) {
87
- Text("Inactive Opacity: \(String(format: "%.2f", inactiveOpacity))")
88
- Slider(value: $inactiveOpacity, in: 0 ... 1)
89
- }
90
- VStack(alignment: .leading) {
91
- Text("Inactive Scale: \(String(format: "%.2f", inactiveScale))")
92
- Slider(value: $inactiveScale, in: 0.5 ... 1)
93
- }
94
-
95
- Carousel(
96
- itemCount: 5,
97
- loop: loop,
98
- autoplay: autoplay,
99
- scrollEnabled: scrollEnabled,
100
- inactiveSlideOpacity: inactiveOpacity,
101
- inactiveSlideScale: inactiveScale
102
- ) { index in slide(index) }
45
+ BasicColumnBox("Loop enabled", alignment: .leading) {
46
+ Carousel(itemCount: 5, loop: true) { carouselSlide($0) }.frame(height: 160)
47
+ }
48
+ BasicColumnBox("Autoplay (3s)", alignment: .leading) {
49
+ Carousel(itemCount: 5, loop: true, autoplay: true, autoplayInterval: 3.0) { carouselSlide($0) }
103
50
  .frame(height: 160)
104
51
  }
105
- }
106
-
107
- // MARK: - Helpers
108
- private func section<Content: View>(_ title: String, @ViewBuilder content: () -> Content) -> some View {
109
- VStack(alignment: .leading, spacing: Spacing.S) {
110
- Text(title).font(.subheadline).bold()
111
- content()
52
+ BasicColumnBox("Inactive effects", alignment: .leading) {
53
+ Carousel(itemCount: 5, loop: true, inactiveSlideOpacity: 0.5, inactiveSlideScale: 0.9, contentPadding: 32) {
54
+ carouselSlide($0)
55
+ }
56
+ .frame(height: 160)
57
+ }
58
+ BasicColumnBox("Scroll disabled", alignment: .leading) {
59
+ Carousel(itemCount: 3, scrollEnabled: false) { carouselSlide($0) }.frame(height: 160)
112
60
  }
113
61
  }
62
+ }
114
63
 
115
- private func slide(_ index: Int) -> some View {
116
- ZStack {
117
- slideColors[index % slideColors.count]
118
- Text("Slide \(index + 1)")
119
- .font(.headline)
120
- .foregroundColor(Colors.black01)
121
- }
122
- .frame(maxWidth: .infinity)
123
- .frame(height: 160)
124
- .cornerRadius(Radius.M)
64
+ // MARK: - Playground
65
+
66
+ @available(iOS 16.0, *)
67
+ private struct CarouselPlayground: View {
68
+ @State private var loop = false
69
+ @State private var autoplay = false
70
+ @State private var scrollEnabled = true
71
+ @State private var inactiveOpacity: Double = 1.0
72
+ @State private var inactiveScale: Double = 1.0
73
+
74
+ var body: some View {
75
+ PlaygroundTab(
76
+ component: {
77
+ Carousel(
78
+ itemCount: 5,
79
+ loop: loop,
80
+ autoplay: autoplay,
81
+ scrollEnabled: scrollEnabled,
82
+ inactiveSlideOpacity: inactiveOpacity,
83
+ inactiveSlideScale: inactiveScale
84
+ ) { carouselSlide($0) }
85
+ .frame(height: 160)
86
+ },
87
+ params: [
88
+ .checkbox("Loop", $loop),
89
+ .checkbox("Autoplay", $autoplay),
90
+ .checkbox("ScrollEnabled", $scrollEnabled),
91
+ .slider("InactiveOpacity", $inactiveOpacity, min: 0, max: 1, step: 0.1),
92
+ .slider("InactiveScale", $inactiveScale, min: 0.5, max: 1, step: 0.1),
93
+ ]
94
+ )
125
95
  }
126
96
  }
@@ -1,63 +1,60 @@
1
1
  //
2
- // CheckBoxDemo.swift
2
+ // CheckboxDemo.swift
3
3
  // Example
4
4
  //
5
- // Created by dung.pham2 on 2/12/24.
5
+ // Preview + Playground demo for Checkbox.
6
6
  //
7
- import SwiftUI
7
+
8
8
  import MoMoUIKits
9
+ import SwiftUI
9
10
 
10
11
  struct CheckboxDemo: View {
11
- @State private var checked = false
12
-
13
12
  var body: some View {
14
- VStack(alignment: .leading, spacing: 20) {
15
- // Interactive checkbox
16
- Checkbox(
17
- $checked,
18
- onChange: { _ in checked = !checked },
19
- title: "Check Box"
20
- )
21
-
22
- // Unchecked checkbox
23
- Checkbox(.constant(false), onChange: { _ in }, title: "Check Box")
24
-
25
- // Indeterminate checkbox
26
- Checkbox(
27
- .constant(true),
28
- // disabled: (({ _ in }) != 0),
29
- onChange: { _ in },
30
- indeterminate: true,
31
- title: "Indeterminate"
32
- )
33
-
34
- // Disabled checkbox
35
- Checkbox(
36
- .constant(true),
37
- disabled: true,
38
- onChange: { _ in },
39
- title: "Disable"
40
- )
41
-
42
- // Disabled indeterminate checkbox
43
- Checkbox(
44
- .constant(true),
45
- disabled: true,
46
- onChange: {_ in },
47
- indeterminate: true,
48
- title: "Disable checked"
49
- )
50
-
51
- // Disabled unchecked checkbox
52
- Checkbox(
53
- .constant(false),
54
- disabled: true,
55
- onChange: { _ in },
56
- title: "Disable"
57
- )
13
+ if #available(iOS 16.0, *) {
14
+ DemoScreen(preview: { CheckboxPreview() }, playground: { CheckboxPlayground() })
15
+ } else {
16
+ Text("Requires iOS 16+").padding()
17
+ }
18
+ }
19
+ }
20
+
21
+ // MARK: - Preview
22
+
23
+ private struct CheckboxPreview: View {
24
+ var body: some View {
25
+ BasicColumnBox("States", alignment: .leading) {
26
+ Checkbox(.constant(true), onChange: { _ in }, title: "Checked")
27
+ Checkbox(.constant(false), onChange: { _ in }, title: "Unchecked")
28
+ Checkbox(.constant(true), onChange: { _ in }, indeterminate: true, title: "Indeterminate")
29
+ }
30
+ BasicColumnBox("Disabled", alignment: .leading) {
31
+ Checkbox(.constant(true), disabled: true, onChange: { _ in }, title: "Disabled checked")
32
+ Checkbox(.constant(true), disabled: true, onChange: { _ in }, indeterminate: true, title: "Disabled indeterminate")
33
+ Checkbox(.constant(false), disabled: true, onChange: { _ in }, title: "Disabled unchecked")
58
34
  }
59
- .padding()
60
35
  }
61
36
  }
62
37
 
38
+ // MARK: - Playground
39
+
40
+ @available(iOS 16.0, *)
41
+ private struct CheckboxPlayground: View {
42
+ @State private var checked = false
43
+ @State private var disabled = false
44
+ @State private var indeterminate = false
45
+ @State private var title = "Check Box"
63
46
 
47
+ var body: some View {
48
+ PlaygroundTab(
49
+ component: {
50
+ Checkbox($checked, disabled: disabled, indeterminate: indeterminate, title: title)
51
+ },
52
+ params: [
53
+ .checkbox("Checked", $checked),
54
+ .checkbox("Disabled", $disabled),
55
+ .checkbox("Indeterminate", $indeterminate),
56
+ .string("Title", $title),
57
+ ]
58
+ )
59
+ }
60
+ }
@@ -1,20 +1,76 @@
1
+ //
2
+ // ChipDemo.swift
3
+ // Example
4
+ //
5
+ // Preview + Playground demo for Chip.
6
+ //
1
7
 
2
- import SwiftUI
3
8
  import MoMoUIKits
9
+ import SwiftUI
10
+
11
+ private let chipSizeList: [PlaygroundOption] = [
12
+ .init("large", Chip.ChipSize.large),
13
+ .init("small", Chip.ChipSize.small),
14
+ ]
4
15
 
5
16
  struct ChipDemo: View {
6
-
7
17
  var body: some View {
8
- VStack(alignment: .leading, spacing: 8) {
9
- Chip(label: "Large", size: Chip.ChipSize.large)
10
- Chip(label: "Small", size: Chip.ChipSize.small)
18
+ if #available(iOS 16.0, *) {
19
+ DemoScreen(preview: { ChipPreview() }, playground: { ChipPlayground() })
20
+ } else {
21
+ Text("Requires iOS 16+").padding()
22
+ }
23
+ }
24
+ }
25
+
26
+ // MARK: - Preview
27
+
28
+ private struct ChipPreview: View {
29
+ var body: some View {
30
+ BasicColumnBox("Size", alignment: .leading) {
31
+ Chip(label: "Large", size: .large)
32
+ Chip(label: "Small", size: .small)
33
+ }
34
+ BasicColumnBox("Icons", alignment: .leading) {
11
35
  Chip(label: "Apple", iconLeft: "basic_home")
12
36
  Chip(label: "Banana", iconRight: "basic_home")
37
+ }
38
+ BasicColumnBox("State", alignment: .leading) {
13
39
  Chip(label: "Orange", backgroundColor: Colors.black01)
14
40
  Chip(label: "Grape", selected: true)
15
41
  Chip(label: "Grape", iconRight: "basic_home", selected: true, iconRightTint: Colors.black05)
16
- Chip(label: "Tagged", accessibilityLabel: "chip_tagged")
17
42
  }
18
- .padding()
43
+ }
44
+ }
45
+
46
+ // MARK: - Playground
47
+
48
+ @available(iOS 16.0, *)
49
+ private struct ChipPlayground: View {
50
+ @State private var label = "Chip"
51
+ @State private var size: PlaygroundOption? = chipSizeList.first { $0.key == "large" }
52
+ @State private var selected = false
53
+ @State private var iconLeft: PlaygroundOption?
54
+ @State private var iconRight: PlaygroundOption?
55
+
56
+ var body: some View {
57
+ PlaygroundTab(
58
+ component: {
59
+ Chip(
60
+ label: label,
61
+ iconLeft: iconLeft?.value as? String,
62
+ iconRight: iconRight?.value as? String,
63
+ selected: selected,
64
+ size: (size?.value as? Chip.ChipSize) ?? .large
65
+ )
66
+ },
67
+ params: [
68
+ .string("Label", $label),
69
+ .radio("Size", chipSizeList, $size),
70
+ .checkbox("Selected", $selected),
71
+ .option("IconLeft", playgroundIcons, $iconLeft),
72
+ .option("IconRight", playgroundIcons, $iconRight),
73
+ ]
74
+ )
19
75
  }
20
76
  }