@bitrise/bitkit 12.4.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.4.0",
4
+ "version": "12.6.0",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -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 && <FormLabel>{label}</FormLabel>}
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">
@@ -0,0 +1,4 @@
1
+ import { Slide, SlideProps } from '@chakra-ui/react';
2
+
3
+ export type { SlideProps };
4
+ export default Slide;