@storybook/components 7.0.0-alpha.50 → 7.0.0-alpha.52
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/{chunk-XT2JDOW6.mjs → chunk-ATKEAK3V.mjs} +0 -0
- package/dist/{chunk-NQNZQAYS.mjs → chunk-DPDURHB4.mjs} +1 -1
- package/dist/{core-Z6ZB4CN7.mjs → core-2DA7QH5Q.mjs} +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.js +113 -113
- package/dist/index.mjs +4 -4
- package/dist/{refractor-ZNPBPFKY.mjs → refractor-PBZJQ4S3.mjs} +1 -1
- package/dist/{syntaxhighlighter-5RSM6NKF.mjs → syntaxhighlighter-PWVZX2OB.mjs} +1 -1
- package/package.json +8 -8
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as me,b as tt,c as de}from"./chunk-7YVUFIQD.mjs";import{a as st}from"./chunk-NM53OK5V.mjs";import{a as ut}from"./chunk-5RH6LG6R.mjs";import{a as mt}from"./chunk-EFO24MXV.mjs";import{a as pt}from"./chunk-6VAN3GSR.mjs";import{a as dt}from"./chunk-
|
|
1
|
+
import{a as me,b as tt,c as de}from"./chunk-7YVUFIQD.mjs";import{a as st}from"./chunk-NM53OK5V.mjs";import{a as ut}from"./chunk-5RH6LG6R.mjs";import{a as mt}from"./chunk-EFO24MXV.mjs";import{a as pt}from"./chunk-6VAN3GSR.mjs";import{a as dt}from"./chunk-ATKEAK3V.mjs";import{a as nt}from"./chunk-SD6RD7HH.mjs";import{a as ot}from"./chunk-QPHF7EDP.mjs";import{a as ct}from"./chunk-ZIOVBLBF.mjs";import{a as at}from"./chunk-CN4G555Q.mjs";import{a as it}from"./chunk-K3MV6DYB.mjs";import{a as lt}from"./chunk-QHLQMJ5K.mjs";import{a as rt}from"./chunk-RIFSDB55.mjs";import{b as y}from"./chunk-6KMKD42J.mjs";var Qe=y(tt());import D,{useCallback as $t,useState as Ht}from"react";import{logger as Rt}from"@storybook/client-logger";import{styled as Q}from"@storybook/theming";import Bt from"memoizerific";var fe=y(nt()),ge=fe.default;var ye=y(ot()),he=ye.default;var be=y(ct()),ve=be.default;var xe=y(at()),Se=xe.default;var Ne=y(it()),Le=Ne.default;var we=y(lt()),Pe=we.default;var Ce=y(rt()),Oe=Ce.default;var je=y(st()),Ae=je.default;var Te=y(ut()),Ee=Te.default;var ke=y(mt()),Ie=ke.default;var $e=y(pt()),He=$e.default;function ee(e,t){if(e==null)return{};var n=de(e,t),o,c;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c<a.length;c++)o=a[c],!(t.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,o)||(n[o]=e[o]))}return n}function I(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function te(e){if(Array.isArray(e))return I(e)}function ne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oe(e,t){if(!!e){if(typeof e=="string")return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}}function ce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e){return te(e)||ne(e)||oe(e)||ce()}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}import A from"react";import ft from"react";function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,o)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Re(Object(n),!0).forEach(function(o){W(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function gt(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var ie={};function yt(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return ie[t]||(ie[t]=gt(e)),ie[t]}function ht(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=e.filter(function(a){return a!=="token"}),c=yt(o);return c.reduce(function(a,l){return $($({},a),n[l])},t)}function Be(e){return e.join(" ")}function bt(e,t){var n=0;return function(o){return n+=1,o.map(function(c,a){return j({node:c,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}function j(e){var t=e.node,n=e.stylesheet,o=e.style,c=o===void 0?{}:o,a=e.useInlineStyles,l=e.key,i=t.properties,d=t.type,f=t.tagName,s=t.value;if(d==="text")return s;if(f){var r=bt(n,a),u;if(!a)u=$($({},i),{},{className:Be(i.className)});else{var p=Object.keys(n).reduce(function(v,w){return w.split(".").forEach(function(P){v.includes(P)||v.push(P)}),v},[]),N=i.className&&i.className.includes("token")?["token"]:[],L=i.className&&N.concat(i.className.filter(function(v){return!p.includes(v)}));u=$($({},i),{},{className:Be(L)||void 0,style:ht(i.className,Object.assign({},i.style,c),n)})}var S=r(t.children);return ft.createElement(f,me({key:l},u),S)}}var We=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var vt=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fe(Object(n),!0).forEach(function(o){W(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}var xt=/\n/g;function St(e){return e.match(xt)}function Nt(e){var t=e.lines,n=e.startingLineNumber,o=e.style;return t.map(function(c,a){var l=a+n;return A.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof o=="function"?o(l):o},"".concat(l,`
|
|
3
3
|
`))})}function Lt(e){var t=e.codeString,n=e.codeStyle,o=e.containerStyle,c=o===void 0?{float:"left",paddingRight:"10px"}:o,a=e.numberStyle,l=a===void 0?{}:a,i=e.startingLineNumber;return A.createElement("code",{style:Object.assign({},n,c)},Nt({lines:t.replace(/\n$/,"").split(`
|
|
4
4
|
`),style:l,startingLineNumber:i}))}function wt(e){return"".concat(e.toString().length,".25em")}function De(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Me(e,t,n){var o={display:"inline-block",minWidth:wt(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},c=typeof e=="function"?e(t):e,a=x(x({},o),c);return a}function V(e){var t=e.children,n=e.lineNumber,o=e.lineNumberStyle,c=e.largestLineNumber,a=e.showInlineLineNumbers,l=e.lineProps,i=l===void 0?{}:l,d=e.className,f=d===void 0?[]:d,s=e.showLineNumbers,r=e.wrapLongLines,u=typeof i=="function"?i(n):i;if(u.className=f,n&&a){var p=Me(o,n,c);t.unshift(De(n,p))}return r&s&&(u.style=x(x({},u.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:u,children:t}}function ze(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o=0;o<e.length;o++){var c=e[o];if(c.type==="text")n.push(V({children:[c],className:ae(new Set(t))}));else if(c.children){var a=t.concat(c.properties.className);ze(c.children,a).forEach(function(l){return n.push(l)})}}return n}function Pt(e,t,n,o,c,a,l,i,d){var f,s=ze(e.value),r=[],u=-1,p=0;function N(b,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return V({children:b,lineNumber:m,lineNumberStyle:i,largestLineNumber:l,showInlineLineNumbers:c,lineProps:n,className:g,showLineNumbers:o,wrapLongLines:d})}function L(b,m){if(o&&m&&c){var g=Me(i,m,l);b.unshift(De(m,g))}return b}function S(b,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||g.length>0?N(b,m,g):L(b,m)}for(var v=function(){var m=s[p],g=m.children[0].value,M=St(g);if(M){var T=g.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-ATKEAK3V.mjs";import"./chunk-QDEBZGKY.mjs";import"./chunk-BETTTIDZ.mjs";import"./chunk-ZIOVBLBF.mjs";import"./chunk-RIFSDB55.mjs";import"./chunk-6KMKD42J.mjs";export default a();
|
package/dist/index.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ interface LinkInnerProps {
|
|
|
128
128
|
withArrow?: boolean;
|
|
129
129
|
containsIcon?: boolean;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
type AProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
132
132
|
interface LinkProps extends LinkInnerProps, LinkStylesProps {
|
|
133
133
|
cancel?: boolean;
|
|
134
134
|
className?: string;
|
|
@@ -148,7 +148,7 @@ interface SyntaxHighlighterRendererProps {
|
|
|
148
148
|
stylesheet: string;
|
|
149
149
|
useInlineStyles: boolean;
|
|
150
150
|
}
|
|
151
|
-
|
|
151
|
+
type SyntaxHighlighterRenderer = (props: SyntaxHighlighterRendererProps) => ReactNode;
|
|
152
152
|
interface SyntaxHighlighterCustomProps {
|
|
153
153
|
language: string;
|
|
154
154
|
copyable?: boolean;
|
|
@@ -159,8 +159,8 @@ interface SyntaxHighlighterCustomProps {
|
|
|
159
159
|
className?: string;
|
|
160
160
|
renderer?: SyntaxHighlighterRenderer;
|
|
161
161
|
}
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
type SyntaxHighlighterFormatTypes = boolean | 'dedent' | BuiltInParserName;
|
|
163
|
+
type LineTagPropsFunction = (lineNumber: number) => React.HTMLProps<HTMLElement>;
|
|
164
164
|
interface SyntaxHighlighterBaseProps {
|
|
165
165
|
children?: React.ReactNode;
|
|
166
166
|
codeTagProps?: React.HTMLProps<HTMLElement>;
|
|
@@ -173,7 +173,7 @@ interface SyntaxHighlighterBaseProps {
|
|
|
173
173
|
style?: any;
|
|
174
174
|
useInlineStyles?: boolean;
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
type SyntaxHighlighterProps = SyntaxHighlighterBaseProps & SyntaxHighlighterCustomProps;
|
|
177
177
|
|
|
178
178
|
declare const LazySyntaxHighlighter: react__default.LazyExoticComponent<react__default.FC<SyntaxHighlighterProps>>;
|
|
179
179
|
declare const SyntaxHighlighter: (props: ComponentProps<typeof LazySyntaxHighlighter>) => JSX.Element;
|
|
@@ -212,13 +212,13 @@ interface ScrollAreaProps {
|
|
|
212
212
|
}
|
|
213
213
|
declare const ScrollArea: FC<ScrollAreaProps>;
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
type ZoomProps = {
|
|
216
216
|
scale: number;
|
|
217
217
|
children: ReactElement | ReactElement[];
|
|
218
218
|
};
|
|
219
219
|
declare function ZoomElement({ scale, children }: ZoomProps): JSX.Element;
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
type IZoomIFrameProps = {
|
|
222
222
|
scale: number;
|
|
223
223
|
children: ReactElement<HTMLIFrameElement>;
|
|
224
224
|
iFrameRef: RefObject<HTMLIFrameElement>;
|
|
@@ -257,9 +257,9 @@ declare const ButtonWrapper: _storybook_theming.StyledComponent<{
|
|
|
257
257
|
}, react__default.DetailedHTMLProps<react__default.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
258
258
|
declare const Button: FC<ComponentProps<typeof ButtonWrapper>>;
|
|
259
259
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
type Sizes = '100%' | 'flex' | 'auto';
|
|
261
|
+
type Alignments = 'end' | 'center' | 'start';
|
|
262
|
+
type ValidationStates = 'valid' | 'error' | 'warn';
|
|
263
263
|
|
|
264
264
|
interface FieldProps {
|
|
265
265
|
children?: ReactNode;
|
|
@@ -276,7 +276,7 @@ declare const Form: _storybook_theming.StyledComponent<{
|
|
|
276
276
|
align?: Alignments;
|
|
277
277
|
valid?: ValidationStates;
|
|
278
278
|
height?: number;
|
|
279
|
-
}, "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "type" | "form" | "list" | "cite" | "cellPadding" | "cellSpacing" | "summary" | "width" | "alt" | "crossOrigin" | "height" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "start" | "data" | "label" | "slot" | "span" | "style" | "title" | "pattern" | "className" | "color" | "content" | "translate" | "default" | "hidden" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "
|
|
279
|
+
}, "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "type" | "form" | "list" | "cite" | "cellPadding" | "cellSpacing" | "summary" | "width" | "alt" | "crossOrigin" | "height" | "sizes" | "src" | "srcSet" | "useMap" | "value" | "reversed" | "start" | "data" | "label" | "slot" | "span" | "style" | "title" | "pattern" | "className" | "color" | "content" | "translate" | "default" | "hidden" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "disabled" | "wrap" | "key" | "rows" | "as" | "size" | "open" | "multiple" | "max" | "method" | "min" | "name" | "controls" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "valid" | "align" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "async" | "autoComplete" | "autoPlay" | "capture" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "coords" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "required" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "srcDoc" | "srcLang" | "step" | "wmode"> & react.RefAttributes<any> & {
|
|
280
280
|
theme?: _storybook_theming.Theme;
|
|
281
281
|
} & {
|
|
282
282
|
size?: Sizes;
|
|
@@ -505,7 +505,7 @@ declare const Item: _storybook_theming.StyledComponent<{
|
|
|
505
505
|
theme?: _storybook_theming.Theme;
|
|
506
506
|
as?: react__default.ElementType<any>;
|
|
507
507
|
} & ItemProps, react__default.DetailedHTMLProps<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
508
|
-
|
|
508
|
+
type LinkWrapperType = FC<any>;
|
|
509
509
|
interface ListItemProps extends Omit<ComponentProps<typeof Item>, 'href' | 'title'> {
|
|
510
510
|
loading?: boolean;
|
|
511
511
|
left?: ReactNode;
|
|
@@ -552,7 +552,7 @@ interface TabsProps {
|
|
|
552
552
|
bordered?: boolean;
|
|
553
553
|
}
|
|
554
554
|
declare const Tabs: FC<TabsProps>;
|
|
555
|
-
|
|
555
|
+
type FuncChildren = ({ active }: {
|
|
556
556
|
active: boolean;
|
|
557
557
|
}) => JSX.Element;
|
|
558
558
|
interface TabsStateProps {
|
|
@@ -830,7 +830,7 @@ declare const icons: {
|
|
|
830
830
|
readonly youtube: JSX.Element;
|
|
831
831
|
readonly vscode: JSX.Element;
|
|
832
832
|
};
|
|
833
|
-
|
|
833
|
+
type IconKey = keyof typeof icons;
|
|
834
834
|
|
|
835
835
|
declare const Svg: _storybook_theming.StyledComponent<{
|
|
836
836
|
theme?: _storybook_theming.Theme;
|
|
@@ -841,7 +841,7 @@ interface IconsProps extends ComponentProps<typeof Svg> {
|
|
|
841
841
|
useSymbol?: boolean;
|
|
842
842
|
}
|
|
843
843
|
declare const Icons: FunctionComponent<IconsProps>;
|
|
844
|
-
|
|
844
|
+
type IconType = keyof typeof icons;
|
|
845
845
|
interface SymbolsProps extends ComponentProps<typeof Svg> {
|
|
846
846
|
icons?: IconKey[];
|
|
847
847
|
}
|