@dfds-ui/storybook-design 2.2.0-alpha.07a3a716 → 2.2.0-alpha.32eece3d
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/cjs/components/ExampleContainer.d.ts +1 -1
- package/cjs/components/GlobalStorybookStyles.d.ts +2 -1
- package/cjs/components/MarkdownStory.d.ts +2 -1
- package/cjs/components/Paper.d.ts +1 -1
- package/cjs/components/StoryPage.d.ts +1 -1
- package/cjs/helpers/components.d.ts +13 -13
- package/cjs/helpers/decorators.d.ts +4 -3
- package/cjs/markdown/Markdown.d.ts +1 -1
- package/cjs/markdown/Md.d.ts +2 -1
- package/components/ExampleContainer.d.ts +1 -1
- package/components/GlobalStorybookStyles.d.ts +2 -1
- package/components/MarkdownStory.d.ts +2 -1
- package/components/Paper.d.ts +1 -1
- package/components/StoryPage.d.ts +1 -1
- package/helpers/components.d.ts +13 -13
- package/helpers/decorators.d.ts +4 -3
- package/markdown/Markdown.d.ts +1 -1
- package/markdown/Md.d.ts +2 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const ExampleContainer: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme | undefined;
|
|
3
|
-
as?: import("react").ElementType<any> | undefined;
|
|
3
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
4
4
|
} & {
|
|
5
5
|
headline?: string | undefined;
|
|
6
6
|
dark?: boolean | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare type MarkdownStoryProps = {
|
|
2
3
|
file: string;
|
|
3
4
|
content: Promise<{
|
|
4
5
|
default: string;
|
|
5
6
|
}>;
|
|
6
7
|
};
|
|
7
|
-
declare const MarkdownStory: ({ file, content }: MarkdownStoryProps) => JSX.Element;
|
|
8
|
+
declare const MarkdownStory: ({ file, content }: MarkdownStoryProps) => React.JSX.Element;
|
|
8
9
|
export default MarkdownStory;
|
|
@@ -3,6 +3,6 @@ declare type PaperProps = {
|
|
|
3
3
|
};
|
|
4
4
|
declare const Paper: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
7
|
} & PaperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export default Paper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const StoryPage: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme | undefined;
|
|
3
|
-
as?: import("react").ElementType<any> | undefined;
|
|
3
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
4
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
5
|
export default StoryPage;
|
|
@@ -8,22 +8,22 @@ export declare type PreviewProps = {
|
|
|
8
8
|
mdxSource?: string;
|
|
9
9
|
sourcePath?: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const Canvas: ({ gray, height, width, ...rest }: PreviewProps) => JSX.Element;
|
|
11
|
+
export declare const Canvas: ({ gray, height, width, ...rest }: PreviewProps) => React.JSX.Element;
|
|
12
12
|
/** @deprecated use Canvas */
|
|
13
|
-
export declare const Preview: ({ gray, height, width, ...rest }: PreviewProps) => JSX.Element;
|
|
14
|
-
export declare const Source: (props: any) => JSX.Element;
|
|
15
|
-
export declare const LabWarningBanner: () => JSX.Element;
|
|
13
|
+
export declare const Preview: ({ gray, height, width, ...rest }: PreviewProps) => React.JSX.Element;
|
|
14
|
+
export declare const Source: (props: any) => React.JSX.Element;
|
|
15
|
+
export declare const LabWarningBanner: () => React.JSX.Element;
|
|
16
16
|
export declare const DeprecatedBanner: ({ headline, children }: {
|
|
17
17
|
headline: string;
|
|
18
18
|
children: ReactNode;
|
|
19
|
-
}) => JSX.Element;
|
|
20
|
-
export declare const Meta: ({ title, ...rest }: any) => JSX.Element;
|
|
21
|
-
export declare const DocsContainer: ({ children, ...rest }: any) => JSX.Element;
|
|
22
|
-
export declare const ArgsTable: (props: any) => JSX.Element;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
|
+
export declare const Meta: ({ title, ...rest }: any) => React.JSX.Element;
|
|
21
|
+
export declare const DocsContainer: ({ children, ...rest }: any) => React.JSX.Element;
|
|
22
|
+
export declare const ArgsTable: (props: any) => React.JSX.Element;
|
|
23
23
|
/** @deprecated use ArgsTable */
|
|
24
|
-
export declare const Props: (props: any) => JSX.Element;
|
|
25
|
-
export declare const Story: (props: any) => JSX.Element;
|
|
26
|
-
export declare const Description: (props: any) => JSX.Element;
|
|
24
|
+
export declare const Props: (props: any) => React.JSX.Element;
|
|
25
|
+
export declare const Story: (props: any) => React.JSX.Element;
|
|
26
|
+
export declare const Description: (props: any) => React.JSX.Element;
|
|
27
27
|
declare type StoryLinkProps = {
|
|
28
28
|
kind: string;
|
|
29
29
|
name: string;
|
|
@@ -31,10 +31,10 @@ declare type StoryLinkProps = {
|
|
|
31
31
|
target?: '_self' | '_blank';
|
|
32
32
|
children?: React.ReactNode;
|
|
33
33
|
};
|
|
34
|
-
export declare const StoryLink: ({ kind, name, mode, target, children }: StoryLinkProps) => JSX.Element | null;
|
|
34
|
+
export declare const StoryLink: ({ kind, name, mode, target, children }: StoryLinkProps) => React.JSX.Element | null;
|
|
35
35
|
export declare const DownloadButton: ({ children, href, className, }: {
|
|
36
36
|
children: React.ReactNode;
|
|
37
37
|
href: string;
|
|
38
38
|
className?: string | undefined;
|
|
39
|
-
}) => JSX.Element;
|
|
39
|
+
}) => React.JSX.Element;
|
|
40
40
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const withPadding: (space?: string) => (storyFn: (...args: any) => any) => React.JSX.Element;
|
|
3
|
+
export declare const withBackground: (color?: string) => (storyFn: (...args: any) => any) => React.JSX.Element;
|
|
4
|
+
export declare const withWidth: (width: string) => (storyFn: (...args: any) => any) => React.JSX.Element;
|
package/cjs/markdown/Md.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const ExampleContainer: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme | undefined;
|
|
3
|
-
as?: import("react").ElementType<any> | undefined;
|
|
3
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
4
4
|
} & {
|
|
5
5
|
headline?: string | undefined;
|
|
6
6
|
dark?: boolean | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare type MarkdownStoryProps = {
|
|
2
3
|
file: string;
|
|
3
4
|
content: Promise<{
|
|
4
5
|
default: string;
|
|
5
6
|
}>;
|
|
6
7
|
};
|
|
7
|
-
declare const MarkdownStory: ({ file, content }: MarkdownStoryProps) => JSX.Element;
|
|
8
|
+
declare const MarkdownStory: ({ file, content }: MarkdownStoryProps) => React.JSX.Element;
|
|
8
9
|
export default MarkdownStory;
|
package/components/Paper.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ declare type PaperProps = {
|
|
|
3
3
|
};
|
|
4
4
|
declare const Paper: import("@emotion/styled").StyledComponent<{
|
|
5
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
7
|
} & PaperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
8
|
export default Paper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const StoryPage: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme | undefined;
|
|
3
|
-
as?: import("react").ElementType<any> | undefined;
|
|
3
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
4
4
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
5
|
export default StoryPage;
|
package/helpers/components.d.ts
CHANGED
|
@@ -8,22 +8,22 @@ export declare type PreviewProps = {
|
|
|
8
8
|
mdxSource?: string;
|
|
9
9
|
sourcePath?: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const Canvas: ({ gray, height, width, ...rest }: PreviewProps) => JSX.Element;
|
|
11
|
+
export declare const Canvas: ({ gray, height, width, ...rest }: PreviewProps) => React.JSX.Element;
|
|
12
12
|
/** @deprecated use Canvas */
|
|
13
|
-
export declare const Preview: ({ gray, height, width, ...rest }: PreviewProps) => JSX.Element;
|
|
14
|
-
export declare const Source: (props: any) => JSX.Element;
|
|
15
|
-
export declare const LabWarningBanner: () => JSX.Element;
|
|
13
|
+
export declare const Preview: ({ gray, height, width, ...rest }: PreviewProps) => React.JSX.Element;
|
|
14
|
+
export declare const Source: (props: any) => React.JSX.Element;
|
|
15
|
+
export declare const LabWarningBanner: () => React.JSX.Element;
|
|
16
16
|
export declare const DeprecatedBanner: ({ headline, children }: {
|
|
17
17
|
headline: string;
|
|
18
18
|
children: ReactNode;
|
|
19
|
-
}) => JSX.Element;
|
|
20
|
-
export declare const Meta: ({ title, ...rest }: any) => JSX.Element;
|
|
21
|
-
export declare const DocsContainer: ({ children, ...rest }: any) => JSX.Element;
|
|
22
|
-
export declare const ArgsTable: (props: any) => JSX.Element;
|
|
19
|
+
}) => React.JSX.Element;
|
|
20
|
+
export declare const Meta: ({ title, ...rest }: any) => React.JSX.Element;
|
|
21
|
+
export declare const DocsContainer: ({ children, ...rest }: any) => React.JSX.Element;
|
|
22
|
+
export declare const ArgsTable: (props: any) => React.JSX.Element;
|
|
23
23
|
/** @deprecated use ArgsTable */
|
|
24
|
-
export declare const Props: (props: any) => JSX.Element;
|
|
25
|
-
export declare const Story: (props: any) => JSX.Element;
|
|
26
|
-
export declare const Description: (props: any) => JSX.Element;
|
|
24
|
+
export declare const Props: (props: any) => React.JSX.Element;
|
|
25
|
+
export declare const Story: (props: any) => React.JSX.Element;
|
|
26
|
+
export declare const Description: (props: any) => React.JSX.Element;
|
|
27
27
|
declare type StoryLinkProps = {
|
|
28
28
|
kind: string;
|
|
29
29
|
name: string;
|
|
@@ -31,10 +31,10 @@ declare type StoryLinkProps = {
|
|
|
31
31
|
target?: '_self' | '_blank';
|
|
32
32
|
children?: React.ReactNode;
|
|
33
33
|
};
|
|
34
|
-
export declare const StoryLink: ({ kind, name, mode, target, children }: StoryLinkProps) => JSX.Element | null;
|
|
34
|
+
export declare const StoryLink: ({ kind, name, mode, target, children }: StoryLinkProps) => React.JSX.Element | null;
|
|
35
35
|
export declare const DownloadButton: ({ children, href, className, }: {
|
|
36
36
|
children: React.ReactNode;
|
|
37
37
|
href: string;
|
|
38
38
|
className?: string | undefined;
|
|
39
|
-
}) => JSX.Element;
|
|
39
|
+
}) => React.JSX.Element;
|
|
40
40
|
export {};
|
package/helpers/decorators.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const withPadding: (space?: string) => (storyFn: (...args: any) => any) => React.JSX.Element;
|
|
3
|
+
export declare const withBackground: (color?: string) => (storyFn: (...args: any) => any) => React.JSX.Element;
|
|
4
|
+
export declare const withWidth: (width: string) => (storyFn: (...args: any) => any) => React.JSX.Element;
|
package/markdown/Markdown.d.ts
CHANGED
package/markdown/Md.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Components and utils for use with Storybook within DFDS",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.2.0-alpha.
|
|
6
|
+
"version": "2.2.0-alpha.32eece3d",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"@emotion/styled": "11.11.5"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@dfds-ui/icons": "2.2.0-alpha.
|
|
17
|
+
"@dfds-ui/icons": "2.2.0-alpha.32eece3d",
|
|
18
18
|
"react-markdown": "^5.0.3",
|
|
19
19
|
"react-markdown-github-renderers": "^1.0.3"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "32eece3d9838c4d530c5e21b63815021b472c717",
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
}
|