@bitrise/bitkit 10.32.1 → 10.32.2
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/package.json
CHANGED
|
@@ -118,6 +118,7 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
|
|
|
118
118
|
inputWrapperProps.zIndex = 0;
|
|
119
119
|
}
|
|
120
120
|
const RightContentWrapper = rightAddonPlacement === 'inside' ? InputRightElement : InputRightAddon;
|
|
121
|
+
const inputRightPadding = rightIconName || (rightAddon && rightAddonPlacement === 'inside') ? '43px' : '11px';
|
|
121
122
|
|
|
122
123
|
return (
|
|
123
124
|
<FormControl {...formControlProps}>
|
|
@@ -128,11 +129,7 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
|
|
|
128
129
|
<Icon name={leftIconName} />
|
|
129
130
|
</InputLeftElement>
|
|
130
131
|
)}
|
|
131
|
-
<ChakraInput
|
|
132
|
-
paddingLeft={leftIconName ? '43px' : '11px'}
|
|
133
|
-
paddingRight={rightIconName || rightAddon ? '43px' : '11px'}
|
|
134
|
-
{...inputProps}
|
|
135
|
-
/>
|
|
132
|
+
<ChakraInput paddingLeft={leftIconName ? '43px' : '11px'} paddingRight={inputRightPadding} {...inputProps} />
|
|
136
133
|
{rightAddon && <RightContentWrapper>{rightAddon}</RightContentWrapper>}
|
|
137
134
|
{!rightAddon && rightIconName && (
|
|
138
135
|
<InputRightElement margin="12px" pointerEvents="none">
|