@true-engineering/true-react-common-ui-kit 3.4.0 → 3.5.0

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/README.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  # Release Notes
12
12
 
13
+ ## v3.5.0
14
+
15
+ ### Fixed
16
+
17
+ - Исправлена ошибка порядка вызова хуков при добавлении/удалении `tweakStyles` во время жизни компонента
18
+
13
19
  ## v3.4.0
14
20
 
15
21
  - **Input**: Добавляет пропс onInput
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ICommonProps } from '../../types';
2
3
  import { IFiltersPaneSearchProps } from './components';
3
4
  import { ConfigType, IFilterLocaleKey, IPartialFilterLocale } from './types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentStory } from '@storybook/react';
2
3
  import { IFiltersPaneProps } from './FiltersPane';
3
4
  interface IFiltersPaneWithCustomProps<Values, Content> extends IFiltersPaneProps<Values, Content> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IMultiSelectListProps } from '../../../MultiSelectList';
2
3
  import { IFilterMultiSelectValues } from '../../types';
3
4
  export type IFilterMultiSelectProps<Value, Option = string> = IMultiSelectListProps<Value, Option>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ICommonProps } from '../../../../types';
2
3
  import type { IFilterWrapperProps } from '../FilterWrapper';
3
4
  import { IFilterValueViewStyles } from './FilterValueView.styles';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentStory } from '@storybook/react';
2
3
  import { FlexibleTable } from './FlexibleTable';
3
4
  declare const _default: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ICommonProps } from '../../types';
2
3
  import { IMultiSelectListValues, IMultiSelectLocale, IMultiSelectLocaleKey } from '../MultiSelectList';
3
4
  import { IHorizontalCornerConnection } from './types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
2
3
  import { ISelectProps } from './Select';
3
4
  interface ISelectWithCustomProps<T> extends ISelectProps<T> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta, ComponentStory } from '@storybook/react';
2
3
  import { ISelectProps } from './Select';
3
4
  interface ISelectWithCustomProps<T> extends ISelectProps<T> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ICommonProps } from '../../types';
2
3
  import { ISelectorOption, ISelectorValue } from './types';
3
4
  import { ISelectorStyles } from './Selector.styles';
@@ -1921,13 +1921,14 @@ function _object_spread_props$L(target, source) {
1921
1921
  }
1922
1922
  return target;
1923
1923
  }
1924
+ var EMPTY_STYLES = {};
1924
1925
  var isTweakStyle = function(key) {
1925
1926
  return key.startsWith("tweak");
1926
1927
  };
1927
1928
  var cleanStyles = function(tweakStyles) {
1928
1929
  return isNotEmpty(tweakStyles) && Object.keys(tweakStyles).some(function(key) {
1929
1930
  return !isTweakStyle(key);
1930
- }) ? tweakStyles : void 0;
1931
+ }) ? tweakStyles : EMPTY_STYLES;
1931
1932
  };
1932
1933
  var checkStyles = function(componentName, styles) {
1933
1934
  var invalidClasses = Object.keys(styles).reduce(function(acc, key) {