@bitrise/bitkit 9.8.1-alpha-chakra.1 → 9.8.2-alpha-chakra.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "9.8.1-alpha-chakra.1",
4
+ "version": "9.8.2-alpha-chakra.1",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "src/index.ts",
7
7
  "license": "UNLICENSED",
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Box as ChakraBox, BoxProps } from '@chakra-ui/react';
2
3
 
3
4
  /**
@@ -1,4 +1,4 @@
1
- import { forwardRef, HTMLAttributeAnchorTarget } from 'react';
1
+ import React, { forwardRef, HTMLAttributeAnchorTarget } from 'react';
2
2
  import { Button as ChakraButton, ButtonProps as ChackraButtonProps } from '@chakra-ui/react';
3
3
  import Icon from '../../Old/Icon/Icon';
4
4
  import { TypeIconName } from '../../Old/Icon/tsx';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Radii } from '../../Foundations/Radii/Radii';
2
3
  import { Shadows } from '../../Foundations/Shadows/Shadows';
3
4
  import { Sizes } from '../../Foundations/Sizes/Sizes';
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Divider as ChakraDivider, DividerProps as ChakraDividerProps } from '@chakra-ui/react';
2
3
 
3
4
  export interface DividerProps extends ChakraDividerProps {
@@ -1,4 +1,4 @@
1
- import { forwardRef } from 'react';
1
+ import React, { forwardRef } from 'react';
2
2
  import { IconButton as ChakraIconButton, IconButtonProps } from '@chakra-ui/react';
3
3
  import Icon from '../../Old/Icon/Icon';
4
4
  import { TypeIconName } from '../../Old/Icon/tsx';
@@ -1,4 +1,4 @@
1
- import { HTMLAttributeAnchorTarget } from 'react';
1
+ import React, { HTMLAttributeAnchorTarget } from 'react';
2
2
  import { Link as ChakraLink, LinkProps as ChakraLinkProps } from '@chakra-ui/react';
3
3
  import { TextSizes } from '../../Foundations/Typography/Typography';
4
4
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Menu as ChakraMenu, MenuProps as ChakraMenuProps } from '@chakra-ui/react';
2
3
 
3
4
  export type MenuProps = ChakraMenuProps;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { MenuItem as ChakraMenuItem, MenuItemProps } from '@chakra-ui/react';
2
3
  import { Icon, TypeIconName } from '@bitrise/bitkit';
3
4
 
@@ -1,13 +1,14 @@
1
+ import React from 'react';
1
2
  import { MenuButton, MenuList, MenuListProps } from '@chakra-ui/react';
2
3
  import IconButton from '../IconButton/IconButton';
3
4
  import Menu from '../Menu/Menu';
4
5
 
5
- export interface Props {
6
+ export interface OverflowMenuProps {
6
7
  children: MenuListProps['children'];
7
8
  triggerLabel?: string;
8
9
  }
9
10
 
10
- const OverflowMenu = ({ children, triggerLabel }: Props) => {
11
+ const OverflowMenu = ({ children, triggerLabel }: OverflowMenuProps) => {
11
12
  return (
12
13
  <Menu isLazy>
13
14
  <MenuButton aria-label={triggerLabel} as={IconButton} iconName="MoreVertical" size="small" variant="tertiary" />
@@ -1,10 +1,11 @@
1
+ import React from 'react';
1
2
  import MenuItem, { Props as MenuItemProps } from '../Menu/MenuItem';
2
3
 
3
- export interface Props extends MenuItemProps {
4
+ export interface OverflowMenuItemProps extends MenuItemProps {
4
5
  children: MenuItemProps['children'];
5
6
  }
6
7
 
7
- const OverflowMenuItem = (props: Props) => {
8
+ const OverflowMenuItem = (props: OverflowMenuItemProps) => {
8
9
  return <MenuItem {...props} />;
9
10
  };
10
11
 
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Text as ChakraText, TextProps as ChakraTextProps } from '@chakra-ui/react';
2
3
  import { TextSizes } from '../../Foundations/Typography/Typography';
3
4
 
package/src/index.ts CHANGED
@@ -79,9 +79,6 @@ export { default as DatePicker } from './Old/DatePicker/DatePicker';
79
79
  export type { Props as DotProps } from './Old/Dot/Dot';
80
80
  export { default as Dot } from './Old/Dot/Dot';
81
81
 
82
- export type { Props as DividerProps } from './Old/Divider/Divider';
83
- export { default as Divider } from './Old/Divider/Divider';
84
-
85
82
  export type { Props as DropdownProps } from './Old/Dropdown/Dropdown';
86
83
  export { default as Dropdown } from './Old/Dropdown/Dropdown';
87
84
 
@@ -289,8 +286,11 @@ export { default as VisibilityContainer } from './Old/Visibility/VisibilityConta
289
286
  export { default as Provider } from './Components/Provider/Provider';
290
287
  export { default as theme } from './theme';
291
288
 
292
- export type { Props as OverflowMenuProps } from './Components/OverflowMenu/OverflowMenu';
289
+ export type { OverflowMenuProps } from './Components/OverflowMenu/OverflowMenu';
293
290
  export { default as OverflowMenu } from './Components/OverflowMenu/OverflowMenu';
294
291
 
295
- export type { Props as OverflowMenuItemProps } from './Components/OverflowMenu/OverflowMenuItem';
292
+ export type { OverflowMenuItemProps } from './Components/OverflowMenu/OverflowMenuItem';
296
293
  export { default as OverflowMenuItem } from './Components/OverflowMenu/OverflowMenuItem';
294
+
295
+ export type { DividerProps } from './Components/Divider/Divider';
296
+ export { default as Divider } from './Components/Divider/Divider';