meticulous-ui 2.8.0 → 2.8.1

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,23 +1,37 @@
1
- import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
- import { useRef as t } from "react";
3
- import { VideoContainer as p, Video as c } from "./styles.js";
4
- import { useSpacebarToggle as h } from "./useSpacebarToggle.js";
5
- import V from "./components/Volumebar/Volumebar.js";
6
- import { useVolumeOverlay as g } from "./useVolumeOverlay.js";
7
- const j = ({
8
- link: s,
9
- thumbnail: i,
10
- width: m = "600",
11
- borderRadius: u = 8,
12
- height: l = "auto",
13
- ...n
1
+ import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
+ import { useRef as s, useState as V } from "react";
3
+ import { VideoContainer as $, ShimmerOverlay as v, Video as g } from "./styles.js";
4
+ import { useSpacebarToggle as x } from "./useSpacebarToggle.js";
5
+ import R from "./components/Volumebar/Volumebar.js";
6
+ import { useVolumeOverlay as S } from "./useVolumeOverlay.js";
7
+ import b from "../Shimmer/Shimmer.js";
8
+ const D = ({
9
+ link: i,
10
+ thumbnail: m,
11
+ width: a = "600",
12
+ borderRadius: o = 8,
13
+ height: d = "auto",
14
+ hasShimmer: l = !0,
15
+ ...u
14
16
  }) => {
15
- const o = t(null), e = t(null), { volume: a, showVolume: d } = g();
16
- return h(o, e, d), /* @__PURE__ */ f(p, { ref: e, $width: m, $height: l, ...n, children: [
17
- /* @__PURE__ */ r(c, { $borderRadius: u, ref: o, src: s, poster: i, controls: !0, children: "Your browser does not support the video tag." }),
18
- /* @__PURE__ */ r(V, { volume: a })
17
+ const r = s(null), t = s(null), { volume: n, showVolume: f } = S(), [p, c] = V(!1);
18
+ return x(r, t, f), /* @__PURE__ */ h($, { ref: t, $width: a, $height: d, ...u, children: [
19
+ l && /* @__PURE__ */ e(v, { $loaded: p, $borderRadius: o, children: /* @__PURE__ */ e(b, { borderRadius: `${o}px` }) }),
20
+ /* @__PURE__ */ e(
21
+ g,
22
+ {
23
+ $borderRadius: o,
24
+ ref: r,
25
+ src: i,
26
+ poster: m,
27
+ controls: !0,
28
+ onLoadedData: () => c(!0),
29
+ children: "Your browser does not support the video tag."
30
+ }
31
+ ),
32
+ /* @__PURE__ */ e(R, { volume: n })
19
33
  ] });
20
34
  };
21
35
  export {
22
- j as default
36
+ D as default
23
37
  };
@@ -1,6 +1,14 @@
1
1
  import t from "styled-components";
2
2
  import o from "../../colors/black.js";
3
- const c = t.div`
3
+ const r = t.div`
4
+ position: absolute;
5
+ inset: 0;
6
+ z-index: 2;
7
+ border-radius: ${({ $borderRadius: i }) => i}px;
8
+ opacity: ${({ $loaded: i }) => i ? 0 : 1};
9
+ transition: opacity 0.35s ease-out;
10
+ pointer-events: none;
11
+ `, a = t.div`
4
12
  position: relative;
5
13
  display: inline-block;
6
14
  width: ${({ $width: i }) => i}px;
@@ -28,6 +36,7 @@ const c = t.div`
28
36
  }
29
37
  `;
30
38
  export {
39
+ r as ShimmerOverlay,
31
40
  d as Video,
32
- c as VideoContainer
41
+ a as VideoContainer
33
42
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "license": "MIT",
5
5
  "description": "A comprehensive React UI component library with a wide range of customizable components, icons, colors, and utilities for building modern web applications.",
6
6
  "main": "./index.js",