profinansy-ui-lib 3.5.55 → 3.5.56
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/common.types.d.ts +4 -0
- package/dist/components/blocks/footer/components/Contacts/Contacts.d.ts +1 -0
- package/dist/components/blocks/footer/constants.d.ts +8 -0
- package/dist/components/blocks/header/header.d.ts +0 -1
- package/dist/components/blocks/sideMenu/SideMenu.d.ts +1 -2
- package/dist/components/blocks/sideMenu/SideMenu.stories.d.ts +1 -1
- package/dist/components/blocks/sideMenu/SideModal.typed.d.ts +2 -3
- package/dist/components/blocks/sideMenu/components/Search/compoenents/SearchInput/SearchInput.d.ts +6 -1
- package/dist/config.d.ts +15 -0
- package/dist/hooks/useLocale.d.ts +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +160 -160
- package/dist/translations/avatarDropdown.d.ts +16 -0
- package/dist/translations/common.d.ts +24 -0
- package/dist/translations/typeInstruments.d.ts +20 -0
- package/dist/translations/urls.d.ts +314 -0
- package/package.json +1 -1
- package/readme.md +12 -2
- package/dist/constants/instrumentsTypes.d.ts +0 -9
- package/dist/hooks/useIsForeignSite.d.ts +0 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const AvatarDropdown_translation: {
|
|
2
|
+
ru: {
|
|
3
|
+
favourite: string;
|
|
4
|
+
notifications: string;
|
|
5
|
+
groups: string;
|
|
6
|
+
channels: string;
|
|
7
|
+
exit: string;
|
|
8
|
+
};
|
|
9
|
+
en: {
|
|
10
|
+
favourite: string;
|
|
11
|
+
notifications: string;
|
|
12
|
+
groups: string;
|
|
13
|
+
channels: string;
|
|
14
|
+
exit: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const common_translation: {
|
|
2
|
+
ru: {
|
|
3
|
+
find_recently: string;
|
|
4
|
+
popular: string;
|
|
5
|
+
collapse: string;
|
|
6
|
+
show_more: string;
|
|
7
|
+
clear: string;
|
|
8
|
+
search: string;
|
|
9
|
+
search_header: string;
|
|
10
|
+
theme_light: string;
|
|
11
|
+
theme_dark: string;
|
|
12
|
+
};
|
|
13
|
+
en: {
|
|
14
|
+
find_recently: string;
|
|
15
|
+
popular: string;
|
|
16
|
+
collapse: string;
|
|
17
|
+
show_more: string;
|
|
18
|
+
clear: string;
|
|
19
|
+
search: string;
|
|
20
|
+
search_header: string;
|
|
21
|
+
theme_light: string;
|
|
22
|
+
theme_dark: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const Types_instruments: {
|
|
2
|
+
ru: {
|
|
3
|
+
stocks: string;
|
|
4
|
+
etfs: string;
|
|
5
|
+
bonds: string;
|
|
6
|
+
crypto: string;
|
|
7
|
+
metals: string;
|
|
8
|
+
index: string;
|
|
9
|
+
currency: string;
|
|
10
|
+
};
|
|
11
|
+
en: {
|
|
12
|
+
stocks: string;
|
|
13
|
+
etfs: string;
|
|
14
|
+
bonds: string;
|
|
15
|
+
crypto: string;
|
|
16
|
+
metals: string;
|
|
17
|
+
index: string;
|
|
18
|
+
currency: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
export declare const Urls_translations: {
|
|
2
|
+
ru: {
|
|
3
|
+
main_menu: string;
|
|
4
|
+
investments: string;
|
|
5
|
+
review: string;
|
|
6
|
+
all_review: string;
|
|
7
|
+
russian_stocks: string;
|
|
8
|
+
usa_stocks: string;
|
|
9
|
+
russian_bonds: string;
|
|
10
|
+
usa_bonds: string;
|
|
11
|
+
usa_etf: string;
|
|
12
|
+
portfolios: string;
|
|
13
|
+
portfolios_list: string;
|
|
14
|
+
selections: string;
|
|
15
|
+
calendars: string;
|
|
16
|
+
dividend_calendar: string;
|
|
17
|
+
economic_calendar: string;
|
|
18
|
+
coupon_calendar: string;
|
|
19
|
+
report_calendar: string;
|
|
20
|
+
ipo_calendar: string;
|
|
21
|
+
screener: string;
|
|
22
|
+
stocks_screener: string;
|
|
23
|
+
bonds_screener: string;
|
|
24
|
+
etf_screener: string;
|
|
25
|
+
asset_comparison: string;
|
|
26
|
+
asset_comparison_stocks: string;
|
|
27
|
+
asset_comparison_bonds: string;
|
|
28
|
+
asset_comparison_etf: string;
|
|
29
|
+
passive_income: string;
|
|
30
|
+
passive_income_stocks: string;
|
|
31
|
+
passive_income_bonds: string;
|
|
32
|
+
economic_cycles: string;
|
|
33
|
+
heat_map: string;
|
|
34
|
+
rrg: string;
|
|
35
|
+
brokers: string;
|
|
36
|
+
news: string;
|
|
37
|
+
calculators: string;
|
|
38
|
+
calculator_compound_interest: string;
|
|
39
|
+
calculator_mortgage: string;
|
|
40
|
+
calculator_credit: string;
|
|
41
|
+
calculator_goals: string;
|
|
42
|
+
calculator_refinance: string;
|
|
43
|
+
calculator_bonds: string;
|
|
44
|
+
calculator_currency_converter: string;
|
|
45
|
+
calculator_savings: string;
|
|
46
|
+
calculator_deposit: string;
|
|
47
|
+
club: string;
|
|
48
|
+
club_main: string;
|
|
49
|
+
club_about: string;
|
|
50
|
+
club_schedule: string;
|
|
51
|
+
club_choice: string;
|
|
52
|
+
club_public_account: string;
|
|
53
|
+
club_portfolios: string;
|
|
54
|
+
club_selections: string;
|
|
55
|
+
club_weekly_review: string;
|
|
56
|
+
club_market_ru: string;
|
|
57
|
+
club_bonds: string;
|
|
58
|
+
club_roller_coaster: string;
|
|
59
|
+
club_review_companies: string;
|
|
60
|
+
club_portfolios_analytic: string;
|
|
61
|
+
club_invited_speakers: string;
|
|
62
|
+
club_roller_cink: string;
|
|
63
|
+
club_faq: string;
|
|
64
|
+
club_client_history: string;
|
|
65
|
+
club_offline_meetings: string;
|
|
66
|
+
club_kink: string;
|
|
67
|
+
club_rkink: string;
|
|
68
|
+
club_help: string;
|
|
69
|
+
courses: string;
|
|
70
|
+
courses_main: string;
|
|
71
|
+
courses_shop: string;
|
|
72
|
+
courses_list: string;
|
|
73
|
+
courses_basket: string;
|
|
74
|
+
courses_orders: string;
|
|
75
|
+
courses_how_use: string;
|
|
76
|
+
courses_budget: string;
|
|
77
|
+
courses_portfolio: string;
|
|
78
|
+
courses_investing: string;
|
|
79
|
+
courses_direct_line: string;
|
|
80
|
+
courses_leaders_table: string;
|
|
81
|
+
courses_graduate: string;
|
|
82
|
+
courses_child: string;
|
|
83
|
+
courses_blog: string;
|
|
84
|
+
courses_investology: string;
|
|
85
|
+
courses_library: string;
|
|
86
|
+
courses_podcasts: string;
|
|
87
|
+
courses_youtube: string;
|
|
88
|
+
courses_kfp: string;
|
|
89
|
+
feed: string;
|
|
90
|
+
feed_community: string;
|
|
91
|
+
feed_blog: string;
|
|
92
|
+
feed_news: string;
|
|
93
|
+
feed_selections: string;
|
|
94
|
+
feed_investology: string;
|
|
95
|
+
feed_podcasts: string;
|
|
96
|
+
feed_analytic: string;
|
|
97
|
+
feed_strategy: string;
|
|
98
|
+
feed_youtube: string;
|
|
99
|
+
feed_new_features: string;
|
|
100
|
+
feed_library: string;
|
|
101
|
+
idv: string;
|
|
102
|
+
idv_main: string;
|
|
103
|
+
idv_lessons: string;
|
|
104
|
+
idv_tournament: string;
|
|
105
|
+
idv_invest_simulator: string;
|
|
106
|
+
idv_review: string;
|
|
107
|
+
idv_compound: string;
|
|
108
|
+
idv_transactions: string;
|
|
109
|
+
idv_analytics: string;
|
|
110
|
+
idv_search: string;
|
|
111
|
+
idv_search_stocks: string;
|
|
112
|
+
idv_search_bonds: string;
|
|
113
|
+
idv_search_etf: string;
|
|
114
|
+
idv_schedule: string;
|
|
115
|
+
idv_achievements: string;
|
|
116
|
+
method: string;
|
|
117
|
+
method_main: string;
|
|
118
|
+
method_lessons: string;
|
|
119
|
+
method_tasks: string;
|
|
120
|
+
method_materials: string;
|
|
121
|
+
method_tournament: string;
|
|
122
|
+
method_achievements: string;
|
|
123
|
+
method_kfp: string;
|
|
124
|
+
method_budget: string;
|
|
125
|
+
method_screener: string;
|
|
126
|
+
method_portfolios: string;
|
|
127
|
+
myMoney: string;
|
|
128
|
+
myMoney_budget: string;
|
|
129
|
+
myMoney_accounts: string;
|
|
130
|
+
myMoney_accumulations: string;
|
|
131
|
+
myMoney_credits: string;
|
|
132
|
+
myMoney_goals: string;
|
|
133
|
+
myMoney_goals_active: string;
|
|
134
|
+
myMoney_goals_accomplished: string;
|
|
135
|
+
myMoney_desires: string;
|
|
136
|
+
myMoney_desires_active: string;
|
|
137
|
+
myMoney_desires_accomplished: string;
|
|
138
|
+
myMoney_checklists: string;
|
|
139
|
+
myMoney_checklists_all: string;
|
|
140
|
+
myMoney_checklists_active: string;
|
|
141
|
+
myMoney_checklists_accomplished: string;
|
|
142
|
+
more: string;
|
|
143
|
+
partner: string;
|
|
144
|
+
vacancies: string;
|
|
145
|
+
scammers: string;
|
|
146
|
+
about_company: string;
|
|
147
|
+
client_support: string;
|
|
148
|
+
profile: string;
|
|
149
|
+
profile_profile: string;
|
|
150
|
+
profile_publications: string;
|
|
151
|
+
profile_groups: string;
|
|
152
|
+
profile_channels: string;
|
|
153
|
+
profile_favourite: string;
|
|
154
|
+
profile_bank: string;
|
|
155
|
+
profile_notifications: string;
|
|
156
|
+
profile_reviews: string;
|
|
157
|
+
};
|
|
158
|
+
en: {
|
|
159
|
+
main_menu: string;
|
|
160
|
+
investments: string;
|
|
161
|
+
review: string;
|
|
162
|
+
all_review: string;
|
|
163
|
+
russian_stocks: string;
|
|
164
|
+
usa_stocks: string;
|
|
165
|
+
russian_bonds: string;
|
|
166
|
+
usa_bonds: string;
|
|
167
|
+
usa_etf: string;
|
|
168
|
+
portfolios: string;
|
|
169
|
+
portfolios_list: string;
|
|
170
|
+
selections: string;
|
|
171
|
+
calendars: string;
|
|
172
|
+
dividend_calendar: string;
|
|
173
|
+
economic_calendar: string;
|
|
174
|
+
coupon_calendar: string;
|
|
175
|
+
report_calendar: string;
|
|
176
|
+
ipo_calendar: string;
|
|
177
|
+
screener: string;
|
|
178
|
+
stocks_screener: string;
|
|
179
|
+
bonds_screener: string;
|
|
180
|
+
etf_screener: string;
|
|
181
|
+
asset_comparison: string;
|
|
182
|
+
asset_comparison_stocks: string;
|
|
183
|
+
asset_comparison_bonds: string;
|
|
184
|
+
asset_comparison_etf: string;
|
|
185
|
+
passive_income: string;
|
|
186
|
+
passive_income_stocks: string;
|
|
187
|
+
passive_income_bonds: string;
|
|
188
|
+
economic_cycles: string;
|
|
189
|
+
heat_map: string;
|
|
190
|
+
rrg: string;
|
|
191
|
+
brokers: string;
|
|
192
|
+
news: string;
|
|
193
|
+
calculators: string;
|
|
194
|
+
calculator_compound_interest: string;
|
|
195
|
+
calculator_mortgage: string;
|
|
196
|
+
calculator_credit: string;
|
|
197
|
+
calculator_goals: string;
|
|
198
|
+
calculator_refinance: string;
|
|
199
|
+
calculator_bonds: string;
|
|
200
|
+
calculator_currency_converter: string;
|
|
201
|
+
calculator_savings: string;
|
|
202
|
+
calculator_deposit: string;
|
|
203
|
+
club: string;
|
|
204
|
+
club_main: string;
|
|
205
|
+
club_about: string;
|
|
206
|
+
club_schedule: string;
|
|
207
|
+
club_choice: string;
|
|
208
|
+
club_public_account: string;
|
|
209
|
+
club_portfolios: string;
|
|
210
|
+
club_selections: string;
|
|
211
|
+
club_weekly_review: string;
|
|
212
|
+
club_market_ru: string;
|
|
213
|
+
club_bonds: string;
|
|
214
|
+
club_roller_coaster: string;
|
|
215
|
+
club_review_companies: string;
|
|
216
|
+
club_portfolios_analytic: string;
|
|
217
|
+
club_invited_speakers: string;
|
|
218
|
+
club_roller_cink: string;
|
|
219
|
+
club_faq: string;
|
|
220
|
+
club_client_history: string;
|
|
221
|
+
club_offline_meetings: string;
|
|
222
|
+
club_kink: string;
|
|
223
|
+
club_rkink: string;
|
|
224
|
+
club_help: string;
|
|
225
|
+
courses: string;
|
|
226
|
+
courses_main: string;
|
|
227
|
+
courses_shop: string;
|
|
228
|
+
courses_list: string;
|
|
229
|
+
courses_basket: string;
|
|
230
|
+
courses_orders: string;
|
|
231
|
+
courses_how_use: string;
|
|
232
|
+
courses_budget: string;
|
|
233
|
+
courses_portfolio: string;
|
|
234
|
+
courses_investing: string;
|
|
235
|
+
courses_direct_line: string;
|
|
236
|
+
courses_leaders_table: string;
|
|
237
|
+
courses_graduate: string;
|
|
238
|
+
courses_child: string;
|
|
239
|
+
courses_blog: string;
|
|
240
|
+
courses_investology: string;
|
|
241
|
+
courses_library: string;
|
|
242
|
+
courses_podcasts: string;
|
|
243
|
+
courses_youtube: string;
|
|
244
|
+
courses_kfp: string;
|
|
245
|
+
feed: string;
|
|
246
|
+
feed_community: string;
|
|
247
|
+
feed_blog: string;
|
|
248
|
+
feed_news: string;
|
|
249
|
+
feed_selections: string;
|
|
250
|
+
feed_investology: string;
|
|
251
|
+
feed_podcasts: string;
|
|
252
|
+
feed_analytic: string;
|
|
253
|
+
feed_strategy: string;
|
|
254
|
+
feed_youtube: string;
|
|
255
|
+
feed_new_features: string;
|
|
256
|
+
feed_library: string;
|
|
257
|
+
idv: string;
|
|
258
|
+
idv_main: string;
|
|
259
|
+
idv_lessons: string;
|
|
260
|
+
idv_tournament: string;
|
|
261
|
+
idv_invest_simulator: string;
|
|
262
|
+
idv_review: string;
|
|
263
|
+
idv_compound: string;
|
|
264
|
+
idv_transactions: string;
|
|
265
|
+
idv_analytics: string;
|
|
266
|
+
idv_search: string;
|
|
267
|
+
idv_search_stocks: string;
|
|
268
|
+
idv_search_bonds: string;
|
|
269
|
+
idv_search_etf: string;
|
|
270
|
+
idv_schedule: string;
|
|
271
|
+
idv_achievements: string;
|
|
272
|
+
method: string;
|
|
273
|
+
method_main: string;
|
|
274
|
+
method_lessons: string;
|
|
275
|
+
method_tasks: string;
|
|
276
|
+
method_materials: string;
|
|
277
|
+
method_tournament: string;
|
|
278
|
+
method_achievements: string;
|
|
279
|
+
method_kfp: string;
|
|
280
|
+
method_budget: string;
|
|
281
|
+
method_screener: string;
|
|
282
|
+
method_portfolios: string;
|
|
283
|
+
myMoney: string;
|
|
284
|
+
myMoney_budget: string;
|
|
285
|
+
myMoney_accounts: string;
|
|
286
|
+
myMoney_accumulations: string;
|
|
287
|
+
myMoney_credits: string;
|
|
288
|
+
myMoney_goals: string;
|
|
289
|
+
myMoney_goals_active: string;
|
|
290
|
+
myMoney_goals_accomplished: string;
|
|
291
|
+
myMoney_desires: string;
|
|
292
|
+
myMoney_desires_active: string;
|
|
293
|
+
myMoney_desires_accomplished: string;
|
|
294
|
+
myMoney_checklists: string;
|
|
295
|
+
myMoney_checklists_all: string;
|
|
296
|
+
myMoney_checklists_active: string;
|
|
297
|
+
myMoney_checklists_accomplished: string;
|
|
298
|
+
more: string;
|
|
299
|
+
partner: string;
|
|
300
|
+
vacancies: string;
|
|
301
|
+
scammers: string;
|
|
302
|
+
about_company: string;
|
|
303
|
+
client_support: string;
|
|
304
|
+
profile: string;
|
|
305
|
+
profile_profile: string;
|
|
306
|
+
profile_publications: string;
|
|
307
|
+
profile_groups: string;
|
|
308
|
+
profile_channels: string;
|
|
309
|
+
profile_favourite: string;
|
|
310
|
+
profile_bank: string;
|
|
311
|
+
profile_notifications: string;
|
|
312
|
+
profile_reviews: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -94,6 +94,15 @@ ThemeProvider. Через хук `useTheme` вы можете получить
|
|
|
94
94
|
Чтобы компоненты из папки `uikit` также имели типизацию они должны быть все обренуты
|
|
95
95
|
в ThemeProvider из `styled-components`
|
|
96
96
|
|
|
97
|
+
### Конфиг (локализация)
|
|
98
|
+
|
|
99
|
+
Для того чтобы прокинуть глобальный конфиг в библиотеку, вы должны обернуть ваше приложение в провайдер
|
|
100
|
+
`ConfigProvider`. Далее вы можете получать данные из конфига в любом месте вашего приложения и библиотеке
|
|
101
|
+
с помощью хука `useConfig`
|
|
102
|
+
|
|
103
|
+
Чтобы компоненты из папки `uikit` также имели типизацию они должны быть все обренуты
|
|
104
|
+
в ThemeProvider из `styled-components`
|
|
105
|
+
|
|
97
106
|
### Storybook
|
|
98
107
|
Для всех компонентов используется сторибук. Все изменения можно смотреть там.
|
|
99
108
|
Сторибук деплоится на chromatic. Для того, что задеплоить ваши изменения, сделайте коммит в гит,
|
|
@@ -110,8 +119,9 @@ ThemeProvider. Через хук `useTheme` вы можете получить
|
|
|
110
119
|
4) папке **hooks** находятся все общие хуки
|
|
111
120
|
5) папке **icons** находятся все иконки
|
|
112
121
|
6) папке **theme** находятся все, что касается темизации
|
|
113
|
-
7) папке **
|
|
114
|
-
8) папке **
|
|
122
|
+
7) папке **translations** находятся все переводы
|
|
123
|
+
8) папке **urls** находятся объекты с роутингом
|
|
124
|
+
9) папке **utils** находятся все вспомогательные функции
|
|
115
125
|
|
|
116
126
|
## Процесс работы над задачей
|
|
117
127
|
https://wiki.corp.profinansy.net/pages/viewpage.action?pageId=4948261
|