@transferwise/components 45.0.1 → 45.1.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/LICENSE.md +4 -4
- package/README.md +3 -0
- package/build/es/no-polyfill/actionButton/ActionButton.story.js +1 -1
- package/build/es/no-polyfill/actionOption/ActionOption.story.js +1 -1
- package/build/es/no-polyfill/alert/Alert.story.js +1 -0
- package/build/es/no-polyfill/avatar/Avatar.story.js +1 -0
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +1 -2
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.story.js +1 -0
- package/build/es/no-polyfill/button/Button.js +1 -1
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +1 -1
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.story.js +1 -1
- package/build/es/no-polyfill/chevron/Chevron.story.js +1 -0
- package/build/es/no-polyfill/chips/Chips.story.js +1 -1
- package/build/es/no-polyfill/common/bottomSheet/BottomSheet.js +1 -21
- package/build/es/no-polyfill/common/hooks/useHasIntersected/useHasIntersected.js +1 -2
- package/build/es/no-polyfill/common/requirements.js +1 -19
- package/build/es/no-polyfill/dateInput/DateInput.js +3 -9
- package/build/es/no-polyfill/dimmer/Dimmer.story.js +2 -1
- package/build/es/no-polyfill/index.js +1 -1
- package/build/es/no-polyfill/inputs/Input.js +1 -0
- package/build/es/no-polyfill/inputs/TextArea.js +1 -0
- package/build/es/no-polyfill/inputs/_common.js +2 -0
- package/build/es/no-polyfill/loader/Loader.story.js +1 -0
- package/build/es/no-polyfill/logo/Logo.story.js +1 -0
- package/build/es/no-polyfill/modal/Modal.js +1 -2
- package/build/es/no-polyfill/money/Money.story.js +1 -0
- package/build/es/no-polyfill/moneyInput/MoneyInput.js +1 -1
- package/build/es/no-polyfill/moneyInput/MoneyInput.story.js +1 -0
- package/build/es/no-polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
- package/build/es/no-polyfill/progress/Progress.story.js +1 -0
- package/build/es/no-polyfill/provider/Provider.spec.js +1 -2
- package/build/es/no-polyfill/provider/Provider.story.js +1 -1
- package/build/es/no-polyfill/select/searchBox/SearchBox.js +1 -1
- package/build/es/no-polyfill/slidingPanel/SlidingPanel.js +1 -1
- package/build/es/no-polyfill/statusIcon/StatusIcon.story.js +1 -0
- package/build/es/no-polyfill/tabs/Tabs.js +1 -6
- package/build/es/no-polyfill/typeahead/typeaheadInput/TypeaheadInput.js +1 -1
- package/build/es/no-polyfill/uploadInput/UploadInput.story.js +1 -1
- package/build/es/no-polyfill/utils.js +0 -0
- package/build/es/no-polyfill/withDisplayFormat/WithDisplayFormat.js +1 -2
- package/build/es/polyfill/actionButton/ActionButton.story.js +1 -1
- package/build/es/polyfill/actionOption/ActionOption.story.js +1 -1
- package/build/es/polyfill/alert/Alert.story.js +1 -0
- package/build/es/polyfill/avatar/Avatar.story.js +1 -0
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +1 -2
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.story.js +1 -0
- package/build/es/polyfill/button/Button.js +1 -1
- package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +1 -1
- package/build/es/polyfill/checkboxOption/CheckboxOption.story.js +1 -1
- package/build/es/polyfill/chevron/Chevron.story.js +1 -0
- package/build/es/polyfill/chips/Chips.story.js +1 -1
- package/build/es/polyfill/common/bottomSheet/BottomSheet.js +1 -21
- package/build/es/polyfill/common/hooks/useHasIntersected/useHasIntersected.js +1 -2
- package/build/es/polyfill/common/requirements.js +1 -19
- package/build/es/polyfill/dateInput/DateInput.js +3 -9
- package/build/es/polyfill/dimmer/Dimmer.story.js +2 -1
- package/build/es/polyfill/index.js +1 -1
- package/build/es/polyfill/inputs/Input.js +1 -0
- package/build/es/polyfill/inputs/TextArea.js +1 -0
- package/build/es/polyfill/inputs/_common.js +2 -0
- package/build/es/polyfill/loader/Loader.story.js +1 -0
- package/build/es/polyfill/logo/Logo.story.js +1 -0
- package/build/es/polyfill/modal/Modal.js +1 -2
- package/build/es/polyfill/money/Money.story.js +1 -0
- package/build/es/polyfill/moneyInput/MoneyInput.js +1 -1
- package/build/es/polyfill/moneyInput/MoneyInput.story.js +1 -0
- package/build/es/polyfill/phoneNumberInput/PhoneNumberInput.js +1 -1
- package/build/es/polyfill/progress/Progress.story.js +1 -0
- package/build/es/polyfill/provider/Provider.spec.js +1 -2
- package/build/es/polyfill/provider/Provider.story.js +1 -1
- package/build/es/polyfill/select/searchBox/SearchBox.js +1 -1
- package/build/es/polyfill/slidingPanel/SlidingPanel.js +1 -1
- package/build/es/polyfill/statusIcon/StatusIcon.story.js +1 -0
- package/build/es/polyfill/tabs/Tabs.js +1 -6
- package/build/es/polyfill/typeahead/typeaheadInput/TypeaheadInput.js +1 -1
- package/build/es/polyfill/uploadInput/UploadInput.story.js +1 -1
- package/build/es/polyfill/utils.js +0 -0
- package/build/es/polyfill/withDisplayFormat/WithDisplayFormat.js +1 -2
- package/build/main.css +1 -1
- package/build/styles/inputs/Input.css +1 -0
- package/build/styles/inputs/TextArea.css +1 -0
- package/build/styles/main.css +1 -1
- package/build/types/accordion/AccordionItem/AccordionItem.d.ts +8 -9
- package/build/types/actionButton/ActionButton.story.d.ts +13 -5
- package/build/types/actionOption/ActionOption.story.d.ts +28 -15
- package/build/types/alert/Alert.story.d.ts +56 -0
- package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts +2 -3
- package/build/types/alert/withArrow/withArrow.d.ts +1 -2
- package/build/types/avatar/Avatar.story.d.ts +42 -0
- package/build/types/avatarWrapper/AvatarWrapper.story.d.ts +59 -0
- package/build/types/checkboxButton/CheckboxButton.story.d.ts +4 -2
- package/build/types/checkboxOption/CheckboxOption.story.d.ts +4 -5
- package/build/types/chevron/Chevron.story.d.ts +44 -0
- package/build/types/chips/Chips.story.d.ts +9 -14
- package/build/types/common/RadioButton/RadioButton.d.ts +7 -8
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts +4 -5
- package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts +8 -9
- package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts +6 -7
- package/build/types/dateLookup/tableLink/TableLink.d.ts +8 -9
- package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +7 -8
- package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts +6 -7
- package/build/types/dimmer/Dimmer.story.d.ts +9 -1
- package/build/types/dynamicFieldDefinitionList/FormattedValue/FormattedValue.d.ts +2 -16
- package/build/types/flowNavigation/animatedLabel/AnimatedLabel.d.ts +3 -4
- package/build/types/flowNavigation/backButton/BackButton.d.ts +3 -4
- package/build/types/index.d.ts +4 -0
- package/build/types/inputs/Input.d.ts +13 -0
- package/build/types/inputs/TextArea.d.ts +10 -0
- package/build/types/inputs/_common.d.ts +5 -0
- package/build/types/loader/Loader.story.d.ts +28 -0
- package/build/types/logo/Logo.story.d.ts +32 -0
- package/build/types/modal/Modal.story.d.ts +3 -2
- package/build/types/money/Money.story.d.ts +19 -0
- package/build/types/moneyInput/MoneyInput.story.d.ts +35 -0
- package/build/types/progress/Progress.story.d.ts +17 -0
- package/build/types/progressBar/ProgressBar.story.d.ts +6 -1
- package/build/types/provider/Provider.story.d.ts +6 -7
- package/build/types/select/searchBox/SearchBox.d.ts +1 -1
- package/build/types/statusIcon/StatusIcon.story.d.ts +15 -0
- package/build/types/tabs/TabList.d.ts +1 -2
- package/build/types/tabs/TabPanel.d.ts +4 -7
- package/build/types/test-utils/GlobalsDecorator.d.ts +4 -5
- package/build/types/test-utils/index.d.ts +1 -1
- package/build/types/tile/Tile.d.ts +9 -10
- package/build/types/tooltip/Tooltip.story.d.ts +2 -1
- package/build/types/typeahead/typeaheadInput/TypeaheadInput.d.ts +15 -16
- package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts +4 -9
- package/build/types/upload/steps/completeStep/completeStep.d.ts +9 -10
- package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts +8 -9
- package/build/types/upload/steps/processingStep/processingStep.d.ts +8 -9
- package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +8 -9
- package/build/types/uploadInput/UploadInput.story.d.ts +20 -37
- package/build/types/utils.d.ts +1 -0
- package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +18 -19
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +65 -33
- package/upgrades/2021-04-v35-36-typescript-support.js +1 -0
|
@@ -1,37 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import { UploadInputProps } from './UploadInput';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export default _default;
|
|
22
|
-
export declare const SingleFile: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
23
|
-
export declare const MultipleFiles: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
24
|
-
export declare const UploadInputWithDescriptionFromProps: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
25
|
-
export declare const Disabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
26
|
-
export declare const WithAnyFileType: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
27
|
-
export declare const WithSingleFileType: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
28
|
-
export declare const WithMultipleExistingFiles: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
29
|
-
export declare const WithoutDelete: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
30
|
-
export declare const WithUploadFailed: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
31
|
-
export declare const WithDeleteFailed: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
32
|
-
export declare const CustomConfirmMessage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
33
|
-
export declare const withManualDownloadHandler: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
34
|
-
export declare const withFilesChangeHandler: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
35
|
-
export declare const withMaxFilesToUploadLimit: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
36
|
-
export declare const withFileSizeErrorMessage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
37
|
-
export declare const withCustomUploadButtonTitle: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, UploadInputProps>;
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import UploadInput, { UploadInputProps } from './UploadInput';
|
|
3
|
+
declare const meta: Meta<typeof UploadInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const SingleFile: Story<UploadInputProps>;
|
|
6
|
+
export declare const MultipleFiles: Story<UploadInputProps>;
|
|
7
|
+
export declare const UploadInputWithDescriptionFromProps: Story<UploadInputProps>;
|
|
8
|
+
export declare const Disabled: Story<UploadInputProps>;
|
|
9
|
+
export declare const WithAnyFileType: Story<UploadInputProps>;
|
|
10
|
+
export declare const WithSingleFileType: Story<UploadInputProps>;
|
|
11
|
+
export declare const WithMultipleExistingFiles: Story<UploadInputProps>;
|
|
12
|
+
export declare const WithoutDelete: Story<UploadInputProps>;
|
|
13
|
+
export declare const WithUploadFailed: Story<UploadInputProps>;
|
|
14
|
+
export declare const WithDeleteFailed: Story<UploadInputProps>;
|
|
15
|
+
export declare const CustomConfirmMessage: Story<UploadInputProps>;
|
|
16
|
+
export declare const withManualDownloadHandler: Story<UploadInputProps>;
|
|
17
|
+
export declare const withFilesChangeHandler: Story<UploadInputProps>;
|
|
18
|
+
export declare const withMaxFilesToUploadLimit: Story<UploadInputProps>;
|
|
19
|
+
export declare const withFileSizeErrorMessage: Story<UploadInputProps>;
|
|
20
|
+
export declare const withCustomUploadButtonTitle: Story<UploadInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Merge<Object1, Object2> = Omit<Object1, keyof Object2> & Object2;
|
|
@@ -31,24 +31,24 @@ declare class WithDisplayFormat extends Component<any, any, any> {
|
|
|
31
31
|
}
|
|
32
32
|
declare namespace WithDisplayFormat {
|
|
33
33
|
namespace propTypes {
|
|
34
|
-
const autoComplete:
|
|
35
|
-
const className:
|
|
36
|
-
const disabled:
|
|
37
|
-
const id:
|
|
38
|
-
const maxLength:
|
|
39
|
-
const minLength:
|
|
40
|
-
const name:
|
|
41
|
-
const onFocus:
|
|
42
|
-
const onBlur:
|
|
43
|
-
const onChange:
|
|
44
|
-
const placeholder:
|
|
45
|
-
const readOnly:
|
|
46
|
-
const render:
|
|
47
|
-
const required:
|
|
48
|
-
const displayPattern:
|
|
49
|
-
const type:
|
|
50
|
-
const inputMode:
|
|
51
|
-
const value:
|
|
34
|
+
const autoComplete: any;
|
|
35
|
+
const className: any;
|
|
36
|
+
const disabled: any;
|
|
37
|
+
const id: any;
|
|
38
|
+
const maxLength: any;
|
|
39
|
+
const minLength: any;
|
|
40
|
+
const name: any;
|
|
41
|
+
const onFocus: any;
|
|
42
|
+
const onBlur: any;
|
|
43
|
+
const onChange: any;
|
|
44
|
+
const placeholder: any;
|
|
45
|
+
const readOnly: any;
|
|
46
|
+
const render: any;
|
|
47
|
+
const required: any;
|
|
48
|
+
const displayPattern: any;
|
|
49
|
+
const type: any;
|
|
50
|
+
const inputMode: any;
|
|
51
|
+
const value: any;
|
|
52
52
|
}
|
|
53
53
|
namespace defaultProps {
|
|
54
54
|
const autoComplete_1: string;
|
|
@@ -87,4 +87,3 @@ declare namespace WithDisplayFormat {
|
|
|
87
87
|
}
|
|
88
88
|
import { Component } from "react";
|
|
89
89
|
import { HistoryNavigator } from "../common";
|
|
90
|
-
import PropTypes from "prop-types";
|