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

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.224",
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,7 @@ import {
14
14
  videoRecipe,
15
15
  type VideoVariants,
16
16
  } from './styles.css';
17
+ import { Icon } from '../Icon';
17
18
 
18
19
  export type VideoProps = React.HTMLAttributes<HTMLDivElement> &
19
20
  VideoVariants & {
@@ -92,15 +93,27 @@ export const Video = ({
92
93
  )}
93
94
 
94
95
  {!hidePlayButton && !isAutoPlay && (
95
- <button className={playButton} data-playing={isPlaying} onClick={playVideo} aria-label="Play video" type="button" />
96
+ <button className={playButton} data-playing={isPlaying} onClick={playVideo} aria-label="Play video" type="button">
97
+ <Icon icon="play" />
98
+ </button>
96
99
  )}
97
100
 
98
- {isPlayingFullScreen && <button className={closeButton} onClick={closeVideo} aria-label="Close video" type="button" />}
101
+ {isPlayingFullScreen && (
102
+ <button className={closeButton} onClick={closeVideo} aria-label="Close video" type="button">
103
+ <Icon icon="close" />
104
+ </button>
105
+ )}
99
106
 
100
- {isPlaying && showControls && <button className={pauseButton} onClick={pauseVideo} aria-label="Pause video" type="button" />}
107
+ {isPlaying && showControls && (
108
+ <button className={pauseButton} onClick={pauseVideo} aria-label="Pause video" type="button">
109
+ <Icon icon="pause" />
110
+ </button>
111
+ )}
101
112
 
102
113
  {showControls && (
103
- <button className={soundButton} onClick={toggleMutedVideo} aria-label={isMuted ? 'Unmute video' : 'Mute video'} type="button" />
114
+ <button className={soundButton} onClick={toggleMutedVideo} aria-label={isMuted ? 'Unmute video' : 'Mute video'} type="button">
115
+ {isMuted ? <Icon icon="volumeUp" /> : <Icon icon="volumeMute" />}
116
+ </button>
104
117
  )}
105
118
  </div>
106
119
  );