@galaxy-ds/core 1.1.55 → 1.1.58

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,6 +35710,9 @@ var useStyles$a = makeStyles(function (theme) {
35710
35710
  : 'none',
35711
35711
  }); },
35712
35712
  containerDivider: function (props) { return ({
35713
+ flexShrink: 0,
35714
+ display: 'flex',
35715
+ flexDirection: 'row',
35713
35716
  borderLeft: props.divider === undefined
35714
35717
  ? theme.shape.borderRadius === 0
35715
35718
  ? "1px solid " + common.brand.utility.border
@@ -35718,17 +35721,28 @@ var useStyles$a = makeStyles(function (theme) {
35718
35721
  ? "1px solid " + common.brand.utility.border
35719
35722
  : 'none',
35720
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
+ }); },
35721
35735
  });
35722
35736
  });
35723
35737
  var HeaderToolbar = function (_a) {
35724
35738
  var _b;
35725
- 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"]);
35726
- 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 });
35727
35741
  return (React__default["default"].createElement(Toolbar$2, { className: clsx('gds-header-toolbar', classes.bgWrapper, (_b = {}, _b['with-title'] = titleVisibility, _b)) },
35728
- React__default["default"].createElement(Box$2, { display: "flex", justifyContent: "space-between", alignItems: "flex-end", style: { width: '100%' } },
35729
- React__default["default"].createElement(Box$2, { display: "flex", flexDirection: "column", justifyContent: "stretch" },
35730
- title && (React__default["default"].createElement(Box$2, { className: clsx("gds-header-toolbar-title", classes.titleVis), mb: 3 },
35731
- React__default["default"].createElement(Typography, { variant: "h1", 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))),
35732
35746
  left),
35733
35747
  right && (React__default["default"].createElement(Box$2, { className: clsx("gds-buttons-w-divider", classes.containerDivider) }, right)))));
35734
35748
  };
@@ -35940,7 +35954,7 @@ var Tag = React__default["default"].forwardRef(function (props, ref) {
35940
35954
  });
35941
35955
 
35942
35956
  function LeapLogo(props) {
35943
- return (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.size + "px", viewBox: "0 0 142 60" },
35957
+ return (React__default["default"].createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.width, viewBox: "0 0 142 60" },
35944
35958
  React__default["default"].createElement("path", { fill: "#f69139", d: "M2,10.0002 L9.75846683,10.0002 L9.75846683,41.99924 L27.5974176,41.99924 L30.9207597,50 L2,50 L2,10.0002 Z M63.8025461,17.99876 L40.7008366,17.99876 L40.7008366,25.99352 L56.1077126,25.99352 L56.1077126,33.99628 L40.7008366,33.99628 L40.7008366,41.99904 L63.8025461,41.99904 L63.8025461,49.9998 L33,49.9998 L33,10 L63.8025461,10 L63.8025461,17.99876 Z M116.448143,33.99636 L116.30847,49.99988 L108.550003,49.99988 L108.550003,10.00008 L127.948171,10.00008 C135.935456,10.00008 139.972317,15.9915384 140.001958,22 C140.031507,27.9896489 136.07889,33.99636 128.087844,33.99636 L116.448143,33.99636 Z M98.2230148,49.99984 L94.9072768,41.99908 L76.7701697,41.99908 L73.4556323,49.99984 L65,49.99984 L81.5742879,10.00004 L81.6483267,10.00004 L90.0303204,10.00004 L90.1043592,10.00004 L106.679047,49.99984 L98.2230148,49.99984 Z M116.544807,26.0279999 L128.184508,25.9936 C133.919514,25.9936 133.72141,17.99884 128.044835,17.99884 L116.529999,17.99884 L116.544807,26.0279999 Z M80.0899963,33.99632 L91.5948269,33.99632 L85.8426117,20.1139894 L80.0899963,33.99632 Z" })));
35945
35959
  }
35946
35960
 
@@ -48708,9 +48722,9 @@ var themeDesktop = createTheme({
48708
48722
  },
48709
48723
  },
48710
48724
  adornedStart: {
48711
- '&.customdropdown > svg:first-child': {
48725
+ '& svg:first-child': {
48712
48726
  marginLeft: 3,
48713
- },
48727
+ }
48714
48728
  },
48715
48729
  input: {
48716
48730
  fontSize: '0.875rem',