@momo-kits/native-kits 0.114.2-beta.2 → 0.114.2-beta.21

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 (44) hide show
  1. package/compose/src/commonMain/kotlin/vn/momo/kits/application/AnimationSearchInput.kt +0 -1
  2. package/compose/src/commonMain/kotlin/vn/momo/kits/application/FloatingButton.kt +1 -1
  3. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Header.kt +0 -1
  4. package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderBackground.kt +1 -1
  5. package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderTitle.kt +1 -1
  6. package/compose/src/commonMain/kotlin/vn/momo/kits/application/NavigationContainer.kt +6 -0
  7. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Screen.kt +1 -1
  8. package/compose/src/commonMain/kotlin/vn/momo/kits/application/useHeaderSearchAnimation.kt +6 -3
  9. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Badge.kt +1 -2
  10. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Button.kt +4 -4
  11. package/compose/src/commonMain/kotlin/vn/momo/kits/components/CheckBox.kt +5 -7
  12. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Icon.kt +1 -1
  13. package/compose/src/commonMain/kotlin/vn/momo/kits/components/IconButton.kt +0 -3
  14. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Image.kt +2 -1
  15. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Information.kt +41 -22
  16. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Input.kt +25 -37
  17. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputDropDown.kt +2 -2
  18. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputMoney.kt +3 -3
  19. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputOTP.kt +11 -12
  20. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputSearch.kt +1 -1
  21. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputTextArea.kt +3 -3
  22. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationDot.kt +0 -8
  23. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationNumber.kt +1 -4
  24. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationWhiteDot.kt +0 -10
  25. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +13 -9
  26. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Radio.kt +1 -1
  27. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Switch.kt +0 -3
  28. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tag.kt +1 -1
  29. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +2 -3
  30. package/compose/src/commonMain/kotlin/vn/momo/kits/components/{dateTimePicker → datetimepicker}/DateTimePicker.kt +13 -13
  31. package/compose/src/commonMain/kotlin/vn/momo/kits/components/{dateTimePicker → datetimepicker}/DateTimePickerTypes.kt +1 -1
  32. package/compose/src/commonMain/kotlin/vn/momo/kits/components/{dateTimePicker → datetimepicker}/DateTimePickerUtils.kt +34 -23
  33. package/compose/src/commonMain/kotlin/vn/momo/kits/components/{dateTimePicker → datetimepicker}/WheelPicker.kt +2 -2
  34. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +9 -2
  35. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Item.kt +12 -7
  36. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/AutomationId.kt +1 -1
  37. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Conditional.kt +1 -1
  38. package/ios/Application/Components.swift +11 -14
  39. package/ios/Application/Screen.swift +20 -14
  40. package/ios/Checkbox/Checkbox.swift +1 -1
  41. package/ios/Popup/PopupDisplay.swift +3 -3
  42. package/local.properties +2 -2
  43. package/package.json +1 -1
  44. package/compose/src/commonMain/kotlin/vn/momo/kits/components/dateTimePicker/DateTimePickerExample.kt +0 -90
package/local.properties CHANGED
@@ -4,5 +4,5 @@
4
4
  # Location of the SDK. This is only used by Gradle.
5
5
  # For customization when using a Version Control System, please read the
6
6
  # header note.
7
- #Tue Apr 23 16:40:15 ICT 2024
8
- sdk.dir=/Users/hung.dao1/Library/Android/sdk
7
+ #Wed Aug 21 14:20:12 ICT 2024
8
+ sdk.dir=/Users/huynhdung/Library/Android/sdk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.114.2-beta.2",
3
+ "version": "0.114.2-beta.21",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},
@@ -1,90 +0,0 @@
1
- package vn.momo.kits.components.dateTimePicker
2
-
3
- import androidx.compose.foundation.layout.Column
4
- import androidx.compose.foundation.layout.Spacer
5
- import androidx.compose.foundation.layout.fillMaxWidth
6
- import androidx.compose.foundation.layout.height
7
- import androidx.compose.foundation.layout.padding
8
- import androidx.compose.runtime.Composable
9
- import androidx.compose.runtime.getValue
10
- import androidx.compose.runtime.mutableStateOf
11
- import androidx.compose.runtime.remember
12
- import androidx.compose.runtime.setValue
13
- import androidx.compose.ui.Modifier
14
- import vn.momo.kits.components.Text
15
- import vn.momo.kits.const.Spacing
16
- import vn.momo.kits.const.Typography
17
-
18
- /**
19
- * Example usage of DateTimePicker component
20
- */
21
- @Composable
22
- fun DateTimePickerExample() {
23
- // The current date and time
24
- val now = remember { getCurrentDateTime() }
25
-
26
- // State to hold the selected date
27
- var selectedDate by remember { mutableStateOf(now) }
28
-
29
- Column(
30
- modifier = Modifier
31
- .fillMaxWidth()
32
- .padding(Spacing.M)
33
- ) {
34
- // Display the current selected date
35
- Text(
36
- text = "Selected Date: ${formatLocalDateTime(selectedDate)}",
37
- style = Typography.paragraphDefault
38
- )
39
-
40
- Spacer(modifier = Modifier.height(Spacing.L))
41
-
42
- // Date Picker (DD-MM-YYYY)
43
- Text(
44
- text = "Date Picker",
45
- style = Typography.descriptionDefault
46
- )
47
-
48
- Spacer(modifier = Modifier.height(Spacing.S))
49
-
50
- DateTimePicker(
51
- selectedValue = selectedDate,
52
- onChange = { selectedDate = it },
53
- format = "DD-MM-YYYY"
54
- )
55
-
56
- Spacer(modifier = Modifier.height(Spacing.L))
57
-
58
- // Date and Time Picker (DD-MM-YYYY HH:mm)
59
- Text(
60
- text = "Date and Time Picker",
61
- style = Typography.descriptionDefault
62
- )
63
-
64
- Spacer(modifier = Modifier.height(Spacing.S))
65
-
66
- DateTimePicker(
67
- selectedValue = selectedDate,
68
- onChange = { selectedDate = it },
69
- format = "DD-MM-YYYY-HH-mm",
70
- arrayLabelTime = listOf("Day", "Month", "Year", "Hour", "Minute")
71
- )
72
-
73
- Spacer(modifier = Modifier.height(Spacing.L))
74
-
75
- // Time Picker (HH:mm)
76
- Text(
77
- text = "Time Picker",
78
- style = Typography.descriptionDefault
79
- )
80
-
81
- Spacer(modifier = Modifier.height(Spacing.S))
82
-
83
- DateTimePicker(
84
- selectedValue = selectedDate,
85
- onChange = { selectedDate = it },
86
- format = "HH-mm",
87
- arrayLabelTime = listOf("Hour", "Minute")
88
- )
89
- }
90
- }