-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
59 changed files
with
408 additions
and
368 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
...io-components/src/components/StudioContentMenu/StudioButtonTab/StudioButtonTab.module.css
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...bs/studio-components/src/components/StudioContentMenu/StudioButtonTab/StudioButtonTab.tsx
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
frontend/libs/studio-components/src/components/StudioContentMenu/StudioButtonTab/index.ts
This file was deleted.
Oops, something went wrong.
12 changes: 10 additions & 2 deletions
12
...tend/libs/studio-components/src/components/StudioContentMenu/StudioContentMenu.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
.tabsContainer { | ||
background-color: var(--fds-semantic-surface-action-second-subtle); | ||
.menuContainer { | ||
height: 100%; | ||
background-color: var(--fds-semantic-surface-action-second-subtle); | ||
} | ||
|
||
.tabsContainer { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--fds-border_width-default); | ||
background-color: var(--fds-semantic-border-action-second-subtle); | ||
padding: var(--fds-border_width-default); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...onents/StudioContentMenu/StudioContentMenuButtonTab/StudioContentMenuButtonTab.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.buttonTab { | ||
all: unset; | ||
display: var(--tab-display); | ||
align-items: var(--tab-align-items); | ||
width: var(--tab-width); | ||
} |
20 changes: 20 additions & 0 deletions
20
...rc/components/StudioContentMenu/StudioContentMenuButtonTab/StudioContentMenuButtonTab.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import type { ReactNode } from 'react'; | ||
import { useTabProps } from '../hooks/useTabProps'; | ||
import { StudioButton } from '@studio/components'; | ||
|
||
export type StudioContentMenuButtonTabProps<TabId extends string> = { | ||
icon: ReactNode; | ||
tabName: string; | ||
tabId: TabId; | ||
}; | ||
|
||
export function StudioContentMenuButtonTab<TabId extends string>({ | ||
icon, | ||
tabName, | ||
tabId, | ||
}: StudioContentMenuButtonTabProps<TabId>): React.ReactElement { | ||
const props = useTabProps(icon, tabName, tabId); | ||
|
||
return <StudioButton {...props} color='first' />; | ||
} |
2 changes: 2 additions & 0 deletions
2
...bs/studio-components/src/components/StudioContentMenu/StudioContentMenuButtonTab/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { StudioContentMenuButtonTab } from './StudioContentMenuButtonTab'; | ||
export type { StudioContentMenuButtonTabProps } from './StudioContentMenuButtonTab'; |
22 changes: 22 additions & 0 deletions
22
...ts/src/components/StudioContentMenu/StudioContentMenuLinkTab/StudioContentMenuLinkTab.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import type { ReactNode } from 'react'; | ||
import { useTabProps } from '../hooks/useTabProps'; | ||
import { StudioButton } from '@studio/components'; | ||
|
||
export type StudioContentMenuLinkTabProps<TabId extends string> = { | ||
icon: ReactNode; | ||
tabName: string; | ||
tabId: TabId; | ||
renderTab: (props: React.HTMLAttributes<HTMLAnchorElement>) => React.ReactElement; | ||
}; | ||
|
||
export function StudioContentMenuLinkTab<TabId extends string>({ | ||
icon, | ||
tabName, | ||
tabId, | ||
renderTab, | ||
}: StudioContentMenuLinkTabProps<TabId>): React.ReactElement { | ||
const props = useTabProps(icon, tabName, tabId); | ||
|
||
return <StudioButton asChild>{renderTab(props)}</StudioButton>; | ||
} |
2 changes: 2 additions & 0 deletions
2
...libs/studio-components/src/components/StudioContentMenu/StudioContentMenuLinkTab/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { StudioContentMenuLinkTab } from './StudioContentMenuLinkTab'; | ||
export type { StudioContentMenuLinkTabProps } from './StudioContentMenuLinkTab'; |
2 changes: 1 addition & 1 deletion
2
...bs/studio-components/src/components/StudioContentMenu/StudioContentMenuWrapper.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.contentMenuWrapper { | ||
height: 300px; | ||
width: 200px; | ||
width: 20vw; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...studio-components/src/components/StudioContentMenu/StudioLinkTab/StudioLinkTab.module.css
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...d/libs/studio-components/src/components/StudioContentMenu/StudioLinkTab/StudioLinkTab.tsx
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
frontend/libs/studio-components/src/components/StudioContentMenu/StudioLinkTab/index.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.