@bitrise/bitkit 12.33.0 → 12.33.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
|
@@ -3,7 +3,7 @@ import { useMultiStyleConfig, useRadioGroup, UseRadioGroupProps, forwardRef } fr
|
|
|
3
3
|
import Box, { BoxProps } from '../Box/Box';
|
|
4
4
|
import { SegmentedControlContext, SegmentedControlContextType } from './SegmentedControl.context';
|
|
5
5
|
|
|
6
|
-
export type SegmentedControlProps = BoxProps & UseRadioGroupProps;
|
|
6
|
+
export type SegmentedControlProps = Omit<BoxProps, 'onChange'> & UseRadioGroupProps;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* This is a custom radio button group, based on: https://chakra-ui.com/docs/components/radio/usage#custom-radio-buttons.
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from '@chakra-ui/react';
|
|
12
12
|
import Icon from '../Icon/Icon';
|
|
13
13
|
import ProgressSpinner from '../ProgressSpinner/ProgressSpinner';
|
|
14
|
+
import Text from '../Text/Text';
|
|
14
15
|
|
|
15
16
|
export interface SelectProps extends Omit<FormControlProps, 'label' | 'onBlur' | 'onChange'> {
|
|
16
17
|
'data-testid'?: string;
|
|
@@ -74,7 +75,18 @@ const Select = forwardRef<SelectProps, 'div'>((props, ref) => {
|
|
|
74
75
|
|
|
75
76
|
return (
|
|
76
77
|
<FormControl {...formControlProps}>
|
|
77
|
-
{label &&
|
|
78
|
+
{label && (
|
|
79
|
+
<FormLabel
|
|
80
|
+
requiredIndicator={null as any}
|
|
81
|
+
optionalIndicator={
|
|
82
|
+
<Text as="span" fontSize="2" color="neutral.40" fontWeight="normal" marginLeft="4px">
|
|
83
|
+
(Optional)
|
|
84
|
+
</Text>
|
|
85
|
+
}
|
|
86
|
+
>
|
|
87
|
+
{label}
|
|
88
|
+
</FormLabel>
|
|
89
|
+
)}
|
|
78
90
|
<ChakraSelect data-testid={dataTestid} ref={ref} {...selectProperties}>
|
|
79
91
|
{placeholder && (
|
|
80
92
|
<option disabled value="">
|