@bitrise/bitkit 13.12.0 → 13.13.0
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
1
|
+
import { ChangeEvent, ReactNode, Ref, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
FormControl,
|
|
4
4
|
FormControlProps,
|
|
@@ -49,6 +49,7 @@ export interface InputProps extends UsedFormControlProps, UsedChakraInputProps {
|
|
|
49
49
|
inputHeight?: number;
|
|
50
50
|
inputRef?: Ref<HTMLInputElement>;
|
|
51
51
|
inputStyle?: SystemStyleObject;
|
|
52
|
+
inputWrapperStyle?: SystemStyleObject;
|
|
52
53
|
label?: ReactNode;
|
|
53
54
|
leftIconColor?: TypeColors;
|
|
54
55
|
leftIconName?: TypeIconName;
|
|
@@ -73,6 +74,7 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
|
|
|
73
74
|
inputHeight,
|
|
74
75
|
inputRef,
|
|
75
76
|
inputStyle,
|
|
77
|
+
inputWrapperStyle,
|
|
76
78
|
isDisabled,
|
|
77
79
|
isInvalid,
|
|
78
80
|
isLoading,
|
|
@@ -125,8 +127,10 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
|
|
|
125
127
|
value,
|
|
126
128
|
};
|
|
127
129
|
|
|
128
|
-
let InputWrapper: any =
|
|
129
|
-
const inputWrapperProps: SystemStyleObject = {
|
|
130
|
+
let InputWrapper: any = Box;
|
|
131
|
+
const inputWrapperProps: SystemStyleObject = {
|
|
132
|
+
...inputWrapperStyle,
|
|
133
|
+
};
|
|
130
134
|
if (leftIconName || rightAddon || rightIconName) {
|
|
131
135
|
InputWrapper = InputGroup;
|
|
132
136
|
inputWrapperProps.zIndex = 0;
|