carbon-react 127.0.0 → 127.0.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.
@@ -1,3 +1,3 @@
1
1
  import { CommonInputProps } from "./input.component";
2
- declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "readOnly" | "inputBorderRadius">, never>;
2
+ declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "inputBorderRadius">, never>;
3
3
  export default StyledInput;
@@ -31,7 +31,7 @@ const StyledInput = styled.input`
31
31
  `}
32
32
 
33
33
  &::placeholder {
34
- color: var(--colorsUtilityYin030);
34
+ color: var(--colorsUtilityYin055);
35
35
  }
36
36
 
37
37
  ${({
@@ -40,11 +40,5 @@ const StyledInput = styled.input`
40
40
  color: var(--colorsUtilityYin030);
41
41
  cursor: not-allowed;
42
42
  `}
43
-
44
- ${({
45
- readOnly
46
- }) => readOnly && css`
47
- color: var(--colorsActionMinorYin090);
48
- `}
49
43
  `;
50
44
  export default StyledInput;
@@ -1,3 +1,4 @@
1
+ import { configure } from "@testing-library/react";
1
2
  import { enableFetchMocks } from "jest-fetch-mock";
2
3
  import { setupMatchMediaMock } from "./mock-match-media";
3
4
  import setupResizeObserverMock from "./mock-resize-observer";
@@ -5,4 +6,7 @@ import setupScrollToMock from "./mock-element-scrollto";
5
6
  enableFetchMocks();
6
7
  setupResizeObserverMock();
7
8
  setupMatchMediaMock();
8
- setupScrollToMock();
9
+ setupScrollToMock();
10
+ configure({
11
+ testIdAttribute: "data-role" /** Configure React Testing Library *ByTestId queries to use data-role tag */
12
+ });
@@ -23,7 +23,7 @@ const DropTarget = ({
23
23
  }
24
24
  });
25
25
  return /*#__PURE__*/React.createElement(StyledFlatTableBodyDraggable, _extends({
26
- "data-testid": "flat-table-body-draggable",
26
+ "data-role": "flat-table-body-draggable",
27
27
  ref: drop,
28
28
  isDragging: isDragging
29
29
  }, rest), children);
@@ -1,3 +1,3 @@
1
1
  import { CommonInputProps } from "./input.component";
2
- declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "readOnly" | "inputBorderRadius">, never>;
2
+ declare const StyledInput: import("styled-components").StyledComponent<"input", any, Pick<CommonInputProps, "disabled" | "align" | "inputBorderRadius">, never>;
3
3
  export default StyledInput;
@@ -39,7 +39,7 @@ const StyledInput = _styledComponents.default.input`
39
39
  `}
40
40
 
41
41
  &::placeholder {
42
- color: var(--colorsUtilityYin030);
42
+ color: var(--colorsUtilityYin055);
43
43
  }
44
44
 
45
45
  ${({
@@ -48,11 +48,5 @@ const StyledInput = _styledComponents.default.input`
48
48
  color: var(--colorsUtilityYin030);
49
49
  cursor: not-allowed;
50
50
  `}
51
-
52
- ${({
53
- readOnly
54
- }) => readOnly && (0, _styledComponents.css)`
55
- color: var(--colorsActionMinorYin090);
56
- `}
57
51
  `;
58
52
  var _default = exports.default = StyledInput;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _react = require("@testing-library/react");
3
4
  var _jestFetchMock = require("jest-fetch-mock");
4
5
  var _mockMatchMedia = require("./mock-match-media");
5
6
  var _mockResizeObserver = _interopRequireDefault(require("./mock-resize-observer"));
@@ -8,4 +9,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
8
9
  (0, _jestFetchMock.enableFetchMocks)();
9
10
  (0, _mockResizeObserver.default)();
10
11
  (0, _mockMatchMedia.setupMatchMediaMock)();
11
- (0, _mockElementScrollto.default)();
12
+ (0, _mockElementScrollto.default)();
13
+ (0, _react.configure)({
14
+ testIdAttribute: "data-role" /** Configure React Testing Library *ByTestId queries to use data-role tag */
15
+ });
@@ -32,7 +32,7 @@ const DropTarget = ({
32
32
  }
33
33
  });
34
34
  return /*#__PURE__*/_react.default.createElement(_flatTableBodyDraggable.default, _extends({
35
- "data-testid": "flat-table-body-draggable",
35
+ "data-role": "flat-table-body-draggable",
36
36
  ref: drop,
37
37
  isDragging: isDragging
38
38
  }, rest), children);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "127.0.0",
3
+ "version": "127.0.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",