@bitrise/bitkit 12.58.0 → 12.59.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.58.0",
4
+ "version": "12.59.1",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -19,75 +19,75 @@
19
19
  "framer-motion": "./node_modules/framer-motion/dist/cjs"
20
20
  },
21
21
  "dependencies": {
22
- "@chakra-ui/react": "^2.8.1",
22
+ "@chakra-ui/react": "^2.8.2",
23
23
  "@chakra-ui/react-utils": "^2.0.12",
24
- "@chakra-ui/styled-system": "^2.9.1",
25
- "@chakra-ui/theme": "^3.3.0",
26
- "@chakra-ui/theme-tools": "^2.1.1",
24
+ "@chakra-ui/styled-system": "^2.9.2",
25
+ "@chakra-ui/theme": "^3.3.1",
26
+ "@chakra-ui/theme-tools": "^2.1.2",
27
27
  "@chakra-ui/utils": "^2.0.15",
28
28
  "@emotion/react": "^11.11.1",
29
29
  "@emotion/styled": "^11.11.0",
30
30
  "@floating-ui/react-dom-interactions": "^0.8.1",
31
- "framer-motion": "^10.16.4",
32
- "luxon": "^3.4.3",
31
+ "framer-motion": "^10.16.5",
32
+ "luxon": "^3.4.4",
33
33
  "react": "^18.2.0",
34
34
  "react-dom": "^18.2.0",
35
35
  "react-focus-lock": "^2.9.6",
36
- "react-markdown": "^9.0.0"
36
+ "react-markdown": "^9.0.1"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": "^18.2.0",
40
40
  "react-dom": "^18.2.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@babel/core": "^7.23.2",
44
- "@babel/preset-env": "^7.23.2",
45
- "@babel/preset-react": "^7.22.15",
46
- "@babel/preset-typescript": "^7.23.2",
47
- "@bitrise/eslint-plugin": "^2.3.0",
43
+ "@babel/core": "^7.23.3",
44
+ "@babel/preset-env": "^7.23.3",
45
+ "@babel/preset-react": "^7.23.3",
46
+ "@babel/preset-typescript": "^7.23.3",
47
+ "@bitrise/eslint-plugin": "^2.3.2",
48
48
  "@commitlint/cli": "^17.8.0",
49
49
  "@commitlint/config-conventional": "^17.8.0",
50
- "@google-cloud/storage": "^7.3.0",
51
- "@semantic-release/commit-analyzer": "^11.0.0",
50
+ "@google-cloud/storage": "^7.6.0",
51
+ "@semantic-release/commit-analyzer": "^11.1.0",
52
52
  "@semantic-release/git": "^10.0.1",
53
- "@storybook/addon-actions": "^7.5.0",
54
- "@storybook/addon-essentials": "^7.5.0",
55
- "@storybook/addon-interactions": "^7.5.0",
56
- "@storybook/addon-links": "^7.5.0",
57
- "@storybook/addons": "^7.5.0",
58
- "@storybook/blocks": "^7.5.0",
59
- "@storybook/react": "^7.5.0",
60
- "@storybook/react-webpack5": "^7.5.0",
53
+ "@storybook/addon-actions": "^7.5.3",
54
+ "@storybook/addon-essentials": "^7.5.3",
55
+ "@storybook/addon-interactions": "^7.5.3",
56
+ "@storybook/addon-links": "^7.5.3",
57
+ "@storybook/addons": "^7.5.3",
58
+ "@storybook/blocks": "^7.5.3",
59
+ "@storybook/react": "^7.5.3",
60
+ "@storybook/react-webpack5": "^7.5.3",
61
61
  "@storybook/testing-library": "^0.2.2",
62
- "@storybook/theming": "^7.5.0",
62
+ "@storybook/theming": "^7.5.3",
63
63
  "@testing-library/dom": "^9.3.3",
64
64
  "@testing-library/jest-dom": "^6.1.4",
65
- "@testing-library/react": "^14.0.0",
65
+ "@testing-library/react": "^14.1.0",
66
66
  "@testing-library/user-event": "^14.5.1",
67
- "@types/jest": "^29.5.5",
68
- "@types/luxon": "^3.3.2",
69
- "@types/react": "^18.2.28",
70
- "@types/react-dom": "^18.2.13",
71
- "@typescript-eslint/eslint-plugin": "^6.8.0",
72
- "@typescript-eslint/parser": "^6.8.0",
73
- "axios": "^1.5.1",
74
- "eslint": "^8.51.0",
75
- "eslint-plugin-import": "^2.28.1",
76
- "eslint-plugin-jest": "^27.4.2",
77
- "eslint-plugin-jsx-a11y": "^6.7.1",
67
+ "@types/jest": "^29.5.8",
68
+ "@types/luxon": "^3.3.4",
69
+ "@types/react": "^18.2.37",
70
+ "@types/react-dom": "^18.2.15",
71
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
72
+ "@typescript-eslint/parser": "^6.11.0",
73
+ "axios": "^1.6.2",
74
+ "eslint": "^8.53.0",
75
+ "eslint-plugin-import": "^2.29.0",
76
+ "eslint-plugin-jest": "^27.6.0",
77
+ "eslint-plugin-jsx-a11y": "^6.8.0",
78
78
  "eslint-plugin-prettier": "^5.0.1",
79
79
  "eslint-plugin-react": "^7.33.2",
80
80
  "eslint-plugin-react-hooks": "^4.6.0",
81
81
  "eslint-plugin-storybook": "^0.6.15",
82
- "eslint-plugin-testing-library": "^6.1.0",
82
+ "eslint-plugin-testing-library": "^6.1.2",
83
83
  "glob": "^10.3.10",
84
84
  "jest": "^29.7.0",
85
85
  "jest-environment-jsdom": "^29.7.0",
86
86
  "jsdom": "^22.1.0",
87
- "prettier": "^3.0.3",
88
- "react-hook-form": "^7.47.0",
89
- "semantic-release": "^22.0.5",
90
- "storybook": "^7.5.0",
87
+ "prettier": "^3.1.0",
88
+ "react-hook-form": "^7.48.2",
89
+ "semantic-release": "^22.0.7",
90
+ "storybook": "^7.5.3",
91
91
  "ts-jest": "^29.1.1",
92
92
  "typescript": "^4.8.4"
93
93
  },
@@ -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>