@latte-macchiat-io/latte-vanilla-components 0.0.223 → 0.0.225

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.223",
3
+ "version": "0.0.225",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -14,6 +14,8 @@ import {
14
14
  videoRecipe,
15
15
  type VideoVariants,
16
16
  } from './styles.css';
17
+ import { themeContract } from '../../theme/contract.css';
18
+ import { Icon } from '../Icon';
17
19
 
18
20
  export type VideoProps = React.HTMLAttributes<HTMLDivElement> &
19
21
  VideoVariants & {
@@ -92,15 +94,31 @@ export const Video = ({
92
94
  )}
93
95
 
94
96
  {!hidePlayButton && !isAutoPlay && (
95
- <button className={playButton} data-playing={isPlaying} onClick={playVideo} aria-label="Play video" type="button" />
97
+ <button className={playButton} data-playing={isPlaying} onClick={playVideo} aria-label="Play video" type="button">
98
+ <Icon icon="play" color={themeContract.video.playButton.iconColor} />
99
+ </button>
96
100
  )}
97
101
 
98
- {isPlayingFullScreen && <button className={closeButton} onClick={closeVideo} aria-label="Close video" type="button" />}
102
+ {isPlayingFullScreen && (
103
+ <button className={closeButton} onClick={closeVideo} aria-label="Close video" type="button">
104
+ <Icon icon="close" color={themeContract.video.closeButton.iconColor} />
105
+ </button>
106
+ )}
99
107
 
100
- {isPlaying && showControls && <button className={pauseButton} onClick={pauseVideo} aria-label="Pause video" type="button" />}
108
+ {isPlaying && showControls && (
109
+ <button className={pauseButton} onClick={pauseVideo} aria-label="Pause video" type="button">
110
+ <Icon icon="pause" color={themeContract.video.pauseButton.iconColor} />
111
+ </button>
112
+ )}
101
113
 
102
114
  {showControls && (
103
- <button className={soundButton} onClick={toggleMutedVideo} aria-label={isMuted ? 'Unmute video' : 'Mute video'} type="button" />
115
+ <button className={soundButton} onClick={toggleMutedVideo} aria-label={isMuted ? 'Unmute video' : 'Mute video'} type="button">
116
+ {isMuted ? (
117
+ <Icon icon="volumeUp" color={themeContract.video.soundButton.iconColor} />
118
+ ) : (
119
+ <Icon icon="volumeMute" color={themeContract.video.soundButton.iconColor} />
120
+ )}
121
+ </button>
104
122
  )}
105
123
  </div>
106
124
  );