@bitrise/bitkit 12.0.1 → 12.1.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.0.1",
4
+ "version": "12.1.0",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -20,15 +20,15 @@
20
20
  "framer-motion": "./node_modules/framer-motion/dist/cjs"
21
21
  },
22
22
  "dependencies": {
23
- "@chakra-ui/react": "^2.2.4",
24
- "@chakra-ui/react-utils": "^2.0.1",
25
- "@chakra-ui/styled-system": "^2.3.1",
26
- "@chakra-ui/utils": "^2.0.4",
27
- "@emotion/react": "^11.9.3",
28
- "@emotion/styled": "^11.9.3",
23
+ "@chakra-ui/react": "^2.3.7",
24
+ "@chakra-ui/react-utils": "^2.0.8",
25
+ "@chakra-ui/styled-system": "^2.3.4",
26
+ "@chakra-ui/utils": "^2.0.11",
27
+ "@emotion/react": "^11.10.5",
28
+ "@emotion/styled": "^11.10.5",
29
29
  "@floating-ui/react-dom-interactions": "^0.8.1",
30
- "framer-motion": "^6.5.1",
31
- "luxon": "^3.0.3",
30
+ "framer-motion": "^7.6.5",
31
+ "luxon": "^3.1.0",
32
32
  "react": "^18.2.0",
33
33
  "react-dom": "^18.2.0",
34
34
  "react-focus-lock": "^2.9.1"
@@ -38,7 +38,7 @@
38
38
  "react-dom": "^18.2.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/core": "^7.18.9",
41
+ "@babel/core": "^7.20.2",
42
42
  "@bitrise/eslint-plugin": "^2.2.0",
43
43
  "@commitlint/cli": "^16.3.0",
44
44
  "@commitlint/config-conventional": "^16.2.4",
@@ -46,46 +46,46 @@
46
46
  "@semantic-release/changelog": "^6.0.1",
47
47
  "@semantic-release/commit-analyzer": "^9.0.2",
48
48
  "@semantic-release/git": "^10.0.1",
49
- "@storybook/addon-actions": "^6.5.12",
50
- "@storybook/addon-essentials": "^6.5.12",
51
- "@storybook/addon-interactions": "^6.5.12",
52
- "@storybook/addon-links": "^6.5.12",
53
- "@storybook/addons": "^6.5.12",
54
- "@storybook/builder-webpack5": "^6.5.12",
55
- "@storybook/manager-webpack5": "^6.5.12",
56
- "@storybook/react": "^6.5.12",
49
+ "@storybook/addon-actions": "^6.5.13",
50
+ "@storybook/addon-essentials": "^6.5.13",
51
+ "@storybook/addon-interactions": "^6.5.13",
52
+ "@storybook/addon-links": "^6.5.13",
53
+ "@storybook/addons": "^6.5.13",
54
+ "@storybook/builder-webpack5": "^6.5.13",
55
+ "@storybook/manager-webpack5": "^6.5.13",
56
+ "@storybook/react": "^6.5.13",
57
57
  "@storybook/testing-library": "^0.0.13",
58
- "@storybook/theming": "^6.5.12",
59
- "@testing-library/dom": "^8.16.0",
60
- "@testing-library/jest-dom": "^5.16.4",
61
- "@testing-library/react": "^13.3.0",
58
+ "@storybook/theming": "^6.5.13",
59
+ "@testing-library/dom": "^8.19.0",
60
+ "@testing-library/jest-dom": "^5.16.5",
61
+ "@testing-library/react": "^13.4.0",
62
62
  "@testing-library/user-event": "^14.4.3",
63
- "@types/jest": "^29.0.3",
64
- "@types/luxon": "^3.0.1",
65
- "@types/react": "^18.0.21",
66
- "@types/react-dom": "^18.0.6",
67
- "@typescript-eslint/eslint-plugin": "^5.30.7",
68
- "@typescript-eslint/parser": "^5.30.7",
63
+ "@types/jest": "^29.2.2",
64
+ "@types/luxon": "^3.1.0",
65
+ "@types/react": "^18.0.25",
66
+ "@types/react-dom": "^18.0.8",
67
+ "@typescript-eslint/eslint-plugin": "^5.42.1",
68
+ "@typescript-eslint/parser": "^5.42.1",
69
69
  "axios": "^0.27.2",
70
- "eslint": "^8.20.0",
70
+ "eslint": "^8.27.0",
71
71
  "eslint-plugin-import": "^2.26.0",
72
72
  "eslint-plugin-jest": "^26.6.0",
73
- "eslint-plugin-jsx-a11y": "^6.6.0",
73
+ "eslint-plugin-jsx-a11y": "^6.6.1",
74
74
  "eslint-plugin-prettier": "^4.2.1",
75
- "eslint-plugin-react": "^7.30.1",
75
+ "eslint-plugin-react": "^7.31.10",
76
76
  "eslint-plugin-react-hooks": "^4.6.0",
77
- "eslint-plugin-storybook": "^0.6.1",
78
- "eslint-plugin-testing-library": "^5.5.1",
77
+ "eslint-plugin-storybook": "^0.6.7",
78
+ "eslint-plugin-testing-library": "^5.9.1",
79
79
  "glob": "^8.0.3",
80
80
  "husky": "^7.0.4",
81
- "jest": "^29.0.3",
81
+ "jest": "^29.3.1",
82
82
  "jest-environment-jsdom": "^28.1.3",
83
- "jsdom": "^20.0.0",
83
+ "jsdom": "^20.0.2",
84
84
  "prettier": "^2.7.1",
85
- "react-hook-form": "^7.33.1",
86
- "semantic-release": "^19.0.3",
87
- "ts-jest": "^29.0.1",
88
- "typescript": "^4.8.2"
85
+ "react-hook-form": "^7.39.2",
86
+ "semantic-release": "^19.0.5",
87
+ "ts-jest": "^29.0.3",
88
+ "typescript": "^4.8.4"
89
89
  },
90
90
  "files": [
91
91
  "src",
@@ -6,16 +6,18 @@ import {
6
6
  AccordionPanel,
7
7
  AccordionIcon,
8
8
  useAccordionStyles,
9
+ CollapseProps,
9
10
  } from '@chakra-ui/react';
10
11
 
11
12
  export interface AccordionItemProps {
12
13
  buttonContent: ReactNode | ((props: { isExpanded: boolean; isDisabled: boolean }) => ReactNode);
13
14
  children?: ReactNode | ((props: { isExpanded: boolean; isDisabled: boolean }) => ReactNode);
14
15
  id?: ChakraAccordionItemProps['id'];
16
+ motionProps?: CollapseProps;
15
17
  }
16
18
 
17
19
  const AccordionItem = (props: AccordionItemProps) => {
18
- const { buttonContent, children, id } = props;
20
+ const { buttonContent, children, id, motionProps } = props;
19
21
  const styles = useAccordionStyles();
20
22
 
21
23
  return (
@@ -27,7 +29,9 @@ const AccordionItem = (props: AccordionItemProps) => {
27
29
  <AccordionIcon sx={styles.icon} />
28
30
  </AccordionButton>
29
31
  {!!children && (
30
- <AccordionPanel>{typeof children === 'function' ? children(renderProps) : children}</AccordionPanel>
32
+ <AccordionPanel motionProps={motionProps}>
33
+ {typeof children === 'function' ? children(renderProps) : children}
34
+ </AccordionPanel>
31
35
  )}
32
36
  </>
33
37
  )}