@bitrise/bitkit 9.1.6-alpha.1 → 9.1.6-alpha.4

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.1.6-alpha.1",
4
+ "version": "9.1.6-alpha.4",
5
5
  "repository": "git@github.com:bitrise-io/bitkit.git",
6
6
  "main": "lib/cjs/index.js",
7
7
  "esnext": "lib/esn/index.js",
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable object-shorthand */
2
2
  import * as React from 'react';
3
- import { Button as ChakraButton, ButtonProps } from '@chakra-ui/react';
3
+ import { Button as ChakraButton, ButtonProps } from '@chakra-ui/button';
4
4
 
5
5
  interface Props extends ButtonProps {
6
6
  /**
@@ -17,7 +17,10 @@ interface Props extends ButtonProps {
17
17
  }
18
18
 
19
19
  const Button2 = (props: Props) => {
20
- return <ChakraButton { ...props } />;
20
+ const defaults = {
21
+ variant: 'primary',
22
+ };
23
+ return <ChakraButton { ...defaults } { ...props } />;
21
24
  };
22
25
 
23
26
  export default Button2;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ChakraProvider, ChakraProviderProps } from '@chakra-ui/react';
2
+ import { ChakraProvider, ChakraProviderProps } from '@chakra-ui/provider';
3
3
  import theme from './theme';
4
4
 
5
5
  const BitchakraProvider = ({ children }: ChakraProviderProps) => {
package/src/index.ts CHANGED
@@ -22,6 +22,7 @@ export { default as Badge, Props as BadgeProps } from './Badge/Badge';
22
22
  export { default as Base, Props as BaseProps, TypeColors, TypeSizes } from './Base/Base';
23
23
  export { default as Bounds, Props as BoundsProps } from './Bounds/Bounds';
24
24
  export { default as Button, Props as ButtonProps } from './Button/Button';
25
+ export { default as Button2 } from './Button2/Button2';
25
26
  export { default as Buttons, Props as ButtonsProps } from './Button/Buttons';
26
27
  export { default as ButtonWithDropdown, Props as ButtonWithDropdownProps } from './ButtonWithDropdown/ButtonWithDropdown';
27
28
  export { default as Card, Props as CardProps } from './Card/Card';
@@ -99,3 +100,5 @@ export { default as Toggle, Props as ToggleProps } from './Toggle/Toggle';
99
100
  export { default as Tooltip, Props as TooltipProps } from './Tooltip/Tooltip';
100
101
  export { default as Visibility, Props as VisibilityProps } from './Visibility/Visibility';
101
102
  export { default as VisibilityContainer, Props as VisibilityContainerProps } from './Visibility/VisibilityContainer';
103
+ export { default as provider } from './chakra/provider';
104
+ export { default as theme } from './chakra/theme';