carbon-react 104.28.0 → 104.31.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.
@@ -7,10 +7,6 @@ exports.default = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
- var _base = _interopRequireDefault(require("../../style/themes/base"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
15
11
 
16
12
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -20,24 +16,20 @@ const FormButtonAnimation = (0, _styledComponents.keyframes)`
20
16
  100% { transform: translateY(0px); }
21
17
  `;
22
18
  const StyledStickyFooter = _styledComponents.default.div`
19
+ padding: var(--spacing200) var(--spacing400);
20
+ box-sizing: border-box;
21
+ width: 100%;
23
22
  ${({
24
- sticky,
25
- theme
26
- }) => (0, _styledComponents.css)`
27
- ${sticky && (0, _styledComponents.css)`
23
+ sticky
24
+ }) => sticky && (0, _styledComponents.css)`
28
25
  animation: ${FormButtonAnimation} 0.25s ease;
29
26
  position: sticky;
30
- width: 100%;
31
27
  bottom: 0;
32
28
  left: 0;
33
- background-color: ${theme.colors.white};
34
- box-shadow: 0 -4px 12px rgba(153, 173, 182, 0.05);
29
+ background-color: var(--colorsComponentsNavigationYang100);
30
+ box-shadow: var(--boxShadow150);
35
31
  z-index: 1000;
36
32
  `}
37
- `}
38
33
  `;
39
- StyledStickyFooter.defaultProps = {
40
- theme: _base.default
41
- };
42
34
  var _default = StyledStickyFooter;
43
35
  exports.default = _default;
@@ -41,7 +41,7 @@ const StyledNavigationItem = _styledComponents.default.li`
41
41
  ${({
42
42
  isSelected
43
43
  }) => isSelected && (0, _styledComponents.css)`
44
- background-color: var(--colorsActionMinorYang100);
44
+ background-color: var(--colorsActionMajorYang100);
45
45
  border-left-color: var(--colorsActionMajor500);
46
46
  `}
47
47
  }
@@ -9,12 +9,12 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
10
  var _styledSystem = require("styled-system");
11
11
 
12
- var _themes = require("../../style/themes");
13
-
14
12
  var _button = _interopRequireDefault(require("../button/button.style"));
15
13
 
16
14
  var _link = require("../link/link.style");
17
15
 
16
+ var _themes = require("../../style/themes");
17
+
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
20
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
@@ -44,6 +44,9 @@ const StyledDl = _styledComponents.default.dl`
44
44
  background-color: transparent;
45
45
  `;
46
46
  exports.StyledDl = StyledDl;
47
+ StyledDl.defaultProps = {
48
+ theme: _themes.baseTheme
49
+ };
47
50
  const StyledDtDiv = _styledComponents.default.div`
48
51
  ${_styledSystem.space}
49
52
  ${({
@@ -53,6 +56,9 @@ const StyledDtDiv = _styledComponents.default.div`
53
56
  `}
54
57
  `;
55
58
  exports.StyledDtDiv = StyledDtDiv;
59
+ StyledDtDiv.defaultProps = {
60
+ theme: _themes.baseTheme
61
+ };
56
62
  const StyledDdDiv = _styledComponents.default.div`
57
63
  ${({
58
64
  ddTextAlign
@@ -63,42 +69,32 @@ const StyledDdDiv = _styledComponents.default.div`
63
69
  exports.StyledDdDiv = StyledDdDiv;
64
70
  const StyledDt = _styledComponents.default.dt`
65
71
  ${_styledSystem.space}
66
- ${({
67
- theme
68
- }) => (0, _styledComponents.css)`
69
- font-size: 14px
70
- font-weight: 700;
71
- color: ${theme.definitionList.dtTextDark};
72
- `}
72
+ font-size: 14px;
73
+ font-weight: 700;
74
+ color: var(--colorsUtilityYin090);
73
75
  `;
74
76
  exports.StyledDt = StyledDt;
75
77
  StyledDt.defaultProps = {
76
78
  theme: _themes.baseTheme
77
79
  };
78
80
  const StyledDd = _styledComponents.default.dd`
79
- ${({
80
- theme
81
- }) => (0, _styledComponents.css)`
82
- font-size: 14px
83
- font-weight: 700;
84
- color: ${theme.definitionList.ddText};
85
- margin-left: 0px;
81
+ font-size: 14px;
82
+ font-weight: 700;
83
+ color: var(--colorsUtilityYin065);
84
+ margin-left: 0px;
86
85
 
87
- ${_button.default} {
88
- padding: 0;
89
- border: none;
90
- }
86
+ ${_button.default} {
87
+ padding: 0;
88
+ border: none;
89
+ }
91
90
 
92
- ${_link.StyledLink} {
93
- a, button {
94
- font-weight: 700px;
95
- text-decoration: none;
96
- }
91
+ ${_link.StyledLink} {
92
+ a,
93
+ button {
94
+ font-weight: 700px;
95
+ text-decoration: none;
97
96
  }
98
- `}
97
+ }
99
98
  ${_styledSystem.space}
100
99
  `;
101
- exports.StyledDd = StyledDd;
102
- StyledDd.defaultProps = {
103
- theme: _themes.baseTheme
104
- };
100
+ exports.StyledDd = StyledDd;
@@ -7,8 +7,6 @@ exports.StyledButton = exports.StyledSidebarTitle = exports.StyledDrawerSidebar
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
- var _base = _interopRequireDefault(require("../../style/themes/base"));
11
-
12
10
  var _tabs = _interopRequireDefault(require("../tabs/tabs.style"));
13
11
 
14
12
  var _box = _interopRequireDefault(require("../box"));
@@ -21,6 +19,7 @@ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return
21
19
 
22
20
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
21
 
22
+ const defaultExpandedWidth = "var(--sizing500)";
24
23
  const StyledSidebarHeader = _styledComponents.default.div`
25
24
  ${({
26
25
  isExpanded
@@ -29,14 +28,14 @@ const StyledSidebarHeader = _styledComponents.default.div`
29
28
  top: 0;
30
29
 
31
30
  ${isExpanded && (0, _styledComponents.css)`
32
- border-bottom: 1px solid #ccd6db;
31
+ border-bottom: var(--sizing010) solid #ccd6db;
33
32
  `}
34
33
  `}
35
34
  `;
36
35
  exports.StyledSidebarHeader = StyledSidebarHeader;
37
36
  const StyledSidebarTitle = _styledComponents.default.div`
38
37
  white-space: nowrap;
39
- padding: 24px 36px 24px 40px;
38
+ padding: var(--spacing300) var(--spacing500);
40
39
  `;
41
40
  exports.StyledSidebarTitle = StyledSidebarTitle;
42
41
  const StyledDrawerChildren = _styledComponents.default.div`
@@ -90,9 +89,9 @@ const sidebarHidden = () => (0, _styledComponents.keyframes)`
90
89
 
91
90
  const drawerOpen = expandedWidth => (0, _styledComponents.keyframes)`
92
91
  0% {
93
- width: 40px;
92
+ width: ${defaultExpandedWidth};
94
93
  overflow: hidden;
95
- min-width: 40px;
94
+ min-width: ${defaultExpandedWidth};
96
95
  }
97
96
  100% {
98
97
  width: ${expandedWidth};
@@ -102,7 +101,7 @@ const drawerOpen = expandedWidth => (0, _styledComponents.keyframes)`
102
101
 
103
102
  const drawerClose = expandedWidth => (0, _styledComponents.keyframes)`
104
103
  0% {width: ${expandedWidth};}
105
- 100% {width: 40px;}
104
+ 100% {width: ${defaultExpandedWidth};}
106
105
  `;
107
106
 
108
107
  const buttonOpen = () => (0, _styledComponents.keyframes)`
@@ -119,19 +118,19 @@ const buttonClose = () => (0, _styledComponents.keyframes)`
119
118
  const StyledDrawerContent = _styledComponents.default.div`
120
119
  display: flex;
121
120
  flex-direction: column;
122
- min-width: 40px;
123
- width: 40px;
121
+ min-width: ${defaultExpandedWidth};
122
+ width: ${defaultExpandedWidth};
124
123
  min-height: 40px;
125
124
  height: auto;
126
125
  position: relative;
127
126
  overflow: auto;
128
- border-right: 1px solid ${({
129
- theme
130
- }) => theme.drawer.divider};
131
- background-color: ${({
132
- backgroundColor,
133
- theme
134
- }) => backgroundColor || theme.drawer.background}};
127
+
128
+ ${({
129
+ backgroundColor
130
+ }) => (0, _styledComponents.css)`
131
+ background-color: ${backgroundColor || "var(--colorsUtilityMajor040)"};
132
+ border-right: 1px solid ${backgroundColor || "var(--colorsUtilityMajor075)"};
133
+ `};
135
134
 
136
135
  &.open {
137
136
  min-width: 52px;
@@ -150,11 +149,13 @@ const StyledDrawerContent = _styledComponents.default.div`
150
149
  animationDuration,
151
150
  expandedWidth
152
151
  }) => (0, _styledComponents.css)`
153
- ${drawerOpen(expandedWidth)} ${animationDuration}
154
- `} ease-in-out;
152
+ ${drawerOpen(expandedWidth)} ${animationDuration}
153
+ `}
154
+ ease-in-out;
155
155
 
156
156
  ${StyledDrawerSidebar}, ${StyledSidebarTitle} {
157
- animation: ${sidebarVisible} ${({
157
+ animation: ${sidebarVisible}
158
+ ${({
158
159
  animationDuration
159
160
  }) => animationDuration} ease-in-out;
160
161
  }
@@ -173,11 +174,13 @@ const StyledDrawerContent = _styledComponents.default.div`
173
174
  animationDuration,
174
175
  expandedWidth
175
176
  }) => (0, _styledComponents.css)`
176
- ${drawerClose(expandedWidth)} ${animationDuration}
177
- `} ease-in-out;
177
+ ${drawerClose(expandedWidth)} ${animationDuration}
178
+ `}
179
+ ease-in-out;
178
180
 
179
181
  ${StyledDrawerSidebar}, ${StyledSidebarTitle}, ${_stickyFooter.default} {
180
- animation: ${sidebarHidden} ${({
182
+ animation: ${sidebarHidden}
183
+ ${({
181
184
  animationDuration
182
185
  }) => animationDuration} ease-in-out;
183
186
  }
@@ -189,15 +192,17 @@ const StyledButton = _styledComponents.default.button.attrs({
189
192
  })`
190
193
  ${({
191
194
  animationDuration,
192
- isExpanded,
193
- theme
195
+ isExpanded
194
196
  }) => (0, _styledComponents.css)`
195
197
  position: absolute;
196
- top: 24px;
198
+ top: var(--spacing300);
197
199
  right: 8px;
198
- padding: 0;
199
- width: 24px;
200
- height: 24px;
200
+ padding: var(--spacing100);
201
+ width: var(--spacing300);
202
+ height: var(--spacing300);
203
+ display: flex;
204
+ justify-content: center;
205
+ align-items: center;
201
206
  transition: margin-right ${animationDuration} ease-in-out;
202
207
  background-color: transparent;
203
208
  border: none;
@@ -205,7 +210,7 @@ const StyledButton = _styledComponents.default.button.attrs({
205
210
  animation: ${buttonClose} ${animationDuration} ease-in-out;
206
211
 
207
212
  &:focus {
208
- outline: 3px solid ${theme.colors.focus};
213
+ outline: var(--borderWidth300) solid var(--colorsSemanticFocus500);
209
214
  }
210
215
 
211
216
  &:hover {
@@ -225,10 +230,4 @@ const StyledDrawerWrapper = _styledComponents.default.div`
225
230
  height
226
231
  }) => height};
