@bitrise/bitkit 13.67.1-alpha.1 → 13.69.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.67.1-alpha.1",
4
+ "version": "13.69.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.20",
40
40
  "@fontsource/source-code-pro": "^5.0.18",
41
- "framer-motion": "^11.1.8",
41
+ "framer-motion": "^11.2.4",
42
42
  "luxon": "^3.4.4",
43
43
  "react": "^18.3.1",
44
44
  "react-dom": "^18.3.1",
@@ -55,38 +55,38 @@
55
55
  "@babel/preset-env": "^7.24.5",
56
56
  "@babel/preset-react": "^7.24.1",
57
57
  "@babel/preset-typescript": "^7.24.1",
58
- "@bitrise/eslint-plugin": "^2.10.2",
58
+ "@bitrise/eslint-plugin": "^2.11.0",
59
59
  "@chakra-ui/cli": "^2.4.1",
60
60
  "@google-cloud/storage": "^7.11.0",
61
- "@storybook/addon-actions": "^8.0.10",
62
- "@storybook/addon-essentials": "^8.0.10",
63
- "@storybook/addon-interactions": "^8.0.10",
64
- "@storybook/addon-links": "^8.0.10",
61
+ "@storybook/addon-actions": "^8.1.1",
62
+ "@storybook/addon-essentials": "^8.1.1",
63
+ "@storybook/addon-interactions": "^8.1.1",
64
+ "@storybook/addon-links": "^8.1.1",
65
65
  "@storybook/addon-webpack5-compiler-swc": "^1.0.2",
66
- "@storybook/blocks": "^8.0.10",
67
- "@storybook/react": "^8.0.10",
68
- "@storybook/react-webpack5": "^8.0.10",
69
- "@storybook/theming": "^8.0.10",
66
+ "@storybook/blocks": "^8.1.1",
67
+ "@storybook/react": "^8.1.1",
68
+ "@storybook/react-webpack5": "^8.1.1",
69
+ "@storybook/theming": "^8.1.1",
70
70
  "@testing-library/dom": "^10.1.0",
71
71
  "@testing-library/jest-dom": "^6.4.5",
72
- "@testing-library/react": "^15.0.6",
72
+ "@testing-library/react": "^15.0.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.3.1",
76
+ "@types/react": "^18.3.2",
77
77
  "@types/react-dom": "^18.3.0",
78
- "@typescript-eslint/eslint-plugin": "^7.8.0",
79
- "@typescript-eslint/parser": "^7.8.0",
78
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
79
+ "@typescript-eslint/parser": "^7.9.0",
80
80
  "axios": "^1.6.8",
81
81
  "eslint": "^8.57.0",
82
- "glob": "^10.3.12",
82
+ "glob": "^10.3.15",
83
83
  "jest": "^29.7.0",
84
84
  "jest-environment-jsdom": "^29.7.0",
85
85
  "jsdom": "^24.0.0",
86
86
  "prettier": "^3.2.5",
87
87
  "react-hook-form": "^7.51.4",
88
88
  "release-it": "^17.2.1",
89
- "storybook": "^8.0.10",
89
+ "storybook": "^8.1.1",
90
90
  "ts-jest": "^29.1.2",
91
91
  "typescript": "^5.4.5"
92
92
  },
@@ -1,22 +1,23 @@
1
1
  import { defineStyle, defineStyleConfig, SystemStyleObject } from '@chakra-ui/styled-system';
2
+ import { rem } from '../../utils/utils';
2
3
  import { CodeSnippetProps } from './CodeSnippet';
3
4
 
4
5
  const contentPadding = (variant: CodeSnippetProps['variant']) => {
5
6
  switch (variant) {
6
7
  case 'single':
7
8
  return {
8
- padding: '.75rem',
9
- paddingLeft: '1rem',
9
+ padding: '12',
10
+ paddingLeft: '16',
10
11
  paddingRight: '0',
11
12
  };
12
13
  case 'multi':
13
14
  return {
14
- padding: '1rem',
15
+ padding: '16',
15
16
  };
16
17
  default:
17
18
  return {
18
- paddingX: '.375rem',
19
- paddingY: '.125rem',
19
+ paddingX: rem(6),
20
+ paddingY: rem(2),
20
21
  };
21
22
  }
22
23
  };
@@ -54,7 +55,7 @@ const baseStyle = defineStyle(({ variant, size, isExpanded }): SystemStyleObject
54
55
  div: {
55
56
  overflow: 'auto !important',
56
57
  },
57
- minHeight: variant === 'inline' ? '1.5rem' : '2.5rem',
58
+ minHeight: variant === 'inline' ? '24' : '40',
58
59
  overflow: 'auto',
59
60
  scrollbarHeight: variant === 'single' ? 'none' : undefined,
60
61
  '::-webkit-scrollbar': {
@@ -63,7 +64,7 @@ const baseStyle = defineStyle(({ variant, size, isExpanded }): SystemStyleObject
63
64
  position: variant === 'single' ? 'relative' : 'static',
64
65
  textColor: 'text/body',
65
66
  textStyle: size === 'md' ? 'code/md' : 'code/lg',
66
- lineHeight: '1rem',
67
+ lineHeight: rem(16),
67
68
  width: '100%',
68
69
  whiteSpace: variant === 'single' ? 'nowrap' : 'pre',
69
70
  ...contentPadding(variant),
@@ -30,7 +30,7 @@ const defaultComponents = (size: 'sm' | 'md' | 'lg', gap: GapType = '16'): Compo
30
30
  </Box>
31
31
  ),
32
32
  code: ({ node, ...props }) => (
33
- <CodeSnippet variant="multi" {...props}>
33
+ <CodeSnippet variant="multi" {...props} size={codeSize}>
34
34
  {props.children as string}
35
35
  </CodeSnippet>
36
36
  ),