@galaxy-ds/core 2.0.17 → 2.0.18

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
@@ -1112,7 +1112,6 @@ var dropdownOverrides$1 = {
1112
1112
  height: 30,
1113
1113
  lineHeight: '30px',
1114
1114
  }, '& .customSelectInputBackground': {
1115
- backgroundColor: 'red',
1116
1115
  borderColor: theme.palette.grey[500],
1117
1116
  cursor: 'default',
1118
1117
  '&:hover': {
@@ -1770,7 +1769,7 @@ var tableCellOverrides$1 = {
1770
1769
  borderTop: "1px solid #d4d4d4",
1771
1770
  borderLeft: "1px solid #d4d4d4",
1772
1771
  padding: '8px 16px',
1773
- '&:first-child': {
1772
+ '&:first-of-type': {
1774
1773
  borderLeft: 'none',
1775
1774
  },
1776
1775
  },
@@ -2451,12 +2450,9 @@ var checkboxOverrides = {
2451
2450
  content: '""',
2452
2451
  display: 'none',
2453
2452
  position: 'absolute',
2454
- top: -1,
2455
- left: -1,
2456
2453
  width: 14,
2457
2454
  height: 14,
2458
2455
  backgroundColor: '#fef7f0',
2459
- border: "1px solid #d4d4d4",
2460
2456
  },
2461
2457
  '& input:focus': {
2462
2458
  borderColor: theme.palette.primary.main,
@@ -2660,7 +2656,7 @@ var dropdownOverrides = {
2660
2656
  select: function (_a) {
2661
2657
  var theme = _a.theme;
2662
2658
  return ({
2663
- padding: '5px 12px 5px 16px',
2659
+ padding: '12px 12px 12px 16px',
2664
2660
  lineHeight: 1,
2665
2661
  textTransform: 'uppercase',
2666
2662
  fontSize: 12,
@@ -2694,9 +2690,6 @@ var dropdownOverrides = {
2694
2690
  verticalAlign: 'top',
2695
2691
  marginLeft: '0.5rem',
2696
2692
  },
2697
- '&.MuiSelect-select': {
2698
- paddingRight: 12,
2699
- },
2700
2693
  });
2701
2694
  },
2702
2695
  },
@@ -2843,14 +2836,6 @@ var inputBaseOverrides = {
2843
2836
  '&.customSelectInputBackground .MuiInputBase-inputAdornedStart': {
2844
2837
  paddingLeft: 36,
2845
2838
  },
2846
- '&.customdropdown': {
2847
- backgroundColor: '#d6d6d6',
2848
- borderColor: theme.palette.grey[500],
2849
- cursor: 'default',
2850
- '&:hover': {
2851
- cursor: 'default',
2852
- },
2853
- },
2854
2839
  });
2855
2840
  },
2856
2841
  input: {
@@ -3363,7 +3348,7 @@ var tableCellOverrides = {
3363
3348
  letterSpacing: '0.07px',
3364
3349
  borderLeft: "1px solid #d4d4d4",
3365
3350
  background: theme.palette.background.paper,
3366
- '&:first-child': {
3351
+ '&:first-of-type': {
3367
3352
  borderLeft: 'none',
3368
3353
  },
3369
3354
  });
@@ -4898,7 +4883,7 @@ styles$1.styled(MuiTypography$1)(function (_a) {
4898
4883
  });
4899
4884
 
4900
4885
  var Autocomplete = function (_a) {
4901
- var label = _a.label, placeholder = _a.placeholder, _b = _a.platform, platform = _b === void 0 ? 'desktop' : _b, actionLabel = _a.actionLabel, actionClick = _a.actionClick, onChange = _a.onChange, bottomButtonHeight = _a.bottomButtonHeight, rest = __rest(_a, ["label", "placeholder", "platform", "actionLabel", "actionClick", "onChange", "bottomButtonHeight"]);
4886
+ var label = _a.label, placeholder = _a.placeholder, _b = _a.platform, platform = _b === void 0 ? 'desktop' : _b, actionLabel = _a.actionLabel, actionClick = _a.actionClick, onChange = _a.onChange, bottomButtonHeight = _a.bottomButtonHeight, renderInput = _a.renderInput, rest = __rest(_a, ["label", "placeholder", "platform", "actionLabel", "actionClick", "onChange", "bottomButtonHeight", "renderInput"]);
4902
4887
  var _c = React.useState(placeholder), inputPlaceholder = _c[0], setInputPlaceholder = _c[1];
4903
4888
  var root = React.useRef(null);
4904
4889
  var onKeyDownHandler = function (event) {
@@ -4917,7 +4902,7 @@ var Autocomplete = function (_a) {
4917
4902
  var CustomPaper = function (props) {
4918
4903
  return (jsxRuntime.jsx(StyledPaper, __assign({ bottomButtonHeight: bottomButtonHeight }, props, { placement: "bottom", children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [props.children, actionLabel && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MuiDivider, {}), jsxRuntime.jsx(material.ListItemButton, { dense: true, onMouseDown: actionClick, children: jsxRuntime.jsx(StyledListContent, { children: jsxRuntime.jsx(Typography, { variant: platform === 'desktop' ? 'body1' : 'body2', align: "center", children: actionLabel }) }) })] }))] }) })));
