playron 1.0.9 → 1.0.11

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.
@@ -1,8 +1,29 @@
1
1
  export type VolumeSliderDirection = 'right' | 'left' | 'top' | 'bottom';
2
+ /** Customize the visual appearance of the VolumeControl. */
3
+ export interface VolumeControlTheme {
4
+ /** Slider popup panel background. Default: 'rgba(10, 10, 20, 0.88)' */
5
+ sliderBackground?: string;
6
+ /** Panel border color. Default: 'rgba(255,255,255,0.1)' */
7
+ borderColor?: string;
8
+ /** Mute button background. Default: 'rgba(255,255,255,0.1)' */
9
+ buttonBackground?: string;
10
+ /** Mute button hover background. Default: 'rgba(255,255,255,0.2)' */
11
+ buttonHoverBackground?: string;
12
+ /** Icon / SVG fill color. Default: '#fff' */
13
+ iconColor?: string;
14
+ /** Track (unfilled portion) color. Default: 'rgba(255,255,255,0.3)' */
15
+ trackColor?: string;
16
+ /** Fill (volume level) color. Default: '#3b82f6' */
17
+ fillColor?: string;
18
+ /** Knob handle color. Default: '#fff' */
19
+ handleColor?: string;
20
+ }
2
21
  interface VolumeControlProps {
3
22
  /** Direction the volume slider expands from the mute button. Default: 'right' */
4
23
  sliderDirection?: VolumeSliderDirection;
24
+ /** Visual theme overrides. */
25
+ theme?: VolumeControlTheme;
5
26
  }
6
- export default function VolumeControl({ sliderDirection }: VolumeControlProps): import("react/jsx-runtime").JSX.Element;
27
+ export default function VolumeControl({ sliderDirection, theme }: VolumeControlProps): import("react/jsx-runtime").JSX.Element;
7
28
  export {};
8
29
  //# 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,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"}
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,4DAA4D;AAC5D,MAAM,WAAW,kBAAkB;IACjC,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qEAAqE;IACrE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,kBAAkB;IAC1B,iFAAiF;IACjF,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,eAAyB,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAwP7F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playron",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Modern OTT video player for React, Next.js, and vanilla JS",
5
5
  "type": "module",
6
6
  "main": "./dist/playron.cjs.js",