@sproutsocial/racine 8.0.0-beta-dark-mode.10 → 8.2.0-link-styles-beta.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/CHANGELOG.md +19 -0
- package/__flow__/Button/index.stories.js +2 -2
- package/__flow__/EnumIconNames.js +1 -1
- package/__flow__/IconViewBoxes.js +1 -1
- package/__flow__/Link/constants.js +3 -3
- package/__flow__/Link/styles.js +2 -1
- package/__flow__/Message/index.js +2 -2
- package/__flow__/Modal/index.js +12 -10
- package/commonjs/IconViewBoxes.js +2 -0
- package/commonjs/Link/constants.js +2 -2
- package/commonjs/Link/styles.js +2 -2
- package/commonjs/Message/index.js +2 -2
- package/commonjs/Modal/index.js +6 -6
- package/commonjs/include-icons.js +1 -1
- package/dist/iconList.js +1 -1
- package/dist/icons.svg +1 -1
- package/icons/add-variable.svg +3 -0
- package/icons/extreme-negative-sentiment.svg +2 -2
- package/icons/fb-reactions-angry.svg +2 -2
- package/icons/fb-reactions-sad.svg +2 -2
- package/icons/fb-reactions-wow.svg +2 -2
- package/icons/gears.svg +2 -2
- package/icons/messenger.svg +1 -1
- package/icons/show-navigation.svg +3 -0
- package/icons/tripadvisor-circle.svg +2 -2
- package/icons/whatsapp.svg +4 -4
- package/icons/yelp.svg +2 -2
- package/includeIcons.js +1 -1
- package/lib/IconViewBoxes.js +2 -0
- package/lib/Link/constants.js +3 -3
- package/lib/Link/styles.js +3 -3
- package/lib/Message/index.js +2 -2
- package/lib/Modal/index.js +6 -6
- package/lib/include-icons.js +1 -1
- package/package.json +2 -2
package/lib/IconViewBoxes.js
CHANGED
|
@@ -3,6 +3,7 @@ module.exports = {
|
|
|
3
3
|
"add-item": "0 0 16 16",
|
|
4
4
|
"add-keyword": "0 0 16 16",
|
|
5
5
|
"add-team-member": "0 0 18 13",
|
|
6
|
+
"add-variable": "0 0 18 14",
|
|
6
7
|
"address-card-solid": "0 0 18 16",
|
|
7
8
|
"adobe-experience-manager": "0 0 16 18",
|
|
8
9
|
"ads": "0 0 9 16",
|
|
@@ -275,6 +276,7 @@ module.exports = {
|
|
|
275
276
|
"sent-message": "0 0 16 14",
|
|
276
277
|
"share": "0 0 16 14",
|
|
277
278
|
"shopify": "0 0 16 18",
|
|
279
|
+
"show-navigation": "0 0 18 14",
|
|
278
280
|
"slack": "0 0 16 16",
|
|
279
281
|
"small-density": "0 0 16 16",
|
|
280
282
|
"smiley": "0 0 16 16",
|
package/lib/Link/constants.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { COLOR_BLUE_900 } from "@sproutsocial/seeds-color";
|
|
2
2
|
var defaultLink = {
|
|
3
|
-
color: "
|
|
4
|
-
hoverColor:
|
|
3
|
+
color: "link",
|
|
4
|
+
hoverColor: "link.hover",
|
|
5
5
|
activeColor: COLOR_BLUE_900,
|
|
6
6
|
fontWeight: "semibold"
|
|
7
7
|
};
|
package/lib/Link/styles.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
2
|
import { focusRing, disabled } from "../utils/mixins";
|
|
3
3
|
import Text from "../Text";
|
|
4
|
-
import { TYPOGRAPHY, COMMON } from "../utils/system-props";
|
|
4
|
+
import { TYPOGRAPHY, COMMON, FLEXBOX } 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:", ";text-decoration:", ";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:", ";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.underline ? "underline" : "none";
|
|
@@ -23,5 +23,5 @@ var Container = styled(Text).withConfig({
|
|
|
23
23
|
return !props.href && css(["background:none;"]);
|
|
24
24
|
}, function (props) {
|
|
25
25
|
return props.disabled && disabled;
|
|
26
|
-
}, COMMON, TYPOGRAPHY);
|
|
26
|
+
}, COMMON, TYPOGRAPHY, FLEXBOX);
|
|
27
27
|
export default Container;
|
package/lib/Message/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var avatarSizeMap = function avatarSizeMap(density) {
|
|
|
36
36
|
var MessageContext = /*#__PURE__*/React.createContext({
|
|
37
37
|
density: MESSAGE_DENSITIES.SMALL,
|
|
38
38
|
borderColor: "container.border.base",
|
|
39
|
-
bg: "background.
|
|
39
|
+
bg: "container.background.base",
|
|
40
40
|
indentContent: true
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -47,7 +47,7 @@ var Message = function Message(_ref) {
|
|
|
47
47
|
_ref$borderColor = _ref.borderColor,
|
|
48
48
|
borderColor = _ref$borderColor === void 0 ? "container.border.base" : _ref$borderColor,
|
|
49
49
|
_ref$bg = _ref.bg,
|
|
50
|
-
bg = _ref$bg === void 0 ? "background.
|
|
50
|
+
bg = _ref$bg === void 0 ? "container.background.base" : _ref$bg,
|
|
51
51
|
_ref$indentContent = _ref.indentContent,
|
|
52
52
|
indentContent = _ref$indentContent === void 0 ? true : _ref$indentContent,
|
|
53
53
|
innerRef = _ref.innerRef,
|
package/lib/Modal/index.js
CHANGED
|
@@ -66,11 +66,10 @@ var ModalFooter = function ModalFooter(props) {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
ModalFooter.defaultProps = {
|
|
69
|
-
bg: "background.
|
|
69
|
+
bg: "container.background.base"
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
var ModalContent = function ModalContent(_ref) {
|
|
71
|
+
var ModalContent = /*#__PURE__*/React.forwardRef( // $FlowIssue - upgrade v0.112.0
|
|
72
|
+
function (_ref, ref) {
|
|
74
73
|
var children = _ref.children,
|
|
75
74
|
rest = _objectWithoutPropertiesLoose(_ref, ["children"]);
|
|
76
75
|
|
|
@@ -79,9 +78,10 @@ var ModalContent = function ModalContent(_ref) {
|
|
|
79
78
|
|
|
80
79
|
return /*#__PURE__*/React.createElement(Content, _extends({
|
|
81
80
|
"data-qa-modal": true,
|
|
82
|
-
"data-qa-label": label
|
|
81
|
+
"data-qa-label": label,
|
|
82
|
+
ref: ref
|
|
83
83
|
}, rest), children);
|
|
84
|
-
};
|
|
84
|
+
});
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* The modal you want
|