@galaxy-ds/core 1.1.56 → 1.1.57
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/dist/index.esm.js
CHANGED
|
@@ -35683,8 +35683,9 @@ var useStyles$a = makeStyles(function (theme) {
|
|
|
35683
35683
|
: 'none',
|
|
35684
35684
|
}); },
|
|
35685
35685
|
containerDivider: function (props) { return ({
|
|
35686
|
+
flexShrink: 0,
|
|
35686
35687
|
display: 'flex',
|
|
35687
|
-
|
|
35688
|
+
flexDirection: 'row',
|
|
35688
35689
|
borderLeft: props.divider === undefined
|
|
35689
35690
|
? theme.shape.borderRadius === 0
|
|
35690
35691
|
? "1px solid " + common.brand.utility.border
|
|
@@ -35693,17 +35694,28 @@ var useStyles$a = makeStyles(function (theme) {
|
|
|
35693
35694
|
? "1px solid " + common.brand.utility.border
|
|
35694
35695
|
: 'none',
|
|
35695
35696
|
}); },
|
|
35697
|
+
toolbarContainer: function (props) { return ({
|
|
35698
|
+
paddingRight: '16px',
|
|
35699
|
+
display: 'grid',
|
|
35700
|
+
}); },
|
|
35701
|
+
toolbarWrap: function (props) { return ({
|
|
35702
|
+
width: '100%',
|
|
35703
|
+
overflow: 'hidden',
|
|
35704
|
+
display: "flex",
|
|
35705
|
+
justifyContent: "space-between",
|
|
35706
|
+
alignItems: "flex-end",
|
|
35707
|
+
}); },
|
|
35696
35708
|
});
|
|
35697
35709
|
});
|
|
35698
35710
|
var HeaderToolbar = function (_a) {
|
|
35699
35711
|
var _b;
|
|
35700
|
-
var title = _a.title, titleVisibility = _a.titleVisibility, left = _a.left, right = _a.right, bgColor = _a.bgColor, bgImageURL = _a.bgImageURL, _c = _a.bgPosition, bgPosition = _c === void 0 ? 'center' : _c, bgSize = _a.bgSize, divider = _a.divider; __rest(_a, ["title", "titleVisibility", "left", "right", "bgColor", "bgImageURL", "bgPosition", "bgSize", "divider"]);
|
|
35701
|
-
var classes = useStyles$a({ bgColor: bgColor, bgImageURL: bgImageURL, bgPosition: bgPosition, bgSize: bgSize, titleVisibility: titleVisibility, divider: divider });
|
|
35712
|
+
var title = _a.title, titleVisibility = _a.titleVisibility, left = _a.left, right = _a.right, bgColor = _a.bgColor, bgImageURL = _a.bgImageURL, _c = _a.bgPosition, bgPosition = _c === void 0 ? 'center' : _c, bgSize = _a.bgSize, divider = _a.divider, tooltip = _a.tooltip; __rest(_a, ["title", "titleVisibility", "left", "right", "bgColor", "bgImageURL", "bgPosition", "bgSize", "divider", "tooltip"]);
|
|
35713
|
+
var classes = useStyles$a({ bgColor: bgColor, bgImageURL: bgImageURL, right: right, bgPosition: bgPosition, bgSize: bgSize, titleVisibility: titleVisibility, divider: divider });
|
|
35702
35714
|
return (React__default.createElement(Toolbar$2, { className: clsx('gds-header-toolbar', classes.bgWrapper, (_b = {}, _b['with-title'] = titleVisibility, _b)) },
|
|
35703
|
-
React__default.createElement(Box$2, {
|
|
35704
|
-
React__default.createElement(Box$2, {
|
|
35705
|
-
title && (React__default.createElement(
|
|
35706
|
-
React__default.createElement(Typography, { variant: "h1", noWrap: true, color: "primary" }, title))),
|
|
35715
|
+
React__default.createElement(Box$2, { className: clsx(classes.toolbarWrap) },
|
|
35716
|
+
React__default.createElement(Box$2, { className: clsx(classes.toolbarContainer) },
|
|
35717
|
+
title && (tooltip ? (React__default.createElement(Tooltip, { title: title, placement: "bottom-start" },
|
|
35718
|
+
React__default.createElement(Typography, { gutterBottom: true, variant: "h1", noWrap: true, color: "primary" }, title))) : (React__default.createElement(Typography, { gutterBottom: true, variant: "h1", noWrap: true, color: "primary" }, title))),
|
|
35707
35719
|
left),
|
|
35708
35720
|
right && (React__default.createElement(Box$2, { className: clsx("gds-buttons-w-divider", classes.containerDivider) }, right)))));
|
|
35709
35721
|
};
|