@transferwise/components 46.97.5 → 46.98.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.
Files changed (293) hide show
  1. package/build/alert/Alert.js +8 -0
  2. package/build/alert/Alert.js.map +1 -1
  3. package/build/alert/Alert.mjs +8 -0
  4. package/build/alert/Alert.mjs.map +1 -1
  5. package/build/common/closeButton/CloseButton.js +3 -1
  6. package/build/common/closeButton/CloseButton.js.map +1 -1
  7. package/build/common/closeButton/CloseButton.mjs +3 -1
  8. package/build/common/closeButton/CloseButton.mjs.map +1 -1
  9. package/build/dateInput/DateInput.js +4 -4
  10. package/build/dateInput/DateInput.js.map +1 -1
  11. package/build/dateInput/DateInput.mjs +4 -4
  12. package/build/dateInput/DateInput.mjs.map +1 -1
  13. package/build/dateLookup/DateLookup.js +4 -4
  14. package/build/dateLookup/DateLookup.js.map +1 -1
  15. package/build/dateLookup/DateLookup.mjs +4 -4
  16. package/build/dateLookup/DateLookup.mjs.map +1 -1
  17. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js +3 -3
  18. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +1 -1
  19. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +3 -3
  20. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +1 -1
  21. package/build/i18n/cs.json +3 -2
  22. package/build/i18n/cs.json.js +3 -2
  23. package/build/i18n/cs.json.js.map +1 -1
  24. package/build/i18n/cs.json.mjs +3 -2
  25. package/build/i18n/cs.json.mjs.map +1 -1
  26. package/build/i18n/de.json +3 -2
  27. package/build/i18n/de.json.js +3 -2
  28. package/build/i18n/de.json.js.map +1 -1
  29. package/build/i18n/de.json.mjs +3 -2
  30. package/build/i18n/de.json.mjs.map +1 -1
  31. package/build/i18n/en.json +3 -2
  32. package/build/i18n/en.json.js +3 -2
  33. package/build/i18n/en.json.js.map +1 -1
  34. package/build/i18n/en.json.mjs +3 -2
  35. package/build/i18n/en.json.mjs.map +1 -1
  36. package/build/i18n/es.json +3 -2
  37. package/build/i18n/es.json.js +3 -2
  38. package/build/i18n/es.json.js.map +1 -1
  39. package/build/i18n/es.json.mjs +3 -2
  40. package/build/i18n/es.json.mjs.map +1 -1
  41. package/build/i18n/fr.json +3 -2
  42. package/build/i18n/fr.json.js +3 -2
  43. package/build/i18n/fr.json.js.map +1 -1
  44. package/build/i18n/fr.json.mjs +3 -2
  45. package/build/i18n/fr.json.mjs.map +1 -1
  46. package/build/i18n/hu.json +3 -2
  47. package/build/i18n/hu.json.js +3 -2
  48. package/build/i18n/hu.json.js.map +1 -1
  49. package/build/i18n/hu.json.mjs +3 -2
  50. package/build/i18n/hu.json.mjs.map +1 -1
  51. package/build/i18n/id.json +3 -2
  52. package/build/i18n/id.json.js +3 -2
  53. package/build/i18n/id.json.js.map +1 -1
  54. package/build/i18n/id.json.mjs +3 -2
  55. package/build/i18n/id.json.mjs.map +1 -1
  56. package/build/i18n/it.json +3 -2
  57. package/build/i18n/it.json.js +3 -2
  58. package/build/i18n/it.json.js.map +1 -1
  59. package/build/i18n/it.json.mjs +3 -2
  60. package/build/i18n/it.json.mjs.map +1 -1
  61. package/build/i18n/ja.json +3 -2
  62. package/build/i18n/ja.json.js +3 -2
  63. package/build/i18n/ja.json.js.map +1 -1
  64. package/build/i18n/ja.json.mjs +3 -2
  65. package/build/i18n/ja.json.mjs.map +1 -1
  66. package/build/i18n/nl.json +6 -5
  67. package/build/i18n/pl.json +3 -2
  68. package/build/i18n/pl.json.js +3 -2
  69. package/build/i18n/pl.json.js.map +1 -1
  70. package/build/i18n/pl.json.mjs +3 -2
  71. package/build/i18n/pl.json.mjs.map +1 -1
  72. package/build/i18n/pt.json +3 -2
  73. package/build/i18n/pt.json.js +3 -2
  74. package/build/i18n/pt.json.js.map +1 -1
  75. package/build/i18n/pt.json.mjs +3 -2
  76. package/build/i18n/pt.json.mjs.map +1 -1
  77. package/build/i18n/ro.json +3 -2
  78. package/build/i18n/ro.json.js +3 -2
  79. package/build/i18n/ro.json.js.map +1 -1
  80. package/build/i18n/ro.json.mjs +3 -2
  81. package/build/i18n/ro.json.mjs.map +1 -1
  82. package/build/i18n/ru.json +3 -2
  83. package/build/i18n/ru.json.js +3 -2
  84. package/build/i18n/ru.json.js.map +1 -1
  85. package/build/i18n/ru.json.mjs +3 -2
  86. package/build/i18n/ru.json.mjs.map +1 -1
  87. package/build/i18n/th.json +3 -2
  88. package/build/i18n/th.json.js +3 -2
  89. package/build/i18n/th.json.js.map +1 -1
  90. package/build/i18n/th.json.mjs +3 -2
  91. package/build/i18n/th.json.mjs.map +1 -1
  92. package/build/i18n/tr.json +3 -2
  93. package/build/i18n/tr.json.js +3 -2
  94. package/build/i18n/tr.json.js.map +1 -1
  95. package/build/i18n/tr.json.mjs +3 -2
  96. package/build/i18n/tr.json.mjs.map +1 -1
  97. package/build/i18n/zh-CN.json +3 -2
  98. package/build/i18n/zh-CN.json.js +3 -2
  99. package/build/i18n/zh-CN.json.js.map +1 -1
  100. package/build/i18n/zh-CN.json.mjs +3 -2
  101. package/build/i18n/zh-CN.json.mjs.map +1 -1
  102. package/build/i18n/zh-HK.json +3 -2
  103. package/build/i18n/zh-HK.json.js +3 -2
  104. package/build/i18n/zh-HK.json.js.map +1 -1
  105. package/build/i18n/zh-HK.json.mjs +3 -2
  106. package/build/i18n/zh-HK.json.mjs.map +1 -1
  107. package/build/image/Image.js +9 -10
  108. package/build/image/Image.js.map +1 -1
  109. package/build/image/Image.mjs +11 -11
  110. package/build/image/Image.mjs.map +1 -1
  111. package/build/index.js +0 -2
  112. package/build/index.js.map +1 -1
  113. package/build/index.mjs +0 -1
  114. package/build/index.mjs.map +1 -1
  115. package/build/main.css +16 -45
  116. package/build/moneyInput/MoneyInput.js +4 -8
  117. package/build/moneyInput/MoneyInput.js.map +1 -1
  118. package/build/moneyInput/MoneyInput.messages.js +3 -0
  119. package/build/moneyInput/MoneyInput.messages.js.map +1 -1
  120. package/build/moneyInput/MoneyInput.messages.mjs +3 -0
  121. package/build/moneyInput/MoneyInput.messages.mjs.map +1 -1
  122. package/build/moneyInput/MoneyInput.mjs +4 -8
  123. package/build/moneyInput/MoneyInput.mjs.map +1 -1
  124. package/build/phoneNumberInput/PhoneNumberInput.js +36 -2
  125. package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
  126. package/build/phoneNumberInput/PhoneNumberInput.messages.js +6 -0
  127. package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +1 -1
  128. package/build/phoneNumberInput/PhoneNumberInput.messages.mjs +6 -0
  129. package/build/phoneNumberInput/PhoneNumberInput.messages.mjs.map +1 -1
  130. package/build/phoneNumberInput/PhoneNumberInput.mjs +36 -2
  131. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  132. package/build/snackbar/Snackbar.js +1 -1
  133. package/build/snackbar/Snackbar.js.map +1 -1
  134. package/build/snackbar/Snackbar.mjs +1 -1
  135. package/build/snackbar/Snackbar.mjs.map +1 -1
  136. package/build/styles/circularButton/CircularButton.css +1 -0
  137. package/build/styles/dateInput/DateInput.css +13 -0
  138. package/build/styles/main.css +16 -45
  139. package/build/styles/uploadInput/uploadItem/UploadItem.css +2 -1
  140. package/build/tabs/Tabs.js +3 -3
  141. package/build/tabs/Tabs.js.map +1 -1
  142. package/build/tabs/Tabs.mjs +3 -3
  143. package/build/tabs/Tabs.mjs.map +1 -1
  144. package/build/test-utils/assets/apple-pay-logo.svg +84 -0
  145. package/build/typeahead/Typeahead.js +2 -2
  146. package/build/typeahead/Typeahead.js.map +1 -1
  147. package/build/typeahead/Typeahead.mjs +2 -2
  148. package/build/typeahead/Typeahead.mjs.map +1 -1
  149. package/build/typeahead/typeaheadInput/TypeaheadInput.js +2 -2
  150. package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +1 -1
  151. package/build/typeahead/typeaheadInput/TypeaheadInput.mjs +2 -2
  152. package/build/typeahead/typeaheadInput/TypeaheadInput.mjs.map +1 -1
  153. package/build/types/alert/Alert.d.ts.map +1 -1
  154. package/build/types/common/closeButton/CloseButton.d.ts +2 -0
  155. package/build/types/common/closeButton/CloseButton.d.ts.map +1 -1
  156. package/build/types/image/Image.d.ts +0 -1
  157. package/build/types/image/Image.d.ts.map +1 -1
  158. package/build/types/index.d.ts +0 -2
  159. package/build/types/index.d.ts.map +1 -1
  160. package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
  161. package/build/types/moneyInput/MoneyInput.messages.d.ts +5 -0
  162. package/build/types/moneyInput/MoneyInput.messages.d.ts.map +1 -1
  163. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
  164. package/build/types/phoneNumberInput/PhoneNumberInput.messages.d.ts +8 -0
  165. package/build/types/phoneNumberInput/PhoneNumberInput.messages.d.ts.map +1 -1
  166. package/build/types/test-utils/fake-data.d.ts +2 -0
  167. package/build/types/test-utils/fake-data.d.ts.map +1 -1
  168. package/build/types/test-utils/index.d.ts +6 -4
  169. package/build/types/test-utils/index.d.ts.map +1 -1
  170. package/build/types/upload/Upload.d.ts +1 -2
  171. package/build/types/upload/Upload.d.ts.map +1 -1
  172. package/build/types/upload/steps/processingStep/processingStep.d.ts +1 -3
  173. package/build/types/upload/steps/processingStep/processingStep.d.ts.map +1 -1
  174. package/build/types/uploadInput/UploadInput.d.ts.map +1 -1
  175. package/build/types/uploadInput/uploadItem/UploadItem.d.ts +1 -1
  176. package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -1
  177. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
  178. package/build/upload/Upload.js +29 -45
  179. package/build/upload/Upload.js.map +1 -1
  180. package/build/upload/Upload.mjs +29 -45
  181. package/build/upload/Upload.mjs.map +1 -1
  182. package/build/upload/steps/processingStep/processingStep.js +1 -3
  183. package/build/upload/steps/processingStep/processingStep.js.map +1 -1
  184. package/build/upload/steps/processingStep/processingStep.mjs +1 -3
  185. package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
  186. package/build/upload/steps/uploadImageStep/uploadImageStep.js +1 -1
  187. package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
  188. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +1 -1
  189. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
  190. package/build/uploadInput/UploadInput.js +54 -6
  191. package/build/uploadInput/UploadInput.js.map +1 -1
  192. package/build/uploadInput/UploadInput.mjs +54 -6
  193. package/build/uploadInput/UploadInput.mjs.map +1 -1
  194. package/build/uploadInput/uploadItem/UploadItem.js +12 -6
  195. package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
  196. package/build/uploadInput/uploadItem/UploadItem.mjs +12 -6
  197. package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
  198. package/build/withDisplayFormat/WithDisplayFormat.js +3 -2
  199. package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
  200. package/build/withDisplayFormat/WithDisplayFormat.mjs +3 -2
  201. package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
  202. package/package.json +14 -17
  203. package/src/alert/Alert.spec.tsx +11 -0
  204. package/src/alert/Alert.story.tsx +23 -9
  205. package/src/alert/Alert.tsx +14 -1
  206. package/src/circularButton/CircularButton.css +1 -0
  207. package/src/circularButton/CircularButton.less +1 -0
  208. package/src/circularButton/CircularButton.tests.story.tsx +23 -0
  209. package/src/common/closeButton/CloseButton.spec.tsx +13 -1
  210. package/src/common/closeButton/CloseButton.tsx +3 -0
  211. package/src/dateInput/DateInput.css +13 -0
  212. package/src/dateInput/DateInput.less +20 -0
  213. package/src/dateInput/DateInput.tests.story.tsx +14 -3
  214. package/src/dateInput/DateInput.tsx +4 -4
  215. package/src/i18n/cs.json +3 -2
  216. package/src/i18n/de.json +3 -2
  217. package/src/i18n/en.json +3 -2
  218. package/src/i18n/es.json +3 -2
  219. package/src/i18n/fr.json +3 -2
  220. package/src/i18n/hu.json +3 -2
  221. package/src/i18n/id.json +3 -2
  222. package/src/i18n/it.json +3 -2
  223. package/src/i18n/ja.json +3 -2
  224. package/src/i18n/nl.json +6 -5
  225. package/src/i18n/pl.json +3 -2
  226. package/src/i18n/pt.json +3 -2
  227. package/src/i18n/ro.json +3 -2
  228. package/src/i18n/ru.json +3 -2
  229. package/src/i18n/th.json +3 -2
  230. package/src/i18n/tr.json +3 -2
  231. package/src/i18n/zh-CN.json +3 -2
  232. package/src/i18n/zh-HK.json +3 -2
  233. package/src/image/Image.spec.tsx +3 -3
  234. package/src/image/Image.tsx +10 -12
  235. package/src/index.ts +0 -2
  236. package/src/legacylistItem/LegacyListItem.story.tsx +5 -5
  237. package/src/legacylistItem/LegacyListItem.tests.story.tsx +6 -6
  238. package/src/main.css +16 -45
  239. package/src/main.less +0 -1
  240. package/src/moneyInput/MoneyInput.messages.ts +5 -0
  241. package/src/moneyInput/MoneyInput.spec.tsx +42 -5
  242. package/src/moneyInput/MoneyInput.story.tsx +11 -2
  243. package/src/moneyInput/MoneyInput.tsx +5 -7
  244. package/src/phoneNumberInput/PhoneNumberInput.messages.ts +8 -0
  245. package/src/phoneNumberInput/PhoneNumberInput.spec.tsx +77 -43
  246. package/src/phoneNumberInput/PhoneNumberInput.tsx +34 -2
  247. package/src/promoCard/__snapshots__/PromoCard.spec.tsx.snap +1 -0
  248. package/src/promoCard/__snapshots__/PromoCardGroup.spec.tsx.snap +2 -0
  249. package/src/ssr.spec.tsx +0 -1
  250. package/src/test-utils/assets/apple-pay-logo.svg +84 -0
  251. package/src/test-utils/fake-data.ts +5 -0
  252. package/src/test-utils/jest.setup.ts +0 -4
  253. package/src/typeahead/Typeahead.spec.tsx +182 -0
  254. package/src/typeahead/typeaheadInput/TypeaheadInput.spec.tsx +103 -0
  255. package/src/typeahead/util/highlight.spec.tsx +43 -0
  256. package/src/upload/Upload.spec.tsx +63 -0
  257. package/src/upload/Upload.story.tsx +0 -51
  258. package/src/upload/Upload.tests.story.tsx +93 -0
  259. package/src/upload/Upload.tsx +28 -49
  260. package/src/upload/steps/processingStep/processingStep.tsx +2 -7
  261. package/src/uploadInput/UploadInput.tsx +74 -10
  262. package/src/uploadInput/uploadItem/UploadItem.css +2 -1
  263. package/src/uploadInput/uploadItem/UploadItem.less +1 -1
  264. package/src/uploadInput/uploadItem/UploadItem.tsx +11 -6
  265. package/src/withDisplayFormat/WithDisplayFormat.spec.js +11 -15
  266. package/src/withDisplayFormat/WithDisplayFormat.tsx +3 -2
  267. package/build/selectOption/SelectOption.js +0 -131
  268. package/build/selectOption/SelectOption.js.map +0 -1
  269. package/build/selectOption/SelectOption.messages.js +0 -17
  270. package/build/selectOption/SelectOption.messages.js.map +0 -1
  271. package/build/selectOption/SelectOption.messages.mjs +0 -13
  272. package/build/selectOption/SelectOption.messages.mjs.map +0 -1
  273. package/build/selectOption/SelectOption.mjs +0 -127
  274. package/build/selectOption/SelectOption.mjs.map +0 -1
  275. package/build/styles/selectOption/SelectOption.css +0 -44
  276. package/build/types/selectOption/SelectOption.d.ts +0 -21
  277. package/build/types/selectOption/SelectOption.d.ts.map +0 -1
  278. package/build/types/selectOption/SelectOption.messages.d.ts +0 -12
  279. package/build/types/selectOption/SelectOption.messages.d.ts.map +0 -1
  280. package/build/types/selectOption/index.d.ts +0 -3
  281. package/build/types/selectOption/index.d.ts.map +0 -1
  282. package/src/selectOption/SelectOption.css +0 -44
  283. package/src/selectOption/SelectOption.less +0 -40
  284. package/src/selectOption/SelectOption.messages.ts +0 -12
  285. package/src/selectOption/SelectOption.spec.tsx +0 -83
  286. package/src/selectOption/SelectOption.story.tsx +0 -277
  287. package/src/selectOption/SelectOption.tsx +0 -151
  288. package/src/selectOption/index.ts +0 -2
  289. package/src/typeahead/Typeahead.rtl.spec.tsx +0 -54
  290. package/src/typeahead/Typeahead.spec.js +0 -404
  291. package/src/typeahead/typeaheadInput/TypeaheadInput.spec.js +0 -74
  292. package/src/typeahead/typeaheadOption/TypeaheadOption.spec.js +0 -75
  293. package/src/typeahead/util/highlight.spec.js +0 -34
@@ -21,12 +21,13 @@ var pl = {
21
21
  "neptune.Label.optional": "(opcjonalne)",
22
22
  "neptune.Link.opensInNewTab": "(otworzy się w nowej zakładce)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Wybierz opcję...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Wpisz walutę lub kraj",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Wybierz walutę",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Wybierz opcję...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Numer kierunkowy",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Numer telefonu",
26
29
  "neptune.Select.searchPlaceholder": "Wyszukaj...",
27
30
  "neptune.SelectInput.noResultsFound": "Nie znaleziono wyników",
28
- "neptune.SelectOption.action.label": "Wybierz",
29
- "neptune.SelectOption.selected.action.label": "Zmień wybraną opcję",
30
31
  "neptune.StatusIcon.iconLabel.error": "Błąd:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Informacje:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "W toku:",
@@ -1 +1 @@
1
- {"version":3,"file":"pl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pl.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@
21
21
  "neptune.Label.optional": "(Opcional)",
22
22
  "neptune.Link.opensInNewTab": "(abre em uma nova aba)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Escolha uma opção...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Digite uma moeda ou país",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Selecione a moeda",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Escolha uma opção...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Código do país",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Número de telefone",
26
29
  "neptune.Select.searchPlaceholder": "Buscar...",
27
30
  "neptune.SelectInput.noResultsFound": "Nenhum resultado encontrado",
28
- "neptune.SelectOption.action.label": "Selecionar",
29
- "neptune.SelectOption.selected.action.label": "Altere a opção escolhida",
30
31
  "neptune.StatusIcon.iconLabel.error": "Erro:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Informação:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "Pendente:",
@@ -25,12 +25,13 @@ var pt = {
25
25
  "neptune.Label.optional": "(Opcional)",
26
26
  "neptune.Link.opensInNewTab": "(abre em uma nova aba)",
27
27
  "neptune.MoneyInput.Select.placeholder": "Escolha uma opção...",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "Digite uma moeda ou país",
28
29
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Selecione a moeda",
29
30
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Escolha uma opção...",
31
+ "neptune.PhoneNumberInput.countryCodeLabel": "Código do país",
32
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Número de telefone",
30
33
  "neptune.Select.searchPlaceholder": "Buscar...",
31
34
  "neptune.SelectInput.noResultsFound": "Nenhum resultado encontrado",
32
- "neptune.SelectOption.action.label": "Selecionar",
33
- "neptune.SelectOption.selected.action.label": "Altere a opção escolhida",
34
35
  "neptune.StatusIcon.iconLabel.error": "Erro:",
35
36
  "neptune.StatusIcon.iconLabel.information": "Informação:",
36
37
  "neptune.StatusIcon.iconLabel.pending": "Pendente:",
@@ -1 +1 @@
1
- {"version":3,"file":"pt.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pt.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@ var pt = {
21
21
  "neptune.Label.optional": "(Opcional)",
22
22
  "neptune.Link.opensInNewTab": "(abre em uma nova aba)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Escolha uma opção...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Digite uma moeda ou país",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Selecione a moeda",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Escolha uma opção...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Código do país",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Número de telefone",
26
29
  "neptune.Select.searchPlaceholder": "Buscar...",
27
30
  "neptune.SelectInput.noResultsFound": "Nenhum resultado encontrado",
28
- "neptune.SelectOption.action.label": "Selecionar",
29
- "neptune.SelectOption.selected.action.label": "Altere a opção escolhida",
30
31
  "neptune.StatusIcon.iconLabel.error": "Erro:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Informação:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "Pendente:",
@@ -1 +1 @@
1
- {"version":3,"file":"pt.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pt.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@
21
21
  "neptune.Label.optional": "(Opțional)",
22
22
  "neptune.Link.opensInNewTab": "(se deschide într-o filă nouă)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Selectează o opţiune...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Tastează o monedă sau țară",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Selectează moneda",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Selectează o opțiune...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Codul țării",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Număr de telefon",
26
29
  "neptune.Select.searchPlaceholder": "Caută...",
27
30
  "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
31
  "neptune.StatusIcon.iconLabel.error": "Eroare:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Informații:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "În așteptare:",
@@ -25,12 +25,13 @@ var ro = {
25
25
  "neptune.Label.optional": "(Opțional)",
26
26
  "neptune.Link.opensInNewTab": "(se deschide într-o filă nouă)",
27
27
  "neptune.MoneyInput.Select.placeholder": "Selectează o opţiune...",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "Tastează o monedă sau țară",
28
29
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Selectează moneda",
29
30
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Selectează o opțiune...",
31
+ "neptune.PhoneNumberInput.countryCodeLabel": "Codul țării",
32
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Număr de telefon",
30
33
  "neptune.Select.searchPlaceholder": "Caută...",
31
34
  "neptune.SelectInput.noResultsFound": "Nu s-a găsit niciun rezultat",
32
- "neptune.SelectOption.action.label": "Alege",
33
- "neptune.SelectOption.selected.action.label": "Schimbă opțiunea aleasă",
34
35
  "neptune.StatusIcon.iconLabel.error": "Eroare:",
35
36
  "neptune.StatusIcon.iconLabel.information": "Informații:",
36
37
  "neptune.StatusIcon.iconLabel.pending": "Î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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@ var ro = {
21
21
  "neptune.Label.optional": "(Opțional)",
22
22
  "neptune.Link.opensInNewTab": "(se deschide într-o filă nouă)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Selectează o opţiune...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Tastează o monedă sau țară",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Selectează moneda",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Selectează o opțiune...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Codul țării",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Număr de telefon",
26
29
  "neptune.Select.searchPlaceholder": "Caută...",
27
30
  "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
31
  "neptune.StatusIcon.iconLabel.error": "Eroare:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Informații:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "Î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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@
21
21
  "neptune.Label.optional": "(необязательно)",
22
22
  "neptune.Link.opensInNewTab": "(откроется в новой вкладке)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Выберите вариант...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Введите валюту или страну",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Выберите валюту",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Выберите вариант...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Код страны",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Номер телефона",
26
29
  "neptune.Select.searchPlaceholder": "Поиск...",
27
30
  "neptune.SelectInput.noResultsFound": "Ничего не найдено",
28
- "neptune.SelectOption.action.label": "Выбрать",
29
- "neptune.SelectOption.selected.action.label": "Изменить выбранный вариант",
30
31
  "neptune.StatusIcon.iconLabel.error": "Ошибка:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Информация:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "В ожидании:",
@@ -25,12 +25,13 @@ var ru = {
25
25
  "neptune.Label.optional": "(необязательно)",
26
26
  "neptune.Link.opensInNewTab": "(откроется в новой вкладке)",
27
27
  "neptune.MoneyInput.Select.placeholder": "Выберите вариант...",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "Введите валюту или страну",
28
29
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Выберите валюту",
29
30
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Выберите вариант...",
31
+ "neptune.PhoneNumberInput.countryCodeLabel": "Код страны",
32
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Номер телефона",
30
33
  "neptune.Select.searchPlaceholder": "Поиск...",
31
34
  "neptune.SelectInput.noResultsFound": "Ничего не найдено",
32
- "neptune.SelectOption.action.label": "Выбрать",
33
- "neptune.SelectOption.selected.action.label": "Изменить выбранный вариант",
34
35
  "neptune.StatusIcon.iconLabel.error": "Ошибка:",
35
36
  "neptune.StatusIcon.iconLabel.information": "Информация:",
36
37
  "neptune.StatusIcon.iconLabel.pending": "В ожидании:",
@@ -1 +1 @@
1
- {"version":3,"file":"ru.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ru.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@ var ru = {
21
21
  "neptune.Label.optional": "(необязательно)",
22
22
  "neptune.Link.opensInNewTab": "(откроется в новой вкладке)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Выберите вариант...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Введите валюту или страну",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Выберите валюту",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Выберите вариант...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Код страны",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Номер телефона",
26
29
  "neptune.Select.searchPlaceholder": "Поиск...",
27
30
  "neptune.SelectInput.noResultsFound": "Ничего не найдено",
28
- "neptune.SelectOption.action.label": "Выбрать",
29
- "neptune.SelectOption.selected.action.label": "Изменить выбранный вариант",
30
31
  "neptune.StatusIcon.iconLabel.error": "Ошибка:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Информация:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "В ожидании:",
@@ -1 +1 @@
1
- {"version":3,"file":"ru.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ru.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@
21
21
  "neptune.Label.optional": "(ไม่บังคับ)",
22
22
  "neptune.Link.opensInNewTab": "(เปิดในแท็บใหม่)",
23
23
  "neptune.MoneyInput.Select.placeholder": "เลือกตัวเลือก...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "ป้อนสกุลเงินหรือประเทศ",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "เลือกสกุลเงิน",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "เลือกตัวเลือก...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "รหัสประเทศ",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "หมายเลขโทรศัพท์",
26
29
  "neptune.Select.searchPlaceholder": "ค้นหา...",
27
30
  "neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
28
- "neptune.SelectOption.action.label": "เลือก",
29
- "neptune.SelectOption.selected.action.label": "เปลี่ยนตัวเลือกที่เลือกไว้",
30
31
  "neptune.StatusIcon.iconLabel.error": "ข้อผิดพลาด:",
31
32
  "neptune.StatusIcon.iconLabel.information": "ข้อมูล:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "รอดำเนินการ:",
@@ -25,12 +25,13 @@ var th = {
25
25
  "neptune.Label.optional": "(ไม่บังคับ)",
26
26
  "neptune.Link.opensInNewTab": "(เปิดในแท็บใหม่)",
27
27
  "neptune.MoneyInput.Select.placeholder": "เลือกตัวเลือก...",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "ป้อนสกุลเงินหรือประเทศ",
28
29
  "neptune.MoneyInput.Select.selectCurrencyLabel": "เลือกสกุลเงิน",
29
30
  "neptune.PhoneNumberInput.SelectInput.placeholder": "เลือกตัวเลือก...",
31
+ "neptune.PhoneNumberInput.countryCodeLabel": "รหัสประเทศ",
32
+ "neptune.PhoneNumberInput.phoneNumberLabel": "หมายเลขโทรศัพท์",
30
33
  "neptune.Select.searchPlaceholder": "ค้นหา...",
31
34
  "neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
32
- "neptune.SelectOption.action.label": "เลือก",
33
- "neptune.SelectOption.selected.action.label": "เปลี่ยนตัวเลือกที่เลือกไว้",
34
35
  "neptune.StatusIcon.iconLabel.error": "ข้อผิดพลาด:",
35
36
  "neptune.StatusIcon.iconLabel.information": "ข้อมูล:",
36
37
  "neptune.StatusIcon.iconLabel.pending": "รอดำเนินการ:",
@@ -1 +1 @@
1
- {"version":3,"file":"th.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"th.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@ var th = {
21
21
  "neptune.Label.optional": "(ไม่บังคับ)",
22
22
  "neptune.Link.opensInNewTab": "(เปิดในแท็บใหม่)",
23
23
  "neptune.MoneyInput.Select.placeholder": "เลือกตัวเลือก...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "ป้อนสกุลเงินหรือประเทศ",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "เลือกสกุลเงิน",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "เลือกตัวเลือก...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "รหัสประเทศ",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "หมายเลขโทรศัพท์",
26
29
  "neptune.Select.searchPlaceholder": "ค้นหา...",
27
30
  "neptune.SelectInput.noResultsFound": "ไม่พบผลลัพธ์",
28
- "neptune.SelectOption.action.label": "เลือก",
29
- "neptune.SelectOption.selected.action.label": "เปลี่ยนตัวเลือกที่เลือกไว้",
30
31
  "neptune.StatusIcon.iconLabel.error": "ข้อผิดพลาด:",
31
32
  "neptune.StatusIcon.iconLabel.information": "ข้อมูล:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "รอดำเนินการ:",
@@ -1 +1 @@
1
- {"version":3,"file":"th.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"th.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@
21
21
  "neptune.Label.optional": "(İsteğe bağlı)",
22
22
  "neptune.Link.opensInNewTab": "(yeni sekmede açılır)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Bir seçenek seçin...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Bir para birimi veya ülke girin",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Para birimi seçin",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Bir seçenek seçin...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Ülke kodu",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Telefon numarası",
26
29
  "neptune.Select.searchPlaceholder": "Ara...",
27
30
  "neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
28
- "neptune.SelectOption.action.label": "Seç",
29
- "neptune.SelectOption.selected.action.label": "Seçilen opsiyonu değiştir",
30
31
  "neptune.StatusIcon.iconLabel.error": "Hata:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Bilgi:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "Bekliyor:",
@@ -25,12 +25,13 @@ var tr = {
25
25
  "neptune.Label.optional": "(İsteğe bağlı)",
26
26
  "neptune.Link.opensInNewTab": "(yeni sekmede açılır)",
27
27
  "neptune.MoneyInput.Select.placeholder": "Bir seçenek seçin...",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "Bir para birimi veya ülke girin",
28
29
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Para birimi seçin",
29
30
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Bir seçenek seçin...",
31
+ "neptune.PhoneNumberInput.countryCodeLabel": "Ülke kodu",
32
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Telefon numarası",
30
33
  "neptune.Select.searchPlaceholder": "Ara...",
31
34
  "neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
32
- "neptune.SelectOption.action.label": "Seç",
33
- "neptune.SelectOption.selected.action.label": "Seçilen opsiyonu değiştir",
34
35
  "neptune.StatusIcon.iconLabel.error": "Hata:",
35
36
  "neptune.StatusIcon.iconLabel.information": "Bilgi:",
36
37
  "neptune.StatusIcon.iconLabel.pending": "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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@ var tr = {
21
21
  "neptune.Label.optional": "(İsteğe bağlı)",
22
22
  "neptune.Link.opensInNewTab": "(yeni sekmede açılır)",
23
23
  "neptune.MoneyInput.Select.placeholder": "Bir seçenek seçin...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "Bir para birimi veya ülke girin",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "Para birimi seçin",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "Bir seçenek seçin...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "Ülke kodu",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "Telefon numarası",
26
29
  "neptune.Select.searchPlaceholder": "Ara...",
27
30
  "neptune.SelectInput.noResultsFound": "Sonuç bulunamadı",
28
- "neptune.SelectOption.action.label": "Seç",
29
- "neptune.SelectOption.selected.action.label": "Seçilen opsiyonu değiştir",
30
31
  "neptune.StatusIcon.iconLabel.error": "Hata:",
31
32
  "neptune.StatusIcon.iconLabel.information": "Bilgi:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@
21
21
  "neptune.Label.optional": "(可选)",
22
22
  "neptune.Link.opensInNewTab": "(在新标签页中打开)",
23
23
  "neptune.MoneyInput.Select.placeholder": "请选择...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "输入货币或国家/地区",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "选择货币",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "选择其中一项...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "国家/地区代码",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "电话号码",
26
29
  "neptune.Select.searchPlaceholder": "搜索",
27
30
  "neptune.SelectInput.noResultsFound": "找不到结果",
28
- "neptune.SelectOption.action.label": "选择",
29
- "neptune.SelectOption.selected.action.label": "更改所选选项",
30
31
  "neptune.StatusIcon.iconLabel.error": "错误:",
31
32
  "neptune.StatusIcon.iconLabel.information": "信息:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "待处理:",
@@ -25,12 +25,13 @@ var zhCN = {
25
25
  "neptune.Label.optional": "(可选)",
26
26
  "neptune.Link.opensInNewTab": "(在新标签页中打开)",
27
27
  "neptune.MoneyInput.Select.placeholder": "请选择...",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "输入货币或国家/地区",
28
29
  "neptune.MoneyInput.Select.selectCurrencyLabel": "选择货币",
29
30
  "neptune.PhoneNumberInput.SelectInput.placeholder": "选择其中一项...",
31
+ "neptune.PhoneNumberInput.countryCodeLabel": "国家/地区代码",
32
+ "neptune.PhoneNumberInput.phoneNumberLabel": "电话号码",
30
33
  "neptune.Select.searchPlaceholder": "搜索",
31
34
  "neptune.SelectInput.noResultsFound": "找不到结果",
32
- "neptune.SelectOption.action.label": "选择",
33
- "neptune.SelectOption.selected.action.label": "更改所选选项",
34
35
  "neptune.StatusIcon.iconLabel.error": "错误:",
35
36
  "neptune.StatusIcon.iconLabel.information": "信息:",
36
37
  "neptune.StatusIcon.iconLabel.pending": "待处理:",
@@ -1 +1 @@
1
- {"version":3,"file":"zh-CN.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"zh-CN.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@ var zhCN = {
21
21
  "neptune.Label.optional": "(可选)",
22
22
  "neptune.Link.opensInNewTab": "(在新标签页中打开)",
23
23
  "neptune.MoneyInput.Select.placeholder": "请选择...",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "输入货币或国家/地区",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "选择货币",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "选择其中一项...",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "国家/地区代码",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "电话号码",
26
29
  "neptune.Select.searchPlaceholder": "搜索",
27
30
  "neptune.SelectInput.noResultsFound": "找不到结果",
28
- "neptune.SelectOption.action.label": "选择",
29
- "neptune.SelectOption.selected.action.label": "更改所选选项",
30
31
  "neptune.StatusIcon.iconLabel.error": "错误:",
31
32
  "neptune.StatusIcon.iconLabel.information": "信息:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "待处理:",
@@ -1 +1 @@
1
- {"version":3,"file":"zh-CN.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"zh-CN.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@
21
21
  "neptune.Label.optional": "(可選)",
22
22
  "neptune.Link.opensInNewTab": "(在新分頁中開啟)",
23
23
  "neptune.MoneyInput.Select.placeholder": "選擇一個選項…",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "輸入貨幣或國家/地區",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "選擇貨幣",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選擇其中一項…",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "國家/地區代碼",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "電話號碼",
26
29
  "neptune.Select.searchPlaceholder": "搜尋…",
27
30
  "neptune.SelectInput.noResultsFound": "找不到任何結果",
28
- "neptune.SelectOption.action.label": "選擇",
29
- "neptune.SelectOption.selected.action.label": "更改已選選項",
30
31
  "neptune.StatusIcon.iconLabel.error": "錯誤:",
31
32
  "neptune.StatusIcon.iconLabel.information": "資訊:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "處理中:",
@@ -25,12 +25,13 @@ var zhHK = {
25
25
  "neptune.Label.optional": "(可選)",
26
26
  "neptune.Link.opensInNewTab": "(在新分頁中開啟)",
27
27
  "neptune.MoneyInput.Select.placeholder": "選擇一個選項…",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "輸入貨幣或國家/地區",
28
29
  "neptune.MoneyInput.Select.selectCurrencyLabel": "選擇貨幣",
29
30
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選擇其中一項…",
31
+ "neptune.PhoneNumberInput.countryCodeLabel": "國家/地區代碼",
32
+ "neptune.PhoneNumberInput.phoneNumberLabel": "電話號碼",
30
33
  "neptune.Select.searchPlaceholder": "搜尋…",
31
34
  "neptune.SelectInput.noResultsFound": "找不到任何結果",
32
- "neptune.SelectOption.action.label": "選擇",
33
- "neptune.SelectOption.selected.action.label": "更改已選選項",
34
35
  "neptune.StatusIcon.iconLabel.error": "錯誤:",
35
36
  "neptune.StatusIcon.iconLabel.information": "資訊:",
36
37
  "neptune.StatusIcon.iconLabel.pending": "處理中:",
@@ -1 +1 @@
1
- {"version":3,"file":"zh-HK.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"zh-HK.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,12 +21,13 @@ var zhHK = {
21
21
  "neptune.Label.optional": "(可選)",
22
22
  "neptune.Link.opensInNewTab": "(在新分頁中開啟)",
23
23
  "neptune.MoneyInput.Select.placeholder": "選擇一個選項…",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "輸入貨幣或國家/地區",
24
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "選擇貨幣",
25
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選擇其中一項…",
27
+ "neptune.PhoneNumberInput.countryCodeLabel": "國家/地區代碼",
28
+ "neptune.PhoneNumberInput.phoneNumberLabel": "電話號碼",
26
29
  "neptune.Select.searchPlaceholder": "搜尋…",
27
30
  "neptune.SelectInput.noResultsFound": "找不到任何結果",
28
- "neptune.SelectOption.action.label": "選擇",
29
- "neptune.SelectOption.selected.action.label": "更改已選選項",
30
31
  "neptune.StatusIcon.iconLabel.error": "錯誤:",
31
32
  "neptune.StatusIcon.iconLabel.information": "資訊:",
32
33
  "neptune.StatusIcon.iconLabel.pending": "處理中:",
@@ -1 +1 @@
1
- {"version":3,"file":"zh-HK.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"zh-HK.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -10,7 +10,6 @@ var useHasIntersected = require('../common/hooks/useHasIntersected/useHasInterse
10
10
  require('../common/propsValues/breakpoint.js');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
12
 
13
- const EmptyTransparentImage = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
14
13
  const Image = ({
15
14
  id,
16
15
  src,
@@ -28,27 +27,27 @@ const Image = ({
28
27
  elRef: elementReference,
29
28
  loading
30
29
  });
31
- let imageSource = src;
32
- let imageOnLoad = onLoad;
33
- if (loading === 'lazy' && !hasIntersected) {
34
- imageSource = EmptyTransparentImage;
35
- imageOnLoad = undefined;
36
- }
30
+ // Internal onLoad handler that calls user onLoad only if hasIntersected is true
31
+ const handleLoad = React.useCallback(() => {
32
+ if (hasIntersected && onLoad) {
33
+ onLoad();
34
+ }
35
+ }, [hasIntersected, onLoad]);
37
36
  return /*#__PURE__*/jsxRuntime.jsx("img", {
38
37
  ref: elementReference,
39
38
  id: id,
40
39
  alt: alt,
41
- src: imageSource,
40
+ src: src,
41
+ loading: loading,
42
42
  className: clsx.clsx(['tw-image', {
43
43
  'tw-image__stretch': stretch,
44
44
  'tw-image__shrink': shrink
45
45
  }, className]),
46
46
  role: role,
47
- onLoad: imageOnLoad,
47
+ onLoad: handleLoad,
48
48
  onError: onError
49
49
  });
50
50
  };
51
51
 
52
- exports.EmptyTransparentImage = EmptyTransparentImage;
53
52
  exports.default = Image;
54
53
  //# sourceMappingURL=Image.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.js","sources":["../../src/image/Image.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useRef } from 'react';\n\nimport { useHasIntersected } from '../common/hooks';\n\nexport interface ImageProps {\n alt: string;\n src: string;\n id?: string;\n onLoad?: () => void;\n onError?: () => void;\n className?: string;\n loading?: 'lazy' | 'eager';\n stretch?: boolean;\n role?: string;\n shrink?: boolean;\n}\n\nexport const EmptyTransparentImage =\n 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';\n\nconst Image = ({\n id,\n src,\n alt,\n onLoad,\n onError,\n className,\n loading,\n stretch = true,\n role,\n shrink = true,\n}: ImageProps) => {\n const elementReference = useRef<HTMLImageElement>(null);\n const [hasIntersected] = useHasIntersected({ elRef: elementReference, loading });\n let imageSource = src;\n let imageOnLoad = onLoad;\n\n if (loading === 'lazy' && !hasIntersected) {\n imageSource = EmptyTransparentImage;\n imageOnLoad = undefined;\n }\n\n return (\n <img\n ref={elementReference}\n id={id}\n alt={alt}\n src={imageSource}\n className={clsx([\n 'tw-image',\n {\n 'tw-image__stretch': stretch,\n 'tw-image__shrink': shrink,\n },\n className,\n ])}\n role={role}\n onLoad={imageOnLoad}\n onError={onError}\n />\n );\n};\n\nexport default Image;\n"],"names":["EmptyTransparentImage","Image","id","src","alt","onLoad","onError","className","loading","stretch","role","shrink","elementReference","useRef","hasIntersected","useHasIntersected","elRef","imageSource","imageOnLoad","undefined","_jsx","ref","clsx"],"mappings":";;;;;;;;;;;;AAkBO,MAAMA,qBAAqB,GAChC;AAEIC,MAAAA,KAAK,GAAGA,CAAC;EACbC,EAAE;EACFC,GAAG;EACHC,GAAG;EACHC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,OAAO;AACPC,EAAAA,OAAO,GAAG,IAAI;EACdC,IAAI;AACJC,EAAAA,MAAM,GAAG;AAAI,CACF,KAAI;AACf,EAAA,MAAMC,gBAAgB,GAAGC,YAAM,CAAmB,IAAI,CAAC;AACvD,EAAA,MAAM,CAACC,cAAc,CAAC,GAAGC,mCAAiB,CAAC;AAAEC,IAAAA,KAAK,EAAEJ,gBAAgB;AAAEJ,IAAAA;AAAO,GAAE,CAAC;EAChF,IAAIS,WAAW,GAAGd,GAAG;EACrB,IAAIe,WAAW,GAAGb,MAAM;AAExB,EAAA,IAAIG,OAAO,KAAK,MAAM,IAAI,CAACM,cAAc,EAAE;AACzCG,IAAAA,WAAW,GAAGjB,qBAAqB;AACnCkB,IAAAA,WAAW,GAAGC,SAAS;AACzB;AAEA,EAAA,oBACEC,cAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAET,gBAAiB;AACtBV,IAAAA,EAAE,EAAEA,EAAG;AACPE,IAAAA,GAAG,EAAEA,GAAI;AACTD,IAAAA,GAAG,EAAEc,WAAY;AACjBV,IAAAA,SAAS,EAAEe,SAAI,CAAC,CACd,UAAU,EACV;AACE,MAAA,mBAAmB,EAAEb,OAAO;AAC5B,MAAA,kBAAkB,EAAEE;KACrB,EACDJ,SAAS,CACV,CAAE;AACHG,IAAAA,IAAI,EAAEA,IAAK;AACXL,IAAAA,MAAM,EAAEa,WAAY;AACpBZ,IAAAA,OAAO,EAAEA;AAAQ,GACjB,CAAA;AAEN;;;;;"}
1
+ {"version":3,"file":"Image.js","sources":["../../src/image/Image.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useRef, useCallback } from 'react';\n\nimport { useHasIntersected } from '../common/hooks';\n\nexport interface ImageProps {\n alt: string;\n src: string;\n id?: string;\n onLoad?: () => void;\n onError?: () => void;\n className?: string;\n loading?: 'lazy' | 'eager';\n stretch?: boolean;\n role?: string;\n shrink?: boolean;\n}\n\nconst Image = ({\n id,\n src,\n alt,\n onLoad,\n onError,\n className,\n loading,\n stretch = true,\n role,\n shrink = true,\n}: ImageProps) => {\n const elementReference = useRef<HTMLImageElement>(null);\n const [hasIntersected] = useHasIntersected({ elRef: elementReference, loading });\n\n // Internal onLoad handler that calls user onLoad only if hasIntersected is true\n const handleLoad = useCallback(() => {\n if (hasIntersected && onLoad) {\n onLoad();\n }\n }, [hasIntersected, onLoad]);\n\n return (\n <img\n ref={elementReference}\n id={id}\n alt={alt}\n src={src}\n loading={loading}\n className={clsx([\n 'tw-image',\n {\n 'tw-image__stretch': stretch,\n 'tw-image__shrink': shrink,\n },\n className,\n ])}\n role={role}\n onLoad={handleLoad}\n onError={onError}\n />\n );\n};\n\nexport default Image;\n"],"names":["Image","id","src","alt","onLoad","onError","className","loading","stretch","role","shrink","elementReference","useRef","hasIntersected","useHasIntersected","elRef","handleLoad","useCallback","_jsx","ref","clsx"],"mappings":";;;;;;;;;;;;AAkBMA,MAAAA,KAAK,GAAGA,CAAC;EACbC,EAAE;EACFC,GAAG;EACHC,GAAG;EACHC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,OAAO;AACPC,EAAAA,OAAO,GAAG,IAAI;EACdC,IAAI;AACJC,EAAAA,MAAM,GAAG;AAAI,CACF,KAAI;AACf,EAAA,MAAMC,gBAAgB,GAAGC,YAAM,CAAmB,IAAI,CAAC;AACvD,EAAA,MAAM,CAACC,cAAc,CAAC,GAAGC,mCAAiB,CAAC;AAAEC,IAAAA,KAAK,EAAEJ,gBAAgB;AAAEJ,IAAAA;AAAO,GAAE,CAAC;AAEhF;AACA,EAAA,MAAMS,UAAU,GAAGC,iBAAW,CAAC,MAAK;IAClC,IAAIJ,cAAc,IAAIT,MAAM,EAAE;AAC5BA,MAAAA,MAAM,EAAE;AACV;AACF,GAAC,EAAE,CAACS,cAAc,EAAET,MAAM,CAAC,CAAC;AAE5B,EAAA,oBACEc,cAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAER,gBAAiB;AACtBV,IAAAA,EAAE,EAAEA,EAAG;AACPE,IAAAA,GAAG,EAAEA,GAAI;AACTD,IAAAA,GAAG,EAAEA,GAAI;AACTK,IAAAA,OAAO,EAAEA,OAAQ;AACjBD,IAAAA,SAAS,EAAEc,SAAI,CAAC,CACd,UAAU,EACV;AACE,MAAA,mBAAmB,EAAEZ,OAAO;AAC5B,MAAA,kBAAkB,EAAEE;KACrB,EACDJ,SAAS,CACV,CAAE;AACHG,IAAAA,IAAI,EAAEA,IAAK;AACXL,IAAAA,MAAM,EAAEY,UAAW;AACnBX,IAAAA,OAAO,EAAEA;AAAQ,GACjB,CAAA;AAEN;;;;"}
@@ -1,12 +1,11 @@
1
1
  import { clsx } from 'clsx';
2
- import { useRef } from 'react';
2
+ import { useRef, useCallback } from 'react';
3
3
  import '@transferwise/neptune-validation';
4
4
  import '../provider/direction/DirectionProvider.mjs';
5
5
  import { useHasIntersected } from '../common/hooks/useHasIntersected/useHasIntersected.mjs';
6
6
  import '../common/propsValues/breakpoint.mjs';
7
7
  import { jsx } from 'react/jsx-runtime';
8
8
 
9
- const EmptyTransparentImage = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
10
9
  const Image = ({
11
10
  id,
12
11
  src,
@@ -24,26 +23,27 @@ const Image = ({
24
23
  elRef: elementReference,
25
24
  loading
26
25
  });
27
- let imageSource = src;
28
- let imageOnLoad = onLoad;
29
- if (loading === 'lazy' && !hasIntersected) {
30
- imageSource = EmptyTransparentImage;
31
- imageOnLoad = undefined;
32
- }
26
+ // Internal onLoad handler that calls user onLoad only if hasIntersected is true
27
+ const handleLoad = useCallback(() => {
28
+ if (hasIntersected && onLoad) {
29
+ onLoad();
30
+ }
31
+ }, [hasIntersected, onLoad]);
33
32
  return /*#__PURE__*/jsx("img", {
34
33
  ref: elementReference,
35
34
  id: id,
36
35
  alt: alt,
37
- src: imageSource,
36
+ src: src,
37
+ loading: loading,
38
38
  className: clsx(['tw-image', {
39
39
  'tw-image__stretch': stretch,
40
40
  'tw-image__shrink': shrink
41
41
  }, className]),
42
42
  role: role,
43
- onLoad: imageOnLoad,
43
+ onLoad: handleLoad,
44
44
  onError: onError
45
45
  });
46
46
  };
47
47
 
48
- export { EmptyTransparentImage, Image as default };
48
+ export { Image as default };
49
49
  //# sourceMappingURL=Image.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.mjs","sources":["../../src/image/Image.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useRef } from 'react';\n\nimport { useHasIntersected } from '../common/hooks';\n\nexport interface ImageProps {\n alt: string;\n src: string;\n id?: string;\n onLoad?: () => void;\n onError?: () => void;\n className?: string;\n loading?: 'lazy' | 'eager';\n stretch?: boolean;\n role?: string;\n shrink?: boolean;\n}\n\nexport const EmptyTransparentImage =\n 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';\n\nconst Image = ({\n id,\n src,\n alt,\n onLoad,\n onError,\n className,\n loading,\n stretch = true,\n role,\n shrink = true,\n}: ImageProps) => {\n const elementReference = useRef<HTMLImageElement>(null);\n const [hasIntersected] = useHasIntersected({ elRef: elementReference, loading });\n let imageSource = src;\n let imageOnLoad = onLoad;\n\n if (loading === 'lazy' && !hasIntersected) {\n imageSource = EmptyTransparentImage;\n imageOnLoad = undefined;\n }\n\n return (\n <img\n ref={elementReference}\n id={id}\n alt={alt}\n src={imageSource}\n className={clsx([\n 'tw-image',\n {\n 'tw-image__stretch': stretch,\n 'tw-image__shrink': shrink,\n },\n className,\n ])}\n role={role}\n onLoad={imageOnLoad}\n onError={onError}\n />\n );\n};\n\nexport default Image;\n"],"names":["EmptyTransparentImage","Image","id","src","alt","onLoad","onError","className","loading","stretch","role","shrink","elementReference","useRef","hasIntersected","useHasIntersected","elRef","imageSource","imageOnLoad","undefined","_jsx","ref","clsx"],"mappings":";;;;;;;;AAkBO,MAAMA,qBAAqB,GAChC;AAEIC,MAAAA,KAAK,GAAGA,CAAC;EACbC,EAAE;EACFC,GAAG;EACHC,GAAG;EACHC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,OAAO;AACPC,EAAAA,OAAO,GAAG,IAAI;EACdC,IAAI;AACJC,EAAAA,MAAM,GAAG;AAAI,CACF,KAAI;AACf,EAAA,MAAMC,gBAAgB,GAAGC,MAAM,CAAmB,IAAI,CAAC;AACvD,EAAA,MAAM,CAACC,cAAc,CAAC,GAAGC,iBAAiB,CAAC;AAAEC,IAAAA,KAAK,EAAEJ,gBAAgB;AAAEJ,IAAAA;AAAO,GAAE,CAAC;EAChF,IAAIS,WAAW,GAAGd,GAAG;EACrB,IAAIe,WAAW,GAAGb,MAAM;AAExB,EAAA,IAAIG,OAAO,KAAK,MAAM,IAAI,CAACM,cAAc,EAAE;AACzCG,IAAAA,WAAW,GAAGjB,qBAAqB;AACnCkB,IAAAA,WAAW,GAAGC,SAAS;AACzB;AAEA,EAAA,oBACEC,GAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAET,gBAAiB;AACtBV,IAAAA,EAAE,EAAEA,EAAG;AACPE,IAAAA,GAAG,EAAEA,GAAI;AACTD,IAAAA,GAAG,EAAEc,WAAY;AACjBV,IAAAA,SAAS,EAAEe,IAAI,CAAC,CACd,UAAU,EACV;AACE,MAAA,mBAAmB,EAAEb,OAAO;AAC5B,MAAA,kBAAkB,EAAEE;KACrB,EACDJ,SAAS,CACV,CAAE;AACHG,IAAAA,IAAI,EAAEA,IAAK;AACXL,IAAAA,MAAM,EAAEa,WAAY;AACpBZ,IAAAA,OAAO,EAAEA;AAAQ,GACjB,CAAA;AAEN;;;;"}
1
+ {"version":3,"file":"Image.mjs","sources":["../../src/image/Image.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { useRef, useCallback } from 'react';\n\nimport { useHasIntersected } from '../common/hooks';\n\nexport interface ImageProps {\n alt: string;\n src: string;\n id?: string;\n onLoad?: () => void;\n onError?: () => void;\n className?: string;\n loading?: 'lazy' | 'eager';\n stretch?: boolean;\n role?: string;\n shrink?: boolean;\n}\n\nconst Image = ({\n id,\n src,\n alt,\n onLoad,\n onError,\n className,\n loading,\n stretch = true,\n role,\n shrink = true,\n}: ImageProps) => {\n const elementReference = useRef<HTMLImageElement>(null);\n const [hasIntersected] = useHasIntersected({ elRef: elementReference, loading });\n\n // Internal onLoad handler that calls user onLoad only if hasIntersected is true\n const handleLoad = useCallback(() => {\n if (hasIntersected && onLoad) {\n onLoad();\n }\n }, [hasIntersected, onLoad]);\n\n return (\n <img\n ref={elementReference}\n id={id}\n alt={alt}\n src={src}\n loading={loading}\n className={clsx([\n 'tw-image',\n {\n 'tw-image__stretch': stretch,\n 'tw-image__shrink': shrink,\n },\n className,\n ])}\n role={role}\n onLoad={handleLoad}\n onError={onError}\n />\n );\n};\n\nexport default Image;\n"],"names":["Image","id","src","alt","onLoad","onError","className","loading","stretch","role","shrink","elementReference","useRef","hasIntersected","useHasIntersected","elRef","handleLoad","useCallback","_jsx","ref","clsx"],"mappings":";;;;;;;;AAkBMA,MAAAA,KAAK,GAAGA,CAAC;EACbC,EAAE;EACFC,GAAG;EACHC,GAAG;EACHC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,OAAO;AACPC,EAAAA,OAAO,GAAG,IAAI;EACdC,IAAI;AACJC,EAAAA,MAAM,GAAG;AAAI,CACF,KAAI;AACf,EAAA,MAAMC,gBAAgB,GAAGC,MAAM,CAAmB,IAAI,CAAC;AACvD,EAAA,MAAM,CAACC,cAAc,CAAC,GAAGC,iBAAiB,CAAC;AAAEC,IAAAA,KAAK,EAAEJ,gBAAgB;AAAEJ,IAAAA;AAAO,GAAE,CAAC;AAEhF;AACA,EAAA,MAAMS,UAAU,GAAGC,WAAW,CAAC,MAAK;IAClC,IAAIJ,cAAc,IAAIT,MAAM,EAAE;AAC5BA,MAAAA,MAAM,EAAE;AACV;AACF,GAAC,EAAE,CAACS,cAAc,EAAET,MAAM,CAAC,CAAC;AAE5B,EAAA,oBACEc,GAAA,CAAA,KAAA,EAAA;AACEC,IAAAA,GAAG,EAAER,gBAAiB;AACtBV,IAAAA,EAAE,EAAEA,EAAG;AACPE,IAAAA,GAAG,EAAEA,GAAI;AACTD,IAAAA,GAAG,EAAEA,GAAI;AACTK,IAAAA,OAAO,EAAEA,OAAQ;AACjBD,IAAAA,SAAS,EAAEc,IAAI,CAAC,CACd,UAAU,EACV;AACE,MAAA,mBAAmB,EAAEZ,OAAO;AAC5B,MAAA,kBAAkB,EAAEE;KACrB,EACDJ,SAAS,CACV,CAAE;AACHG,IAAAA,IAAI,EAAEA,IAAK;AACXL,IAAAA,MAAM,EAAEY,UAAW;AACnBX,IAAAA,OAAO,EAAEA;AAAQ,GACjB,CAAA;AAEN;;;;"}