@sproutsocial/racine 7.1.0-beta-maurice.0 → 7.2.1

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +9 -38
  3. package/__flow__/Box/styles.js +5 -5
  4. package/__flow__/ChartLegend/styles.js +6 -6
  5. package/__flow__/Checkbox/index.js +4 -1
  6. package/__flow__/Checkbox/index.stories.js +16 -0
  7. package/__flow__/Checkbox/index.test.js +33 -0
  8. package/__flow__/Table/index.js +82 -54
  9. package/__flow__/Table/index.stories.js +41 -0
  10. package/__flow__/Table/index.test.js +14 -0
  11. package/__flow__/TableCell/index.js +17 -7
  12. package/__flow__/TableCell/index.test.js +8 -1
  13. package/__flow__/TableHeaderCell/index.js +26 -11
  14. package/__flow__/TableHeaderCell/index.test.js +16 -1
  15. package/__flow__/TableRowAccordion/index.js +1 -1
  16. package/__flow__/Text/index.js +47 -3
  17. package/__flow__/Text/index.stories.js +39 -118
  18. package/__flow__/Text/index.test.js +16 -0
  19. package/__flow__/Text/styles.js +1 -0
  20. package/__flow__/utils/theme.js +0 -1
  21. package/commonjs/Checkbox/index.js +6 -6
  22. package/commonjs/Table/index.js +80 -71
  23. package/commonjs/TableCell/index.js +4 -3
  24. package/commonjs/TableHeaderCell/index.js +35 -20
  25. package/commonjs/TableRowAccordion/index.js +2 -2
  26. package/commonjs/Text/index.js +72 -3
  27. package/commonjs/Text/styles.js +3 -1
  28. package/lib/Checkbox/index.js +6 -6
  29. package/lib/Table/index.js +61 -64
  30. package/lib/TableCell/index.js +4 -3
  31. package/lib/TableHeaderCell/index.js +35 -20
  32. package/lib/TableRowAccordion/index.js +2 -2
  33. package/lib/Text/index.js +70 -3
  34. package/lib/Text/styles.js +3 -1
  35. package/package.json +4 -9
  36. package/__flow__/.DS_Store +0 -0
@@ -7,6 +7,8 @@ var React = _interopRequireWildcard(require("react"));
7
7
 
8
8
  var _styles = _interopRequireDefault(require("./styles"));
9
9
 
10
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
11
+
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
13
 
12
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -17,9 +19,69 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
17
19
 
18
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
19
21
 
20
- /**
21
- * The Text Component is used to render textual content in various presentations.
22
- */
22
+ var Headline = (0, _styledComponents.default)(_styles.default).withConfig({
23
+ displayName: "Text__Headline",
24
+ componentId: "sc-12xhmyx-0"
25
+ })(["color:", ";font-weight:", ";", ""], function (props) {
26
+ return props.theme.colors.text.headline;
27
+ }, function (props) {
28
+ return props.theme.fontWeights.bold;
29
+ }, function (props) {
30
+ return props.theme.typography[400];
31
+ });
32
+ var SubHeadline = (0, _styledComponents.default)(_styles.default).withConfig({
33
+ displayName: "Text__SubHeadline",
34
+ componentId: "sc-12xhmyx-1"
35
+ })(["color:", ";font-weight:", ";", ""], function (props) {
36
+ return props.theme.colors.text.headline;
37
+ }, function (props) {
38
+ return props.theme.fontWeights.bold;
39
+ }, function (props) {
40
+ return props.theme.typography[300];
41
+ });
42
+ var SmallSubHeadline = (0, _styledComponents.default)(_styles.default).withConfig({
43
+ displayName: "Text__SmallSubHeadline",
44
+ componentId: "sc-12xhmyx-2"
45
+ })(["color:", ";font-weight:", ";", ""], function (props) {
46
+ return props.theme.colors.text.headline;
47
+ }, function (props) {
48
+ return props.theme.fontWeights.bold;
49
+ }, function (props) {
50
+ return props.theme.typography[200];
51
+ });
52
+ var Byline = (0, _styledComponents.default)(_styles.default).withConfig({
53
+ displayName: "Text__Byline",
54
+ componentId: "sc-12xhmyx-3"
55
+ })(["color:", ";", ""], function (props) {
56
+ return props.theme.colors.text.subtext;
57
+ }, function (props) {
58
+ return props.theme.typography[200];
59
+ });
60
+ var SmallByline = (0, _styledComponents.default)(_styles.default).withConfig({
61
+ displayName: "Text__SmallByline",
62
+ componentId: "sc-12xhmyx-4"
63
+ })(["color:", ";", ""], function (props) {
64
+ return props.theme.colors.text.subtext;
65
+ }, function (props) {
66
+ return props.theme.typography[100];
67
+ });
68
+ var BodyCopy = (0, _styledComponents.default)(_styles.default).withConfig({
69
+ displayName: "Text__BodyCopy",
70
+ componentId: "sc-12xhmyx-5"
71
+ })(["color:", ";", ""], function (props) {
72
+ return props.theme.colors.text.body;
73
+ }, function (props) {
74
+ return props.theme.typography[300];
75
+ });
76
+ var SmallBodyCopy = (0, _styledComponents.default)(_styles.default).withConfig({
77
+ displayName: "Text__SmallBodyCopy",
78
+ componentId: "sc-12xhmyx-6"
79
+ })(["color:", ";", ""], function (props) {
80
+ return props.theme.colors.text.body;
81
+ }, function (props) {
82
+ return props.theme.typography[200];
83
+ });
84
+
23
85
  var Text = function Text(_ref) {
24
86
  var fontSize = _ref.fontSize,
25
87
  children = _ref.children,
@@ -37,5 +99,12 @@ var Text = function Text(_ref) {
37
99
  );
38
100
  };
39
101
 
102
+ Text.Headline = Headline;
103
+ Text.SubHeadline = SubHeadline;
104
+ Text.SmallSubHeadline = SmallSubHeadline;
105
+ Text.Byline = Byline;
106
+ Text.SmallByline = SmallByline;
107
+ Text.BodyCopy = BodyCopy;
108
+ Text.SmallBodyCopy = SmallBodyCopy;
40
109
  var _default = Text;
41
110
  exports.default = _default;
@@ -14,8 +14,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
14
14
  var Container = _styledComponents.default.span.withConfig({
15
15
  displayName: "styles__Container",
16
16
  componentId: "mmg963-0"
17
- })(["margin:0;padding-left:0;padding-right:0;font-family:", ";", " ", " ", " ", " ", ""], function (props) {
17
+ })(["margin:0;padding-left:0;padding-right:0;font-family:", ";font-style:", ";", " ", " ", " ", " ", ""], function (props) {
18
18
  return props.theme.fontFamily;
19
+ }, function (props) {
20
+ return props.isItalicized && "italic";
19
21
  }, function (props) {
20
22
  return props.truncated && (0, _styledComponents.css)(["display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"]);
21
23
  }, function (props) {
@@ -61,7 +61,9 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
61
61
  _this$props$qa = _this$props.qa,
62
62
  qa = _this$props$qa === void 0 ? {} : _this$props$qa,
63
63
  tabIndex = _this$props.tabIndex,
64
- rest = _objectWithoutPropertiesLoose(_this$props, ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex"]);
64
+ _this$props$inputProp = _this$props.inputProps,
65
+ inputProps = _this$props$inputProp === void 0 ? {} : _this$props$inputProp,
66
+ rest = _objectWithoutPropertiesLoose(_this$props, ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"]);
65
67
 
66
68
  var isPill = appearance === "pill"; // TODO: Refactor pill checkboxes to use fewer elements for performance gains
67
69
 
@@ -88,7 +90,7 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
88
90
  "data-qa-checkbox-ischecked": indeterminate ? "indeterminate" : checked === true,
89
91
  "data-qa-checkbox-isdisabled": disabled === true,
90
92
  tabIndex: tabIndex
91
- }, qa)), label && /*#__PURE__*/React.createElement(LabelText, {
93
+ }, qa, inputProps)), label && /*#__PURE__*/React.createElement(LabelText, {
92
94
  disabled: disabled
93
95
  }, label));
94
96
  }
@@ -116,13 +118,11 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
116
118
  "data-qa-checkbox-ischecked": indeterminate ? "indeterminate" : checked === true,
117
119
  "data-qa-checkbox-isdisabled": disabled === true,
118
120
  tabIndex: tabIndex
119
- }, qa)), /*#__PURE__*/React.createElement(CheckboxBox, null, /*#__PURE__*/React.createElement(CheckIcon, {
121
+ }, qa, inputProps)), /*#__PURE__*/React.createElement(CheckboxBox, null, /*#__PURE__*/React.createElement(CheckIcon, {
120
122
  name: indeterminate ? "minus" : "check",
121
123
  size: "mini",
122
124
  fixedWidth: true
123
- }))), label && !isPill && /*#__PURE__*/React.createElement(LabelText, {
124
- disabled: disabled
125
- }, label))
125
+ }))))
126
126
  );
