@transferwise/components 46.22.0 → 46.23.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 (68) hide show
  1. package/build/i18n/th.json +9 -9
  2. package/build/i18n/zh-HK.json +2 -2
  3. package/build/index.esm.js +15 -16
  4. package/build/index.esm.js.map +1 -1
  5. package/build/index.js +15 -16
  6. package/build/index.js.map +1 -1
  7. package/build/types/actionOption/ActionOption.d.ts +3 -3
  8. package/build/types/actionOption/ActionOption.d.ts.map +1 -1
  9. package/build/types/actionOption/index.d.ts +1 -0
  10. package/build/types/actionOption/index.d.ts.map +1 -1
  11. package/build/types/badge/Badge.d.ts +2 -2
  12. package/build/types/badge/Badge.d.ts.map +1 -1
  13. package/build/types/index.d.ts +8 -0
  14. package/build/types/index.d.ts.map +1 -1
  15. package/build/types/inputs/SelectInput.d.ts.map +1 -1
  16. package/build/types/progress/Progress.d.ts +1 -1
  17. package/build/types/progress/Progress.d.ts.map +1 -1
  18. package/build/types/progress/index.d.ts +1 -0
  19. package/build/types/progress/index.d.ts.map +1 -1
  20. package/build/types/progressBar/index.d.ts +1 -0
  21. package/build/types/progressBar/index.d.ts.map +1 -1
  22. package/build/types/statusIcon/StatusIcon.d.ts +3 -3
  23. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  24. package/build/types/statusIcon/index.d.ts +2 -1
  25. package/build/types/statusIcon/index.d.ts.map +1 -1
  26. package/build/types/switch/Switch.d.ts +3 -3
  27. package/build/types/switch/Switch.d.ts.map +1 -1
  28. package/build/types/switch/index.d.ts +1 -0
  29. package/build/types/switch/index.d.ts.map +1 -1
  30. package/build/types/switchOption/SwitchOption.d.ts +3 -3
  31. package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
  32. package/build/types/switchOption/index.d.ts +1 -0
  33. package/build/types/switchOption/index.d.ts.map +1 -1
  34. package/build/types/tooltip/Tooltip.d.ts +3 -3
  35. package/build/types/tooltip/Tooltip.d.ts.map +1 -1
  36. package/build/types/tooltip/index.d.ts +2 -2
  37. package/build/types/tooltip/index.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/src/actionOption/{ActionOption.spec.js → ActionOption.spec.tsx} +2 -2
  40. package/src/actionOption/ActionOption.tsx +3 -3
  41. package/src/actionOption/index.ts +1 -0
  42. package/src/badge/{Badge.story.js → Badge.story.tsx} +1 -1
  43. package/src/badge/Badge.tsx +2 -2
  44. package/src/i18n/th.json +9 -9
  45. package/src/i18n/zh-HK.json +2 -2
  46. package/src/index.ts +8 -0
  47. package/src/inputs/SelectInput.tsx +1 -0
  48. package/src/progress/{Progress.spec.js → Progress.spec.tsx} +4 -3
  49. package/src/progress/Progress.tsx +1 -1
  50. package/src/progress/index.ts +1 -0
  51. package/src/progressBar/index.ts +1 -0
  52. package/src/statusIcon/StatusIcon.spec.tsx +80 -0
  53. package/src/statusIcon/StatusIcon.tsx +3 -4
  54. package/src/statusIcon/index.ts +2 -0
  55. package/src/switch/Switch.tsx +3 -3
  56. package/src/switch/index.ts +1 -0
  57. package/src/switchOption/{SwitchOption.spec.js → SwitchOption.spec.tsx} +8 -3
  58. package/src/switchOption/SwitchOption.tsx +3 -3
  59. package/src/switchOption/index.ts +1 -0
  60. package/src/tooltip/Tooltip.tsx +2 -2
  61. package/src/tooltip/index.ts +2 -0
  62. package/src/statusIcon/StatusIcon.spec.js +0 -70
  63. package/src/statusIcon/index.js +0 -1
  64. package/src/tooltip/index.js +0 -3
  65. /package/src/badge/{Badge.spec.js → Badge.spec.tsx} +0 -0
  66. /package/src/progressBar/{ProgressBar.spec.js → ProgressBar.spec.tsx} +0 -0
  67. /package/src/switch/{Switch.spec.js → Switch.spec.tsx} +0 -0
  68. /package/src/switch/__snapshots__/{Switch.spec.js.snap → Switch.spec.tsx.snap} +0 -0