227
232
  `;
228
- exports.StyledDrawerWrapper = StyledDrawerWrapper;
229
- StyledDrawerContent.defaultProps = {
230
- theme: _base.default
231
- };
232
- StyledButton.defaultProps = {
233
- theme: _base.default
234
- };
233
+ exports.StyledDrawerWrapper = StyledDrawerWrapper;
@@ -9,8 +9,6 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
- var _base = _interopRequireDefault(require("../../../style/themes/base"));
13
-
14
12
  var _icon = _interopRequireDefault(require("../../icon/icon.style"));
15
13
 
16
14
  var _button = _interopRequireDefault(require("../../button/button.style"));
@@ -31,10 +29,9 @@ const StyledFormSummary = _styledComponents.default.div`
31
29
  white-space: nowrap;
32
30
 
33
31
  ${({
34
- showSummary,
35
- theme
32
+ showSummary
36
33
  }) => showSummary && (0, _styledComponents.css)`
37
- background-color: ${theme.form.invalid};
34
+ background-color: var(--colorsUtilityMajor025);
38
35
  `}
39
36
 
40
37
  ${_button.default} {
@@ -57,46 +54,34 @@ const StyledInternalSummary = _styledComponents.default.div`
57
54
  margin-right: 16px;
58
55
  }
59
56
  ${({
60
- type,
61
- theme
57
+ type
62
58
  }) => type === "warnings" && (0, _styledComponents.css)`
63
- color: ${theme.colors.warning};
59
+ color: var(--colorsSemanticCaution650);
64
60
  `}
65
61
  ${({
66
- type,
67
- theme
62
+ type
68
63
  }) => type === "errors" && (0, _styledComponents.css)`
69
- color: ${theme.colors.error};
64
+ color: var(--colorsSemanticNegative600);
70
65
  `}
71
66
 
72
67
  ${_icon.default} {
73
68
  margin-right: 4px;
74
69
  ${({
75
- type,
76
- theme
70
+ type
77
71
  }) => type === "warnings" && (0, _styledComponents.css)`
78
- color: ${theme.colors.warning};
72
+ color: var(--colorsSemanticCaution650);
79
73
  `}
80
74
  ${({
81
- type,
82
- theme
75
+ type
83
76
  }) => type === "errors" && (0, _styledComponents.css)`
84
- color: ${theme.colors.error};
77
+ color: var(--colorsSemanticNegative600);
85
78
  `}
86
79
  }
87
80
  `;
88
81
  exports.StyledInternalSummary = StyledInternalSummary;
89
82
  StyledFormSummary.propTypes = {
90
- theme: _propTypes.default.object,
91
83
  showSummary: _propTypes.default.bool
92
84
  };
93
- StyledFormSummary.defaultProps = {
94
- theme: _base.default
95
- };
96
85
  StyledInternalSummary.propTypes = {
97
- theme: _propTypes.default.object,
98
86
  type: _propTypes.default.oneOf(["errors", "warnings"])
99
- };
100
- StyledInternalSummary.defaultProps = {
101
- theme: _base.default
102
87
  };
@@ -55,15 +55,14 @@ const StyledFormFooter = _styledComponents.default.div`
55
55
  `}
