@soul-refiner/design-system 1.0.3 → 1.0.4

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.
@@ -51,7 +51,7 @@ const Wrapper = styled.a `
51
51
  z-index: 6;
52
52
 
53
53
  .hidden {
54
- display: flex;
54
+ display: -webkit-box;
55
55
  }
56
56
 
57
57
  .not-hover {
@@ -10,4 +10,4 @@ export interface VideoProps {
10
10
  style?: React.CSSProperties;
11
11
  thumbnail: string;
12
12
  }
13
- export declare const Video: ({ controls, loop, playsInline, src, subtitles, style, thumbnail, }: VideoProps) => React.JSX.Element;
13
+ export declare const Video: ({ controls, loop, muted, playsInline, src, subtitles, style, thumbnail, }: VideoProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import ReactPlayer from 'react-player';
3
3
  import Image from 'next/image';
4
- export const Video = ({ controls = true, loop = false, playsInline, src, subtitles, style, thumbnail, }) => {
4
+ export const Video = ({ controls = true, loop = false, muted, playsInline, src, subtitles, style, thumbnail, }) => {
5
5
  const ref = React.useRef(null);
6
6
  return (React.createElement(ReactPlayer, { config: {
7
7
  file: {
@@ -19,7 +19,7 @@ export const Video = ({ controls = true, loop = false, playsInline, src, subtitl
19
19
  srcLang: subtitle.locale,
20
20
  })),
21
21
  },
22
- }, controls: controls, height: "100%", light: thumbnail ? (React.createElement(Image, { alt: "thumbnail for trailer", layout: "fill", objectFit: "contain", priority: true, src: thumbnail })) : undefined, loop: loop, pip: false, playsinline: playsInline, playing: true, ref: ref, style: {
22
+ }, controls: controls, height: "100%", light: thumbnail ? (React.createElement(Image, { alt: "thumbnail for trailer", layout: "fill", objectFit: "contain", priority: true, src: thumbnail })) : undefined, loop: loop, muted: muted, pip: false, playsinline: playsInline, playing: true, ref: ref, style: {
23
23
  backgroundColor: 'var(--color-grey-0)',
24
24
  maxHeight: 720,
25
25
  maxWidth: 1280,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {