@transferwise/components 43.11.20 → 43.11.22
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/actionOption/ActionOption.js +1 -1
- package/build/es/no-polyfill/actionOption/ActionOption.story.js +1 -1
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.spec.js +1 -1
- package/build/es/no-polyfill/checkboxOption/CheckboxOption.story.js +1 -1
- package/build/es/no-polyfill/common/Option/Option.js +1 -1
- package/build/es/no-polyfill/radioOption/RadioOption.js +1 -1
- package/build/es/no-polyfill/switchOption/SwitchOption.js +1 -1
- package/build/es/no-polyfill/switchOption/SwitchOption.story.js +1 -1
- package/build/es/polyfill/actionOption/ActionOption.js +1 -1
- package/build/es/polyfill/actionOption/ActionOption.story.js +1 -1
- package/build/es/polyfill/checkboxOption/CheckboxOption.spec.js +1 -1
- package/build/es/polyfill/checkboxOption/CheckboxOption.story.js +1 -1
- package/build/es/polyfill/common/Option/Option.js +1 -1
- package/build/es/polyfill/radioOption/RadioOption.js +1 -1
- package/build/es/polyfill/switchOption/SwitchOption.js +1 -1
- package/build/es/polyfill/switchOption/SwitchOption.story.js +1 -1
- package/build/main.css +1 -1
- package/build/styles/common/Option/Option.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/actionOption/ActionOption.d.ts +2 -1
- package/build/types/actionOption/ActionOption.story.d.ts +3 -1
- package/build/types/checkboxOption/CheckboxOption.story.d.ts +1 -0
- package/build/types/common/Option/Option.d.ts +1 -0
- package/build/types/radioOption/RadioOption.d.ts +1 -0
- package/build/types/switchOption/SwitchOption.d.ts +2 -1
- package/build/types/switchOption/SwitchOption.story.d.ts +3 -1
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +3 -3
|
@@ -10,6 +10,7 @@ type Props = {
|
|
|
10
10
|
title: ReactChild;
|
|
11
11
|
action: ReactChild;
|
|
12
12
|
showMediaCircle?: boolean;
|
|
13
|
+
isContainerAligned?: boolean;
|
|
13
14
|
} & CommonProps;
|
|
14
|
-
declare const ActionOption: ({ action, disabled, onClick, media, title, content, complex, className, showMediaAtAllSizes, showMediaCircle, }: Props) => ReactElement;
|
|
15
|
+
declare const ActionOption: ({ action, disabled, onClick, media, title, content, complex, className, showMediaAtAllSizes, showMediaCircle, isContainerAligned, }: Props) => ReactElement;
|
|
15
16
|
export default ActionOption;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
component: ({ action, disabled, onClick, media, title, content, complex, className, showMediaAtAllSizes, showMediaCircle, }: {
|
|
3
|
+
component: ({ action, disabled, onClick, media, title, content, complex, className, showMediaAtAllSizes, showMediaCircle, isContainerAligned, }: {
|
|
4
4
|
complex?: boolean | undefined;
|
|
5
5
|
content?: import("react").ReactChild | undefined;
|
|
6
6
|
disabled?: boolean | undefined;
|
|
@@ -10,9 +10,11 @@ declare const _default: {
|
|
|
10
10
|
title: import("react").ReactChild;
|
|
11
11
|
action: import("react").ReactChild;
|
|
12
12
|
showMediaCircle?: boolean | undefined;
|
|
13
|
+
isContainerAligned?: boolean | undefined;
|
|
13
14
|
} & import("../common").CommonProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
14
15
|
title: string;
|
|
15
16
|
};
|
|
16
17
|
export default _default;
|
|
17
18
|
export declare const Basic: () => JSX.Element;
|
|
18
19
|
export declare const Multiple: () => JSX.Element;
|
|
20
|
+
export declare const WithContainerContent: () => JSX.Element;
|
|
@@ -17,6 +17,7 @@ export interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'titl
|
|
|
17
17
|
className?: string;
|
|
18
18
|
showMediaAtAllSizes?: boolean;
|
|
19
19
|
showMediaCircle?: boolean;
|
|
20
|
+
isContainerAligned?: boolean;
|
|
20
21
|
}
|
|
21
22
|
interface AnchorOptionProps extends BaseOptionProps, LinkProps {
|
|
22
23
|
as: 'a';
|
|
@@ -6,11 +6,12 @@ type Props = {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
showMediaCircle?: boolean;
|
|
8
8
|
showMediaAtAllSizes?: boolean;
|
|
9
|
+
isContainerAligned?: boolean;
|
|
9
10
|
id?: string;
|
|
10
11
|
media?: ReactChild;
|
|
11
12
|
onChange: (newValue: boolean) => void;
|
|
12
13
|
title: ReactChild;
|
|
13
14
|
'aria-label': string;
|
|
14
15
|
};
|
|
15
|
-
declare const SwitchOption: ({ checked, complex, content, disabled, id, media, onChange, title, showMediaCircle, showMediaAtAllSizes, "aria-label": ariaLabel, }: Props) => ReactElement;
|
|
16
|
+
declare const SwitchOption: ({ checked, complex, content, disabled, id, media, onChange, title, showMediaCircle, showMediaAtAllSizes, isContainerAligned, "aria-label": ariaLabel, }: Props) => ReactElement;
|
|
16
17
|
export default SwitchOption;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
component: ({ checked, complex, content, disabled, id, media, onChange, title, showMediaCircle, showMediaAtAllSizes, "aria-label": ariaLabel, }: {
|
|
3
|
+
component: ({ checked, complex, content, disabled, id, media, onChange, title, showMediaCircle, showMediaAtAllSizes, isContainerAligned, "aria-label": ariaLabel, }: {
|
|
4
4
|
checked?: boolean | undefined;
|
|
5
5
|
complex?: boolean | undefined;
|
|
6
6
|
content?: import("react").ReactChild | undefined;
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
8
|
showMediaCircle?: boolean | undefined;
|
|
9
9
|
showMediaAtAllSizes?: boolean | undefined;
|
|
10
|
+
isContainerAligned?: boolean | undefined;
|
|
10
11
|
id?: string | undefined;
|
|
11
12
|
media?: import("react").ReactChild | undefined;
|
|
12
13
|
onChange: (newValue: boolean) => void;
|
|
@@ -18,3 +19,4 @@ declare const _default: {
|
|
|
18
19
|
export default _default;
|
|
19
20
|
export declare const Basic: () => JSX.Element;
|
|
20
21
|
export declare const Multiple: () => JSX.Element;
|
|
22
|
+
export declare const WithContainerContent: () => JSX.Element;
|