hplx-react-elements-dev 1.0.44 → 1.0.46
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 { AddSuggestionProps } from "../types";
|
|
3
|
-
declare const AddSuggestion: ({ isInputField, label, labelColor, labelSize, start_icon, height, width, end_icon, prefix, suffixButton, suffix, suffixDropdown, isSuffixEditable, suffixInputProps, suffixPlaceholder, handleSuggestionValChange, handleSuffixValChange, handleSuffixClick, char_count, onSuggestionClick, className, rows, hint_text_icon, hint_text, errorMsg, inputProps, inputFieldInputProps, options, suggestionValue, isborderRequired, isDynamicHeight, fieldColor, }: AddSuggestionProps) => JSX.Element;
|
|
3
|
+
declare const AddSuggestion: ({ isInputField, label, labelColor, labelSize, start_icon, height, width, end_icon, prefix, suffixButton, suffix, suffixDropdown, isSuffixEditable, suffixInputProps, suffixPlaceholder, handleSuggestionValChange, handleSuffixValChange, handleSuffixClick, char_count, onSuggestionClick, className, rows, hint_text_icon, hint_text, errorMsg, inputProps, inputFieldInputProps, options, suggestionValue, isborderRequired, isDynamicHeight, fieldColor, suffixClassName, }: AddSuggestionProps) => JSX.Element;
|
|
4
4
|
export default AddSuggestion;
|
package/dist/esm/index.js
CHANGED
|
@@ -2143,6 +2143,7 @@ var InputField = function InputField(_a) {
|
|
|
2143
2143
|
_g = _a.isSuffixEditable,
|
|
2144
2144
|
isSuffixEditable = _g === void 0 ? false : _g,
|
|
2145
2145
|
suffixPlaceholder = _a.suffixPlaceholder,
|
|
2146
|
+
suffixClassName = _a.suffixClassName,
|
|
2146
2147
|
fieldColor = _a.fieldColor,
|
|
2147
2148
|
_h = _a.handleSuffixClick,
|
|
2148
2149
|
handleSuffixClick = _h === void 0 ? function (_) {} : _h;
|
|
@@ -2296,7 +2297,7 @@ var InputField = function InputField(_a) {
|
|
|
2296
2297
|
})), isSuffixEditable && jsxRuntime.exports.jsxs("div", {
|
|
2297
2298
|
children: [jsxRuntime.exports.jsx("div", __assign({
|
|
2298
2299
|
"data-testid": "input-suffix",
|
|
2299
|
-
className: "".concat(fieldColor ? fieldColor : "hplxt-bg-Gray-50", " hplxt-bg-none hplxt-border-l-1 hplxt-border-l-Gray-300 hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pr-3 hplxt-pl-[14px]"),
|
|
2300
|
+
className: "".concat(fieldColor ? fieldColor : "hplxt-bg-Gray-50", " hplxt-bg-none hplxt-border-l-1 hplxt-border-l-Gray-300 hplxt-text-Gray-500 hplxt-flex hplxt-items-center hplxt-pr-3 hplxt-pl-[14px] ").concat(suffixClassName),
|
|
2300
2301
|
onClick: function onClick() {
|
|
2301
2302
|
return setShowSuffixDropdown(true);
|
|
2302
2303
|
}
|
|
@@ -5263,7 +5264,8 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5263
5264
|
isborderRequired = _r === void 0 ? true : _r,
|
|
5264
5265
|
_s = _a.isDynamicHeight,
|
|
5265
5266
|
isDynamicHeight = _s === void 0 ? false : _s,
|
|
5266
|
-
fieldColor = _a.fieldColor
|
|
5267
|
+
fieldColor = _a.fieldColor,
|
|
5268
|
+
suffixClassName = _a.suffixClassName;
|
|
5267
5269
|
|
|
5268
5270
|
var _t = useState(false),
|
|
5269
5271
|
showDropdown = _t[0],
|
|
@@ -5357,6 +5359,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5357
5359
|
isborderRequired: isborderRequired,
|
|
5358
5360
|
isSuffixEditable: isSuffixEditable,
|
|
5359
5361
|
suffixInputProps: suffixInputProps,
|
|
5362
|
+
suffixClassName: suffixClassName,
|
|
5360
5363
|
inputProps: __assign(__assign({}, inputFieldInputProps), {
|
|
5361
5364
|
onChange: changeHandler,
|
|
5362
5365
|
value: suggestionValue
|
|
@@ -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, inputProps, suffixInputProps, isborderRequired, suffixDropdown, isSuffixEditable, suffixPlaceholder, fieldColor, handleSuffixClick, }: 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, inputProps, suffixInputProps, isborderRequired, suffixDropdown, isSuffixEditable, suffixPlaceholder, suffixClassName, fieldColor, handleSuffixClick, }: InputFieldProps) => JSX.Element;
|
|
4
4
|
export default InputField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { popUpModalProps } from "../types";
|
|
3
|
-
declare const PopUpModal: ({ backgroundColor, position, margin, zIndex, padding, width, height, boxShadow, borderRadius, ClassNames, openModal, closeModal, Children, style,
|
|
3
|
+
declare const PopUpModal: ({ backgroundColor, position, margin, zIndex, padding, width, height, boxShadow, borderRadius, ClassNames, openModal, closeModal, Children, style, }: popUpModalProps) => JSX.Element;
|
|
4
4
|
export default PopUpModal;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ReactNode } from "react";
|
|
|
2
2
|
export interface InputFieldProps {
|
|
3
3
|
label?: string;
|
|
4
4
|
fieldColor?: string;
|
|
5
|
+
suffixClassName?: string;
|
|
5
6
|
width?: string | number;
|
|
6
7
|
border?: string;
|
|
7
8
|
labelSize?: typographyTextType;
|
|
@@ -105,8 +106,6 @@ export interface popUpModalProps {
|
|
|
105
106
|
ClassNames?: ReactNode;
|
|
106
107
|
openModal?: boolean;
|
|
107
108
|
closeModal?: () => void;
|
|
108
|
-
onCreateHandler: () => void;
|
|
109
|
-
onUpdateHandler?: () => void;
|
|
110
109
|
}
|
|
111
110
|
export interface TextAreaFieldProps {
|
|
112
111
|
label?: string;
|
|
@@ -379,6 +378,7 @@ export interface AddSuggestionProps {
|
|
|
379
378
|
inputProps?: React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
|
|
380
379
|
inputFieldInputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
381
380
|
suffixInputProps?: React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
|
|
381
|
+
suffixClassName?: string;
|
|
382
382
|
onSuggestionClick?: (selectedValue: any) => void;
|
|
383
383
|
options?: Array<DropdownItemsProps>;
|
|
384
384
|
suggestionValue?: string;
|