tycho-components 0.8.16 → 0.8.18
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/Header/Header.js +2 -2
- package/dist/Header/HeaderCorpora/style.scss +5 -8
- package/dist/Header/styles.scss +16 -10
- package/dist/configs/Localization.d.ts +48 -51
- package/dist/configs/localization/HeaderTexts.d.ts +49 -52
- package/dist/configs/localization/HeaderTexts.js +49 -52
- package/package.json +2 -2
package/dist/Header/Header.js
CHANGED
|
@@ -22,8 +22,8 @@ export default function Header({ tool, redirect, autoload, freeAccess, hideKeybo
|
|
|
22
22
|
const profileClass = cx('header-profile', {
|
|
23
23
|
'corpora-free': freeAccess && !hasCorpus(),
|
|
24
24
|
});
|
|
25
|
-
const homeTextsClass = cx('
|
|
25
|
+
const homeTextsClass = cx('app-title', {
|
|
26
26
|
pointer: navigateHome !== undefined,
|
|
27
27
|
});
|
|
28
|
-
return (_jsxs("div", { className: "ds-header", children: [_jsx(HeaderApps, { freeAccess: freeAccess }), _jsxs("div", { className: homeTextsClass, onClick: () => navigateHome && navigateHome(), children: [_jsx("span", { className: "title", children: t('label.platform') }), _jsx("span", { className: "subtitle", children: tool })] }), customHeader, !customHeader && (_jsx(HeaderCorpora, { redirect: redirect, autoload: autoload, freeAccess: freeAccess, navigateCorpora: navigateCorpora })), _jsxs("div", { className: profileClass, children: [!hideReplaceAll && _jsx(HeaderReplaceAll, {}), !hideKeyboard && (_jsx(IconButton, { onClick: () => setOpenKeyboard(!openKeyboard), name: "keyboard", size: "medium", title: t('tooltip.keyboard') })), _jsx(HelpButton, { helpActions: helpActions }), notifications && isLogged() && (_jsx(HeaderNotifications, { uid: notifications.ref, mode: notifications.mode })), _jsx(LanguageSelector, {}), !freeAccess && _jsx(HeaderUser, { navigateLogout: navigateLogout })] }), openKeyboard && (_jsx(VirtualKeyboard, { onClose: () => setOpenKeyboard(false), closeLabel: t('button.close'), defaultLayout: keyboardLayout || getCorpus().keyboardLayout || 'english' }))] }));
|
|
28
|
+
return (_jsxs("div", { className: "ds-header", children: [_jsxs("div", { className: "header-left", children: [_jsx(HeaderApps, { freeAccess: freeAccess }), _jsxs("div", { className: homeTextsClass, onClick: () => navigateHome && navigateHome(), children: [_jsx("span", { className: "title", children: t('label.platform') }), _jsx("span", { className: "subtitle", children: tool })] })] }), customHeader, !customHeader && (_jsx(HeaderCorpora, { redirect: redirect, autoload: autoload, freeAccess: freeAccess, navigateCorpora: navigateCorpora })), _jsxs("div", { className: profileClass, children: [!hideReplaceAll && _jsx(HeaderReplaceAll, {}), !hideKeyboard && (_jsx(IconButton, { onClick: () => setOpenKeyboard(!openKeyboard), name: "keyboard", size: "medium", title: t('tooltip.keyboard') })), _jsx(HelpButton, { helpActions: helpActions }), notifications && isLogged() && (_jsx(HeaderNotifications, { uid: notifications.ref, mode: notifications.mode })), _jsx(LanguageSelector, {}), !freeAccess && _jsx(HeaderUser, { navigateLogout: navigateLogout })] }), openKeyboard && (_jsx(VirtualKeyboard, { onClose: () => setOpenKeyboard(false), closeLabel: t('button.close'), defaultLayout: keyboardLayout || getCorpus().keyboardLayout || 'english' }))] }));
|
|
29
29
|
}
|
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
5
5
|
cursor: pointer;
|
|
6
|
-
margin-left: auto;
|
|
7
|
-
margin-right: auto;
|
|
8
|
-
width: 50%;
|
|
9
6
|
|
|
10
|
-
>span {
|
|
7
|
+
> span {
|
|
11
8
|
margin-right: var(--spacing-200);
|
|
12
9
|
margin-left: var(--spacing-200);
|
|
13
10
|
@include label-large-1;
|
|
@@ -22,14 +19,14 @@
|
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
.modal-corpora {
|
|
25
|
-
|
|
22
|
+
> .body {
|
|
26
23
|
display: flex;
|
|
27
24
|
flex-wrap: wrap;
|
|
28
25
|
gap: 12px;
|
|
29
26
|
max-height: 40vh;
|
|
30
27
|
overflow-y: auto;
|
|
31
28
|
|
|
32
|
-
|
|
29
|
+
> .item {
|
|
33
30
|
display: flex;
|
|
34
31
|
flex-direction: column;
|
|
35
32
|
justify-content: center;
|
|
@@ -48,9 +45,9 @@
|
|
|
48
45
|
height: 48px;
|
|
49
46
|
}
|
|
50
47
|
|
|
51
|
-
>span {
|
|
48
|
+
> span {
|
|
52
49
|
text-align: center;
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
52
|
}
|
|
56
|
-
}
|
|
53
|
+
}
|
package/dist/Header/styles.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
position: fixed;
|
|
5
|
+
justify-content: space-between;
|
|
5
6
|
top: 0;
|
|
6
7
|
left: 0;
|
|
7
8
|
width: 100%;
|
|
@@ -11,23 +12,28 @@
|
|
|
11
12
|
z-index: 1150;
|
|
12
13
|
gap: 16px;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
.header-left {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 16px;
|
|
19
|
+
|
|
20
|
+
.app-title {
|
|
21
|
+
> .title {
|
|
22
|
+
@include label-large-2;
|
|
23
|
+
color: var(--text-light-fixed);
|
|
24
|
+
margin-right: 8px;
|
|
25
|
+
}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
> .subtitle {
|
|
28
|
+
@include label-large-1;
|
|
29
|
+
color: var(--text-light-fixed);
|
|
30
|
+
}
|
|
24
31
|
}
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
> .header-profile {
|
|
28
35
|
display: flex;
|
|
29
36
|
align-items: center;
|
|
30
|
-
margin-left: auto;
|
|
31
37
|
padding-right: var(--spacing-150);
|
|
32
38
|
|
|
33
39
|
&.corpora-free {
|
|
@@ -103,23 +103,22 @@ export declare const commonResources: {
|
|
|
103
103
|
'sentence.status.auto': string;
|
|
104
104
|
};
|
|
105
105
|
header: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
'profile.label.home': string;
|
|
106
|
+
"label.platform": string;
|
|
107
|
+
"label.signout": string;
|
|
108
|
+
"label.my.settings": string;
|
|
109
|
+
"label.choose": string;
|
|
110
|
+
"tooltip.keyboard": string;
|
|
111
|
+
"tooltip.tutorials": string;
|
|
112
|
+
"replace.all.tooltip": string;
|
|
113
|
+
"replace.find.placeholder": string;
|
|
114
|
+
"replace.placeholder": string;
|
|
115
|
+
"tag.public": string;
|
|
116
|
+
"tag.private": string;
|
|
117
|
+
"profile.label.hello": string;
|
|
118
|
+
"profile.label.theme": string;
|
|
119
|
+
"profile.label.help": string;
|
|
120
|
+
"profile.label.logout": string;
|
|
121
|
+
"profile.label.home": string;
|
|
123
122
|
};
|
|
124
123
|
'header-app': {
|
|
125
124
|
'label.tools': string;
|
|
@@ -372,23 +371,22 @@ export declare const commonResources: {
|
|
|
372
371
|
'sentence.status.auto': string;
|
|
373
372
|
};
|
|
374
373
|
header: {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
'profile.label.home': string;
|
|
374
|
+
"label.platform": string;
|
|
375
|
+
"label.signout": string;
|
|
376
|
+
"label.my.settings": string;
|
|
377
|
+
"label.choose": string;
|
|
378
|
+
"tooltip.keyboard": string;
|
|
379
|
+
"tooltip.tutorials": string;
|
|
380
|
+
"replace.all.tooltip": string;
|
|
381
|
+
"replace.find.placeholder": string;
|
|
382
|
+
"replace.placeholder": string;
|
|
383
|
+
"tag.public": string;
|
|
384
|
+
"tag.private": string;
|
|
385
|
+
"profile.label.hello": string;
|
|
386
|
+
"profile.label.theme": string;
|
|
387
|
+
"profile.label.help": string;
|
|
388
|
+
"profile.label.logout": string;
|
|
389
|
+
"profile.label.home": string;
|
|
392
390
|
};
|
|
393
391
|
'header-app': {
|
|
394
392
|
'label.tools': string;
|
|
@@ -640,23 +638,22 @@ export declare const commonResources: {
|
|
|
640
638
|
'sentence.status.auto': string;
|
|
641
639
|
};
|
|
642
640
|
header: {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
'profile.label.home': string;
|
|
641
|
+
"label.platform": string;
|
|
642
|
+
"label.signout": string;
|
|
643
|
+
"label.my.settings": string;
|
|
644
|
+
"label.choose": string;
|
|
645
|
+
"tooltip.keyboard": string;
|
|
646
|
+
"tooltip.tutorials": string;
|
|
647
|
+
"replace.all.tooltip": string;
|
|
648
|
+
"replace.find.placeholder": string;
|
|
649
|
+
"replace.placeholder": string;
|
|
650
|
+
"tag.public": string;
|
|
651
|
+
"tag.private": string;
|
|
652
|
+
"profile.label.hello": string;
|
|
653
|
+
"profile.label.theme": string;
|
|
654
|
+
"profile.label.help": string;
|
|
655
|
+
"profile.label.logout": string;
|
|
656
|
+
"profile.label.home": string;
|
|
660
657
|
};
|
|
661
658
|
'header-app': {
|
|
662
659
|
'label.tools': string;
|
|
@@ -1,59 +1,56 @@
|
|
|
1
1
|
export declare const HeaderTexts: {
|
|
2
2
|
en: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'profile.label.home': string;
|
|
3
|
+
"label.platform": string;
|
|
4
|
+
"label.signout": string;
|
|
5
|
+
"label.my.settings": string;
|
|
6
|
+
"label.choose": string;
|
|
7
|
+
"tooltip.keyboard": string;
|
|
8
|
+
"tooltip.tutorials": string;
|
|
9
|
+
"replace.all.tooltip": string;
|
|
10
|
+
"replace.find.placeholder": string;
|
|
11
|
+
"replace.placeholder": string;
|
|
12
|
+
"tag.public": string;
|
|
13
|
+
"tag.private": string;
|
|
14
|
+
"profile.label.hello": string;
|
|
15
|
+
"profile.label.theme": string;
|
|
16
|
+
"profile.label.help": string;
|
|
17
|
+
"profile.label.logout": string;
|
|
18
|
+
"profile.label.home": string;
|
|
20
19
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'profile.label.home': string;
|
|
20
|
+
"pt-BR": {
|
|
21
|
+
"label.platform": string;
|
|
22
|
+
"label.signout": string;
|
|
23
|
+
"label.my.settings": string;
|
|
24
|
+
"label.choose": string;
|
|
25
|
+
"tooltip.keyboard": string;
|
|
26
|
+
"tooltip.tutorials": string;
|
|
27
|
+
"replace.all.tooltip": string;
|
|
28
|
+
"replace.find.placeholder": string;
|
|
29
|
+
"replace.placeholder": string;
|
|
30
|
+
"tag.public": string;
|
|
31
|
+
"tag.private": string;
|
|
32
|
+
"profile.label.hello": string;
|
|
33
|
+
"profile.label.theme": string;
|
|
34
|
+
"profile.label.help": string;
|
|
35
|
+
"profile.label.logout": string;
|
|
36
|
+
"profile.label.home": string;
|
|
39
37
|
};
|
|
40
38
|
it: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
'profile.label.home': string;
|
|
39
|
+
"label.platform": string;
|
|
40
|
+
"label.signout": string;
|
|
41
|
+
"label.my.settings": string;
|
|
42
|
+
"label.choose": string;
|
|
43
|
+
"tooltip.keyboard": string;
|
|
44
|
+
"tooltip.tutorials": string;
|
|
45
|
+
"replace.all.tooltip": string;
|
|
46
|
+
"replace.find.placeholder": string;
|
|
47
|
+
"replace.placeholder": string;
|
|
48
|
+
"tag.public": string;
|
|
49
|
+
"tag.private": string;
|
|
50
|
+
"profile.label.hello": string;
|
|
51
|
+
"profile.label.theme": string;
|
|
52
|
+
"profile.label.help": string;
|
|
53
|
+
"profile.label.logout": string;
|
|
54
|
+
"profile.label.home": string;
|
|
58
55
|
};
|
|
59
56
|
};
|
|
@@ -1,59 +1,56 @@
|
|
|
1
1
|
export const HeaderTexts = {
|
|
2
2
|
en: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'profile.label.home': 'My profile',
|
|
3
|
+
"label.platform": "Tycho Brahe Platform",
|
|
4
|
+
"label.signout": "sign out",
|
|
5
|
+
"label.my.settings": "My Settings",
|
|
6
|
+
"label.choose": "Choose a corpus",
|
|
7
|
+
"tooltip.keyboard": "Open Virtual Keyboard",
|
|
8
|
+
"tooltip.tutorials": "Views Tutorials",
|
|
9
|
+
"replace.all.tooltip": "Replace All",
|
|
10
|
+
"replace.find.placeholder": "Find",
|
|
11
|
+
"replace.placeholder": "Replace",
|
|
12
|
+
"tag.public": "Public",
|
|
13
|
+
"tag.private": "Private",
|
|
14
|
+
"profile.label.hello": "Hello,",
|
|
15
|
+
"profile.label.theme": "Layout Theme",
|
|
16
|
+
"profile.label.help": "Help Center",
|
|
17
|
+
"profile.label.logout": "Logout",
|
|
18
|
+
"profile.label.home": "My profile",
|
|
20
19
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'profile.label.home': 'Meu perfil',
|
|
20
|
+
"pt-BR": {
|
|
21
|
+
"label.platform": "Plataforma Tycho Brahe",
|
|
22
|
+
"label.signout": "sair",
|
|
23
|
+
"label.my.settings": "Minhas Configurações",
|
|
24
|
+
"label.choose": "Escolha um corpus",
|
|
25
|
+
"tooltip.keyboard": "Abrir Teclado Virtual",
|
|
26
|
+
"tooltip.tutorials": "Ver tutoriais",
|
|
27
|
+
"replace.all.tooltip": "Substituir Todos",
|
|
28
|
+
"replace.find.placeholder": "Procurar",
|
|
29
|
+
"replace.placeholder": "Substituir",
|
|
30
|
+
"tag.public": "Público",
|
|
31
|
+
"tag.private": "Privado",
|
|
32
|
+
"profile.label.hello": "Olá,",
|
|
33
|
+
"profile.label.theme": "Tema do Layout",
|
|
34
|
+
"profile.label.help": "Central de Ajuda",
|
|
35
|
+
"profile.label.logout": "Sair da conta",
|
|
36
|
+
"profile.label.home": "Meu perfil",
|
|
39
37
|
},
|
|
40
38
|
it: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
'profile.label.home': 'Il mio profilo',
|
|
39
|
+
"label.platform": "Piattaforma Tycho Brahe",
|
|
40
|
+
"label.signout": "esci",
|
|
41
|
+
"label.my.settings": "Le mie impostazioni",
|
|
42
|
+
"label.choose": "Scegli un corpus",
|
|
43
|
+
"tooltip.keyboard": "Apri tastiera virtuale",
|
|
44
|
+
"tooltip.tutorials": "Visualizza i tutorial",
|
|
45
|
+
"replace.all.tooltip": "Sostituisci tutto",
|
|
46
|
+
"replace.find.placeholder": "Trova",
|
|
47
|
+
"replace.placeholder": "Sostituisci",
|
|
48
|
+
"tag.public": "Pubblico",
|
|
49
|
+
"tag.private": "Privato",
|
|
50
|
+
"profile.label.hello": "Ciao,",
|
|
51
|
+
"profile.label.theme": "Tema grafico",
|
|
52
|
+
"profile.label.help": "Centro assistenza",
|
|
53
|
+
"profile.label.logout": "Disconnetti",
|
|
54
|
+
"profile.label.home": "Il mio profilo",
|
|
58
55
|
},
|
|
59
56
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tycho-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.18",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react-hook-form": "^7.45.2",
|
|
45
45
|
"react-i18next": "^13.0.2",
|
|
46
46
|
"react-router-dom": "^6.14.2",
|
|
47
|
-
"tycho-storybook": "0.5.
|
|
47
|
+
"tycho-storybook": "0.5.15",
|
|
48
48
|
"yup": "^1.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|