@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.
Files changed (99) hide show
  1. package/build/avatar/Avatar.js +3 -1
  2. package/build/avatar/Avatar.js.map +1 -1
  3. package/build/avatar/Avatar.mjs +3 -1
  4. package/build/avatar/Avatar.mjs.map +1 -1
  5. package/build/avatarWrapper/AvatarWrapper.js +16 -4
  6. package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
  7. package/build/avatarWrapper/AvatarWrapper.mjs +16 -4
  8. package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
  9. package/build/badge/Badge.js +2 -0
  10. package/build/badge/Badge.js.map +1 -1
  11. package/build/badge/Badge.mjs +2 -0
  12. package/build/badge/Badge.mjs.map +1 -1
  13. package/build/i18n/de.json +0 -2
  14. package/build/i18n/de.json.js +0 -2
  15. package/build/i18n/de.json.js.map +1 -1
  16. package/build/i18n/de.json.mjs +0 -2
  17. package/build/i18n/de.json.mjs.map +1 -1
  18. package/build/i18n/es.json +0 -2
  19. package/build/i18n/es.json.js +0 -2
  20. package/build/i18n/es.json.js.map +1 -1
  21. package/build/i18n/es.json.mjs +0 -2
  22. package/build/i18n/es.json.mjs.map +1 -1
  23. package/build/i18n/fr.json +0 -2
  24. package/build/i18n/fr.json.js +0 -2
  25. package/build/i18n/fr.json.js.map +1 -1
  26. package/build/i18n/fr.json.mjs +0 -2
  27. package/build/i18n/fr.json.mjs.map +1 -1
  28. package/build/i18n/hu.json +0 -2
  29. package/build/i18n/hu.json.js +0 -2
  30. package/build/i18n/hu.json.js.map +1 -1
  31. package/build/i18n/hu.json.mjs +0 -2
  32. package/build/i18n/hu.json.mjs.map +1 -1
  33. package/build/i18n/id.json +0 -2
  34. package/build/i18n/id.json.js +0 -2
  35. package/build/i18n/id.json.js.map +1 -1
  36. package/build/i18n/id.json.mjs +0 -2
  37. package/build/i18n/id.json.mjs.map +1 -1
  38. package/build/i18n/it.json +0 -2
  39. package/build/i18n/it.json.js +0 -2
  40. package/build/i18n/it.json.js.map +1 -1
  41. package/build/i18n/it.json.mjs +0 -2
  42. package/build/i18n/it.json.mjs.map +1 -1
  43. package/build/i18n/ja.json +0 -2
  44. package/build/i18n/ja.json.js +0 -2
  45. package/build/i18n/ja.json.js.map +1 -1
  46. package/build/i18n/ja.json.mjs +0 -2
  47. package/build/i18n/ja.json.mjs.map +1 -1
  48. package/build/i18n/pl.json +0 -2
  49. package/build/i18n/pl.json.js +0 -2
  50. package/build/i18n/pl.json.js.map +1 -1
  51. package/build/i18n/pl.json.mjs +0 -2
  52. package/build/i18n/pl.json.mjs.map +1 -1
  53. package/build/i18n/ro.json +0 -2
  54. package/build/i18n/ro.json.js +0 -2
  55. package/build/i18n/ro.json.js.map +1 -1
  56. package/build/i18n/ro.json.mjs +0 -2
  57. package/build/i18n/ro.json.mjs.map +1 -1
  58. package/build/i18n/ru.json +0 -2
  59. package/build/i18n/ru.json.js +0 -2
  60. package/build/i18n/ru.json.js.map +1 -1
  61. package/build/i18n/ru.json.mjs +0 -2
  62. package/build/i18n/ru.json.mjs.map +1 -1
  63. package/build/i18n/th.json +0 -2
  64. package/build/i18n/th.json.js +0 -2
  65. package/build/i18n/th.json.js.map +1 -1
  66. package/build/i18n/th.json.mjs +0 -2
  67. package/build/i18n/th.json.mjs.map +1 -1
  68. package/build/i18n/tr.json +0 -2
  69. package/build/i18n/tr.json.js +0 -2
  70. package/build/i18n/tr.json.js.map +1 -1
  71. package/build/i18n/tr.json.mjs +0 -2
  72. package/build/i18n/tr.json.mjs.map +1 -1
  73. package/build/types/avatar/Avatar.d.ts +1 -0
  74. package/build/types/avatar/Avatar.d.ts.map +1 -1
  75. package/build/types/avatarWrapper/AvatarWrapper.d.ts +2 -1
  76. package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
  77. package/build/types/badge/Badge.d.ts +2 -1
  78. package/build/types/badge/Badge.d.ts.map +1 -1
  79. package/package.json +1 -1
  80. package/src/avatar/Avatar.spec.tsx +10 -0
  81. package/src/avatar/Avatar.tsx +3 -0
  82. package/src/avatarWrapper/AvatarWrapper.spec.tsx +15 -4
  83. package/src/avatarWrapper/AvatarWrapper.story.tsx +2 -0
  84. package/src/avatarWrapper/AvatarWrapper.tsx +26 -7
  85. package/src/avatarWrapper/__snapshots__/AvatarWrapper.spec.tsx.snap +0 -64
  86. package/src/badge/Badge.spec.tsx +8 -0
  87. package/src/badge/Badge.tsx +3 -1
  88. package/src/i18n/de.json +0 -2
  89. package/src/i18n/es.json +0 -2
  90. package/src/i18n/fr.json +0 -2
  91. package/src/i18n/hu.json +0 -2
  92. package/src/i18n/id.json +0 -2
  93. package/src/i18n/it.json +0 -2
  94. package/src/i18n/ja.json +0 -2
  95. package/src/i18n/pl.json +0 -2
  96. package/src/i18n/ro.json +0 -2
  97. package/src/i18n/ru.json +0 -2
  98. package/src/i18n/th.json +0 -2
  99. package/src/i18n/tr.json +0 -2
