@primer/components 0.0.0-2021103221942 → 0.0.0-2021103222654

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.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @primer/components
2
2
 
3
- ## 0.0.0-2021103221942
3
+ ## 0.0.0-2021103222654
4
4
 
5
5
  ### Major Changes
6
6
 
7
- - [#1574](https://github.com/primer/react/pull/1574) [`a49dbdde`](https://github.com/primer/react/commit/a49dbddef70c3f0477a22d158f0e8d6d1fee02a0) Thanks [@jfuchs](https://github.com/jfuchs)! - SubNav no longer accepts styled-system props. Please use the `sx` prop to extend Primer component styling instead. See also https://primer.style/react/overriding-styles for information about `sx` and https://primer.style/react/system-props for context on the removal.
7
+ - [#1575](https://github.com/primer/react/pull/1575) [`aae36ea0`](https://github.com/primer/react/commit/aae36ea0da11e912cc3269298fe77991ba2c2e64) Thanks [@jfuchs](https://github.com/jfuchs)! - TabNav no longer accepts styled-system props. Please use the `sx` prop to extend Primer component styling instead. See also https://primer.style/react/overriding-styles for information about `sx` and https://primer.style/react/system-props for context on the removal.
8
8
 
9
9
  ### Minor Changes
10
10
 
@@ -1720,11 +1720,10 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
1720
1720
  align-self: center;
1721
1721
  }
1722
1722
 
1723
+ ${It};
1724
+ ${Mt};
1723
1725
  ${rr};
1724
- `;function id({actions:t,className:r,children:o,label:a,...n}){const i=en(r,"SubNav");return e.createElement(nd,Pt({className:i,"aria-label":a},n),e.createElement("div",{className:"SubNav-body"},o),t&&e.createElement("div",{className:"SubNav-actions"},t))}id.displayName="SubNav";const ld=f.div`
1725
- display: flex;
1726
- ${rr};
1727
- `,dd=f.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:en("SubNav-item",e.selected&&"selected",e.className)})))`
1726
+ `;function id({actions:t,className:r,children:o,label:a,...n}){const i=en(r,"SubNav");return e.createElement(nd,Pt({className:i,"aria-label":a},n),e.createElement("div",{className:"SubNav-body"},o),t&&e.createElement("div",{className:"SubNav-actions"},t))}function ld(t){return e.createElement(or,Pt({display:"flex"},t))}id.displayName="SubNav",ld.displayName="SubNavLinks";const dd=f.a.attrs((e=>({activeClassName:"string"==typeof e.to?"selected":"",className:en("SubNav-item",e.selected&&"selected",e.className)})))`
1728
1727
  padding-left: ${Nt("space.3")};
1729
1728
  padding-right: ${Nt("space.3")};
1730
1729
  font-weight: ${Nt("fontWeights.semibold")};
@@ -1771,11 +1770,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
1771
1770
  }
1772
1771
  }
1773
1772
 
1773
+ ${It};
1774
1774
  ${rr};
1775
1775
  `;dd.displayName="SubNav.Link",ld.displayName="SubNav.Links";var sd=Object.assign(id,{Link:dd,Links:ld});const cd=f.div`
1776
1776
  margin-top: 0;
1777
1777
  border-bottom: 1px solid ${Nt("colors.border.default")};
1778
- ${It}
1779
1778
  ${rr}
1780
1779
  `,fd=f.nav`
1781
1780
  display: flex;
@@ -1805,7 +1804,6 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
1805
1804
  background-color: ${Nt("colors.canvas.default")};
1806
1805
  }
1807
1806
 
1808
- ${It};
1809
1807
  ${rr};
1810
1808
  `;ud.displayName="TabNav.Link";var pd=Object.assign(gd,{Link:ud}),bd=O(te,D,H,M,W,U,V,q,_,re,pe,be,me),md=new RegExp("^("+bd.propNames.join("|")+")$");const hd={small:"16px",medium:"20px",large:"24px",extralarge:"32px"},vd=({as:e="span",onClick:t,onFocus:r,tabIndex:o=-1})=>Boolean(r||t||o>-1||["a","button"].includes(e)),xd=ue({prop:"size",variants:{small:{fontSize:0,height:hd.small,lineHeight:hd.small,paddingLeft:1,paddingRight:1,paddingTop:0,paddingBottom:0},medium:{fontSize:0,height:hd.medium,lineHeight:hd.medium,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},large:{fontSize:0,height:hd.large,lineHeight:hd.large,paddingLeft:2,paddingRight:2,paddingTop:0,paddingBottom:0},extralarge:{fontSize:1,height:hd.extralarge,lineHeight:hd.extralarge,paddingLeft:3,paddingRight:3,paddingTop:0,paddingBottom:0}}}),yd=f.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})))`
1811
1809
  align-items: center;