@devtron-labs/devtron-fe-common-lib 0.0.47-beta-3 → 0.0.47-beta-5

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.
@@ -5,7 +5,7 @@ export interface CustomInputProps {
5
5
  onChange: (e: any) => void;
6
6
  onFocus?: (e: any) => void;
7
7
  autoComplete?: string;
8
- label?: string | (() => React.ReactNode);
8
+ label?: string | React.ReactNode;
9
9
  labelClassName?: string;
10
10
  type?: HTMLInputTypeAttribute;
11
11
  disabled?: boolean;
package/dist/index.js CHANGED
@@ -28286,7 +28286,7 @@ function CustomInput(_a) {
28286
28286
  return jsxRuntime.jsx("span", __assign({ className: "".concat(isRequiredField ? 'dc__required-field' : '') }, { children: label }));
28287
28287
  }
28288
28288
  else {
28289
- return label();
28289
+ return label;
28290
28290
  }
28291
28291
  };
28292
28292
  var renderInputLabel = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.0.47-beta-3",
3
+ "version": "0.0.47-beta-5",
4
4
  "description": "Supporting common component library",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -75,7 +75,7 @@ export function CustomInput({
75
75
  if (typeof label === 'string') {
76
76
  return <span className={`${isRequiredField ? 'dc__required-field' : ''}`}>{label}</span>
77
77
  } else {
78
- return label()
78
+ return label
79
79
  }
80
80
  }
81
81
 
@@ -6,7 +6,7 @@ export interface CustomInputProps {
6
6
  onChange: (e: any) => void
7
7
  onFocus?: (e: any) => void
8
8
  autoComplete?: string
9
- label?: string | (() => React.ReactNode)
9
+ label?: string | React.ReactNode
10
10
  labelClassName?: string
11
11
  type?: HTMLInputTypeAttribute
12
12
  disabled?: boolean