@bitrise/bitkit 12.36.0 → 12.38.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
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "12.36.0",
4
+ "version": "12.38.0",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -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,18 @@
1
+ import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
2
+
3
+ const SortArrows = forwardRef<IconProps, 'svg'>((props, ref) => {
4
+ return (
5
+ <Icon ref={ref} viewBox="0 0 24 24" width="16" height="16" {...props}>
6
+ <path
7
+ d="M4.41414 9.45378L7.0404 6.83193V15H9.06061V6.93277L11.5859 9.35294L13 7.94118L8.0505 3L3 7.94118L4.41414 9.45378Z"
8
+ fill="currentColor"
9
+ />
10
+ <path
11
+ d="M19.5859 14.5462L16.9596 17.1681V9H14.9394V17.0672L12.4141 14.6471L11 16.0588L15.9495 21L21 16.0588L19.5859 14.5462Z"
12
+ fill="currentColor"
13
+ />
14
+ </Icon>
15
+ );
16
+ });
17
+
18
+ export default SortArrows;
@@ -161,6 +161,7 @@ export { default as ShowPassword } from './ShowPassword';
161
161
  export { default as Shuffle } from './Shuffle';
162
162
  export { default as Siren } from './Siren';
163
163
  export { default as Sort } from './Sort';
164
+ export { default as SortArrows } from './SortArrows';
164
165
  export { default as Stability } from './Stability';
165
166
  export { default as Stack } from './Stack';
166
167
  export { default as StageCurrent } from './StageCurrent';
@@ -0,0 +1,18 @@
1
+ import { Icon, IconProps, forwardRef } from '@chakra-ui/react';
2
+
3
+ const SortArrows = forwardRef<IconProps, 'svg'>((props, ref) => {
4
+ return (
5
+ <Icon ref={ref} viewBox="0 0 24 24" width="24" height="24" {...props}>
6
+ <path
7
+ d="M4.41414 9.45378L7.0404 6.83193V15H9.06061V6.93277L11.5859 9.35294L13 7.94118L8.0505 3L3 7.94118L4.41414 9.45378Z"
8
+ fill="currentColor"
9
+ />
10
+ <path
11
+ d="M19.5859 14.5462L16.9596 17.1681V9H14.9394V17.0672L12.4141 14.6471L11 16.0588L15.9495 21L21 16.0588L19.5859 14.5462Z"
12
+ fill="currentColor"
13
+ />
14
+ </Icon>
15
+ );
16
+ });
17
+
18
+ export default SortArrows;
@@ -161,6 +161,7 @@ export { default as ShowPassword } from './ShowPassword';
161
161
  export { default as Shuffle } from './Shuffle';
162
162
  export { default as Siren } from './Siren';
163
163
  export { default as Sort } from './Sort';
164
+ export { default as SortArrows } from './SortArrows';
164
165
  export { default as Stability } from './Stability';
165
166
  export { default as Stack } from './Stack';
166
167
  export { default as StageCurrent } from './StageCurrent';
@@ -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';