@transferwise/components 0.0.0-experimental-19e45da → 0.0.0-experimental-92768e9
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/avatar/Avatar.js +3 -1
- package/build/avatar/Avatar.js.map +1 -1
- package/build/avatar/Avatar.mjs +3 -1
- package/build/avatar/Avatar.mjs.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.js +16 -4
- package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
- package/build/avatarWrapper/AvatarWrapper.mjs +16 -4
- package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
- package/build/badge/Badge.js +2 -0
- package/build/badge/Badge.js.map +1 -1
- package/build/badge/Badge.mjs +2 -0
- package/build/badge/Badge.mjs.map +1 -1
- package/build/i18n/de.json +0 -2
- package/build/i18n/de.json.js +0 -2
- package/build/i18n/de.json.js.map +1 -1
- package/build/i18n/de.json.mjs +0 -2
- package/build/i18n/de.json.mjs.map +1 -1
- package/build/i18n/es.json +0 -2
- package/build/i18n/es.json.js +0 -2
- package/build/i18n/es.json.js.map +1 -1
- package/build/i18n/es.json.mjs +0 -2
- package/build/i18n/es.json.mjs.map +1 -1
- package/build/i18n/fr.json +0 -2
- package/build/i18n/fr.json.js +0 -2
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/fr.json.mjs +0 -2
- package/build/i18n/fr.json.mjs.map +1 -1
- package/build/i18n/hu.json +0 -2
- package/build/i18n/hu.json.js +0 -2
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +0 -2
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/id.json +0 -2
- package/build/i18n/id.json.js +0 -2
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +0 -2
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/it.json +0 -2
- package/build/i18n/it.json.js +0 -2
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +0 -2
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/ja.json +0 -2
- package/build/i18n/ja.json.js +0 -2
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +0 -2
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/pl.json +0 -2
- package/build/i18n/pl.json.js +0 -2
- package/build/i18n/pl.json.js.map +1 -1
- package/build/i18n/pl.json.mjs +0 -2
- package/build/i18n/pl.json.mjs.map +1 -1
- package/build/i18n/ro.json +0 -2
- package/build/i18n/ro.json.js +0 -2
- package/build/i18n/ro.json.js.map +1 -1
- package/build/i18n/ro.json.mjs +0 -2
- package/build/i18n/ro.json.mjs.map +1 -1
- package/build/i18n/ru.json +0 -2
- package/build/i18n/ru.json.js +0 -2
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +0 -2
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/th.json +0 -2
- package/build/i18n/th.json.js +0 -2
- package/build/i18n/th.json.js.map +1 -1
- package/build/i18n/th.json.mjs +0 -2
- package/build/i18n/th.json.mjs.map +1 -1
- package/build/i18n/tr.json +0 -2
- package/build/i18n/tr.json.js +0 -2
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/tr.json.mjs +0 -2
- package/build/i18n/tr.json.mjs.map +1 -1
- package/build/types/avatar/Avatar.d.ts +1 -0
- package/build/types/avatar/Avatar.d.ts.map +1 -1
- package/build/types/avatarWrapper/AvatarWrapper.d.ts +2 -1
- package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
- package/build/types/badge/Badge.d.ts +2 -1
- package/build/types/badge/Badge.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/avatar/Avatar.spec.tsx +10 -0
- package/src/avatar/Avatar.tsx +3 -0
- package/src/avatarWrapper/AvatarWrapper.spec.tsx +15 -4
- package/src/avatarWrapper/AvatarWrapper.story.tsx +2 -0
- package/src/avatarWrapper/AvatarWrapper.tsx +26 -7
- package/src/avatarWrapper/__snapshots__/AvatarWrapper.spec.tsx.snap +0 -64
- package/src/badge/Badge.spec.tsx +8 -0
- package/src/badge/Badge.tsx +3 -1
- package/src/i18n/de.json +0 -2
- package/src/i18n/es.json +0 -2
- package/src/i18n/fr.json +0 -2
- package/src/i18n/hu.json +0 -2
- package/src/i18n/id.json +0 -2
- package/src/i18n/it.json +0 -2
- package/src/i18n/ja.json +0 -2
- package/src/i18n/pl.json +0 -2
- package/src/i18n/ro.json +0 -2
- package/src/i18n/ru.json +0 -2
- package/src/i18n/th.json +0 -2
- package/src/i18n/tr.json +0 -2
package/src/badge/Badge.tsx
CHANGED
|
@@ -17,6 +17,7 @@ export type BadgeProps = {
|
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
size?: SizeSmall | SizeMedium | SizeLarge;
|
|
19
19
|
border?: ThemeDark | ThemeLight;
|
|
20
|
+
'aria-label'?: string;
|
|
20
21
|
} & CommonProps;
|
|
21
22
|
|
|
22
23
|
const Badge = ({
|
|
@@ -24,6 +25,7 @@ const Badge = ({
|
|
|
24
25
|
className = undefined,
|
|
25
26
|
size = Size.SMALL,
|
|
26
27
|
border = Theme.LIGHT,
|
|
28
|
+
'aria-label': ariaLabel,
|
|
27
29
|
children,
|
|
28
30
|
}: BadgeProps) => {
|
|
29
31
|
const classes: string = classNames(
|
|
@@ -36,7 +38,7 @@ const Badge = ({
|
|
|
36
38
|
);
|
|
37
39
|
|
|
38
40
|
return (
|
|
39
|
-
<div className={classes}>
|
|
41
|
+
<div aria-label={ariaLabel} className={classes}>
|
|
40
42
|
<div className="tw-badge__children">{children}</div>
|
|
41
43
|
<div className="tw-badge__content">{badge}</div>
|
|
42
44
|
</div>
|
package/src/i18n/de.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Wähle eine Option...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Wird gesucht...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Keine Ergebnisse gefunden",
|
|
26
|
-
"neptune.SelectOption.action.label": "Auswählen",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Ausgewählte Option ändern",
|
|
28
26
|
"neptune.Summary.statusDone": "Schritt erledigt",
|
|
29
27
|
"neptune.Summary.statusNotDone": "Schritt noch zu erledigen",
|
|
30
28
|
"neptune.Summary.statusPending": "Schritt ausstehend",
|
package/src/i18n/es.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Selecciona una opción...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Buscar...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "No se han encontrado resultados",
|
|
26
|
-
"neptune.SelectOption.action.label": "Elegir",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Cambiar opción elegida",
|
|
28
26
|
"neptune.Summary.statusDone": "Apartado listo",
|
|
29
27
|
"neptune.Summary.statusNotDone": "Apartado a completar",
|
|
30
28
|
"neptune.Summary.statusPending": "Apartado pendiente",
|
package/src/i18n/fr.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Sélectionnez une option…",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Recherche...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Aucun résultat trouvé",
|
|
26
|
-
"neptune.SelectOption.action.label": "Sélectionner",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Modifier l'option choisie",
|
|
28
26
|
"neptune.Summary.statusDone": "Validé",
|
|
29
27
|
"neptune.Summary.statusNotDone": "À compléter",
|
|
30
28
|
"neptune.Summary.statusPending": "En attente",
|
package/src/i18n/hu.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Válassz ki egy lehetőséget...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Keresés...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Nincs találat",
|
|
26
|
-
"neptune.SelectOption.action.label": "Kiválasztás",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Kiválasztott opció módosítása",
|
|
28
26
|
"neptune.Summary.statusDone": "Kész",
|
|
29
27
|
"neptune.Summary.statusNotDone": "Hátravan",
|
|
30
28
|
"neptune.Summary.statusPending": "Függőben",
|
package/src/i18n/id.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Pilih opsi...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Cari...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Hasil tidak ditemukan",
|
|
26
|
-
"neptune.SelectOption.action.label": "Pilih",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Ubah opsi yang dipilih",
|
|
28
26
|
"neptune.Summary.statusDone": "Item selesai",
|
|
29
27
|
"neptune.Summary.statusNotDone": "Item yang harus dilakukan",
|
|
30
28
|
"neptune.Summary.statusPending": "Item tertunda",
|
package/src/i18n/it.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Seleziona un'opzione...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Cerca...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Nessun risultato trovato",
|
|
26
|
-
"neptune.SelectOption.action.label": "Scegli",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Modifica l'opzione scelta",
|
|
28
26
|
"neptune.Summary.statusDone": "Completato",
|
|
29
27
|
"neptune.Summary.statusNotDone": "Da completare",
|
|
30
28
|
"neptune.Summary.statusPending": "In corso",
|
package/src/i18n/ja.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "選択してください…",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "検索する... ",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "結果が見つかりませんでした",
|
|
26
|
-
"neptune.SelectOption.action.label": "選択してください",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "選択したオプションを変更する",
|
|
28
26
|
"neptune.Summary.statusDone": "完了",
|
|
29
27
|
"neptune.Summary.statusNotDone": "未完了",
|
|
30
28
|
"neptune.Summary.statusPending": "保留中",
|
package/src/i18n/pl.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Wybierz opcję...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Wyszukaj...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Nie znaleziono wyników",
|
|
26
|
-
"neptune.SelectOption.action.label": "Wybierz",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Zmień wybraną opcję",
|
|
28
26
|
"neptune.Summary.statusDone": "Czynność wykonana",
|
|
29
27
|
"neptune.Summary.statusNotDone": "Czynność do wykonania",
|
|
30
28
|
"neptune.Summary.statusPending": "Czynność oczekująca",
|
package/src/i18n/ro.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Selectează o opțiune...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Caută...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Nu s-a găsit niciun rezultat",
|
|
26
|
-
"neptune.SelectOption.action.label": "Alege",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Schimbă opțiunea aleasă",
|
|
28
26
|
"neptune.Summary.statusDone": "Finalizat",
|
|
29
27
|
"neptune.Summary.statusNotDone": "De făcut",
|
|
30
28
|
"neptune.Summary.statusPending": "În așteptare",
|
package/src/i18n/ru.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Выберите вариант...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Поиск...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Ничего не найдено",
|
|
26
|
-
"neptune.SelectOption.action.label": "Выбрать",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Изменить выбранный вариант",
|
|
28
26
|
"neptune.Summary.statusDone": "Этап завершен",
|
|
29
27
|
"neptune.Summary.statusNotDone": "Этап к выполнению",
|
|
30
28
|
"neptune.Summary.statusPending": "Этап в процессе",
|
package/src/i18n/th.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "เลือกตัวเลือก...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "ค้นหา...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
|
|
26
|
-
"neptune.SelectOption.action.label": "เลือก",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "เปลี่ยนตัวเลือกที่เลือกไว้",
|
|
28
26
|
"neptune.Summary.statusDone": "รายการที่ทำแล้ว",
|
|
29
27
|
"neptune.Summary.statusNotDone": "รายการที่ต้องทำ",
|
|
30
28
|
"neptune.Summary.statusPending": "รายการที่รอดำเนินการ",
|
package/src/i18n/tr.json
CHANGED
|
@@ -23,8 +23,6 @@
|
|
|
23
23
|
"neptune.PhoneNumberInput.SelectInput.placeholder": "Bir seçenek seçin...",
|
|
24
24
|
"neptune.Select.searchPlaceholder": "Ara...",
|
|
25
25
|
"neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
|
|
26
|
-
"neptune.SelectOption.action.label": "Seç",
|
|
27
|
-
"neptune.SelectOption.selected.action.label": "Seçilen opsiyonu değiştir",
|
|
28
26
|
"neptune.Summary.statusDone": "Tamamlanan aşama",
|
|
29
27
|
"neptune.Summary.statusNotDone": "Yapılacak",
|
|
30
28
|
"neptune.Summary.statusPending": "Bekliyor",
|