@bitrise/bitkit 9.4.3-alpha-chakra.2 → 9.4.3
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/CHANGELOG.md +1 -3
- package/bitrise.yml +1 -1
- package/lib/cjs/Components/Provider/Provider.d.ts +0 -1
- package/lib/cjs/Components/Provider/Provider.d.ts.map +1 -1
- package/lib/cjs/Components/Text/Text.d.ts +1 -2
- package/lib/cjs/Components/Text/Text.d.ts.map +1 -1
- package/lib/cjs/Components/Text/Text.js +4 -4
- package/lib/cjs/Components/Text/Text.js.map +1 -1
- package/lib/cjs/Components/Text/Text.stories.d.ts +0 -1
- package/lib/cjs/Components/Text/Text.stories.d.ts.map +1 -1
- package/lib/cjs/Foundations/Colors/Colors.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Colors/Colors.examples.d.ts.map +1 -1
- package/lib/cjs/Foundations/Radii/Radii.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Radii/Radii.examples.d.ts.map +1 -1
- package/lib/cjs/Foundations/Shadows/Shadows.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Shadows/Shadows.examples.d.ts.map +1 -1
- package/lib/cjs/Foundations/Sizes/Sizes.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Sizes/Sizes.examples.d.ts.map +1 -1
- package/lib/cjs/Foundations/Typography/Typography.examples.d.ts +0 -1
- package/lib/cjs/Foundations/Typography/Typography.examples.d.ts.map +1 -1
- package/lib/cjs/index.d.ts +0 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +0 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esn/Components/Provider/Provider.d.ts +0 -1
- package/lib/esn/Components/Provider/Provider.d.ts.map +1 -1
- package/lib/esn/Components/Text/Text.d.ts +1 -2
- package/lib/esn/Components/Text/Text.d.ts.map +1 -1
- package/lib/esn/Components/Text/Text.js +4 -4
- package/lib/esn/Components/Text/Text.js.map +1 -1
- package/lib/esn/Components/Text/Text.stories.d.ts +0 -1
- package/lib/esn/Components/Text/Text.stories.d.ts.map +1 -1
- package/lib/esn/Foundations/Colors/Colors.examples.d.ts +0 -1
- package/lib/esn/Foundations/Colors/Colors.examples.d.ts.map +1 -1
- package/lib/esn/Foundations/Radii/Radii.examples.d.ts +0 -1
- package/lib/esn/Foundations/Radii/Radii.examples.d.ts.map +1 -1
- package/lib/esn/Foundations/Shadows/Shadows.examples.d.ts +0 -1
- package/lib/esn/Foundations/Shadows/Shadows.examples.d.ts.map +1 -1
- package/lib/esn/Foundations/Sizes/Sizes.examples.d.ts +0 -1
- package/lib/esn/Foundations/Sizes/Sizes.examples.d.ts.map +1 -1
- package/lib/esn/Foundations/Typography/Typography.examples.d.ts +0 -1
- package/lib/esn/Foundations/Typography/Typography.examples.d.ts.map +1 -1
- package/lib/esn/index.d.ts +0 -2
- package/lib/esn/index.d.ts.map +1 -1
- package/lib/esn/index.js +0 -2
- package/lib/esn/index.js.map +1 -1
- package/lib/esn/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -10
- package/release.config.js +1 -1
- package/site/index.html +1 -1
- package/src/Components/Text/Text.tsx +5 -5
- package/src/index.ts +0 -2
- package/lib/cjs/root.css +0 -5
- package/lib/esn/root.css +0 -5
- package/src/root.css +0 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit",
|
|
3
3
|
"description": "Bitrise React component library",
|
|
4
|
-
"version": "9.4.3
|
|
4
|
+
"version": "9.4.3",
|
|
5
5
|
"repository": "git@github.com:bitrise-io/bitkit.git",
|
|
6
6
|
"main": "lib/cjs/index.js",
|
|
7
7
|
"esnext": "lib/esn/index.js",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"clipboard": "^2.0.10",
|
|
46
46
|
"framer-motion": "^6.2.9",
|
|
47
47
|
"luxon": "^2.3.1",
|
|
48
|
-
"normalize.css": "^8.0.1",
|
|
49
48
|
"react": "^17.0.2",
|
|
50
49
|
"react-dom": "^17.0.2",
|
|
51
50
|
"react-popper": "^2.2.5",
|
|
@@ -60,7 +59,6 @@
|
|
|
60
59
|
"@bitrise/eslint-plugin": "^2.1.0",
|
|
61
60
|
"@commitlint/cli": "^16.2.3",
|
|
62
61
|
"@commitlint/config-conventional": "^16.2.1",
|
|
63
|
-
"@gkz/ast-types": "^0.14.4",
|
|
64
62
|
"@semantic-release/changelog": "^6.0.1",
|
|
65
63
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
66
64
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -83,7 +81,7 @@
|
|
|
83
81
|
"@types/lodash.shuffle": "^4.2.6",
|
|
84
82
|
"@types/luxon": "^2.3.1",
|
|
85
83
|
"@types/prismjs": "^1.26.0",
|
|
86
|
-
"@types/react": "17.0.
|
|
84
|
+
"@types/react": "17.0.43",
|
|
87
85
|
"@types/react-dom": "^17.0.14",
|
|
88
86
|
"@types/react-router": "^5.1.18",
|
|
89
87
|
"@types/react-router-dom": "^5.3.3",
|
|
@@ -98,7 +96,6 @@
|
|
|
98
96
|
"babel-plugin-polyfill-corejs2": "^0.3.1",
|
|
99
97
|
"chokidar-cli": "^3.0.0",
|
|
100
98
|
"concurrently": "^7.1.0",
|
|
101
|
-
"csstype": "3.0.10",
|
|
102
99
|
"enzyme": "^3.11.0",
|
|
103
100
|
"enzyme-to-json": "^3.6.2",
|
|
104
101
|
"eslint": "^8.12.0",
|
|
@@ -149,10 +146,5 @@
|
|
|
149
146
|
"transform": {
|
|
150
147
|
"\\.tsx?$": "ts-jest"
|
|
151
148
|
}
|
|
152
|
-
},
|
|
153
|
-
"resolutions": {
|
|
154
|
-
"**/ast-types": "npm:@gkz/ast-types",
|
|
155
|
-
"@types/react": "17.0.40",
|
|
156
|
-
"csstype": "3.0.10"
|
|
157
149
|
}
|
|
158
150
|
}
|
package/release.config.js
CHANGED
package/site/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charSet="utf-8" />
|
|
5
5
|
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
|
|
6
6
|
<meta content="width=device-width,initial-scale=1" name="viewport">
|
|
7
|
-
<title>
|
|
7
|
+
<title>Bitkit legacy</title>
|
|
8
8
|
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,600&display=swap" rel="stylesheet">
|
|
9
9
|
<link rel="shortcut icon" href="./assets/icons/favicon-32x32.png">
|
|
10
10
|
<link rel="icon" type="image/png" href="./assets/icons/favicon-32x32.png">
|
|
@@ -40,7 +40,7 @@ export interface Props {
|
|
|
40
40
|
* Font weight
|
|
41
41
|
*/
|
|
42
42
|
fontWeight?: 'bold' | 'normal';
|
|
43
|
-
letterSpacing?:
|
|
43
|
+
letterSpacing?: TextProps['letterSpacing'];
|
|
44
44
|
/**
|
|
45
45
|
* Size config (https://www.figma.com/file/grik9mTaJ5DfhydhWhXdP5/Bitkit-Foundations?node-id=211%3A12)
|
|
46
46
|
*/
|
|
@@ -53,20 +53,20 @@ export interface Props {
|
|
|
53
53
|
* Basic `Text` component
|
|
54
54
|
*/
|
|
55
55
|
const Text = (props: Props) => {
|
|
56
|
-
const { size, textTransform } = props;
|
|
56
|
+
const { fontWeight, size, textTransform } = props;
|
|
57
57
|
const properties: TextProps = { ...props };
|
|
58
58
|
if (size === '1' && (!textTransform || textTransform === 'none')) {
|
|
59
59
|
properties.textTransform = 'uppercase';
|
|
60
60
|
}
|
|
61
|
-
if (size === '5' || size === '6' || size === '7' || size === '8') {
|
|
61
|
+
if (!fontWeight && (size === '5' || size === '6' || size === '7' || size === '8')) {
|
|
62
62
|
properties.fontWeight = 'bold';
|
|
63
63
|
}
|
|
64
64
|
return <ChakraText {...properties} />;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
Text.defaultProps = {
|
|
68
|
-
as: '
|
|
69
|
-
size: '
|
|
68
|
+
as: 'p',
|
|
69
|
+
size: '3',
|
|
70
70
|
} as Props;
|
|
71
71
|
|
|
72
72
|
export default Text;
|
package/src/index.ts
CHANGED
package/lib/cjs/root.css
DELETED
package/lib/esn/root.css
DELETED