@mateosuarezdev/react-ui 1.0.37 → 1.0.40
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.cjs +4 -4
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1813 -1726
- package/package.json +3 -3
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>, "selected" | "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,24 @@ declare const segmentedControlStyles: {
|
|
|
645
651
|
};
|
|
646
652
|
};
|
|
647
653
|
|
|
654
|
+
export declare function Select<T>({ label, labelPosition, options, selected, onChange, idExtractor, labelExtractor, customGetter, customSetter, error, placeholder, searchable, className, }: SelectProps<T>): JSX.Element;
|
|
655
|
+
|
|
656
|
+
declare interface SelectProps<T> {
|
|
657
|
+
label: string;
|
|
658
|
+
labelPosition?: "default" | "floating";
|
|
659
|
+
options: T[];
|
|
660
|
+
selected?: T | null;
|
|
661
|
+
onChange: (value: T) => void;
|
|
662
|
+
idExtractor: (item: T) => string | number;
|
|
663
|
+
labelExtractor: (item: T) => string;
|
|
664
|
+
customGetter?: (value: any, options: T[]) => T | null | undefined;
|
|
665
|
+
customSetter?: (item: T) => any;
|
|
666
|
+
error?: string;
|
|
667
|
+
placeholder?: string;
|
|
668
|
+
searchable?: boolean;
|
|
669
|
+
className?: string;
|
|
670
|
+
}
|
|
671
|
+
|
|
648
672
|
export declare const Separator: ({ className }: {
|
|
649
673
|
className?: string;
|
|
650
674
|
}) => JSX.Element;
|