@devtron-labs/devtron-fe-common-lib 0.0.46 → 0.0.47

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
@@ -26662,7 +26662,7 @@ function CustomInput(_a) {
26662
26662
  return jsxRuntime.jsx("span", __assign({ className: "".concat(isRequiredField ? 'dc__required-field' : '') }, { children: label }));
26663
26663
  }
26664
26664
  else {
26665
- return label();
26665
+ return label;
26666
26666
  }
26667
26667
  };
26668
26668
  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.46",
3
+ "version": "0.0.47",
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