127
127
  };
128
128
 
@@ -2,83 +2,80 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
2
2
 
3
3
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
- function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
6
-
7
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
8
-
9
5
  import * as React from "react";
10
6
  import TableCell from "../TableCell";
11
7
  import TableHeaderCell from "../TableHeaderCell";
12
8
  import Container from "./styles";
13
9
 
10
+ var renderTableRow = function renderTableRow(row) {
11
+ return /*#__PURE__*/React.createElement("tbody", {
12
+ key: row.id,
13
+ "data-qa-table-row": ""
14
+ }, /*#__PURE__*/React.createElement("tr", null, row.cells.map(function (td) {
15
+ return /*#__PURE__*/React.createElement(TableCell, _extends({}, td, {
16
+ key: td.id
17
+ }));
18
+ })));
19
+ };
14
20
  /**
15
21
  * The table component assist in rendering tablular data.
16
22
  */
17
- var Table = /*#__PURE__*/function (_React$Component) {
18
- _inheritsLoose(Table, _React$Component);
19
-
20
- function Table() {
21
- var _this;
22
-
23
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
24
- args[_key] = arguments[_key];
25
- }
26
-
27
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
28
23
 
29
- _this.renderTableRow = function (row) {
30
- return /*#__PURE__*/React.createElement("tbody", {
31
- key: row.id,
32
- "data-qa-table-row": ""
33
- }, /*#__PURE__*/React.createElement("tr", null, row.cells.map(function (td) {
34
- return /*#__PURE__*/React.createElement(TableCell, _extends({
35
- key: td.id
36
- }, td));
37
- })));
38
- };
39
24
 
40
- return _this;
25
+ export var Table = function Table(_ref) {
26
+ var _ref$head = _ref.head,
27
+ head = _ref$head === void 0 ? [] : _ref$head,
28
+ _ref$rows = _ref.rows,
29
+ rows = _ref$rows === void 0 ? [] : _ref$rows,
30
+ onSort = _ref.onSort,
31
+ sortId = _ref.sortId,
32
+ sortDirection = _ref.sortDirection,
33
+ rowRender = _ref.rowRender,
34
+ children = _ref.children,
35
+ rest = _objectWithoutPropertiesLoose(_ref, ["head", "rows", "onSort", "sortId", "sortDirection", "rowRender", "children"]);
36
+
37
+ if (children) {
38
+ return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
39
+ "data-qa-table": ""
40
+ }), children);
41
41
  }
42
42
 
