@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.js
CHANGED
|
@@ -35710,8 +35710,9 @@ var useStyles$a = makeStyles(function (theme) {
|
|
|
35710
35710
|
: 'none',
|
|
35711
35711
|
}); },
|
|
35712
35712
|
containerDivider: function (props) { return ({
|
|
35713
|
+
flexShrink: 0,
|
|
35713
35714
|
display: 'flex',
|
|
35714
|
-
|
|
35715
|
+
flexDirection: 'row',
|
|
35715
35716
|
borderLeft: props.divider === undefined
|
|
35716
35717
|
? theme.shape.borderRadius === 0
|
|
35717
35718
|
? "1px solid " + common.brand.utility.border
|
|
@@ -35720,17 +35721,28 @@ var useStyles$a = makeStyles(function (theme) {
|
|
|
35720
35721
|
? "1px solid " + common.brand.utility.border
|
|
35721
35722
|
: 'none',
|
|
35722
35723
|
}); },
|
|
35724
|
+
toolbarContainer: function (props) { return ({
|
|
35725
|
+
paddingRight: '16px',
|
|
35726
|
+
display: 'grid',
|
|
35727
|
+
}); },
|
|
35728
|
+
toolbarWrap: function (props) { return ({
|
|
35729
|
+
width: '100%',
|
|
35730
|
+
overflow: 'hidden',
|
|
35731
|
+
display: "flex",
|
|
35732
|
+
justifyContent: "space-between",
|
|
35733
|
+
alignItems: "flex-end",
|
|
35734
|
+
}); },
|
|
35723
35735
|
});
|
|
35724
35736
|
});
|
|
35725
35737
|
var HeaderToolbar = function (_a) {
|
|
35726
35738
|
var _b;
|
|
35727
|
-
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"]);
|
|
35728
|
-
var classes = useStyles$a({ bgColor: bgColor, bgImageURL: bgImageURL, bgPosition: bgPosition, bgSize: bgSize, titleVisibility: titleVisibility, divider: divider });
|
|
35739
|
+
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"]);
|
|
35740
|
+
var classes = useStyles$a({ bgColor: bgColor, bgImageURL: bgImageURL, right: right, bgPosition: bgPosition, bgSize: bgSize, titleVisibility: titleVisibility, divider: divider });
|
|
35729
35741
|
return (React__default["default"].createElement(Toolbar$2, { className: clsx('gds-header-toolbar', classes.bgWrapper, (_b = {}, _b['with-title'] = titleVisibility, _b)) },
|
|
35730
|
-
React__default["default"].createElement(Box$2, {
|
|
35731
|
-
React__default["default"].createElement(Box$2, {
|
|
35732
|
-
title && (React__default["default"].createElement(
|
|
35733
|
-
React__default["default"].createElement(Typography, { variant: "h1", noWrap: true, color: "primary" }, title))),
|
|
35742
|
+
React__default["default"].createElement(Box$2, { className: clsx(classes.toolbarWrap) },
|
|
35743
|
+
React__default["default"].createElement(Box$2, { className: clsx(classes.toolbarContainer) },
|
|
35744
|
+
title && (tooltip ? (React__default["default"].createElement(Tooltip, { title: title, placement: "bottom-start" },
|
|
35745
|
+
React__default["default"].createElement(Typography, { gutterBottom: true, variant: "h1", noWrap: true, color: "primary" }, title))) : (React__default["default"].createElement(Typography, { gutterBottom: true, variant: "h1", noWrap: true, color: "primary" }, title))),
|
|
35734
35746
|
left),
|
|
35735
35747
|
right && (React__default["default"].createElement(Box$2, { className: clsx("gds-buttons-w-divider", classes.containerDivider) }, right)))));
|
|
35736
35748
|
};
|