56
56
 
57
57
  ${({
58
- stickyFooter,
59
- theme
58
+ stickyFooter
60
59
  }) => (0, _styledComponents.css)`
61
60
  ${!stickyFooter && (0, _styledComponents.css)`
62
61
  margin-top: 48px;
63
62
  `}
64
63
 
65
64
  ${stickyFooter && (0, _styledComponents.css)`
66
- background-color: ${theme.colors.white};
65
+ background-color: var(--colorsUtilityYang100);
67
66
  box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, 0.05);
68
67
  box-sizing: border-box;
69
68
  padding: 16px 32px;
@@ -75,6 +74,17 @@ const StyledFormFooter = _styledComponents.default.div`
75
74
  `}
76
75
  `;
77
76
  exports.StyledFormFooter = StyledFormFooter;
77
+
78
+ const formBottomMargins = fieldSpacing => ({
79
+ 0: "var(--spacing000)",
80
+ 1: "var(--spacing100)",
81
+ 2: "var(--spacing200)",
82
+ 3: "var(--spacing300)",
83
+ 4: "var(--spacing400)",
84
+ 5: "var(--spacing500)",
85
+ 7: "var(--spacing700)"
86
+ })[fieldSpacing];
87
+
78
88
  const StyledForm = _styledComponents.default.form`
