@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.
- package/CHANGELOG.md +13 -0
- package/build/es/no-polyfill/dimmer/dimmerManager/DimmerManager.js +2 -2
- package/build/es/no-polyfill/emphasis/EmphasisHtmlTransformer.js +1 -1
- package/build/es/no-polyfill/navigationOption/NavigationOption.js +1 -1
- package/build/es/no-polyfill/provider/Provider.spec.js +1 -1
- package/build/es/no-polyfill/upload/Upload.js +1 -1
- package/build/es/polyfill/dimmer/dimmerManager/DimmerManager.js +2 -2
- package/build/es/polyfill/emphasis/EmphasisHtmlTransformer.js +1 -1
- package/build/es/polyfill/navigationOption/NavigationOption.js +1 -1
- package/build/es/polyfill/provider/Provider.spec.js +1 -1
- package/build/es/polyfill/upload/Upload.js +1 -1
- package/build/main.css +1 -1
- package/build/styles/accordion/Accordion.css +1 -1
- package/build/styles/actionButton/ActionButton.css +1 -1
- package/build/styles/avatar/Avatar.css +1 -1
- package/build/styles/badge/Badge.css +1 -1
- package/build/styles/button/Button.css +1 -1
- package/build/styles/card/Card.css +1 -1
- package/build/styles/checkboxButton/CheckboxButton.css +1 -1
- package/build/styles/chips/Chip.css +1 -1
- package/build/styles/circularButton/CircularButton.css +1 -1
- package/build/styles/common/Option/Option.css +1 -1
- package/build/styles/common/RadioButton/RadioButton.css +1 -1
- package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
- package/build/styles/common/closeButton/CloseButton.css +1 -1
- package/build/styles/common/panel/Panel.css +1 -1
- package/build/styles/dateLookup/DateLookup.css +1 -1
- package/build/styles/dateLookup/dateTrigger/DateTrigger.css +1 -1
- package/build/styles/decision/Decision.css +1 -1
- package/build/styles/definitionList/DefinitionList.css +1 -1
- package/build/styles/dimmer/Dimmer.css +1 -1
- package/build/styles/drawer/Drawer.css +1 -1
- package/build/styles/dropFade/DropFade.css +1 -1
- package/build/styles/dynamicFieldDefinitionList/FormattedValue/FormattedValue.css +1 -1
- package/build/styles/emphasis/Emphasis.css +1 -1
- package/build/styles/flowNavigation/FlowNavigation.css +1 -1
- package/build/styles/flowNavigation/animatedLabel/AnimatedLabel.css +1 -1
- package/build/styles/header/Header.css +1 -1
- package/build/styles/image/Image.css +1 -1
- package/build/styles/info/Info.css +1 -1
- package/build/styles/lab/mobileNav/MobileNav.css +1 -1
- package/build/styles/lab/pagination/Pagination.css +1 -1
- package/build/styles/link/Link.css +1 -1
- package/build/styles/loader/Loader.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/modal/Modal.css +1 -1
- package/build/styles/moneyInput/MoneyInput.css +1 -1
- package/build/styles/navigationOption/NavigationOption.css +1 -1
- package/build/styles/navigationOptionsList/NavigationOptionsList.css +1 -1
- package/build/styles/nudge/Nudge.css +1 -1
- package/build/styles/overlayHeader/OverlayHeader.css +1 -1
- package/build/styles/phoneNumberInput/PhoneNumberInput.css +1 -1
- package/build/styles/popover/Popover.css +1 -1
- package/build/styles/progress/Progress.css +1 -1
- package/build/styles/progressBar/ProgressBar.css +1 -1
- package/build/styles/section/Section.css +1 -1
- package/build/styles/slidingPanel/SlidingPanel.css +1 -1
- package/build/styles/snackbar/Snackbar.css +1 -1
- package/build/styles/stepper/Stepper.css +1 -1
- package/build/styles/summary/Summary.css +1 -1
- package/build/styles/switch/Switch.css +1 -1
- package/build/styles/tabs/Tabs.css +1 -1
- package/build/styles/tile/Tile.css +1 -1
- package/build/styles/tooltip/Tooltip.css +1 -1
- package/build/styles/typeahead/Typeahead.css +1 -1
- package/build/styles/typeahead/typeaheadOption/TypeaheadOption.css +1 -1
- package/build/styles/uploadInput/uploadButton/UploadButton.css +1 -1
- package/build/styles/uploadInput/uploadItem/UploadItem.css +1 -1
- package/build/types/common/historyNavigator/historyNavigator.d.ts +2 -2
- package/build/types/common/hooks/useConditionalListener/useConditionalListener.d.ts +1 -1
- package/build/types/dateLookup/tableLink/TableLink.d.ts +1 -0
- package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +1 -0
- package/build/types/modal/Modal.story.d.ts +1 -1
- package/build/types/tooltip/Tooltip.story.d.ts +1 -1
- package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts +6 -0
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +1 -0
- package/build/types/utilities/deprecatedProperty/deprecatedProperty.d.ts +2 -2
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +9 -0
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- 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?: "
|
|
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 {
|
|
@@ -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?:
|
|
6
|
-
expiryDate?:
|
|
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";
|