diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000000..7628a6de4ea Binary files /dev/null and b/.DS_Store differ diff --git a/docs/.DS_Store b/docs/.DS_Store new file mode 100644 index 00000000000..5008ddfcf53 Binary files /dev/null and b/docs/.DS_Store differ diff --git a/docs/CSS/index.html b/docs/CSS/index.html deleted file mode 100644 index a379776d497..00000000000 --- a/docs/CSS/index.html +++ /dev/null @@ -1,6 +0,0 @@ -primer-react
\ No newline at end of file diff --git a/docs/GitHubAvatar/index.html b/docs/GitHubAvatar/index.html deleted file mode 100644 index ad4472948ec..00000000000 --- a/docs/GitHubAvatar/index.html +++ /dev/null @@ -1 +0,0 @@ -primer-react
\ No newline at end of file diff --git a/docs/MergeActions/index.html b/docs/MergeActions/index.html deleted file mode 100644 index 634e183a361..00000000000 --- a/docs/MergeActions/index.html +++ /dev/null @@ -1 +0,0 @@ -primer-react
  • Create a merge commit

    All commits from this branch will be added to the base branch via a merge commit.

  • Squash and merge

    The from this branch will be combined into one commit in the base branch.

  • Rebase and merge

    The from this branch will be rebased and added to the base branch

You can also open this in Github Desktop or view
\ No newline at end of file diff --git a/docs/MergeBox/index.html b/docs/MergeBox/index.html deleted file mode 100644 index 56c53a8c17d..00000000000 --- a/docs/MergeBox/index.html +++ /dev/null @@ -1 +0,0 @@ -primer-react

This branch has no conflicts with the base branch

Merging can be performed automatically

  • Create a merge commit

    All commits from this branch will be added to the base branch via a merge commit.

  • Squash and merge

    The from this branch will be combined into one commit in the base branch.

  • Rebase and merge

    The from this branch will be rebased and added to the base branch

You can also open this in Github Desktop or view
\ No newline at end of file diff --git a/docs/MergeButton/index.html b/docs/MergeButton/index.html deleted file mode 100644 index dcbbfc4f9d3..00000000000 --- a/docs/MergeButton/index.html +++ /dev/null @@ -1 +0,0 @@ -primer-react
  • Create a merge commit

    All commits from this branch will be added to the base branch via a merge commit.

  • Squash and merge

    The from this branch will be combined into one commit in the base branch.

  • Rebase and merge

    The from this branch will be rebased and added to the base branch

\ No newline at end of file diff --git a/docs/MergeDetail/index.html b/docs/MergeDetail/index.html deleted file mode 100644 index d1075c54b88..00000000000 --- a/docs/MergeDetail/index.html +++ /dev/null @@ -1 +0,0 @@ -primer-react

This branch has no conflicts with the base branch

Merging can be performed automatically

\ No newline at end of file diff --git a/docs/Meta/index.html b/docs/Meta/index.html deleted file mode 100644 index eacf1c5330e..00000000000 --- a/docs/Meta/index.html +++ /dev/null @@ -1 +0,0 @@ -primer-react
\ No newline at end of file diff --git a/docs/Page/index.html b/docs/Page/index.html deleted file mode 100644 index 6fbb95c7bba..00000000000 --- a/docs/Page/index.html +++ /dev/null @@ -1,6 +0,0 @@ -primer-react
\ No newline at end of file diff --git a/docs/Swatch/index.html b/docs/Swatch/index.html deleted file mode 100644 index a1e726fef1b..00000000000 --- a/docs/Swatch/index.html +++ /dev/null @@ -1 +0,0 @@ -primer-react

.

