carbon-react 104.45.0 → 104.48.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/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/date/__internal__/date-picker/day-picker.style.js +4 -4
- package/esm/components/date/__internal__/weekday/weekday.style.js +1 -1
- package/esm/components/date-range/date-range.style.js +1 -1
- 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/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/date/__internal__/date-picker/day-picker.style.js +4 -4
- package/lib/components/date/__internal__/weekday/weekday.style.js +1 -1
- package/lib/components/date-range/date-range.style.js +1 -1
- 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/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 };
|
|
@@ -231,7 +231,7 @@ const StyledDayPicker = styled.div`
|
|
|
231
231
|
color: var(--colorsActionMajorYin090);
|
|
232
232
|
line-height: var(--sizing500);
|
|
233
233
|
height: var(--sizing500);
|
|
234
|
-
//font: var(--typographyDatePickerCalendarMonthM); to be
|
|
234
|
+
//font: var(--typographyDatePickerCalendarMonthM); font assets to be updated part of FE-4975
|
|
235
235
|
font-size: 16px;
|
|
236
236
|
font-weight: 800;
|
|
237
237
|
|
|
@@ -243,13 +243,13 @@ const StyledDayPicker = styled.div`
|
|
|
243
243
|
|
|
244
244
|
.DayPicker-Day {
|
|
245
245
|
min-width: var(--sizing500);
|
|
246
|
-
height:
|
|
246
|
+
height: var(--sizing450);
|
|
247
247
|
padding: 0;
|
|
248
248
|
background-color: var(--colorsUtilityYang100);
|
|
249
249
|
cursor: pointer;
|
|
250
250
|
border: none;
|
|
251
|
-
//font-family: var(--fontFamiliesDefault);
|
|
252
|
-
//font: var(--typographyDatePickerCalendarDateM); to be
|
|
251
|
+
//font-family: var(--fontFamiliesDefault); font assets to be updated part of FE-4975
|
|
252
|
+
//font: var(--typographyDatePickerCalendarDateM); font assets to be updated part of FE-4975
|
|
253
253
|
font-weight: var(--fontWeights700);
|
|
254
254
|
font-size: var(--fontSizes100);
|
|
255
255
|
line-height: var(--lineHeights500);
|
|
@@ -9,7 +9,7 @@ const StyledWeekday = styled.div`
|
|
|
9
9
|
color: var(--colorsActionMinor400);
|
|
10
10
|
text-transform: uppercase;
|
|
11
11
|
font-size: 12px;
|
|
12
|
-
//font: var(--typographyDatePickerCalendarDayM) to be
|
|
12
|
+
//font: var(--typographyDatePickerCalendarDayM) font assets to be updated part of FE-4975
|
|
13
13
|
text-align: center;
|
|
14
14
|
padding: 20px 0 5px;
|
|
15
15
|
box-sizing: border-box;
|
|
@@ -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
|
`;
|
|
@@ -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;
|
|
@@ -242,7 +242,7 @@ const StyledDayPicker = _styledComponents.default.div`
|
|
|
242
242
|
color: var(--colorsActionMajorYin090);
|
|
243
243
|
line-height: var(--sizing500);
|
|
244
244
|
height: var(--sizing500);
|
|
245
|
-
//font: var(--typographyDatePickerCalendarMonthM); to be
|
|
245
|
+
//font: var(--typographyDatePickerCalendarMonthM); font assets to be updated part of FE-4975
|
|
246
246
|
font-size: 16px;
|
|
247
247
|
font-weight: 800;
|
|
248
248
|
|
|
@@ -254,13 +254,13 @@ const StyledDayPicker = _styledComponents.default.div`
|
|
|
254
254
|
|
|
255
255
|
.DayPicker-Day {
|
|
256
256
|
min-width: var(--sizing500);
|
|
257
|
-
height:
|
|
257
|
+
height: var(--sizing450);
|
|
258
258
|
padding: 0;
|
|
259
259
|
background-color: var(--colorsUtilityYang100);
|
|
260
260
|
cursor: pointer;
|
|
261
261
|
border: none;
|
|
262
|
-
//font-family: var(--fontFamiliesDefault);
|
|
263
|
-
//font: var(--typographyDatePickerCalendarDateM); to be
|
|
262
|
+
//font-family: var(--fontFamiliesDefault); font assets to be updated part of FE-4975
|
|
263
|
+
//font: var(--typographyDatePickerCalendarDateM); font assets to be updated part of FE-4975
|
|
264
264
|
font-weight: var(--fontWeights700);
|
|
265
265
|
font-size: var(--fontSizes100);
|
|
266
266
|
line-height: var(--lineHeights500);
|
|
@@ -19,7 +19,7 @@ const StyledWeekday = _styledComponents.default.div`
|
|
|
19
19
|
color: var(--colorsActionMinor400);
|
|
20
20
|
text-transform: uppercase;
|
|
21
21
|
font-size: 12px;
|
|
22
|
-
//font: var(--typographyDatePickerCalendarDayM) to be
|
|
22
|
+
//font: var(--typographyDatePickerCalendarDayM) font assets to be updated part of FE-4975
|
|
23
23
|
text-align: center;
|
|
24
24
|
padding: 20px 0 5px;
|
|
25
25
|
box-sizing: border-box;
|
|
@@ -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
|
`;
|
|
@@ -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;
|