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.
- package/lib/__internal__/sticky-footer/sticky-footer.style.js +7 -15
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +1 -1
- package/lib/components/definition-list/definition-list.style.js +26 -30
- package/lib/components/drawer/drawer.style.js +35 -36
- package/lib/components/form/__internal__/form-summary.style.js +10 -25
- package/lib/components/form/form.style.js +42 -35
- package/lib/components/numeral-date/numeral-date.style.js +1 -20
- package/lib/components/select/__internal__/select-text/select-text.style.js +2 -8
- package/lib/components/select/select-list/select-list-container.style.js +1 -8
- package/lib/style/themes/base/base-theme.config.d.ts +0 -8
- package/lib/style/themes/base/base-theme.config.js +0 -8
- package/lib/style/themes/base/index.d.ts +0 -6
- package/lib/style/themes/sage/index.d.ts +0 -5
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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:
|
|
34
|
-
box-shadow:
|
|
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;
|
package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js
CHANGED
|
@@ -41,7 +41,7 @@ const StyledNavigationItem = _styledComponents.default.li`
|
|
|
41
41
|
${({
|
|
42
42
|
isSelected
|
|
43
43
|
}) => isSelected && (0, _styledComponents.css)`
|
|
44
|
-
background-color: var(--
|
|
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
|
-
|
|
68
|
-
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
${_button.default} {
|
|
87
|
+
padding: 0;
|
|
88
|
+
border: none;
|
|
89
|
+
}
|
|
91
90
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
92
|
+
width: ${defaultExpandedWidth};
|
|
94
93
|
overflow: hidden;
|
|
95
|
-
min-width:
|
|
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:
|
|
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:
|
|
123
|
-
width:
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
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
|
-
|
|
154
|
-
|
|
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
|
-
|
|
177
|
-
|
|
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:
|
|
198
|
+
top: var(--spacing300);
|
|
197
199
|
right: 8px;
|
|
198
|
-
padding:
|
|
199
|
-
width:
|
|
200
|
-
height:
|
|
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:
|
|
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:
|
|
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:
|
|
59
|
+
color: var(--colorsSemanticCaution650);
|
|
64
60
|
`}
|
|
65
61
|
${({
|
|
66
|
-
type
|
|
67
|
-
theme
|
|
62
|
+
type
|
|
68
63
|
}) => type === "errors" && (0, _styledComponents.css)`
|
|
69
|
-
color:
|
|
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:
|
|
72
|
+
color: var(--colorsSemanticCaution650);
|
|
79
73
|
`}
|
|
80
74
|
${({
|
|
81
|
-
type
|
|
82
|
-
theme
|
|
75
|
+
type
|
|
83
76
|
}) => type === "errors" && (0, _styledComponents.css)`
|
|
84
|
-
color:
|
|
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:
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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:
|
|
123
|
-
padding-left:
|
|
133
|
+
padding-right: var(--spacing400);
|
|
134
|
+
padding-left: var(--spacing400);
|
|
124
135
|
padding-top: 27px;
|
|
125
|
-
margin-right:
|
|
126
|
-
margin-left:
|
|
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:
|
|
132
|
-
margin-bottom:
|
|
133
|
-
width: calc(100% +
|
|
134
|
-
padding-left:
|
|
135
|
-
padding-right:
|
|
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:
|
|
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(--
|
|
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),
|