@primer/components 0.0.0-2021103221155 → 0.0.0-2021103221942
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 +2 -2
- package/dist/browser.esm.js +5 -4
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +5 -4
- package/dist/browser.umd.js.map +1 -1
- package/lib/StateLabel.d.ts +2 -1
- package/lib/StateLabel.js +1 -1
- package/lib/SubNav.d.ts +5 -11
- package/lib/SubNav.js +7 -12
- package/lib-esm/StateLabel.d.ts +2 -1
- package/lib-esm/StateLabel.js +2 -2
- package/lib-esm/SubNav.d.ts +5 -11
- package/lib-esm/SubNav.js +8 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# @primer/components
|
2
2
|
|
3
|
-
## 0.0.0-
|
3
|
+
## 0.0.0-2021103221942
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
7
|
-
- [#
|
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.
|
8
8
|
|
9
9
|
### Minor Changes
|
10
10
|
|
package/dist/browser.esm.js
CHANGED
@@ -1697,6 +1697,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1697
1697
|
border-radius: ${Nt("radii.3")};
|
1698
1698
|
${td};
|
1699
1699
|
${rd};
|
1700
|
+
${It};
|
1700
1701
|
${rr};
|
1701
1702
|
`;function ad({children:t,status:r,variant:o,...a}){const n="small"===o?{width:"1em"}:{};return e.createElement(od,Pt({},a,{variant:o,status:r}),r&&e.createElement(Lo,Pt({mr:1},n,{icon:ed[r]||go})),t)}ad.displayName="StateLabel",ad.defaultProps={variant:"normal"};const nd=f.nav`
|
1702
1703
|
display: flex;
|
@@ -1719,10 +1720,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1719
1720
|
align-self: center;
|
1720
1721
|
}
|
1721
1722
|
|
1722
|
-
${It};
|
1723
|
-
${Mt};
|
1724
1723
|
${rr};
|
1725
|
-
`;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))}
|
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
1728
|
padding-left: ${Nt("space.3")};
|
1727
1729
|
padding-right: ${Nt("space.3")};
|
1728
1730
|
font-weight: ${Nt("fontWeights.semibold")};
|
@@ -1769,7 +1771,6 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1769
1771
|
}
|
1770
1772
|
}
|
1771
1773
|
|
1772
|
-
${It};
|
1773
1774
|
${rr};
|
1774
1775
|
`;dd.displayName="SubNav.Link",ld.displayName="SubNav.Links";var sd=Object.assign(id,{Link:dd,Links:ld});const cd=f.div`
|
1775
1776
|
margin-top: 0;
|