carbon-react 104.10.2 → 104.11.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.
@@ -109,7 +109,10 @@ const FlatTableBodyDraggable = ({
109
109
  };
110
110
 
111
111
  FlatTableBodyDraggable.propTypes = {
112
+ /** Callback fired when order is changed */
112
113
  getOrder: _propTypes.default.func,
114
+
115
+ /** Array of FlatTableRow. */
113
116
  children: _propTypes.default.node.isRequired
114
117
  };
115
118
  var _default = FlatTableBodyDraggable;
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.StyledButtonIcon = exports.StyledSearchButton = exports.default = void 0;
7
7
 
8
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
-
10
8
  var _styledSystem = require("styled-system");
11
9
 
10
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
+
12
12
  var _inputIconToggle = _interopRequireDefault(require("../../__internal__/input-icon-toggle/input-icon-toggle.style"));
13
13
 
14
14
  var _inputPresentation = _interopRequireDefault(require("../../__internal__/input/input-presentation.style"));
@@ -40,7 +40,7 @@ const StyledSearch = _styledComponents.default.div`
40
40
  variant
41
41
  }) => {
42
42
  const darkVariant = variant === "dark";
43
- const variantColor = darkVariant ? `${theme.search.darkVariantBorder}` : `${theme.search.passive}`;
43
+ const variantColor = darkVariant ? "var(--colorsUtilityMajor200)" : "var(--colorsUtilityMajor300)";
44
44
  const iconColor = darkVariant && (searchHasValue && isFocused || !searchHasValue && isFocused || !isFocused && searchHasValue && showSearchButton);
45
45
  return (0, _styledComponents.css)`
46
46
  ${_styledSystem.margin}
@@ -52,52 +52,53 @@ const StyledSearch = _styledComponents.default.div`
52
52
  font-size: 14px;
53
53
  font-weight: 700;
54
54
  :hover {
55
- border-bottom-color: ${theme.search.active};
55
+ border-bottom-color: ${darkVariant ? "var(--colorsUtilityMajor100)" : "var(--colorsUtilityMajor400)"};
56
56
  cursor: pointer;
57
57
  }
58
58
  ${(isFocused || searchHasValue) && (0, _styledComponents.css)`
59
59
  border-color: transparent;
60
60
  transition: background 0.2s ease;
61
- color: ${theme.icon.defaultHover};
62
61
  :hover {
63
62
  border-color: transparent;
64
63
  }
65
64
  `}
66
65
  ${isFocused && !searchIsActive && (0, _styledComponents.css)`
67
66
  border-color: transparent;
68
- color: ${theme.icon.defaultHover};
69
67
  `}
70
68
  ${!isFocused && searchHasValue && !showSearchButton && (0, _styledComponents.css)`
71
69
  border-bottom: 2px solid ${variantColor};
72
70
  :hover {
73
- border-bottom-color: ${theme.search.active};
71
+ border-bottom-color: var(--colorsUtilityMajor400);
74
72
  cursor: pointer;
75
73
  }
76
74
  `}
77
75
 
78
76
  ${_input.default} {
77
+ ::-moz-placeholder {
78
+ color: var(--colorsUtilityYin055);
79
+ opacity: 1;
80
+ }
81
+ ::placeholder {
82
+ color: var(--colorsUtilityYin055);
83
+ }
84
+
79
85
  ${darkVariant && !isFocused && (0, _styledComponents.css)`
80
86
  ::-moz-placeholder {
81
- color: ${theme.search.darkVariantPlaceholder};
87
+ color: var(--colorsUtilityMajor200);
82
88
  opacity: 1;
83
89
  }
84
90
  ::placeholder {
85
- color: ${theme.search.darkVariantPlaceholder};
91
+ color: var(--colorsUtilityMajor200);
86
92
  }
87
93
  `}
88
94
 
89
- ${darkVariant && (0, _styledComponents.css)`
90
- ${!isFocused && searchHasValue && !showSearchButton && (0, _styledComponents.css)`
91
- color: ${theme.search.darkVariantText};
92
- `}
93
- ${!isFocused && !searchHasValue && (0, _styledComponents.css)`
94
- color: ${theme.search.darkVariantPlaceholder};
95
- `}
95
+ ${darkVariant && !isFocused && searchHasValue && !showSearchButton && (0, _styledComponents.css)`
96
+ color: var(--colorsUtilityYang100);
96
97
  `}
97
98
  }
