@storybook/components 6.0.0-alpha.15 → 6.0.0-alpha.2
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/Button/Button.js +1 -1
- package/dist/ScrollArea/ScrollArea.js +1 -1
- package/dist/ScrollArea/ScrollArea.stories.js +1 -1
- package/dist/addon-panel/addon-panel.js +1 -1
- package/dist/bar/bar.js +1 -1
- package/dist/bar/separator.js +1 -1
- package/dist/blocks/DocsPage.stories.js +1 -1
- package/dist/blocks/IFrame.js +1 -1
- package/dist/blocks/Preview.js +1 -1
- package/dist/blocks/Preview.stories.js +1 -1
- package/dist/blocks/PropsTable/PropJsDoc.js +3 -1
- package/dist/blocks/PropsTable/PropRow.js +4 -2
- package/dist/blocks/PropsTable/PropValue.js +5 -3
- package/dist/blocks/Story.js +1 -1
- package/dist/blocks/Story.stories.js +1 -1
- package/dist/blocks/Toolbar.js +1 -1
- package/dist/form/index.d.ts +2 -2
- package/dist/form/input/input.d.ts +2 -2
- package/dist/form/input/input.js +1 -1
- package/dist/html.d.ts +1 -2
- package/dist/html.js +79 -10
- package/dist/placeholder/placeholder.js +1 -1
- package/dist/placeholder/placeholder.stories.js +1 -1
- package/dist/syntaxhighlighter/syntaxhighlighter.d.ts +1 -1
- package/dist/syntaxhighlighter/syntaxhighlighter.js +8 -8
- package/dist/syntaxhighlighter/syntaxhighlighter.stories.js +1 -1
- package/dist/tabs/tabs.d.ts +5 -5
- package/dist/tabs/tabs.js +17 -10
- package/dist/tabs/tabs.stories.js +1 -1
- package/dist/tooltip/TooltipLinkList.stories.js +1 -1
- package/dist/tooltip/WithTooltip.js +1 -1
- package/dist/typography/DocumentFormatting.d.ts +0 -24
- package/dist/typography/DocumentFormatting.js +2 -88
- package/package.json +11 -18
- package/ts3.5/dist/ActionBar/ActionBar.d.ts +0 -13
- package/ts3.5/dist/Badge/Badge.d.ts +0 -5
- package/ts3.5/dist/Button/Button.d.ts +0 -17
- package/ts3.5/dist/Loader/Loader.d.ts +0 -3
- package/ts3.5/dist/ScrollArea/ScrollArea.d.ts +0 -12
- package/ts3.5/dist/ScrollArea/ScrollAreaStyles.d.ts +0 -2
- package/ts3.5/dist/addon-panel/addon-panel.d.ts +0 -6
- package/ts3.5/dist/bar/bar.d.ts +0 -12
- package/ts3.5/dist/bar/button.d.ts +0 -25
- package/ts3.5/dist/bar/separator.d.ts +0 -6
- package/ts3.5/dist/blocks/BlockBackgroundStyles.d.ts +0 -2
- package/ts3.5/dist/blocks/ColorPalette.d.ts +0 -20
- package/ts3.5/dist/blocks/Description.d.ts +0 -9
- package/ts3.5/dist/blocks/DocsPage.d.ts +0 -11
- package/ts3.5/dist/blocks/EmptyBlock.d.ts +0 -1
- package/ts3.5/dist/blocks/IFrame.d.ts +0 -24
- package/ts3.5/dist/blocks/IconGallery.d.ts +0 -13
- package/ts3.5/dist/blocks/Preview.d.ts +0 -17
- package/ts3.5/dist/blocks/PropsTable/PropDef.d.ts +0 -25
- package/ts3.5/dist/blocks/PropsTable/PropJsDoc.d.ts +0 -8
- package/ts3.5/dist/blocks/PropsTable/PropRow.d.ts +0 -6
- package/ts3.5/dist/blocks/PropsTable/PropValue.d.ts +0 -7
- package/ts3.5/dist/blocks/PropsTable/PropsTable.d.ts +0 -23
- package/ts3.5/dist/blocks/PropsTable/SectionRow.d.ts +0 -5
- package/ts3.5/dist/blocks/Source.d.ts +0 -20
- package/ts3.5/dist/blocks/Story.d.ts +0 -25
- package/ts3.5/dist/blocks/Toolbar.d.ts +0 -15
- package/ts3.5/dist/blocks/Typeset.d.ts +0 -12
- package/ts3.5/dist/blocks/ZoomContext.d.ts +0 -4
- package/ts3.5/dist/blocks/index.d.ts +0 -10
- package/ts3.5/dist/brand/StorybookIcon.d.ts +0 -2
- package/ts3.5/dist/brand/StorybookLogo.d.ts +0 -5
- package/ts3.5/dist/form/field/field.d.ts +0 -5
- package/ts3.5/dist/form/index.d.ts +0 -16
- package/ts3.5/dist/form/input/input.d.ts +0 -25
- package/ts3.5/dist/html.d.ts +0 -3
- package/ts3.5/dist/icon/icon.d.ts +0 -7
- package/ts3.5/dist/icon/icons.d.ts +0 -155
- package/ts3.5/dist/icon/svg.d.ts +0 -6
- package/ts3.5/dist/index.d.ts +0 -24
- package/ts3.5/dist/placeholder/placeholder.d.ts +0 -2
- package/ts3.5/dist/shared/animation.d.ts +0 -1
- package/ts3.5/dist/spaced/Spaced.d.ts +0 -12
- package/ts3.5/dist/syntaxhighlighter/formatter.d.ts +0 -1
- package/ts3.5/dist/syntaxhighlighter/syntaxhighlighter.d.ts +0 -31
- package/ts3.5/dist/tabs/tabs.d.ts +0 -51
- package/ts3.5/dist/tooltip/ListItem.d.ts +0 -34
- package/ts3.5/dist/tooltip/Tooltip.d.ts +0 -21
- package/ts3.5/dist/tooltip/TooltipLinkList.d.ts +0 -11
- package/ts3.5/dist/tooltip/TooltipMessage.d.ts +0 -11
- package/ts3.5/dist/tooltip/TooltipNote.d.ts +0 -5
- package/ts3.5/dist/tooltip/WithTooltip.d.ts +0 -23
- package/ts3.5/dist/typography/DocumentFormatting.d.ts +0 -54
- package/ts3.5/dist/typography/DocumentWrapper.d.ts +0 -2
- package/ts3.5/dist/typography/link/link.d.ts +0 -22
- package/ts3.5/dist/typography/link/link.test.d.ts +0 -1
- package/ts3.5/dist/typography/shared.d.ts +0 -11
|
@@ -10,7 +10,7 @@ export interface InputStyleProps {
|
|
|
10
10
|
valid?: ValidationStates;
|
|
11
11
|
}
|
|
12
12
|
declare type InputProps = Omit<HTMLProps<HTMLInputElement>, keyof InputStyleProps> & InputStyleProps;
|
|
13
|
-
export declare const Input: import("@emotion/styled-base").StyledComponent<Pick<InputProps, "color" | "content" | "height" | "translate" | "width" | "start" | "hidden" | "size" | "style" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "href" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "cellPadding" | "cellSpacing" | "alt" | "crossOrigin" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "type" | "
|
|
13
|
+
export declare const Input: import("@emotion/styled-base").StyledComponent<Pick<InputProps, "color" | "content" | "height" | "translate" | "width" | "start" | "hidden" | "size" | "style" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "href" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "cellPadding" | "cellSpacing" | "alt" | "crossOrigin" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "type" | "list" | "step" | "async" | "max" | "media" | "method" | "min" | "name" | "target" | "download" | "hrefLang" | "rel" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "htmlFor" | "valid" | "align" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "as" | "autoComplete" | "autoPlay" | "capture" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "wmode"> & React.RefAttributes<any>, InputStyleProps, Theme> & {
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
declare type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, keyof InputStyleProps> & InputStyleProps;
|
|
@@ -18,7 +18,7 @@ export declare const Select: import("@emotion/styled-base").StyledComponent<Pick
|
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
20
|
declare type TextareaProps = Omit<TextareaAutosizeProps, keyof InputStyleProps> & InputStyleProps;
|
|
21
|
-
export declare const Textarea: import("@emotion/styled-base").StyledComponent<Pick<TextareaProps, "color" | "content" | "height" | "translate" | "width" | "start" | "hidden" | "size" | "style" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "href" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "cellPadding" | "cellSpacing" | "alt" | "crossOrigin" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "type" | "
|
|
21
|
+
export declare const Textarea: import("@emotion/styled-base").StyledComponent<Pick<TextareaProps, "color" | "content" | "height" | "translate" | "width" | "start" | "hidden" | "size" | "style" | "default" | "wrap" | "open" | "multiple" | "disabled" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "href" | "cite" | "data" | "form" | "label" | "span" | "summary" | "pattern" | "cellPadding" | "cellSpacing" | "alt" | "crossOrigin" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "type" | "list" | "step" | "async" | "max" | "media" | "method" | "min" | "name" | "target" | "download" | "hrefLang" | "rel" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "htmlFor" | "valid" | "align" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "as" | "autoComplete" | "autoPlay" | "capture" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "wmode" | "onHeightChange" | "useCacheForDOMMeasurements" | "minRows" | "maxRows" | "inputRef"> & React.RefAttributes<any>, TextareaProps, Theme> & {
|
|
22
22
|
displayName: string;
|
|
23
23
|
};
|
|
24
24
|
export declare const Button: FunctionComponent<any>;
|
package/dist/form/input/input.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) {
|
|
3
|
+
function _typeof(obj) { 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
4
|
|
|
5
5
|
require("core-js/modules/es.symbol");
|
|
6
6
|
|
package/dist/html.d.ts
CHANGED
package/dist/html.js
CHANGED
|
@@ -1,27 +1,96 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { 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.symbol");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.symbol.description");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.symbol.iterator");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.array.concat");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/es.array.index-of");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.array.is-array");
|
|
16
|
+
|
|
17
|
+
require("core-js/modules/es.array.iterator");
|
|
18
|
+
|
|
19
|
+
require("core-js/modules/es.array.reduce");
|
|
20
|
+
|
|
21
|
+
require("core-js/modules/es.date.to-string");
|
|
22
|
+
|
|
23
|
+
require("core-js/modules/es.object.assign");
|
|
24
|
+
|
|
25
|
+
require("core-js/modules/es.object.define-property");
|
|
26
|
+
|
|
27
|
+
require("core-js/modules/es.object.entries");
|
|
28
|
+
|
|
29
|
+
require("core-js/modules/es.object.keys");
|
|
30
|
+
|
|
31
|
+
require("core-js/modules/es.object.to-string");
|
|
32
|
+
|
|
33
|
+
require("core-js/modules/es.regexp.to-string");
|
|
34
|
+
|
|
35
|
+
require("core-js/modules/es.string.iterator");
|
|
36
|
+
|
|
37
|
+
require("core-js/modules/web.dom-collections.iterator");
|
|
38
|
+
|
|
3
39
|
Object.defineProperty(exports, "__esModule", {
|
|
4
40
|
value: true
|
|
5
41
|
});
|
|
6
42
|
var _exportNames = {
|
|
7
43
|
components: true
|
|
8
44
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return _DocumentFormatting.components;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
45
|
+
exports.components = void 0;
|
|
46
|
+
|
|
47
|
+
var React = _interopRequireWildcard(require("react"));
|
|
15
48
|
|
|
16
|
-
var
|
|
49
|
+
var rawComponents = _interopRequireWildcard(require("./typography/DocumentFormatting"));
|
|
17
50
|
|
|
18
|
-
Object.keys(
|
|
51
|
+
Object.keys(rawComponents).forEach(function (key) {
|
|
19
52
|
if (key === "default" || key === "__esModule") return;
|
|
20
53
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
21
54
|
Object.defineProperty(exports, key, {
|
|
22
55
|
enumerable: true,
|
|
23
56
|
get: function get() {
|
|
24
|
-
return
|
|
57
|
+
return rawComponents[key];
|
|
25
58
|
}
|
|
26
59
|
});
|
|
27
|
-
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
63
|
+
|
|
64
|
+
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; }
|
|
65
|
+
|
|
66
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
67
|
+
|
|
68
|
+
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); }
|
|
69
|
+
|
|
70
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
71
|
+
|
|
72
|
+
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; }
|
|
73
|
+
|
|
74
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
75
|
+
|
|
76
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
77
|
+
|
|
78
|
+
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
79
|
+
|
|
80
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
81
|
+
|
|
82
|
+
var components = Object.entries(rawComponents).reduce(function (acc, _ref) {
|
|
83
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
84
|
+
k = _ref2[0],
|
|
85
|
+
V = _ref2[1];
|
|
86
|
+
|
|
87
|
+
return Object.assign({}, acc, _defineProperty({}, k.toLowerCase(), function (_ref3) {
|
|
88
|
+
var className = _ref3.className,
|
|
89
|
+
rest = _objectWithoutProperties(_ref3, ["className"]);
|
|
90
|
+
|
|
91
|
+
return React.createElement(V, _extends({}, rest, {
|
|
92
|
+
className: "sbdocs sbdocs-".concat(k.toLowerCase()).concat(className ? " ".concat(className) : '')
|
|
93
|
+
}));
|
|
94
|
+
}));
|
|
95
|
+
}, {});
|
|
96
|
+
exports.components = components;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) {
|
|
3
|
+
function _typeof(obj) { 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
4
|
|
|
5
5
|
require("core-js/modules/es.symbol");
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) {
|
|
3
|
+
function _typeof(obj) { 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
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentProps, FunctionComponent } from 'react';
|
|
2
2
|
import { PrismLight as ReactSyntaxHighlighter } from 'react-syntax-highlighter';
|
|
3
|
-
import createElement from 'react-syntax-highlighter/dist/
|
|
3
|
+
import createElement from 'react-syntax-highlighter/dist/esm/create-element';
|
|
4
4
|
export { createElement as createSyntaxHighlighterElement };
|
|
5
5
|
export interface WrapperProps {
|
|
6
6
|
bordered?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) {
|
|
3
|
+
function _typeof(obj) { 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
4
|
|
|
5
5
|
require("core-js/modules/es.symbol");
|
|
6
6
|
|
|
@@ -57,21 +57,21 @@ var _global = require("global");
|
|
|
57
57
|
|
|
58
58
|
var _memoizerific = _interopRequireDefault(require("memoizerific"));
|
|
59
59
|
|
|
60
|
-
var _jsx = _interopRequireDefault(require("react-syntax-highlighter/dist/
|
|
60
|
+
var _jsx = _interopRequireDefault(require("react-syntax-highlighter/dist/esm/languages/prism/jsx"));
|
|
61
61
|
|
|
62
|
-
var _bash = _interopRequireDefault(require("react-syntax-highlighter/dist/
|
|
62
|
+
var _bash = _interopRequireDefault(require("react-syntax-highlighter/dist/esm/languages/prism/bash"));
|
|
63
63
|
|
|
64
|
-
var _css = _interopRequireDefault(require("react-syntax-highlighter/dist/
|
|
64
|
+
var _css = _interopRequireDefault(require("react-syntax-highlighter/dist/esm/languages/prism/css"));
|
|
65
65
|
|
|
66
|
-
var _markup = _interopRequireDefault(require("react-syntax-highlighter/dist/
|
|
66
|
+
var _markup = _interopRequireDefault(require("react-syntax-highlighter/dist/esm/languages/prism/markup"));
|
|
67
67
|
|
|
68
|
-
var _tsx = _interopRequireDefault(require("react-syntax-highlighter/dist/
|
|
68
|
+
var _tsx = _interopRequireDefault(require("react-syntax-highlighter/dist/esm/languages/prism/tsx"));
|
|
69
69
|
|
|
70
|
-
var _typescript = _interopRequireDefault(require("react-syntax-highlighter/dist/
|
|
70
|
+
var _typescript = _interopRequireDefault(require("react-syntax-highlighter/dist/esm/languages/prism/typescript"));
|
|
71
71
|
|
|
72
72
|
var _reactSyntaxHighlighter = require("react-syntax-highlighter");
|
|
73
73
|
|
|
74
|
-
var _createElement = _interopRequireDefault(require("react-syntax-highlighter/dist/
|
|
74
|
+
var _createElement = _interopRequireDefault(require("react-syntax-highlighter/dist/esm/create-element"));
|
|
75
75
|
|
|
76
76
|
var _ActionBar = require("../ActionBar/ActionBar");
|
|
77
77
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) {
|
|
3
|
+
function _typeof(obj) { 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
4
|
|
|
5
5
|
var React = _interopRequireWildcard(require("react"));
|
|
6
6
|
|
package/dist/tabs/tabs.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { Component, FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
export interface WrapperProps {
|
|
3
4
|
bordered?: boolean;
|
|
4
5
|
absolute?: boolean;
|
|
@@ -16,14 +17,16 @@ export interface TabWrapperProps {
|
|
|
16
17
|
children?: ReactNode;
|
|
17
18
|
}
|
|
18
19
|
export declare const TabWrapper: FunctionComponent<TabWrapperProps>;
|
|
19
|
-
export declare const panelProps: {
|
|
20
|
+
export declare const panelProps: {
|
|
21
|
+
active: PropTypes.Requireable<boolean>;
|
|
22
|
+
};
|
|
20
23
|
export interface TabsProps {
|
|
21
24
|
id?: string;
|
|
22
25
|
tools?: ReactNode;
|
|
23
26
|
selected?: string;
|
|
24
27
|
actions?: {
|
|
25
28
|
onSelect: (id: string) => void;
|
|
26
|
-
}
|
|
29
|
+
};
|
|
27
30
|
backgroundColor?: string;
|
|
28
31
|
absolute?: boolean;
|
|
29
32
|
bordered?: boolean;
|
|
@@ -43,9 +46,6 @@ export interface TabsStateState {
|
|
|
43
46
|
export declare class TabsState extends Component<TabsStateProps, TabsStateState> {
|
|
44
47
|
static defaultProps: TabsStateProps;
|
|
45
48
|
constructor(props: TabsStateProps);
|
|
46
|
-
handlers: {
|
|
47
|
-
onSelect: (id: string) => void;
|
|
48
|
-
};
|
|
49
49
|
render(): JSX.Element;
|
|
50
50
|
}
|
|
51
51
|
export {};
|
package/dist/tabs/tabs.js
CHANGED
|
@@ -33,6 +33,8 @@ exports.TabsState = exports.Tabs = exports.panelProps = exports.TabWrapper = exp
|
|
|
33
33
|
|
|
34
34
|
var _react = _interopRequireWildcard(require("react"));
|
|
35
35
|
|
|
36
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
37
|
+
|
|
36
38
|
var _theming = require("@storybook/theming");
|
|
37
39
|
|
|
38
40
|
var _placeholder = require("../placeholder/placeholder");
|
|
@@ -41,11 +43,13 @@ var _bar = require("../bar/bar");
|
|
|
41
43
|
|
|
42
44
|
var _button = require("../bar/button");
|
|
43
45
|
|
|
46
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
47
|
+
|
|
44
48
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
45
49
|
|
|
46
50
|
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; }
|
|
47
51
|
|
|
48
|
-
function _typeof(obj) {
|
|
52
|
+
function _typeof(obj) { 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); }
|
|
49
53
|
|
|
50
54
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
51
55
|
|
|
@@ -147,7 +151,9 @@ var TabWrapper = function TabWrapper(_ref7) {
|
|
|
147
151
|
|
|
148
152
|
exports.TabWrapper = TabWrapper;
|
|
149
153
|
TabWrapper.displayName = "TabWrapper";
|
|
150
|
-
var panelProps = {
|
|
154
|
+
var panelProps = {
|
|
155
|
+
active: _propTypes["default"].bool
|
|
156
|
+
};
|
|
151
157
|
exports.panelProps = panelProps;
|
|
152
158
|
|
|
153
159
|
var childrenToList = function childrenToList(children, selected) {
|
|
@@ -253,13 +259,6 @@ function (_Component) {
|
|
|
253
259
|
_classCallCheck(this, TabsState);
|
|
254
260
|
|
|
255
261
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(TabsState).call(this, props));
|
|
256
|
-
_this.handlers = {
|
|
257
|
-
onSelect: function onSelect(id) {
|
|
258
|
-
return _this.setState({
|
|
259
|
-
selected: id
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
262
|
_this.state = {
|
|
264
263
|
selected: props.initial
|
|
265
264
|
};
|
|
@@ -269,6 +268,8 @@ function (_Component) {
|
|
|
269
268
|
_createClass(TabsState, [{
|
|
270
269
|
key: "render",
|
|
271
270
|
value: function render() {
|
|
271
|
+
var _this2 = this;
|
|
272
|
+
|
|
272
273
|
var _this$props = this.props,
|
|
273
274
|
_this$props$bordered = _this$props.bordered,
|
|
274
275
|
bordered = _this$props$bordered === void 0 ? false : _this$props$bordered,
|
|
@@ -282,7 +283,13 @@ function (_Component) {
|
|
|
282
283
|
absolute: absolute,
|
|
283
284
|
selected: selected,
|
|
284
285
|
backgroundColor: backgroundColor,
|
|
285
|
-
actions:
|
|
286
|
+
actions: {
|
|
287
|
+
onSelect: function onSelect(id) {
|
|
288
|
+
return _this2.setState({
|
|
289
|
+
selected: id
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
}
|
|
286
293
|
}, children);
|
|
287
294
|
}
|
|
288
295
|
}]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) {
|
|
3
|
+
function _typeof(obj) { 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
4
|
|
|
5
5
|
require("core-js/modules/es.symbol");
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) {
|
|
3
|
+
function _typeof(obj) { 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
4
|
|
|
5
5
|
require("core-js/modules/es.array.slice");
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) {
|
|
3
|
+
function _typeof(obj) { 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
4
|
|
|
5
5
|
require("core-js/modules/es.symbol");
|
|
6
6
|
|
|
@@ -28,27 +28,3 @@ export declare const TT: import("@emotion/styled-base").StyledComponent<React.De
|
|
|
28
28
|
* easily override child elements that are not expecting it.
|
|
29
29
|
*/
|
|
30
30
|
export declare const ResetWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, import("@storybook/theming").Theme>;
|
|
31
|
-
export declare const components: {
|
|
32
|
-
h1: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
|
|
33
|
-
h2: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
|
|
34
|
-
h3: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
|
|
35
|
-
h4: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
|
|
36
|
-
h5: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
|
|
37
|
-
h6: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}, import("@storybook/theming").Theme>;
|
|
38
|
-
pre: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLPreElement>, HTMLPreElement>, {}, import("@storybook/theming").Theme>;
|
|
39
|
-
a: import("@emotion/styled-base").StyledComponent<any, {}, import("@storybook/theming").Theme>;
|
|
40
|
-
hr: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {}, import("@storybook/theming").Theme>;
|
|
41
|
-
dl: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDListElement>, HTMLDListElement>, {}, import("@storybook/theming").Theme>;
|
|
42
|
-
blockquote: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.BlockquoteHTMLAttributes<HTMLElement>, HTMLElement>, {}, import("@storybook/theming").Theme>;
|
|
43
|
-
table: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}, import("@storybook/theming").Theme>;
|
|
44
|
-
img: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}, import("@storybook/theming").Theme>;
|
|
45
|
-
div: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, import("@storybook/theming").Theme>;
|
|
46
|
-
span: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}, import("@storybook/theming").Theme>;
|
|
47
|
-
li: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}, import("@storybook/theming").Theme>;
|
|
48
|
-
ul: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}, import("@storybook/theming").Theme>;
|
|
49
|
-
ol: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, {}, import("@storybook/theming").Theme>;
|
|
50
|
-
p: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}, import("@storybook/theming").Theme>;
|
|
51
|
-
code: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, {}, import("@storybook/theming").Theme>;
|
|
52
|
-
tt: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTitleElement>, HTMLTitleElement>, {}, import("@storybook/theming").Theme>;
|
|
53
|
-
resetwrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}, import("@storybook/theming").Theme>;
|
|
54
|
-
};
|
|
@@ -2,14 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.symbol");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/es.array.concat");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.array.filter");
|
|
8
|
-
|
|
9
5
|
require("core-js/modules/es.array.index-of");
|
|
10
6
|
|
|
11
|
-
require("core-js/modules/es.array.join");
|
|
12
|
-
|
|
13
7
|
require("core-js/modules/es.object.assign");
|
|
14
8
|
|
|
15
9
|
require("core-js/modules/es.object.keys");
|
|
@@ -17,7 +11,7 @@ require("core-js/modules/es.object.keys");
|
|
|
17
11
|
Object.defineProperty(exports, "__esModule", {
|
|
18
12
|
value: true
|
|
19
13
|
});
|
|
20
|
-
exports.
|
|
14
|
+
exports.ResetWrapper = exports.TT = exports.Code = exports.P = exports.OL = exports.UL = exports.LI = exports.Span = exports.Div = exports.Img = exports.Table = exports.Blockquote = exports.DL = exports.HR = exports.A = exports.Pre = exports.H6 = exports.H5 = exports.H4 = exports.H3 = exports.H2 = exports.H1 = void 0;
|
|
21
15
|
|
|
22
16
|
var _react = _interopRequireDefault(require("react"));
|
|
23
17
|
|
|
@@ -450,84 +444,4 @@ exports.TT = TT;
|
|
|
450
444
|
|
|
451
445
|
var ResetWrapper = _theming.styled.div(_shared.withReset);
|
|
452
446
|
|
|
453
|
-
exports.ResetWrapper = ResetWrapper;
|
|
454
|
-
|
|
455
|
-
var nameSpaceClassNames = function nameSpaceClassNames(_ref17, key) {
|
|
456
|
-
var props = Object.assign({}, _ref17);
|
|
457
|
-
var classes = [props["class"], props.className]; // eslint-disable-next-line no-param-reassign
|
|
458
|
-
|
|
459
|
-
delete props["class"]; // eslint-disable-next-line no-param-reassign
|
|
460
|
-
|
|
461
|
-
props.className = ['sbdocs', "sbdocs-".concat(key)].concat(classes).filter(Boolean).join(' ');
|
|
462
|
-
return props;
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
var components = {
|
|
466
|
-
h1: function (props) {
|
|
467
|
-
return _react["default"].createElement(H1, nameSpaceClassNames(props, 'h1'));
|
|
468
|
-
},
|
|
469
|
-
h2: function (props) {
|
|
470
|
-
return _react["default"].createElement(H2, nameSpaceClassNames(props, 'h2'));
|
|
471
|
-
},
|
|
472
|
-
h3: function (props) {
|
|
473
|
-
return _react["default"].createElement(H3, nameSpaceClassNames(props, 'h3'));
|
|
474
|
-
},
|
|
475
|
-
h4: function (props) {
|
|
476
|
-
return _react["default"].createElement(H4, nameSpaceClassNames(props, 'h4'));
|
|
477
|
-
},
|
|
478
|
-
h5: function (props) {
|
|
479
|
-
return _react["default"].createElement(H5, nameSpaceClassNames(props, 'h5'));
|
|
480
|
-
},
|
|
481
|
-
h6: function (props) {
|
|
482
|
-
return _react["default"].createElement(H6, nameSpaceClassNames(props, 'h6'));
|
|
483
|
-
},
|
|
484
|
-
pre: function (props) {
|
|
485
|
-
return _react["default"].createElement(Pre, nameSpaceClassNames(props, 'pre'));
|
|
486
|
-
},
|
|
487
|
-
a: function (props) {
|
|
488
|
-
return _react["default"].createElement(A, nameSpaceClassNames(props, 'a'));
|
|
489
|
-
},
|
|
490
|
-
hr: function (props) {
|
|
491
|
-
return _react["default"].createElement(HR, nameSpaceClassNames(props, 'hr'));
|
|
492
|
-
},
|
|
493
|
-
dl: function (props) {
|
|
494
|
-
return _react["default"].createElement(DL, nameSpaceClassNames(props, 'dl'));
|
|
495
|
-
},
|
|
496
|
-
blockquote: function (props) {
|
|
497
|
-
return _react["default"].createElement(Blockquote, nameSpaceClassNames(props, 'blockquote'));
|
|
498
|
-
},
|
|
499
|
-
table: function (props) {
|
|
500
|
-
return _react["default"].createElement(Table, nameSpaceClassNames(props, 'table'));
|
|
501
|
-
},
|
|
502
|
-
img: function (props) {
|
|
503
|
-
return _react["default"].createElement(Img, nameSpaceClassNames(props, 'img'));
|
|
504
|
-
},
|
|
505
|
-
div: function (props) {
|
|
506
|
-
return _react["default"].createElement(Div, nameSpaceClassNames(props, 'div'));
|
|
507
|
-
},
|
|
508
|
-
span: function (props) {
|
|
509
|
-
return _react["default"].createElement(Span, nameSpaceClassNames(props, 'span'));
|
|
510
|
-
},
|
|
511
|
-
li: function (props) {
|
|
512
|
-
return _react["default"].createElement(LI, nameSpaceClassNames(props, 'li'));
|
|
513
|
-
},
|
|
514
|
-
ul: function (props) {
|
|
515
|
-
return _react["default"].createElement(UL, nameSpaceClassNames(props, 'ul'));
|
|
516
|
-
},
|
|
517
|
-
ol: function (props) {
|
|
518
|
-
return _react["default"].createElement(OL, nameSpaceClassNames(props, 'ol'));
|
|
519
|
-
},
|
|
520
|
-
p: function (props) {
|
|
521
|
-
return _react["default"].createElement(P, nameSpaceClassNames(props, 'p'));
|
|
522
|
-
},
|
|
523
|
-
code: function (props) {
|
|
524
|
-
return _react["default"].createElement(Code, nameSpaceClassNames(props, 'code'));
|
|
525
|
-
},
|
|
526
|
-
tt: function (props) {
|
|
527
|
-
return _react["default"].createElement(TT, nameSpaceClassNames(props, 'tt'));
|
|
528
|
-
},
|
|
529
|
-
resetwrapper: function (props) {
|
|
530
|
-
return _react["default"].createElement(ResetWrapper, nameSpaceClassNames(props, 'resetwrapper'));
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
exports.components = components;
|
|
447
|
+
exports.ResetWrapper = ResetWrapper;
|