@transferwise/components 45.5.0 → 45.5.2
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/common/DOMOperations/DOMOperations.js +6 -6
- package/build/es/no-polyfill/common/DOMOperations/index.js +1 -1
- package/build/es/no-polyfill/common/index.js +1 -1
- package/build/es/no-polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -1
- package/build/es/no-polyfill/dimmer/Dimmer.js +2 -2
- 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/common/DOMOperations/DOMOperations.js +6 -6
- package/build/es/polyfill/common/DOMOperations/index.js +1 -1
- package/build/es/polyfill/common/index.js +1 -1
- package/build/es/polyfill/criticalBanner/CriticalCommsBanner.story.js +1 -1
- package/build/es/polyfill/dimmer/Dimmer.js +2 -2
- 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/button/Button.story.d.ts +81 -48
- package/build/types/checkboxButton/CheckboxButton.story.d.ts +14 -4
- package/build/types/common/DOMOperations/DOMOperations.d.ts +2 -2
- package/build/types/common/DOMOperations/index.d.ts +3 -3
- package/build/types/common/Option/Option.d.ts +1 -1
- package/build/types/common/index.d.ts +1 -1
- package/build/types/criticalBanner/CriticalCommsBanner.story.d.ts +4 -2
- package/build/types/emphasis/Emphasis.story.d.ts +13 -0
- package/build/types/inputs/Input.d.ts +1 -1
- package/build/types/inputs/TextArea.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 +7 -5
- 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;
|