carbon-react 104.46.0 → 104.48.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.
- package/esm/components/box/box.component.js +6 -6
- package/esm/components/box/box.config.d.ts +13 -0
- package/esm/components/box/box.config.js +10 -0
- package/esm/components/content/content.style.js +2 -6
- package/esm/components/dismissible-box/dismissible-box.component.js +2 -2
- package/esm/components/dismissible-box/dismissible-box.style.js +4 -6
- package/esm/components/icon/icon.style.js +1 -4
- package/esm/components/show-edit-pod/show-edit-pod.style.js +8 -1
- package/esm/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +3 -13
- package/esm/style/themes/base/base-theme.config.d.ts +0 -10
- package/esm/style/themes/base/base-theme.config.js +0 -10
- package/esm/style/themes/base/index.d.ts +0 -12
- package/esm/style/themes/sage/index.d.ts +0 -10
- package/lib/components/box/box.component.js +7 -6
- package/lib/components/box/box.config.d.ts +13 -0
- package/lib/components/box/box.config.js +17 -0
- package/lib/components/content/content.style.js +3 -7
- package/lib/components/dismissible-box/dismissible-box.component.js +2 -2
- package/lib/components/dismissible-box/dismissible-box.style.js +4 -7
- package/lib/components/icon/icon.style.js +1 -4
- package/lib/components/show-edit-pod/show-edit-pod.style.js +12 -1
- package/lib/components/sidebar/__internal__/sidebar-header/sidebar-header.style.js +3 -14
- package/lib/style/themes/base/base-theme.config.d.ts +0 -10
- package/lib/style/themes/base/base-theme.config.js +0 -10
- package/lib/style/themes/base/index.d.ts +0 -12
- package/lib/style/themes/sage/index.d.ts +0 -10
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import styled, { css } from "styled-components";
|
|
|
4
4
|
import { space, layout, flexbox } from "styled-system";
|
|
5
5
|
import BaseTheme from "../../style/themes/base";
|
|
6
6
|
import color from "../../style/utils/color";
|
|
7
|
+
import boxConfig from "./box.config";
|
|
7
8
|
const Box = styled.div`
|
|
8
9
|
${space}
|
|
9
10
|
${layout}
|
|
@@ -17,20 +18,19 @@ const Box = styled.div`
|
|
|
17
18
|
`}
|
|
18
19
|
|
|
19
20
|
${({
|
|
20
|
-
scrollVariant
|
|
21
|
-
theme
|
|
21
|
+
scrollVariant
|
|
22
22
|
}) => scrollVariant && css`
|
|
23
|
-
scrollbar-color: ${
|
|
24
|
-
${
|
|
23
|
+
scrollbar-color: ${boxConfig[scrollVariant].thumb}
|
|
24
|
+
${boxConfig[scrollVariant].track};
|
|
25
25
|
|
|
26
26
|
&::-webkit-scrollbar {
|
|
27
27
|
width: 8px;
|
|
28
28
|
}
|
|
29
29
|
&::-webkit-scrollbar-track {
|
|
30
|
-
background-color: ${
|
|
30
|
+
background-color: ${boxConfig[scrollVariant].track};
|
|
31
31
|
}
|
|
32
32
|
&::-webkit-scrollbar-thumb {
|
|
33
|
-
background-color: ${
|
|
33
|
+
background-color: ${boxConfig[scrollVariant].thumb};
|
|
34
34
|
}
|
|
35
35
|
`}
|
|
36
36
|
`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace light {
|
|
3
|
+
const thumb: string;
|
|
4
|
+
const track: string;
|
|
5
|
+
}
|
|
6
|
+
namespace dark {
|
|
7
|
+
const thumb_1: string;
|
|
8
|
+
export { thumb_1 as thumb };
|
|
9
|
+
const track_1: string;
|
|
10
|
+
export { track_1 as track };
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default _default;
|
|
@@ -25,7 +25,6 @@ StyledContent.defaultProps = {
|
|
|
25
25
|
};
|
|
26
26
|
const StyledContentTitle = styled.div`
|
|
27
27
|
${({
|
|
28
|
-
theme,
|
|
29
28
|
titleWidth,
|
|
30
29
|
inline,
|
|
31
30
|
variant,
|
|
@@ -34,7 +33,7 @@ const StyledContentTitle = styled.div`
|
|
|
34
33
|
return css`
|
|
35
34
|
display: ${inline ? "inline-block" : "block"};
|
|
36
35
|
font-weight: bold;
|
|
37
|
-
color:
|
|
36
|
+
color: var(--colorsUtilityYin090);
|
|
38
37
|
width: ${titleWidth && `calc(${titleWidth}% - 30px)`};
|
|
39
38
|
text-align: ${!inline && align};
|
|
40
39
|
|
|
@@ -44,7 +43,7 @@ const StyledContentTitle = styled.div`
|
|
|
44
43
|
`}
|
|
45
44
|
|
|
46
45
|
${variant === "secondary" && css`
|
|
47
|
-
color:
|
|
46
|
+
color: var(--colorsUtilityYin055);
|
|
48
47
|
font-weight: normal;
|
|
49
48
|
`}
|
|
50
49
|
`;
|
|
@@ -86,7 +85,4 @@ const StyledContentBody = styled.div`
|
|
|
86
85
|
`;
|
|
87
86
|
}};
|
|
88
87
|
`;
|
|
89
|
-
StyledContentTitle.defaultProps = {
|
|
90
|
-
theme: baseTheme
|
|
91
|
-
};
|
|
92
88
|
export { StyledContent, StyledContentTitle, StyledContentBody };
|
|
@@ -11,7 +11,7 @@ const variantStyles = {
|
|
|
11
11
|
backgroundColor: "#FFFFFF"
|
|
12
12
|
},
|
|
13
13
|
dark: {
|
|
14
|
-
backgroundColor: "
|
|
14
|
+
backgroundColor: "var(--colorsUtilityMajor050)"
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -34,7 +34,7 @@ const DismissibleBox = ({
|
|
|
34
34
|
ml: 3
|
|
35
35
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
36
36
|
type: "close",
|
|
37
|
-
color: "
|
|
37
|
+
color: "var(--colorsActionMinor500)"
|
|
38
38
|
}))));
|
|
39
39
|
|
|
40
40
|
DismissibleBox.propTypes = { ...propTypes.space,
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import styled, { css } from "styled-components";
|
|
2
2
|
import Box from "../box";
|
|
3
|
-
import { toColor } from "../../style/utils/color";
|
|
4
3
|
import StyledIcon from "../icon/icon.style";
|
|
5
4
|
export default styled(Box)`
|
|
6
5
|
${({
|
|
7
|
-
hasBorderLeftHighlight
|
|
8
|
-
theme
|
|
6
|
+
hasBorderLeftHighlight
|
|
9
7
|
}) => css`
|
|
10
8
|
word-break: break-word;
|
|
11
9
|
|
|
12
|
-
border: 1px solid
|
|
10
|
+
border: 1px solid var(--colorsUtilityMajor100);
|
|
13
11
|
|
|
14
12
|
${hasBorderLeftHighlight && `
|
|
15
13
|
border-left: none;
|
|
16
|
-
box-shadow: -4px 0 0 0
|
|
14
|
+
box-shadow: -4px 0 0 0 var(--colorsUtilityMajor400);
|
|
17
15
|
`}
|
|
18
16
|
|
|
19
17
|
${StyledIcon}:hover {
|
|
20
|
-
color:
|
|
18
|
+
color: var(--colorsActionMinor600);
|
|
21
19
|
}
|
|
22
20
|
`}
|
|
23
21
|
`;
|
|
@@ -69,7 +69,7 @@ const StyledIcon = styled.span`
|
|
|
69
69
|
finalColor = renderedColor;
|
|
70
70
|
finalHoverColor = shade(0.2, renderedColor);
|
|
71
71
|
} else {
|
|
72
|
-
finalColor = "var(--
|
|
72
|
+
finalColor = "var(--colorsYin090)";
|
|
73
73
|
finalHoverColor = "var(--colorsYin090)";
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -82,9 +82,6 @@ const StyledIcon = styled.span`
|
|
|
82
82
|
});
|
|
83
83
|
bgColor = backgroundColor;
|
|
84
84
|
bgHoverColor = shade(0.2, backgroundColor);
|
|
85
|
-
} else if (disabled) {
|
|
86
|
-
bgColor = "var(--colorsYin030)";
|
|
87
|
-
bgHoverColor = "var(--colorsYin030)";
|
|
88
85
|
} else {
|
|
89
86
|
bgColor = "transparent";
|
|
90
87
|
bgHoverColor = "transparent";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
1
|
+
import styled, { css } from "styled-components";
|
|
2
2
|
import { StyledFormFooter } from "../form/form.style.js";
|
|
3
3
|
import { StyledContent } from "../pod/pod.style.js";
|
|
4
4
|
import Pod from "../pod";
|
|
@@ -9,6 +9,13 @@ const StyledPod = styled(Pod)`
|
|
|
9
9
|
|
|
10
10
|
${StyledContent} {
|
|
11
11
|
padding: 16px;
|
|
12
|
+
${({
|
|
13
|
+
softDelete
|
|
14
|
+
}) => softDelete && css`
|
|
15
|
+
[data-element="content-title"] {
|
|
16
|
+
color: var(--colorsUtilityYin030);
|
|
17
|
+
}
|
|
18
|
+
`}
|
|
12
19
|
}
|
|
13
20
|
|
|
14
21
|
.common-input__prefix {
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
|
-
import baseTheme from "../../../../style/themes/base";
|
|
3
2
|
const SidebarHeaderStyle = styled.div`
|
|
4
|
-
background-color:
|
|
5
|
-
|
|
6
|
-
}) => theme.colors.white};
|
|
7
|
-
box-shadow: inset 0 -1px 0 0 ${({
|
|
8
|
-
theme
|
|
9
|
-
}) => theme.disabled.border};
|
|
3
|
+
background-color: var(--colorsUtilityMajor025);
|
|
4
|
+
box-shadow: inset 0 -1px 0 0 var(--colorsUtilityMajor100);
|
|
10
5
|
box-sizing: border-box;
|
|
11
6
|
width: 100%;
|
|
12
|
-
color:
|
|
13
|
-
theme
|
|
14
|
-
}) => theme.text.color};
|
|
7
|
+
color: var(--colorsActionMinorYin090);
|
|
15
8
|
transition: all 0.2s ease;
|
|
16
9
|
padding: 27px 32px 32px 32px;
|
|
17
10
|
`;
|
|
18
|
-
SidebarHeaderStyle.defaultProps = {
|
|
19
|
-
theme: baseTheme
|
|
20
|
-
};
|
|
21
11
|
export default SidebarHeaderStyle;
|
|
@@ -261,16 +261,6 @@ declare function _default(palette: any): {
|
|
|
261
261
|
warningButtonFocus: any;
|
|
262
262
|
errorButtonFocus: any;
|
|
263
263
|
};
|
|
264
|
-
scrollbar: {
|
|
265
|
-
light: {
|
|
266
|
-
thumb: any;
|
|
267
|
-
track: any;
|
|
268
|
-
};
|
|
269
|
-
dark: {
|
|
270
|
-
thumb: any;
|
|
271
|
-
track: any;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
264
|
search: {
|
|
275
265
|
active: any;
|
|
276
266
|
button: string;
|
|
@@ -269,16 +269,6 @@ export default (palette => {
|
|
|
269
269
|
warningButtonFocus: palette.carrotOrange,
|
|
270
270
|
errorButtonFocus: palette.errorRedShade(20)
|
|
271
271
|
},
|
|
272
|
-
scrollbar: {
|
|
273
|
-
light: {
|
|
274
|
-
thumb: palette.slateTint(40),
|
|
275
|
-
track: palette.slateTint(95)
|
|
276
|
-
},
|
|
277
|
-
dark: {
|
|
278
|
-
thumb: palette.slateTint(60),
|
|
279
|
-
track: palette.slateTint(20)
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
272
|
search: {
|
|
283
273
|
active: palette.gold,
|
|
284
274
|
button: "#255BC7",
|
|
@@ -294,18 +294,6 @@ export interface ThemeObject {
|
|
|
294
294
|
errorButtonFocus: string;
|
|
295
295
|
};
|
|
296
296
|
|
|
297
|
-
scrollbar: {
|
|
298
|
-
light: {
|
|
299
|
-
thumb: string;
|
|
300
|
-
track: string;
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
dark: {
|
|
304
|
-
thumb: string;
|
|
305
|
-
track: string;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
|
|
309
297
|
search: {
|
|
310
298
|
active: string;
|
|
311
299
|
button: string;
|
|
@@ -578,16 +578,6 @@ declare var _default: {
|
|
|
578
578
|
warningButtonFocus: string;
|
|
579
579
|
errorButtonFocus: string;
|
|
580
580
|
};
|
|
581
|
-
scrollbar: {
|
|
582
|
-
light: {
|
|
583
|
-
thumb: string;
|
|
584
|
-
track: string;
|
|
585
|
-
};
|
|
586
|
-
dark: {
|
|
587
|
-
thumb: string;
|
|
588
|
-
track: string;
|
|
589
|
-
};
|
|
590
|
-
};
|
|
591
581
|
search: {
|
|
592
582
|
active: string;
|
|
593
583
|
button: string;
|
|
@@ -17,6 +17,8 @@ var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
|
17
17
|
|
|
18
18
|
var _color = _interopRequireDefault(require("../../style/utils/color"));
|
|
19
19
|
|
|
20
|
+
var _box = _interopRequireDefault(require("./box.config"));
|
|
21
|
+
|
|
20
22
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
21
23
|
|
|
22
24
|
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; }
|
|
@@ -36,20 +38,19 @@ const Box = _styledComponents.default.div`
|
|
|
36
38
|
`}
|
|
37
39
|
|
|
38
40
|
${({
|
|
39
|
-
scrollVariant
|
|
40
|
-
theme
|
|
41
|
+
scrollVariant
|
|
41
42
|
}) => scrollVariant && (0, _styledComponents.css)`
|
|
42
|
-
scrollbar-color: ${
|
|
43
|
-
${
|
|
43
|
+
scrollbar-color: ${_box.default[scrollVariant].thumb}
|
|
44
|
+
${_box.default[scrollVariant].track};
|
|
44
45
|
|
|
45
46
|
&::-webkit-scrollbar {
|
|
46
47
|
width: 8px;
|
|
47
48
|
}
|
|
48
49
|
&::-webkit-scrollbar-track {
|
|
49
|
-
background-color: ${
|
|
50
|
+
background-color: ${_box.default[scrollVariant].track};
|
|
50
51
|
}
|
|
51
52
|
&::-webkit-scrollbar-thumb {
|
|
52
|
-
background-color: ${
|
|
53
|
+
background-color: ${_box.default[scrollVariant].thumb};
|
|
53
54
|
}
|
|
54
55
|
`}
|
|
55
56
|
`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace light {
|
|
3
|
+
const thumb: string;
|
|
4
|
+
const track: string;
|
|
5
|
+
}
|
|
6
|
+
namespace dark {
|
|
7
|
+
const thumb_1: string;
|
|
8
|
+
export { thumb_1 as thumb };
|
|
9
|
+
const track_1: string;
|
|
10
|
+
export { track_1 as track };
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = {
|
|
8
|
+
light: {
|
|
9
|
+
thumb: "var(--colorsUtilityMajor300)",
|
|
10
|
+
track: "var(--colorsUtilityMajor025)"
|
|
11
|
+
},
|
|
12
|
+
dark: {
|
|
13
|
+
thumb: "var(--colorsUtilityMajor200)",
|
|
14
|
+
track: "var(--colorsUtilityMajor400)"
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
exports.default = _default;
|
|
@@ -40,7 +40,6 @@ StyledContent.defaultProps = {
|
|
|
40
40
|
};
|
|
41
41
|
const StyledContentTitle = _styledComponents.default.div`
|
|
42
42
|
${({
|
|
43
|
-
theme,
|
|
44
43
|
titleWidth,
|
|
45
44
|
inline,
|
|
46
45
|
variant,
|
|
@@ -49,7 +48,7 @@ const StyledContentTitle = _styledComponents.default.div`
|
|
|
49
48
|
return (0, _styledComponents.css)`
|
|
50
49
|
display: ${inline ? "inline-block" : "block"};
|
|
51
50
|
font-weight: bold;
|
|
52
|
-
color:
|
|
51
|
+
color: var(--colorsUtilityYin090);
|
|
53
52
|
width: ${titleWidth && `calc(${titleWidth}% - 30px)`};
|
|
54
53
|
text-align: ${!inline && align};
|
|
55
54
|
|
|
@@ -59,7 +58,7 @@ const StyledContentTitle = _styledComponents.default.div`
|
|
|
59
58
|
`}
|
|
60
59
|
|
|
61
60
|
${variant === "secondary" && (0, _styledComponents.css)`
|
|
62
|
-
color:
|
|
61
|
+
color: var(--colorsUtilityYin055);
|
|
63
62
|
font-weight: normal;
|
|
64
63
|
`}
|
|
65
64
|
`;
|
|
@@ -102,7 +101,4 @@ const StyledContentBody = _styledComponents.default.div`
|
|
|
102
101
|
`;
|
|
103
102
|
}};
|
|
104
103
|
`;
|
|
105
|
-
exports.StyledContentBody = StyledContentBody;
|
|
106
|
-
StyledContentTitle.defaultProps = {
|
|
107
|
-
theme: _themes.baseTheme
|
|
108
|
-
};
|
|
104
|
+
exports.StyledContentBody = StyledContentBody;
|
|
@@ -26,7 +26,7 @@ const variantStyles = {
|
|
|
26
26
|
backgroundColor: "#FFFFFF"
|
|
27
27
|
},
|
|
28
28
|
dark: {
|
|
29
|
-
backgroundColor: "
|
|
29
|
+
backgroundColor: "var(--colorsUtilityMajor050)"
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -49,7 +49,7 @@ const DismissibleBox = ({
|
|
|
49
49
|
ml: 3
|
|
50
50
|
}, /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
51
51
|
type: "close",
|
|
52
|
-
color: "
|
|
52
|
+
color: "var(--colorsActionMinor500)"
|
|
53
53
|
}))));
|
|
54
54
|
|
|
55
55
|
DismissibleBox.propTypes = { ..._propTypes2.default.space,
|
|
@@ -9,8 +9,6 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
9
9
|
|
|
10
10
|
var _box = _interopRequireDefault(require("../box"));
|
|
11
11
|
|
|
12
|
-
var _color = require("../../style/utils/color");
|
|
13
|
-
|
|
14
12
|
var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
15
13
|
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -21,20 +19,19 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj;
|
|
|
21
19
|
|
|
22
20
|
var _default = (0, _styledComponents.default)(_box.default)`
|
|
23
21
|
${({
|
|
24
|
-
hasBorderLeftHighlight
|
|
25
|
-
theme
|
|
22
|
+
hasBorderLeftHighlight
|
|
26
23
|
}) => (0, _styledComponents.css)`
|
|
27
24
|
word-break: break-word;
|
|
28
25
|
|
|
29
|
-
border: 1px solid
|
|
26
|
+
border: 1px solid var(--colorsUtilityMajor100);
|
|
30
27
|
|
|
31
28
|
${hasBorderLeftHighlight && `
|
|
32
29
|
border-left: none;
|
|
33
|
-
box-shadow: -4px 0 0 0
|
|
30
|
+
box-shadow: -4px 0 0 0 var(--colorsUtilityMajor400);
|
|
34
31
|
`}
|
|
35
32
|
|
|
36
33
|
${_icon.default}:hover {
|
|
37
|
-
color:
|
|
34
|
+
color: var(--colorsActionMinor600);
|
|
38
35
|
}
|
|
39
36
|
`}
|
|
40
37
|
`;
|
|
@@ -90,7 +90,7 @@ const StyledIcon = _styledComponents.default.span`
|
|
|
90
90
|
finalColor = renderedColor;
|
|
91
91
|
finalHoverColor = (0, _polished.shade)(0.2, renderedColor);
|
|
92
92
|
} else {
|
|
93
|
-
finalColor = "var(--
|
|
93
|
+
finalColor = "var(--colorsYin090)";
|
|
94
94
|
finalHoverColor = "var(--colorsYin090)";
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -103,9 +103,6 @@ const StyledIcon = _styledComponents.default.span`
|
|
|
103
103
|
});
|
|
104
104
|
bgColor = backgroundColor;
|
|
105
105
|
bgHoverColor = (0, _polished.shade)(0.2, backgroundColor);
|
|
106
|
-
} else if (disabled) {
|
|
107
|
-
bgColor = "var(--colorsYin030)";
|
|
108
|
-
bgHoverColor = "var(--colorsYin030)";
|
|
109
106
|
} else {
|
|
110
107
|
bgColor = "transparent";
|
|
111
108
|
bgHoverColor = "transparent";
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _styledComponents =
|
|
8
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
|
|
10
10
|
var _formStyle = require("../form/form.style.js");
|
|
11
11
|
|
|
@@ -15,6 +15,10 @@ var _pod = _interopRequireDefault(require("../pod"));
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
19
|
+
|
|
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; }
|
|
21
|
+
|
|
18
22
|
const StyledPod = (0, _styledComponents.default)(_pod.default)`
|
|
19
23
|
${_formStyle.StyledFormFooter} {
|
|
20
24
|
margin-top: 24px;
|
|
@@ -22,6 +26,13 @@ const StyledPod = (0, _styledComponents.default)(_pod.default)`
|
|
|
22
26
|
|
|
23
27
|
${_podStyle.StyledContent} {
|
|
24
28
|
padding: 16px;
|
|
29
|
+
${({
|
|
30
|
+
softDelete
|
|
31
|
+
}) => softDelete && (0, _styledComponents.css)`
|
|
32
|
+
[data-element="content-title"] {
|
|
33
|
+
color: var(--colorsUtilityYin030);
|
|
34
|
+
}
|
|
35
|
+
`}
|
|
25
36
|
}
|
|
26
37
|
|
|
27
38
|
.common-input__prefix {
|
|
@@ -7,27 +7,16 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
10
|
-
var _base = _interopRequireDefault(require("../../../../style/themes/base"));
|
|
11
|
-
|
|
12
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
|
|
14
12
|
const SidebarHeaderStyle = _styledComponents.default.div`
|
|
15
|
-
background-color:
|
|
16
|
-
|
|
17
|
-
}) => theme.colors.white};
|
|
18
|
-
box-shadow: inset 0 -1px 0 0 ${({
|
|
19
|
-
theme
|
|
20
|
-
}) => theme.disabled.border};
|
|
13
|
+
background-color: var(--colorsUtilityMajor025);
|
|
14
|
+
box-shadow: inset 0 -1px 0 0 var(--colorsUtilityMajor100);
|
|
21
15
|
box-sizing: border-box;
|
|
22
16
|
width: 100%;
|
|
23
|
-
color:
|
|
24
|
-
theme
|
|
25
|
-
}) => theme.text.color};
|
|
17
|
+
color: var(--colorsActionMinorYin090);
|
|
26
18
|
transition: all 0.2s ease;
|
|
27
19
|
padding: 27px 32px 32px 32px;
|
|
28
20
|
`;
|
|
29
|
-
SidebarHeaderStyle.defaultProps = {
|
|
30
|
-
theme: _base.default
|
|
31
|
-
};
|
|
32
21
|
var _default = SidebarHeaderStyle;
|
|
33
22
|
exports.default = _default;
|
|
@@ -261,16 +261,6 @@ declare function _default(palette: any): {
|
|
|
261
261
|
warningButtonFocus: any;
|
|
262
262
|
errorButtonFocus: any;
|
|
263
263
|
};
|
|
264
|
-
scrollbar: {
|
|
265
|
-
light: {
|
|
266
|
-
thumb: any;
|
|
267
|
-
track: any;
|
|
268
|
-
};
|
|
269
|
-
dark: {
|
|
270
|
-
thumb: any;
|
|
271
|
-
track: any;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
264
|
search: {
|
|
275
265
|
active: any;
|
|
276
266
|
button: string;
|
|
@@ -280,16 +280,6 @@ var _default = palette => {
|
|
|
280
280
|
warningButtonFocus: palette.carrotOrange,
|
|
281
281
|
errorButtonFocus: palette.errorRedShade(20)
|
|
282
282
|
},
|
|
283
|
-
scrollbar: {
|
|
284
|
-
light: {
|
|
285
|
-
thumb: palette.slateTint(40),
|
|
286
|
-
track: palette.slateTint(95)
|
|
287
|
-
},
|
|
288
|
-
dark: {
|
|
289
|
-
thumb: palette.slateTint(60),
|
|
290
|
-
track: palette.slateTint(20)
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
283
|
search: {
|
|
294
284
|
active: palette.gold,
|
|
295
285
|
button: "#255BC7",
|
|
@@ -294,18 +294,6 @@ export interface ThemeObject {
|
|
|
294
294
|
errorButtonFocus: string;
|
|
295
295
|
};
|
|
296
296
|
|
|
297
|
-
scrollbar: {
|
|
298
|
-
light: {
|
|
299
|
-
thumb: string;
|
|
300
|
-
track: string;
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
dark: {
|
|
304
|
-
thumb: string;
|
|
305
|
-
track: string;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
|
|
309
297
|
search: {
|
|
310
298
|
active: string;
|
|
311
299
|
button: string;
|
|
@@ -578,16 +578,6 @@ declare var _default: {
|
|
|
578
578
|
warningButtonFocus: string;
|
|
579
579
|
errorButtonFocus: string;
|
|
580
580
|
};
|
|
581
|
-
scrollbar: {
|
|
582
|
-
light: {
|
|
583
|
-
thumb: string;
|
|
584
|
-
track: string;
|
|
585
|
-
};
|
|
586
|
-
dark: {
|
|
587
|
-
thumb: string;
|
|
588
|
-
track: string;
|
|
589
|
-
};
|
|
590
|
-
};
|
|
591
581
|
search: {
|
|
592
582
|
active: string;
|
|
593
583
|
button: string;
|