@onekeyfe/react-native-native-list 6.7.0-2 → 6.7.0-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 (148) hide show
  1. package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +14 -1
  2. package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +245 -9
  3. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +35 -7
  4. package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +25 -3
  5. package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +17 -1
  6. package/android/src/main/java/com/onekey/nativelist/NativeListButtonGroupRenderer.kt +102 -0
  7. package/android/src/main/java/com/onekey/nativelist/NativeListContainerSlotAdapter.kt +12 -0
  8. package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +102 -7
  9. package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +225 -11
  10. package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +147 -33
  11. package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +92 -28
  12. package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +25 -0
  13. package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +149 -3
  14. package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +51 -0
  15. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +2 -0
  16. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +2 -0
  17. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +3 -2
  18. package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +69 -0
  19. package/android/src/main/java/com/onekey/nativelist/NativeListTextView.kt +55 -1
  20. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +1953 -117
  21. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +35 -0
  22. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListIdentityTrailingAxisTest.kt +36 -0
  23. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingSlotFrameTest.kt +68 -0
  24. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListLeadingVisualClipPolicyTest.kt +44 -0
  25. package/android/src/test/java/com/margelo/nitro/nativelist/NativeListPressPolicyTest.kt +10 -0
  26. package/docs/ROW_TEMPLATES.md +70 -11
  27. package/docs/SPEC.md +1235 -20
  28. package/docs/STYLE_SPEC.md +6 -0
  29. package/ios/HybridNativeList.swift +21 -2
  30. package/ios/NativeListAccessoryStack.swift +235 -39
  31. package/ios/NativeListActivityDetailsView.swift +30 -11
  32. package/ios/NativeListActivityRenderer.swift +8 -2
  33. package/ios/NativeListButtonGroupRenderer.swift +89 -0
  34. package/ios/NativeListDataRowRenderer.swift +155 -27
  35. package/ios/NativeListDesignAssets.swift +9 -0
  36. package/ios/NativeListIdentityRenderer.swift +239 -31
  37. package/ios/NativeListLeadingVisual.swift +119 -22
  38. package/ios/NativeListMarketRenderer.swift +113 -18
  39. package/ios/NativeListMessageRenderer.swift +34 -1
  40. package/ios/NativeListModels.swift +42 -2
  41. package/ios/NativeListRendererRegistry.swift +1 -0
  42. package/ios/NativeListResolvedText.swift +2 -1
  43. package/ios/NativeListRowHost.swift +14 -0
  44. package/ios/NativeListSectionHeaderRenderer.swift +88 -0
  45. package/ios/RNCNativeListView.swift +1052 -58
  46. package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +15 -0
  47. package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +4 -0
  48. package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/Contents.json +1 -0
  49. package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/icon.svg +1 -0
  50. package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/Contents.json +1 -0
  51. package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/icon.svg +1 -0
  52. package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +15 -0
  53. package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +3 -0
  54. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/Contents.json +1 -0
  55. package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/icon.svg +1 -0
  56. package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +15 -0
  57. package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +3 -0
  58. package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/Contents.json +1 -0
  59. package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/icon.svg +1 -0
  60. package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/Contents.json +1 -0
  61. package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/icon.svg +1 -0
  62. package/ios/tests/NativeListAccessoryStackTests.swift +89 -0
  63. package/ios/tests/NativeListActivityPresentationTests.swift +153 -0
  64. package/ios/tests/NativeListIdentityTitleIconLayoutTests.swift +81 -0
  65. package/ios/tests/NativeListLeadingVisualPairBackdropTests.swift +50 -0
  66. package/ios/tests/NativeListLifecycleTests.swift +2789 -3
  67. package/ios/tests/NativeListMarketMetricsTests.swift +117 -0
  68. package/lib/module/NativeList.js +223 -36
  69. package/lib/module/NativeList.web.js +260 -33
  70. package/lib/module/index.js +1 -1
  71. package/lib/module/models.js +3 -0
  72. package/lib/module/selection.js +1 -1
  73. package/lib/module/validation.js +1386 -81
  74. package/lib/module/web/NativeListWebEngine.js +914 -80
  75. package/lib/module/web/templates/ActivityRowRenderer.js +487 -7
  76. package/lib/module/web/templates/ButtonGroupRowRenderer.js +47 -0
  77. package/lib/module/web/templates/DataRowRenderer.js +40 -5
  78. package/lib/module/web/templates/IdentityRowRenderer.js +145 -5
  79. package/lib/module/web/templates/MarketRowRenderer.js +8 -3
  80. package/lib/module/web/templates/MarketTableRowRenderer.js +577 -0
  81. package/lib/module/web/templates/MediaTileRowRenderer.js +260 -5
  82. package/lib/module/web/templates/MessageRowRenderer.js +18 -2
  83. package/lib/module/web/templates/RowContainerStyle.js +1 -0
  84. package/lib/module/web/templates/RowRendererRegistry.js +8 -3
  85. package/lib/module/web/templates/SectionHeaderRowRenderer.js +70 -3
  86. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  87. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  88. package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  89. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  90. package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  91. package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  92. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  93. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  94. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  95. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  96. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  97. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  98. package/lib/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  99. package/lib/typescript/src/NativeList.d.ts +3 -3
  100. package/lib/typescript/src/NativeList.nitro.d.ts +2 -0
  101. package/lib/typescript/src/NativeList.types.d.ts +29 -1
  102. package/lib/typescript/src/NativeList.web.d.ts +2 -2
  103. package/lib/typescript/src/index.d.ts +2 -2
  104. package/lib/typescript/src/models.d.ts +196 -17
  105. package/lib/typescript/src/validation.d.ts +20 -0
  106. package/lib/typescript/src/web/NativeListWebEngine.d.ts +58 -1
  107. package/lib/typescript/src/web/templates/ActivityRowRenderer.d.ts +3 -3
  108. package/lib/typescript/src/web/templates/ButtonGroupRowRenderer.d.ts +14 -0
  109. package/lib/typescript/src/web/templates/IdentityRowRenderer.d.ts +1 -1
  110. package/lib/typescript/src/web/templates/MarketTableRowRenderer.d.ts +17 -0
  111. package/lib/typescript/src/web/templates/MediaTileRowRenderer.d.ts +3 -3
  112. package/lib/typescript/src/web/templates/MessageRowRenderer.d.ts +10 -4
  113. package/lib/typescript/src/web/templates/RowRendererRegistry.d.ts +3 -1
  114. package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +26 -0
  115. package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +4 -0
  116. package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +10 -0
  117. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +20 -0
  118. package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +14 -0
  119. package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +12 -0
  120. package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +2 -0
  121. package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +43 -0
  122. package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +4 -0
  123. package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +4 -0
  124. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +4 -0
  125. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +6 -0
  126. package/nitrogen/generated/shared/json/NativeListConfig.json +2 -0
  127. package/package.json +3 -3
  128. package/react-native-native-list.podspec +1 -0
  129. package/src/NativeList.nitro.ts +2 -0
  130. package/src/NativeList.tsx +418 -89
  131. package/src/NativeList.types.ts +34 -1
  132. package/src/NativeList.web.tsx +417 -66
  133. package/src/index.ts +2 -0
  134. package/src/models.ts +355 -143
  135. package/src/selection.ts +1 -0
  136. package/src/validation.ts +3315 -166
  137. package/src/web/NativeListWebEngine.ts +1473 -113
  138. package/src/web/templates/ActivityRowRenderer.ts +732 -8
  139. package/src/web/templates/ButtonGroupRowRenderer.ts +58 -0
  140. package/src/web/templates/DataRowRenderer.ts +93 -20
  141. package/src/web/templates/IdentityRowRenderer.ts +217 -6
  142. package/src/web/templates/MarketRowRenderer.ts +19 -3
  143. package/src/web/templates/MarketTableRowRenderer.ts +755 -0
  144. package/src/web/templates/MediaTileRowRenderer.ts +313 -5
  145. package/src/web/templates/MessageRowRenderer.ts +23 -7
  146. package/src/web/templates/RowContainerStyle.ts +2 -0
  147. package/src/web/templates/RowRendererRegistry.ts +21 -6
  148. package/src/web/templates/SectionHeaderRowRenderer.ts +89 -5
