build(react): build26 from 45504a2b

This commit is contained in:
publish
2026-08-05 18:57:47 +02:00
commit 784a38389b
1955 changed files with 60543 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
import { PlayButton, PlayButtonProps } from "./play-button.js";
export { PlayButton, type PlayButtonProps };
+2
View File
@@ -0,0 +1,2 @@
import { PlayButton } from "./play-button.js";
export { PlayButton };
+28
View File
@@ -0,0 +1,28 @@
import { UIComponentProps } from "../../utils/types.js";
import { PlayButtonCore } from "@videojs/core";
//#region src/ui/play-button/play-button.d.ts
interface PlayButtonProps extends UIComponentProps<'button', PlayButtonCore.State>, PlayButtonCore.Props {}
/**
* A button that toggles playback.
*
* @example
* ```tsx
* <PlayButton />
*
* <PlayButton
* render={(props, state) => (
* <button {...props}>
* {state.paused ? <PlayIcon /> : <PauseIcon />}
* </button>
* )}
* />
* ```
*/
declare const PlayButton: import("react").ForwardRefExoticComponent<PlayButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
declare namespace PlayButton {
type Props = PlayButtonProps;
type State = PlayButtonCore.State;
}
//#endregion
export { PlayButton, PlayButtonProps };
//# sourceMappingURL=play-button.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"play-button.d.ts","names":[],"sources":["../../../../src/ui/play-button/play-button.tsx"],"mappings":";;;UAQiB,wBAAwB,2BAA2B,eAAe,QAAQ,eAAe;;;;;;;;;;;;;;;;;cAkB7F,4BAAU,0BAAA,kCAAA,cAAA;kBASN;OACH,QAAQ;OACR,QAAQ,eAAe"}
+33
View File
@@ -0,0 +1,33 @@
"use client";
import { createMediaButton } from "../create-media-button.js";
import { selectPlayback } from "@videojs/core/dom";
import { PlayButtonCore, PlayButtonDataAttrs } from "@videojs/core";
//#region src/ui/play-button/play-button.tsx
/**
* A button that toggles playback.
*
* @example
* ```tsx
* <PlayButton />
*
* <PlayButton
* render={(props, state) => (
* <button {...props}>
* {state.paused ? <PlayIcon /> : <PauseIcon />}
* </button>
* )}
* />
* ```
*/
const PlayButton = createMediaButton({
displayName: "PlayButton",
core: PlayButtonCore,
stateAttrMap: PlayButtonDataAttrs,
selector: selectPlayback,
action: (core, state) => core.toggle(state),
hotkeyAction: "togglePaused"
});
//#endregion
export { PlayButton };
//# sourceMappingURL=play-button.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"play-button.js","names":[],"sources":["../../../../src/ui/play-button/play-button.tsx"],"sourcesContent":["'use client';\n\nimport { PlayButtonCore, PlayButtonDataAttrs } from '@videojs/core';\nimport { selectPlayback } from '@videojs/core/dom';\n\nimport type { UIComponentProps } from '../../utils/types';\nimport { createMediaButton } from '../create-media-button';\n\nexport interface PlayButtonProps extends UIComponentProps<'button', PlayButtonCore.State>, PlayButtonCore.Props {}\n\n/**\n * A button that toggles playback.\n *\n * @example\n * ```tsx\n * <PlayButton />\n *\n * <PlayButton\n * render={(props, state) => (\n * <button {...props}>\n * {state.paused ? <PlayIcon /> : <PauseIcon />}\n * </button>\n * )}\n * />\n * ```\n */\nexport const PlayButton = createMediaButton<PlayButtonCore, PlayButtonProps>({\n displayName: 'PlayButton',\n core: PlayButtonCore,\n stateAttrMap: PlayButtonDataAttrs,\n selector: selectPlayback,\n action: (core, state) => core.toggle(state),\n hotkeyAction: 'togglePaused',\n});\n\nexport namespace PlayButton {\n export type Props = PlayButtonProps;\n export type State = PlayButtonCore.State;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA0BA,MAAa,aAAa,kBAAmD;CAC3E,aAAa;CACb,MAAM;CACN,cAAc;CACd,UAAU;CACV,SAAS,MAAM,UAAU,KAAK,OAAO,KAAK;CAC1C,cAAc;AAChB,CAAC"}