@true-engineering/true-react-common-ui-kit 3.10.0 → 3.12.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 +16 -0
- package/dist/components/Checkbox/Checkbox.d.ts +8 -7
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -5
- package/dist/components/Checkbox/Checkbox.styles.d.ts +1 -1
- package/dist/theme/common.d.ts +2 -0
- package/dist/true-react-common-ui-kit.js +102 -161
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +102 -161
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/AccountInfo/AccountInfo.styles.ts +3 -2
- package/src/components/Button/Button.styles.ts +2 -2
- package/src/components/Checkbox/Checkbox.stories.tsx +40 -14
- package/src/components/Checkbox/Checkbox.styles.ts +4 -2
- package/src/components/Checkbox/Checkbox.tsx +21 -25
- package/src/components/CloseButton/CloseButton.styles.ts +3 -2
- package/src/components/FiltersPane/FiltersPane.styles.ts +3 -2
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +3 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +8 -2
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +3 -2
- package/src/components/Icon/icons-list.ts +5 -13
- package/src/components/IconButton/IconButton.styles.ts +2 -2
- package/src/components/IncrementInput/IncrementInput.styles.ts +3 -2
- package/src/components/Input/Input.styles.ts +6 -5
- package/src/components/List/List.styles.ts +3 -2
- package/src/components/List/components/ListItem/ListItem.styles.ts +3 -2
- package/src/components/MoreMenu/MoreMenu.styles.ts +3 -2
- package/src/components/MultiSelectList/MultiSelectList.tsx +9 -6
- package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +3 -2
- package/src/components/Selector/Selector.styles.ts +4 -3
- package/src/components/Switch/Switch.styles.ts +4 -4
- package/src/components/TextArea/TextArea.styles.ts +4 -4
- package/src/components/TextButton/TextButton.styles.ts +4 -3
- package/src/theme/common.ts +2 -0
package/README.md
CHANGED
|
@@ -10,6 +10,22 @@
|
|
|
10
10
|
|
|
11
11
|
# Release Notes
|
|
12
12
|
|
|
13
|
+
## v3.12.0
|
|
14
|
+
|
|
15
|
+
### Changes
|
|
16
|
+
|
|
17
|
+
- Удаляет `isSelected` внутри **Checkbox**
|
|
18
|
+
- Добавляет поддержку `isInvalid` для **Checkbox**
|
|
19
|
+
- Делает опциональным `value` для **Checkbox**
|
|
20
|
+
- Иконка `check-big` стала deprecated
|
|
21
|
+
- Иконки `check`, `check-all` и `minus` обновлены до актуальных из Figma UI Kit'а
|
|
22
|
+
|
|
23
|
+
## v3.11.0
|
|
24
|
+
|
|
25
|
+
### Changes
|
|
26
|
+
|
|
27
|
+
- Добавляет **animations.defaultTransition**
|
|
28
|
+
|
|
13
29
|
## v3.10.0
|
|
14
30
|
|
|
15
31
|
### Changes
|
|
@@ -2,22 +2,23 @@ import { ReactNode, ChangeEvent, KeyboardEvent } from 'react';
|
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { ICheckboxStyles } from './Checkbox.styles';
|
|
4
4
|
export interface ICheckboxProps<V> extends ICommonProps<ICheckboxStyles> {
|
|
5
|
+
value?: V;
|
|
5
6
|
children?: ReactNode;
|
|
6
|
-
|
|
7
|
+
/** @default false */
|
|
8
|
+
isChecked?: boolean;
|
|
7
9
|
/** @default false */
|
|
8
10
|
isSemiChecked?: boolean;
|
|
9
11
|
/** @default false */
|
|
12
|
+
isInvalid?: boolean;
|
|
13
|
+
/** @default false */
|
|
10
14
|
isDisabled?: boolean;
|
|
11
15
|
/** @default false */
|
|
12
16
|
isReadonly?: boolean;
|
|
13
|
-
/** @default false */
|
|
14
|
-
isInvalid?: boolean;
|
|
15
|
-
value: V;
|
|
16
17
|
/** @default 'right' */
|
|
17
18
|
labelPosition?: 'right' | 'left';
|
|
18
|
-
onSelect
|
|
19
|
-
value
|
|
19
|
+
onSelect?: (value: {
|
|
20
|
+
value?: V;
|
|
20
21
|
isSelected: boolean;
|
|
21
22
|
}, event: ChangeEvent<HTMLInputElement> | KeyboardEvent) => void;
|
|
22
23
|
}
|
|
23
|
-
export declare function Checkbox<V>({ children,
|
|
24
|
+
export declare function Checkbox<V>({ value, children, isChecked, isSemiChecked, isInvalid, isDisabled, isReadonly, labelPosition, data, testId, tweakStyles, onSelect, }: ICheckboxProps<V>): JSX.Element;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { Checkbox as CheckboxComponent, ICheckboxProps } from './Checkbox';
|
|
4
|
+
declare const CheckboxComponentWithData: FC<ICheckboxProps<string>>;
|
|
5
|
+
declare const meta: Meta<typeof CheckboxComponentWithData>;
|
|
6
|
+
export default meta;
|
|
7
|
+
type Story = StoryObj<typeof CheckboxComponent>;
|
|
8
|
+
export declare const Default: Story;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ITweakStyles } from '../../theme';
|
|
2
|
-
export declare const useStyles: import("../../theme").IUseStyles<"input" | "root" | "disabled" | "children" | "
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"input" | "invalid" | "root" | "disabled" | "children" | "checked" | "check" | "labelPositionLeft", unknown>;
|
|
3
3
|
export type ICheckboxStyles = ITweakStyles<typeof useStyles>;
|
package/dist/theme/common.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ export declare const helpers: {
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
export declare const animations: {
|
|
70
|
+
defaultTransition: string;
|
|
70
71
|
slideUp: {
|
|
71
72
|
'slide-up-enter': {
|
|
72
73
|
opacity: number;
|
|
@@ -94,5 +95,6 @@ export interface ICommonUiKitTheme extends IUiKitTheme {
|
|
|
94
95
|
colors: typeof colors;
|
|
95
96
|
dimensions: typeof dimensions;
|
|
96
97
|
helpers: typeof helpers;
|
|
98
|
+
animations: typeof animations;
|
|
97
99
|
}
|
|
98
100
|
export declare const common: ICommonUiKitTheme;
|