carbon-react 104.11.0 → 104.13.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.
|
@@ -9,8 +9,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
|
|
10
10
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
11
|
|
|
12
|
-
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
13
|
-
|
|
14
12
|
var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
@@ -63,41 +61,35 @@ const StyledButtonToggleLabel = _styledComponents.default.label`
|
|
|
63
61
|
padding: 0 ${paddingConfig[size]}px;
|
|
64
62
|
font-size: ${fontSizeConfig[size]}px;
|
|
65
63
|
`}
|
|
66
|
-
font-weight:
|
|
64
|
+
font-weight: 700;
|
|
67
65
|
cursor: pointer;
|
|
68
66
|
|
|
69
|
-
|
|
70
|
-
theme
|
|
71
|
-
}) => (0, _styledComponents.css)`
|
|
72
|
-
border: 1px solid ${theme.colors.border};
|
|
73
|
-
background-color: ${theme.colors.white};
|
|
67
|
+
border: 1px solid var(--colorsActionMinor500);
|
|
74
68
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
${_icon.default} {
|
|
70
|
+
color: var(--colorsActionMinor500);
|
|
71
|
+
}
|
|
78
72
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
73
|
+
input:checked ~ && {
|
|
74
|
+
background-color: var(--colorsActionMinor300);
|
|
75
|
+
color: var(--colorsActionMinor600);
|
|
76
|
+
cursor: auto;
|
|
77
|
+
}
|
|
85
78
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
79
|
+
input:focus ~ & {
|
|
80
|
+
outline: 3px solid var(--colorsSemanticFocus500);
|
|
81
|
+
z-index: 100;
|
|
82
|
+
}
|
|
90
83
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
input:not(:checked):not(:disabled) ~ &:hover {
|
|
85
|
+
background-color: var(--colorsActionMinor200);
|
|
86
|
+
border-color: var(--colorsActionMinor500);
|
|
87
|
+
color: var(--colorsActionMinor500);
|
|
95
88
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
89
|
+
${_icon.default} {
|
|
90
|
+
color: var(--colorsActionMinor500);
|
|
99
91
|
}
|
|
100
|
-
|
|
92
|
+
}
|
|
101
93
|
|
|
102
94
|
${({
|
|
103
95
|
buttonIcon,
|
|
@@ -113,16 +105,14 @@ const StyledButtonToggleLabel = _styledComponents.default.label`
|
|
|
113
105
|
`}
|
|
114
106
|
|
|
115
107
|
${({
|
|
116
|
-
disabled
|
|
117
|
-
theme
|
|
108
|
+
disabled
|
|
118
109
|
}) => disabled && (0, _styledComponents.css)`
|
|
119
110
|
& {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
color: ${theme.disabled.buttonText};
|
|
111
|
+
border-color: var(--colorsActionDisabled500);
|
|
112
|
+
color: var(--colorsActionMinorYin030);
|
|
123
113
|
|
|
124
114
|
${_icon.default} {
|
|
125
|
-
color:
|
|
115
|
+
color: var(--colorsActionMinorYin030);
|
|
126
116
|
}
|
|
127
117
|
}
|
|
128
118
|
cursor: not-allowed;
|
|
@@ -188,10 +178,4 @@ const StyledButtonToggleInput = _styledComponents.default.input`
|
|
|
188
178
|
exports.StyledButtonToggleInput = StyledButtonToggleInput;
|
|
189
179
|
StyledButtonToggleIcon.propTypes = {
|
|
190
180
|
buttonIconSize: _propTypes.default.string
|
|
191
|
-
};
|
|
192
|
-
StyledButtonToggleLabel.defaultProps = {
|
|
193
|
-
theme: _base.default
|
|
194
|
-
};
|
|
195
|
-
StyledButtonToggleLabel.defaultProps = {
|
|
196
|
-
theme: _base.default
|
|
197
181
|
};
|
|
@@ -11,8 +11,6 @@ var _buttonToggle = require("../button-toggle/button-toggle.style");
|
|
|
11
11
|
|
|
12
12
|
var _validationIcon = _interopRequireDefault(require("../../__internal__/validations/validation-icon.style"));
|
|
13
13
|
|
|
14
|
-
var _base = _interopRequireDefault(require("../../style/themes/base"));
|
|
15
|
-
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
15
|
|
|
18
16
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
@@ -30,24 +28,21 @@ const ButtonToggleGroupStyle = _styledComponents.default.div`
|
|
|
30
28
|
|
|
31
29
|
${_buttonToggle.StyledButtonToggleLabel} {
|
|
32
30
|
${({
|
|
33
|
-
theme,
|
|
34
31
|
info
|
|
35
32
|
}) => info && (0, _styledComponents.css)`
|
|
36
|
-
border-color:
|
|
33
|
+
border-color: var(--colorsActionMinor500);
|
|
37
34
|
`};
|
|
38
35
|
${({
|
|
39
|
-
theme,
|
|
40
36
|
warning
|
|
41
37
|
}) => warning && (0, _styledComponents.css)`
|
|
42
|
-
border-color:
|
|
38
|
+
border-color: var(--colorsSemanticCaution500);
|
|
43
39
|
`}
|
|
44
40
|
${({
|
|
45
|
-
theme,
|
|
46
41
|
error
|
|
47
42
|
}) => error && (0, _styledComponents.css)`
|
|
48
|
-
box-shadow: inset 1px 1px 0
|
|
49
|
-
inset -1px -1px 0
|
|
50
|
-
border-color:
|
|
43
|
+
box-shadow: inset 1px 1px 0 var(--colorsSemanticNegative500),
|
|
44
|
+
inset -1px -1px 0 var(--colorsSemanticNegative500);
|
|
45
|
+
border-color: var(--colorsSemanticNegative500);
|
|
51
46
|
`}
|
|
52
47
|
}
|
|
53
48
|
|
|
@@ -55,8 +50,5 @@ const ButtonToggleGroupStyle = _styledComponents.default.div`
|
|
|
55
50
|
margin-left: 4px;
|
|
56
51
|
}
|
|
57
52
|
`;
|
|
58
|
-
ButtonToggleGroupStyle.defaultProps = {
|
|
59
|
-
theme: _base.default
|
|
60
|
-
};
|
|
61
53
|
var _default = ButtonToggleGroupStyle;
|
|
62
54
|
exports.default = _default;
|
|
@@ -65,24 +65,25 @@ const StyledNavigationBar = _styledComponents.default.nav`
|
|
|
65
65
|
z-index: ${theme.zIndex.nav};
|
|
66
66
|
|
|
67
67
|
${navigationType === "light" && (0, _styledComponents.css)`
|
|
68
|
-
background-color:
|
|
69
|
-
border-bottom:
|
|
68
|
+
background-color: var(--colorsComponentsMenuSpringStandard500);
|
|
69
|
+
border-bottom: var(--borderWidth100) solid
|
|
70
|
+
var(--colorsComponentsMenuSpringChildAlt500);
|
|
70
71
|
`}
|
|
71
72
|
|
|
72
73
|
${navigationType === "dark" && (0, _styledComponents.css)`
|
|
73
|
-
background-color:
|
|
74
|
-
|
|
75
|
-
color: ${theme.colors.white};
|
|
74
|
+
background-color: var(--colorsComponentsMenuAutumnStandard500);
|
|
75
|
+
color: var(--colorsComponentsMenuYang100);
|
|
76
76
|
`}
|
|
77
77
|
|
|
78
78
|
${navigationType === "black" && (0, _styledComponents.css)`
|
|
79
|
-
background-color:
|
|
80
|
-
color:
|
|
79
|
+
background-color: var(--colorsComponentsMenuWinterStandard500);
|
|
80
|
+
color: var(--colorsComponentsMenuYang100);
|
|
81
81
|
`}
|
|
82
82
|
|
|
83
83
|
${navigationType === "white" && (0, _styledComponents.css)`
|
|
84
|
-
background-color:
|
|
85
|
-
border-bottom:
|
|
84
|
+
background-color: var(--colorsComponentsMenuSummerStandard500);
|
|
85
|
+
border-bottom: var(--borderWidth100) solid
|
|
86
|
+
var(--colorsComponentsMenuSummerChildAlt500);
|
|
86
87
|
`}
|
|
87
88
|
`}
|
|
88
89
|
`;
|