79
89
  ${_styledSystem.space}
80
90
 
@@ -84,24 +94,26 @@ const StyledForm = _styledComponents.default.form`
84
94
  height: ${height};
85
95
  `}
86
96
 
87
- & ${_formField.default}, ${_fieldset.StyledFieldset}, ${_fieldset2.FieldsetStyle}, > ${_button.default} {
88
- margin-top: 0;
89
- margin-bottom: ${({
90
- fieldSpacing,
91
- theme
92
- }) => theme.spacing * fieldSpacing}px;
93
- }
94
-
95
- ${_inlineInputs.default} {
96
- ${_formField.default} {
97
- margin-bottom: 0;
98
- }
97
+ ${({
98
+ fieldSpacing
99
+ }) => (0, _styledComponents.css)`
100
+ &
101
+ ${_formField.default},
102
+ ${_fieldset.StyledFieldset},
103
+ ${_fieldset2.FieldsetStyle},
104
+ > ${_button.default} {
105
+ margin-top: 0;
106
+ margin-bottom: ${formBottomMargins(fieldSpacing)};
107
+ }
108
+
109
+ ${_inlineInputs.default} {
110
+ ${_formField.default} {
111
+ margin-bottom: 0;
112
+ }
99
113
 
100
- margin-bottom: ${({
101
- fieldSpacing,
102
- theme
103
- }) => theme.spacing * fieldSpacing}px;
104
- }
114
+ margin-bottom: ${formBottomMargins(fieldSpacing)};
115
+ }
116
+ `}
105
117
 
106
118
  ${_search.default} ${_formField.default} {
107
119
  margin-bottom: 0px;
@@ -109,8 +121,7 @@ const StyledForm = _styledComponents.default.form`
109
121
 
110
122
  ${({
111
123
  stickyFooter,
112
- isInSidebar,
113
- theme
124
+ isInSidebar
114
125
  }) => stickyFooter && (0, _styledComponents.css)`
115
126
  display: flex;
116
127
  flex-direction: column;
@@ -119,20 +130,20 @@ const StyledForm = _styledComponents.default.form`
119
130
  ${isInSidebar && (0, _styledComponents.css)`
120
131
  min-height: 100%;
121
132
  ${StyledFormContent}.sticky {
122
- padding-right: ${theme.space[4]}px;
123
- padding-left: ${theme.space[4]}px;
133
+ padding-right: var(--spacing400);
134
+ padding-left: var(--spacing400);
124
135
  padding-top: 27px;
125
- margin-right: -${theme.space[4]}px;
126
- margin-left: -${theme.space[4]}px;
136
+ margin-right: calc(-1 * var(--spacing400));
137
+ margin-left: calc(-1 * var(--spacing400));
127
138
  margin-top: -27px;
128
139
  }
129
140
 
130
141
  ${StyledFormFooter}.sticky {
131
- margin-left: -${theme.space[4]}px;
132
- margin-bottom: -${theme.space[4]}px;
133
- width: calc(100% + ${2 * theme.space[4]}px);
134
- padding-left: ${theme.space[4]}px;
135
- padding-right: ${theme.space[4]}px;
142
+ margin-left: calc(-1 * var(--spacing400));
143
+ margin-bottom: calc(-1 * var(--spacing400));
144
+ width: calc(100% + var(--spacing800));
145
+ padding-left: var(--spacing400);
146
+ padding-right: var(--spacing400);
136
147
  bottom: -32px;
137
148
  }
138
149
  `}
@@ -179,10 +190,6 @@ StyledRightButtons.propTypes = {
179
190
  buttonAlignment: _propTypes.default.oneOf(_form.FORM_BUTTON_ALIGNMENTS)
180
191
  };
181
192
  StyledFormFooter.propTypes = {
182
- theme: _propTypes.default.object,
183
193
  buttonAlignment: _propTypes.default.oneOf(_form.FORM_BUTTON_ALIGNMENTS),
184
194
  stickyFooter: _propTypes.default.bool
185
- };
186
- StyledFormFooter.defaultProps = {
187
- theme: _base.default
188
195
  };
@@ -11,14 +11,10 @@ var _validationIcon = _interopRequireDefault(require("../../__internal__/validat
11
11
 
12
12
  var _inputIconToggle = _interopRequireDefault(require("../../__internal__/input-icon-toggle/input-icon-toggle.style"));
13
13
 
14
- var _themes = require("../../style/themes");
15
-
16
14
  var _inputPresentation = _interopRequireDefault(require("../../__internal__/input/input-presentation.style"));
17
15
 
18
16
  var _formField = _interopRequireDefault(require("../../__internal__/form-field/form-field.style"));
19
17
 
20
- var _icon = _interopRequireDefault(require("../icon/icon.style"));
21
-
22
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
19
 
24
20
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
@@ -39,13 +35,9 @@ const StyledNumeralDate = _styledComponents.default.div`
39
35
  }
40
36
  `;
41
37
  exports.StyledNumeralDate = StyledNumeralDate;
42
- StyledNumeralDate.defaultProps = {
43
- theme: _themes.baseTheme
44
- };
45
38
  const StyledDateField = _styledComponents.default.div`
46
39
  ${({
47
40
  isYearInput,
48
- theme,
49
41
  isEnd,
50
42
  hasValidationIcon,
51
43
  isMiddle
@@ -61,14 +53,6 @@ const StyledDateField = _styledComponents.default.div`
61
53
  margin-left: -1px;
62
54
  `}
63
55
 
64
- ${_icon.default} {
65
- display: flex;
66
- color: ${theme.numeralDate.error};
67
- width: 16px;
68
- height: 16px;
69
- cursor: pointer;
70
- }
71
-
72
56
  ${_inputIconToggle.default} {
73
57
  width: 32px;
74
58
  z-index: 999;
@@ -80,7 +64,4 @@ const StyledDateField = _styledComponents.default.div`
80
64
  `;
81
65
  }}
82
66
  `;
83
- exports.StyledDateField = StyledDateField;
84
- StyledDateField.defaultProps = {
85
- theme: _themes.baseTheme
86
- };
67
+ exports.StyledDateField = StyledDateField;
@@ -7,8 +7,6 @@ exports.default = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
9
 
10
- var _themes = require("../../../../style/themes");
11
-
12
10
  function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
13
11
 
14
12
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -18,7 +16,6 @@ const StyledSelectText = _styledComponents.default.span`
18
16
  disabled,
19
17
  hasPlaceholder,
20
18
  readOnly,
21
- theme,
22
19
  transparent
23
20
  }) => (0, _styledComponents.css)`
24
21
  align-items: center;
@@ -40,7 +37,7 @@ const StyledSelectText = _styledComponents.default.span`
40
37
  `}
41
38
 
42
39
  ${hasPlaceholder && (0, _styledComponents.css)`
