Skip to content

Commit

Permalink
Merge pull request #389 from mongodb/staging
Browse files Browse the repository at this point in the history
Automated PR: staging to main
  • Loading branch information
stephl3 authored Aug 2, 2024
2 parents a217551 + 421c96d commit 7f8bf84
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 27 deletions.
48 changes: 33 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@emotion/css": "^11.11.2",
"@emotion/react": "^11.11.4",
"@faker-js/faker": "^8.4.1",
"@leafygreen-ui/avatar": "^1.0.2",
"@leafygreen-ui/badge": "^8.1.3",
"@leafygreen-ui/banner": "^8.0.1",
"@leafygreen-ui/button": "^21.2.1",
Expand Down Expand Up @@ -49,7 +50,7 @@
"@leafygreen-ui/split-button": "^1.1.2",
"@leafygreen-ui/stepper": "^3.2.13",
"@leafygreen-ui/table": "^12.6.4",
"@leafygreen-ui/tabs": "^12.0.3",
"@leafygreen-ui/tabs": "^13.0.0",
"@leafygreen-ui/text-area": "^9.1.1",
"@leafygreen-ui/text-input": "^13.1.1",
"@leafygreen-ui/toast": "^6.1.26",
Expand Down
13 changes: 2 additions & 11 deletions src/app/component/[component]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,7 @@ export default function ComponentLayout({
margin-bottom: ${spacing[800]}px;
`}
inlineChildren={
<div
className={css`
display: flex;
gap: ${spacing[200]}px;
border-bottom: 1px solid ${color[theme].border.secondary.default};
flex: 1;
justify-content: flex-end;
height: 100%;
`}
>
<>
{externalLinks.map(
({ 'aria-label': ariaLabel, href, icon }, index) => (
<IconButton
Expand All @@ -108,7 +99,7 @@ export default function ComponentLayout({
</IconButton>
),
)}
</div>
</>
}
>
<Tab
Expand Down
2 changes: 2 additions & 0 deletions src/components/global/SideNavigation/SideNavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export function SideNavItem({
className={css`
margin: 0;
padding: ${spacing[200]}px ${spacing[400]}px;
display: flex;
align-items: center;
`}
>
{children}
Expand Down
7 changes: 7 additions & 0 deletions src/components/global/SideNavigation/SideNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ export function SideNavigation() {
}
/>
<SideNavList key="foundation-list">
<SideNavItem
key="grid"
active={pathname === '/foundations/chat/'}
href={'/foundations/chat'}
>
Chat
</SideNavItem>
<SideNavItem
key="grid"
active={pathname === '/foundations/forms/'}
Expand Down
6 changes: 6 additions & 0 deletions src/utils/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type Group = (typeof Group)[keyof typeof Group];
export { Group };

const Component = {
Avatar: 'avatar',
Badge: 'badge',
Banner: 'banner',
Button: 'button',
Expand Down Expand Up @@ -81,6 +82,11 @@ export interface ComponentMeta {
}

export const components: Array<ComponentMeta> = [
{
name: titlecase(Component.Avatar),
navPath: generateComponentNavPath(Component.Avatar),
group: Group.Display,
},
{
name: titlecase(Component.Badge),
navPath: generateComponentNavPath(Component.Badge),
Expand Down

0 comments on commit 7f8bf84

Please sign in to comment.