Skip to content
Draft
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions flake.lock

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

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"packageManager": {
"name": "pnpm",
"onFail": "error",
"version": "10.12.1"
"version": "10.14.0"
},
"runtime": {
"name": "node",
Expand All @@ -23,7 +23,13 @@
"node": ">=24"
},
"pnpm": {
"onlyBuiltDependencies": ["@biomejs/biome", "@parcel/watcher", "esbuild", "msgpackr-extract", "msw"],
"onlyBuiltDependencies": [
"@biomejs/biome",
"@parcel/watcher",
"esbuild",
"msgpackr-extract",
"msw"
],
"overrides": {
"@types/react": "catalog:types",
"react": "catalog:frontend",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"msw": "catalog:test",
"react-router-devtools": "catalog:build",
"tailwindcss": "catalog:frontend",
"vite": "catalog:build",
"vite": "npm:rolldown-vite@latest",
"vite-plugin-babel": "catalog:build",
"vite-tsconfig-paths": "catalog:build",
"vitest": "catalog:test"
Expand Down
6 changes: 3 additions & 3 deletions packages/ui/.storybook/with_theme_by_color_scheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ export function withThemeByColorScheme<Themes extends Record<string, string>>({
}): Decorator {
DecoratorHelpers.initializeThemeState(Object.keys(themes), defaultTheme as string)
return (storyFn, context) => {
const { themeOverride } = DecoratorHelpers.useThemeParameters()
const maybeThemes = DecoratorHelpers.useThemeParameters()
const selected = DecoratorHelpers.pluckThemeFromContext(context)
const themeKey: keyof Themes | string = maybeThemes?.themeOverride || selected || defaultTheme

useEffect(() => {
const parentElement = document.querySelector('html')
const themeKey: keyof Themes | string = themeOverride || selected || defaultTheme

if (parentElement) {
parentElement.style.setProperty('color-scheme', String(themes[themeKey]))
}
}, [themeOverride, selected])
}, [themeKey])

return storyFn()
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"storybook": "catalog:storybook",
"tailwind-merge": "catalog:frontend",
"tailwindcss": "catalog:frontend",
"vite": "catalog:build",
"vite": "npm:rolldown-vite@latest",
"vitest": "catalog:test"
},
"exports": {
Expand All @@ -56,7 +56,7 @@
},
"name": "@repo/ui",
"peerDependencies": {
"react": "catalog:frontend"
"react": "~19.1.1"
},
"private": true,
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export function NavigationMenuToggle(props: Omit<ToggleButtonProps, 'children' |
<ToggleButton
{...props}
className={composeRenderProps(props.className, (className, renderProps) => styles({ ...renderProps, className }))}
type="button"
>
{({ isSelected }): ReactElement => (
<AccessibleIcon label="Navigation menu toggle">
Expand Down
Loading
Loading