43
- color: ${theme.text.placeholder};
40
+ color: var(--colorsUtilityYin055);
44
41
  font-weight: normal;
45
42
  user-select: none;
46
43
  `}
@@ -53,13 +50,10 @@ const StyledSelectText = _styledComponents.default.span`
53
50
 
54
51
  ${readOnly && (0, _styledComponents.css)`
55
52
  cursor: default;
56
- color: var(--colorsYin065);
53
+ color: var(--colorsUtilityYin065);
57
54
  text-shadow: none;
58
55
  `}
59
56
  `}
60
57
  `;
61
- StyledSelectText.defaultProps = {
62
- theme: _themes.baseTheme
63
- };
64
58
  var _default = StyledSelectText;
65
59
  exports.default = _default;
@@ -7,15 +7,11 @@ exports.default = void 0;
7
7
 
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
- var _themes = require("../../../style/themes");
11
-
12
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
11
 
14
12
  const StyledSelectListContainer = _styledComponents.default.div`
15
13
  background-color: white;
16
- box-shadow: ${({
17
- theme
18
- }) => `${theme.shadows.depth1}`};
14
+ box-shadow: var(--boxShadow100);
19
15
  position: absolute;
20
16
  ${({
21
17
  placement
@@ -37,8 +33,5 @@ const StyledSelectListContainer = _styledComponents.default.div`
37
33
  }
