@transferwise/components 46.162.2 → 46.164.0

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 (169) hide show
  1. package/build/Chips/Chip/Chip.js +11 -4
  2. package/build/Chips/Chip/Chip.js.map +1 -1
  3. package/build/Chips/Chip/Chip.mjs +11 -4
  4. package/build/Chips/Chip/Chip.mjs.map +1 -1
  5. package/build/FlowNavigation/FlowNavigation.js +4 -2
  6. package/build/FlowNavigation/FlowNavigation.js.map +1 -1
  7. package/build/FlowNavigation/FlowNavigation.mjs +4 -2
  8. package/build/FlowNavigation/FlowNavigation.mjs.map +1 -1
  9. package/build/FlowNavigation/helpers.js +24 -0
  10. package/build/FlowNavigation/helpers.js.map +1 -0
  11. package/build/FlowNavigation/helpers.mjs +21 -0
  12. package/build/FlowNavigation/helpers.mjs.map +1 -0
  13. package/build/Typeahead/Typeahead.js +17 -4
  14. package/build/Typeahead/Typeahead.js.map +1 -1
  15. package/build/Typeahead/Typeahead.mjs +17 -4
  16. package/build/Typeahead/Typeahead.mjs.map +1 -1
  17. package/build/Typeahead/TypeaheadInput/TypeaheadInput.js +2 -0
  18. package/build/Typeahead/TypeaheadInput/TypeaheadInput.js.map +1 -1
  19. package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs +2 -0
  20. package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs.map +1 -1
  21. package/build/i18n/cs.json +1 -0
  22. package/build/i18n/cs.json.js +1 -0
  23. package/build/i18n/cs.json.js.map +1 -1
  24. package/build/i18n/cs.json.mjs +1 -0
  25. package/build/i18n/cs.json.mjs.map +1 -1
  26. package/build/i18n/de.json +1 -0
  27. package/build/i18n/de.json.js +1 -0
  28. package/build/i18n/de.json.js.map +1 -1
  29. package/build/i18n/de.json.mjs +1 -0
  30. package/build/i18n/de.json.mjs.map +1 -1
  31. package/build/i18n/es.json +1 -0
  32. package/build/i18n/es.json.js +1 -0
  33. package/build/i18n/es.json.js.map +1 -1
  34. package/build/i18n/es.json.mjs +1 -0
  35. package/build/i18n/es.json.mjs.map +1 -1
  36. package/build/i18n/fr.json +1 -0
  37. package/build/i18n/fr.json.js +1 -0
  38. package/build/i18n/fr.json.js.map +1 -1
  39. package/build/i18n/fr.json.mjs +1 -0
  40. package/build/i18n/fr.json.mjs.map +1 -1
  41. package/build/i18n/hu.json +1 -0
  42. package/build/i18n/hu.json.js +1 -0
  43. package/build/i18n/hu.json.js.map +1 -1
  44. package/build/i18n/hu.json.mjs +1 -0
  45. package/build/i18n/hu.json.mjs.map +1 -1
  46. package/build/i18n/id.json +1 -0
  47. package/build/i18n/id.json.js +1 -0
  48. package/build/i18n/id.json.js.map +1 -1
  49. package/build/i18n/id.json.mjs +1 -0
  50. package/build/i18n/id.json.mjs.map +1 -1
  51. package/build/i18n/it.json +1 -0
  52. package/build/i18n/it.json.js +1 -0
  53. package/build/i18n/it.json.js.map +1 -1
  54. package/build/i18n/it.json.mjs +1 -0
  55. package/build/i18n/it.json.mjs.map +1 -1
  56. package/build/i18n/ja.json +1 -0
  57. package/build/i18n/ja.json.js +1 -0
  58. package/build/i18n/ja.json.js.map +1 -1
  59. package/build/i18n/ja.json.mjs +1 -0
  60. package/build/i18n/ja.json.mjs.map +1 -1
  61. package/build/i18n/nl.json +1 -0
  62. package/build/i18n/nl.json.js +1 -0
  63. package/build/i18n/nl.json.js.map +1 -1
  64. package/build/i18n/nl.json.mjs +1 -0
  65. package/build/i18n/nl.json.mjs.map +1 -1
  66. package/build/i18n/pl.json +1 -0
  67. package/build/i18n/pl.json.js +1 -0
  68. package/build/i18n/pl.json.js.map +1 -1
  69. package/build/i18n/pl.json.mjs +1 -0
  70. package/build/i18n/pl.json.mjs.map +1 -1
  71. package/build/i18n/pt.json +1 -0
  72. package/build/i18n/pt.json.js +1 -0
  73. package/build/i18n/pt.json.js.map +1 -1
  74. package/build/i18n/pt.json.mjs +1 -0
  75. package/build/i18n/pt.json.mjs.map +1 -1
  76. package/build/i18n/ro.json +1 -0
  77. package/build/i18n/ro.json.js +1 -0
  78. package/build/i18n/ro.json.js.map +1 -1
  79. package/build/i18n/ro.json.mjs +1 -0
  80. package/build/i18n/ro.json.mjs.map +1 -1
  81. package/build/i18n/ru.json +1 -0
  82. package/build/i18n/ru.json.js +1 -0
  83. package/build/i18n/ru.json.js.map +1 -1
  84. package/build/i18n/ru.json.mjs +1 -0
  85. package/build/i18n/ru.json.mjs.map +1 -1
  86. package/build/i18n/th.json +1 -0
  87. package/build/i18n/th.json.js +1 -0
  88. package/build/i18n/th.json.js.map +1 -1
  89. package/build/i18n/th.json.mjs +1 -0
  90. package/build/i18n/th.json.mjs.map +1 -1
  91. package/build/i18n/tr.json +1 -0
  92. package/build/i18n/tr.json.js +1 -0
  93. package/build/i18n/tr.json.js.map +1 -1
  94. package/build/i18n/tr.json.mjs +1 -0
  95. package/build/i18n/tr.json.mjs.map +1 -1
  96. package/build/i18n/uk.json +1 -0
  97. package/build/i18n/uk.json.js +1 -0
  98. package/build/i18n/uk.json.js.map +1 -1
  99. package/build/i18n/uk.json.mjs +1 -0
  100. package/build/i18n/uk.json.mjs.map +1 -1
  101. package/build/i18n/zh-HK.json +1 -0
  102. package/build/i18n/zh-HK.json.js +1 -0
  103. package/build/i18n/zh-HK.json.js.map +1 -1
  104. package/build/i18n/zh-HK.json.mjs +1 -0
  105. package/build/i18n/zh-HK.json.mjs.map +1 -1
  106. package/build/main.css +3 -0
  107. package/build/styles/Typeahead/Typeahead.css +3 -0
  108. package/build/styles/main.css +3 -0
  109. package/build/types/Body/Body.d.ts +2 -2
  110. package/build/types/Chips/Chip/Chip.d.ts +3 -1
  111. package/build/types/Chips/Chip/Chip.d.ts.map +1 -1
  112. package/build/types/FlowNavigation/FlowNavigation.d.ts +6 -2
  113. package/build/types/FlowNavigation/FlowNavigation.d.ts.map +1 -1
  114. package/build/types/FlowNavigation/helpers.d.ts +5 -0
  115. package/build/types/FlowNavigation/helpers.d.ts.map +1 -0
  116. package/build/types/FlowNavigation/index.d.ts +1 -0
  117. package/build/types/FlowNavigation/index.d.ts.map +1 -1
  118. package/build/types/FlowNavigation/types.d.ts +15 -0
  119. package/build/types/FlowNavigation/types.d.ts.map +1 -0
  120. package/build/types/IconButton/IconButton.d.ts +1 -1
  121. package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
  122. package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
  123. package/build/types/Title/Title.d.ts +2 -2
  124. package/build/types/Typeahead/Typeahead.d.ts +2 -0
  125. package/build/types/Typeahead/Typeahead.d.ts.map +1 -1
  126. package/build/types/Typeahead/TypeaheadInput/TypeaheadInput.d.ts +1 -1
  127. package/build/types/Typeahead/TypeaheadInput/TypeaheadInput.d.ts.map +1 -1
  128. package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
  129. package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
  130. package/build/types/index.d.ts +1 -1
  131. package/build/types/index.d.ts.map +1 -1
  132. package/package.json +5 -5
  133. package/src/Chips/Chip/Chip.test.tsx +34 -0
  134. package/src/Chips/Chip/Chip.tsx +11 -3
  135. package/src/FlowNavigation/FlowNavigation.test.tsx +45 -0
  136. package/src/FlowNavigation/FlowNavigation.tsx +14 -3
  137. package/src/FlowNavigation/_stories/FlowNavigation.CriticalBanner.docs.mdx +66 -0
  138. package/src/FlowNavigation/_stories/FlowNavigation.story.tsx +49 -0
  139. package/src/FlowNavigation/helpers.ts +28 -0
  140. package/src/FlowNavigation/index.ts +1 -0
  141. package/src/FlowNavigation/types.ts +16 -0
  142. package/src/Prompt/CriticalBanner/_stories/CriticalBanner.story.tsx +2 -0
  143. package/src/Snackbar/Snackbar.test.tsx +190 -0
  144. package/src/Typeahead/Typeahead.css +3 -0
  145. package/src/Typeahead/Typeahead.less +4 -0
  146. package/src/Typeahead/Typeahead.test.tsx +73 -0
  147. package/src/Typeahead/Typeahead.tsx +18 -3
  148. package/src/Typeahead/TypeaheadInput/TypeaheadInput.tsx +6 -1
  149. package/src/Typeahead/_stories/Typeahead.story.tsx +1 -0
  150. package/src/Typeahead/_stories/Typeahead.test.story.tsx +41 -0
  151. package/src/i18n/cs.json +1 -0
  152. package/src/i18n/de.json +1 -0
  153. package/src/i18n/es.json +1 -0
  154. package/src/i18n/fr.json +1 -0
  155. package/src/i18n/hu.json +1 -0
  156. package/src/i18n/id.json +1 -0
  157. package/src/i18n/it.json +1 -0
  158. package/src/i18n/ja.json +1 -0
  159. package/src/i18n/nl.json +1 -0
  160. package/src/i18n/pl.json +1 -0
  161. package/src/i18n/pt.json +1 -0
  162. package/src/i18n/ro.json +1 -0
  163. package/src/i18n/ru.json +1 -0
  164. package/src/i18n/th.json +1 -0
  165. package/src/i18n/tr.json +1 -0
  166. package/src/i18n/uk.json +1 -0
  167. package/src/i18n/zh-HK.json +1 -0
  168. package/src/index.ts +1 -1
  169. package/src/main.css +3 -0
package/src/i18n/fr.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Sélectionnez une option…",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Code pays",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Numéro de téléphone",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Indicatif",
38
39
  "neptune.Select.searchPlaceholder": "Recherche...",
39
40
  "neptune.SelectInput.noResultsFound": "Aucun résultat trouvé",
40
41
  "neptune.StatusIcon.iconLabel.error": "Erreur :",
package/src/i18n/hu.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Válassz ki egy lehetőséget...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Országazonosító",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Telefonszám",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Előtag",
38
39
  "neptune.Select.searchPlaceholder": "Keresés...",
39
40
  "neptune.SelectInput.noResultsFound": "Nincs találat",
40
41
  "neptune.StatusIcon.iconLabel.error": "Hiba:",
package/src/i18n/id.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Pilih opsi...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Kode negara",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Nomor telepon",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Awalan",
38
39
  "neptune.Select.searchPlaceholder": "Cari...",
39
40
  "neptune.SelectInput.noResultsFound": "Hasil tidak ditemukan",
40
41
  "neptune.StatusIcon.iconLabel.error": "Kesalahan:",
package/src/i18n/it.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Seleziona un'opzione...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Prefisso",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Numero di telefono",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Prefisso",
38
39
  "neptune.Select.searchPlaceholder": "Cerca...",