43
- var _proto = Table.prototype;
44
-
45
- _proto.render = function render() {
46
- var _this2 = this;
47
-
48
- var _this$props = this.props,
49
- head = _this$props.head,
50
- rows = _this$props.rows,
51
- onSort = _this$props.onSort,
52
- sortId = _this$props.sortId,
53
- sortDirection = _this$props.sortDirection,
54
- rowRender = _this$props.rowRender,
55
- rest = _objectWithoutPropertiesLoose(_this$props, ["head", "rows", "onSort", "sortId", "sortDirection", "rowRender"]);
43
+ return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
44
+ "data-qa-table": ""
45
+ }), head.length > 0 && /*#__PURE__*/React.createElement("thead", {
46
+ "data-qa-table-header": ""
47
+ }, /*#__PURE__*/React.createElement("tr", null, head.map(function (th) {
48
+ return /*#__PURE__*/React.createElement(TableHeaderCell, _extends({}, th, {
49
+ key: th.id,
50
+ onSort: onSort,
51
+ sortId: sortId,
52
+ sortDirection: sortDirection
53
+ }));
54
+ }))), rows.map(function (row) {
55
+ return rowRender ? rowRender(row) : renderTableRow(row);
56
+ }));
57
+ };
58
+ export var TableHead = function TableHead(_ref2) {
59
+ var children = _ref2.children,
60
+ props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
56
61
 
57
- return (
58
- /*#__PURE__*/
59
- // $FlowIssue - upgrade v0.112.0
60
- React.createElement(Container, _extends({
61
- "data-qa-table": ""
62
- }, rest), head.length > 0 && /*#__PURE__*/React.createElement("thead", {
63
- "data-qa-table-header": ""
64
- }, /*#__PURE__*/React.createElement("tr", null, head.map(function (th) {
65
- return /*#__PURE__*/React.createElement(TableHeaderCell, _extends({}, th, {
66
- key: th.id,
67
- onSort: onSort,
68
- sortId: sortId,
69
- sortDirection: sortDirection
70
- }));
71
- }))), rows.map(function (row) {
72
- return rowRender ? rowRender(row) : _this2.renderTableRow(row);
73
- }))
74
- );
75
- };
62
+ return /*#__PURE__*/React.createElement("thead", props, children);
63
+ };
64
+ export var TableBody = function TableBody(_ref3) {
65
+ var children = _ref3.children,
66
+ props = _objectWithoutPropertiesLoose(_ref3, ["children"]);
76
67
 
77
- return Table;
78
- }(React.Component);
68
+ return /*#__PURE__*/React.createElement("tbody", props, children);
69
+ };
70
+ export var TableRow = function TableRow(_ref4) {
71
+ var children = _ref4.children,
72
+ props = _objectWithoutPropertiesLoose(_ref4, ["children"]);
79
73
 
80
- Table.defaultProps = {
81
- head: [],
82
- rows: []
74
+ return /*#__PURE__*/React.createElement("tr", props, children);
83
75
  };
84
- export { Table as default };
76
+ Table.TableHead = TableHead;
77
+ Table.TableBody = TableBody;
78
+ Table.TableRow = TableRow;
79
+ Table.HeaderCell = TableHeaderCell;
80
+ Table.Cell = TableCell;
81
+ export default Table;
@@ -28,15 +28,16 @@ var TableCell = /*#__PURE__*/function (_React$Component) {
28
28
  colSpan = _this$props.colSpan,
29
29
  width = _this$props.width,
30
30
  align = _this$props.align,
31
- rest = _objectWithoutPropertiesLoose(_this$props, ["id", "content", "colSpan", "width", "align"]);
31
+ children = _this$props.children,
32
+ rest = _objectWithoutPropertiesLoose(_this$props, ["id", "content", "colSpan", "width", "align", "children"]);
32
33
 
33
- return /*#__PURE__*/React.createElement(Container, _extends({
34
+ return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
34
35
  alignment: align || "left",
35
36
  key: id,
36
37
  colSpan: colSpan,
37
38
  width: width,
38
39
  "data-qa-table-cell": ""
39
- }, rest), content);
40
+ }), children || content);
40
41
  };
41
42
 
42
43
  return TableCell;
@@ -45,39 +45,54 @@ var TableHeaderCell = /*#__PURE__*/function (_React$Component) {
45
45
  }));
46
46
  };
47
47
 
48
+ _this.handleClick = function (e) {
49
+ var _this$props = _this.props,
50
+ onClick = _this$props.onClick,
51
+ onSort = _this$props.onSort,
52
+ isSortable = _this$props.isSortable,
53
+ id = _this$props.id;
54
+
55
+ if (onClick) {
56
+ onClick(e);
57
+ return;
58
+ }
59
+
60
+ if (!isSortable || !onSort) return;
61
+ onSort(id);
62
+ };
63
+
48
64
  return _this;
49
65
  }
50
66
 
51
67
  var _proto = TableHeaderCell.prototype;
52
68
 
