hi-tm 0.0.5 → 0.0.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.
|
@@ -98,14 +98,14 @@ const DropDownMultiSelect = ({ label, data, valueHandler, placeholder, required,
|
|
|
98
98
|
modalOpenHandler?.(!isOpen);
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
return (react_1.default.createElement("div", { ref: dropdownRef, style: inlineStyle, className: "relative inline-block text-right
|
|
101
|
+
return (react_1.default.createElement("div", { ref: dropdownRef, style: inlineStyle, className: "relative inline-block text-right h-full max-w-[422px] w-full", dir: "rtl" },
|
|
102
102
|
react_1.default.createElement("div", { className: `w-full h-full ${disable ? 'cursor-not-allowed' : ''}` },
|
|
103
103
|
react_1.default.createElement("span", { className: "w-full flex items-start justify-start gap-1 pb-1" },
|
|
104
104
|
react_1.default.createElement("p", { className: `text-sm text-text-color-primary font-medium ${disable ? 'cursor-not-allowed' : 'cursor-pointer'}` }, label),
|
|
105
105
|
required && react_1.default.createElement("span", { className: "text-red-primary" }, "*")),
|
|
106
106
|
react_1.default.createElement("button", { type: "button", onClick: toggleDropdown, className: `input-style inline-flex relative items-center ${disable ? 'cursor-not-allowed' : 'cursor-pointer'} justify-between gap-x-1.5 text-sm font-semibold text-text-color-primary ${textError === null
|
|
107
107
|
? 'border-[2px] border-solid border-gray-tertiary'
|
|
108
|
-
: 'border-[2.5px] border-solid border-red-primary'}`, "aria-expanded": isOpen, "aria-haspopup": "listbox" },
|
|
108
|
+
: 'border-[2.5px] border-solid border-red-primary'} w-full max-w-[422px]`, "aria-expanded": isOpen, "aria-haspopup": "listbox" },
|
|
109
109
|
react_1.default.createElement("div", { className: "flex flex-row items-center justify-between w-full truncate" },
|
|
110
110
|
react_1.default.createElement("div", { className: "flex flex-nowrap gap-2 max-w-[calc(100%-24px)] items-center overflow-x-auto overflow-y-hidden scrollbar-hide" }, selectedItems.length > 0 ? (selectedItems.map((item, index) => (react_1.default.createElement("div", { key: index, className: "inline-flex flex-row items-center justify-center gap-1 bg-[#F8F9FC] rounded-md text-sm px-2 py-1 whitespace-nowrap" },
|
|
111
111
|
react_1.default.createElement("span", { className: "flex overflow-hidden text-ellipsis whitespace-nowrap max-w-[150px]", title: item.content }, item.content),
|
|
@@ -50,6 +50,11 @@ const TextInput = ({ label, required, value, placeholderText, autoComplete, auto
|
|
|
50
50
|
// Update the input value directly to enforce the validation
|
|
51
51
|
e.target.value = newValue;
|
|
52
52
|
}
|
|
53
|
+
else if (type === 'number' && maxLength) {
|
|
54
|
+
// Limit the number of characters for number input
|
|
55
|
+
newValue = newValue.slice(0, maxLength);
|
|
56
|
+
e.target.value = newValue;
|
|
57
|
+
}
|
|
53
58
|
setInputValue(newValue);
|
|
54
59
|
onChangeValueHandler(e);
|
|
55
60
|
};
|