finsignal-feed-explore 1.3.0 → 1.3.1
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/dist/snippets/NewsSnippet.js +28 -4
- package/package.json +1 -1
|
@@ -74,18 +74,42 @@ export const NewsSnippet = ({ id, title, content, recommendation, stocks = [], o
|
|
|
74
74
|
: {
|
|
75
75
|
onPress: onPress,
|
|
76
76
|
style: containerStyle
|
|
77
|
-
}), { children: [_jsx(
|
|
77
|
+
}), { children: [Platform.OS === 'web' ? (_jsx("div", { style: {
|
|
78
|
+
fontSize: '18px',
|
|
79
|
+
fontWeight: '700',
|
|
80
|
+
color: colors.text,
|
|
81
|
+
marginBottom: '12px',
|
|
82
|
+
lineHeight: '24px'
|
|
83
|
+
}, children: title })) : (_jsx(Text, { style: {
|
|
78
84
|
fontSize: 18,
|
|
79
85
|
fontWeight: '700',
|
|
80
86
|
color: colors.text,
|
|
81
87
|
marginBottom: 12,
|
|
82
88
|
lineHeight: 24
|
|
83
|
-
}, children: title }), _jsx(
|
|
89
|
+
}, children: title })), Platform.OS === 'web' ? (_jsx("div", { style: {
|
|
90
|
+
fontSize: '14px',
|
|
91
|
+
color: colors.textSecondary,
|
|
92
|
+
lineHeight: '20px',
|
|
93
|
+
marginBottom: '16px'
|
|
94
|
+
}, children: content })) : (_jsx(Text, { style: {
|
|
84
95
|
fontSize: 14,
|
|
85
96
|
color: colors.textSecondary,
|
|
86
97
|
lineHeight: 20,
|
|
87
98
|
marginBottom: 16
|
|
88
|
-
}, children: content }), recommendation && (_jsxs(
|
|
99
|
+
}, children: content })), recommendation && (Platform.OS === 'web' ? (_jsxs("div", { style: {
|
|
100
|
+
backgroundColor: '#F3E8FF',
|
|
101
|
+
padding: '12px',
|
|
102
|
+
borderRadius: '16px',
|
|
103
|
+
marginBottom: '16px',
|
|
104
|
+
display: 'flex',
|
|
105
|
+
flexDirection: 'row',
|
|
106
|
+
alignItems: 'flex-start'
|
|
107
|
+
}, children: [_jsx(Sparkles, { size: 16, color: "#8B5CF6", style: { marginRight: '8px' } }), _jsxs("div", { style: {
|
|
108
|
+
fontSize: '14px',
|
|
109
|
+
color: '#111827',
|
|
110
|
+
flex: 1,
|
|
111
|
+
lineHeight: '20px'
|
|
112
|
+
}, children: ["A breakout is expected at the resistance level of", ' ', _jsx("span", { style: { fontWeight: '700' }, children: recommendation.priceRange }), ". It is recommended to consider long positions"] })] })) : (_jsxs(View, { style: {
|
|
89
113
|
backgroundColor: '#F3E8FF',
|
|
90
114
|
padding: 12,
|
|
91
115
|
borderRadius: 16,
|
|
@@ -97,7 +121,7 @@ export const NewsSnippet = ({ id, title, content, recommendation, stocks = [], o
|
|
|
97
121
|
color: '#111827',
|
|
98
122
|
flex: 1,
|
|
99
123
|
lineHeight: 20
|
|
100
|
-
}, children: ["A breakout is expected at the resistance level of", ' ', _jsx(Text, { style: { fontWeight: '700' }, children: recommendation.priceRange }), ". It is recommended to consider long positions"] })] })), stocks.length > 0 && (_jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: { marginBottom: 16, borderRadius: 16 }, contentContainerStyle: { paddingRight: 16 }, children: _jsx(View, { style: { flexDirection: 'row', gap: 8 }, children: stocks.map((stock, index) => (_jsxs(View, { style: stockItemStyle(stock.changeType), children: [_jsx(View, { style: {
|
|
124
|
+
}, children: ["A breakout is expected at the resistance level of", ' ', _jsx(Text, { style: { fontWeight: '700' }, children: recommendation.priceRange }), ". It is recommended to consider long positions"] })] }))), stocks.length > 0 && (_jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: { marginBottom: 16, borderRadius: 16 }, contentContainerStyle: { paddingRight: 16 }, children: _jsx(View, { style: { flexDirection: 'row', gap: 8 }, children: stocks.map((stock, index) => (_jsxs(View, { style: stockItemStyle(stock.changeType), children: [_jsx(View, { style: {
|
|
101
125
|
width: 24,
|
|
102
126
|
height: 24,
|
|
103
127
|
borderRadius: 16,
|