@bitrise/bitkit 9.13.0-alpha-button-release.4 → 9.13.1

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.
@@ -1,7 +0,0 @@
1
- .Card {
2
- border: 0.0625rem solid var(--color-gray--2);
3
- overflow: hidden;
4
- }
5
-
6
- .Card--direction-horizontal .Card__divider { border-right: 0.0625rem solid var(--color-gray--2); }
7
- .Card--direction-vertical .Card__divider { border-top: 0.0625rem solid var(--color-gray--2); }
@@ -1,35 +0,0 @@
1
- import * as React from 'react';
2
- import classnames from 'classnames';
3
- import Flex, { Props as FlexProps } from '../Flex/Flex';
4
- import './Card.css';
5
-
6
- export interface Props extends FlexProps {
7
- /**
8
- * Used when CardContent should be divided. Don't forget to add
9
- * the CardDividers ;)
10
- */
11
- direction?: 'horizontal' | 'vertical';
12
- }
13
-
14
- /**
15
- * Presentation component for lifting and group content on a page. Also
16
- * great for chunky lists.
17
- */
18
- const Card: React.FunctionComponent<Props> = (props: Props) => {
19
- const { direction, borderRadius = 'x2', backgroundColor = 'white', ...rest } = props;
20
- const classes = classnames('Card', {
21
- [`Card--direction-${direction}`]: direction,
22
- });
23
-
24
- return (
25
- <Flex
26
- {...rest}
27
- backgroundColor={backgroundColor}
28
- borderRadius={borderRadius}
29
- className={classes}
30
- direction={direction}
31
- />
32
- );
33
- };
34
-
35
- export default Card;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import Button, { Props as ButtonProps } from '../Button/Button';
3
-
4
- export type Props = ButtonProps;
5
-
6
- /**
7
- * The content that goes inside a Card. This is the component
8
- * that should be used to create padding, which can also be divided
9
- * with the CardDivider.
10
- */
11
- const CardButton: React.FunctionComponent<Props> = (props: Props) => {
12
- return <Button {...props} borderless />;
13
- };
14
-
15
- export default CardButton;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import Flex, { Props as FlexProps } from '../Flex/Flex';
3
-
4
- export type Props = FlexProps;
5
-
6
- /**
7
- * The content that goes inside a Card. This is the component
8
- * that should be used to create padding, which can also be divided
9
- * with the CardDivider.
10
- */
11
- const CardContent: React.FunctionComponent<Props> = (props: Props) => {
12
- return <Flex {...props} className="Card__content" />;
13
- };
14
-
15
- export default CardContent;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import Flex, { Props as FlexProps } from '../Flex/Flex';
3
-
4
- export type Props = FlexProps;
5
-
6
- /**
7
- * Dividers that can be used to separate CardContents. Can be used
8
- * horizontally or vertically, just use the direction prop on the Card
9
- * component.
10
- */
11
- const CardDivider: React.FunctionComponent<Props> = (props: Props) => {
12
- return <Flex {...props} className="Card__divider" />;
13
- };
14
-
15
- export default CardDivider;