\ No newline at end of file diff --git a/docs/bundle.js b/docs/bundle.js index 583e814ef69..9e3d52f902b 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/primer-react/",n(n.s=681)}([function(e,t,n){"use strict";e.exports=n(633)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";var r=n(51),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];e.exports=function(e,t){var n,o;if(t=t||{},Object.keys(t).forEach(function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,o={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){o[String(t)]=e})}),o),-1===a.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){var n,a,o=t.children||[],s=o.length,u=[],l=-1;for(;++l=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){var r=n(22);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e};var r=t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};t.stripBasename=function(e,t){return r(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1)for(var n=1;n=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){e.exports=function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,o=Object.getPrototypeOf,s=o&&o(Object);return function u(c,l,f){if("string"!=typeof l){if(s){var h=o(l);h&&h!==s&&u(c,h,f)}var p=r(l);i&&(p=p.concat(i(l)));for(var d=0;d=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&u<=57343){l+=encodeURIComponent(e[a]+e[a+1]),a++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[a]);return l}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict"; +!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t1)for(var n=1;n=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){e.exports=function(){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,o=Object.getPrototypeOf,s=o&&o(Object);return function u(l,c,f){if("string"!=typeof c){if(s){var h=o(c);h&&h!==s&&u(l,h,f)}var p=r(c);i&&(p=p.concat(i(c)));for(var d=0;d1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&p(e),a=t&&p(t),o=i||a;if(e&&p(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var u=r[r.length-1];s="."===u||".."===u||""===u}else s=!1;for(var l=0,c=r.length;c>=0;c--){var f=r[c];"."===f?d(r,c):".."===f?(d(r,c),l++):l&&(d(r,c),l--)}if(!o)for(;l--;l)r.unshift("..");!o||""===r[0]||r[0]&&p(r[0])||r.unshift("");var h=r.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h},v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var g=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":v(t);if(r!==(void 0===n?"undefined":v(n)))return!1;if("object"===r){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var o=Object.keys(t),s=Object.keys(n);return o.length===s.length&&o.every(function(r){return e(t[r],n[r])})}return!1},y=function(e){return"/"===e.charAt(0)?e:"/"+e},b=function(e){return"/"===e.charAt(0)?e.substr(1):e},x=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},w=function(e,t){return x(e,t)?e.substr(t.length):e},_=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},E=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},k=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};h()(O,"Browser history needs a DOM");var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e.forceRefresh,o=void 0!==a&&a,s=e.getUserConfirmation,u=void 0===s?T:s,l=e.keyLength,f=void 0===l?6:l,p=e.basename?_(y(e.basename)):"",d=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,a=i.pathname+i.search+i.hash;return c()(!p||x(a,p),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+p+'".'),p&&(a=w(a,p)),S(a,r,n)},m=function(){return Math.random().toString(36).substr(2,f)},v=A(),g=function(e){j(q,e),q.length=n.length,v.notifyListeners(q.location,q.action)},b=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||F(d(e.state))},k=function(){F(d(N()))},C=!1,F=function(e){C?(C=!1,g()):v.confirmTransitionTo(e,"POP",u,function(t){t?g({action:"POP",location:e}):L(e)})},L=function(e){var t=q.location,n=B.indexOf(t.key);-1===n&&(n=0);var r=B.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(C=!0,z(i))},R=d(N()),B=[R.key],I=function(e){return p+E(e)},z=function(e){n.go(e)},H=0,V=function(e){1===(H+=e)?(D(window,"popstate",b),i&&D(window,"hashchange",k)):0===H&&(M(window,"popstate",b),i&&M(window,"hashchange",k))},U=!1,q={length:n.length,action:"POP",location:R,createHref:I,push:function(e,t){c()(!("object"===(void 0===e?"undefined":P(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=S(e,t,m(),q.location);v.confirmTransitionTo(i,"PUSH",u,function(e){if(e){var t=I(i),a=i.key,s=i.state;if(r)if(n.pushState({key:a,state:s},null,t),o)window.location.href=t;else{var u=B.indexOf(q.location.key),l=B.slice(0,-1===u?0:u+1);l.push(i.key),B=l,g({action:"PUSH",location:i})}else c()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=t}})},replace:function(e,t){c()(!("object"===(void 0===e?"undefined":P(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=S(e,t,m(),q.location);v.confirmTransitionTo(i,"REPLACE",u,function(e){if(e){var t=I(i),a=i.key,s=i.state;if(r)if(n.replaceState({key:a,state:s},null,t),o)window.location.replace(t);else{var u=B.indexOf(q.location.key);-1!==u&&(B[u]=i.key),g({action:"REPLACE",location:i})}else c()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(t)}})},go:z,goBack:function(){return z(-1)},goForward:function(){return z(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=v.setPrompt(e);return U||(V(1),U=!0),function(){return U&&(U=!1,V(-1)),t()}},listen:function(e){var t=v.appendListener(e);return V(1),function(){V(-1),t()}}};return q},L=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h()(O,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?T:r,a=e.hashType,o=void 0===a?"slash":a,s=e.basename?_(y(e.basename)):"",u=R[o],l=u.encodePath,f=u.decodePath,p=function(){var e=f(B());return c()(!s||x(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=w(e,s)),S(e)},d=A(),m=function(e){L(W,e),W.length=t.length,d.notifyListeners(W.location,W.action)},v=!1,g=null,b=function(){var e=B(),t=l(e);if(e!==t)I(t);else{var n=p(),r=W.location;if(!v&&C(r,n))return;if(g===E(n))return;g=null,k(n)}},k=function(e){v?(v=!1,m()):d.confirmTransitionTo(e,"POP",i,function(t){t?m({action:"POP",location:e}):P(e)})},P=function(e){var t=W.location,n=z.lastIndexOf(E(t));-1===n&&(n=0);var r=z.lastIndexOf(E(e));-1===r&&(r=0);var i=n-r;i&&(v=!0,H(i))},j=B(),N=l(j);j!==N&&I(N);var F=p(),z=[E(F)],H=function(e){c()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},V=0,U=function(e){1===(V+=e)?D(window,"hashchange",b):0===V&&M(window,"hashchange",b)},q=!1,W={length:t.length,action:"POP",location:F,createHref:function(e){return"#"+l(s+E(e))},push:function(e,t){c()(void 0===t,"Hash history cannot push state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=E(n),r=l(s+t);if(B()!==r){g=t,function(e){window.location.hash=e}(r);var i=z.lastIndexOf(E(W.location)),a=z.slice(0,-1===i?0:i+1);a.push(t),z=a,m({action:"PUSH",location:n})}else c()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),m()}})},replace:function(e,t){c()(void 0===t,"Hash history cannot replace state; it is ignored");var n=S(e,void 0,void 0,W.location);d.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=E(n),r=l(s+t);B()!==r&&(g=t,I(r));var i=z.indexOf(E(W.location));-1!==i&&(z[i]=t),m({action:"REPLACE",location:n})}})},go:H,goBack:function(){return H(-1)},goForward:function(){return H(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=d.setPrompt(e);return q||(U(1),q=!0),function(){return q&&(q=!1,U(-1)),t()}},listen:function(e){var t=d.appendListener(e);return U(1),function(){U(-1),t()}}};return W},H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,a=void 0===i?0:i,o=e.keyLength,s=void 0===o?6:o,u=A(),l=function(e){V(v,e),v.length=v.entries.length,u.notifyListeners(v.location,v.action)},f=function(){return Math.random().toString(36).substr(2,s)},h=U(a,0,r.length-1),p=r.map(function(e){return S(e,void 0,"string"==typeof e?f():e.key||f())}),d=E,m=function(e){var n=U(v.index+e,0,v.entries.length-1),r=v.entries[n];u.confirmTransitionTo(r,"POP",t,function(e){e?l({action:"POP",location:r,index:n}):l()})},v={length:p.length,action:"POP",location:p[h],index:h,entries:p,createHref:d,push:function(e,n){c()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=S(e,n,f(),v.location);u.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=v.index+1,n=v.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),l({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){c()(!("object"===(void 0===e?"undefined":H(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=S(e,n,f(),v.location);u.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(v.entries[v.index]=r,l({action:"REPLACE",location:r}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(e){var t=v.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return v},W=n(11),G=n.n(W),X=n(19),J=n.n(X),K=n(2),Y=n.n(K),$=Object.assign||function(e){for(var t=1;t may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){G()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?o.a.Children.only(e):null},t}(o.a.Component);Q.propTypes={history:Y.a.object.isRequired,children:Y.a.node},Q.contextTypes={router:Y.a.object},Q.childContextTypes={router:Y.a.object.isRequired};var ee=Q,te=ee;function ne(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var re=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(te,{history:this.history,children:this.props.children})},t}(o.a.Component);re.propTypes={basename:u.a.string,forceRefresh:u.a.bool,getUserConfirmation:u.a.func,keyLength:u.a.number,children:u.a.node};var ie=re;function ae(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var oe=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(te,{history:this.history,children:this.props.children})},t}(o.a.Component);oe.propTypes={basename:u.a.string,getUserConfirmation:u.a.func,hashType:u.a.oneOf(["hashbang","noslash","slash"]),children:u.a.node};var se=oe,ue=n(127),le=n.n(ue),ce=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);le()(this.context.router,"You should not use outside a "),le()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,a="string"==typeof t?S(t,null,null,i.location):t,s=i.createHref(a);return o.a.createElement("a",ce({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(o.a.Component);pe.propTypes={onClick:u.a.func,target:u.a.string,replace:u.a.bool,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired,innerRef:u.a.oneOfType([u.a.string,u.a.func])},pe.defaultProps={replace:!1},pe.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired,createHref:u.a.func.isRequired}).isRequired}).isRequired};var de=pe;function me(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ve=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return o.a.createElement(ee,{history:this.history,children:this.props.children})},t}(o.a.Component);ve.propTypes={initialEntries:Y.a.array,initialIndex:Y.a.number,getUserConfirmation:Y.a.func,keyLength:Y.a.number,children:Y.a.node};var ge=ve,ye=n(78),be=n.n(ye),xe={},we=0,_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,i=r.path,a=r.exact,o=void 0!==a&&a,s=r.strict,u=void 0!==s&&s,l=r.sensitive,c=void 0!==l&&l;if(null==i)return n;var f=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=xe[n]||(xe[n]={});if(r[e])return r[e];var i=[],a={re:be()(e,i,t),keys:i};return we<1e4&&(r[e]=a,we++),a}(i,{end:o,strict:u,sensitive:c}),h=f.re,p=f.keys,d=h.exec(e);if(!d)return null;var m=d[0],v=d.slice(1),g=e===m;return o&&!g?null:{path:i,url:"/"===i&&""===m?"/":m,isExact:g,params:p.reduce(function(e,t,n){return e[t.name]=v[n],e},{})}},Ee=Object.assign||function(e){for(var t=1;t or withRouter() outside a ");var u=t.route,l=(r||u.location).pathname;return _e(l,{path:i,strict:a,exact:o,sensitive:s},u.match)},t.prototype.componentWillMount=function(){G()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),G()(!(this.props.component&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored"),G()(!(this.props.render&&this.props.children&&!Se(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){G()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),G()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,i=t.render,a=this.context.router,s=a.history,u=a.route,l=a.staticContext,c={match:e,location:this.props.location||u.location,history:s,staticContext:l};return r?e?o.a.createElement(r,c):null:i?e?i(c):null:"function"==typeof n?n(c):n&&!Se(n)?o.a.Children.only(n):null},t}(o.a.Component);Ce.propTypes={computedMatch:Y.a.object,path:Y.a.string,exact:Y.a.bool,strict:Y.a.bool,sensitive:Y.a.bool,component:Y.a.func,render:Y.a.func,children:Y.a.oneOfType([Y.a.func,Y.a.node]),location:Y.a.object},Ce.contextTypes={router:Y.a.shape({history:Y.a.object.isRequired,route:Y.a.object.isRequired,staticContext:Y.a.object})},Ce.childContextTypes={router:Y.a.object.isRequired};var Ae=Ce,Oe=Ae,De=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),p="object"===(void 0===t?"undefined":Me(t))?t.pathname:t,d=p&&p.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return o.a.createElement(Oe,{path:d,exact:n,strict:r,location:i,children:function(e){var n=e.location,r=e.match,i=!!(c?c(r,n):r);return o.a.createElement(de,De({to:t,className:i?[s,a].filter(function(e){return e}).join(" "):s,style:i?De({},l,u):l,"aria-current":i&&f||null},h))}})};Te.propTypes={to:de.propTypes.to,exact:u.a.bool,strict:u.a.bool,location:u.a.object,activeClassName:u.a.string,className:u.a.string,activeStyle:u.a.object,style:u.a.object,isActive:u.a.func,"aria-current":u.a.oneOf(["page","step","location","date","time","true"])},Te.defaultProps={activeClassName:"active","aria-current":"page"};var Pe=Te;var je=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(o.a.Component);je.propTypes={when:Y.a.bool,message:Y.a.oneOfType([Y.a.func,Y.a.string]).isRequired},je.defaultProps={when:!0},je.contextTypes={router:Y.a.shape({history:Y.a.shape({block:Y.a.func.isRequired}).isRequired}).isRequired};var Ne=je,Fe={},Le=0,Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=Fe[t]||(Fe[t]={});if(n[e])return n[e];var r=be.a.compile(e);return Le<1e4&&(n[e]=r,Le++),r}(e)(t,{pretty:!0})},Be=Object.assign||function(e){for(var t=1;t outside a "),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=S(e.to),n=S(this.props.to);C(t,n)?G()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Re(n,t.params):Be({},n,{pathname:Re(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(o.a.Component);Ie.propTypes={computedMatch:Y.a.object,push:Y.a.bool,from:Y.a.string,to:Y.a.oneOfType([Y.a.string,Y.a.object]).isRequired},Ie.defaultProps={push:!1},Ie.contextTypes={router:Y.a.shape({history:Y.a.shape({push:Y.a.func.isRequired,replace:Y.a.func.isRequired}).isRequired,staticContext:Y.a.object}).isRequired};var ze=Ie,He=Object.assign||function(e){for(var t=1;t",e)}},Xe=function(){},Je=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=Array(i),o=0;o ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=Ue(e);return 0!==t.pathname.indexOf(n)?t:He({},t,{pathname:t.pathname.substr(n.length)})}(t,S(n)),push:this.handlePush,replace:this.handleReplace,go:Ge("go"),goBack:Ge("goBack"),goForward:Ge("goForward"),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(ee,He({},r,{history:i}))},t}(o.a.Component);Je.propTypes={basename:Y.a.string,context:Y.a.object.isRequired,location:Y.a.oneOfType([Y.a.string,Y.a.object])},Je.defaultProps={basename:"",location:"/"},Je.childContextTypes={router:Y.a.object.isRequired};var Ke=Je;var Ye=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillMount=function(){J()(this.context.router,"You should not use outside a ")},t.prototype.componentWillReceiveProps=function(e){G()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),G()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return o.a.Children.forEach(t,function(t){if(null==r&&o.a.isValidElement(t)){var a=t.props,s=a.path,u=a.exact,l=a.strict,c=a.sensitive,f=a.from,h=s||f;i=t,r=_e(n.pathname,{path:h,exact:u,strict:l,sensitive:c},e.match)}}),r?o.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(o.a.Component);Ye.contextTypes={router:Y.a.shape({route:Y.a.object.isRequired}).isRequired},Ye.propTypes={children:Y.a.node,location:Y.a.object};var $e=Ye,Ze=Re,Qe=_e,et=n(60),tt=n.n(et),nt=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return o.a.createElement(Ae,{children:function(t){return o.a.createElement(e,nt({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:Y.a.func},tt()(t,e)};n.d(t,"BrowserRouter",function(){return ie}),n.d(t,"HashRouter",function(){return se}),n.d(t,"Link",function(){return de}),n.d(t,"MemoryRouter",function(){return ge}),n.d(t,"NavLink",function(){return Pe}),n.d(t,"Prompt",function(){return Ne}),n.d(t,"Redirect",function(){return ze}),n.d(t,"Route",function(){return Oe}),n.d(t,"Router",function(){return te}),n.d(t,"StaticRouter",function(){return Ke}),n.d(t,"Switch",function(){return $e}),n.d(t,"generatePath",function(){return Ze}),n.d(t,"matchPath",function(){return Qe}),n.d(t,"withRouter",function(){return rt})},function(e,t,n){"use strict";var r={};function i(e,t,n){var a,o,s,u,l,c="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),l=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&u<=57343){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[a]);return c}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict"; /*! * repeat-string * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. - */var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=s;var r=n(124),i=!0,a="skip",o=!1;function s(e,t,n,s){function u(e,c,l){var f;return c=c||(l?0:null),t&&e.type!==t&&!r(t,e,c,l||null)||(f=n(e,c,l||null)),f===o?f:e.children&&f!==a&&function(e,t){var n,r,a=s?-1:1,c=(s?e.length:-1)+a;for(;c>-1&&c=48&&t<=57}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(30);e.exports=r.DEFAULT=new r({include:[n(38)],explicit:[n(375),n(374),n(373)]})},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";const r=n(141),i=n(76);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n(7)),i=f(n(0)),a=f(n(2)),o=f(n(80)),s=f(n(25)),u=f(n(82)),c=f(n(40)),l=f(n(33));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){var t=e.primary,n=e.onClick,a=e.numCommits,f=(e.children,{content:"",border:"4px solid",borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent",width:"0",height:"0"}),h={borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},p={};return t&&(p.scheme="primary"),i.default.createElement("div",{className:"BtnGroup"},i.default.createElement(s.default,(0,r.default)({},p,{grouped:!0,onClick:n,style:{borderRight:0}}),"Merge Pull Request"),i.default.createElement(o.default,{className:"details-reset d-flex float-right"},function(e){e.open;var t=e.toggle;return i.default.createElement(i.default.Fragment,null,i.default.createElement(s.default,(0,r.default)({tag:"summary"},p,{onClick:t,style:h}),i.default.createElement("div",{className:"d-inline-block v-align-middle",style:f})),i.default.createElement(l.default,{position:"absolute",width:300,mt:1,style:{zIndex:99999}},i.default.createElement(u.default,{caret:"top-left"},i.default.createElement("ul",{className:"list-style-none p-0 m-0"},i.default.createElement("li",{className:"border-bottom py-2 pl-4 pr-2"},i.default.createElement(c.default,{tag:"p",m:0,fontSize:1,fontWeight:"bold"},"Create a merge commit"),i.default.createElement(c.default,{tag:"p",m:0,fontSize:0},"All commits from this branch will be added to the base branch via a merge commit.")),i.default.createElement("li",{className:"border-bottom py-2 pl-4 pr-2"},i.default.createElement(c.default,{tag:"p",m:0,fontSize:1,fontWeight:"bold"},"Squash and merge"),i.default.createElement(c.default,{tag:"p",m:0,fontSize:0},"The ",a," from this branch will be combined into one commit in the base branch.")),i.default.createElement("li",{className:"py-2 pl-4 pr-2"},i.default.createElement(c.default,{tag:"p",m:0,fontSize:1,fontWeight:"bold"},"Rebase and merge"),i.default.createElement(c.default,{tag:"p",fontSize:0,m:0},"The ",a," from this branch will be rebased and added to the base branch"))))))}))};h.propTypes={primary:a.default.bool,onClick:a.default.func.isRequired,numCommits:a.default.number.isRequired},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkExternalOcticon=t.LightBulbOcticon=t.PlusSmallOcticon=t.GrabberOcticon=t.KeyOcticon=t.ZapOcticon=t.XOcticon=t.WatchOcticon=t.VersionsOcticon=t.VerifiedOcticon=t.UnverifiedOcticon=t.ScreenNormalOcticon=t.ScreenFullOcticon=t.NoteOcticon=t.ReportOcticon=t.KebabVerticalOcticon=t.KebabHorizontalOcticon=t.ProjectOcticon=t.UnmuteOcticon=t.UnfoldOcticon=t.TriangleUpOcticon=t.TriangleRightOcticon=t.TriangleLeftOcticon=t.TriangleDownOcticon=t.TrashcanOcticon=t.ToolsOcticon=t.ThumbsupOcticon=t.ThumbsdownOcticon=t.ThreeBarsOcticon=t.TextSizeOcticon=t.TerminalOcticon=t.TelescopeOcticon=t.TasklistOcticon=t.TagOcticon=t.SyncOcticon=t.StopOcticon=t.StarOcticon=t.SquirrelOcticon=t.SmileyOcticon=t.SignOutOcticon=t.SignInOcticon=t.ShieldOcticon=t.SettingsOcticon=t.ServerOcticon=t.SearchOcticon=t.RubyOcticon=t.RssOcticon=t.RocketOcticon=t.RepoOcticon=t.RepoPushOcticon=t.RepoPullOcticon=t.RepoForkedOcticon=t.RepoForcePushOcticon=t.RepoCloneOcticon=t.RadioTowerOcticon=t.QuoteOcticon=t.QuestionOcticon=t.PulseOcticon=t.PrimitiveSquareOcticon=t.PrimitiveDotOcticon=t.PlusOcticon=t.PlugOcticon=t.PinOcticon=t.PersonOcticon=t.PencilOcticon=t.PaintcanOcticon=t.PackageOcticon=t.OrganizationOcticon=t.OctofaceOcticon=t.NoNewlineOcticon=t.MuteOcticon=t.MortarBoardOcticon=t.MirrorOcticon=t.MilestoneOcticon=t.MentionOcticon=t.MegaphoneOcticon=void 0,t.MarkdownOcticon=t.MarkGithubOcticon=t.MailOcticon=t.ReplyOcticon=t.MailReadOcticon=t.LogoGithubOcticon=t.LogoGistOcticon=t.LockOcticon=t.LocationOcticon=t.ListUnorderedOcticon=t.ListOrderedOcticon=t.LinkOcticon=t.LawOcticon=t.KeyboardOcticon=t.JerseyOcticon=t.ItalicOcticon=t.IssueReopenedOcticon=t.IssueOpenedOcticon=t.IssueClosedOcticon=t.InfoOcticon=t.InboxOcticon=t.HubotOcticon=t.HorizontalRuleOcticon=t.HomeOcticon=t.HistoryOcticon=t.HeartOcticon=t.GraphOcticon=t.GlobeOcticon=t.GitPullRequestOcticon=t.GitMergeOcticon=t.GitCompareOcticon=t.GitCommitOcticon=t.GitBranchOcticon=t.GistOcticon=t.GistSecretOcticon=t.GiftOcticon=t.GearOcticon=t.FoldOcticon=t.FlameOcticon=t.FileZipOcticon=t.FileOcticon=t.FileSymlinkFileOcticon=t.FileSymlinkDirectoryOcticon=t.FileSubmoduleOcticon=t.FilePdfOcticon=t.FileMediaOcticon=t.FileDirectoryOcticon=t.FileCodeOcticon=t.FileBinaryOcticon=t.EyeOcticon=t.EllipsisOcticon=t.DiffOcticon=t.DiffRenamedOcticon=t.DiffRemovedOcticon=t.DiffModifiedOcticon=t.DiffIgnoredOcticon=t.DiffAddedOcticon=t.DeviceMobileOcticon=t.DeviceDesktopOcticon=t.DeviceCameraOcticon=t.DeviceCameraVideoOcticon=t.DesktopDownloadOcticon=t.DatabaseOcticon=t.DashboardOcticon=t.DashOcticon=t.CreditCardOcticon=t.CommentOcticon=t.CommentDiscussionOcticon=t.CodeOcticon=t.CloudUploadOcticon=t.CloudDownloadOcticon=t.ClockOcticon=t.ClippyOcticon=t.CircuitBoardOcticon=t.CircleSlashOcticon=t.ChevronUpOcticon=t.ChevronRightOcticon=t.ChevronLeftOcticon=t.ChevronDownOcticon=t.ChecklistOcticon=t.CheckOcticon=t.CalendarOcticon=t.BugOcticon=t.BrowserOcticon=t.BroadcastOcticon=t.BriefcaseOcticon=t.BookmarkOcticon=t.BookOcticon=t.BoldOcticon=t.BellOcticon=t.BeakerOcticon=t.ArrowSmallUpOcticon=t.ArrowSmallRightOcticon=t.ArrowSmallLeftOcticon=t.ArrowSmallDownOcticon=t.ArrowUpOcticon=t.ArrowRightOcticon=t.ArrowLeftOcticon=t.ArrowDownOcticon=t.AlertOcticon=void 0;var r,i=function(){function e(e,t){for(var n=0;n=55296&&ie<=57343||ie>1114111?(D(k,I),A="�"):A in a?(D(E,I),A=a[A]):(T="",C(A)&&D(E,I),A>65535&&(T+=l((A-=65536)>>>10|55296),A=56320|1023&A),A=T+l(A))):F!==p&&D(w,I)),A?(se(),R=ae(),Z=z-1,ee+=z-N+1,re.push(A),(B=ae()).offset++,q&&q.call(X,A,{start:R,end:B},e.slice(N-1,z)),R=B):(s=e.slice(N-1,z),ne+=s,ee+=s.length,Z=z-1)}var ie;return re.join("");function ae(){return{line:te,column:ee,offset:Z+(K.offset||0)}}function oe(t){return e.charAt(t)}function se(){ne&&(re.push(ne),U&&U.call(G,ne,{start:R,end:ae()}),ne="")}}(e,s)};var c={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",d="hexadecimal",m="decimal",v={};v[d]=16,v[m]=10;var g={};g[p]=u,g[m]=o,g[d]=s;var y=1,b=2,x=3,w=4,_=5,E=6,k=7,S={};function C(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}S[y]="Named character references must be terminated by a semicolon",S[b]="Numeric character references must be terminated by a semicolon",S[x]="Named character references cannot be empty",S[w]="Numeric character references cannot be empty",S[_]="Named character references must be known",S[E]="Numeric character references cannot be disallowed",S[k]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=!n(71)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){var n=Object.prototype.toString;function r(e){return e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return"GeneratorFunction"===r(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(e,t,n){"use strict";(function(e){const r=n(370),i=n(75);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=(e=>"buffer"===i(e)),t.isObject=(e=>"object"===i(e)),t.toBuffer=function(t){return"string"==typeof t?e.from(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(77).Buffer)},function(e,t,n){"use strict";(function(e){ + */var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";e.exports=s;var r=n(141),i=!0,a="skip",o=!1;function s(e,t,n,s){function u(e,l,c){var f;return l=l||(c?0:null),t&&e.type!==t&&!r(t,e,l,c||null)||(f=n(e,l,c||null)),f===o?f:e.children&&f!==a&&function(e,t){var n,r,a=s?-1:1,l=(s?e.length:-1)+a;for(;l>-1&&l=48&&t<=57}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(39);e.exports=r.DEFAULT=new r({include:[n(50)],explicit:[n(416),n(415),n(414)]})},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";const r=n(157),i=n(92);e.exports=function(e){const t=Object.assign({},e);return t.delimiters=i.arrayify(t.delims||t.delimiters||"---"),1===t.delimiters.length&&t.delimiters.push(t.delimiters[0]),t.language=(t.language||t.lang||"yaml").toLowerCase(),t.engines=Object.assign({},r,t.parsers,t.engines),t}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(662)),i=a(n(164));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var s,u=(0,i.default)(e);!(r=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u=55296&&ie<=57343||ie>1114111?(D(k,I),A="�"):A in a?(D(E,I),A=a[A]):(T="",C(A)&&D(E,I),A>65535&&(T+=c((A-=65536)>>>10|55296),A=56320|1023&A),A=T+c(A))):F!==p&&D(w,I)),A?(se(),R=ae(),Z=z-1,ee+=z-N+1,re.push(A),(B=ae()).offset++,q&&q.call(X,A,{start:R,end:B},e.slice(N-1,z)),R=B):(s=e.slice(N-1,z),ne+=s,ee+=s.length,Z=z-1)}var ie;return re.join("");function ae(){return{line:te,column:ee,offset:Z+(K.offset||0)}}function oe(t){return e.charAt(t)}function se(){ne&&(re.push(ne),U&&U.call(G,ne,{start:R,end:ae()}),ne="")}}(e,s)};var l={}.hasOwnProperty,c=String.fromCharCode,f=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",d="hexadecimal",m="decimal",v={};v[d]=16,v[m]=10;var g={};g[p]=u,g[m]=o,g[d]=s;var y=1,b=2,x=3,w=4,_=5,E=6,k=7,S={};function C(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}S[y]="Named character references must be terminated by a semicolon",S[b]="Numeric character references must be terminated by a semicolon",S[x]="Named character references cannot be empty",S[w]="Numeric character references cannot be empty",S[_]="Named character references must be known",S[E]="Numeric character references cannot be disallowed",S[k]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.flatten=t.cartesianProduct=t.extendDefaultProps=t.displayObj=t.toSrcPath=t.titleize=t.isIndex=t.introPage=t.log=void 0;var r=l(n(72)),i=l(n(98)),a=l(n(8)),o=l(n(106)),s=l(n(42)),u=n(199);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){return e.join(".")},f=function(e){return"object"===(void 0===e?"undefined":(0,r.default)(e))&&(t=e,!Array.isArray(t));var t};t.log=function(t){return e.env.VERBOSE&&console.log(t)},t.introPage=function(e){return e[ROOT_LEVEL_FILE]&&e[ROOT_LEVEL_FILE].find(function(e){return"introduction"===e.name})},t.isIndex=function(e){return/index\.md/.test(e)},t.titleize=function(e){return e.replace(/(?:^|\s|-)\S/g,function(e){return e.toUpperCase()}).replace(/(-|_)/g," ")},t.toSrcPath=function(e,t){return t.replace(/\md$/,"js").replace(e,"src").replace("components/","")},t.displayObj=function(e){return(0,s.default)(e).map(function(t){return t+"="+e[t]}).join(",")},t.extendDefaultProps=function(e,t){e.defaultProps=(0,o.default)({},e.defaultProps||{},t)},t.cartesianProduct=function(e){e.theme;var t=(0,a.default)(e,["theme"]),n=(0,u.reduce)((0,u.pipe)(u.xprod,(0,u.map)(u.unnest)),[[]]),r=(0,s.default)(t).reduce(function(e,n){return e.concat([(r=t[n],Array.isArray(r)?r:[r]).map(function(e){return(0,i.default)({},n,e)})]);var r},[]);return(0,u.map)(u.mergeAll,n(r))},t.flatten=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,s.default)(t).reduce(function(r,i){var a=t[i],s=n.concat([i]);return"string"==typeof a?(r[c(s)]=a,r):f(a)?(0,o.default)(r,e(a,s)):(a.forEach(function(e,t){var n=c(s.concat([t]));r[n]=e}),r)},{})}}).call(this,n(54))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=!n(87)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){var n=Object.prototype.toString;function r(e){return e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return"GeneratorFunction"===r(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(r(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},function(e,t,n){"use strict";(function(e){const r=n(411),i=n(91);t.define=function(e,t,n){Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})},t.isBuffer=(e=>"buffer"===i(e)),t.isObject=(e=>"object"===i(e)),t.toBuffer=function(t){return"string"==typeof t?e.from(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(93).Buffer)},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n(381),i=n(380),a=n(379);function o(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;as&&(n=s-u),a=n;a>=0;a--){for(var f=!0,h=0;hi&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&c)<<6|63&a)>127&&(l=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function F(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,a){return a||F(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||F(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||T(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(57))},function(e,t,n){"use strict";var r=n(30);e.exports=new r({explicit:[n(391),n(390),n(389)]})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.complexStyle=t.themeGet=t.pseudoStyle=t.responsiveStyle=t.style=t.getValue=t.merge=t.media=t.dec=t.breaks=t.fallbackTheme=t.mq=t.get=t.getWidth=t.arr=t.neg=t.px=t.num=t.is=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t1?p(e):100*e+"%"},t.get=function(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e)||n}),v=t.mq=function(e){return"@media screen and (min-width: "+p(e)+")"},g=t.fallbackTheme=function(e){return i({},s.default,m(e,"theme"))},y=t.breaks=function(e){return[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(a(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===o(e,-1);return(e=n(a(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,u=0;u0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(16),i=n(677),a=n(95),o=n(97)("IE_PROTO"),s=function(){},u=function(){var e,t=n(101)("iframe"),r=a.length;for(t.style.display="none",n(183).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" \ No newline at end of file diff --git a/docs/demos/index.html b/docs/demos/index.html new file mode 100644 index 00000000000..404fd5b868d --- /dev/null +++ b/docs/demos/index.html @@ -0,0 +1,6 @@ +primer-react
primer-react
  • Create a merge commit

    All commits from this branch will be added to the base branch via a merge commit.

  • Squash and merge

    The from this branch will be combined into one commit in the base branch.

  • Rebase and merge

    The from this branch will be rebased and added to the base branch

<MergeButton scheme='primary'/>
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index acceddab165..00000000000 --- a/docs/index.html +++ /dev/null @@ -1,6 +0,0 @@ -primer-react
primer-reactAvatarBlockBoxBranchNameButtonsCaretCircleOcticonCaretBoxColorsCounterLabelDetailsDropdownDonutChartFlashFont sizesForm elementsHeadingLabelLinkStateLabelMergeStatusMergeBoxMergeButtonTextTooltip
bg='white'
white
gray
black
bg='gray-dark'
white
gray
black
bg='gray'
white
gray
black
bg='gray-light'
white
gray
black
bg='blue'
white
gray
black
bg='blue-light'
white
gray
black
bg='green'
white
gray
black
bg='green-light'
white
gray
black
bg='red'
white
gray
black
bg='red-light'
white
gray
black
bg='yellow'
white
gray
black
bg='yellow-light'
white
gray
black
bg='purple'
white
gray
black
bg='purple-light'
white
gray
black
This is a box.
This is a box with padding.
This is a box with shadow.
This is a box with a medium shadow.
This is a box with a large shadow.
This is a box with an extra-large shadow.
This is a box with a green border.
a_new_feature_branch
location='top'
location='top-left'
location='top-right'
location='right'
location='right-top'
location='right-bottom'
location='bottom'
location='bottom-left'
location='bottom-right'
location='left'
location='left-top'
location='left-bottom'
CaretBox with shadow
gray-light CaretBox with red border
green CaretBox

gray.0

#fafbfc

gray.1

#f6f8fa

gray.2

#e1e4e8

gray.3

#d1d5da

gray.4

#959da5

gray.5

#6a737d

gray.6

#586069

gray.7

#444d56

gray.8

#2f363d

gray.9

#24292e

blue.0

#f1f8ff

blue.1

#dbedff

blue.2

#c8e1ff

blue.3

#79b8ff

blue.4

#2188ff

blue.5

#0366d6

blue.6

#005cc5

blue.7

#044289

blue.8

#032f62

blue.9

#05264c

green.0

#f0fff4

green.1

#dcffe4

green.2

#bef5cb

green.3

#85e89d

green.4

#34d058

green.5

#28a745

green.6

#22863a

green.7

#176f2c

green.8

#165c26

green.9

#144620

purple.0

#f5f0ff

purple.1

#e6dcfd

purple.2

#d1bcf9

purple.3

#b392f0

purple.4

#8a63d2

purple.5

#6f42c1

purple.6

#5a32a3

purple.7

#4c2889

purple.8

#3a1d6e

purple.9

#29134e

yellow.0

#fffdef

yellow.1

#fffbdd

yellow.2

#fff5b1

yellow.3

#ffea7f

yellow.4

#ffdf5d

yellow.5

#ffd33d

yellow.6

#f9c513

yellow.7

#dbab09

yellow.8

#b08800

yellow.9

#735c0f

orange.0

#fff8f2

orange.1

#ffebda

orange.2

#ffd1ac

orange.3

#ffab70

orange.4

#fb8532

orange.5

#f66a0a

orange.6

#e36209

orange.7

#d15704

orange.8

#c24e00

orange.9

#a04100
121313

With static children

Click me

This should show and hide

With children as a function

Show

This should show and hide

With render prop

hi

Dropdown Primary

  • Item 1
  • Item 2
  • Item 3

Dropdown

  • Item 1
  • Item 2
  • Item 3

Dropdown with title

Options
  • Item 1
  • Item 2
  • Item 3

With data prop

With DonutSlice children

With custom fill colors

Flash
Flash yellow
Flash red
Flash green
Flash full
fontSize 5
fontSize 4
fontSize 3
fontSize 2
fontSize 1
fontSize 0

Input

Input Sizes

Block input

Default Heading

Default labelDarker gray labelOrange labelGreen label
Default outline labelGreen outline label
Open
Closed
Merged
  • Create a merge commit

    All commits from this branch will be added to the base branch via a merge commit.

  • Squash and merge

    The from this branch will be combined into one commit in the base branch.

  • Rebase and merge

    The from this branch will be rebased and added to the base branch

Text
Text bold
Text green
Text lineHeight 'condensed'
Text fontSize 4
Text padding 4
Text with a tooltip
\ No newline at end of file diff --git a/docs/sandbox/index.html b/docs/sandbox/index.html new file mode 100644 index 00000000000..739166d3f58 --- /dev/null +++ b/docs/sandbox/index.html @@ -0,0 +1,11 @@ +primer-react
primer-react

Hello World!

To get started with the Sandbox, start adding some primer-react components
+
+  <Block p={4}>
+    <Heading>Hello World!</Heading>
+    <Text>To get started with the Sandbox, start adding some primer-react components</Text>
+  </Block>
\ No newline at end of file diff --git a/examples/_app.js b/examples/_app.js index 431cf730692..2d4a88600ed 100644 --- a/examples/_app.js +++ b/examples/_app.js @@ -1,11 +1,34 @@ -import CSS from './CSS' import React from 'react' +import { NavLink } from 'react-router-dom' +import CSS from './doc-components/CSS' -// Generic page wrapper component const Page = ({ render }) => ( + + primer-react + + + + + + + + + + + + + +
+ {render()}
diff --git a/examples/component-examples/Avatar.js b/examples/component-examples/Avatar.js new file mode 100644 index 00000000000..6f2da990059 --- /dev/null +++ b/examples/component-examples/Avatar.js @@ -0,0 +1,25 @@ +import React from 'react' +import { Block } from '../../src' +import GitHubAvatar from '../doc-components/GitHubAvatar' + +const AvatarExample = + { + name: 'Avatar', + element: ( +
+ + + + + + + + + {' '} + + +
+ ) + } + +export default AvatarExample diff --git a/examples/component-examples/Block.js b/examples/component-examples/Block.js new file mode 100644 index 00000000000..035e5a05a82 --- /dev/null +++ b/examples/component-examples/Block.js @@ -0,0 +1,45 @@ +import React from 'react' +import { Text, Block } from '../../src' + +const BlockExample = { + name: 'Block', + element: ( + + + {[ + // 'black', + 'white', + 'gray-dark', + 'gray', + 'gray-light', + 'blue', + 'blue-light', + 'green', + 'green-light', + 'red', + 'red-light', + 'yellow', + 'yellow-light', + 'purple', + 'purple-light', + // 'shade-gradient' + ].map((bg, i, style) => ( + + + {['white', 'gray', 'black'].map((fg, j) => ( + + ))} + + ))} + +
+ {`bg='${bg}'`} + + + {fg} + +
+ ) +} + +export default BlockExample diff --git a/examples/component-examples/Box.js b/examples/component-examples/Box.js new file mode 100644 index 00000000000..3df2bf453b6 --- /dev/null +++ b/examples/component-examples/Box.js @@ -0,0 +1,20 @@ +import React from 'react' +import { Box } from '../../src' + +const BoxExample = + { + name: 'Box', + element: ( +
+ This is a box + This is a box with padding. + This is a box with shadow. + This is a box with a medium shadow. + This is a box with a large shadow. + This is a box with an extra-large shadow. + This is a box with a green border. +
+ ) + } + +export default BoxExample diff --git a/examples/component-examples/BranchName.js b/examples/component-examples/BranchName.js new file mode 100644 index 00000000000..f0801622a00 --- /dev/null +++ b/examples/component-examples/BranchName.js @@ -0,0 +1,23 @@ +import React from 'react' +import { Detail } from '@compositor/kit' +import Octicon from '@github/octicons-react' +import { BranchName } from '../../src' +import ExampleHeading from '../doc-components/ExampleHeading' + +const BranchNameExample = + { + name: 'BranchName', + element: ( +
+ a_new_feature_branch + + Linked BranchName + a_new_feature_branch + BranchName with Octicon + a_new_feature_branch + +
+ ) + } + +export default BranchNameExample diff --git a/examples/component-examples/Buttons.js b/examples/component-examples/Buttons.js new file mode 100644 index 00000000000..41569856608 --- /dev/null +++ b/examples/component-examples/Buttons.js @@ -0,0 +1,47 @@ +import React from 'react' +import { + Block, + Button, + ButtonLink, + ButtonDanger, + ButtonPrimary, + ButtonOutline +} from '../../src' + +const ButtonExample = +{ + name: 'Buttons', + element: ( +
+ + + + + + + + + + + ButtonDanger + + + ButtonPrimary + + + ButtonOutline + + + + + + + + + This is an {''} styled as a button + +
+ ) +} + +export default ButtonExample diff --git a/examples/component-examples/Caret.js b/examples/component-examples/Caret.js new file mode 100644 index 00000000000..b363de45d67 --- /dev/null +++ b/examples/component-examples/Caret.js @@ -0,0 +1,19 @@ +import React from 'react' +import { Block, Caret, Text, Box } from '../../src' + +const CaretExample = + { + name: 'Caret', + element: ( + + {Caret.locations.map((loc, i) => ( + + location='{loc}' + + + ))} + + ) + } + +export default CaretExample diff --git a/examples/component-examples/CaretBox.js b/examples/component-examples/CaretBox.js new file mode 100644 index 00000000000..d91e9282bba --- /dev/null +++ b/examples/component-examples/CaretBox.js @@ -0,0 +1,33 @@ +import React from 'react' +import { PropsForm } from '@compositor/kit' +import { Block, Caret, CaretBox, theme } from '../../src' +import ExampleHeading from '../doc-components/ExampleHeading' + +const CaretBoxExample = + { + name: 'CaretBox', + element: ( + + CaretBox + + CaretBox + + {Caret.locations.map((loc, i) => ( + ))} + + + {Object.keys(theme.colors.border).map(borderColor => ( + + ))} + + + {Object.keys(theme.colors.bg).map(bgColor => ( + + ))} + + + + ) + } + +export default CaretBoxExample diff --git a/examples/component-examples/CircleOcticon.js b/examples/component-examples/CircleOcticon.js new file mode 100644 index 00000000000..7a1189b969a --- /dev/null +++ b/examples/component-examples/CircleOcticon.js @@ -0,0 +1,14 @@ +import React from 'react' +import { CircleOcticon } from '../../src' + +const CircleOcticonExample = + { + name: 'CircleOcticon', + element: ( +
+ +
+ ) + } + +export default CircleOcticonExample diff --git a/examples/component-examples/Colors.js b/examples/component-examples/Colors.js new file mode 100644 index 00000000000..98d5d34075c --- /dev/null +++ b/examples/component-examples/Colors.js @@ -0,0 +1,34 @@ +import React from 'react' +import { Block, theme } from '../../src' +import Swatch from '../doc-components/Swatch' + +const ColorsExample = + { + name: 'Colors', + element: ( +
+ {['gray', 'blue', 'green', 'purple', 'yellow', 'orange'].map((hue, i) => ( +
+ {theme.colors[hue].map((color, j) => ( + + ))} +
+ ))} +
+ + + + + + + + + + + +
+
+ ) + } + +export default ColorsExample diff --git a/examples/component-examples/CounterLabel.js b/examples/component-examples/CounterLabel.js new file mode 100644 index 00000000000..94845edbf59 --- /dev/null +++ b/examples/component-examples/CounterLabel.js @@ -0,0 +1,22 @@ +import React from 'react' +import { CounterLabel } from '../../src' + +const CounterLabelExample = + { + name: 'CounterLabel', + element: ( +
+ + 12 + + + 13 + + + 13 + +
+ ) + } + +export default CounterLabelExample diff --git a/examples/component-examples/Details.js b/examples/component-examples/Details.js new file mode 100644 index 00000000000..560a9343819 --- /dev/null +++ b/examples/component-examples/Details.js @@ -0,0 +1,35 @@ +import React from 'react' +import { Block, Details } from '../../src' +import ExampleHeading from '../doc-components/ExampleHeading' + +const DetailsExample = +{ + name: 'Details', + element: ( +
+ + With static children +
+ Click me +

This should show and hide

+
+
+ + With children as a function +
{({open, toggle}) => ( + + {open ? 'Hide' : 'Show'} +

This should show and hide

+
+ )} +
+
+ + With render prop +
'hi'}/> + +
+ ) +} + +export default DetailsExample diff --git a/examples/component-examples/DonutChart.js b/examples/component-examples/DonutChart.js new file mode 100644 index 00000000000..39253f7a6ff --- /dev/null +++ b/examples/component-examples/DonutChart.js @@ -0,0 +1,71 @@ +import React from 'react' +import { Block, DonutChart, Text, DonutSlice, theme } from '../../src' +import ExampleHeading from '../doc-components/ExampleHeading' + +const DonutChartExample = + { + name: 'DonutChart', + element: ( +
+ + With data prop + + {' '} + + {' '} + + {' '} + + {' '} + + {' '} + + + + With DonutSlice children + + + + + + {' '} + + + + + + {' '} + + + + + {' '} + + + + + {' '} + + + + + {' '} + + + + + + With custom fill colors + + + + + + + + +
+ ) +} + +export default DonutChartExample diff --git a/examples/component-examples/Dropdown.js b/examples/component-examples/Dropdown.js new file mode 100644 index 00000000000..e0b2e695edc --- /dev/null +++ b/examples/component-examples/Dropdown.js @@ -0,0 +1,44 @@ +import React from 'react' +import { Block, Dropdown } from '../../src' +import ExampleHeading from '../doc-components/ExampleHeading' + +const DropdownExample = + { + name: 'Dropdown', + element: ( +
+ + Dropdown Primary + +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
+
+
+ + Dropdown + +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
+
+
+ + Dropdown with title + +
    +
  • Item 1
  • +
  • Item 2
  • +
  • Item 3
  • +
+
+
+
+ ) + } + +export default DropdownExample diff --git a/examples/component-examples/Flash.js b/examples/component-examples/Flash.js new file mode 100644 index 00000000000..8d1a1e742a7 --- /dev/null +++ b/examples/component-examples/Flash.js @@ -0,0 +1,28 @@ +import React from 'react' +import { Block, Flash } from '../../src' + +const FlashExample = + { + name: 'Flash', + element: ( +
+ + Flash + + + Flash yellow + + + Flash red + + + Flash green + + + Flash full + +
+ ) + } + +export default FlashExample diff --git a/examples/component-examples/FontSizes.js b/examples/component-examples/FontSizes.js new file mode 100644 index 00000000000..71c0e66088f --- /dev/null +++ b/examples/component-examples/FontSizes.js @@ -0,0 +1,16 @@ +import React from 'react' +import { Text } from '../../src' + +const FontSizesExample = + { + name: 'Font sizes', + element: ( +
+ {[/* 7, 6, */ 5, 4, 3, 2, 1, 0].map((fontSize, i) => ( + fontSize {fontSize} + ))} +
+ ) + } + +export default FontSizesExample diff --git a/examples/component-examples/Form.js b/examples/component-examples/Form.js new file mode 100644 index 00000000000..63fb49bd876 --- /dev/null +++ b/examples/component-examples/Form.js @@ -0,0 +1,24 @@ +import React from 'react' +import { TextInput, Box, } from '../../src' +import ExampleHeading from '../doc-components/ExampleHeading' + +const FormExample = + { + name: 'Form elements', + element: ( +
+ Input + + Input Sizes + + + + + + + Block input + +
+ ) + } +export default FormExample diff --git a/examples/component-examples/Heading.js b/examples/component-examples/Heading.js new file mode 100644 index 00000000000..ff9c5d823df --- /dev/null +++ b/examples/component-examples/Heading.js @@ -0,0 +1,17 @@ +import React from 'react' +import { Heading } from '../../src' + +const HeadingExample = + { + name: 'Heading', + element: ( +
+ Default Heading + {[0, 1, 2, 3, 4, 5, /* 6, 7, */ '00-light', '0-light', '1-light', '2-light', '3-light'].map((fontSize, i) => ( + With fontSize={fontSize} + ))} +
+ ) + } + +export default HeadingExample diff --git a/examples/component-examples/Label.js b/examples/component-examples/Label.js new file mode 100644 index 00000000000..a66f284bc0b --- /dev/null +++ b/examples/component-examples/Label.js @@ -0,0 +1,23 @@ +import React from 'react' +import { Block, Label } from '../../src' + +const LabelExample = + { + name: 'Label', + element: ( +
+ + + + + + + + + + +
+ ) + } + +export default LabelExample diff --git a/examples/component-examples/Link.js b/examples/component-examples/Link.js new file mode 100644 index 00000000000..13269c0ced3 --- /dev/null +++ b/examples/component-examples/Link.js @@ -0,0 +1,25 @@ +import React from 'react' +import { Block, Link } from '../../src' + +const LinkExample = + { + name: 'Link', + element: ( +
+ + Link + + + Link muted + + + Link gray + + + Link graydark + +
+ ) + } + +export default LinkExample diff --git a/examples/component-examples/MergeStatus.js b/examples/component-examples/MergeStatus.js new file mode 100644 index 00000000000..c5dc8905c4a --- /dev/null +++ b/examples/component-examples/MergeStatus.js @@ -0,0 +1,25 @@ +import React from 'react' +import { MergeStatus, Block } from '../../src' + +const MergeStatusExample = + { + name: 'MergeStatus', + element: ( +
+ + + + + + + + + + + + +
+ ) + } + +export default MergeStatusExample diff --git a/examples/component-examples/StateLabel.js b/examples/component-examples/StateLabel.js new file mode 100644 index 00000000000..67fc673a877 --- /dev/null +++ b/examples/component-examples/StateLabel.js @@ -0,0 +1,99 @@ +import React from 'react' +import Octicon from '@github/octicons-react' +import { Block, StateLabel } from '../../src' +import ExampleHeading from '../doc-components/ExampleHeading' + +const StateLabelExample = + { + name: 'StateLabel', + element: ( +
+ + Open + + + Closed + + + Merged + + + By state (Octicons built in) + + Unknown + + + Open + + + Closed + + + Merged + + + Reopened + + + + By color + + Invalid + + + Green + + + Red + + + Purple + + + + Small, by state + + + Unknown + + + Open + + + Closed + + + Merged + + + Reopened + + + + + Small, by color + + + Invalid + + + Green + + + Red + + + Purple + + + }> + Custom Octicon + + + + +
+ ) + } + +export default StateLabelExample diff --git a/examples/component-examples/Text.js b/examples/component-examples/Text.js new file mode 100644 index 00000000000..7e116974d31 --- /dev/null +++ b/examples/component-examples/Text.js @@ -0,0 +1,19 @@ +import React from 'react' +import { Text } from '../../src' + +const TextExample = + { + name: 'Text', + element: ( +
+ Text + Text bold + Text green + Text lineHeight 'condensed' + Text fontSize 4 + Text padding 4 +
+ ) + } + +export default TextExample diff --git a/examples/component-examples/Tooltip.js b/examples/component-examples/Tooltip.js new file mode 100644 index 00000000000..b24c6981619 --- /dev/null +++ b/examples/component-examples/Tooltip.js @@ -0,0 +1,37 @@ +import React from 'react' +import { Box, Block, Tooltip } from '../../src' +import ExampleHeading from '../doc-components/ExampleHeading' + +const TooltipExample = + { + name: 'Tooltip', + element: ( +
+ + Text with a tooltip + + + Directions + {Tooltip.directions.map((d, i) => ( + + Tooltip direction={d} + + ))} + Alignment + + Tooltip align left + + Word wrap + + Word wrapping tooltip + + No Delay + + Text with a tooltip + + +
+ ) + } + +export default TooltipExample diff --git a/examples/component-examples/index.js b/examples/component-examples/index.js new file mode 100644 index 00000000000..18f634c0ea5 --- /dev/null +++ b/examples/component-examples/index.js @@ -0,0 +1,23 @@ +export { default as Avatar } from './Avatar' +export { default as Block } from './Block' +export { default as Box } from './Box' +export { default as BranchName } from './BranchName' +export { default as Buttons } from './Buttons' +export { default as Caret } from './Caret' +export { default as CaretBox } from './CaretBox' +export { default as CircleOcticon } from './CircleOcticon' +export { default as Colors } from './Colors' +export { default as CounterLabel } from './CounterLabel' +export { default as Details } from './Details' +export { default as Dropdown } from './Dropdown' +export { default as DonutChart} from './DonutChart' +export { default as Flash } from './Flash' +export { default as FontSizes } from './FontSizes' +export { default as Form } from './Form' +export { default as Heading } from './Heading' +export { default as Label } from './Label' +export { default as Link } from './Link' +export { default as MergeStatus } from './MergeStatus' +export { default as StateLabel } from './StateLabel' +export { default as Text } from './Text' +export { default as Tooltip } from './Tooltip' diff --git a/examples/components.js b/examples/components.js new file mode 100644 index 00000000000..00cd74dcf24 --- /dev/null +++ b/examples/components.js @@ -0,0 +1,21 @@ +import React from 'react' +import { Library } from '@compositor/kit' +import SideNav from './doc-components/SideNav' +import * as examples from './component-examples' + +const ComponentPage = () => { + return ( + ( + + )}/> + ) +} + +export default ComponentPage diff --git a/examples/demos.js b/examples/demos.js new file mode 100644 index 00000000000..a383575ad7f --- /dev/null +++ b/examples/demos.js @@ -0,0 +1,41 @@ +import React from 'react' +import { Library, LiveEditor } from '@compositor/kit' +import SideNav from './doc-components/SideNav' +import MergeBox from './demos/MergeBox' +import MergeButton from './demos/MergeButton' + +const examples = [ + { + name: 'MergeBox', + element: ( + + `} scope={{MergeBox}}/> + + ) + }, + { + name: 'MergeButton', + element: ( + + `} scope={{MergeButton}}/> + + ) + } +] + +const DemoPage = () => { + return ( + ( + + )}/> + ) +} + +export default DemoPage diff --git a/examples/MergeActions.js b/examples/demos/MergeActions.js similarity index 81% rename from examples/MergeActions.js rename to examples/demos/MergeActions.js index b66c87f2537..c571e2b5766 100644 --- a/examples/MergeActions.js +++ b/examples/demos/MergeActions.js @@ -1,10 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import CircleOcticon from '../src/CircleOcticon' -import Text from '../src/Text' -import Block from '../src/Block' -import Link from '../src/Link' -import ButtonLink from '../src/ButtonLink' +import { CircleOcticon, Text, Block, Link, ButtonLink } from '../../src' import MergeButton from './MergeButton' const MergeActions = ({ numCommits, repoUrl, branchName, state }) => { diff --git a/examples/MergeBox.js b/examples/demos/MergeBox.js similarity index 91% rename from examples/MergeBox.js rename to examples/demos/MergeBox.js index 08b83189718..9460c9b151b 100644 --- a/examples/MergeBox.js +++ b/examples/demos/MergeBox.js @@ -1,7 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import MergeStatus from '../src/MergeStatus' -import CaretBox from '../src/CaretBox' +import { MergeStatus, CaretBox } from '../../src' import MergeButton from './MergeButton' import MergeDetail from './MergeDetail' import MergeActions from './MergeActions' diff --git a/examples/MergeButton.js b/examples/demos/MergeButton.js similarity index 93% rename from examples/MergeButton.js rename to examples/demos/MergeButton.js index fb043ceb8e8..70a1b9843bf 100644 --- a/examples/MergeButton.js +++ b/examples/demos/MergeButton.js @@ -1,10 +1,12 @@ import React from 'react' import PropTypes from 'prop-types' -import Details from '../src/Details' -import Button from '../src/Button' -import CaretBox from '../src/CaretBox' -import Text from '../src/Text' -import Block from '../src/Block' +import { + Details, + Button, + CaretBox, + Text, + Block +} from '../../src' const MergeButton = ({ primary, onClick, numCommits, children}) => { const arrowStyles = { diff --git a/examples/MergeDetail.js b/examples/demos/MergeDetail.js similarity index 87% rename from examples/MergeDetail.js rename to examples/demos/MergeDetail.js index be46e9e978f..45fb4a4a5e9 100644 --- a/examples/MergeDetail.js +++ b/examples/demos/MergeDetail.js @@ -1,8 +1,6 @@ import React from 'react' import PropTypes from 'prop-types' -import CircleOcticon from '../src/CircleOcticon' -import Text from '../src/Text' -import Block from '../src/Block' +import { CircleOcticon, Text, Block } from '../../src' const stateColorMap = { ready: 'green', diff --git a/examples/CSS.js b/examples/doc-components/CSS.js similarity index 92% rename from examples/CSS.js rename to examples/doc-components/CSS.js index f25a54b3fbc..20a62099767 100644 --- a/examples/CSS.js +++ b/examples/doc-components/CSS.js @@ -1,5 +1,5 @@ import React from 'react' -import {theme} from '../src' +import {theme} from '../../src' const CSS = ({css}) => (