@agility/plenum-ui 2.1.9 → 2.1.11
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.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/tailwind.css +5 -20204
- package/dist/types/stories/organisms/FormInputWithAddons/FormInputWithAddons.d.ts +1 -0
- package/package.json +1 -1
- package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +4 -1
|
@@ -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
|
@@ -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) && (
|