@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
|
@@ -11,14 +11,14 @@ declare function AccordionItem({ "aria-label": ariaLabel, id, title, content, on
|
|
|
11
11
|
}): JSX.Element;
|
|
12
12
|
declare namespace AccordionItem {
|
|
13
13
|
const propTypes: {
|
|
14
|
-
'aria-label':
|
|
15
|
-
content:
|
|
16
|
-
icon:
|
|
17
|
-
id:
|
|
18
|
-
open:
|
|
19
|
-
onClick:
|
|
20
|
-
title:
|
|
21
|
-
theme:
|
|
14
|
+
'aria-label': any;
|
|
15
|
+
content: any;
|
|
16
|
+
icon: any;
|
|
17
|
+
id: any;
|
|
18
|
+
open: any;
|
|
19
|
+
onClick: any;
|
|
20
|
+
title: any;
|
|
21
|
+
theme: any;
|
|
22
22
|
};
|
|
23
23
|
const defaultProps: {
|
|
24
24
|
'aria-label': undefined;
|
|
@@ -27,5 +27,4 @@ declare namespace AccordionItem {
|
|
|
27
27
|
theme: Theme;
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
import PropTypes from "prop-types";
|
|
31
30
|
import { Theme } from "../../common/theme";
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import ActionButton from './ActionButton';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
text?: string | undefined;
|
|
7
|
+
} & import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
5
11
|
export default _default;
|
|
6
|
-
|
|
7
|
-
export declare const Basic:
|
|
12
|
+
type Story = StoryObj<typeof ActionButton>;
|
|
13
|
+
export declare const Basic: Story;
|
|
14
|
+
export declare const WithIcon: Story;
|
|
15
|
+
export declare const Disabled: Story;
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
disabled
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import ActionOption from './ActionOption';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: ({ action, disabled, onClick, media, title, content, complex, className, showMediaAtAllSizes, showMediaCircle, isContainerAligned, }: {
|
|
6
|
+
complex?: boolean | undefined;
|
|
7
|
+
content?: import("react").ReactChild | undefined;
|
|
8
|
+
disabled?: boolean | undefined;
|
|
9
|
+
media?: import("react").ReactChild | undefined;
|
|
10
|
+
showMediaAtAllSizes?: boolean | undefined;
|
|
11
|
+
onClick: () => void;
|
|
12
|
+
title: import("react").ReactChild;
|
|
13
|
+
action: import("react").ReactChild;
|
|
14
|
+
showMediaCircle?: boolean | undefined;
|
|
15
|
+
isContainerAligned?: boolean | undefined;
|
|
16
|
+
} & import("../common").CommonProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
17
|
+
title: string;
|
|
18
|
+
args: {
|
|
19
|
+
title: string;
|
|
20
|
+
content: string;
|
|
21
|
+
action: string;
|
|
22
|
+
media: JSX.Element;
|
|
23
|
+
showMediaCircle: false;
|
|
24
|
+
};
|
|
25
|
+
tags: string[];
|
|
26
|
+
};
|
|
14
27
|
export default _default;
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const WithContainerContent:
|
|
28
|
+
type Story = StoryObj<typeof ActionOption>;
|
|
29
|
+
export declare const Basic: Story;
|
|
30
|
+
export declare const WithContainerContent: Story;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Sentiment } from '../common';
|
|
4
|
+
import Alert from './Alert';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
component: {
|
|
7
|
+
(props: any): JSX.Element;
|
|
8
|
+
propTypes: {
|
|
9
|
+
action: any;
|
|
10
|
+
className: any;
|
|
11
|
+
icon: any;
|
|
12
|
+
message: any;
|
|
13
|
+
onDismiss: any;
|
|
14
|
+
type: any;
|
|
15
|
+
variant: any;
|
|
16
|
+
arrow: (props: any, propertyName: any, ...rest: any[]) => any;
|
|
17
|
+
children: (props: any, propertyName: any, ...rest: any[]) => any;
|
|
18
|
+
dismissible: (props: any, propertyName: any, ...rest: any[]) => any;
|
|
19
|
+
};
|
|
20
|
+
defaultProps: {
|
|
21
|
+
action: undefined;
|
|
22
|
+
arrow: undefined;
|
|
23
|
+
className: undefined;
|
|
24
|
+
dismissible: undefined;
|
|
25
|
+
icon: undefined;
|
|
26
|
+
type: Sentiment;
|
|
27
|
+
variant: import("../common").Variant;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
title: string;
|
|
31
|
+
args: {
|
|
32
|
+
type: Sentiment;
|
|
33
|
+
message: string;
|
|
34
|
+
};
|
|
35
|
+
argTypes: {
|
|
36
|
+
arrow: {
|
|
37
|
+
name: string;
|
|
38
|
+
type: {
|
|
39
|
+
name: "enum";
|
|
40
|
+
value: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type: {
|
|
44
|
+
type: {
|
|
45
|
+
name: "enum";
|
|
46
|
+
value: Sentiment[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
tags: string[];
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
53
|
+
type Story = StoryObj<typeof Alert>;
|
|
54
|
+
export declare const Basic: Story;
|
|
55
|
+
export declare const WithAction: Story;
|
|
56
|
+
export declare const WithArrow: Story;
|
|
@@ -2,12 +2,11 @@ export default InlineMarkdown;
|
|
|
2
2
|
declare function InlineMarkdown(props: any): JSX.Element;
|
|
3
3
|
declare namespace InlineMarkdown {
|
|
4
4
|
namespace propTypes {
|
|
5
|
-
const children:
|
|
6
|
-
const className:
|
|
5
|
+
const children: any;
|
|
6
|
+
const className: any;
|
|
7
7
|
}
|
|
8
8
|
namespace defaultProps {
|
|
9
9
|
const className_1: undefined;
|
|
10
10
|
export { className_1 as className };
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
import PropTypes from "prop-types";
|
|
@@ -2,10 +2,9 @@ export default withArrow;
|
|
|
2
2
|
declare function withArrow(Alert: any, arrow: any): {
|
|
3
3
|
(props: any): JSX.Element;
|
|
4
4
|
propTypes: {
|
|
5
|
-
className:
|
|
5
|
+
className: any;
|
|
6
6
|
};
|
|
7
7
|
defaultProps: {
|
|
8
8
|
className: undefined;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
import PropTypes from "prop-types";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Size, Theme } from '../common';
|
|
4
|
+
import Avatar, { AvatarType } from '.';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
component: {
|
|
7
|
+
({ backgroundColor, children, className, outlined, size, theme, type }: {
|
|
8
|
+
backgroundColor: any;
|
|
9
|
+
children: any;
|
|
10
|
+
className: any;
|
|
11
|
+
outlined: any;
|
|
12
|
+
size: any;
|
|
13
|
+
theme: any;
|
|
14
|
+
type: any;
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
propTypes: {
|
|
17
|
+
backgroundColor: any;
|
|
18
|
+
children: any;
|
|
19
|
+
className: any;
|
|
20
|
+
outlined: any;
|
|
21
|
+
size: any;
|
|
22
|
+
theme: any;
|
|
23
|
+
type: any;
|
|
24
|
+
};
|
|
25
|
+
defaultProps: {
|
|
26
|
+
backgroundColor: null;
|
|
27
|
+
children: null;
|
|
28
|
+
className: null;
|
|
29
|
+
outlined: boolean;
|
|
30
|
+
size: Size;
|
|
31
|
+
theme: Theme;
|
|
32
|
+
type: AvatarType;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
title: string;
|
|
36
|
+
tags: string[];
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
39
|
+
type Story = StoryObj<typeof Avatar>;
|
|
40
|
+
export declare const Emoji: Story;
|
|
41
|
+
export declare const Flag: Story;
|
|
42
|
+
export declare const Table: Story;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Sentiment } from '../common';
|
|
4
|
+
import AvatarWrapper from './AvatarWrapper';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
component: {
|
|
7
|
+
({ url, profileType, badgeUrl, badgeAltText, badgeStatusIcon, name, avatarProps, badgeProps, }: {
|
|
8
|
+
url: any;
|
|
9
|
+
profileType: any;
|
|
10
|
+
badgeUrl: any;
|
|
11
|
+
badgeAltText: any;
|
|
12
|
+
badgeStatusIcon: any;
|
|
13
|
+
name: any;
|
|
14
|
+
avatarProps: any;
|
|
15
|
+
badgeProps: any;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
defaultProps: {
|
|
18
|
+
url: undefined;
|
|
19
|
+
profileType: undefined;
|
|
20
|
+
badgeUrl: undefined;
|
|
21
|
+
badgeAltText: undefined;
|
|
22
|
+
badgeStatusIcon: undefined;
|
|
23
|
+
name: undefined;
|
|
24
|
+
avatarProps: {};
|
|
25
|
+
badgeProps: {};
|
|
26
|
+
};
|
|
27
|
+
propTypes: {
|
|
28
|
+
url: any;
|
|
29
|
+
profileType: any;
|
|
30
|
+
badgeUrl: any;
|
|
31
|
+
badgeAltText: any;
|
|
32
|
+
badgeStatusIcon: any;
|
|
33
|
+
name: any;
|
|
34
|
+
avatarProps: any;
|
|
35
|
+
badgeProps: any;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
title: string;
|
|
39
|
+
argTypes: {
|
|
40
|
+
profileType: {
|
|
41
|
+
type: {
|
|
42
|
+
name: "enum";
|
|
43
|
+
value: string[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
badgeStatusIcon: {
|
|
47
|
+
type: {
|
|
48
|
+
name: "enum";
|
|
49
|
+
value: Sentiment[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
tags: string[];
|
|
54
|
+
};
|
|
55
|
+
export default _default;
|
|
56
|
+
type Story = StoryObj<typeof AvatarWrapper>;
|
|
57
|
+
export declare const WithBadgeUrl: Story;
|
|
58
|
+
export declare const WithBadgeStatus: Story;
|
|
59
|
+
export declare const All: Story;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
import CheckboxButton from './CheckboxButton';
|
|
4
|
+
declare const meta: Meta<typeof CheckboxButton>;
|
|
5
|
+
export default meta;
|
|
4
6
|
export declare const Basic: () => JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default _default;
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
import CheckboxOption from './CheckboxOption';
|
|
4
|
+
declare const meta: Meta<typeof CheckboxOption>;
|
|
5
|
+
export default meta;
|
|
7
6
|
export declare const Basic: () => JSX.Element;
|
|
8
7
|
export declare const Multiple: () => JSX.Element;
|
|
9
8
|
export declare const WithContainerContent: () => JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Chevron from './Chevron';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: {
|
|
6
|
+
({ orientation, size, disabled, className }: {
|
|
7
|
+
orientation: any;
|
|
8
|
+
size: any;
|
|
9
|
+
disabled: any;
|
|
10
|
+
className: any;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
propTypes: {
|
|
13
|
+
orientation: any;
|
|
14
|
+
size: any;
|
|
15
|
+
disabled: any;
|
|
16
|
+
className: any;
|
|
17
|
+
};
|
|
18
|
+
defaultProps: {
|
|
19
|
+
orientation: import("..").Position;
|
|
20
|
+
size: import("..").Size;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
className: null;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
title: string;
|
|
26
|
+
argTypes: {
|
|
27
|
+
orientation: {
|
|
28
|
+
type: {
|
|
29
|
+
name: "enum";
|
|
30
|
+
value: string[];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
size: {
|
|
34
|
+
type: {
|
|
35
|
+
name: "enum";
|
|
36
|
+
value: string[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
tags: string[];
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
43
|
+
type Story = StoryObj<typeof Chevron>;
|
|
44
|
+
export declare const Basic: Story;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}>;
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const FilterChips: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ChipsProps>;
|
|
13
|
-
export declare const PreSelectedFilterChips: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ChipsProps>;
|
|
14
|
-
export declare const ChoiceChips: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ChipsProps>;
|
|
1
|
+
import { Story, Meta } from '@storybook/react';
|
|
2
|
+
import Chips, { ChipsProps } from './Chips';
|
|
3
|
+
declare const meta: Meta<typeof Chips>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare const FilterTemplate: Story<ChipsProps>;
|
|
6
|
+
declare const ChoiceTemplate: Story<ChipsProps>;
|
|
7
|
+
export declare const FilterChips: typeof FilterTemplate;
|
|
8
|
+
export declare const PreSelectedFilterChips: typeof FilterTemplate;
|
|
9
|
+
export declare const ChoiceChips: typeof ChoiceTemplate;
|
|
@@ -10,13 +10,13 @@ declare function RadioButton({ id, value, name, checked, onChange, disabled, rea
|
|
|
10
10
|
}): JSX.Element;
|
|
11
11
|
declare namespace RadioButton {
|
|
12
12
|
namespace propTypes {
|
|
13
|
-
const id:
|
|
14
|
-
const name:
|
|
15
|
-
const checked:
|
|
16
|
-
const onChange:
|
|
17
|
-
const disabled:
|
|
18
|
-
const value:
|
|
19
|
-
const readOnly:
|
|
13
|
+
const id: any;
|
|
14
|
+
const name: any;
|
|
15
|
+
const checked: any;
|
|
16
|
+
const onChange: any;
|
|
17
|
+
const disabled: any;
|
|
18
|
+
const value: any;
|
|
19
|
+
const readOnly: any;
|
|
20
20
|
}
|
|
21
21
|
namespace defaultProps {
|
|
22
22
|
const checked_1: boolean;
|
|
@@ -33,4 +33,3 @@ declare namespace RadioButton {
|
|
|
33
33
|
export { readOnly_1 as readOnly };
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
import PropTypes from "prop-types";
|
|
@@ -7,10 +7,10 @@ declare function DateHeader({ label, onLabelClick, onPreviousClick, onNextClick
|
|
|
7
7
|
}): JSX.Element;
|
|
8
8
|
declare namespace DateHeader {
|
|
9
9
|
namespace propTypes {
|
|
10
|
-
const label:
|
|
11
|
-
const onLabelClick:
|
|
12
|
-
const onPreviousClick:
|
|
13
|
-
const onNextClick:
|
|
10
|
+
const label: any;
|
|
11
|
+
const onLabelClick: any;
|
|
12
|
+
const onPreviousClick: any;
|
|
13
|
+
const onNextClick: any;
|
|
14
14
|
}
|
|
15
15
|
namespace defaultProps {
|
|
16
16
|
const label_1: null;
|
|
@@ -19,4 +19,3 @@ declare namespace DateHeader {
|
|
|
19
19
|
export { onLabelClick_1 as onLabelClick };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
import PropTypes from "prop-types";
|
|
@@ -11,14 +11,14 @@ declare function DateTrigger({ selectedDate, size, placeholder, label, monthForm
|
|
|
11
11
|
}): JSX.Element;
|
|
12
12
|
declare namespace DateTrigger {
|
|
13
13
|
namespace propTypes {
|
|
14
|
-
const selectedDate:
|
|
15
|
-
const size:
|
|
16
|
-
const placeholder:
|
|
17
|
-
const label:
|
|
18
|
-
const monthFormat:
|
|
19
|
-
const disabled:
|
|
20
|
-
const onClick:
|
|
21
|
-
const onClear:
|
|
14
|
+
const selectedDate: any;
|
|
15
|
+
const size: any;
|
|
16
|
+
const placeholder: any;
|
|
17
|
+
const label: any;
|
|
18
|
+
const monthFormat: any;
|
|
19
|
+
const disabled: any;
|
|
20
|
+
const onClick: any;
|
|
21
|
+
const onClear: any;
|
|
22
22
|
}
|
|
23
23
|
namespace defaultProps {
|
|
24
24
|
const selectedDate_1: null;
|
|
@@ -29,5 +29,4 @@ declare namespace DateTrigger {
|
|
|
29
29
|
export { onClear_1 as onClear };
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
import PropTypes from "prop-types";
|
|
33
32
|
import { Size } from "../../common/propsValues/size";
|
|
@@ -9,12 +9,12 @@ declare function MonthCalendarTable({ selectedDate: selected, min, max, viewYear
|
|
|
9
9
|
}): JSX.Element;
|
|
10
10
|
declare namespace MonthCalendarTable {
|
|
11
11
|
namespace propTypes {
|
|
12
|
-
const selectedDate:
|
|
13
|
-
const min:
|
|
14
|
-
const max:
|
|
15
|
-
const viewYear:
|
|
16
|
-
const placeholder:
|
|
17
|
-
const onSelect:
|
|
12
|
+
const selectedDate: any;
|
|
13
|
+
const min: any;
|
|
14
|
+
const max: any;
|
|
15
|
+
const viewYear: any;
|
|
16
|
+
const placeholder: any;
|
|
17
|
+
const onSelect: any;
|
|
18
18
|
}
|
|
19
19
|
namespace defaultProps {
|
|
20
20
|
const selectedDate_1: null;
|
|
@@ -25,4 +25,3 @@ declare namespace MonthCalendarTable {
|
|
|
25
25
|
export { max_1 as max };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
import PropTypes from "prop-types";
|
|
@@ -7,14 +7,14 @@ declare class TableLink extends PureComponent<any, any, any> {
|
|
|
7
7
|
}
|
|
8
8
|
declare namespace TableLink {
|
|
9
9
|
namespace propTypes {
|
|
10
|
-
const item:
|
|
11
|
-
const type:
|
|
12
|
-
const title:
|
|
13
|
-
const longTitle:
|
|
14
|
-
const active:
|
|
15
|
-
const disabled:
|
|
16
|
-
const today:
|
|
17
|
-
const onClick:
|
|
10
|
+
const item: any;
|
|
11
|
+
const type: any;
|
|
12
|
+
const title: any;
|
|
13
|
+
const longTitle: any;
|
|
14
|
+
const active: any;
|
|
15
|
+
const disabled: any;
|
|
16
|
+
const today: any;
|
|
17
|
+
const onClick: any;
|
|
18
18
|
}
|
|
19
19
|
namespace defaultProps {
|
|
20
20
|
const title_1: null;
|
|
@@ -24,4 +24,3 @@ declare namespace TableLink {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
import { PureComponent } from "react";
|
|
27
|
-
import PropTypes from "prop-types";
|
|
@@ -9,13 +9,13 @@ declare class YearCalendar extends PureComponent<any, any, any> {
|
|
|
9
9
|
}
|
|
10
10
|
declare namespace YearCalendar {
|
|
11
11
|
namespace propTypes {
|
|
12
|
-
const selectedDate:
|
|
13
|
-
const min:
|
|
14
|
-
const max:
|
|
15
|
-
const viewYear:
|
|
16
|
-
const placeholder:
|
|
17
|
-
const onSelect:
|
|
18
|
-
const onViewDateUpdate:
|
|
12
|
+
const selectedDate: any;
|
|
13
|
+
const min: any;
|
|
14
|
+
const max: any;
|
|
15
|
+
const viewYear: any;
|
|
16
|
+
const placeholder: any;
|
|
17
|
+
const onSelect: any;
|
|
18
|
+
const onViewDateUpdate: any;
|
|
19
19
|
}
|
|
20
20
|
namespace defaultProps {
|
|
21
21
|
const selectedDate_1: null;
|
|
@@ -27,4 +27,3 @@ declare namespace YearCalendar {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
import { PureComponent } from "react";
|
|
30
|
-
import PropTypes from "prop-types";
|
|
@@ -9,12 +9,12 @@ declare function YearCalendarTable({ selectedDate, min, max, viewYear, placehold
|
|
|
9
9
|
}): JSX.Element;
|
|
10
10
|
declare namespace YearCalendarTable {
|
|
11
11
|
namespace propTypes {
|
|
12
|
-
const selectedDate:
|
|
13
|
-
const min:
|
|
14
|
-
const max:
|
|
15
|
-
const viewYear:
|
|
16
|
-
const placeholder:
|
|
17
|
-
const onSelect:
|
|
12
|
+
const selectedDate: any;
|
|
13
|
+
const min: any;
|
|
14
|
+
const max: any;
|
|
15
|
+
const viewYear: any;
|
|
16
|
+
const placeholder: any;
|
|
17
|
+
const onSelect: any;
|
|
18
18
|
}
|
|
19
19
|
namespace defaultProps {
|
|
20
20
|
const selectedDate_1: null;
|
|
@@ -25,4 +25,3 @@ declare namespace YearCalendarTable {
|
|
|
25
25
|
export { max_1 as max };
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
import PropTypes from "prop-types";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Dimmer } from '..';
|
|
2
4
|
declare const _default: {
|
|
3
5
|
component: (props: import("../common").CommonProps & {
|
|
4
6
|
children?: import("react").ReactNode;
|
|
@@ -12,6 +14,12 @@ declare const _default: {
|
|
|
12
14
|
onClose?: ((event: KeyboardEvent | import("react").MouseEvent<Element, MouseEvent>) => void) | undefined;
|
|
13
15
|
}) => import("react").ReactPortal | null;
|
|
14
16
|
title: string;
|
|
17
|
+
args: {
|
|
18
|
+
fadeContentOnEnter: false;
|
|
19
|
+
fadeContentOnExit: false;
|
|
20
|
+
disableClickToClose: false;
|
|
21
|
+
};
|
|
15
22
|
};
|
|
16
23
|
export default _default;
|
|
17
|
-
|
|
24
|
+
type Story = StoryObj<typeof Dimmer>;
|
|
25
|
+
export declare const Basic: Story;
|
|
@@ -5,21 +5,7 @@ declare function FormattedValue({ field, value }: {
|
|
|
5
5
|
}): JSX.Element;
|
|
6
6
|
declare namespace FormattedValue {
|
|
7
7
|
namespace propTypes {
|
|
8
|
-
const field:
|
|
9
|
-
|
|
10
|
-
displayFormat: PropTypes.Requireable<string>;
|
|
11
|
-
refreshRequirementsOnChange: PropTypes.Requireable<boolean>;
|
|
12
|
-
title: PropTypes.Validator<string>;
|
|
13
|
-
type: PropTypes.Validator<string>;
|
|
14
|
-
width: PropTypes.Requireable<string>;
|
|
15
|
-
tagClassName: PropTypes.Requireable<PropTypes.InferProps<{
|
|
16
|
-
h3: PropTypes.Requireable<boolean>;
|
|
17
|
-
}>>;
|
|
18
|
-
values: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
19
|
-
value: PropTypes.Requireable<any>;
|
|
20
|
-
}> | null | undefined)[]>;
|
|
21
|
-
}>>>;
|
|
22
|
-
const value: PropTypes.Validator<any>;
|
|
8
|
+
const field: any;
|
|
9
|
+
const value: any;
|
|
23
10
|
}
|
|
24
11
|
}
|
|
25
|
-
import PropTypes from "prop-types";
|
|
@@ -6,13 +6,12 @@ declare function AnimatedLabel({ activeLabel, className, labels }: {
|
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace AnimatedLabel {
|
|
8
8
|
namespace propTypes {
|
|
9
|
-
const activeLabel:
|
|
10
|
-
const className:
|
|
11
|
-
const labels:
|
|
9
|
+
const activeLabel: any;
|
|
10
|
+
const className: any;
|
|
11
|
+
const labels: any;
|
|
12
12
|
}
|
|
13
13
|
namespace defaultProps {
|
|
14
14
|
const className_1: undefined;
|
|
15
15
|
export { className_1 as className };
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
import PropTypes from "prop-types";
|
|
@@ -6,9 +6,9 @@ declare function BackButton({ label, className, onClick }: {
|
|
|
6
6
|
}): JSX.Element;
|
|
7
7
|
declare namespace BackButton {
|
|
8
8
|
namespace propTypes {
|
|
9
|
-
const className:
|
|
10
|
-
const label:
|
|
11
|
-
const onClick:
|
|
9
|
+
const className: any;
|
|
10
|
+
const label: any;
|
|
11
|
+
const onClick: any;
|
|
12
12
|
}
|
|
13
13
|
namespace defaultProps {
|
|
14
14
|
const className_1: undefined;
|
|
@@ -17,4 +17,3 @@ declare namespace BackButton {
|
|
|
17
17
|
export { label_1 as label };
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
import PropTypes from "prop-types";
|