@transferwise/components 46.22.1 → 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 (64) hide show
  1. package/build/i18n/zh-HK.json +2 -2
  2. package/build/index.esm.js +5 -6
  3. package/build/index.esm.js.map +1 -1
  4. package/build/index.js +5 -6
  5. package/build/index.js.map +1 -1
  6. package/build/types/actionOption/ActionOption.d.ts +3 -3
  7. package/build/types/actionOption/ActionOption.d.ts.map +1 -1
  8. package/build/types/actionOption/index.d.ts +1 -0
  9. package/build/types/actionOption/index.d.ts.map +1 -1
  10. package/build/types/badge/Badge.d.ts +2 -2
  11. package/build/types/badge/Badge.d.ts.map +1 -1
  12. package/build/types/index.d.ts +8 -0
  13. package/build/types/index.d.ts.map +1 -1
  14. package/build/types/progress/Progress.d.ts +1 -1
  15. package/build/types/progress/Progress.d.ts.map +1 -1
  16. package/build/types/progress/index.d.ts +1 -0
  17. package/build/types/progress/index.d.ts.map +1 -1
  18. package/build/types/progressBar/index.d.ts +1 -0
  19. package/build/types/progressBar/index.d.ts.map +1 -1
  20. package/build/types/statusIcon/StatusIcon.d.ts +3 -3
  21. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  22. package/build/types/statusIcon/index.d.ts +2 -1
  23. package/build/types/statusIcon/index.d.ts.map +1 -1
  24. package/build/types/switch/Switch.d.ts +3 -3
  25. package/build/types/switch/Switch.d.ts.map +1 -1
  26. package/build/types/switch/index.d.ts +1 -0
  27. package/build/types/switch/index.d.ts.map +1 -1
  28. package/build/types/switchOption/SwitchOption.d.ts +3 -3
  29. package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
  30. package/build/types/switchOption/index.d.ts +1 -0
  31. package/build/types/switchOption/index.d.ts.map +1 -1
  32. package/build/types/tooltip/Tooltip.d.ts +3 -3
  33. package/build/types/tooltip/Tooltip.d.ts.map +1 -1
  34. package/build/types/tooltip/index.d.ts +2 -2
  35. package/build/types/tooltip/index.d.ts.map +1 -1
  36. package/package.json +3 -3
  37. package/src/actionOption/{ActionOption.spec.js → ActionOption.spec.tsx} +2 -2
  38. package/src/actionOption/ActionOption.tsx +3 -3
  39. package/src/actionOption/index.ts +1 -0
  40. package/src/badge/{Badge.story.js → Badge.story.tsx} +1 -1
  41. package/src/badge/Badge.tsx +2 -2
  42. package/src/i18n/zh-HK.json +2 -2
  43. package/src/index.ts +8 -0
  44. package/src/progress/{Progress.spec.js → Progress.spec.tsx} +4 -3
  45. package/src/progress/Progress.tsx +1 -1
  46. package/src/progress/index.ts +1 -0
  47. package/src/progressBar/index.ts +1 -0
  48. package/src/statusIcon/StatusIcon.spec.tsx +80 -0
  49. package/src/statusIcon/StatusIcon.tsx +3 -4
  50. package/src/statusIcon/index.ts +2 -0
  51. package/src/switch/Switch.tsx +3 -3
  52. package/src/switch/index.ts +1 -0
  53. package/src/switchOption/{SwitchOption.spec.js → SwitchOption.spec.tsx} +8 -3
  54. package/src/switchOption/SwitchOption.tsx +3 -3
  55. package/src/switchOption/index.ts +1 -0
  56. package/src/tooltip/Tooltip.tsx +2 -2
  57. package/src/tooltip/index.ts +2 -0
  58. package/src/statusIcon/StatusIcon.spec.js +0 -70
  59. package/src/statusIcon/index.js +0 -1
  60. package/src/tooltip/index.js +0 -3
  61. /package/src/badge/{Badge.spec.js → Badge.spec.tsx} +0 -0
  62. /package/src/progressBar/{ProgressBar.spec.js → ProgressBar.spec.tsx} +0 -0
  63. /package/src/switch/{Switch.spec.js → Switch.spec.tsx} +0 -0
  64. /package/src/switch/__snapshots__/{Switch.spec.js.snap → Switch.spec.tsx.snap} +0 -0
