@bitrise/bitkit 12.17.3 → 12.17.4
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,27 +1,13 @@
|
|
|
1
|
-
import { RadioGroup as ChakraRadioGroup, RadioGroupProps
|
|
2
|
-
import Box, { BoxProps } from '../../Box/Box';
|
|
1
|
+
import { RadioGroup as ChakraRadioGroup, RadioGroupProps } from '@chakra-ui/react';
|
|
3
2
|
|
|
4
|
-
export type RadioGroupProps
|
|
3
|
+
export type { RadioGroupProps };
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* RadioGroup component to help manage Radio components and conveniently pass a few shared style props to each.
|
|
8
7
|
* Composes Box.
|
|
9
8
|
*/
|
|
10
9
|
const RadioGroup = (props: RadioGroupProps) => {
|
|
11
|
-
|
|
12
|
-
const groupProps = {
|
|
13
|
-
defaultValue,
|
|
14
|
-
isDisabled,
|
|
15
|
-
isFocusable,
|
|
16
|
-
isNative,
|
|
17
|
-
onChange,
|
|
18
|
-
value,
|
|
19
|
-
};
|
|
20
|
-
return (
|
|
21
|
-
<ChakraRadioGroup {...groupProps}>
|
|
22
|
-
<Box {...boxProps}>{children}</Box>
|
|
23
|
-
</ChakraRadioGroup>
|
|
24
|
-
);
|
|
10
|
+
return <ChakraRadioGroup {...props} />;
|
|
25
11
|
};
|
|
26
12
|
|
|
27
13
|
export default RadioGroup;
|