@@ -0,0 +1,35 @@
1
+ package com.margelo.nitro.nativelist
2
+
3
+ import org.junit.Assert.assertEquals
4
+ import org.junit.Test
5
+
6
+ class NativeListActivityHostClipPolicyTest {
7
+ // One Activity row view serves legacy and rich rows and is reused across
8
+ // binds. A row with an overhanging network badge switches the host's
9
+ // clipping off, whether the badge sits on the host's visual (legacy row,
10
+ // OK-66071) or on the details view's visual (rich row, OK-66275); the next
11
+ // bind must derive clipping afresh, so a row without a badge reusing that
12
+ // view clips again instead of drawing over a neighbouring row (PR #185
13
+ // review).
14
+ @Test
15
+ fun rebindSequenceDerivesClippingFromEachBoundItem() {
16
+ data class Bind(val name: String, val rich: Boolean, val leadingOverhangs: Boolean, val clips: Boolean)
17
+
18
+ val binds = listOf(
19
+ Bind("legacy row, plain token", rich = false, leadingOverhangs = false, clips = true),
20
+ Bind("legacy row, network badge", rich = false, leadingOverhangs = true, clips = false),
21
+ Bind("rich row reusing the badge row's view", rich = true, leadingOverhangs = false, clips = true),
22
+ // The app's history rows carry `amounts`, so their badge lives on the
23
+ // details view's leading visual: a rich row with such a badge must stop
24
+ // clipping too (OK-66275).
25
+ Bind("rich row, network badge in details", rich = true, leadingOverhangs = true, clips = false),
26
+ Bind("legacy row, badge again", rich = false, leadingOverhangs = true, clips = false),
27
+ Bind("legacy row, hidden leading", rich = false, leadingOverhangs = false, clips = true),
28
+ )
29
+
30
+ assertEquals(
31
+ binds.map(Bind::clips),
32
+ binds.map { nativeListActivityHostClips(leadingOverhangs = it.leadingOverhangs) },
33
+ )
34
+ }
35
+ }
@@ -0,0 +1,36 @@
1
+ package com.margelo.nitro.nativelist
2
+
3
+ import org.junit.Assert.assertEquals
4
+ import org.junit.Test
5
+
6
+ class NativeListIdentityTrailingAxisTest {
7
+ // Identity trailing accessories stack vertically except for the pairs iOS
8
+ // lays out side by side. The Swap token selector's `valuePair` + DotVerSolid
9
+ // menu icon was missing from the Android list, so the balance was pushed
10
+ // above the menu and clipped inside the 60dp row.
11
+ @Test
12
+ fun matchesTheSideBySidePairsOfIos() {
13
+ fun d(kind: String, name: String = "", actionKey: String = "") =
14
+ NativeListTrailingDescriptor(kind, name, actionKey)
15
+
16
+ val cases: List<Pair<List<NativeListTrailingDescriptor>, Boolean>> = listOf(
17
+ listOf(d("valuePair")) to false,
18
+ listOf(d("valuePair"), d("menu", actionKey = "menu")) to true,
19
+ listOf(d("valuePair"), d("icon", "DotVerSolid", "menu")) to true,
20
+ listOf(d("valuePair"), d("icon", "DotVerSolid")) to false,
21
+ listOf(d("valuePair"), d("icon", "InfoCircleOutline", "menu")) to false,
22
+ listOf(d("icon", "DotVerSolid", "menu"), d("valuePair")) to false,
23
+ listOf(d("valuePair"), d("chevron")) to true,
24
+ listOf(d("icon", "RefreshCcwOutline"), d("chevron")) to true,
25
+ listOf(d("icon", "RefreshCcwOutline", "refresh"), d("chevron")) to false,
26
+ listOf(d("icon", "PencilOutline", "edit"), d("icon", "DragOutline")) to true,
27
+ listOf(d("value"), d("checkbox")) to true,
28
+ listOf(d("valuePair"), d("icon", "DotVerSolid", "menu"), d("chevron")) to false,
29
+ )
30
+
31
+ assertEquals(
32
+ cases.map { it.second },
33
+ cases.map { nativeListIdentityTrailingIsHorizontal(it.first) },
34
+ )
35
+ }
36
+ }
@@ -0,0 +1,68 @@
1
+ package com.margelo.nitro.nativelist
2
+
3
+ import org.junit.Assert.assertEquals
4
+ import org.junit.Test
5
+
6
+ class NativeListLeadingSlotFrameTest {
7
+ // 40dp box, 16dp badge hanging 2dp past the frame, 2dp pair ring.
8
+ private fun frame(index: Int, count: Int, network: Int? = null, pair: Int? = null) =
9
+ nativeListLeadingSlotFrame(
10
+ index = index,
11
+ sourceCount = count,
12
+ networkIndex = network,
13
+ pairIndex = pair,
14
+ width = 40,
15
+ height = 40,
16
+ badgeSize = 16,
17
+ badgeOverhang = 2,
18
+ pairRing = 2,
19
+ )
20
+
21
+ private val full = NativeListSlotFrame(0, 0, 40, 40)
22
+ private val badge = NativeListSlotFrame(26, 26, 16, 16)
23
+ private val primary = NativeListSlotFrame(0, 0, 24, 24)
24
+ private val secondary = NativeListSlotFrame(14, 14, 24, 24)
25
+
26
+ @Test
27
+ fun loneTokenFillsTheBox() {
28
+ assertEquals(full, frame(0, 1))
29
+ }
30
+
31
+ @Test
32
+ fun tokenWithNetworkBadgeKeepsTheCornerBadge() {
33
+ assertEquals(listOf(full, badge), listOf(frame(0, 2, network = 1), frame(1, 2, network = 1)))
34
+ }
35
+
36
+ // OK-66071: the history swap rows bind [send, network, receive]. Android laid
37
+ // the receive token over the whole box, hiding the send token and the network
38
+ // badge; iOS drew it in the badge's corner slot over the badge.
39
+ @Test
40
+ fun activityPairStepsTheSecondaryToTheBottomRightUnderTheBadge() {
41
+ assertEquals(
42
+ listOf(primary, badge, secondary),
43
+ (0 until 3).map { frame(it, 3, network = 1, pair = 2) },
44
+ )
45
+ }
46
+
47
+ @Test
48
+ fun activityPairWithoutNetworkBadge() {
49
+ assertEquals(listOf(primary, secondary), listOf(frame(0, 2, pair = 1), frame(1, 2, pair = 1)))
50
+ }
51
+
52
+ @Test
53
+ fun pairMemberIsSixTenthsOfTheBox() {
54
+ assertEquals(listOf(24, 19, 29), listOf(40, 32, 48).map(::nativeListLeadingPairMemberSize))
55
+ }
56
+
57
+ @Test
58
+ fun stackedImagesStepDiagonally() {
59
+ assertEquals(
60
+ listOf(
61
+ NativeListSlotFrame(0, 5, 29, 29),
62
+ NativeListSlotFrame(6, 5, 29, 29),
63
+ NativeListSlotFrame(11, 5, 29, 29),
64
+ ),
65
+ (0 until 3).map { frame(it, 3) },
66
+ )
67
+ }
68
+ }
@@ -0,0 +1,44 @@
1
+ package com.margelo.nitro.nativelist
2
+
3
+ import org.junit.Assert.assertEquals
4
+ import org.junit.Test
5
+
6
+ class NativeListLeadingVisualClipPolicyTest {
7
+ // OK-65694: the account selector's network badge is laid out past the leading
8
+ // frame. Android clips a child to its own bounds while its parent clips
9
+ // children, so a host row must stop clipping exactly when a bound badge
10
+ // overhangs; a plain image keeps the default clipping.
11
+ @Test
12
+ fun hostStopsClippingOnlyForBadgesLaidOutPastTheFrame() {
13
+ data class Case(
14
+ val kind: String,
15
+ val sourceCount: Int = 1,
16
+ val hasCornerIcon: Boolean = false,
17
+ val overlayCount: Int = 0,
18
+ val expected: Boolean,
19
+ )
20
+
21
+ val cases = listOf(
22
+ Case(kind = "account", expected = false),
23
+ Case(kind = "account", overlayCount = 1, expected = true),
24
+ Case(kind = "wallet", overlayCount = 2, expected = true),
25
+ Case(kind = "token", sourceCount = 1, expected = false),
26
+ Case(kind = "token", sourceCount = 2, expected = true),
27
+ Case(kind = "stackedImages", sourceCount = 3, expected = false),
28
+ Case(kind = "network", hasCornerIcon = true, expected = true),
29
+ Case(kind = "icon", sourceCount = 0, expected = false),
30
+ )
31
+
32
+ assertEquals(
33
+ cases.map(Case::expected),
34
+ cases.map { case ->
35
+ nativeListLeadingVisualOverhangsFrame(
36
+ kind = case.kind,
37
+ sourceCount = case.sourceCount,
38
+ hasCornerIcon = case.hasCornerIcon,
39
+ overlayCount = case.overlayCount,
40
+ )
41
+ },
42
+ )
43
+ }
44
+ }
@@ -26,6 +26,7 @@ class NativeListPressPolicyTest {
26
26
  Case(type = "system", variant = "end", expected = false),
27
27
  Case(type = "system", variant = "spacer", expected = false),
28
28
  Case(type = "walletGroup", expected = false),
29
+ Case(type = "buttonGroup", expected = false),
29
30
  )
