hi-tm 0.19.6 → 0.19.7
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.
|
@@ -109,15 +109,15 @@ const InputCurrency = (0, react_1.forwardRef)(({ placeholder, value, required, c
|
|
|
109
109
|
};
|
|
110
110
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
111
111
|
react_1.default.createElement("div", { className: "w-full relative", style: inlineCss },
|
|
112
|
-
react_1.default.createElement("
|
|
113
|
-
react_1.default.createElement("p", { className: "text-sm text-text-color-primary font-medium
|
|
114
|
-
|
|
115
|
-
react_1.default.createElement("div", { className: `w-full h-
|
|
116
|
-
?
|
|
117
|
-
:
|
|
118
|
-
react_1.default.createElement("input", { ref: internalRef, type: "text", id: label, disabled: disabled, value: formatWithCommas(inputValue), placeholder: placeholder, autoComplete: autoComplete ? "on" : "off", autoFocus: autoFocus, onChange: handleChange, onBlur: onBlurHandler, onFocus: onFocusHandler, onKeyUp: onKeyUpHandler, onKeyDown: handleKeyDown, className: "outline-none bg-inherit w-full h-full", required: required }),
|
|
112
|
+
react_1.default.createElement("div", { className: "w-full flex items-start justify-start gap-1 pb-1" },
|
|
113
|
+
react_1.default.createElement("p", { className: "text-sm text-text-color-primary font-medium" }, label),
|
|
114
|
+
react_1.default.createElement("span", { className: `text-red-primary ${required ? 'opacity-100' : 'opacity-0'} ` }, "*")),
|
|
115
|
+
react_1.default.createElement("div", { className: `input-style w-full h-full inline-flex relative items-center justify-between gap-x-1.5 text-sm font-semibold text-text-color-primary ${textError === null
|
|
116
|
+
? 'border-[2px] border-solid border-gray-tertiary'
|
|
117
|
+
: 'border-[2.5px] border-solid border-red-primary'}` },
|
|
118
|
+
react_1.default.createElement("input", { ref: internalRef, type: "text", id: label, disabled: disabled, value: formatWithCommas(inputValue), placeholder: placeholder, autoComplete: autoComplete ? "on" : "off", autoFocus: autoFocus, onChange: handleChange, onBlur: onBlurHandler, onFocus: onFocusHandler, onKeyUp: onKeyUpHandler, onKeyDown: handleKeyDown, className: "outline-none bg-inherit w-full h-full pr-2", required: required }),
|
|
119
119
|
react_1.default.createElement("p", { className: "text-sm text-text-color-primary border-r border-gray-tertiary px-2" }, currencyUnit)),
|
|
120
|
-
|
|
120
|
+
react_1.default.createElement("span", { className: `${textError && textError.trim() !== '' ? 'opacity-100' : 'opacity-0'} text-sm mr-1 mt-2 text-nowrap font-normal text-red-primary` }, textError && textError.trim() !== '' && textError.trim()))));
|
|
121
121
|
});
|
|
122
122
|
InputCurrency.displayName = "InputCurrency";
|
|
123
123
|
exports.default = InputCurrency;
|