98
99
 
99
100
  ${_inputPresentation.default} {
100
- background-color: ${searchHasValue || isFocused ? `${theme.colors.white}` : "transparent"};
101
+ background-color: ${searchHasValue || isFocused ? "var(--colorsUtilityYang100)" : "transparent"};
101
102
  flex: 1;
102
103
  font-size: 14px;
103
104
  font-weight: 700;
@@ -106,11 +107,10 @@ const StyledSearch = _styledComponents.default.div`
106
107
  cursor: pointer;
107
108
  ${!isFocused && !searchHasValue && (0, _styledComponents.css)`
108
109
  border: 1px solid transparent;
109
- color: ${theme.icon.default};
110
110
  `}
111
111
  ${!isFocused && searchHasValue && !showSearchButton && (0, _styledComponents.css)`
112
112
  border: 1px solid transparent;
113
- background-color: ${darkVariant ? "transparent" : `${theme.colors.white}`};
113
+ background-color: ${darkVariant ? "transparent" : "var(--colorsUtilityYang100)"};
114
114
  `}
115
115
  }
116
116
 
@@ -118,24 +118,19 @@ const StyledSearch = _styledComponents.default.div`
118
118
  flex: 1;
119
119
  z-index: ${theme.zIndex.smallOverlay};
120
120
  }
121
- ${_button.default} {
122
- background-color: ${theme.search.button};
123
- cursor: pointer;
124
- color: ${theme.colors.white};
125
- }
126
121
  ${_icon.default} {
127
- color: ${iconColor ? `${theme.search.icon}` : `${theme.search.iconDarkVariant}`};
122
+ color: ${iconColor ? "var(--colorsUtilityMajor400)" : "var(--colorsUtilityMajor200)"};
128
123
  ${!darkVariant && (0, _styledComponents.css)`
129
- color: ${theme.search.icon};
124
+ color: var(--colorsUtilityMajor400);
130
125
  `}
131
126
 
132
127
  width: 20px;
133
128
  height: 20px;
134
129
  cursor: pointer;
135
130
  :hover {
136
- color: ${iconColor ? `${theme.search.iconHover}` : `${theme.search.iconDarkVariantHover}`};
131
+ color: ${iconColor ? "var(--colorsUtilityMajor500)" : "var(--colorsUtilityMajor100)"};
137
132
  ${!darkVariant && (0, _styledComponents.css)`
138
- color: ${theme.search.iconHover};
133
+ color: var(--colorsUtilityMajor500);
139
134
  `}
140
135
  }
141
136
  }
@@ -156,17 +151,13 @@ exports.default = _default;
156
151
  const StyledSearchButton = _styledComponents.default.div`
157
152
  display: inline-flex;
158
153
  border-bottom: none;
159
- &&& ${_button.default} {
160
- ${({
161
- theme
162
- }) => (0, _styledComponents.css)`
163
- background-color: ${theme.colors.primary};
164
- border-color: ${theme.colors.primary};
165
- :hover {
166
- background: ${theme.colors.secondary};
167
- border-color: ${theme.colors.secondary};
168
- }
169
- `}
154
+ & ${_button.default} {
155
+ background-color: var(--colorsActionMajor500);
156
+ border-color: var(--colorsActionMajorTransparent);
157
+ :hover {
158
+ background: var(--colorsActionMajor600);
159
+ border-color: var(--colorsActionMajorTransparent);
160
+ }
170
161
 
171
162
  width: 40px;
172
163
  margin: 0px 0px;
@@ -181,7 +172,7 @@ const StyledSearchButton = _styledComponents.default.div`
181
172
  exports.StyledSearchButton = StyledSearchButton;
182
173
  const StyledButtonIcon = _styledComponents.default.div`
183
174
  &&& ${_icon.default} {
184
- color: white;
175
+ color: var(--colorsActionMajorYang100);
185
176
  margin-right: 0px;
186
177
  }
187
178
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.10.2",
3
+ "version": "104.11.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {