@vrobots/storybook 0.2.22 → 0.2.23

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/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vrobots/storybook",
3
3
  "private": false,
4
- "version": "0.2.22",
4
+ "version": "0.2.23",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -0,0 +1,9 @@
1
+ import { ButtonProps, ColorPalette, ConditionalValue } from '@chakra-ui/react';
2
+ declare const Button: {
3
+ (): null;
4
+ Primary({ baseColor, ...props }: IButtonPrimaryProps): import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ export interface IButtonPrimaryProps extends ButtonProps {
7
+ baseColor?: ConditionalValue<ColorPalette>;
8
+ }
9
+ export default Button;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button as ChakraButton } from '@chakra-ui/react';
3
+ const Button = () => {
4
+ return null;
5
+ };
6
+ Button.Primary = ({ baseColor, ...props }) => (_jsx(ChakraButton, { variant: 'subtle', borderRadius: 'full', borderWidth: '1px', borderColor: baseColor || 'green.500', color: baseColor || 'green.500', _hover: { bg: baseColor || 'green.500', color: 'white' }, ...props }));
7
+ export default Button;
@@ -4,6 +4,7 @@ export * from './ui/tooltip';
4
4
  export * from './Accordion';
5
5
  export * from './AvatarIconMenu';
6
6
  export * from './Breadcrumbs';
7
+ export * from './Button';
7
8
  export * from './Chart';
8
9
  export * from './Display';
9
10
  export * from './FoldersAndFiles';
@@ -4,6 +4,7 @@ export * from './ui/tooltip';
4
4
  export * from './Accordion';
5
5
  export * from './AvatarIconMenu';
6
6
  export * from './Breadcrumbs';
7
+ export * from './Button';
7
8
  export * from './Chart';
8
9
  export * from './Display';
9
10
  export * from './FoldersAndFiles';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vrobots/storybook",
3
3
  "private": false,
4
- "version": "0.2.22",
4
+ "version": "0.2.23",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",