@vrobots/storybook 0.1.19 → 0.1.20

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.19",
4
+ "version": "0.1.20",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React, { forwardRef } from "react";
3
3
  import { Box, IconButton } from "@chakra-ui/react";
4
4
  import { useColorMode } from "./ui/color-mode";
@@ -52,16 +52,16 @@ export const Sidebar = forwardRef((props, ref) => {
52
52
  const borderColor = colorMode === 'light' ? COLOR_GRAY_200 : COLOR_GRAY_800;
53
53
  if (!sidebar.menu)
54
54
  return null;
55
- return (_jsxs(React.Fragment, { children: [_jsx(motion.div, { style: {
56
- position: 'relative',
57
- display: 'flex',
58
- flexDirection: 'column',
59
- flex: '0 0 auto',
60
- zIndex: 1,
61
- overflow: 'hidden',
62
- height: 'inherit',
63
- width: sidebar.isOpen ? width[breakpoint || 'base'] : '0',
64
- borderRight: `1px solid ${borderColor}`,
65
- }, ...action, ref: ref, children: _jsx(Box, { width: width[breakpoint || 'base'], children: sidebar.menu }) }), isMobile && _jsx(SidebarToggleButton, { name: 'sidebar-toggle', "aria-label": 'Toggle sidebar' })] }));
55
+ return (_jsx(React.Fragment, { children: _jsx(motion.div, { style: {
56
+ position: 'relative',
57
+ display: 'flex',
58
+ flexDirection: 'column',
59
+ flex: '0 0 auto',
60
+ zIndex: 1,
61
+ overflow: 'hidden',
62
+ height: 'inherit',
63
+ width: sidebar.isOpen ? width[breakpoint || 'base'] : '0',
64
+ borderRight: `1px solid ${borderColor}`,
65
+ }, ...action, ref: ref, children: _jsx(Box, { width: width[breakpoint || 'base'], children: sidebar.menu }) }) }));
66
66
  });
67
67
  Sidebar.displayName = 'Sidebar';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vrobots/storybook",
3
3
  "private": false,
4
- "version": "0.1.19",
4
+ "version": "0.1.20",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",