@leafygreen-ui/typography
Advanced tools
Comparing version 16.5.1 to 16.5.2
# @leafygreen-ui/typography | ||
## 16.5.2 | ||
### Patch Changes | ||
- 215268ff: Updates build tooling. No functional changes | ||
- Updated dependencies [215268ff] | ||
- @leafygreen-ui/leafygreen-provider@3.1.4 | ||
- @leafygreen-ui/polymorphic@1.3.3 | ||
- @leafygreen-ui/emotion@4.0.5 | ||
- @leafygreen-ui/palette@4.0.5 | ||
- @leafygreen-ui/tokens@2.1.2 | ||
- @leafygreen-ui/icon@11.20.1 | ||
- @leafygreen-ui/lib@10.4.1 | ||
## 16.5.1 | ||
@@ -4,0 +18,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("@leafygreen-ui/emotion"),require("@leafygreen-ui/leafygreen-provider"),require("@leafygreen-ui/polymorphic"),require("@leafygreen-ui/tokens"),require("@leafygreen-ui/lib"),require("@leafygreen-ui/palette"),require("prop-types"),require("@leafygreen-ui/icon/dist/ArrowRight"),require("@leafygreen-ui/icon/dist/OpenNewTab")):"function"==typeof define&&define.amd?define(["exports","react","@leafygreen-ui/emotion","@leafygreen-ui/leafygreen-provider","@leafygreen-ui/polymorphic","@leafygreen-ui/tokens","@leafygreen-ui/lib","@leafygreen-ui/palette","prop-types","@leafygreen-ui/icon/dist/ArrowRight","@leafygreen-ui/icon/dist/OpenNewTab"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/typography"]={},e.React,e["@leafygreen-ui/emotion"],e["@leafygreen-ui/leafygreen-provider"],e["@leafygreen-ui/polymorphic"],e["@leafygreen-ui/tokens"],e["@leafygreen-ui/lib"],e["@leafygreen-ui/palette"],e.PropTypes,e.ArrowRight,e.OpenNewTab)}(this,(function(e,n,t,a,r,o,i,l,s,c,d){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f,h,p,m,g,y,b,x,v,k,S=u(n),N=u(s),F=u(c),w=u(d);function z(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function D(){return D=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},D.apply(this,arguments)}function T(e,n){if(null==e)return{};var t,a,r=function(e,n){if(null==e)return{};var t,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)t=o[a],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)t=o[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function M(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function B(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o,i,l=[],s=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=o.call(t)).done)&&(l.push(a.value),l.length!==n);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return E(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}var P,O,j,C,L,W,H,I,q,A,R,U=t.css(f||(f=M(["\n margin: unset;\n font-family: ",";\n color: ",";\n"])),o.fontFamilies.default,l.palette.black),_=(z(m={},o.BaseFontSize.Body1,t.css(h||(h=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.body1.fontSize,o.typeScales.body1.lineHeight)),z(m,o.BaseFontSize.Body2,t.css(p||(p=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.body2.fontSize,o.typeScales.body2.lineHeight)),m),K=(z(b={},o.BaseFontSize.Body1,t.css(g||(g=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.code1.fontSize,o.typeScales.code1.lineHeight)),z(b,o.BaseFontSize.Body2,t.css(y||(y=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.code2.fontSize,o.typeScales.code2.lineHeight)),b),$=(z(k={},i.Theme.Light,t.css(x||(x=M(["\n color: ",";\n "])),l.palette.black)),z(k,i.Theme.Dark,t.css(v||(v=M(["\n color: ",";\n "])),l.palette.gray.light2)),k),G=function(e){var n=a.useBaseFontSize();return e?16===e?o.BaseFontSize.Body2:o.BaseFontSize.Body1:16===n?o.BaseFontSize.Body2:o.BaseFontSize.Body1},J=["baseFontSize","darkMode","className","weight","as"],Q=r.Polymorphic((function(e){var n=e.baseFontSize,i=e.darkMode,l=e.className,s=e.weight,c=void 0===s?"regular":s,d=e.as,u=void 0===d?"p":d,f=T(e,J),h=a.useDarkMode(i).theme,p=G(n),m=r.usePolymorphic(u).Component,g=t.css(P||(P=M(["\n font-weight: ",";\n strong,\n b {\n font-weight: ",";\n }\n "])),o.fontWeights[c],o.fontWeights.bold);return S.default.createElement(m,D({className:t.cx(U,_[p],$[h],g,l)},f))}));Q.displayName="Body";var V,X,Y,Z,ee=t.css(O||(O=M(["\n font-family: ",";\n font-weight: ",";\n margin-top: 0;\n margin-bottom: 0;\n"])),o.fontFamilies.default,o.fontWeights.regular),ne=(z(L={},i.Theme.Light,t.css(j||(j=M(["\n color: ",";\n "])),l.palette.gray.dark1)),z(L,i.Theme.Dark,t.css(C||(C=M(["\n color: ",";\n "])),l.palette.gray.light1)),L),te=(z(I={},i.Theme.Light,t.css(W||(W=M(["\n color: ",";\n "])),l.palette.gray.dark1)),z(I,i.Theme.Dark,t.css(H||(H=M(["\n color: ",";\n "])),l.palette.gray.base)),I),ae=(z(R={},o.BaseFontSize.Body1,t.css(q||(q=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.body1.fontSize,o.typeScales.body1.lineHeight)),z(R,o.BaseFontSize.Body2,t.css(A||(A=M(["\n font-size: ","px;\n line-height: 20px; // Hardcoding because it does not match body2 lineHeight\n "])),o.typeScales.body2.fontSize)),R),re=["baseFontSize","darkMode","disabled","children","className"],oe=function(e){var n=e.baseFontSize,r=e.darkMode,o=e.disabled,i=void 0!==o&&o,l=e.children,s=e.className,c=T(e,re),d=a.useDarkMode(r).theme,u=G(n);return S.default.createElement("p",D({className:t.cx(ee,ne[d],ae[u],z({},te[d],i),s)},c),l)};oe.displayName="Description";var ie,le,se,ce,de=(z(Y={},i.Theme.Light,t.css(V||(V=M(["\n color: ",";\n "])),l.palette.gray.dark1)),z(Y,i.Theme.Dark,t.css(X||(X=M(["\n color: ",";\n "])),l.palette.gray.light1)),Y),ue=t.css(Z||(Z=M(["\n display: block;\n font-size: 11px;\n line-height: 16px;\n letter-spacing: 0.2px;\n"]))),fe=["darkMode","children","className"];function he(e){var n=e.darkMode,r=e.children,o=e.className,i=T(e,fe),l=a.useDarkMode(n).theme;return S.default.createElement("small",D({},i,{className:t.cx(U,ue,de[l],o)}),r)}he.displayName="Disclaimer";var pe,me,ge,ye,be,xe,ve,ke,Se=t.css(ie||(ie=M(["\n font-family: ",";\n font-weight: ",";\n font-size: inherit;\n line-height: inherit;\n\n // Unsets browser default margins\n margin-block-start: 0;\n margin-block-end: 0;\n"])),o.fontFamilies.default,o.fontWeights.regular),Ne=(z(ce={},i.Theme.Light,t.css(le||(le=M(["\n color: ",";\n "])),l.palette.red.base)),z(ce,i.Theme.Dark,t.css(se||(se=M(["\n color: ",";\n "])),l.palette.red.light1)),ce),Fe=["as","darkMode","children","className"],we=r.Polymorphic((function(e){var n=e.as,o=void 0===n?"p":n,i=e.darkMode,l=e.children,s=e.className,c=T(e,Fe),d=a.useDarkMode(i).theme,u=r.usePolymorphic(o).Component;return S.default.createElement(u,D({},c,{className:t.cx(Se,Ne[d],s)}),l)})),ze=t.css(pe||(pe=M(["\n font-weight: ",";\n font-size: 48px;\n line-height: 62px;\n font-family: ",";\n"])),o.fontWeights.regular,o.fontFamilies.serif),De=(z(ye={},i.Theme.Light,t.css(me||(me=M(["\n color: ",";\n "])),l.palette.green.dark2)),z(ye,i.Theme.Dark,t.css(ge||(ge=M(["\n color: ",";\n "])),l.palette.green.light1)),ye),Te=["darkMode","className","as"],Me=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"h1":i,s=T(e,Te),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,ze,De[c],o)},s))}));Me.displayName="H1";var Be,Ee=t.css(be||(be=M(["\n font-size: 32px;\n line-height: 40px;\n font-weight: ",";\n font-family: ",";\n"])),o.fontWeights.regular,o.fontFamilies.serif),Pe=(z(ke={},i.Theme.Light,t.css(xe||(xe=M(["\n color: ",";\n "])),l.palette.green.dark2)),z(ke,i.Theme.Dark,t.css(ve||(ve=M(["\n color: ",";\n "])),l.palette.green.light1)),ke),Oe=["darkMode","className","as"],je=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"h2":i,s=T(e,Oe),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,Ee,Pe[c],o)},s))}));je.displayName="H2";var Ce,Le,We,He,Ie,qe,Ae,Re,Ue,_e,Ke,$e,Ge,Je=t.css(Be||(Be=M(["\n font-size: 24px;\n line-height: 32px;\n font-weight: ",";\n"])),o.fontWeights.medium),Qe=["darkMode","className","as"],Ve=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"h3":i,s=T(e,Qe),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,Je,$[c],o)},s))}));Ve.displayName="H3";var Xe,Ye,Ze,en,nn=i.createUniqueClassName(),tn=t.css(Ce||(Ce=M(["\n display: inline;\n transition: all 0.15s ease-in-out;\n border-radius: 3px;\n font-family: ",";\n line-height: 20px;\n\n .",":hover > & {\n text-decoration: none;\n }\n"])),o.fontFamilies.code,nn),an=(z(He={},i.Theme.Light,t.css(Le||(Le=M(["\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n .",":hover > & {\n box-shadow: 0 0 0 3px ",";\n border: 1px solid ",";\n }\n "])),l.palette.gray.light3,l.palette.gray.light2,l.palette.gray.dark3,nn,l.palette.gray.light2,l.palette.gray.light1)),z(He,i.Theme.Dark,t.css(We||(We=M(["\n background-color: transparent;\n border: 1px solid ",";\n color: ",";\n\n .",":hover > & {\n box-shadow: 0 0 0 3px ",";\n border: 1px solid ",";\n }\n "])),l.palette.gray.dark2,l.palette.gray.light1,nn,l.palette.gray.dark2,l.palette.gray.dark1)),He),rn=(z(Ae={},i.Theme.Light,t.css(Ie||(Ie=M(["\n .",":focus-visible > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),nn,o.focusRing[i.Theme.Light].default,l.palette.blue.base)),z(Ae,i.Theme.Dark,t.css(qe||(qe=M(["\n .",":focus-visible > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),nn,o.focusRing[i.Theme.Dark].default,l.palette.blue.base)),Ae),on=(z(_e={},i.Theme.Light,t.css(Re||(Re=M(["\n color: ",";\n "])),l.palette.blue.base)),z(_e,i.Theme.Dark,t.css(Ue||(Ue=M(["\n color: ",";\n "])),l.palette.blue.light1)),_e),ln=t.css(Ke||(Ke=M(["\n text-decoration: none;\n margin: 0;\n padding: 0;\n line-height: 20px;\n\n &:focus {\n outline: none;\n }\n"]))),sn=t.css($e||($e=M(["\n white-space: nowrap;\n"]))),cn=t.css(Ge||(Ge=M(["\n white-space: normal;\n"]))),dn=["children","className","darkMode","baseFontSize","as"],un=r.InferredPolymorphic((function(e,n){var o,i,l=e.children,s=e.className,c=e.darkMode,d=e.baseFontSize,u=e.as,f=T(e,dn),h=a.useDarkMode(c).theme,p=G(d),m=r.useInferredPolymorphic(u,f,"code").Component,g=(null!==(o="string"==typeof l&&(null===(i=l.match(/(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g))||void 0===i?void 0:i.length))&&void 0!==o?o:0)<=30?sn:cn,y="code"!==m,b=S.default.createElement("code",{ref:n,className:t.cx(K[p],tn,an[h],rn[h],g,z({},on[h],y),s)},l);return y?S.default.createElement(m,D({className:t.cx(nn,ln,s)},f),b):S.default.cloneElement(b,f)}));un.displayName="InlineCode",un.propTypes={children:N.default.node,className:N.default.string,darkMode:N.default.bool,baseFontSize:N.default.oneOf(Object.values(o.BaseFontSize))};var fn,hn,pn,mn,gn,yn,bn,xn,vn,kn,Sn=t.css(Xe||(Xe=M(["\n font-family: ",";\n border: 1px solid;\n border-radius: 3px;\n padding-left: 5px;\n padding-right: 5px;\n"])),o.fontFamilies.code),Nn=(z(en={},i.Theme.Light,t.css(Ye||(Ye=M(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),l.palette.black,l.palette.gray.dark3,l.palette.white)),z(en,i.Theme.Dark,t.css(Ze||(Ze=M(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),l.palette.gray.light2,l.palette.gray.base,l.palette.gray.dark3)),en),Fn=["baseFontSize","darkMode","children","className"];function wn(e){var n=e.baseFontSize,r=e.darkMode,o=e.children,i=e.className,l=T(e,Fn),s=G(n),c=a.useDarkMode(r).theme;return S.default.createElement("code",D({className:t.cx(Sn,Nn[c],K[s],i)},l),o)}wn.displayName="InlineKeyCode";var zn,Dn,Tn,Mn,Bn,En,Pn,On,jn,Cn,Ln,Wn,Hn=t.css(fn||(fn=M(["\n font-family: ",";\n font-weight: ",";\n"])),o.fontFamilies.default,o.fontWeights.bold),In=(z(mn={},i.Theme.Light,t.css(hn||(hn=M(["\n color: ",";\n "])),l.palette.black)),z(mn,i.Theme.Dark,t.css(pn||(pn=M(["\n color: ",";\n "])),l.palette.gray.light2)),mn),qn=(z(bn={},i.Theme.Light,t.css(gn||(gn=M(["\n color: ",";\n "])),l.palette.gray.dark1)),z(bn,i.Theme.Dark,t.css(yn||(yn=M(["\n color: ",";\n "])),l.palette.gray.base)),bn),An=(z(kn={},o.BaseFontSize.Body1,t.css(xn||(xn=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.body1.fontSize,o.typeScales.body1.lineHeight)),z(kn,o.BaseFontSize.Body2,t.css(vn||(vn=M(["\n font-size: ","px;\n line-height: 20px; // Hardcoding because it does not match body2 lineHeight\n "])),o.typeScales.body2.fontSize)),kn),Rn=["baseFontSize","darkMode","className","children","disabled","as"],Un=r.Polymorphic((function(e){var n=e.baseFontSize,o=e.darkMode,i=e.className,l=e.children,s=e.disabled,c=void 0!==s&&s,d=e.as,u=void 0===d?"label":d,f=T(e,Rn),h=a.useDarkMode(o).theme,p=G(n),m=r.usePolymorphic(u).Component;return S.default.createElement(m,D({className:t.cx(Hn,In[h],An[p],z({},qn[h],c),i)},f),l)}));Un.displayName="Label";var _n,Kn,$n=i.createUniqueClassName(),Gn=t.css(zn||(zn=M(["\n &:hover,\n &:focus,\n &:visited {\n text-decoration: none;\n }\n"]))),Jn=t.css(Dn||(Dn=M(["\n font-family: ",";\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n cursor: pointer;\n line-height: 13px;\n\n &:focus {\n outline: none;\n }\n"])),o.fontFamilies.default),Qn=(z(Bn={},i.Theme.Light,t.css(Tn||(Tn=M(["\n color: ",";\n font-weight: ",";\n "])),l.palette.blue.base,o.fontWeights.regular)),z(Bn,i.Theme.Dark,t.css(Mn||(Mn=M(["\n color: ",";\n font-weight: ",";\n "])),l.palette.blue.light1,o.fontWeights.bold)),Bn),Vn=t.css(En||(En=M(["\n position: relative;\n &::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 2px;\n bottom: -4px;\n left: 0;\n border-radius: 2px;\n }\n\n .",":focus & {\n &::after {\n background-color: ",";\n }\n }\n"])),$n,l.palette.blue.light1),Xn=(z(jn={},i.Theme.Light,t.css(Pn||(Pn=M(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),$n,l.palette.gray.light2)),z(jn,i.Theme.Dark,t.css(On||(On=M(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),$n,l.palette.gray.dark2)),jn),Yn=t.css(Cn||(Cn=M(["\n transform: translate3d(3px, 0, 0);\n"]))),Zn=t.css(Ln||(Ln=M(["\n opacity: 0;\n transform: translate3d(-3px, 0, 0);\n transition: all 100ms ease-in;\n\n .",":hover & {\n opacity: 1;\n transform: translate3d(3px, 0, 0);\n }\n"])),$n),et=t.css(Wn||(Wn=M(["\n position: relative;\n bottom: 4px;\n left: -1px;\n height: 12px;\n"]))),nt="hover",tt="persist",at="none",rt=["children","className","arrowAppearance","hideExternalIcon","baseFontSize","darkMode","as"],ot=r.InferredPolymorphic((function(e){var o=e.children,i=e.className,l=e.arrowAppearance,s=void 0===l?at:l,c=e.hideExternalIcon,d=void 0!==c&&c,u=e.baseFontSize,f=e.darkMode,h=e.as,p=T(e,rt),m=B(n.useState(""),2),g=m[0],y=m[1];n.useEffect((function(){y(window.location.hostname)}),[]);var b,x=a.useDarkMode(f).theme,v=G(u),k=r.useInferredPolymorphic(h,p,"span").Component,N=n.useMemo((function(){if(void 0!==p.href){return/^http(s)?:\/\//.test(p.href)?new URL(p.href).hostname:g}}),[p,g]),M={target:void 0,rel:void 0};if(p.target||p.rel?(M.target=p.target,M.rel=p.rel):"a"===k&&(N===g?M.target="_self":(M.target="_blank",M.rel="noopener noreferrer")),"_blank"!==M.target||d){if(s!==at){var E;b=S.default.createElement(F.default,{role:"presentation",size:12,className:t.cx((E={},z(E,Zn,s===nt),z(E,Yn,s===tt),E))})}}else b=S.default.createElement(w.default,{role:"presentation",className:et});return S.default.createElement(k,D({className:t.cx($n,Gn,_[v],Jn,Qn[x],i)},M,p),S.default.createElement("span",{className:t.cx(Vn,Xn[x])},o),b)})),it=t.css(_n||(_n=M(["\n font-size: 12px;\n font-weight: ",";\n text-transform: uppercase;\n line-height: 20px;\n letter-spacing: 0.4px;\n"])),o.fontWeights.bold),lt=["darkMode","className","as"],st=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"div":i,s=T(e,lt),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,it,$[c],o)},s))}));st.displayName="Overline";var ct=t.css(Kn||(Kn=M(["\n font-size: 18px;\n line-height: 24px;\n font-weight: ",";\n"])),o.fontWeights.bold),dt=["darkMode","className","as"],ut=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"h6":i,s=T(e,dt),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,ct,$[c],o)},s))}));ut.displayName="Subtitle";var ft,ht,pt=["as","children","maxFontWeight","pseudoElement","className"],mt=function(e){var n=e.pseudoElement,a=e.maxFontWeight,r="&:".concat(n);return t.css(ft||(ft=M(["\n /* Inherit relevant properties from the parent */\n font-weight: inherit;\n font-size: inherit;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n position: relative;\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n text-decoration: none;\n min-width: 0;\n max-width: 100%;\n\n "," {\n content: attr(data-text);\n height: 0;\n font-weight: ",";\n visibility: hidden;\n overflow: hidden;\n user-select: none;\n pointer-events: none;\n }\n "])),r,a)},gt=t.css(ht||(ht=M(["\n flex: 1;\n min-width: 0;\n max-width: 100%;\n\n white-space: inherit;\n overflow: inherit;\n text-overflow: inherit;\n"])));e.Body=Q,e.Description=oe,e.Disclaimer=he,e.Error=we,e.H1=Me,e.H2=je,e.H3=Ve,e.InlineCode=un,e.InlineKeyCode=wn,e.Label=Un,e.Link=ot,e.Overline=st,e.StaticWidthText=function(e){var n=e.as,a=e.children,o=e.maxFontWeight,l=void 0===o?700:o,s=e.pseudoElement,c=void 0===s?"after":s,d=e.className,u=T(e,pt),f=i.getNodeTextContent(a);return S.default.createElement(r.Polymorph,D({className:t.cx(mt({pseudoElement:c,maxFontWeight:l}),d),as:null!=n?n:"span","data-text":f},u),S.default.createElement("span",{className:gt},a))},e.Subtitle=ut,e.anchorClassName=$n,e.bodyTypeScaleStyles=_,e.labelTypeScaleStyles=An,e.useUpdatedBaseFontSize=G,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("@leafygreen-ui/emotion"),require("@leafygreen-ui/leafygreen-provider"),require("@leafygreen-ui/polymorphic"),require("@leafygreen-ui/tokens"),require("@leafygreen-ui/lib"),require("@leafygreen-ui/palette"),require("prop-types"),require("@leafygreen-ui/icon/dist/ArrowRight"),require("@leafygreen-ui/icon/dist/OpenNewTab")):"function"==typeof define&&define.amd?define(["exports","react","@leafygreen-ui/emotion","@leafygreen-ui/leafygreen-provider","@leafygreen-ui/polymorphic","@leafygreen-ui/tokens","@leafygreen-ui/lib","@leafygreen-ui/palette","prop-types","@leafygreen-ui/icon/dist/ArrowRight","@leafygreen-ui/icon/dist/OpenNewTab"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/typography"]={},e.React,e["@leafygreen-ui/emotion"],e["@leafygreen-ui/leafygreen-provider"],e["@leafygreen-ui/polymorphic"],e["@leafygreen-ui/tokens"],e["@leafygreen-ui/lib"],e["@leafygreen-ui/palette"],e.PropTypes,e.ArrowRight,e.OpenNewTab)}(this,(function(e,n,t,a,r,o,i,l,s,c,d){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f,h,p,m,g,y,b,x,v,k,S=u(n),N=u(s),F=u(c),w=u(d);function z(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function D(){return D=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},D.apply(this,arguments)}function T(e,n){if(null==e)return{};var t,a,r=function(e,n){if(null==e)return{};var t,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)t=o[a],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)t=o[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function M(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function B(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,o,i,l=[],s=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=o.call(t)).done)&&(l.push(a.value),l.length!==n);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return E(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return E(e,n)}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}var P,O,j,C,L,W,H,I,q,A,R,U=t.css(f||(f=M(["\n margin: unset;\n font-family: ",";\n color: ",";\n"])),o.fontFamilies.default,l.palette.black),_=(z(m={},o.BaseFontSize.Body1,t.css(h||(h=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.body1.fontSize,o.typeScales.body1.lineHeight)),z(m,o.BaseFontSize.Body2,t.css(p||(p=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.body2.fontSize,o.typeScales.body2.lineHeight)),m),K=(z(b={},o.BaseFontSize.Body1,t.css(g||(g=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.code1.fontSize,o.typeScales.code1.lineHeight)),z(b,o.BaseFontSize.Body2,t.css(y||(y=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.code2.fontSize,o.typeScales.code2.lineHeight)),b),$=(z(k={},i.Theme.Light,t.css(x||(x=M(["\n color: ",";\n "])),l.palette.black)),z(k,i.Theme.Dark,t.css(v||(v=M(["\n color: ",";\n "])),l.palette.gray.light2)),k),G=function(e){var n=a.useBaseFontSize();return e?16===e?o.BaseFontSize.Body2:o.BaseFontSize.Body1:16===n?o.BaseFontSize.Body2:o.BaseFontSize.Body1},J=["baseFontSize","darkMode","className","weight","as"],Q=r.Polymorphic((function(e){var n=e.baseFontSize,i=e.darkMode,l=e.className,s=e.weight,c=void 0===s?"regular":s,d=e.as,u=void 0===d?"p":d,f=T(e,J),h=a.useDarkMode(i).theme,p=G(n),m=r.usePolymorphic(u).Component,g=t.css(P||(P=M(["\n font-weight: ",";\n strong,\n b {\n font-weight: ",";\n }\n "])),o.fontWeights[c],o.fontWeights.bold);return S.default.createElement(m,D({className:t.cx(U,_[p],$[h],g,l)},f))}));Q.displayName="Body";var V,X,Y,Z,ee=t.css(O||(O=M(["\n font-family: ",";\n font-weight: ",";\n margin-top: 0;\n margin-bottom: 0;\n"])),o.fontFamilies.default,o.fontWeights.regular),ne=(z(L={},i.Theme.Light,t.css(j||(j=M(["\n color: ",";\n "])),l.palette.gray.dark1)),z(L,i.Theme.Dark,t.css(C||(C=M(["\n color: ",";\n "])),l.palette.gray.light1)),L),te=(z(I={},i.Theme.Light,t.css(W||(W=M(["\n color: ",";\n "])),l.palette.gray.dark1)),z(I,i.Theme.Dark,t.css(H||(H=M(["\n color: ",";\n "])),l.palette.gray.base)),I),ae=(z(R={},o.BaseFontSize.Body1,t.css(q||(q=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.body1.fontSize,o.typeScales.body1.lineHeight)),z(R,o.BaseFontSize.Body2,t.css(A||(A=M(["\n font-size: ","px;\n line-height: 20px; // Hardcoding because it does not match body2 lineHeight\n "])),o.typeScales.body2.fontSize)),R),re=["baseFontSize","darkMode","disabled","children","className"],oe=function(e){var n=e.baseFontSize,r=e.darkMode,o=e.disabled,i=void 0!==o&&o,l=e.children,s=e.className,c=T(e,re),d=a.useDarkMode(r).theme,u=G(n);return S.default.createElement("p",D({className:t.cx(ee,ne[d],ae[u],z({},te[d],i),s)},c),l)};oe.displayName="Description";var ie,le,se,ce,de=(z(Y={},i.Theme.Light,t.css(V||(V=M(["\n color: ",";\n "])),l.palette.gray.dark1)),z(Y,i.Theme.Dark,t.css(X||(X=M(["\n color: ",";\n "])),l.palette.gray.light1)),Y),ue=t.css(Z||(Z=M(["\n display: block;\n font-size: 11px;\n line-height: 16px;\n letter-spacing: 0.2px;\n"]))),fe=["darkMode","children","className"];function he(e){var n=e.darkMode,r=e.children,o=e.className,i=T(e,fe),l=a.useDarkMode(n).theme;return S.default.createElement("small",D({},i,{className:t.cx(U,ue,de[l],o)}),r)}he.displayName="Disclaimer";var pe,me,ge,ye,be,xe,ve,ke,Se=t.css(ie||(ie=M(["\n font-family: ",";\n font-weight: ",";\n font-size: inherit;\n line-height: inherit;\n\n // Unsets browser default margins\n margin-block-start: 0;\n margin-block-end: 0;\n"])),o.fontFamilies.default,o.fontWeights.regular),Ne=(z(ce={},i.Theme.Light,t.css(le||(le=M(["\n color: ",";\n "])),l.palette.red.base)),z(ce,i.Theme.Dark,t.css(se||(se=M(["\n color: ",";\n "])),l.palette.red.light1)),ce),Fe=["as","darkMode","children","className"],we=r.Polymorphic((function(e){var n=e.as,o=void 0===n?"p":n,i=e.darkMode,l=e.children,s=e.className,c=T(e,Fe),d=a.useDarkMode(i).theme,u=r.usePolymorphic(o).Component;return S.default.createElement(u,D({},c,{className:t.cx(Se,Ne[d],s)}),l)})),ze=t.css(pe||(pe=M(["\n font-weight: ",";\n font-size: 48px;\n line-height: 62px;\n font-family: ",";\n"])),o.fontWeights.regular,o.fontFamilies.serif),De=(z(ye={},i.Theme.Light,t.css(me||(me=M(["\n color: ",";\n "])),l.palette.green.dark2)),z(ye,i.Theme.Dark,t.css(ge||(ge=M(["\n color: ",";\n "])),l.palette.green.light1)),ye),Te=["darkMode","className","as"],Me=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"h1":i,s=T(e,Te),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,ze,De[c],o)},s))}));Me.displayName="H1";var Be,Ee=t.css(be||(be=M(["\n font-size: 32px;\n line-height: 40px;\n font-weight: ",";\n font-family: ",";\n"])),o.fontWeights.regular,o.fontFamilies.serif),Pe=(z(ke={},i.Theme.Light,t.css(xe||(xe=M(["\n color: ",";\n "])),l.palette.green.dark2)),z(ke,i.Theme.Dark,t.css(ve||(ve=M(["\n color: ",";\n "])),l.palette.green.light1)),ke),Oe=["darkMode","className","as"],je=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"h2":i,s=T(e,Oe),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,Ee,Pe[c],o)},s))}));je.displayName="H2";var Ce,Le,We,He,Ie,qe,Ae,Re,Ue,_e,Ke,$e,Ge,Je=t.css(Be||(Be=M(["\n font-size: 24px;\n line-height: 32px;\n font-weight: ",";\n"])),o.fontWeights.medium),Qe=["darkMode","className","as"],Ve=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"h3":i,s=T(e,Qe),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,Je,$[c],o)},s))}));Ve.displayName="H3";var Xe,Ye,Ze,en,nn=i.createUniqueClassName(),tn=t.css(Ce||(Ce=M(["\n display: inline;\n transition: all 0.15s ease-in-out;\n border-radius: 3px;\n font-family: ",";\n line-height: 20px;\n\n .",":hover > & {\n text-decoration: none;\n }\n"])),o.fontFamilies.code,nn),an=(z(He={},i.Theme.Light,t.css(Le||(Le=M(["\n background-color: ",";\n border: 1px solid ",";\n color: ",";\n\n .",":hover > & {\n box-shadow: 0 0 0 3px ",";\n border: 1px solid ",";\n }\n "])),l.palette.gray.light3,l.palette.gray.light2,l.palette.gray.dark3,nn,l.palette.gray.light2,l.palette.gray.light1)),z(He,i.Theme.Dark,t.css(We||(We=M(["\n background-color: transparent;\n border: 1px solid ",";\n color: ",";\n\n .",":hover > & {\n box-shadow: 0 0 0 3px ",";\n border: 1px solid ",";\n }\n "])),l.palette.gray.dark2,l.palette.gray.light1,nn,l.palette.gray.dark2,l.palette.gray.dark1)),He),rn=(z(Ae={},i.Theme.Light,t.css(Ie||(Ie=M(["\n .",":focus-visible > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),nn,o.focusRing[i.Theme.Light].default,l.palette.blue.base)),z(Ae,i.Theme.Dark,t.css(qe||(qe=M(["\n .",":focus-visible > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),nn,o.focusRing[i.Theme.Dark].default,l.palette.blue.base)),Ae),on=(z(_e={},i.Theme.Light,t.css(Re||(Re=M(["\n color: ",";\n "])),l.palette.blue.base)),z(_e,i.Theme.Dark,t.css(Ue||(Ue=M(["\n color: ",";\n "])),l.palette.blue.light1)),_e),ln=t.css(Ke||(Ke=M(["\n text-decoration: none;\n margin: 0;\n padding: 0;\n line-height: 20px;\n\n &:focus {\n outline: none;\n }\n"]))),sn=t.css($e||($e=M(["\n white-space: nowrap;\n"]))),cn=t.css(Ge||(Ge=M(["\n white-space: normal;\n"]))),dn=["children","className","darkMode","baseFontSize","as"],un=r.InferredPolymorphic((function(e,n){var o,i,l=e.children,s=e.className,c=e.darkMode,d=e.baseFontSize,u=e.as,f=T(e,dn),h=a.useDarkMode(c).theme,p=G(d),m=r.useInferredPolymorphic(u,f,"code").Component,g=(null!==(o="string"==typeof l&&(null===(i=l.match(/(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g))||void 0===i?void 0:i.length))&&void 0!==o?o:0)<=30?sn:cn,y="code"!==m,b=S.default.createElement("code",{ref:n,className:t.cx(K[p],tn,an[h],rn[h],g,z({},on[h],y),s)},l);return y?S.default.createElement(m,D({className:t.cx(nn,ln,s)},f),b):S.default.cloneElement(b,f)}));un.displayName="InlineCode",un.propTypes={children:N.default.node,className:N.default.string,darkMode:N.default.bool,baseFontSize:N.default.oneOf(Object.values(o.BaseFontSize))};var fn,hn,pn,mn,gn,yn,bn,xn,vn,kn,Sn=t.css(Xe||(Xe=M(["\n font-family: ",";\n border: 1px solid;\n border-radius: 3px;\n padding-left: 5px;\n padding-right: 5px;\n"])),o.fontFamilies.code),Nn=(z(en={},i.Theme.Light,t.css(Ye||(Ye=M(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),l.palette.black,l.palette.gray.dark3,l.palette.white)),z(en,i.Theme.Dark,t.css(Ze||(Ze=M(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),l.palette.gray.light2,l.palette.gray.base,l.palette.gray.dark3)),en),Fn=["baseFontSize","darkMode","children","className"];function wn(e){var n=e.baseFontSize,r=e.darkMode,o=e.children,i=e.className,l=T(e,Fn),s=G(n),c=a.useDarkMode(r).theme;return S.default.createElement("code",D({className:t.cx(Sn,Nn[c],K[s],i)},l),o)}wn.displayName="InlineKeyCode";var zn,Dn,Tn,Mn,Bn,En,Pn,On,jn,Cn,Ln,Wn,Hn=t.css(fn||(fn=M(["\n font-family: ",";\n font-weight: ",";\n"])),o.fontFamilies.default,o.fontWeights.bold),In=(z(mn={},i.Theme.Light,t.css(hn||(hn=M(["\n color: ",";\n "])),l.palette.black)),z(mn,i.Theme.Dark,t.css(pn||(pn=M(["\n color: ",";\n "])),l.palette.gray.light2)),mn),qn=(z(bn={},i.Theme.Light,t.css(gn||(gn=M(["\n color: ",";\n "])),l.palette.gray.dark1)),z(bn,i.Theme.Dark,t.css(yn||(yn=M(["\n color: ",";\n "])),l.palette.gray.base)),bn),An=(z(kn={},o.BaseFontSize.Body1,t.css(xn||(xn=M(["\n font-size: ","px;\n line-height: ","px;\n "])),o.typeScales.body1.fontSize,o.typeScales.body1.lineHeight)),z(kn,o.BaseFontSize.Body2,t.css(vn||(vn=M(["\n font-size: ","px;\n line-height: 20px; // Hardcoding because it does not match body2 lineHeight\n "])),o.typeScales.body2.fontSize)),kn),Rn=["baseFontSize","darkMode","className","children","disabled","as"],Un=r.Polymorphic((function(e){var n=e.baseFontSize,o=e.darkMode,i=e.className,l=e.children,s=e.disabled,c=void 0!==s&&s,d=e.as,u=void 0===d?"label":d,f=T(e,Rn),h=a.useDarkMode(o).theme,p=G(n),m=r.usePolymorphic(u).Component;return S.default.createElement(m,D({className:t.cx(Hn,In[h],An[p],z({},qn[h],c),i)},f),l)}));Un.displayName="Label";var _n,Kn,$n=i.createUniqueClassName(),Gn=t.css(zn||(zn=M(["\n &:hover,\n &:focus,\n &:visited {\n text-decoration: none;\n }\n"]))),Jn=t.css(Dn||(Dn=M(["\n font-family: ",";\n display: inline-flex;\n align-items: center;\n text-decoration: none;\n cursor: pointer;\n line-height: 13px;\n\n &:focus {\n outline: none;\n }\n"])),o.fontFamilies.default),Qn=(z(Bn={},i.Theme.Light,t.css(Tn||(Tn=M(["\n color: ",";\n font-weight: ",";\n "])),l.palette.blue.base,o.fontWeights.regular)),z(Bn,i.Theme.Dark,t.css(Mn||(Mn=M(["\n color: ",";\n font-weight: ",";\n "])),l.palette.blue.light1,o.fontWeights.bold)),Bn),Vn=t.css(En||(En=M(["\n position: relative;\n &::after {\n content: '';\n position: absolute;\n width: 100%;\n height: 2px;\n bottom: -4px;\n left: 0;\n border-radius: 2px;\n }\n\n .",":focus & {\n &::after {\n background-color: ",";\n }\n }\n"])),$n,l.palette.blue.light1),Xn=(z(jn={},i.Theme.Light,t.css(Pn||(Pn=M(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),$n,l.palette.gray.light2)),z(jn,i.Theme.Dark,t.css(On||(On=M(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),$n,l.palette.gray.dark2)),jn),Yn=t.css(Cn||(Cn=M(["\n transform: translate3d(3px, 0, 0);\n"]))),Zn=t.css(Ln||(Ln=M(["\n opacity: 0;\n transform: translate3d(-3px, 0, 0);\n transition: all 100ms ease-in;\n\n .",":hover & {\n opacity: 1;\n transform: translate3d(3px, 0, 0);\n }\n"])),$n),et=t.css(Wn||(Wn=M(["\n position: relative;\n bottom: 4px;\n left: -1px;\n height: 12px;\n"]))),nt="hover",tt="persist",at="none",rt=["children","className","arrowAppearance","hideExternalIcon","baseFontSize","darkMode","as"],ot=r.InferredPolymorphic((function(e){var o=e.children,i=e.className,l=e.arrowAppearance,s=void 0===l?at:l,c=e.hideExternalIcon,d=void 0!==c&&c,u=e.baseFontSize,f=e.darkMode,h=e.as,p=T(e,rt),m=B(n.useState(""),2),g=m[0],y=m[1];n.useEffect((function(){y(window.location.hostname)}),[]);var b,x=a.useDarkMode(f).theme,v=G(u),k=r.useInferredPolymorphic(h,p,"span").Component,N=n.useMemo((function(){if(void 0!==p.href){return/^http(s)?:\/\//.test(p.href)?new URL(p.href).hostname:g}}),[p,g]),M={target:void 0,rel:void 0};if(p.target||p.rel?(M.target=p.target,M.rel=p.rel):"a"===k&&(N===g?M.target="_self":(M.target="_blank",M.rel="noopener noreferrer")),"_blank"!==M.target||d){if(s!==at){var E;b=S.default.createElement(F.default,{role:"presentation",size:12,className:t.cx((E={},z(E,Zn,s===nt),z(E,Yn,s===tt),E))})}}else b=S.default.createElement(w.default,{role:"presentation",className:et});return S.default.createElement(k,D({className:t.cx($n,Gn,_[v],Jn,Qn[x],i)},M,p),S.default.createElement("span",{className:t.cx(Vn,Xn[x])},o),b)})),it=t.css(_n||(_n=M(["\n font-size: 12px;\n font-weight: ",";\n text-transform: uppercase;\n line-height: 20px;\n letter-spacing: 0.4px;\n"])),o.fontWeights.bold),lt=["darkMode","className","as"],st=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"div":i,s=T(e,lt),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,it,$[c],o)},s))}));st.displayName="Overline";var ct=t.css(Kn||(Kn=M(["\n font-size: 18px;\n line-height: 24px;\n font-weight: ",";\n"])),o.fontWeights.bold),dt=["darkMode","className","as"],ut=r.Polymorphic((function(e){var n=e.darkMode,o=e.className,i=e.as,l=void 0===i?"h6":i,s=T(e,dt),c=a.useDarkMode(n).theme,d=r.usePolymorphic(l).Component;return S.default.createElement(d,D({className:t.cx(U,ct,$[c],o)},s))}));ut.displayName="Subtitle";var ft,ht,pt=["as","children","maxFontWeight","pseudoElement","className"],mt=function(e){var n=e.pseudoElement,a=e.maxFontWeight,r="&:".concat(n);return t.css(ft||(ft=M(["\n /* Inherit relevant properties from the parent */\n font-weight: inherit;\n font-size: inherit;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n position: relative;\n display: inline-flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n text-decoration: none;\n min-width: 0;\n max-width: 100%;\n\n "," {\n content: attr(data-text);\n height: 0;\n font-weight: ",";\n visibility: hidden;\n overflow: hidden;\n user-select: none;\n pointer-events: none;\n }\n "])),r,a)},gt=t.css(ht||(ht=M(["\n flex: 1;\n min-width: 0;\n max-width: 100%;\n\n white-space: inherit;\n overflow: inherit;\n text-overflow: inherit;\n"])));e.Body=Q,e.Description=oe,e.Disclaimer=he,e.Error=we,e.H1=Me,e.H2=je,e.H3=Ve,e.InlineCode=un,e.InlineKeyCode=wn,e.Label=Un,e.Link=ot,e.Overline=st,e.StaticWidthText=function(e){var n=e.as,a=e.children,o=e.maxFontWeight,l=void 0===o?700:o,s=e.pseudoElement,c=void 0===s?"after":s,d=e.className,u=T(e,pt),f=i.getNodeTextContent(a);return S.default.createElement(r.Polymorph,D({className:t.cx(mt({pseudoElement:c,maxFontWeight:l}),d),as:null!=n?n:"span","data-text":f},u),S.default.createElement("span",{className:gt},a))},e.Subtitle=ut,e.anchorClassName=$n,e.bodyTypeScaleStyles=_,e.labelTypeScaleStyles=An,e.useUpdatedBaseFontSize=G})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@leafygreen-ui/typography", | ||
"version": "16.5.1", | ||
"version": "16.5.2", | ||
"description": "leafyGreen UI Kit Typography", | ||
@@ -16,3 +16,5 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"build": "../../node_modules/.bin/rollup --config ../../rollup.config.js" | ||
"build": "lg build-package", | ||
"tsc": "lg build-ts", | ||
"docs": "lg build-tsdoc" | ||
}, | ||
@@ -24,11 +26,11 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@leafygreen-ui/emotion": "^4.0.4", | ||
"@leafygreen-ui/icon": "^11.17.0", | ||
"@leafygreen-ui/lib": "^10.4.0", | ||
"@leafygreen-ui/palette": "^4.0.4", | ||
"@leafygreen-ui/polymorphic": "^1.3.2", | ||
"@leafygreen-ui/tokens": "^2.1.1" | ||
"@leafygreen-ui/emotion": "^4.0.5", | ||
"@leafygreen-ui/icon": "^11.20.1", | ||
"@leafygreen-ui/lib": "^10.4.1", | ||
"@leafygreen-ui/palette": "^4.0.5", | ||
"@leafygreen-ui/polymorphic": "^1.3.3", | ||
"@leafygreen-ui/tokens": "^2.1.2" | ||
}, | ||
"peerDependencies": { | ||
"@leafygreen-ui/leafygreen-provider": "^3.1.3" | ||
"@leafygreen-ui/leafygreen-provider": "^3.1.4" | ||
}, | ||
@@ -42,3 +44,4 @@ "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/typography", | ||
"url": "https://jira.mongodb.org/projects/PD/summary" | ||
} | ||
} | ||
}, | ||
"devDependencies": {} | ||
} |
{ | ||
"extends": "../../package.tsconfig.json", | ||
"compilerOptions": { | ||
"extends": "@lg-tools/build/config/package.tsconfig.json", | ||
"compilerOptions": { | ||
"declarationDir": "dist", | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
"rootDir": "src", | ||
"baseUrl": ".", | ||
"paths": { | ||
"@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"], | ||
"@leafygreen-ui/*": ["../*/src"] | ||
} | ||
}, | ||
@@ -11,2 +16,3 @@ "include": [ | ||
], | ||
"exclude": ["**/*.spec.*", "**/*.story.*"], | ||
"references": [ | ||
@@ -13,0 +19,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
498448
146
8556