mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-23 11:28:48 +02:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8167be7642 | ||
|
|
a09af357c7 | ||
|
|
e48180d7bb | ||
|
|
490a1f77fa |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
|||||||
|
## [1.7.8](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.7.7...v1.7.8) (2022-08-20)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **Dropdown:** correct Dropdown types ([#15](https://github.com/SteamDeckHomebrew/decky-frontend-lib/issues/15)) ([a09af35](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/a09af357c7e750377feefad86ab417b19484cb60))
|
||||||
|
|
||||||
|
## [1.7.7](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.7.6...v1.7.7) (2022-08-20)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **FieldProps:** Add "bottomSeparator" option ([#16](https://github.com/SteamDeckHomebrew/decky-frontend-lib/issues/16)) ([490a1f7](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/490a1f77fa98a988f0cae61d74370bf3fa96336c))
|
||||||
|
|
||||||
## [1.7.6](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.7.5...v1.7.6) (2022-08-18)
|
## [1.7.6](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v1.7.5...v1.7.6) (2022-08-18)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "decky-frontend-lib",
|
"name": "decky-frontend-lib",
|
||||||
"version": "1.7.6",
|
"version": "1.7.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "decky-frontend-lib",
|
"name": "decky-frontend-lib",
|
||||||
"version": "1.7.6",
|
"version": "1.7.8",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"minimist": "^1.2.6"
|
"minimist": "^1.2.6"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "decky-frontend-lib",
|
"name": "decky-frontend-lib",
|
||||||
"version": "1.7.6",
|
"version": "1.7.8",
|
||||||
"description": "A library for building decky plugins",
|
"description": "A library for building decky plugins",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -4,14 +4,14 @@ import { CommonUIModule } from '../webpack';
|
|||||||
import { ItemProps } from './Item';
|
import { ItemProps } from './Item';
|
||||||
|
|
||||||
export interface SingleDropdownOption {
|
export interface SingleDropdownOption {
|
||||||
data: number;
|
data: any;
|
||||||
label: string;
|
label: ReactNode;
|
||||||
|
|
||||||
options?: never;
|
options?: never;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MultiDropdownOption {
|
export interface MultiDropdownOption {
|
||||||
label: string;
|
label: ReactNode;
|
||||||
options: DropdownOption[];
|
options: DropdownOption[];
|
||||||
|
|
||||||
data?: never;
|
data?: never;
|
||||||
@@ -21,7 +21,7 @@ export type DropdownOption = SingleDropdownOption | MultiDropdownOption;
|
|||||||
|
|
||||||
export interface DropdownProps {
|
export interface DropdownProps {
|
||||||
rgOptions: DropdownOption[];
|
rgOptions: DropdownOption[];
|
||||||
selectedOption: number | null;
|
selectedOption: any;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
onMenuWillOpen?(showMenu: () => void): void;
|
onMenuWillOpen?(showMenu: () => void): void;
|
||||||
onMenuOpened?(): void;
|
onMenuOpened?(): void;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { findModuleChild } from '../webpack';
|
|||||||
|
|
||||||
export interface FieldProps extends HTMLAttributes<HTMLDivElement> {
|
export interface FieldProps extends HTMLAttributes<HTMLDivElement> {
|
||||||
label?: string | ReactNode;
|
label?: string | ReactNode;
|
||||||
|
bottomSeparator?: boolean;
|
||||||
description?: string | ReactNode;
|
description?: string | ReactNode;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
icon?: ReactNode;
|
icon?: ReactNode;
|
||||||
|
|||||||
Reference in New Issue
Block a user