@dfds-ui/storybook-design 2.0.23-alpha.fae88e2e → 2.0.23-alpha.fcaa34df
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 +8 -0
- package/cjs/components/ExampleContainer.js +2 -1
- package/cjs/components/GlobalStorybookStyles.d.ts +2 -0
- package/cjs/components/GlobalStorybookStyles.js +2 -1
- package/cjs/components/MarkdownStory.d.ts +8 -0
- package/cjs/components/MarkdownStory.js +2 -1
- package/cjs/components/Paper.d.ts +8 -0
- package/cjs/components/Paper.js +2 -1
- package/cjs/components/Placeholder.d.ts +7 -0
- package/cjs/components/Placeholder.js +2 -1
- package/cjs/components/StoryPage.d.ts +5 -0
- package/cjs/components/StoryPage.js +2 -1
- package/cjs/components/index.d.ts +6 -0
- package/cjs/createDfdsTheme.d.ts +1 -0
- package/cjs/helpers/components.d.ts +40 -0
- package/cjs/helpers/components.js +4 -2
- package/cjs/helpers/decorators.d.ts +3 -0
- package/cjs/index.d.ts +5 -0
- package/cjs/markdown/Markdown.d.ts +6 -0
- package/cjs/markdown/Markdown.js +2 -1
- package/cjs/markdown/Md.d.ts +2 -0
- package/cjs/markdown/Md.js +2 -1
- package/cjs/markdown/index.d.ts +2 -0
- package/components/ExampleContainer.d.ts +1 -1
- package/components/GlobalStorybookStyles.d.ts +1 -2
- package/components/MarkdownStory.d.ts +1 -2
- package/components/MarkdownStory.js +2 -2
- package/components/Paper.d.ts +1 -1
- package/components/StoryPage.d.ts +1 -1
- package/helpers/components.d.ts +13 -13
- package/helpers/components.js +2 -2
- package/helpers/decorators.d.ts +3 -4
- package/markdown/Markdown.d.ts +1 -1
- package/markdown/Md.d.ts +1 -2
- package/package.json +5 -5
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const ExampleContainer: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
3
|
+
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
} & {
|
|
5
|
+
headline?: string | undefined;
|
|
6
|
+
dark?: boolean | undefined;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export default ExampleContainer;
|
|
@@ -12,4 +12,5 @@ const ExampleContainer = /*#__PURE__*/(0, _base.default)("div", process.env.NODE
|
|
|
12
12
|
target: "e111yhd70",
|
|
13
13
|
label: "ExampleContainer"
|
|
14
14
|
})("background-color:", p => p.dark ? '#002b45' : 'white', ";padding:25px 15px 15px;margin-bottom:16px;border:1px solid #f4f6f8;position:relative;::before{position:absolute;top:2px;content:'", p => p.headline || 'example', "';right:2px;font-size:10px;padding:4px 8px;color:", p => p.dark ? 'white' : 'black', ";background-color:", p => p.dark ? '#031c2b' : '#eee', ";text-transform:uppercase;letter-spacing:1.2px;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0V4YW1wbGVDb250YWluZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUUwRSIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9FeGFtcGxlQ29udGFpbmVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuXG5jb25zdCBFeGFtcGxlQ29udGFpbmVyID0gc3R5bGVkLmRpdjx7IGhlYWRsaW5lPzogc3RyaW5nOyBkYXJrPzogYm9vbGVhbiB9PmBcbiAgYmFja2dyb3VuZC1jb2xvcjogJHsocCkgPT4gKHAuZGFyayA/ICcjMDAyYjQ1JyA6ICd3aGl0ZScpfTtcbiAgcGFkZGluZzogMjVweCAxNXB4IDE1cHg7XG4gIG1hcmdpbi1ib3R0b206IDE2cHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNmNGY2Zjg7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICA6OmJlZm9yZSB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogMnB4O1xuICAgIGNvbnRlbnQ6ICckeyhwKSA9PiBwLmhlYWRsaW5lIHx8ICdleGFtcGxlJ30nO1xuICAgIHJpZ2h0OiAycHg7XG4gICAgZm9udC1zaXplOiAxMHB4O1xuICAgIHBhZGRpbmc6IDRweCA4cHg7XG4gICAgY29sb3I6ICR7KHApID0+IChwLmRhcmsgPyAnd2hpdGUnIDogJ2JsYWNrJyl9O1xuICAgIGJhY2tncm91bmQtY29sb3I6ICR7KHApID0+IChwLmRhcmsgPyAnIzAzMWMyYicgOiAnI2VlZScpfTtcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICAgIGxldHRlci1zcGFjaW5nOiAxLjJweDtcbiAgfVxuYFxuXG5leHBvcnQgZGVmYXVsdCBFeGFtcGxlQ29udGFpbmVyXG4iXX0= */"));
|
|
15
|
-
var _default =
|
|
15
|
+
var _default = ExampleContainer;
|
|
16
|
+
exports.default = _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare type PaperProps = {
|
|
2
|
+
width?: number | string;
|
|
3
|
+
};
|
|
4
|
+
declare const Paper: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
} & PaperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
8
|
+
export default Paper;
|
package/cjs/components/Paper.js
CHANGED
|
@@ -14,4 +14,5 @@ const Paper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "p
|
|
|
14
14
|
})("box-sizing:content-box;background-color:#eaf4fb;padding:10px;width:", ({
|
|
15
15
|
width
|
|
16
16
|
}) => width === undefined ? 'auto' : typeof width === 'number' ? `${width}px` : width, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1BhcGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNb0MiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvUGFwZXIudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5cbnR5cGUgUGFwZXJQcm9wcyA9IHtcbiAgd2lkdGg/OiBudW1iZXIgfCBzdHJpbmdcbn1cblxuY29uc3QgUGFwZXIgPSBzdHlsZWQuZGl2PFBhcGVyUHJvcHM+YFxuICBib3gtc2l6aW5nOiBjb250ZW50LWJveDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2VhZjRmYjtcbiAgcGFkZGluZzogMTBweDtcbiAgd2lkdGg6ICR7KHsgd2lkdGggfSkgPT4gKHdpZHRoID09PSB1bmRlZmluZWQgPyAnYXV0bycgOiB0eXBlb2Ygd2lkdGggPT09ICdudW1iZXInID8gYCR7d2lkdGh9cHhgIDogd2lkdGgpfTtcbmBcblxuZXhwb3J0IGRlZmF1bHQgUGFwZXJcbiJdfQ== */"));
|
|
17
|
-
var _default =
|
|
17
|
+
var _default = Paper;
|
|
18
|
+
exports.default = _default;
|
|
@@ -19,4 +19,5 @@ const Placeholder = _ref => {
|
|
|
19
19
|
css: /*#__PURE__*/(0, _react2.css)("display:flex;margin-left:0;background-image:radial-gradient(circle at 50% 50%, #f8f9f9, #eef0f1);color:#b8b8b7;text-align:center;justify-content:center;align-items:center;font-size:10px;font-weight:300;width:", width, "px;height:", height, "px;" + (process.env.NODE_ENV === "production" ? "" : ";label:Placeholder;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1BsYWNlaG9sZGVyLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRYyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9QbGFjZWhvbGRlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCdcblxudHlwZSBQbGFjZWhvbGRlclByb3BzID0geyB3aWR0aDogbnVtYmVyOyBoZWlnaHQ6IG51bWJlciB9XG5cbmNvbnN0IFBsYWNlaG9sZGVyOiBSZWFjdC5GdW5jdGlvbkNvbXBvbmVudDxQbGFjZWhvbGRlclByb3BzPiA9ICh7IHdpZHRoLCBoZWlnaHQsIC4uLnJlc3QgfSkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIGNzcz17Y3NzYFxuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBtYXJnaW4tbGVmdDogMDtcbiAgICAgICAgYmFja2dyb3VuZC1pbWFnZTogcmFkaWFsLWdyYWRpZW50KGNpcmNsZSBhdCA1MCUgNTAlLCAjZjhmOWY5LCAjZWVmMGYxKTtcbiAgICAgICAgY29sb3I6ICNiOGI4Yjc7XG4gICAgICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgICAgIGZvbnQtc2l6ZTogMTBweDtcbiAgICAgICAgZm9udC13ZWlnaHQ6IDMwMDtcbiAgICAgICAgd2lkdGg6ICR7d2lkdGh9cHg7XG4gICAgICAgIGhlaWdodDogJHtoZWlnaHR9cHg7XG4gICAgICBgfVxuICAgICAgey4uLnJlc3R9XG4gICAgLz5cbiAgKVxufVxuXG5leHBvcnQgZGVmYXVsdCBQbGFjZWhvbGRlclxuIl19 */")
|
|
20
20
|
}, rest));
|
|
21
21
|
};
|
|
22
|
-
var _default =
|
|
22
|
+
var _default = Placeholder;
|
|
23
|
+
exports.default = _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const StoryPage: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
3
|
+
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export default StoryPage;
|
|
@@ -21,4 +21,5 @@ const StoryPage = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV ==
|
|
|
21
21
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1N0b3J5UGFnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRTRCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1N0b3J5UGFnZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcblxuY29uc3QgU3RvcnlQYWdlID0gc3R5bGVkLmRpdmBcbiAgcGFkZGluZzogNXB4IDE1cHg7XG4gIG1heC13aWR0aDogMTYwMHB4O1xuICAmID4gaDIge1xuICAgIC8qIHN0eWxlbGludC1kaXNhYmxlICovXG4gICAgbWFyZ2luLXRvcDogMzBweCAhaW1wb3J0YW50O1xuICAgIC8qIHN0eWxlbGludC1lbmFibGUgKi9cbiAgfVxuYFxuXG5leHBvcnQgZGVmYXVsdCBTdG9yeVBhZ2VcbiJdfQ== */",
|
|
22
22
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
23
|
});
|
|
24
|
-
var _default =
|
|
24
|
+
var _default = StoryPage;
|
|
25
|
+
exports.default = _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as GlobalStorybookStyles } from './GlobalStorybookStyles';
|
|
2
|
+
export { default as StoryPage } from './StoryPage';
|
|
3
|
+
export { default as ExampleContainer } from './ExampleContainer';
|
|
4
|
+
export { default as Paper } from './Paper';
|
|
5
|
+
export { default as Placeholder } from './Placeholder';
|
|
6
|
+
export { default as MarkdownStory } from './MarkdownStory';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function createDfdsTheme(title: string, logo: string): import("@storybook/theming").ThemeVars;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export declare type PreviewProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
gray?: boolean;
|
|
5
|
+
height?: string;
|
|
6
|
+
width?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
mdxSource?: string;
|
|
9
|
+
sourcePath?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const Canvas: ({ gray, height, width, ...rest }: PreviewProps) => JSX.Element;
|
|
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;
|
|
16
|
+
export declare const DeprecatedBanner: ({ headline, children }: {
|
|
17
|
+
headline: string;
|
|
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;
|
|
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;
|
|
27
|
+
declare type StoryLinkProps = {
|
|
28
|
+
kind: string;
|
|
29
|
+
name: string;
|
|
30
|
+
mode?: 'docs' | 'canvas';
|
|
31
|
+
target?: '_self' | '_blank';
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
};
|
|
34
|
+
export declare const StoryLink: ({ kind, name, mode, target, children }: StoryLinkProps) => JSX.Element | null;
|
|
35
|
+
export declare const DownloadButton: ({ children, href, className, }: {
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
href: string;
|
|
38
|
+
className?: string | undefined;
|
|
39
|
+
}) => JSX.Element;
|
|
40
|
+
export {};
|
|
@@ -59,7 +59,8 @@ const Canvas = _ref9 => {
|
|
|
59
59
|
|
|
60
60
|
/** @deprecated use Canvas */
|
|
61
61
|
exports.Canvas = Canvas;
|
|
62
|
-
const Preview =
|
|
62
|
+
const Preview = Canvas;
|
|
63
|
+
exports.Preview = Preview;
|
|
63
64
|
const Source = props => {
|
|
64
65
|
return (0, _react2.jsx)(_addonDocs.Source, props);
|
|
65
66
|
};
|
|
@@ -289,7 +290,8 @@ const ArgsTable = props => {
|
|
|
289
290
|
|
|
290
291
|
/** @deprecated use ArgsTable */
|
|
291
292
|
exports.ArgsTable = ArgsTable;
|
|
292
|
-
const Props =
|
|
293
|
+
const Props = ArgsTable;
|
|
294
|
+
exports.Props = Props;
|
|
293
295
|
const Story = props => {
|
|
294
296
|
return (0, _react2.jsx)(_addonDocs.Story, props);
|
|
295
297
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const withPadding: (space?: string) => (storyFn: (...args: any) => any) => JSX.Element;
|
|
2
|
+
export declare const withBackground: (color?: string) => (storyFn: (...args: any) => any) => JSX.Element;
|
|
3
|
+
export declare const withWidth: (width: string) => (storyFn: (...args: any) => any) => JSX.Element;
|
package/cjs/index.d.ts
ADDED
package/cjs/markdown/Markdown.js
CHANGED
package/cjs/markdown/Md.js
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
|
|
3
|
+
as?: import("react").ElementType<any> | undefined;
|
|
4
4
|
} & {
|
|
5
5
|
headline?: string | undefined;
|
|
6
6
|
dark?: boolean | undefined;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare type MarkdownStoryProps = {
|
|
3
2
|
file: string;
|
|
4
3
|
content: Promise<{
|
|
5
4
|
default: string;
|
|
6
5
|
}>;
|
|
7
6
|
};
|
|
8
|
-
declare const MarkdownStory: ({ file, content }: MarkdownStoryProps) =>
|
|
7
|
+
declare const MarkdownStory: ({ file, content }: MarkdownStoryProps) => JSX.Element;
|
|
9
8
|
export default MarkdownStory;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
3
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { StoryPage, ExampleContainer } from './';
|
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
|
|
6
|
+
as?: import("react").ElementType<any> | 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
|
|
3
|
+
as?: import("react").ElementType<any> | 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) =>
|
|
11
|
+
export declare const Canvas: ({ gray, height, width, ...rest }: PreviewProps) => JSX.Element;
|
|
12
12
|
/** @deprecated use Canvas */
|
|
13
|
-
export declare const Preview: ({ gray, height, width, ...rest }: PreviewProps) =>
|
|
14
|
-
export declare const Source: (props: any) =>
|
|
15
|
-
export declare const LabWarningBanner: () =>
|
|
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;
|
|
16
16
|
export declare const DeprecatedBanner: ({ headline, children }: {
|
|
17
17
|
headline: string;
|
|
18
18
|
children: ReactNode;
|
|
19
|
-
}) =>
|
|
20
|
-
export declare const Meta: ({ title, ...rest }: any) =>
|
|
21
|
-
export declare const DocsContainer: ({ children, ...rest }: any) =>
|
|
22
|
-
export declare const ArgsTable: (props: any) =>
|
|
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;
|
|
23
23
|
/** @deprecated use ArgsTable */
|
|
24
|
-
export declare const Props: (props: any) =>
|
|
25
|
-
export declare const Story: (props: any) =>
|
|
26
|
-
export declare const Description: (props: any) =>
|
|
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;
|
|
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) =>
|
|
34
|
+
export declare const StoryLink: ({ kind, name, mode, target, children }: StoryLinkProps) => 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
|
-
}) =>
|
|
39
|
+
}) => JSX.Element;
|
|
40
40
|
export {};
|
package/helpers/components.js
CHANGED
|
@@ -4,8 +4,8 @@ var _excluded = ["gray", "height", "width"],
|
|
|
4
4
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
5
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
6
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
8
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
9
9
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
10
10
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
11
11
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
package/helpers/decorators.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const withWidth: (width: string) => (storyFn: (...args: any) => any) => React.JSX.Element;
|
|
1
|
+
export declare const withPadding: (space?: string) => (storyFn: (...args: any) => any) => JSX.Element;
|
|
2
|
+
export declare const withBackground: (color?: string) => (storyFn: (...args: any) => any) => JSX.Element;
|
|
3
|
+
export declare const withWidth: (width: string) => (storyFn: (...args: any) => any) => 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.0.23-alpha.
|
|
6
|
+
"version": "2.0.23-alpha.fcaa34df",
|
|
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.0.23-alpha.
|
|
18
|
-
"react-markdown": "
|
|
19
|
-
"react-markdown-github-renderers": "1.0.3"
|
|
17
|
+
"@dfds-ui/icons": "2.0.23-alpha.fcaa34df",
|
|
18
|
+
"react-markdown": "^5.0.3",
|
|
19
|
+
"react-markdown-github-renderers": "^1.0.3"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "fcaa34dffc53346951e4a9334667af288f8f5b47",
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
}
|