@devtron-labs/devtron-fe-common-lib 0.0.7-beta-6 → 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
@@ -1968,7 +1968,7 @@ function GenericEmptyState(_a) {
1968
1968
  function ErrorScreenNotFound() {
1969
1969
  var history = reactRouter.useHistory();
1970
1970
  var redirectToHome = function () {
1971
- history.push('/app/list');
1971
+ history.push('app/list');
1972
1972
  };
1973
1973
  var renderGenerateButton = function () {
1974
1974
  return (jsxRuntime.jsx("button", __assign({ className: "flex cta h-32", onClick: redirectToHome }, { children: ERROR_EMPTY_SCREEN.TAKE_BACK_HOME })));
@@ -8670,18 +8670,18 @@ 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.value.indexOf(selectedValue) >= 0; });
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
  }
8677
8677
  }
8678
8678
  return renderValidationsSuggestions();
8679
8679
  };
8680
- return (jsxRuntime.jsxs(PopupMenu, __assign({ autoClose: true, autoPosition: true }, { children: [jsxRuntime.jsx(PopupMenu.Button, __assign({ rootClassName: "dc__bg-n50 flex top dc__no-border" }, { children: jsxRuntime.jsx(ResizableTagTextArea, { minHeight: 30, maxHeight: 80, className: "form__input pt-4-imp pb-4-imp fs-13 ".concat(tagInputType === exports.KEY_VALUE.KEY
8680
+ return (jsxRuntime.jsxs(PopupMenu, __assign({ autoClose: true, autoPosition: true }, { children: [jsxRuntime.jsx(PopupMenu.Button, __assign({ rootClassName: "dc__bg-n50 flex top dc__no-border-imp" }, { children: jsxRuntime.jsx(ResizableTagTextArea, { minHeight: 30, maxHeight: 80, className: "form__input pt-4-imp pb-4-imp fs-13 ".concat(tagInputType === exports.KEY_VALUE.KEY
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.7-beta-6",
3
+ "version": "0.0.7-beta-8",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -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.value.indexOf(selectedValue) >= 0)
107
+ const filteredTags = tagOptions.filter((tag) => tag.label.indexOf(selectedValue) >= 0)
108
108
  if (filteredTags.length) {
109
109
  return (
110
110
  <div>
@@ -127,7 +127,7 @@ export const TagLabelValueSelector = ({
127
127
 
128
128
  return (
129
129
  <PopupMenu autoClose autoPosition>
130
- <PopupMenu.Button rootClassName="dc__bg-n50 flex top dc__no-border">
130
+ <PopupMenu.Button rootClassName="dc__bg-n50 flex top dc__no-border-imp">
131
131
  <ResizableTagTextArea
132
132
  minHeight={30}
133
133
  maxHeight={80}
@@ -150,7 +150,11 @@ export const TagLabelValueSelector = ({
150
150
  dependentRef={dependentRef}
151
151
  />
152
152
  </PopupMenu.Button>
153
- <PopupMenu.Body rootClassName={`tag-${selectedTagIndex}-class`} autoWidth={true} preventWheelDisable={true}>
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>
@@ -7,7 +7,7 @@ import GenericEmptyState from './EmptyState/GenericEmptyState'
7
7
  function ErrorScreenNotFound() {
8
8
  const history = useHistory()
9
9
  const redirectToHome = () => {
10
- history.push('/app/list')
10
+ history.push('app/list')
11
11
  }
12
12
  const renderGenerateButton = () => {
13
13
  return (