@onekeyfe/react-native-native-list 6.7.0-alpha.422 → 6.7.0-alpha.426

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.
package/docs/SPEC.md CHANGED
@@ -324,7 +324,9 @@ label. "After the title" means directly after the title text: the title row
324
324
  packs at its start on every platform (Android `PackedTitleLineLayout`, Web flex
325
325
  `0 1 auto`, iOS a slack-absorbing filler at the end of the title row), so the
326
326
  glyph and any badge follow the text and never drift toward the trailing column
327
- (OK-66041). Its optional Web-only `hoverActionKey` emits an anchored help action
327
+ (OK-66041). The glyph is vertically centered on the title line; on Web the
328
+ `title` text style (including its line clamp) applies to the title text span,
329
+ never to the flex row that carries the glyph (OK-66402). Its optional Web-only `hoverActionKey` emits an anchored help action
328
330
  from the icon alone on mouse/pen hover or touch press; the consumer owns the
329
331
  tooltip. Mouse/pen press closes the anchor until pointer leave. Touch press
330
332
  toggles the icon anchor. The icon adds no tab stop or separate click action;
@@ -105,6 +105,14 @@ function createIdentityRow(document, primitives, row) {
105
105
  const titleText = createElement(document, 'span', 'ok-native-list-identity-title-text');
106
106
  while (titleElement.firstChild && titleElement.firstChild !== badgeLine) titleText.appendChild(titleElement.firstChild);
107
107
  titleElement.prepend(titleText);
108
+ // The title slot tag moves with the text. `applyTextLayout` writes the
109
+ // single-line clamp (`display: block`, nowrap, ellipsis) onto the slot
110
+ // element; left on this container it would undo the flex row below and
111
+ // leave the inline-flex glyph baseline-aligned above the title (OK-66402).
112
+ if (titleElement.hasAttribute('data-nl-slot')) {
113
+ titleElement.removeAttribute('data-nl-slot');
114
+ tagSlot(titleText, 'title');
115
+ }
108
116
  const icons = [row.titleIcon, row.secondaryTitleIcon].filter(icon => icon !== undefined).map(descriptor => {
109
117
  const icon = primitives.iconAction(descriptor.name, undefined, undefined, descriptor.tintColor);
110
118
  icon.className = 'ok-native-list-identity-title-icon';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-native-list",
3
- "version": "6.7.0-alpha.422",
3
+ "version": "6.7.0-alpha.426",
4
4
  "description": "Template-driven native RecyclerView and UICollectionView for React Native",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/module/index.js",
@@ -89,8 +89,8 @@
89
89
  "typescript": "^5.9.2"
90
90
  },
91
91
  "peerDependencies": {
92
- "@onekeyfe/react-native-image": "6.7.0-alpha.422",
93
- "@onekeyfe/react-native-native-logger": "6.7.0-alpha.422",
92
+ "@onekeyfe/react-native-image": "6.7.0-alpha.426",
93
+ "@onekeyfe/react-native-native-logger": "6.7.0-alpha.426",
94
94
  "react": "*",
95
95
  "react-native": "*",
96
96
  "react-native-nitro-modules": "0.37.0"
@@ -238,6 +238,14 @@ function createIdentityRow(
238
238
  while (titleElement.firstChild && titleElement.firstChild !== badgeLine)
239
239
  titleText.appendChild(titleElement.firstChild);
240
240
  titleElement.prepend(titleText);
241
+ // The title slot tag moves with the text. `applyTextLayout` writes the
242
+ // single-line clamp (`display: block`, nowrap, ellipsis) onto the slot
243
+ // element; left on this container it would undo the flex row below and
244
+ // leave the inline-flex glyph baseline-aligned above the title (OK-66402).
245
+ if (titleElement.hasAttribute('data-nl-slot')) {
246
+ titleElement.removeAttribute('data-nl-slot');
247
+ tagSlot(titleText, 'title');
248
+ }
241
249
  const icons = [row.titleIcon, row.secondaryTitleIcon]
242
250
  .filter((icon): icon is NonNullable<typeof icon> => icon !== undefined)
243
251
  .map((descriptor) => {