@max-ts/components 0.5.2 → 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-ts/components",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "browser": "./src/index.ts",
5
5
  "main": "./lib/index.mjs",
6
6
  "module": "./lib/index.mjs",