39
40
  "neptune.SelectInput.noResultsFound": "Nessun risultato trovato",
40
41
  "neptune.StatusIcon.iconLabel.error": "Errore:",
package/src/i18n/ja.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選択してください…",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "国コード",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "電話番号",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "プレフィックス",
38
39
  "neptune.Select.searchPlaceholder": "検索する... ",
39
40
  "neptune.SelectInput.noResultsFound": "結果が見つかりませんでした",
40
41
  "neptune.StatusIcon.iconLabel.error": "エラー:",
package/src/i18n/nl.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Selecteer een optie...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Landcode",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Telefoonnummer",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Voorvoegsel",
38
39
  "neptune.Select.searchPlaceholder": "Zoeken...",
39
40
  "neptune.SelectInput.noResultsFound": "Geen resultaten gevonden",
40
41
  "neptune.StatusIcon.iconLabel.error": "Fout:",
package/src/i18n/pl.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Wybierz opcję...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Numer kierunkowy",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Numer telefonu",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Prefiks",
38
39
  "neptune.Select.searchPlaceholder": "Wyszukaj...",
39
40
  "neptune.SelectInput.noResultsFound": "Nie znaleziono wyników",
40
41
  "neptune.StatusIcon.iconLabel.error": "Błąd:",
package/src/i18n/pt.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Escolha uma opção...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Código do país",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Número de telefone",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Prefixo",
38
39
  "neptune.Select.searchPlaceholder": "Buscar...",
