@bitrise/bitkit 12.10.0 → 12.10.1

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.10.0",
4
+ "version": "12.10.1",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -1,14 +1,15 @@
1
- import IconButton from '../IconButton/IconButton';
1
+ import IconButton, { IconButtonProps } from '../IconButton/IconButton';
2
2
  import Menu, { MenuProps } from '../Menu/Menu';
3
3
  import MenuButton from '../Menu/MenuButton';
4
4
  import MenuList, { MenuListProps } from '../Menu/MenuList';
5
5
 
6
6
  export interface OverflowMenuProps extends MenuProps {
7
7
  children: MenuListProps['children'];
8
+ buttonSize?: IconButtonProps['size'];
8
9
  triggerLabel?: string;
9
10
  }
10
11
 
11
- const OverflowMenu = ({ children, triggerLabel }: OverflowMenuProps) => {
12
+ const OverflowMenu = ({ buttonSize = 'small', children, triggerLabel }: OverflowMenuProps) => {
12
13
  return (
13
14
  <Menu isLazy>
14
15
  <MenuButton
@@ -16,7 +17,7 @@ const OverflowMenu = ({ children, triggerLabel }: OverflowMenuProps) => {
16
17
  as={IconButton}
17
18
  iconName="MoreVertical"
18
19
  isTooltipDisabled
19
- size="small"
20
+ size={buttonSize}
20
21
  variant="tertiary"
21
22
  />
22
23
  <MenuList>{children}</MenuList>