@transferwise/components 40.8.0 → 40.8.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 (81) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/build/es/no-polyfill/dimmer/dimmerManager/DimmerManager.js +2 -2
  3. package/build/es/no-polyfill/emphasis/EmphasisHtmlTransformer.js +1 -1
  4. package/build/es/no-polyfill/navigationOption/NavigationOption.js +1 -1
  5. package/build/es/no-polyfill/provider/Provider.spec.js +1 -1
  6. package/build/es/no-polyfill/upload/Upload.js +1 -1
  7. package/build/es/polyfill/dimmer/dimmerManager/DimmerManager.js +2 -2
  8. package/build/es/polyfill/emphasis/EmphasisHtmlTransformer.js +1 -1
  9. package/build/es/polyfill/navigationOption/NavigationOption.js +1 -1
  10. package/build/es/polyfill/provider/Provider.spec.js +1 -1
  11. package/build/es/polyfill/upload/Upload.js +1 -1
  12. package/build/main.css +1 -1
  13. package/build/styles/accordion/Accordion.css +1 -1
  14. package/build/styles/actionButton/ActionButton.css +1 -1
  15. package/build/styles/avatar/Avatar.css +1 -1
  16. package/build/styles/badge/Badge.css +1 -1
  17. package/build/styles/button/Button.css +1 -1
  18. package/build/styles/card/Card.css +1 -1
  19. package/build/styles/checkboxButton/CheckboxButton.css +1 -1
  20. package/build/styles/chips/Chip.css +1 -1
  21. package/build/styles/circularButton/CircularButton.css +1 -1
  22. package/build/styles/common/Option/Option.css +1 -1
  23. package/build/styles/common/RadioButton/RadioButton.css +1 -1
  24. package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
  25. package/build/styles/common/closeButton/CloseButton.css +1 -1
  26. package/build/styles/common/panel/Panel.css +1 -1
  27. package/build/styles/dateLookup/DateLookup.css +1 -1
  28. package/build/styles/dateLookup/dateTrigger/DateTrigger.css +1 -1
  29. package/build/styles/decision/Decision.css +1 -1
  30. package/build/styles/definitionList/DefinitionList.css +1 -1
  31. package/build/styles/dimmer/Dimmer.css +1 -1
  32. package/build/styles/drawer/Drawer.css +1 -1
  33. package/build/styles/dropFade/DropFade.css +1 -1
  34. package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +1 -1
  35. package/build/styles/emphasis/Emphasis.css +1 -1
  36. package/build/styles/flowNavigation/FlowNavigation.css +1 -1
  37. package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +1 -1
  38. package/build/styles/header/Header.css +1 -1
  39. package/build/styles/image/Image.css +1 -1
  40. package/build/styles/info/Info.css +1 -1
  41. package/build/styles/lab/mobileNav/MobileNav.css +1 -1
  42. package/build/styles/lab/pagination/Pagination.css +1 -1
  43. package/build/styles/link/Link.css +1 -1
  44. package/build/styles/loader/Loader.css +1 -1
  45. package/build/styles/main.css +1 -1
  46. package/build/styles/modal/Modal.css +1 -1
  47. package/build/styles/moneyInput/MoneyInput.css +1 -1
  48. package/build/styles/navigationOption/NavigationOption.css +1 -1
  49. package/build/styles/navigationOptionsList/NavigationOptionsList.css +1 -1
  50. package/build/styles/nudge/Nudge.css +1 -1
  51. package/build/styles/overlayHeader/OverlayHeader.css +1 -1
  52. package/build/styles/phoneNumberInput/PhoneNumberInput.css +1 -1
  53. package/build/styles/popover/Popover.css +1 -1
  54. package/build/styles/progress/Progress.css +1 -1
  55. package/build/styles/progressBar/ProgressBar.css +1 -1
  56. package/build/styles/section/Section.css +1 -1
  57. package/build/styles/slidingPanel/SlidingPanel.css +1 -1
  58. package/build/styles/snackbar/Snackbar.css +1 -1
  59. package/build/styles/stepper/Stepper.css +1 -1
  60. package/build/styles/summary/Summary.css +1 -1
  61. package/build/styles/switch/Switch.css +1 -1
  62. package/build/styles/tabs/Tabs.css +1 -1
  63. package/build/styles/tile/Tile.css +1 -1
  64. package/build/styles/tooltip/Tooltip.css +1 -1
  65. package/build/styles/typeahead/Typeahead.css +1 -1
  66. package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +1 -1
  67. package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -1
  68. package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -1
  69. package/build/types/common/historyNavigator/historyNavigator.d.ts +2 -2
  70. package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts +1 -1
  71. package/build/types/dateLookup/tableLink/TableLink.d.ts +1 -0
  72. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +1 -0
  73. package/build/types/modal/Modal.story.d.ts +1 -1
  74. package/build/types/tooltip/Tooltip.story.d.ts +1 -1
  75. package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts +6 -0
  76. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +1 -0
  77. package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts +2 -2
  78. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +9 -0
  79. package/build/umd/no-polyfill/main.js +1 -1
  80. package/build/umd/polyfill/main.js +1 -1
  81. package/package.json +7 -12
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  component: ({ position, children, label, className, }: {
4
- position?: "left" | "right" | "bottom" | "top" | undefined;
4
+ position?: "top" | "bottom" | "left" | "right" | undefined;
5
5
  label: import("react").ReactNode;
6
6
  } & {
7
7
  children?: import("react").ReactNode;
@@ -1,8 +1,14 @@
1
1
  declare class TypeaheadInput extends Component<any, any, any> {
2
2
  constructor();
3
+ state: {
4
+ inputWidth: number;
5
+ };
6
+ componentDidMount(): void;
7
+ componentDidUpdate(previousProps: any): void;
3
8
  recalculateWidth: () => void;
4
9
  renderInput: () => JSX.Element;
5
10
  inputRef: HTMLInputElement | null | undefined;
11
+ render(): JSX.Element;
6
12
  sizerRef: HTMLDivElement | null | undefined;
7
13
  }
8
14
  declare namespace TypeaheadInput {
@@ -4,6 +4,7 @@ declare class UploadImageStep extends PureComponent<any, any, any> {
4
4
  uploadInputRef: import("react").RefObject<any>;
5
5
  onManualUpload: () => void;
6
6
  getImage: () => any;
7
+ render(): JSX.Element;
7
8
  }
8
9
  declare namespace UploadImageStep {
9
10
  namespace propTypes {
@@ -2,6 +2,6 @@ export default deprecated;
2
2
  declare function deprecated(validator: any, { component, message, newProp: newProperty, expiryDate }: {
3
3
  component: any;
4
4
  message?: string | undefined;
5
- newProp?: any;
6
- expiryDate?: any;
5
+ newProp?: null | undefined;
6
+ expiryDate?: null | undefined;
7
7
  }): (props: any, propertyName: any, ...rest: any[]) => any;
@@ -8,6 +8,13 @@ declare class WithDisplayFormat extends Component<any, any, any> {
8
8
  pastedLength: number;
9
9
  } | null;
10
10
  constructor(props: any);
11
+ state: {
12
+ value: any;
13
+ historyNavigator: HistoryNavigator;
14
+ prevDisplayPattern: any;
15
+ triggerType: null;
16
+ triggerEvent: null;
17
+ };
11
18
  getUserAction: (unformattedValue: any) => any;
12
19
  resetEvent: () => void;
13
20
  detectUndoRedo: (event: any) => "Redo" | "Undo" | null;
@@ -20,6 +27,7 @@ declare class WithDisplayFormat extends Component<any, any, any> {
20
27
  handleOnFocus: (event: any) => void;
21
28
  handleDelete: (unformattedValue: any, action: any) => string;
22
29
  handleCursorPositioning: (action: any) => void;
30
+ render(): any;
23
31
  }
24
32
  declare namespace WithDisplayFormat {
25
33
  namespace propTypes {
@@ -78,4 +86,5 @@ declare namespace WithDisplayFormat {
78
86
  }
79
87
  }
80
88
  import { Component } from "react";
89
+ import { HistoryNavigator } from "../common";
81
90
  import PropTypes from "prop-types";