@galaxy-ds/core 1.1.64 → 1.1.67
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 +23 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +23 -9
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -33926,9 +33926,10 @@ var AvatarsGroup = function (props) {
|
|
|
33926
33926
|
}
|
|
33927
33927
|
var clampedMax = props.max < 2 ? 2 : props.max;
|
|
33928
33928
|
var avatarCount = props.children.length > clampedMax ? props.children.length - clampedMax + 1 : 0;
|
|
33929
|
+
var count = props.children.length >= 2;
|
|
33929
33930
|
var avatars = props.children.length > 1 ? props.children.slice(0, props.children.length - avatarCount) : props.children;
|
|
33930
33931
|
return (React__default.createElement(React__default.Fragment, null, tooltip ?
|
|
33931
|
-
React__default.createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(classes.avatarBorder, sizeProp, colorProp) }),
|
|
33932
|
+
React__default.createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(count && classes.avatarBorder, sizeProp, colorProp) }),
|
|
33932
33933
|
React__default.Children.map(avatars, function (child) {
|
|
33933
33934
|
return React__default.cloneElement(child);
|
|
33934
33935
|
}),
|
|
@@ -33936,7 +33937,7 @@ var AvatarsGroup = function (props) {
|
|
|
33936
33937
|
"+",
|
|
33937
33938
|
avatarCount)) : null)
|
|
33938
33939
|
:
|
|
33939
|
-
React__default.createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(classes.avatarBorder, sizeProp, colorProp) }), props.children)));
|
|
33940
|
+
React__default.createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(count && classes.avatarBorder, sizeProp, colorProp) }), props.children)));
|
|
33940
33941
|
};
|
|
33941
33942
|
|
|
33942
33943
|
var Box = function (props) {
|
|
@@ -35768,6 +35769,9 @@ var useStyles$a = makeStyles(function (theme) {
|
|
|
35768
35769
|
justifyContent: "space-between",
|
|
35769
35770
|
alignItems: "flex-end",
|
|
35770
35771
|
}); },
|
|
35772
|
+
toolbarContent: {
|
|
35773
|
+
marginTop: '10px',
|
|
35774
|
+
}
|
|
35771
35775
|
});
|
|
35772
35776
|
});
|
|
35773
35777
|
var HeaderToolbar = function (_a) {
|
|
@@ -35779,7 +35783,7 @@ var HeaderToolbar = function (_a) {
|
|
|
35779
35783
|
React__default.createElement(Box$2, { className: clsx(classes.toolbarContainer, "gds-toolbar-title") },
|
|
35780
35784
|
title && (tooltip ? (React__default.createElement(Tooltip, { title: title, placement: "bottom-start" },
|
|
35781
35785
|
React__default.createElement(Typography, { gutterBottom: true, variant: "h4", noWrap: true, upperCase: true }, title))) : (React__default.createElement(Typography, { gutterBottom: true, variant: "h4", noWrap: true, upperCase: true }, title))),
|
|
35782
|
-
left),
|
|
35786
|
+
React__default.createElement(Box$2, { className: clsx(classes.toolbarContent) }, left)),
|
|
35783
35787
|
right && (React__default.createElement(Box$2, { className: clsx("gds-buttons-w-divider", classes.containerDivider) }, right)))));
|
|
35784
35788
|
};
|
|
35785
35789
|
|
|
@@ -46916,7 +46920,6 @@ var themeWeb = createTheme({
|
|
|
46916
46920
|
fontSize: typography$1.h4.fontSize,
|
|
46917
46921
|
fontWeight: typography$1.h4.fontWeight,
|
|
46918
46922
|
lineHeight: typography$1.h4.lineHeight,
|
|
46919
|
-
marginBottom: '24px',
|
|
46920
46923
|
}
|
|
46921
46924
|
}
|
|
46922
46925
|
},
|
|
@@ -47669,7 +47672,6 @@ var themeWeb = createTheme({
|
|
|
47669
47672
|
lineHeight: 1.5715,
|
|
47670
47673
|
letterSpacing: '0.01rem',
|
|
47671
47674
|
padding: '.25rem 1.25rem',
|
|
47672
|
-
'&.gds-startIcon': {},
|
|
47673
47675
|
'&:hover': {
|
|
47674
47676
|
backgroundColor: pallettes$1.brand.primary.transparent,
|
|
47675
47677
|
color: pallettes$1.brand.primary.main,
|
|
@@ -47697,10 +47699,10 @@ var themeWeb = createTheme({
|
|
|
47697
47699
|
},
|
|
47698
47700
|
},
|
|
47699
47701
|
"&.gds-menu-item-icon": {
|
|
47700
|
-
paddingLeft:
|
|
47702
|
+
paddingLeft: 36,
|
|
47701
47703
|
"& .MuiListItemIcon-root": {
|
|
47702
47704
|
position: 'absolute',
|
|
47703
|
-
left:
|
|
47705
|
+
left: 12,
|
|
47704
47706
|
}
|
|
47705
47707
|
},
|
|
47706
47708
|
'&.gds-drawer-menu-item-dark': {
|
|
@@ -49018,14 +49020,26 @@ var themeDesktop = createTheme({
|
|
|
49018
49020
|
backgroundColor: pallettes.brand.utility.accent.dark,
|
|
49019
49021
|
color: '#fff',
|
|
49020
49022
|
cursor: 'default',
|
|
49023
|
+
'&:not($selected) svg': {
|
|
49024
|
+
color: pallettes.brand.primary.contrastText,
|
|
49025
|
+
},
|
|
49021
49026
|
}, '&:hover .MuiListItemText-root .MuiTypography-root': {
|
|
49022
49027
|
color: '#fff',
|
|
49023
49028
|
}, '&$selected': {
|
|
49024
49029
|
backgroundColor: pallettes.brand.background.selected,
|
|
49025
49030
|
color: '#fff',
|
|
49031
|
+
'& svg': {
|
|
49032
|
+
color: pallettes.grey['50'],
|
|
49033
|
+
},
|
|
49034
|
+
}, '&.gds-menu-item-checked': {
|
|
49035
|
+
"&:not($selected) svg": {
|
|
49036
|
+
color: pallettes.pallette.action.selected,
|
|
49037
|
+
},
|
|
49026
49038
|
}, "&.gds-menu-item-icon": {
|
|
49039
|
+
paddingLeft: 24,
|
|
49027
49040
|
"& .MuiListItemIcon-root": {
|
|
49028
|
-
|
|
49041
|
+
position: 'absolute',
|
|
49042
|
+
left: 3,
|
|
49029
49043
|
}
|
|
49030
49044
|
}, '.customMultipleList &$selected': {
|
|
49031
49045
|
backgroundColor: '#fff',
|
|
@@ -49290,7 +49304,7 @@ var themeDesktop = createTheme({
|
|
|
49290
49304
|
color: pallettes.brand.text.main,
|
|
49291
49305
|
"&.MuiTypography-h4": {
|
|
49292
49306
|
".gds-toolbar-title &": {
|
|
49293
|
-
marginBottom: '
|
|
49307
|
+
marginBottom: '0',
|
|
49294
49308
|
color: pallettes.brand.primary.light + " !important",
|
|
49295
49309
|
}
|
|
49296
49310
|
}
|