@primer/components 0.0.0-2021103222654 → 0.0.0-2021103224924

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1775,6 +1775,7 @@
1775
1775
  `;ad.displayName="SubNav.Link",rd.displayName="SubNav.Links";var od=Object.assign(td,{Link:ad,Links:rd});const nd=i.default.div`
1776
1776
  margin-top: 0;
1777
1777
  border-bottom: 1px solid ${xt("colors.border.default")};
1778
+ ${yt}
1778
1779
  ${Kt}
1779
1780
  `,id=i.default.nav`
1780
1781
  display: flex;
@@ -1804,6 +1805,7 @@
1804
1805
  background-color: ${xt("colors.canvas.default")};
1805
1806
  }
1806
1807
 
1808
+ ${yt};
1807
1809
  ${Kt};
1808
1810
  `;dd.displayName="TabNav.Link";var sd=Object.assign(ld,{Link:dd}),cd=$(U,C,E,S,z,I,O,P,N,G,ae,oe,ne),fd=new RegExp("^("+cd.propNames.join("|")+")$");const ud={small:"16px",medium:"20px",large:"24px",extralarge:"32px"},gd="medium",pd=({as:e="span",onClick:t,onFocus:r,tabIndex:a=-1})=>Boolean(r||t||a>-1||["a","button"].includes(e)),bd=re({prop:"size",variants:{small:{fontSize:0,height:ud.small,lineHeight:ud.small,paddingLeft:1,paddingRight:1,paddingTop:0,paddingBottom:0},medium:{fontSize:0,height:ud.medium,lineHeight:ud.medium,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},large:{fontSize:0,height:ud.large,lineHeight:ud.large,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},extralarge:{fontSize:1,height:ud.extralarge,lineHeight:ud.extralarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),md=i.default.span.attrs((({text:e,onRemove:t,onKeyDown:r})=>({onKeyDown:e=>{r&&r(e),"Backspace"!==e.key&&"Delete"!==e.key||!t||t()},"aria-label":t?`${e}, press backspace or delete to remove`:void 0})))`
1809
1811
  align-items: center;
@@ -2215,7 +2217,6 @@
2215
2217
  align-self: center;
2216
2218
  }
2217
2219
 
2218
- ${yt};
2219
2220
  ${Kt};
2220
2221
  `;function ls({actions:e,className:t,align:r,children:a,full:o,label:i,theme:l,...d}){const s=Xo(t,"UnderlineNav",r&&`UnderlineNav--${r}`,o&&"UnderlineNav--full");return n.default.createElement(is,Tt({className:s,"aria-label":i,theme:l},d),n.default.createElement("div",{className:"UnderlineNav-body"},a),e&&n.default.createElement("div",{className:"UnderlineNav-actions"},e))}ls.displayName="UnderlineNav";const ds=i.default.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:Xo("UnderlineNav-item",e.selected&&"selected",e.className)})))`
2221
2222
  padding: ${xt("space.3")} ${xt("space.2")};
@@ -2248,7 +2249,6 @@
2248
2249
  }
2249
2250
  }
2250
2251
 
2251
- ${yt};
2252
2252
  ${Kt};
2253
2253
  `;ds.displayName="UnderlineNav.Link";var ss=Object.assign(ls,{Link:ds});e.Absolute=ar,e.ActionList=Mo,e.ActionMenu=Vo,e.Autocomplete=cn,e.Avatar=un,e.AvatarPair=bn,e.AvatarStack=vn,e.AvatarToken=as,e.BaseStyles=zt,e.BorderBox=Yt,e.Box=qt,e.BranchName=xn,e.Breadcrumb=Sn,e.Breadcrumbs=$n,e.Button=jr,e.ButtonClose=ca,e.ButtonDanger=Ur,e.ButtonGroup=Vr,e.ButtonInvisible=Xr,e.ButtonOutline=Kr,e.ButtonPrimary=qr,e.ButtonTableList=Yr,e.Caret=An,e.CircleBadge=Mn,e.CircleOcticon=Pn,e.ConfirmationDialog=uo,e.CounterLabel=Hn,e.Details=Wn,e.Dialog=Yn,e.Dropdown=oi,e.DropdownButton=ni,e.DropdownMenu=ii,e.FilterList=ui,e.FilteredSearch=li,e.Fixed=or,e.Flash=bi,e.Flex=Zt,e.FormGroup=vi,e.Grid=er,e.Header=Bi,e.Heading=$i,e.IssueLabelToken=es,e.Label=zi,e.LabelGroup=Si,e.Link=Ni,e.Overlay=Fo,e.Pagehead=Ai,e.Pagination=Mi,e.PointerBox=Di,e.Popover=_i,e.Position=rr,e.ProgressBar=Vi,e.Relative=nr,e.SSRProvider=function(e){let r=t.useContext(Pa),a=t.useMemo((()=>({prefix:r===Ma?"":r.prefix+"-"+ ++r.current,current:0})),[r]);return n.default.createElement(Pa.Provider,{value:a},e.children)},e.SelectMenu=_l,e.SideNav=ql,e.Spinner=vl,e.StateLabel=Ql,e.Sticky=ir,e.StyledOcticon=Ca,e.SubNav=od,e.TabNav=sd,e.Text=jn,e.TextInput=en,e.TextInputWithTokens=Nd,e.ThemeProvider=Vt,e.Timeline=Pd,e.Token=Ed,e.Tooltip=ns,e.Truncate=vo,e.UnderlineNav=ss,e.theme=d,e.themeGet=xt,e.useColorSchemeVar=Ut,e.useConfirm=function(){const{theme:e,colorMode:r,dayScheme:a,nightScheme:o}=jt();return t.useCallback((t=>async function(e,t){const{content:r,...a}=t;return new Promise((t=>{const o=document.createElement("div");l.default.render(n.default.createElement(_t,e,n.default.createElement(uo,Tt({},a,{onClose:e=>{l.default.unmountComponentAtNode(o),t("confirm"===e)}}),r)),o)}))}({theme:e,colorMode:r,dayScheme:a,nightScheme:o},t)),[e,r,a,o])},e.useDetails=lr,e.useOnEscapePress=xr,e.useOnOutsideClick=ur,e.useOpenAndCloseFocus=mr,e.useOverlay=wr,e.useSSRSafeId=Da,e.useSafeTimeout=function(){const e=t.useRef(new Set),r=t.useCallback(((t,r,...a)=>{const o=window.setTimeout(t,r,...a);return e.current.add(o),o}),[]),a=t.useCallback((t=>{clearTimeout(t),e.current.delete(t)}),[]);return t.useEffect((()=>()=>{for(const t of e.current)clearTimeout(t)}),[]),{safeSetTimeout:r,safeClearTimeout:a}},e.useTheme=jt,Object.defineProperty(e,"__esModule",{value:!0})}));
2254
2254
  //# sourceMappingURL=browser.umd.js.map