@storybook/components 6.5.0-alpha.3 → 6.5.0-alpha.30
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.js +4 -2
- package/dist/cjs/ActionBar/ActionBar.stories.js +1 -1
- package/dist/cjs/Button/Button.js +8 -6
- package/dist/cjs/Loader/Loader.js +12 -8
- package/dist/cjs/Loader/Loader.stories.js +1 -1
- package/dist/cjs/ScrollArea/GlobalScrollAreaStyles.js +1 -1
- package/dist/cjs/ScrollArea/OverlayScrollbars.js +33 -14
- package/dist/cjs/ScrollArea/ScrollArea.js +12 -11
- package/dist/cjs/ScrollArea/ScrollArea.stories.js +6 -6
- package/dist/cjs/Zoom/Zoom.js +1 -1
- package/dist/cjs/Zoom/Zoom.stories.js +9 -7
- package/dist/cjs/Zoom/ZoomElement.js +9 -8
- package/dist/cjs/Zoom/ZoomIFrame.js +8 -8
- package/dist/cjs/addon-panel/addon-panel.js +5 -5
- package/dist/cjs/bar/bar.js +16 -10
- package/dist/cjs/bar/button.js +6 -4
- package/dist/cjs/bar/button.stories.js +1 -1
- package/dist/cjs/bar/separator.js +7 -7
- package/dist/cjs/blocks/ArgsTable/ArgControl.js +8 -6
- package/dist/cjs/blocks/ArgsTable/ArgJsDoc.js +5 -3
- package/dist/cjs/blocks/ArgsTable/ArgRow.js +2 -2
- package/dist/cjs/blocks/ArgsTable/ArgRow.stories.js +3 -3
- package/dist/cjs/blocks/ArgsTable/ArgValue.js +12 -12
- package/dist/cjs/blocks/ArgsTable/ArgsTable.js +12 -8
- package/dist/cjs/blocks/ArgsTable/ArgsTable.stories.js +6 -6
- package/dist/cjs/blocks/ArgsTable/SectionRow.js +8 -6
- package/dist/cjs/blocks/ArgsTable/SectionRow.stories.js +3 -3
- package/dist/cjs/blocks/ArgsTable/TabbedArgsTable.js +10 -6
- package/dist/cjs/blocks/ArgsTable/TabbedArgsTable.stories.js +1 -1
- package/dist/cjs/blocks/ArgsTable/index.js +2 -0
- package/dist/cjs/blocks/ColorPalette.js +5 -3
- package/dist/cjs/blocks/ColorPalette.stories.js +1 -1
- package/dist/cjs/blocks/Description.js +4 -4
- package/dist/cjs/blocks/Description.stories.js +1 -1
- package/dist/cjs/blocks/DocsPage.js +4 -4
- package/dist/cjs/blocks/DocsPage.stories.js +6 -6
- package/dist/cjs/blocks/EmptyBlock.js +2 -2
- package/dist/cjs/blocks/EmptyBlock.stories.js +1 -1
- package/dist/cjs/blocks/IFrame.js +13 -11
- package/dist/cjs/blocks/IconGallery.js +6 -4
- package/dist/cjs/blocks/IconGallery.stories.js +1 -1
- package/dist/cjs/blocks/Preview.js +16 -12
- package/dist/cjs/blocks/Preview.stories.js +6 -6
- package/dist/cjs/blocks/Source.js +6 -4
- package/dist/cjs/blocks/Source.stories.js +1 -1
- package/dist/cjs/blocks/Story.js +16 -10
- package/dist/cjs/blocks/Story.stories.js +9 -7
- package/dist/cjs/blocks/Toolbar.js +11 -9
- package/dist/cjs/blocks/Typeset.js +5 -3
- package/dist/cjs/blocks/Typeset.stories.js +1 -1
- package/dist/cjs/blocks/index.js +2 -0
- package/dist/cjs/brand/StorybookLogo.js +5 -3
- package/dist/cjs/brand/StorybookLogo.stories.js +1 -1
- package/dist/cjs/controls/Boolean.js +5 -5
- package/dist/cjs/controls/Boolean.stories.js +9 -7
- package/dist/cjs/controls/Color.js +13 -11
- package/dist/cjs/controls/Color.stories.js +9 -7
- package/dist/cjs/controls/Date.js +8 -8
- package/dist/cjs/controls/Date.stories.js +9 -7
- package/dist/cjs/controls/Files.js +7 -5
- package/dist/cjs/controls/Number.js +17 -8
- package/dist/cjs/controls/Number.stories.js +9 -7
- package/dist/cjs/controls/Object.js +8 -6
- package/dist/cjs/controls/Object.stories.js +9 -7
- package/dist/cjs/controls/Range.js +7 -7
- package/dist/cjs/controls/Range.stories.js +9 -7
- package/dist/cjs/controls/Text.js +8 -6
- package/dist/cjs/controls/Text.stories.js +9 -7
- package/dist/cjs/controls/helpers.js +2 -2
- package/dist/cjs/controls/index.js +8 -8
- package/dist/cjs/controls/options/Checkbox.js +9 -7
- package/dist/cjs/controls/options/Options.js +2 -0
- package/dist/cjs/controls/options/Options.stories.js +9 -7
- package/dist/cjs/controls/options/Select.js +2 -0
- package/dist/cjs/controls/options/helpers.js +7 -5
- package/dist/cjs/controls/options/index.js +2 -0
- package/dist/cjs/controls/react-editable-json-tree/JsonNodes.js +1748 -0
- package/dist/cjs/controls/react-editable-json-tree/index.js +36 -83
- package/dist/cjs/controls/react-editable-json-tree/types/dataTypes.js +12 -15
- package/dist/cjs/controls/react-editable-json-tree/types/inputUsageTypes.js +3 -6
- package/dist/cjs/controls/react-editable-json-tree/utils/objectTypes.js +3 -3
- package/dist/cjs/controls/react-editable-json-tree/utils/parse.js +2 -5
- package/dist/cjs/controls/react-editable-json-tree/utils/styles.js +1 -1
- package/dist/cjs/controls/types.js +5 -1
- package/dist/cjs/form/field/field.js +3 -1
- package/dist/cjs/form/form.stories.js +5 -3
- package/dist/cjs/form/input/input.js +15 -10
- package/dist/cjs/html.js +2 -0
- package/dist/cjs/icon/icon.js +28 -7
- package/dist/cjs/icon/icon.stories.js +2 -0
- package/dist/cjs/icon/icons.js +1 -1
- package/dist/cjs/index.js +296 -73
- package/dist/cjs/placeholder/placeholder.js +15 -9
- package/dist/cjs/placeholder/placeholder.stories.js +6 -6
- package/dist/cjs/spaced/Spaced.js +3 -1
- package/dist/cjs/syntaxhighlighter/lazy-syntaxhighlighter.js +8 -8
- package/dist/cjs/syntaxhighlighter/syntaxhighlighter-types.js +5 -1
- package/dist/cjs/syntaxhighlighter/syntaxhighlighter.js +15 -10
- package/dist/cjs/syntaxhighlighter/syntaxhighlighter.stories.js +5 -5
- package/dist/cjs/tabs/tabs.js +13 -11
- package/dist/cjs/tabs/tabs.stories.js +6 -4
- package/dist/cjs/tooltip/ListItem.js +7 -4
- package/dist/cjs/tooltip/Tooltip.js +5 -3
- package/dist/cjs/tooltip/TooltipLinkList.js +12 -9
- package/dist/cjs/tooltip/TooltipLinkList.stories.js +5 -5
- package/dist/cjs/tooltip/TooltipMessage.js +3 -1
- package/dist/cjs/tooltip/TooltipNote.js +3 -1
- package/dist/cjs/tooltip/WithTooltip.js +14 -9
- package/dist/cjs/tooltip/lazy-WithTooltip.js +9 -10
- package/dist/cjs/typography/DocumentFormatting.js +6 -555
- package/dist/cjs/typography/DocumentWrapper.stories.js +1 -1
- package/dist/cjs/typography/ResetWrapper.js +21 -0
- package/dist/cjs/typography/components.js +126 -0
- package/dist/cjs/typography/elements/A.js +36 -0
- package/dist/cjs/typography/elements/Blockquote.js +27 -0
- package/dist/cjs/typography/elements/Code.js +109 -0
- package/dist/cjs/typography/elements/DL.js +44 -0
- package/dist/cjs/typography/elements/Div.js +14 -0
- package/dist/cjs/typography/elements/H1.js +20 -0
- package/dist/cjs/typography/elements/H2.js +21 -0
- package/dist/cjs/typography/elements/H3.js +19 -0
- package/dist/cjs/typography/elements/H4.js +19 -0
- package/dist/cjs/typography/elements/H5.js +19 -0
- package/dist/cjs/typography/elements/H6.js +20 -0
- package/dist/cjs/typography/elements/HR.js +20 -0
- package/dist/cjs/typography/elements/Img.js +14 -0
- package/dist/cjs/typography/elements/LI.js +31 -0
- package/dist/cjs/typography/elements/Link.js +44 -0
- package/dist/cjs/typography/elements/OL.js +28 -0
- package/dist/cjs/typography/elements/P.js +24 -0
- package/dist/cjs/typography/elements/Pre.js +53 -0
- package/dist/cjs/typography/elements/Span.js +92 -0
- package/dist/cjs/typography/elements/TT.js +14 -0
- package/dist/cjs/typography/elements/Table.js +50 -0
- package/dist/cjs/typography/elements/UL.js +28 -0
- package/dist/cjs/typography/{shared.js → lib/common.js} +1 -1
- package/dist/cjs/typography/lib/isReactChildString.js +12 -0
- package/dist/cjs/typography/link/link.js +5 -3
- package/dist/cjs/utils/getStoryHref.js +71 -0
- package/dist/esm/ActionBar/ActionBar.js +5 -3
- package/dist/esm/Button/Button.js +3 -1
- package/dist/esm/Loader/Loader.js +5 -3
- package/dist/esm/ScrollArea/OverlayScrollbars.js +12 -10
- package/dist/esm/ScrollArea/ScrollArea.js +7 -5
- package/dist/esm/Zoom/Zoom.js +4 -4
- package/dist/esm/Zoom/Zoom.stories.js +3 -2
- package/dist/esm/Zoom/ZoomElement.js +5 -4
- package/dist/esm/Zoom/ZoomIFrame.js +6 -6
- package/dist/esm/bar/bar.js +7 -4
- package/dist/esm/bar/button.js +2 -1
- package/dist/esm/bar/separator.js +1 -0
- package/dist/esm/blocks/ArgsTable/ArgControl.js +3 -2
- package/dist/esm/blocks/ArgsTable/ArgJsDoc.js +2 -1
- package/dist/esm/blocks/ArgsTable/ArgRow.js +1 -1
- package/dist/esm/blocks/ArgsTable/ArgRow.stories.js +1 -1
- package/dist/esm/blocks/ArgsTable/ArgValue.js +5 -5
- package/dist/esm/blocks/ArgsTable/ArgsTable.js +6 -4
- package/dist/esm/blocks/ArgsTable/SectionRow.js +3 -2
- package/dist/esm/blocks/ArgsTable/SectionRow.stories.js +1 -1
- package/dist/esm/blocks/ArgsTable/TabbedArgsTable.js +17 -14
- package/dist/esm/blocks/ColorPalette.js +4 -2
- package/dist/esm/blocks/Description.js +2 -2
- package/dist/esm/blocks/DocsPage.js +1 -1
- package/dist/esm/blocks/EmptyBlock.js +1 -1
- package/dist/esm/blocks/IFrame.js +16 -14
- package/dist/esm/blocks/IconGallery.js +4 -2
- package/dist/esm/blocks/Preview.js +17 -15
- package/dist/esm/blocks/Source.js +2 -1
- package/dist/esm/blocks/Story.js +10 -5
- package/dist/esm/blocks/Story.stories.js +3 -2
- package/dist/esm/blocks/Toolbar.js +8 -6
- package/dist/esm/blocks/Typeset.js +6 -4
- package/dist/esm/brand/StorybookLogo.js +2 -1
- package/dist/esm/controls/Boolean.stories.js +3 -2
- package/dist/esm/controls/Color.js +7 -5
- package/dist/esm/controls/Color.stories.js +3 -2
- package/dist/esm/controls/Date.js +3 -3
- package/dist/esm/controls/Date.stories.js +3 -2
- package/dist/esm/controls/Files.js +4 -3
- package/dist/esm/controls/Number.js +11 -3
- package/dist/esm/controls/Number.stories.js +3 -2
- package/dist/esm/controls/Object.js +4 -4
- package/dist/esm/controls/Object.stories.js +3 -2
- package/dist/esm/controls/Range.js +1 -1
- package/dist/esm/controls/Range.stories.js +3 -2
- package/dist/esm/controls/Text.js +3 -2
- package/dist/esm/controls/Text.stories.js +3 -2
- package/dist/esm/controls/helpers.js +1 -1
- package/dist/esm/controls/index.js +3 -3
- package/dist/esm/controls/options/Checkbox.js +4 -3
- package/dist/esm/controls/options/Options.js +1 -0
- package/dist/esm/controls/options/Options.stories.js +3 -2
- package/dist/esm/controls/options/Select.js +1 -0
- package/dist/esm/controls/options/helpers.js +4 -3
- package/dist/esm/controls/react-editable-json-tree/JsonNodes.js +1703 -0
- package/dist/esm/controls/react-editable-json-tree/index.js +29 -73
- package/dist/esm/controls/react-editable-json-tree/types/dataTypes.js +1 -13
- package/dist/esm/controls/react-editable-json-tree/types/deltaTypes.js +1 -3
- package/dist/esm/controls/react-editable-json-tree/types/inputUsageTypes.js +1 -4
- package/dist/esm/controls/react-editable-json-tree/utils/objectTypes.js +5 -9
- package/dist/esm/controls/react-editable-json-tree/utils/parse.js +2 -4
- package/dist/esm/controls/react-editable-json-tree/utils/styles.js +4 -7
- package/dist/esm/controls/types.js +1 -0
- package/dist/esm/form/field/field.js +5 -3
- package/dist/esm/form/form.stories.js +3 -2
- package/dist/esm/form/input/input.js +11 -6
- package/dist/esm/icon/icon.js +7 -6
- package/dist/esm/icon/icon.stories.js +1 -0
- package/dist/esm/index.js +30 -5
- package/dist/esm/placeholder/placeholder.js +16 -12
- package/dist/esm/spaced/Spaced.js +6 -4
- package/dist/esm/syntaxhighlighter/lazy-syntaxhighlighter.js +3 -3
- package/dist/esm/syntaxhighlighter/syntaxhighlighter-types.js +1 -0
- package/dist/esm/syntaxhighlighter/syntaxhighlighter.js +17 -14
- package/dist/esm/tabs/tabs.js +7 -6
- package/dist/esm/tabs/tabs.stories.js +2 -1
- package/dist/esm/tooltip/ListItem.js +7 -4
- package/dist/esm/tooltip/Tooltip.js +4 -2
- package/dist/esm/tooltip/TooltipLinkList.js +5 -3
- package/dist/esm/tooltip/TooltipMessage.js +6 -4
- package/dist/esm/tooltip/TooltipNote.js +5 -3
- package/dist/esm/tooltip/WithTooltip.js +7 -4
- package/dist/esm/tooltip/lazy-WithTooltip.js +4 -4
- package/dist/esm/typography/DocumentFormatting.js +4 -480
- package/dist/esm/typography/ResetWrapper.js +11 -0
- package/dist/esm/typography/components.js +92 -0
- package/dist/esm/typography/elements/A.js +25 -0
- package/dist/esm/typography/elements/Blockquote.js +16 -0
- package/dist/esm/typography/elements/Code.js +64 -0
- package/dist/esm/typography/elements/DL.js +32 -0
- package/dist/esm/typography/elements/Div.js +3 -0
- package/dist/esm/typography/elements/H1.js +9 -0
- package/dist/esm/typography/elements/H2.js +10 -0
- package/dist/esm/typography/elements/H3.js +8 -0
- package/dist/esm/typography/elements/H4.js +8 -0
- package/dist/esm/typography/elements/H5.js +8 -0
- package/dist/esm/typography/elements/H6.js +9 -0
- package/dist/esm/typography/elements/HR.js +10 -0
- package/dist/esm/typography/elements/Img.js +4 -0
- package/dist/esm/typography/elements/LI.js +20 -0
- package/dist/esm/typography/elements/Link.js +29 -0
- package/dist/esm/typography/elements/OL.js +15 -0
- package/dist/esm/typography/elements/P.js +13 -0
- package/dist/esm/typography/elements/Pre.js +42 -0
- package/dist/esm/typography/elements/Span.js +81 -0
- package/dist/esm/typography/elements/TT.js +3 -0
- package/dist/esm/typography/elements/Table.js +39 -0
- package/dist/esm/typography/elements/UL.js +15 -0
- package/dist/esm/typography/{shared.js → lib/common.js} +0 -0
- package/dist/esm/typography/lib/isReactChildString.js +3 -0
- package/dist/esm/typography/link/link.js +2 -1
- package/dist/esm/utils/getStoryHref.js +46 -0
- package/dist/modern/ActionBar/ActionBar.js +4 -2
- package/dist/modern/Badge/Badge.js +1 -1
- package/dist/modern/Button/Button.js +3 -1
- package/dist/modern/Loader/Loader.js +4 -2
- package/dist/modern/ScrollArea/OverlayScrollbars.js +10 -8
- package/dist/modern/ScrollArea/ScrollArea.js +7 -5
- package/dist/modern/Zoom/Zoom.js +4 -4
- package/dist/modern/Zoom/ZoomElement.js +2 -2
- package/dist/modern/bar/bar.js +4 -2
- package/dist/modern/bar/button.js +4 -2
- package/dist/modern/blocks/ArgsTable/ArgJsDoc.js +1 -1
- package/dist/modern/blocks/ArgsTable/ArgRow.js +1 -1
- package/dist/modern/blocks/ArgsTable/ArgRow.stories.js +1 -1
- package/dist/modern/blocks/ArgsTable/ArgValue.js +1 -1
- package/dist/modern/blocks/ArgsTable/ArgsTable.js +1 -1
- package/dist/modern/blocks/ArgsTable/SectionRow.stories.js +1 -1
- package/dist/modern/blocks/ArgsTable/TabbedArgsTable.js +4 -2
- package/dist/modern/blocks/ColorPalette.js +5 -3
- package/dist/modern/blocks/Description.js +2 -2
- package/dist/modern/blocks/DocsPage.js +1 -1
- package/dist/modern/blocks/EmptyBlock.js +1 -1
- package/dist/modern/blocks/IFrame.js +3 -1
- package/dist/modern/blocks/IconGallery.js +5 -3
- package/dist/modern/blocks/Preview.js +5 -3
- package/dist/modern/blocks/Source.js +3 -1
- package/dist/modern/blocks/Story.js +9 -4
- package/dist/modern/blocks/Toolbar.js +6 -3
- package/dist/modern/blocks/Typeset.js +5 -3
- package/dist/modern/brand/StorybookIcon.js +1 -1
- package/dist/modern/brand/StorybookLogo.js +4 -2
- package/dist/modern/controls/Color.js +4 -2
- package/dist/modern/controls/Number.js +7 -0
- package/dist/modern/controls/Object.js +1 -2
- package/dist/modern/controls/index.js +2 -2
- package/dist/modern/controls/react-editable-json-tree/JsonNodes.js +1539 -0
- package/dist/modern/controls/react-editable-json-tree/index.js +18 -57
- package/dist/modern/controls/react-editable-json-tree/types/dataTypes.js +1 -13
- package/dist/modern/controls/react-editable-json-tree/types/deltaTypes.js +1 -3
- package/dist/modern/controls/react-editable-json-tree/types/inputUsageTypes.js +1 -4
- package/dist/modern/controls/react-editable-json-tree/utils/objectTypes.js +3 -7
- package/dist/modern/controls/react-editable-json-tree/utils/parse.js +2 -4
- package/dist/modern/controls/react-editable-json-tree/utils/styles.js +4 -7
- package/dist/modern/controls/types.js +1 -0
- package/dist/modern/form/field/field.js +4 -2
- package/dist/modern/form/input/input.js +9 -4
- package/dist/modern/icon/icon.js +6 -4
- package/dist/modern/index.js +29 -5
- package/dist/modern/placeholder/placeholder.js +4 -2
- package/dist/modern/spaced/Spaced.js +4 -2
- package/dist/modern/syntaxhighlighter/lazy-syntaxhighlighter.js +2 -2
- package/dist/modern/syntaxhighlighter/syntaxhighlighter-types.js +1 -0
- package/dist/modern/syntaxhighlighter/syntaxhighlighter.js +4 -2
- package/dist/modern/tooltip/ListItem.js +7 -4
- package/dist/modern/tooltip/Tooltip.js +4 -2
- package/dist/modern/tooltip/TooltipLinkList.js +6 -3
- package/dist/modern/tooltip/TooltipMessage.js +4 -2
- package/dist/modern/tooltip/TooltipNote.js +4 -2
- package/dist/modern/tooltip/WithTooltip.js +7 -4
- package/dist/modern/tooltip/lazy-WithTooltip.js +3 -3
- package/dist/modern/typography/DocumentFormatting.js +2 -413
- package/dist/modern/typography/ResetWrapper.js +11 -0
- package/dist/modern/typography/components.js +48 -0
- package/dist/modern/typography/elements/A.js +24 -0
- package/dist/modern/typography/elements/Blockquote.js +15 -0
- package/dist/modern/typography/elements/Code.js +52 -0
- package/dist/modern/typography/elements/DL.js +31 -0
- package/dist/modern/typography/elements/Div.js +3 -0
- package/dist/modern/typography/elements/H1.js +8 -0
- package/dist/modern/typography/elements/H2.js +9 -0
- package/dist/modern/typography/elements/H3.js +7 -0
- package/dist/modern/typography/elements/H4.js +7 -0
- package/dist/modern/typography/elements/H5.js +7 -0
- package/dist/modern/typography/elements/H6.js +8 -0
- package/dist/modern/typography/elements/HR.js +9 -0
- package/dist/modern/typography/elements/Img.js +4 -0
- package/dist/modern/typography/elements/LI.js +19 -0
- package/dist/modern/typography/elements/Link.js +24 -0
- package/dist/modern/typography/elements/OL.js +14 -0
- package/dist/modern/typography/elements/P.js +12 -0
- package/dist/modern/typography/elements/Pre.js +41 -0
- package/dist/modern/typography/elements/Span.js +80 -0
- package/dist/modern/typography/elements/TT.js +3 -0
- package/dist/modern/typography/elements/Table.js +38 -0
- package/dist/modern/typography/elements/UL.js +14 -0
- package/dist/modern/typography/{shared.js → lib/common.js} +0 -0
- package/dist/modern/typography/lib/isReactChildString.js +1 -0
- package/dist/modern/typography/link/link.js +4 -2
- package/dist/modern/utils/getStoryHref.js +13 -0
- package/dist/ts3.4/Button/Button.d.ts +2 -2
- package/dist/ts3.4/Colors/SideBySide.d.ts +1 -1
- package/dist/ts3.4/Loader/Loader.d.ts +1 -1
- package/dist/ts3.4/ScrollArea/OverlayScrollbars.d.ts +3 -3
- package/dist/ts3.4/Zoom/Zoom.d.ts +4 -4
- package/dist/ts3.4/Zoom/ZoomIFrame.d.ts +2 -2
- package/dist/ts3.4/bar/button.d.ts +6 -6
- package/dist/ts3.4/blocks/ArgsTable/ArgJsDoc.d.ts +1 -1
- package/dist/ts3.4/blocks/ColorPalette.d.ts +2 -2
- package/dist/ts3.4/blocks/DocsPage.d.ts +1 -1
- package/dist/ts3.4/blocks/Story.d.ts +1 -1
- package/dist/ts3.4/controls/Color.d.ts +2 -2
- package/dist/ts3.4/controls/Object.d.ts +2 -2
- package/dist/ts3.4/controls/index.d.ts +5 -4
- package/dist/ts3.4/controls/react-editable-json-tree/JsonNodes.d.ts +247 -0
- package/dist/ts3.4/controls/react-editable-json-tree/index.d.ts +42 -0
- package/dist/ts3.4/controls/react-editable-json-tree/types/dataTypes.d.ts +12 -0
- package/dist/ts3.4/controls/react-editable-json-tree/types/deltaTypes.d.ts +4 -0
- package/dist/ts3.4/controls/react-editable-json-tree/types/inputUsageTypes.d.ts +3 -0
- package/dist/ts3.4/controls/react-editable-json-tree/utils/objectTypes.d.ts +13 -0
- package/dist/ts3.4/controls/react-editable-json-tree/utils/parse.d.ts +6 -0
- package/dist/ts3.4/controls/react-editable-json-tree/utils/styles.d.ts +59 -0
- package/dist/ts3.4/form/index.d.ts +4 -4
- package/dist/ts3.4/form/input/input.d.ts +3 -3
- package/dist/ts3.4/index.d.ts +46 -2
- package/dist/ts3.4/syntaxhighlighter/lazy-syntaxhighlighter.d.ts +2 -2
- package/dist/ts3.4/syntaxhighlighter/syntaxhighlighter-types.d.ts +2 -2
- package/dist/ts3.4/tabs/tabs.d.ts +1 -1
- package/dist/ts3.4/tooltip/ListItem.d.ts +1 -1
- package/dist/ts3.4/tooltip/lazy-WithTooltip.d.ts +3 -3
- package/dist/ts3.4/typography/DocumentFormatting.d.ts +4 -55
- package/dist/ts3.4/typography/ResetWrapper.d.ts +9 -0
- package/dist/ts3.4/typography/components.d.ts +25 -0
- package/dist/ts3.4/typography/elements/A.d.ts +6 -0
- package/dist/ts3.4/typography/elements/Blockquote.d.ts +6 -0
- package/dist/ts3.4/typography/elements/Code.d.ts +6 -0
- package/dist/ts3.4/typography/elements/DL.d.ts +4 -0
- package/dist/ts3.4/typography/elements/Div.d.ts +4 -0
- package/dist/ts3.4/typography/elements/H1.d.ts +6 -0
- package/dist/ts3.4/typography/elements/H2.d.ts +6 -0
- package/dist/ts3.4/typography/elements/H3.d.ts +6 -0
- package/dist/ts3.4/typography/elements/H4.d.ts +6 -0
- package/dist/ts3.4/typography/elements/H5.d.ts +6 -0
- package/dist/ts3.4/typography/elements/H6.d.ts +6 -0
- package/dist/ts3.4/typography/elements/HR.d.ts +2 -0
- package/dist/ts3.4/typography/elements/Img.d.ts +2 -0
- package/dist/ts3.4/typography/elements/LI.d.ts +6 -0
- package/dist/ts3.4/typography/elements/Link.d.ts +2 -0
- package/dist/ts3.4/typography/elements/OL.d.ts +4 -0
- package/dist/ts3.4/typography/elements/P.d.ts +6 -0
- package/dist/ts3.4/typography/elements/Pre.d.ts +6 -0
- package/dist/ts3.4/typography/elements/Span.d.ts +6 -0
- package/dist/ts3.4/typography/elements/TT.d.ts +4 -0
- package/dist/ts3.4/typography/elements/Table.d.ts +6 -0
- package/dist/ts3.4/typography/elements/UL.d.ts +4 -0
- package/dist/ts3.4/typography/{shared.d.ts → lib/common.d.ts} +0 -0
- package/dist/ts3.4/typography/lib/isReactChildString.d.ts +2 -0
- package/dist/ts3.4/utils/getStoryHref.d.ts +1 -0
- package/dist/ts3.9/Button/Button.d.ts +2 -2
- package/dist/ts3.9/Colors/SideBySide.d.ts +1 -1
- package/dist/ts3.9/Loader/Loader.d.ts +1 -1
- package/dist/ts3.9/ScrollArea/OverlayScrollbars.d.ts +3 -3
- package/dist/ts3.9/Zoom/Zoom.d.ts +4 -4
- package/dist/ts3.9/Zoom/ZoomIFrame.d.ts +2 -2
- package/dist/ts3.9/bar/button.d.ts +6 -6
- package/dist/ts3.9/blocks/ArgsTable/ArgJsDoc.d.ts +1 -1
- package/dist/ts3.9/blocks/ColorPalette.d.ts +2 -2
- package/dist/ts3.9/blocks/DocsPage.d.ts +1 -1
- package/dist/ts3.9/blocks/Story.d.ts +1 -1
- package/dist/ts3.9/controls/Color.d.ts +2 -2
- package/dist/ts3.9/controls/Object.d.ts +2 -2
- package/dist/ts3.9/controls/index.d.ts +5 -4
- package/dist/ts3.9/controls/react-editable-json-tree/JsonNodes.d.ts +247 -0
- package/dist/ts3.9/controls/react-editable-json-tree/index.d.ts +42 -0
- package/dist/ts3.9/controls/react-editable-json-tree/types/dataTypes.d.ts +12 -0
- package/dist/ts3.9/controls/react-editable-json-tree/types/deltaTypes.d.ts +4 -0
- package/dist/ts3.9/controls/react-editable-json-tree/types/inputUsageTypes.d.ts +3 -0
- package/dist/ts3.9/controls/react-editable-json-tree/utils/objectTypes.d.ts +13 -0
- package/dist/ts3.9/controls/react-editable-json-tree/utils/parse.d.ts +6 -0
- package/dist/ts3.9/controls/react-editable-json-tree/utils/styles.d.ts +59 -0
- package/dist/ts3.9/form/index.d.ts +4 -4
- package/dist/ts3.9/form/input/input.d.ts +3 -3
- package/dist/ts3.9/index.d.ts +46 -2
- package/dist/ts3.9/syntaxhighlighter/lazy-syntaxhighlighter.d.ts +2 -2
- package/dist/ts3.9/syntaxhighlighter/syntaxhighlighter-types.d.ts +2 -2
- package/dist/ts3.9/tabs/tabs.d.ts +1 -1
- package/dist/ts3.9/tooltip/ListItem.d.ts +1 -1
- package/dist/ts3.9/tooltip/lazy-WithTooltip.d.ts +3 -3
- package/dist/ts3.9/typography/DocumentFormatting.d.ts +4 -55
- package/dist/ts3.9/typography/ResetWrapper.d.ts +9 -0
- package/dist/ts3.9/typography/components.d.ts +25 -0
- package/dist/ts3.9/typography/elements/A.d.ts +6 -0
- package/dist/ts3.9/typography/elements/Blockquote.d.ts +6 -0
- package/dist/ts3.9/typography/elements/Code.d.ts +6 -0
- package/dist/ts3.9/typography/elements/DL.d.ts +4 -0
- package/dist/ts3.9/typography/elements/Div.d.ts +4 -0
- package/dist/ts3.9/typography/elements/H1.d.ts +6 -0
- package/dist/ts3.9/typography/elements/H2.d.ts +6 -0
- package/dist/ts3.9/typography/elements/H3.d.ts +6 -0
- package/dist/ts3.9/typography/elements/H4.d.ts +6 -0
- package/dist/ts3.9/typography/elements/H5.d.ts +6 -0
- package/dist/ts3.9/typography/elements/H6.d.ts +6 -0
- package/dist/ts3.9/typography/elements/HR.d.ts +2 -0
- package/dist/ts3.9/typography/elements/Img.d.ts +2 -0
- package/dist/ts3.9/typography/elements/LI.d.ts +6 -0
- package/dist/ts3.9/typography/elements/Link.d.ts +2 -0
- package/dist/ts3.9/typography/elements/OL.d.ts +4 -0
- package/dist/ts3.9/typography/elements/P.d.ts +6 -0
- package/dist/ts3.9/typography/elements/Pre.d.ts +6 -0
- package/dist/ts3.9/typography/elements/Span.d.ts +6 -0
- package/dist/ts3.9/typography/elements/TT.d.ts +4 -0
- package/dist/ts3.9/typography/elements/Table.d.ts +6 -0
- package/dist/ts3.9/typography/elements/UL.d.ts +4 -0
- package/dist/ts3.9/typography/{shared.d.ts → lib/common.d.ts} +1 -1
- package/dist/ts3.9/typography/lib/isReactChildString.d.ts +2 -0
- package/dist/ts3.9/utils/getStoryHref.d.ts +1 -0
- package/package.json +6 -5
- package/dist/cjs/Colors/colorpalette.stories.mdx +0 -125
- package/dist/cjs/blocks/DocsPageExampleCaption.md +0 -92
- package/dist/cjs/blocks/DocsPageExampleCaption.mdx +0 -92
- package/dist/cjs/controls/react-editable-json-tree/LICENSE.md +0 -14
- package/dist/cjs/controls/react-editable-json-tree/components/JsonAddValue.js +0 -228
- package/dist/cjs/controls/react-editable-json-tree/components/JsonArray.js +0 -507
- package/dist/cjs/controls/react-editable-json-tree/components/JsonFunctionValue.js +0 -321
- package/dist/cjs/controls/react-editable-json-tree/components/JsonNode.js +0 -422
- package/dist/cjs/controls/react-editable-json-tree/components/JsonObject.js +0 -509
- package/dist/cjs/controls/react-editable-json-tree/components/JsonValue.js +0 -312
- package/dist/cjs/typings.d.js +0 -1
- package/dist/cjs/typography/DocumentFormattingSample.md +0 -141
- package/dist/cjs/typography/typography.stories.mdx +0 -75
- package/dist/esm/Colors/colorpalette.stories.mdx +0 -125
- package/dist/esm/blocks/DocsPageExampleCaption.md +0 -92
- package/dist/esm/blocks/DocsPageExampleCaption.mdx +0 -92
- package/dist/esm/controls/react-editable-json-tree/LICENSE.md +0 -14
- package/dist/esm/controls/react-editable-json-tree/components/JsonAddValue.js +0 -194
- package/dist/esm/controls/react-editable-json-tree/components/JsonArray.js +0 -465
- package/dist/esm/controls/react-editable-json-tree/components/JsonFunctionValue.js +0 -282
- package/dist/esm/controls/react-editable-json-tree/components/JsonNode.js +0 -387
- package/dist/esm/controls/react-editable-json-tree/components/JsonObject.js +0 -467
- package/dist/esm/controls/react-editable-json-tree/components/JsonValue.js +0 -272
- package/dist/esm/typings.d.js +0 -0
- package/dist/esm/typography/DocumentFormattingSample.md +0 -141
- package/dist/esm/typography/typography.stories.mdx +0 -75
- package/dist/modern/Colors/colorpalette.stories.mdx +0 -125
- package/dist/modern/blocks/DocsPageExampleCaption.md +0 -92
- package/dist/modern/blocks/DocsPageExampleCaption.mdx +0 -92
- package/dist/modern/controls/react-editable-json-tree/LICENSE.md +0 -14
- package/dist/modern/controls/react-editable-json-tree/components/JsonAddValue.js +0 -148
- package/dist/modern/controls/react-editable-json-tree/components/JsonArray.js +0 -392
- package/dist/modern/controls/react-editable-json-tree/components/JsonFunctionValue.js +0 -215
- package/dist/modern/controls/react-editable-json-tree/components/JsonNode.js +0 -339
- package/dist/modern/controls/react-editable-json-tree/components/JsonObject.js +0 -394
- package/dist/modern/controls/react-editable-json-tree/components/JsonValue.js +0 -202
- package/dist/modern/typings.d.js +0 -0
- package/dist/modern/typography/DocumentFormattingSample.md +0 -141
- package/dist/modern/typography/typography.stories.mdx +0 -75
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
const _excluded = ["horizontal", "vertical"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
6
|
|
|
5
|
-
import React, { Suspense } from 'react';
|
|
7
|
+
import React, { lazy, Suspense } from 'react';
|
|
6
8
|
import { styled } from '@storybook/theming';
|
|
7
|
-
const GlobalScrollAreaStyles = /*#__PURE__*/
|
|
8
|
-
const OverlayScrollbars = /*#__PURE__*/
|
|
9
|
+
const GlobalScrollAreaStyles = /*#__PURE__*/lazy(() => import('./GlobalScrollAreaStyles'));
|
|
10
|
+
const OverlayScrollbars = /*#__PURE__*/lazy(() => import('./OverlayScrollbars'));
|
|
9
11
|
|
|
10
|
-
const Scroller =
|
|
11
|
-
let props = _objectWithoutPropertiesLoose(_ref,
|
|
12
|
+
const Scroller = _ref => {
|
|
13
|
+
let props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
14
|
|
|
13
15
|
return /*#__PURE__*/React.createElement(Suspense, {
|
|
14
16
|
fallback: /*#__PURE__*/React.createElement("div", props)
|
package/dist/modern/Zoom/Zoom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import global from 'global';
|
|
2
|
-
import { ZoomElement
|
|
3
|
-
import { ZoomIFrame
|
|
2
|
+
import { ZoomElement } from './ZoomElement';
|
|
3
|
+
import { ZoomIFrame } from './ZoomIFrame';
|
|
4
4
|
const {
|
|
5
5
|
window: globalWindow
|
|
6
6
|
} = global;
|
|
@@ -12,6 +12,6 @@ export const browserSupportsCssZoom = () => {
|
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
export const Zoom = {
|
|
15
|
-
Element,
|
|
16
|
-
IFrame
|
|
15
|
+
Element: ZoomElement,
|
|
16
|
+
IFrame: ZoomIFrame
|
|
17
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { styled } from '@storybook/theming';
|
|
3
3
|
import { browserSupportsCssZoom } from './browserSupportsCssZoom';
|
|
4
4
|
const ZoomElementWrapper = styled.div(({
|
|
@@ -17,7 +17,7 @@ export function ZoomElement({
|
|
|
17
17
|
scale,
|
|
18
18
|
children
|
|
19
19
|
}) {
|
|
20
|
-
const componentWrapperRef =
|
|
20
|
+
const componentWrapperRef = useRef(null);
|
|
21
21
|
const [height, setHeight] = useState(0);
|
|
22
22
|
useEffect(() => {
|
|
23
23
|
if (componentWrapperRef.current) {
|
package/dist/modern/bar/bar.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["children", "backgroundColor"];
|
|
2
|
+
|
|
1
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
4
|
|
|
3
5
|
import React, { Children } from 'react';
|
|
@@ -60,12 +62,12 @@ const BarInner = styled.div(({
|
|
|
60
62
|
height: 40,
|
|
61
63
|
backgroundColor: bgColor || ''
|
|
62
64
|
}));
|
|
63
|
-
export const FlexBar =
|
|
65
|
+
export const FlexBar = _ref => {
|
|
64
66
|
let {
|
|
65
67
|
children,
|
|
66
68
|
backgroundColor
|
|
67
69
|
} = _ref,
|
|
68
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
70
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
69
71
|
|
|
70
72
|
const [left, right] = Children.toArray(children);
|
|
71
73
|
return /*#__PURE__*/React.createElement(Bar, rest, /*#__PURE__*/React.createElement(BarInner, {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["children"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -7,11 +9,11 @@ import { styled, isPropValid } from '@storybook/theming';
|
|
|
7
9
|
import { transparentize } from 'polished';
|
|
8
10
|
import { auto } from '@popperjs/core';
|
|
9
11
|
|
|
10
|
-
const ButtonOrLink =
|
|
12
|
+
const ButtonOrLink = _ref => {
|
|
11
13
|
let {
|
|
12
14
|
children
|
|
13
15
|
} = _ref,
|
|
14
|
-
restProps = _objectWithoutPropertiesLoose(_ref,
|
|
16
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
15
17
|
|
|
16
18
|
return restProps.href != null ? /*#__PURE__*/React.createElement("a", restProps, children) : /*#__PURE__*/React.createElement("button", _extends({
|
|
17
19
|
type: "button"
|
|
@@ -5,7 +5,7 @@ import { styled } from '@storybook/theming';
|
|
|
5
5
|
import { ArgJsDoc } from './ArgJsDoc';
|
|
6
6
|
import { ArgValue } from './ArgValue';
|
|
7
7
|
import { ArgControl } from './ArgControl';
|
|
8
|
-
import { codeCommon } from '../../typography/
|
|
8
|
+
import { codeCommon } from '../../typography/lib/common';
|
|
9
9
|
const Name = styled.span({
|
|
10
10
|
fontWeight: 'bold'
|
|
11
11
|
});
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { action } from '@storybook/addon-actions';
|
|
3
3
|
import { ArgRow } from './ArgRow';
|
|
4
4
|
import { TableWrapper } from './ArgsTable';
|
|
5
|
-
import { ResetWrapper } from '../../typography/
|
|
5
|
+
import { ResetWrapper } from '../../typography/ResetWrapper';
|
|
6
6
|
export default {
|
|
7
7
|
component: ArgRow,
|
|
8
8
|
title: 'Docs/ArgRow',
|
|
@@ -5,7 +5,7 @@ import uniq from 'lodash/uniq';
|
|
|
5
5
|
import { WithTooltipPure } from '../../tooltip/lazy-WithTooltip';
|
|
6
6
|
import { Icons } from '../../icon/icon';
|
|
7
7
|
import { SyntaxHighlighter } from '../../syntaxhighlighter/lazy-syntaxhighlighter';
|
|
8
|
-
import { codeCommon } from '../../typography/
|
|
8
|
+
import { codeCommon } from '../../typography/lib/common';
|
|
9
9
|
const ITEMS_BEFORE_EXPANSION = 8;
|
|
10
10
|
const Summary = styled.div(({
|
|
11
11
|
isExpanded
|
|
@@ -10,7 +10,7 @@ import { ArgRow } from './ArgRow';
|
|
|
10
10
|
import { SectionRow } from './SectionRow';
|
|
11
11
|
import { EmptyBlock } from '../EmptyBlock';
|
|
12
12
|
import { Link } from '../../typography/link/link';
|
|
13
|
-
import { ResetWrapper } from '../../typography/
|
|
13
|
+
import { ResetWrapper } from '../../typography/ResetWrapper';
|
|
14
14
|
export const TableWrapper = styled.table(({
|
|
15
15
|
theme,
|
|
16
16
|
compact,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SectionRow } from './SectionRow';
|
|
3
3
|
import { TableWrapper } from './ArgsTable';
|
|
4
|
-
import { ResetWrapper } from '../../typography/
|
|
4
|
+
import { ResetWrapper } from '../../typography/ResetWrapper';
|
|
5
5
|
export default {
|
|
6
6
|
component: SectionRow,
|
|
7
7
|
title: 'Docs/SectionRow',
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["tabs"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -5,11 +7,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
5
7
|
import React from 'react';
|
|
6
8
|
import { ArgsTable } from './ArgsTable';
|
|
7
9
|
import { TabsState } from '../../tabs/tabs';
|
|
8
|
-
export const TabbedArgsTable =
|
|
10
|
+
export const TabbedArgsTable = _ref => {
|
|
9
11
|
let {
|
|
10
12
|
tabs
|
|
11
13
|
} = _ref,
|
|
12
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
14
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
15
|
|
|
14
16
|
const entries = Object.entries(tabs);
|
|
15
17
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["children"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -6,7 +8,7 @@ import React from 'react';
|
|
|
6
8
|
import { styled } from '@storybook/theming';
|
|
7
9
|
import { transparentize } from 'polished';
|
|
8
10
|
import { getBlockBackgroundStyle } from './BlockBackgroundStyles';
|
|
9
|
-
import { ResetWrapper } from '../typography/
|
|
11
|
+
import { ResetWrapper } from '../typography/ResetWrapper';
|
|
10
12
|
const ItemTitle = styled.div(({
|
|
11
13
|
theme
|
|
12
14
|
}) => ({
|
|
@@ -162,11 +164,11 @@ ColorItem.displayName = "ColorItem";
|
|
|
162
164
|
* Styleguide documentation for colors, including names, captions, and color swatches,
|
|
163
165
|
* all specified as `ColorItem` children of this wrapper component.
|
|
164
166
|
*/
|
|
165
|
-
export const ColorPalette =
|
|
167
|
+
export const ColorPalette = _ref => {
|
|
166
168
|
let {
|
|
167
169
|
children
|
|
168
170
|
} = _ref,
|
|
169
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
171
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
170
172
|
|
|
171
173
|
return /*#__PURE__*/React.createElement(ResetWrapper, null, /*#__PURE__*/React.createElement(List, _extends({}, props, {
|
|
172
174
|
className: "docblock-colorpalette"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Markdown from 'markdown-to-jsx';
|
|
3
|
-
import { ResetWrapper } from '../typography/
|
|
4
|
-
import { components } from '
|
|
3
|
+
import { ResetWrapper } from '../typography/ResetWrapper';
|
|
4
|
+
import { components } from '../typography/components';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A markdown description for a component, typically used to show the
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { styled } from '@storybook/theming';
|
|
3
3
|
import { transparentize } from 'polished';
|
|
4
|
-
import { withReset } from '../typography/
|
|
4
|
+
import { withReset } from '../typography/lib/common';
|
|
5
5
|
const breakpoint = 600;
|
|
6
6
|
export const Title = styled.h1(withReset, ({
|
|
7
7
|
theme
|
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { styled } from '@storybook/theming';
|
|
5
5
|
import { transparentize } from 'polished';
|
|
6
|
-
import { withReset } from '../typography/
|
|
6
|
+
import { withReset } from '../typography/lib/common';
|
|
7
7
|
const Wrapper = styled.div(withReset, ({
|
|
8
8
|
theme
|
|
9
9
|
}) => ({
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["id", "title", "src", "allowFullScreen", "scale"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -49,7 +51,7 @@ export class IFrame extends Component {
|
|
|
49
51
|
src,
|
|
50
52
|
allowFullScreen
|
|
51
53
|
} = _this$props,
|
|
52
|
-
rest = _objectWithoutPropertiesLoose(_this$props,
|
|
54
|
+
rest = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
53
55
|
|
|
54
56
|
return /*#__PURE__*/React.createElement("iframe", _extends({
|
|
55
57
|
id: id,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
const _excluded = ["children"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
6
|
|
|
5
7
|
import React from 'react';
|
|
6
8
|
import { styled } from '@storybook/theming';
|
|
7
|
-
import { ResetWrapper } from '../typography/
|
|
9
|
+
import { ResetWrapper } from '../typography/ResetWrapper';
|
|
8
10
|
import { getBlockBackgroundStyle } from './BlockBackgroundStyles';
|
|
9
11
|
const ItemLabel = styled.div(({
|
|
10
12
|
theme
|
|
@@ -55,11 +57,11 @@ IconItem.displayName = "IconItem";
|
|
|
55
57
|
/**
|
|
56
58
|
* Show a grid of icons, as specified by `IconItem`.
|
|
57
59
|
*/
|
|
58
|
-
export const IconGallery =
|
|
60
|
+
export const IconGallery = _ref => {
|
|
59
61
|
let {
|
|
60
62
|
children
|
|
61
63
|
} = _ref,
|
|
62
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
64
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
63
65
|
|
|
64
66
|
return /*#__PURE__*/React.createElement(ResetWrapper, null, /*#__PURE__*/React.createElement(List, _extends({}, props, {
|
|
65
67
|
className: "docblock-icongallery"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["isLoading", "isColumn", "columns", "children", "withSource", "withToolbar", "isExpanded", "additionalActions", "className"];
|
|
2
|
+
|
|
1
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
4
|
|
|
3
5
|
import "core-js/modules/es.array.reduce.js";
|
|
@@ -14,7 +16,7 @@ import { ActionBar } from '../ActionBar/ActionBar';
|
|
|
14
16
|
import { Toolbar } from './Toolbar';
|
|
15
17
|
import { ZoomContext } from './ZoomContext';
|
|
16
18
|
import { Zoom } from '../Zoom/Zoom';
|
|
17
|
-
import { StorySkeleton } from '
|
|
19
|
+
import { StorySkeleton } from './Story';
|
|
18
20
|
const ChildrenContainer = styled.div(({
|
|
19
21
|
isColumn,
|
|
20
22
|
columns,
|
|
@@ -178,7 +180,7 @@ const getLayout = children => {
|
|
|
178
180
|
*/
|
|
179
181
|
|
|
180
182
|
|
|
181
|
-
export const Preview =
|
|
183
|
+
export const Preview = _ref => {
|
|
182
184
|
let {
|
|
183
185
|
isLoading,
|
|
184
186
|
isColumn,
|
|
@@ -190,7 +192,7 @@ export const Preview = (_ref) => {
|
|
|
190
192
|
additionalActions,
|
|
191
193
|
className
|
|
192
194
|
} = _ref,
|
|
193
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
195
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
194
196
|
|
|
195
197
|
const [expanded, setExpanded] = useState(isExpanded);
|
|
196
198
|
const {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["language", "code", "dark", "format"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -90,7 +92,7 @@ const Source = props => {
|
|
|
90
92
|
dark,
|
|
91
93
|
format
|
|
92
94
|
} = _ref,
|
|
93
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
95
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
94
96
|
|
|
95
97
|
const syntaxHighlighter = /*#__PURE__*/React.createElement(StyledSyntaxHighlighter, _extends({
|
|
96
98
|
bordered: true,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["children", "error", "inline"];
|
|
2
|
+
|
|
1
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
4
|
|
|
3
5
|
import global from 'global';
|
|
@@ -5,7 +7,8 @@ import React, { createElement, Fragment } from 'react';
|
|
|
5
7
|
import { IFrame } from './IFrame';
|
|
6
8
|
import { EmptyBlock } from './EmptyBlock';
|
|
7
9
|
import { ZoomContext } from './ZoomContext';
|
|
8
|
-
import { Loader } from '
|
|
10
|
+
import { Loader } from '../Loader/Loader';
|
|
11
|
+
import { getStoryHref } from '../utils/getStoryHref';
|
|
9
12
|
const {
|
|
10
13
|
PREVIEW_URL
|
|
11
14
|
} = global;
|
|
@@ -46,7 +49,9 @@ const IFrameStory = ({
|
|
|
46
49
|
key: "iframe",
|
|
47
50
|
id: `iframe--${id}`,
|
|
48
51
|
title: title,
|
|
49
|
-
src:
|
|
52
|
+
src: getStoryHref(BASE_URL, id, {
|
|
53
|
+
viewMode: 'story'
|
|
54
|
+
}),
|
|
50
55
|
allowFullScreen: true,
|
|
51
56
|
scale: scale,
|
|
52
57
|
style: {
|
|
@@ -63,12 +68,12 @@ IFrameStory.displayName = "IFrameStory";
|
|
|
63
68
|
* A story element, either rendered inline or in an iframe,
|
|
64
69
|
* with configurable height.
|
|
65
70
|
*/
|
|
66
|
-
const Story =
|
|
71
|
+
const Story = _ref => {
|
|
67
72
|
let {
|
|
68
73
|
error,
|
|
69
74
|
inline
|
|
70
75
|
} = _ref,
|
|
71
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
76
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
72
77
|
|
|
73
78
|
const {
|
|
74
79
|
id,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["isLoading", "storyId", "baseUrl", "zoom", "resetZoom"];
|
|
2
|
+
|
|
1
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2
4
|
|
|
3
5
|
import React, { Fragment } from 'react';
|
|
@@ -5,6 +7,7 @@ import { styled } from '@storybook/theming';
|
|
|
5
7
|
import { FlexBar } from '../bar/bar';
|
|
6
8
|
import { Icons } from '../icon/icon';
|
|
7
9
|
import { IconButton, IconButtonSkeleton } from '../bar/button';
|
|
10
|
+
import { getStoryHref } from '../utils/getStoryHref';
|
|
8
11
|
|
|
9
12
|
const Zoom = ({
|
|
10
13
|
zoom,
|
|
@@ -43,7 +46,7 @@ const Eject = ({
|
|
|
43
46
|
storyId
|
|
44
47
|
}) => /*#__PURE__*/React.createElement(IconButton, {
|
|
45
48
|
key: "opener",
|
|
46
|
-
href:
|
|
49
|
+
href: getStoryHref(baseUrl, storyId),
|
|
47
50
|
target: "_blank",
|
|
48
51
|
title: "Open canvas in new tab"
|
|
49
52
|
}, /*#__PURE__*/React.createElement(Icons, {
|
|
@@ -58,7 +61,7 @@ const Bar = styled(FlexBar)({
|
|
|
58
61
|
top: 0,
|
|
59
62
|
transition: 'transform .2s linear'
|
|
60
63
|
});
|
|
61
|
-
export const Toolbar =
|
|
64
|
+
export const Toolbar = _ref => {
|
|
62
65
|
let {
|
|
63
66
|
isLoading,
|
|
64
67
|
storyId,
|
|
@@ -66,7 +69,7 @@ export const Toolbar = (_ref) => {
|
|
|
66
69
|
zoom,
|
|
67
70
|
resetZoom
|
|
68
71
|
} = _ref,
|
|
69
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
72
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
70
73
|
|
|
71
74
|
return /*#__PURE__*/React.createElement(Bar, rest, /*#__PURE__*/React.createElement(Fragment, {
|
|
72
75
|
key: "left"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["fontFamily", "fontSizes", "fontWeight", "sampleText"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -5,7 +7,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
5
7
|
import React from 'react';
|
|
6
8
|
import { styled } from '@storybook/theming';
|
|
7
9
|
import { transparentize } from 'polished';
|
|
8
|
-
import { withReset } from '../typography/
|
|
10
|
+
import { withReset } from '../typography/lib/common';
|
|
9
11
|
import { getBlockBackgroundStyle } from './BlockBackgroundStyles';
|
|
10
12
|
const Label = styled.div(({
|
|
11
13
|
theme
|
|
@@ -38,14 +40,14 @@ const Wrapper = styled.div(withReset, ({
|
|
|
38
40
|
* Convenient styleguide documentation showing examples of type
|
|
39
41
|
* with different sizes and weights and configurable sample text.
|
|
40
42
|
*/
|
|
41
|
-
export const Typeset =
|
|
43
|
+
export const Typeset = _ref => {
|
|
42
44
|
let {
|
|
43
45
|
fontFamily,
|
|
44
46
|
fontSizes,
|
|
45
47
|
fontWeight,
|
|
46
48
|
sampleText
|
|
47
49
|
} = _ref,
|
|
48
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
50
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
49
51
|
|
|
50
52
|
return /*#__PURE__*/React.createElement(Wrapper, _extends({}, props, {
|
|
51
53
|
className: "docblock-typeset"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
export const StorybookIcon =
|
|
4
|
+
export const StorybookIcon = _ref => {
|
|
5
5
|
let props = Object.assign({}, _ref);
|
|
6
6
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
7
7
|
viewBox: "0 0 64 64"
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
const _excluded = ["alt"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
6
|
|
|
5
7
|
import React from 'react';
|
|
6
|
-
export const StorybookLogo =
|
|
8
|
+
export const StorybookLogo = _ref => {
|
|
7
9
|
let {
|
|
8
10
|
alt
|
|
9
11
|
} = _ref,
|
|
10
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
12
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
11
13
|
|
|
12
14
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
15
|
width: "200px",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const _excluded = ["value", "active", "onClick", "style"];
|
|
2
|
+
|
|
1
3
|
function _extends() { _extends = Object.assign || 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); }
|
|
2
4
|
|
|
3
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -59,14 +61,14 @@ const SwatchColor = styled.div(({
|
|
|
59
61
|
}));
|
|
60
62
|
const swatchBackground = `url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')`;
|
|
61
63
|
|
|
62
|
-
const Swatch =
|
|
64
|
+
const Swatch = _ref => {
|
|
63
65
|
let {
|
|
64
66
|
value,
|
|
65
67
|
active,
|
|
66
68
|
onClick,
|
|
67
69
|
style
|
|
68
70
|
} = _ref,
|
|
69
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
71
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
70
72
|
|
|
71
73
|
const backgroundImage = `linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;
|
|
72
74
|
return /*#__PURE__*/React.createElement(SwatchColor, _extends({}, props, {
|
|
@@ -43,6 +43,13 @@ export const NumberControl = ({
|
|
|
43
43
|
useEffect(() => {
|
|
44
44
|
if (forceVisible && htmlElRef.current) htmlElRef.current.select();
|
|
45
45
|
}, [forceVisible]);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const newInputValue = typeof value === 'number' ? value : '';
|
|
48
|
+
|
|
49
|
+
if (inputValue !== newInputValue) {
|
|
50
|
+
setInputValue(value);
|
|
51
|
+
}
|
|
52
|
+
}, [value]);
|
|
46
53
|
|
|
47
54
|
if (!forceVisible && value === undefined) {
|
|
48
55
|
return /*#__PURE__*/React.createElement(Form.Button, {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import global from 'global';
|
|
2
2
|
import cloneDeep from 'lodash/cloneDeep';
|
|
3
3
|
import React, { useCallback, useMemo, useState, useEffect, useRef } from 'react';
|
|
4
|
-
import { styled, useTheme } from '@storybook/theming';
|
|
5
|
-
|
|
4
|
+
import { styled, useTheme } from '@storybook/theming';
|
|
6
5
|
import { JsonTree, getObjectType } from './react-editable-json-tree';
|
|
7
6
|
import { getControlId, getControlSetterButtonId } from './helpers';
|
|
8
7
|
import { Form } from '../form';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { Suspense } from 'react';
|
|
1
|
+
import React, { lazy, Suspense } from 'react';
|
|
2
2
|
export * from './types';
|
|
3
3
|
export * from './Boolean';
|
|
4
|
-
const LazyColorControl = /*#__PURE__*/
|
|
4
|
+
const LazyColorControl = /*#__PURE__*/lazy(() => import('./Color'));
|
|
5
5
|
export const ColorControl = props => /*#__PURE__*/React.createElement(Suspense, {
|
|
6
6
|
fallback: /*#__PURE__*/React.createElement("div", null)
|
|
7
7
|
}, /*#__PURE__*/React.createElement(LazyColorControl, props));
|