@bitrise/bitkit 12.12.1 → 12.12.3

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.12.1",
4
+ "version": "12.12.3",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -8,7 +8,7 @@ export type ContentSwitcherProps = BoxProps & UseRadioGroupProps;
8
8
  /**
9
9
  * This is a custom radio button group, based on: https://chakra-ui.com/docs/components/radio/usage#custom-radio-buttons.
10
10
  */
11
- const ContentSwitcher = forwardRef<ContentSwitcherProps, 'div'>((props) => {
11
+ const ContentSwitcher = forwardRef<ContentSwitcherProps, 'div'>((props, ref) => {
12
12
  const { defaultValue, isDisabled, name, onChange, value, ...rest } = props;
13
13
 
14
14
  const { getRootProps, getRadioProps } = useRadioGroup({
@@ -32,7 +32,7 @@ const ContentSwitcher = forwardRef<ContentSwitcherProps, 'div'>((props) => {
32
32
 
33
33
  return (
34
34
  <ContentSwitcherContext value={ctx}>
35
- <Box __css={theme.container} {...group} {...rest} />
35
+ <Box __css={theme.container} ref={ref} {...group} {...rest} />
36
36
  </ContentSwitcherContext>
37
37
  );
38
38
  });
@@ -65,6 +65,7 @@ export { DropdownOption, DropdownGroup, DropdownSearch, NoResultsFound, Dropdown
65
65
  type DropdownInstance<T> = { value: T; name?: string };
66
66
  type DropdownChangeEventHandler<T> = (ev: { target: DropdownInstance<T> }) => void;
67
67
  export interface DropdownProps<T> extends ChakraProps {
68
+ id?: string;
68
69
  name?: string;
69
70
  onChange?: DropdownChangeEventHandler<T>;
70
71
  onBlur?: DropdownChangeEventHandler<T>;