@twilio-paste/core
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -6,2 +6,19 @@ # Change Log | ||
# [1.3.0](https://github.com/twilio-labs/paste/compare/@twilio-paste/core@1.2.0...@twilio-paste/core@1.3.0) (2019-12-20) | ||
### Bug Fixes | ||
* **core:** missing dependency for flex component ([900e56b](https://github.com/twilio-labs/paste/commit/900e56b8ea28c9e0a980370670712ee387bbf93a)) | ||
### Features | ||
* **core:** add card to core package ([306876a](https://github.com/twilio-labs/paste/commit/306876ad910fedb45f6e15d6489599ddd599d0b2)) | ||
* **core:** add flex ([0d48965](https://github.com/twilio-labs/paste/commit/0d48965677c587f9b9dfdb9c77e8e7d49bfad28e)) | ||
# [1.2.0](https://github.com/twilio-labs/paste/compare/@twilio-paste/core@1.1.4...@twilio-paste/core@1.2.0) (2019-12-19) | ||
@@ -8,0 +25,0 @@ |
@@ -6,2 +6,3 @@ export * from '@twilio-paste/absolute'; | ||
export * from '@twilio-paste/button'; | ||
export * from '@twilio-paste/card'; | ||
export * from '@twilio-paste/flex'; | ||
@@ -8,0 +9,0 @@ export * from '@twilio-paste/heading'; |
@@ -1,2 +0,2 @@ | ||
import n from"@emotion/styled";import{system as r,compose as o,space as e,layout as t,flexbox as i,background as a,border as l,boxShadow as c,position as s,zIndex as d,top as u,right as f,bottom as g,left as b,size as h,buttonStyle as p,display as m,verticalAlign as v,overflow as y,typography as k}from"styled-system";import{createElement as x,Children as w,isValidElement as C,useMemo as B}from"react";import{node as P,oneOf as S,oneOfType as z,arrayOf as O,bool as T,number as L,string as j}from"prop-types";import{keyframes as D,css as W}from"@emotion/core";import{UID as _}from"react-uid"; | ||
import n from"@emotion/styled";import{system as r,compose as o,space as e,layout as t,flexbox as i,background as a,border as l,boxShadow as c,position as d,zIndex as s,top as u,right as f,bottom as g,left as b,size as p,buttonStyle as h,display as m,verticalAlign as v,overflow as y,typography as k}from"styled-system";import{createElement as x,Children as w,isValidElement as C,useMemo as B}from"react";import{node as P,oneOf as O,oneOfType as S,arrayOf as z,bool as T,number as L,string as j}from"prop-types";import{keyframes as D,css as W}from"@emotion/core";import{UID as _}from"react-uid"; | ||
/*! ***************************************************************************** | ||
@@ -16,3 +16,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
function A(){for(var n=0,r=0,o=arguments.length;r<o;r++)n+=arguments[r].length;var e=Array(n),t=0;for(r=0;r<o;r++)for(var i=arguments[r],a=0,l=i.length;a<l;a++,t++)e[t]=i[a];return e}var H=A(["borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],["borderWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],["borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],["border","borderTop","borderRight","borderBottom","borderLeft","borderX","borderY"]),R=["overflow","overflowX","overflowY"],I=A(R,["width","minWidth","maxWidth","height","minHeight","maxHeight","size","display","verticalAlign"]),N=A(["margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my"],["padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py"]),E=function(){for(var n=0,r=0,o=arguments.length;r<o;r++)n+=arguments[r].length;var e=Array(n),t=0;for(r=0;r<o;r++)for(var i=arguments[r],a=0,l=i.length;a<l;a++,t++)e[t]=i[a];return e}(I,N,["background","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat"],H,["boxShadow","textShadow"],["position","left","right","top","bottom","zIndex"],["alignContent","alignItems","alignSelf","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","justifyItems","justifySelf","order"],["backgroundColor","borderColor","className","style"]),F=function(n){return Object.keys(n).reduce((function(r,o){return E.includes(o)||(r[o]=n[o]),r}),{})},M=r({backgroundColor:{property:"backgroundColor",scale:"backgroundColors"}}),U=r({borderColor:{property:"borderColor",scale:"borderColors"}}),X=n.div({boxSizing:"border-box",minWidth:0},o(e,t,i,a,M,l,U,c,s)); | ||
function R(){for(var n=0,r=0,o=arguments.length;r<o;r++)n+=arguments[r].length;var e=Array(n),t=0;for(r=0;r<o;r++)for(var i=arguments[r],a=0,l=i.length;a<l;a++,t++)e[t]=i[a];return e}var A=R(["borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],["borderWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],["borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],["border","borderTop","borderRight","borderBottom","borderLeft","borderX","borderY"]),H=["overflow","overflowX","overflowY"],I=R(H,["width","minWidth","maxWidth","height","minHeight","maxHeight","size","display","verticalAlign"]),N=R(["margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my"],["padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py"]),E=function(){for(var n=0,r=0,o=arguments.length;r<o;r++)n+=arguments[r].length;var e=Array(n),t=0;for(r=0;r<o;r++)for(var i=arguments[r],a=0,l=i.length;a<l;a++,t++)e[t]=i[a];return e}(I,N,["background","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat"],A,["boxShadow","textShadow"],["position","left","right","top","bottom","zIndex"],["alignContent","alignItems","alignSelf","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","justifyItems","justifySelf","order"],["backgroundColor","borderColor","className","style"]),F=function(n){return Object.keys(n).reduce((function(r,o){return E.includes(o)||(r[o]=n[o]),r}),{})},M=r({backgroundColor:{property:"backgroundColor",scale:"backgroundColors"}}),U=r({borderColor:{property:"borderColor",scale:"borderColors"}}),X=n.div({boxSizing:"border-box",minWidth:0},o(e,t,i,a,M,l,U,c,d)); | ||
/*! ***************************************************************************** | ||
@@ -31,3 +31,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */X.displayName="Box";var Y=["fill","left","left_top","left_bottom","left_fill","top_left","top_fill","bottom_left","bottom_fill"],q=["fill","right","right_top","right_bottom","right_fill","top_right","top_fill","bottom_right","bottom_fill"],G=["fill","top","top_right","top_left","top_fill","right_top","right_fill","left_top","left_fill"],K=["fill","bottom","bottom_right","bottom_left","bottom_fill","right_bottom","right_fill","left_bottom","left_fill"],$=n(X)((function(n){var r=n.preset,o={};return null==r?o:(Y.includes(r)&&(o.left=0),q.includes(r)&&(o.right=0),G.includes(r)&&(o.top=0),K.includes(r)&&(o.bottom=0),o)}),d,u,f,g,b,{position:"absolute"});$.defaultProps={preset:"fill"}; | ||
***************************************************************************** */X.displayName="Box";var Y=["fill","left","left_top","left_bottom","left_fill","top_left","top_fill","bottom_left","bottom_fill"],q=["fill","right","right_top","right_bottom","right_fill","top_right","top_fill","bottom_right","bottom_fill"],G=["fill","top","top_right","top_left","top_fill","right_top","right_fill","left_top","left_fill"],K=["fill","bottom","bottom_right","bottom_left","bottom_fill","right_bottom","right_fill","left_bottom","left_fill"],$=n(X)((function(n){var r=n.preset,o={};return null==r?o:(Y.includes(r)&&(o.left=0),q.includes(r)&&(o.right=0),G.includes(r)&&(o.top=0),K.includes(r)&&(o.bottom=0),o)}),s,u,f,g,b,{position:"absolute"});$.defaultProps={preset:"fill"}; | ||
/* | ||
@@ -38,3 +38,3 @@ object-assign | ||
*/ | ||
var V=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;function Z(n){if(null==n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}(function(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de","5"===Object.getOwnPropertyNames(n)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(n){return r[n]})).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach((function(n){e[n]=n})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch(n){return!1}})()&&Object.assign;var nn,rn,on,en=function(n,r){return void 0===r&&(r=null),function(o){return function(n,r,o,e,t){for(r=r&&r.split?r.split("."):[r],e=0;e<r.length;e++)n=n?n[r[e]]:t;return n===t?o:n}(o.theme,n,r)}},tn=n.a(on||(nn=["\n color: ",";\n text-decoration: underline;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: none;\n }\n\n &:focus,\n &:active {\n box-shadow: ",";\n color: ",";\n text-decoration: none;\n }\n"],rn=["\n color: ",";\n text-decoration: underline;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: none;\n }\n\n &:focus,\n &:active {\n box-shadow: ",";\n color: ",";\n text-decoration: none;\n }\n"],Object.defineProperty?Object.defineProperty(nn,"raw",{value:rn}):nn.raw=rn,on=nn),en("textColors.colorTextLink"),en("textColors.colorTextLinkDarker"),en("shadows.shadowFocus"),en("textColors.colorTextLinkDarker")),an=/^(https?:)[^\s]*$/,ln=function(n){return an.test(n)},cn=function(n){return x(tn,{href:n.href,rel:ln(n.href)&&!n.rel?"noreferrer noopener":n.rel,onBlur:n.onBlur,onClick:n.onClick,onFocus:n.onFocus,tabIndex:n.tabIndex,target:n.target||ln(n.href)?"_blank":void 0},n.children)};cn.propTypes={children:P.isRequired,tabIndex:S([0,-1]),target:S(["_self","_blank","_parent","_top"])},cn.displayName="Anchor"; | ||
var V=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;function Z(n){if(null==n)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}(function(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de","5"===Object.getOwnPropertyNames(n)[0])return!1;for(var r={},o=0;o<10;o++)r["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(n){return r[n]})).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach((function(n){e[n]=n})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch(n){return!1}})()&&Object.assign;var nn,rn,on,en=function(n,r){return void 0===r&&(r=null),function(o){return function(n,r,o,e,t){for(r=r&&r.split?r.split("."):[r],e=0;e<r.length;e++)n=n?n[r[e]]:t;return n===t?o:n}(o.theme,n,r)}},tn=n.a(on||(nn=["\n color: ",";\n text-decoration: underline;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: none;\n }\n\n &:focus,\n &:active {\n box-shadow: ",";\n color: ",";\n text-decoration: none;\n }\n"],rn=["\n color: ",";\n text-decoration: underline;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: none;\n }\n\n &:focus,\n &:active {\n box-shadow: ",";\n color: ",";\n text-decoration: none;\n }\n"],Object.defineProperty?Object.defineProperty(nn,"raw",{value:rn}):nn.raw=rn,on=nn),en("textColors.colorTextLink"),en("textColors.colorTextLinkDarker"),en("shadows.shadowFocus"),en("textColors.colorTextLinkDarker")),an=/^(https?:)[^\s]*$/,ln=function(n){return an.test(n)},cn=function(n){return x(tn,{href:n.href,rel:ln(n.href)&&!n.rel?"noreferrer noopener":n.rel,onBlur:n.onBlur,onClick:n.onClick,onFocus:n.onFocus,tabIndex:n.tabIndex,target:n.target||ln(n.href)?"_blank":void 0},n.children)};cn.propTypes={children:P.isRequired,tabIndex:O([0,-1]),target:O(["_self","_blank","_parent","_top"])},cn.displayName="Anchor"; | ||
/*! ***************************************************************************** | ||
@@ -54,3 +54,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var sn,dn,un,fn=/^(\d+:\d*)$/,gn=n.div(un||(sn=["\n position: relative;\n\n embed,\n iframe,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"],dn=["\n position: relative;\n\n embed,\n iframe,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"],Object.defineProperty?Object.defineProperty(sn,"raw",{value:dn}):sn.raw=dn,un=sn)),bn=function(n){!function(n){var r=n.ratio;if(null==r||""===r)throw new Error("[Paste: AspectRatio] Missing 'ratio' prop.");if(!function(n){return fn.test(n)}(r))throw new Error("[Paste: AspectRatio] 'ratio' is invalid. Use a colon separated number pattern (4:3).")}(n);var r=n.ratio.split(":").map(Number),o=r[1]/r[0]*100;return x(gn,{style:{paddingBottom:o+"%"}},x($,null,n.children))};bn.defaultProps={ratio:"4:3"}; | ||
var dn,sn,un,fn=/^(\d+:\d*)$/,gn=n.div(un||(dn=["\n position: relative;\n\n embed,\n iframe,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"],sn=["\n position: relative;\n\n embed,\n iframe,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"],Object.defineProperty?Object.defineProperty(dn,"raw",{value:sn}):dn.raw=sn,un=dn)),bn=function(n){!function(n){var r=n.ratio;if(null==r||""===r)throw new Error("[Paste: AspectRatio] Missing 'ratio' prop.");if(!function(n){return fn.test(n)}(r))throw new Error("[Paste: AspectRatio] 'ratio' is invalid. Use a colon separated number pattern (4:3).")}(n);var r=n.ratio.split(":").map(Number),o=r[1]/r[0]*100;return x(gn,{style:{paddingBottom:o+"%"}},x($,null,n.children))};bn.defaultProps={ratio:"4:3"}; | ||
/*! ***************************************************************************** | ||
@@ -70,3 +70,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var hn=r({iconColor:{property:"color",scale:"textColors"}}),pn=n.span({display:"inline-block"},o(hn,h));pn.defaultProps={size:"sizeIcon20",iconColor:"currentColor"},pn.displayName="IconWrapper";var mn=function(n){var r=n.as,o=n.size,e=n.iconColor,t=n.title,i=n.decorative;if(!i&&null==t)throw new Error("[LoadingIcon]: Missing a title for non-decorative icon.");return x(pn,{as:r,size:o,iconColor:e},x(_,null,(function(n){return x("svg",{role:"img","aria-hidden":i,"aria-labelledby":n,width:"100%",height:"100%",viewBox:"0 0 24 24"},t?x("title",{id:n},t):null,x("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.085 13.123a1 1 0 01.71 1.224A9.103 9.103 0 014.717 17.46l-.15 1.756a1 1 0 11-1.992-.17l.407-4.773a1 1 0 011.357-.848l4.47 1.728a1 1 0 11-.72 1.865l-1.691-.652a7.103 7.103 0 0012.463-2.533 1 1 0 011.223-.71zM12.008 2.892a9.1 9.1 0 017.283 3.64l.148-1.756a1 1 0 011.993.17l-.407 4.773a1 1 0 01-1.357.847l-4.47-1.727a1 1 0 01.72-1.866l1.691.653a7.103 7.103 0 00-12.463 2.533 1 1 0 01-1.932-.514 9.103 9.103 0 018.794-6.753z"}))})))};mn.displayName="LoadingIcon";var vn,yn,kn,xn=D(kn||(vn=["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n"],yn=["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n"],Object.defineProperty?Object.defineProperty(vn,"raw",{value:yn}):vn.raw=yn,kn=vn)),wn=n.div(h,W({display:"inline-block",animation:xn+" 2s linear infinite","@media screen and (prefers-reduced-motion: reduce)":{animation:"none"}})),Cn=function(n){var r=n.as,o=n.size,e=n.iconColor,t=n.decorative,i=n.title;return x(wn,{size:o},x(mn,{as:r,size:o,iconColor:e,decorative:t,title:i}))}; | ||
var pn=r({iconColor:{property:"color",scale:"textColors"}}),hn=n.span({display:"inline-block"},o(pn,p));hn.defaultProps={size:"sizeIcon20",iconColor:"currentColor"},hn.displayName="IconWrapper";var mn=function(n){var r=n.as,o=n.size,e=n.iconColor,t=n.title,i=n.decorative;if(!i&&null==t)throw new Error("[LoadingIcon]: Missing a title for non-decorative icon.");return x(hn,{as:r,size:o,iconColor:e},x(_,null,(function(n){return x("svg",{role:"img","aria-hidden":i,"aria-labelledby":n,width:"100%",height:"100%",viewBox:"0 0 24 24"},t?x("title",{id:n},t):null,x("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.085 13.123a1 1 0 01.71 1.224A9.103 9.103 0 014.717 17.46l-.15 1.756a1 1 0 11-1.992-.17l.407-4.773a1 1 0 011.357-.848l4.47 1.728a1 1 0 11-.72 1.865l-1.691-.652a7.103 7.103 0 0012.463-2.533 1 1 0 011.223-.71zM12.008 2.892a9.1 9.1 0 017.283 3.64l.148-1.756a1 1 0 011.993.17l-.407 4.773a1 1 0 01-1.357.847l-4.47-1.727a1 1 0 01.72-1.866l1.691.653a7.103 7.103 0 00-12.463 2.533 1 1 0 01-1.932-.514 9.103 9.103 0 018.794-6.753z"}))})))};mn.displayName="LoadingIcon";var vn,yn,kn,xn=D(kn||(vn=["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n"],yn=["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n"],Object.defineProperty?Object.defineProperty(vn,"raw",{value:yn}):vn.raw=yn,kn=vn)),wn=n.div(p,W({display:"inline-block",animation:xn+" 2s linear infinite","@media screen and (prefers-reduced-motion: reduce)":{animation:"none"}})),Cn=function(n){var r=n.as,o=n.size,e=n.iconColor,t=n.decorative,i=n.title;return x(wn,{size:o},x(mn,{as:r,size:o,iconColor:e,decorative:t,title:i}))}; | ||
/*! ***************************************************************************** | ||
@@ -86,3 +86,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
function Bn(n,r){return Object.defineProperty?Object.defineProperty(n,"raw",{value:r}):n.raw=r,n}Cn.defaultProps={size:"sizeIcon20"},Cn.displayName="Spinner";var Pn,Sn,zn,On,Tn,Ln,jn,Dn,Wn,_n,An,Hn,Rn,In,Nn,En,Fn,Mn,Un,Xn,Yn,qn,Gn,Kn,$n,Vn,Jn,Qn,Zn,nr,rr,or,er,tr=W(Pn||(Pn=Bn(["\n font-size: 100%;\n padding: 0;\n"],["\n font-size: 100%;\n padding: 0;\n"]))),ir=function(n){return W(Tn||(Tn=Bn(["\n /* Hide default browser styles */\n appearance: none;\n border: none;\n display: inline-block;\n outline: none;\n background: none;\n transition: background-color 100ms ease-in, border-color 100ms ease-in;\n font-family: ",";\n font-weight: ",";\n\n /* Remove extra black dotted border FF adds */\n &::-moz-focus-inner {\n border: none;\n }\n"],["\n /* Hide default browser styles */\n appearance: none;\n border: none;\n display: inline-block;\n outline: none;\n background: none;\n transition: background-color 100ms ease-in, border-color 100ms ease-in;\n font-family: ",";\n font-weight: ",";\n\n /* Remove extra black dotted border FF adds */\n &::-moz-focus-inner {\n border: none;\n }\n"])),en("fonts.fontFamilyText")(n),en("fontWeights.fontWeightSemibold")(n))},ar=function(n){return W([ir(n),W(Ln||(Ln=Bn(["\n text-decoration: none;\n cursor: pointer;\n\n &:focus,\n &:active {\n box-shadow: ",';\n }\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n text-decoration: none;\n }\n '],["\n text-decoration: none;\n cursor: pointer;\n\n &:focus,\n &:active {\n box-shadow: ",';\n }\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n text-decoration: none;\n }\n '])),en("shadows.shadowFocus")(n))])},lr=function(n){return W([ir(n),W(jn||(jn=Bn(["\n cursor: wait;\n "],["\n cursor: wait;\n "])))])},cr=function(n){return W([ir(n),W(Dn||(Dn=Bn(["\n cursor: not-allowed;\n "],["\n cursor: not-allowed;\n "])))])},sr=function(n){return W(Wn||(Wn=Bn(["\n border-width: ",";\n border-style: solid;\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"],["\n border-width: ",";\n border-style: solid;\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"])),en("borderWidths.borderWidth20")(n),en("textColors.colorTextInverse")(n),en("textColors.colorTextInverse")(n))},dr=function(n){return W([ar(n),sr(n),W(_n||(_n=Bn(["\n border-color: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "],["\n border-color: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "])),en("borderColors.colorBorderPrimary")(n),en("backgroundColors.colorBackgroundPrimary")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryDarker")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimary")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryDark")(n))])},ur=function(n){return W([lr(n),sr(n),W(An||(An=Bn(["\n &,\n &:hover,\n &:active,\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n "],["\n &,\n &:hover,\n &:active,\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n "])),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryDarker")(n))])},fr=function(n){return W([cr(n),sr(n),W(Hn||(Hn=Bn(["\n border-color: ",";\n background-color: ",";\n\n &:hover,\n &:active {\n background-color: ",";\n }\n "],["\n border-color: ",";\n background-color: ",";\n\n &:hover,\n &:active {\n background-color: ",";\n }\n "])),en("borderColors.colorBorderPrimaryLight")(n),en("backgroundColors.colorBackgroundPrimaryLight")(n),en("backgroundColors.colorBackgroundPrimaryLight")(n))])},gr=function(n){return W(Rn||(Rn=Bn(["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n"],["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n"])),en("borderWidths.borderWidth20")(n),en("backgroundColors.colorBackgroundBody")(n))},br=function(n){return W([ar(n),gr(n),W(In||(In=Bn(["\n color: ",";\n border-color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n "],["\n color: ",";\n border-color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n "])),en("textColors.colorTextLink")(n),en("borderColors.colorBorderPrimary")(n),en("backgroundColors.colorBackgroundBody")(n),en("textColors.colorTextLinkDarker")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryLightest")(n),en("textColors.colorTextLinkDarker")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryLightest")(n),en("textColors.colorTextLinkDarker")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryLighter")(n))])},hr=function(n){return W([lr(n),gr(n),W(Nn||(Nn=Bn(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "],["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),en("textColors.colorTextLinkDarker")(n),en("borderColors.colorBorderPrimaryLighter")(n),en("backgroundColors.colorBackgroundPrimaryLighter")(n))])},pr=function(n){return W([cr(n),gr(n),W(En||(En=Bn(["\n color: ",";\n border-color: ",";\n "],["\n color: ",";\n border-color: ",";\n "])),en("textColors.colorTextLinkLight")(n),en("borderColors.colorBorderPrimaryLight")(n))])},mr=function(n){return W(Fn||(Fn=Bn(["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"],["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"])),en("borderWidths.borderWidth20")(n),en("backgroundColors.colorBackgroundDestructive")(n),en("textColors.colorTextInverse")(n),en("textColors.colorTextInverse")(n))},vr=function(n){return W([ar(n),mr(n),W(Mn||(Mn=Bn(["\n border-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "],["\n border-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "])),en("borderColors.colorBorderDestructive")(n),en("borderColors.colorBorderDestructiveDarker")(n),en("backgroundColors.colorBackgroundDestructiveDarker")(n),en("borderColors.colorBorderDestructiveDarker")(n),en("backgroundColors.colorBackgroundDestructive")(n),en("borderColors.colorBorderDestructiveDarker")(n),en("backgroundColors.colorBackgroundDestructiveDark")(n))])},yr=function(n){return W([lr(n),mr(n),W(Un||(Un=Bn(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),en("borderColors.colorBorderDestructiveDarker")(n),en("backgroundColors.colorBackgroundDestructiveDarker")(n))])},kr=function(n){return W([cr(n),mr(n),W(Xn||(Xn=Bn(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),en("borderColors.colorBorderDestructiveLight")(n),en("backgroundColors.colorBackgroundDestructiveLight")(n))])},xr=W(Yn||(Yn=Bn(["\n background: none;\n"],["\n background: none;\n"]))),wr=function(n){return W([ar(n),xr,W(qn||(qn=Bn(["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "],["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "])),en("textColors.colorTextLinkDestructive")(n),en("textColors.colorTextLinkDestructiveDark")(n),en("textColors.colorTextLinkDestructiveDarker")(n))])},Cr=function(n){return W([lr(n),xr,W(Gn||(Gn=Bn(["\n color: ",";\n "],["\n color: ",";\n "])),en("textColors.colorTextLinkDestructiveDarker")(n))])},Br=function(n){return W([cr(n),xr,W(Kn||(Kn=Bn(["\n color: ",";\n "],["\n color: ",";\n "])),en("textColors.colorTextLinkDestructiveLight")(n))])},Pr=W($n||($n=Bn(["\n background: none;\n"],["\n background: none;\n"]))),Sr=function(n){return W([ar(n),Pr,W(Vn||(Vn=Bn(["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "],["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "])),en("textColors.colorTextLink")(n),en("textColors.colorTextLinkDark")(n),en("textColors.colorTextLinkDarker")(n))])},zr=function(n){return W([lr(n),Pr,W(Jn||(Jn=Bn(["\n color: ",";\n "],["\n color: ",";\n "])),en("textColors.colorTextLinkDarker")(n))])},Or=function(n){return W([cr(n),Pr,W(Qn||(Qn=Bn(["\n color: ",";\n "],["\n color: ",";\n "])),en("textColors.colorTextLinkLight")(n))])},Tr=ar,Lr=lr,jr=cr,Dr=n.button(nr||(nr=Bn(["\n /* To position the loading spinner correctly.\n * Pulled out of styles.ts so it works for the reset styles too.\n */\n position: relative;\n ","\n ","\n ","\n ","\n"],["\n /* To position the loading spinner correctly.\n * Pulled out of styles.ts so it works for the reset styles too.\n */\n position: relative;\n ","\n ","\n ","\n ","\n"])),p,(function(n){switch(n.size){case"reset":return tr;case"icon":return function(n){return W(Sn||(Sn=Bn(["\n padding: ",";\n border-radius: ",";\n font-size: 100%;\n /* To fix abnormal button padding-bottom */\n line-height: unset;\n"],["\n padding: ",";\n border-radius: ",";\n font-size: 100%;\n /* To fix abnormal button padding-bottom */\n line-height: unset;\n"])),en("space.space30")(n),en("radii.borderRadius20")(n))}(n);case"small":return function(n){return W(zn||(zn=Bn(["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n line-height: ",";\n"],["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n line-height: ",";\n"])),en("space.space10")(n),en("space.space30")(n),en("radii.borderRadius10")(n),en("fontSizes.fontSize30")(n),en("lineHeights.lineHeight20")(n))}(n);case"default":default:return function(n){return W(On||(On=Bn(["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n\n line-height: ",";\n"],["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n\n line-height: ",";\n"])),en("space.space30")(n),en("space.space50")(n),en("radii.borderRadius20")(n),en("fontSizes.fontSize30")(n),en("lineHeights.lineHeight20")(n))}(n)}}),(function(n){var r=n.variant,o=n.buttonState,e="disabled"===o,t="loading"===o;switch(r){case"reset":return e?jr:t?Lr:Tr;case"secondary":return e?pr:t?hr:br;case"link":return e?Or:t?zr:Sr;case"destructive":return e?kr:t?yr:vr;case"destructive_link":return e?Br:t?Cr:wr;case"primary":default:return e?fr:t?ur:dr}}),(function(n){var r=n.fullWidth;return W(Zn||(Zn=Bn(["\n width: ",";\n"],["\n width: ",";\n"])),r?"100%":"auto")})),Wr=n.span(or||(or=Bn(["\n display: grid;\n grid-auto-flow: column;\n /*\n * Neat way to make sure children are spaced apart correctly\n * https://caniuse.com/#feat=multicolumn\n */\n column-gap: ",";\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n text-decoration: inherit;\n ","\n"],["\n display: grid;\n grid-auto-flow: column;\n /*\n * Neat way to make sure children are spaced apart correctly\n * https://caniuse.com/#feat=multicolumn\n */\n column-gap: ",";\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n text-decoration: inherit;\n ","\n"])),en("space.space20"),(function(n){var r=n.buttonState;return W(rr||(rr=Bn(["\n opacity: ",";\n"],["\n opacity: ",";\n"])),"loading"===r?"0":"100%")})),_r=n($)(er||(er=Bn(["\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 14px;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 14px;\n"]))),Ar=function(n){var r,o,e=(o=(r=n).loading,r.disabled?"disabled":o?"loading":"default"),t="loading"===e,i="default"!==e,a=n.size;return null==a&&(a="default","link"===n.variant||"destructive_link"===n.variant?a="reset":1===w.count(n.children)&&w.forEach(n.children,(function(n){C(n)&&"string"==typeof n.type.displayName&&n.type.displayName.includes("Icon")&&(a="icon")}))),function(n){var r=n.as,o=n.href,e=n.variant,t=n.size,i=n.tabIndex,a=n.fullWidth,l=n.children,c=null!=o&&""!==o,s=null!=i;if("a"!==r&&c)throw new Error("[Paste: Button] You cannot pass href into a button without the 'a' tag. Use 'as=\"a\"'.");if("a"===r&&!c)throw new Error("[Paste: Button] Missing href prop for link button.");if("a"===r&&"link"===e)throw new Error("[Paste: Button] This should be a link. Use the [Paste: Anchor] component.");if("reset"===e&&"reset"!==t)throw new Error('[Paste: Button] The "RESET" variant can only be used with the "RESET" size.');if("icon"===t&&a)throw new Error("[Paste: Button] Icon buttons should not be fullWidth.");if(null==l)throw new Error("[Paste: Button] Must have non-null children.");if(s&&0!==i&&-1!==i)throw new Error("[Paste: Button] tabIndex must be 0 or -1.")}(n),x(Dr,{as:n.as,variant:n.variant,size:a,buttonState:e,disabled:i,autoFocus:n.autoFocus,fullWidth:n.fullWidth,href:n.href,tabIndex:n.tabIndex,type:n.type,onClick:n.onClick,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onFocus:n.onFocus,onBlur:n.onBlur,"aria-expanded":n["aria-expanded"],"aria-haspopup":n["aria-haspopup"],"aria-controls":n["aria-controls"],"aria-busy":"loading"===e?"true":"false","data-test":n["data-test"]},x(Wr,{buttonState:e},n.children),t?x(_r,{as:"span"},x(Cn,{decorative:!1,title:"Loading, please wait."})):null)};Ar.defaultProps={as:"button",type:"button",variant:"primary",disabled:!1,loading:!1,fullWidth:!1},Ar.displayName="Button"; | ||
function Bn(n,r){return Object.defineProperty?Object.defineProperty(n,"raw",{value:r}):n.raw=r,n}Cn.defaultProps={size:"sizeIcon20"},Cn.displayName="Spinner";var Pn,On,Sn,zn,Tn,Ln,jn,Dn,Wn,_n,Rn,An,Hn,In,Nn,En,Fn,Mn,Un,Xn,Yn,qn,Gn,Kn,$n,Vn,Jn,Qn,Zn,nr,rr,or,er,tr=W(Pn||(Pn=Bn(["\n font-size: 100%;\n padding: 0;\n"],["\n font-size: 100%;\n padding: 0;\n"]))),ir=function(n){return W(Tn||(Tn=Bn(["\n /* Hide default browser styles */\n appearance: none;\n border: none;\n display: inline-block;\n outline: none;\n background: none;\n transition: background-color 100ms ease-in, border-color 100ms ease-in;\n font-family: ",";\n font-weight: ",";\n\n /* Remove extra black dotted border FF adds */\n &::-moz-focus-inner {\n border: none;\n }\n"],["\n /* Hide default browser styles */\n appearance: none;\n border: none;\n display: inline-block;\n outline: none;\n background: none;\n transition: background-color 100ms ease-in, border-color 100ms ease-in;\n font-family: ",";\n font-weight: ",";\n\n /* Remove extra black dotted border FF adds */\n &::-moz-focus-inner {\n border: none;\n }\n"])),en("fonts.fontFamilyText")(n),en("fontWeights.fontWeightSemibold")(n))},ar=function(n){return W([ir(n),W(Ln||(Ln=Bn(["\n text-decoration: none;\n cursor: pointer;\n\n &:focus,\n &:active {\n box-shadow: ",';\n }\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n text-decoration: none;\n }\n '],["\n text-decoration: none;\n cursor: pointer;\n\n &:focus,\n &:active {\n box-shadow: ",';\n }\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n text-decoration: none;\n }\n '])),en("shadows.shadowFocus")(n))])},lr=function(n){return W([ir(n),W(jn||(jn=Bn(["\n cursor: wait;\n "],["\n cursor: wait;\n "])))])},cr=function(n){return W([ir(n),W(Dn||(Dn=Bn(["\n cursor: not-allowed;\n "],["\n cursor: not-allowed;\n "])))])},dr=function(n){return W(Wn||(Wn=Bn(["\n border-width: ",";\n border-style: solid;\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"],["\n border-width: ",";\n border-style: solid;\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"])),en("borderWidths.borderWidth20")(n),en("textColors.colorTextInverse")(n),en("textColors.colorTextInverse")(n))},sr=function(n){return W([ar(n),dr(n),W(_n||(_n=Bn(["\n border-color: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "],["\n border-color: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "])),en("borderColors.colorBorderPrimary")(n),en("backgroundColors.colorBackgroundPrimary")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryDarker")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimary")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryDark")(n))])},ur=function(n){return W([lr(n),dr(n),W(Rn||(Rn=Bn(["\n &,\n &:hover,\n &:active,\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n "],["\n &,\n &:hover,\n &:active,\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n "])),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryDarker")(n))])},fr=function(n){return W([cr(n),dr(n),W(An||(An=Bn(["\n border-color: ",";\n background-color: ",";\n\n &:hover,\n &:active {\n background-color: ",";\n }\n "],["\n border-color: ",";\n background-color: ",";\n\n &:hover,\n &:active {\n background-color: ",";\n }\n "])),en("borderColors.colorBorderPrimaryLight")(n),en("backgroundColors.colorBackgroundPrimaryLight")(n),en("backgroundColors.colorBackgroundPrimaryLight")(n))])},gr=function(n){return W(Hn||(Hn=Bn(["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n"],["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n"])),en("borderWidths.borderWidth20")(n),en("backgroundColors.colorBackgroundBody")(n))},br=function(n){return W([ar(n),gr(n),W(In||(In=Bn(["\n color: ",";\n border-color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n "],["\n color: ",";\n border-color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n "])),en("textColors.colorTextLink")(n),en("borderColors.colorBorderPrimary")(n),en("backgroundColors.colorBackgroundBody")(n),en("textColors.colorTextLinkDarker")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryLightest")(n),en("textColors.colorTextLinkDarker")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryLightest")(n),en("textColors.colorTextLinkDarker")(n),en("borderColors.colorBorderPrimaryDarker")(n),en("backgroundColors.colorBackgroundPrimaryLighter")(n))])},pr=function(n){return W([lr(n),gr(n),W(Nn||(Nn=Bn(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "],["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),en("textColors.colorTextLinkDarker")(n),en("borderColors.colorBorderPrimaryLighter")(n),en("backgroundColors.colorBackgroundPrimaryLighter")(n))])},hr=function(n){return W([cr(n),gr(n),W(En||(En=Bn(["\n color: ",";\n border-color: ",";\n "],["\n color: ",";\n border-color: ",";\n "])),en("textColors.colorTextLinkLight")(n),en("borderColors.colorBorderPrimaryLight")(n))])},mr=function(n){return W(Fn||(Fn=Bn(["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"],["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"])),en("borderWidths.borderWidth20")(n),en("backgroundColors.colorBackgroundDestructive")(n),en("textColors.colorTextInverse")(n),en("textColors.colorTextInverse")(n))},vr=function(n){return W([ar(n),mr(n),W(Mn||(Mn=Bn(["\n border-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "],["\n border-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "])),en("borderColors.colorBorderDestructive")(n),en("borderColors.colorBorderDestructiveDarker")(n),en("backgroundColors.colorBackgroundDestructiveDarker")(n),en("borderColors.colorBorderDestructiveDarker")(n),en("backgroundColors.colorBackgroundDestructive")(n),en("borderColors.colorBorderDestructiveDarker")(n),en("backgroundColors.colorBackgroundDestructiveDark")(n))])},yr=function(n){return W([lr(n),mr(n),W(Un||(Un=Bn(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),en("borderColors.colorBorderDestructiveDarker")(n),en("backgroundColors.colorBackgroundDestructiveDarker")(n))])},kr=function(n){return W([cr(n),mr(n),W(Xn||(Xn=Bn(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),en("borderColors.colorBorderDestructiveLight")(n),en("backgroundColors.colorBackgroundDestructiveLight")(n))])},xr=W(Yn||(Yn=Bn(["\n background: none;\n"],["\n background: none;\n"]))),wr=function(n){return W([ar(n),xr,W(qn||(qn=Bn(["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "],["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "])),en("textColors.colorTextLinkDestructive")(n),en("textColors.colorTextLinkDestructiveDark")(n),en("textColors.colorTextLinkDestructiveDarker")(n))])},Cr=function(n){return W([lr(n),xr,W(Gn||(Gn=Bn(["\n color: ",";\n "],["\n color: ",";\n "])),en("textColors.colorTextLinkDestructiveDarker")(n))])},Br=function(n){return W([cr(n),xr,W(Kn||(Kn=Bn(["\n color: ",";\n "],["\n color: ",";\n "])),en("textColors.colorTextLinkDestructiveLight")(n))])},Pr=W($n||($n=Bn(["\n background: none;\n"],["\n background: none;\n"]))),Or=function(n){return W([ar(n),Pr,W(Vn||(Vn=Bn(["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "],["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "])),en("textColors.colorTextLink")(n),en("textColors.colorTextLinkDark")(n),en("textColors.colorTextLinkDarker")(n))])},Sr=function(n){return W([lr(n),Pr,W(Jn||(Jn=Bn(["\n color: ",";\n "],["\n color: ",";\n "])),en("textColors.colorTextLinkDarker")(n))])},zr=function(n){return W([cr(n),Pr,W(Qn||(Qn=Bn(["\n color: ",";\n "],["\n color: ",";\n "])),en("textColors.colorTextLinkLight")(n))])},Tr=ar,Lr=lr,jr=cr,Dr=n.button(nr||(nr=Bn(["\n /* To position the loading spinner correctly.\n * Pulled out of styles.ts so it works for the reset styles too.\n */\n position: relative;\n ","\n ","\n ","\n ","\n"],["\n /* To position the loading spinner correctly.\n * Pulled out of styles.ts so it works for the reset styles too.\n */\n position: relative;\n ","\n ","\n ","\n ","\n"])),h,(function(n){switch(n.size){case"reset":return tr;case"icon":return function(n){return W(On||(On=Bn(["\n padding: ",";\n border-radius: ",";\n font-size: 100%;\n /* To fix abnormal button padding-bottom */\n line-height: unset;\n"],["\n padding: ",";\n border-radius: ",";\n font-size: 100%;\n /* To fix abnormal button padding-bottom */\n line-height: unset;\n"])),en("space.space30")(n),en("radii.borderRadius20")(n))}(n);case"small":return function(n){return W(Sn||(Sn=Bn(["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n line-height: ",";\n"],["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n line-height: ",";\n"])),en("space.space10")(n),en("space.space30")(n),en("radii.borderRadius10")(n),en("fontSizes.fontSize30")(n),en("lineHeights.lineHeight20")(n))}(n);case"default":default:return function(n){return W(zn||(zn=Bn(["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n\n line-height: ",";\n"],["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n\n line-height: ",";\n"])),en("space.space30")(n),en("space.space50")(n),en("radii.borderRadius20")(n),en("fontSizes.fontSize30")(n),en("lineHeights.lineHeight20")(n))}(n)}}),(function(n){var r=n.variant,o=n.buttonState,e="disabled"===o,t="loading"===o;switch(r){case"reset":return e?jr:t?Lr:Tr;case"secondary":return e?hr:t?pr:br;case"link":return e?zr:t?Sr:Or;case"destructive":return e?kr:t?yr:vr;case"destructive_link":return e?Br:t?Cr:wr;case"primary":default:return e?fr:t?ur:sr}}),(function(n){var r=n.fullWidth;return W(Zn||(Zn=Bn(["\n width: ",";\n"],["\n width: ",";\n"])),r?"100%":"auto")})),Wr=n.span(or||(or=Bn(["\n display: grid;\n grid-auto-flow: column;\n /*\n * Neat way to make sure children are spaced apart correctly\n * https://caniuse.com/#feat=multicolumn\n */\n column-gap: ",";\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n text-decoration: inherit;\n ","\n"],["\n display: grid;\n grid-auto-flow: column;\n /*\n * Neat way to make sure children are spaced apart correctly\n * https://caniuse.com/#feat=multicolumn\n */\n column-gap: ",";\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n text-decoration: inherit;\n ","\n"])),en("space.space20"),(function(n){var r=n.buttonState;return W(rr||(rr=Bn(["\n opacity: ",";\n"],["\n opacity: ",";\n"])),"loading"===r?"0":"100%")})),_r=n($)(er||(er=Bn(["\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 14px;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 14px;\n"]))),Rr=function(n){var r,o,e=(o=(r=n).loading,r.disabled?"disabled":o?"loading":"default"),t="loading"===e,i="default"!==e,a=n.size;return null==a&&(a="default","link"===n.variant||"destructive_link"===n.variant?a="reset":1===w.count(n.children)&&w.forEach(n.children,(function(n){C(n)&&"string"==typeof n.type.displayName&&n.type.displayName.includes("Icon")&&(a="icon")}))),function(n){var r=n.as,o=n.href,e=n.variant,t=n.size,i=n.tabIndex,a=n.fullWidth,l=n.children,c=null!=o&&""!==o,d=null!=i;if("a"!==r&&c)throw new Error("[Paste: Button] You cannot pass href into a button without the 'a' tag. Use 'as=\"a\"'.");if("a"===r&&!c)throw new Error("[Paste: Button] Missing href prop for link button.");if("a"===r&&"link"===e)throw new Error("[Paste: Button] This should be a link. Use the [Paste: Anchor] component.");if("reset"===e&&"reset"!==t)throw new Error('[Paste: Button] The "RESET" variant can only be used with the "RESET" size.');if("icon"===t&&a)throw new Error("[Paste: Button] Icon buttons should not be fullWidth.");if(null==l)throw new Error("[Paste: Button] Must have non-null children.");if(d&&0!==i&&-1!==i)throw new Error("[Paste: Button] tabIndex must be 0 or -1.")}(n),x(Dr,{as:n.as,variant:n.variant,size:a,buttonState:e,disabled:i,autoFocus:n.autoFocus,fullWidth:n.fullWidth,href:n.href,tabIndex:n.tabIndex,type:n.type,onClick:n.onClick,onMouseDown:n.onMouseDown,onMouseUp:n.onMouseUp,onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onFocus:n.onFocus,onBlur:n.onBlur,"aria-expanded":n["aria-expanded"],"aria-haspopup":n["aria-haspopup"],"aria-controls":n["aria-controls"],"aria-busy":"loading"===e?"true":"false","data-test":n["data-test"]},x(Wr,{buttonState:e},n.children),t?x(_r,{as:"span"},x(Cn,{decorative:!1,title:"Loading, please wait."})):null)};Rr.defaultProps={as:"button",type:"button",variant:"primary",disabled:!1,loading:!1,fullWidth:!1},Rr.displayName="Button"; | ||
/*! ***************************************************************************** | ||
@@ -102,3 +102,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var Hr=function(){return(Hr=Object.assign||function(n){for(var r,o=1,e=arguments.length;o<e;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n}).apply(this,arguments)},Rr=function(n){var r=n.grow;return Array.isArray(r)?r.map((function(n){return Number(n)})):"number"==typeof r?r:r?1:0},Ir=function(n){var r=n.shrink,o=n.basis;return Array.isArray(r)?r.map((function(n){return Number(n)})):"number"==typeof r?r:"boolean"==typeof r?r?1:0:o&&"auto"!==o?0:1},Nr=function(n){return n+("number"==typeof n||String(parseInt(n,10))===n?"px":"")},Er=function(n){var r=n.basis;return Array.isArray(r)?r.map((function(n){return Nr(n)})):r?Nr(r):"auto"},Fr=function(n){var r=n.vertical;return Array.isArray(r)?r.map((function(n){return"boolean"==typeof n?!0===n?"column":"row":n})):r?"column":"row"},Mr=function(n){var r=n.wrap;return Array.isArray(r)?r.map((function(n){return"boolean"==typeof n?!0===n?"wrap":"nowrap":n})):r?"wrap":"nowrap"},Ur={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch"},Xr=function(n){var r=n.vAlignContent;return Array.isArray(r)?r.map((function(n){return Ur[n]})):r?Ur[r]:"flex-start"},Yr={left:"flex-start",center:"center",right:"flex-end",around:"space-around",between:"space-between"},qr=function(n){var r=n.hAlignContent;return Array.isArray(r)?r.map((function(n){return Yr[n]})):r?Yr[r]:"flex-start"},Gr=function(n){var r=B((function(){return function(n){var r={justifyContent:n.vertical?Xr(n):qr(n),alignItems:n.vertical?qr(n):Xr(n)};return(n.grow||n.shrink||n.basis)&&(r.flexGrow=Rr(n),r.flexShrink=Ir(n),r.flexBasis=Er(n)),n.vertical&&(r.flexDirection=Fr(n)),n.wrap&&(r.flexWrap=Mr(n)),r}(n)}),[n]);return x(X,Hr({},r,{display:n.display}),n.children)};Gr.propTypes={display:z([S(["flex","inline-flex"]),O(S(["flex","inline-flex"]))]),vertical:z([z([T]),O(z([T]))]),vAlignContent:z([S(["top","center","bottom","stretch"]),O(S(["top","center","bottom","stretch"]))]),hAlignContent:z([S(["left","center","right","around","between"]),O(S(["left","center","right","around","between"]))]),grow:z([z([T,L]),O(z([T,L]))]),shrink:z([z([T,L]),O(z([T,L]))]),basis:z([z([j,L]),O(z([j,L]))]),wrap:z([z([T]),O(z([T]))])},Gr.defaultProps={display:"flex"},Gr.displayName="Flex"; | ||
var Ar=function(){return(Ar=Object.assign||function(n){for(var r,o=1,e=arguments.length;o<e;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n}).apply(this,arguments)},Hr=function(n){var r=n.children,o=n.padding,e=void 0===o?"space60":o,t=n.paddingBottom,i=n.paddingLeft,a=n.paddingRight,l=n.paddingTop,c=function(n,r){var o={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&r.indexOf(e)<0&&(o[e]=n[e]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(e=Object.getOwnPropertySymbols(n);t<e.length;t++)r.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(n,e[t])&&(o[e[t]]=n[e[t]])}return o}(n,["children","padding","paddingBottom","paddingLeft","paddingRight","paddingTop"]);return x(X,Ar({},F(c),{as:"article",borderWidth:"borderWidth20",borderColor:"colorBorderLight",borderStyle:"solid",borderRadius:"borderRadius20",padding:e,paddingBottom:t,paddingLeft:i,paddingRight:a,paddingTop:l,backgroundColor:"colorBackgroundBody"}),r)},Ir=function(){return(Ir=Object.assign||function(n){for(var r,o=1,e=arguments.length;o<e;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n}).apply(this,arguments)},Nr=function(n){var r=n.grow;return Array.isArray(r)?r.map((function(n){return Number(n)})):"number"==typeof r?r:r?1:0},Er=function(n){var r=n.shrink,o=n.basis;return Array.isArray(r)?r.map((function(n){return Number(n)})):"number"==typeof r?r:"boolean"==typeof r?r?1:0:o&&"auto"!==o?0:1},Fr=function(n){return n+("number"==typeof n||String(parseInt(n,10))===n?"px":"")},Mr=function(n){var r=n.basis;return Array.isArray(r)?r.map((function(n){return Fr(n)})):r?Fr(r):"auto"},Ur=function(n){var r=n.vertical;return Array.isArray(r)?r.map((function(n){return"boolean"==typeof n?!0===n?"column":"row":n})):r?"column":"row"},Xr=function(n){var r=n.wrap;return Array.isArray(r)?r.map((function(n){return"boolean"==typeof n?!0===n?"wrap":"nowrap":n})):r?"wrap":"nowrap"},Yr={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch"},qr=function(n){var r=n.vAlignContent;return Array.isArray(r)?r.map((function(n){return Yr[n]})):r?Yr[r]:"flex-start"},Gr={left:"flex-start",center:"center",right:"flex-end",around:"space-around",between:"space-between"},Kr=function(n){var r=n.hAlignContent;return Array.isArray(r)?r.map((function(n){return Gr[n]})):r?Gr[r]:"flex-start"},$r=function(n){var r=B((function(){return function(n){var r={justifyContent:n.vertical?qr(n):Kr(n),alignItems:n.vertical?Kr(n):qr(n)};return(n.grow||n.shrink||n.basis)&&(r.flexGrow=Nr(n),r.flexShrink=Er(n),r.flexBasis=Mr(n)),n.vertical&&(r.flexDirection=Ur(n)),n.wrap&&(r.flexWrap=Xr(n)),r}(n)}),[n]);return x(X,Ir({},r,{display:n.display}),n.children)};$r.propTypes={display:S([O(["flex","inline-flex"]),z(O(["flex","inline-flex"]))]),vertical:S([S([T]),z(S([T]))]),vAlignContent:S([O(["top","center","bottom","stretch"]),z(O(["top","center","bottom","stretch"]))]),hAlignContent:S([O(["left","center","right","around","between"]),z(O(["left","center","right","around","between"]))]),grow:S([S([T,L]),z(S([T,L]))]),shrink:S([S([T,L]),z(S([T,L]))]),basis:S([S([j,L]),z(S([j,L]))]),wrap:S([S([T]),z(S([T]))])},$r.defaultProps={display:"flex"},$r.displayName="Flex"; | ||
/*! ***************************************************************************** | ||
@@ -118,3 +118,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var Kr=function(){for(var n=0,r=0,o=arguments.length;r<o;r++)n+=arguments[r].length;var e=Array(n),t=0;for(r=0;r<o;r++)for(var i=arguments[r],a=0,l=i.length;a<l;a++,t++)e[t]=i[a];return e}(N,["fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textColor","textDecoration","textOverflow","whiteSpace"],R,["display","textColor","verticalAlign","className","style"]),$r=function(n){return Object.keys(n).reduce((function(r,o){return Kr.includes(o)||(r[o]=n[o]),r}),{})},Vr=r({textColor:{property:"color",scale:"textColors"}}),Jr=r({textDecoration:!0}),Qr=n.span({margin:0,padding:0},o(e,m,v,y,Jr,k,Vr));Qr.defaultProps={fontSize:"fontSize30",lineHeight:"lineHeight30",textColor:"colorText"},Qr.displayName="Text"; | ||
var Vr=function(){for(var n=0,r=0,o=arguments.length;r<o;r++)n+=arguments[r].length;var e=Array(n),t=0;for(r=0;r<o;r++)for(var i=arguments[r],a=0,l=i.length;a<l;a++,t++)e[t]=i[a];return e}(N,["fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textColor","textDecoration","textOverflow","whiteSpace"],H,["display","textColor","verticalAlign","className","style"]),Jr=function(n){return Object.keys(n).reduce((function(r,o){return Vr.includes(o)||(r[o]=n[o]),r}),{})},Qr=r({textColor:{property:"color",scale:"textColors"}}),Zr=r({textDecoration:!0}),no=n.span({margin:0,padding:0},o(e,m,v,y,Zr,k,Qr));no.defaultProps={fontSize:"fontSize30",lineHeight:"lineHeight30",textColor:"colorText"},no.displayName="Text"; | ||
/*! ***************************************************************************** | ||
@@ -134,3 +134,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var Zr=function(){return(Zr=Object.assign||function(n){for(var r,o=1,e=arguments.length;o<e;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n}).apply(this,arguments)},no=function(n){var r=n.as,o=n.children,e=n.id,t=n.variant;return x(Qr,Zr({},function(n){switch(n){case"heading10":return{marginBottom:"space70",fontSize:"fontSize90",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:"space50",fontSize:"fontSize60",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:"space40",fontSize:"fontSize40",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:"space30",fontSize:"fontSize30",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:"space30",fontSize:"fontSize20",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:"space60",fontSize:"fontSize70",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight70"}}}(t),{as:r,display:"block",id:e,textColor:"colorText"}),o)};no.propTypes={as:S(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,variant:S(["heading10","heading20","heading30","heading40","heading50","heading60"])},no.defaultProps={variant:"heading20"},no.displayName="Heading"; | ||
var ro=function(){return(ro=Object.assign||function(n){for(var r,o=1,e=arguments.length;o<e;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n}).apply(this,arguments)},oo=function(n){var r=n.as,o=n.children,e=n.id,t=n.variant;return x(no,ro({},function(n){switch(n){case"heading10":return{marginBottom:"space70",fontSize:"fontSize90",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:"space50",fontSize:"fontSize60",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:"space40",fontSize:"fontSize40",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:"space30",fontSize:"fontSize30",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:"space30",fontSize:"fontSize20",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:"space60",fontSize:"fontSize70",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight70"}}}(t),{as:r,display:"block",id:e,textColor:"colorText"}),o)};oo.propTypes={as:O(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,variant:O(["heading10","heading20","heading30","heading40","heading50","heading60"])},oo.defaultProps={variant:"heading20"},oo.displayName="Heading"; | ||
/*! ***************************************************************************** | ||
@@ -150,3 +150,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var ro=function(){return(ro=Object.assign||function(n){for(var r,o=1,e=arguments.length;o<e;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n}).apply(this,arguments)};function oo(n,r){var o={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&r.indexOf(e)<0&&(o[e]=n[e]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(e=Object.getOwnPropertySymbols(n);t<e.length;t++)r.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(n,e[t])&&(o[e[t]]=n[e[t]])}return o}var eo=function(n){var r=n.as,o=n.children,e=oo(n,["as","children"]);return x(Qr,ro({},e,{as:r,marginBottom:"space70",marginLeft:"space70",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"}),o)};eo.displayName="List";var to=function(n){var r=n.children,o=oo(n,["children"]);return x(eo,ro({},$r(o),{as:"ol"}),r)};to.displayName="OrderedList";var io=function(n){var r=n.children,o=oo(n,["children"]);return x(eo,ro({},$r(o),{as:"ul"}),r)};io.displayName="UnorderedList";var ao=function(n){return x(Qr,ro({},$r(n),{as:"li",marginBottom:"space30",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"}),n.children)}; | ||
var eo=function(){return(eo=Object.assign||function(n){for(var r,o=1,e=arguments.length;o<e;o++)for(var t in r=arguments[o])Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t]);return n}).apply(this,arguments)};function to(n,r){var o={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&r.indexOf(e)<0&&(o[e]=n[e]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(e=Object.getOwnPropertySymbols(n);t<e.length;t++)r.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(n,e[t])&&(o[e[t]]=n[e[t]])}return o}var io=function(n){var r=n.as,o=n.children,e=to(n,["as","children"]);return x(no,eo({},e,{as:r,marginBottom:"space70",marginLeft:"space70",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"}),o)};io.displayName="List";var ao=function(n){var r=n.children,o=to(n,["children"]);return x(io,eo({},Jr(o),{as:"ol"}),r)};ao.displayName="OrderedList";var lo=function(n){var r=n.children,o=to(n,["children"]);return x(io,eo({},Jr(o),{as:"ul"}),r)};lo.displayName="UnorderedList";var co=function(n){return x(no,eo({},Jr(n),{as:"li",marginBottom:"space30",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"}),n.children)}; | ||
/*! ***************************************************************************** | ||
@@ -166,3 +166,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
function lo(n,r){return Object.defineProperty?Object.defineProperty(n,"raw",{value:r}):n.raw=r,n}ao.displayName="ListItem";var co=n.div(uo||(uo=lo(["\n align-items: ",";\n display: flex;\n"],["\n align-items: ",";\n display: flex;\n"])),(function(n){return n.isCentered?"center":"flex-start"})),so=n.div(fo||(fo=lo(["\n flex-shrink: 0;\n ",";\n"],["\n flex-shrink: 0;\n ",";\n"])),(function(n){return"margin-"+("end"===n.align?"left":"right")+": "+en("space."+n.spacing)(n)}));so.defaultProps={align:"start",spacing:"space20"};var uo,fo,go,bo={Object:co,Figure:so,Body:n.div(go||(go=lo(["\n flex: 1;\n min-width: ",";\n ",";\n"],["\n flex: 1;\n min-width: ",";\n ",";\n"])),en("minWidths.size0"),e)},ho=function(n){return x(Qr,{as:"p",marginBottom:"space70",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"},n.children)};ho.displayName="Paragraph"; | ||
function so(n,r){return Object.defineProperty?Object.defineProperty(n,"raw",{value:r}):n.raw=r,n}co.displayName="ListItem";var uo=n.div(go||(go=so(["\n align-items: ",";\n display: flex;\n"],["\n align-items: ",";\n display: flex;\n"])),(function(n){return n.isCentered?"center":"flex-start"})),fo=n.div(bo||(bo=so(["\n flex-shrink: 0;\n ",";\n"],["\n flex-shrink: 0;\n ",";\n"])),(function(n){return"margin-"+("end"===n.align?"left":"right")+": "+en("space."+n.spacing)(n)}));fo.defaultProps={align:"start",spacing:"space20"};var go,bo,po,ho={Object:uo,Figure:fo,Body:n.div(po||(po=so(["\n flex: 1;\n min-width: ",";\n ",";\n"],["\n flex: 1;\n min-width: ",";\n ",";\n"])),en("minWidths.size0"),e)},mo=function(n){return x(no,{as:"p",marginBottom:"space70",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"},n.children)};mo.displayName="Paragraph"; | ||
/*! ***************************************************************************** | ||
@@ -182,3 +182,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var po,mo,vo,yo,ko,xo,wo=n.span(vo||(po=["\n position: absolute;\n margin: -1px;\n border: 0;\n padding: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n text-transform: none;\n white-space: nowrap;\n"],mo=["\n position: absolute;\n margin: -1px;\n border: 0;\n padding: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n text-transform: none;\n white-space: nowrap;\n"],Object.defineProperty?Object.defineProperty(po,"raw",{value:mo}):po.raw=mo,vo=po)),Co=n.span(xo||(yo=["\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],ko=["\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],Object.defineProperty?Object.defineProperty(yo,"raw",{value:ko}):yo.raw=ko,xo=yo)); | ||
var vo,yo,ko,xo,wo,Co,Bo=n.span(ko||(vo=["\n position: absolute;\n margin: -1px;\n border: 0;\n padding: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n text-transform: none;\n white-space: nowrap;\n"],yo=["\n position: absolute;\n margin: -1px;\n border: 0;\n padding: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n text-transform: none;\n white-space: nowrap;\n"],Object.defineProperty?Object.defineProperty(vo,"raw",{value:yo}):vo.raw=yo,ko=vo)),Po=n.span(Co||(xo=["\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],wo=["\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],Object.defineProperty?Object.defineProperty(xo,"raw",{value:wo}):xo.raw=wo,Co=xo)); | ||
/*! ***************************************************************************** | ||
@@ -197,2 +197,2 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */export{$ as Absolute,cn as Anchor,bn as AspectRatio,E as BOX_PROPS_TO_BLOCK,X as Box,Ar as Button,Gr as Flex,no as Heading,ao as ListItem,bo as Media,to as OrderedList,ho as Paragraph,wo as ScreenReaderOnly,Cn as Spinner,Kr as TEXT_PROPS_TO_BLOCK,Qr as Text,Co as Truncate,io as UnorderedList,Er as getBasis,Rr as getGrow,Ir as getShrink,Nr as getSuffix,Fr as getVertical,Mr as getWrap,qr as hAlignToProps,F as safelySpreadBoxProps,$r as safelySpreadTextProps,Xr as vAlignToProps}; | ||
***************************************************************************** */export{$ as Absolute,cn as Anchor,bn as AspectRatio,E as BOX_PROPS_TO_BLOCK,X as Box,Rr as Button,Hr as Card,$r as Flex,oo as Heading,co as ListItem,ho as Media,ao as OrderedList,mo as Paragraph,Bo as ScreenReaderOnly,Cn as Spinner,Vr as TEXT_PROPS_TO_BLOCK,no as Text,Po as Truncate,lo as UnorderedList,Mr as getBasis,Nr as getGrow,Er as getShrink,Fr as getSuffix,Ur as getVertical,Xr as getWrap,Kr as hAlignToProps,F as safelySpreadBoxProps,Jr as safelySpreadTextProps,qr as vAlignToProps}; |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var n$4=_interopDefault(require("@emotion/styled")),styledSystem=require("styled-system"),react=require("react"),propTypes=require("prop-types"),core=require("@emotion/core"),reactUid=require("react-uid"),o=["background","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat"]; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var n$5=_interopDefault(require("@emotion/styled")),styledSystem=require("styled-system"),react=require("react"),propTypes=require("prop-types"),core=require("@emotion/core"),reactUid=require("react-uid"),o=["background","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat"]; | ||
/*! ***************************************************************************** | ||
@@ -16,3 +16,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
function r(){for(var e=0,o=0,r=arguments.length;o<r;o++)e+=arguments[o].length;var n=Array(e),t=0;for(o=0;o<r;o++)for(var i=arguments[o],a=0,s=i.length;a<s;a++,t++)n[t]=i[a];return n}var t=["borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],e=["borderWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],i=["borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],d=["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],n=r(t,e,i,d,["border","borderTop","borderRight","borderBottom","borderLeft","borderX","borderY"]),a=["alignContent","alignItems","alignSelf","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","justifyItems","justifySelf","order"],g=["overflow","overflowX","overflowY"],l=r(g,["width","minWidth","maxWidth","height","minHeight","maxHeight","size","display","verticalAlign"]),b=["position","left","right","top","bottom","zIndex"],f=["boxShadow","textShadow"],m=["margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my"],h=["padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py"],p=r(m,h),x=["fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textColor","textDecoration","textOverflow","whiteSpace"],g$1=function(){for(var e=0,o=0,r=arguments.length;o<r;o++)e+=arguments[o].length;var n=Array(e),t=0;for(o=0;o<r;o++)for(var i=arguments[o],a=0,s=i.length;a<s;a++,t++)n[t]=i[a];return n}(l,p,o,n,f,b,a,["backgroundColor","borderColor","className","style"]),C=function(e){return Object.keys(e).reduce((function(o,r){return g$1.includes(r)||(o[r]=e[r]),o}),{})},k=styledSystem.system({backgroundColor:{property:"backgroundColor",scale:"backgroundColors"}}),v=styledSystem.system({borderColor:{property:"borderColor",scale:"borderColors"}}),h$1=n$4.div({boxSizing:"border-box",minWidth:0},styledSystem.compose(styledSystem.space,styledSystem.layout,styledSystem.flexbox,styledSystem.background,k,styledSystem.border,v,styledSystem.boxShadow,styledSystem.position)); | ||
function r(){for(var e=0,o=0,r=arguments.length;o<r;o++)e+=arguments[o].length;var n=Array(e),t=0;for(o=0;o<r;o++)for(var i=arguments[o],a=0,s=i.length;a<s;a++,t++)n[t]=i[a];return n}var t=["borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],e=["borderWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],i=["borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],d=["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],n=r(t,e,i,d,["border","borderTop","borderRight","borderBottom","borderLeft","borderX","borderY"]),a=["alignContent","alignItems","alignSelf","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","justifyItems","justifySelf","order"],g=["overflow","overflowX","overflowY"],l=r(g,["width","minWidth","maxWidth","height","minHeight","maxHeight","size","display","verticalAlign"]),b=["position","left","right","top","bottom","zIndex"],f=["boxShadow","textShadow"],m=["margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my"],h=["padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py"],p=r(m,h),x=["fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","textColor","textDecoration","textOverflow","whiteSpace"],g$1=function(){for(var e=0,o=0,r=arguments.length;o<r;o++)e+=arguments[o].length;var n=Array(e),t=0;for(o=0;o<r;o++)for(var i=arguments[o],a=0,s=i.length;a<s;a++,t++)n[t]=i[a];return n}(l,p,o,n,f,b,a,["backgroundColor","borderColor","className","style"]),C=function(e){return Object.keys(e).reduce((function(o,r){return g$1.includes(r)||(o[r]=e[r]),o}),{})},k=styledSystem.system({backgroundColor:{property:"backgroundColor",scale:"backgroundColors"}}),v=styledSystem.system({borderColor:{property:"borderColor",scale:"borderColors"}}),h$1=n$5.div({boxSizing:"border-box",minWidth:0},styledSystem.compose(styledSystem.space,styledSystem.layout,styledSystem.flexbox,styledSystem.background,k,styledSystem.border,v,styledSystem.boxShadow,styledSystem.position)); | ||
/*! ***************************************************************************** | ||
@@ -31,3 +31,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */h$1.displayName="Box";var r$1=["fill","left","left_top","left_bottom","left_fill","top_left","top_fill","bottom_left","bottom_fill"],p$1=["fill","right","right_top","right_bottom","right_fill","top_right","top_fill","bottom_right","bottom_fill"],m$1=["fill","top","top_right","top_left","top_fill","right_top","right_fill","left_top","left_fill"],b$1=["fill","bottom","bottom_right","bottom_left","bottom_fill","right_bottom","right_fill","left_bottom","left_fill"],s=n$4(h$1)((function(e){var o=e.preset,r={};return null==o?r:(r$1.includes(o)&&(r.left=0),p$1.includes(o)&&(r.right=0),m$1.includes(o)&&(r.top=0),b$1.includes(o)&&(r.bottom=0),r)}),styledSystem.zIndex,styledSystem.top,styledSystem.right,styledSystem.bottom,styledSystem.left,{position:"absolute"});s.defaultProps={preset:"fill"}; | ||
***************************************************************************** */h$1.displayName="Box";var r$1=["fill","left","left_top","left_bottom","left_fill","top_left","top_fill","bottom_left","bottom_fill"],p$1=["fill","right","right_top","right_bottom","right_fill","top_right","top_fill","bottom_right","bottom_fill"],m$1=["fill","top","top_right","top_left","top_fill","right_top","right_fill","left_top","left_fill"],b$1=["fill","bottom","bottom_right","bottom_left","bottom_fill","right_bottom","right_fill","left_bottom","left_fill"],s=n$5(h$1)((function(e){var o=e.preset,r={};return null==o?r:(r$1.includes(o)&&(r.left=0),p$1.includes(o)&&(r.right=0),m$1.includes(o)&&(r.top=0),b$1.includes(o)&&(r.bottom=0),r)}),styledSystem.zIndex,styledSystem.top,styledSystem.right,styledSystem.bottom,styledSystem.left,{position:"absolute"});s.defaultProps={preset:"fill"}; | ||
/* | ||
@@ -38,3 +38,3 @@ object-assign | ||
*/ | ||
var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var o={},r=0;r<10;r++)o["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(e){return o[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}var c,i$1,l$1,objectAssign=shouldUseNative()?Object.assign:function(e,o){for(var r,n,t=toObject(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))hasOwnProperty.call(r,a)&&(t[a]=r[a]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(r);for(var s=0;s<n.length;s++)propIsEnumerable.call(r,n[s])&&(t[n[s]]=r[n[s]])}}return t},get=function(e,o,r,n,t){for(o=o&&o.split?o.split("."):[o],n=0;n<o.length;n++)e=e?e[o[n]]:t;return e===t?r:e},themeGet=function(e,o){return void 0===o&&(o=null),function(r){return get(r.theme,e,o)}},a$1=n$4.a(l$1||(c=["\n color: ",";\n text-decoration: underline;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: none;\n }\n\n &:focus,\n &:active {\n box-shadow: ",";\n color: ",";\n text-decoration: none;\n }\n"],i$1=["\n color: ",";\n text-decoration: underline;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: none;\n }\n\n &:focus,\n &:active {\n box-shadow: ",";\n color: ",";\n text-decoration: none;\n }\n"],Object.defineProperty?Object.defineProperty(c,"raw",{value:i$1}):c.raw=i$1,l$1=c),themeGet("textColors.colorTextLink"),themeGet("textColors.colorTextLinkDarker"),themeGet("shadows.shadowFocus"),themeGet("textColors.colorTextLinkDarker")),s$1=/^(https?:)[^\s]*$/,d$1=function(e){return s$1.test(e)},p$2=function(e){return react.createElement(a$1,{href:e.href,rel:d$1(e.href)&&!e.rel?"noreferrer noopener":e.rel,onBlur:e.onBlur,onClick:e.onClick,onFocus:e.onFocus,tabIndex:e.tabIndex,target:e.target||d$1(e.href)?"_blank":void 0},e.children)};p$2.propTypes={children:propTypes.node.isRequired,tabIndex:propTypes.oneOf([0,-1]),target:propTypes.oneOf(["_self","_blank","_parent","_top"])},p$2.displayName="Anchor"; | ||
var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var o={},r=0;r<10;r++)o["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(o).map((function(e){return o[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}var c,i$1,l$1,objectAssign=shouldUseNative()?Object.assign:function(e,o){for(var r,n,t=toObject(e),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))hasOwnProperty.call(r,a)&&(t[a]=r[a]);if(getOwnPropertySymbols){n=getOwnPropertySymbols(r);for(var s=0;s<n.length;s++)propIsEnumerable.call(r,n[s])&&(t[n[s]]=r[n[s]])}}return t},get=function(e,o,r,n,t){for(o=o&&o.split?o.split("."):[o],n=0;n<o.length;n++)e=e?e[o[n]]:t;return e===t?r:e},themeGet=function(e,o){return void 0===o&&(o=null),function(r){return get(r.theme,e,o)}},a$1=n$5.a(l$1||(c=["\n color: ",";\n text-decoration: underline;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: none;\n }\n\n &:focus,\n &:active {\n box-shadow: ",";\n color: ",";\n text-decoration: none;\n }\n"],i$1=["\n color: ",";\n text-decoration: underline;\n outline: none;\n\n &:hover {\n color: ",";\n text-decoration: none;\n }\n\n &:focus,\n &:active {\n box-shadow: ",";\n color: ",";\n text-decoration: none;\n }\n"],Object.defineProperty?Object.defineProperty(c,"raw",{value:i$1}):c.raw=i$1,l$1=c),themeGet("textColors.colorTextLink"),themeGet("textColors.colorTextLinkDarker"),themeGet("shadows.shadowFocus"),themeGet("textColors.colorTextLinkDarker")),s$1=/^(https?:)[^\s]*$/,d$1=function(e){return s$1.test(e)},p$2=function(e){return react.createElement(a$1,{href:e.href,rel:d$1(e.href)&&!e.rel?"noreferrer noopener":e.rel,onBlur:e.onBlur,onClick:e.onClick,onFocus:e.onFocus,tabIndex:e.tabIndex,target:e.target||d$1(e.href)?"_blank":void 0},e.children)};p$2.propTypes={children:propTypes.node.isRequired,tabIndex:propTypes.oneOf([0,-1]),target:propTypes.oneOf(["_self","_blank","_parent","_top"])},p$2.displayName="Anchor"; | ||
/*! ***************************************************************************** | ||
@@ -54,3 +54,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var o$1,i$2,r$2,a$2=/^(\d+:\d*)$/,p$3=function(e){var o=e.ratio;if(null==o||""===o)throw new Error("[Paste: AspectRatio] Missing 'ratio' prop.");if(!function(e){return a$2.test(e)}(o))throw new Error("[Paste: AspectRatio] 'ratio' is invalid. Use a colon separated number pattern (4:3).")},s$2=n$4.div(r$2||(o$1=["\n position: relative;\n\n embed,\n iframe,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"],i$2=["\n position: relative;\n\n embed,\n iframe,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"],Object.defineProperty?Object.defineProperty(o$1,"raw",{value:i$2}):o$1.raw=i$2,r$2=o$1)),l$2=function(e){p$3(e);var o=e.ratio.split(":").map(Number),r=o[1]/o[0]*100;return react.createElement(s$2,{style:{paddingBottom:r+"%"}},react.createElement(s,null,e.children))};l$2.defaultProps={ratio:"4:3"}; | ||
var o$1,i$2,r$2,a$2=/^(\d+:\d*)$/,p$3=function(e){var o=e.ratio;if(null==o||""===o)throw new Error("[Paste: AspectRatio] Missing 'ratio' prop.");if(!function(e){return a$2.test(e)}(o))throw new Error("[Paste: AspectRatio] 'ratio' is invalid. Use a colon separated number pattern (4:3).")},s$2=n$5.div(r$2||(o$1=["\n position: relative;\n\n embed,\n iframe,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"],i$2=["\n position: relative;\n\n embed,\n iframe,\n object,\n video {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n }\n"],Object.defineProperty?Object.defineProperty(o$1,"raw",{value:i$2}):o$1.raw=i$2,r$2=o$1)),l$2=function(e){p$3(e);var o=e.ratio.split(":").map(Number),r=o[1]/o[0]*100;return react.createElement(s$2,{style:{paddingBottom:r+"%"}},react.createElement(s,null,e.children))};l$2.defaultProps={ratio:"4:3"}; | ||
/*! ***************************************************************************** | ||
@@ -70,3 +70,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var s$3=styledSystem.system({iconColor:{property:"color",scale:"textColors"}}),d$2=n$4.span({display:"inline-block"},styledSystem.compose(s$3,styledSystem.size));d$2.defaultProps={size:"sizeIcon20",iconColor:"currentColor"},d$2.displayName="IconWrapper";var c$1=function(e){var o=e.as,r=e.size,n=e.iconColor,t=e.title,i=e.decorative;if(!i&&null==t)throw new Error("[LoadingIcon]: Missing a title for non-decorative icon.");return react.createElement(d$2,{as:o,size:r,iconColor:n},react.createElement(reactUid.UID,null,(function(e){return react.createElement("svg",{role:"img","aria-hidden":i,"aria-labelledby":e,width:"100%",height:"100%",viewBox:"0 0 24 24"},t?react.createElement("title",{id:e},t):null,react.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.085 13.123a1 1 0 01.71 1.224A9.103 9.103 0 014.717 17.46l-.15 1.756a1 1 0 11-1.992-.17l.407-4.773a1 1 0 011.357-.848l4.47 1.728a1 1 0 11-.72 1.865l-1.691-.652a7.103 7.103 0 0012.463-2.533 1 1 0 011.223-.71zM12.008 2.892a9.1 9.1 0 017.283 3.64l.148-1.756a1 1 0 011.993.17l-.407 4.773a1 1 0 01-1.357.847l-4.47-1.727a1 1 0 01.72-1.866l1.691.653a7.103 7.103 0 00-12.463 2.533 1 1 0 01-1.932-.514 9.103 9.103 0 018.794-6.753z"}))})))};c$1.displayName="LoadingIcon";var m$2,p$4,f$1,u=core.keyframes(f$1||(m$2=["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n"],p$4=["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n"],Object.defineProperty?Object.defineProperty(m$2,"raw",{value:p$4}):m$2.raw=p$4,f$1=m$2)),v$1=n$4.div(styledSystem.size,core.css({display:"inline-block",animation:u+" 2s linear infinite","@media screen and (prefers-reduced-motion: reduce)":{animation:"none"}})),y=function(e){var o=e.as,r=e.size,n=e.iconColor,t=e.decorative,i=e.title;return react.createElement(v$1,{size:r},react.createElement(c$1,{as:o,size:r,iconColor:n,decorative:t,title:i}))}; | ||
var s$3=styledSystem.system({iconColor:{property:"color",scale:"textColors"}}),d$2=n$5.span({display:"inline-block"},styledSystem.compose(s$3,styledSystem.size));d$2.defaultProps={size:"sizeIcon20",iconColor:"currentColor"},d$2.displayName="IconWrapper";var c$1=function(e){var o=e.as,r=e.size,n=e.iconColor,t=e.title,i=e.decorative;if(!i&&null==t)throw new Error("[LoadingIcon]: Missing a title for non-decorative icon.");return react.createElement(d$2,{as:o,size:r,iconColor:n},react.createElement(reactUid.UID,null,(function(e){return react.createElement("svg",{role:"img","aria-hidden":i,"aria-labelledby":e,width:"100%",height:"100%",viewBox:"0 0 24 24"},t?react.createElement("title",{id:e},t):null,react.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.085 13.123a1 1 0 01.71 1.224A9.103 9.103 0 014.717 17.46l-.15 1.756a1 1 0 11-1.992-.17l.407-4.773a1 1 0 011.357-.848l4.47 1.728a1 1 0 11-.72 1.865l-1.691-.652a7.103 7.103 0 0012.463-2.533 1 1 0 011.223-.71zM12.008 2.892a9.1 9.1 0 017.283 3.64l.148-1.756a1 1 0 011.993.17l-.407 4.773a1 1 0 01-1.357.847l-4.47-1.727a1 1 0 01.72-1.866l1.691.653a7.103 7.103 0 00-12.463 2.533 1 1 0 01-1.932-.514 9.103 9.103 0 018.794-6.753z"}))})))};c$1.displayName="LoadingIcon";var m$2,p$4,f$1,u=core.keyframes(f$1||(m$2=["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n"],p$4=["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n"],Object.defineProperty?Object.defineProperty(m$2,"raw",{value:p$4}):m$2.raw=p$4,f$1=m$2)),v$1=n$5.div(styledSystem.size,core.css({display:"inline-block",animation:u+" 2s linear infinite","@media screen and (prefers-reduced-motion: reduce)":{animation:"none"}})),y=function(e){var o=e.as,r=e.size,n=e.iconColor,t=e.decorative,i=e.title;return react.createElement(v$1,{size:r},react.createElement(c$1,{as:o,size:r,iconColor:n,decorative:t,title:i}))}; | ||
/*! ***************************************************************************** | ||
@@ -86,3 +86,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
function s$4(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e}y.defaultProps={size:"sizeIcon20"},y.displayName="Spinner";var d$3,u$1,b$2,g$2,f$2,k$1,h$2,v$2,y$1,p$5,m$3,x$1,C$1,w,B,D,P,L,T,z,E,W,S,F,I,M,R,j,H,N,U,O,_,A=core.css(d$3||(d$3=s$4(["\n font-size: 100%;\n padding: 0;\n"],["\n font-size: 100%;\n padding: 0;\n"]))),Y=function(e){return core.css(f$2||(f$2=s$4(["\n /* Hide default browser styles */\n appearance: none;\n border: none;\n display: inline-block;\n outline: none;\n background: none;\n transition: background-color 100ms ease-in, border-color 100ms ease-in;\n font-family: ",";\n font-weight: ",";\n\n /* Remove extra black dotted border FF adds */\n &::-moz-focus-inner {\n border: none;\n }\n"],["\n /* Hide default browser styles */\n appearance: none;\n border: none;\n display: inline-block;\n outline: none;\n background: none;\n transition: background-color 100ms ease-in, border-color 100ms ease-in;\n font-family: ",";\n font-weight: ",";\n\n /* Remove extra black dotted border FF adds */\n &::-moz-focus-inner {\n border: none;\n }\n"])),themeGet("fonts.fontFamilyText")(e),themeGet("fontWeights.fontWeightSemibold")(e))},q=function(e){return core.css([Y(e),core.css(k$1||(k$1=s$4(["\n text-decoration: none;\n cursor: pointer;\n\n &:focus,\n &:active {\n box-shadow: ",';\n }\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n text-decoration: none;\n }\n '],["\n text-decoration: none;\n cursor: pointer;\n\n &:focus,\n &:active {\n box-shadow: ",';\n }\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n text-decoration: none;\n }\n '])),themeGet("shadows.shadowFocus")(e))])},G=function(e){return core.css([Y(e),core.css(h$2||(h$2=s$4(["\n cursor: wait;\n "],["\n cursor: wait;\n "])))])},J=function(e){return core.css([Y(e),core.css(v$2||(v$2=s$4(["\n cursor: not-allowed;\n "],["\n cursor: not-allowed;\n "])))])},K=function(e){return core.css(y$1||(y$1=s$4(["\n border-width: ",";\n border-style: solid;\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"],["\n border-width: ",";\n border-style: solid;\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"])),themeGet("borderWidths.borderWidth20")(e),themeGet("textColors.colorTextInverse")(e),themeGet("textColors.colorTextInverse")(e))},Q=function(e){return core.css([q(e),K(e),core.css(p$5||(p$5=s$4(["\n border-color: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "],["\n border-color: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "])),themeGet("borderColors.colorBorderPrimary")(e),themeGet("backgroundColors.colorBackgroundPrimary")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryDarker")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimary")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryDark")(e))])},V=function(e){return core.css([G(e),K(e),core.css(m$3||(m$3=s$4(["\n &,\n &:hover,\n &:active,\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n "],["\n &,\n &:hover,\n &:active,\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n "])),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryDarker")(e))])},X=function(e){return core.css([J(e),K(e),core.css(x$1||(x$1=s$4(["\n border-color: ",";\n background-color: ",";\n\n &:hover,\n &:active {\n background-color: ",";\n }\n "],["\n border-color: ",";\n background-color: ",";\n\n &:hover,\n &:active {\n background-color: ",";\n }\n "])),themeGet("borderColors.colorBorderPrimaryLight")(e),themeGet("backgroundColors.colorBackgroundPrimaryLight")(e),themeGet("backgroundColors.colorBackgroundPrimaryLight")(e))])},Z=function(e){return core.css(C$1||(C$1=s$4(["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n"],["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n"])),themeGet("borderWidths.borderWidth20")(e),themeGet("backgroundColors.colorBackgroundBody")(e))},$=function(e){return core.css([q(e),Z(e),core.css(w||(w=s$4(["\n color: ",";\n border-color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n "],["\n color: ",";\n border-color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n "])),themeGet("textColors.colorTextLink")(e),themeGet("borderColors.colorBorderPrimary")(e),themeGet("backgroundColors.colorBackgroundBody")(e),themeGet("textColors.colorTextLinkDarker")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryLightest")(e),themeGet("textColors.colorTextLinkDarker")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryLightest")(e),themeGet("textColors.colorTextLinkDarker")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryLighter")(e))])},oo=function(e){return core.css([G(e),Z(e),core.css(B||(B=s$4(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "],["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),themeGet("textColors.colorTextLinkDarker")(e),themeGet("borderColors.colorBorderPrimaryLighter")(e),themeGet("backgroundColors.colorBackgroundPrimaryLighter")(e))])},no=function(e){return core.css([J(e),Z(e),core.css(D||(D=s$4(["\n color: ",";\n border-color: ",";\n "],["\n color: ",";\n border-color: ",";\n "])),themeGet("textColors.colorTextLinkLight")(e),themeGet("borderColors.colorBorderPrimaryLight")(e))])},ro=function(e){return core.css(P||(P=s$4(["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"],["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"])),themeGet("borderWidths.borderWidth20")(e),themeGet("backgroundColors.colorBackgroundDestructive")(e),themeGet("textColors.colorTextInverse")(e),themeGet("textColors.colorTextInverse")(e))},eo=function(e){return core.css([q(e),ro(e),core.css(L||(L=s$4(["\n border-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "],["\n border-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "])),themeGet("borderColors.colorBorderDestructive")(e),themeGet("borderColors.colorBorderDestructiveDarker")(e),themeGet("backgroundColors.colorBackgroundDestructiveDarker")(e),themeGet("borderColors.colorBorderDestructiveDarker")(e),themeGet("backgroundColors.colorBackgroundDestructive")(e),themeGet("borderColors.colorBorderDestructiveDarker")(e),themeGet("backgroundColors.colorBackgroundDestructiveDark")(e))])},to=function(e){return core.css([G(e),ro(e),core.css(T||(T=s$4(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),themeGet("borderColors.colorBorderDestructiveDarker")(e),themeGet("backgroundColors.colorBackgroundDestructiveDarker")(e))])},co=function(e){return core.css([J(e),ro(e),core.css(z||(z=s$4(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),themeGet("borderColors.colorBorderDestructiveLight")(e),themeGet("backgroundColors.colorBackgroundDestructiveLight")(e))])},ao=core.css(E||(E=s$4(["\n background: none;\n"],["\n background: none;\n"]))),lo=function(e){return core.css([q(e),ao,core.css(W||(W=s$4(["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "],["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "])),themeGet("textColors.colorTextLinkDestructive")(e),themeGet("textColors.colorTextLinkDestructiveDark")(e),themeGet("textColors.colorTextLinkDestructiveDarker")(e))])},io=function(e){return core.css([G(e),ao,core.css(S||(S=s$4(["\n color: ",";\n "],["\n color: ",";\n "])),themeGet("textColors.colorTextLinkDestructiveDarker")(e))])},so=function(e){return core.css([J(e),ao,core.css(F||(F=s$4(["\n color: ",";\n "],["\n color: ",";\n "])),themeGet("textColors.colorTextLinkDestructiveLight")(e))])},uo=core.css(I||(I=s$4(["\n background: none;\n"],["\n background: none;\n"]))),bo=function(e){return core.css([q(e),uo,core.css(M||(M=s$4(["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "],["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "])),themeGet("textColors.colorTextLink")(e),themeGet("textColors.colorTextLinkDark")(e),themeGet("textColors.colorTextLinkDarker")(e))])},go=function(e){return core.css([G(e),uo,core.css(R||(R=s$4(["\n color: ",";\n "],["\n color: ",";\n "])),themeGet("textColors.colorTextLinkDarker")(e))])},fo=function(e){return core.css([J(e),uo,core.css(j||(j=s$4(["\n color: ",";\n "],["\n color: ",";\n "])),themeGet("textColors.colorTextLinkLight")(e))])},ko=q,ho=G,vo=J,yo=n$4.button(N||(N=s$4(["\n /* To position the loading spinner correctly.\n * Pulled out of styles.ts so it works for the reset styles too.\n */\n position: relative;\n ","\n ","\n ","\n ","\n"],["\n /* To position the loading spinner correctly.\n * Pulled out of styles.ts so it works for the reset styles too.\n */\n position: relative;\n ","\n ","\n ","\n ","\n"])),styledSystem.buttonStyle,(function(e){switch(e.size){case"reset":return A;case"icon":return function(e){return core.css(u$1||(u$1=s$4(["\n padding: ",";\n border-radius: ",";\n font-size: 100%;\n /* To fix abnormal button padding-bottom */\n line-height: unset;\n"],["\n padding: ",";\n border-radius: ",";\n font-size: 100%;\n /* To fix abnormal button padding-bottom */\n line-height: unset;\n"])),themeGet("space.space30")(e),themeGet("radii.borderRadius20")(e))}(e);case"small":return function(e){return core.css(b$2||(b$2=s$4(["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n line-height: ",";\n"],["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n line-height: ",";\n"])),themeGet("space.space10")(e),themeGet("space.space30")(e),themeGet("radii.borderRadius10")(e),themeGet("fontSizes.fontSize30")(e),themeGet("lineHeights.lineHeight20")(e))}(e);case"default":default:return function(e){return core.css(g$2||(g$2=s$4(["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n\n line-height: ",";\n"],["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n\n line-height: ",";\n"])),themeGet("space.space30")(e),themeGet("space.space50")(e),themeGet("radii.borderRadius20")(e),themeGet("fontSizes.fontSize30")(e),themeGet("lineHeights.lineHeight20")(e))}(e)}}),(function(e){var o=e.variant,r=e.buttonState,n="disabled"===r,t="loading"===r;switch(o){case"reset":return n?vo:t?ho:ko;case"secondary":return n?no:t?oo:$;case"link":return n?fo:t?go:bo;case"destructive":return n?co:t?to:eo;case"destructive_link":return n?so:t?io:lo;case"primary":default:return n?X:t?V:Q}}),(function(e){var o=e.fullWidth;return core.css(H||(H=s$4(["\n width: ",";\n"],["\n width: ",";\n"])),o?"100%":"auto")})),po=n$4.span(O||(O=s$4(["\n display: grid;\n grid-auto-flow: column;\n /*\n * Neat way to make sure children are spaced apart correctly\n * https://caniuse.com/#feat=multicolumn\n */\n column-gap: ",";\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n text-decoration: inherit;\n ","\n"],["\n display: grid;\n grid-auto-flow: column;\n /*\n * Neat way to make sure children are spaced apart correctly\n * https://caniuse.com/#feat=multicolumn\n */\n column-gap: ",";\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n text-decoration: inherit;\n ","\n"])),themeGet("space.space20"),(function(e){var o=e.buttonState;return core.css(U||(U=s$4(["\n opacity: ",";\n"],["\n opacity: ",";\n"])),"loading"===o?"0":"100%")})),mo=n$4(s)(_||(_=s$4(["\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 14px;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 14px;\n"]))),xo=function(e){var o,r,n=(r=(o=e).loading,o.disabled?"disabled":r?"loading":"default"),t="loading"===n,i="default"!==n,a=e.size;return null==a&&(a="default","link"===e.variant||"destructive_link"===e.variant?a="reset":1===react.Children.count(e.children)&&react.Children.forEach(e.children,(function(e){react.isValidElement(e)&&"string"==typeof e.type.displayName&&e.type.displayName.includes("Icon")&&(a="icon")}))),function(e){var o=e.as,r=e.href,n=e.variant,t=e.size,i=e.tabIndex,a=e.fullWidth,s=e.children,l=null!=r&&""!==r,c=null!=i;if("a"!==o&&l)throw new Error("[Paste: Button] You cannot pass href into a button without the 'a' tag. Use 'as=\"a\"'.");if("a"===o&&!l)throw new Error("[Paste: Button] Missing href prop for link button.");if("a"===o&&"link"===n)throw new Error("[Paste: Button] This should be a link. Use the [Paste: Anchor] component.");if("reset"===n&&"reset"!==t)throw new Error('[Paste: Button] The "RESET" variant can only be used with the "RESET" size.');if("icon"===t&&a)throw new Error("[Paste: Button] Icon buttons should not be fullWidth.");if(null==s)throw new Error("[Paste: Button] Must have non-null children.");if(c&&0!==i&&-1!==i)throw new Error("[Paste: Button] tabIndex must be 0 or -1.")}(e),react.createElement(yo,{as:e.as,variant:e.variant,size:a,buttonState:n,disabled:i,autoFocus:e.autoFocus,fullWidth:e.fullWidth,href:e.href,tabIndex:e.tabIndex,type:e.type,onClick:e.onClick,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur,"aria-expanded":e["aria-expanded"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],"aria-busy":"loading"===n?"true":"false","data-test":e["data-test"]},react.createElement(po,{buttonState:n},e.children),t?react.createElement(mo,{as:"span"},react.createElement(y,{decorative:!1,title:"Loading, please wait."})):null)};xo.defaultProps={as:"button",type:"button",variant:"primary",disabled:!1,loading:!1,fullWidth:!1},xo.displayName="Button"; | ||
function s$4(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e}y.defaultProps={size:"sizeIcon20"},y.displayName="Spinner";var d$3,u$1,b$2,g$2,f$2,k$1,h$2,v$2,y$1,p$5,m$3,x$1,C$1,w,B,D,P,L,T,z,E,W,S,F,I,M,R,j,H,N,U,O,_,A=core.css(d$3||(d$3=s$4(["\n font-size: 100%;\n padding: 0;\n"],["\n font-size: 100%;\n padding: 0;\n"]))),Y=function(e){return core.css(f$2||(f$2=s$4(["\n /* Hide default browser styles */\n appearance: none;\n border: none;\n display: inline-block;\n outline: none;\n background: none;\n transition: background-color 100ms ease-in, border-color 100ms ease-in;\n font-family: ",";\n font-weight: ",";\n\n /* Remove extra black dotted border FF adds */\n &::-moz-focus-inner {\n border: none;\n }\n"],["\n /* Hide default browser styles */\n appearance: none;\n border: none;\n display: inline-block;\n outline: none;\n background: none;\n transition: background-color 100ms ease-in, border-color 100ms ease-in;\n font-family: ",";\n font-weight: ",";\n\n /* Remove extra black dotted border FF adds */\n &::-moz-focus-inner {\n border: none;\n }\n"])),themeGet("fonts.fontFamilyText")(e),themeGet("fontWeights.fontWeightSemibold")(e))},q=function(e){return core.css([Y(e),core.css(k$1||(k$1=s$4(["\n text-decoration: none;\n cursor: pointer;\n\n &:focus,\n &:active {\n box-shadow: ",';\n }\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n text-decoration: none;\n }\n '],["\n text-decoration: none;\n cursor: pointer;\n\n &:focus,\n &:active {\n box-shadow: ",';\n }\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n text-decoration: none;\n }\n '])),themeGet("shadows.shadowFocus")(e))])},G=function(e){return core.css([Y(e),core.css(h$2||(h$2=s$4(["\n cursor: wait;\n "],["\n cursor: wait;\n "])))])},J=function(e){return core.css([Y(e),core.css(v$2||(v$2=s$4(["\n cursor: not-allowed;\n "],["\n cursor: not-allowed;\n "])))])},K=function(e){return core.css(y$1||(y$1=s$4(["\n border-width: ",";\n border-style: solid;\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"],["\n border-width: ",";\n border-style: solid;\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"])),themeGet("borderWidths.borderWidth20")(e),themeGet("textColors.colorTextInverse")(e),themeGet("textColors.colorTextInverse")(e))},Q=function(e){return core.css([q(e),K(e),core.css(p$5||(p$5=s$4(["\n border-color: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "],["\n border-color: ",";\n background-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "])),themeGet("borderColors.colorBorderPrimary")(e),themeGet("backgroundColors.colorBackgroundPrimary")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryDarker")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimary")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryDark")(e))])},V=function(e){return core.css([G(e),K(e),core.css(m$3||(m$3=s$4(["\n &,\n &:hover,\n &:active,\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n "],["\n &,\n &:hover,\n &:active,\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n "])),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryDarker")(e))])},X=function(e){return core.css([J(e),K(e),core.css(x$1||(x$1=s$4(["\n border-color: ",";\n background-color: ",";\n\n &:hover,\n &:active {\n background-color: ",";\n }\n "],["\n border-color: ",";\n background-color: ",";\n\n &:hover,\n &:active {\n background-color: ",";\n }\n "])),themeGet("borderColors.colorBorderPrimaryLight")(e),themeGet("backgroundColors.colorBackgroundPrimaryLight")(e),themeGet("backgroundColors.colorBackgroundPrimaryLight")(e))])},Z=function(e){return core.css(C$1||(C$1=s$4(["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n"],["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n"])),themeGet("borderWidths.borderWidth20")(e),themeGet("backgroundColors.colorBackgroundBody")(e))},$=function(e){return core.css([q(e),Z(e),core.css(w||(w=s$4(["\n color: ",";\n border-color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n "],["\n color: ",";\n border-color: ",";\n background-color: ",";\n\n &:hover {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n color: ",";\n border-color: ",";\n background-color: ",";\n }\n "])),themeGet("textColors.colorTextLink")(e),themeGet("borderColors.colorBorderPrimary")(e),themeGet("backgroundColors.colorBackgroundBody")(e),themeGet("textColors.colorTextLinkDarker")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryLightest")(e),themeGet("textColors.colorTextLinkDarker")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryLightest")(e),themeGet("textColors.colorTextLinkDarker")(e),themeGet("borderColors.colorBorderPrimaryDarker")(e),themeGet("backgroundColors.colorBackgroundPrimaryLighter")(e))])},oo=function(e){return core.css([G(e),Z(e),core.css(B||(B=s$4(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "],["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),themeGet("textColors.colorTextLinkDarker")(e),themeGet("borderColors.colorBorderPrimaryLighter")(e),themeGet("backgroundColors.colorBackgroundPrimaryLighter")(e))])},no=function(e){return core.css([J(e),Z(e),core.css(D||(D=s$4(["\n color: ",";\n border-color: ",";\n "],["\n color: ",";\n border-color: ",";\n "])),themeGet("textColors.colorTextLinkLight")(e),themeGet("borderColors.colorBorderPrimaryLight")(e))])},ro=function(e){return core.css(P||(P=s$4(["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"],["\n border-width: ",";\n border-style: solid;\n background-color: ",";\n color: ",';\n\n /*\n defensively resetting from over zealous legacy global\n styles "a {...}" when button is set as an anchor\n */\n &:hover,\n &:focus,\n &:active {\n color: ',";\n }\n"])),themeGet("borderWidths.borderWidth20")(e),themeGet("backgroundColors.colorBackgroundDestructive")(e),themeGet("textColors.colorTextInverse")(e),themeGet("textColors.colorTextInverse")(e))},eo=function(e){return core.css([q(e),ro(e),core.css(L||(L=s$4(["\n border-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "],["\n border-color: ",";\n\n &:hover {\n border-color: ",";\n background-color: ",";\n }\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n\n &:active {\n border-color: ",";\n background-color: ",";\n }\n "])),themeGet("borderColors.colorBorderDestructive")(e),themeGet("borderColors.colorBorderDestructiveDarker")(e),themeGet("backgroundColors.colorBackgroundDestructiveDarker")(e),themeGet("borderColors.colorBorderDestructiveDarker")(e),themeGet("backgroundColors.colorBackgroundDestructive")(e),themeGet("borderColors.colorBorderDestructiveDarker")(e),themeGet("backgroundColors.colorBackgroundDestructiveDark")(e))])},to=function(e){return core.css([G(e),ro(e),core.css(T||(T=s$4(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),themeGet("borderColors.colorBorderDestructiveDarker")(e),themeGet("backgroundColors.colorBackgroundDestructiveDarker")(e))])},co=function(e){return core.css([J(e),ro(e),core.css(z||(z=s$4(["\n border-color: ",";\n background-color: ",";\n "],["\n border-color: ",";\n background-color: ",";\n "])),themeGet("borderColors.colorBorderDestructiveLight")(e),themeGet("backgroundColors.colorBackgroundDestructiveLight")(e))])},ao=core.css(E||(E=s$4(["\n background: none;\n"],["\n background: none;\n"]))),lo=function(e){return core.css([q(e),ao,core.css(W||(W=s$4(["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "],["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "])),themeGet("textColors.colorTextLinkDestructive")(e),themeGet("textColors.colorTextLinkDestructiveDark")(e),themeGet("textColors.colorTextLinkDestructiveDarker")(e))])},io=function(e){return core.css([G(e),ao,core.css(S||(S=s$4(["\n color: ",";\n "],["\n color: ",";\n "])),themeGet("textColors.colorTextLinkDestructiveDarker")(e))])},so=function(e){return core.css([J(e),ao,core.css(F||(F=s$4(["\n color: ",";\n "],["\n color: ",";\n "])),themeGet("textColors.colorTextLinkDestructiveLight")(e))])},uo=core.css(I||(I=s$4(["\n background: none;\n"],["\n background: none;\n"]))),bo=function(e){return core.css([q(e),uo,core.css(M||(M=s$4(["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "],["\n color: ",";\n\n &:hover,\n &:focus,\n &:active {\n text-decoration: underline;\n }\n\n &:hover {\n color: ",";\n }\n\n &:active {\n color: ",";\n }\n "])),themeGet("textColors.colorTextLink")(e),themeGet("textColors.colorTextLinkDark")(e),themeGet("textColors.colorTextLinkDarker")(e))])},go=function(e){return core.css([G(e),uo,core.css(R||(R=s$4(["\n color: ",";\n "],["\n color: ",";\n "])),themeGet("textColors.colorTextLinkDarker")(e))])},fo=function(e){return core.css([J(e),uo,core.css(j||(j=s$4(["\n color: ",";\n "],["\n color: ",";\n "])),themeGet("textColors.colorTextLinkLight")(e))])},ko=q,ho=G,vo=J,yo=n$5.button(N||(N=s$4(["\n /* To position the loading spinner correctly.\n * Pulled out of styles.ts so it works for the reset styles too.\n */\n position: relative;\n ","\n ","\n ","\n ","\n"],["\n /* To position the loading spinner correctly.\n * Pulled out of styles.ts so it works for the reset styles too.\n */\n position: relative;\n ","\n ","\n ","\n ","\n"])),styledSystem.buttonStyle,(function(e){switch(e.size){case"reset":return A;case"icon":return function(e){return core.css(u$1||(u$1=s$4(["\n padding: ",";\n border-radius: ",";\n font-size: 100%;\n /* To fix abnormal button padding-bottom */\n line-height: unset;\n"],["\n padding: ",";\n border-radius: ",";\n font-size: 100%;\n /* To fix abnormal button padding-bottom */\n line-height: unset;\n"])),themeGet("space.space30")(e),themeGet("radii.borderRadius20")(e))}(e);case"small":return function(e){return core.css(b$2||(b$2=s$4(["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n line-height: ",";\n"],["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n line-height: ",";\n"])),themeGet("space.space10")(e),themeGet("space.space30")(e),themeGet("radii.borderRadius10")(e),themeGet("fontSizes.fontSize30")(e),themeGet("lineHeights.lineHeight20")(e))}(e);case"default":default:return function(e){return core.css(g$2||(g$2=s$4(["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n\n line-height: ",";\n"],["\n padding: "," ",";\n border-radius: ",";\n font-size: ",";\n\n line-height: ",";\n"])),themeGet("space.space30")(e),themeGet("space.space50")(e),themeGet("radii.borderRadius20")(e),themeGet("fontSizes.fontSize30")(e),themeGet("lineHeights.lineHeight20")(e))}(e)}}),(function(e){var o=e.variant,r=e.buttonState,n="disabled"===r,t="loading"===r;switch(o){case"reset":return n?vo:t?ho:ko;case"secondary":return n?no:t?oo:$;case"link":return n?fo:t?go:bo;case"destructive":return n?co:t?to:eo;case"destructive_link":return n?so:t?io:lo;case"primary":default:return n?X:t?V:Q}}),(function(e){var o=e.fullWidth;return core.css(H||(H=s$4(["\n width: ",";\n"],["\n width: ",";\n"])),o?"100%":"auto")})),po=n$5.span(O||(O=s$4(["\n display: grid;\n grid-auto-flow: column;\n /*\n * Neat way to make sure children are spaced apart correctly\n * https://caniuse.com/#feat=multicolumn\n */\n column-gap: ",";\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n text-decoration: inherit;\n ","\n"],["\n display: grid;\n grid-auto-flow: column;\n /*\n * Neat way to make sure children are spaced apart correctly\n * https://caniuse.com/#feat=multicolumn\n */\n column-gap: ",";\n justify-content: center;\n align-items: center;\n vertical-align: middle;\n text-decoration: inherit;\n ","\n"])),themeGet("space.space20"),(function(e){var o=e.buttonState;return core.css(U||(U=s$4(["\n opacity: ",";\n"],["\n opacity: ",";\n"])),"loading"===o?"0":"100%")})),mo=n$5(s)(_||(_=s$4(["\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 14px;\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 14px;\n"]))),xo=function(e){var o,r,n=(r=(o=e).loading,o.disabled?"disabled":r?"loading":"default"),t="loading"===n,i="default"!==n,a=e.size;return null==a&&(a="default","link"===e.variant||"destructive_link"===e.variant?a="reset":1===react.Children.count(e.children)&&react.Children.forEach(e.children,(function(e){react.isValidElement(e)&&"string"==typeof e.type.displayName&&e.type.displayName.includes("Icon")&&(a="icon")}))),function(e){var o=e.as,r=e.href,n=e.variant,t=e.size,i=e.tabIndex,a=e.fullWidth,s=e.children,l=null!=r&&""!==r,c=null!=i;if("a"!==o&&l)throw new Error("[Paste: Button] You cannot pass href into a button without the 'a' tag. Use 'as=\"a\"'.");if("a"===o&&!l)throw new Error("[Paste: Button] Missing href prop for link button.");if("a"===o&&"link"===n)throw new Error("[Paste: Button] This should be a link. Use the [Paste: Anchor] component.");if("reset"===n&&"reset"!==t)throw new Error('[Paste: Button] The "RESET" variant can only be used with the "RESET" size.');if("icon"===t&&a)throw new Error("[Paste: Button] Icon buttons should not be fullWidth.");if(null==s)throw new Error("[Paste: Button] Must have non-null children.");if(c&&0!==i&&-1!==i)throw new Error("[Paste: Button] tabIndex must be 0 or -1.")}(e),react.createElement(yo,{as:e.as,variant:e.variant,size:a,buttonState:n,disabled:i,autoFocus:e.autoFocus,fullWidth:e.fullWidth,href:e.href,tabIndex:e.tabIndex,type:e.type,onClick:e.onClick,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur,"aria-expanded":e["aria-expanded"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],"aria-busy":"loading"===n?"true":"false","data-test":e["data-test"]},react.createElement(po,{buttonState:n},e.children),t?react.createElement(mo,{as:"span"},react.createElement(y,{decorative:!1,title:"Loading, please wait."})):null)};xo.defaultProps={as:"button",type:"button",variant:"primary",disabled:!1,loading:!1,fullWidth:!1},xo.displayName="Button"; | ||
/*! ***************************************************************************** | ||
@@ -102,3 +102,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var p$6=function(){return(p$6=Object.assign||function(e){for(var o,r=1,n=arguments.length;r<n;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e}).apply(this,arguments)},l$3=function(e){var o=e.grow;return Array.isArray(o)?o.map((function(e){return Number(e)})):"number"==typeof o?o:o?1:0},c$2=function(e){var o=e.shrink,r=e.basis;return Array.isArray(o)?o.map((function(e){return Number(e)})):"number"==typeof o?o:"boolean"==typeof o?o?1:0:r&&"auto"!==r?0:1},s$5=function(e){return e+("number"==typeof e||String(parseInt(e,10))===e?"px":"")},y$2=function(e){var o=e.basis;return Array.isArray(o)?o.map((function(e){return s$5(e)})):o?s$5(o):"auto"},m$4=function(e){var o=e.vertical;return Array.isArray(o)?o.map((function(e){return"boolean"==typeof e?!0===e?"column":"row":e})):o?"column":"row"},b$3=function(e){var o=e.wrap;return Array.isArray(o)?o.map((function(e){return"boolean"==typeof e?!0===e?"wrap":"nowrap":e})):o?"wrap":"nowrap"},x$2={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch"},v$3=function(e){var o=e.vAlignContent;return Array.isArray(o)?o.map((function(e){return x$2[e]})):o?x$2[o]:"flex-start"},w$1={left:"flex-start",center:"center",right:"flex-end",around:"space-around",between:"space-between"},A$1=function(e){var o=e.hAlignContent;return Array.isArray(o)?o.map((function(e){return w$1[e]})):o?w$1[o]:"flex-start"},h$3=function(e){var o=react.useMemo((function(){return function(e){var o={justifyContent:e.vertical?v$3(e):A$1(e),alignItems:e.vertical?A$1(e):v$3(e)};return(e.grow||e.shrink||e.basis)&&(o.flexGrow=l$3(e),o.flexShrink=c$2(e),o.flexBasis=y$2(e)),e.vertical&&(o.flexDirection=m$4(e)),e.wrap&&(o.flexWrap=b$3(e)),o}(e)}),[e]);return react.createElement(h$1,p$6({},o,{display:e.display}),e.children)};h$3.propTypes={display:propTypes.oneOfType([propTypes.oneOf(["flex","inline-flex"]),propTypes.arrayOf(propTypes.oneOf(["flex","inline-flex"]))]),vertical:propTypes.oneOfType([propTypes.oneOfType([propTypes.bool]),propTypes.arrayOf(propTypes.oneOfType([propTypes.bool]))]),vAlignContent:propTypes.oneOfType([propTypes.oneOf(["top","center","bottom","stretch"]),propTypes.arrayOf(propTypes.oneOf(["top","center","bottom","stretch"]))]),hAlignContent:propTypes.oneOfType([propTypes.oneOf(["left","center","right","around","between"]),propTypes.arrayOf(propTypes.oneOf(["left","center","right","around","between"]))]),grow:propTypes.oneOfType([propTypes.oneOfType([propTypes.bool,propTypes.number]),propTypes.arrayOf(propTypes.oneOfType([propTypes.bool,propTypes.number]))]),shrink:propTypes.oneOfType([propTypes.oneOfType([propTypes.bool,propTypes.number]),propTypes.arrayOf(propTypes.oneOfType([propTypes.bool,propTypes.number]))]),basis:propTypes.oneOfType([propTypes.oneOfType([propTypes.string,propTypes.number]),propTypes.arrayOf(propTypes.oneOfType([propTypes.string,propTypes.number]))]),wrap:propTypes.oneOfType([propTypes.oneOfType([propTypes.bool]),propTypes.arrayOf(propTypes.oneOfType([propTypes.bool]))])},h$3.defaultProps={display:"flex"},h$3.displayName="Flex"; | ||
var d$4=function(){return(d$4=Object.assign||function(e){for(var o,r=1,n=arguments.length;r<n;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e}).apply(this,arguments)},n$1=function(e){var o=e.children,r=e.padding,n=void 0===r?"space60":r,t=e.paddingBottom,i=e.paddingLeft,a=e.paddingRight,s=e.paddingTop,l=function(e,o){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)o.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t])&&(r[n[t]]=e[n[t]])}return r}(e,["children","padding","paddingBottom","paddingLeft","paddingRight","paddingTop"]);return react.createElement(h$1,d$4({},C(l),{as:"article",borderWidth:"borderWidth20",borderColor:"colorBorderLight",borderStyle:"solid",borderRadius:"borderRadius20",padding:n,paddingBottom:t,paddingLeft:i,paddingRight:a,paddingTop:s,backgroundColor:"colorBackgroundBody"}),o)},p$6=function(){return(p$6=Object.assign||function(e){for(var o,r=1,n=arguments.length;r<n;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e}).apply(this,arguments)},l$3=function(e){var o=e.grow;return Array.isArray(o)?o.map((function(e){return Number(e)})):"number"==typeof o?o:o?1:0},c$2=function(e){var o=e.shrink,r=e.basis;return Array.isArray(o)?o.map((function(e){return Number(e)})):"number"==typeof o?o:"boolean"==typeof o?o?1:0:r&&"auto"!==r?0:1},s$5=function(e){return e+("number"==typeof e||String(parseInt(e,10))===e?"px":"")},y$2=function(e){var o=e.basis;return Array.isArray(o)?o.map((function(e){return s$5(e)})):o?s$5(o):"auto"},m$4=function(e){var o=e.vertical;return Array.isArray(o)?o.map((function(e){return"boolean"==typeof e?!0===e?"column":"row":e})):o?"column":"row"},b$3=function(e){var o=e.wrap;return Array.isArray(o)?o.map((function(e){return"boolean"==typeof e?!0===e?"wrap":"nowrap":e})):o?"wrap":"nowrap"},x$2={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch"},v$3=function(e){var o=e.vAlignContent;return Array.isArray(o)?o.map((function(e){return x$2[e]})):o?x$2[o]:"flex-start"},w$1={left:"flex-start",center:"center",right:"flex-end",around:"space-around",between:"space-between"},A$1=function(e){var o=e.hAlignContent;return Array.isArray(o)?o.map((function(e){return w$1[e]})):o?w$1[o]:"flex-start"},h$3=function(e){var o=react.useMemo((function(){return function(e){var o={justifyContent:e.vertical?v$3(e):A$1(e),alignItems:e.vertical?A$1(e):v$3(e)};return(e.grow||e.shrink||e.basis)&&(o.flexGrow=l$3(e),o.flexShrink=c$2(e),o.flexBasis=y$2(e)),e.vertical&&(o.flexDirection=m$4(e)),e.wrap&&(o.flexWrap=b$3(e)),o}(e)}),[e]);return react.createElement(h$1,p$6({},o,{display:e.display}),e.children)};h$3.propTypes={display:propTypes.oneOfType([propTypes.oneOf(["flex","inline-flex"]),propTypes.arrayOf(propTypes.oneOf(["flex","inline-flex"]))]),vertical:propTypes.oneOfType([propTypes.oneOfType([propTypes.bool]),propTypes.arrayOf(propTypes.oneOfType([propTypes.bool]))]),vAlignContent:propTypes.oneOfType([propTypes.oneOf(["top","center","bottom","stretch"]),propTypes.arrayOf(propTypes.oneOf(["top","center","bottom","stretch"]))]),hAlignContent:propTypes.oneOfType([propTypes.oneOf(["left","center","right","around","between"]),propTypes.arrayOf(propTypes.oneOf(["left","center","right","around","between"]))]),grow:propTypes.oneOfType([propTypes.oneOfType([propTypes.bool,propTypes.number]),propTypes.arrayOf(propTypes.oneOfType([propTypes.bool,propTypes.number]))]),shrink:propTypes.oneOfType([propTypes.oneOfType([propTypes.bool,propTypes.number]),propTypes.arrayOf(propTypes.oneOfType([propTypes.bool,propTypes.number]))]),basis:propTypes.oneOfType([propTypes.oneOfType([propTypes.string,propTypes.number]),propTypes.arrayOf(propTypes.oneOfType([propTypes.string,propTypes.number]))]),wrap:propTypes.oneOfType([propTypes.oneOfType([propTypes.bool]),propTypes.arrayOf(propTypes.oneOfType([propTypes.bool]))])},h$3.defaultProps={display:"flex"},h$3.displayName="Flex"; | ||
/*! ***************************************************************************** | ||
@@ -118,3 +118,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var f$3=function(){for(var e=0,o=0,r=arguments.length;o<r;o++)e+=arguments[o].length;var n=Array(e),t=0;for(o=0;o<r;o++)for(var i=arguments[o],a=0,s=i.length;a<s;a++,t++)n[t]=i[a];return n}(p,x,g,["display","textColor","verticalAlign","className","style"]),m$5=function(e){return Object.keys(e).reduce((function(o,r){return f$3.includes(r)||(o[r]=e[r]),o}),{})},y$3=styledSystem.system({textColor:{property:"color",scale:"textColors"}}),d$4=styledSystem.system({textDecoration:!0}),u$2=n$4.span({margin:0,padding:0},styledSystem.compose(styledSystem.space,styledSystem.display,styledSystem.verticalAlign,styledSystem.overflow,d$4,styledSystem.typography,y$3));u$2.defaultProps={fontSize:"fontSize30",lineHeight:"lineHeight30",textColor:"colorText"},u$2.displayName="Text"; | ||
var f$3=function(){for(var e=0,o=0,r=arguments.length;o<r;o++)e+=arguments[o].length;var n=Array(e),t=0;for(o=0;o<r;o++)for(var i=arguments[o],a=0,s=i.length;a<s;a++,t++)n[t]=i[a];return n}(p,x,g,["display","textColor","verticalAlign","className","style"]),m$5=function(e){return Object.keys(e).reduce((function(o,r){return f$3.includes(r)||(o[r]=e[r]),o}),{})},y$3=styledSystem.system({textColor:{property:"color",scale:"textColors"}}),d$5=styledSystem.system({textDecoration:!0}),u$2=n$5.span({margin:0,padding:0},styledSystem.compose(styledSystem.space,styledSystem.display,styledSystem.verticalAlign,styledSystem.overflow,d$5,styledSystem.typography,y$3));u$2.defaultProps={fontSize:"fontSize30",lineHeight:"lineHeight30",textColor:"colorText"},u$2.displayName="Text"; | ||
/*! ***************************************************************************** | ||
@@ -134,3 +134,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var n$1=function(){return(n$1=Object.assign||function(e){for(var o,r=1,n=arguments.length;r<n;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e}).apply(this,arguments)},o$2=function(e){var o=e.as,r=e.children,n=e.id,t=e.variant;return react.createElement(u$2,n$1({},function(e){switch(e){case"heading10":return{marginBottom:"space70",fontSize:"fontSize90",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:"space50",fontSize:"fontSize60",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:"space40",fontSize:"fontSize40",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:"space30",fontSize:"fontSize30",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:"space30",fontSize:"fontSize20",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:"space60",fontSize:"fontSize70",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight70"}}}(t),{as:o,display:"block",id:n,textColor:"colorText"}),r)};o$2.propTypes={as:propTypes.oneOf(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,variant:propTypes.oneOf(["heading10","heading20","heading30","heading40","heading50","heading60"])},o$2.defaultProps={variant:"heading20"},o$2.displayName="Heading"; | ||
var n$2=function(){return(n$2=Object.assign||function(e){for(var o,r=1,n=arguments.length;r<n;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e}).apply(this,arguments)},o$2=function(e){var o=e.as,r=e.children,n=e.id,t=e.variant;return react.createElement(u$2,n$2({},function(e){switch(e){case"heading10":return{marginBottom:"space70",fontSize:"fontSize90",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight90"};case"heading30":return{marginBottom:"space50",fontSize:"fontSize60",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight60"};case"heading40":return{marginBottom:"space40",fontSize:"fontSize40",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight40"};case"heading50":return{marginBottom:"space30",fontSize:"fontSize30",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight30"};case"heading60":return{marginBottom:"space30",fontSize:"fontSize20",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight20"};case"heading20":default:return{marginBottom:"space60",fontSize:"fontSize70",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight70"}}}(t),{as:o,display:"block",id:n,textColor:"colorText"}),r)};o$2.propTypes={as:propTypes.oneOf(["h1","h2","h3","h4","h5","h6","div","label","span"]).isRequired,variant:propTypes.oneOf(["heading10","heading20","heading30","heading40","heading50","heading60"])},o$2.defaultProps={variant:"heading20"},o$2.displayName="Heading"; | ||
/*! ***************************************************************************** | ||
@@ -150,3 +150,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var n$2=function(){return(n$2=Object.assign||function(e){for(var o,r=1,n=arguments.length;r<n;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e}).apply(this,arguments)};function o$3(e,o){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)o.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t])&&(r[n[t]]=e[n[t]])}return r}var i$3=function(e){var o=e.as,r=e.children,n=o$3(e,["as","children"]);return react.createElement(u$2,n$2({},n,{as:o,marginBottom:"space70",marginLeft:"space70",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"}),r)};i$3.displayName="List";var a$3=function(e){var o=e.children,r=o$3(e,["children"]);return react.createElement(i$3,n$2({},m$5(r),{as:"ol"}),o)};a$3.displayName="OrderedList";var l$4=function(e){var o=e.children,r=o$3(e,["children"]);return react.createElement(i$3,n$2({},m$5(r),{as:"ul"}),o)};l$4.displayName="UnorderedList";var c$3=function(e){return react.createElement(u$2,n$2({},m$5(e),{as:"li",marginBottom:"space30",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"}),e.children)}; | ||
var n$3=function(){return(n$3=Object.assign||function(e){for(var o,r=1,n=arguments.length;r<n;r++)for(var t in o=arguments[r])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e}).apply(this,arguments)};function o$3(e,o){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(n=Object.getOwnPropertySymbols(e);t<n.length;t++)o.indexOf(n[t])<0&&Object.prototype.propertyIsEnumerable.call(e,n[t])&&(r[n[t]]=e[n[t]])}return r}var i$3=function(e){var o=e.as,r=e.children,n=o$3(e,["as","children"]);return react.createElement(u$2,n$3({},n,{as:o,marginBottom:"space70",marginLeft:"space70",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"}),r)};i$3.displayName="List";var a$3=function(e){var o=e.children,r=o$3(e,["children"]);return react.createElement(i$3,n$3({},m$5(r),{as:"ol"}),o)};a$3.displayName="OrderedList";var l$4=function(e){var o=e.children,r=o$3(e,["children"]);return react.createElement(i$3,n$3({},m$5(r),{as:"ul"}),o)};l$4.displayName="UnorderedList";var c$3=function(e){return react.createElement(u$2,n$3({},m$5(e),{as:"li",marginBottom:"space30",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"}),e.children)}; | ||
/*! ***************************************************************************** | ||
@@ -166,3 +166,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
function i$4(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e}c$3.displayName="ListItem";var r$3=n$4.div(a$4||(a$4=i$4(["\n align-items: ",";\n display: flex;\n"],["\n align-items: ",";\n display: flex;\n"])),(function(e){return e.isCentered?"center":"flex-start"})),s$6=n$4.div(l$5||(l$5=i$4(["\n flex-shrink: 0;\n ",";\n"],["\n flex-shrink: 0;\n ",";\n"])),(function(e){return"margin-"+("end"===e.align?"left":"right")+": "+themeGet("space."+e.spacing)(e)}));s$6.defaultProps={align:"start",spacing:"space20"};var a$4,l$5,d$5,f$4={Object:r$3,Figure:s$6,Body:n$4.div(d$5||(d$5=i$4(["\n flex: 1;\n min-width: ",";\n ",";\n"],["\n flex: 1;\n min-width: ",";\n ",";\n"])),themeGet("minWidths.size0"),styledSystem.space)},o$4=function(e){return react.createElement(u$2,{as:"p",marginBottom:"space70",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"},e.children)};o$4.displayName="Paragraph"; | ||
function i$4(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e}c$3.displayName="ListItem";var r$3=n$5.div(a$4||(a$4=i$4(["\n align-items: ",";\n display: flex;\n"],["\n align-items: ",";\n display: flex;\n"])),(function(e){return e.isCentered?"center":"flex-start"})),s$6=n$5.div(l$5||(l$5=i$4(["\n flex-shrink: 0;\n ",";\n"],["\n flex-shrink: 0;\n ",";\n"])),(function(e){return"margin-"+("end"===e.align?"left":"right")+": "+themeGet("space."+e.spacing)(e)}));s$6.defaultProps={align:"start",spacing:"space20"};var a$4,l$5,d$6,f$4={Object:r$3,Figure:s$6,Body:n$5.div(d$6||(d$6=i$4(["\n flex: 1;\n min-width: ",";\n ",";\n"],["\n flex: 1;\n min-width: ",";\n ",";\n"])),themeGet("minWidths.size0"),styledSystem.space)},o$4=function(e){return react.createElement(u$2,{as:"p",marginBottom:"space70",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",textColor:"colorText"},e.children)};o$4.displayName="Paragraph"; | ||
/*! ***************************************************************************** | ||
@@ -182,3 +182,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
***************************************************************************** */ | ||
var e$1,r$4,t$1,n$3,i$5,o$6,o$5=n$4.span(t$1||(e$1=["\n position: absolute;\n margin: -1px;\n border: 0;\n padding: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n text-transform: none;\n white-space: nowrap;\n"],r$4=["\n position: absolute;\n margin: -1px;\n border: 0;\n padding: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n text-transform: none;\n white-space: nowrap;\n"],Object.defineProperty?Object.defineProperty(e$1,"raw",{value:r$4}):e$1.raw=r$4,t$1=e$1)),l$6=n$4.span(o$6||(n$3=["\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],i$5=["\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],Object.defineProperty?Object.defineProperty(n$3,"raw",{value:i$5}):n$3.raw=i$5,o$6=n$3)); | ||
var e$1,r$4,t$1,n$4,i$5,o$6,o$5=n$5.span(t$1||(e$1=["\n position: absolute;\n margin: -1px;\n border: 0;\n padding: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n text-transform: none;\n white-space: nowrap;\n"],r$4=["\n position: absolute;\n margin: -1px;\n border: 0;\n padding: 0;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n text-transform: none;\n white-space: nowrap;\n"],Object.defineProperty?Object.defineProperty(e$1,"raw",{value:r$4}):e$1.raw=r$4,t$1=e$1)),l$6=n$5.span(o$6||(n$4=["\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],i$5=["\n display: inline-block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"],Object.defineProperty?Object.defineProperty(n$4,"raw",{value:i$5}):n$4.raw=i$5,o$6=n$4)); | ||
/*! ***************************************************************************** | ||
@@ -197,2 +197,2 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */exports.Absolute=s,exports.Anchor=p$2,exports.AspectRatio=l$2,exports.BOX_PROPS_TO_BLOCK=g$1,exports.Box=h$1,exports.Button=xo,exports.Flex=h$3,exports.Heading=o$2,exports.ListItem=c$3,exports.Media=f$4,exports.OrderedList=a$3,exports.Paragraph=o$4,exports.ScreenReaderOnly=o$5,exports.Spinner=y,exports.TEXT_PROPS_TO_BLOCK=f$3,exports.Text=u$2,exports.Truncate=l$6,exports.UnorderedList=l$4,exports.getBasis=y$2,exports.getGrow=l$3,exports.getShrink=c$2,exports.getSuffix=s$5,exports.getVertical=m$4,exports.getWrap=b$3,exports.hAlignToProps=A$1,exports.safelySpreadBoxProps=C,exports.safelySpreadTextProps=m$5,exports.vAlignToProps=v$3; | ||
***************************************************************************** */exports.Absolute=s,exports.Anchor=p$2,exports.AspectRatio=l$2,exports.BOX_PROPS_TO_BLOCK=g$1,exports.Box=h$1,exports.Button=xo,exports.Card=n$1,exports.Flex=h$3,exports.Heading=o$2,exports.ListItem=c$3,exports.Media=f$4,exports.OrderedList=a$3,exports.Paragraph=o$4,exports.ScreenReaderOnly=o$5,exports.Spinner=y,exports.TEXT_PROPS_TO_BLOCK=f$3,exports.Text=u$2,exports.Truncate=l$6,exports.UnorderedList=l$4,exports.getBasis=y$2,exports.getGrow=l$3,exports.getShrink=c$2,exports.getSuffix=s$5,exports.getVertical=m$4,exports.getWrap=b$3,exports.hAlignToProps=A$1,exports.safelySpreadBoxProps=C,exports.safelySpreadTextProps=m$5,exports.vAlignToProps=v$3; |
{ | ||
"name": "@twilio-paste/core", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"status": "beta", | ||
@@ -30,17 +30,18 @@ "description": "Contains all the core packages from the Paste internal design system.", | ||
"dependencies": { | ||
"@twilio-paste/absolute": "^2.0.5", | ||
"@twilio-paste/anchor": "^1.0.2", | ||
"@twilio-paste/aspect-ratio": "^1.0.5", | ||
"@twilio-paste/box": "^2.1.0", | ||
"@twilio-paste/button": "^1.1.3", | ||
"@twilio-paste/flex": "^0.1.0", | ||
"@twilio-paste/heading": "^1.0.6", | ||
"@twilio-paste/list": "^0.1.0", | ||
"@twilio-paste/media-object": "^1.0.5", | ||
"@twilio-paste/paragraph": "^1.0.6", | ||
"@twilio-paste/absolute": "^2.0.6", | ||
"@twilio-paste/anchor": "^1.0.3", | ||
"@twilio-paste/aspect-ratio": "^1.0.6", | ||
"@twilio-paste/box": "^2.1.1", | ||
"@twilio-paste/button": "^1.1.4", | ||
"@twilio-paste/card": "^1.3.0", | ||
"@twilio-paste/flex": "^0.1.1", | ||
"@twilio-paste/heading": "^1.0.7", | ||
"@twilio-paste/list": "^0.1.1", | ||
"@twilio-paste/media-object": "^1.0.6", | ||
"@twilio-paste/paragraph": "^1.0.7", | ||
"@twilio-paste/screen-reader-only": "^1.0.0", | ||
"@twilio-paste/spinner": "^1.1.2", | ||
"@twilio-paste/text": "^1.1.0", | ||
"@twilio-paste/spinner": "^1.1.3", | ||
"@twilio-paste/text": "^1.1.1", | ||
"@twilio-paste/truncate": "^1.0.0", | ||
"@twilio-paste/typography": "^1.0.6" | ||
"@twilio-paste/typography": "^1.0.7" | ||
}, | ||
@@ -66,3 +67,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "ed4e8b8fd92e4bd9b268296a2d5d8f244875204b" | ||
"gitHead": "d744a8794c802117efed2f57f00a965df184101b" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
100089
575
23
+ Added@twilio-paste/card@^1.3.0
+ Added@twilio-paste/card@1.5.2(transitive)
Updated@twilio-paste/anchor@^1.0.3
Updated@twilio-paste/box@^2.1.1
Updated@twilio-paste/button@^1.1.4
Updated@twilio-paste/flex@^0.1.1
Updated@twilio-paste/heading@^1.0.7
Updated@twilio-paste/list@^0.1.1
Updated@twilio-paste/spinner@^1.1.3
Updated@twilio-paste/text@^1.1.1