@transferwise/components 45.5.1 → 45.5.3
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/build/es/no-polyfill/alert/Alert.js +1 -1
- package/build/es/no-polyfill/alert/Alert.story.js +1 -1
- package/build/es/no-polyfill/checkboxButton/CheckboxButton.story.js +2 -1
- package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -1
- package/build/es/no-polyfill/display/Display.story.js +1 -1
- package/build/es/no-polyfill/emphasis/Emphasis.story.js +1 -0
- package/build/es/no-polyfill/markdown/Markdown.story.js +1 -0
- package/build/es/no-polyfill/processIndicator/ProcessIndicator.story.js +1 -0
- package/build/es/polyfill/alert/Alert.js +1 -1
- package/build/es/polyfill/alert/Alert.story.js +1 -1
- package/build/es/polyfill/checkboxButton/CheckboxButton.story.js +2 -1
- package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -1
- package/build/es/polyfill/display/Display.story.js +1 -1
- package/build/es/polyfill/emphasis/Emphasis.story.js +1 -0
- package/build/es/polyfill/markdown/Markdown.story.js +1 -0
- package/build/es/polyfill/processIndicator/ProcessIndicator.story.js +1 -0
- package/build/main.css +1 -1
- package/build/styles/avatar/Avatar.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/alert/Alert.d.ts +4 -0
- package/build/types/alert/Alert.story.d.ts +3 -0
- package/build/types/checkboxButton/CheckboxButton.story.d.ts +14 -4
- package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +4 -2
- package/build/types/emphasis/Emphasis.story.d.ts +13 -0
- package/build/types/flowNavigation/FlowNavigation.d.ts +1 -1
- package/build/types/markdown/Markdown.story.d.ts +39 -0
- package/build/types/processIndicator/ProcessIndicator.story.d.ts +10 -0
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +10 -11
- package/build/types/test-utils/VariantDecorator.d.ts +0 -18
|
@@ -21,6 +21,10 @@ export interface AlertProps {
|
|
|
21
21
|
* An optional icon. If not provided, we will default the icon to something appropriate for the type
|
|
22
22
|
*/
|
|
23
23
|
icon?: React.ReactElement<any>;
|
|
24
|
+
/**
|
|
25
|
+
* Title for the alert component
|
|
26
|
+
*/
|
|
27
|
+
title?: string;
|
|
24
28
|
/**
|
|
25
29
|
* The main body of the alert. Accepts plain text and bold words specified with **double stars
|
|
26
30
|
*/
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
action: any;
|
|
10
10
|
className: any;
|
|
11
11
|
icon: any;
|
|
12
|
+
title: any;
|
|
12
13
|
message: any;
|
|
13
14
|
onDismiss: any;
|
|
14
15
|
type: any;
|
|
@@ -54,3 +55,5 @@ type Story = StoryObj<typeof Alert>;
|
|
|
54
55
|
export declare const Basic: Story;
|
|
55
56
|
export declare const WithAction: Story;
|
|
56
57
|
export declare const WithArrow: Story;
|
|
58
|
+
export declare const WithCustomIcon: Story;
|
|
59
|
+
export declare const WithTitle: Story;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
3
|
import CheckboxButton from './CheckboxButton';
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<import("./CheckboxButton").CheckboxButtonProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
title: string;
|
|
7
|
+
tags: string[];
|
|
8
|
+
args: {
|
|
9
|
+
onBlur: import("@storybook/addon-actions/*").HandlerFunction;
|
|
10
|
+
onClick: import("@storybook/addon-actions/*").HandlerFunction;
|
|
11
|
+
onFocus: import("@storybook/addon-actions/*").HandlerFunction;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
15
|
+
type Story = StoryObj<typeof CheckboxButton>;
|
|
16
|
+
export declare const Basic: Story;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
2
|
import CriticalCommsBanner from '.';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
component: typeof CriticalCommsBanner;
|
|
5
5
|
title: string;
|
|
6
|
+
tags: string[];
|
|
6
7
|
};
|
|
7
8
|
export default _default;
|
|
8
|
-
|
|
9
|
+
type Story = StoryObj<typeof CriticalCommsBanner>;
|
|
10
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Emphasis from './Emphasis';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: ({ text }: {
|
|
6
|
+
text?: string | undefined;
|
|
7
|
+
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
8
|
+
title: string;
|
|
9
|
+
tags: string[];
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
type Story = StoryObj<typeof Emphasis>;
|
|
13
|
+
export declare const Basic: Story;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Step } from '../stepper/Stepper';
|
|
3
3
|
export interface FlowNavigationProps {
|
|
4
4
|
activeStep?: number;
|
|
5
|
-
avatar?:
|
|
5
|
+
avatar?: React.ReactNode;
|
|
6
6
|
logo?: React.ReactNode;
|
|
7
7
|
done?: boolean;
|
|
8
8
|
/** Called when the close button is clicked. If not provided the close button won't show */
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Markdown from './Markdown';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: {
|
|
6
|
+
({ as: Element, children, className, allowList, blockList, config }: {
|
|
7
|
+
as: any;
|
|
8
|
+
children: any;
|
|
9
|
+
className: any;
|
|
10
|
+
allowList: any;
|
|
11
|
+
blockList: any;
|
|
12
|
+
config: any;
|
|
13
|
+
}): JSX.Element | null;
|
|
14
|
+
propTypes: {
|
|
15
|
+
children: any;
|
|
16
|
+
as: any;
|
|
17
|
+
className: any;
|
|
18
|
+
allowList: any;
|
|
19
|
+
blockList: any;
|
|
20
|
+
config: any;
|
|
21
|
+
};
|
|
22
|
+
defaultProps: {
|
|
23
|
+
as: string;
|
|
24
|
+
className: undefined;
|
|
25
|
+
allowList: null;
|
|
26
|
+
blockList: null;
|
|
27
|
+
config: {
|
|
28
|
+
link: {
|
|
29
|
+
target: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
title: string;
|
|
35
|
+
tags: string[];
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
38
|
+
type Story = StoryObj<typeof Markdown>;
|
|
39
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import ProcessIndicator from './ProcessIndicator';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
component: typeof ProcessIndicator;
|
|
5
|
+
title: string;
|
|
6
|
+
tags: string[];
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
type Story = StoryObj<typeof ProcessIndicator>;
|
|
10
|
+
export declare const Basic: Story;
|