reifyui 0.10.0 → 0.10.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.
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +5 -1
- package/src/timeline/Timeline.jsx +15 -6
- package/styles/timeline.css +6 -0
package/dist/index.cjs
CHANGED
|
@@ -4670,7 +4670,18 @@ function Clip({
|
|
|
4670
4670
|
clip.poster ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "rui-tl-strip", style: {
|
|
4671
4671
|
backgroundImage: `url("${String(clip.poster).replace(/"/g, '\\"')}")`,
|
|
4672
4672
|
backgroundSize: `${tileW}px 100%`
|
|
4673
|
-
} }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4673
|
+
} }) : clip.video ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4674
|
+
"video",
|
|
4675
|
+
{
|
|
4676
|
+
className: "rui-tl-frame",
|
|
4677
|
+
src: clip.video,
|
|
4678
|
+
preload: "metadata",
|
|
4679
|
+
muted: true,
|
|
4680
|
+
playsInline: true,
|
|
4681
|
+
tabIndex: -1,
|
|
4682
|
+
"aria-hidden": "true"
|
|
4683
|
+
}
|
|
4684
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "rui-tl-blank", "aria-hidden": "true", children: clip.glyph }),
|
|
4674
4685
|
clip.badge && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "rui-tl-badge", children: clip.badge }),
|
|
4675
4686
|
known && width > 46 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "rui-tl-dur", children: durationLabel(clip.duration) }),
|
|
4676
4687
|
clip.label && width > 104 && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "rui-tl-name", children: clip.label }),
|