@transferwise/components 46.85.0 → 46.86.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/build/avatarLayout/AvatarLayout.js +4 -3
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +4 -3
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/avatarView/AvatarView.js +12 -1
- package/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs +12 -1
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/circularButton/CircularButton.js +18 -21
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +19 -22
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/definitionList/DefinitionList.js.map +1 -1
- package/build/definitionList/DefinitionList.mjs.map +1 -1
- package/build/i18n/de.json +1 -0
- package/build/i18n/de.json.js +1 -0
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +1 -0
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/es.json +1 -0
- package/build/i18n/es.json.js +1 -0
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/es.json.mjs +1 -0
- package/build/i18n/es.json.mjs.map +1 -1
- package/build/i18n/fr.json +6 -5
- package/build/i18n/fr.json.js +6 -5
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/fr.json.mjs +6 -5
- package/build/i18n/fr.json.mjs.map +1 -1
- package/build/i18n/hu.json +1 -0
- package/build/i18n/hu.json.js +1 -0
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +1 -0
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/id.json +1 -0
- package/build/i18n/id.json.js +1 -0
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +1 -0
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/it.json +1 -0
- package/build/i18n/it.json.js +1 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +1 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/pl.json +1 -0
- package/build/i18n/pl.json.js +1 -0
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +1 -0
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/ro.json +1 -0
- package/build/i18n/ro.json.js +1 -0
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +1 -0
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/th.json +1 -0
- package/build/i18n/th.json.js +1 -0
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +1 -0
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/i18n/tr.json +1 -0
- package/build/i18n/tr.json.js +1 -0
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/tr.json.mjs +1 -0
- package/build/i18n/tr.json.mjs.map +1 -1
- package/build/i18n/zh-CN.json +1 -0
- package/build/i18n/zh-CN.json.js +1 -0
- package/build/i18n/zh-CN.json.js.map +1 -1
- package/build/i18n/zh-CN.json.mjs +1 -0
- package/build/i18n/zh-CN.json.mjs.map +1 -1
- package/build/main.css +18 -159
- package/build/moneyInput/MoneyInput.js.map +1 -1
- package/build/moneyInput/MoneyInput.mjs.map +1 -1
- package/build/styles/avatarLayout/AvatarLayout.css +1 -1
- package/build/styles/circularButton/CircularButton.css +17 -158
- package/build/styles/main.css +18 -159
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/avatarView/AvatarView.d.ts.map +1 -1
- package/build/types/circularButton/CircularButton.d.ts +11 -4
- package/build/types/circularButton/CircularButton.d.ts.map +1 -1
- package/build/types/definitionList/DefinitionList.d.ts +1 -2
- package/build/types/definitionList/DefinitionList.d.ts.map +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts +1 -1
- package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/avatar/Avatar.story.tsx +4 -1
- package/src/avatarLayout/AvatarLayout.css +1 -1
- package/src/avatarLayout/AvatarLayout.less +1 -1
- package/src/avatarLayout/AvatarLayout.story.tsx +2 -0
- package/src/avatarLayout/AvatarLayout.tsx +6 -4
- package/src/avatarView/AvatarView.tsx +15 -1
- package/src/avatarWrapper/AvatarWrapper.story.tsx +4 -0
- package/src/badge/Badge.story.tsx +4 -0
- package/src/circularButton/CircularButton.css +17 -158
- package/src/circularButton/CircularButton.less +22 -91
- package/src/circularButton/CircularButton.story.tsx +45 -24
- package/src/circularButton/CircularButton.tsx +38 -25
- package/src/dateInput/DateInput.spec.tsx +45 -26
- package/src/definitionList/DefinitionList.story.tsx +57 -57
- package/src/definitionList/DefinitionList.tsx +1 -1
- package/src/i18n/de.json +1 -0
- package/src/i18n/es.json +1 -0
- package/src/i18n/fr.json +6 -5
- package/src/i18n/hu.json +1 -0
- package/src/i18n/id.json +1 -0
- package/src/i18n/it.json +1 -0
- package/src/i18n/pl.json +1 -0
- package/src/i18n/ro.json +1 -0
- package/src/i18n/th.json +1 -0
- package/src/i18n/tr.json +1 -0
- package/src/i18n/zh-CN.json +1 -0
- package/src/iconButton/IconButton.story.tsx +6 -6
- package/src/main.css +18 -159
- package/src/moneyInput/MoneyInput.spec.tsx +468 -0
- package/src/moneyInput/MoneyInput.tsx +2 -1
- package/src/phoneNumberInput/PhoneNumberInput.spec.tsx +283 -0
- package/src/slidingPanel/SlidingPanel.spec.tsx +69 -0
- package/src/circularButton/_button-label-states.less +0 -34
- package/src/definitionList/DefinitionList.spec.js +0 -91
- package/src/moneyInput/MoneyInput.rtl.spec.tsx +0 -149
- package/src/moneyInput/MoneyInput.spec.js +0 -820
- package/src/phoneNumberInput/PhoneNumberInput.rtl.spec.tsx +0 -32
- package/src/phoneNumberInput/PhoneNumberInput.spec.js +0 -356
- package/src/slidingPanel/SlidingPanel.spec.js +0 -56
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import { action } from '@storybook/addon-actions';
|
|
2
|
-
import { select, text, boolean } from '@storybook/addon-knobs';
|
|
3
2
|
|
|
4
3
|
import { Layout } from '../common';
|
|
5
4
|
|
|
6
|
-
import DefinitionList from './DefinitionList';
|
|
5
|
+
import DefinitionList, { type DefinitionListLayout } from './DefinitionList';
|
|
6
|
+
import { lorem10 } from '../test-utils';
|
|
7
|
+
import Section from '../section';
|
|
8
|
+
import Header from '../header';
|
|
7
9
|
|
|
8
10
|
export default {
|
|
9
11
|
component: DefinitionList,
|
|
10
12
|
title: 'Typography/DefinitionList',
|
|
11
13
|
};
|
|
12
14
|
|
|
15
|
+
const layouts: DefinitionListLayout[] = [
|
|
16
|
+
Layout.VERTICAL_TWO_COLUMN,
|
|
17
|
+
Layout.VERTICAL_ONE_COLUMN,
|
|
18
|
+
Layout.HORIZONTAL_JUSTIFIED,
|
|
19
|
+
Layout.HORIZONTAL_LEFT_ALIGNED,
|
|
20
|
+
Layout.HORIZONTAL_RIGHT_ALIGNED,
|
|
21
|
+
];
|
|
22
|
+
|
|
13
23
|
const definitions = [
|
|
14
24
|
{
|
|
15
|
-
title:
|
|
16
|
-
value:
|
|
25
|
+
title: 'Definition List title',
|
|
26
|
+
value: 'Definition List value',
|
|
17
27
|
key: 'first',
|
|
18
28
|
},
|
|
19
29
|
{
|
|
@@ -23,67 +33,57 @@ const definitions = [
|
|
|
23
33
|
},
|
|
24
34
|
{
|
|
25
35
|
title: 'Long strings will wrap',
|
|
26
|
-
value:
|
|
36
|
+
value: lorem10,
|
|
27
37
|
key: 'third',
|
|
28
38
|
},
|
|
29
39
|
];
|
|
30
40
|
|
|
31
41
|
export const Basic = () => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Layout.HORIZONTAL_JUSTIFIED,
|
|
39
|
-
Layout.HORIZONTAL_LEFT_ALIGNED,
|
|
40
|
-
Layout.HORIZONTAL_RIGHT_ALIGNED,
|
|
41
|
-
],
|
|
42
|
-
Layout.HORIZONTAL_LEFT_ALIGNED,
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
return <DefinitionList layout={layout} muted={muted} definitions={definitions} />;
|
|
42
|
+
return layouts.map((layout) => (
|
|
43
|
+
<Section key={layout}>
|
|
44
|
+
<Header title={`Instace of: ${layout}`} />
|
|
45
|
+
<DefinitionList layout={layout} definitions={definitions} />
|
|
46
|
+
</Section>
|
|
47
|
+
));
|
|
46
48
|
};
|
|
47
49
|
|
|
48
50
|
export const WithActionButtons = () => {
|
|
49
|
-
const muted = boolean('muted', false);
|
|
50
|
-
const layout = select(
|
|
51
|
-
'layout',
|
|
52
|
-
[
|
|
53
|
-
Layout.VERTICAL_TWO_COLUMN,
|
|
54
|
-
Layout.VERTICAL_ONE_COLUMN,
|
|
55
|
-
Layout.HORIZONTAL_JUSTIFIED,
|
|
56
|
-
Layout.HORIZONTAL_LEFT_ALIGNED,
|
|
57
|
-
Layout.HORIZONTAL_RIGHT_ALIGNED,
|
|
58
|
-
],
|
|
59
|
-
Layout.HORIZONTAL_LEFT_ALIGNED,
|
|
60
|
-
);
|
|
61
|
-
|
|
62
51
|
return (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
52
|
+
<>
|
|
53
|
+
{layouts.map((layout) => (
|
|
54
|
+
<Section key={layout}>
|
|
55
|
+
<Header title={`Instace of: ${layout}`} />
|
|
56
|
+
<DefinitionList
|
|
57
|
+
key={layout}
|
|
58
|
+
layout={layout}
|
|
59
|
+
definitions={[
|
|
60
|
+
...definitions,
|
|
61
|
+
{
|
|
62
|
+
title: 'Action buttons are useful',
|
|
63
|
+
value: lorem10,
|
|
64
|
+
key: 'fourth',
|
|
65
|
+
action: {
|
|
66
|
+
label: 'Epic button',
|
|
67
|
+
onClick: action(lorem10),
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: 'tiny',
|
|
72
|
+
value: 'tiny',
|
|
73
|
+
key: 'fifth',
|
|
74
|
+
action: {
|
|
75
|
+
label: 'Epic button',
|
|
76
|
+
onClick: action(lorem10),
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
]}
|
|
80
|
+
/>
|
|
81
|
+
</Section>
|
|
82
|
+
))}
|
|
83
|
+
</>
|
|
88
84
|
);
|
|
89
85
|
};
|
|
86
|
+
|
|
87
|
+
export const Muted = () => {
|
|
88
|
+
return <DefinitionList muted definitions={definitions} />;
|
|
89
|
+
};
|
|
@@ -13,7 +13,7 @@ export interface DefinitionListDefinition {
|
|
|
13
13
|
key: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
type DefinitionListLayout =
|
|
16
|
+
export type DefinitionListLayout =
|
|
17
17
|
`${Layout.VERTICAL_TWO_COLUMN | Layout.VERTICAL_ONE_COLUMN | Layout.HORIZONTAL_JUSTIFIED | Layout.HORIZONTAL_LEFT_ALIGNED | Layout.HORIZONTAL_RIGHT_ALIGNED}`;
|
|
18
18
|
|
|
19
19
|
export interface DefinitionListProps {
|
package/src/i18n/de.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Alle Dateiformate",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Datei zum Hochladen in dieses Feld ziehen",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, kleiner als {size} MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Maximal {maxFiles} Dateien.",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Datei hochladen",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Dateien hochladen",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "Wenn du diese Datei entfernst, wird sie aus unserem System gelöscht werden.",
|
package/src/i18n/es.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Todos los tipos de archivos",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Arrastra un archivo para subirlo",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, menor que {size}MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Máximo {maxFiles} archivos.",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Subir archivo",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Subir archivos",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "La eliminación de este archivo lo borrará de nuestro sistema.",
|
package/src/i18n/fr.json
CHANGED
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"neptune.SelectInput.noResultsFound": "Aucun résultat trouvé",
|
|
28
28
|
"neptune.SelectOption.action.label": "Sélectionner",
|
|
29
29
|
"neptune.SelectOption.selected.action.label": "Modifier l'option choisie",
|
|
30
|
-
"neptune.StatusIcon.iconLabel.error": "Erreur:",
|
|
31
|
-
"neptune.StatusIcon.iconLabel.information": "Informations:",
|
|
30
|
+
"neptune.StatusIcon.iconLabel.error": "Erreur :",
|
|
31
|
+
"neptune.StatusIcon.iconLabel.information": "Informations :",
|
|
32
32
|
"neptune.StatusIcon.iconLabel.pending": "En attente :",
|
|
33
|
-
"neptune.StatusIcon.iconLabel.success": "
|
|
34
|
-
"neptune.StatusIcon.iconLabel.warning": "
|
|
33
|
+
"neptune.StatusIcon.iconLabel.success": "Terminé :",
|
|
34
|
+
"neptune.StatusIcon.iconLabel.warning": "Avertissement :",
|
|
35
35
|
"neptune.Summary.statusDone": "Validé",
|
|
36
36
|
"neptune.Summary.statusNotDone": "À compléter",
|
|
37
37
|
"neptune.Summary.statusPending": "En attente",
|
|
@@ -47,13 +47,14 @@
|
|
|
47
47
|
"neptune.Upload.csWrongTypeMessage": "Format non pris en charge. Veuillez réessayer avec un fichier différent",
|
|
48
48
|
"neptune.Upload.psButtonText": "Annuler",
|
|
49
49
|
"neptune.Upload.psProcessingText": "Téléchargement...",
|
|
50
|
-
"neptune.Upload.retry": "
|
|
50
|
+
"neptune.Upload.retry": "Réessayer",
|
|
51
51
|
"neptune.Upload.usButtonText": "Ou sélectionnez un fichier",
|
|
52
52
|
"neptune.Upload.usDropMessage": "Déposer un fichier pour démarrer le téléchargement",
|
|
53
53
|
"neptune.Upload.usPlaceholder": "Glissez-déposez un fichier de moins de {maxSize} Mo",
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Tous types de fichiers",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Déposer un fichier pour démarrer le téléchargement",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, inférieur à {size} Mo",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Max. {maxFiles} fichiers",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Envoyer le fichier",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Transférer des documents",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "La suppression de ce fichier sera définitive sur notre système.",
|
package/src/i18n/hu.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Összes fájltípus",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Húzd a fájlokat ide a feltöltéshez",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, legfeljebb {size}MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Maximum {maxFiles} fájl.",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Fájl feltöltése",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Fájlok feltöltése",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "Ha törlöd ezt a fájlt, azzal a rendszerünkből is eltávolítod.",
|
package/src/i18n/id.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Semua jenis file",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Lepaskan file untuk mulai mengunggah",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, kurang dari {size}MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Maksimal {maxFiles} file.",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Unggah file",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Unggah file",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "Menghapus file ini akan menghilangkannya dari sistem kami.",
|
package/src/i18n/it.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Tutti i tipi di file",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Rilascia file per iniziare a caricare",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, minore di {size}MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Max {maxFiles} file.",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Carica un file",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Carica i file",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "Rimuovere questo file lo cancellerà dal nostro sistema.",
|
package/src/i18n/pl.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Wszystkie typy plików",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Upuść plik, żeby rozpocząć przesyłanie",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, mniejsze niż {size}MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Maksymalna ilość plików: {maxFiles}.",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Prześlij plik",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Prześlij pliki",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "Usunięcie tego pliku oznacza usunięcie go z naszego systemu.",
|
package/src/i18n/ro.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Toate tipurile de fișiere",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Trage fișierul pentru a începe încărcarea",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, de maximum {size}MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "Maximum {maxFiles} fișiere.",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Încarcă fișier",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Încarcă fișiere",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "Eliminarea acestui fișier îl va șterge din sistemul nostru.",
|
package/src/i18n/th.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "ไฟล์ทุกประเภท",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "วางไฟล์เพื่อเริ่มการอัปโหลด",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes} น้อยกว่า {size} MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "สูงสุด {maxFiles} ไฟล์",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "อัปโหลดไฟล์",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "อัปโหลดไฟล์",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "การลบไฟล์นี้จะลบออกจากระบบของเรา",
|
package/src/i18n/tr.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "Tüm belge tipleri",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "Yüklemeyi başlatmak için dosyayı bırakın",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes}, en fazla {size}MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "En fazla {maxFiles} dosya.",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "Dosya yükleyin",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "Dosya yükleyin",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "Bu belgeyi kaldırmak, sistemimizden tamamen silinmesiyle sonuçlanır.",
|
package/src/i18n/zh-CN.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"neptune.UploadButton.allFileTypes": "所有文件类型",
|
|
55
55
|
"neptune.UploadButton.dropFiles": "拖放文件开始上传",
|
|
56
56
|
"neptune.UploadButton.instructions": "{fileTypes},小于 {size} MB",
|
|
57
|
+
"neptune.UploadButton.maximumFiles": "最多 {maxFiles} 个文件。",
|
|
57
58
|
"neptune.UploadButton.uploadFile": "上传文件",
|
|
58
59
|
"neptune.UploadButton.uploadFiles": "上传文件",
|
|
59
60
|
"neptune.UploadInput.deleteModalBody": "删除此文件会将其从我们的系统中删除",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-key */
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
import { ArrowLeft } from '@transferwise/icons';
|
|
3
|
+
import { ArrowLeft, Cross, Defrost, Edit, Menu, Plus } from '@transferwise/icons';
|
|
4
4
|
import IconButton, { Props } from './IconButton';
|
|
5
5
|
import { action } from '@storybook/addon-actions';
|
|
6
6
|
import Body from '../body';
|
|
@@ -24,7 +24,7 @@ const Template = ({ size, disabled }: Props) => {
|
|
|
24
24
|
type="default"
|
|
25
25
|
onClick={action('button click')}
|
|
26
26
|
>
|
|
27
|
-
<
|
|
27
|
+
<Plus />
|
|
28
28
|
</IconButton>
|
|
29
29
|
<IconButton
|
|
30
30
|
size={size}
|
|
@@ -34,7 +34,7 @@ const Template = ({ size, disabled }: Props) => {
|
|
|
34
34
|
type="default"
|
|
35
35
|
onClick={action('button click')}
|
|
36
36
|
>
|
|
37
|
-
<
|
|
37
|
+
<Defrost />
|
|
38
38
|
</IconButton>
|
|
39
39
|
<IconButton
|
|
40
40
|
size={size}
|
|
@@ -54,7 +54,7 @@ const Template = ({ size, disabled }: Props) => {
|
|
|
54
54
|
type="default"
|
|
55
55
|
onClick={action('button click')}
|
|
56
56
|
>
|
|
57
|
-
<
|
|
57
|
+
<Menu />
|
|
58
58
|
</IconButton>
|
|
59
59
|
<IconButton
|
|
60
60
|
size={size}
|
|
@@ -64,7 +64,7 @@ const Template = ({ size, disabled }: Props) => {
|
|
|
64
64
|
type="negative"
|
|
65
65
|
onClick={action('button click')}
|
|
66
66
|
>
|
|
67
|
-
<
|
|
67
|
+
<Cross />
|
|
68
68
|
</IconButton>
|
|
69
69
|
<IconButton
|
|
70
70
|
size={size}
|
|
@@ -74,7 +74,7 @@ const Template = ({ size, disabled }: Props) => {
|
|
|
74
74
|
type="negative"
|
|
75
75
|
onClick={action('button click')}
|
|
76
76
|
>
|
|
77
|
-
<
|
|
77
|
+
<Edit />
|
|
78
78
|
</IconButton>
|
|
79
79
|
</>
|
|
80
80
|
);
|
package/src/main.css
CHANGED
|
@@ -523,7 +523,7 @@ div.critical-comms .critical-comms-body {
|
|
|
523
523
|
margin-top: calc(var(--np-avatar-layout-size) - var(--np-avatar-size));
|
|
524
524
|
}
|
|
525
525
|
.np-avatar-layout-horizontal {
|
|
526
|
-
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset)
|
|
526
|
+
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset));
|
|
527
527
|
height: var(--np-avatar-layout-size);
|
|
528
528
|
}
|
|
529
529
|
.np-avatar-layout-horizontal-mask {
|
|
@@ -1184,175 +1184,34 @@ div.critical-comms .critical-comms-body {
|
|
|
1184
1184
|
display: inline-flex;
|
|
1185
1185
|
flex-direction: column;
|
|
1186
1186
|
align-items: center;
|
|
1187
|
-
text-align: center;
|
|
1188
1187
|
cursor: pointer;
|
|
1189
|
-
position: relative;
|
|
1190
|
-
}
|
|
1191
|
-
.np-circular-btn .tw-icon {
|
|
1192
|
-
position: absolute;
|
|
1193
|
-
top: 16px;
|
|
1194
|
-
top: var(--size-16);
|
|
1195
|
-
pointer-events: none;
|
|
1196
|
-
color: white;
|
|
1197
|
-
transition: color 0.15s ease-in-out;
|
|
1198
|
-
width: 100%;
|
|
1199
|
-
left: 0;
|
|
1200
|
-
}
|
|
1201
|
-
[dir="rtl"] .np-circular-btn .tw-icon {
|
|
1202
|
-
right: 0;
|
|
1203
|
-
left: auto;
|
|
1204
|
-
left: initial;
|
|
1205
|
-
}
|
|
1206
|
-
@media (max-width: 320px) {
|
|
1207
|
-
.np-circular-btn .tw-icon {
|
|
1208
|
-
top: 12px;
|
|
1209
|
-
top: var(--size-12);
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
.np-circular-btn .tw-icon > svg {
|
|
1213
|
-
margin: 0 auto;
|
|
1214
|
-
}
|
|
1215
|
-
.np-theme-personal .np-circular-btn {
|
|
1216
|
-
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
1217
|
-
}
|
|
1218
|
-
.np-theme-personal .np-circular-btn .tw-icon,
|
|
1219
|
-
.np-theme-personal .np-circular-btn .tw-icon:hover,
|
|
1220
|
-
.np-theme-personal .np-circular-btn .tw-icon:active {
|
|
1221
|
-
color: var(--color-interactive-control);
|
|
1222
|
-
}
|
|
1223
|
-
.np-theme-personal .np-circular-btn.negative .tw-icon,
|
|
1224
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1225
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled):active .tw-icon {
|
|
1226
|
-
color: var(--color-contrast) !important;
|
|
1227
|
-
}
|
|
1228
|
-
.np-theme-personal .np-circular-btn.negative.secondary:not(.disabled):not(:disabled) .tw-icon {
|
|
1229
|
-
color: var(--color-sentiment-negative) !important;
|
|
1230
|
-
}
|
|
1231
|
-
.np-circular-btn.accent .np-circular-btn__label {
|
|
1232
|
-
color: #00a2dd;
|
|
1233
|
-
color: var(--color-interactive-accent);
|
|
1234
|
-
}
|
|
1235
|
-
.np-circular-btn.accent:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1236
|
-
color: #008fc9;
|
|
1237
|
-
color: var(--color-interactive-accent-hover);
|
|
1238
|
-
}
|
|
1239
|
-
.np-circular-btn.accent:active .np-circular-btn__label,
|
|
1240
|
-
.np-circular-btn.accent input[type="button"]:active ~ .np-circular-btn__label {
|
|
1241
|
-
color: #0081ba;
|
|
1242
|
-
color: var(--color-interactive-accent-active);
|
|
1243
|
-
}
|
|
1244
|
-
.np-circular-btn.accent.secondary .tw-icon {
|
|
1245
|
-
color: #00a2dd;
|
|
1246
|
-
color: var(--color-interactive-accent);
|
|
1247
|
-
}
|
|
1248
|
-
.np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1249
|
-
.np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1250
|
-
color: white;
|
|
1251
|
-
}
|
|
1252
|
-
.np-circular-btn.positive .np-circular-btn__label {
|
|
1253
|
-
color: #2ead4b;
|
|
1254
|
-
color: var(--color-interactive-positive);
|
|
1255
|
-
}
|
|
1256
|
-
.np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1257
|
-
color: #069939;
|
|
1258
|
-
color: var(--color-interactive-positive-hover);
|
|
1259
|
-
}
|
|
1260
|
-
.np-circular-btn.positive:active .np-circular-btn__label,
|
|
1261
|
-
.np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1262
|
-
color: #008b2b;
|
|
1263
|
-
color: var(--color-interactive-positive-active);
|
|
1264
|
-
}
|
|
1265
|
-
.np-circular-btn.positive.secondary .tw-icon {
|
|
1266
|
-
color: #2ead4b;
|
|
1267
|
-
color: var(--color-interactive-positive);
|
|
1268
1188
|
}
|
|
1269
|
-
.np-circular-btn
|
|
1270
|
-
.np-circular-btn
|
|
1271
|
-
color: white;
|
|
1272
|
-
}
|
|
1273
|
-
.np-circular-btn.negative .np-circular-btn__label {
|
|
1274
|
-
color: #e74848;
|
|
1275
|
-
color: var(--color-interactive-negative);
|
|
1276
|
-
}
|
|
1277
|
-
.np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1278
|
-
color: #d03238;
|
|
1279
|
-
color: var(--color-interactive-negative-hover);
|
|
1280
|
-
}
|
|
1281
|
-
.np-circular-btn.negative:active .np-circular-btn__label,
|
|
1282
|
-
.np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1283
|
-
color: #bf1e2c;
|
|
1284
|
-
color: var(--color-interactive-negative-active);
|
|
1285
|
-
}
|
|
1286
|
-
.np-circular-btn.negative.secondary .tw-icon {
|
|
1287
|
-
color: #e74848;
|
|
1288
|
-
color: var(--color-interactive-negative);
|
|
1289
|
-
}
|
|
1290
|
-
.np-circular-btn.negative.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1291
|
-
.np-circular-btn.negative.secondary input[type="button"]:active + .tw-icon {
|
|
1292
|
-
color: white;
|
|
1293
|
-
}
|
|
1294
|
-
.np-theme-personal .np-circular-btn.accent .np-circular-btn__label {
|
|
1189
|
+
.np-circular-btn-primary-default .np-circular-btn-label,
|
|
1190
|
+
.np-circular-btn-secondary-default .np-circular-btn-label {
|
|
1295
1191
|
color: var(--color-interactive-primary);
|
|
1296
1192
|
}
|
|
1297
|
-
.np-
|
|
1193
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1194
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1298
1195
|
color: var(--color-interactive-primary-hover);
|
|
1299
1196
|
}
|
|
1300
|
-
.np-
|
|
1301
|
-
.np-
|
|
1197
|
+
.np-circular-btn-primary-default .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1198
|
+
.np-circular-btn-secondary-default .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1302
1199
|
color: var(--color-interactive-primary-active);
|
|
1303
1200
|
}
|
|
1304
|
-
.np-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
.np-theme-personal .np-circular-btn.accent.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1308
|
-
.np-theme-personal .np-circular-btn.accent.secondary input[type="button"]:active + .tw-icon {
|
|
1309
|
-
color: white;
|
|
1310
|
-
color: var(--color-interactive-control);
|
|
1311
|
-
}
|
|
1312
|
-
.np-theme-personal .np-circular-btn.accent.secondary:active input[type="button"] + .tw-icon {
|
|
1313
|
-
color: var(--color-interactive-control);
|
|
1314
|
-
}
|
|
1315
|
-
.np-theme-personal .np-circular-btn.positive .np-circular-btn__label {
|
|
1316
|
-
color: var(--color-interactive-primary);
|
|
1317
|
-
}
|
|
1318
|
-
.np-theme-personal .np-circular-btn.positive:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1319
|
-
color: var(--color-interactive-primary-hover);
|
|
1320
|
-
}
|
|
1321
|
-
.np-theme-personal .np-circular-btn.positive:active .np-circular-btn__label,
|
|
1322
|
-
.np-theme-personal .np-circular-btn.positive input[type="button"]:active ~ .np-circular-btn__label {
|
|
1323
|
-
color: var(--color-interactive-primary-active);
|
|
1324
|
-
}
|
|
1325
|
-
.np-theme-personal .np-circular-btn.positive.secondary .tw-icon {
|
|
1326
|
-
color: var(--color-interactive-primary);
|
|
1327
|
-
}
|
|
1328
|
-
.np-theme-personal .np-circular-btn.positive.secondary:not(.disabled):not(:disabled):hover .tw-icon,
|
|
1329
|
-
.np-theme-personal .np-circular-btn.positive.secondary input[type="button"]:active + .tw-icon {
|
|
1330
|
-
color: white;
|
|
1331
|
-
color: var(--color-interactive-control);
|
|
1332
|
-
}
|
|
1333
|
-
.np-theme-personal .np-circular-btn.positive.secondary:active input[type="button"] + .tw-icon {
|
|
1334
|
-
color: var(--color-interactive-control);
|
|
1335
|
-
}
|
|
1336
|
-
.np-theme-personal .np-circular-btn.negative .np-circular-btn__label {
|
|
1337
|
-
color: var(--color-sentiment-negative);
|
|
1338
|
-
}
|
|
1339
|
-
.np-theme-personal .np-circular-btn.negative:not(.disabled):not(:disabled):hover .np-circular-btn__label {
|
|
1340
|
-
color: var(--color-sentiment-negative-hover);
|
|
1341
|
-
}
|
|
1342
|
-
.np-theme-personal .np-circular-btn.negative:active .np-circular-btn__label,
|
|
1343
|
-
.np-theme-personal .np-circular-btn.negative input[type="button"]:active ~ .np-circular-btn__label {
|
|
1344
|
-
color: var(--color-sentiment-negative-active);
|
|
1201
|
+
.np-circular-btn-primary-negative .np-circular-btn-label,
|
|
1202
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label {
|
|
1203
|
+
color: var(--color-sentiment-negative-primary);
|
|
1345
1204
|
}
|
|
1346
|
-
.np-
|
|
1347
|
-
|
|
1205
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover,
|
|
1206
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):hover {
|
|
1207
|
+
color: var(--color-sentiment-negative-primary-hover);
|
|
1348
1208
|
}
|
|
1349
|
-
.np-
|
|
1350
|
-
.np-
|
|
1351
|
-
color:
|
|
1352
|
-
color: var(--color-interactive-control);
|
|
1209
|
+
.np-circular-btn-primary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active,
|
|
1210
|
+
.np-circular-btn-secondary-negative .np-circular-btn-label:not(.disabled):not(:disabled):active {
|
|
1211
|
+
color: var(--color-sentiment-negative-primary-active);
|
|
1353
1212
|
}
|
|
1354
|
-
.np-
|
|
1355
|
-
|
|
1213
|
+
.np-circular-btn-disabled {
|
|
1214
|
+
cursor: not-allowed;
|
|
1356
1215
|
}
|
|
1357
1216
|
.np-circle {
|
|
1358
1217
|
border-radius: 9999px;
|