@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/CHANGELOG.md +7 -0
- package/lib/cjs/Button2/Button2.d.ts +2 -0
- package/lib/cjs/Button2/Button2.d.ts.map +1 -1
- package/lib/cjs/Button2/Button2.js.map +1 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esn/Button2/Button2.d.ts +2 -0
- package/lib/esn/Button2/Button2.d.ts.map +1 -1
- package/lib/esn/Button2/Button2.js.map +1 -1
- package/lib/esn/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/site/components/Documentation/Components/SectionButton2.tsx +1 -2
- package/src/Button2/Button2.tsx +2 -0
package/package.json
CHANGED
|
@@ -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>
|
package/src/Button2/Button2.tsx
CHANGED
|
@@ -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) => {
|