@@ -25,8 +25,6 @@ var it = {
25
25
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Seleziona un'opzione...",
26
26
  "neptune.Select.searchPlaceholder": "Cerca...",
27
27
  "neptune.SelectInput.noResultsFound": "Nessun risultato trovato",
28
- "neptune.SelectOption.action.label": "Scegli",
29
- "neptune.SelectOption.selected.action.label": "Modifica l'opzione scelta",
30
28
  "neptune.Summary.statusDone": "Completato",
31
29
  "neptune.Summary.statusNotDone": "Da completare",
32
30
  "neptune.Summary.statusPending": "In corso",
@@ -1 +1 @@
1
- {"version":3,"file":"it.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"it.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,8 +23,6 @@ var it = {
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",
@@ -1 +1 @@
1
- {"version":3,"file":"it.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"it.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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": "保留中",
@@ -25,8 +25,6 @@ var ja = {
25
25
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選択してください…",
26
26
  "neptune.Select.searchPlaceholder": "検索する... ",
27
27
  "neptune.SelectInput.noResultsFound": "結果が見つかりませんでした",
28
- "neptune.SelectOption.action.label": "選択してください",
29
- "neptune.SelectOption.selected.action.label": "選択したオプションを変更する",
30
28
  "neptune.Summary.statusDone": "完了",
31
29
  "neptune.Summary.statusNotDone": "未完了",
32
30
  "neptune.Summary.statusPending": "保留中",
@@ -1 +1 @@
1
- {"version":3,"file":"ja.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ja.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,8 +23,6 @@ var ja = {
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": "保留中",
@@ -1 +1 @@
1
- {"version":3,"file":"ja.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ja.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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",
@@ -25,8 +25,6 @@ var pl = {
25
25
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Wybierz opcję...",
26
26
  "neptune.Select.searchPlaceholder": "Wyszukaj...",
27
27
  "neptune.SelectInput.noResultsFound": "Nie znaleziono wyników",
28
- "neptune.SelectOption.action.label": "Wybierz",
29
- "neptune.SelectOption.selected.action.label": "Zmień wybraną opcję",
30
28
  "neptune.Summary.statusDone": "Czynność wykonana",
31
29
  "neptune.Summary.statusNotDone": "Czynność do wykonania",
32
30
  "neptune.Summary.statusPending": "Czynność oczekująca",
@@ -1 +1 @@
1
- {"version":3,"file":"pl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,8 +23,6 @@ var pl = {
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",
@@ -1 +1 @@
1
- {"version":3,"file":"pl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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",
@@ -25,8 +25,6 @@ var ro = {
25
25
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Selectează o opțiune...",
26
26
  "neptune.Select.searchPlaceholder": "Caută...",
27
27
  "neptune.SelectInput.noResultsFound": "Nu s-a găsit niciun rezultat",
28
- "neptune.SelectOption.action.label": "Alege",
29
- "neptune.SelectOption.selected.action.label": "Schimbă opțiunea aleasă",
30
28
  "neptune.Summary.statusDone": "Finalizat",
31
29
  "neptune.Summary.statusNotDone": "De făcut",
32
30
  "neptune.Summary.statusPending": "În așteptare",
@@ -1 +1 @@
1
- {"version":3,"file":"ro.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ro.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,8 +23,6 @@ var ro = {
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",
@@ -1 +1 @@
1
- {"version":3,"file":"ro.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ro.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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": "Этап в процессе",
@@ -25,8 +25,6 @@ var ru = {
25
25
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Выберите вариант...",
26
26
  "neptune.Select.searchPlaceholder": "Поиск...",
27
27
  "neptune.SelectInput.noResultsFound": "Ничего не найдено",
28
- "neptune.SelectOption.action.label": "Выбрать",
29
- "neptune.SelectOption.selected.action.label": "Изменить выбранный вариант",
30
28
  "neptune.Summary.statusDone": "Этап завершен",
31
29
  "neptune.Summary.statusNotDone": "Этап к выполнению",
32
30
  "neptune.Summary.statusPending": "Этап в процессе",
@@ -1 +1 @@
1
- {"version":3,"file":"ru.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ru.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,8 +23,6 @@ var ru = {
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": "Этап в процессе",
@@ -1 +1 @@
1
- {"version":3,"file":"ru.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ru.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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": "รายการที่รอดำเนินการ",
@@ -25,8 +25,6 @@ var th = {
25
25
  "neptune.PhoneNumberInput.SelectInput.placeholder": "เลือกตัวเลือก...",
26
26
  "neptune.Select.searchPlaceholder": "ค้นหา...",
27
27
  "neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
28
- "neptune.SelectOption.action.label": "เลือก",
29
- "neptune.SelectOption.selected.action.label": "เปลี่ยนตัวเลือกที่เลือกไว้",
30
28
  "neptune.Summary.statusDone": "รายการที่ทำแล้ว",
31
29
  "neptune.Summary.statusNotDone": "รายการที่ต้องทำ",
32
30
  "neptune.Summary.statusPending": "รายการที่รอดำเนินการ",
@@ -1 +1 @@
1
- {"version":3,"file":"th.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"th.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,8 +23,6 @@ var th = {
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": "รายการที่รอดำเนินการ",
@@ -1 +1 @@
1
- {"version":3,"file":"th.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"th.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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",
@@ -25,8 +25,6 @@ var tr = {
25
25
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Bir seçenek seçin...",
26
26
  "neptune.Select.searchPlaceholder": "Ara...",
27
27
  "neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
28
- "neptune.SelectOption.action.label": "Seç",
29
- "neptune.SelectOption.selected.action.label": "Seçilen opsiyonu değiştir",
30
28
  "neptune.Summary.statusDone": "Tamamlanan aşama",
31
29
  "neptune.Summary.statusNotDone": "Yapılacak",
32
30
  "neptune.Summary.statusPending": "Bekliyor",
@@ -1 +1 @@
1
- {"version":3,"file":"tr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,8 +23,6 @@ var tr = {
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",
@@ -1 +1 @@
1
- {"version":3,"file":"tr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -12,6 +12,7 @@ export interface AvatarProps {
12
12
  size?: AvatarSize;
13
13
  theme?: AvatarTheme;
14
14
  type?: AvatarType;
15
+ 'aria-label'?: string;
15
16
  }
16
17
  declare const Avatar: React.FC<AvatarProps>;
17
18
  export default Avatar;
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/avatar/Avatar.tsx"],"names":[],"mappings":"AAOA,KAAK,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEhD,KAAK,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;AAE9D,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;AAErE,MAAM,WAAW,WAAW;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAkBD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsCjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/avatar/Avatar.tsx"],"names":[],"mappings":"AAOA,KAAK,iBAAiB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAEhD,KAAK,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,gBAAgB,CAAC;AAE9D,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;AAErE,MAAM,WAAW,WAAW;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAkBD,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwCjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -3,6 +3,7 @@ import { BadgeProps } from '../badge';
3
3
  import { ProfileTypePersonal, ProfileTypeBusiness, Sentiment } from '../common';
4
4
  export type AvatarWrapperProps = {
5
5
  url?: string;
6
+ 'aria-label'?: string;
6
7
  profileType?: ProfileTypeBusiness | ProfileTypePersonal;
7
8
  profileId?: string;
8
9
  name?: string;
@@ -21,6 +22,6 @@ export type AvatarWrapperProps = {
21
22
  badgeAltText?: never;
22
23
  badgeStatusIcon?: never;
23
24
  });
24
- declare const AvatarWrapper: ({ url, profileType, profileId, badgeUrl, badgeAltText, badgeStatusIcon, name, avatarProps, badgeProps, }: AvatarWrapperProps) => import("react").JSX.Element;
25
+ declare const AvatarWrapper: ({ url, "aria-label": ariaLabel, profileType, profileId, badgeUrl, badgeAltText, badgeStatusIcon, name, avatarProps, badgeProps, }: AvatarWrapperProps) => import("react").JSX.Element;
25
26
  export default AvatarWrapper;
26
27
  //# sourceMappingURL=AvatarWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarWrapper.d.ts","sourceRoot":"","sources":["../../../src/avatarWrapper/AvatarWrapper.tsx"],"names":[],"mappings":"AAGA,OAAe,EAAE,WAAW,EAAc,MAAM,WAAW,CAAC;AAC5D,OAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAe,mBAAmB,EAAE,mBAAmB,EAAQ,SAAS,EAAE,MAAM,WAAW,CAAC;AA2BnG,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,GAAG,CACA;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,eAAe,EAAE,SAAS,CAAC;CAC5B,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CACJ,CAAC;AAEF,QAAA,MAAM,aAAa,6GAUhB,kBAAkB,gCA+CpB,CAAC;AAgBF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AvatarWrapper.d.ts","sourceRoot":"","sources":["../../../src/avatarWrapper/AvatarWrapper.tsx"],"names":[],"mappings":"AAGA,OAAe,EAAE,WAAW,EAAc,MAAM,WAAW,CAAC;AAC5D,OAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAe,mBAAmB,EAAE,mBAAmB,EAAQ,SAAS,EAAE,MAAM,WAAW,CAAC;AAuCnG,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,GAAG,CACA;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,eAAe,EAAE,SAAS,CAAC;CAC5B,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CACJ,CAAC;AAEF,QAAA,MAAM,aAAa,sIAWhB,kBAAkB,gCAoDpB,CAAC;AAgBF,eAAe,aAAa,CAAC"}
@@ -5,7 +5,8 @@ export type BadgeProps = {
5
5
  children: ReactNode;
6
6
  size?: SizeSmall | SizeMedium | SizeLarge;
7
7
  border?: ThemeDark | ThemeLight;
8
+ 'aria-label'?: string;
8
9
  } & CommonProps;
9
- declare const Badge: ({ badge, className, size, border, children, }: BadgeProps) => import("react").JSX.Element;
10
+ declare const Badge: ({ badge, className, size, border, "aria-label": ariaLabel, children, }: BadgeProps) => import("react").JSX.Element;
10
11
  export default Badge;
11
12
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAGL,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACZ,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CACjC,GAAG,WAAW,CAAC;AAEhB,QAAA,MAAM,KAAK,kDAMR,UAAU,gCAgBZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAGL,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACZ,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,WAAW,CAAC;AAEhB,QAAA,MAAM,KAAK,2EAOR,UAAU,gCAgBZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-19e45da",
3
+ "version": "0.0.0-experimental-92768e9",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -41,4 +41,14 @@ describe('Avatar', () => {
41
41
  expect(screen.getByText('JS')).toHaveStyle(`background-color: ${item.color.token}`);
42
42
  });
43
43
  });
44
+
45
+ it('adds aria-label to component if it is passed in', () => {
46
+ render(
47
+ <Avatar size={Size.MEDIUM} aria-label="Japanese flag avatar">
48
+ <img src="https://wise.com/web-art/assets/flags/jpy.svg" alt="" />
49
+ </Avatar>,
50
+ );
51
+
52
+ expect(screen.getByLabelText('Japanese flag avatar')).toBeInTheDocument();
53
+ });
44
54
  });
@@ -24,6 +24,7 @@ export interface AvatarProps {
24
24
  size?: AvatarSize;
25
25
  theme?: AvatarTheme;
26
26
  type?: AvatarType;
27
+ 'aria-label'?: string;
27
28
  }
28
29
 
29
30
  const backwardsCompatibleSize = (size: AvatarSize): NumericAvatarSize => {
@@ -51,6 +52,7 @@ const Avatar: React.FC<AvatarProps> = ({
51
52
  size: sizeFromProps = 48,
52
53
  theme = Theme.LIGHT,
53
54
  type = 'thumbnail',
55
+ 'aria-label': ariaLabel,
54
56
  }) => {
55
57
  const backgroundColorFromSeed = useMemo<string | undefined>(
56
58
  () =>
@@ -69,6 +71,7 @@ const Avatar: React.FC<AvatarProps> = ({
69
71
  'tw-avatar--branded': Boolean(backgroundColorFromSeed),
70
72
  'np-text-title-body': type === 'initials',
71
73
  })}
74
+ aria-label={ariaLabel}
72
75
  >
73
76
  <div
74
77
  className="tw-avatar__content"
@@ -1,6 +1,5 @@
1
1
  import { BadgeProps } from '../badge';
2
- import { Sentiment } from '../common';
3
- import { Size, ProfileType } from '../common';
2
+ import { Sentiment, Size, ProfileType } from '../common';
4
3
  import { render, screen } from '../test-utils';
5
4
 
6
5
  import AvatarWrapper from '.';
@@ -77,6 +76,12 @@ describe('FlowNavigationAvatar', () => {
77
76
 
78
77
  expect(container.firstChild).toMatchSnapshot();
79
78
  });
79
+
80
+ it('renders aria-label', () => {
81
+ render(<AvatarWrapper aria-label="test" />);
82
+
83
+ expect(screen.getByLabelText('test')).toBeInTheDocument();
84
+ });
80
85
  });
81
86
 
82
87
  describe('with a badge url passed', () => {
@@ -95,9 +100,15 @@ describe('FlowNavigationAvatar', () => {
95
100
 
96
101
  describe('with a badge status icon passed', () => {
97
102
  it('renders the badge', () => {
98
- const { container } = render(<AvatarWrapper badgeStatusIcon={Sentiment.POSITIVE} />);
103
+ render(<AvatarWrapper badgeStatusIcon={Sentiment.POSITIVE} />);
99
104
 
100
- expect(container.firstChild).toMatchSnapshot();
105
+ expect(screen.getByTestId('check-icon')).toBeInTheDocument();
106
+ });
107
+
108
+ it('renders aria-label', () => {
109
+ render(<AvatarWrapper badgeStatusIcon={Sentiment.POSITIVE} aria-label="test" />);
110
+
111
+ expect(screen.getByLabelText('test')).toBeInTheDocument();
101
112
  });
102
113
  });
103
114
  });
@@ -37,6 +37,7 @@ export const All: Story = {
37
37
  <div>
38
38
  <AvatarWrapper
39
39
  url="https://wise.com/web-art/assets/flags/jpy.svg"
40
+ aria-label="Japanese flag avatar"
40
41
  profileType={ProfileType.BUSINESS}
41
42
  avatarProps={avatarProps}
42
43
  />
@@ -59,6 +60,7 @@ export const All: Story = {
59
60
  <AvatarWrapper
60
61
  badgeUrl={badgeUrl}
61
62
  badgeAltText="wise fast flag badge"
63
+ aria-label="Person avatar with wise fast flag badge"
62
64
  profileType={ProfileType.PERSONAL}
63
65
  avatarProps={avatarProps}
64
66
  />
@@ -8,21 +8,33 @@ import StatusIcon from '../statusIcon/StatusIcon';
8
8
 
9
9
  interface OptionalBadgeProps extends Omit<BadgeProps, 'badge'> {
10
10
  url?: string;
11
+ ariaLabel?: string;
11
12
  altText?: string;
12
13
  statusIcon?: Sentiment;
13
14
  }
14
15
 
15
- const OptionalBadge = ({ url, altText, statusIcon, children, ...rest }: OptionalBadgeProps) => {
16
+ const OptionalBadge = ({
17
+ url,
18
+ altText,
19
+ statusIcon,
20
+ children,
21
+ ariaLabel,
22
+ ...rest
23
+ }: OptionalBadgeProps) => {
16
24
  if (url) {
17
25
  return (
18
- <Badge badge={<img src={url} alt={altText} />} {...rest}>
26
+ <Badge aria-label={ariaLabel} badge={<img src={url} alt={altText} />} {...rest}>
19
27
  {children}
20
28
  </Badge>
21
29
  );
22
30
  }
23
31
  if (statusIcon) {
24
32
  return (
25
- <Badge badge={<StatusIcon sentiment={statusIcon} size={Size.SMALL} />} {...rest}>
33
+ <Badge
34
+ aria-label={ariaLabel}
35
+ badge={<StatusIcon sentiment={statusIcon} size={Size.SMALL} />}
36
+ {...rest}
37
+ >
26
38
  {children}
27
39
  </Badge>
28
40
  );
@@ -32,6 +44,7 @@ const OptionalBadge = ({ url, altText, statusIcon, children, ...rest }: Optional
32
44
 
33
45
  export type AvatarWrapperProps = {
34
46
  url?: string;
47
+ 'aria-label'?: string;
35
48
  profileType?: ProfileTypeBusiness | ProfileTypePersonal;
36
49
  profileId?: string;
37
50
  name?: string;
@@ -57,6 +70,7 @@ export type AvatarWrapperProps = {
57
70
 
58
71
  const AvatarWrapper = ({
59
72
  url,
73
+ 'aria-label': ariaLabel,
60
74
  profileType,
61
75
  profileId,
62
76
  badgeUrl,
@@ -73,18 +87,22 @@ const AvatarWrapper = ({
73
87
  useEffect(() => setImageLoadError(false), [url]);
74
88
 
75
89
  const getAvatarProps = () => {
90
+ let updatedAvatarProps = avatarProps;
91
+ if (!badgeUrl && !badgeStatusIcon && ariaLabel) {
92
+ updatedAvatarProps = { ...updatedAvatarProps, 'aria-label': ariaLabel };
93
+ }
76
94
  if (url && !hasImageLoadError) {
77
95
  return {
78
96
  type: AvatarType.THUMBNAIL,
79
97
  children: <img src={url} alt="" onError={() => setImageLoadError(true)} />,
80
- ...avatarProps,
98
+ ...updatedAvatarProps,
81
99
  };
82
100
  }
83
101
  if (profileType) {
84
102
  return {
85
103
  type: AvatarType.ICON,
86
104
  children: isBusinessProfile ? <BriefcaseIcon size="24" /> : <ProfileIcon size="24" />,
87
- ...avatarProps,
105
+ ...updatedAvatarProps,
88
106
  };
89
107
  }
90
108
  if (name) {
@@ -92,19 +110,20 @@ const AvatarWrapper = ({
92
110
  type: AvatarType.INITIALS,
93
111
  children: <>{getInitials(name)}</>,
94
112
  backgroundColorSeed: profileId?.toString(),
95
- ...avatarProps,
113
+ ...updatedAvatarProps,
96
114
  };
97
115
  }
98
116
  return {
99
117
  type: AvatarType.ICON,
100
118
  children: <ProfileIcon size="24" />,
101
- ...avatarProps,
119
+ ...updatedAvatarProps,
102
120
  };
103
121
  };
104
122
 
105
123
  return (
106
124
  <OptionalBadge
107
125
  url={badgeUrl}
126
+ ariaLabel={ariaLabel}
108
127
  altText={badgeAltText}
109
128
  statusIcon={badgeStatusIcon}
110
129
  {...badgeProps}
@@ -73,70 +73,6 @@ exports[`FlowNavigationAvatar with a name AND profileType FlowNavigationAvatar w
73
73
  </div>
74
74
  `;
75
75
 
76
- exports[`FlowNavigationAvatar with a name AND profileType with a badge status icon passed renders the badge 1`] = `
77
- <div
78
- class="tw-badge tw-badge-border-light tw-badge-sm"
79
- >
80
- <div
81
- class="tw-badge__children"
82
- >
83
- <div
84
- class="tw-avatar tw-avatar--48 tw-avatar--icon"
85
- >
86
- <div
87
- class="tw-avatar__content"
88
- >
89
- <span
90
- aria-hidden="true"
91
- class="tw-icon tw-icon-person "
92
- data-testid="person-icon"
93
- role="presentation"
94
- >
95
- <svg
96
- fill="currentColor"
97
- focusable="false"
98
- height="24"
99
- viewBox="0 0 24 24"
100
- width="24"
101
- >
102
- <path
103
- d="M15.257 14.014A5.922 5.922 0 0 0 18 9c0-3.3-2.7-6-6-6S6 5.7 6 9c0 2.1 1.071 3.943 2.743 5.014-2.614 1.243-4.457 3.9-4.457 6.986H6c0-3.3 2.7-6 6-6s6 2.7 6 6h1.714c0-3.086-1.842-5.743-4.457-6.986ZM7.714 9A4.298 4.298 0 0 1 12 4.714 4.298 4.298 0 0 1 16.286 9 4.298 4.298 0 0 1 12 13.286 4.298 4.298 0 0 1 7.714 9Z"
104
- />
105
- </svg>
106
- </span>
107
- </div>
108
- </div>
109
- </div>
110
- <div
111
- class="tw-badge__content"
112
- >
113
- <span
114
- class="status-circle status-circle-sm positive"
115
- data-testid="status-icon"
116
- >
117
- <span
118
- aria-hidden="true"
119
- class="tw-icon tw-icon-check status-icon light"
120
- data-testid="check-icon"
121
- role="presentation"
122
- >
123
- <svg
124
- fill="currentColor"
125
- focusable="false"
126
- height="16"
127
- viewBox="0 0 24 24"
128
- width="16"
129
- >
130
- <path
131
- d="M20.143 6.427 9.557 16.97 4.2 11.57 3 12.77l5.957 6a.846.846 0 0 0 .6.257.846.846 0 0 0 .6-.257L21.343 7.627l-1.2-1.2Z"
132
- />
133
- </svg>
134
- </span>
135
- </span>
136
- </div>
137
- </div>
138
- `;
139
-
140
76
  exports[`FlowNavigationAvatar with a name AND profileType with a badge url passed renders the badge 1`] = `
141
77
  <div
142
78
  class="tw-badge tw-badge-border-light tw-badge-lg"
@@ -33,4 +33,12 @@ describe('Badge', () => {
33
33
 
34
34
  expect(screen.getByText(childText).parentElement).toHaveClass('tw-badge__children');
35
35
  });
36
+
37
+ it('adds aria-label to badge if it is passed in', () => {
38
+ const ariaLabel = 'badge-aria-label';
39
+
40
+ renderBadge({ 'aria-label': ariaLabel });
41
+
42
+ expect(screen.getByLabelText(ariaLabel)).toBeInTheDocument();
43
+ });
36
44
  });