carbon-react 111.3.0 → 111.3.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/loader-bar/loader-bar.component.d.ts +4 -1
- package/esm/components/loader-bar/loader-bar.component.js +2 -0
- package/esm/components/multi-action-button/multi-action-button.component.js +1 -1
- package/esm/components/multi-action-button/multi-action-button.style.js +9 -1
- package/lib/components/loader-bar/loader-bar.component.d.ts +4 -1
- package/lib/components/loader-bar/loader-bar.component.js +3 -1
- package/lib/components/multi-action-button/multi-action-button.component.js +1 -1
- package/lib/components/multi-action-button/multi-action-button.style.js +9 -1
- package/package.json +1 -1
|
@@ -3,5 +3,8 @@ import { MarginProps } from "styled-system";
|
|
|
3
3
|
import { StyledLoaderBarProps } from "./loader-bar.style";
|
|
4
4
|
export interface LoaderBarProps extends StyledLoaderBarProps, MarginProps {
|
|
5
5
|
}
|
|
6
|
-
declare const LoaderBar:
|
|
6
|
+
export declare const LoaderBar: {
|
|
7
|
+
({ size, ...rest }: LoaderBarProps): JSX.Element;
|
|
8
|
+
DisplayName: string;
|
|
9
|
+
};
|
|
7
10
|
export default LoaderBar;
|
|
@@ -132,7 +132,7 @@ const MultiActionButton = ({
|
|
|
132
132
|
"data-element": "toggle-button",
|
|
133
133
|
key: "toggle-button"
|
|
134
134
|
}, mainButtonProps, {
|
|
135
|
-
|
|
135
|
+
ref: buttonRef,
|
|
136
136
|
iconPosition: "after",
|
|
137
137
|
iconType: "dropdown"
|
|
138
138
|
}), text), showAdditionalButtons && renderAdditionalButtons());
|
|
@@ -67,12 +67,20 @@ const StyledButtonChildrenContainer = styled.div`
|
|
|
67
67
|
${StyledButton} {
|
|
68
68
|
border: 1px solid var(--colorsActionMajorTransparent);
|
|
69
69
|
color: var(--colorsActionMajor500);
|
|
70
|
-
display:
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: ${align};
|
|
71
72
|
margin-left: 0;
|
|
72
73
|
min-width: 100%;
|
|
73
74
|
text-align: ${align};
|
|
74
75
|
z-index: ${theme.zIndex.overlay};
|
|
75
76
|
|
|
77
|
+
/* Styling for Safari. Display flex is not supported on buttons in Safari. */
|
|
78
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
79
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
|
|
80
|
+
display: -webkit-box;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
76
84
|
&:focus,
|
|
77
85
|
&:hover {
|
|
78
86
|
background-color: var(--colorsActionMajor600);
|
|
@@ -3,5 +3,8 @@ import { MarginProps } from "styled-system";
|
|
|
3
3
|
import { StyledLoaderBarProps } from "./loader-bar.style";
|
|
4
4
|
export interface LoaderBarProps extends StyledLoaderBarProps, MarginProps {
|
|
5
5
|
}
|
|
6
|
-
declare const LoaderBar:
|
|
6
|
+
export declare const LoaderBar: {
|
|
7
|
+
({ size, ...rest }: LoaderBarProps): JSX.Element;
|
|
8
|
+
DisplayName: string;
|
|
9
|
+
};
|
|
7
10
|
export default LoaderBar;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
6
|
+
exports.default = exports.LoaderBar = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -32,6 +32,7 @@ const LoaderBar = ({
|
|
|
32
32
|
})));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
+
exports.LoaderBar = LoaderBar;
|
|
35
36
|
LoaderBar.propTypes = {
|
|
36
37
|
"m": _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf([null]), _propTypes.default.number, _propTypes.default.shape({
|
|
37
38
|
"__@toStringTag": _propTypes.default.string.isRequired,
|
|
@@ -189,5 +190,6 @@ LoaderBar.propTypes = {
|
|
|
189
190
|
}), _propTypes.default.string]),
|
|
190
191
|
"size": _propTypes.default.oneOf(["large", "medium", "small"])
|
|
191
192
|
};
|
|
193
|
+
LoaderBar.DisplayName = "Loader Bar";
|
|
192
194
|
var _default = LoaderBar;
|
|
193
195
|
exports.default = _default;
|
|
@@ -153,7 +153,7 @@ const MultiActionButton = ({
|
|
|
153
153
|
"data-element": "toggle-button",
|
|
154
154
|
key: "toggle-button"
|
|
155
155
|
}, mainButtonProps, {
|
|
156
|
-
|
|
156
|
+
ref: buttonRef,
|
|
157
157
|
iconPosition: "after",
|
|
158
158
|
iconType: "dropdown"
|
|
159
159
|
}), text), showAdditionalButtons && renderAdditionalButtons());
|
|
@@ -86,12 +86,20 @@ const StyledButtonChildrenContainer = _styledComponents.default.div`
|
|
|
86
86
|
${_button.default} {
|
|
87
87
|
border: 1px solid var(--colorsActionMajorTransparent);
|
|
88
88
|
color: var(--colorsActionMajor500);
|
|
89
|
-
display:
|
|
89
|
+
display: flex;
|
|
90
|
+
justify-content: ${align};
|
|
90
91
|
margin-left: 0;
|
|
91
92
|
min-width: 100%;
|
|
92
93
|
text-align: ${align};
|
|
93
94
|
z-index: ${theme.zIndex.overlay};
|
|
94
95
|
|
|
96
|
+
/* Styling for Safari. Display flex is not supported on buttons in Safari. */
|
|
97
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
98
|
+
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
|
|
99
|
+
display: -webkit-box;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
95
103
|
&:focus,
|
|
96
104
|
&:hover {
|
|
97
105
|
background-color: var(--colorsActionMajor600);
|