quirk-ui 0.0.312 → 0.0.313

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.
@@ -62,7 +62,19 @@ function me({
62
62
  const i = m.current;
63
63
  i && (a ? i.pause() : i.play());
64
64
  }, [a]);
65
- const B = () => {
65
+ const h = /* @__PURE__ */ e(
66
+ "button",
67
+ {
68
+ title: `${k ? "Pause the video" : "Play the video"}`,
69
+ className: l.videoControl,
70
+ onClick: () => {
71
+ const i = m.current;
72
+ i && (i.paused ? (i.play().catch(() => {
73
+ }), x(!0)) : (i.pause(), x(!1)));
74
+ },
75
+ children: k ? /* @__PURE__ */ e(L, { size: 18 }) : /* @__PURE__ */ e(j, { size: 18 })
76
+ }
77
+ ), B = () => {
66
78
  if (!s) return null;
67
79
  const i = s.includes("vimeo.com"), y = s.includes("youtube.com") || s.includes("youtu.be");
68
80
  return i || y ? /* @__PURE__ */ e("div", { className: l.videoWrapper, children: /* @__PURE__ */ e(
@@ -89,19 +101,7 @@ function me({
89
101
  }
90
102
  )
91
103
  ] });
92
- }, h = /* @__PURE__ */ e(
93
- "button",
94
- {
95
- title: `${k ? "Pause the video" : "Play the video"}`,
96
- className: l.videoControl,
97
- onClick: () => {
98
- const i = m.current;
99
- i && (i.paused ? (i.play().catch(() => {
100
- }), x(!0)) : (i.pause(), x(!1)));
101
- },
102
- children: k ? /* @__PURE__ */ e(L, { size: 18 }) : /* @__PURE__ */ e(j, { size: 18 })
103
- }
104
- );
104
+ };
105
105
  function w(i) {
106
106
  const y = i.match(/(?:youtube\.com\/.*v=|youtu\.be\/)([^&?/]+)/);
107
107
  return (y == null ? void 0 : y[1]) || "";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quirk-ui",
3
3
  "private": false,
4
- "version": "0.0.312",
4
+ "version": "0.0.313",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {