@agility/plenum-ui 2.1.9 → 2.1.10

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.
@@ -18,6 +18,7 @@ export interface IFormInputWithAddonsProps extends Omit<IInputFieldProps, "type"
18
18
  customIconClass?: string;
19
19
  type: AcceptedInputTypes;
20
20
  addonBTN?: INestedInputButtonProps;
21
+ inputRef: React.RefObject<HTMLInputElement>;
21
22
  }
22
23
  declare const FormInputWithAddons: React.FC<IFormInputWithAddonsProps>;
23
24
  export default FormInputWithAddons;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility/plenum-ui",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -20,6 +20,7 @@ export interface IFormInputWithAddonsProps extends Omit<IInputFieldProps, "type"
20
20
  customIconClass?: string
21
21
  type: AcceptedInputTypes
22
22
  addonBTN?: INestedInputButtonProps
23
+ inputRef: React.RefObject<HTMLInputElement>
23
24
  }
24
25
 
25
26
  const FormInputWithAddons: React.FC<IFormInputWithAddonsProps> = ({
@@ -46,6 +47,7 @@ const FormInputWithAddons: React.FC<IFormInputWithAddonsProps> = ({
46
47
  customIconClass,
47
48
  type,
48
49
  addonBTN,
50
+ inputRef,
49
51
  ...rest
50
52
  }) => {
51
53
  // #region logic to determine the width of the lead and or trailing labels in order to offset the input padding by the appropriate amount.
@@ -114,7 +116,8 @@ const FormInputWithAddons: React.FC<IFormInputWithAddonsProps> = ({
114
116
  style: {
115
117
  paddingRight: `${trailLabelWidth + addonOffset}px`,
116
118
  paddingLeft: `${leadLabelWidth + addonOffset}px`
117
- }
119
+ },
120
+ inputRef
118
121
  }}
119
122
  />
120
123
  {(trailLabel || trailIcon) && (