53
69
  _proto.render = function render() {
54
- var _this$props = this.props,
55
- id = _this$props.id,
56
- content = _this$props.content,
57
- colSpan = _this$props.colSpan,
58
- width = _this$props.width,
59
- align = _this$props.align,
60
- isSortable = _this$props.isSortable,
61
- shouldTruncate = _this$props.shouldTruncate,
62
- onSort = _this$props.onSort,
63
- sortId = _this$props.sortId,
64
- sortDirection = _this$props.sortDirection,
65
- rest = _objectWithoutPropertiesLoose(_this$props, ["id", "content", "colSpan", "width", "align", "isSortable", "shouldTruncate", "onSort", "sortId", "sortDirection"]);
66
-
67
- return /*#__PURE__*/React.createElement(Container, _extends({
70
+ var _this$props2 = this.props,
71
+ id = _this$props2.id,
72
+ content = _this$props2.content,
73
+ colSpan = _this$props2.colSpan,
74
+ width = _this$props2.width,
75
+ align = _this$props2.align,
76
+ isSortable = _this$props2.isSortable,
77
+ shouldTruncate = _this$props2.shouldTruncate,
78
+ onSort = _this$props2.onSort,
79
+ sortId = _this$props2.sortId,
80
+ sortDirection = _this$props2.sortDirection,
81
+ children = _this$props2.children,
82
+ onClick = _this$props2.onClick,
83
+ rest = _objectWithoutPropertiesLoose(_this$props2, ["id", "content", "colSpan", "width", "align", "isSortable", "shouldTruncate", "onSort", "sortId", "sortDirection", "children", "onClick"]);
84
+
85
+ return /*#__PURE__*/React.createElement(Container, _extends({}, rest, {
68
86
  key: id,
69
87
  alignment: align || "left",
70
88
  sortable: isSortable,
71
89
  colSpan: colSpan,
72
90
  width: width,
73
- onClick: isSortable && onSort ? function () {
74
- return onSort(id);
75
- } : undefined,
91
+ onClick: this.handleClick,
76
92
  "data-tableheadercell-sortable": isSortable,
77
93
  "data-qa-table-header-cell": "",
78
- "data-qa-table-header-cell-sortdirection": sortDirection // $FlowIssue - upgrade v0.112.0
79
-
80
- }, rest), content, isSortable && this.getSortIcon(id === sortId));
94
+ "data-qa-table-header-cell-sortdirection": sortDirection
95
+ }), children || content, isSortable && !children && this.getSortIcon(id === sortId));
81
96
  };
82
97
 
83
98
  return TableHeaderCell;