30
31
 
31
32
  assertEquals(
@@ -40,4 +41,13 @@ class NativeListPressPolicyTest {
40
41
  },
41
42
  )
42
43
  }
44
+
45
+ // OK-65494: a row value such as a network balance is part of the row's hit
46
+ // area; only a text accessory with an action key handles its own tap.
47
+ @Test
48
+ fun trailingTextOwnsItsTapOnlyWithAnAction() {
49
+ assertEquals(false, isNativeListTrailingTextClickable(null))
50
+ assertEquals(false, isNativeListTrailingTextClickable(""))
51
+ assertEquals(true, isNativeListTrailingTextClickable("network.edit"))
52
+ }
43
53
  }
@@ -1,6 +1,6 @@
1
1
  # NativeList row template catalog
2
2
 
3
- This catalog defines the **12 types in `RowModel`** on the consolidated spec
3
+ This catalog defines the **13 types in `RowModel`** on the consolidated spec
4
4
  branch. Each template owns a fixed internal structure. Its `style` customizes
5
5
  named fields inside that structure; it does not define a new layout or enable a
6
6
  list feature. See [STYLE_SPEC.md](STYLE_SPEC.md) for tokens, numeric bounds,
@@ -34,6 +34,7 @@ template the owner of sections or the indexed bar.
34
34
  | [metricCard](#metriccard) | KPI or portfolio summary | Label/value card or named composite metrics arrangement |
35
35
  | [sectionHeader](#sectionheader) | Structural section heading | Header text + optional summary value/controls |
36
36
  | [action](#action) | A row-level command | Label + optional icon/value/controls |
37
+ | [buttonGroup](#buttongroup) | DeFi position actions | One or more equal-width info-outline buttons |
37
38
  | [system](#system) | Loading, retry, warning, empty/end or spacer | Variant-specific bounded status content |
38
39
 
39
40
  The style roles below form the shared configurable contract on Web, iOS and
@@ -53,7 +54,23 @@ separately from source implementation in STYLE_SPEC §9.
53
54
 
54
55
  - **Use:** an identifiable asset, account, wallet, network or setting.
55
56
  - **Required data:** `leading`, `title`; optional `subtitle`, `tertiary`, `badges`,
56
- `trailing`, `leadingAction`, match ranges and structured subtitle segments.
57
+ `trailing`, `leadingAction`, `titleIcon`, Web-only `secondaryTitleIcon`, match ranges and structured subtitle segments.
58
+ - **Static title icon:** optional 20-point icon immediately after the title with
59
+ a 4-point gap. It has no click action; an optional Web `hoverActionKey`
60
+ emits an icon-anchored tooltip request on hover or touch. A trailing `button` is the fixed small
61
+ secondary text action and uses the normal accessory event slot.
62
+ - **Title image:** optional `titleImage` renders a circular image after the title
63
+ icons and before suffixes/badges. Its `ImageSource` dimensions must be square,
64
+ 1...40 logical units. Optional Web `hoverActionKey` uses the existing anchored
65
+ help event; native keeps the image decorative for touch. See SPEC.md.
66
+ - **Second Web help icon:** `secondaryTitleIcon` uses the same descriptor after
67
+ `titleIcon`; each glyph has its own hover/touch anchor. Native ignores it.
68
+ - **Decorative refresh:** a trailing `RefreshCcwOutline` without `actionKey`
69
+ occupies a 16-point frame and leaves row press with the row.
70
+ - **Web neutral badge:** generic Identity rows with an explicit `tone: 'neutral'`
71
+ use a 20-pixel pill with 12/16 medium text, 8-pixel horizontal and 2-pixel
72
+ vertical padding, and the strong/subdued theme colors. Omitted tone and
73
+ selector presentations keep their existing badge defaults.
57
74
  - **Variants:** default horizontal row; `accountSelector` and `networkSelector`
58
75
  preserve selector control geometry; `walletSidebar` uses a compact, centered
59
76
  wallet presentation. A variant is explicit model data, never inferred from font size.
@@ -63,11 +80,25 @@ separately from source implementation in STYLE_SPEC §9.
63
80
  and 12 for other templates (Web 0).
64
81
  - **Platform default:** without `subtitleLines` or `style.subtitle.lines`, the
65
82
  subtitle shows one line on iOS and Web but two on Android (STYLE_SPEC §6.2).
83
+ - **Recipient opt-in:** `subtitleLines: 0` allows the whole subtitle to wrap;
84
+ `contentHeight: 'auto'` sizes the identity row to that content. Both are
85
+ explicit so existing selector rows retain their geometry. Optional
86
+ `longPressActionKey` emits a row action and suppresses the tap for that gesture.
66
87
  - **Text style roles:** `title`, `subtitle`, `tertiary`, `badge`, `value`,
67
88
  `valueSecondary`. The last two refer to value accessories in `trailing`; `badge`
68
89
  refers to badge text. `value`/`valueSecondary` select the first/second value
69
90
  accessory, ignoring intervening controls. A `valuePair` is one accessory, so
70
- its style applies to both text runs. They are semantic roles, not extra top-level data fields.
91
+ its style applies to both text runs. Optional `primaryTextSegments` and
92
+ `secondaryTextSegments` use the existing subscript run shape per line; missing
93
+ or empty arrays retain the required fallback string. They are semantic roles,
94
+ not extra top-level data fields.
95
+ - **Primary value weight:** optional `valuePair.primaryFontWeight: 'medium'`
96
+ styles only the first line. The second line remains regular; omission keeps
97
+ each platform's existing value-pair typography.
98
+ - **Primary value help:** optional `primaryHelp` on a `valuePair` targets only
99
+ its first line. `presentation` explicitly selects Web Tooltip or cross-platform
100
+ Popover behavior; native Tooltip has no press target. Optional dashed underline
101
+ is visual only. Missing help retains the original passive value pair.
71
102
  - **Layout boundary:** reserve visual and accessory slots; text compresses within
72
103
  its own column. Styling cannot move a checkbox/menu into the title column,
73
104
  reorder accessories or convert a horizontal row into the sidebar presentation.
@@ -132,7 +163,7 @@ separately from source implementation in STYLE_SPEC §9.
132
163
  ![Activity: leading visual and description, trailing amounts, optional actions within the row](images/row-activity.svg)
133
164
 
134
165
  - **Use:** a transaction/activity record with amounts and optional commands.
135
- - **Required data:** `leading`, `title`; optional `secondaryLeading`,
166
+ - **Required data:** `leading`, `title`; optional `hideLeading`, `secondaryLeading`,
136
167
  `description`, `status`, `primaryAmount`, `secondaryAmount`, `footerActions`.
137
168
  At most three footer actions are accepted, each with a unique key.
138
169
  - **Text style roles:** `title`, `description`, `status`, `primaryAmount`,
@@ -140,6 +171,10 @@ separately from source implementation in STYLE_SPEC §9.
140
171
  - **Layout boundary:** amounts remain in the amount column, description stays
141
172
  in its text region, actions stay in the row's action area. Adding actions is a
142
173
  model/height choice, not a typography trick.
174
+ - **Leading visibility:** `hideLeading: true` removes the main visual, its
175
+ accessibility content and its width plus gap. The title and footer actions
176
+ start at the row content inset. The required `leading` model remains valid;
177
+ omitted or `false` retains the existing visual and spacing.
143
178
  - **Common-capability boundary:** `footerActions` are inside this activity row.
144
179
  The list footer is independently configured through the container.
145
180
 
@@ -147,10 +182,14 @@ separately from source implementation in STYLE_SPEC §9.
147
182
  with at most 32 unique keyed entries. Each entry supports a leading visual,
148
183
  tone, primary/secondary text and subscript segments. The title supports at
149
184
  most four keyed badges. `descriptionActionKey` emits a description action.
150
- `presentation: 'table'` allocates equal identity/amount columns and an
151
- optional fee column; `stacked` keeps right-aligned amounts beside identity.
152
- `fee.hidden` reserves its column while hiding its content. These native
153
- additions do not change the Web renderer.
185
+ `presentation: 'table'` allocates identity (including the leading visual and
186
+ its gap), amounts and optional fee in a stable `1:1:0.6` ratio after column
187
+ gaps. Without fee, identity and amounts have equal widths. Amount content
188
+ stays start-aligned; native fee content stays end-aligned, while Web retains its
189
+ existing start alignment. Fee text length and leading visibility do not move
190
+ the amount column. `stacked` keeps right-aligned amounts beside identity.
191
+ `fee.hidden` reserves its column while hiding its content. The Web rich
192
+ Activity renderer uses these fields and the same `hideLeading` visibility.
154
193
 
155
194
  ```text
156
195
  stacked (phone) table (wide)
@@ -169,11 +208,14 @@ stacked (phone) table (wide)
169
208
 
170
209
  - **Use:** a notification or message preview.
171
210
  - **Required data:** `title`, `body`, `time`; optional `leading`, `thumbnail`,
172
- `unread`. `bodyLines` is the legacy fallback for one, two or three body lines.
211
+ `unread`. `bodyLines` is the legacy fallback for one, two or three body lines;
212
+ zero opts into unlimited body wrapping and natural height.
173
213
  - **Text style roles:** `title`, `body`, `time`. `style.body.lines` accepts one, two or three and takes precedence over `bodyLines`.
174
214
  - **Layout boundary:** time and thumbnail keep their allocated regions; body
175
- text wraps/truncates within the message area. Styling cannot displace the
176
- timestamp, grow over the next row, or turn the preview into unbounded content.
215
+ text wraps/truncates within the message area. Unlimited wrapping is explicit
216
+ and remains bounded by the row's 4096-character text limit. The optional
217
+ `inlineWarning` presentation draws requested top/bottom container borders
218
+ across the row width without side borders or rounded corners.
177
219
  - **Current divergence:** leading-image size and body typography differ across
178
220
  platforms. Larger line boxes need explicit height and visual verification.
179
221
 
@@ -309,6 +351,11 @@ chrome and emits no row action. Omission preserves existing rendering.
309
351
  icons/actions, checkbox, `sticky`, `indexTitle`. Variants: default, `summary`,
310
352
  `gallery`, `history`; `presentation: 'networkSelector'` is also available.
311
353
  - **Text style roles:** `title`, `subtitle`, `value`.
354
+ - **DeFi position fields:** optional `leadingBadge` precedes the title.
355
+ `style.valuePlacement: 'afterTitle'` keeps a short value beside the title;
356
+ `style.titleDecoration` explicitly selects plain or dashed title text.
357
+ `valueHelp` uses the same explicit presentation and underline contract as
358
+ `valuePair.primaryHelp`. Omission keeps the original heading behavior.
312
359
  - **Layout boundary:** preserve heading/value/control regions. `summary` does
313
360
  not accept a checkbox and is not sticky. Pinning and index-entry generation are
314
361
  container behavior, not a text-style property.
@@ -333,6 +380,18 @@ chrome and emits no row action. Omission preserves existing rendering.
333
380
  `rows`, `fixedFooter` or `emptyState`. The container decides placement and
334
381
  visibility; the action template only renders its content.
335
382
 
383
+ ## buttonGroup
384
+
385
+ - **Use:** the full-width DeFi position actions within the list's data stream.
386
+ - **Required data:** a nonempty `buttons` array. Every entry has a unique
387
+ `key`, `label` and `actionKey`; optional `disabled`, `loading`, `testID` and
388
+ `accessibilityLabel` retain one control per entry.
389
+ - **Fixed structure:** equal-width medium info-outline buttons with 10-point
390
+ gaps, 12-point vertical button padding and 12-point radius. Loading retains
391
+ width and disables only its button. Row disable blocks all actions.
392
+ - **Action boundary:** each button emits its own action and anchor slot; the row
393
+ has no independent press action. The SDK never resolves DeFi permissions.
394
+
336
395
  ## system
337
396
 
338
397
  ![System variants: loading indicator, retry message and action, warning, no-match/end text and explicit spacer](images/row-system.svg)