@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.js
CHANGED
|
@@ -33953,9 +33953,10 @@ var AvatarsGroup = function (props) {
|
|
|
33953
33953
|
}
|
|
33954
33954
|
var clampedMax = props.max < 2 ? 2 : props.max;
|
|
33955
33955
|
var avatarCount = props.children.length > clampedMax ? props.children.length - clampedMax + 1 : 0;
|
|
33956
|
+
var count = props.children.length >= 2;
|
|
33956
33957
|
var avatars = props.children.length > 1 ? props.children.slice(0, props.children.length - avatarCount) : props.children;
|
|
33957
33958
|
return (React__default["default"].createElement(React__default["default"].Fragment, null, tooltip ?
|
|
33958
|
-
React__default["default"].createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(classes.avatarBorder, sizeProp, colorProp) }),
|
|
33959
|
+
React__default["default"].createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(count && classes.avatarBorder, sizeProp, colorProp) }),
|
|
33959
33960
|
React__default["default"].Children.map(avatars, function (child) {
|
|
33960
33961
|
return React__default["default"].cloneElement(child);
|
|
33961
33962
|
}),
|
|
@@ -33963,7 +33964,7 @@ var AvatarsGroup = function (props) {
|
|
|
33963
33964
|
"+",
|
|
33964
33965
|
avatarCount)) : null)
|
|
33965
33966
|
:
|
|
33966
|
-
React__default["default"].createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(classes.avatarBorder, sizeProp, colorProp) }), props.children)));
|
|
33967
|
+
React__default["default"].createElement(AvatarGroup$1, __assign$1({}, defaultProps, { spacing: 6, className: clsx(count && classes.avatarBorder, sizeProp, colorProp) }), props.children)));
|
|
33967
33968
|
};
|
|
33968
33969
|
|
|
33969
33970
|
var Box = function (props) {
|
|
@@ -35795,6 +35796,9 @@ var useStyles$a = makeStyles(function (theme) {
|
|
|
35795
35796
|
justifyContent: "space-between",
|
|
35796
35797
|
alignItems: "flex-end",
|
|
35797
35798
|
}); },
|
|
35799
|
+
toolbarContent: {
|
|
35800
|
+
marginTop: '10px',
|
|
35801
|
+
}
|
|
35798
35802
|
});
|
|
35799
35803
|
});
|
|
35800
35804
|
var HeaderToolbar = function (_a) {
|
|
@@ -35806,7 +35810,7 @@ var HeaderToolbar = function (_a) {
|
|
|
35806
35810
|
React__default["default"].createElement(Box$2, { className: clsx(classes.toolbarContainer, "gds-toolbar-title") },
|
|
35807
35811
|
title && (tooltip ? (React__default["default"].createElement(Tooltip, { title: title, placement: "bottom-start" },
|
|
35808
35812
|
React__default["default"].createElement(Typography, { gutterBottom: true, variant: "h4", noWrap: true, upperCase: true }, title))) : (React__default["default"].createElement(Typography, { gutterBottom: true, variant: "h4", noWrap: true, upperCase: true }, title))),
|
|
35809
|
-
left),
|
|
35813
|
+
React__default["default"].createElement(Box$2, { className: clsx(classes.toolbarContent) }, left)),
|
|
35810
35814
|
right && (React__default["default"].createElement(Box$2, { className: clsx("gds-buttons-w-divider", classes.containerDivider) }, right)))));
|
|
35811
35815
|
};
|
|
35812
35816
|
|
|
@@ -46943,7 +46947,6 @@ var themeWeb = createTheme({
|
|
|
46943
46947
|
fontSize: typography$1.h4.fontSize,
|
|
46944
46948
|
fontWeight: typography$1.h4.fontWeight,
|
|
46945
46949
|
lineHeight: typography$1.h4.lineHeight,
|
|
46946
|
-
marginBottom: '24px',
|
|
46947
46950
|
}
|
|
46948
46951
|
}
|
|
46949
46952
|
},
|
|
@@ -47696,7 +47699,6 @@ var themeWeb = createTheme({
|
|
|
47696
47699
|
lineHeight: 1.5715,
|
|
47697
47700
|
letterSpacing: '0.01rem',
|
|
47698
47701
|
padding: '.25rem 1.25rem',
|
|
47699
|
-
'&.gds-startIcon': {},
|
|
47700
47702
|
'&:hover': {
|
|
47701
47703
|
backgroundColor: pallettes$1.brand.primary.transparent,
|
|
47702
47704
|
color: pallettes$1.brand.primary.main,
|
|
@@ -47724,10 +47726,10 @@ var themeWeb = createTheme({
|
|
|
47724
47726
|
},
|
|
47725
47727
|
},
|
|
47726
47728
|
"&.gds-menu-item-icon": {
|
|
47727
|
-
paddingLeft:
|
|
47729
|
+
paddingLeft: 36,
|
|
47728
47730
|
"& .MuiListItemIcon-root": {
|
|
47729
47731
|
position: 'absolute',
|
|
47730
|
-
left:
|
|
47732
|
+
left: 12,
|
|
47731
47733
|
}
|
|
47732
47734
|
},
|
|
47733
47735
|
'&.gds-drawer-menu-item-dark': {
|
|
@@ -49045,14 +49047,26 @@ var themeDesktop = createTheme({
|
|
|
49045
49047
|
backgroundColor: pallettes.brand.utility.accent.dark,
|
|
49046
49048
|
color: '#fff',
|
|
49047
49049
|
cursor: 'default',
|
|
49050
|
+
'&:not($selected) svg': {
|
|
49051
|
+
color: pallettes.brand.primary.contrastText,
|
|
49052
|
+
},
|
|
49048
49053
|
}, '&:hover .MuiListItemText-root .MuiTypography-root': {
|
|
49049
49054
|
color: '#fff',
|
|
49050
49055
|
}, '&$selected': {
|
|
49051
49056
|
backgroundColor: pallettes.brand.background.selected,
|
|
49052
49057
|
color: '#fff',
|
|
49058
|
+
'& svg': {
|
|
49059
|
+
color: pallettes.grey['50'],
|
|
49060
|
+
},
|
|
49061
|
+
}, '&.gds-menu-item-checked': {
|
|
49062
|
+
"&:not($selected) svg": {
|
|
49063
|
+
color: pallettes.pallette.action.selected,
|
|
49064
|
+
},
|
|
49053
49065
|
}, "&.gds-menu-item-icon": {
|
|
49066
|
+
paddingLeft: 24,
|
|
49054
49067
|
"& .MuiListItemIcon-root": {
|
|
49055
|
-
|
|
49068
|
+
position: 'absolute',
|
|
49069
|
+
left: 3,
|
|
49056
49070
|
}
|
|
49057
49071
|
}, '.customMultipleList &$selected': {
|
|
49058
49072
|
backgroundColor: '#fff',
|
|
@@ -49317,7 +49331,7 @@ var themeDesktop = createTheme({
|
|
|
49317
49331
|
color: pallettes.brand.text.main,
|
|
49318
49332
|
"&.MuiTypography-h4": {
|
|
49319
49333
|
".gds-toolbar-title &": {
|
|
49320
|
-
marginBottom: '
|
|
49334
|
+
marginBottom: '0',
|
|
49321
49335
|
color: pallettes.brand.primary.light + " !important",
|
|
49322
49336
|
}
|
|
49323
49337
|
}
|