@onekeyfe/react-native-native-list 6.7.0-20 → 6.7.0-22
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/android/src/main/java/com/onekey/nativelist/NativeListAccessoryStack.kt +5 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityDetailsView.kt +29 -4
- package/android/src/main/java/com/onekey/nativelist/NativeListActivityRenderer.kt +6 -10
- package/android/src/main/java/com/onekey/nativelist/NativeListAdapter.kt +17 -1
- package/android/src/main/java/com/onekey/nativelist/NativeListDataRowRenderer.kt +15 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListGeneratedIcons.kt +47 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListIdentityRenderer.kt +33 -2
- package/android/src/main/java/com/onekey/nativelist/NativeListLeadingVisual.kt +5 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListMarketRenderer.kt +92 -28
- package/android/src/main/java/com/onekey/nativelist/NativeListModels.kt +13 -10
- package/android/src/main/java/com/onekey/nativelist/NativeListPrimitives.kt +120 -338
- package/android/src/main/java/com/onekey/nativelist/NativeListRendererRowView.kt +5 -0
- package/android/src/main/java/com/onekey/nativelist/NativeListView.kt +33 -8
- package/android/src/test/java/com/margelo/nitro/nativelist/NativeListActivityHostClipPolicyTest.kt +11 -5
- package/docs/ROW_TEMPLATES.md +10 -2
- package/docs/SPEC.md +432 -50
- package/ios/NativeListAccessoryStack.swift +6 -16
- package/ios/NativeListActivityDetailsView.swift +13 -4
- package/ios/NativeListDataRowRenderer.swift +15 -6
- package/ios/NativeListDesignAssets.swift +13 -84
- package/ios/NativeListGeneratedIcons.swift +55 -0
- package/ios/NativeListIconBinding.swift +171 -0
- package/ios/NativeListIdentityRenderer.swift +69 -13
- package/ios/NativeListLeadingVisual.swift +11 -9
- package/ios/NativeListMarketRenderer.swift +120 -31
- package/ios/NativeListMediaTileRenderer.swift +6 -2
- package/ios/NativeListMetricCardRenderer.swift +4 -2
- package/ios/NativeListSectionHeaderRenderer.swift +12 -4
- package/ios/RNCNativeListView.swift +21 -3
- package/ios/tests/NativeListAccessoryStackTests.swift +12 -0
- package/ios/tests/NativeListAccountSelectorLayoutTests.swift +96 -0
- package/ios/tests/NativeListActivityPresentationTests.swift +97 -0
- package/ios/tests/NativeListLifecycleTests.swift +73 -4
- package/ios/tests/NativeListMarketMetricsTests.swift +117 -0
- package/ios/tests/NativeListSharedIconTests.swift +236 -0
- package/lib/module/NativeList.js +25 -6
- package/lib/module/NativeList.web.js +9 -12
- package/lib/module/models.js +2 -0
- package/lib/module/validation.js +695 -114
- package/lib/module/web/NativeListGeneratedIcons.js +31 -0
- package/lib/module/web/NativeListWebEngine.js +24 -332
- package/lib/module/web/templates/ActivityRowRenderer.js +4 -24
- package/lib/module/web/templates/IdentityRowRenderer.js +66 -4
- package/lib/module/web/templates/MarketTableRowRenderer.js +36 -19
- package/lib/module/web/templates/MediaTileRowRenderer.js +2 -12
- package/lib/typescript/src/NativeList.types.d.ts +2 -2
- package/lib/typescript/src/models.d.ts +27 -14
- package/lib/typescript/src/validation.d.ts +7 -2
- package/lib/typescript/src/web/NativeListGeneratedIcons.d.ts +2 -0
- package/lib/typescript/src/web/NativeListWebEngine.d.ts +0 -1
- package/package.json +16 -10
- package/react-native-native-list.podspec +0 -5
- package/scripts/generate-icons.mjs +150 -0
- package/scripts/generate-icons.test.mjs +288 -0
- package/scripts/native-list-icons.json +260 -0
- package/src/NativeList.tsx +30 -10
- package/src/NativeList.types.ts +2 -2
- package/src/NativeList.web.tsx +10 -14
- package/src/models.ts +158 -153
- package/src/validation.ts +1757 -167
- package/src/web/NativeListGeneratedIcons.ts +28 -0
- package/src/web/NativeListWebEngine.ts +31 -415
- package/src/web/templates/ActivityRowRenderer.ts +15 -53
- package/src/web/templates/IdentityRowRenderer.ts +78 -4
- package/src/web/templates/MarketTableRowRenderer.ts +53 -33
- package/src/web/templates/MediaTileRowRenderer.ts +2 -15
- package/ios/Resources/NativeListIcons.xcassets/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_bottom.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_arrow_top.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_bottom.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_top.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_crypto_coin_outline.imageset/icon.svg +0 -4
- package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_document2.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_hor.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_dot_ver_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_drag.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_error_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_gas_solid.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_info_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_pencil.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_circle.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_large.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_plus_small.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_refresh_ccw_outline.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_account_error_custom.imageset/icon.svg +0 -14
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_all_networks_solid.imageset/icon.svg +0 -12
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_apple_brand.imageset/icon.svg +0 -6
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_bot_illus.imageset/icon.svg +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_crossed_small_solid.imageset/icon.svg +0 -3
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_globus_outline.imageset/icon.svg +0 -7
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_google_illus.imageset/icon.svg +0 -18
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/Contents.json +0 -15
- package/ios/Resources/NativeListIcons.xcassets/onekey_selector_lock_solid.imageset/icon.svg +0 -7
- package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_shield_exclamation.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_speaker_promote.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_star_solid.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_swap_hor.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_ticket.imageset/icon.svg +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/Contents.json +0 -1
- package/ios/Resources/NativeListIcons.xcassets/onekey_wallet.imageset/icon.svg +0 -1
|
@@ -226,7 +226,7 @@ function createIdentityRow(
|
|
|
226
226
|
});
|
|
227
227
|
column.insertBefore(segments, titleElement.nextSibling);
|
|
228
228
|
}
|
|
229
|
-
if (row.titleIcon || row.secondaryTitleIcon) {
|
|
229
|
+
if (row.titleIcon || row.secondaryTitleIcon || row.titleImage) {
|
|
230
230
|
const badgeLine = titleElement.querySelector<HTMLElement>(
|
|
231
231
|
':scope > .ok-native-list-badges'
|
|
232
232
|
);
|
|
@@ -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) => {
|
|
@@ -258,6 +266,45 @@ function createIdentityRow(
|
|
|
258
266
|
else icon.setAttribute('aria-hidden', 'true');
|
|
259
267
|
return icon;
|
|
260
268
|
});
|
|
269
|
+
if (row.titleImage) {
|
|
270
|
+
const descriptor = row.titleImage;
|
|
271
|
+
const holder = createElement(
|
|
272
|
+
document,
|
|
273
|
+
'span',
|
|
274
|
+
'ok-native-list-identity-title-image'
|
|
275
|
+
);
|
|
276
|
+
Object.assign(holder.style, {
|
|
277
|
+
flex: `0 0 ${descriptor.image.width}px`,
|
|
278
|
+
width: `${descriptor.image.width}px`,
|
|
279
|
+
height: `${descriptor.image.height}px`,
|
|
280
|
+
borderRadius: '50%',
|
|
281
|
+
overflow: 'hidden',
|
|
282
|
+
});
|
|
283
|
+
const image = primitives.thumbnail(descriptor.image);
|
|
284
|
+
if (image) {
|
|
285
|
+
Object.assign(image.style, {
|
|
286
|
+
width: '100%',
|
|
287
|
+
height: '100%',
|
|
288
|
+
borderRadius: 'inherit',
|
|
289
|
+
objectFit:
|
|
290
|
+
descriptor.image.contentFit === 'center'
|
|
291
|
+
? 'none'
|
|
292
|
+
: descriptor.image.contentFit ?? 'cover',
|
|
293
|
+
});
|
|
294
|
+
image.setAttribute('alt', '');
|
|
295
|
+
holder.appendChild(image);
|
|
296
|
+
}
|
|
297
|
+
if (descriptor.hoverActionKey) {
|
|
298
|
+
setData(holder, 'nativeListHoverAction', descriptor.hoverActionKey);
|
|
299
|
+
setData(holder, 'nativeListIconHelp', true);
|
|
300
|
+
markActionAnchorSource(holder, 'leadingAction');
|
|
301
|
+
}
|
|
302
|
+
if (descriptor.accessibilityLabel) {
|
|
303
|
+
holder.setAttribute('role', 'img');
|
|
304
|
+
holder.setAttribute('aria-label', descriptor.accessibilityLabel);
|
|
305
|
+
} else holder.setAttribute('aria-hidden', 'true');
|
|
306
|
+
icons.push(holder);
|
|
307
|
+
}
|
|
261
308
|
titleText.after(...icons);
|
|
262
309
|
titleElement.style.display = 'flex';
|
|
263
310
|
titleElement.style.alignItems = 'center';
|
|
@@ -300,7 +347,9 @@ function createIdentityRow(
|
|
|
300
347
|
label.style.flex = '0 1 auto';
|
|
301
348
|
label.style.minWidth = '0';
|
|
302
349
|
label.style.marginInlineStart =
|
|
303
|
-
row.titleIcon || row.secondaryTitleIcon
|
|
350
|
+
row.titleIcon || row.secondaryTitleIcon || row.titleImage
|
|
351
|
+
? '4px'
|
|
352
|
+
: '8px';
|
|
304
353
|
label.style.maxWidth =
|
|
305
354
|
suffix.maxWidth === undefined ? '' : `${suffix.maxWidth}px`;
|
|
306
355
|
label.style.overflow = 'hidden';
|
|
@@ -317,7 +366,12 @@ function createIdentityRow(
|
|
|
317
366
|
titleElement.insertBefore(label, badges);
|
|
318
367
|
});
|
|
319
368
|
}
|
|
320
|
-
if (
|
|
369
|
+
if (
|
|
370
|
+
row.badges?.length &&
|
|
371
|
+
!row.titleIcon &&
|
|
372
|
+
!row.secondaryTitleIcon &&
|
|
373
|
+
!row.titleImage
|
|
374
|
+
) {
|
|
321
375
|
const titleText = titleElement.querySelector<HTMLElement>(
|
|
322
376
|
':scope > [data-nl-slot="title"]'
|
|
323
377
|
);
|
|
@@ -513,6 +567,7 @@ type Views = {
|
|
|
513
567
|
node: HTMLElement;
|
|
514
568
|
defaults: RowVisualStyle;
|
|
515
569
|
};
|
|
570
|
+
titleImage?: { key: string; node: HTMLElement };
|
|
516
571
|
primitives: RowPrimitives;
|
|
517
572
|
};
|
|
518
573
|
const views = new WeakMap<HTMLElement, Views>();
|
|
@@ -520,10 +575,21 @@ function bind(body: HTMLElement, row: IdentityRow, primitives: RowPrimitives) {
|
|
|
520
575
|
const v = views.get(body)!;
|
|
521
576
|
v.primitives = primitives;
|
|
522
577
|
let used = false;
|
|
578
|
+
let usedTitleImage = false;
|
|
523
579
|
const next = createIdentityRow(
|
|
524
580
|
body.ownerDocument,
|
|
525
581
|
{
|
|
526
582
|
...primitives,
|
|
583
|
+
thumbnail: (source) => {
|
|
584
|
+
usedTitleImage = true;
|
|
585
|
+
const key = JSON.stringify([row.key, source]);
|
|
586
|
+
if (v.titleImage?.key !== key) {
|
|
587
|
+
if (v.titleImage) primitives.dispose(v.titleImage.node);
|
|
588
|
+
const node = primitives.thumbnail(source);
|
|
589
|
+
v.titleImage = node ? { key, node } : undefined;
|
|
590
|
+
}
|
|
591
|
+
return v.titleImage?.node;
|
|
592
|
+
},
|
|
527
593
|
visual: (source, presentation) => {
|
|
528
594
|
used = true;
|
|
529
595
|
const key = JSON.stringify([row.key, source, presentation]);
|
|
@@ -550,6 +616,10 @@ function bind(body: HTMLElement, row: IdentityRow, primitives: RowPrimitives) {
|
|
|
550
616
|
primitives.dispose(v.visual.node);
|
|
551
617
|
v.visual = undefined;
|
|
552
618
|
}
|
|
619
|
+
if (!usedTitleImage && v.titleImage) {
|
|
620
|
+
primitives.dispose(v.titleImage.node);
|
|
621
|
+
v.titleImage = undefined;
|
|
622
|
+
}
|
|
553
623
|
body.replaceChildren(...Array.from(next.childNodes));
|
|
554
624
|
body.className = next.className;
|
|
555
625
|
body.style.cssText = next.style.cssText;
|
|
@@ -640,7 +710,11 @@ function create(
|
|
|
640
710
|
function recycle(body: HTMLElement) {
|
|
641
711
|
const v = views.get(body);
|
|
642
712
|
if (v?.visual) v.primitives.dispose(v.visual.node);
|
|
643
|
-
if (v) v.
|
|
713
|
+
if (v?.titleImage) v.primitives.dispose(v.titleImage.node);
|
|
714
|
+
if (v) {
|
|
715
|
+
v.visual = undefined;
|
|
716
|
+
v.titleImage = undefined;
|
|
717
|
+
}
|
|
644
718
|
body.replaceChildren();
|
|
645
719
|
}
|
|
646
720
|
export const identityRowRenderer = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createNamedIcon } from '@onekeyfe/react-native-image/icon/dom';
|
|
1
2
|
import type {
|
|
2
3
|
MarketRow,
|
|
3
4
|
WebMarketTableCell,
|
|
@@ -14,6 +15,7 @@ type CellViews = {
|
|
|
14
15
|
signature: string;
|
|
15
16
|
visual?: HTMLElement;
|
|
16
17
|
visualKey?: string;
|
|
18
|
+
visualImageKey?: string;
|
|
17
19
|
title?: HTMLElement;
|
|
18
20
|
resting?: HTMLElement;
|
|
19
21
|
hover?: HTMLElement;
|
|
@@ -26,10 +28,6 @@ const views = new WeakMap<HTMLElement, Views>();
|
|
|
26
28
|
const columnSignatures = new WeakMap<readonly WebMarketTableColumn[], string>();
|
|
27
29
|
let sparklineId = 0;
|
|
28
30
|
const svgNamespace = 'http://www.w3.org/2000/svg';
|
|
29
|
-
const outlineStar =
|
|
30
|
-
'm15.455 7.243 7.729 1.123-5.592 5.45 1.32 7.698L12 17.879l-6.911 3.635 1.32-7.698-5.592-5.45 7.728-1.123L12 .24zM9.872 9.071l-4.759.69 3.444 3.358-.814 4.738L12 15.62l.465.245 3.791 1.993-.813-4.739 3.443-3.357-4.758-.69L12 4.758z';
|
|
31
|
-
const solidStar =
|
|
32
|
-
'm15.405 7.313 7.84 1.034-5.735 5.443 1.44 7.774L12 17.793l-6.948 3.771 1.44-7.774L.756 8.347l7.839-1.034L12 .178z';
|
|
33
31
|
function columnsSignature(columns: readonly WebMarketTableColumn[]) {
|
|
34
32
|
let signature = columnSignatures.get(columns);
|
|
35
33
|
if (signature === undefined) {
|
|
@@ -176,19 +174,13 @@ function action(
|
|
|
176
174
|
flexShrink: '0',
|
|
177
175
|
});
|
|
178
176
|
}
|
|
179
|
-
function icon(document: Document,
|
|
180
|
-
const svg = document
|
|
181
|
-
svg.setAttribute('viewBox', '0 0 24 24');
|
|
177
|
+
function icon(document: Document, name: string, size: number): SVGSVGElement {
|
|
178
|
+
const svg = createNamedIcon(document, name);
|
|
182
179
|
svg.setAttribute('width', String(size));
|
|
183
180
|
svg.setAttribute('height', String(size));
|
|
184
|
-
svg.setAttribute('aria-hidden', 'true');
|
|
185
|
-
svg.setAttribute('fill', 'currentColor');
|
|
186
|
-
const path = document.createElementNS(svgNamespace, 'path');
|
|
187
|
-
path.setAttribute('d', d);
|
|
188
|
-
path.setAttribute('fill-rule', 'evenodd');
|
|
189
|
-
svg.appendChild(path);
|
|
190
181
|
return svg;
|
|
191
182
|
}
|
|
183
|
+
|
|
192
184
|
function drawSparkline(
|
|
193
185
|
element: HTMLElement,
|
|
194
186
|
cell: Extract<WebMarketTableCell, { kind: 'sparkline' }>
|
|
@@ -287,11 +279,42 @@ function updateCell(
|
|
|
287
279
|
if (cell.kind === 'asset') {
|
|
288
280
|
const visualKey = JSON.stringify(cell.leading);
|
|
289
281
|
if (view.visualKey !== visualKey) {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
282
|
+
const visualImageKey = JSON.stringify(
|
|
283
|
+
cell.leading?.kind === 'token'
|
|
284
|
+
? { ...cell.leading, overlays: undefined }
|
|
285
|
+
: cell.leading
|
|
286
|
+
);
|
|
287
|
+
if (
|
|
288
|
+
view.visual &&
|
|
289
|
+
cell.leading?.kind === 'token' &&
|
|
290
|
+
view.visualImageKey === visualImageKey
|
|
291
|
+
) {
|
|
292
|
+
// Keep the main frame: its load/error callbacks own its visibility.
|
|
293
|
+
for (const overlay of view.visual.querySelectorAll<HTMLElement>(
|
|
294
|
+
':scope > .ok-native-list-visual-overlay'
|
|
295
|
+
)) {
|
|
296
|
+
primitives.dispose(overlay);
|
|
297
|
+
overlay.remove();
|
|
298
|
+
}
|
|
299
|
+
const overlayVisual = primitives.visual({
|
|
300
|
+
kind: 'token',
|
|
301
|
+
overlays: cell.leading.overlays,
|
|
302
|
+
});
|
|
303
|
+
if (overlayVisual) {
|
|
304
|
+
for (const overlay of overlayVisual.querySelectorAll<HTMLElement>(
|
|
305
|
+
':scope > .ok-native-list-visual-overlay'
|
|
306
|
+
))
|
|
307
|
+
view.visual.appendChild(overlay);
|
|
308
|
+
primitives.dispose(overlayVisual);
|
|
309
|
+
}
|
|
310
|
+
} else {
|
|
311
|
+
if (view.visual) {
|
|
312
|
+
primitives.dispose(view.visual);
|
|
313
|
+
view.visual.remove();
|
|
314
|
+
}
|
|
315
|
+
view.visual = primitives.visual(cell.leading);
|
|
293
316
|
}
|
|
294
|
-
view.
|
|
317
|
+
view.visualImageKey = visualImageKey;
|
|
295
318
|
view.visualKey = visualKey;
|
|
296
319
|
if (view.visual)
|
|
297
320
|
Object.assign(view.visual.style, {
|
|
@@ -453,11 +476,7 @@ function updateCell(
|
|
|
453
476
|
);
|
|
454
477
|
if (badge.actionKey) node.dataset.nativeListHoverAction = 'true';
|
|
455
478
|
node.textContent = '';
|
|
456
|
-
const svg = icon(
|
|
457
|
-
document,
|
|
458
|
-
'M9.483 11.458v3.5h-1v-3.5z M10.467 2.698a2.03 2.03 0 0 1 3.065 0l1.358 1.564a.03.03 0 0 0 .028.01l2.046-.325a2.03 2.03 0 0 1 2.347 1.971l.037 2.07q0 .016.014.026l1.776 1.066a2.03 2.03 0 0 1 .532 3.019l-1.304 1.609a.03.03 0 0 0-.005.03l.675 1.956a2.03 2.03 0 0 1-1.533 2.656l-2.033.394a.03.03 0 0 0-.023.019l-.741 1.933a2.03 2.03 0 0 1-2.88 1.05l-1.811-1.006a.03.03 0 0 0-.03 0l-1.811 1.005a2.03 2.03 0 0 1-2.88-1.049l-.742-1.933a.03.03 0 0 0-.023-.019l-2.033-.394a2.03 2.03 0 0 1-1.532-2.656l.675-1.957a.03.03 0 0 0-.005-.029l-1.304-1.61a2.03 2.03 0 0 1 .532-3.018l1.776-1.066a.03.03 0 0 0 .014-.026l.035-2.07a2.03 2.03 0 0 1 2.349-1.97l2.045.324a.03.03 0 0 0 .028-.01zm1.516 3.76a.5.5 0 0 0-.447.276l-1.861 3.724H8.483a1 1 0 0 0-1 1v3.5a1 1 0 0 0 1 1h6.692a2 2 0 0 0 1.981-1.73l.341-2.5a2 2 0 0 0-1.982-2.27h-1.939l.197-1.269a1.5 1.5 0 0 0-1.481-1.731z',
|
|
459
|
-
14
|
|
460
|
-
);
|
|
479
|
+
const svg = icon(document, 'BadgeRecognizedSolid', 14);
|
|
461
480
|
node.appendChild(svg);
|
|
462
481
|
}
|
|
463
482
|
title.appendChild(node);
|
|
@@ -578,13 +597,7 @@ function updateCell(
|
|
|
578
597
|
);
|
|
579
598
|
button.style.padding = '0';
|
|
580
599
|
button.style.color = 'var(--nl-icon-subdued)';
|
|
581
|
-
button.appendChild(
|
|
582
|
-
icon(
|
|
583
|
-
document,
|
|
584
|
-
'M21 17h-4v4H3V7h4V3h14zM5 19h10V9H5zM9 7h8v8h2V5H9z',
|
|
585
|
-
14
|
|
586
|
-
)
|
|
587
|
-
);
|
|
600
|
+
button.appendChild(icon(document, 'Copy3Outline', 14));
|
|
588
601
|
hoverFrame.appendChild(button);
|
|
589
602
|
}
|
|
590
603
|
track.appendChild(hoverFrame);
|
|
@@ -613,12 +626,19 @@ function updateCell(
|
|
|
613
626
|
: 'var(--nl-icon-subdued)';
|
|
614
627
|
let svg = button.querySelector('svg');
|
|
615
628
|
if (!svg) {
|
|
616
|
-
svg = icon(document, cell.active ?
|
|
629
|
+
svg = icon(document, cell.active ? 'StarSolid' : 'StarOutline', 16);
|
|
617
630
|
button.appendChild(svg);
|
|
618
631
|
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
632
|
+
const name = cell.active ? 'StarSolid' : 'StarOutline';
|
|
633
|
+
if (
|
|
634
|
+
!svg
|
|
635
|
+
.querySelector('use')
|
|
636
|
+
?.getAttribute('href')
|
|
637
|
+
?.endsWith(`#onekey-${name}`)
|
|
638
|
+
) {
|
|
639
|
+
const replacement = icon(document, name, 16);
|
|
640
|
+
svg.replaceWith(replacement);
|
|
641
|
+
}
|
|
622
642
|
if (!button.parentElement) element.appendChild(button);
|
|
623
643
|
} else if (cell.kind === 'sparkline') drawSparkline(element, cell);
|
|
624
644
|
else {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createNamedIcon } from '@onekeyfe/react-native-image/icon/dom';
|
|
1
2
|
import type { MediaTileRow, NativeListTextStyle } from '../../models';
|
|
2
3
|
import type { RowPrimitives } from './RowVisual';
|
|
3
4
|
|
|
@@ -220,21 +221,7 @@ function initGallery(body: HTMLElement, primitives: RowPrimitives) {
|
|
|
220
221
|
};
|
|
221
222
|
const frame = element('ok-native-list-media-image');
|
|
222
223
|
const fallback = element('ok-native-list-media-fallback');
|
|
223
|
-
const svg = document
|
|
224
|
-
svg.setAttribute('viewBox', '0 0 24 24');
|
|
225
|
-
svg.setAttribute('width', '24');
|
|
226
|
-
svg.setAttribute('height', '24');
|
|
227
|
-
svg.setAttribute('aria-hidden', 'true');
|
|
228
|
-
svg.setAttribute('fill', 'currentColor');
|
|
229
|
-
for (const d of [
|
|
230
|
-
'M14.25 7a2 2 0 1 1 0 4 2 2 0 0 1 0-4',
|
|
231
|
-
'M21 21H3V3h18zM5 16.414V19h12.586L14 15.414l-2 2-4-4zm0-2.828 3-3 4 4 2-2 5 5V5H5z',
|
|
232
|
-
]) {
|
|
233
|
-
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
234
|
-
path.setAttribute('d', d);
|
|
235
|
-
path.setAttribute('fill-rule', 'evenodd');
|
|
236
|
-
svg.append(path);
|
|
237
|
-
}
|
|
224
|
+
const svg = createNamedIcon(document, 'ImageSquareWavesOutline');
|
|
238
225
|
fallback.append(svg);
|
|
239
226
|
Object.assign(fallback.style, {
|
|
240
227
|
position: 'absolute',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"info":{"author":"xcode","version":1}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="m13 17.586 5-5L19.414 14 12 21.414 4.586 14 6 12.586l5 5V3h2z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M19.414 10 18 11.414l-5-5V21h-2V6.414l-5 5L4.586 10 12 2.586z"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
package/ios/Resources/NativeListIcons.xcassets/onekey_badge_verified_solid.imageset/icon.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="#000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M9.483 11.458v3.5h-1v-3.5z M10.467 2.698a2.03 2.03 0 0 1 3.065 0l1.358 1.564a.03.03 0 0 0 .028.01l2.046-.325a2.03 2.03 0 0 1 2.347 1.971l.037 2.07q0 .016.014.026l1.776 1.066a2.03 2.03 0 0 1 .532 3.019l-1.304 1.609a.03.03 0 0 0-.005.03l.675 1.956a2.03 2.03 0 0 1-1.533 2.656l-2.033.394a.03.03 0 0 0-.023.019l-.741 1.933a2.03 2.03 0 0 1-2.88 1.05l-1.811-1.006a.03.03 0 0 0-.03 0l-1.811 1.005a2.03 2.03 0 0 1-2.88-1.049l-.742-1.933a.03.03 0 0 0-.023-.019l-2.033-.394a2.03 2.03 0 0 1-1.532-2.656l.675-1.957a.03.03 0 0 0-.005-.029l-1.304-1.61a2.03 2.03 0 0 1 .532-3.018l1.776-1.066a.03.03 0 0 0 .014-.026l.035-2.07a2.03 2.03 0 0 1 2.349-1.97l2.045.324a.03.03 0 0 0 .028-.01zm1.516 3.76a.5.5 0 0 0-.447.276l-1.861 3.724H8.483a1 1 0 0 0-1 1v3.5a1 1 0 0 0 1 1h6.692a2 2 0 0 0 1.981-1.73l.341-2.5a2 2 0 0 0-1.982-2.27h-1.939l.197-1.269a1.5 1.5 0 0 0-1.481-1.731z"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_chart_trending_up.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M22 13h-2V9.414l-7 7-4-4-6 6L1.586 17 9 9.586l4 4L18.586 8H15V6h7z"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_checked.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="#000"><path d="M12.204 5.043a1 1 0 0 1 0 1.414l-4.5 4.5a1 1 0 0 1-1.414 0l-2-2a1 1 0 1 1 1.414-1.414l1.293 1.293 3.793-3.793a1 1 0 0 1 1.414 0"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
package/ios/Resources/NativeListIcons.xcassets/onekey_checkbox_indeterminate.imageset/icon.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="#000"><path d="M4 8a1 1 0 0 1 1-1h6a1 1 0 0 1 0 2H5a1 1 0 0 1-1-1"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="#000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.707 9.707 12 18.414 3.293 9.707l1.414-1.414L12 15.586l7.293-7.293z"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_grabber_ver.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="#000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17.414 15 12 20.414 6.586 15 8 13.586l4 4 4-4zm0-6L16 10.414l-4-4-4 4L6.586 9 12 3.586z"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_chevron_right_small.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M15.414 12 10 17.414 8.586 16l4-4-4-4L10 6.586z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="#000" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m20.707 14.293-1.414 1.414L12 8.414l-7.293 7.293-1.414-1.414L12 5.586z"/></svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
2
|
-
<path d="M11 16.387a4.5 4.5 0 0 1 0-8.775V6h2v1.613a4.5 4.5 0 0 1 2.856 2.067l-1.712 1.032a2.5 2.5 0 1 0 0 2.576l1.712 1.032A4.5 4.5 0 0 1 13 16.386V18h-2z"/>
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10m-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0"/>
|
|
4
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M12 16H8v-2h4zm4-4H8v-2h8zm0-4H8V6h8z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20 22H4V2h16zM6 20h12V4H6z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M6 14H2v-4h4zm8 0h-4v-4h4zm8 0h-4v-4h4z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M14 18v4h-4v-4zm0-4h-4v-4h4zm0-8h-4V2h4z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M11 21H7v-4h4zm6 0h-4v-4h4zm-6-7H7v-4h4zm6 0h-4v-4h4zm-6-7H7V3h4zm6 0h-4V3h4z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path fill-rule="evenodd" d="M23.256 20H.742L12 1.041zM11 15v2h2v-2zm0-6v5h2V9z" clip-rule="evenodd"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_image_square_waves.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#000" viewBox="0 0 24 24"><path d="M14.25 7a2 2 0 1 1 0 4 2 2 0 0 1 0-4"/><path fill-rule="evenodd" d="M21 21H3V3h18zM5 16.414V19h12.586L14 15.414l-2 2-4-4zm0-2.828 3-3 4 4 2-2 5 5V5H5z" clip-rule="evenodd"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M13 17h-2v-5h-1v-2h3zm0-8h-2V7h2z"/><path fill-rule="evenodd" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16" clip-rule="evenodd"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M17 13H7v-2h10z"/><path fill-rule="evenodd" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16" clip-rule="evenodd"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_minus_circle_solid.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path fill-rule="evenodd" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2M7 13h10v-2H7z" clip-rule="evenodd"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path fill-rule="evenodd" d="M22.414 7.5 7.914 22H2v-5.914l14.5-14.5zM4 16.914V20h3.086l9.5-9.5L13.5 7.414zM14.914 6 18 9.086 19.586 7.5 16.5 4.414z" clip-rule="evenodd"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M13 11h4v2h-4v4h-2v-4l-4 .001v-2L11 11V7h2z"/><path fill-rule="evenodd" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16" clip-rule="evenodd"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M13 11h8v2h-8v8h-2v-8H3v-2h8V3h2z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path d="M13 11h5v2h-5v5h-2v-5H6v-2h5V6h2z"/></svg>
|
package/ios/Resources/NativeListIcons.xcassets/onekey_questionmark_solid.imageset/Contents.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"images":[{"filename":"icon.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000"><path fill-rule="evenodd" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m-1 15h2v-2h-2zM9 7v3h2V9h2v1l-2 1.5V14h2v-1.5l2-1.5V7z" clip-rule="evenodd"/></svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 24 24">
|
|
2
|
-
<path d="M5 12a7 7 0 0 0 7 7 7.15 7.15 0 0 0 4.955-2h-2.943v-2h6v6h-2v-2.257A9.148 9.148 0 0 1 12 21a9 9 0 0 1-9-9v-1h2v1Zm1-6.754A9.148 9.148 0 0 1 12 3a9 9 0 0 1 9 9v1h-2v-1a7 7 0 0 0-7-7 7.15 7.15 0 0 0-4.955 2H10v2H4V3h2v2.246Z"/>
|
|
3
|
-
</svg>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" fill="currentColor">
|
|
2
|
-
<path
|
|
3
|
-
fill="#000"
|
|
4
|
-
fill-opacity="0.447"
|
|
5
|
-
d="M12.5 12.75a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"
|
|
6
|
-
/>
|
|
7
|
-
<path
|
|
8
|
-
fill="#000"
|
|
9
|
-
fill-opacity="0.447"
|
|
10
|
-
fill-rule="evenodd"
|
|
11
|
-
d="M0 3.5A3.5 3.5 0 0 1 3.5 0h8.088A2.41 2.41 0 0 1 14 2.412V5h1a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3H4a4 4 0 0 1-4-4zm2 3.163V14a2 2 0 0 0 2 2h11a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3.5c-.537 0-1.045-.12-1.5-.337M2 3.5A1.5 1.5 0 0 0 3.5 5H12V2.412A.41.41 0 0 0 11.588 2H3.5A1.5 1.5 0 0 0 2 3.5"
|
|
12
|
-
clip-rule="evenodd"
|
|
13
|
-
/>
|
|
14
|
-
</svg>
|