@devtron-labs/devtron-fe-common-lib 0.0.7-beta-12 → 0.0.7-beta-14

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.
@@ -28,6 +28,7 @@ export interface TagLabelSelectType {
28
28
  tabIndex?: number;
29
29
  selectedProjectId?: number;
30
30
  suggestedTagsOptions?: SuggestedTagOptionType[];
31
+ reloadProjectTags?: boolean;
31
32
  }
32
33
  export interface TagDetailType {
33
34
  index: number;
package/dist/index.js CHANGED
@@ -8590,8 +8590,8 @@ function ResizableTagTextArea(_a) {
8590
8590
  var reInitHeight = function () {
8591
8591
  if (document.activeElement !== refVar.current)
8592
8592
  return;
8593
- refVar.current.style.height = 'auto';
8594
- dependentRef.current.style.height = 'auto';
8593
+ refVar.current.style.height = minHeight + 'px';
8594
+ dependentRef.current.style.height = minHeight + 'px';
8595
8595
  var nextHeight = refVar.current.scrollHeight;
8596
8596
  if (nextHeight < dependentRef.current.scrollHeight) {
8597
8597
  nextHeight = dependentRef.current.scrollHeight;
@@ -8607,8 +8607,8 @@ function ResizableTagTextArea(_a) {
8607
8607
  };
8608
8608
  useThrottledEffect(reInitHeight, 500, [text]);
8609
8609
  var handleOnBlur = function (event) {
8610
- refVar.current.style.height = 'auto';
8611
- dependentRef.current.style.height = 'auto';
8610
+ refVar.current.style.height = minHeight + 'px';
8611
+ dependentRef.current.style.height = minHeight + 'px';
8612
8612
  onBlur && onBlur(event);
8613
8613
  };
8614
8614
  var handleOnFocus = function (event) {
@@ -8684,7 +8684,7 @@ var TagLabelValueSelector = function (_a) {
8684
8684
  return (jsxRuntime.jsx("div", __assign({ "data-key": tag.label, "data-propagate": tag.propagate, 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)));
8685
8685
  };
8686
8686
  var optionWithTippy = function (tag, index) {
8687
- return (jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: false, placement: "bottom", content: jsxRuntime.jsxs("div", __assign({ className: "pt-6 pr-10 pb-6 pl-10" }, { children: [jsxRuntime.jsx("div", __assign({ className: "mb-10 fs-12 fw-6 cn-0" }, { children: tag.label })), jsxRuntime.jsx("div", __assign({ className: "fs-12 fw-4 cn-0" }, { children: tag.description }))] })) }, { children: option(tag, index) })));
8687
+ return (jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: false, placement: "right", content: jsxRuntime.jsxs("div", __assign({ className: "pt-6 pr-10 pb-6 pl-10" }, { children: [jsxRuntime.jsx("div", __assign({ className: "mb-10 fs-12 fw-6 cn-0 dc__break-word" }, { children: tag.label })), jsxRuntime.jsx("div", __assign({ className: "fs-12 fw-4 cn-0 dc__break-word" }, { children: tag.description }))] })) }, { children: option(tag, index) })));
8688
8688
  };
