@galaxy-ds/core 2.1.6 → 2.1.8

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
@@ -875,7 +875,7 @@ var autocompleteOverrides$1 = {
875
875
  marginBottom: 0,
876
876
  },
877
877
  '& .MuiAutocomplete-input:first-of-type.MuiInputBase-input': {
878
- padding: '0 4px',
878
+ padding: '0 8px',
879
879
  },
880
880
  },
881
881
  inputRoot: {
@@ -1195,6 +1195,23 @@ var dropdownOverrides$1 = {
1195
1195
  fontSize: 12,
1196
1196
  display: 'none',
1197
1197
  },
1198
+ root: function () { return ({
1199
+ '&.MuiInputBase-adornedStart': {
1200
+ '.MuiSvgIcon-root': {
1201
+ fontSize: 16,
1202
+ left: 8,
1203
+ position: 'absolute',
1204
+ margin: 0,
1205
+ },
1206
+ },
1207
+ '&.customSelectInputBackground': {
1208
+ select: {
1209
+ '&.MuiOutlinedInput-input': {
1210
+ padding: 0,
1211
+ },
1212
+ },
1213
+ },
1214
+ }); },
1198
1215
  select: function (_a) {
1199
1216
  var theme = _a.theme;
1200
1217
  return (__assign(__assign({}, theme.typography.body1), { lineHeight: '1.375rem', background: "url(\"data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.0625 3.66666L9.9375 4.54166L6 8.47916L2.0625 4.54166L2.9375 3.66666L6 6.72916L9.0625 3.66666Z' fill='%23444444'/%3E%3C/svg%3E\") center right 3px no-repeat", cursor: 'default', '&.MuiInputBase-input': {
@@ -1204,12 +1221,16 @@ var dropdownOverrides$1 = {
1204
1221
  }, '.customLargeSize &': {
1205
1222
  height: 30,
1206
1223
  lineHeight: '30px',
1224
+ }, '&.MuiOutlinedInput-input': {
1225
+ zIndex: '1001',
1226
+ paddingLeft: 8,
1227
+ }, '&.MuiInputBase-inputAdornedStart.MuiOutlinedInput-input': {
1228
+ padding: '0 24px 0 32px',
1229
+ zIndex: '1001',
1207
1230
  }, '& .customSelectInputBackground': {
1208
1231
  borderColor: theme.palette.grey[500],
1209
1232
  cursor: 'default',
1210
1233
  '&:hover': {
1211
- // backgroundColor: pallettes.brand.background.accent.lighter,
1212
- // borderColor: pallettes.brand.utility.accent.dark,
1213
1234
  cursor: 'default',
1214
1235
  },
1215
1236
  } }));
@@ -1345,17 +1366,16 @@ var inputBaseOverrides$1 = {
1345
1366
  },
1346
1367
  },
1347
1368
  '&.customSelectInputBackground.MuiInputBase-adornedStart > .MuiSvgIcon-root': {
1348
- position: 'absolute',
1349
1369
  fontSize: 16,
1350
1370
  },
1351
1371
  '&.customSelectInputBackground .MuiInputBase-inputAdornedStart': {
1352
- paddingLeft: 24,
1372
+ paddingLeft: 12,
1353
1373
  },
1354
1374
  });
1355
1375
  },
1356
1376
  adornedStart: {
1357
1377
  '& svg:first-of-type': {
1358
- marginLeft: 3,
1378
+ marginLeft: 12,
1359
1379
  },
1360
1380
  },
1361
1381
  input: {
@@ -1478,8 +1498,8 @@ var listSubheaderOverrides$1 = {
1478
1498
  }, '&.MuiListSubheader-gutters': {
1479
1499
  paddingTop: 0,
1480
1500
  paddingBottom: 0,
1481
- paddingLeft: 2,
1482
- paddingRight: 2,
1501
+ paddingLeft: 8,
1502
+ paddingRight: 8,
1483
1503
  } }));
1484
1504
  },
1485
1505
  },
