@primer/components 0.0.0-2021103213523 → 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 +12 -5
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +12 -5
- package/dist/browser.umd.js.map +1 -1
- package/lib/Popover.d.ts +5 -4
- package/lib/Popover.js +5 -4
- package/lib/SubNav.d.ts +5 -11
- package/lib/SubNav.js +7 -12
- package/lib-esm/Popover.d.ts +5 -4
- package/lib-esm/Popover.js +5 -4
- 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
@@ -1308,8 +1308,12 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1308
1308
|
position: ${e=>e.relative?"relative":"absolute"};
|
1309
1309
|
z-index: 100;
|
1310
1310
|
display: ${e=>e.open?"block":"none"};
|
1311
|
+
|
1312
|
+
${It};
|
1313
|
+
${Lt};
|
1314
|
+
${Ot};
|
1311
1315
|
${rr};
|
1312
|
-
`,Vi=f
|
1316
|
+
`,Vi=f(or)`
|
1313
1317
|
border: 1px solid ${Nt("colors.border.default")};
|
1314
1318
|
border-radius: ${Nt("radii.2")};
|
1315
1319
|
position: relative;
|
@@ -1319,6 +1323,9 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1319
1323
|
padding: ${Nt("space.4")};
|
1320
1324
|
background-color: ${Nt("colors.canvas.overlay")};
|
1321
1325
|
|
1326
|
+
${It};
|
1327
|
+
${Lt};
|
1328
|
+
|
1322
1329
|
// Carets
|
1323
1330
|
&::before,
|
1324
1331
|
&::after {
|
@@ -1713,10 +1720,11 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1713
1720
|
align-self: center;
|
1714
1721
|
}
|
1715
1722
|
|
1716
|
-
${It};
|
1717
|
-
${Mt};
|
1718
1723
|
${rr};
|
1719
|
-
`;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)})))`
|
1720
1728
|
padding-left: ${Nt("space.3")};
|
1721
1729
|
padding-right: ${Nt("space.3")};
|
1722
1730
|
font-weight: ${Nt("fontWeights.semibold")};
|
@@ -1763,7 +1771,6 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1763
1771
|
}
|
1764
1772
|
}
|
1765
1773
|
|
1766
|
-
${It};
|
1767
1774
|
${rr};
|
1768
1775
|
`;dd.displayName="SubNav.Link",ld.displayName="SubNav.Links";var sd=Object.assign(id,{Link:dd,Links:ld});const cd=f.div`
|
1769
1776
|
margin-top: 0;
|