@transferwise/components 0.0.0-experimental-28800ab → 0.0.0-experimental-b13cd97
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/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.js +1 -1
- package/build/es/no-polyfill/avatar/Avatar.story.js +1 -0
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.js +1 -1
- package/build/es/no-polyfill/avatarWrapper/AvatarWrapper.story.js +1 -0
- package/build/es/no-polyfill/chevron/Chevron.story.js +1 -0
- package/build/es/no-polyfill/dimmer/Dimmer.story.js +2 -1
- 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/money/Money.story.js +1 -0
- package/build/es/no-polyfill/moneyInput/MoneyInput.story.js +1 -0
- package/build/es/no-polyfill/progress/Progress.story.js +1 -0
- package/build/es/no-polyfill/progressBar/ProgressBar.story.js +1 -1
- package/build/es/no-polyfill/provider/Provider.story.js +1 -1
- package/build/es/no-polyfill/statusIcon/StatusIcon.story.js +1 -0
- package/build/es/no-polyfill/tabs/Tabs.js +1 -1
- 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.js +1 -1
- package/build/es/polyfill/avatar/Avatar.story.js +1 -0
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.js +1 -1
- package/build/es/polyfill/avatarWrapper/AvatarWrapper.story.js +1 -0
- package/build/es/polyfill/chevron/Chevron.story.js +1 -0
- package/build/es/polyfill/dimmer/Dimmer.story.js +2 -1
- package/build/es/polyfill/loader/Loader.story.js +1 -0
- package/build/es/polyfill/logo/Logo.story.js +1 -0
- package/build/es/polyfill/money/Money.story.js +1 -0
- package/build/es/polyfill/moneyInput/MoneyInput.story.js +1 -0
- package/build/es/polyfill/progress/Progress.story.js +1 -0
- package/build/es/polyfill/progressBar/ProgressBar.story.js +1 -1
- package/build/es/polyfill/provider/Provider.story.js +1 -1
- package/build/es/polyfill/statusIcon/StatusIcon.story.js +1 -0
- package/build/es/polyfill/tabs/Tabs.js +1 -1
- package/build/main.css +1 -1
- package/build/styles/avatar/Avatar.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/actionButton/ActionButton.story.d.ts +6 -2
- package/build/types/actionOption/ActionOption.story.d.ts +28 -6
- package/build/types/alert/Alert.story.d.ts +56 -0
- package/build/types/avatar/Avatar.d.ts +22 -18
- package/build/types/avatar/Avatar.story.d.ts +42 -0
- package/build/types/avatar/index.d.ts +2 -2
- package/build/types/avatarWrapper/AvatarWrapper.d.ts +0 -1
- package/build/types/avatarWrapper/AvatarWrapper.story.d.ts +59 -0
- package/build/types/chevron/Chevron.story.d.ts +44 -0
- package/build/types/dimmer/Dimmer.story.d.ts +9 -1
- package/build/types/loader/Loader.story.d.ts +28 -0
- package/build/types/logo/Logo.story.d.ts +32 -0
- 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 +8 -3
- package/build/types/provider/Provider.story.d.ts +4 -1
- package/build/types/statusIcon/StatusIcon.story.d.ts +15 -0
- package/build/umd/no-polyfill/main.js +1 -1
- package/build/umd/polyfill/main.js +1 -1
- package/package.json +9 -9
- package/scripts/generate-type-declarations.js +1 -0
- package/build/es/no-polyfill/avatar/colors/avatarColorTestCases.json +0 -402
- package/build/es/no-polyfill/avatar/colors/colors.js +0 -10
- package/build/es/no-polyfill/avatar/colors/index.js +0 -1
- package/build/es/polyfill/avatar/colors/avatarColorTestCases.json +0 -402
- package/build/es/polyfill/avatar/colors/colors.js +0 -10
- package/build/es/polyfill/avatar/colors/index.js +0 -1
- package/build/types/avatar/colors/colors.d.ts +0 -3
- package/build/types/avatar/colors/index.d.ts +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import ActionButton from './ActionButton';
|
|
2
4
|
declare const _default: {
|
|
3
5
|
component: import("react").ForwardRefExoticComponent<{
|
|
4
6
|
text?: string | undefined;
|
|
@@ -7,5 +9,7 @@ declare const _default: {
|
|
|
7
9
|
tags: string[];
|
|
8
10
|
};
|
|
9
11
|
export default _default;
|
|
10
|
-
|
|
11
|
-
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,8 +1,30 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
3
|
import ActionOption from './ActionOption';
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
};
|
|
27
|
+
export default _default;
|
|
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;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
export type AvatarTheme =
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export type AvatarSize = "sm" | "md" | "lg" | 40 | 56;
|
|
4
|
+
|
|
5
|
+
export type AvatarTheme = "light" | "dark";
|
|
6
|
+
|
|
7
|
+
export type AvatarType = "thumbnail" | "icon" | "emoji" | "initials";
|
|
8
|
+
|
|
9
|
+
export interface AvatarProps {
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
outlined?: boolean;
|
|
14
|
+
size?: AvatarSize;
|
|
15
|
+
theme?: AvatarTheme;
|
|
16
|
+
type?: AvatarType;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const Avatar: React.FC<AvatarProps>;
|
|
20
|
+
|
|
21
|
+
export default Avatar;
|
|
22
|
+
|
|
@@ -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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AvatarType } from
|
|
2
|
-
export { default } from
|
|
1
|
+
export { AvatarType } from "./avatarTypes";
|
|
2
|
+
export { default } from "./Avatar";
|
|
@@ -13,7 +13,6 @@ export interface AvatarWrapperBadgeProps {
|
|
|
13
13
|
export interface AvatarWrapperProps {
|
|
14
14
|
url?: string;
|
|
15
15
|
profileType?: AvatarWrapperProfileType;
|
|
16
|
-
profileId?: number;
|
|
17
16
|
badgeUrl?: string;
|
|
18
17
|
badgeAltText?: string;
|
|
19
18
|
badgeStatusIcon?: AvatarWrapperBadgeStatusIcon;
|
|
@@ -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;
|
|
@@ -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,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;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Loader from './Loader';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: ({ small, size, displayInstantly, classNames, ...restProps }: {
|
|
6
|
+
small?: boolean | undefined;
|
|
7
|
+
size?: ("lg" | "xl" | "xs") | ("sm" | "md") | undefined;
|
|
8
|
+
displayInstantly?: boolean | undefined;
|
|
9
|
+
classNames?: Record<string, string> | undefined;
|
|
10
|
+
'data-testid'?: string | undefined;
|
|
11
|
+
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
12
|
+
title: string;
|
|
13
|
+
args: {
|
|
14
|
+
size: "md";
|
|
15
|
+
};
|
|
16
|
+
argTypes: {
|
|
17
|
+
size: {
|
|
18
|
+
type: {
|
|
19
|
+
name: "enum";
|
|
20
|
+
value: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
tags: string[];
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
27
|
+
type Story = StoryObj<typeof Loader>;
|
|
28
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Logo, { LogoType } from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: {
|
|
6
|
+
({ className, inverse, type }: {
|
|
7
|
+
className: any;
|
|
8
|
+
inverse: any;
|
|
9
|
+
type: any;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
className: any;
|
|
13
|
+
inverse: any;
|
|
14
|
+
type: any;
|
|
15
|
+
};
|
|
16
|
+
defaultProps: {
|
|
17
|
+
className: undefined;
|
|
18
|
+
inverse: boolean;
|
|
19
|
+
type: LogoType;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
title: string;
|
|
23
|
+
render: (args: {
|
|
24
|
+
className: any;
|
|
25
|
+
inverse: any;
|
|
26
|
+
type: any;
|
|
27
|
+
}) => JSX.Element;
|
|
28
|
+
tags: string[];
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
type Story = StoryObj<typeof Logo>;
|
|
32
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Money from './Money';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: {
|
|
6
|
+
({ amount, currency }: {
|
|
7
|
+
amount: any;
|
|
8
|
+
currency: any;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
propTypes: {
|
|
11
|
+
amount: any;
|
|
12
|
+
currency: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
title: string;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
type Story = StoryObj<typeof Money>;
|
|
19
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import MoneyInput from '.';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: import("react").FC<import("react-intl").WithIntlProps<any>> & {
|
|
6
|
+
WrappedComponent: import("react").ComponentType<any>;
|
|
7
|
+
};
|
|
8
|
+
title: string;
|
|
9
|
+
render: (args: Omit<any, "intl"> & {
|
|
10
|
+
forwardedRef?: import("react").Ref<any> | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
}) => JSX.Element;
|
|
14
|
+
args: {
|
|
15
|
+
id: string;
|
|
16
|
+
amount: number;
|
|
17
|
+
selectProps: {
|
|
18
|
+
buttonProps: {
|
|
19
|
+
'aria-label': string;
|
|
20
|
+
};
|
|
21
|
+
dropdownProps: {
|
|
22
|
+
'aria-label': string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
tags: string[];
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
29
|
+
type Story = StoryObj<typeof MoneyInput>;
|
|
30
|
+
export declare const SingleCurrency: Story;
|
|
31
|
+
export declare const MultipleCurrencies: Story;
|
|
32
|
+
export declare const OpenedInput: Story;
|
|
33
|
+
export declare const SmallInput: Story;
|
|
34
|
+
export declare const MediumInput: Story;
|
|
35
|
+
export declare const LargeInput: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import Progress from './Progress';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: ({ className, id, progress }: {
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
id: string;
|
|
8
|
+
progress: {
|
|
9
|
+
value: number;
|
|
10
|
+
max: number;
|
|
11
|
+
};
|
|
12
|
+
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
type Story = StoryObj<typeof Progress>;
|
|
17
|
+
export declare const Basic: Story;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
2
3
|
import ProgressBar from './ProgressBar';
|
|
3
|
-
declare const
|
|
4
|
-
|
|
4
|
+
declare const _default: {
|
|
5
|
+
component: ({ className, description, id, title, progress, textEnd, }: import("./ProgressBar").ProgressBarProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
6
|
+
title: string;
|
|
7
|
+
tags: string[];
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
5
10
|
type Story = StoryObj<typeof ProgressBar>;
|
|
6
11
|
export declare const Basic: Story;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Provider } from '..';
|
|
2
4
|
declare const _default: {
|
|
3
5
|
component: {
|
|
4
6
|
({ i18n, children }: {
|
|
@@ -16,4 +18,5 @@ declare const _default: {
|
|
|
16
18
|
title: string;
|
|
17
19
|
};
|
|
18
20
|
export default _default;
|
|
19
|
-
|
|
21
|
+
type Story = StoryObj<typeof Provider>;
|
|
22
|
+
export declare const Basic: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Sentiment } from '../common';
|
|
4
|
+
import StatusIcon from './StatusIcon';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
component: ({ sentiment, size }: {
|
|
7
|
+
sentiment: Sentiment;
|
|
8
|
+
size: "sm" | "md" | "lg";
|
|
9
|
+
}) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
type Story = StoryObj<typeof StatusIcon>;
|
|
14
|
+
export declare const Basic: Story;
|
|
15
|
+
export declare const Variants: Story;
|