@true-engineering/true-react-common-ui-kit 1.5.0 → 1.5.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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IFilterMultiSelectValues } from '../types';
2
3
  import { IMultiSelectListProps } from '../../MultiSelectList';
3
4
  export declare type IFilterMultiSelectProps<Value, Option = string> = IMultiSelectListProps<Value, Option>;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IFilterWrapperProps } from '../FilterWrapper';
2
3
  export declare function FilterValueView<Values, Key extends keyof Values>({ locale, localeKey, filter, value, }: Omit<IFilterWrapperProps<Values, Key>, 'onChange' | 'filtersPaneRef'>): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ICommonProps } from '../../types';
2
3
  import { ConfigType } from './types';
3
4
  import { IFiltersPaneSearchProps } from './FiltersPaneSearch';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IMultiSelectListValues } from '../MultiSelectList';
2
3
  import { IMultiSelectLocale, IMultiSelectLocaleKey } from '../MultiSelectList/locales';
3
4
  import { MultiSelectStyles } from './MultiSelect.styles';
@@ -171,7 +171,7 @@ export declare class ScrollIntoViewIfNeeded extends PureComponent<IScrollIntoVie
171
171
  'aria-colindex'?: number | undefined;
172
172
  'aria-colspan'?: number | undefined;
173
173
  'aria-controls'?: string | undefined;
174
- 'aria-current'?: boolean | "page" | "time" | "false" | "true" | "date" | "step" | "location" | undefined;
174
+ 'aria-current'?: boolean | "time" | "page" | "false" | "true" | "date" | "step" | "location" | undefined;
175
175
  'aria-describedby'?: string | undefined;
176
176
  'aria-details'?: string | undefined;
177
177
  'aria-disabled'?: (boolean | "false" | "true") | undefined;
@@ -7711,6 +7711,10 @@ function Select(_param) {
7711
7711
  handleListOpen();
7712
7712
  };
7713
7713
  var handleBlur = function(event) {
7714
+ if (isListOpen && !isOpen) {
7715
+ handleListClose(event);
7716
+ return;
7717
+ }
7714
7718
  if (!isNotEmpty(event.relatedTarget) || !isNotEmpty(list.current)) {
7715
7719
  return;
7716
7720
  }
@@ -7955,7 +7959,7 @@ function Select(_param) {
7955
7959
  event.preventDefault();
7956
7960
  },
7957
7961
  onClick: onArrowClick,
7958
- className: clsx(classes.arrow, isListOpen && classes.activeArrow),
7962
+ className: clsx(classes.arrow, isOpen && classes.activeArrow),
7959
7963
  children: /* @__PURE__ */ jsx(Icon, {
7960
7964
  type: dropdownIcon
7961
7965
  })