@sproutsocial/racine 7.4.1 → 7.5.0

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/lib/Link/index.js CHANGED
@@ -12,9 +12,10 @@ var Link = function Link(_ref) {
12
12
  disabled = _ref.disabled,
13
13
  onClick = _ref.onClick,
14
14
  as = _ref.as,
15
+ underline = _ref.underline,
15
16
  _ref$qa = _ref.qa,
16
17
  qa = _ref$qa === void 0 ? {} : _ref$qa,
17
- rest = _objectWithoutPropertiesLoose(_ref, ["href", "external", "children", "disabled", "onClick", "as", "qa"]);
18
+ rest = _objectWithoutPropertiesLoose(_ref, ["href", "external", "children", "disabled", "onClick", "as", "underline", "qa"]);
18
19
 
19
20
  if (!href && external) {
20
21
  console.warn("Warning: external prop cannot be set without a href declaration");
@@ -30,6 +31,7 @@ var Link = function Link(_ref) {
30
31
  "aria-disabled": disabled ? disabled : undefined,
31
32
  disabled: disabled,
32
33
  onClick: onClick,
34
+ underline: underline,
33
35
  "data-qa-link": "",
34
36
  "data-qa-link-isdisabled": disabled === true
35
37
  }, qa, rest), children);
@@ -5,12 +5,14 @@ import { TYPOGRAPHY, COMMON } from "../utils/system-props";
5
5
  var Container = styled(Text).withConfig({
6
6
  displayName: "styles__Container",
7
7
  componentId: "adcw4a-0"
8
- })(["border:0;font-family:", ";transition:all ", " ", ";text-decoration:none;appearance:none;cursor:pointer;", " font-weight:", ";color:", ";&:hover{color:", ";text-decoration:underline;}&:active{color:", ";}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", ""], function (props) {
8
+ })(["border:0;font-family:", ";transition:all ", " ", ";text-decoration:", ";appearance:none;cursor:pointer;", " font-weight:", ";color:", ";&:hover{color:", ";text-decoration:underline;}&:active{color:", ";}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", ""], function (props) {
9
9
  return props.theme.fontFamily;
10
10
  }, function (props) {
11
11
  return props.theme.duration.fast;
12
12
  }, function (props) {
13
13
  return props.theme.easing.ease_inout;
14
+ }, function (props) {
15
+ return props.underline ? "underline" : "none";
14
16
  }, function (props) {
15
17
  return props.disabled && css(["opacity:0.4;cursor:not-allowed;"]);
16
18
  }, function (props) {