@sproutsocial/racine 12.4.0 → 12.6.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.
@@ -1,4 +1,4 @@
1
- var _excluded = ["id", "value", "name", "label", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"];
1
+ var _excluded = ["id", "value", "name", "label", "labelProps", "checked", "disabled", "indeterminate", "onChange", "ariaLabel", "appearance", "qa", "tabIndex", "inputProps"];
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
 
@@ -53,6 +53,7 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
53
53
  value = _this$props.value,
54
54
  name = _this$props.name,
55
55
  label = _this$props.label,
56
+ labelProps = _this$props.labelProps,
56
57
  checked = _this$props.checked,
57
58
  disabled = _this$props.disabled,
58
59
  indeterminate = _this$props.indeterminate,
@@ -92,9 +93,9 @@ var Checkbox = /*#__PURE__*/function (_React$Component) {
92
93
  "data-qa-checkbox-ischecked": indeterminate ? "indeterminate" : checked === true,
93
94
  "data-qa-checkbox-isdisabled": disabled === true,
94
95
  tabIndex: tabIndex
95
- }, qa, inputProps)), label && /*#__PURE__*/React.createElement(LabelText, {
96
+ }, qa, inputProps)), label && /*#__PURE__*/React.createElement(LabelText, _extends({}, labelProps, {
96
97
  disabled: disabled
97
- }, label));
98
+ }), label));
98
99
  }
99
100
 
100
101
  return (
@@ -1,10 +1,25 @@
1
+ var _excluded = ["partnerName", "backgroundType", "height", "width"];
2
+
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
+
5
+ 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; }
6
+
1
7
  import React from "react";
2
8
  import logoViewBoxes from "../LogoViewBoxes";
3
9
  import { useTheme } from "styled-components";
10
+ import styled from "styled-components";
11
+ import { COMMON, FLEXBOX } from "../utils/system-props";
12
+ var StyledSVG = styled.svg.withConfig({
13
+ displayName: "PartnerLogo__StyledSVG",
14
+ componentId: "sc-ivi11w-0"
15
+ })(["", ";", ""], FLEXBOX, COMMON);
4
16
 
5
17
  var PartnerLogo = function PartnerLogo(_ref) {
6
18
  var partnerName = _ref.partnerName,
7
- backgroundType = _ref.backgroundType;
19
+ backgroundType = _ref.backgroundType,
20
+ height = _ref.height,
21
+ width = _ref.width,
22
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
8
23
 
9
24
  var _useTheme = useTheme(),
10
25
  mode = _useTheme.mode;
@@ -22,10 +37,16 @@ var PartnerLogo = function PartnerLogo(_ref) {
22
37
  };
23
38
 
24
39
  var logoViewBox = logoViewBoxes[whichLogo(backgroundType)];
25
- return /*#__PURE__*/React.createElement("svg", {
40
+ var viewBoxCoordinates = (logoViewBox == null ? void 0 : logoViewBox.split(" ")) || [];
41
+ var defaultWidth = viewBoxCoordinates[2];
42
+ var defaultHeight = viewBoxCoordinates[3];
43
+ return /*#__PURE__*/React.createElement(StyledSVG, _extends({
44
+ width: width ? width : defaultWidth,
45
+ height: height ? height : defaultHeight,
26
46
  viewBox: logoViewBox,
27
- focusable: false
28
- }, /*#__PURE__*/React.createElement("use", {
47
+ focusable: false // $FlowIssue - upgrade v0.112.0
48
+
49
+ }, rest), /*#__PURE__*/React.createElement("use", {
29
50
  xmlnsXlink: "http://www.w3.org/1999/xlink",
30
51
  xlinkHref: "#sslogosvg-" + whichLogo(backgroundType)
31
52
  }));
@@ -30,7 +30,7 @@ export var red = {
30
30
  foreground: COLORS.COLOR_RED_100
31
31
  };
32
32
  export var neutral = {
33
- background: COLORS.COLOR_NEUTRAL_900,
33
+ background: COLORS.COLOR_NEUTRAL_1000,
34
34
  highlight: COLORS.COLOR_NEUTRAL_500,
35
35
  foreground: COLORS.COLOR_NEUTRAL_100
36
36
  };
@@ -16,7 +16,7 @@ export var navigation = {
16
16
  },
17
17
  settings: {
18
18
  listItem: {
19
- backgound: {
19
+ background: {
20
20
  base: "transparent",
21
21
  hover: baseDarkTheme.colors.neutral[1100],
22
22
  selected: baseDarkTheme.colors.neutral[800]
@@ -16,7 +16,7 @@ export var navigation = {
16
16
  },
17
17
  settings: {
18
18
  listItem: {
19
- backgound: {
19
+ background: {
20
20
  base: "transparent",
21
21
  hover: baseLightTheme.colors.neutral[200],
22
22
  selected: baseLightTheme.colors.neutral[0]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "12.4.0",
3
+ "version": "12.6.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",
@@ -12,8 +12,7 @@
12
12
  "CHANGELOG.md"
13
13
  ],
14
14
  "bin": {
15
- "racine-codemod": "bin/racine-codemod.js",
16
- "build-npm": "bin/buildNpm.js"
15
+ "racine-codemod": "bin/racine-codemod.js"
17
16
  },
18
17
  "main": "commonjs/index.js",
19
18
  "module": "lib/index.js",
@@ -143,7 +142,7 @@
143
142
  "jscodeshift": "^0.6.4",
144
143
  "json-to-scss": "^1.6.2",
145
144
  "lint-staged": "^10.2.11",
146
- "moment": "^2.29.1",
145
+ "moment": "^2.29.4",
147
146
  "npm-run-all": "^4.1.2",
148
147
  "outdent": "^0.7.0",
149
148
  "pify": "^4.0.1",
@@ -173,7 +172,7 @@
173
172
  "@sproutsocial/seeds-networkcolor": ">=2.2.0",
174
173
  "@sproutsocial/seeds-space": ">=0.4.0",
175
174
  "@sproutsocial/seeds-typography": ">=2.0.0",
176
- "moment": "^2.29.1",
175
+ "moment": "^2.29.4",
177
176
  "prop-types": "^15.0.0",
178
177
  "react": "^16.2.0",
179
178
  "react-dates": "^21.8.0",
@@ -182,7 +181,10 @@
182
181
  },
183
182
  "resolutions": {
184
183
  "lodash": "^4.17.21",
185
- "react-popper/create-react-context": "^0.3.0"
184
+ "react-popper/create-react-context": "^0.3.0",
185
+ "glob-parent": "^5.1.2",
186
+ "trim": "^0.0.3",
187
+ "trim-newlines": "^3.0.1"
186
188
  },
187
189
  "jest": {
188
190
  "testEnvironment": "jsdom",