@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.
Files changed (56) hide show
  1. package/CHANGELOG.md +1 -3
  2. package/bitrise.yml +1 -1
  3. package/lib/cjs/Components/Provider/Provider.d.ts +0 -1
  4. package/lib/cjs/Components/Provider/Provider.d.ts.map +1 -1
  5. package/lib/cjs/Components/Text/Text.d.ts +1 -2
  6. package/lib/cjs/Components/Text/Text.d.ts.map +1 -1
  7. package/lib/cjs/Components/Text/Text.js +4 -4
  8. package/lib/cjs/Components/Text/Text.js.map +1 -1
  9. package/lib/cjs/Components/Text/Text.stories.d.ts +0 -1
  10. package/lib/cjs/Components/Text/Text.stories.d.ts.map +1 -1
  11. package/lib/cjs/Foundations/Colors/Colors.examples.d.ts +0 -1
  12. package/lib/cjs/Foundations/Colors/Colors.examples.d.ts.map +1 -1
  13. package/lib/cjs/Foundations/Radii/Radii.examples.d.ts +0 -1
  14. package/lib/cjs/Foundations/Radii/Radii.examples.d.ts.map +1 -1
  15. package/lib/cjs/Foundations/Shadows/Shadows.examples.d.ts +0 -1
  16. package/lib/cjs/Foundations/Shadows/Shadows.examples.d.ts.map +1 -1
  17. package/lib/cjs/Foundations/Sizes/Sizes.examples.d.ts +0 -1
  18. package/lib/cjs/Foundations/Sizes/Sizes.examples.d.ts.map +1 -1
  19. package/lib/cjs/Foundations/Typography/Typography.examples.d.ts +0 -1
  20. package/lib/cjs/Foundations/Typography/Typography.examples.d.ts.map +1 -1
  21. package/lib/cjs/index.d.ts +0 -2
  22. package/lib/cjs/index.d.ts.map +1 -1
  23. package/lib/cjs/index.js +0 -2
  24. package/lib/cjs/index.js.map +1 -1
  25. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  26. package/lib/esn/Components/Provider/Provider.d.ts +0 -1
  27. package/lib/esn/Components/Provider/Provider.d.ts.map +1 -1
  28. package/lib/esn/Components/Text/Text.d.ts +1 -2
  29. package/lib/esn/Components/Text/Text.d.ts.map +1 -1
  30. package/lib/esn/Components/Text/Text.js +4 -4
  31. package/lib/esn/Components/Text/Text.js.map +1 -1
  32. package/lib/esn/Components/Text/Text.stories.d.ts +0 -1
  33. package/lib/esn/Components/Text/Text.stories.d.ts.map +1 -1
  34. package/lib/esn/Foundations/Colors/Colors.examples.d.ts +0 -1
  35. package/lib/esn/Foundations/Colors/Colors.examples.d.ts.map +1 -1
  36. package/lib/esn/Foundations/Radii/Radii.examples.d.ts +0 -1
  37. package/lib/esn/Foundations/Radii/Radii.examples.d.ts.map +1 -1
  38. package/lib/esn/Foundations/Shadows/Shadows.examples.d.ts +0 -1
  39. package/lib/esn/Foundations/Shadows/Shadows.examples.d.ts.map +1 -1
  40. package/lib/esn/Foundations/Sizes/Sizes.examples.d.ts +0 -1
  41. package/lib/esn/Foundations/Sizes/Sizes.examples.d.ts.map +1 -1
  42. package/lib/esn/Foundations/Typography/Typography.examples.d.ts +0 -1
  43. package/lib/esn/Foundations/Typography/Typography.examples.d.ts.map +1 -1
  44. package/lib/esn/index.d.ts +0 -2
  45. package/lib/esn/index.d.ts.map +1 -1
  46. package/lib/esn/index.js +0 -2
  47. package/lib/esn/index.js.map +1 -1
  48. package/lib/esn/tsconfig.tsbuildinfo +1 -1
  49. package/package.json +2 -10
  50. package/release.config.js +1 -1
  51. package/site/index.html +1 -1
  52. package/src/Components/Text/Text.tsx +5 -5
  53. package/src/index.ts +0 -2
  54. package/lib/cjs/root.css +0 -5
  55. package/lib/esn/root.css +0 -5
  56. 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-alpha-chakra.2",
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.40",
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
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- branches: ['master', { name: 'alpha', prerelease: true }, { name: 'alpha-*', prerelease: true }],
2
+ branches: ['master', { name: 'alpha', prerelease: true }],
3
3
  plugins: [
4
4
  [
5
5
  '@semantic-release/commit-analyzer',
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>Bitrise - Bitkit</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?: string;
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: 'span',
69
- size: '4',
68
+ as: 'p',
69
+ size: '3',
70
70
  } as Props;
71
71
 
72
72
  export default Text;
package/src/index.ts CHANGED
@@ -1,6 +1,4 @@
1
- import 'normalize.css/normalize.css';
2
1
  import './variables.css';
3
- import './root.css';
4
2
 
5
3
  import * as variables from './variables';
6
4
  import * as hooks from './hooks';
package/lib/cjs/root.css DELETED
@@ -1,5 +0,0 @@
1
- button[disabled],
2
- button[disabled]:hover,
3
- button[disabled]:active {
4
- cursor: default;
5
- }
package/lib/esn/root.css DELETED
@@ -1,5 +0,0 @@
1
- button[disabled],
2
- button[disabled]:hover,
3
- button[disabled]:active {
4
- cursor: default;
5
- }
package/src/root.css DELETED
@@ -1,5 +0,0 @@
1
- button[disabled],
2
- button[disabled]:hover,
3
- button[disabled]:active {
4
- cursor: default;
5
- }