@vrobots/storybook 0.1.34 → 0.1.35

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.1.34",
4
+ "version": "0.1.35",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -0,0 +1,3 @@
1
+ import { BoxProps } from "@chakra-ui/react";
2
+ import React from "react";
3
+ export declare const Section: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Box } from "@chakra-ui/react";
3
+ import React from "react";
4
+ export const Section = React.forwardRef((props, ref) => {
5
+ return (_jsx(Box, { pl: 8, pr: 8, pt: { base: 8, md: 24 }, pb: { base: 8, md: 24 }, width: '100%', display: 'flex', ref: ref, ...props }));
6
+ });
7
+ Section.displayName = 'Section';
@@ -7,4 +7,5 @@ export * from './Header';
7
7
  export * from './Logo';
8
8
  export * from './Menu';
9
9
  export * from './Page';
10
+ export * from './Section';
10
11
  export * from './Sidebar';
@@ -7,4 +7,5 @@ export * from './Header';
7
7
  export * from './Logo';
8
8
  export * from './Menu';
9
9
  export * from './Page';
10
+ export * from './Section';
10
11
  export * from './Sidebar';
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").ForwardRefExoticComponent<import("@chakra-ui/react").BoxProps & import("react").RefAttributes<HTMLDivElement>>;
5
+ tags: string[];
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ };
10
+ export default meta;
11
+ type Story = StoryObj<typeof meta>;
12
+ export declare const Component: Story;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Section } from '../components/Section';
3
+ import { Heading } from '@chakra-ui/react';
4
+ const meta = {
5
+ title: 'Layout/Section',
6
+ component: Section,
7
+ tags: ['autodocs'],
8
+ parameters: {
9
+ layout: 'fullscreen',
10
+ },
11
+ };
12
+ export default meta;
13
+ export const Component = {
14
+ args: {
15
+ children: _jsx(Heading, { children: "Section Content" }),
16
+ }
17
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vrobots/storybook",
3
3
  "private": false,
4
- "version": "0.1.34",
4
+ "version": "0.1.35",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",