-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/new-client-navigation
- Loading branch information
Showing
16 changed files
with
167 additions
and
6 deletions.
There are no files selected for viewing
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,6 +1,6 @@ | ||
name: "Pull request title" | ||
on: | ||
pull_request: | ||
pull_request_target: | ||
types: [opened, edited] | ||
|
||
jobs: | ||
|
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,25 @@ | ||
import { DocsContainer as BaseContainer } from '@storybook/blocks'; | ||
import { addons } from '@storybook/preview-api'; | ||
import { themes } from '@storybook/theming'; | ||
import type { ComponentPropsWithoutRef } from 'react'; | ||
import { useEffect, useState } from 'react'; | ||
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode'; | ||
|
||
const channel = addons.getChannel(); | ||
|
||
const DocsContainer = ( | ||
props: ComponentPropsWithoutRef<typeof BaseContainer> | ||
) => { | ||
const [isDark, setDark] = useState(false); | ||
|
||
useEffect(() => { | ||
channel.on(DARK_MODE_EVENT_NAME, setDark); | ||
return () => channel.removeListener(DARK_MODE_EVENT_NAME, setDark); | ||
}, [setDark]); | ||
|
||
return ( | ||
<BaseContainer {...props} theme={isDark ? themes.dark : themes.light} /> | ||
); | ||
}; | ||
|
||
export default DocsContainer; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { DocsContainer as BaseContainer } from '@storybook/blocks'; | ||
import { addons } from '@storybook/preview-api'; | ||
import { themes } from '@storybook/theming'; | ||
import type { ComponentPropsWithoutRef } from 'react'; | ||
import { useEffect, useState } from 'react'; | ||
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode'; | ||
|
||
const channel = addons.getChannel(); | ||
|
||
const DocsContainer = ( | ||
props: ComponentPropsWithoutRef<typeof BaseContainer> | ||
) => { | ||
const [isDark, setDark] = useState(false); | ||
|
||
useEffect(() => { | ||
channel.on(DARK_MODE_EVENT_NAME, setDark); | ||
return () => channel.removeListener(DARK_MODE_EVENT_NAME, setDark); | ||
}, [setDark]); | ||
|
||
return ( | ||
<BaseContainer {...props} theme={isDark ? themes.dark : themes.light} /> | ||
); | ||
}; | ||
|
||
export default DocsContainer; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -979,5 +979,8 @@ | |
}, | ||
"ai": { | ||
"start": "\ue159" | ||
}, | ||
"pause-shape-unfilled": { | ||
"start": "\ue15b" | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,25 @@ | ||
import { DocsContainer as BaseContainer } from '@storybook/blocks'; | ||
import { addons } from '@storybook/preview-api'; | ||
import { themes } from '@storybook/theming'; | ||
import type { ComponentPropsWithoutRef } from 'react'; | ||
import { useEffect, useState } from 'react'; | ||
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode'; | ||
|
||
const channel = addons.getChannel(); | ||
|
||
const DocsContainer = ( | ||
props: ComponentPropsWithoutRef<typeof BaseContainer> | ||
) => { | ||
const [isDark, setDark] = useState(false); | ||
|
||
useEffect(() => { | ||
channel.on(DARK_MODE_EVENT_NAME, setDark); | ||
return () => channel.removeListener(DARK_MODE_EVENT_NAME, setDark); | ||
}, [setDark]); | ||
|
||
return ( | ||
<BaseContainer {...props} theme={isDark ? themes.dark : themes.light} /> | ||
); | ||
}; | ||
|
||
export default DocsContainer; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { DocsContainer as BaseContainer } from '@storybook/blocks'; | ||
import { addons } from '@storybook/preview-api'; | ||
import { themes } from '@storybook/theming'; | ||
import type { ComponentPropsWithoutRef } from 'react'; | ||
import { useEffect, useState } from 'react'; | ||
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode'; | ||
|
||
const channel = addons.getChannel(); | ||
|
||
const DocsContainer = ( | ||
props: ComponentPropsWithoutRef<typeof BaseContainer> | ||
) => { | ||
const [isDark, setDark] = useState(false); | ||
|
||
useEffect(() => { | ||
channel.on(DARK_MODE_EVENT_NAME, setDark); | ||
return () => channel.removeListener(DARK_MODE_EVENT_NAME, setDark); | ||
}, [setDark]); | ||
|
||
return ( | ||
<BaseContainer {...props} theme={isDark ? themes.dark : themes.light} /> | ||
); | ||
}; | ||
|
||
export default DocsContainer; |
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