@bitrise/bitkit 13.9.0 → 13.10.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": "13.9.0",
4
+ "version": "13.10.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -38,7 +38,7 @@
38
38
  "@floating-ui/react-dom-interactions": "^0.8.1",
39
39
  "@fontsource/figtree": "^5.0.18",
40
40
  "@fontsource/source-code-pro": "^5.0.16",
41
- "framer-motion": "^11.0.6",
41
+ "framer-motion": "^11.0.8",
42
42
  "luxon": "^3.4.4",
43
43
  "react": "^18.2.0",
44
44
  "react-dom": "^18.2.0",
@@ -51,8 +51,8 @@
51
51
  "react-dom": "^18.2.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@babel/core": "^7.23.9",
55
- "@babel/preset-env": "^7.23.9",
54
+ "@babel/core": "^7.24.0",
55
+ "@babel/preset-env": "^7.24.0",
56
56
  "@babel/preset-react": "^7.23.3",
57
57
  "@babel/preset-typescript": "^7.23.3",
58
58
  "@bitrise/eslint-plugin": "^2.7.0",
@@ -73,7 +73,7 @@
73
73
  "@testing-library/user-event": "^14.5.2",
74
74
  "@types/jest": "^29.5.12",
75
75
  "@types/luxon": "^3.4.2",
76
- "@types/react": "^18.2.60",
76
+ "@types/react": "^18.2.61",
77
77
  "@types/react-dom": "^18.2.19",
78
78
  "@typescript-eslint/eslint-plugin": "^7.1.0",
79
79
  "@typescript-eslint/parser": "^7.1.0",
@@ -0,0 +1,37 @@
1
+ import type { ComponentStyleConfig } from '@chakra-ui/theme';
2
+
3
+ const AccordionTheme: ComponentStyleConfig = {
4
+ baseStyle: {
5
+ button: {
6
+ _hover: {
7
+ background: 'background/hover',
8
+ },
9
+ _active: {
10
+ background: 'background/active',
11
+ },
12
+ alignItems: 'center',
13
+ display: 'flex',
14
+ justifyContent: 'space-between',
15
+ padding: '16',
16
+ width: '100%',
17
+ },
18
+ icon: {
19
+ height: '24',
20
+ marginLeft: '16',
21
+ width: '24',
22
+ },
23
+ item: {
24
+ borderTop: '1px solid',
25
+ borderTopColor: 'border/regular',
26
+ },
27
+ panel: {
28
+ padding: '16',
29
+ },
30
+ root: {
31
+ borderBottom: '1px solid',
32
+ borderBottomColor: 'border/regular',
33
+ },
34
+ },
35
+ };
36
+
37
+ export default AccordionTheme;
@@ -1,4 +1,5 @@
1
1
  import Alert from './Alert/Alert.theme';
2
+ import Accordion from './Accordion/Accordion.theme';
2
3
  import Avatar from './Avatar/Avatar.theme';
3
4
  import Badge from './Badge/Badge.theme';
4
5
  import Breadcrumb from './Breadcrumb/Breadcrumb.theme';
@@ -48,6 +49,7 @@ import FilterSwitch from './Filter/FilterSwitch/FilterSwitch.theme';
48
49
  import TagsInput from './Form/TagsInput/TagsInput.theme';
49
50
 
50
51
  const components = {
52
+ Accordion,
51
53
  Avatar,
52
54
  Badge,
53
55
  Breadcrumb,