@max-ts/components 0.5.3 → 0.5.5
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.
|
@@ -9,10 +9,6 @@ export type CheckboxFieldProps = CheckboxProps & {
|
|
|
9
9
|
* Текст-подсказка
|
|
10
10
|
*/
|
|
11
11
|
helperText?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Флаг принудительного скрытия блока helperText
|
|
14
|
-
*/
|
|
15
|
-
hideHelperText?: boolean;
|
|
16
12
|
/**
|
|
17
13
|
* Текст или элемент около чекбокса (обычно краткое описание назначения чекбокса)
|
|
18
14
|
*/
|
|
@@ -21,4 +17,4 @@ export type CheckboxFieldProps = CheckboxProps & {
|
|
|
21
17
|
/**
|
|
22
18
|
* Составной компонент чекбокса. Содержит label, tooltip, helperText и т.д.
|
|
23
19
|
*/
|
|
24
|
-
export declare const CheckboxField: ({ isSuccess, helperText,
|
|
20
|
+
export declare const CheckboxField: ({ isSuccess, helperText, label, isError, ...restProps }: CheckboxFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SelectProps as MuiSelectProps } from '@mui/material';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { WithoutEmotionSpecific } from '../types';
|
|
4
|
-
export type SelectProps<
|
|
4
|
+
export type SelectProps<TValue> = WithoutEmotionSpecific<Omit<MuiSelectProps<TValue>, 'variant'>> & {
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
placeholder?: string;
|
|
7
|
-
getOptionLabel?: (value:
|
|
7
|
+
getOptionLabel?: (value: TValue) => string | number;
|
|
8
8
|
/**
|
|
9
9
|
* Добавляет вспомогательный текст под селектом
|
|
10
10
|
*/
|
|
@@ -21,5 +21,6 @@ export type SelectProps<Value> = WithoutEmotionSpecific<Omit<MuiSelectProps<Valu
|
|
|
21
21
|
success?: boolean;
|
|
22
22
|
error?: boolean;
|
|
23
23
|
label?: string;
|
|
24
|
+
id?: string;
|
|
24
25
|
};
|
|
25
|
-
export declare function Select<TValue>({ required, getOptionLabel, placeholder, helperText,
|
|
26
|
+
export declare function Select<TValue>({ required, getOptionLabel, placeholder, helperText, loading, success, children, disabled, error, label, fullWidth, id, onChange: externalOnChange, isShowClearButton, ...props }: SelectProps<TValue>): import("react/jsx-runtime").JSX.Element;
|