@max-ts/components 0.5.4 → 0.6.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.
@@ -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<Value> = WithoutEmotionSpecific<Omit<MuiSelectProps<Value>, 'variant'>> & {
4
+ export type SelectProps<TValue> = WithoutEmotionSpecific<Omit<MuiSelectProps<TValue>, 'variant'>> & {
5
5
  loading?: boolean;
6
6
  placeholder?: string;
7
- getOptionLabel?: (value: Value) => string | number;
7
+ getOptionLabel?: (value: TValue) => string | number;
8
8
  /**
9
9
  * Добавляет вспомогательный текст под селектом
10
10
  */
@@ -23,4 +23,4 @@ export type SelectProps<Value> = WithoutEmotionSpecific<Omit<MuiSelectProps<Valu
23
23
  label?: string;
24
24
  id?: string;
25
25
  };
26
- export declare function Select<TValue>({ required, getOptionLabel, placeholder, helperText, hideHelperText, loading, success, children, disabled, error, label, fullWidth, id, onChange: externalOnChange, isShowClearButton, ...props }: SelectProps<TValue>): import("react/jsx-runtime").JSX.Element;
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;