@onekeyfe/react-native-native-list 3.0.179-alpha.304 → 3.0.179

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 (111) hide show
  1. package/README.md +3 -32
  2. package/android/build.gradle +1 -0
  3. package/android/src/main/java/com/onekey/nativelist/HybridNativeList.kt +1 -22
  4. package/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +8 -8
  5. package/android/src/main/java/com/onekey/nativelist/NativeListActionRenderer.kt +5 -5
  6. package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +4 -4
  7. package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +6 -6
  8. package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +1 -6
  9. package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +11 -11
  10. package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +20 -20
  11. package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +4 -5
  12. package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +7 -7
  13. package/android/src/main/java/com/onekey/nativelist/NativeListMediaTileRenderer.kt +5 -5
  14. package/android/src/main/java/com/onekey/nativelist/NativeListMessageRenderer.kt +7 -8
  15. package/android/src/main/java/com/onekey/nativelist/NativeListMetricCardRenderer.kt +14 -14
  16. package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +15 -28
  17. package/android/src/main/java/com/onekey/nativelist/NativeListRailRenderer.kt +4 -4
  18. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRegistry.kt +3 -3
  19. package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +2 -3
  20. package/android/src/main/java/com/onekey/nativelist/NativeListResolvedText.kt +4 -5
  21. package/android/src/main/java/com/onekey/nativelist/NativeListRowHost.kt +1 -1
  22. package/android/src/main/java/com/onekey/nativelist/NativeListSectionHeaderRenderer.kt +20 -20
  23. package/android/src/main/java/com/onekey/nativelist/NativeListSystemRenderer.kt +3 -3
  24. package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +18 -104
  25. package/android/src/main/java/com/onekey/nativelist/NativeListWalletGroupRenderer.kt +5 -6
  26. package/common/fonts/Roobert-Bold.ttf +0 -0
  27. package/common/fonts/Roobert-Medium.ttf +0 -0
  28. package/common/fonts/Roobert-Regular.ttf +0 -0
  29. package/common/fonts/Roobert-SemiBold.ttf +0 -0
  30. package/docs/SPEC.md +0 -69
  31. package/docs/STYLE_SPEC.md +2 -12
  32. package/ios/HybridNativeList.swift +6 -18
  33. package/ios/NativeListAccessoryStack.swift +10 -14
  34. package/ios/NativeListActionRenderer.swift +4 -7
  35. package/ios/NativeListActivityDetailsView.swift +24 -63
  36. package/ios/NativeListActivityRenderer.swift +10 -19
  37. package/ios/NativeListDataRowRenderer.swift +19 -23
  38. package/ios/NativeListDesignAssets.swift +34 -43
  39. package/ios/NativeListIdentityRenderer.swift +19 -23
  40. package/ios/NativeListLeadingVisual.swift +4 -9
  41. package/ios/NativeListMarketRenderer.swift +11 -19
  42. package/ios/NativeListMediaTileRenderer.swift +7 -11
  43. package/ios/NativeListMessageRenderer.swift +10 -20
  44. package/ios/NativeListMetricCardRenderer.swift +12 -16
  45. package/ios/NativeListRailRenderer.swift +7 -9
  46. package/ios/NativeListRendererCell.swift +4 -6
  47. package/ios/NativeListRendererRegistry.swift +3 -8
  48. package/ios/NativeListResolvedText.swift +3 -3
  49. package/ios/NativeListRowHost.swift +2 -7
  50. package/ios/NativeListSectionHeaderRenderer.swift +19 -22
  51. package/ios/NativeListSystemRenderer.swift +16 -18
  52. package/ios/NativeListTextStyles.swift +12 -18
  53. package/ios/NativeListWalletGroupRenderer.swift +4 -6
  54. package/ios/RNCNativeListView.swift +5 -38
  55. package/ios/tests/NativeListActivityPresentationTests.swift +3 -5
  56. package/ios/tests/NativeListLifecycleTests.swift +2 -77
  57. package/lib/module/NativeList.js +0 -3
  58. package/lib/module/NativeList.web.js +1 -8
  59. package/lib/module/index.js +0 -1
  60. package/lib/module/web/NativeListWebEngine.js +24 -48
  61. package/lib/module/web/templates/ActionRowRenderer.js +1 -2
  62. package/lib/module/web/templates/IdentityRowRenderer.js +3 -4
  63. package/lib/module/web/templates/MarketRowRenderer.js +1 -2
  64. package/lib/module/web/templates/RowText.js +3 -13
  65. package/lib/module/web/templates/SectionHeaderRowRenderer.js +2 -3
  66. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +0 -9
  67. package/lib/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +0 -2
  68. package/lib/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +0 -5
  69. package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +0 -6
  70. package/lib/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +0 -7
  71. package/lib/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +0 -6
  72. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +0 -1
  73. package/lib/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +0 -11
  74. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +0 -2
  75. package/lib/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +0 -2
  76. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +0 -2
  77. package/lib/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +0 -3
  78. package/lib/nitrogen/generated/shared/json/NativeListConfig.json +0 -1
  79. package/lib/typescript/src/NativeList.nitro.d.ts +0 -1
  80. package/lib/typescript/src/index.d.ts +0 -2
  81. package/lib/typescript/src/web/NativeListWebEngine.d.ts +1 -4
  82. package/lib/typescript/src/web/templates/RowText.d.ts +0 -1
  83. package/nitrogen/generated/android/c++/JHybridNativeListSpec.cpp +0 -9
  84. package/nitrogen/generated/android/c++/JHybridNativeListSpec.hpp +0 -2
  85. package/nitrogen/generated/android/c++/views/JHybridNativeListStateUpdater.cpp +0 -5
  86. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nativelist/HybridNativeListSpec.kt +0 -6
  87. package/nitrogen/generated/ios/c++/HybridNativeListSpecSwift.hpp +0 -7
  88. package/nitrogen/generated/ios/c++/views/HybridNativeListComponent.mm +0 -6
  89. package/nitrogen/generated/ios/swift/HybridNativeListSpec.swift +0 -1
  90. package/nitrogen/generated/ios/swift/HybridNativeListSpec_cxx.swift +0 -11
  91. package/nitrogen/generated/shared/c++/HybridNativeListSpec.cpp +0 -2
  92. package/nitrogen/generated/shared/c++/HybridNativeListSpec.hpp +0 -2
  93. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.cpp +0 -2
  94. package/nitrogen/generated/shared/c++/views/HybridNativeListComponent.hpp +0 -3
  95. package/nitrogen/generated/shared/json/NativeListConfig.json +0 -1
  96. package/package.json +5 -4
  97. package/react-native-native-list.podspec +1 -0
  98. package/src/NativeList.nitro.ts +0 -1
  99. package/src/NativeList.tsx +0 -3
  100. package/src/NativeList.web.tsx +1 -10
  101. package/src/index.ts +0 -3
  102. package/src/web/NativeListWebEngine.ts +24 -53
  103. package/src/web/templates/ActionRowRenderer.ts +1 -2
  104. package/src/web/templates/IdentityRowRenderer.ts +3 -4
  105. package/src/web/templates/MarketRowRenderer.ts +2 -4
  106. package/src/web/templates/RowText.ts +3 -15
  107. package/src/web/templates/SectionHeaderRowRenderer.ts +3 -6
  108. package/LICENSE +0 -36
  109. package/lib/module/fonts.js +0 -44
  110. package/lib/typescript/src/fonts.d.ts +0 -10
  111. package/src/fonts.ts +0 -64
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import { useNativeListFontFamiliesJson } from "./fonts.js";
4
3
  import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
5
4
  import { View } from 'react-native';
6
5
  import { normalizeIndexScroll, normalizeKeyScroll, normalizePositionScroll, resolveLocationIndex, scrollFailure, validateOffset } from "./scrolling.js";
