@bitrise/bitkit 9.3.0-alpha.1 → 9.3.0-alpha.2

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": "9.3.0-alpha.1",
4
+ "version": "9.3.0-alpha.2",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "lib/cjs/index.js",
7
7
  "esnext": "lib/esn/index.js",
@@ -9,7 +9,6 @@
9
9
  } from '@bitrise/bitkit';
10
10
  import CodeBlock from '../../CodeBlock/CodeBlock';
11
11
  import Section from '../../Section/Section';
12
- import SectionSubTitle from '../../Section/SectionSubTitle';
13
12
  import Button2 from '../../../../src/Button2/Button2';
14
13
 
15
14
  const SectionButtons = () => {
@@ -35,7 +34,7 @@
35
34
  <>
36
35
  <Base margin="x12">
37
36
  <Buttons alignChildrenVertical="end" margin="x3">
38
- <Button2 size="small">Primary</Button2>
37
+ <Button2 as="a" href="https://www.bitrise.io" size="small" target="_blank">Primary</Button2>
39
38
  <Button2 disabled size="small" variant="primary">Disabled</Button2>
40
39
  <Button2 size="medium" variant="primary">Primary</Button2>
41
40
  <Button2 disabled size="medium" variant="primary">Disabled</Button2>
@@ -4,6 +4,7 @@ import { Button as ChakraButton, ButtonProps } from '@chakra-ui/react';
4
4
 
5
5
  interface Props extends Pick<ButtonProps, 'as' | 'disabled' | 'leftIcon' | 'rightIcon' |'sx'> {
6
6
  children: ButtonProps['children'];
7
+ href?: string;
7
8
  /**
8
9
  * Allows the Button to fill the container space rather than shrinking
9
10
  * down to the content
@@ -15,6 +16,7 @@ interface Props extends Pick<ButtonProps, 'as' | 'disabled' | 'leftIcon' | 'righ
15
16
  * out on a page with lots of space.
16
17
  */
17
18
  size?: 'small' | 'medium';
19
+ target?: '_blank' | '_parent' | '_self' | '_top';
18
20
  }
19
21
 
20
22
  const Button2 = (props: Props) => {