@momo-kits/native-kits 0.150.0-beta.1 → 0.150.0-beta.2

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 (23) hide show
  1. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Icon.kt +3 -3
  2. package/package.json +1 -1
  3. package/build/kotlin/commonizedNativeDistributionLocation.txt +0 -1
  4. package/compose/build/generated/compose/resourceGenerator/kotlin/androidMainResourceCollectors/vn/momo/uikits/resources/ActualResourceCollectors.kt +0 -49
  5. package/compose/build/generated/compose/resourceGenerator/kotlin/commonMainResourceAccessors/vn/momo/uikits/resources/Font0.commonMain.kt +0 -187
  6. package/compose/build/generated/compose/resourceGenerator/kotlin/commonMainResourceCollectors/vn/momo/uikits/resources/ExpectResourceCollectors.kt +0 -25
  7. package/compose/build/generated/compose/resourceGenerator/kotlin/commonResClass/vn/momo/uikits/resources/Res.kt +0 -49
  8. package/compose/build/generated/compose/resourceGenerator/kotlin/iosArm64MainResourceCollectors/vn/momo/uikits/resources/ActualResourceCollectors.kt +0 -49
  9. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/momosignature.otf +0 -0
  10. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/momotrustdisplay.otf +0 -0
  11. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_black.otf +0 -0
  12. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_black.ttf +0 -0
  13. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_bold.ttf +0 -0
  14. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_heavy.ttf +0 -0
  15. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_light.ttf +0 -0
  16. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_medium.ttf +0 -0
  17. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_regular.ttf +0 -0
  18. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_semibold.ttf +0 -0
  19. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_thin.otf +0 -0
  20. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_thin.ttf +0 -0
  21. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_ultralight.otf +0 -0
  22. package/compose/build/generated/compose/resourceGenerator/preparedResources/commonMain/composeResources/font/sfprotext_ultralight.ttf +0 -0
  23. package/local.properties +0 -8
@@ -37,12 +37,12 @@ fun Icon(
37
37
 
38
38
  // Memoize color calculation
39
39
  val iconColor = remember(color, theme) {
40
- color ?: theme.colors.text.default
40
+ color
41
41
  }
42
42
 
43
43
  // Memoize ColorFilter creation
44
44
  val colorFilter = remember(iconColor) {
45
- ColorFilter.tint(iconColor)
45
+ iconColor?.let { ColorFilter.tint(it) }
46
46
  }
47
47
 
48
48
  // Memoize content description
@@ -61,4 +61,4 @@ fun Icon(
61
61
  colorFilter = colorFilter,
62
62
  )
63
63
  }