@@ -29,13 +29,13 @@
29
29
  "neptune.Upload.csButtonText": "上載另一個檔案?",
30
30
  "neptune.Upload.csFailureText": "上載失敗,請重試。",
31
31
  "neptune.Upload.csSuccessText": "上載完成!",
32
- "neptune.Upload.csTooLargeMessage": "請提供小於{maxSize}MB的檔案",
32
+ "neptune.Upload.csTooLargeMessage": "請提供一個小於{maxSize}MB的檔案",
33
33
  "neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
34
34
  "neptune.Upload.psButtonText": "取消",
35
35
  "neptune.Upload.psProcessingText": "上載中...",
36
36
  "neptune.Upload.usButtonText": "或者選擇一個檔案",
37
37
  "neptune.Upload.usDropMessage": "拖放檔案以開始上載",
38
- "neptune.Upload.usPlaceholder": "拖放不超過{maxSize}MB的檔案",
38
+ "neptune.Upload.usPlaceholder": "拖放一個不超過{maxSize}MB的檔案",
39
39
  "neptune.UploadButton.allFileTypes": "所有檔案類型",
40
40
  "neptune.UploadButton.dropFiles": "拖放檔案以開始上載",
41
41
  "neptune.UploadButton.instructions": "{fileTypes},小於{size}MB",