package/build/index.js CHANGED
@@ -811,7 +811,7 @@ const Link = ({
811
811
 
812
812
  const StatusIcon = ({
813
813
  sentiment = exports.Sentiment.NEUTRAL,
814
- size
814
+ size = exports.Size.MEDIUM
815
815
  }) => {
816
816
  const iconTypeMap = {
817
817
  [exports.Sentiment.POSITIVE]: icons.Check,
@@ -5372,7 +5372,6 @@ const Tooltip = ({
5372
5372
  })
5373
5373
  });
5374
5374
  };
5375
- var Tooltip$1 = Tooltip;
5376
5375
 
5377
5376
  function supportsTouchEvents() {
5378
5377
  const onTouchStartIsDefined = typeof window !== 'undefined' && window.ontouchstart !== undefined;
@@ -5433,7 +5432,7 @@ const Stepper = ({
5433
5432
  } : {
5434
5433
  left: `${index * stepPercentage * 100}%`
5435
5434
  },
5436
- children: step.hoverLabel && !isTouchDevice() ? /*#__PURE__*/jsxRuntime.jsx(Tooltip$1, {
5435
+ children: step.hoverLabel && !isTouchDevice() ? /*#__PURE__*/jsxRuntime.jsx(Tooltip, {
5437
5436
  position: exports.Position.BOTTOM,
5438
5437
  label: step.hoverLabel,
5439
5438
  children: labelButton
@@ -6591,7 +6590,7 @@ function SelectInput({
6591
6590
  children: renderTrigger({
6592
6591
  content: !placeholderShown ? /*#__PURE__*/jsxRuntime.jsx(SelectInputOptionContentWithinTriggerContext.Provider, {
6593
6592
  value: true,
6594
- children: multiple && Array.isArray(value) ? value.map(option => renderValue(option, true)).join(', ') : renderValue(value, true)
6593
+ children: multiple && Array.isArray(value) ? value.map(option => renderValue(option, true)).filter(node => node != null).join(', ') : renderValue(value, true)
6595
6594
  }) : placeholder,
6596
6595
  placeholderShown,
6597
6596
  clear: onClear != null ? () => {
@@ -14785,8 +14784,8 @@ var ru = {
14785
14784
 
14786
14785
  var th = {
14787
14786
  "neptune.Button.loadingAriaLabel": "กำลังโหลด",
14788
- "neptune.Chips.ariaLabel": "เคลียร์ {choice}",
14789
- "neptune.ClearButton.ariaLabel": "ชัดเจน",
14787
+ "neptune.Chips.ariaLabel": "ล้าง {choice}",
14788
+ "neptune.ClearButton.ariaLabel": "ล้าง",
14790
14789
  "neptune.CloseButton.ariaLabel": "ปิด",
14791
14790
  "neptune.DateInput.day.label": "วัน",
14792
14791
  "neptune.DateInput.day.placeholder": "DD",
@@ -14811,32 +14810,32 @@ var th = {
14811
14810
  "neptune.Summary.statusDone": "รายการที่ทำแล้ว",
14812
14811
  "neptune.Summary.statusNotDone": "รายการที่ต้องทำ",
14813
14812
  "neptune.Summary.statusPending": "รายการที่รอดำเนินการ",
14814
- "neptune.Upload.csButtonText": "อัพโหลดไฟล์อื่นหรือไม่",
14813
+ "neptune.Upload.csButtonText": "อัปโหลดไฟล์อื่นหรือไม่",
14815
14814
  "neptune.Upload.csFailureText": "การอัปโหลดล้มเหลว กรุณาลองอีกครั้ง",
14816
- "neptune.Upload.csSuccessText": "อัปโหลดเสร็จสมบูรณ์!",
14817
- "neptune.Upload.csTooLargeMessage": "กรุณาใช้ไฟล์ที่มีขนาดเล็กกว่า {maxSize}MB",
14815
+ "neptune.Upload.csSuccessText": "อัปโหลดเรียบร้อย!",
14816
+ "neptune.Upload.csTooLargeMessage": "กรุณาใช้ไฟล์ที่มีขนาดเล็กกว่า {maxSize} MB",
14818
14817
  "neptune.Upload.csWrongTypeMessage": "ไม่รองรับประเภทไฟล์ โปรดลองอีกครั้งโดยใช้ไฟล์อื่น",
14819
14818
  "neptune.Upload.psButtonText": "ยกเลิก",
14820
14819
  "neptune.Upload.psProcessingText": "กำลังอัปโหลด...",
14821
14820
  "neptune.Upload.usButtonText": "หรือเลือกไฟล์",
14822
14821
  "neptune.Upload.usDropMessage": "วางไฟล์เพื่อเริ่มการอัปโหลด",
14823
- "neptune.Upload.usPlaceholder": "ลากและวางไฟล์ที่มีขนาดไม่เกิน {maxSize}MB",
14822
+ "neptune.Upload.usPlaceholder": "ลากและวางไฟล์ที่น้อยกว่า {maxSize} MB",
14824
14823
  "neptune.UploadButton.allFileTypes": "ไฟล์ทุกประเภท",
14825
14824
  "neptune.UploadButton.dropFiles": "วางไฟล์เพื่อเริ่มการอัปโหลด",
14826
- "neptune.UploadButton.instructions": "{fileTypes} น้อยกว่า {size}MB",
14825
+ "neptune.UploadButton.instructions": "{fileTypes} น้อยกว่า {size} MB",
14827
14826
  "neptune.UploadButton.uploadFile": "อัปโหลดไฟล์",
14828
14827
  "neptune.UploadButton.uploadFiles": "อัปโหลดไฟล์",
14829
14828
  "neptune.UploadInput.deleteModalBody": "การลบไฟล์นี้จะลบออกจากระบบของเรา",
14830
14829
  "neptune.UploadInput.deleteModalCancelButtonText": "ยกเลิก",
14831
14830
  "neptune.UploadInput.deleteModalConfirmButtonText": "ลบ",
14832
- "neptune.UploadInput.deleteModalTitle": "แน่ใจว่าต้องการลบไฟล์นี้หรือไม่",
14831
+ "neptune.UploadInput.deleteModalTitle": "แน่ใจหรือไม่ว่าต้องการลบไฟล์นี้",
14833
14832
  "neptune.UploadInput.fileIsTooLarge": "ไฟล์ใหญ่เกินไป",
14834
14833
  "neptune.UploadInput.fileTypeNotSupported": "ไม่รองรับประเภทไฟล์",
14835
14834
  "neptune.UploadInput.maximumFilesAlreadyUploaded": "ขออภัย การอัปโหลดนี้ไม่สำเร็จเนื่องจากเรายอมรับได้แค่ครั้งละ {maxFilesAllowed} ไฟล์",
14836
14835
  "neptune.UploadItem.deleting": "กำลังลบ...",
14837
14836
  "neptune.UploadItem.removeFile": "ลบไฟล์ {filename}",
14838
14837
  "neptune.UploadItem.uploaded": "อัปโหลดแล้ว",
14839
- "neptune.UploadItem.uploadedFile": "อัปโหลดไฟล์แล้ว",
14838
+ "neptune.UploadItem.uploadedFile": "ไฟล์ที่อัปโหลด",
14840
14839
  "neptune.UploadItem.uploading": "กำลังอัปโหลด...",
14841
14840
  "neptune.UploadItem.uploadingFailed": "อัปโหลดไม่สำเร็จ"
14842
14841
  };
@@ -15045,13 +15044,13 @@ var zhHK = {
15045
15044
  "neptune.Upload.csButtonText": "上載另一個檔案?",
15046
15045
  "neptune.Upload.csFailureText": "上載失敗,請重試。",
15047
15046
  "neptune.Upload.csSuccessText": "上載完成!",
15048
- "neptune.Upload.csTooLargeMessage": "請提供小於{maxSize}MB的檔案",
15047
+ "neptune.Upload.csTooLargeMessage": "請提供一個小於{maxSize}MB的檔案",
15049
15048
  "neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
15050
15049
  "neptune.Upload.psButtonText": "取消",
15051
15050
  "neptune.Upload.psProcessingText": "上載中...",
15052
15051
  "neptune.Upload.usButtonText": "或者選擇一個檔案",
15053
15052
  "neptune.Upload.usDropMessage": "拖放檔案以開始上載",
15054
- "neptune.Upload.usPlaceholder": "拖放不超過{maxSize}MB的檔案",
15053
+ "neptune.Upload.usPlaceholder": "拖放一個不超過{maxSize}MB的檔案",
15055
15054
  "neptune.UploadButton.allFileTypes": "所有檔案類型",
15056
15055
  "neptune.UploadButton.dropFiles": "拖放檔案以開始上載",
15057
15056
  "neptune.UploadButton.instructions": "{fileTypes},小於{size}MB",
@@ -15184,7 +15183,7 @@ exports.Tabs = Tabs$1;
15184
15183
  exports.TextArea = TextArea;
15185
15184
  exports.TextareaWithDisplayFormat = TextareaWithDisplayFormat;
15186
15185
  exports.Title = Title;
15187
- exports.Tooltip = Tooltip$1;
15186
+ exports.Tooltip = Tooltip;
15188
15187
  exports.Typeahead = Typeahead;
15189
15188
  exports.Upload = Upload$1;
15190
15189
  exports.UploadInput = UploadInput;