@true-engineering/true-react-common-ui-kit 3.26.0 → 3.27.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
@@ -11,6 +11,19 @@
11
11
 
12
12
  # Release Notes
13
13
 
14
+ ## 3.27.0
15
+
16
+ ### Changes
17
+
18
+ - **List**: Добавлена поддержка вложенных пунктов меню
19
+ - **IListItem**: Новое свойство `nestedItems` для рендера вложенных пунктов меню
20
+
21
+ ## 3.26.1
22
+
23
+ ### Changes
24
+
25
+ - **Input**: Исправлен баг с позиционированием `label` при `shouldAlwaysShowPlaceholder`
26
+
14
27
  ## 3.26.0
15
28
 
16
29
  ### Changes
@@ -26,7 +39,7 @@
26
39
 
27
40
  ### Changes
28
41
 
29
- - **NumberInput**: Фикс бага с неправильным поведением каретки
42
+ - **NumberInput**: Фикс бага с неправильным поведением каретки
30
43
 
31
44
  ## 3.25.0
32
45
 
@@ -1,3 +1,5 @@
1
1
  import { ITweakStyles } from '../../theme';
2
- export declare const useStyles: import("../../theme").IUseStyles<"content" | "item" | "root" | "icon" | "disabledItem" | "spacer" | "withIconGap", unknown>;
2
+ import { IWithPopupStyles } from '../WithPopup';
3
+ export declare const useStyles: import("../../theme").IUseStyles<"root" | "nestedItems", unknown>;
4
+ export declare const withPopupStyles: IWithPopupStyles;
3
5
  export type IListStyles = ITweakStyles<typeof useStyles>;
@@ -6,6 +6,8 @@ export interface IListItemProps extends ICommonProps<IListItemStyles> {
6
6
  item: ReactNode;
7
7
  view?: 'default' | 'destructive';
8
8
  icon?: IIcon;
9
+ nestedItems?: IListItemProps[];
10
+ isFocused?: boolean;
9
11
  disabled?: boolean;
10
12
  shouldDrawSpacerAbove?: boolean;
11
13
  shouldDrawSpacerBelow?: boolean;
@@ -1,3 +1,3 @@
1
1
  import { ITweakStyles } from '../../../../theme';
2
- export declare const useStyles: import("../../../../theme").IUseStyles<"content" | "root" | "default" | "icon" | "destructive" | "disabledItem" | "spacer" | "withIconGap", unknown>;
2
+ export declare const useStyles: import("../../../../theme").IUseStyles<"content" | "root" | "default" | "icon" | "destructive" | "focused" | "disabledItem" | "spacer" | "withIconGap", unknown>;
3
3
  export type IListItemStyles = ITweakStyles<typeof useStyles>;
@@ -1,10 +1,10 @@
1
- import { type ChangeEvent, type FormEvent, type KeyboardEvent, type MouseEvent, type ReactNode, type SyntheticEvent } from 'react';
2
- import { IDropdownWithPopperOptions, type ICommonProps } from '../../types';
3
- import { type IIcon } from '../Icon';
4
- import { type IInputProps } from '../Input';
5
- import { type ISearchInputProps } from '../SearchInput';
1
+ import { ChangeEvent, FormEvent, KeyboardEvent, MouseEvent, ReactNode, SyntheticEvent } from 'react';
2
+ import { IDropdownWithPopperOptions, ICommonProps } from '../../types';
3
+ import { IIcon } from '../Icon';
4
+ import { IInputProps } from '../Input';
5
+ import { ISearchInputProps } from '../SearchInput';
6
6
  import { IMultipleSelectValue } from './types';
7
- import { type ISelectStyles } from './Select.styles';
7
+ import { ISelectStyles } from './Select.styles';
8
8
  export interface ISelectProps<Value> extends Omit<IInputProps, 'value' | 'onChange' | 'onBlur' | 'type' | 'isActive' | 'tweakStyles'>, ICommonProps<ISelectStyles> {
9
9
  header?: ReactNode;
10
10
  footer?: ReactNode;