@storybook/components 6.4.0-beta.32 → 6.4.0-beta.33
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/dist/cjs/ActionBar/ActionBar.stories.js +7 -7
- package/dist/cjs/ScrollArea/ScrollArea.stories.js +13 -13
- package/dist/cjs/Zoom/Zoom.stories.js +22 -22
- package/dist/cjs/bar/button.js +25 -2
- package/dist/cjs/bar/button.stories.js +10 -3
- package/dist/cjs/blocks/ArgsTable/ArgRow.js +18 -6
- package/dist/cjs/blocks/ArgsTable/ArgRow.stories.js +6 -1
- package/dist/cjs/blocks/ArgsTable/ArgsTable.js +125 -32
- package/dist/cjs/blocks/ArgsTable/ArgsTable.stories.js +6 -1
- package/dist/cjs/blocks/ColorPalette.stories.js +4 -4
- package/dist/cjs/blocks/DocsPage.stories.js +9 -2
- package/dist/cjs/blocks/EmptyBlock.stories.js +4 -4
- package/dist/cjs/blocks/IconGallery.stories.js +4 -4
- package/dist/cjs/blocks/Preview.js +13 -2
- package/dist/cjs/blocks/Preview.stories.js +8 -1
- package/dist/cjs/blocks/Source.js +57 -8
- package/dist/cjs/blocks/Source.stories.js +11 -1
- package/dist/cjs/blocks/Story.js +11 -2
- package/dist/cjs/blocks/Story.stories.js +11 -1
- package/dist/cjs/blocks/Typeset.stories.js +13 -13
- package/dist/cjs/brand/StorybookLogo.stories.js +4 -4
- package/dist/cjs/placeholder/placeholder.stories.js +7 -7
- package/dist/cjs/typography/DocumentWrapper.stories.js +7 -7
- package/dist/esm/ActionBar/ActionBar.stories.js +4 -4
- package/dist/esm/ScrollArea/ScrollArea.stories.js +8 -8
- package/dist/esm/Zoom/Zoom.stories.js +15 -15
- package/dist/esm/bar/button.js +19 -1
- package/dist/esm/bar/button.stories.js +7 -3
- package/dist/esm/blocks/ArgsTable/ArgRow.js +15 -5
- package/dist/esm/blocks/ArgsTable/ArgRow.stories.js +4 -0
- package/dist/esm/blocks/ArgsTable/ArgsTable.js +123 -32
- package/dist/esm/blocks/ArgsTable/ArgsTable.stories.js +4 -0
- package/dist/esm/blocks/ColorPalette.stories.js +2 -2
- package/dist/esm/blocks/DocsPage.stories.js +5 -1
- package/dist/esm/blocks/EmptyBlock.stories.js +2 -2
- package/dist/esm/blocks/IconGallery.stories.js +2 -2
- package/dist/esm/blocks/Preview.js +8 -3
- package/dist/esm/blocks/Preview.stories.js +5 -1
- package/dist/esm/blocks/Source.js +56 -8
- package/dist/esm/blocks/Source.stories.js +7 -0
- package/dist/esm/blocks/Story.js +7 -1
- package/dist/esm/blocks/Story.stories.js +8 -1
- package/dist/esm/blocks/Typeset.stories.js +8 -8
- package/dist/esm/brand/StorybookLogo.stories.js +2 -2
- package/dist/esm/placeholder/placeholder.stories.js +4 -4
- package/dist/esm/typography/DocumentWrapper.stories.js +4 -4
- package/dist/modern/ActionBar/ActionBar.stories.js +4 -4
- package/dist/modern/ScrollArea/ScrollArea.stories.js +8 -8
- package/dist/modern/Zoom/Zoom.stories.js +15 -15
- package/dist/modern/bar/button.js +14 -1
- package/dist/modern/bar/button.stories.js +5 -3
- package/dist/modern/blocks/ArgsTable/ArgRow.js +9 -1
- package/dist/modern/blocks/ArgsTable/ArgRow.stories.js +4 -0
- package/dist/modern/blocks/ArgsTable/ArgsTable.js +99 -12
- package/dist/modern/blocks/ArgsTable/ArgsTable.stories.js +4 -0
- package/dist/modern/blocks/ColorPalette.stories.js +2 -2
- package/dist/modern/blocks/DocsPage.stories.js +3 -1
- package/dist/modern/blocks/EmptyBlock.stories.js +2 -2
- package/dist/modern/blocks/IconGallery.stories.js +2 -2
- package/dist/modern/blocks/Preview.js +6 -3
- package/dist/modern/blocks/Preview.stories.js +3 -1
- package/dist/modern/blocks/Source.js +44 -0
- package/dist/modern/blocks/Source.stories.js +5 -0
- package/dist/modern/blocks/Story.js +5 -1
- package/dist/modern/blocks/Story.stories.js +6 -1
- package/dist/modern/blocks/Typeset.stories.js +8 -8
- package/dist/modern/brand/StorybookLogo.stories.js +2 -2
- package/dist/modern/placeholder/placeholder.stories.js +4 -4
- package/dist/modern/typography/DocumentWrapper.stories.js +4 -4
- package/dist/ts3.4/bar/button.d.ts +1 -0
- package/dist/ts3.4/blocks/ArgsTable/ArgRow.d.ts +7 -1
- package/dist/ts3.4/blocks/ArgsTable/ArgsTable.d.ts +8 -2
- package/dist/ts3.4/blocks/Preview.d.ts +2 -2
- package/dist/ts3.4/blocks/Source.d.ts +1 -0
- package/dist/ts3.4/blocks/Story.d.ts +4 -3
- package/dist/ts3.9/bar/button.d.ts +1 -0
- package/dist/ts3.9/blocks/ArgsTable/ArgRow.d.ts +7 -1
- package/dist/ts3.9/blocks/ArgsTable/ArgsTable.d.ts +8 -2
- package/dist/ts3.9/blocks/Preview.d.ts +2 -2
- package/dist/ts3.9/blocks/Source.d.ts +1 -0
- package/dist/ts3.9/blocks/Story.d.ts +4 -3
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { Story, StoryError } from './Story';
|
|
2
|
+
import { Story, StorySkeleton, StoryError } from './Story';
|
|
3
3
|
import { Button } from '../Button/Button';
|
|
4
4
|
export default {
|
|
5
5
|
title: 'Docs/Story',
|
|
@@ -21,17 +21,22 @@ const buttonHookFn = () => {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
buttonHookFn.displayName = "buttonHookFn";
|
|
24
|
+
export const Loading = () => /*#__PURE__*/React.createElement(StorySkeleton, null);
|
|
25
|
+
Loading.displayName = "Loading";
|
|
24
26
|
export const Inline = () => /*#__PURE__*/React.createElement(Story, {
|
|
27
|
+
id: "id",
|
|
25
28
|
inline: true,
|
|
26
29
|
storyFn: buttonFn,
|
|
27
30
|
title: "hello button"
|
|
28
31
|
});
|
|
29
32
|
Inline.displayName = "Inline";
|
|
30
33
|
export const Error = () => /*#__PURE__*/React.createElement(Story, {
|
|
34
|
+
id: "id",
|
|
31
35
|
error: StoryError.NO_STORY
|
|
32
36
|
});
|
|
33
37
|
Error.displayName = "Error";
|
|
34
38
|
export const ReactHook = () => /*#__PURE__*/React.createElement(Story, {
|
|
39
|
+
id: "id",
|
|
35
40
|
inline: true,
|
|
36
41
|
storyFn: buttonHookFn,
|
|
37
42
|
title: "hello button"
|
|
@@ -7,23 +7,23 @@ export default {
|
|
|
7
7
|
const fontSizes = ['12px', '14px', '16px', '20px', '24px', '32px', '40px', '48px'];
|
|
8
8
|
const fontWeight = 900;
|
|
9
9
|
const fontFamily = 'monospace';
|
|
10
|
-
export const
|
|
10
|
+
export const WithFontSizes = () => /*#__PURE__*/React.createElement(Typeset, {
|
|
11
11
|
fontSizes: fontSizes
|
|
12
12
|
});
|
|
13
|
-
|
|
14
|
-
export const
|
|
13
|
+
WithFontSizes.displayName = "WithFontSizes";
|
|
14
|
+
export const WithFontWeight = () => /*#__PURE__*/React.createElement(Typeset, {
|
|
15
15
|
fontSizes: fontSizes,
|
|
16
16
|
fontWeight: fontWeight
|
|
17
17
|
});
|
|
18
|
-
|
|
19
|
-
export const
|
|
18
|
+
WithFontWeight.displayName = "WithFontWeight";
|
|
19
|
+
export const WithFontFamily = () => /*#__PURE__*/React.createElement(Typeset, {
|
|
20
20
|
fontSizes: fontSizes,
|
|
21
21
|
fontFamily: fontFamily
|
|
22
22
|
});
|
|
23
|
-
|
|
24
|
-
export const
|
|
23
|
+
WithFontFamily.displayName = "WithFontFamily";
|
|
24
|
+
export const WithWeightText = () => /*#__PURE__*/React.createElement(Typeset, {
|
|
25
25
|
fontSizes: fontSizes,
|
|
26
26
|
fontWeight: fontWeight,
|
|
27
27
|
sampleText: "Heading"
|
|
28
28
|
});
|
|
29
|
-
|
|
29
|
+
WithWeightText.displayName = "WithWeightText";
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
component: StorybookLogo,
|
|
5
5
|
title: 'Basics/Brand/StorybookLogo'
|
|
6
6
|
};
|
|
7
|
-
export const
|
|
7
|
+
export const Normal = () => /*#__PURE__*/React.createElement(StorybookLogo, {
|
|
8
8
|
alt: "Storybook logo"
|
|
9
9
|
});
|
|
10
|
-
|
|
10
|
+
Normal.displayName = "Normal";
|
|
@@ -5,9 +5,9 @@ export default {
|
|
|
5
5
|
component: Placeholder,
|
|
6
6
|
title: 'Basics/Placeholder'
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
9
|
-
|
|
10
|
-
export const
|
|
8
|
+
export const SingleChild = () => /*#__PURE__*/React.createElement(Placeholder, null, "This is a placeholder with single child, it's bolded");
|
|
9
|
+
SingleChild.displayName = "SingleChild";
|
|
10
|
+
export const TwoChildren = () => /*#__PURE__*/React.createElement(Placeholder, null, /*#__PURE__*/React.createElement(Fragment, {
|
|
11
11
|
key: "title"
|
|
12
12
|
}, "This has two children, the first bold"), /*#__PURE__*/React.createElement(Fragment, {
|
|
13
13
|
key: "desc"
|
|
@@ -16,4 +16,4 @@ export const twoChildren = () => /*#__PURE__*/React.createElement(Placeholder, n
|
|
|
16
16
|
secondary: true,
|
|
17
17
|
cancel: false
|
|
18
18
|
}, "link")));
|
|
19
|
-
|
|
19
|
+
TwoChildren.displayName = "TwoChildren";
|
|
@@ -10,9 +10,9 @@ export default {
|
|
|
10
10
|
}
|
|
11
11
|
}, storyFn())]
|
|
12
12
|
};
|
|
13
|
-
export const
|
|
14
|
-
|
|
15
|
-
export const
|
|
13
|
+
export const WithMarkdown = () => /*#__PURE__*/React.createElement(DocumentWrapper, null, /*#__PURE__*/React.createElement(MarkdownSample, null));
|
|
14
|
+
WithMarkdown.displayName = "WithMarkdown";
|
|
15
|
+
export const WithDOM = () => /*#__PURE__*/React.createElement(DocumentWrapper, null, /*#__PURE__*/React.createElement("h1", null, "h1 Heading"), /*#__PURE__*/React.createElement("h2", null, "h2 Heading"), /*#__PURE__*/React.createElement("h3", null, "h3 Heading"), /*#__PURE__*/React.createElement("h4", null, "h4 Heading"), /*#__PURE__*/React.createElement("h5", null, "h5 Heading"), /*#__PURE__*/React.createElement("h6", null, "h6 Heading"), /*#__PURE__*/React.createElement("h2", null, "Typographic replacements"), /*#__PURE__*/React.createElement("p", null, "Enable typographer option to see result."), /*#__PURE__*/React.createElement("p", null, "\xA9 \xA9 \xAE \xAE \u2122 \u2122 \xA7 \xA7 \xB1"), /*#__PURE__*/React.createElement("p", null, "test\u2026 test\u2026 test\u2026 test?.. test!.."), /*#__PURE__*/React.createElement("p", null, "!!! ??? , \u2013 \u2014"), /*#__PURE__*/React.createElement("p", null, "\u201CSmartypants, double quotes\u201D and \u2018single quotes\u2019"), /*#__PURE__*/React.createElement("h2", null, "Emphasis"), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("strong", null, "This is bold text")), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("strong", null, "This is bold text")), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("em", null, "This is italic text")), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("em", null, "This is italic text")), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("em", null, /*#__PURE__*/React.createElement("strong", null, "This is bold italic text"))), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement("s", null, "Strikethrough")), /*#__PURE__*/React.createElement("h2", null, "Blockquotes"), /*#__PURE__*/React.createElement("blockquote", null, /*#__PURE__*/React.createElement("p", null, "Blockquotes can also be nested\u2026"), /*#__PURE__*/React.createElement("blockquote", null, /*#__PURE__*/React.createElement("p", null, "\u2026by using additional greater-than signs right next to each other\u2026"), /*#__PURE__*/React.createElement("blockquote", null, /*#__PURE__*/React.createElement("p", null, "\u2026or with spaces between arrows.")))), /*#__PURE__*/React.createElement("h2", null, "Lists"), /*#__PURE__*/React.createElement("p", null, "Unordered"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Create a list by starting a line with ", /*#__PURE__*/React.createElement("code", null, "+"), ", ", /*#__PURE__*/React.createElement("code", null, "-"), ", or ", /*#__PURE__*/React.createElement("code", null, "*")), /*#__PURE__*/React.createElement("li", null, "Sub-lists are made by indenting 2 spaces:", /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Marker character change forces new list start:", /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Ac tristique libero volutpat at")), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Facilisis in pretium nisl aliquet")), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Nulla volutpat aliquam velit"))))), /*#__PURE__*/React.createElement("li", null, "Very easy!")), /*#__PURE__*/React.createElement("p", null, "Ordered"), /*#__PURE__*/React.createElement("ol", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("p", null, "Lorem ipsum dolor sit amet")), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("p", null, "Consectetur adipiscing elit")), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("p", null, "Integer molestie lorem at massa")), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("p", null, "You can use sequential numbers\u2026")), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("p", null, "\u2026or keep all the numbers as ", /*#__PURE__*/React.createElement("code", null, "1.")))), /*#__PURE__*/React.createElement("p", null, "Start numbering with offset:"), /*#__PURE__*/React.createElement("ol", {
|
|
16
16
|
start: 57
|
|
17
17
|
}, /*#__PURE__*/React.createElement("li", null, "foo"), /*#__PURE__*/React.createElement("li", null, "bar")), /*#__PURE__*/React.createElement("h2", null, "Horizontal Rule"), /*#__PURE__*/React.createElement("hr", null), /*#__PURE__*/React.createElement("h2", null, "Tables"), /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", null, "Option"), /*#__PURE__*/React.createElement("th", null, "Description"))), /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, "data"), /*#__PURE__*/React.createElement("td", null, "path to data files to supply the data that will be passed into templates.")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, "engine"), /*#__PURE__*/React.createElement("td", null, "engine to be used for processing templates. Handlebars is the default.")), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", null, "ext"), /*#__PURE__*/React.createElement("td", null, "extension to be used for dest files.")))), /*#__PURE__*/React.createElement("p", null, "Right aligned columns"), /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", {
|
|
18
18
|
style: {
|
|
@@ -61,4 +61,4 @@ export const withDOM = () => /*#__PURE__*/React.createElement(DocumentWrapper, n
|
|
|
61
61
|
alt: "Stormtroopocat",
|
|
62
62
|
title: "The Stormtroopocat"
|
|
63
63
|
})));
|
|
64
|
-
|
|
64
|
+
WithDOM.displayName = "WithDOM";
|
|
@@ -23,4 +23,5 @@ export declare const IconButton: import("@emotion/styled-base").StyledComponent<
|
|
|
23
23
|
}) | (Pick<LinkProps, "color" | "translate" | "hidden" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "type" | "href" | "referrerPolicy" | "media" | "target" | "download" | "hrefLang" | "ping" | "rel"> & {
|
|
24
24
|
ref?: ((instance: HTMLAnchorElement) => void) | React.RefObject<HTMLAnchorElement>;
|
|
25
25
|
}), IconButtonProps, import("@storybook/theming").Theme>;
|
|
26
|
+
export declare const IconButtonSkeleton: () => JSX.Element;
|
|
26
27
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ArgType, Args } from './types';
|
|
3
|
-
|
|
3
|
+
interface ArgRowData {
|
|
4
4
|
row: ArgType;
|
|
5
5
|
arg: any;
|
|
6
6
|
updateArgs?: (args: Args) => void;
|
|
@@ -8,4 +8,10 @@ export interface ArgRowProps {
|
|
|
8
8
|
expandable?: boolean;
|
|
9
9
|
initialExpandedArgs?: boolean;
|
|
10
10
|
}
|
|
11
|
+
interface ArgRowLoading {
|
|
12
|
+
isLoading: true;
|
|
13
|
+
}
|
|
14
|
+
export declare const argRowLoadingData: ArgRowData;
|
|
15
|
+
export declare type ArgRowProps = ArgRowData | ArgRowLoading;
|
|
11
16
|
export declare const ArgRow: FC<ArgRowProps>;
|
|
17
|
+
export {};
|
|
@@ -9,7 +9,7 @@ export declare enum ArgsTableError {
|
|
|
9
9
|
ARGS_UNSUPPORTED = "Args unsupported. See Args documentation for your framework."
|
|
10
10
|
}
|
|
11
11
|
export declare type SortType = 'alpha' | 'requiredFirst' | 'none';
|
|
12
|
-
export interface
|
|
12
|
+
export interface ArgsTableData {
|
|
13
13
|
rows: ArgTypes;
|
|
14
14
|
args?: Args;
|
|
15
15
|
updateArgs?: (args: Args) => void;
|
|
@@ -17,14 +17,20 @@ export interface ArgsTableRowProps {
|
|
|
17
17
|
compact?: boolean;
|
|
18
18
|
inAddonPanel?: boolean;
|
|
19
19
|
initialExpandedArgs?: boolean;
|
|
20
|
+
isLoading?: boolean;
|
|
20
21
|
sort?: SortType;
|
|
21
22
|
}
|
|
22
23
|
export interface ArgsTableErrorProps {
|
|
23
24
|
error: ArgsTableError;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
+
interface ArgTableLoading {
|
|
27
|
+
isLoading: true;
|
|
28
|
+
}
|
|
29
|
+
export declare const argTableLoadingData: ArgsTableData;
|
|
30
|
+
export declare type ArgsTableProps = ArgsTableData | ArgsTableErrorProps | ArgTableLoading;
|
|
26
31
|
/**
|
|
27
32
|
* Display the props for a component as a props table. Each row is a collection of
|
|
28
33
|
* ArgDefs, usually derived from docgen info for the component.
|
|
29
34
|
*/
|
|
30
35
|
export declare const ArgsTable: FC<ArgsTableProps>;
|
|
36
|
+
export {};
|
|
@@ -15,5 +15,5 @@ export interface PreviewProps {
|
|
|
15
15
|
* items. The preview also shows the source for the component
|
|
16
16
|
* as a drop-down.
|
|
17
17
|
*/
|
|
18
|
-
declare const Preview: FunctionComponent<PreviewProps>;
|
|
19
|
-
export
|
|
18
|
+
export declare const Preview: FunctionComponent<PreviewProps>;
|
|
19
|
+
export declare const PreviewSkeleton: () => JSX.Element;
|
|
@@ -4,7 +4,7 @@ export declare enum StoryError {
|
|
|
4
4
|
NO_STORY = "No component or story to display"
|
|
5
5
|
}
|
|
6
6
|
interface CommonProps {
|
|
7
|
-
title
|
|
7
|
+
title?: string;
|
|
8
8
|
height?: string;
|
|
9
9
|
id: string;
|
|
10
10
|
}
|
|
@@ -19,7 +19,8 @@ declare type StoryProps = InlineStoryProps | IFrameStoryProps;
|
|
|
19
19
|
* with configurable height.
|
|
20
20
|
*/
|
|
21
21
|
declare const Story: FunctionComponent<StoryProps & {
|
|
22
|
-
inline
|
|
22
|
+
inline?: boolean;
|
|
23
23
|
error?: StoryError;
|
|
24
24
|
}>;
|
|
25
|
-
|
|
25
|
+
declare const StorySkeleton: () => JSX.Element;
|
|
26
|
+
export { Story, StorySkeleton };
|
|
@@ -23,4 +23,5 @@ export declare const IconButton: import("@emotion/styled-base").StyledComponent<
|
|
|
23
23
|
}) | (Pick<LinkProps, "color" | "translate" | "hidden" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "type" | "href" | "referrerPolicy" | "media" | "target" | "download" | "hrefLang" | "ping" | "rel"> & {
|
|
24
24
|
ref?: ((instance: HTMLAnchorElement) => void) | React.RefObject<HTMLAnchorElement>;
|
|
25
25
|
}), IconButtonProps, import("@storybook/theming").Theme>;
|
|
26
|
+
export declare const IconButtonSkeleton: () => JSX.Element;
|
|
26
27
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ArgType, Args } from './types';
|
|
3
|
-
|
|
3
|
+
interface ArgRowData {
|
|
4
4
|
row: ArgType;
|
|
5
5
|
arg: any;
|
|
6
6
|
updateArgs?: (args: Args) => void;
|
|
@@ -8,4 +8,10 @@ export interface ArgRowProps {
|
|
|
8
8
|
expandable?: boolean;
|
|
9
9
|
initialExpandedArgs?: boolean;
|
|
10
10
|
}
|
|
11
|
+
interface ArgRowLoading {
|
|
12
|
+
isLoading: true;
|
|
13
|
+
}
|
|
14
|
+
export declare const argRowLoadingData: ArgRowData;
|
|
15
|
+
export declare type ArgRowProps = ArgRowData | ArgRowLoading;
|
|
11
16
|
export declare const ArgRow: FC<ArgRowProps>;
|
|
17
|
+
export {};
|
|
@@ -9,7 +9,7 @@ export declare enum ArgsTableError {
|
|
|
9
9
|
ARGS_UNSUPPORTED = "Args unsupported. See Args documentation for your framework."
|
|
10
10
|
}
|
|
11
11
|
export declare type SortType = 'alpha' | 'requiredFirst' | 'none';
|
|
12
|
-
export interface
|
|
12
|
+
export interface ArgsTableData {
|
|
13
13
|
rows: ArgTypes;
|
|
14
14
|
args?: Args;
|
|
15
15
|
updateArgs?: (args: Args) => void;
|
|
@@ -17,14 +17,20 @@ export interface ArgsTableRowProps {
|
|
|
17
17
|
compact?: boolean;
|
|
18
18
|
inAddonPanel?: boolean;
|
|
19
19
|
initialExpandedArgs?: boolean;
|
|
20
|
+
isLoading?: boolean;
|
|
20
21
|
sort?: SortType;
|
|
21
22
|
}
|
|
22
23
|
export interface ArgsTableErrorProps {
|
|
23
24
|
error: ArgsTableError;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
+
interface ArgTableLoading {
|
|
27
|
+
isLoading: true;
|
|
28
|
+
}
|
|
29
|
+
export declare const argTableLoadingData: ArgsTableData;
|
|
30
|
+
export declare type ArgsTableProps = ArgsTableData | ArgsTableErrorProps | ArgTableLoading;
|
|
26
31
|
/**
|
|
27
32
|
* Display the props for a component as a props table. Each row is a collection of
|
|
28
33
|
* ArgDefs, usually derived from docgen info for the component.
|
|
29
34
|
*/
|
|
30
35
|
export declare const ArgsTable: FC<ArgsTableProps>;
|
|
36
|
+
export {};
|
|
@@ -15,5 +15,5 @@ export interface PreviewProps {
|
|
|
15
15
|
* items. The preview also shows the source for the component
|
|
16
16
|
* as a drop-down.
|
|
17
17
|
*/
|
|
18
|
-
declare const Preview: FunctionComponent<PreviewProps>;
|
|
19
|
-
export
|
|
18
|
+
export declare const Preview: FunctionComponent<PreviewProps>;
|
|
19
|
+
export declare const PreviewSkeleton: () => JSX.Element;
|
|
@@ -4,7 +4,7 @@ export declare enum StoryError {
|
|
|
4
4
|
NO_STORY = "No component or story to display"
|
|
5
5
|
}
|
|
6
6
|
interface CommonProps {
|
|
7
|
-
title
|
|
7
|
+
title?: string;
|
|
8
8
|
height?: string;
|
|
9
9
|
id: string;
|
|
10
10
|
}
|
|
@@ -19,7 +19,8 @@ declare type StoryProps = InlineStoryProps | IFrameStoryProps;
|
|
|
19
19
|
* with configurable height.
|
|
20
20
|
*/
|
|
21
21
|
declare const Story: FunctionComponent<StoryProps & {
|
|
22
|
-
inline
|
|
22
|
+
inline?: boolean;
|
|
23
23
|
error?: StoryError;
|
|
24
24
|
}>;
|
|
25
|
-
|
|
25
|
+
declare const StorySkeleton: () => JSX.Element;
|
|
26
|
+
export { Story, StorySkeleton };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/components",
|
|
3
|
-
"version": "6.4.0-beta.
|
|
3
|
+
"version": "6.4.0-beta.33",
|
|
4
4
|
"description": "Core Storybook Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@popperjs/core": "^2.6.0",
|
|
44
|
-
"@storybook/client-logger": "6.4.0-beta.
|
|
44
|
+
"@storybook/client-logger": "6.4.0-beta.33",
|
|
45
45
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
46
|
-
"@storybook/theming": "6.4.0-beta.
|
|
46
|
+
"@storybook/theming": "6.4.0-beta.33",
|
|
47
47
|
"@types/color-convert": "^2.0.0",
|
|
48
48
|
"@types/overlayscrollbars": "^1.12.0",
|
|
49
49
|
"@types/react-syntax-highlighter": "11.0.5",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "c85171dc319d1d3a31eee1b762f01ba84ae45194",
|
|
80
80
|
"sbmodern": "dist/modern/index.js"
|
|
81
81
|
}
|