@mateosuarezdev/react-ui 1.0.39 → 1.0.42

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/dist/index.d.ts CHANGED
@@ -275,7 +275,7 @@ declare type FormMultiSelectProps<T> = Omit<MultiSelectProps<T>, "selectedValues
275
275
 
276
276
  export declare const FormSelect: <T>({ name, ...others }: FormSelectProps<T>) => JSX.Element;
277
277
 
278
- declare type FormSelectProps<T> = Omit<SelectProps<T>, "selectedValue" | "onChange"> & {
278
+ declare type FormSelectProps<T> = Omit<SelectProps<T>, "selected" | "onChange"> & {
279
279
  name: string;
280
280
  };
281
281
 
@@ -651,23 +651,21 @@ declare const segmentedControlStyles: {
651
651
  };
652
652
  };
653
653
 
654
- export declare const Select: <T>({ label, labelPosition, options, selectedValue, onChange, idExtractor, labelExtractor, customSetter, valid, error, placeholder, searchable, disabled, clearable, className, }: SelectProps<T>) => JSX.Element;
654
+ export declare function Select<T>({ label, labelPosition, options, selected, onChange, idExtractor, labelExtractor, customGetter, customSetter, error, placeholder, searchable, className, }: SelectProps<T>): JSX.Element;
655
655
 
656
656
  declare interface SelectProps<T> {
657
657
  label: string;
658
658
  labelPosition?: "default" | "floating";
659
659
  options: T[];
660
- selectedValue: T | null;
661
- onChange: (value: T | null) => void;
660
+ selected?: T | null;
661
+ onChange: (value: T) => void;
662
662
  idExtractor: (item: T) => string | number;
663
663
  labelExtractor: (item: T) => string;
664
+ customGetter?: (value: any, options: T[]) => T | null | undefined;
664
665
  customSetter?: (item: T) => any;
665
- valid?: boolean;
666
666
  error?: string;
667
667
  placeholder?: string;
668
668
  searchable?: boolean;
669
- disabled?: boolean;
670
- clearable?: boolean;
671
669
  className?: string;
672
670
  }
673
671