playron 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/playron.cjs.js +50 -50
- package/dist/playron.es.js +11477 -11471
- package/dist/ui/Controls/SettingsPanel.d.ts +25 -1
- package/dist/ui/Controls/SettingsPanel.d.ts.map +1 -1
- package/dist/ui/Controls/VolumeControl.d.ts +7 -1
- package/dist/ui/Controls/VolumeControl.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -13,5 +13,29 @@
|
|
|
13
13
|
* Each row navigates to a submenu. Back arrow returns to root.
|
|
14
14
|
* Selecting an item applies the change and closes the panel.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
/** Customize the visual appearance of the SettingsPanel. */
|
|
17
|
+
export interface SettingsPanelTheme {
|
|
18
|
+
/** Panel background. Default: 'rgba(12, 12, 20, 0.97)' */
|
|
19
|
+
background?: string;
|
|
20
|
+
/** Panel border color. Default: 'rgba(255,255,255,0.1)' */
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
/** Main text color. Default: '#fff' */
|
|
23
|
+
textColor?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Accent/highlight color for selected items (hex preferred).
|
|
26
|
+
* Default: '#6366f1'
|
|
27
|
+
*/
|
|
28
|
+
accentColor?: string;
|
|
29
|
+
}
|
|
30
|
+
/** Where the panel opens relative to the gear button. */
|
|
31
|
+
export interface SettingsPanelPosition {
|
|
32
|
+
/** 'top' = panel opens above the button (default). 'bottom' = opens below. */
|
|
33
|
+
vertical?: 'top' | 'bottom';
|
|
34
|
+
/** 'right' = right-aligned (default). 'left' = left-aligned. */
|
|
35
|
+
horizontal?: 'left' | 'right';
|
|
36
|
+
}
|
|
37
|
+
export default function SettingsPanel({ theme, panelPosition, }?: {
|
|
38
|
+
theme?: SettingsPanelTheme;
|
|
39
|
+
panelPosition?: SettingsPanelPosition;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
41
|
//# sourceMappingURL=SettingsPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsPanel.d.ts","sourceRoot":"","sources":["../../../src/ui/Controls/SettingsPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"SettingsPanel.d.ts","sourceRoot":"","sources":["../../../src/ui/Controls/SettingsPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,4DAA4D;AAC5D,MAAM,WAAW,kBAAkB;IACjC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yDAAyD;AACzD,MAAM,WAAW,qBAAqB;IACpC,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC5B,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B;AAwND,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,KAAK,EACL,aAAa,GACd,GAAE;IACD,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,aAAa,CAAC,EAAE,qBAAqB,CAAC;CAClC,2CAokBL"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type VolumeSliderDirection = 'right' | 'left' | 'top' | 'bottom';
|
|
2
|
+
interface VolumeControlProps {
|
|
3
|
+
/** Direction the volume slider expands from the mute button. Default: 'right' */
|
|
4
|
+
sliderDirection?: VolumeSliderDirection;
|
|
5
|
+
}
|
|
6
|
+
export default function VolumeControl({ sliderDirection }: VolumeControlProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
2
8
|
//# sourceMappingURL=VolumeControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VolumeControl.d.ts","sourceRoot":"","sources":["../../../src/ui/Controls/VolumeControl.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,aAAa,
|
|
1
|
+
{"version":3,"file":"VolumeControl.d.ts","sourceRoot":"","sources":["../../../src/ui/Controls/VolumeControl.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;AAExE,UAAU,kBAAkB;IAC1B,iFAAiF;IACjF,eAAe,CAAC,EAAE,qBAAqB,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,eAAyB,EAAE,EAAE,kBAAkB,2CAyOtF"}
|