64
- }
64
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.150.0-beta.1",
3
+ "version": "0.150.0-beta.2",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@momo-platform/native-max-api": "1.0.18"
@@ -1 +0,0 @@
1
- /Users/huynhdung/.konan/kotlin-native-prebuilt-macos-aarch64-2.1.0/klib/commonized/2.1.0
@@ -1,49 +0,0 @@
1
- @file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class)
2
-
3
- package vn.momo.uikits.resources
4
-
5
- import kotlin.OptIn
6
- import kotlin.String
7
- import kotlin.collections.Map
8
- import org.jetbrains.compose.resources.DrawableResource
9
- import org.jetbrains.compose.resources.ExperimentalResourceApi
10
- import org.jetbrains.compose.resources.FontResource
11
- import org.jetbrains.compose.resources.PluralStringResource
12
- import org.jetbrains.compose.resources.StringArrayResource
13
- import org.jetbrains.compose.resources.StringResource
14
-
15
- @ExperimentalResourceApi
16
- public actual val Res.allDrawableResources: Map<String, DrawableResource> by lazy {
17
- val map = mutableMapOf<String, DrawableResource>()
18
- return@lazy map
19
- }
20
-
21
-
22
- @ExperimentalResourceApi
23
- public actual val Res.allStringResources: Map<String, StringResource> by lazy {
24
- val map = mutableMapOf<String, StringResource>()
25
- return@lazy map
26
- }
27
-
28
-
29
- @ExperimentalResourceApi
30
- public actual val Res.allStringArrayResources: Map<String, StringArrayResource> by lazy {
31
- val map = mutableMapOf<String, StringArrayResource>()
32
- return@lazy map
33
- }
34
-
35
-
36
- @ExperimentalResourceApi
37
- public actual val Res.allPluralStringResources: Map<String, PluralStringResource> by lazy {
38
- val map = mutableMapOf<String, PluralStringResource>()
39
- return@lazy map
40
- }
41
-
42
-
43
- @ExperimentalResourceApi
44
- public actual val Res.allFontResources: Map<String, FontResource> by lazy {
45
- val map = mutableMapOf<String, FontResource>()
46
- _collectCommonMainFont0Resources(map)
47
- return@lazy map
48
- }
49
-
@@ -1,187 +0,0 @@
1
- @file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class)
2
-
3
- package vn.momo.uikits.resources
4
-
5
- import kotlin.OptIn
6
- import kotlin.String
7
- import kotlin.collections.MutableMap
8
- import org.jetbrains.compose.resources.FontResource
9
- import org.jetbrains.compose.resources.InternalResourceApi
10
-
11
- private object CommonMainFont0 {
12
- public val momosignature: FontResource by
13
- lazy { init_momosignature() }
14
-
15
- public val momotrustdisplay: FontResource by
16
- lazy { init_momotrustdisplay() }
17
-
18
- public val sfprotext_black: FontResource by
19
- lazy { init_sfprotext_black() }
20
-
21
- public val sfprotext_bold: FontResource by
22
- lazy { init_sfprotext_bold() }
23
-
24
- public val sfprotext_heavy: FontResource by
25
- lazy { init_sfprotext_heavy() }
26
-
27
- public val sfprotext_light: FontResource by
28
- lazy { init_sfprotext_light() }
29
-
30
- public val sfprotext_medium: FontResource by
31
- lazy { init_sfprotext_medium() }
32
-
33
- public val sfprotext_regular: FontResource by
34
- lazy { init_sfprotext_regular() }
35
-
36
- public val sfprotext_semibold: FontResource by
37
- lazy { init_sfprotext_semibold() }
38
-
39
- public val sfprotext_thin: FontResource by
40
- lazy { init_sfprotext_thin() }
41
-
42
- public val sfprotext_ultralight: FontResource by
43
- lazy { init_sfprotext_ultralight() }
44
- }
45
-
46
- @InternalResourceApi
47
- internal fun _collectCommonMainFont0Resources(map: MutableMap<String, FontResource>) {
48
- map.put("momosignature", CommonMainFont0.momosignature)
49
- map.put("momotrustdisplay", CommonMainFont0.momotrustdisplay)
50
- map.put("sfprotext_black", CommonMainFont0.sfprotext_black)
51
- map.put("sfprotext_bold", CommonMainFont0.sfprotext_bold)
52
- map.put("sfprotext_heavy", CommonMainFont0.sfprotext_heavy)
53
- map.put("sfprotext_light", CommonMainFont0.sfprotext_light)
54
- map.put("sfprotext_medium", CommonMainFont0.sfprotext_medium)
55
- map.put("sfprotext_regular", CommonMainFont0.sfprotext_regular)
56
- map.put("sfprotext_semibold", CommonMainFont0.sfprotext_semibold)
57
- map.put("sfprotext_thin", CommonMainFont0.sfprotext_thin)
58
- map.put("sfprotext_ultralight", CommonMainFont0.sfprotext_ultralight)
59
- }
60
-
61
- public val Res.font.momosignature: FontResource
62
- get() = CommonMainFont0.momosignature
63
-
64
- private fun init_momosignature(): FontResource = org.jetbrains.compose.resources.FontResource(
65
- "font:momosignature",
66
- setOf(
67
- org.jetbrains.compose.resources.ResourceItem(setOf(),
68
- "composeResources/vn.momo.uikits.resources/font/momosignature.otf", -1, -1),
69
- )
70
- )
71
-
72
- public val Res.font.momotrustdisplay: FontResource
73
- get() = CommonMainFont0.momotrustdisplay
74
-
75
- private fun init_momotrustdisplay(): FontResource = org.jetbrains.compose.resources.FontResource(
76
- "font:momotrustdisplay",
77
- setOf(
78
- org.jetbrains.compose.resources.ResourceItem(setOf(),
79
- "composeResources/vn.momo.uikits.resources/font/momotrustdisplay.otf", -1, -1),
80
- )
81
- )
82
-
83
- public val Res.font.sfprotext_black: FontResource
84
- get() = CommonMainFont0.sfprotext_black
85
-
86
- private fun init_sfprotext_black(): FontResource = org.jetbrains.compose.resources.FontResource(
87
- "font:sfprotext_black",
88
- setOf(
89
- org.jetbrains.compose.resources.ResourceItem(setOf(),
90
- "composeResources/vn.momo.uikits.resources/font/sfprotext_black.otf", -1, -1),
91
- org.jetbrains.compose.resources.ResourceItem(setOf(),
92
- "composeResources/vn.momo.uikits.resources/font/sfprotext_black.ttf", -1, -1),
93
- )
94
- )
95
-
96
- public val Res.font.sfprotext_bold: FontResource
97
- get() = CommonMainFont0.sfprotext_bold
98
-
99
- private fun init_sfprotext_bold(): FontResource = org.jetbrains.compose.resources.FontResource(
100
- "font:sfprotext_bold",
101
- setOf(
102
- org.jetbrains.compose.resources.ResourceItem(setOf(),
103
- "composeResources/vn.momo.uikits.resources/font/sfprotext_bold.ttf", -1, -1),
104
- )
105
- )
106
-
107
- public val Res.font.sfprotext_heavy: FontResource
108
- get() = CommonMainFont0.sfprotext_heavy
109
-
110
- private fun init_sfprotext_heavy(): FontResource = org.jetbrains.compose.resources.FontResource(
111
- "font:sfprotext_heavy",
112
- setOf(
113
- org.jetbrains.compose.resources.ResourceItem(setOf(),
114
- "composeResources/vn.momo.uikits.resources/font/sfprotext_heavy.ttf", -1, -1),
115
- )
116
- )
117
-
118
- public val Res.font.sfprotext_light: FontResource
119
- get() = CommonMainFont0.sfprotext_light
120
-
121
- private fun init_sfprotext_light(): FontResource = org.jetbrains.compose.resources.FontResource(
122
- "font:sfprotext_light",
123
- setOf(
124
- org.jetbrains.compose.resources.ResourceItem(setOf(),
125
- "composeResources/vn.momo.uikits.resources/font/sfprotext_light.ttf", -1, -1),
126
- )
127
- )
128
-
129
- public val Res.font.sfprotext_medium: FontResource
130
- get() = CommonMainFont0.sfprotext_medium
131
-
132
- private fun init_sfprotext_medium(): FontResource = org.jetbrains.compose.resources.FontResource(
133
- "font:sfprotext_medium",
134
- setOf(
135
- org.jetbrains.compose.resources.ResourceItem(setOf(),
136
- "composeResources/vn.momo.uikits.resources/font/sfprotext_medium.ttf", -1, -1),
137
- )
138
- )
139
-
140
- public val Res.font.sfprotext_regular: FontResource
141
- get() = CommonMainFont0.sfprotext_regular
142
-
143
- private fun init_sfprotext_regular(): FontResource = org.jetbrains.compose.resources.FontResource(
144
- "font:sfprotext_regular",
145
- setOf(
146
- org.jetbrains.compose.resources.ResourceItem(setOf(),
147
- "composeResources/vn.momo.uikits.resources/font/sfprotext_regular.ttf", -1, -1),
148
- )
149
- )
150
-
151
- public val Res.font.sfprotext_semibold: FontResource
152
- get() = CommonMainFont0.sfprotext_semibold
153
-
154
- private fun init_sfprotext_semibold(): FontResource = org.jetbrains.compose.resources.FontResource(
155
- "font:sfprotext_semibold",
156
- setOf(
157
- org.jetbrains.compose.resources.ResourceItem(setOf(),
158
- "composeResources/vn.momo.uikits.resources/font/sfprotext_semibold.ttf", -1, -1),
159
- )
160
- )
161
-
162
- public val Res.font.sfprotext_thin: FontResource
163
- get() = CommonMainFont0.sfprotext_thin
164
-
165
- private fun init_sfprotext_thin(): FontResource = org.jetbrains.compose.resources.FontResource(
166
- "font:sfprotext_thin",
167
- setOf(
168
- org.jetbrains.compose.resources.ResourceItem(setOf(),
169
- "composeResources/vn.momo.uikits.resources/font/sfprotext_thin.otf", -1, -1),
170
- org.jetbrains.compose.resources.ResourceItem(setOf(),
171
- "composeResources/vn.momo.uikits.resources/font/sfprotext_thin.ttf", -1, -1),
172
- )
173
- )
174
-
175
- public val Res.font.sfprotext_ultralight: FontResource
176
- get() = CommonMainFont0.sfprotext_ultralight
177
-
178
- private fun init_sfprotext_ultralight(): FontResource =
179
- org.jetbrains.compose.resources.FontResource(
180
- "font:sfprotext_ultralight",
181
- setOf(
182
- org.jetbrains.compose.resources.ResourceItem(setOf(),
183
- "composeResources/vn.momo.uikits.resources/font/sfprotext_ultralight.otf", -1, -1),
184
- org.jetbrains.compose.resources.ResourceItem(setOf(),
185
- "composeResources/vn.momo.uikits.resources/font/sfprotext_ultralight.ttf", -1, -1),
186
- )
187
- )
@@ -1,25 +0,0 @@
1
- package vn.momo.uikits.resources
2
-
3
- import kotlin.String
4
- import kotlin.collections.Map
5
- import org.jetbrains.compose.resources.DrawableResource
6
- import org.jetbrains.compose.resources.ExperimentalResourceApi
7
- import org.jetbrains.compose.resources.FontResource
8
- import org.jetbrains.compose.resources.PluralStringResource
9
- import org.jetbrains.compose.resources.StringArrayResource
10
- import org.jetbrains.compose.resources.StringResource
11
-
12
- @ExperimentalResourceApi
13
- public expect val Res.allDrawableResources: Map<String, DrawableResource>
14
-
15
- @ExperimentalResourceApi
16
- public expect val Res.allStringResources: Map<String, StringResource>
17
-
18
- @ExperimentalResourceApi
19
- public expect val Res.allStringArrayResources: Map<String, StringArrayResource>
20
-
21
- @ExperimentalResourceApi
22
- public expect val Res.allPluralStringResources: Map<String, PluralStringResource>
23
-
24
- @ExperimentalResourceApi
25
- public expect val Res.allFontResources: Map<String, FontResource>
@@ -1,49 +0,0 @@
1
- @file:OptIn(
2
- org.jetbrains.compose.resources.InternalResourceApi::class,
3
- org.jetbrains.compose.resources.ExperimentalResourceApi::class,
4
- )
5
-
6
- package vn.momo.uikits.resources
7
-
8
- import kotlin.ByteArray
9
- import kotlin.OptIn
10
- import kotlin.String
11
- import org.jetbrains.compose.resources.ExperimentalResourceApi
12
- import org.jetbrains.compose.resources.getResourceUri
13
- import org.jetbrains.compose.resources.readResourceBytes
14
-
15
- public object Res {
16
- /**
17
- * Reads the content of the resource file at the specified path and returns it as a byte array.
18
- *
19
- * Example: `val bytes = Res.readBytes("files/key.bin")`
20
- *
21
- * @param path The path of the file to read in the compose resource's directory.
22
- * @return The content of the file as a byte array.
23
- */
24
- @ExperimentalResourceApi
25
- public suspend fun readBytes(path: String): ByteArray =
26
- readResourceBytes("composeResources/vn.momo.uikits.resources/" + path)
27
-
28
- /**
29
- * Returns the URI string of the resource file at the specified path.
30
- *
31
- * Example: `val uri = Res.getUri("files/key.bin")`
32
- *
33
- * @param path The path of the file in the compose resource's directory.
34
- * @return The URI string of the file.
35
- */
36
- @ExperimentalResourceApi
37
- public fun getUri(path: String): String =
38
- getResourceUri("composeResources/vn.momo.uikits.resources/" + path)
39
-
40
- public object drawable
41
-
42
- public object string
43
-
44
- public object array
45
-
46
- public object plurals
47
-
48
- public object font
49
- }
@@ -1,49 +0,0 @@
1
- @file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class)
2
-
3
- package vn.momo.uikits.resources
4
-
5
- import kotlin.OptIn
6
- import kotlin.String
7
- import kotlin.collections.Map
8
- import org.jetbrains.compose.resources.DrawableResource
9
- import org.jetbrains.compose.resources.ExperimentalResourceApi
10
- import org.jetbrains.compose.resources.FontResource
11
- import org.jetbrains.compose.resources.PluralStringResource
12
- import org.jetbrains.compose.resources.StringArrayResource
13
- import org.jetbrains.compose.resources.StringResource
14
-
15
- @ExperimentalResourceApi
16
- public actual val Res.allDrawableResources: Map<String, DrawableResource> by lazy {
17
- val map = mutableMapOf<String, DrawableResource>()
18
- return@lazy map
19
- }
20
-
21
-
22
- @ExperimentalResourceApi
23
- public actual val Res.allStringResources: Map<String, StringResource> by lazy {
24
- val map = mutableMapOf<String, StringResource>()
25
- return@lazy map
26
- }
27
-
28
-
29
- @ExperimentalResourceApi
30
- public actual val Res.allStringArrayResources: Map<String, StringArrayResource> by lazy {
31
- val map = mutableMapOf<String, StringArrayResource>()
32
- return@lazy map
33
- }
34
-
35
-
36
- @ExperimentalResourceApi
37
- public actual val Res.allPluralStringResources: Map<String, PluralStringResource> by lazy {
38
- val map = mutableMapOf<String, PluralStringResource>()
39
- return@lazy map
40
- }
41
-
42
-
43
- @ExperimentalResourceApi
44
- public actual val Res.allFontResources: Map<String, FontResource> by lazy {
45
- val map = mutableMapOf<String, FontResource>()
46
- _collectCommonMainFont0Resources(map)
47
- return@lazy map
48
- }
49
-
package/local.properties DELETED
@@ -1,8 +0,0 @@
1
- ## This file must *NOT* be checked into Version Control Systems,
2
- # as it contains information specific to your local configuration.
3
- #
4
- # Location of the SDK. This is only used by Gradle.
5
- # For customization when using a Version Control System, please read the
6
- # header note.
7
- #Wed Aug 21 14:20:12 ICT 2024
8
- sdk.dir=/Users/huynhdung/Library/Android/sdk