storybook-addon-paddings
Advanced tools
Comparing version 4.1.1 to 4.2.0
@@ -6,4 +6,6 @@ "use strict"; | ||
}); | ||
exports.default = exports.withPaddings = void 0; | ||
exports.default = void 0; | ||
require("core-js/modules/es.array.concat.js"); | ||
var _addons = require("@storybook/addons"); | ||
@@ -15,26 +17,44 @@ | ||
var setStyle = function setStyle() { | ||
var padding = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _constants.DEFAULT_PADDING; | ||
document.body.style.margin = '0'; | ||
document.body.style.padding = padding; | ||
document.body.style.transition = 'padding .3s'; | ||
var setStyle = function setStyle(selector, css) { | ||
var existingStyle = document.getElementById(selector); | ||
if (existingStyle) { | ||
if (existingStyle.innerHTML !== css) { | ||
existingStyle.innerHTML = css; | ||
} | ||
} else { | ||
var style = document.createElement('style'); | ||
style.setAttribute('id', selector); | ||
style.innerHTML = css; | ||
document.head.appendChild(style); | ||
} | ||
}; | ||
var withPaddings = function withPaddings(getStory, context) { | ||
var WithPaddings = function WithPaddings(getStory, context) { | ||
var _globals$PARAM_KEY; | ||
var globals = context.globals, | ||
parameters = context.parameters; | ||
var id = context.id, | ||
globals = context.globals, | ||
parameters = context.parameters, | ||
viewMode = context.viewMode; | ||
var globalsSelectedPadding = (_globals$PARAM_KEY = globals[_constants.PARAM_KEY]) == null ? void 0 : _globals$PARAM_KEY.value; | ||
var paddingsConfig = parameters[_constants.PARAM_KEY]; // eslint-disable-next-line react-hooks/rules-of-hooks | ||
var paddingsConfig = parameters[_constants.PARAM_KEY]; | ||
var isInDocs = viewMode === 'docs'; | ||
var selector = isInDocs ? "#anchor--".concat(id, " .docs-story > div") : '.sb-show-main'; | ||
var selectedPadding = (0, _addons.useMemo)(function () { | ||
var _getSelectedPadding; | ||
(0, _addons.useMemo)(function () { | ||
var selectedPadding = (0, _helpers.getSelectedPadding)((0, _helpers.normalizeValues)(paddingsConfig), globalsSelectedPadding); | ||
setStyle(selectedPadding); | ||
return (_getSelectedPadding = (0, _helpers.getSelectedPadding)((0, _helpers.normalizeValues)(paddingsConfig), globalsSelectedPadding)) != null ? _getSelectedPadding : _constants.DEFAULT_PADDING; | ||
}, [paddingsConfig, globalsSelectedPadding]); | ||
var paddingStyles = (0, _addons.useMemo)(function () { | ||
return "\n ".concat(selector, " {\n margin: 0;\n padding: ").concat(selectedPadding, " !important;\n transition: padding .3s;\n }\n\n ").concat(selector, " .innerZoomElementWrapper > div {\n border-width: 0 !important;\n }\n "); | ||
}, [selector, selectedPadding]); | ||
(0, _addons.useEffect)(function () { | ||
var selectorId = isInDocs ? "addon-paddings-docs-".concat(id) : "addon-paddings"; | ||
setStyle(selectorId, paddingStyles); | ||
}, [id, isInDocs, paddingStyles]); | ||
return getStory(context); | ||
}; | ||
exports.withPaddings = withPaddings; | ||
var _default = withPaddings; | ||
var _default = WithPaddings; | ||
exports.default = _default; |
"use strict"; | ||
require("core-js/modules/es.regexp.exec.js"); | ||
require("core-js/modules/es.string.match.js"); | ||
var _react = _interopRequireDefault(require("react")); | ||
@@ -19,3 +23,3 @@ | ||
var viewMode = _ref.viewMode; | ||
return viewMode === 'story'; | ||
return !!(viewMode && viewMode.match(/^(story|docs)$/)); | ||
}, | ||
@@ -22,0 +26,0 @@ render: function render() { |
@@ -1,26 +0,47 @@ | ||
import { useMemo } from '@storybook/addons'; | ||
import "core-js/modules/es.array.concat.js"; | ||
import { useEffect, useMemo } from '@storybook/addons'; | ||
import { DEFAULT_PADDING, PARAM_KEY } from './constants'; | ||
import { normalizeValues, getSelectedPadding } from './helpers'; | ||
var setStyle = function setStyle() { | ||
var padding = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_PADDING; | ||
document.body.style.margin = '0'; | ||
document.body.style.padding = padding; | ||
document.body.style.transition = 'padding .3s'; | ||
var setStyle = function setStyle(selector, css) { | ||
var existingStyle = document.getElementById(selector); | ||
if (existingStyle) { | ||
if (existingStyle.innerHTML !== css) { | ||
existingStyle.innerHTML = css; | ||
} | ||
} else { | ||
var style = document.createElement('style'); | ||
style.setAttribute('id', selector); | ||
style.innerHTML = css; | ||
document.head.appendChild(style); | ||
} | ||
}; | ||
export var withPaddings = function withPaddings(getStory, context) { | ||
var WithPaddings = function WithPaddings(getStory, context) { | ||
var _globals$PARAM_KEY; | ||
var globals = context.globals, | ||
parameters = context.parameters; | ||
var id = context.id, | ||
globals = context.globals, | ||
parameters = context.parameters, | ||
viewMode = context.viewMode; | ||
var globalsSelectedPadding = (_globals$PARAM_KEY = globals[PARAM_KEY]) == null ? void 0 : _globals$PARAM_KEY.value; | ||
var paddingsConfig = parameters[PARAM_KEY]; // eslint-disable-next-line react-hooks/rules-of-hooks | ||
var paddingsConfig = parameters[PARAM_KEY]; | ||
var isInDocs = viewMode === 'docs'; | ||
var selector = isInDocs ? "#anchor--".concat(id, " .docs-story > div") : '.sb-show-main'; | ||
var selectedPadding = useMemo(function () { | ||
var _getSelectedPadding; | ||
useMemo(function () { | ||
var selectedPadding = getSelectedPadding(normalizeValues(paddingsConfig), globalsSelectedPadding); | ||
setStyle(selectedPadding); | ||
return (_getSelectedPadding = getSelectedPadding(normalizeValues(paddingsConfig), globalsSelectedPadding)) != null ? _getSelectedPadding : DEFAULT_PADDING; | ||
}, [paddingsConfig, globalsSelectedPadding]); | ||
var paddingStyles = useMemo(function () { | ||
return "\n ".concat(selector, " {\n margin: 0;\n padding: ").concat(selectedPadding, " !important;\n transition: padding .3s;\n }\n\n ").concat(selector, " .innerZoomElementWrapper > div {\n border-width: 0 !important;\n }\n "); | ||
}, [selector, selectedPadding]); | ||
useEffect(function () { | ||
var selectorId = isInDocs ? "addon-paddings-docs-".concat(id) : "addon-paddings"; | ||
setStyle(selectorId, paddingStyles); | ||
}, [id, isInDocs, paddingStyles]); | ||
return getStory(context); | ||
}; | ||
export default withPaddings; | ||
export default WithPaddings; |
@@ -0,1 +1,3 @@ | ||
import "core-js/modules/es.regexp.exec.js"; | ||
import "core-js/modules/es.string.match.js"; | ||
import React from 'react'; | ||
@@ -11,3 +13,3 @@ import { addons, types } from '@storybook/addons'; | ||
var viewMode = _ref.viewMode; | ||
return viewMode === 'story'; | ||
return !!(viewMode && viewMode.match(/^(story|docs)$/)); | ||
}, | ||
@@ -14,0 +16,0 @@ render: function render() { |
@@ -6,3 +6,3 @@ /// <reference types="react" /> | ||
export declare const Svg: import("@emotion/styled-base").StyledComponent<import("react").SVGProps<SVGSVGElement>, SvgProps, import("@storybook/theming").Theme>; | ||
export declare const Path: import("@emotion/styled-base").StyledComponent<import("react").SVGProps<SVGPathElement>, Pick<import("react").SVGProps<SVGPathElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "name" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "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">, import("@storybook/theming").Theme>; | ||
export declare const Path: import("@emotion/styled-base").StyledComponent<import("react").SVGProps<SVGPathElement>, Pick<import("react").SVGProps<SVGPathElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "name" | "id" | "className" | "color" | "height" | "lang" | "max" | "media" | "method" | "min" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "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">, import("@storybook/theming").Theme>; | ||
export {}; |
import { StoryWrapper } from '@storybook/addons'; | ||
export declare const withPaddings: StoryWrapper; | ||
export default withPaddings; | ||
declare const WithPaddings: StoryWrapper; | ||
export default WithPaddings; |
{ | ||
"name": "storybook-addon-paddings", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"description": "Add paddings to view components under different white space settings", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
42816
624