39
40
  "neptune.SelectInput.noResultsFound": "Nenhum resultado encontrado",
40
41
  "neptune.StatusIcon.iconLabel.error": "Erro:",
package/src/i18n/ro.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Selectează o opțiune...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Codul țării",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Număr de telefon",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Prefix",
38
39
  "neptune.Select.searchPlaceholder": "Caută...",
39
40
  "neptune.SelectInput.noResultsFound": "Nu s-a găsit niciun rezultat",
40
41
  "neptune.StatusIcon.iconLabel.error": "Eroare:",
package/src/i18n/ru.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Выберите вариант...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Код страны",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Номер телефона",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Код страны",
38
39
  "neptune.Select.searchPlaceholder": "Поиск...",
39
40
  "neptune.SelectInput.noResultsFound": "Ничего не найдено",
40
41
  "neptune.StatusIcon.iconLabel.error": "Ошибка:",
package/src/i18n/th.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "เลือกตัวเลือก...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "รหัสประเทศ",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "หมายเลขโทรศัพท์",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "คำนำหน้า",
38
39
  "neptune.Select.searchPlaceholder": "ค้นหา...",
39
40
  "neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
40
41
  "neptune.StatusIcon.iconLabel.error": "ข้อผิดพลาด:",
package/src/i18n/tr.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Bir seçenek seçin...",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Ülke kodu",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Telefon numarası",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Ön ek",
38
39
  "neptune.Select.searchPlaceholder": "Ara...",
39
40
  "neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
40
41
  "neptune.StatusIcon.iconLabel.error": "Hata:",
package/src/i18n/uk.json CHANGED
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Виберіть варіант…",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "Код країни",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "Номер телефону",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "Префікс",
38
39
  "neptune.Select.searchPlaceholder": "Пошук…",
39
40
  "neptune.SelectInput.noResultsFound": "Нічого не знайдено",
40
41
  "neptune.StatusIcon.iconLabel.error": "Помилка:",
@@ -35,6 +35,7 @@
35
35
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選擇其中一項…",
36
36
  "neptune.PhoneNumberInput.countryCodeLabel": "國家/地區代碼",
37
37
  "neptune.PhoneNumberInput.phoneNumberLabel": "電話號碼",
38
+ "neptune.PhoneNumberInput.phoneNumberPrefix": "前綴",
38
39
  "neptune.Select.searchPlaceholder": "搜尋…",
39
40
  "neptune.SelectInput.noResultsFound": "找不到任何結果",
40
41
  "neptune.StatusIcon.iconLabel.error": "錯誤:",
package/src/index.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export type { ContainerProps } from './Container';
7
7
  export type { LogoProps, LogoSize, LogoAssetName } from './Logo';
8
- export type { FlowNavigationProps } from './FlowNavigation';
8
+ export type { FlowNavigationProps, CriticalBannerLegacyData } from './FlowNavigation';
9
9
  export type { AccordionItem, AccordionProps } from './Accordion';
10
10
  export type { ActionOptionProps } from './_deprecated/ActionOption';
11
11
  export type { AlertAction, AlertProps, AlertType } from './_deprecated/Alert';
package/src/main.css CHANGED
@@ -27578,6 +27578,9 @@ button.np-link {
27578
27578
  cursor: text;
27579
27579
  display: flex;
27580
27580
  }
27581
+ .typeahead--multiple .input-group.disabled .typeahead__input-container {
27582
+ cursor: not-allowed;
27583
+ }
27581
27584
  .typeahead--multiple .sizer {
27582
27585
  white-space: pre;
27583
27586
  position: absolute;