grep-components 1.16.0-grepf-1829.3 → 1.16.0-grepf-1693.1

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.
@@ -4,7 +4,7 @@ import { DatePickerProps } from '@mui/x-date-pickers';
4
4
  import { TextFieldProps } from '@mui/material';
5
5
  import '../../utils/dateHelper';
6
6
  import { ParseableDate } from '../../utils/dateHelper';
7
- declare type InputProps = Pick<TextFieldProps, 'id' | 'variant' | 'label' | 'fullWidth' | 'placeholder' | 'helperText' | 'required' | 'onFocus'>;
7
+ declare type InputProps = Pick<TextFieldProps, 'id' | 'variant' | 'label' | 'fullWidth' | 'placeholder' | 'helperText' | 'required' | 'onFocus' | 'margin' | 'sx'>;
8
8
  export interface GrepDatePickerProps extends Omit<DatePickerProps<Dayjs, Dayjs>, 'value' | 'renderInput'>, InputProps {
9
9
  value?: ParseableDate | null;
10
10
  errorMessage?: string;
package/dist/index.js CHANGED
@@ -4916,7 +4916,6 @@ var useStyles$b = makeStyles()({
4916
4916
  textOverflow: 'ellipsis',
4917
4917
  whiteSpace: 'nowrap',
4918
4918
  fontWeight: 'bold',
4919
- lineHeight: '16px',
4920
4919
  },
4921
4920
  link: {
4922
4921
  fontSize: 16,
@@ -4949,7 +4948,7 @@ var GrepCrumbs = function (_a) {
4949
4948
  return (React__default.createElement("div", { className: classes.container, style: style }, breadcrumbs.map(function (crumb, index) {
4950
4949
  return crumb.path ? (React__default.createElement(Box, { key: index, display: "flex" },
4951
4950
  React__default.createElement(Link, { className: classes.link, tabIndex: 0, component: "button", onClick: function () { return handleClick(crumb); } }, crumb.label),
4952
- index !== breadcrumbs.length - 1 && (React__default.createElement(Box, { margin: "auto 8px", height: "fit-content" /*lineHeight="20px"*/ }, ">")))) : (React__default.createElement(Tooltip, { key: index, title: showTooltip ? crumb.label : '' },
4951
+ index !== breadcrumbs.length - 1 && React__default.createElement(Box, { margin: "0 8px" }, ">"))) : (React__default.createElement(Tooltip, { key: index, title: showTooltip ? crumb.label : '' },
4953
4952
  React__default.createElement("div", { className: classes.current, ref: ref }, crumb.label)));
4954
4953
  })));
4955
4954
  };
@@ -5625,7 +5624,7 @@ var useContentElements = function (container, selector, options) {
5625
5624
  };
5626
5625
 
5627
5626
  var DatePicker = function (_a) {
5628
- var id = _a.id, label = _a.label, value = _a.value, variant = _a.variant, onChange = _a.onChange, errorMessage = _a.errorMessage, placeholder = _a.placeholder, fullWidth = _a.fullWidth, required = _a.required, onFocus = _a.onFocus, props = __rest$1(_a, ["id", "label", "value", "variant", "onChange", "errorMessage", "placeholder", "fullWidth", "required", "onFocus"]);
5627
+ var id = _a.id, label = _a.label, value = _a.value, variant = _a.variant, onChange = _a.onChange, errorMessage = _a.errorMessage, placeholder = _a.placeholder, fullWidth = _a.fullWidth, required = _a.required, onFocus = _a.onFocus, margin = _a.margin, sx = _a.sx, props = __rest$1(_a, ["id", "label", "value", "variant", "onChange", "errorMessage", "placeholder", "fullWidth", "required", "onFocus", "margin", "sx"]);
5629
5628
  var _b = __read(useDate(value), 2), date = _b[0], setDate = _b[1];
5630
5629
  var _c = __read(useState(), 2), error = _c[0], setError = _c[1];
5631
5630
  var helperText = errorMessage || error || props.helperText;
@@ -5653,7 +5652,7 @@ var DatePicker = function (_a) {
5653
5652
  default:
5654
5653
  setError(undefined);
5655
5654
  }
5656
- }, value: date, onChange: setDate, renderInput: function (params) { return (React__default.createElement(TextField, __assign({ id: id }, params, { label: label, variant: variant, onFocus: onFocus, required: required, fullWidth: fullWidth, placeholder: placeholder, error: !!error || !!errorMessage }, (helperText && { helperText: helperText })))); } }, props))));
5655
+ }, value: date, onChange: setDate, renderInput: function (params) { return (React__default.createElement(TextField, __assign({ id: id }, params, { label: label, variant: variant, onFocus: onFocus, required: required, fullWidth: fullWidth, placeholder: placeholder, sx: sx, margin: margin, error: !!error || !!errorMessage }, (helperText && { helperText: helperText })))); } }, props))));
5657
5656
  };
5658
5657
 
5659
5658
  var GrepDateRange = function (_a) {