@storybook/components 7.0.0-alpha.51 → 7.0.0-alpha.53
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 +1 -2
- package/dist/index.js +81 -81
- package/dist/index.mjs +5 -5
- package/dist/{refractor-ZNPBPFKY.mjs → refractor-PBZJQ4S3.mjs} +1 -1
- package/dist/{syntaxhighlighter-5RSM6NKF.mjs → syntaxhighlighter-PWVZX2OB.mjs} +1 -1
- package/package.json +5 -5
|
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
|
@@ -870,8 +870,7 @@ interface LoaderProps {
|
|
|
870
870
|
error?: Error;
|
|
871
871
|
size?: number;
|
|
872
872
|
}
|
|
873
|
-
declare const
|
|
874
|
-
declare const Loader: FC<ComponentProps<typeof PureLoader>>;
|
|
873
|
+
declare const Loader: FC<LoaderProps & ComponentProps<typeof ProgressWrapper>>;
|
|
875
874
|
|
|
876
875
|
declare const getStoryHref: (baseUrl: string, storyId: string, additionalParams?: Record<string, string>) => string;
|
|
877
876
|
|