@bitrise/bitkit 12.36.0 → 12.37.0
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
|
import { CardProps } from './Card';
|
|
2
2
|
|
|
3
3
|
const CardTheme = {
|
|
4
|
-
baseStyle: ({ as }: CardProps) => {
|
|
4
|
+
baseStyle: ({ as, withHover }: CardProps) => {
|
|
5
5
|
return {
|
|
6
6
|
backgroundColor: 'neutral.100',
|
|
7
7
|
display: 'block',
|
|
@@ -12,7 +12,7 @@ const CardTheme = {
|
|
|
12
12
|
boxShadow: 'outline',
|
|
13
13
|
},
|
|
14
14
|
_hover:
|
|
15
|
-
as === 'a' || as === 'button'
|
|
15
|
+
as === 'a' || as === 'button' || withHover
|
|
16
16
|
? {
|
|
17
17
|
backgroundColor: 'neutral.95',
|
|
18
18
|
borderColor: 'neutral.90',
|
|
@@ -8,14 +8,15 @@ export interface CardProps extends BoxProps {
|
|
|
8
8
|
boxShadow?: keyof Shadows;
|
|
9
9
|
href?: string;
|
|
10
10
|
variant?: 'elevated' | 'outline';
|
|
11
|
+
withHover?: boolean;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Basic container element with default box shadow and border radius.
|
|
15
16
|
*/
|
|
16
17
|
const Card = forwardRef<CardProps, 'div'>((props, ref) => {
|
|
17
|
-
const { as, variant, ...rest } = props;
|
|
18
|
-
const css = useStyleConfig('Card', { as, variant });
|
|
18
|
+
const { as, variant, withHover, ...rest } = props;
|
|
19
|
+
const css = useStyleConfig('Card', { as, variant, withHover });
|
|
19
20
|
|
|
20
21
|
const properties = {
|
|
21
22
|
as,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LinkBox as ChakraLinkBox, LinkBoxProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const LinkBox = forwardRef<LinkBoxProps, 'div'>((props, ref) => {
|
|
4
|
+
return <ChakraLinkBox {...props} ref={ref} />;
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
export type { LinkBoxProps };
|
|
8
|
+
|
|
9
|
+
export default LinkBox;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LinkOverlay as ChakraLinkOverlay, LinkOverlayProps, forwardRef } from '@chakra-ui/react';
|
|
2
|
+
|
|
3
|
+
const LinkOverlay = forwardRef<LinkOverlayProps, 'a'>((props, ref) => {
|
|
4
|
+
return <ChakraLinkOverlay {...props} ref={ref} />;
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
export type { LinkOverlayProps };
|
|
8
|
+
|
|
9
|
+
export default LinkOverlay;
|
package/src/index.ts
CHANGED
|
@@ -289,3 +289,9 @@ export { default as CodeBlock } from './Components/CodeBlock/CodeBlock';
|
|
|
289
289
|
|
|
290
290
|
export type { DefinitionTooltipProps } from './Components/DefinitionTooltip/DefinitionTooltip';
|
|
291
291
|
export { default as DefinitionTooltip } from './Components/DefinitionTooltip/DefinitionTooltip';
|
|
292
|
+
|
|
293
|
+
export type { LinkBoxProps } from './Components/LinkBox/LinkBox';
|
|
294
|
+
export { default as LinkBox } from './Components/LinkBox/LinkBox';
|
|
295
|
+
|
|
296
|
+
export type { LinkOverlayProps } from './Components/LinkOverlay/LinkOverlay';
|
|
297
|
+
export { default as LinkOverlay } from './Components/LinkOverlay/LinkOverlay';
|