@mateosuarezdev/react-ui 1.0.36 → 1.0.39

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
@@ -273,6 +273,12 @@ declare type FormMultiSelectProps<T> = Omit<MultiSelectProps<T>, "selectedValues
273
273
  name: string;
274
274
  };
275
275
 
276
+ export declare const FormSelect: <T>({ name, ...others }: FormSelectProps<T>) => JSX.Element;
277
+
278
+ declare type FormSelectProps<T> = Omit<SelectProps<T>, "selectedValue" | "onChange"> & {
279
+ name: string;
280
+ };
281
+
276
282
  export declare const FormSubmit: ({ isEditable, isDeletable, createUpdateLoading, deleteLoading, onDelete, onDeleteConfirm, addText, updateText, deleteText, className, }: {
277
283
  isEditable?: boolean;
278
284
  isDeletable?: boolean;
@@ -645,6 +651,26 @@ declare const segmentedControlStyles: {
645
651
  };
646
652
  };
647
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;
655
+
656
+ declare interface SelectProps<T> {
657
+ label: string;
658
+ labelPosition?: "default" | "floating";
659
+ options: T[];
660
+ selectedValue: T | null;
661
+ onChange: (value: T | null) => void;
662
+ idExtractor: (item: T) => string | number;
663
+ labelExtractor: (item: T) => string;
664
+ customSetter?: (item: T) => any;
665
+ valid?: boolean;
666
+ error?: string;
667
+ placeholder?: string;
668
+ searchable?: boolean;
669
+ disabled?: boolean;
670
+ clearable?: boolean;
671
+ className?: string;
672
+ }
673
+
648
674
  export declare const Separator: ({ className }: {
649
675
  className?: string;
650
676
  }) => JSX.Element;
@@ -680,7 +706,7 @@ declare type SpinnerProps = {
680
706
  spinnerClassName?: string;
681
707
  };
682
708
 
683
- export declare const SuperModal: ({ id, prevPath, withDelay, title, description, showHeader, mode, onReplace, className, contentClassName, children, }: SuperModalProps) => JSX.Element;
709
+ export declare const SuperModal: ({ id, prevPath, withDelay, withPortal, title, description, showHeader, mode, onReplace, className, contentClassName, children, }: SuperModalProps) => JSX.Element;
684
710
 
685
711
  declare type SuperModalProps = {
686
712
  id: string;
@@ -691,6 +717,11 @@ declare type SuperModalProps = {
691
717
  * rendering and entering animation
692
718
  */
693
719
  withDelay?: boolean;
720
+ /**
721
+ * If use or not portal, usually not needed
722
+ * on my app like router
723
+ */
724
+ withPortal?: boolean;
694
725
  title?: string;
695
726
  description?: string;
696
727
  showHeader?: boolean;