@leafygreen-ui/typography
Advanced tools
Comparing version 13.1.1 to 13.1.2
# @leafygreen-ui/typography | ||
## 13.1.2 | ||
### Patch Changes | ||
- e39d8469: Export `anchorClassName` | ||
- 8d7534e9: Adds `tsdoc.json` to published package files | ||
- Updated dependencies [7caa1c3e] | ||
- Updated dependencies [8d7534e9] | ||
- @leafygreen-ui/icon@11.10.2 | ||
- @leafygreen-ui/box@3.0.8 | ||
- @leafygreen-ui/leafygreen-provider@2.3.3 | ||
- @leafygreen-ui/lib@9.4.2 | ||
- @leafygreen-ui/palette@3.4.2 | ||
- @leafygreen-ui/tokens@1.3.2 | ||
## 13.1.1 | ||
@@ -4,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
import{useBaseFontSize as n,useDarkMode as e,useUsingKeyboardContext as r}from"@leafygreen-ui/leafygreen-provider";import{BaseFontSize as a,fontFamilies as o,typeScales as t,focusRing as i}from"@leafygreen-ui/tokens";import l,{useState as s,useEffect as d,useMemo as c}from"react";import f from"@leafygreen-ui/box";import{css as h,cx as u}from"@leafygreen-ui/emotion";import{Theme as g,createUniqueClassName as p}from"@leafygreen-ui/lib";import{palette as m}from"@leafygreen-ui/palette";import{jsx as y}from"@emotion/react";import b from"@leafygreen-ui/icon/dist/ArrowRight";import k from"@leafygreen-ui/icon/dist/OpenNewTab";var x,v,N,w,D,M,z,F,O,L,B,S,j,A=function(e){var r=n();return e?16===e?a.Body2:a.Body1:16===r?a.Body2:a.Body1};function H(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function I(){return I=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},I.apply(this,arguments)}function C(n,e){if(null==n)return{};var r,a,o=function(n,e){if(null==n)return{};var r,a,o={},t=Object.keys(n);for(a=0;a<t.length;a++)r=t[a],e.indexOf(r)>=0||(o[r]=n[r]);return o}(n,e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);for(a=0;a<t.length;a++)r=t[a],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}function E(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function P(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==r)return;var a,o,t=[],i=!0,l=!1;try{for(r=r.call(n);!(i=(a=r.next()).done)&&(t.push(a.value),!e||t.length!==e);i=!0);}catch(n){l=!0,o=n}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return t}(n,e)||function(n,e){if(!n)return;if("string"==typeof n)return _(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(n);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(n,e)}(n,e)||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 _(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=n[r];return a}var K,R=h(x||(x=E(["\n margin: unset;\n font-family: ",";\n color: ",";\n"])),o.default,m.black),T=(H(w={},a.Body1,h(v||(v=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.body1.fontSize,t.body1.lineHeight)),H(w,a.Body2,h(N||(N=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.body2.fontSize,t.body2.lineHeight)),w),U=(H(z={},a.Body1,h(D||(D=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.code1.fontSize,t.code1.lineHeight)),H(z,a.Body2,h(M||(M=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.code2.fontSize,t.code2.lineHeight)),z),$=(H(L={},g.Light,h(F||(F=E(["\n color: ",";\n "])),m.black)),H(L,g.Dark,h(O||(O=E(["\n color: ",";\n "])),m.gray.light2)),L),q=(H(j={},a.Body1,h(B||(B=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.body1.fontSize,t.body1.lineHeight)),H(j,a.Body2,h(S||(S=E(["\n font-size: ","px;\n line-height: 20px; // Hardcoding because it does not match body2 lineHeight\n "])),t.body2.fontSize)),j),G=["darkMode","className","weight","as"],J={default:{regular:400,medium:500},strong:{regular:700,medium:700}};function Q(n){var r=n.darkMode,a=n.className,o=n.weight,t=void 0===o?"regular":o,i=n.as,l=void 0===i?"p":i,s=C(n,G),d=e(r).theme,c=A(),g=h(K||(K=E(["\n font-weight: ",";\n strong,\n b {\n font-weight: ",";\n }\n "])),J.default[t],J.strong[t]);return y(f,I({as:l,className:u(R,T[c],$[d],g,a)},s))}Q.displayName="Body";var V,W,X,Y,Z,nn,en,rn=["darkMode","disabled","children","className"],an=h(V||(V=E(["\n font-family: ",";\n font-weight: normal;\n margin-top: 0;\n margin-bottom: 0;\n"])),o.default),on=(H(Y={},g.Light,h(W||(W=E(["\n color: ",";\n "])),m.gray.dark1)),H(Y,g.Dark,h(X||(X=E(["\n color: ",";\n "])),m.gray.light1)),Y),tn=(H(en={},g.Light,h(Z||(Z=E(["\n color: ",";\n "])),m.gray.dark1)),H(en,g.Dark,h(nn||(nn=E(["\n color: ",";\n "])),m.gray.base)),en),ln=function(n){var r=n.darkMode,a=n.disabled,o=void 0!==a&&a,t=n.children,i=n.className,l=C(n,rn),s=A(),d=e(r).theme;return y("p",I({className:u(an,on[d],q[s],H({},tn[d],o),i)},l),t)};ln.displayName="Description";var sn,dn,cn,fn,hn=["darkMode","children","className"],un=h(sn||(sn=E(["\n display: block;\n font-size: 11px;\n line-height: 16px;\n letter-spacing: 0.2px;\n"]))),gn=(H(fn={},g.Light,h(dn||(dn=E(["\n color: ",";\n "])),m.gray.dark1)),H(fn,g.Dark,h(cn||(cn=E(["\n color: ",";\n "])),m.gray.light1)),fn);function pn(n){var r=n.darkMode,a=n.children,o=n.className,t=C(n,hn),i=e(r).theme;return y("small",I({},t,{className:u(R,un,gn[i],o)}),a)}pn.displayName="Disclaimer";var mn,yn,bn,kn,xn=["darkMode","className"],vn=h(mn||(mn=E(["\n font-weight: 400;\n font-size: 48px;\n line-height: 62px;\n font-family: ",";\n"])),o.serif),Nn=(H(kn={},g.Light,h(yn||(yn=E(["\n color: ",";\n "])),m.green.dark2)),H(kn,g.Dark,h(bn||(bn=E(["\n color: ",";\n "])),m.green.light1)),kn),wn=function(n){var r=n.darkMode,a=n.className,o=C(n,xn),t=e(r).theme;return y(f,I({as:"h1",className:u(R,vn,Nn[t],a)},o))};wn.displayName="H1";var Dn,Mn,zn,Fn,On=["darkMode","className"],Ln=h(Dn||(Dn=E(["\n font-size: 32px;\n line-height: 40px;\n font-weight: 400;\n font-family: ",";\n"])),o.serif),Bn=(H(Fn={},g.Light,h(Mn||(Mn=E(["\n color: ",";\n "])),m.green.dark2)),H(Fn,g.Dark,h(zn||(zn=E(["\n color: ",";\n "])),m.green.light1)),Fn),Sn=function(n){var r=n.darkMode,a=n.className,o=C(n,On),t=e(r).theme;return y(f,I({as:"h2",className:u(R,Ln,Bn[t],a)},o))};Sn.displayName="H2";var jn,An=["darkMode","className"],Hn=h(jn||(jn=E(["\n font-size: 24px;\n line-height: 32px;\n font-weight: 500;\n"]))),In=function(n){var r=n.darkMode,a=n.className,o=C(n,An),t=e(r).theme;return y(f,I({as:"h3",className:u(R,Hn,$[t],a)},o))};In.displayName="H3";var Cn,En,Pn,_n,Kn,Rn,Tn,Un,$n,qn,Gn,Jn,Qn,Vn=["children","className","darkMode"],Wn=p(),Xn=h(Cn||(Cn=E(["\n transition: all 0.15s ease-in-out;\n border-radius: 3px;\n font-family: ",";\n line-height: 20px;\n display: inherit;\n\n .",":hover > & {\n text-decoration: none;\n }\n"])),o.code,Wn),Yn=(H(_n={},g.Light,h(En||(En=E(["\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 "])),m.gray.light3,m.gray.light2,m.gray.dark3,Wn,m.gray.light2,m.gray.light1)),H(_n,g.Dark,h(Pn||(Pn=E(["\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 "])),m.gray.dark2,m.gray.light1,Wn,m.gray.dark2,m.gray.dark1)),_n),Zn=(H(Tn={},g.Light,h(Kn||(Kn=E(["\n .",":focus > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),Wn,i[g.Light].default,m.blue.base)),H(Tn,g.Dark,h(Rn||(Rn=E(["\n .",":focus > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),Wn,i[g.Dark].default,m.blue.base)),Tn),ne=(H(qn={},g.Light,h(Un||(Un=E(["\n color: ",";\n "])),m.blue.base)),H(qn,g.Dark,h($n||($n=E(["\n color: ",";\n "])),m.blue.light1)),qn),ee=h(Gn||(Gn=E(["\n text-decoration: none;\n margin: 0;\n padding: 0;\n line-height: 20px;\n\n &:focus {\n outline: none;\n }\n"]))),re=h(Jn||(Jn=E(["\n white-space: nowrap;\n"]))),ae=h(Qn||(Qn=E(["\n white-space: normal;\n"])));function oe(n){var a,o,t,i=n.children,s=n.className,d=n.darkMode,c=C(n,Vn),f=r().usingKeyboard,h=A(),g=e(d).theme,p=(null!==(a="string"==typeof i&&(null===(o=i.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===o?void 0:o.length))&&void 0!==a?a:0)<=30?re:ae,m=void 0!==(null==c?void 0:c.href)||void 0!==c.onClick,b=y("code",{className:u(U[h],Xn,Yn[g],p,(t={},H(t,ne[g],m),H(t,Zn[g],f),t),s)},i);return m?y("a",I({className:u(Wn,ee,s)},c),b):l.cloneElement(b,c)}oe.displayName="InlineCode";var te,ie,le,se,de=["darkMode","children","className"],ce=h(te||(te=E(["\n font-family: ",";\n border: 1px solid;\n border-radius: 3px;\n padding-left: 5px;\n padding-right: 5px;\n"])),o.code),fe=(H(se={},g.Light,h(ie||(ie=E(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),m.black,m.gray.dark3,m.white)),H(se,g.Dark,h(le||(le=E(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),m.gray.light2,m.gray.base,m.gray.dark3)),se);function he(n){var r=n.darkMode,a=n.children,o=n.className,t=C(n,de),i=A(),l=e(r).theme;return y("code",I({className:u(ce,fe[l],U[i],o)},t),a)}he.displayName="InlineKeyCode";var ue,ge,pe,me,ye,be,ke,xe=["darkMode","className","children","disabled"],ve=h(ue||(ue=E(["\n font-family: ",";\n font-weight: bold;\n"])),o.default),Ne=(H(me={},g.Light,h(ge||(ge=E(["\n color: ",";\n "])),m.black)),H(me,g.Dark,h(pe||(pe=E(["\n color: ",";\n "])),m.gray.light2)),me),we=(H(ke={},g.Light,h(ye||(ye=E(["\n color: ",";\n "])),m.gray.dark1)),H(ke,g.Dark,h(be||(be=E(["\n color: ",";\n "])),m.gray.base)),ke),De=function(n){var r=n.darkMode,a=n.className,o=n.children,t=n.disabled,i=void 0!==t&&t,l=C(n,xe),s=A(),d=e(r).theme;return y("label",I({className:u(ve,Ne[d],q[s],H({},we[d],i),a)},l),o)};De.displayName="Label";var Me,ze,Fe,Oe,Le,Be,Se,je,Ae,He,Ie,Ce,Ee=["href","children","className","target","arrowAppearance","hideExternalIcon","darkMode"],Pe=p(),_e=h(Me||(Me=E(["\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.default),Ke=(H(Oe={},g.Light,h(ze||(ze=E(["\n color: ",";\n font-weight: 400;\n "])),m.blue.base)),H(Oe,g.Dark,h(Fe||(Fe=E(["\n color: ",";\n font-weight: 700;\n "])),m.blue.light1)),Oe),Re=h(Le||(Le=E(["\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"])),Pe,m.blue.light1),Te=(H(je={},g.Light,h(Be||(Be=E(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),Pe,m.gray.light2)),H(je,g.Dark,h(Se||(Se=E(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),Pe,m.gray.dark2)),je),Ue=h(Ae||(Ae=E(["\n transform: translate3d(3px, 0, 0);\n"]))),$e=h(He||(He=E(["\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"])),Pe),qe=h(Ie||(Ie=E(["\n position: relative;\n bottom: 4px;\n left: -1px;\n height: 12px;\n"]))),Ge="hover",Je="persist",Qe="none",Ve=function(n){var r=n.href,a=n.children,o=n.className,t=n.target,i=n.arrowAppearance,l=void 0===i?Qe:i,h=n.hideExternalIcon,g=void 0!==h&&h,p=n.darkMode,m=C(n,Ee),x=P(s(""),2),v=x[0],N=x[1];d((function(){N(window.location.hostname)}),[]);var w,D,M,z=e(p).theme,F=c((function(){if(r){return/^http(s)?:\/\//.test(r)?new URL(r).hostname:v}}),[r,v]),O=A();if(t?w=t:F===v?w="_self":(w="_blank",M="noopener noreferrer"),"_blank"!==w||g){if(l!==Qe){var L;D=y(b,{role:"presentation",size:12,className:u((L={},H(L,$e,l===Ge),H(L,Ue,l===Je),L))})}}else D=y(k,{role:"presentation",className:qe});var B=r?{as:"a",href:r,target:w,rel:M}:{as:"span"};return y(f,I({className:u(Pe,T[O],_e,Ke[z],o)},B,m),y("span",{className:u(Re,Te[z])},a),D)},We=["darkMode","className"],Xe=h(Ce||(Ce=E(["\n font-size: 12px;\n font-weight: 700;\n text-transform: uppercase;\n line-height: 20px;\n letter-spacing: 0.4px;\n"]))),Ye=function(n){var r=n.darkMode,a=n.className,o=C(n,We),t=e(r).theme;return y(f,I({className:u(R,Xe,$[t],a)},o))};Ye.displayName="Overline";var Ze,nr=["darkMode","className"],er=h(Ze||(Ze=E(["\n font-size: 18px;\n line-height: 24px;\n font-weight: 700;\n"]))),rr=function(n){var r=n.darkMode,a=n.className,o=C(n,nr),t=e(r).theme;return y(f,I({as:"h6",className:u(R,er,$[t],a)},o))};rr.displayName="Subtitle";export{Q as Body,ln as Description,pn as Disclaimer,wn as H1,Sn as H2,In as H3,oe as InlineCode,he as InlineKeyCode,De as Label,Ve as Link,Ye as Overline,rr as Subtitle,T as bodyTypeScaleStyles,q as labelTypeScaleStyles,A as useUpdatedBaseFontSize}; | ||
import{useBaseFontSize as n,useDarkMode as e,useUsingKeyboardContext as r}from"@leafygreen-ui/leafygreen-provider";import{BaseFontSize as a,fontFamilies as o,typeScales as t,focusRing as i}from"@leafygreen-ui/tokens";import l,{useState as s,useEffect as d,useMemo as c}from"react";import f from"@leafygreen-ui/box";import{css as h,cx as u}from"@leafygreen-ui/emotion";import{Theme as g,createUniqueClassName as p}from"@leafygreen-ui/lib";import{palette as m}from"@leafygreen-ui/palette";import{jsx as y}from"@emotion/react";import b from"@leafygreen-ui/icon/dist/ArrowRight";import k from"@leafygreen-ui/icon/dist/OpenNewTab";var x,v,N,w,D,M,z,F,O,L,B,S,j,A=function(e){var r=n();return e?16===e?a.Body2:a.Body1:16===r?a.Body2:a.Body1};function H(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function I(){return I=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},I.apply(this,arguments)}function C(n,e){if(null==n)return{};var r,a,o=function(n,e){if(null==n)return{};var r,a,o={},t=Object.keys(n);for(a=0;a<t.length;a++)r=t[a],e.indexOf(r)>=0||(o[r]=n[r]);return o}(n,e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);for(a=0;a<t.length;a++)r=t[a],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(n,r)&&(o[r]=n[r])}return o}function E(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}function P(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==r)return;var a,o,t=[],i=!0,l=!1;try{for(r=r.call(n);!(i=(a=r.next()).done)&&(t.push(a.value),!e||t.length!==e);i=!0);}catch(n){l=!0,o=n}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return t}(n,e)||function(n,e){if(!n)return;if("string"==typeof n)return _(n,e);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(n);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _(n,e)}(n,e)||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 _(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=n[r];return a}var K,R=h(x||(x=E(["\n margin: unset;\n font-family: ",";\n color: ",";\n"])),o.default,m.black),T=(H(w={},a.Body1,h(v||(v=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.body1.fontSize,t.body1.lineHeight)),H(w,a.Body2,h(N||(N=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.body2.fontSize,t.body2.lineHeight)),w),U=(H(z={},a.Body1,h(D||(D=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.code1.fontSize,t.code1.lineHeight)),H(z,a.Body2,h(M||(M=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.code2.fontSize,t.code2.lineHeight)),z),$=(H(L={},g.Light,h(F||(F=E(["\n color: ",";\n "])),m.black)),H(L,g.Dark,h(O||(O=E(["\n color: ",";\n "])),m.gray.light2)),L),q=(H(j={},a.Body1,h(B||(B=E(["\n font-size: ","px;\n line-height: ","px;\n "])),t.body1.fontSize,t.body1.lineHeight)),H(j,a.Body2,h(S||(S=E(["\n font-size: ","px;\n line-height: 20px; // Hardcoding because it does not match body2 lineHeight\n "])),t.body2.fontSize)),j),G=["darkMode","className","weight","as"],J={default:{regular:400,medium:500},strong:{regular:700,medium:700}};function Q(n){var r=n.darkMode,a=n.className,o=n.weight,t=void 0===o?"regular":o,i=n.as,l=void 0===i?"p":i,s=C(n,G),d=e(r).theme,c=A(),g=h(K||(K=E(["\n font-weight: ",";\n strong,\n b {\n font-weight: ",";\n }\n "])),J.default[t],J.strong[t]);return y(f,I({as:l,className:u(R,T[c],$[d],g,a)},s))}Q.displayName="Body";var V,W,X,Y,Z,nn,en,rn=["darkMode","disabled","children","className"],an=h(V||(V=E(["\n font-family: ",";\n font-weight: normal;\n margin-top: 0;\n margin-bottom: 0;\n"])),o.default),on=(H(Y={},g.Light,h(W||(W=E(["\n color: ",";\n "])),m.gray.dark1)),H(Y,g.Dark,h(X||(X=E(["\n color: ",";\n "])),m.gray.light1)),Y),tn=(H(en={},g.Light,h(Z||(Z=E(["\n color: ",";\n "])),m.gray.dark1)),H(en,g.Dark,h(nn||(nn=E(["\n color: ",";\n "])),m.gray.base)),en),ln=function(n){var r=n.darkMode,a=n.disabled,o=void 0!==a&&a,t=n.children,i=n.className,l=C(n,rn),s=A(),d=e(r).theme;return y("p",I({className:u(an,on[d],q[s],H({},tn[d],o),i)},l),t)};ln.displayName="Description";var sn,dn,cn,fn,hn=["darkMode","children","className"],un=h(sn||(sn=E(["\n display: block;\n font-size: 11px;\n line-height: 16px;\n letter-spacing: 0.2px;\n"]))),gn=(H(fn={},g.Light,h(dn||(dn=E(["\n color: ",";\n "])),m.gray.dark1)),H(fn,g.Dark,h(cn||(cn=E(["\n color: ",";\n "])),m.gray.light1)),fn);function pn(n){var r=n.darkMode,a=n.children,o=n.className,t=C(n,hn),i=e(r).theme;return y("small",I({},t,{className:u(R,un,gn[i],o)}),a)}pn.displayName="Disclaimer";var mn,yn,bn,kn,xn=["darkMode","className"],vn=h(mn||(mn=E(["\n font-weight: 400;\n font-size: 48px;\n line-height: 62px;\n font-family: ",";\n"])),o.serif),Nn=(H(kn={},g.Light,h(yn||(yn=E(["\n color: ",";\n "])),m.green.dark2)),H(kn,g.Dark,h(bn||(bn=E(["\n color: ",";\n "])),m.green.light1)),kn),wn=function(n){var r=n.darkMode,a=n.className,o=C(n,xn),t=e(r).theme;return y(f,I({as:"h1",className:u(R,vn,Nn[t],a)},o))};wn.displayName="H1";var Dn,Mn,zn,Fn,On=["darkMode","className"],Ln=h(Dn||(Dn=E(["\n font-size: 32px;\n line-height: 40px;\n font-weight: 400;\n font-family: ",";\n"])),o.serif),Bn=(H(Fn={},g.Light,h(Mn||(Mn=E(["\n color: ",";\n "])),m.green.dark2)),H(Fn,g.Dark,h(zn||(zn=E(["\n color: ",";\n "])),m.green.light1)),Fn),Sn=function(n){var r=n.darkMode,a=n.className,o=C(n,On),t=e(r).theme;return y(f,I({as:"h2",className:u(R,Ln,Bn[t],a)},o))};Sn.displayName="H2";var jn,An=["darkMode","className"],Hn=h(jn||(jn=E(["\n font-size: 24px;\n line-height: 32px;\n font-weight: 500;\n"]))),In=function(n){var r=n.darkMode,a=n.className,o=C(n,An),t=e(r).theme;return y(f,I({as:"h3",className:u(R,Hn,$[t],a)},o))};In.displayName="H3";var Cn,En,Pn,_n,Kn,Rn,Tn,Un,$n,qn,Gn,Jn,Qn,Vn=["children","className","darkMode"],Wn=p(),Xn=h(Cn||(Cn=E(["\n transition: all 0.15s ease-in-out;\n border-radius: 3px;\n font-family: ",";\n line-height: 20px;\n display: inherit;\n\n .",":hover > & {\n text-decoration: none;\n }\n"])),o.code,Wn),Yn=(H(_n={},g.Light,h(En||(En=E(["\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 "])),m.gray.light3,m.gray.light2,m.gray.dark3,Wn,m.gray.light2,m.gray.light1)),H(_n,g.Dark,h(Pn||(Pn=E(["\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 "])),m.gray.dark2,m.gray.light1,Wn,m.gray.dark2,m.gray.dark1)),_n),Zn=(H(Tn={},g.Light,h(Kn||(Kn=E(["\n .",":focus > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),Wn,i[g.Light].default,m.blue.base)),H(Tn,g.Dark,h(Rn||(Rn=E(["\n .",":focus > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),Wn,i[g.Dark].default,m.blue.base)),Tn),ne=(H(qn={},g.Light,h(Un||(Un=E(["\n color: ",";\n "])),m.blue.base)),H(qn,g.Dark,h($n||($n=E(["\n color: ",";\n "])),m.blue.light1)),qn),ee=h(Gn||(Gn=E(["\n text-decoration: none;\n margin: 0;\n padding: 0;\n line-height: 20px;\n\n &:focus {\n outline: none;\n }\n"]))),re=h(Jn||(Jn=E(["\n white-space: nowrap;\n"]))),ae=h(Qn||(Qn=E(["\n white-space: normal;\n"])));function oe(n){var a,o,t,i=n.children,s=n.className,d=n.darkMode,c=C(n,Vn),f=r().usingKeyboard,h=A(),g=e(d).theme,p=(null!==(a="string"==typeof i&&(null===(o=i.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===o?void 0:o.length))&&void 0!==a?a:0)<=30?re:ae,m=void 0!==(null==c?void 0:c.href)||void 0!==c.onClick,b=y("code",{className:u(U[h],Xn,Yn[g],p,(t={},H(t,ne[g],m),H(t,Zn[g],f),t),s)},i);return m?y("a",I({className:u(Wn,ee,s)},c),b):l.cloneElement(b,c)}oe.displayName="InlineCode";var te,ie,le,se,de=["darkMode","children","className"],ce=h(te||(te=E(["\n font-family: ",";\n border: 1px solid;\n border-radius: 3px;\n padding-left: 5px;\n padding-right: 5px;\n"])),o.code),fe=(H(se={},g.Light,h(ie||(ie=E(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),m.black,m.gray.dark3,m.white)),H(se,g.Dark,h(le||(le=E(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),m.gray.light2,m.gray.base,m.gray.dark3)),se);function he(n){var r=n.darkMode,a=n.children,o=n.className,t=C(n,de),i=A(),l=e(r).theme;return y("code",I({className:u(ce,fe[l],U[i],o)},t),a)}he.displayName="InlineKeyCode";var ue,ge,pe,me,ye,be,ke,xe=["darkMode","className","children","disabled"],ve=h(ue||(ue=E(["\n font-family: ",";\n font-weight: bold;\n"])),o.default),Ne=(H(me={},g.Light,h(ge||(ge=E(["\n color: ",";\n "])),m.black)),H(me,g.Dark,h(pe||(pe=E(["\n color: ",";\n "])),m.gray.light2)),me),we=(H(ke={},g.Light,h(ye||(ye=E(["\n color: ",";\n "])),m.gray.dark1)),H(ke,g.Dark,h(be||(be=E(["\n color: ",";\n "])),m.gray.base)),ke),De=function(n){var r=n.darkMode,a=n.className,o=n.children,t=n.disabled,i=void 0!==t&&t,l=C(n,xe),s=A(),d=e(r).theme;return y("label",I({className:u(ve,Ne[d],q[s],H({},we[d],i),a)},l),o)};De.displayName="Label";var Me,ze,Fe,Oe,Le,Be,Se,je,Ae,He,Ie,Ce,Ee=["href","children","className","target","arrowAppearance","hideExternalIcon","darkMode"],Pe=p(),_e=h(Me||(Me=E(["\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.default),Ke=(H(Oe={},g.Light,h(ze||(ze=E(["\n color: ",";\n font-weight: 400;\n "])),m.blue.base)),H(Oe,g.Dark,h(Fe||(Fe=E(["\n color: ",";\n font-weight: 700;\n "])),m.blue.light1)),Oe),Re=h(Le||(Le=E(["\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"])),Pe,m.blue.light1),Te=(H(je={},g.Light,h(Be||(Be=E(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),Pe,m.gray.light2)),H(je,g.Dark,h(Se||(Se=E(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),Pe,m.gray.dark2)),je),Ue=h(Ae||(Ae=E(["\n transform: translate3d(3px, 0, 0);\n"]))),$e=h(He||(He=E(["\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"])),Pe),qe=h(Ie||(Ie=E(["\n position: relative;\n bottom: 4px;\n left: -1px;\n height: 12px;\n"]))),Ge="hover",Je="persist",Qe="none",Ve=function(n){var r=n.href,a=n.children,o=n.className,t=n.target,i=n.arrowAppearance,l=void 0===i?Qe:i,h=n.hideExternalIcon,g=void 0!==h&&h,p=n.darkMode,m=C(n,Ee),x=P(s(""),2),v=x[0],N=x[1];d((function(){N(window.location.hostname)}),[]);var w,D,M,z=e(p).theme,F=c((function(){if(r){return/^http(s)?:\/\//.test(r)?new URL(r).hostname:v}}),[r,v]),O=A();if(t?w=t:F===v?w="_self":(w="_blank",M="noopener noreferrer"),"_blank"!==w||g){if(l!==Qe){var L;D=y(b,{role:"presentation",size:12,className:u((L={},H(L,$e,l===Ge),H(L,Ue,l===Je),L))})}}else D=y(k,{role:"presentation",className:qe});var B=r?{as:"a",href:r,target:w,rel:M}:{as:"span"};return y(f,I({className:u(Pe,T[O],_e,Ke[z],o)},B,m),y("span",{className:u(Re,Te[z])},a),D)},We=["darkMode","className"],Xe=h(Ce||(Ce=E(["\n font-size: 12px;\n font-weight: 700;\n text-transform: uppercase;\n line-height: 20px;\n letter-spacing: 0.4px;\n"]))),Ye=function(n){var r=n.darkMode,a=n.className,o=C(n,We),t=e(r).theme;return y(f,I({className:u(R,Xe,$[t],a)},o))};Ye.displayName="Overline";var Ze,nr=["darkMode","className"],er=h(Ze||(Ze=E(["\n font-size: 18px;\n line-height: 24px;\n font-weight: 700;\n"]))),rr=function(n){var r=n.darkMode,a=n.className,o=C(n,nr),t=e(r).theme;return y(f,I({as:"h6",className:u(R,er,$[t],a)},o))};rr.displayName="Subtitle";export{Q as Body,ln as Description,pn as Disclaimer,wn as H1,Sn as H2,In as H3,oe as InlineCode,he as InlineKeyCode,De as Label,Ve as Link,Ye as Overline,rr as Subtitle,Pe as anchorClassName,T as bodyTypeScaleStyles,q as labelTypeScaleStyles,A as useUpdatedBaseFontSize}; | ||
//# sourceMappingURL=index.js.map |
@@ -11,3 +11,3 @@ export { useUpdatedBaseFontSize } from './useUpdatedBaseFontSize'; | ||
export { default as Label } from './Label'; | ||
export { default as Link } from './Link'; | ||
export { default as Link, anchorClassName } from './Link'; | ||
export { default as Overline } from './Overline'; | ||
@@ -14,0 +14,0 @@ export { default as Subtitle } from './Subtitle'; |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@leafygreen-ui/leafygreen-provider"),require("@leafygreen-ui/tokens"),require("react"),require("@leafygreen-ui/box"),require("@leafygreen-ui/emotion"),require("@leafygreen-ui/lib"),require("@leafygreen-ui/palette"),require("@emotion/react"),require("@leafygreen-ui/icon/dist/ArrowRight"),require("@leafygreen-ui/icon/dist/OpenNewTab")):"function"==typeof define&&define.amd?define(["exports","@leafygreen-ui/leafygreen-provider","@leafygreen-ui/tokens","react","@leafygreen-ui/box","@leafygreen-ui/emotion","@leafygreen-ui/lib","@leafygreen-ui/palette","@emotion/react","@leafygreen-ui/icon/dist/ArrowRight","@leafygreen-ui/icon/dist/OpenNewTab"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/typography"]={},e["@leafygreen-ui/leafygreen-provider"],e["@leafygreen-ui/tokens"],e.React,e["@leafygreen-ui/box"],e["@leafygreen-ui/emotion"],e["@leafygreen-ui/lib"],e["@leafygreen-ui/palette"],e.react,e.ArrowRight,e.OpenNewTab)}(this,(function(e,n,t,a,r,o,s,i,l,c,d){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f,p,h,g,m,y,b,x,k,v,N,D,S,w=u(a),F=u(r),M=u(c),T=u(d),z=function(e){var a=n.useBaseFontSize();return e?16===e?t.BaseFontSize.Body2:t.BaseFontSize.Body1:16===a?t.BaseFontSize.Body2:t.BaseFontSize.Body1};function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function B(){return B=Object.assign||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},B.apply(this,arguments)}function O(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 L(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function H(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)return;var a,r,o=[],s=!0,i=!1;try{for(t=t.call(e);!(s=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);s=!0);}catch(e){i=!0,r=e}finally{try{s||null==t.return||t.return()}finally{if(i)throw r}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return q(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 q(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 q(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 A,C=o.css(f||(f=L(["\n margin: unset;\n font-family: ",";\n color: ",";\n"])),t.fontFamilies.default,i.palette.black),I=(j(g={},t.BaseFontSize.Body1,o.css(p||(p=L(["\n font-size: ","px;\n line-height: ","px;\n "])),t.typeScales.body1.fontSize,t.typeScales.body1.lineHeight)),j(g,t.BaseFontSize.Body2,o.css(h||(h=L(["\n font-size: ","px;\n line-height: ","px;\n "])),t.typeScales.body2.fontSize,t.typeScales.body2.lineHeight)),g),E=(j(b={},t.BaseFontSize.Body1,o.css(m||(m=L(["\n font-size: ","px;\n line-height: ","px;\n "])),t.typeScales.code1.fontSize,t.typeScales.code1.lineHeight)),j(b,t.BaseFontSize.Body2,o.css(y||(y=L(["\n font-size: ","px;\n line-height: ","px;\n "])),t.typeScales.code2.fontSize,t.typeScales.code2.lineHeight)),b),R=(j(v={},s.Theme.Light,o.css(x||(x=L(["\n color: ",";\n "])),i.palette.black)),j(v,s.Theme.Dark,o.css(k||(k=L(["\n color: ",";\n "])),i.palette.gray.light2)),v),P=(j(S={},t.BaseFontSize.Body1,o.css(N||(N=L(["\n font-size: ","px;\n line-height: ","px;\n "])),t.typeScales.body1.fontSize,t.typeScales.body1.lineHeight)),j(S,t.BaseFontSize.Body2,o.css(D||(D=L(["\n font-size: ","px;\n line-height: 20px; // Hardcoding because it does not match body2 lineHeight\n "])),t.typeScales.body2.fontSize)),S),U=["darkMode","className","weight","as"],_={default:{regular:400,medium:500},strong:{regular:700,medium:700}};function K(e){var t=e.darkMode,a=e.className,r=e.weight,s=void 0===r?"regular":r,i=e.as,c=void 0===i?"p":i,d=O(e,U),u=n.useDarkMode(t).theme,f=z(),p=o.css(A||(A=L(["\n font-weight: ",";\n strong,\n b {\n font-weight: ",";\n }\n "])),_.default[s],_.strong[s]);return l.jsx(F.default,B({as:c,className:o.cx(C,I[f],R[u],p,a)},d))}K.displayName="Body";var $,G,J,Q,V,W,X,Y=["darkMode","disabled","children","className"],Z=o.css($||($=L(["\n font-family: ",";\n font-weight: normal;\n margin-top: 0;\n margin-bottom: 0;\n"])),t.fontFamilies.default),ee=(j(Q={},s.Theme.Light,o.css(G||(G=L(["\n color: ",";\n "])),i.palette.gray.dark1)),j(Q,s.Theme.Dark,o.css(J||(J=L(["\n color: ",";\n "])),i.palette.gray.light1)),Q),ne=(j(X={},s.Theme.Light,o.css(V||(V=L(["\n color: ",";\n "])),i.palette.gray.dark1)),j(X,s.Theme.Dark,o.css(W||(W=L(["\n color: ",";\n "])),i.palette.gray.base)),X),te=function(e){var t=e.darkMode,a=e.disabled,r=void 0!==a&&a,s=e.children,i=e.className,c=O(e,Y),d=z(),u=n.useDarkMode(t).theme;return l.jsx("p",B({className:o.cx(Z,ee[u],P[d],j({},ne[u],r),i)},c),s)};te.displayName="Description";var ae,re,oe,se,ie=["darkMode","children","className"],le=o.css(ae||(ae=L(["\n display: block;\n font-size: 11px;\n line-height: 16px;\n letter-spacing: 0.2px;\n"]))),ce=(j(se={},s.Theme.Light,o.css(re||(re=L(["\n color: ",";\n "])),i.palette.gray.dark1)),j(se,s.Theme.Dark,o.css(oe||(oe=L(["\n color: ",";\n "])),i.palette.gray.light1)),se);function de(e){var t=e.darkMode,a=e.children,r=e.className,s=O(e,ie),i=n.useDarkMode(t).theme;return l.jsx("small",B({},s,{className:o.cx(C,le,ce[i],r)}),a)}de.displayName="Disclaimer";var ue,fe,pe,he,ge=["darkMode","className"],me=o.css(ue||(ue=L(["\n font-weight: 400;\n font-size: 48px;\n line-height: 62px;\n font-family: ",";\n"])),t.fontFamilies.serif),ye=(j(he={},s.Theme.Light,o.css(fe||(fe=L(["\n color: ",";\n "])),i.palette.green.dark2)),j(he,s.Theme.Dark,o.css(pe||(pe=L(["\n color: ",";\n "])),i.palette.green.light1)),he),be=function(e){var t=e.darkMode,a=e.className,r=O(e,ge),s=n.useDarkMode(t).theme;return l.jsx(F.default,B({as:"h1",className:o.cx(C,me,ye[s],a)},r))};be.displayName="H1";var xe,ke,ve,Ne,De=["darkMode","className"],Se=o.css(xe||(xe=L(["\n font-size: 32px;\n line-height: 40px;\n font-weight: 400;\n font-family: ",";\n"])),t.fontFamilies.serif),we=(j(Ne={},s.Theme.Light,o.css(ke||(ke=L(["\n color: ",";\n "])),i.palette.green.dark2)),j(Ne,s.Theme.Dark,o.css(ve||(ve=L(["\n color: ",";\n "])),i.palette.green.light1)),Ne),Fe=function(e){var t=e.darkMode,a=e.className,r=O(e,De),s=n.useDarkMode(t).theme;return l.jsx(F.default,B({as:"h2",className:o.cx(C,Se,we[s],a)},r))};Fe.displayName="H2";var Me,Te=["darkMode","className"],ze=o.css(Me||(Me=L(["\n font-size: 24px;\n line-height: 32px;\n font-weight: 500;\n"]))),je=function(e){var t=e.darkMode,a=e.className,r=O(e,Te),s=n.useDarkMode(t).theme;return l.jsx(F.default,B({as:"h3",className:o.cx(C,ze,R[s],a)},r))};je.displayName="H3";var Be,Oe,Le,He,qe,Ae,Ce,Ie,Ee,Re,Pe,Ue,_e,Ke=["children","className","darkMode"],$e=s.createUniqueClassName(),Ge=o.css(Be||(Be=L(["\n transition: all 0.15s ease-in-out;\n border-radius: 3px;\n font-family: ",";\n line-height: 20px;\n display: inherit;\n\n .",":hover > & {\n text-decoration: none;\n }\n"])),t.fontFamilies.code,$e),Je=(j(He={},s.Theme.Light,o.css(Oe||(Oe=L(["\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 "])),i.palette.gray.light3,i.palette.gray.light2,i.palette.gray.dark3,$e,i.palette.gray.light2,i.palette.gray.light1)),j(He,s.Theme.Dark,o.css(Le||(Le=L(["\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 "])),i.palette.gray.dark2,i.palette.gray.light1,$e,i.palette.gray.dark2,i.palette.gray.dark1)),He),Qe=(j(Ce={},s.Theme.Light,o.css(qe||(qe=L(["\n .",":focus > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),$e,t.focusRing[s.Theme.Light].default,i.palette.blue.base)),j(Ce,s.Theme.Dark,o.css(Ae||(Ae=L(["\n .",":focus > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),$e,t.focusRing[s.Theme.Dark].default,i.palette.blue.base)),Ce),Ve=(j(Re={},s.Theme.Light,o.css(Ie||(Ie=L(["\n color: ",";\n "])),i.palette.blue.base)),j(Re,s.Theme.Dark,o.css(Ee||(Ee=L(["\n color: ",";\n "])),i.palette.blue.light1)),Re),We=o.css(Pe||(Pe=L(["\n text-decoration: none;\n margin: 0;\n padding: 0;\n line-height: 20px;\n\n &:focus {\n outline: none;\n }\n"]))),Xe=o.css(Ue||(Ue=L(["\n white-space: nowrap;\n"]))),Ye=o.css(_e||(_e=L(["\n white-space: normal;\n"])));function Ze(e){var t,a,r,s=e.children,i=e.className,c=e.darkMode,d=O(e,Ke),u=n.useUsingKeyboardContext().usingKeyboard,f=z(),p=n.useDarkMode(c).theme,h=(null!==(t="string"==typeof s&&(null===(a=s.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===a?void 0:a.length))&&void 0!==t?t:0)<=30?Xe:Ye,g=void 0!==(null==d?void 0:d.href)||void 0!==d.onClick,m=l.jsx("code",{className:o.cx(E[f],Ge,Je[p],h,(r={},j(r,Ve[p],g),j(r,Qe[p],u),r),i)},s);return g?l.jsx("a",B({className:o.cx($e,We,i)},d),m):w.default.cloneElement(m,d)}Ze.displayName="InlineCode";var en,nn,tn,an,rn=["darkMode","children","className"],on=o.css(en||(en=L(["\n font-family: ",";\n border: 1px solid;\n border-radius: 3px;\n padding-left: 5px;\n padding-right: 5px;\n"])),t.fontFamilies.code),sn=(j(an={},s.Theme.Light,o.css(nn||(nn=L(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),i.palette.black,i.palette.gray.dark3,i.palette.white)),j(an,s.Theme.Dark,o.css(tn||(tn=L(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),i.palette.gray.light2,i.palette.gray.base,i.palette.gray.dark3)),an);function ln(e){var t=e.darkMode,a=e.children,r=e.className,s=O(e,rn),i=z(),c=n.useDarkMode(t).theme;return l.jsx("code",B({className:o.cx(on,sn[c],E[i],r)},s),a)}ln.displayName="InlineKeyCode";var cn,dn,un,fn,pn,hn,gn,mn=["darkMode","className","children","disabled"],yn=o.css(cn||(cn=L(["\n font-family: ",";\n font-weight: bold;\n"])),t.fontFamilies.default),bn=(j(fn={},s.Theme.Light,o.css(dn||(dn=L(["\n color: ",";\n "])),i.palette.black)),j(fn,s.Theme.Dark,o.css(un||(un=L(["\n color: ",";\n "])),i.palette.gray.light2)),fn),xn=(j(gn={},s.Theme.Light,o.css(pn||(pn=L(["\n color: ",";\n "])),i.palette.gray.dark1)),j(gn,s.Theme.Dark,o.css(hn||(hn=L(["\n color: ",";\n "])),i.palette.gray.base)),gn),kn=function(e){var t=e.darkMode,a=e.className,r=e.children,s=e.disabled,i=void 0!==s&&s,c=O(e,mn),d=z(),u=n.useDarkMode(t).theme;return l.jsx("label",B({className:o.cx(yn,bn[u],P[d],j({},xn[u],i),a)},c),r)};kn.displayName="Label";var vn,Nn,Dn,Sn,wn,Fn,Mn,Tn,zn,jn,Bn,On,Ln=["href","children","className","target","arrowAppearance","hideExternalIcon","darkMode"],Hn=s.createUniqueClassName(),qn=o.css(vn||(vn=L(["\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"])),t.fontFamilies.default),An=(j(Sn={},s.Theme.Light,o.css(Nn||(Nn=L(["\n color: ",";\n font-weight: 400;\n "])),i.palette.blue.base)),j(Sn,s.Theme.Dark,o.css(Dn||(Dn=L(["\n color: ",";\n font-weight: 700;\n "])),i.palette.blue.light1)),Sn),Cn=o.css(wn||(wn=L(["\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"])),Hn,i.palette.blue.light1),In=(j(Tn={},s.Theme.Light,o.css(Fn||(Fn=L(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),Hn,i.palette.gray.light2)),j(Tn,s.Theme.Dark,o.css(Mn||(Mn=L(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),Hn,i.palette.gray.dark2)),Tn),En=o.css(zn||(zn=L(["\n transform: translate3d(3px, 0, 0);\n"]))),Rn=o.css(jn||(jn=L(["\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"])),Hn),Pn=o.css(Bn||(Bn=L(["\n position: relative;\n bottom: 4px;\n left: -1px;\n height: 12px;\n"]))),Un="hover",_n="persist",Kn="none",$n=["darkMode","className"],Gn=o.css(On||(On=L(["\n font-size: 12px;\n font-weight: 700;\n text-transform: uppercase;\n line-height: 20px;\n letter-spacing: 0.4px;\n"]))),Jn=function(e){var t=e.darkMode,a=e.className,r=O(e,$n),s=n.useDarkMode(t).theme;return l.jsx(F.default,B({className:o.cx(C,Gn,R[s],a)},r))};Jn.displayName="Overline";var Qn,Vn=["darkMode","className"],Wn=o.css(Qn||(Qn=L(["\n font-size: 18px;\n line-height: 24px;\n font-weight: 700;\n"]))),Xn=function(e){var t=e.darkMode,a=e.className,r=O(e,Vn),s=n.useDarkMode(t).theme;return l.jsx(F.default,B({as:"h6",className:o.cx(C,Wn,R[s],a)},r))};Xn.displayName="Subtitle",e.Body=K,e.Description=te,e.Disclaimer=de,e.H1=be,e.H2=Fe,e.H3=je,e.InlineCode=Ze,e.InlineKeyCode=ln,e.Label=kn,e.Link=function(e){var t=e.href,r=e.children,s=e.className,i=e.target,c=e.arrowAppearance,d=void 0===c?Kn:c,u=e.hideExternalIcon,f=void 0!==u&&u,p=e.darkMode,h=O(e,Ln),g=H(a.useState(""),2),m=g[0],y=g[1];a.useEffect((function(){y(window.location.hostname)}),[]);var b,x,k,v=n.useDarkMode(p).theme,N=a.useMemo((function(){if(t){return/^http(s)?:\/\//.test(t)?new URL(t).hostname:m}}),[t,m]),D=z();if(i?b=i:N===m?b="_self":(b="_blank",k="noopener noreferrer"),"_blank"!==b||f){if(d!==Kn){var S;x=l.jsx(M.default,{role:"presentation",size:12,className:o.cx((S={},j(S,Rn,d===Un),j(S,En,d===_n),S))})}}else x=l.jsx(T.default,{role:"presentation",className:Pn});var w=t?{as:"a",href:t,target:b,rel:k}:{as:"span"};return l.jsx(F.default,B({className:o.cx(Hn,I[D],qn,An[v],s)},w,h),l.jsx("span",{className:o.cx(Cn,In[v])},r),x)},e.Overline=Jn,e.Subtitle=Xn,e.bodyTypeScaleStyles=I,e.labelTypeScaleStyles=P,e.useUpdatedBaseFontSize=z,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@leafygreen-ui/leafygreen-provider"),require("@leafygreen-ui/tokens"),require("react"),require("@leafygreen-ui/box"),require("@leafygreen-ui/emotion"),require("@leafygreen-ui/lib"),require("@leafygreen-ui/palette"),require("@emotion/react"),require("@leafygreen-ui/icon/dist/ArrowRight"),require("@leafygreen-ui/icon/dist/OpenNewTab")):"function"==typeof define&&define.amd?define(["exports","@leafygreen-ui/leafygreen-provider","@leafygreen-ui/tokens","react","@leafygreen-ui/box","@leafygreen-ui/emotion","@leafygreen-ui/lib","@leafygreen-ui/palette","@emotion/react","@leafygreen-ui/icon/dist/ArrowRight","@leafygreen-ui/icon/dist/OpenNewTab"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/typography"]={},e["@leafygreen-ui/leafygreen-provider"],e["@leafygreen-ui/tokens"],e.React,e["@leafygreen-ui/box"],e["@leafygreen-ui/emotion"],e["@leafygreen-ui/lib"],e["@leafygreen-ui/palette"],e.react,e.ArrowRight,e.OpenNewTab)}(this,(function(e,n,a,t,r,o,s,i,l,c,d){"use strict";function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f,p,h,g,m,y,b,x,k,v,N,D,S,w=u(t),F=u(r),M=u(c),T=u(d),z=function(e){var t=n.useBaseFontSize();return e?16===e?a.BaseFontSize.Body2:a.BaseFontSize.Body1:16===t?a.BaseFontSize.Body2:a.BaseFontSize.Body1};function j(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function B(){return B=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},B.apply(this,arguments)}function O(e,n){if(null==e)return{};var a,t,r=function(e,n){if(null==e)return{};var a,t,r={},o=Object.keys(e);for(t=0;t<o.length;t++)a=o[t],n.indexOf(a)>=0||(r[a]=e[a]);return r}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)a=o[t],n.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function L(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function C(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==a)return;var t,r,o=[],s=!0,i=!1;try{for(a=a.call(e);!(s=(t=a.next()).done)&&(o.push(t.value),!n||o.length!==n);s=!0);}catch(e){i=!0,r=e}finally{try{s||null==a.return||a.return()}finally{if(i)throw r}}return o}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return H(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return H(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 H(e,n){(null==n||n>e.length)&&(n=e.length);for(var a=0,t=new Array(n);a<n;a++)t[a]=e[a];return t}var q,A=o.css(f||(f=L(["\n margin: unset;\n font-family: ",";\n color: ",";\n"])),a.fontFamilies.default,i.palette.black),I=(j(g={},a.BaseFontSize.Body1,o.css(p||(p=L(["\n font-size: ","px;\n line-height: ","px;\n "])),a.typeScales.body1.fontSize,a.typeScales.body1.lineHeight)),j(g,a.BaseFontSize.Body2,o.css(h||(h=L(["\n font-size: ","px;\n line-height: ","px;\n "])),a.typeScales.body2.fontSize,a.typeScales.body2.lineHeight)),g),E=(j(b={},a.BaseFontSize.Body1,o.css(m||(m=L(["\n font-size: ","px;\n line-height: ","px;\n "])),a.typeScales.code1.fontSize,a.typeScales.code1.lineHeight)),j(b,a.BaseFontSize.Body2,o.css(y||(y=L(["\n font-size: ","px;\n line-height: ","px;\n "])),a.typeScales.code2.fontSize,a.typeScales.code2.lineHeight)),b),R=(j(v={},s.Theme.Light,o.css(x||(x=L(["\n color: ",";\n "])),i.palette.black)),j(v,s.Theme.Dark,o.css(k||(k=L(["\n color: ",";\n "])),i.palette.gray.light2)),v),P=(j(S={},a.BaseFontSize.Body1,o.css(N||(N=L(["\n font-size: ","px;\n line-height: ","px;\n "])),a.typeScales.body1.fontSize,a.typeScales.body1.lineHeight)),j(S,a.BaseFontSize.Body2,o.css(D||(D=L(["\n font-size: ","px;\n line-height: 20px; // Hardcoding because it does not match body2 lineHeight\n "])),a.typeScales.body2.fontSize)),S),U=["darkMode","className","weight","as"],_={default:{regular:400,medium:500},strong:{regular:700,medium:700}};function K(e){var a=e.darkMode,t=e.className,r=e.weight,s=void 0===r?"regular":r,i=e.as,c=void 0===i?"p":i,d=O(e,U),u=n.useDarkMode(a).theme,f=z(),p=o.css(q||(q=L(["\n font-weight: ",";\n strong,\n b {\n font-weight: ",";\n }\n "])),_.default[s],_.strong[s]);return l.jsx(F.default,B({as:c,className:o.cx(A,I[f],R[u],p,t)},d))}K.displayName="Body";var $,G,J,Q,V,W,X,Y=["darkMode","disabled","children","className"],Z=o.css($||($=L(["\n font-family: ",";\n font-weight: normal;\n margin-top: 0;\n margin-bottom: 0;\n"])),a.fontFamilies.default),ee=(j(Q={},s.Theme.Light,o.css(G||(G=L(["\n color: ",";\n "])),i.palette.gray.dark1)),j(Q,s.Theme.Dark,o.css(J||(J=L(["\n color: ",";\n "])),i.palette.gray.light1)),Q),ne=(j(X={},s.Theme.Light,o.css(V||(V=L(["\n color: ",";\n "])),i.palette.gray.dark1)),j(X,s.Theme.Dark,o.css(W||(W=L(["\n color: ",";\n "])),i.palette.gray.base)),X),ae=function(e){var a=e.darkMode,t=e.disabled,r=void 0!==t&&t,s=e.children,i=e.className,c=O(e,Y),d=z(),u=n.useDarkMode(a).theme;return l.jsx("p",B({className:o.cx(Z,ee[u],P[d],j({},ne[u],r),i)},c),s)};ae.displayName="Description";var te,re,oe,se,ie=["darkMode","children","className"],le=o.css(te||(te=L(["\n display: block;\n font-size: 11px;\n line-height: 16px;\n letter-spacing: 0.2px;\n"]))),ce=(j(se={},s.Theme.Light,o.css(re||(re=L(["\n color: ",";\n "])),i.palette.gray.dark1)),j(se,s.Theme.Dark,o.css(oe||(oe=L(["\n color: ",";\n "])),i.palette.gray.light1)),se);function de(e){var a=e.darkMode,t=e.children,r=e.className,s=O(e,ie),i=n.useDarkMode(a).theme;return l.jsx("small",B({},s,{className:o.cx(A,le,ce[i],r)}),t)}de.displayName="Disclaimer";var ue,fe,pe,he,ge=["darkMode","className"],me=o.css(ue||(ue=L(["\n font-weight: 400;\n font-size: 48px;\n line-height: 62px;\n font-family: ",";\n"])),a.fontFamilies.serif),ye=(j(he={},s.Theme.Light,o.css(fe||(fe=L(["\n color: ",";\n "])),i.palette.green.dark2)),j(he,s.Theme.Dark,o.css(pe||(pe=L(["\n color: ",";\n "])),i.palette.green.light1)),he),be=function(e){var a=e.darkMode,t=e.className,r=O(e,ge),s=n.useDarkMode(a).theme;return l.jsx(F.default,B({as:"h1",className:o.cx(A,me,ye[s],t)},r))};be.displayName="H1";var xe,ke,ve,Ne,De=["darkMode","className"],Se=o.css(xe||(xe=L(["\n font-size: 32px;\n line-height: 40px;\n font-weight: 400;\n font-family: ",";\n"])),a.fontFamilies.serif),we=(j(Ne={},s.Theme.Light,o.css(ke||(ke=L(["\n color: ",";\n "])),i.palette.green.dark2)),j(Ne,s.Theme.Dark,o.css(ve||(ve=L(["\n color: ",";\n "])),i.palette.green.light1)),Ne),Fe=function(e){var a=e.darkMode,t=e.className,r=O(e,De),s=n.useDarkMode(a).theme;return l.jsx(F.default,B({as:"h2",className:o.cx(A,Se,we[s],t)},r))};Fe.displayName="H2";var Me,Te=["darkMode","className"],ze=o.css(Me||(Me=L(["\n font-size: 24px;\n line-height: 32px;\n font-weight: 500;\n"]))),je=function(e){var a=e.darkMode,t=e.className,r=O(e,Te),s=n.useDarkMode(a).theme;return l.jsx(F.default,B({as:"h3",className:o.cx(A,ze,R[s],t)},r))};je.displayName="H3";var Be,Oe,Le,Ce,He,qe,Ae,Ie,Ee,Re,Pe,Ue,_e,Ke=["children","className","darkMode"],$e=s.createUniqueClassName(),Ge=o.css(Be||(Be=L(["\n transition: all 0.15s ease-in-out;\n border-radius: 3px;\n font-family: ",";\n line-height: 20px;\n display: inherit;\n\n .",":hover > & {\n text-decoration: none;\n }\n"])),a.fontFamilies.code,$e),Je=(j(Ce={},s.Theme.Light,o.css(Oe||(Oe=L(["\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 "])),i.palette.gray.light3,i.palette.gray.light2,i.palette.gray.dark3,$e,i.palette.gray.light2,i.palette.gray.light1)),j(Ce,s.Theme.Dark,o.css(Le||(Le=L(["\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 "])),i.palette.gray.dark2,i.palette.gray.light1,$e,i.palette.gray.dark2,i.palette.gray.dark1)),Ce),Qe=(j(Ae={},s.Theme.Light,o.css(He||(He=L(["\n .",":focus > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),$e,a.focusRing[s.Theme.Light].default,i.palette.blue.base)),j(Ae,s.Theme.Dark,o.css(qe||(qe=L(["\n .",":focus > & {\n box-shadow: ",";\n border: 1px solid ",";\n }\n "])),$e,a.focusRing[s.Theme.Dark].default,i.palette.blue.base)),Ae),Ve=(j(Re={},s.Theme.Light,o.css(Ie||(Ie=L(["\n color: ",";\n "])),i.palette.blue.base)),j(Re,s.Theme.Dark,o.css(Ee||(Ee=L(["\n color: ",";\n "])),i.palette.blue.light1)),Re),We=o.css(Pe||(Pe=L(["\n text-decoration: none;\n margin: 0;\n padding: 0;\n line-height: 20px;\n\n &:focus {\n outline: none;\n }\n"]))),Xe=o.css(Ue||(Ue=L(["\n white-space: nowrap;\n"]))),Ye=o.css(_e||(_e=L(["\n white-space: normal;\n"])));function Ze(e){var a,t,r,s=e.children,i=e.className,c=e.darkMode,d=O(e,Ke),u=n.useUsingKeyboardContext().usingKeyboard,f=z(),p=n.useDarkMode(c).theme,h=(null!==(a="string"==typeof s&&(null===(t=s.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===t?void 0:t.length))&&void 0!==a?a:0)<=30?Xe:Ye,g=void 0!==(null==d?void 0:d.href)||void 0!==d.onClick,m=l.jsx("code",{className:o.cx(E[f],Ge,Je[p],h,(r={},j(r,Ve[p],g),j(r,Qe[p],u),r),i)},s);return g?l.jsx("a",B({className:o.cx($e,We,i)},d),m):w.default.cloneElement(m,d)}Ze.displayName="InlineCode";var en,nn,an,tn,rn=["darkMode","children","className"],on=o.css(en||(en=L(["\n font-family: ",";\n border: 1px solid;\n border-radius: 3px;\n padding-left: 5px;\n padding-right: 5px;\n"])),a.fontFamilies.code),sn=(j(tn={},s.Theme.Light,o.css(nn||(nn=L(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),i.palette.black,i.palette.gray.dark3,i.palette.white)),j(tn,s.Theme.Dark,o.css(an||(an=L(["\n color: ",";\n border-color: ",";\n background-color: ",";\n "])),i.palette.gray.light2,i.palette.gray.base,i.palette.gray.dark3)),tn);function ln(e){var a=e.darkMode,t=e.children,r=e.className,s=O(e,rn),i=z(),c=n.useDarkMode(a).theme;return l.jsx("code",B({className:o.cx(on,sn[c],E[i],r)},s),t)}ln.displayName="InlineKeyCode";var cn,dn,un,fn,pn,hn,gn,mn=["darkMode","className","children","disabled"],yn=o.css(cn||(cn=L(["\n font-family: ",";\n font-weight: bold;\n"])),a.fontFamilies.default),bn=(j(fn={},s.Theme.Light,o.css(dn||(dn=L(["\n color: ",";\n "])),i.palette.black)),j(fn,s.Theme.Dark,o.css(un||(un=L(["\n color: ",";\n "])),i.palette.gray.light2)),fn),xn=(j(gn={},s.Theme.Light,o.css(pn||(pn=L(["\n color: ",";\n "])),i.palette.gray.dark1)),j(gn,s.Theme.Dark,o.css(hn||(hn=L(["\n color: ",";\n "])),i.palette.gray.base)),gn),kn=function(e){var a=e.darkMode,t=e.className,r=e.children,s=e.disabled,i=void 0!==s&&s,c=O(e,mn),d=z(),u=n.useDarkMode(a).theme;return l.jsx("label",B({className:o.cx(yn,bn[u],P[d],j({},xn[u],i),t)},c),r)};kn.displayName="Label";var vn,Nn,Dn,Sn,wn,Fn,Mn,Tn,zn,jn,Bn,On,Ln=["href","children","className","target","arrowAppearance","hideExternalIcon","darkMode"],Cn=s.createUniqueClassName(),Hn=o.css(vn||(vn=L(["\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"])),a.fontFamilies.default),qn=(j(Sn={},s.Theme.Light,o.css(Nn||(Nn=L(["\n color: ",";\n font-weight: 400;\n "])),i.palette.blue.base)),j(Sn,s.Theme.Dark,o.css(Dn||(Dn=L(["\n color: ",";\n font-weight: 700;\n "])),i.palette.blue.light1)),Sn),An=o.css(wn||(wn=L(["\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"])),Cn,i.palette.blue.light1),In=(j(Tn={},s.Theme.Light,o.css(Fn||(Fn=L(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),Cn,i.palette.gray.light2)),j(Tn,s.Theme.Dark,o.css(Mn||(Mn=L(["\n .",":hover & {\n &::after {\n background-color: ",";\n }\n }\n "])),Cn,i.palette.gray.dark2)),Tn),En=o.css(zn||(zn=L(["\n transform: translate3d(3px, 0, 0);\n"]))),Rn=o.css(jn||(jn=L(["\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"])),Cn),Pn=o.css(Bn||(Bn=L(["\n position: relative;\n bottom: 4px;\n left: -1px;\n height: 12px;\n"]))),Un="hover",_n="persist",Kn="none",$n=["darkMode","className"],Gn=o.css(On||(On=L(["\n font-size: 12px;\n font-weight: 700;\n text-transform: uppercase;\n line-height: 20px;\n letter-spacing: 0.4px;\n"]))),Jn=function(e){var a=e.darkMode,t=e.className,r=O(e,$n),s=n.useDarkMode(a).theme;return l.jsx(F.default,B({className:o.cx(A,Gn,R[s],t)},r))};Jn.displayName="Overline";var Qn,Vn=["darkMode","className"],Wn=o.css(Qn||(Qn=L(["\n font-size: 18px;\n line-height: 24px;\n font-weight: 700;\n"]))),Xn=function(e){var a=e.darkMode,t=e.className,r=O(e,Vn),s=n.useDarkMode(a).theme;return l.jsx(F.default,B({as:"h6",className:o.cx(A,Wn,R[s],t)},r))};Xn.displayName="Subtitle",e.Body=K,e.Description=ae,e.Disclaimer=de,e.H1=be,e.H2=Fe,e.H3=je,e.InlineCode=Ze,e.InlineKeyCode=ln,e.Label=kn,e.Link=function(e){var a=e.href,r=e.children,s=e.className,i=e.target,c=e.arrowAppearance,d=void 0===c?Kn:c,u=e.hideExternalIcon,f=void 0!==u&&u,p=e.darkMode,h=O(e,Ln),g=C(t.useState(""),2),m=g[0],y=g[1];t.useEffect((function(){y(window.location.hostname)}),[]);var b,x,k,v=n.useDarkMode(p).theme,N=t.useMemo((function(){if(a){return/^http(s)?:\/\//.test(a)?new URL(a).hostname:m}}),[a,m]),D=z();if(i?b=i:N===m?b="_self":(b="_blank",k="noopener noreferrer"),"_blank"!==b||f){if(d!==Kn){var S;x=l.jsx(M.default,{role:"presentation",size:12,className:o.cx((S={},j(S,Rn,d===Un),j(S,En,d===_n),S))})}}else x=l.jsx(T.default,{role:"presentation",className:Pn});var w=a?{as:"a",href:a,target:b,rel:k}:{as:"span"};return l.jsx(F.default,B({className:o.cx(Cn,I[D],Hn,qn[v],s)},w,h),l.jsx("span",{className:o.cx(An,In[v])},r),x)},e.Overline=Jn,e.Subtitle=Xn,e.anchorClassName=Cn,e.bodyTypeScaleStyles=I,e.labelTypeScaleStyles=P,e.useUpdatedBaseFontSize=z,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.js.map |
import { ExtendableBox } from '@leafygreen-ui/box'; | ||
import { HTMLElementProps } from '@leafygreen-ui/lib'; | ||
import { CommonTypographyProps } from './types'; | ||
export declare const anchorClassName: string; | ||
declare const ArrowAppearance: { | ||
@@ -5,0 +6,0 @@ readonly Hover: "hover"; |
{ | ||
"name": "@leafygreen-ui/typography", | ||
"version": "13.1.1", | ||
"version": "13.1.2", | ||
"description": "leafyGreen UI Kit Typography", | ||
@@ -23,10 +23,10 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"@leafygreen-ui/lib": "^9.4.0", | ||
"@leafygreen-ui/palette": "^3.4.0", | ||
"@leafygreen-ui/box": "^3.0.7", | ||
"@leafygreen-ui/icon": "^11.9.0", | ||
"@leafygreen-ui/tokens": "^1.3.1" | ||
"@leafygreen-ui/lib": "^9.4.2", | ||
"@leafygreen-ui/palette": "^3.4.2", | ||
"@leafygreen-ui/box": "^3.0.8", | ||
"@leafygreen-ui/icon": "^11.10.2", | ||
"@leafygreen-ui/tokens": "^1.3.2" | ||
}, | ||
"peerDependencies": { | ||
"@leafygreen-ui/leafygreen-provider": "^2.3.0" | ||
"@leafygreen-ui/leafygreen-provider": "^2.3.3" | ||
}, | ||
@@ -33,0 +33,0 @@ "homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/typography", |
@@ -11,5 +11,5 @@ export { useUpdatedBaseFontSize } from './useUpdatedBaseFontSize'; | ||
export { default as Label } from './Label'; | ||
export { default as Link } from './Link'; | ||
export { default as Link, anchorClassName } from './Link'; | ||
export { default as Overline } from './Overline'; | ||
export { default as Subtitle } from './Subtitle'; | ||
export { bodyTypeScaleStyles, labelTypeScaleStyles } from './styles'; |
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
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
220079
1476
Updated@leafygreen-ui/box@^3.0.8
Updated@leafygreen-ui/icon@^11.10.2
Updated@leafygreen-ui/lib@^9.4.2
Updated@leafygreen-ui/tokens@^1.3.2