8689
8689
  var renderSuggestions = function () {
8690
8690
  if (tagOptions === null || tagOptions === void 0 ? void 0 : tagOptions.length) {
@@ -16312,7 +16312,7 @@ var MultiValueChipContainer = function (_a) {
16312
16312
  var isValidEmail = validator ? validator(value) : true;
16313
16313
  if (isAllSelected && value !== '*')
16314
16314
  return null;
16315
- return (jsxRuntime.jsxs(components.MultiValueContainer, __assign({}, { data: data, innerProps: innerProps, selectProps: selectProps }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flex fs-12 pl-4 pr-4" }, { children: [!isValidEmail && jsxRuntime.jsx(SvgIcErrorMedium, { className: "mr-4 icon-dim-16" }), jsxRuntime.jsx("div", __assign({ className: "".concat(isValidEmail ? 'cn-9' : 'cr-5') }, { children: label }))] })), children[1]] })));
16315
+ return (jsxRuntime.jsxs(components.MultiValueContainer, __assign({}, { data: data, innerProps: innerProps, selectProps: selectProps }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flex left fs-12 pl-4 pr-4 dc__ellipsis-right" }, { children: [!isValidEmail && jsxRuntime.jsx(SvgIcErrorMedium, { className: "mr-4 icon-dim-16" }), jsxRuntime.jsx("div", __assign({ className: "dc__ellipsis-right ".concat(isValidEmail ? 'cn-9' : 'cr-5') }, { children: label }))] })), children[1]] })));
16316
16316
  };
16317
16317
  var multiSelectStyles = {
16318
16318
  control: function (base, state) { return (__assign(__assign({}, base), { cursor: state.isDisabled ? 'not-allowed' : 'normal', border: state.isFocused ? '1px solid #06c' : '1px solid #d6dbdf', boxShadow: 'none' })); },
@@ -16344,7 +16344,7 @@ function InfoColourBar(_a) {
16344
16344
  }
16345
16345
  return (linkOnClick && (jsxRuntime.jsx("div", __assign({ onClick: linkOnClick, className: "cursor dc__link dc__underline-onhover" }, { children: linkText }))));
16346
16346
  };
16347
- return (jsxRuntime.jsx("div", __assign({ className: "info-bar-container" }, { children: jsxRuntime.jsxs("div", __assign({ className: "".concat(classname, " info_text flex dc__content-space pt-8 pb-8 pl-16 pr-16 br-4 top fs-13 fw-4"), style: styles }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flex top ".concat(typeof renderActionButton === 'function' ? 'mr-5' : '') }, { children: [jsxRuntime.jsx("div", __assign({ className: "icon-dim-".concat(iconSize !== null && iconSize !== void 0 ? iconSize : '20', " mr-10") }, { children: jsxRuntime.jsx(Icon, { className: "icon-dim-".concat(iconSize !== null && iconSize !== void 0 ? iconSize : '20', " ").concat(iconClass || '', " mr-8") }) })), jsxRuntime.jsxs("div", __assign({ className: "info-bar-message-wrapper ".concat(linkClass || '') }, { children: [jsxRuntime.jsx("span", __assign({ className: linkText && redirectLink ? 'mr-5' : '' }, { children: message })), renderLink()] }))] })), typeof renderActionButton === 'function' && renderActionButton()] })) })));
16347
+ return (jsxRuntime.jsx("div", __assign({ className: "info-bar-container" }, { children: jsxRuntime.jsxs("div", __assign({ className: "".concat(classname, " info_text flex dc__content-space pt-8 pb-8 pl-12 pr-12 br-4 top fs-13 fw-4"), style: styles }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flex top ".concat(typeof renderActionButton === 'function' ? 'mr-5' : '') }, { children: [jsxRuntime.jsx("div", __assign({ className: "icon-dim-".concat(iconSize !== null && iconSize !== void 0 ? iconSize : '20', " mr-10") }, { children: jsxRuntime.jsx(Icon, { className: "icon-dim-".concat(iconSize !== null && iconSize !== void 0 ? iconSize : '20', " ").concat(iconClass || '', " mr-8") }) })), jsxRuntime.jsxs("div", __assign({ className: "info-bar-message-wrapper ".concat(linkClass || '') }, { children: [jsxRuntime.jsx("span", __assign({ className: linkText && redirectLink ? 'mr-5' : '' }, { children: message })), renderLink()] }))] })), typeof renderActionButton === 'function' && renderActionButton()] })) })));
16348
16348
  }
16349
16349
 
16350
16350
  var getTeamListMin = function () {
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-12",
3
+ "version": "0.0.7-beta-14",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -28,8 +28,8 @@ export function ResizableTagTextArea({
28
28
 
29
29
  const reInitHeight = () => {
30
30
  if (document.activeElement !== refVar.current) return
31
- refVar.current.style.height = 'auto'
32
- dependentRef.current.style.height = 'auto'
31
+ refVar.current.style.height = minHeight+ 'px'
32
+ dependentRef.current.style.height = minHeight+ 'px'
33
33
  let nextHeight = refVar.current.scrollHeight
34
34
  if (nextHeight < dependentRef.current.scrollHeight) {
35
35
  nextHeight = dependentRef.current.scrollHeight
@@ -47,8 +47,8 @@ export function ResizableTagTextArea({
47
47
  useThrottledEffect(reInitHeight, 500, [text])
48
48
 
49
49
  const handleOnBlur = (event) => {
50
- refVar.current.style.height = 'auto'
51
- dependentRef.current.style.height = 'auto'
50
+ refVar.current.style.height = minHeight+ 'px'
51
+ dependentRef.current.style.height = minHeight+ 'px'
52
52
  onBlur && onBlur(event)
53
53
  }
54
54
 
@@ -124,13 +124,13 @@ export const TagLabelValueSelector = ({
124
124
  <Tippy
125
125
  className="default-tt"
126
126
  arrow={false}
127
- placement="bottom"
127
+ placement="right"
128
128
  content={
129
129
  <div className="pt-6 pr-10 pb-6 pl-10">
130
- <div className="mb-10 fs-12 fw-6 cn-0">
130
+ <div className="mb-10 fs-12 fw-6 cn-0 dc__break-word">
131
131
  {tag.label}
132
132
  </div>
133
- <div className="fs-12 fw-4 cn-0">
133
+ <div className="fs-12 fw-4 cn-0 dc__break-word">
134
134
  {tag.description}
135
135
  </div>
136
136
  </div>
@@ -29,6 +29,7 @@ export interface TagLabelSelectType {
29
29
  tabIndex?: number
30
30
  selectedProjectId?: number
31
31
  suggestedTagsOptions?: SuggestedTagOptionType[]
32
+ reloadProjectTags?: boolean
32
33
  }
33
34
 
34
35
  export interface TagDetailType {
@@ -57,7 +57,7 @@ function InfoColourBar({
57
57
  return (
58
58
  <div className="info-bar-container">
59
59
  <div
60
- className={`${classname} info_text flex dc__content-space pt-8 pb-8 pl-16 pr-16 br-4 top fs-13 fw-4`}
60
+ className={`${classname} info_text flex dc__content-space pt-8 pb-8 pl-12 pr-12 br-4 top fs-13 fw-4`}
61
61
  style={styles}
62
62
  >
63
63
  <div className={`flex top ${typeof renderActionButton === 'function' ? 'mr-5' : ''}`}>
@@ -87,9 +87,9 @@ export const MultiValueChipContainer = ({ validator, isAllSelected = false, ...p
87
87
 
88
88
  return (
89
89
  <components.MultiValueContainer {...{ data, innerProps, selectProps }}>
90
- <div className={`flex fs-12 pl-4 pr-4`}>
90
+ <div className="flex left fs-12 pl-4 pr-4 dc__ellipsis-right">
91
91
  {!isValidEmail && <RedWarning className="mr-4 icon-dim-16" />}
92
- <div className={`${isValidEmail ? 'cn-9' : 'cr-5'}`}>{label}</div>
92
+ <div className={`dc__ellipsis-right ${isValidEmail ? 'cn-9' : 'cr-5'}`}>{label}</div>
93
93
  </div>
94
94
  {children[1]}
95
95
  </components.MultiValueContainer>