Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot
b151bdce8b chore(release): 4.11.4 [CI SKIP] 2026-05-15 03:58:28 +00:00
AAGaming
e44664c970 fix(dropdown): hack to fix styling in dropdownitem 2026-05-14 23:57:56 -04:00
AAGaming
ac8da8e9b6 fix(Field): fix filter for field on beta 2026-05-14 23:57:06 -04:00
5 changed files with 15 additions and 3 deletions

View File

@@ -1,3 +1,11 @@
## [4.11.4](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v4.11.3...v4.11.4) (2026-05-15)
### Bug Fixes
* **dropdown:** hack to fix styling in dropdownitem ([e44664c](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/e44664c9704b3b284284619bc26cf6a910890136))
* **Field:** fix filter for field on beta ([ac8da8e](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/ac8da8e9b650cfcabcd3e5752e1475e91e7edf7a))
## [4.11.3](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v4.11.2...v4.11.3) (2026-03-22)

View File

@@ -1,6 +1,6 @@
{
"name": "@decky/ui",
"version": "4.11.3",
"version": "4.11.4",
"description": "A library for interacting with the Steam frontend in Decky plugins and elsewhere.",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -42,6 +42,8 @@ export const Dropdown = Object.values(CommonUIModule).find(
export interface DropdownItemProps extends DropdownProps, ItemProps {}
const dropdownItemRegex = createPropListRegex(["dropDownControlRef", "description"], false);
export const DropdownItem = Object.values(CommonUIModule).find((mod: any) =>
export const DropdownItemInternal = Object.values(CommonUIModule).find((mod: any) =>
mod?.toString && dropdownItemRegex.test(mod.toString()),
) as FC<DropdownItemProps>;
export const DropdownItem = ((args: DropdownItemProps) => <DropdownItemInternal childrenContainerWidth="min" {...args}/>) as FC<DropdownItemProps>;

View File

@@ -24,6 +24,7 @@ export interface FieldProps extends FooterLegendProps {
onClick?: (e: CustomEvent | MouseEvent) => void;
}
export const Field = findModuleExport((e: Export) => e?.render?.toString().includes('"shift-children-below"')) as FC<
// new || old
export const Field = findModuleExport((e: Export) => (e?.toString()?.includes('().Field') && e?.toString()?.includes('"shift-children-below"')) || e?.render?.toString()?.includes('"shift-children-below"')) as FC<
FieldProps & RefAttributes<HTMLDivElement>
>;

View File

@@ -7,6 +7,7 @@ export interface ItemProps {
layout?: 'below' | 'inline';
icon?: ReactNode;
bottomSeparator?: 'standard' | 'thick' | 'none';
childrenContainerWidth?: 'min' | 'max' | 'fixed'; // Does not work with layout==='below'
indentLevel?: number;
tooltip?: string;
highlightOnFocus?: boolean;