@devtron-labs/devtron-fe-common-lib 0.0.7-beta-7 → 0.0.7-beta-8
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/index.js
CHANGED
|
@@ -8670,7 +8670,7 @@ var TagLabelValueSelector = function (_a) {
|
|
|
8670
8670
|
};
|
|
8671
8671
|
var renderSuggestions = function () {
|
|
8672
8672
|
if (tagOptions === null || tagOptions === void 0 ? void 0 : tagOptions.length) {
|
|
8673
|
-
var filteredTags = tagOptions.filter(function (tag) { return tag.
|
|
8673
|
+
var filteredTags = tagOptions.filter(function (tag) { return tag.label.indexOf(selectedValue) >= 0; });
|
|
8674
8674
|
if (filteredTags.length) {
|
|
8675
8675
|
return (jsxRuntime.jsx("div", { children: filteredTags.map(function (tag, index) { return (jsxRuntime.jsx("div", __assign({ "data-key": tag.label, className: "dc__hover-n50 lh-20 fs-13 fw-4 pt-6 pr-8 pb-6 pl-8 cursor", onClick: onSelectValue }, { children: tag.label }), "".concat(tag.value, "-").concat(index))); }) }));
|
|
8676
8676
|
}
|
|
@@ -8681,7 +8681,7 @@ var TagLabelValueSelector = function (_a) {
|
|
|
8681
8681
|
? "dc__no-right-radius"
|
|
8682
8682
|
: "dc__no-border-radius dc__no-right-border dc__no-left-border", " ").concat(tagData[tagInputType === exports.KEY_VALUE.KEY ? 'isInvalidKey' : 'isInvalidValue']
|
|
8683
8683
|
? 'form__input--error'
|
|
8684
|
-
: ''), value: selectedValue, onChange: handleInputChange, onBlur: handleOnBlur, onFocus: handleOnFocus, placeholder: placeholder, tabIndex: tabIndex, refVar: refVar, dependentRef: dependentRef }) })), jsxRuntime.jsx(PopupMenu.Body, __assign({ rootClassName: "tag-".concat(selectedTagIndex, "-class"), autoWidth: true, preventWheelDisable: true }, { children: activeElement === "tag-".concat(tagInputType, "-").concat(selectedTagIndex) && renderSuggestions() }))] })));
|
|
8684
|
+
: ''), value: selectedValue, onChange: handleInputChange, onBlur: handleOnBlur, onFocus: handleOnFocus, placeholder: placeholder, tabIndex: tabIndex, refVar: refVar, dependentRef: dependentRef }) })), jsxRuntime.jsx(PopupMenu.Body, __assign({ rootClassName: "mxh-210 dc__overflow-auto tag-".concat(selectedTagIndex, "-class"), autoWidth: true, preventWheelDisable: true }, { children: activeElement === "tag-".concat(tagInputType, "-").concat(selectedTagIndex) && renderSuggestions() }))] })));
|
|
8685
8685
|
};
|
|
8686
8686
|
|
|
8687
8687
|
var TagDetails = function (_a) {
|
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@ export const TagLabelValueSelector = ({
|
|
|
104
104
|
|
|
105
105
|
const renderSuggestions = (): JSX.Element => {
|
|
106
106
|
if (tagOptions?.length) {
|
|
107
|
-
const filteredTags = tagOptions.filter((tag) => tag.
|
|
107
|
+
const filteredTags = tagOptions.filter((tag) => tag.label.indexOf(selectedValue) >= 0)
|
|
108
108
|
if (filteredTags.length) {
|
|
109
109
|
return (
|
|
110
110
|
<div>
|
|
@@ -150,7 +150,11 @@ export const TagLabelValueSelector = ({
|
|
|
150
150
|
dependentRef={dependentRef}
|
|
151
151
|
/>
|
|
152
152
|
</PopupMenu.Button>
|
|
153
|
-
<PopupMenu.Body
|
|
153
|
+
<PopupMenu.Body
|
|
154
|
+
rootClassName={`mxh-210 dc__overflow-auto tag-${selectedTagIndex}-class`}
|
|
155
|
+
autoWidth={true}
|
|
156
|
+
preventWheelDisable={true}
|
|
157
|
+
>
|
|
154
158
|
{activeElement === `tag-${tagInputType}-${selectedTagIndex}` && renderSuggestions()}
|
|
155
159
|
</PopupMenu.Body>
|
|
156
160
|
</PopupMenu>
|