-
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
38 changed files
with
285 additions
and
325 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); | ||
} |
19 changes: 19 additions & 0 deletions
19
...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,19 @@ | ||
import type { ReactNode } from 'react'; | ||
import React from 'react'; | ||
import { useTabProps } from '../hooks/useTabProps'; | ||
|
||
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 <button {...props} />; | ||
} |
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'; |
21 changes: 21 additions & 0 deletions
21
...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,21 @@ | ||
import type { ReactNode } from 'react'; | ||
import type React from 'react'; | ||
import { useTabProps } from '../hooks/useTabProps'; | ||
|
||
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 renderTab(props); | ||
} |
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.