@max-ts/components 0.5.1 → 0.5.3

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.
@@ -22,4 +22,4 @@ export type SelectProps<Value> = WithoutEmotionSpecific<Omit<MuiSelectProps<Valu
22
22
  error?: boolean;
23
23
  label?: string;
24
24
  };
25
- export declare function Select<Value>({ required, getOptionLabel, placeholder, helperText, hideHelperText, loading, success, children, disabled, error, label, fullWidth, onChange: externalOnChange, isShowClearButton, ...props }: SelectProps<Value>): import("react/jsx-runtime").JSX.Element;
25
+ export declare function Select<TValue>({ required, getOptionLabel, placeholder, helperText, hideHelperText, loading, success, children, disabled, error, label, fullWidth, onChange: externalOnChange, isShowClearButton, ...props }: SelectProps<TValue>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { SelectProps } from '../../components';
2
2
  import { WithFormFieldProps } from '../types';
3
- export type FormSelectProps<FieldValues extends object> = WithFormFieldProps<SelectProps<FieldValues>, FieldValues>;
3
+ export type FormSelectProps<FieldValues extends object, TValue> = WithFormFieldProps<SelectProps<TValue>, FieldValues>;
4
4
  /**
5
5
  * @description Адаптер для Select
6
6
  */
7
- export declare const FormSelect: <FieldValues extends object>({ name, control, ...rest }: FormSelectProps<FieldValues>) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const FormSelect: <FieldValues extends object, TValue>({ name, control, ...rest }: FormSelectProps<FieldValues, TValue>) => import("react/jsx-runtime").JSX.Element;
package/lib/index.mjs CHANGED
@@ -1448,7 +1448,8 @@ const Bl = ({
1448
1448
  },
1449
1449
  indicator({ theme: e }) {
1450
1450
  return {
1451
- borderRadius: e.shape.small
1451
+ borderRadius: e.shape.small,
1452
+ backgroundColor: e.palette.primary[700]
1452
1453
  };
1453
1454
  }
1454
1455
  }
@@ -4860,7 +4861,7 @@ function If({
4860
4861
  open: r,
4861
4862
  defaultOpen: o,
4862
4863
  multiple: i,
4863
- isShowClearButton: a = !0
4864
+ isShowClearButton: a = !1
4864
4865
  }) {
4865
4866
  const [l, c] = ce(
4866
4867
  o || r || !1
@@ -1,7 +1,7 @@
1
1
  import { BreakpointsOptions, ThemeOptions } from '@mui/material';
2
2
  import { Theme } from '../types';
3
3
  export type CreateThemeParams = {
4
- options?: ThemeOptions;
4
+ options?: Partial<ThemeOptions>;
5
5
  breakpoints?: BreakpointsOptions;
6
6
  };
7
7
  export declare const createTheme: (params?: CreateThemeParams) => Theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-ts/components",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "browser": "./src/index.ts",
5
5
  "main": "./lib/index.mjs",
6
6
  "module": "./lib/index.mjs",