@true-engineering/true-react-common-ui-kit 4.0.0-alpha73 → 4.0.0-alpha75

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.
@@ -3,7 +3,7 @@ import { ICommonProps } from '../../../../types';
3
3
  import { IDatePickerProps } from '../../../DatePicker';
4
4
  import { IFilterLocaleKey, IPartialFilterLocale } from '../../types';
5
5
  import { IFilterDateSingleStyles } from './FilterDateSingle.styles';
6
- export interface IFilterDateSingleProps extends ICommonProps<IFilterDateSingleStyles>, Partial<Pick<IDatePickerProps, 'label' | 'minDate' | 'maxDate' | 'calendarStartDay' | 'popperModifiers' | 'popperPlacement'>> {
6
+ export interface IFilterDateSingleProps extends ICommonProps<IFilterDateSingleStyles>, Partial<Pick<IDatePickerProps, 'label' | 'minDate' | 'maxDate' | 'calendarStartDay' | 'popperModifiers' | 'popperPlacement' | 'customInput'>> {
7
7
  value?: Date | null;
8
8
  locale?: IPartialFilterLocale;
9
9
  localeKey?: IFilterLocaleKey;
@@ -3073,12 +3073,13 @@ const WithPopup = ({
3073
3073
  onClick: stopPropagation
3074
3074
  }
3075
3075
  });
3076
+ const triggerData = { popupOpen: isActive, ...data };
3076
3077
  const triggerElement = applyAction(trigger, {
3077
3078
  referenceProps: !isTriggerWrapped ? referenceProps : void 0,
3078
3079
  triggerProps: {
3079
3080
  isActive,
3080
3081
  isDisabled,
3081
- ...!isTriggerWrapped && { data, testId, ...referenceProps }
3082
+ ...!isTriggerWrapped && { data: triggerData, testId, ...referenceProps }
3082
3083
  }
3083
3084
  });
3084
3085
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -3091,7 +3092,7 @@ const WithPopup = ({
3091
3092
  [classes.active]: isActive
3092
3093
  }),
3093
3094
  ...referenceProps,
3094
- ...addDataAttributes$1(data, testId),
3095
+ ...addDataAttributes$1(triggerData, testId),
3095
3096
  children: triggerElement
3096
3097
  }
3097
3098
  ) : triggerElement,