hplx-react-elements-dev 1.2.23 → 1.2.25
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputFieldProps } from "../types";
|
|
3
|
-
declare const InputField: ({ label, labelColor, labelSize, height, start_icon, width, border, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, errorMsgClassName, inputProps, suffixInputProps, isborderRequired, suffixDropdown, isSuffixEditable, suffixPlaceholder, suffixClassName, fieldColor, handleSuffixClick, className, classNameParentDiv, showEmailSuggestions, }: InputFieldProps) => JSX.Element;
|
|
3
|
+
declare const InputField: ({ label, labelColor, labelSize, height, start_icon, width, border, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, errorMsgClassName, inputProps, suffixInputProps, isborderRequired, suffixDropdown, isSuffixEditable, suffixPlaceholder, suffixClassName, fieldColor, handleSuffixClick, className, classNameParentDiv, showEmailSuggestions, placeholderStyle, }: InputFieldProps) => JSX.Element;
|
|
4
4
|
export default InputField;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const NestedDropdown: ({ label, hint_text_icon, empty_text, hint_text, value, onChange, placeholder, errorMsg, className, medicineAdData, nestDropdownOption, end_icon, selectedOption, handleNestedDropdownVal, }: any) => JSX.Element;
|
|
2
|
+
declare const NestedDropdown: ({ label, hint_text_icon, empty_text, hint_text, value, onChange, placeholder, errorMsg, className, medicineAdData, nestDropdownOption, end_icon, selectedOption, handleNestedDropdownVal, insidePlaceholder, labelColor, placeholderStyle }: any) => JSX.Element;
|
|
3
3
|
export default NestedDropdown;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from "react";
|
|
2
|
+
interface placeholderStyle {
|
|
3
|
+
color: string;
|
|
4
|
+
fontFamily: string;
|
|
5
|
+
fontSize: string;
|
|
6
|
+
fontWeight: number;
|
|
7
|
+
lineHeight: string;
|
|
8
|
+
}
|
|
2
9
|
export interface InputFieldProps {
|
|
3
10
|
label?: string;
|
|
4
11
|
fieldColor?: string;
|
|
@@ -23,6 +30,7 @@ export interface InputFieldProps {
|
|
|
23
30
|
isborderRequired?: boolean;
|
|
24
31
|
inputProps: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
25
32
|
suffixInputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
33
|
+
placeholderStyle?: placeholderStyle;
|
|
26
34
|
suffixPlaceholder?: string;
|
|
27
35
|
suffixDropdown?: any;
|
|
28
36
|
handleSuffixClick?: (value: any) => void;
|
|
@@ -298,6 +306,8 @@ export interface DropdownFieldProps<IsMulti extends boolean> {
|
|
|
298
306
|
showSelectAllOption?: IsMulti extends true ? boolean : never;
|
|
299
307
|
selectAllLabel?: IsMulti extends true ? string : never;
|
|
300
308
|
prefixLabel?: string;
|
|
309
|
+
labelClassName?: string;
|
|
310
|
+
placeholderClassName?: string;
|
|
301
311
|
}
|
|
302
312
|
export type Select = <IsMulti extends boolean = false>(props: DropdownFieldProps<IsMulti>) => ReactElement;
|
|
303
313
|
export interface CardType {
|