@@ -48,9 +47,6 @@ export const NativeList = /*#__PURE__*/forwardRef(function NativeList({
48
47
  initialScrollViewOffset,
49
48
  ...viewProps
50
49
  }, forwardedRef) {
51
- const fontFamiliesJson = useNativeListFontFamiliesJson();
52
- const fontFamiliesJsonRef = useRef(fontFamiliesJson);
53
- fontFamiliesJsonRef.current = fontFamiliesJson;
54
50
  const [host, setHost] = useState(null);
55
51
  const engineRef = useRef(undefined);
56
52
  const webVirtualizationEnabledRef = useRef(webVirtualizationEnabled);
@@ -93,7 +89,7 @@ export const NativeList = /*#__PURE__*/forwardRef(function NativeList({
93
89
  const didApplyInitialScroll = useRef(false);
94
90
  useEffect(() => {
95
91
  if (!host) return;
96
- const engine = new NativeListWebEngine(host, snapshotRef.current, callbacksRef.current, webVirtualizationEnabledRef.current, webSectionIndexContainerRef?.current, fontFamiliesJsonRef.current);
92
+ const engine = new NativeListWebEngine(host, snapshotRef.current, callbacksRef.current, webVirtualizationEnabledRef.current, webSectionIndexContainerRef?.current);
97
93
  engineRef.current = engine;
98
94
  appliedSnapshotRef.current = snapshotRef.current;
99
95
  const pending = pendingPatchesRef.current;
@@ -109,9 +105,6 @@ export const NativeList = /*#__PURE__*/forwardRef(function NativeList({
109
105
  if (engineRef.current === engine) engineRef.current = undefined;
110
106
  };
111
107
  }, [host, webSectionIndexContainerRef]);
112
- useEffect(() => {
113
- engineRef.current?.setFontFamiliesJson(fontFamiliesJson);
114
- }, [fontFamiliesJson]);
115
108
  useEffect(() => {
116
109
  engineRef.current?.setVirtualizationEnabled(webVirtualizationEnabled);
117
110
  }, [webVirtualizationEnabled]);
@@ -3,5 +3,4 @@
3
3
  export { NativeList, preloadNativeListAvatarImages } from './NativeList';
4
4
  export { applyRowPatches, serializePatches, serializeSnapshot, validatePatches, validateSnapshot } from "./validation.js";
5
5
  export { checkboxStateForKeys, checkboxStateForSection, isSelectableRow, reduceSelection, selectionStateFromSnapshot } from "./selection.js";
6
- export { configureNativeListFonts } from "./fonts.js";
7
6
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import { applyTextWeight } from "./templates/RowText.js";
4
3
  import { applyRowContainerStyle, resetRowContainerStyle } from "./templates/RowContainerStyle.js";
5
4
  import { hasExplicitRowHeight, rowSizeModifier } from "./templates/RowElements.js";
6
5
  import { applyTextStyleToSlot, applyValueSegments } from "./templates/RowText.js";
@@ -417,7 +416,7 @@ export function webMarketImageBindDeltaForPatches(patches) {
417
416
  // OneKey patch: selector names must shrink before the sidebar clips their contents.
418
417
  export const WEB_LIST_CSS = `
419
418
  [data-native-list-selector="walletSidebar"] .ok-native-list-title{max-width:100%;min-width:0}
420
- .ok-native-list-root{--nl-bg:#f7f7f7;--nl-row:#fff;--nl-selected:#eaf2ff;--nl-pressed:#e8e8e8;--nl-subdued:#f9f9f9;--nl-strong:#0000000f;--nl-primary:#111;--nl-secondary:#6b7280;--nl-disabled:#8d8d8d;--nl-icon:#111;--nl-icon-subdued:#8d8d8d;--nl-separator:#e5e7eb;--nl-accent:#2f6bff;--nl-positive:#15803d;--nl-negative:#dc2626;--nl-critical:#feecec;--nl-inverse:#202020;--nl-inverse-text:#fcfcfc;--nl-info:#0d74ce;position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--nl-bg);color:var(--nl-primary);font-family:var(--nl-font-regular);font-synthesis:none}
419
+ .ok-native-list-root{--nl-bg:#f7f7f7;--nl-row:#fff;--nl-selected:#eaf2ff;--nl-pressed:#e8e8e8;--nl-subdued:#f9f9f9;--nl-strong:#0000000f;--nl-primary:#111;--nl-secondary:#6b7280;--nl-disabled:#8d8d8d;--nl-icon:#111;--nl-icon-subdued:#8d8d8d;--nl-separator:#e5e7eb;--nl-accent:#2f6bff;--nl-positive:#15803d;--nl-negative:#dc2626;--nl-critical:#feecec;--nl-inverse:#202020;--nl-inverse-text:#fcfcfc;--nl-info:#0d74ce;position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--nl-bg);color:var(--nl-primary);font-family:Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
421
420
  .ok-native-list-viewport-frame{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden}
422
421
  .ok-native-list-viewport{position:absolute;inset:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
423
422
  .ok-native-list-content{position:relative;min-width:100%;min-height:100%}
@@ -446,10 +445,10 @@ export const WEB_LIST_CSS = `
446
445
  .ok-native-list-item[data-native-list-dragging="true"]>.ok-native-list-row>*{visibility:hidden}
447
446
  .ok-native-list-item[data-native-list-dragging="true"]>.ok-native-list-wallet-group{border-color:transparent;background:var(--nl-pressed)}
448
447
  .ok-native-list-item[data-native-list-dragging="true"]>.ok-native-list-wallet-group>*{visibility:hidden}
449
- .ok-native-list-reorder-preview{position:fixed;left:0;top:0;z-index:100001;pointer-events:none;overflow:hidden;border-radius:12px;box-shadow:0 4px 24px rgba(0,0,0,.12);transform-origin:center;will-change:transform;font-synthesis:none;font-family:var(--nl-font-regular)}
448
+ .ok-native-list-reorder-preview{position:fixed;left:0;top:0;z-index:100001;pointer-events:none;overflow:hidden;border-radius:12px;box-shadow:0 4px 24px rgba(0,0,0,.12);transform-origin:center;will-change:transform;font-family:Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
450
449
  .ok-native-list-reorder-preview>.ok-native-list-row{background:var(--nl-pressed);cursor:grabbing}
451
450
  .ok-native-list-reorder-preview[data-native-list-selected="true"]>.ok-native-list-row{background:var(--nl-selected)}
452
- .ok-native-list-reorder-count{position:absolute;right:4px;bottom:4px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:24px;height:24px;padding:0 6px;border:1px solid var(--nl-row);border-radius:12px;background:var(--nl-inverse);color:var(--nl-inverse-text);font-size:12px;line-height:22px;font-weight:600;font-family:var(--nl-font-semibold)}
451
+ .ok-native-list-reorder-count{position:absolute;right:4px;bottom:4px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:24px;height:24px;padding:0 6px;border:1px solid var(--nl-row);border-radius:12px;background:var(--nl-inverse);color:var(--nl-inverse-text);font-size:12px;line-height:22px;font-weight:600}
453
452
  .ok-native-list-item[data-separator="true"]>.ok-native-list-row{border-bottom:1px solid var(--nl-separator-color,var(--nl-separator))}
454
453
  /* An inset separator keeps the transparent border so the row's height is unchanged, and paints the visible line with a logical-inset overlay so it follows RTL. */
455
454
  .ok-native-list-root[data-separator-inset="true"] .ok-native-list-item[data-separator="true"]>.ok-native-list-row{position:relative;border-bottom-color:transparent}
@@ -458,30 +457,30 @@ export const WEB_LIST_CSS = `
458
457
  .ok-native-list-item[data-group-position="last"]>.ok-native-list-row{border-radius:0 0 var(--nl-group-radius,12px) var(--nl-group-radius,12px)}
459
458
  .ok-native-list-item[data-group-position="single"]>.ok-native-list-row{border-radius:var(--nl-group-radius,12px)}
460
459
  .ok-native-list-standard{padding:8px 12px}.ok-native-list-network-row{padding:0 12px}.ok-native-list-wallet-row{padding:4px 8px;flex-direction:column;justify-content:center;gap:4px}.ok-native-list-account-row{padding:4px 12px;gap:8px}
461
- .ok-native-list-account-row .ok-native-list-visual,.ok-native-list-account-action-row .ok-native-list-visual{width:32px;height:32px;flex-basis:32px}.ok-native-list-account-row .ok-native-list-visual>img,.ok-native-list-account-row .ok-native-list-visual-main,.ok-native-list-account-action-row .ok-native-list-visual>img,.ok-native-list-account-action-row .ok-native-list-visual-main{width:32px;height:32px}.ok-native-list-account-row .ok-native-list-visual>.ok-native-list-visual-corner{width:20px;height:20px;padding:2px}.ok-native-list-account-action-row .ok-native-list-visual{border-radius:8px!important}.ok-native-list-wallet-row .ok-native-list-title{color:var(--nl-secondary);font-size:12px;line-height:16px;font-weight:400;font-family:var(--nl-font-regular)}.ok-native-list-item[data-native-list-selected="true"]>.ok-native-list-wallet-row .ok-native-list-title{color:var(--nl-primary)}.ok-native-list-account-row .ok-native-list-title{font-size:16px;line-height:20px;font-weight:400;font-family:var(--nl-font-regular)}.ok-native-list-account-row .ok-native-list-secondary{font-size:14px;line-height:20px;font-weight:400;font-family:var(--nl-font-regular)}
462
- .ok-native-list-flex{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center}.ok-native-list-title{font-size:15px;line-height:20px;font-weight:600;font-family:var(--nl-font-semibold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-secondary{font-size:13px;line-height:18px;color:var(--nl-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-tertiary{color:var(--nl-secondary)}.ok-native-list-info{color:var(--nl-info)}
460
+ .ok-native-list-account-row .ok-native-list-visual,.ok-native-list-account-action-row .ok-native-list-visual{width:32px;height:32px;flex-basis:32px}.ok-native-list-account-row .ok-native-list-visual>img,.ok-native-list-account-row .ok-native-list-visual-main,.ok-native-list-account-action-row .ok-native-list-visual>img,.ok-native-list-account-action-row .ok-native-list-visual-main{width:32px;height:32px}.ok-native-list-account-row .ok-native-list-visual>.ok-native-list-visual-corner{width:20px;height:20px;padding:2px}.ok-native-list-account-action-row .ok-native-list-visual{border-radius:8px!important}.ok-native-list-wallet-row .ok-native-list-title{color:var(--nl-secondary);font-size:12px;line-height:16px;font-weight:400}.ok-native-list-item[data-native-list-selected="true"]>.ok-native-list-wallet-row .ok-native-list-title{color:var(--nl-primary)}.ok-native-list-account-row .ok-native-list-title{font-size:16px;line-height:20px;font-weight:400}.ok-native-list-account-row .ok-native-list-secondary{font-size:14px;line-height:20px;font-weight:400}
461
+ .ok-native-list-flex{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center}.ok-native-list-title{font-size:15px;line-height:20px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-secondary{font-size:13px;line-height:18px;color:var(--nl-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-tertiary{color:var(--nl-secondary)}.ok-native-list-info{color:var(--nl-info)}
463
462
  .ok-native-list-identity-row .ok-native-list-title,.ok-native-list-identity-row .ok-native-list-amounts>span:first-child{font-size:16px;line-height:20px}.ok-native-list-identity-row .ok-native-list-secondary{font-size:14px;line-height:20px}
464
- .ok-native-list-value{font-size:14px;line-height:20px;font-weight:500;font-family:var(--nl-font-medium);white-space:nowrap}.ok-native-list-time{font-size:11px;line-height:16px;color:var(--nl-secondary);align-self:flex-start}.ok-native-list-amounts{display:flex;flex-direction:column;align-items:flex-end;min-width:0}.ok-native-list-actions{display:flex;gap:16px;margin-top:6px}
465
- .ok-native-list-action-button{appearance:none;border:0;background:transparent;padding:2px;color:var(--nl-accent);font:600 12px/16px var(--nl-font-semibold);cursor:pointer}.ok-native-list-action-button[data-tone="danger"]{color:var(--nl-negative)}.ok-native-list-action-button:disabled{opacity:.5;cursor:default}
466
- .ok-native-list-visual{position:relative;flex:0 0 40px;width:40px;height:40px;border-radius:20px;overflow:visible;background:var(--nl-strong)}.ok-native-list-visual>img,.ok-native-list-visual-main{display:block;width:40px;height:40px;border-radius:inherit;object-fit:cover}.ok-native-list-visual-fallback{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:inherit;color:var(--nl-primary);font-size:15px;font-weight:600;font-family:var(--nl-font-semibold);overflow:hidden}.ok-native-list-visual>.ok-native-list-visual-corner{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;padding:2px;border-radius:50%;background:var(--nl-row);object-fit:cover}.ok-native-list-stacked{display:flex;align-items:center;width:48px;flex-basis:48px}.ok-native-list-stacked img{width:28px;height:28px;border:2px solid var(--nl-row);border-radius:50%;object-fit:cover;margin-left:-10px}.ok-native-list-stacked img:first-child{margin-left:0}
467
- .ok-native-list-accessories{display:flex;align-items:center;gap:10px;min-width:0}.ok-native-list-accessory{font-size:14px;color:var(--nl-primary);white-space:nowrap}.ok-native-list-accessory-secondary{color:var(--nl-secondary)}.ok-native-list-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border:0;background:transparent;color:var(--nl-icon);font-size:20px;line-height:1;font-weight:500;font-family:var(--nl-font-medium);cursor:pointer}.ok-native-list-checkbox{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:20px;height:20px;border:2px solid color-mix(in srgb,var(--nl-primary) 19%,transparent);border-radius:5px;background:var(--nl-row);cursor:pointer}.ok-native-list-checkbox[data-state="checked"],.ok-native-list-checkbox[data-state="indeterminate"]{border-color:transparent;background:var(--nl-primary)}.ok-native-list-checkbox[data-state="checked"]::after{content:"";width:6px;height:10px;margin-top:-2px;border-right:2px solid var(--nl-row);border-bottom:2px solid var(--nl-row);transform:rotate(45deg)}.ok-native-list-checkbox[data-state="indeterminate"]::after{content:"";width:8px;height:2px;border-radius:1px;background:var(--nl-row)}.ok-native-list-spinner{width:16px;height:16px;border:2px solid var(--nl-separator);border-top-color:var(--nl-primary);border-radius:50%;animation:ok-native-list-spin .8s linear infinite}@keyframes ok-native-list-spin{to{transform:rotate(360deg)}}
463
+ .ok-native-list-value{font-size:14px;line-height:20px;font-weight:500;white-space:nowrap}.ok-native-list-time{font-size:11px;line-height:16px;color:var(--nl-secondary);align-self:flex-start}.ok-native-list-amounts{display:flex;flex-direction:column;align-items:flex-end;min-width:0}.ok-native-list-actions{display:flex;gap:16px;margin-top:6px}
464
+ .ok-native-list-action-button{appearance:none;border:0;background:transparent;padding:2px;color:var(--nl-accent);font:600 12px/16px inherit;cursor:pointer}.ok-native-list-action-button[data-tone="danger"]{color:var(--nl-negative)}.ok-native-list-action-button:disabled{opacity:.5;cursor:default}
465
+ .ok-native-list-visual{position:relative;flex:0 0 40px;width:40px;height:40px;border-radius:20px;overflow:visible;background:var(--nl-strong)}.ok-native-list-visual>img,.ok-native-list-visual-main{display:block;width:40px;height:40px;border-radius:inherit;object-fit:cover}.ok-native-list-visual-fallback{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:inherit;color:var(--nl-primary);font-size:15px;font-weight:600;overflow:hidden}.ok-native-list-visual>.ok-native-list-visual-corner{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;padding:2px;border-radius:50%;background:var(--nl-row);object-fit:cover}.ok-native-list-stacked{display:flex;align-items:center;width:48px;flex-basis:48px}.ok-native-list-stacked img{width:28px;height:28px;border:2px solid var(--nl-row);border-radius:50%;object-fit:cover;margin-left:-10px}.ok-native-list-stacked img:first-child{margin-left:0}
466
+ .ok-native-list-accessories{display:flex;align-items:center;gap:10px;min-width:0}.ok-native-list-accessory{font-size:14px;color:var(--nl-primary);white-space:nowrap}.ok-native-list-accessory-secondary{color:var(--nl-secondary)}.ok-native-list-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border:0;background:transparent;color:var(--nl-icon);font-size:20px;line-height:1;font-weight:500;font-family:inherit;cursor:pointer}.ok-native-list-checkbox{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:20px;height:20px;border:2px solid color-mix(in srgb,var(--nl-primary) 19%,transparent);border-radius:5px;background:var(--nl-row);cursor:pointer}.ok-native-list-checkbox[data-state="checked"],.ok-native-list-checkbox[data-state="indeterminate"]{border-color:transparent;background:var(--nl-primary)}.ok-native-list-checkbox[data-state="checked"]::after{content:"";width:6px;height:10px;margin-top:-2px;border-right:2px solid var(--nl-row);border-bottom:2px solid var(--nl-row);transform:rotate(45deg)}.ok-native-list-checkbox[data-state="indeterminate"]::after{content:"";width:8px;height:2px;border-radius:1px;background:var(--nl-row)}.ok-native-list-spinner{width:16px;height:16px;border:2px solid var(--nl-separator);border-top-color:var(--nl-primary);border-radius:50%;animation:ok-native-list-spin .8s linear infinite}@keyframes ok-native-list-spin{to{transform:rotate(360deg)}}
468
467
  .ok-native-list-badge{display:inline-flex;align-items:center;max-width:100%;height:18px;padding:0 5px;border-radius:5px;background:color-mix(in srgb,var(--nl-accent) 12%,transparent);color:var(--nl-accent);font-size:11px;line-height:18px;white-space:nowrap}.ok-native-list-badge[data-tone="danger"]{background:var(--nl-critical);color:var(--nl-negative)}.ok-native-list-badges{display:inline-flex;gap:4px;margin-left:6px;vertical-align:middle}
469
- .ok-native-list-section{padding:0 8px;background:var(--nl-bg);gap:8px}.ok-native-list-section[data-variant="summary"]{padding:0 20px}.ok-native-list-section[data-variant="gallery"]{padding:0 12px}.ok-native-list-section[data-variant="history"]{padding:0 8px}.ok-native-list-section-title{font-size:13px;line-height:18px;font-weight:700;font-family:var(--nl-font-bold);color:var(--nl-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-section[data-variant="summary"] .ok-native-list-section-title{font-size:16px;font-weight:500;font-family:var(--nl-font-medium);color:var(--nl-primary)}.ok-native-list-section[data-variant="gallery"] .ok-native-list-section-title{font-size:16px;color:var(--nl-primary)}.ok-native-list-section[data-variant="history"] .ok-native-list-section-title{font-size:12px;line-height:16px}.ok-native-list-section-value{margin-left:auto}
470
- .ok-native-list-action-row{justify-content:space-between;padding:0 16px}.ok-native-list-action-title{font-size:15px;font-weight:600;font-family:var(--nl-font-semibold);color:var(--nl-accent)}.ok-native-list-action-title[data-tone="danger"]{color:var(--nl-negative)}
471
- .ok-native-list-account-action-row{justify-content:flex-start;gap:12px;padding:0 12px}.ok-native-list-account-action-row .ok-native-list-action-title{color:var(--nl-secondary);font-size:16px;line-height:24px;font-weight:400;font-family:var(--nl-font-regular)}
468
+ .ok-native-list-section{padding:0 8px;background:var(--nl-bg);gap:8px}.ok-native-list-section[data-variant="summary"]{padding:0 20px}.ok-native-list-section[data-variant="gallery"]{padding:0 12px}.ok-native-list-section[data-variant="history"]{padding:0 8px}.ok-native-list-section-title{font-size:13px;line-height:18px;font-weight:700;color:var(--nl-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-section[data-variant="summary"] .ok-native-list-section-title{font-size:16px;font-weight:500;color:var(--nl-primary)}.ok-native-list-section[data-variant="gallery"] .ok-native-list-section-title{font-size:16px;color:var(--nl-primary)}.ok-native-list-section[data-variant="history"] .ok-native-list-section-title{font-size:12px;line-height:16px}.ok-native-list-section-value{margin-left:auto}
469
+ .ok-native-list-action-row{justify-content:space-between;padding:0 16px}.ok-native-list-action-title{font-size:15px;font-weight:600;color:var(--nl-accent)}.ok-native-list-action-title[data-tone="danger"]{color:var(--nl-negative)}
470
+ .ok-native-list-account-action-row{justify-content:flex-start;gap:12px;padding:0 12px}.ok-native-list-account-action-row .ok-native-list-action-title{color:var(--nl-secondary);font-size:16px;line-height:24px;font-weight:400}
472
471
  .ok-native-list-system{justify-content:center;padding:8px 12px;background:var(--nl-bg);color:var(--nl-secondary);cursor:default}.ok-native-list-system[data-variant="retry"],.ok-native-list-system[data-variant="noMatch"],.ok-native-list-system[data-variant="end"]{justify-content:flex-start}.ok-native-list-system[data-variant="retry"]{cursor:pointer}
473
- .ok-native-list-rail{padding:4px;gap:6px;border-radius:8px}.ok-native-list-rail .ok-native-list-visual{width:20px;height:20px;flex-basis:20px}.ok-native-list-rail .ok-native-list-visual>img,.ok-native-list-rail .ok-native-list-visual-main{width:20px;height:20px}.ok-native-list-rail-title{font-size:12px;font-weight:500;font-family:var(--nl-font-medium);white-space:nowrap}
474
- .ok-native-list-media{display:block;padding:0 5px;background:transparent;border-radius:16px}.ok-native-list-media-image{display:block;width:100%;aspect-ratio:1;border-radius:10px;background:var(--nl-strong);object-fit:cover}.ok-native-list-media-image[data-state="empty"]{background:transparent}.ok-native-list-media-image[data-state="error"]{display:flex;align-items:center;justify-content:center;color:var(--nl-icon-subdued);font-size:24px}.ok-native-list-media-meta{padding-top:7px}.ok-native-list-media-subtitle-row{display:flex;align-items:center;gap:6px}.ok-native-list-media-subtitle{flex:1;min-width:0;font-size:12px;color:var(--nl-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-media-network{width:14px;height:14px;border-radius:50%}.ok-native-list-media-title{font-size:16px;font-weight:500;font-family:var(--nl-font-medium);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-media-close{position:absolute;right:9px;top:4px;border:0;background:color-mix(in srgb,var(--nl-inverse) 72%,transparent);color:var(--nl-inverse-text);width:24px;height:24px;border-radius:50%;font:18px/20px var(--nl-font-regular);cursor:pointer}
475
- .ok-native-list-metric{display:flex;flex-direction:column;align-items:flex-start;padding:12px;border-radius:12px;gap:5px;background:var(--nl-row)}.ok-native-list-metric-value{font-size:22px;line-height:28px;font-weight:700;font-family:var(--nl-font-bold)}.ok-native-list-composite{display:flex;flex-direction:column;align-items:stretch;padding:14px;border-radius:12px;gap:12px;background:var(--nl-subdued)}.ok-native-list-composite-heading{font-size:14px;letter-spacing:1px;color:var(--nl-secondary)}.ok-native-list-composite-row{display:flex;gap:12px}.ok-native-list-composite-cell{flex:1;min-width:0}.ok-native-list-composite-cell[data-shaded="true"]{padding:10px;border-radius:10px;background:color-mix(in srgb,var(--nl-primary) 5%,transparent)}.ok-native-list-composite-value{font-size:18px;font-weight:600;font-family:var(--nl-font-semibold)}.ok-native-list-divider{height:1px;background:var(--nl-separator)}.ok-native-list-progress{height:4px;border-radius:2px;overflow:hidden;background:var(--nl-negative)}.ok-native-list-progress>span{display:block;height:100%;border-radius:2px;background:var(--nl-positive)}
476
- .ok-native-list-data{padding:6px 12px}.ok-native-list-index{flex:0 0 28px;color:var(--nl-secondary);font-size:13px}.ok-native-list-favorite{flex:0 0 24px;color:var(--nl-icon-subdued);font-size:22px}.ok-native-list-favorite[data-active="true"]{color:var(--nl-accent)}.ok-native-list-data-cell{display:flex;flex-direction:column;min-width:0}.ok-native-list-data-cell[data-align="center"]{align-items:center}.ok-native-list-data-cell[data-align="end"]{align-items:flex-end}.ok-native-list-data-primary{display:flex;align-items:center;gap:5px;max-width:100%;font-size:16px;font-weight:500;font-family:var(--nl-font-medium);white-space:nowrap}.ok-native-list-unread{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--nl-accent)}.ok-native-list-thumbnail{width:64px;height:64px;border-radius:10px;object-fit:cover}
477
- .ok-native-list-market{padding:12px 20px;gap:14px}.ok-native-list-market>.ok-native-list-visual{width:32px;height:32px;flex-basis:32px}.ok-native-list-market[data-variant="stock"]>.ok-native-list-visual{width:40px;height:40px;flex-basis:40px}.ok-native-list-market>.ok-native-list-visual>.ok-native-list-visual-main{width:100%;height:100%}.ok-native-list-market-main{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center}.ok-native-list-market-title-line{display:flex;align-items:center;min-width:0;gap:4px}.ok-native-list-market-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--nl-primary);font-size:16px;line-height:24px;font-weight:500;font-family:var(--nl-font-medium)}.ok-native-list-market-subtitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--nl-secondary);font-size:14px;line-height:20px;font-weight:400;font-family:var(--nl-font-regular)}.ok-native-list-market-badge{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;box-sizing:border-box;max-width:72px;height:18px;padding:0 5px;border:0;border-radius:4px;background:var(--nl-strong);color:var(--nl-secondary);font:500 11px/18px var(--nl-font-medium);overflow:hidden;white-space:nowrap}.ok-native-list-market-badge img{width:14px;height:14px;object-fit:contain}.ok-native-list-market-trailing{display:flex;flex:0 0 auto;align-items:center;gap:8px}.ok-native-list-market-price{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--nl-primary);font-size:16px;line-height:24px;font-weight:500;font-family:var(--nl-font-medium);font-variant-numeric:tabular-nums}.ok-native-list-market-change{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:80px;height:32px;border-radius:8px;color:#fff;background:#8d8d8d;font-size:14px;line-height:20px;font-weight:500;font-family:var(--nl-font-medium);font-variant-numeric:tabular-nums;white-space:nowrap}.ok-native-list-market-change[data-tone="positive"]{background:var(--nl-positive)}.ok-native-list-market-change[data-tone="negative"]{background:var(--nl-negative)}
472
+ .ok-native-list-rail{padding:4px;gap:6px;border-radius:8px}.ok-native-list-rail .ok-native-list-visual{width:20px;height:20px;flex-basis:20px}.ok-native-list-rail .ok-native-list-visual>img,.ok-native-list-rail .ok-native-list-visual-main{width:20px;height:20px}.ok-native-list-rail-title{font-size:12px;font-weight:500;white-space:nowrap}
473
+ .ok-native-list-media{display:block;padding:0 5px;background:transparent;border-radius:16px}.ok-native-list-media-image{display:block;width:100%;aspect-ratio:1;border-radius:10px;background:var(--nl-strong);object-fit:cover}.ok-native-list-media-image[data-state="empty"]{background:transparent}.ok-native-list-media-image[data-state="error"]{display:flex;align-items:center;justify-content:center;color:var(--nl-icon-subdued);font-size:24px}.ok-native-list-media-meta{padding-top:7px}.ok-native-list-media-subtitle-row{display:flex;align-items:center;gap:6px}.ok-native-list-media-subtitle{flex:1;min-width:0;font-size:12px;color:var(--nl-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-media-network{width:14px;height:14px;border-radius:50%}.ok-native-list-media-title{font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ok-native-list-media-close{position:absolute;right:9px;top:4px;border:0;background:color-mix(in srgb,var(--nl-inverse) 72%,transparent);color:var(--nl-inverse-text);width:24px;height:24px;border-radius:50%;font:18px/20px inherit;cursor:pointer}
474
+ .ok-native-list-metric{display:flex;flex-direction:column;align-items:flex-start;padding:12px;border-radius:12px;gap:5px;background:var(--nl-row)}.ok-native-list-metric-value{font-size:22px;line-height:28px;font-weight:700}.ok-native-list-composite{display:flex;flex-direction:column;align-items:stretch;padding:14px;border-radius:12px;gap:12px;background:var(--nl-subdued)}.ok-native-list-composite-heading{font-size:14px;letter-spacing:1px;color:var(--nl-secondary)}.ok-native-list-composite-row{display:flex;gap:12px}.ok-native-list-composite-cell{flex:1;min-width:0}.ok-native-list-composite-cell[data-shaded="true"]{padding:10px;border-radius:10px;background:color-mix(in srgb,var(--nl-primary) 5%,transparent)}.ok-native-list-composite-value{font-size:18px;font-weight:600}.ok-native-list-divider{height:1px;background:var(--nl-separator)}.ok-native-list-progress{height:4px;border-radius:2px;overflow:hidden;background:var(--nl-negative)}.ok-native-list-progress>span{display:block;height:100%;border-radius:2px;background:var(--nl-positive)}
475
+ .ok-native-list-data{padding:6px 12px}.ok-native-list-index{flex:0 0 28px;color:var(--nl-secondary);font-size:13px}.ok-native-list-favorite{flex:0 0 24px;color:var(--nl-icon-subdued);font-size:22px}.ok-native-list-favorite[data-active="true"]{color:var(--nl-accent)}.ok-native-list-data-cell{display:flex;flex-direction:column;min-width:0}.ok-native-list-data-cell[data-align="center"]{align-items:center}.ok-native-list-data-cell[data-align="end"]{align-items:flex-end}.ok-native-list-data-primary{display:flex;align-items:center;gap:5px;max-width:100%;font-size:16px;font-weight:500;white-space:nowrap}.ok-native-list-unread{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--nl-accent)}.ok-native-list-thumbnail{width:64px;height:64px;border-radius:10px;object-fit:cover}
476
+ .ok-native-list-market{padding:12px 20px;gap:14px}.ok-native-list-market>.ok-native-list-visual{width:32px;height:32px;flex-basis:32px}.ok-native-list-market[data-variant="stock"]>.ok-native-list-visual{width:40px;height:40px;flex-basis:40px}.ok-native-list-market>.ok-native-list-visual>.ok-native-list-visual-main{width:100%;height:100%}.ok-native-list-market-main{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center}.ok-native-list-market-title-line{display:flex;align-items:center;min-width:0;gap:4px}.ok-native-list-market-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--nl-primary);font-size:16px;line-height:24px;font-weight:500}.ok-native-list-market-subtitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--nl-secondary);font-size:14px;line-height:20px;font-weight:400}.ok-native-list-market-badge{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;box-sizing:border-box;max-width:72px;height:18px;padding:0 5px;border:0;border-radius:4px;background:var(--nl-strong);color:var(--nl-secondary);font:500 11px/18px inherit;overflow:hidden;white-space:nowrap}.ok-native-list-market-badge img{width:14px;height:14px;object-fit:contain}.ok-native-list-market-trailing{display:flex;flex:0 0 auto;align-items:center;gap:8px}.ok-native-list-market-price{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--nl-primary);font-size:16px;line-height:24px;font-weight:500;font-variant-numeric:tabular-nums}.ok-native-list-market-change{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:80px;height:32px;border-radius:8px;color:#fff;background:#8d8d8d;font-size:14px;line-height:20px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}.ok-native-list-market-change[data-tone="positive"]{background:var(--nl-positive)}.ok-native-list-market-change[data-tone="negative"]{background:var(--nl-negative)}
478
477
  .ok-native-list-market-badge>svg,.ok-native-list-market-badge>.ok-native-list-market-badge-icon>svg{display:block;width:16px;height:16px;flex:0 0 16px}.ok-native-list-system[data-native-list-presentation="market"]{box-sizing:border-box;padding:12px 20px}.ok-native-list-system[data-native-list-presentation="market"]>.ok-native-list-spinner{width:32px;height:32px}
479
- .ok-native-list-index-preview{position:absolute;z-index:8;right:40px;top:50%;display:flex;width:48px;height:48px;align-items:center;justify-content:center;transform:translateY(-50%) scale(.92);border-radius:14px;background:var(--nl-inverse);color:var(--nl-inverse-text);font-size:22px;font-weight:600;font-family:var(--nl-font-semibold);opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.ok-native-list-index-preview[data-visible="true"]{opacity:1;transform:translateY(-50%) scale(1)}
478
+ .ok-native-list-index-preview{position:absolute;z-index:8;right:40px;top:50%;display:flex;width:48px;height:48px;align-items:center;justify-content:center;transform:translateY(-50%) scale(.92);border-radius:14px;background:var(--nl-inverse);color:var(--nl-inverse-text);font-size:22px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.ok-native-list-index-preview[data-visible="true"]{opacity:1;transform:translateY(-50%) scale(1)}
480
479
  .ok-native-list-row.ok-native-list-market-skeleton{padding:12px 20px;gap:0}.ok-native-list-skeleton-left{display:flex;align-items:center;gap:12px;flex:1}.ok-native-list-skeleton-text{display:flex;flex-direction:column;gap:4px}.ok-native-list-skeleton-right{display:flex;align-items:center;gap:8px}.ok-native-list-skeleton-mark{display:block;flex-shrink:0;border-radius:8px;animation:ok-native-list-skeleton 1.5s linear infinite alternate}@keyframes ok-native-list-skeleton{from{background-color:var(--nl-skeleton-base)}to{background-color:var(--nl-skeleton-highlight)}}.ok-native-list-market-spinner{display:block;width:20px;height:20px;flex-shrink:0;color:var(--nl-icon);animation:ok-native-list-spin .75s linear infinite}
481
480
  @media (prefers-reduced-motion:reduce){.ok-native-list-index-preview,.ok-native-list-refresh{transition:none}.ok-native-list-spinner,.ok-native-list-market-spinner{animation:none}.ok-native-list-skeleton-mark{animation:none;background:var(--nl-skeleton-base)}}
482
- .ok-native-list-footer{flex:0 0 auto;min-height:0}.ok-native-list-sticky{position:absolute;z-index:4;left:0;right:0;top:0;pointer-events:auto;box-shadow:0 1px 0 var(--nl-separator)}.ok-native-list-viewport-frame:has(>.ok-native-list-index-rail:not([hidden]))>.ok-native-list-viewport,.ok-native-list-viewport-frame[data-section-index-visible="true"]>.ok-native-list-viewport{scrollbar-width:none}.ok-native-list-viewport-frame:has(>.ok-native-list-index-rail:not([hidden]))>.ok-native-list-viewport::-webkit-scrollbar,.ok-native-list-viewport-frame[data-section-index-visible="true"]>.ok-native-list-viewport::-webkit-scrollbar{display:none}.ok-native-list-index-rail{position:absolute;z-index:6;top:0;right:0;bottom:0;width:${SECTION_INDEX_RAIL_WIDTH}px;touch-action:none;cursor:pointer;font-synthesis:none;font-family:var(--nl-font-regular)}.ok-native-list-index-rail[hidden]{display:none}.ok-native-list-index-button{appearance:none;position:absolute;left:15px;display:flex;width:14px;height:14px;align-items:center;justify-content:center;padding:0;transform:translateY(-50%);border:0;border-radius:7px;background:transparent;color:var(--nl-disabled);font-family:inherit;font-size:10px;font-weight:400;font-family:var(--nl-font-regular);line-height:1;cursor:pointer;opacity:.5;transition:opacity .15s ease}.ok-native-list-index-rail:hover .ok-native-list-index-button,.ok-native-list-index-rail:focus-within .ok-native-list-index-button,.ok-native-list-index-button[data-active="true"]{opacity:1}.ok-native-list-index-button[data-active="true"]{background:var(--nl-positive);color:var(--nl-inverse-text);font-weight:500;font-family:var(--nl-font-medium)}.ok-native-list-index-button:focus-visible{outline:2px solid var(--nl-positive);outline-offset:1px}
481
+ .ok-native-list-footer{flex:0 0 auto;min-height:0}.ok-native-list-sticky{position:absolute;z-index:4;left:0;right:0;top:0;pointer-events:auto;box-shadow:0 1px 0 var(--nl-separator)}.ok-native-list-viewport-frame:has(>.ok-native-list-index-rail:not([hidden]))>.ok-native-list-viewport,.ok-native-list-viewport-frame[data-section-index-visible="true"]>.ok-native-list-viewport{scrollbar-width:none}.ok-native-list-viewport-frame:has(>.ok-native-list-index-rail:not([hidden]))>.ok-native-list-viewport::-webkit-scrollbar,.ok-native-list-viewport-frame[data-section-index-visible="true"]>.ok-native-list-viewport::-webkit-scrollbar{display:none}.ok-native-list-index-rail{position:absolute;z-index:6;top:0;right:0;bottom:0;width:${SECTION_INDEX_RAIL_WIDTH}px;touch-action:none;cursor:pointer;font-family:Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ok-native-list-index-rail[hidden]{display:none}.ok-native-list-index-button{appearance:none;position:absolute;left:15px;display:flex;width:14px;height:14px;align-items:center;justify-content:center;padding:0;transform:translateY(-50%);border:0;border-radius:7px;background:transparent;color:var(--nl-disabled);font-family:inherit;font-size:10px;font-weight:400;line-height:1;cursor:pointer;opacity:.5;transition:opacity .15s ease}.ok-native-list-index-rail:hover .ok-native-list-index-button,.ok-native-list-index-rail:focus-within .ok-native-list-index-button,.ok-native-list-index-button[data-active="true"]{opacity:1}.ok-native-list-index-button[data-active="true"]{background:var(--nl-positive);color:var(--nl-inverse-text);font-weight:500}.ok-native-list-index-button:focus-visible{outline:2px solid var(--nl-positive);outline-offset:1px}
483
482
  .ok-native-list-refresh{position:absolute;z-index:7;left:50%;top:8px;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:var(--nl-inverse);color:var(--nl-inverse-text);font-size:12px;opacity:0;transform:translate(-50%,-16px);transition:opacity .15s ease,transform .15s ease;pointer-events:none}.ok-native-list-refresh[data-visible="true"]{opacity:1;transform:translate(-50%,0)}
484
- .ok-native-list-warning{height:auto;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:14px 12px;border-top:1px solid;border-bottom:1px solid;box-sizing:border-box;cursor:default}.ok-native-list-warning-title,.ok-native-list-warning-message{font-size:14px;line-height:20px;white-space:normal;overflow-wrap:anywhere}.ok-native-list-warning-title{font-weight:500;font-family:var(--nl-font-medium);color:var(--nl-primary)}.ok-native-list-warning-message{font-weight:400;font-family:var(--nl-font-regular);color:var(--nl-secondary)}
483
+ .ok-native-list-warning{height:auto;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:14px 12px;border-top:1px solid;border-bottom:1px solid;box-sizing:border-box;cursor:default}.ok-native-list-warning-title,.ok-native-list-warning-message{font-size:14px;line-height:20px;white-space:normal;overflow-wrap:anywhere}.ok-native-list-warning-title{font-weight:500;color:var(--nl-primary)}.ok-native-list-warning-message{font-weight:400;color:var(--nl-secondary)}
485
484
  .ok-native-list-subtitle-segments{display:flex;align-items:center;min-width:0;max-width:100%;height:20px}.ok-native-list-subtitle-segments>.ok-native-list-secondary{flex:0 1 auto;min-width:0}.ok-native-list-subtitle-dot{flex:0 0 4px;width:4px;height:4px;margin:0 6px;border-radius:50%;background:var(--nl-disabled)}.ok-native-list-wallet-row>.ok-native-list-flex{flex:0 1 auto;width:100%;align-items:center}.ok-native-list-wallet-badges{display:flex;gap:4px;justify-content:center;margin-top:4px;height:20px;max-width:100%}.ok-native-list-wallet-badges>.ok-native-list-badge{background:var(--nl-strong);color:var(--nl-secondary);font-size:12px;line-height:16px;height:20px;box-sizing:border-box;padding:2px 4px}.ok-native-list-visual-overlay{position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:50%;overflow:hidden;line-height:1;font-size:10px}.ok-native-list-visual-overlay img,.ok-native-list-visual-overlay svg{width:100%;height:100%;object-fit:contain}/* OneKey patch: selector controls follow their original semantic colors and geometry. */
486
485
  .ok-native-list-checkbox[data-selector="networkSelector"]{padding:0;border-radius:4px;border-color:var(--nl-checkbox-border,var(--nl-separator));background:var(--nl-checkbox-icon,var(--nl-inverse-text))}
487
486
  .ok-native-list-checkbox[data-selector="networkSelector"]::after{display:none}
@@ -493,7 +492,7 @@ export const WEB_LIST_CSS = `
493
492
  /* OneKey patch: selected group members use the same primary title color as standalone wallets. */
494
493
  .ok-native-list-wallet-member[data-native-list-selected="true"]>.ok-native-list-wallet-row[data-native-list-selector="walletSidebar"] .ok-native-list-title{color:var(--nl-primary)}
495
494
  .ok-native-list-wallet-row[data-native-list-selector="walletSidebar"] .ok-native-list-wallet-badges{height:18px}
496
- .ok-native-list-wallet-row[data-native-list-selector="walletSidebar"] .ok-native-list-wallet-badges>.ok-native-list-badge{font-size:11px;line-height:14px;font-weight:400;font-family:var(--nl-font-regular);height:18px;padding:2px 6px;border-radius:4px;background:var(--nl-subdued);color:var(--nl-secondary)}
495
+ .ok-native-list-wallet-row[data-native-list-selector="walletSidebar"] .ok-native-list-wallet-badges>.ok-native-list-badge{font-size:11px;line-height:14px;font-weight:400;height:18px;padding:2px 6px;border-radius:4px;background:var(--nl-subdued);color:var(--nl-secondary)}
497
496
  .ok-native-list-wallet-row[data-native-list-selector="walletSidebar"] .ok-native-list-wallet-badges>.ok-native-list-badge[data-tone="warning"]{background:var(--nl-caution-background);color:var(--nl-caution)}
498
497
  .ok-native-list-account-row[data-native-list-selector="accountSelector"] .ok-native-list-accessories>.ok-native-list-icon-button{box-sizing:border-box;flex:0 0 38px;width:38px;height:38px;margin:-7px;padding:7px}
499
498
  .ok-native-list-account-row[data-native-list-selector="accountSelector"] .ok-native-list-accessories>.ok-native-list-icon-button[data-native-list-action]:not([data-native-list-account-control="createAddress"]):hover{background:var(--nl-strong);border-radius:50%}
@@ -501,7 +500,7 @@ export const WEB_LIST_CSS = `
501
500
  /* OneKey patch: AccountSelectorAccountListItem fixes the borderless Plus slot at top18/right20. */
502
501
  .ok-native-list-account-row[data-native-list-selector="accountSelector"]>.ok-native-list-accessories[data-native-list-account-control="createAddress"]{position:absolute;top:18px;right:12px}
503
502
  .ok-native-list-account-row[data-native-list-selector="accountSelector"] .ok-native-list-accessories>[data-native-list-account-control="createAddress"]{flex-basis:36px;width:36px;height:36px;padding:6px;border-radius:8px}
504
- .ok-native-list-account-action-row{padding-left:12px;padding-right:12px}.ok-native-list-account-action-row .ok-native-list-action-title{font-size:16px;line-height:24px;font-weight:400;font-family:var(--nl-font-regular)}.ok-native-list-account-action-row .ok-native-list-action-title[data-tone="primary"]{color:var(--nl-primary)}
503
+ .ok-native-list-account-action-row{padding-left:12px;padding-right:12px}.ok-native-list-account-action-row .ok-native-list-action-title{font-size:16px;line-height:24px;font-weight:400}.ok-native-list-account-action-row .ok-native-list-action-title[data-tone="primary"]{color:var(--nl-primary)}
505
504
  /* OneKey patch: account selector wallets and accounts keep the default cursor instead of pointer or grab affordances.
506
505
  Only the row surface is matched: cursor inherits, so plain children follow the row, while icon buttons,
507
506
  checkboxes, and action buttons keep advertising themselves with their own pointer cursor. */
@@ -1025,7 +1024,7 @@ function createVisual(context, visual, selectorPresentation) {
1025
1024
  if (isWalletText) {
1026
1025
  corner.style.fontSize = '12px';
1027
1026
  corner.style.lineHeight = '16px';
1028
- applyTextWeight(corner, '400');
1027
+ corner.style.fontWeight = '400';
1029
1028
  }
1030
1029
  if (isWalletText || overlay.width !== undefined || overlay.height !== undefined) corner.style.borderRadius = '9999px';
1031
1030
  const offsetX = String(-(overlay.offsetX ?? overlay.offset ?? 2)) + 'px';
@@ -1267,7 +1266,7 @@ export class NativeListWebEngine {
1267
1266
  behavior: 'instant'
1268
1267
  });
1269
1268
  };
1270
- constructor(host, snapshot, callbacks, virtualizationEnabled = true, sectionIndexContainer, fontFamiliesJson = '{}') {
1269
+ constructor(host, snapshot, callbacks, virtualizationEnabled = true, sectionIndexContainer) {
1271
1270
  this.document = host.ownerDocument;
1272
1271
  this.snapshot = validateSnapshot(snapshot);
1273
1272
  this.callbacks = callbacks;
@@ -1350,31 +1349,8 @@ export class NativeListWebEngine {
1350
1349
  this.document.defaultView?.addEventListener('resize', this.handleWindowResize);
1351
1350
  }
1352
1351
  this.observeSectionIndexTransforms();
1353
- this.applyFontFamilies(fontFamiliesJson);
1354
1352
  this.applySnapshot(this.snapshot);
1355
1353
  }
1356
- fontFamiliesJson = '{}';
1357
- applyFontFamilies(json) {
1358
- const families = JSON.parse(json);
1359
- const fallback = '-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif';
1360
- for (const face of ['regular', 'medium', 'semibold', 'bold']) {
1361
- const name = families[face];
1362
- const family = name === undefined ? fallback : `${JSON.stringify(name)},${fallback}`;
1363
- for (const element of [this.root, this.indexRail, this.reorderPreview]) {
1364
- element.style.setProperty(`--nl-font-${face}`, family);
1365
- }
1366
- }
1367
- this.fontFamiliesJson = json;
1368
- }
1369
- setFontFamiliesJson(json) {
1370
- if (json === this.fontFamiliesJson || this.destroyed) return;
1371
- this.invalidateActionAnchor('layout');
1372
- this.cancelPointerReorder(true);
1373
- this.cancelKeyboardReorder();
1374
- this.applyFontFamilies(json);
1375
- this.measuredRendererHeights.clear();
1376
- this.recomputeLayout();
1377
- }
1378
1354
  updateCallbacks(callbacks) {
1379
1355
  this.callbacks = callbacks;
1380
1356
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import { applyTextWeight } from "./RowText.js";
4
3
  import { applyTabularNumbers, hasExplicitRowHeight } from "./RowElements.js";
5
4
  import { RowVisualStyle } from "./RowVisual.js";
6
5
  const views = new WeakMap();
@@ -17,7 +16,7 @@ function bind(body, row, primitives) {
17
16
  v.title.style.cssText = '';
18
17
  v.title.textContent = row.title;
19
18
  v.title.dataset.tone = row.tone ?? '';
20
- if (row.presentation === 'accountSelector' && row.icon) applyTextWeight(v.title, '500');
19
+ if (row.presentation === 'accountSelector' && row.icon) v.title.style.fontWeight = '500';
21
20
  if (style?.title) primitives.textStyle(v.title, style.title);
22
21
  const visualKey = JSON.stringify([row.key, row.icon]);
23
22
  if (v.visualKey !== visualKey) {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import { applyTextWeight } from "./RowText.js";
4
3
  import { applyTabularNumbers, hasExplicitRowHeight } from "./RowElements.js";
5
4
  import { createElement, setData, tagSlot, markActionAnchorSource, createTextColumn, createBadge } from "./RowElements.js";
6
5
  import { applyTextLayout, applyTextStyleToSlot, applyValueSegments } from "./RowText.js";
@@ -241,7 +240,7 @@ function bind(body, row, primitives) {
241
240
  if (fallback) {
242
241
  fallback.style.fontSize = '19px';
243
242
  fallback.style.lineHeight = '27px';
244
- applyTextWeight(fallback, '600');
243
+ fallback.style.fontWeight = '600';
245
244
  fallback.style.color = 'var(--nl-inverse-text)';
246
245
  }
247
246
  }
@@ -252,12 +251,12 @@ function bind(body, row, primitives) {
252
251
  if (title) {
253
252
  title.style.fontSize = '16px';
254
253
  title.style.lineHeight = '24px';
255
- applyTextWeight(title, '500');
254
+ title.style.fontWeight = '500';
256
255
  }
257
256
  body.querySelectorAll('.ok-native-list-accessory').forEach(value => {
258
257
  value.style.fontSize = '16px';
259
258
  value.style.lineHeight = '24px';
260
- applyTextWeight(value, '500');
259
+ value.style.fontWeight = '500';
261
260
  });
262
261
  }
263
262
  }
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import { applyTextWeight } from "./RowText.js";
4
3
  import { createElement, setData, markActionAnchorSource } from "./RowElements.js";
5
4
  import { applyTextStyleToSlot, applyValueSegments, fontWeight } from "./RowText.js";
6
5
  import { RowVisualStyle } from "./RowVisual.js";
@@ -25,7 +24,7 @@ export function resolveWebMarketLayoutStyle(row) {
25
24
  function applyMarketTextStyle(element, style, defaults) {
26
25
  element.style.fontSize = String(style?.fontSize ?? defaults.fontSize) + 'px';
27
26
  element.style.lineHeight = String(style?.lineHeight ?? defaults.lineHeight) + 'px';
28
- applyTextWeight(element, String(fontWeight(style?.fontWeight, defaults.weight)));
27
+ element.style.fontWeight = String(fontWeight(style?.fontWeight, defaults.weight));
29
28
  element.style.color = style?.color ?? '';
30
29
  element.style.textAlign = style?.alignment ?? defaults.alignment;
31
30
  element.style.whiteSpace = (style?.lines ?? 1) > 1 ? 'normal' : 'nowrap';
@@ -6,7 +6,7 @@ export function applyValueSegments(element, segments, fontSize = 16, lineHeight
6
6
  element.textContent = '';
7
7
  element.style.fontSize = String(fontSize) + 'px';
8
8
  element.style.lineHeight = String(lineHeight) + 'px';
9
- applyTextWeight(element, String(weight));
9
+ element.style.fontWeight = String(weight);
10
10
  segments.forEach(segment => {
11
11
  const span = createElement(element.ownerDocument, 'span', undefined, segment.text);
12
12
  if (segment.style === 'subscript') {
@@ -94,7 +94,7 @@ export function applyTextLayout(element, style, defaultLines) {
94
94
  export function applyTextStyleToSlot(element, style, defaultLines) {
95
95
  if (style.fontSize !== undefined) element.style.fontSize = String(style.fontSize) + 'px';
96
96
  if (style.lineHeight !== undefined) element.style.lineHeight = String(style.lineHeight) + 'px';
97
- if (style.fontWeight !== undefined) applyTextWeight(element, String(fontWeight(style.fontWeight, 400)));
97
+ if (style.fontWeight !== undefined) element.style.fontWeight = String(fontWeight(style.fontWeight, 400));
98
98
  if (style.color !== undefined) element.style.color = style.color;
99
99
  // Explicit overrides also apply to rich text runs, but never to sibling badges.
100
100
  // Subscript segments keep their legacy size relative to the field size.
@@ -104,7 +104,7 @@ export function applyTextStyleToSlot(element, style, defaultLines) {
104
104
  if (style.fontSize !== undefined) {
105
105
  if (subscript) applySubscriptMetrics(run, style.fontSize);else run.style.fontSize = String(style.fontSize) + 'px';
106
106
  }
107
- if (style.fontWeight !== undefined) applyTextWeight(run, String(fontWeight(style.fontWeight, 400)));
107
+ if (style.fontWeight !== undefined) run.style.fontWeight = String(fontWeight(style.fontWeight, 400));
108
108
  if (style.lineHeight !== undefined && !subscript) run.style.lineHeight = String(style.lineHeight) + 'px';
109
109
  if (style.lines !== undefined || style.truncate !== undefined) run.style.whiteSpace = 'inherit';
110
110
  });
@@ -118,14 +118,4 @@ export function fontWeight(value, fallback) {
118
118
  if (value === 'regular') return 400;
119
119
  return fallback;
120
120
  }
121
- export function applyTextWeight(element, weight) {
122
- element.style.fontWeight = String(weight);
123
- const face = {
124
- '400': 'regular',
125
- '500': 'medium',
126
- '600': 'semibold',
127
- '700': 'bold'
128
- }[String(weight)] ?? 'regular';
129
- element.style.fontFamily = `var(--nl-font-${face})`;
130
- }
131
121
  //# sourceMappingURL=RowText.js.map
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- import { applyTextWeight } from "./RowText.js";
4
3
  import { applyTabularNumbers, hasExplicitRowHeight } from "./RowElements.js";
5
4
  import { createElement, setData, tagSlot, markActionAnchorSource, createTextColumn } from "./RowElements.js";
6
5
  import { applyValueSegments } from "./RowText.js";
@@ -37,7 +36,7 @@ function createSectionHeader(document, primitives, row) {
37
36
  body.style.gap = row.checkbox ? '12px' : '8px';
38
37
  title.style.fontSize = row.variant === 'summary' ? '16px' : '14px';
39
38
  title.style.lineHeight = row.variant === 'summary' ? '24px' : '20px';
40
- applyTextWeight(title, row.variant === 'summary' || row.titleActionKey && !row.checkbox ? '500' : '600');
39
+ title.style.fontWeight = row.variant === 'summary' || row.titleActionKey && !row.checkbox ? '500' : '600';
41
40
  if (row.titleActionKey) {
42
41
  const text = createElement(document, 'span', 'ok-native-list-section-title-text', row.title);
43
42
  text.style.overflow = 'hidden';
@@ -81,7 +80,7 @@ function createSectionHeader(document, primitives, row) {
81
80
  value.style.fontFamily = 'inherit';
82
81
  value.style.fontSize = '16px';
83
82
  value.style.lineHeight = '24px';
84
- applyTextWeight(value, '500');
83
+ value.style.fontWeight = '500';
85
84
  if (row.valueActionKey) {
86
85
  value.style.color = 'var(--nl-secondary)';
87
86
  value.style.padding = '0';
@@ -66,15 +66,6 @@ namespace margelo::nitro::nativelist {
66
66
  static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* snapshotJson */)>("setSnapshotJson");
67
67
  method(_javaPart, jni::make_jstring(snapshotJson));
68
68
  }
69
- std::string JHybridNativeListSpec::getFontFamiliesJson() {
70
- static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getFontFamiliesJson");
71
- auto __result = method(_javaPart);
72
- return __result->toStdString();
73
- }
74
- void JHybridNativeListSpec::setFontFamiliesJson(const std::string& fontFamiliesJson) {
75
- static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* fontFamiliesJson */)>("setFontFamiliesJson");
76
- method(_javaPart, jni::make_jstring(fontFamiliesJson));
77
- }
78
69
  std::string JHybridNativeListSpec::getContainerSlotHeightsJson() {
79
70
  static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getContainerSlotHeightsJson");
80
71
  auto __result = method(_javaPart);
@@ -52,8 +52,6 @@ namespace margelo::nitro::nativelist {
52
52
  // Properties
53
53
  std::string getSnapshotJson() override;
54
54
  void setSnapshotJson(const std::string& snapshotJson) override;
55
- std::string getFontFamiliesJson() override;
56
- void setFontFamiliesJson(const std::string& fontFamiliesJson) override;
57
55
  std::string getContainerSlotHeightsJson() override;
58
56
  void setContainerSlotHeightsJson(const std::string& containerSlotHeightsJson) override;
59
57
  bool getTopScrollEdgeHard() override;
@@ -58,11 +58,6 @@ void JHybridNativeListStateUpdater::updateViewProps(jni::alias_ref<jni::JClass>
58
58
  : !newProps->snapshotJson.hasSameValue(oldProps->snapshotJson)) {
59
59
  hybridView->setSnapshotJson(newProps->snapshotJson.get());
60
60
  }
61
- if (oldProps == nullptr
62
- ? newProps->fontFamiliesJson.isProvided()
63
- : !newProps->fontFamiliesJson.hasSameValue(oldProps->fontFamiliesJson)) {
64
- hybridView->setFontFamiliesJson(newProps->fontFamiliesJson.get());
65
- }
66
61
  if (oldProps == nullptr
67
62
  ? newProps->containerSlotHeightsJson.isProvided()
68
63
  : !newProps->containerSlotHeightsJson.hasSameValue(oldProps->containerSlotHeightsJson)) {
@@ -33,12 +33,6 @@ abstract class HybridNativeListSpec: HybridView() {
33
33
  @set:Keep
34
34
  abstract var snapshotJson: String
35
35
 
36
- @get:DoNotStrip
37
- @get:Keep
38
- @set:DoNotStrip
39
- @set:Keep
40
- abstract var fontFamiliesJson: String
41
-
42
36
  @get:DoNotStrip
43
37
  @get:Keep
44
38
  @set:DoNotStrip
@@ -79,13 +79,6 @@ namespace margelo::nitro::nativelist {
79
79
  inline void setSnapshotJson(const std::string& snapshotJson) noexcept override {
80
80
  _swiftPart.setSnapshotJson(snapshotJson);
81
81
  }
82
- inline std::string getFontFamiliesJson() noexcept override {
83
- auto __result = _swiftPart.getFontFamiliesJson();
84
- return __result;
85
- }
86
- inline void setFontFamiliesJson(const std::string& fontFamiliesJson) noexcept override {
87
- _swiftPart.setFontFamiliesJson(fontFamiliesJson);
88
- }
89
82
  inline std::string getContainerSlotHeightsJson() noexcept override {
90
83
  auto __result = _swiftPart.getContainerSlotHeightsJson();
91
84
  return __result;
@@ -118,12 +118,6 @@ using namespace margelo::nitro::nativelist::views;
118
118
  : !newViewProps.snapshotJson.hasSameValue(oldViewProps->snapshotJson)) {
119
119
  swiftPart.setSnapshotJson(newViewProps.snapshotJson.get());
120
120
  }
121
- // fontFamiliesJson: string
122
- if (oldViewProps == nullptr
123
- ? newViewProps.fontFamiliesJson.isProvided()
124
- : !newViewProps.fontFamiliesJson.hasSameValue(oldViewProps->fontFamiliesJson)) {
125
- swiftPart.setFontFamiliesJson(newViewProps.fontFamiliesJson.get());
126
- }
127
121
  // containerSlotHeightsJson: string
128
122
  if (oldViewProps == nullptr
129
123
  ? newViewProps.containerSlotHeightsJson.isProvided()
@@ -11,7 +11,6 @@ import NitroModules
11
11
  public protocol HybridNativeListSpec_protocol: HybridObject, HybridView {
12
12
  // Properties
13
13
  var snapshotJson: String { get set }
14
- var fontFamiliesJson: String { get set }
15
14
  var containerSlotHeightsJson: String { get set }
16
15
  var topScrollEdgeHard: Bool { get set }
17
16
  var topOverlayHeight: Double { get set }
@@ -132,17 +132,6 @@ open class HybridNativeListSpec_cxx {
132
132
  }
133
133
  }
134
134
 
135
- public final var fontFamiliesJson: std.string {
136
- @inline(__always)
137
- get {
138
- return std.string(self.__implementation.fontFamiliesJson)
139
- }
140
- @inline(__always)
141
- set {
142
- self.__implementation.fontFamiliesJson = String(newValue)
143
- }
144
- }
145
-
146
135
  public final var containerSlotHeightsJson: std.string {
147
136
  @inline(__always)
148
137
  get {
@@ -16,8 +16,6 @@ namespace margelo::nitro::nativelist {
16
16
  registerHybrids(this, [](Prototype& prototype) {
17
17
  prototype.registerHybridGetter("snapshotJson", &HybridNativeListSpec::getSnapshotJson);
18
18
  prototype.registerHybridSetter("snapshotJson", &HybridNativeListSpec::setSnapshotJson);
19
- prototype.registerHybridGetter("fontFamiliesJson", &HybridNativeListSpec::getFontFamiliesJson);
20
- prototype.registerHybridSetter("fontFamiliesJson", &HybridNativeListSpec::setFontFamiliesJson);
21
19
  prototype.registerHybridGetter("containerSlotHeightsJson", &HybridNativeListSpec::getContainerSlotHeightsJson);
22
20
  prototype.registerHybridSetter("containerSlotHeightsJson", &HybridNativeListSpec::setContainerSlotHeightsJson);
23
21
  prototype.registerHybridGetter("topScrollEdgeHard", &HybridNativeListSpec::getTopScrollEdgeHard);
@@ -56,8 +56,6 @@ namespace margelo::nitro::nativelist {
56
56
  // Properties
57
57
  virtual std::string getSnapshotJson() = 0;
58
58
  virtual void setSnapshotJson(const std::string& snapshotJson) = 0;
59
- virtual std::string getFontFamiliesJson() = 0;
60
- virtual void setFontFamiliesJson(const std::string& fontFamiliesJson) = 0;
61
59
  virtual std::string getContainerSlotHeightsJson() = 0;
62
60
  virtual void setContainerSlotHeightsJson(const std::string& containerSlotHeightsJson) = 0;
63
61
  virtual bool getTopScrollEdgeHard() = 0;
@@ -21,7 +21,6 @@ namespace margelo::nitro::nativelist::views {
21
21
  const react::RawProps& rawProps):
22
22
  react::ViewProps(context, sourceProps, rawProps, filterObjectKeys),
23
23
  snapshotJson(nitro::ReactProp<std::string>::fromRawValue("NativeList", "snapshotJson", rawProps, sourceProps.snapshotJson)),
24
- fontFamiliesJson(nitro::ReactProp<std::string>::fromRawValue("NativeList", "fontFamiliesJson", rawProps, sourceProps.fontFamiliesJson)),
25
24
  containerSlotHeightsJson(nitro::ReactProp<std::string>::fromRawValue("NativeList", "containerSlotHeightsJson", rawProps, sourceProps.containerSlotHeightsJson)),
26
25
  topScrollEdgeHard(nitro::ReactProp<bool>::fromRawValue("NativeList", "topScrollEdgeHard", rawProps, sourceProps.topScrollEdgeHard)),
27
26
  topOverlayHeight(nitro::ReactProp<double>::fromRawValue("NativeList", "topOverlayHeight", rawProps, sourceProps.topOverlayHeight)),
@@ -40,7 +39,6 @@ namespace margelo::nitro::nativelist::views {
40
39
  bool HybridNativeListProps::filterObjectKeys(const std::string& propName) {
41
40
  switch (hashString(propName)) {
42
41
  case hashString("snapshotJson"): return true;
43
- case hashString("fontFamiliesJson"): return true;
44
42
  case hashString("containerSlotHeightsJson"): return true;
45
43
  case hashString("topScrollEdgeHard"): return true;
46
44
  case hashString("topOverlayHeight"): return true;
@@ -46,7 +46,6 @@ namespace margelo::nitro::nativelist::views {
46
46
 
47
47
  public:
48
48
  nitro::ReactProp<std::string> snapshotJson;
49
- nitro::ReactProp<std::string> fontFamiliesJson;
50
49
  nitro::ReactProp<std::string> containerSlotHeightsJson;
51
50
  nitro::ReactProp<bool> topScrollEdgeHard;
52
51
  nitro::ReactProp<double> topOverlayHeight;
@@ -65,7 +64,6 @@ namespace margelo::nitro::nativelist::views {
65
64
  [[nodiscard]]
66
65
  bool hasSameProps(const HybridNativeListProps& other) const noexcept {
67
66
  return snapshotJson.hasSameValue(other.snapshotJson) &&
68
- fontFamiliesJson.hasSameValue(other.fontFamiliesJson) &&
69
67
  containerSlotHeightsJson.hasSameValue(other.containerSlotHeightsJson) &&
70
68
  topScrollEdgeHard.hasSameValue(other.topScrollEdgeHard) &&
71
69
  topOverlayHeight.hasSameValue(other.topOverlayHeight) &&
@@ -85,7 +83,6 @@ namespace margelo::nitro::nativelist::views {
85
83
  [[nodiscard]]
86
84
  bool hasAnyProvidedProps() const noexcept {
87
85
  return snapshotJson.isProvided() ||
88
- fontFamiliesJson.isProvided() ||
89
86
  containerSlotHeightsJson.isProvided() ||
90
87
  topScrollEdgeHard.isProvided() ||
91
88
  topOverlayHeight.isProvided() ||
@@ -5,7 +5,6 @@
5
5
  "directEventTypes": {},
6
6
  "validAttributes": {
7
7
  "snapshotJson": true,
8
- "fontFamiliesJson": true,
9
8
  "containerSlotHeightsJson": true,
10
9
  "topScrollEdgeHard": true,
11
10
  "topOverlayHeight": true,
@@ -6,7 +6,6 @@ import type { HybridView, HybridViewMethods, HybridViewProps } from 'react-nativ
6
6
  */
7
7
  export interface NativeListNativeProps extends HybridViewProps {
8
8
  snapshotJson: string;
9
- fontFamiliesJson: string;
10
9
  containerSlotHeightsJson: string;
11
10
  topScrollEdgeHard: boolean;
12
11
  topOverlayHeight: number;
@@ -4,6 +4,4 @@ export type * from './models';
4
4
  export { applyRowPatches, serializePatches, serializeSnapshot, validatePatches, validateSnapshot, } from './validation';
5
5
  export { checkboxStateForKeys, checkboxStateForSection, isSelectableRow, reduceSelection, selectionStateFromSnapshot, } from './selection';
6
6
  export type { SelectionAction, SelectionResult, SelectionState, } from './selection';
7
- export { configureNativeListFonts } from './fonts';
8
- export type { NativeListFontFamilies } from './fonts';
9
7
  //# sourceMappingURL=index.d.ts.map
@@ -144,10 +144,7 @@ export declare class NativeListWebEngine {
144
144
  private measuredRendererHeights;
145
145
  private notifyScrollCommandAccepted;
146
146
  private readonly handlePagerScrollCommandCancel;
147
- constructor(host: HTMLElement, snapshot: NativeListSnapshot, callbacks: NativeListWebCallbacks, virtualizationEnabled?: boolean, sectionIndexContainer?: HTMLElement | null, fontFamiliesJson?: string);
148
- private fontFamiliesJson;
149
- private applyFontFamilies;
150
- setFontFamiliesJson(json: string): void;
147
+ constructor(host: HTMLElement, snapshot: NativeListSnapshot, callbacks: NativeListWebCallbacks, virtualizationEnabled?: boolean, sectionIndexContainer?: HTMLElement | null);
151
148
  updateCallbacks(callbacks: NativeListWebCallbacks): void;
152
149
  setVirtualizationEnabled(enabled: boolean): void;
153
150
  applySnapshot(snapshot: NativeListSnapshot): void;
@@ -6,5 +6,4 @@ export declare function applyValueSegments(element: HTMLElement, segments: reado
6
6
  export declare function applyTextLayout(element: HTMLElement, style: NativeListTextStyle, defaultLines?: number): void;
7
7
  export declare function applyTextStyleToSlot(element: HTMLElement, style: NativeListTextStyle, defaultLines?: number): void;
8
8
  export declare function fontWeight(value: NativeListTextStyle['fontWeight'] | undefined, fallback: number): number;
9
- export declare function applyTextWeight(element: HTMLElement, weight: string | number): void;
10
9
  //# sourceMappingURL=RowText.d.ts.map