Compare commits

..

2 Commits

Author SHA1 Message Date
semantic-release-bot
ace3f95a33 chore(release): 0.8.0 [CI SKIP] 2022-06-09 01:41:07 +00:00
AAGaming
4d30efc33b feat(components): add HorizontalFocus 2022-06-08 21:40:19 -04:00
4 changed files with 24 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
# [0.8.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v0.7.2...v0.8.0) (2022-06-09)
### Features
* **components:** add HorizontalFocus ([4d30efc](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/4d30efc33b5398b91e756695fefa91cc37f83ff1))
## [0.7.2](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v0.7.1...v0.7.2) (2022-06-08)

View File

@@ -1,6 +1,6 @@
{
"name": "decky-frontend-lib",
"version": "0.7.2",
"version": "0.8.0",
"description": "A library for building decky plugins",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -0,0 +1,15 @@
import { ReactNode, VFC } from "react";
import { findModuleChild } from "../webpack";
export interface FocusableProps {
children: ReactNode;
}
export const HorizontalFocus = findModuleChild(m => {
if (typeof m !== "object") return undefined;
for (let prop in m) {
if (m[prop]?.toString()?.includes('"children","alignItems","spacing"')) {
return m[prop];
}
}
}) as VFC<FocusableProps>;

View File

@@ -1,6 +1,7 @@
export * from './Button';
export * from './ButtonItem';
export * from './Dropdown';
export * from './Focusable';
export * from './Menu';
export * from './Modal';
export * from './Panel';