@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 +14 -1
- package/dist/components/List/List.styles.d.ts +3 -1
- package/dist/components/List/components/ListItem/ListItem.d.ts +2 -0
- package/dist/components/List/components/ListItem/ListItem.styles.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +6 -6
- package/dist/true-react-common-ui-kit.js +890 -886
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +855 -851
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Input/Input.stories.tsx +5 -0
- package/src/components/Input/Input.tsx +3 -4
- package/src/components/List/List.stories.tsx +21 -1
- package/src/components/List/List.styles.ts +9 -37
- package/src/components/List/List.tsx +37 -12
- package/src/components/List/components/ListItem/ListItem.styles.ts +6 -2
- package/src/components/List/components/ListItem/ListItem.tsx +16 -5
- package/src/components/Select/Select.tsx +13 -13
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
|
-
|
|
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 {
|
|
2
|
-
import { IDropdownWithPopperOptions,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 {
|
|
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;
|