38
34
  }
39
35
  `;
40
- StyledSelectListContainer.defaultProps = {
41
- theme: _themes.baseTheme
42
- };
43
36
  var _default = StyledSelectListContainer;
44
37
  exports.default = _default;
@@ -121,9 +121,6 @@ declare function _default(palette: any): {
121
121
  searchIconHover: any;
122
122
  };
123
123
  };
124
- form: {
125
- invalid: any;
126
- };
127
124
  card: {
128
125
  footerBackground: any;
129
126
  footerBorder: any;
@@ -182,11 +179,6 @@ declare function _default(palette: any): {
182
179
  content: {
183
180
  secondaryColor: any;
184
181
  };
185
- definitionList: {
186
- dtTextDark: any;
187
- dtTextLight: any;
188
- ddText: any;
189
- };
190
182
  disabled: {
191
183
  border: any;
192
184
  button: any;
@@ -140,9 +140,6 @@ var _default = palette => {
140
140
  searchIconHover: palette.slateTint(75)
141
141
  }
142
142
  },
143
- form: {
144
- invalid: palette.slateTint(95)
145
- },
146
143
  card: {
147
144
  footerBackground: palette.slateTint(95),
148
145
  footerBorder: palette.slateTint(80)
@@ -201,11 +198,6 @@ var _default = palette => {
201
198
  content: {
202
199
  secondaryColor: palette.slateTint(40)
203
200
  },
204
- definitionList: {
205
- dtTextDark: palette.blackOpacity(0.9),
206
- dtTextLight: palette.blackOpacity(0.65),
207
- ddText: palette.blackOpacity(0.65)
208
- },
209
201
  disabled: {
210
202
  border: palette.slateTint(80),
211
203
  button: palette.slateTint(90),
@@ -199,12 +199,6 @@ export interface ThemeObject {
199
199
  secondaryColor: string;
200
200
  };
201
201
 
202
- definitionList: {
203
- dtTextDark: string;
204
- dtTextLight: string;
205
- ddText: string;
206
- };
207
-
208
202
  disabled: {
209
203
  border: string;
210
204
  button: string;
@@ -502,11 +502,6 @@ declare var _default: {
502
502
  content: {
503
503
  secondaryColor: string;
504
504
  };
505
- definitionList: {
506
- dtTextDark: string;
507
- dtTextLight: string;
508
- ddText: string;
509
- };
510
505
  disabled: {
511
506
  border: string;
512
507
  button: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "104.28.0",
3
+ "version": "104.31.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {