@primer/components 0.0.0-2021103231153 → 0.0.0-2021103231920
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 +3 -5
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +3 -5
- package/dist/browser.umd.js.map +1 -1
- package/lib/Label.d.ts +2 -1
- package/lib/Label.js +3 -2
- package/lib/Link.d.ts +1 -2
- package/lib/Link.js +1 -1
- package/lib/SideNav.d.ts +2 -2
- package/lib-esm/Label.d.ts +2 -1
- package/lib-esm/Label.js +4 -3
- package/lib-esm/Link.d.ts +1 -2
- package/lib-esm/Link.js +2 -2
- package/lib-esm/SideNav.d.ts +2 -2
- 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-2021103231920
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
7
|
-
- [#
|
7
|
+
- [#1566](https://github.com/primer/react/pull/1566) [`11526537`](https://github.com/primer/react/commit/11526537ad579dcd4317bf8ced739defec6b066e) Thanks [@jfuchs](https://github.com/jfuchs)! - Link 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
@@ -1155,22 +1155,22 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1155
1155
|
margin-right: 0;
|
1156
1156
|
}
|
1157
1157
|
${rr};
|
1158
|
-
`;const Ii=p(["margin-top:-1px;margin-bottom:-1px;color:",";border:"," solid ",";box-shadow:none;",";background-color:transparent;"],Nt("colors.fg.muted"),Nt("borderWidths.1"),Nt("colors.border.default"),ct),Ai=ue({variants:{small:{fontSize:0,lineHeight:"16px",padding:"0px 8px"},medium:{fontSize:0,lineHeight:"20px",padding:"0 8px"},large:{fontSize:0,lineHeight:"24px",padding:"0 12px"},xl:{fontSize:1,lineHeight:"16px",padding:"8px 12px"}}}),Ri=f.span`
|
1158
|
+
`;const Ii=p(["margin-top:-1px;margin-bottom:-1px;color:",";border:"," solid ",";box-shadow:none;",";",";background-color:transparent;"],Nt("colors.fg.muted"),Nt("borderWidths.1"),Nt("colors.border.default"),ct,It),Ai=ue({variants:{small:{fontSize:0,lineHeight:"16px",padding:"0px 8px"},medium:{fontSize:0,lineHeight:"20px",padding:"0 8px"},large:{fontSize:0,lineHeight:"24px",padding:"0 12px"},xl:{fontSize:1,lineHeight:"16px",padding:"8px 12px"}}}),Ri=f.span`
|
1159
1159
|
display: inline-block;
|
1160
1160
|
font-weight: ${Nt("fontWeights.semibold")};
|
1161
1161
|
color: ${Nt("colors.fg.onEmphasis")};
|
1162
1162
|
border-radius: ${Nt("radii.3")};
|
1163
|
-
background-color: ${Nt("colors.neutral.emphasis")};
|
1164
1163
|
|
1165
1164
|
&:hover {
|
1166
1165
|
text-decoration: none;
|
1167
1166
|
}
|
1168
1167
|
|
1169
1168
|
${Ai}
|
1169
|
+
${It}
|
1170
1170
|
${e=>e.dropshadow?"box-shadow: inset 0 -1px 0 rgba(27, 31, 35, 0.12)":""}
|
1171
1171
|
${e=>e.outline?Ii:""} // must be last to override other values
|
1172
1172
|
${rr}
|
1173
|
-
`;Ri.defaultProps={variant:"medium"};var Li=Ri;const Oi=L({hoverColor:{property:"color",scale:"colors"}});var Mi=f.a`
|
1173
|
+
`;Ri.defaultProps={bg:"neutral.emphasis",variant:"medium"};var Li=Ri;const Oi=L({hoverColor:{property:"color",scale:"colors"}});var Mi=f.a`
|
1174
1174
|
color: ${e=>e.muted?Nt("colors.fg.muted")(e):Nt("colors.accent.fg")(e)};
|
1175
1175
|
text-decoration: ${e=>e.underline?"underline":"none"};
|
1176
1176
|
&:hover {
|
@@ -1188,8 +1188,6 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1188
1188
|
border: 0;
|
1189
1189
|
appearance: none;
|
1190
1190
|
}
|
1191
|
-
${At};
|
1192
|
-
${It};
|
1193
1191
|
${rr};
|
1194
1192
|
`;var Pi=f.div`
|
1195
1193
|
position: relative;
|