4919
4904
  };
4920
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && jsxRuntime.jsx(InputLabel, { children: label }), jsxRuntime.jsx(MuiAutocomplete, __assign({ disableClearable: true, renderInput: function (params) { return (jsxRuntime.jsx(TextField$1, __assign({}, params, { inputProps: __assign(__assign({}, params.inputProps), { autoComplete: 'off' }), placeholder: inputPlaceholder, className: "customLargeSize" }))); }, PaperComponent: CustomPaper, onChange: function (event, value, reason) {
4905
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && jsxRuntime.jsx(InputLabel, { children: label }), jsxRuntime.jsx(MuiAutocomplete, __assign({ disableClearable: true, renderInput: renderInput ? renderInput : function (params) { return (jsxRuntime.jsx(TextField$1, __assign({}, params, { inputProps: __assign(__assign({}, params.inputProps), { autoComplete: 'off' }), placeholder: inputPlaceholder, className: "customLargeSize" }))); }, PaperComponent: CustomPaper, onChange: function (event, value, reason) {
4921
4906
  value && value.length > 0
4922
4907
  ? setInputPlaceholder('')
4923
4908
  : setInputPlaceholder(placeholder);
@@ -16405,43 +16390,7 @@ var DrawerMenu = React.forwardRef(function DrawMenu(props, ref) {
16405
16390
  return (jsxRuntime.jsxs(DrawerMenuContainer, __assign({ ref: ref, className: "gds-drawer-menu-item ".concat(variantProp, " ").concat(submenu ? 'gds-drawer-menu-item-sub' : '') }, rest, { children: [startAdornment && !submenu ? (jsxRuntime.jsx(ListItemIcon, { children: startAdornment })) : null, jsxRuntime.jsxs("span", { className: 'gds-drawer-menu-item-text', children: [children, " ", value] })] })));
16406
16391
  });
16407
16392
 
16408
- function toVal(mix) {
16409
- var k, y, str='';
16410
- if (mix) {
16411
- if (typeof mix === 'object') {
16412
- if (Array.isArray(mix)) {
16413
- for (k=0; k < mix.length; k++) {
16414
- if (mix[k] && (y = toVal(mix[k]))) {
16415
- str && (str += ' ');
16416
- str += y;
16417
- }
16418
- }
16419
- } else {
16420
- for (k in mix) {
16421
- if (mix[k] && (y = toVal(k))) {
16422
- str && (str += ' ');
16423
- str += y;
16424
- }
16425
- }
16426
- }
16427
- } else if (typeof mix !== 'boolean' && !mix.call) {
16428
- str && (str += ' ');
16429
- str += mix;
16430
- }
16431
- }
16432
- return str;
16433
- }
16434
-
16435
- function clsx () {
16436
- var i=0, x, str='';
16437
- while (i < arguments.length) {
16438
- if (x = toVal(arguments[i++])) {
16439
- str && (str += ' ');
16440
- str += x;
16441
- }
16442
- }
16443
- return str;
16444
- }
16393
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
16445
16394
 
16446
16395
  var StyledInputBase = styles$1.styled(InputBase, {
16447
16396
  shouldForwardProp: function (prop) { return prop !== 'textAlignRight'; },
@@ -17466,18 +17415,18 @@ var TableRow = React.forwardRef(function TableRow(props, ref) {
17466
17415
  return jsxRuntime.jsx(material.TableRow, __assign({ ref: ref }, props));
17467
17416
  });
17468
17417
 
17469
- var StyledTabs = material.styled(material.Tabs)(function (props) {
17470
- var theme = props.theme;
17418
+ var StyledTabs = material.styled(material.Tabs)(function (_a) {
17419
+ var theme = _a.theme, orientation = _a.orientation;
17471
17420
  return {
17472
17421
  '&.MuiTabs-root': {
17473
17422
  flexGrow: 1,
17474
17423
  backgroundColor: theme.palette.grey[200],
17475
- boxShadow: props.orientation === 'vertical' ? 'none' : 'inset 0 -1px 0 0 #D4D4D4',
17476
- height: props.orientation === 'vertical' ? 'inherit' : 36,
17477
- minHeight: props.orientation === 'vertical' ? 'inherit' : 36,
17424
+ boxShadow: orientation === 'vertical' ? 'none' : 'inset 0 -1px 0 0 #D4D4D4',
17425
+ height: orientation === 'vertical' ? 'inherit' : 36,
17426
+ minHeight: orientation === 'vertical' ? 'inherit' : 36,
17478
17427
  },
17479
17428
  '& .MuiTabs-scroller': {
17480
- height: props.orientation === 'vertical' ? 'inherit' : 36,
17429
+ height: orientation === 'vertical' ? 'inherit' : 36,
17481
17430
  },
17482
17431
  '& .MuiTabs-indicator': {
17483
17432
  display: 'none',