@@ -778,7 +778,7 @@ const Link = ({
778
778
 
779
779
  const StatusIcon = ({
780
780
  sentiment = Sentiment.NEUTRAL,
781
- size
781
+ size = Size.MEDIUM
782
782
  }) => {
783
783
  const iconTypeMap = {
784
784
  [Sentiment.POSITIVE]: Check,
@@ -5339,7 +5339,6 @@ const Tooltip = ({
5339
5339
  })
5340
5340
  });
5341
5341
  };
5342
- var Tooltip$1 = Tooltip;
5343
5342
 
5344
5343
  function supportsTouchEvents() {
5345
5344
  const onTouchStartIsDefined = typeof window !== 'undefined' && window.ontouchstart !== undefined;
@@ -5400,7 +5399,7 @@ const Stepper = ({
5400
5399
  } : {
5401
5400
  left: `${index * stepPercentage * 100}%`
5402
5401
  },
5403
- children: step.hoverLabel && !isTouchDevice() ? /*#__PURE__*/jsx(Tooltip$1, {
5402
+ children: step.hoverLabel && !isTouchDevice() ? /*#__PURE__*/jsx(Tooltip, {
5404
5403
  position: Position.BOTTOM,
5405
5404
  label: step.hoverLabel,
5406
5405
  children: labelButton
@@ -15012,13 +15011,13 @@ var zhHK = {
15012
15011
  "neptune.Upload.csButtonText": "上載另一個檔案?",
15013
15012
  "neptune.Upload.csFailureText": "上載失敗,請重試。",
15014
15013
  "neptune.Upload.csSuccessText": "上載完成!",
15015
- "neptune.Upload.csTooLargeMessage": "請提供小於{maxSize}MB的檔案",
15014
+ "neptune.Upload.csTooLargeMessage": "請提供一個小於{maxSize}MB的檔案",
15016
15015
  "neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
15017
15016
  "neptune.Upload.psButtonText": "取消",
15018
15017
  "neptune.Upload.psProcessingText": "上載中...",
15019
15018
  "neptune.Upload.usButtonText": "或者選擇一個檔案",
15020
15019
  "neptune.Upload.usDropMessage": "拖放檔案以開始上載",
15021
- "neptune.Upload.usPlaceholder": "拖放不超過{maxSize}MB的檔案",
15020
+ "neptune.Upload.usPlaceholder": "拖放一個不超過{maxSize}MB的檔案",
15022
15021
  "neptune.UploadButton.allFileTypes": "所有檔案類型",
15023
15022
  "neptune.UploadButton.dropFiles": "拖放檔案以開始上載",
15024
15023
  "neptune.UploadButton.instructions": "{fileTypes},小於{size}MB",
@@ -15060,5 +15059,5 @@ const translations = {
15060
15059
  'zh-HK': zhHK
15061
15060
  };
15062
15061
 
15063
- export { Accordion, ActionButton, ActionOption, Alert$1 as Alert, ArrowPosition as AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card as BaseCard, Body, BottomSheet$2 as BottomSheet, Breakpoint, Button, Card$2 as Card, Checkbox$1 as Checkbox, CheckboxButton$1 as CheckboxButton, CheckboxOption, Chevron, Chip, Chips, CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput, DateLookup$1 as DateLookup, DateMode, Decision, DecisionPresentation, DecisionType, DefinitionList$1 as DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer$1 as Drawer, DropFade, DynamicFieldDefinitionList$1 as DynamicFieldDefinitionList, Emphasis, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat, InstructionsList, LanguageProvider, Layout, Link, ListItem$1 as ListItem, Loader$1 as Loader, Logo$1 as Logo, LogoType, Markdown, MarkdownNodeType, Modal, Money$1 as Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList$1 as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader$1 as OverlayHeader, PhoneNumberInput, Popover$1 as Popover, Position, Priority, ProcessIndicator$1 as ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCard$1 as PromoCardGroup, Provider$1 as Provider, RTL_LANGUAGES, Radio, RadioGroup, RadioOption, SUPPORTED_LANGUAGES, Scroll, SearchInput, Section, SegmentedControl, Select, SelectInput, SelectInputOptionContent, SelectInputTriggerButton, Sentiment, Size, SlidingPanel, SnackbarConsumer, SnackbarContext, SnackbarPortal, SnackbarProvider, Status, StatusIcon, Stepper, Sticky, Summary, Switch, SwitchOption, Tabs$1 as Tabs, TextArea, TextareaWithDisplayFormat, Theme, Title, Tooltip$1 as Tooltip, Type, Typeahead, Typography, Upload$1 as Upload, UploadInput, UploadStep, Variant, Width, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale, isBrowser, isServerSide, translations, useDirection, useLayout, useScreenSize, useSnackbar };
15062
+ export { Accordion, ActionButton, ActionOption, Alert$1 as Alert, ArrowPosition as AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card as BaseCard, Body, BottomSheet$2 as BottomSheet, Breakpoint, Button, Card$2 as Card, Checkbox$1 as Checkbox, CheckboxButton$1 as CheckboxButton, CheckboxOption, Chevron, Chip, Chips, CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput, DateLookup$1 as DateLookup, DateMode, Decision, DecisionPresentation, DecisionType, DefinitionList$1 as DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer$1 as Drawer, DropFade, DynamicFieldDefinitionList$1 as DynamicFieldDefinitionList, Emphasis, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat, InstructionsList, LanguageProvider, Layout, Link, ListItem$1 as ListItem, Loader$1 as Loader, Logo$1 as Logo, LogoType, Markdown, MarkdownNodeType, Modal, Money$1 as Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList$1 as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader$1 as OverlayHeader, PhoneNumberInput, Popover$1 as Popover, Position, Priority, ProcessIndicator$1 as ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCard$1 as PromoCardGroup, Provider$1 as Provider, RTL_LANGUAGES, Radio, RadioGroup, RadioOption, SUPPORTED_LANGUAGES, Scroll, SearchInput, Section, SegmentedControl, Select, SelectInput, SelectInputOptionContent, SelectInputTriggerButton, Sentiment, Size, SlidingPanel, SnackbarConsumer, SnackbarContext, SnackbarPortal, SnackbarProvider, Status, StatusIcon, Stepper, Sticky, Summary, Switch, SwitchOption, Tabs$1 as Tabs, TextArea, TextareaWithDisplayFormat, Theme, Title, Tooltip, Type, Typeahead, Typography, Upload$1 as Upload, UploadInput, UploadStep, Variant, Width, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale, isBrowser, isServerSide, translations, useDirection, useLayout, useScreenSize, useSnackbar };
15064
15063
  //# sourceMappingURL=index.esm.js.map