@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.
- package/package.json +2 -1
- package/src/Components/Card/Card.stories.tsx +32 -6
- package/src/Components/Card/Card.theme.ts +9 -0
- package/src/Components/Card/Card.tsx +28 -8
- package/src/Components/Card/CardContent.tsx +15 -0
- package/src/Foundations/Colors/DesignTokens.tsx +1 -1
- package/src/Foundations/Colors/Palette.tsx +1 -1
- package/src/Foundations/Radii/Radii.examples.tsx +11 -22
- package/src/Foundations/Shadows/Shadows.examples.tsx +10 -20
- package/src/Foundations/Sizes/Sizes.examples.tsx +11 -21
- package/src/Foundations/Typography/Typography.examples.tsx +1 -1
- package/src/index.ts +6 -0
- package/src/old.ts +0 -12
- package/src/theme.ts +2 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/src/Old/Card/Card.css +0 -7
- package/src/Old/Card/Card.tsx +0 -35
- package/src/Old/Card/CardButton.tsx +0 -15
- package/src/Old/Card/CardContent.tsx +0 -15
- package/src/Old/Card/CardDivider.tsx +0 -15
package/src/Old/Card/Card.css
DELETED
|
@@ -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); }
|
package/src/Old/Card/Card.tsx
DELETED
|
@@ -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;
|