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 | |
|---|---|---|---|
|
|
b5192cf590 | ||
|
|
2e7b4b664a | ||
|
|
b92e6a5b9d | ||
|
|
32c355f2a7 |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
|||||||
|
## [0.4.2](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v0.4.1...v0.4.2) (2022-06-06)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **classes:** add gamepadDialogClasses and quickAccessControlsClasses ([2e7b4b6](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/2e7b4b664a673b46b402b995fb58f0ce8ffbafac))
|
||||||
|
|
||||||
|
## [0.4.1](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v0.4.0...v0.4.1) (2022-06-05)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **textfield:** correct type for onChange callback ([32c355f](https://github.com/SteamDeckHomebrew/decky-frontend-lib/commit/32c355f2a7e0b6ca6592b956e8174d217766bc5c))
|
||||||
|
|
||||||
# [0.4.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v0.3.0...v0.4.0) (2022-06-05)
|
# [0.4.0](https://github.com/SteamDeckHomebrew/decky-frontend-lib/compare/v0.3.0...v0.4.0) (2022-06-05)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "decky-frontend-lib",
|
"name": "decky-frontend-lib",
|
||||||
"version": "0.4.0",
|
"version": "0.4.2",
|
||||||
"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",
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export interface TextFieldProps {
|
|||||||
focusOnMount?: boolean;
|
focusOnMount?: boolean;
|
||||||
tooltip?: string;
|
tooltip?: string;
|
||||||
inlineControls?: ReactNode;
|
inlineControls?: ReactNode;
|
||||||
onChange?(event: ChangeEventHandler<HTMLInputElement>): void;
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
||||||
value?: string;
|
value?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,100 @@ type StaticClasses = Record<
|
|||||||
string
|
string
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
type GamepadDialogClasses = Record<
|
||||||
|
| 'duration-app-launch'
|
||||||
|
| 'GamepadDialogContent'
|
||||||
|
| 'GamepadDialogContent_InnerWidth'
|
||||||
|
| 'Field'
|
||||||
|
| 'Button'
|
||||||
|
| 'NoMinWidth'
|
||||||
|
| 'ActiveAndUnfocused'
|
||||||
|
| 'StandaloneFieldSeparator'
|
||||||
|
| 'StandardPadding'
|
||||||
|
| 'CompactPadding'
|
||||||
|
| 'WithDescription'
|
||||||
|
| 'WithBottomSeparatorStandard'
|
||||||
|
| 'WithBottomSeparatorThick'
|
||||||
|
| 'HighlightOnFocus'
|
||||||
|
| 'ItemFocusAnim-darkerGrey'
|
||||||
|
| 'ItemFocusAnim-darkGrey'
|
||||||
|
| 'WithBottomSeparator'
|
||||||
|
| 'Disabled'
|
||||||
|
| 'Clickable'
|
||||||
|
| 'FieldClickTarget'
|
||||||
|
| 'FieldChildren'
|
||||||
|
| 'FieldLeadIcon'
|
||||||
|
| 'FieldLabelRow'
|
||||||
|
| 'VerticalAlignCenter'
|
||||||
|
| 'InlineWrapShiftsChildrenBelow'
|
||||||
|
| 'ExtraPaddingOnChildrenBelow'
|
||||||
|
| 'ChildrenWidthFixed'
|
||||||
|
| 'ChildrenWidthGrow'
|
||||||
|
| 'WithFirstRow'
|
||||||
|
| 'WithChildrenBelow'
|
||||||
|
| 'FieldLabel'
|
||||||
|
| 'FieldLabelValue'
|
||||||
|
| 'FieldDescription'
|
||||||
|
| 'ModalPosition'
|
||||||
|
| 'WithStandardPadding'
|
||||||
|
| 'slideInAnimation'
|
||||||
|
| 'BasicTextInput'
|
||||||
|
| 'Toggle'
|
||||||
|
| 'ToggleRail'
|
||||||
|
| 'On'
|
||||||
|
| 'ToggleSwitch'
|
||||||
|
| 'LabelFieldValue'
|
||||||
|
| 'DropDownControlButtonContents'
|
||||||
|
| 'Spacer'
|
||||||
|
| 'ControlsListOuterPanel'
|
||||||
|
| 'StandardSpacing'
|
||||||
|
| 'ExtraSpacing'
|
||||||
|
| 'AlignRight'
|
||||||
|
| 'AlignLeft'
|
||||||
|
| 'AlignCenter'
|
||||||
|
| 'ControlsListChild'
|
||||||
|
| 'QuickAccess-Menu'
|
||||||
|
| 'BigButtons'
|
||||||
|
| 'BottomButtons'
|
||||||
|
| 'ItemFocusAnim-darkerGrey-nocolor'
|
||||||
|
| 'ItemFocusAnim-grey'
|
||||||
|
| 'ItemFocusAnimBorder-darkGrey'
|
||||||
|
| 'ItemFocusAnim-green'
|
||||||
|
| 'focusAnimation'
|
||||||
|
| 'hoverAnimation',
|
||||||
|
string
|
||||||
|
>;
|
||||||
|
|
||||||
|
type QuickAccessControlsClasses = Record<
|
||||||
|
| 'duration-app-launch'
|
||||||
|
| 'PanelSection'
|
||||||
|
| 'PanelSectionTitle'
|
||||||
|
| 'Text'
|
||||||
|
| 'PanelSectionRow'
|
||||||
|
| 'Label'
|
||||||
|
| 'ComingSoon'
|
||||||
|
| 'LowBattery'
|
||||||
|
| 'ReallyLow'
|
||||||
|
| 'LowBatteryGauge'
|
||||||
|
| 'Remaining'
|
||||||
|
| 'EmptyNotifications'
|
||||||
|
| 'BatterySectionContainer'
|
||||||
|
| 'BatteryIcon'
|
||||||
|
| 'BatteryPercentageLabel'
|
||||||
|
| 'BatteryDetailsLabels'
|
||||||
|
| 'BatteryProjectedValue'
|
||||||
|
| 'BatteryProjectedLabel'
|
||||||
|
| 'ItemFocusAnim-darkerGrey-nocolor'
|
||||||
|
| 'ItemFocusAnim-darkerGrey'
|
||||||
|
| 'ItemFocusAnim-darkGrey'
|
||||||
|
| 'ItemFocusAnim-grey'
|
||||||
|
| 'ItemFocusAnimBorder-darkGrey'
|
||||||
|
| 'ItemFocusAnim-green'
|
||||||
|
| 'focusAnimation'
|
||||||
|
| 'hoverAnimation',
|
||||||
|
string
|
||||||
|
>;
|
||||||
|
|
||||||
export const staticClasses: StaticClasses = findModuleChild((mod) => {
|
export const staticClasses: StaticClasses = findModuleChild((mod) => {
|
||||||
if (typeof mod !== 'object') return false;
|
if (typeof mod !== 'object') return false;
|
||||||
|
|
||||||
@@ -70,3 +164,19 @@ export const staticClasses: StaticClasses = findModuleChild((mod) => {
|
|||||||
return mod;
|
return mod;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const gamepadDialogClasses: GamepadDialogClasses = findModuleChild((mod) => {
|
||||||
|
if (typeof mod !== 'object') return false;
|
||||||
|
|
||||||
|
if (mod.WithFirstRow) {
|
||||||
|
return mod;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
export const quickAccessControlsClasses: QuickAccessControlsClasses = findModuleChild((mod) => {
|
||||||
|
if (typeof mod !== 'object') return false;
|
||||||
|
|
||||||
|
if (mod.PanelSectionRow) {
|
||||||
|
return mod;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user