@bitrise/bitkit 12.58.0 → 12.59.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.58.0",
4
+ "version": "12.59.0",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -20,10 +20,12 @@ export interface DrawerProps
20
20
  maxWidth?: BoxProps['maxWidth'];
21
21
  title: string;
22
22
  padding?: BoxProps['padding'];
23
+ headerPadding?: BoxProps['padding'];
24
+ bodyPadding?: BoxProps['padding'];
23
25
  }
24
26
 
25
27
  const Drawer = (props: DrawerProps) => {
26
- const { children, footer, maxWidth = '20rem', padding, title, ...drawerProps } = props;
28
+ const { children, footer, maxWidth = '20rem', padding, headerPadding, bodyPadding, title, ...drawerProps } = props;
27
29
 
28
30
  return (
29
31
  <ChakraDrawer {...drawerProps}>
@@ -32,8 +34,10 @@ const Drawer = (props: DrawerProps) => {
32
34
  <DrawerCloseButton size="small">
33
35
  <Icon name="CloseSmall" />
34
36
  </DrawerCloseButton>
35
- <DrawerHeader as="h3">{title}</DrawerHeader>
36
- <DrawerBody>{children}</DrawerBody>
37
+ <DrawerHeader as="h3" padding={headerPadding}>
38
+ {title}
39
+ </DrawerHeader>
40
+ <DrawerBody padding={bodyPadding}>{children}</DrawerBody>
37
41
  {footer && <DrawerFooter>{footer}</DrawerFooter>}
38
42
  </DrawerContent>
39
43
  </ChakraDrawer>