finsignal-feed-explore 2.20.3 → 2.21.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/FeedList.css +97 -4
- package/dist/FeedList.css.map +1 -0
- package/dist/components/Chip.css +2 -4
- package/dist/components/Chip.css.map +1 -0
- package/dist/components/EmptyState.css +1 -0
- package/dist/components/EmptyState.css.map +1 -0
- package/dist/components/FilterButton.css +2 -0
- package/dist/components/FilterButton.css.map +1 -0
- package/dist/components/NewsSkeleton.css +151 -179
- package/dist/components/NewsSkeleton.css.map +1 -0
- package/dist/components/SearchButton.css +2 -0
- package/dist/components/SearchButton.css.map +1 -0
- package/dist/components/SearchInput.css +4 -2
- package/dist/components/SearchInput.css.map +1 -0
- package/dist/filters/FiltersOverlay.css +1 -2
- package/dist/filters/FiltersOverlay.css.map +1 -0
- package/dist/newsfeed.css +97 -4
- package/dist/snippets/NewsSnippet.css +139 -214
- package/dist/snippets/NewsSnippet.css.map +1 -0
- package/package.json +4 -2
package/dist/FeedList.css
CHANGED
|
@@ -1,6 +1,98 @@
|
|
|
1
1
|
/* Import component styles */
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
.filter-button {
|
|
3
|
+
width: 20px;
|
|
4
|
+
height: 20px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
background: none;
|
|
9
|
+
border: none;
|
|
10
|
+
padding: 0;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
position: relative;
|
|
13
|
+
transition: opacity 0.2s ease;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.filter-button:hover {
|
|
17
|
+
opacity: 0.7;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.filter-button:active {
|
|
21
|
+
opacity: 0.5;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.filter-button:focus {
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.filter-button:focus-visible {
|
|
29
|
+
outline: 2px solid #7863F6;
|
|
30
|
+
outline-offset: 2px;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Badge styles */
|
|
35
|
+
.filter-button--with-badge {
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.filter-button__badge {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: -2px;
|
|
42
|
+
right: -2px;
|
|
43
|
+
border-radius: 12px;
|
|
44
|
+
width: 12px;
|
|
45
|
+
height: 12px;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.filter-button__badge-text {
|
|
53
|
+
font-size: 8px;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
line-height: 12px;
|
|
56
|
+
letter-spacing: -0.2px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.empty-state {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
padding: 48px 24px;
|
|
65
|
+
text-align: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.empty-state__icon {
|
|
69
|
+
margin-bottom: 24px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.empty-state__icon svg {
|
|
73
|
+
width: 120px;
|
|
74
|
+
height: 120px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.empty-state__content {
|
|
78
|
+
max-width: 320px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.empty-state__title {
|
|
82
|
+
font-size: 20px;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
line-height: 28px;
|
|
85
|
+
color: #040405;
|
|
86
|
+
margin: 0 0 8px 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.empty-state__description {
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
line-height: 20px;
|
|
93
|
+
color: rgba(4, 4, 5, 0.56);
|
|
94
|
+
margin: 0;
|
|
95
|
+
}
|
|
4
96
|
|
|
5
97
|
.news-feed {
|
|
6
98
|
position: relative;
|
|
@@ -8,7 +100,7 @@
|
|
|
8
100
|
height: 100%;
|
|
9
101
|
max-width: 600px;
|
|
10
102
|
margin: 0 auto;
|
|
11
|
-
font-family:
|
|
103
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
12
104
|
overflow: hidden;
|
|
13
105
|
}
|
|
14
106
|
|
|
@@ -143,7 +235,6 @@
|
|
|
143
235
|
transform: rotate(360deg);
|
|
144
236
|
}
|
|
145
237
|
}
|
|
146
|
-
|
|
147
238
|
.news-feed__scroll-trigger {
|
|
148
239
|
height: 20px;
|
|
149
240
|
}
|
|
@@ -155,3 +246,5 @@
|
|
|
155
246
|
font-size: 16px;
|
|
156
247
|
line-height: 24px;
|
|
157
248
|
}
|
|
249
|
+
|
|
250
|
+
/*# sourceMappingURL=FeedList.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../src/FeedList.scss","../src/components/FilterButton.scss","../src/components/EmptyState.scss"],"names":[],"mappings":"AAAA;ACAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;AACA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;ACtDF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AF/BF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;IACE;;;AAIJ;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA","file":"FeedList.css"}
|
package/dist/components/Chip.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
background: transparent;
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
transition: all 0.2s ease;
|
|
12
|
-
font-family:
|
|
12
|
+
font-family: "Inter", sans-serif;
|
|
13
13
|
font-size: 14px;
|
|
14
14
|
font-weight: 400;
|
|
15
15
|
line-height: 20px;
|
|
@@ -40,6 +40,4 @@
|
|
|
40
40
|
white-space: nowrap;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
/*# sourceMappingURL=Chip.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/Chip.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE","file":"Chip.css"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/EmptyState.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA","file":"EmptyState.css"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/FilterButton.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA;;;AAGF;AACA;EACE;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA","file":"FilterButton.css"}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/* CSS Variables for theming */
|
|
2
|
+
.news-skeleton-container {
|
|
3
|
+
--skeleton-bg: #f0f0f0;
|
|
4
|
+
--skeleton-shimmer: linear-gradient(
|
|
5
|
+
90deg,
|
|
6
|
+
rgba(255, 255, 255, 0) 0%,
|
|
7
|
+
rgba(255, 255, 255, 0.5) 50%,
|
|
8
|
+
rgba(255, 255, 255, 0) 100%
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
.news-skeleton-container[data-theme=dark] {
|
|
12
|
+
--skeleton-bg: #2a2a2e;
|
|
13
|
+
--skeleton-shimmer: linear-gradient(
|
|
14
|
+
90deg,
|
|
15
|
+
rgba(255, 255, 255, 0) 0%,
|
|
16
|
+
rgba(255, 255, 255, 0.1) 50%,
|
|
17
|
+
rgba(255, 255, 255, 0) 100%
|
|
18
|
+
);
|
|
9
19
|
}
|
|
10
20
|
|
|
11
21
|
.news-skeleton-container {
|
|
@@ -15,230 +25,192 @@
|
|
|
15
25
|
}
|
|
16
26
|
|
|
17
27
|
.news-skeleton {
|
|
18
|
-
border-radius: 0;
|
|
19
28
|
padding: 12px;
|
|
20
29
|
display: flex;
|
|
21
30
|
flex-direction: column;
|
|
22
31
|
gap: 12px;
|
|
32
|
+
background: transparent;
|
|
23
33
|
}
|
|
24
34
|
|
|
25
|
-
.news-skeleton--light {
|
|
26
|
-
background: #ffffff;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.news-skeleton--dark {
|
|
30
|
-
background: #1a1a1e;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* Header: дата слева, категория справа */
|
|
34
35
|
.news-skeleton__header {
|
|
35
36
|
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
37
|
justify-content: space-between;
|
|
38
|
-
|
|
38
|
+
align-items: center;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.news-skeleton__timestamp {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
height: 16px;
|
|
43
|
+
width: 60px;
|
|
44
44
|
border-radius: 4px;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
background: var(--skeleton-bg);
|
|
46
|
+
position: relative;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
}
|
|
49
|
+
.news-skeleton__timestamp::after {
|
|
50
|
+
content: "";
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 0;
|
|
53
|
+
left: -100%;
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
background: var(--skeleton-shimmer);
|
|
57
|
+
animation: shimmer 1.5s infinite;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
.news-skeleton__category {
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
height: 20px;
|
|
62
|
+
width: 80px;
|
|
59
63
|
border-radius: 4px;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
.news-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
background: var(--skeleton-bg);
|
|
65
|
+
position: relative;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
.news-skeleton__category::after {
|
|
69
|
+
content: "";
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 0;
|
|
72
|
+
left: -100%;
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
background: var(--skeleton-shimmer);
|
|
76
|
+
animation: shimmer 1.5s infinite;
|
|
70
77
|
}
|
|
71
78
|
|
|
72
|
-
/* Title */
|
|
73
79
|
.news-skeleton__title {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
gap: 8px;
|
|
77
|
-
padding: 0 4px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.news-skeleton__title-line {
|
|
81
|
-
height: 22px;
|
|
82
|
-
background: #e5e7eb;
|
|
80
|
+
height: 40px;
|
|
81
|
+
width: 100%;
|
|
83
82
|
border-radius: 4px;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
.news-skeleton__title
|
|
83
|
+
background: var(--skeleton-bg);
|
|
84
|
+
position: relative;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
}
|
|
87
|
+
.news-skeleton__title::after {
|
|
88
|
+
content: "";
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 0;
|
|
91
|
+
left: -100%;
|
|
89
92
|
width: 100%;
|
|
93
|
+
height: 100%;
|
|
94
|
+
background: var(--skeleton-shimmer);
|
|
95
|
+
animation: shimmer 1.5s infinite;
|
|
90
96
|
}
|
|
91
97
|
|
|
92
|
-
.news-skeleton__title-line--partial {
|
|
93
|
-
width: 75%;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* Source */
|
|
97
98
|
.news-skeleton__source {
|
|
98
99
|
display: flex;
|
|
99
100
|
align-items: center;
|
|
100
|
-
gap:
|
|
101
|
-
padding: 0 4px;
|
|
101
|
+
gap: 8px;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.news-skeleton__source-logo {
|
|
105
105
|
width: 16px;
|
|
106
106
|
height: 16px;
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
background: var(--skeleton-bg);
|
|
109
109
|
flex-shrink: 0;
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
position: relative;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
}
|
|
113
|
+
.news-skeleton__source-logo::after {
|
|
114
|
+
content: "";
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 0;
|
|
117
|
+
left: -100%;
|
|
118
|
+
width: 100%;
|
|
119
|
+
height: 100%;
|
|
120
|
+
background: var(--skeleton-shimmer);
|
|
121
|
+
animation: shimmer 1.5s infinite;
|
|
112
122
|
}
|
|
113
123
|
|
|
114
124
|
.news-skeleton__source-name {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
background: #e5e7eb;
|
|
125
|
+
height: 16px;
|
|
126
|
+
width: 100px;
|
|
118
127
|
border-radius: 4px;
|
|
119
|
-
|
|
120
|
-
|
|
128
|
+
background: var(--skeleton-bg);
|
|
129
|
+
position: relative;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
}
|
|
132
|
+
.news-skeleton__source-name::after {
|
|
133
|
+
content: "";
|
|
134
|
+
position: "";
|
|
135
|
+
top: 0;
|
|
136
|
+
left: -100%;
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 100%;
|
|
139
|
+
background: var(--skeleton-shimmer);
|
|
140
|
+
animation: shimmer 1.5s infinite;
|
|
121
141
|
}
|
|
122
142
|
|
|
123
|
-
/* Content */
|
|
124
143
|
.news-skeleton__content {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
gap: 6px;
|
|
128
|
-
padding: 0 4px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.news-skeleton__content-line {
|
|
132
|
-
height: 16px;
|
|
133
|
-
background: #e5e7eb;
|
|
144
|
+
height: 32px;
|
|
145
|
+
width: 100%;
|
|
134
146
|
border-radius: 4px;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
.news-skeleton__content
|
|
140
|
-
|
|
147
|
+
background: var(--skeleton-bg);
|
|
148
|
+
position: relative;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
}
|
|
151
|
+
.news-skeleton__content::after {
|
|
152
|
+
content: "";
|
|
153
|
+
position: absolute;
|
|
154
|
+
top: 0;
|
|
155
|
+
left: -100%;
|
|
156
|
+
width: 100%;
|
|
157
|
+
height: 100%;
|
|
158
|
+
background: var(--skeleton-shimmer);
|
|
159
|
+
animation: shimmer 1.5s infinite;
|
|
141
160
|
}
|
|
142
161
|
|
|
143
|
-
/* AI Summary */
|
|
144
162
|
.news-skeleton__ai-summary {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
animation:
|
|
161
|
-
animation-delay: 0.4s;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.news-skeleton__ai-text {
|
|
165
|
-
flex: 1;
|
|
166
|
-
display: flex;
|
|
167
|
-
flex-direction: column;
|
|
168
|
-
gap: 4px;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.news-skeleton__ai-text-line {
|
|
172
|
-
height: 14px;
|
|
173
|
-
background: #e5e7eb;
|
|
174
|
-
border-radius: 4px;
|
|
175
|
-
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
|
176
|
-
animation-delay: 0.45s;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.news-skeleton__ai-text-line--short {
|
|
180
|
-
width: 60%;
|
|
163
|
+
height: 48px;
|
|
164
|
+
width: 100%;
|
|
165
|
+
border-radius: 8px;
|
|
166
|
+
background: var(--skeleton-bg);
|
|
167
|
+
position: relative;
|
|
168
|
+
overflow: hidden;
|
|
169
|
+
}
|
|
170
|
+
.news-skeleton__ai-summary::after {
|
|
171
|
+
content: "";
|
|
172
|
+
position: absolute;
|
|
173
|
+
top: 0;
|
|
174
|
+
left: -100%;
|
|
175
|
+
width: 100%;
|
|
176
|
+
height: 100%;
|
|
177
|
+
background: var(--skeleton-shimmer);
|
|
178
|
+
animation: shimmer 1.5s infinite;
|
|
181
179
|
}
|
|
182
180
|
|
|
183
|
-
|
|
184
|
-
.news-skeleton__stocks {
|
|
181
|
+
.news-skeleton__actions {
|
|
185
182
|
display: flex;
|
|
186
|
-
|
|
183
|
+
justify-content: flex-end;
|
|
187
184
|
gap: 4px;
|
|
188
185
|
padding: 0 4px;
|
|
189
186
|
}
|
|
190
187
|
|
|
191
|
-
.news-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.news-skeleton__stock-logo {
|
|
201
|
-
width: 48px;
|
|
202
|
-
height: 48px;
|
|
203
|
-
background: #e5e7eb;
|
|
204
|
-
border-radius: 100px;
|
|
205
|
-
flex-shrink: 0;
|
|
206
|
-
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
|
207
|
-
animation-delay: 0.5s;
|
|
188
|
+
.news-skeleton__action {
|
|
189
|
+
width: 32px;
|
|
190
|
+
height: 32px;
|
|
191
|
+
border-radius: 50%;
|
|
192
|
+
background: var(--skeleton-bg);
|
|
193
|
+
position: relative;
|
|
194
|
+
overflow: hidden;
|
|
208
195
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
.news-skeleton__stock-change {
|
|
220
|
-
width: 80px;
|
|
221
|
-
height: 16px;
|
|
222
|
-
background: #e5e7eb;
|
|
223
|
-
border-radius: 4px;
|
|
224
|
-
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
|
225
|
-
animation-delay: 0.6s;
|
|
196
|
+
.news-skeleton__action::after {
|
|
197
|
+
content: "";
|
|
198
|
+
position: absolute;
|
|
199
|
+
top: 0;
|
|
200
|
+
left: -100%;
|
|
201
|
+
width: 100%;
|
|
202
|
+
height: 100%;
|
|
203
|
+
background: var(--skeleton-shimmer);
|
|
204
|
+
animation: shimmer 1.5s infinite;
|
|
226
205
|
}
|
|
227
206
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
207
|
+
@keyframes shimmer {
|
|
208
|
+
0% {
|
|
209
|
+
left: -100%;
|
|
210
|
+
}
|
|
211
|
+
100% {
|
|
212
|
+
left: 100%;
|
|
213
|
+
}
|
|
235
214
|
}
|
|
236
215
|
|
|
237
|
-
.
|
|
238
|
-
width: 16px;
|
|
239
|
-
height: 16px;
|
|
240
|
-
background: #e5e7eb;
|
|
241
|
-
border-radius: 4px;
|
|
242
|
-
animation: skeleton-pulse 1.5s ease-in-out infinite;
|
|
243
|
-
animation-delay: 0.65s;
|
|
244
|
-
}
|
|
216
|
+
/*# sourceMappingURL=NewsSkeleton.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/NewsSkeleton.scss"],"names":[],"mappings":"AAAA;AACA;EAEE;EACA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAQA;EACE;EACA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AASJ;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;IACE;;EAEF;IACE","file":"NewsSkeleton.css"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/SearchButton.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;EACA","file":"SearchButton.css"}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
background: #F5F5F7;
|
|
38
38
|
border: 1px solid #E2E2E2;
|
|
39
39
|
border-radius: 16px;
|
|
40
|
-
font-family:
|
|
40
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
|
|
41
41
|
font-size: 12px;
|
|
42
42
|
line-height: 20px;
|
|
43
43
|
color: #242429;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
padding: 0;
|
|
88
88
|
border: none;
|
|
89
89
|
background: transparent;
|
|
90
|
-
font-family:
|
|
90
|
+
font-family: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
|
|
91
91
|
font-weight: 500;
|
|
92
92
|
font-size: 12px;
|
|
93
93
|
line-height: 16px;
|
|
@@ -106,3 +106,5 @@
|
|
|
106
106
|
.search-input__cancel:active {
|
|
107
107
|
opacity: 0.5;
|
|
108
108
|
}
|
|
109
|
+
|
|
110
|
+
/*# sourceMappingURL=SearchInput.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/components/SearchInput.scss"],"names":[],"mappings":"AAAA;AACA;EACE;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE","file":"SearchInput.css"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/filters/FiltersOverlay.scss"],"names":[],"mappings":"AAAA;EACE;EACA;EACA;EACA;EACA;;;AAIF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE","file":"FiltersOverlay.css"}
|
package/dist/newsfeed.css
CHANGED
|
@@ -1,6 +1,98 @@
|
|
|
1
1
|
/* Import component styles */
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
.filter-button {
|
|
3
|
+
width: 20px;
|
|
4
|
+
height: 20px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
background: none;
|
|
9
|
+
border: none;
|
|
10
|
+
padding: 0;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
position: relative;
|
|
13
|
+
transition: opacity 0.2s ease;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.filter-button:hover {
|
|
17
|
+
opacity: 0.7;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.filter-button:active {
|
|
21
|
+
opacity: 0.5;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.filter-button:focus {
|
|
25
|
+
outline: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.filter-button:focus-visible {
|
|
29
|
+
outline: 2px solid #7863F6;
|
|
30
|
+
outline-offset: 2px;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Badge styles */
|
|
35
|
+
.filter-button--with-badge {
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.filter-button__badge {
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: -2px;
|
|
42
|
+
right: -2px;
|
|
43
|
+
border-radius: 12px;
|
|
44
|
+
width: 12px;
|
|
45
|
+
height: 12px;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.filter-button__badge-text {
|
|
53
|
+
font-size: 8px;
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
line-height: 12px;
|
|
56
|
+
letter-spacing: -0.2px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.empty-state {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
padding: 48px 24px;
|
|
65
|
+
text-align: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.empty-state__icon {
|
|
69
|
+
margin-bottom: 24px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.empty-state__icon svg {
|
|
73
|
+
width: 120px;
|
|
74
|
+
height: 120px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.empty-state__content {
|
|
78
|
+
max-width: 320px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.empty-state__title {
|
|
82
|
+
font-size: 20px;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
line-height: 28px;
|
|
85
|
+
color: #040405;
|
|
86
|
+
margin: 0 0 8px 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.empty-state__description {
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
font-weight: 400;
|
|
92
|
+
line-height: 20px;
|
|
93
|
+
color: rgba(4, 4, 5, 0.56);
|
|
94
|
+
margin: 0;
|
|
95
|
+
}
|
|
4
96
|
|
|
5
97
|
.news-feed {
|
|
6
98
|
position: relative;
|
|
@@ -8,7 +100,7 @@
|
|
|
8
100
|
height: 100%;
|
|
9
101
|
max-width: 600px;
|
|
10
102
|
margin: 0 auto;
|
|
11
|
-
font-family:
|
|
103
|
+
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
12
104
|
overflow: hidden;
|
|
13
105
|
}
|
|
14
106
|
|
|
@@ -143,7 +235,6 @@
|
|
|
143
235
|
transform: rotate(360deg);
|
|
144
236
|
}
|
|
145
237
|
}
|
|
146
|
-
|
|
147
238
|
.news-feed__scroll-trigger {
|
|
148
239
|
height: 20px;
|
|
149
240
|
}
|
|
@@ -155,3 +246,5 @@
|
|
|
155
246
|
font-size: 16px;
|
|
156
247
|
line-height: 24px;
|
|
157
248
|
}
|
|
249
|
+
|
|
250
|
+
/*# sourceMappingURL=FeedList.css.map */
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* CSS Variables for theming */
|
|
3
|
+
.news-snippet {
|
|
4
|
+
--snippet-bg: #ffffff;
|
|
5
|
+
--snippet-text: rgba(4, 4, 5, 0.92);
|
|
6
|
+
--snippet-text-secondary: rgba(4, 4, 5, 0.72);
|
|
7
|
+
--snippet-text-tertiary: rgba(4, 4, 5, 0.56);
|
|
8
|
+
--snippet-border: rgba(36, 36, 41, 0.08);
|
|
9
|
+
--snippet-hover-overlay: rgba(0, 0, 0, 0.04);
|
|
10
|
+
--ai-summary-bg: rgba(120, 99, 246, 0.08);
|
|
11
|
+
--ai-summary-text: rgba(4, 4, 5, 0.92);
|
|
12
|
+
--stock-card-bg: rgba(120, 99, 246, 0.04);
|
|
13
|
+
--stock-price-text: rgba(4, 4, 5, 0.72);
|
|
14
|
+
--category-bg: rgba(4, 4, 5, 0.06);
|
|
15
|
+
--category-text: rgba(4, 4, 5, 0.72);
|
|
16
|
+
--action-btn-hover: rgba(4, 4, 5, 0.06);
|
|
17
|
+
}
|
|
18
|
+
.news-snippet[data-theme=dark] {
|
|
19
|
+
--snippet-bg: #1a1a1e;
|
|
20
|
+
--snippet-text: rgba(255, 255, 255, 0.92);
|
|
21
|
+
--snippet-text-secondary: rgba(255, 255, 255, 0.72);
|
|
22
|
+
--snippet-text-tertiary: rgba(255, 255, 255, 0.56);
|
|
23
|
+
--snippet-border: rgba(255, 255, 255, 0.12);
|
|
24
|
+
--snippet-hover-overlay: rgba(255, 255, 255, 0.06);
|
|
25
|
+
--ai-summary-bg: rgba(120, 99, 246, 0.12);
|
|
26
|
+
--ai-summary-text: rgba(255, 255, 255, 0.92);
|
|
27
|
+
--stock-card-bg: rgba(120, 99, 246, 0.08);
|
|
28
|
+
--stock-price-text: rgba(255, 255, 255, 0.72);
|
|
29
|
+
--category-bg: rgba(255, 255, 255, 0.08);
|
|
30
|
+
--category-text: rgba(255, 255, 255, 0.72);
|
|
31
|
+
--action-btn-hover: rgba(255, 255, 255, 0.08);
|
|
32
|
+
}
|
|
33
|
+
|
|
1
34
|
/* Base styles */
|
|
2
35
|
.news-snippet {
|
|
3
36
|
border-radius: 0;
|
|
@@ -8,48 +41,24 @@
|
|
|
8
41
|
cursor: pointer;
|
|
9
42
|
transition: background-color 0.2s ease;
|
|
10
43
|
position: relative;
|
|
44
|
+
background-color: var(--snippet-bg);
|
|
45
|
+
/* Hover overlay effect */
|
|
11
46
|
}
|
|
12
|
-
|
|
13
|
-
/* Light theme */
|
|
14
|
-
.news-snippet--light {
|
|
15
|
-
background-color: #ffffff;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Dark theme */
|
|
19
|
-
.news-snippet--dark {
|
|
20
|
-
background-color: #1a1a1e;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Hover overlay effect */
|
|
24
47
|
.news-snippet::before {
|
|
25
|
-
content:
|
|
48
|
+
content: "";
|
|
26
49
|
position: absolute;
|
|
27
50
|
top: 0;
|
|
28
51
|
left: 0;
|
|
29
52
|
right: 0;
|
|
30
53
|
bottom: 0;
|
|
31
|
-
background-color:
|
|
54
|
+
background-color: transparent;
|
|
32
55
|
transition: background-color 0.2s ease;
|
|
33
56
|
pointer-events: none;
|
|
34
57
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
background-color: rgba(0, 0, 0, 0);
|
|
58
|
+
.news-snippet:hover::before {
|
|
59
|
+
background-color: var(--snippet-hover-overlay);
|
|
38
60
|
}
|
|
39
|
-
|
|
40
|
-
.news-snippet--dark::before {
|
|
41
|
-
background-color: rgba(255, 255, 255, 0);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.news-snippet--light:hover::before {
|
|
45
|
-
background-color: rgba(0, 0, 0, 0.04);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.news-snippet--dark:hover::before {
|
|
49
|
-
background-color: rgba(255, 255, 255, 0.06);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.news-snippet[draggable="true"]:active {
|
|
61
|
+
.news-snippet[draggable=true]:active {
|
|
53
62
|
opacity: 0.5;
|
|
54
63
|
cursor: grabbing;
|
|
55
64
|
}
|
|
@@ -74,160 +83,98 @@
|
|
|
74
83
|
gap: 4px;
|
|
75
84
|
}
|
|
76
85
|
|
|
77
|
-
.news-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
font-weight: 400;
|
|
82
|
-
line-height: 16px;
|
|
83
|
-
letter-spacing: -0.2px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.news-snippet--light .news-snippet__date,
|
|
87
|
-
.news-snippet--light .news-snippet__time {
|
|
88
|
-
color: rgba(4, 4, 5, 0.56);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.news-snippet--dark .news-snippet__date,
|
|
92
|
-
.news-snippet--dark .news-snippet__time {
|
|
93
|
-
color: rgba(255, 255, 255, 0.56);
|
|
86
|
+
.news-snippet__clock-icon {
|
|
87
|
+
width: 12px;
|
|
88
|
+
height: 12px;
|
|
89
|
+
flex-shrink: 0;
|
|
94
90
|
}
|
|
95
91
|
|
|
96
|
-
.news-
|
|
92
|
+
.news-snippet__time {
|
|
93
|
+
font-family: "Inter", sans-serif;
|
|
97
94
|
font-size: 12px;
|
|
95
|
+
font-weight: 400;
|
|
98
96
|
line-height: 16px;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
.news-snippet--light .news-snippet__divider {
|
|
102
|
-
color: rgba(4, 4, 5, 0.12);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.news-snippet--dark .news-snippet__divider {
|
|
106
|
-
color: rgba(255, 255, 255, 0.12);
|
|
97
|
+
letter-spacing: 0.16px;
|
|
98
|
+
color: var(--snippet-text-tertiary);
|
|
107
99
|
}
|
|
108
100
|
|
|
109
101
|
.news-snippet__category {
|
|
110
|
-
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
padding: 2px 8px;
|
|
104
|
+
align-items: center;
|
|
105
|
+
gap: 8px;
|
|
106
|
+
border-radius: 4px;
|
|
107
|
+
background: var(--category-bg);
|
|
108
|
+
font-family: "Inter", sans-serif;
|
|
111
109
|
font-size: 12px;
|
|
112
|
-
font-weight:
|
|
110
|
+
font-weight: 500;
|
|
113
111
|
line-height: 16px;
|
|
114
|
-
letter-spacing:
|
|
115
|
-
|
|
116
|
-
white-space: nowrap;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.news-snippet--light .news-snippet__category {
|
|
120
|
-
color: rgba(4, 4, 5, 0.56);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.news-snippet--dark .news-snippet__category {
|
|
124
|
-
color: rgba(255, 255, 255, 0.56);
|
|
112
|
+
letter-spacing: 0.16px;
|
|
113
|
+
color: var(--category-text);
|
|
125
114
|
}
|
|
126
115
|
|
|
127
116
|
/* Title */
|
|
128
117
|
.news-snippet__title {
|
|
129
|
-
font-family:
|
|
130
|
-
font-size:
|
|
118
|
+
font-family: "Inter", sans-serif;
|
|
119
|
+
font-size: 14px;
|
|
131
120
|
font-weight: 600;
|
|
132
|
-
line-height:
|
|
133
|
-
letter-spacing:
|
|
121
|
+
line-height: 20px;
|
|
122
|
+
letter-spacing: 0.16px;
|
|
123
|
+
color: var(--snippet-text);
|
|
134
124
|
margin: 0;
|
|
135
|
-
overflow: hidden;
|
|
136
|
-
text-overflow: ellipsis;
|
|
137
|
-
display: -webkit-box;
|
|
138
|
-
-webkit-line-clamp: 3;
|
|
139
|
-
-webkit-box-orient: vertical;
|
|
140
125
|
}
|
|
141
126
|
|
|
142
|
-
|
|
143
|
-
color: #040405;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.news-snippet--dark .news-snippet__title {
|
|
147
|
-
color: #ffffff;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* Single Source */
|
|
127
|
+
/* Source: одно лого + имя */
|
|
151
128
|
.news-snippet__source {
|
|
152
129
|
display: flex;
|
|
153
130
|
align-items: center;
|
|
154
|
-
gap:
|
|
131
|
+
gap: 8px;
|
|
155
132
|
}
|
|
156
133
|
|
|
157
134
|
.news-snippet__source-logo {
|
|
158
135
|
width: 16px;
|
|
159
136
|
height: 16px;
|
|
160
|
-
border-radius:
|
|
161
|
-
border: 0.67px solid rgba(24, 23, 23, 1);
|
|
162
|
-
object-fit: cover;
|
|
137
|
+
border-radius: 50%;
|
|
163
138
|
flex-shrink: 0;
|
|
139
|
+
object-fit: cover;
|
|
164
140
|
}
|
|
165
|
-
|
|
166
141
|
.news-snippet__source-logo--fallback {
|
|
167
142
|
display: flex;
|
|
168
143
|
align-items: center;
|
|
169
144
|
justify-content: center;
|
|
170
|
-
background:
|
|
145
|
+
background: var(--category-bg);
|
|
146
|
+
color: var(--snippet-text-tertiary);
|
|
171
147
|
font-size: 10px;
|
|
172
148
|
font-weight: 600;
|
|
173
|
-
color: #040405;
|
|
174
149
|
}
|
|
175
150
|
|
|
176
151
|
.news-snippet__source-name {
|
|
177
|
-
font-family:
|
|
178
|
-
font-size:
|
|
179
|
-
font-weight:
|
|
152
|
+
font-family: "Inter", sans-serif;
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
font-weight: 400;
|
|
180
155
|
line-height: 16px;
|
|
181
|
-
letter-spacing:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
.news-snippet--light .news-snippet__source-name {
|
|
185
|
-
color: #040405;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.news-snippet--dark .news-snippet__source-name {
|
|
189
|
-
color: rgba(255, 255, 255, 0.87);
|
|
156
|
+
letter-spacing: 0.16px;
|
|
157
|
+
color: var(--snippet-text-secondary);
|
|
190
158
|
}
|
|
191
159
|
|
|
192
|
-
/* Content
|
|
160
|
+
/* Content Text */
|
|
193
161
|
.news-snippet__content-text {
|
|
194
|
-
font-family:
|
|
195
|
-
font-size:
|
|
162
|
+
font-family: "Inter", sans-serif;
|
|
163
|
+
font-size: 12px;
|
|
196
164
|
font-weight: 400;
|
|
197
|
-
line-height:
|
|
198
|
-
letter-spacing:
|
|
165
|
+
line-height: 16px;
|
|
166
|
+
letter-spacing: 0.16px;
|
|
167
|
+
color: var(--snippet-text-secondary);
|
|
199
168
|
margin: 0;
|
|
200
|
-
overflow: hidden;
|
|
201
|
-
text-overflow: ellipsis;
|
|
202
|
-
display: -webkit-box;
|
|
203
|
-
-webkit-line-clamp: 4;
|
|
204
|
-
-webkit-box-orient: vertical;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.news-snippet--light .news-snippet__content-text {
|
|
208
|
-
color: #040405;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.news-snippet--dark .news-snippet__content-text {
|
|
212
|
-
color: rgba(255, 255, 255, 0.72);
|
|
213
169
|
}
|
|
214
170
|
|
|
215
171
|
/* AI Summary */
|
|
216
172
|
.news-snippet__ai-summary {
|
|
217
173
|
display: flex;
|
|
218
|
-
align-items: flex-start;
|
|
219
|
-
gap: 8px;
|
|
220
174
|
padding: 8px;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
.news-snippet--light .news-snippet__ai-summary {
|
|
226
|
-
background-color: rgba(120, 99, 246, 0.12);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.news-snippet--dark .news-snippet__ai-summary {
|
|
230
|
-
background-color: rgba(120, 99, 246, 0.24);
|
|
175
|
+
gap: 8px;
|
|
176
|
+
border-radius: 8px;
|
|
177
|
+
background: var(--ai-summary-bg);
|
|
231
178
|
}
|
|
232
179
|
|
|
233
180
|
.news-snippet__ai-summary-icon {
|
|
@@ -235,91 +182,67 @@
|
|
|
235
182
|
width: 24px;
|
|
236
183
|
height: 24px;
|
|
237
184
|
display: flex;
|
|
238
|
-
align-items:
|
|
185
|
+
align-items: flex-start;
|
|
239
186
|
justify-content: center;
|
|
240
187
|
}
|
|
241
188
|
|
|
242
189
|
.news-snippet__ai-summary-text {
|
|
243
190
|
flex: 1;
|
|
244
|
-
font-family:
|
|
191
|
+
font-family: "Inter", sans-serif;
|
|
245
192
|
font-size: 12px;
|
|
246
193
|
font-weight: 400;
|
|
247
194
|
line-height: 16px;
|
|
248
|
-
letter-spacing:
|
|
195
|
+
letter-spacing: 0.16px;
|
|
196
|
+
color: var(--ai-summary-text);
|
|
249
197
|
margin: 0;
|
|
250
198
|
}
|
|
251
199
|
|
|
252
|
-
.news-snippet--light .news-snippet__ai-summary-text {
|
|
253
|
-
color: #040405;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.news-snippet--dark .news-snippet__ai-summary-text {
|
|
257
|
-
color: #ffffff;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
200
|
/* Stock Cards */
|
|
261
201
|
.news-snippet__stocks {
|
|
262
202
|
display: flex;
|
|
263
203
|
flex-direction: column;
|
|
264
204
|
gap: 4px;
|
|
265
|
-
padding: 0 4px;
|
|
266
205
|
}
|
|
267
206
|
|
|
268
207
|
.news-snippet__stock-card {
|
|
269
208
|
display: flex;
|
|
209
|
+
padding: 6px 8px;
|
|
270
210
|
align-items: center;
|
|
271
211
|
justify-content: space-between;
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.news-snippet--light .news-snippet__stock-card {
|
|
277
|
-
background-color: rgba(4, 4, 5, 0.04);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.news-snippet--dark .news-snippet__stock-card {
|
|
281
|
-
background-color: rgba(255, 255, 255, 0.06);
|
|
212
|
+
border-radius: 8px;
|
|
213
|
+
background: var(--stock-card-bg);
|
|
282
214
|
}
|
|
283
215
|
|
|
284
216
|
.news-snippet__stock-left {
|
|
285
217
|
display: flex;
|
|
286
218
|
align-items: center;
|
|
287
219
|
gap: 8px;
|
|
288
|
-
min-width: 106.5px;
|
|
289
220
|
}
|
|
290
221
|
|
|
291
222
|
.news-snippet__stock-logo {
|
|
292
|
-
width:
|
|
293
|
-
height:
|
|
294
|
-
border-radius:
|
|
295
|
-
object-fit: cover;
|
|
223
|
+
width: 16px;
|
|
224
|
+
height: 16px;
|
|
225
|
+
border-radius: 50%;
|
|
296
226
|
flex-shrink: 0;
|
|
227
|
+
object-fit: cover;
|
|
297
228
|
}
|
|
298
|
-
|
|
299
229
|
.news-snippet__stock-logo--fallback {
|
|
300
230
|
display: flex;
|
|
301
231
|
align-items: center;
|
|
302
232
|
justify-content: center;
|
|
303
|
-
background:
|
|
304
|
-
|
|
233
|
+
background: var(--category-bg);
|
|
234
|
+
color: var(--snippet-text-tertiary);
|
|
235
|
+
font-size: 10px;
|
|
305
236
|
font-weight: 600;
|
|
306
|
-
color: #040405;
|
|
307
237
|
}
|
|
308
238
|
|
|
309
239
|
.news-snippet__stock-symbol {
|
|
310
|
-
font-family:
|
|
311
|
-
font-size:
|
|
312
|
-
font-weight:
|
|
313
|
-
line-height:
|
|
314
|
-
letter-spacing:
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
.news-snippet--light .news-snippet__stock-symbol {
|
|
318
|
-
color: #040405;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
.news-snippet--dark .news-snippet__stock-symbol {
|
|
322
|
-
color: #ffffff;
|
|
240
|
+
font-family: "Inter", sans-serif;
|
|
241
|
+
font-size: 12px;
|
|
242
|
+
font-weight: 500;
|
|
243
|
+
line-height: 16px;
|
|
244
|
+
letter-spacing: 0.16px;
|
|
245
|
+
color: var(--snippet-text);
|
|
323
246
|
}
|
|
324
247
|
|
|
325
248
|
.news-snippet__stock-right {
|
|
@@ -329,43 +252,37 @@
|
|
|
329
252
|
}
|
|
330
253
|
|
|
331
254
|
.news-snippet__stock-change {
|
|
332
|
-
font-family:
|
|
333
|
-
font-size:
|
|
334
|
-
font-weight:
|
|
335
|
-
line-height:
|
|
336
|
-
letter-spacing:
|
|
255
|
+
font-family: "Inter", sans-serif;
|
|
256
|
+
font-size: 12px;
|
|
257
|
+
font-weight: 500;
|
|
258
|
+
line-height: 16px;
|
|
259
|
+
letter-spacing: 0.16px;
|
|
337
260
|
}
|
|
338
|
-
|
|
339
261
|
.news-snippet__stock-change--positive {
|
|
340
|
-
color: #
|
|
262
|
+
color: #10b981;
|
|
341
263
|
}
|
|
342
|
-
|
|
343
264
|
.news-snippet__stock-change--negative {
|
|
344
|
-
color: #
|
|
265
|
+
color: #ef4444;
|
|
266
|
+
}
|
|
267
|
+
.news-snippet__stock-change--neutral {
|
|
268
|
+
color: var(--snippet-text-tertiary);
|
|
345
269
|
}
|
|
346
270
|
|
|
347
271
|
.news-snippet__stock-price {
|
|
348
|
-
font-family:
|
|
349
|
-
font-size:
|
|
272
|
+
font-family: "Inter", sans-serif;
|
|
273
|
+
font-size: 12px;
|
|
350
274
|
font-weight: 400;
|
|
351
|
-
line-height:
|
|
352
|
-
letter-spacing:
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
.news-snippet--light .news-snippet__stock-price {
|
|
356
|
-
color: #040405;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.news-snippet--dark .news-snippet__stock-price {
|
|
360
|
-
color: rgba(255, 255, 255, 0.87);
|
|
275
|
+
line-height: 16px;
|
|
276
|
+
letter-spacing: 0.16px;
|
|
277
|
+
color: var(--stock-price-text);
|
|
361
278
|
}
|
|
362
279
|
|
|
363
|
-
/* Action Bar - только справа */
|
|
280
|
+
/* Action Bar - только bookmark и AI справа */
|
|
364
281
|
.news-snippet__actions {
|
|
365
282
|
display: flex;
|
|
366
|
-
align-items: center;
|
|
367
283
|
justify-content: flex-end;
|
|
368
|
-
|
|
284
|
+
align-items: center;
|
|
285
|
+
gap: 4px;
|
|
369
286
|
padding: 0 4px;
|
|
370
287
|
}
|
|
371
288
|
|
|
@@ -373,21 +290,29 @@
|
|
|
373
290
|
display: flex;
|
|
374
291
|
align-items: center;
|
|
375
292
|
justify-content: center;
|
|
376
|
-
width:
|
|
377
|
-
height:
|
|
378
|
-
padding: 0;
|
|
293
|
+
width: 32px;
|
|
294
|
+
height: 32px;
|
|
379
295
|
border: none;
|
|
380
296
|
background: transparent;
|
|
297
|
+
border-radius: 50%;
|
|
381
298
|
cursor: pointer;
|
|
382
|
-
transition:
|
|
299
|
+
transition: background-color 0.2s ease;
|
|
300
|
+
padding: 0;
|
|
383
301
|
}
|
|
384
|
-
|
|
385
302
|
.news-snippet__action-btn:hover {
|
|
386
|
-
|
|
303
|
+
background: var(--action-btn-hover);
|
|
387
304
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
transform: scale(0.95);
|
|
305
|
+
.news-snippet__action-btn--active {
|
|
306
|
+
background: rgba(120, 99, 246, 0.12);
|
|
391
307
|
}
|
|
392
308
|
|
|
309
|
+
/* Image */
|
|
310
|
+
.news-snippet__cover {
|
|
311
|
+
width: 100%;
|
|
312
|
+
height: auto;
|
|
313
|
+
max-height: 200px;
|
|
314
|
+
object-fit: cover;
|
|
315
|
+
border-radius: 8px;
|
|
316
|
+
}
|
|
393
317
|
|
|
318
|
+
/*# sourceMappingURL=NewsSnippet.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/snippets/NewsSnippet.scss"],"names":[],"mappings":";AAAA;AACA;EAEE;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EAEA;EACA;EAEA;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EAEA;EACA;EAEA;EACA;EAEA;;;AAIJ;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAEA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGF;EACE;;AAGF;EACE;EACA;;;AAIJ;EACE;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAGF;EACE;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;;AAIJ;AACA;EACE;EACA;EACA;EACA;EACA","file":"NewsSnippet.css"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "finsignal-feed-explore",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.1",
|
|
4
4
|
"description": "News feed explorer components for React web applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsc &&
|
|
13
|
+
"build": "tsc && npm run build:styles",
|
|
14
|
+
"build:styles": "sass src/FeedList.scss dist/FeedList.css && cp dist/FeedList.css dist/newsfeed.css && sass src/components/Chip.scss dist/components/Chip.css && sass src/components/FilterButton.scss dist/components/FilterButton.css && sass src/components/SearchButton.scss dist/components/SearchButton.css && sass src/components/SearchInput.scss dist/components/SearchInput.css && sass src/components/EmptyState.scss dist/components/EmptyState.css && sass src/components/NewsSkeleton.scss dist/components/NewsSkeleton.css && sass src/filters/FiltersOverlay.scss dist/filters/FiltersOverlay.css && sass src/snippets/NewsSnippet.scss dist/snippets/NewsSnippet.css",
|
|
14
15
|
"prepublishOnly": "npm run build"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/react": "^18.0.0",
|
|
40
41
|
"@types/react-native": "^0.72.0",
|
|
42
|
+
"sass": "^1.69.0",
|
|
41
43
|
"typescript": "^5.0.0"
|
|
42
44
|
}
|
|
43
45
|
}
|