Skip to content

Commit 78f202d

Browse files
dougfabrisRocket.Chat
authored and
Rocket.Chat
committed
fix: Missing Sidebar type (#506)
1 parent 2c5c6d1 commit 78f202d

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { ComponentProps, ForwardRefExoticComponent } from 'react';
2+
3+
import { Box } from '../Box';
4+
5+
type SidebarProps = ComponentProps<typeof Box>;
6+
type SidebarTopBarProps = ComponentProps<typeof Box>;
7+
type SidebarItemProps = ComponentProps<typeof Box>;
8+
type SidebarSectionProps = ComponentProps<typeof Box>;
9+
10+
export const Sidebar: ForwardRefExoticComponent<SidebarProps> & {
11+
TopBar: ForwardRefExoticComponent<SidebarTopBarProps>;
12+
Item: ForwardRefExoticComponent<SidebarItemProps>;
13+
Section: ForwardRefExoticComponent<SidebarSectionProps>;
14+
};

packages/onboarding-ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"@rocket.chat/fuselage": "^0.27.0",
8181
"@rocket.chat/fuselage-hooks": "^0.27.0",
8282
"@rocket.chat/icons": "^0.27.0",
83-
"@rocket.chat/styled": "workspace:packages/styled",
83+
"@rocket.chat/styled": "^0.27.0",
8484
"i18next": "^20.3.2",
8585
"react-hook-form": "^7.10.1",
8686
"react-i18next": "^11.11.0",

yarn.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -5672,7 +5672,7 @@ __metadata:
56725672
"@rocket.chat/fuselage-tokens": ^0.27.0
56735673
"@rocket.chat/icons": ^0.27.0
56745674
"@rocket.chat/prettier-config": ^0.27.0
5675-
"@rocket.chat/styled": "workspace:packages/styled"
5675+
"@rocket.chat/styled": ^0.27.0
56765676
"@storybook/addon-essentials": ^6.3.4
56775677
"@storybook/addons": ^6.3.4
56785678
"@storybook/react": ^6.3.4
@@ -5769,7 +5769,7 @@ __metadata:
57695769
languageName: unknown
57705770
linkType: soft
57715771

5772-
"@rocket.chat/styled@workspace:packages/styled":
5772+
"@rocket.chat/styled@^0.27.0, @rocket.chat/styled@workspace:packages/styled":
57735773
version: 0.0.0-use.local
57745774
resolution: "@rocket.chat/styled@workspace:packages/styled"
57755775
dependencies:

0 commit comments

Comments
 (0)