@@ -58,9 +58,9 @@ var TableRowAccordion = /*#__PURE__*/function (_React$Component) {
58
58
  "data-tablerowaccordion-summary": true,
59
59
  onClick: this.handleToggle
60
60
  }, cells.map(function (td) {
61
- return /*#__PURE__*/React.createElement(TableCell, _extends({
61
+ return /*#__PURE__*/React.createElement(TableCell, _extends({}, td, {
62
62
  key: td.id
63
- }, td));
63
+ }));
64
64
  }), /*#__PURE__*/React.createElement(TableCell, {
65
65
  id: "tableRowAccordion_trigger",
66
66
  content: /*#__PURE__*/React.createElement(Trigger, {
package/lib/Text/index.js CHANGED
@@ -4,10 +4,70 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
4
4
 
5
5
  import * as React from "react";
6
6
  import Container from "./styles";
7
+ import styled from "styled-components";
8
+ var Headline = styled(Container).withConfig({
9
+ displayName: "Text__Headline",
10
+ componentId: "sc-12xhmyx-0"
11
+ })(["color:", ";font-weight:", ";", ""], function (props) {
12
+ return props.theme.colors.text.headline;
13
+ }, function (props) {
14
+ return props.theme.fontWeights.bold;
15
+ }, function (props) {
16
+ return props.theme.typography[400];
17
+ });
18
+ var SubHeadline = styled(Container).withConfig({
19
+ displayName: "Text__SubHeadline",
20
+ componentId: "sc-12xhmyx-1"
21
+ })(["color:", ";font-weight:", ";", ""], function (props) {
22
+ return props.theme.colors.text.headline;
23
+ }, function (props) {
24
+ return props.theme.fontWeights.bold;
25
+ }, function (props) {
26
+ return props.theme.typography[300];
27
+ });
28
+ var SmallSubHeadline = styled(Container).withConfig({
29
+ displayName: "Text__SmallSubHeadline",
30
+ componentId: "sc-12xhmyx-2"
31
+ })(["color:", ";font-weight:", ";", ""], function (props) {
32
+ return props.theme.colors.text.headline;
33
+ }, function (props) {
34
+ return props.theme.fontWeights.bold;
35
+ }, function (props) {
36
+ return props.theme.typography[200];
37
+ });
38
+ var Byline = styled(Container).withConfig({
39
+ displayName: "Text__Byline",
40
+ componentId: "sc-12xhmyx-3"
41
+ })(["color:", ";", ""], function (props) {
42
+ return props.theme.colors.text.subtext;
43
+ }, function (props) {
44
+ return props.theme.typography[200];
45
+ });
46
+ var SmallByline = styled(Container).withConfig({
47
+ displayName: "Text__SmallByline",
48
+ componentId: "sc-12xhmyx-4"
49
+ })(["color:", ";", ""], function (props) {
50
+ return props.theme.colors.text.subtext;
51
+ }, function (props) {
52
+ return props.theme.typography[100];
53
+ });
54
+ var BodyCopy = styled(Container).withConfig({
55
+ displayName: "Text__BodyCopy",
56
+ componentId: "sc-12xhmyx-5"
57
+ })(["color:", ";", ""], function (props) {
58
+ return props.theme.colors.text.body;
59
+ }, function (props) {
60
+ return props.theme.typography[300];
61
+ });
62
+ var SmallBodyCopy = styled(Container).withConfig({
63
+ displayName: "Text__SmallBodyCopy",
64
+ componentId: "sc-12xhmyx-6"
65
+ })(["color:", ";", ""], function (props) {
66
+ return props.theme.colors.text.body;
67
+ }, function (props) {
68
+ return props.theme.typography[200];
69
+ });
7
70
 
8
- /**
9
- * The Text Component is used to render textual content in various presentations.
10
- */
11
71
  var Text = function Text(_ref) {
12
72
  var fontSize = _ref.fontSize,
13
73
  children = _ref.children,
@@ -25,4 +85,11 @@ var Text = function Text(_ref) {
25
85
  );
26
86
  };
27
87
 
88
+ Text.Headline = Headline;
89
+ Text.SubHeadline = SubHeadline;
90
+ Text.SmallSubHeadline = SmallSubHeadline;
91
+ Text.Byline = Byline;
92
+ Text.SmallByline = SmallByline;
93
+ Text.BodyCopy = BodyCopy;
94
+ Text.SmallBodyCopy = SmallBodyCopy;
28
95
  export default Text;
@@ -3,8 +3,10 @@ import { COMMON, LAYOUT, TYPOGRAPHY } from "../utils/system-props";
3
3
  var Container = styled.span.withConfig({
4
4
  displayName: "styles__Container",
5
5
  componentId: "mmg963-0"
6
- })(["margin:0;padding-left:0;padding-right:0;font-family:", ";", " ", " ", " ", " ", ""], function (props) {
6
+ })(["margin:0;padding-left:0;padding-right:0;font-family:", ";font-style:", ";", " ", " ", " ", " ", ""], function (props) {
7
7
  return props.theme.fontFamily;
8
+ }, function (props) {
9
+ return props.isItalicized && "italic";
8
10
  }, function (props) {
9
11
  return props.truncated && css(["display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"]);
10
12
  }, function (props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "7.1.0-beta-maurice.0",
3
+ "version": "7.2.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",
@@ -42,17 +42,12 @@
42
42
  "test": "npm-run-all flow lint-js lint-css lint-icons jest",
43
43
  "new": "node ./bin/scaffold.js",
44
44
  "playground": "node ./bin/scaffold-playground.js && yarn start",
45
- "release": "yarn test && node ./bin/beta complete && yarn changeset publish",
45
+ "release": "yarn test && yarn changeset publish",
46
46
  "storybook": "start-storybook -c .storybook",
47
47
  "build-storybook": "build-storybook --quiet -c .storybook -o .storybook-dist",
48
48
  "icon-lint": "node bin/icon-lint/cli",
49
49
  "playroom:start": "playroom start",
50
- "playroom:build": "playroom build",
51
- "check-env": "node -e 'console.log(process.env)' | grep version",
52
- "beta:publish": "npm publish --tag beta",
53
- "beta:status": "node ./bin/beta status",
54
- "beta:release": "node ./bin/beta release",
55
- "beta:deprecate": "node ./bin/beta deprecate"
50
+ "playroom:build": "playroom build"
56
51
  },
57
52
  "lint-staged": {
58
53
  "**/*.js": [
@@ -105,6 +100,7 @@
105
100
  "@sproutsocial/seeds-space": "^0.4.7",
106
101
  "@sproutsocial/seeds-typography": "^3.0.1",
107
102
  "@storybook/addon-a11y": "^6.1.11",
103
+ "@storybook/addon-actions": "^6.3.8",
108
104
  "@storybook/addon-knobs": "^6.1.11",
109
105
  "@storybook/addon-storysource": "^6.1.11",
110
106
  "@storybook/addon-viewport": "^6.1.11",
@@ -158,7 +154,6 @@
158
154
  "react-dates": "^21.8.0",
159
155
  "react-dom": "16.12.0",
160
156
  "rimraf": "^2.6.3",
161
- "semver": "^7.3.5",
162
157
  "storybook-dark-mode": "^1.0.7",
163
158
  "styled-components": "5.0.0-rc.2",
164
159
  "stylelint": "^13.8.0",
Binary file