@bitrise/bitkit 12.5.0 → 12.6.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
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
} from '@chakra-ui/react';
|
|
17
17
|
import { TypeColors } from '../../../Foundations/Colors/Colors';
|
|
18
18
|
import Icon, { TypeIconName } from '../../Icon/Icon';
|
|
19
|
+
import Text from '../../Text/Text';
|
|
19
20
|
|
|
20
21
|
type UsedFormControlProps = Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'>;
|
|
21
22
|
type UsedChakraInputProps = Pick<
|
|
@@ -125,7 +126,18 @@ const Input = forwardRef<InputProps, 'div'>((props, ref) => {
|
|
|
125
126
|
|
|
126
127
|
return (
|
|
127
128
|
<FormControl {...formControlProps}>
|
|
128
|
-
{label &&
|
|
129
|
+
{label && (
|
|
130
|
+
<FormLabel
|
|
131
|
+
requiredIndicator={null as any}
|
|
132
|
+
optionalIndicator={
|
|
133
|
+
<Text as="span" fontSize="2" color="neutral.40" fontWeight="normal" marginLeft="4px">
|
|
134
|
+
(Optional)
|
|
135
|
+
</Text>
|
|
136
|
+
}
|
|
137
|
+
>
|
|
138
|
+
{label}
|
|
139
|
+
</FormLabel>
|
|
140
|
+
)}
|
|
129
141
|
<InputWrapper {...inputWrapperProps}>
|
|
130
142
|
{leftIconName && (
|
|
131
143
|
<InputLeftElement margin="12px" pointerEvents="none">
|