@@ -1544,7 +1564,7 @@ var menuItemOverrides$1 = {
1544
1564
  var _b;
1545
1565
  var theme = _a.theme;
1546
1566
  return ({
1547
- '&.MuiMenuItem-root': __assign(__assign({}, theme.typography.body1), (_b = { lineHeight: '1.25rem', padding: 4, paddingTop: 0, paddingBottom: 0, backgroundColor: theme.palette.grey[50], transition: 'none' }, _b[theme.breakpoints.down('sm')] = {
1567
+ '&.MuiMenuItem-root': __assign(__assign({}, theme.typography.body1), (_b = { lineHeight: '1.25rem', paddingLeft: 8, paddingTop: 0, paddingBottom: 0, backgroundColor: theme.palette.grey[50], transition: 'none' }, _b[theme.breakpoints.down('sm')] = {
1548
1568
  minHeight: 40,
1549
1569
  }, _b['@media (hover: none)'] = {
1550
1570
  minHeight: 40,
@@ -1570,7 +1590,7 @@ var menuItemOverrides$1 = {
1570
1590
  lineHeight: '1.25rem',
1571
1591
  },
1572
1592
  }, _b['& .MuiFormControlLabel-root'] = {
1573
- marginRight: 6,
1593
+ marginRight: 4,
1574
1594
  }, _b['&.gds-drawer-menu-item-dark'] = {
1575
1595
  backgroundColor: theme.palette.primary.main,
1576
1596
  color: theme.palette.grey[200],
@@ -2769,10 +2789,17 @@ var dropdownOverrides = {
2769
2789
  '.MuiSvgIcon-root': {
2770
2790
  fontSize: 16,
2771
2791
  left: 16,
2772
- position: 'relative',
2792
+ position: 'absolute',
2773
2793
  margin: 0,
2774
2794
  },
2775
2795
  },
2796
+ '&.customSelectInputBackground': {
2797
+ select: {
2798
+ '&.MuiOutlinedInput-input': {
2799
+ padding: 0,
2800
+ },
2801
+ },
2802
+ },
2776
2803
  '&:hover': {
2777
2804
  backgroundColor: theme.palette.primary.transparent,
2778
2805
  borderColor: theme.palette.primary.main,
@@ -2820,7 +2847,11 @@ var dropdownOverrides = {
2820
2847
  fontWeight: 600,
2821
2848
  letterSpacing: '.02em',
2822
2849
  '&.MuiOutlinedInput-input': {
2823
- padding: '8px 32px 8px 16px',
2850
+ zIndex: '1001',
2851
+ },
2852
+ '&.MuiInputBase-inputAdornedStart.MuiOutlinedInput-input': {
2853
+ padding: '8px 36px 8px 46px',
2854
+ zIndex: '1001',
2824
2855
  },
2825
2856
  },
2826
2857
  },
@@ -18716,12 +18747,13 @@ var StyledFormHelperText = styled(FormHelperText)(function (_a) {
18716
18747
  });
18717
18748
 
18718
18749
  var Input = React.forwardRef(function Input(props, ref) {
18719
- var _a = props.error, error = _a === void 0 ? false : _a, helperText = props.helperText, _b = props.textAlignRight, textAlignRight = _b === void 0 ? false : _b, label = props.label, _c = props.size, size = _c === void 0 ? 'medium' : _c, _d = props.background, background = _d === void 0 ? 'default' : _d, className = props.className, inputPropStyles = props.inputPropStyles, rest = __rest(props, ["error", "helperText", "textAlignRight", "label", "size", "background", "className", "inputPropStyles"]);
18750
+ var _a = props.error, error = _a === void 0 ? false : _a, helperText = props.helperText, _b = props.textAlignRight, textAlignRight = _b === void 0 ? false : _b, label = props.label, _c = props.size, size = _c === void 0 ? 'medium' : _c, _d = props.background, background = _d === void 0 ? 'default' : _d, className = props.className, inputPropStyles = props.inputPropStyles, minRows = props.minRows, maxRows = props.maxRows, rows = props.rows, rest = __rest(props, ["error", "helperText", "textAlignRight", "label", "size", "background", "className", "inputPropStyles", "minRows", "maxRows", "rows"]);
18720
18751
  return (jsxs(Fragment$1, { children: [label && jsx(FormLabelBlock, { children: label }), jsx(StyledInputBase, __assign({ ref: ref, error: error, textAlignRight: textAlignRight, className: clsx(size === 'large' && 'customLargeSize', background === 'light' && 'customLightColor', className), inputProps: {
18721
18752
  style: __assign({
18722
- // EDGECASE: When we use multiline and set minRows, maxRows, rows we need to define the width of the input. By default we set this to 162.
18723
- width: inputPropStyles ? inputPropStyles.width : 162 }, inputPropStyles),
18724
- } }, rest)), helperText && (jsx(StyledFormHelperText, { error: error, children: helperText }))] }));
18753
+ // EDGECASE: When we use multiline and set minRows, maxRows, rows we need to define the width of the input. 100% here will inherit parent container.
18754
+ // If there's no container we need to define the width. Otherwise the input will fluctate in size on keydown when rows param exist.
18755
+ width: inputPropStyles ? inputPropStyles.width : '100%' }, inputPropStyles),
18756
+ }, rows: rows, minRows: minRows, maxRows: maxRows }, rest)), helperText && (jsx(StyledFormHelperText, { error: error, children: helperText }))] }));
18725
18757
  });
18726
18758
 
18727
18759
  var ListItemAvatar = function (props) {