carbon-react 142.3.0 → 142.3.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.
@@ -118,7 +118,10 @@ const StyledMenuItemWrapper = styled.a.attrs({
118
118
  }
119
119
 
120
120
  ${!maxWidth && css`
121
- :has([data-component="icon"]):not(:has(button)) ${StyledContent} {
121
+ a:has([data-component="icon"]):not(:has(button))
122
+ ${StyledContent},
123
+ button:has([data-component="icon"]):not(:has(button))
124
+ ${StyledContent} {
122
125
  position: relative;
123
126
  top: -2px;
124
127
  }
@@ -25,10 +25,6 @@ export const Note = ({
25
25
  ...rest
26
26
  }) => {
27
27
  !(width > 0) ? process.env.NODE_ENV !== "production" ? invariant(false, "<Note> width must be greater than 0") : invariant(false) : void 0;
28
- !createdDate ? process.env.NODE_ENV !== "production" ? invariant(false, "<Note> createdDate is required") : invariant(false) : void 0;
29
- !noteContent ? process.env.NODE_ENV !== "production" ? invariant(false, "<Note> noteContent is required") : invariant(false) : void 0;
30
- !(!status || status.text) ? process.env.NODE_ENV !== "production" ? invariant(false, "<Note> status.text is required") : invariant(false) : void 0;
31
- !(!status || status.timeStamp) ? process.env.NODE_ENV !== "production" ? invariant(false, "<Note> status.timeStamp is required") : invariant(false) : void 0;
32
28
  !(!inlineControl || /*#__PURE__*/React.isValidElement(inlineControl) && inlineControl.type === ActionPopover) ? process.env.NODE_ENV !== "production" ? invariant(false, "<Note> inlineControl must be an instance of <ActionPopover>") : invariant(false) : void 0;
33
29
  const renderStatus = () => {
34
30
  if (!status) {
@@ -127,7 +127,10 @@ const StyledMenuItemWrapper = _styledComponents.default.a.attrs({
127
127
  }
128
128
 
129
129
  ${!maxWidth && (0, _styledComponents.css)`
130
- :has([data-component="icon"]):not(:has(button)) ${_link.StyledContent} {
130
+ a:has([data-component="icon"]):not(:has(button))
131
+ ${_link.StyledContent},
132
+ button:has([data-component="icon"]):not(:has(button))
133
+ ${_link.StyledContent} {
131
134
  position: relative;
132
135
  top: -2px;
133
136
  }
@@ -32,10 +32,6 @@ const Note = ({
32
32
  ...rest
33
33
  }) => {
34
34
  !(width > 0) ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> width must be greater than 0") : (0, _invariant.default)(false) : void 0;
35
- !createdDate ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> createdDate is required") : (0, _invariant.default)(false) : void 0;
36
- !noteContent ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> noteContent is required") : (0, _invariant.default)(false) : void 0;
37
- !(!status || status.text) ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> status.text is required") : (0, _invariant.default)(false) : void 0;
38
- !(!status || status.timeStamp) ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> status.timeStamp is required") : (0, _invariant.default)(false) : void 0;
39
35
  !(!inlineControl || /*#__PURE__*/_react.default.isValidElement(inlineControl) && inlineControl.type === _actionPopover.ActionPopover) ? process.env.NODE_ENV !== "production" ? (0, _invariant.default)(false, "<Note> inlineControl must be an instance of <ActionPopover>") : (0, _invariant.default)(false) : void 0;
40
36
  const renderStatus = () => {
41
37
  if (!status) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "142.3.0",
3
+ "version": "142.3.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",