hplx-react-elements-dev 1.0.32 → 1.0.33
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/esm/index.js
CHANGED
|
@@ -2104,6 +2104,7 @@ var InputField = function InputField(_a) {
|
|
|
2104
2104
|
var label = _a.label,
|
|
2105
2105
|
labelColor = _a.labelColor,
|
|
2106
2106
|
labelSize = _a.labelSize,
|
|
2107
|
+
height = _a.height,
|
|
2107
2108
|
_b = _a.start_icon,
|
|
2108
2109
|
start_icon = _b === void 0 ? "" : _b,
|
|
2109
2110
|
_c = _a.end_icon,
|
|
@@ -2227,7 +2228,7 @@ var InputField = function InputField(_a) {
|
|
|
2227
2228
|
}, {
|
|
2228
2229
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
2229
2230
|
"data-setid": "error-msg",
|
|
2230
|
-
className: "flex ".concat(isborderRequired ? "border-1 shadow-xs rounded-lg" : "", " overflow-hidden placeholder:text-Gray-500 ").concat(errorMsg ? "border-Error-300" : "border-Gray-300", " h-10 ").concat(disabled ? "bg-Gray-50" : "bg-White ".concat(errorMsg ? "hover:shadow-xs-error ".concat(active && "shadow-xs-error") : " ".concat(isborderRequired ? "hover:border-Primary-300 hover:shadow-xs-primary ".concat(active && "border-Primary-300 shadow-xs-primary") : " ")))
|
|
2231
|
+
className: "flex ".concat(isborderRequired ? "border-1 shadow-xs rounded-lg" : "", " overflow-hidden placeholder:text-Gray-500 ").concat(errorMsg ? "border-Error-300" : "border-Gray-300", " ").concat(height ? height : "h-10", " ").concat(disabled ? "bg-Gray-50" : "bg-White ".concat(errorMsg ? "hover:shadow-xs-error ".concat(active && "shadow-xs-error") : " ".concat(isborderRequired ? "hover:border-Primary-300 hover:shadow-xs-primary ".concat(active && "border-Primary-300 shadow-xs-primary") : " ")))
|
|
2231
2232
|
}, {
|
|
2232
2233
|
children: [Boolean(prefix) && jsxRuntime.exports.jsx("div", __assign({
|
|
2233
2234
|
"data-testid": "input-prefix",
|
|
@@ -2344,6 +2345,9 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2344
2345
|
var _b;
|
|
2345
2346
|
|
|
2346
2347
|
var label = _a.label,
|
|
2348
|
+
labelColor = _a.labelColor,
|
|
2349
|
+
labelSize = _a.labelSize,
|
|
2350
|
+
height = _a.height,
|
|
2347
2351
|
_c = _a.start_icon,
|
|
2348
2352
|
start_icon = _c === void 0 ? "" : _c,
|
|
2349
2353
|
_d = _a.end_icon,
|
|
@@ -2408,10 +2412,10 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2408
2412
|
className: "flex justify-between"
|
|
2409
2413
|
}, {
|
|
2410
2414
|
children: [Boolean(label) && jsxRuntime.exports.jsx("div", __assign({
|
|
2411
|
-
className: "text-Gray-700 mb-1"
|
|
2415
|
+
className: "".concat(labelColor ? labelColor : "text-Gray-700", " mb-1")
|
|
2412
2416
|
}, {
|
|
2413
2417
|
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
2414
|
-
type: "Text sm",
|
|
2418
|
+
type: "".concat(labelSize ? labelSize : "Text sm"),
|
|
2415
2419
|
variant: "Medium"
|
|
2416
2420
|
}, {
|
|
2417
2421
|
children: label
|
|
@@ -2431,7 +2435,7 @@ var InputFieldSplit = function InputFieldSplit(_a) {
|
|
|
2431
2435
|
type: "Text md"
|
|
2432
2436
|
}, {
|
|
2433
2437
|
children: jsxRuntime.exports.jsxs("div", __assign({
|
|
2434
|
-
className: "flex border-1 overflow-hidden placeholder:text-Gray-500 ".concat(errorMsg ? "border-Error-300" : "border-Gray-300", " shadow-xs rounded-lg
|
|
2438
|
+
className: "flex border-1 overflow-hidden placeholder:text-Gray-500 ".concat(errorMsg ? "border-Error-300" : "border-Gray-300", " shadow-xs rounded-lg ").concat(height ? height : "h-10", " ").concat(disabled ? "bg-Gray-50" : "bg-White ".concat(errorMsg ? "hover:shadow-xs-error ".concat((active[fieldNames[0]] || active[fieldNames[1]]) && "shadow-xs-error") : "hover:border-Primary-300 hover:shadow-xs-primary ".concat((active[fieldNames[0]] || active[fieldNames[1]]) && "border-Primary-300 shadow-xs-primary")))
|
|
2435
2439
|
}, {
|
|
2436
2440
|
children: [Boolean(prefix) && jsxRuntime.exports.jsx("div", __assign({
|
|
2437
2441
|
"data-testid": "input-prefix",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputFieldProps } from "../types";
|
|
3
|
-
declare const InputField: ({ label, labelColor, labelSize, start_icon, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, inputProps, isborderRequired, suffixDropdown, isSuffixEditable, suffixPlaceholder, handleSuffixClick, handleSuffixValChange, }: InputFieldProps) => JSX.Element;
|
|
3
|
+
declare const InputField: ({ label, labelColor, labelSize, height, start_icon, end_icon, hint_text_icon, prefix, suffixButton, suffix, hint_text, char_count, errorMsg, inputProps, isborderRequired, suffixDropdown, isSuffixEditable, suffixPlaceholder, handleSuffixClick, handleSuffixValChange, }: InputFieldProps) => JSX.Element;
|
|
4
4
|
export default InputField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputFieldSplitProps } from "../types";
|
|
3
|
-
declare const InputFieldSplit: ({ label, start_icon, end_icon, hint_text_icon, prefix, suffix, hint_text, fieldNames, char_count, errorMsg, onChange, value, inputProps, }: InputFieldSplitProps) => JSX.Element;
|
|
3
|
+
declare const InputFieldSplit: ({ label, labelColor, labelSize, height, start_icon, end_icon, hint_text_icon, prefix, suffix, hint_text, fieldNames, char_count, errorMsg, onChange, value, inputProps, }: InputFieldSplitProps) => JSX.Element;
|
|
4
4
|
export default InputFieldSplit;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export interface InputFieldProps {
|
|
|
3
3
|
label?: string;
|
|
4
4
|
labelSize?: typographyTextType;
|
|
5
5
|
labelColor?: string;
|
|
6
|
+
height?: string;
|
|
6
7
|
prefix?: ReactNode;
|
|
7
8
|
suffixButton?: ReactNode;
|
|
8
9
|
suffix?: ReactNode;
|
|
@@ -22,6 +23,9 @@ export interface InputFieldProps {
|
|
|
22
23
|
}
|
|
23
24
|
export interface InputFieldSplitProps {
|
|
24
25
|
label?: string;
|
|
26
|
+
labelSize?: typographyTextType;
|
|
27
|
+
height?: string;
|
|
28
|
+
labelColor?: string;
|
|
25
29
|
prefix?: ReactNode;
|
|
26
30
|
suffix?: ReactNode;
|
|
27
31
|
start_icon?: string;
|