hplx-react-elements-dev 1.1.21 → 1.1.23
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 +12 -8
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -4804,13 +4804,13 @@ var getSizeClassName$2 = function getSizeClassName(size) {
|
|
|
4804
4804
|
var getPaddingClassName = function getPaddingClassName(size, disabled) {
|
|
4805
4805
|
switch (size) {
|
|
4806
4806
|
case "sm":
|
|
4807
|
-
return disabled ? "hplxt-flex hplxt-w-
|
|
4807
|
+
return disabled ? "hplxt-flex hplxt-w-[16px] hplxt-h-[16px] hplxt-bg-white hplxt-border hplxt-border-Gray-300 hplxt-border-Gray-300 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hplxt-bg-Gray-200 hplxt-p-2 " : "hplxt-flex hplxt-w-[16px] hplxt-h-[16px] hplxt-bg-white hplxt-border hplxt-border-Gray-300 hover:hplxt-border-Primary-600 peer-checked:hplxt-border-Primary-600 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hover:hplxt-bg-Primary-50 peer-checked:hplxt-bg-Primary-600 hplxt-p-2 peer-checked:hplxt-ring-2 hplxt-ring-Primary-300 peer-checked:hplxt-border-transparent ";
|
|
4808
4808
|
|
|
4809
4809
|
case "md":
|
|
4810
|
-
return disabled ? "hplxt-flex hplxt-w-
|
|
4810
|
+
return disabled ? "hplxt-flex hplxt-w-[20px] hplxt-h-[20px] hplxt-bg-white hplxt-border hplxt-border-Gray-300 hplxt-border-Gray-300 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hplxt-bg-Gray-200 hplxt-p-2 " : "hplxt-flex hplxt-w-[20px] hplxt-h-[20px] hplxt-bg-white hplxt-border hplxt-border-Gray-300 hover:hplxt-border-Primary-600 peer-checked:hplxt-border-Primary-600 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hover:hplxt-bg-Primary-50 peer-checked:hplxt-bg-Primary-600 hplxt-p-2 peer-checked:hplxt-ring-2 peer-checked:hplxt-border-transparent ";
|
|
4811
4811
|
|
|
4812
4812
|
default:
|
|
4813
|
-
return "hplxt-flex hplxt-w-
|
|
4813
|
+
return "hplxt-flex hplxt-w-[16px] hplxt-h-[16px] hplxt-bg-white hplxt-border hplxt-border-Gray-300 hover:hplxt-border-Primary-600 peer-checked:hplxt-border-Primary-600 hplxt-rounded-full hplxt-cursor-pointer focus:hplxt-outline-none hover:hplxt-bg-Primary-50 peer-checked:hplxt-bg-Primary-600 hplxt-p-2 peer-checked:hplxt-ring-2 hplxt-ring-Primary-300 peer-checked:hplxt-border-transparent ";
|
|
4814
4814
|
}
|
|
4815
4815
|
};
|
|
4816
4816
|
|
|
@@ -4821,13 +4821,13 @@ var getLabelStyle$1 = function getLabelStyle(disabled) {
|
|
|
4821
4821
|
var getIconTypeClassName = function getIconTypeClassName(iconfile, size, disabled) {
|
|
4822
4822
|
switch (iconfile) {
|
|
4823
4823
|
case "dot":
|
|
4824
|
-
return size === "sm" ? disabled ? "hplxt-ring-4 hplxt-p-1 hplxt-ring-Gray-50 hplxt-bg-Gray-300 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-
|
|
4824
|
+
return size === "sm" ? disabled ? "hplxt-ring-4 hplxt-p-1 hplxt-ring-Gray-50 hplxt-bg-Gray-300 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block" : "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block" : disabled ? "hplxt-ring-4 hplxt-p-1 hplxt-ring-Gray-50 hplxt-bg-Gray-300 -hplxt-ml-[14px] hplxt-mt-[6px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block" : "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[14px] hplxt-mt-[6px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block";
|
|
4825
4825
|
|
|
4826
4826
|
case "checkmark":
|
|
4827
4827
|
return size === "sm" ? disabled ? "hx_checkmark hplxt-text-[12px] -hplxt-ml-[17px] hplxt-mt-[3px] hplxt-text-White peer-checked:hplxt-block " : "hplxt-hidden hx_checkmark hplxt-text-[12px] -hplxt-ml-[17px] hplxt-mt-[3px] hplxt-text-White peer-checked:hplxt-block" : disabled ? "hx_checkmark -hplxt-ml-[21px] hplxt-mt-[2px] hplxt-text-White peer-checked:hplxt-block " : "hplxt-hidden hx_checkmark -hplxt-ml-[21px] hplxt-mt-[2px] hplxt-text-White peer-checked:hplxt-block";
|
|
4828
4828
|
|
|
4829
4829
|
default:
|
|
4830
|
-
return size === "sm" ? "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-
|
|
4830
|
+
return size === "sm" ? "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[13px] hplxt-mt-[4.95px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block" : "hplxt-hidden hplxt-ring-4 hplxt-p-1 hplxt-ring-Primary-50 -hplxt-ml-[14px] hplxt-mt-[6px] hplxt-w-[8px] hplxt-h-[8px] hplxt-rounded-full peer-checked:hplxt-block";
|
|
4831
4831
|
}
|
|
4832
4832
|
};
|
|
4833
4833
|
|
|
@@ -5731,7 +5731,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5731
5731
|
|
|
5732
5732
|
|
|
5733
5733
|
var handleSuggestionClick = function handleSuggestionClick(selectedItem, index) {
|
|
5734
|
-
var val = selectedItem.value
|
|
5734
|
+
var val = selectedItem.value;
|
|
5735
5735
|
var result = "";
|
|
5736
5736
|
|
|
5737
5737
|
if (suggestionValue === null || suggestionValue === void 0 ? void 0 : suggestionValue.length) {
|
|
@@ -5744,7 +5744,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5744
5744
|
// result = debris.join(", ");
|
|
5745
5745
|
// suggestionText(suggestionValue[0])
|
|
5746
5746
|
result = suggestionText(suggestionValue)[0].trim();
|
|
5747
|
-
val = result + "
|
|
5747
|
+
val = result + "\n" + selectedItem.value + "\n";
|
|
5748
5748
|
}
|
|
5749
5749
|
|
|
5750
5750
|
handleSuggestionValChange && handleSuggestionValChange(val, "dropdown");
|
|
@@ -5761,6 +5761,8 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5761
5761
|
}
|
|
5762
5762
|
|
|
5763
5763
|
if (e.keyCode === 40) {
|
|
5764
|
+
if (focusIndex >= 0) e.preventDefault();
|
|
5765
|
+
|
|
5764
5766
|
if (focusIndex < suggestionArr.length - 1) {
|
|
5765
5767
|
var focusI = focusIndex + 1;
|
|
5766
5768
|
|
|
@@ -5774,6 +5776,8 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5774
5776
|
|
|
5775
5777
|
|
|
5776
5778
|
if (e.keyCode === 38) {
|
|
5779
|
+
if (focusIndex >= 0) e.preventDefault();
|
|
5780
|
+
|
|
5777
5781
|
if (focusIndex > 0) {
|
|
5778
5782
|
var focusI = focusIndex - 1;
|
|
5779
5783
|
|
|
@@ -5786,7 +5790,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5786
5790
|
}
|
|
5787
5791
|
|
|
5788
5792
|
if (e.keyCode === 13 || e.keyCode === 9) {
|
|
5789
|
-
e.preventDefault();
|
|
5793
|
+
if (focusIndex >= 0) e.preventDefault();
|
|
5790
5794
|
|
|
5791
5795
|
if (focusIndex >= 0) {
|
|
5792
5796
|
// const res = [suggestionArr[focusIndex].value.trim()];
|