@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,312 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.reflect.construct.js");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.symbol.js");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.symbol.description.js");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.symbol.iterator.js");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/es.string.iterator.js");
|
|
14
|
-
|
|
15
|
-
require("core-js/modules/es.array.iterator.js");
|
|
16
|
-
|
|
17
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
|
-
|
|
19
|
-
require("core-js/modules/es.array.from.js");
|
|
20
|
-
|
|
21
|
-
require("core-js/modules/es.array.slice.js");
|
|
22
|
-
|
|
23
|
-
require("core-js/modules/es.weak-map.js");
|
|
24
|
-
|
|
25
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
26
|
-
|
|
27
|
-
Object.defineProperty(exports, "__esModule", {
|
|
28
|
-
value: true
|
|
29
|
-
});
|
|
30
|
-
exports.default = void 0;
|
|
31
|
-
|
|
32
|
-
require("core-js/modules/es.array.concat.js");
|
|
33
|
-
|
|
34
|
-
require("core-js/modules/es.function.name.js");
|
|
35
|
-
|
|
36
|
-
require("core-js/modules/es.string.repeat.js");
|
|
37
|
-
|
|
38
|
-
require("core-js/modules/es.object.get-prototype-of.js");
|
|
39
|
-
|
|
40
|
-
require("core-js/modules/es.promise.js");
|
|
41
|
-
|
|
42
|
-
require("core-js/modules/es.object.to-string.js");
|
|
43
|
-
|
|
44
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
45
|
-
|
|
46
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
47
|
-
|
|
48
|
-
var _objectTypes = require("../utils/objectTypes");
|
|
49
|
-
|
|
50
|
-
var _inputUsageTypes = _interopRequireDefault(require("../types/inputUsageTypes"));
|
|
51
|
-
|
|
52
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
53
|
-
|
|
54
|
-
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
55
|
-
|
|
56
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
57
|
-
|
|
58
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
59
|
-
|
|
60
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
61
|
-
|
|
62
|
-
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); }
|
|
63
|
-
|
|
64
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
|
|
65
|
-
|
|
66
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
67
|
-
|
|
68
|
-
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; }
|
|
69
|
-
|
|
70
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
71
|
-
|
|
72
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
73
|
-
|
|
74
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
75
|
-
|
|
76
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
77
|
-
|
|
78
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
79
|
-
|
|
80
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
81
|
-
|
|
82
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
83
|
-
|
|
84
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
85
|
-
|
|
86
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
87
|
-
|
|
88
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
89
|
-
|
|
90
|
-
var JsonValue = /*#__PURE__*/function (_Component) {
|
|
91
|
-
_inherits(JsonValue, _Component);
|
|
92
|
-
|
|
93
|
-
var _super = _createSuper(JsonValue);
|
|
94
|
-
|
|
95
|
-
function JsonValue(props) {
|
|
96
|
-
var _this;
|
|
97
|
-
|
|
98
|
-
_classCallCheck(this, JsonValue);
|
|
99
|
-
|
|
100
|
-
_this = _super.call(this, props);
|
|
101
|
-
var keyPath = [].concat(_toConsumableArray(props.keyPath), [props.name]);
|
|
102
|
-
_this.state = {
|
|
103
|
-
value: props.value,
|
|
104
|
-
name: props.name,
|
|
105
|
-
keyPath: keyPath,
|
|
106
|
-
deep: props.deep,
|
|
107
|
-
editEnabled: false,
|
|
108
|
-
inputRef: null
|
|
109
|
-
}; // Bind
|
|
110
|
-
|
|
111
|
-
_this.handleEditMode = _this.handleEditMode.bind(_assertThisInitialized(_this));
|
|
112
|
-
_this.refInput = _this.refInput.bind(_assertThisInitialized(_this));
|
|
113
|
-
_this.handleCancelEdit = _this.handleCancelEdit.bind(_assertThisInitialized(_this));
|
|
114
|
-
_this.handleEdit = _this.handleEdit.bind(_assertThisInitialized(_this));
|
|
115
|
-
_this.onKeydown = _this.onKeydown.bind(_assertThisInitialized(_this));
|
|
116
|
-
return _this;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
_createClass(JsonValue, [{
|
|
120
|
-
key: "componentDidUpdate",
|
|
121
|
-
value: function componentDidUpdate() {
|
|
122
|
-
var _this$state = this.state,
|
|
123
|
-
editEnabled = _this$state.editEnabled,
|
|
124
|
-
inputRef = _this$state.inputRef,
|
|
125
|
-
name = _this$state.name,
|
|
126
|
-
value = _this$state.value,
|
|
127
|
-
keyPath = _this$state.keyPath,
|
|
128
|
-
deep = _this$state.deep;
|
|
129
|
-
var _this$props = this.props,
|
|
130
|
-
readOnly = _this$props.readOnly,
|
|
131
|
-
dataType = _this$props.dataType;
|
|
132
|
-
var isReadOnly = readOnly(name, value, keyPath, deep, dataType);
|
|
133
|
-
|
|
134
|
-
if (editEnabled && !isReadOnly && typeof inputRef.focus === 'function') {
|
|
135
|
-
inputRef.focus();
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}, {
|
|
139
|
-
key: "componentDidMount",
|
|
140
|
-
value: function componentDidMount() {
|
|
141
|
-
document.addEventListener('keydown', this.onKeydown);
|
|
142
|
-
}
|
|
143
|
-
}, {
|
|
144
|
-
key: "componentWillUnmount",
|
|
145
|
-
value: function componentWillUnmount() {
|
|
146
|
-
document.removeEventListener('keydown', this.onKeydown);
|
|
147
|
-
}
|
|
148
|
-
}, {
|
|
149
|
-
key: "onKeydown",
|
|
150
|
-
value: function onKeydown(event) {
|
|
151
|
-
if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey || event.repeat) return;
|
|
152
|
-
|
|
153
|
-
if (event.code === 'Enter' || event.key === 'Enter') {
|
|
154
|
-
event.preventDefault();
|
|
155
|
-
this.handleEdit();
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
if (event.code === 'Escape' || event.key === 'Escape') {
|
|
159
|
-
event.preventDefault();
|
|
160
|
-
this.handleCancelEdit();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}, {
|
|
164
|
-
key: "handleEdit",
|
|
165
|
-
value: function handleEdit() {
|
|
166
|
-
var _this2 = this;
|
|
167
|
-
|
|
168
|
-
var _this$props2 = this.props,
|
|
169
|
-
handleUpdateValue = _this$props2.handleUpdateValue,
|
|
170
|
-
originalValue = _this$props2.originalValue,
|
|
171
|
-
logger = _this$props2.logger,
|
|
172
|
-
onSubmitValueParser = _this$props2.onSubmitValueParser,
|
|
173
|
-
keyPath = _this$props2.keyPath;
|
|
174
|
-
var _this$state2 = this.state,
|
|
175
|
-
inputRef = _this$state2.inputRef,
|
|
176
|
-
name = _this$state2.name,
|
|
177
|
-
deep = _this$state2.deep;
|
|
178
|
-
if (!inputRef) return;
|
|
179
|
-
var newValue = onSubmitValueParser(true, keyPath, deep, name, inputRef.value);
|
|
180
|
-
var result = {
|
|
181
|
-
value: newValue,
|
|
182
|
-
key: name
|
|
183
|
-
}; // Run update
|
|
184
|
-
|
|
185
|
-
handleUpdateValue(result).then(function () {
|
|
186
|
-
// Cancel edit mode if necessary
|
|
187
|
-
if (!(0, _objectTypes.isComponentWillChange)(originalValue, newValue)) {
|
|
188
|
-
_this2.handleCancelEdit();
|
|
189
|
-
}
|
|
190
|
-
}).catch(logger.error);
|
|
191
|
-
}
|
|
192
|
-
}, {
|
|
193
|
-
key: "handleEditMode",
|
|
194
|
-
value: function handleEditMode() {
|
|
195
|
-
this.setState({
|
|
196
|
-
editEnabled: true
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
}, {
|
|
200
|
-
key: "refInput",
|
|
201
|
-
value: function refInput(node) {
|
|
202
|
-
this.state.inputRef = node;
|
|
203
|
-
}
|
|
204
|
-
}, {
|
|
205
|
-
key: "handleCancelEdit",
|
|
206
|
-
value: function handleCancelEdit() {
|
|
207
|
-
this.setState({
|
|
208
|
-
editEnabled: false
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
}, {
|
|
212
|
-
key: "render",
|
|
213
|
-
value: function render() {
|
|
214
|
-
var _this$state3 = this.state,
|
|
215
|
-
name = _this$state3.name,
|
|
216
|
-
value = _this$state3.value,
|
|
217
|
-
editEnabled = _this$state3.editEnabled,
|
|
218
|
-
keyPath = _this$state3.keyPath,
|
|
219
|
-
deep = _this$state3.deep;
|
|
220
|
-
var _this$props3 = this.props,
|
|
221
|
-
handleRemove = _this$props3.handleRemove,
|
|
222
|
-
originalValue = _this$props3.originalValue,
|
|
223
|
-
readOnly = _this$props3.readOnly,
|
|
224
|
-
dataType = _this$props3.dataType,
|
|
225
|
-
getStyle = _this$props3.getStyle,
|
|
226
|
-
editButtonElement = _this$props3.editButtonElement,
|
|
227
|
-
cancelButtonElement = _this$props3.cancelButtonElement,
|
|
228
|
-
inputElementGenerator = _this$props3.inputElementGenerator,
|
|
229
|
-
minusMenuElement = _this$props3.minusMenuElement,
|
|
230
|
-
comeFromKeyPath = _this$props3.keyPath;
|
|
231
|
-
var style = getStyle(name, originalValue, keyPath, deep, dataType);
|
|
232
|
-
var isReadOnly = readOnly(name, originalValue, keyPath, deep, dataType);
|
|
233
|
-
var isEditing = editEnabled && !isReadOnly;
|
|
234
|
-
var inputElement = inputElementGenerator(_inputUsageTypes.default.VALUE, comeFromKeyPath, deep, name, originalValue, dataType);
|
|
235
|
-
|
|
236
|
-
var editButtonElementLayout = /*#__PURE__*/_react.default.cloneElement(editButtonElement, {
|
|
237
|
-
onClick: this.handleEdit
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
var cancelButtonElementLayout = /*#__PURE__*/_react.default.cloneElement(cancelButtonElement, {
|
|
241
|
-
onClick: this.handleCancelEdit
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
var inputElementLayout = /*#__PURE__*/_react.default.cloneElement(inputElement, {
|
|
245
|
-
ref: this.refInput,
|
|
246
|
-
defaultValue: JSON.stringify(originalValue)
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
var minusMenuLayout = /*#__PURE__*/_react.default.cloneElement(minusMenuElement, {
|
|
250
|
-
onClick: handleRemove,
|
|
251
|
-
className: 'rejt-minus-menu',
|
|
252
|
-
style: style.minus
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
return /*#__PURE__*/_react.default.createElement("li", {
|
|
256
|
-
className: "rejt-value-node",
|
|
257
|
-
style: style.li
|
|
258
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
259
|
-
className: "rejt-name",
|
|
260
|
-
style: style.name
|
|
261
|
-
}, name, ' : '), isEditing ? /*#__PURE__*/_react.default.createElement("span", {
|
|
262
|
-
className: "rejt-edit-form",
|
|
263
|
-
style: style.editForm
|
|
264
|
-
}, inputElementLayout, " ", cancelButtonElementLayout, editButtonElementLayout) : /*#__PURE__*/_react.default.createElement("span", {
|
|
265
|
-
className: "rejt-value",
|
|
266
|
-
style: style.value,
|
|
267
|
-
onClick: isReadOnly ? null : this.handleEditMode
|
|
268
|
-
}, String(value)), !isReadOnly && !isEditing && minusMenuLayout);
|
|
269
|
-
}
|
|
270
|
-
}], [{
|
|
271
|
-
key: "getDerivedStateFromProps",
|
|
272
|
-
value: function getDerivedStateFromProps(props, state) {
|
|
273
|
-
return props.value !== state.value ? {
|
|
274
|
-
value: props.value
|
|
275
|
-
} : null;
|
|
276
|
-
}
|
|
277
|
-
}]);
|
|
278
|
-
|
|
279
|
-
return JsonValue;
|
|
280
|
-
}(_react.Component);
|
|
281
|
-
|
|
282
|
-
JsonValue.displayName = "JsonValue";
|
|
283
|
-
JsonValue.propTypes = {
|
|
284
|
-
name: _propTypes.default.string.isRequired,
|
|
285
|
-
value: _propTypes.default.any.isRequired,
|
|
286
|
-
originalValue: _propTypes.default.any,
|
|
287
|
-
keyPath: _propTypes.default.array,
|
|
288
|
-
deep: _propTypes.default.number,
|
|
289
|
-
handleRemove: _propTypes.default.func,
|
|
290
|
-
handleUpdateValue: _propTypes.default.func,
|
|
291
|
-
readOnly: _propTypes.default.func.isRequired,
|
|
292
|
-
dataType: _propTypes.default.string,
|
|
293
|
-
getStyle: _propTypes.default.func.isRequired,
|
|
294
|
-
editButtonElement: _propTypes.default.element,
|
|
295
|
-
cancelButtonElement: _propTypes.default.element,
|
|
296
|
-
inputElementGenerator: _propTypes.default.func.isRequired,
|
|
297
|
-
minusMenuElement: _propTypes.default.element,
|
|
298
|
-
logger: _propTypes.default.object.isRequired,
|
|
299
|
-
onSubmitValueParser: _propTypes.default.func.isRequired
|
|
300
|
-
};
|
|
301
|
-
JsonValue.defaultProps = {
|
|
302
|
-
keyPath: [],
|
|
303
|
-
deep: 0,
|
|
304
|
-
handleUpdateValue: function handleUpdateValue() {
|
|
305
|
-
return Promise.resolve();
|
|
306
|
-
},
|
|
307
|
-
editButtonElement: /*#__PURE__*/_react.default.createElement("button", null, "e"),
|
|
308
|
-
cancelButtonElement: /*#__PURE__*/_react.default.createElement("button", null, "c"),
|
|
309
|
-
minusMenuElement: /*#__PURE__*/_react.default.createElement("span", null, " - ")
|
|
310
|
-
};
|
|
311
|
-
var _default = JsonValue;
|
|
312
|
-
exports.default = _default;
|
package/dist/cjs/typings.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
# h1 Heading
|
|
2
|
-
|
|
3
|
-
## h2 Heading
|
|
4
|
-
|
|
5
|
-
### h3 Heading
|
|
6
|
-
|
|
7
|
-
#### h4 Heading
|
|
8
|
-
|
|
9
|
-
##### h5 Heading
|
|
10
|
-
|
|
11
|
-
###### h6 Heading
|
|
12
|
-
|
|
13
|
-
## Typographic replacements
|
|
14
|
-
|
|
15
|
-
Enable typographer option to see result.
|
|
16
|
-
|
|
17
|
-
(c) (C) (r) (R) (tm) (TM) (p) (P) +-
|
|
18
|
-
|
|
19
|
-
test.. test... test..... test?..... test!....
|
|
20
|
-
|
|
21
|
-
!!!!!! ???? ,, -- ---
|
|
22
|
-
|
|
23
|
-
"Smartypants, double quotes" and 'single quotes'
|
|
24
|
-
|
|
25
|
-
## Emphasis
|
|
26
|
-
|
|
27
|
-
**This is bold text**
|
|
28
|
-
|
|
29
|
-
**This is bold text**
|
|
30
|
-
|
|
31
|
-
_This is italic text_
|
|
32
|
-
|
|
33
|
-
_This is italic text_
|
|
34
|
-
|
|
35
|
-
_**This is bold italic text**_
|
|
36
|
-
|
|
37
|
-
~~Strikethrough~~
|
|
38
|
-
|
|
39
|
-
## Blockquotes
|
|
40
|
-
|
|
41
|
-
> Blockquotes can also be nested...
|
|
42
|
-
>
|
|
43
|
-
> > ...by using additional greater-than signs right next to each other...
|
|
44
|
-
> >
|
|
45
|
-
> > > ...or with spaces between arrows.
|
|
46
|
-
|
|
47
|
-
## Lists
|
|
48
|
-
|
|
49
|
-
Unordered
|
|
50
|
-
|
|
51
|
-
- Create a list by starting a line with `+`, `-`, or `*`
|
|
52
|
-
- Sub-lists are made by indenting 2 spaces:
|
|
53
|
-
- Marker character change forces new list start:
|
|
54
|
-
- Ac tristique libero volutpat at
|
|
55
|
-
* Facilisis in pretium nisl aliquet
|
|
56
|
-
- Nulla volutpat aliquam velit
|
|
57
|
-
- Hooray!
|
|
58
|
-
|
|
59
|
-
Ordered
|
|
60
|
-
|
|
61
|
-
1. Lorem ipsum dolor sit amet
|
|
62
|
-
2. Consectetur adipiscing elit
|
|
63
|
-
3. Integer molestie lorem at massa
|
|
64
|
-
|
|
65
|
-
1) You can use sequential numbers...
|
|
66
|
-
1) ...or keep all the numbers as `1.`
|
|
67
|
-
|
|
68
|
-
Start numbering with offset:
|
|
69
|
-
|
|
70
|
-
57. foo
|
|
71
|
-
1. bar
|
|
72
|
-
|
|
73
|
-
## Code
|
|
74
|
-
|
|
75
|
-
Inline `code`
|
|
76
|
-
|
|
77
|
-
Indented code
|
|
78
|
-
|
|
79
|
-
// Some comments
|
|
80
|
-
line 1 of code
|
|
81
|
-
line 2 of code
|
|
82
|
-
line 3 of code
|
|
83
|
-
|
|
84
|
-
Block code "fences"
|
|
85
|
-
|
|
86
|
-
```
|
|
87
|
-
Sample text here...
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
Syntax highlighting
|
|
91
|
-
|
|
92
|
-
```js
|
|
93
|
-
var foo = function(bar) {
|
|
94
|
-
return bar++;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
console.log(foo(5));
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Horizontal Rule
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
## Tables
|
|
105
|
-
|
|
106
|
-
| Option | Description |
|
|
107
|
-
| ------ | ------------------------------------------------------------------------- |
|
|
108
|
-
| data | path to data files to supply the data that will be passed into templates. |
|
|
109
|
-
| engine | engine to be used for processing templates. Handlebars is the default. |
|
|
110
|
-
| ext | extension to be used for dest files. |
|
|
111
|
-
|
|
112
|
-
Right aligned columns
|
|
113
|
-
|
|
114
|
-
| Option | Description |
|
|
115
|
-
| -----: | ------------------------------------------------------------------------: |
|
|
116
|
-
| data | path to data files to supply the data that will be passed into templates. |
|
|
117
|
-
| engine | engine to be used for processing templates. Handlebars is the default. |
|
|
118
|
-
| ext | extension to be used for dest files. |
|
|
119
|
-
|
|
120
|
-
## Links
|
|
121
|
-
|
|
122
|
-
[link text](http://dev.nodeca.com)
|
|
123
|
-
|
|
124
|
-
[link with title](http://nodeca.github.io/pica/demo/ 'title text!')
|
|
125
|
-
|
|
126
|
-
<!--lint disable no-literal-urls-->
|
|
127
|
-
Autoconverted link https://github.com/nodeca/pica (enable linkify to see)
|
|
128
|
-
<!--lint enable no-literal-urls-->
|
|
129
|
-
|
|
130
|
-
# [Link](https://storybook.js.org/) in heading
|
|
131
|
-
## [Link](https://storybook.js.org/) in heading
|
|
132
|
-
### [Link](https://storybook.js.org/) in heading
|
|
133
|
-
#### [Link](https://storybook.js.org/) in heading
|
|
134
|
-
##### [Link](https://storybook.js.org/) in heading
|
|
135
|
-
###### [Link](https://storybook.js.org/) in heading
|
|
136
|
-
|
|
137
|
-
## Images
|
|
138
|
-
|
|
139
|
-

|
|
140
|
-

|
|
141
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { typography } from '@storybook/theming';
|
|
2
|
-
import { Meta, Typeset } from '@storybook/addon-docs';
|
|
3
|
-
|
|
4
|
-
export const fontSizes = ['l3', 'l2', 'l1', 'm3', 'm2', 'm1', 's3', 's2', 's1'].map(
|
|
5
|
-
(size) => `${typography.size[size]}px`
|
|
6
|
-
);
|
|
7
|
-
|
|
8
|
-
export const sampleText =
|
|
9
|
-
'Storybook is an open source tool for building UI components and pages in isolation. It streamlines UI development, testing, and documentation.';
|
|
10
|
-
|
|
11
|
-
<Meta title="Basics/Typography" />
|
|
12
|
-
|
|
13
|
-
## Sans-serif
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
font-family:
|
|
17
|
-
"Nunito Sans",
|
|
18
|
-
-apple-system,
|
|
19
|
-
".SFNSText-Regular",
|
|
20
|
-
"San Francisco",
|
|
21
|
-
BlinkMacSystemFont,
|
|
22
|
-
"Segoe UI",
|
|
23
|
-
"Helvetica Neue",
|
|
24
|
-
Helvetica,
|
|
25
|
-
Arial,
|
|
26
|
-
sans-serif;
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
<Typeset
|
|
30
|
-
fontFamily={typography.fonts.base}
|
|
31
|
-
fontSizes={fontSizes}
|
|
32
|
-
fontWeight={typography.weight.regular}
|
|
33
|
-
sampleText={sampleText}
|
|
34
|
-
/>
|
|
35
|
-
<Typeset
|
|
36
|
-
fontFamily={typography.fonts.base}
|
|
37
|
-
fontSizes={fontSizes}
|
|
38
|
-
fontWeight={typography.weight.bold}
|
|
39
|
-
sampleText={sampleText}
|
|
40
|
-
/>
|
|
41
|
-
<Typeset
|
|
42
|
-
fontFamily={typography.fonts.base}
|
|
43
|
-
fontSizes={fontSizes}
|
|
44
|
-
fontWeight={typography.weight.black}
|
|
45
|
-
sampleText={sampleText}
|
|
46
|
-
/>
|
|
47
|
-
|
|
48
|
-
## Monospace
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
font-family:
|
|
52
|
-
ui-monospace,
|
|
53
|
-
Menlo,
|
|
54
|
-
Monaco,
|
|
55
|
-
"Roboto Mono",
|
|
56
|
-
"Oxygen Mono",
|
|
57
|
-
"Ubuntu Monospace",
|
|
58
|
-
"Source Code Pro",
|
|
59
|
-
"Droid Sans Mono",
|
|
60
|
-
"Courier New",
|
|
61
|
-
monospace;
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
<Typeset
|
|
65
|
-
fontFamily={typography.fonts.mono}
|
|
66
|
-
fontSizes={fontSizes}
|
|
67
|
-
fontWeight={typography.weight.regular}
|
|
68
|
-
sampleText={sampleText}
|
|
69
|
-
/>
|
|
70
|
-
<Typeset
|
|
71
|
-
fontFamily={typography.fonts.mono}
|
|
72
|
-
fontSizes={fontSizes}
|
|
73
|
-
fontWeight={typography.weight.bold}
|
|
74
|
-
sampleText={sampleText}
|
|
75
|
-
/>
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs';
|
|
2
|
-
|
|
3
|
-
import { themes, ThemeProvider, convert, ensure } from '@storybook/theming';
|
|
4
|
-
|
|
5
|
-
import { SideBySide } from './SideBySide';
|
|
6
|
-
|
|
7
|
-
<Meta title="Basics/ColorPalette" />
|
|
8
|
-
|
|
9
|
-
<SideBySide>
|
|
10
|
-
<div style={{background: '#202020' }}>
|
|
11
|
-
<ThemeProvider theme={ensure(themes.dark)}>
|
|
12
|
-
|
|
13
|
-
Dark theme Colors
|
|
14
|
-
|
|
15
|
-
<ColorPalette>
|
|
16
|
-
{Object.entries(convert(themes.dark).color).map(([k, v]) => {
|
|
17
|
-
if (typeof v === 'string' && (v.match(/^#/) || v.match(/^rgb/) || k.match(/color/i))) {
|
|
18
|
-
return <ColorItem key={k} title={k} colors={{ [k]: v }} />;
|
|
19
|
-
} else if (typeof v === 'object') {
|
|
20
|
-
return (
|
|
21
|
-
<ColorItem
|
|
22
|
-
key={k}
|
|
23
|
-
title={k}
|
|
24
|
-
colors={Object.entries(v).reduce(
|
|
25
|
-
(acc, [key, value]) =>
|
|
26
|
-
typeof value === 'string' &&
|
|
27
|
-
(value.match(/^#/) || value.match(/^rgb/) || key.match(/color/i))
|
|
28
|
-
? { ...acc, [key]: value }
|
|
29
|
-
: acc,
|
|
30
|
-
{}
|
|
31
|
-
)}
|
|
32
|
-
/>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
return null;
|
|
36
|
-
})}
|
|
37
|
-
</ColorPalette>
|
|
38
|
-
|
|
39
|
-
Dark theme Backgrounds
|
|
40
|
-
|
|
41
|
-
<ColorPalette>
|
|
42
|
-
{Object.entries(convert(themes.dark).background).map(([k,v]) => {
|
|
43
|
-
if(k === 'color'){
|
|
44
|
-
return null
|
|
45
|
-
}
|
|
46
|
-
if (typeof v === 'string' && (v.match(/^#/) || v.match(/^rgb/) || k.match(/color/i))) {
|
|
47
|
-
return (
|
|
48
|
-
<ColorItem
|
|
49
|
-
key={k}
|
|
50
|
-
title={k}
|
|
51
|
-
colors={{ [k]: v }}
|
|
52
|
-
/>
|
|
53
|
-
);
|
|
54
|
-
} else if (typeof v === 'object') {
|
|
55
|
-
const colors = Object.entries(v).reduce((acc, [key, value]) => (typeof value === 'string' && (value.match(/^#/) || value.match(/^rgb/) || key.match(/color/i))) ? {...acc, [key]: value} : acc, {});
|
|
56
|
-
return (
|
|
57
|
-
<ColorItem
|
|
58
|
-
key={k}
|
|
59
|
-
title={k}
|
|
60
|
-
colors={colors}
|
|
61
|
-
/>
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
return null;
|
|
65
|
-
})}
|
|
66
|
-
</ColorPalette>
|
|
67
|
-
</ThemeProvider></div>
|
|
68
|
-
<div styles={{ background: '#eeeeee'}}>
|
|
69
|
-
|
|
70
|
-
Light theme Colors
|
|
71
|
-
|
|
72
|
-
<ColorPalette>
|
|
73
|
-
{Object.entries(convert(themes.light).color).map(([k, v]) => {
|
|
74
|
-
if (typeof v === 'string' && (v.match(/^#/) || v.match(/^rgb/) || k.match(/color/i))) {
|
|
75
|
-
return <ColorItem key={k} title={k} colors={{ [k]: v }} />;
|
|
76
|
-
} else if (typeof v === 'object') {
|
|
77
|
-
return (
|
|
78
|
-
<ColorItem
|
|
79
|
-
key={k}
|
|
80
|
-
title={k}
|
|
81
|
-
colors={Object.entries(v).reduce(
|
|
82
|
-
(acc, [key, value]) =>
|
|
83
|
-
typeof value === 'string' &&
|
|
84
|
-
(value.match(/^#/) || value.match(/^rgb/) || key.match(/color/i))
|
|
85
|
-
? { ...acc, [key]: value }
|
|
86
|
-
: acc,
|
|
87
|
-
{}
|
|
88
|
-
)}
|
|
89
|
-
/>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
return null;
|
|
93
|
-
})}
|
|
94
|
-
</ColorPalette>
|
|
95
|
-
|
|
96
|
-
Light theme Backgrounds
|
|
97
|
-
|
|
98
|
-
<ColorPalette>
|
|
99
|
-
{Object.entries(convert(themes.light).background).map(([k,v]) => {
|
|
100
|
-
if(k === 'color'){
|
|
101
|
-
return null
|
|
102
|
-
}
|
|
103
|
-
if (typeof v === 'string' && (v.match(/^#/) || v.match(/^rgb/) || k.match(/color/i))) {
|
|
104
|
-
return (
|
|
105
|
-
<ColorItem
|
|
106
|
-
key={k}
|
|
107
|
-
title={k}
|
|
108
|
-
colors={{ [k]: v }}
|
|
109
|
-
/>
|
|
110
|
-
);
|
|
111
|
-
} else if (typeof v === 'object') {
|
|
112
|
-
const colors = Object.entries(v).reduce((acc, [key, value]) => (typeof value === 'string' && (value.match(/^#/) || value.match(/^rgb/) || key.match(/color/i))) ? {...acc, [key]: value} : acc, {});
|
|
113
|
-
return (
|
|
114
|
-
<ColorItem
|
|
115
|
-
key={k}
|
|
116
|
-
title={k}
|
|
117
|
-
colors={colors}
|
|
118
|
-
/>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
return null;
|
|
122
|
-
})}
|
|
123
|
-
</ColorPalette>
|
|
124
|
-
</div>
|
|
125
|
-
</SideBySide>
|