@wistia/ui 0.18.3 → 0.18.4-beta.a529e874.9a0f097
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 +15 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +23 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.
|
|
3
|
+
* @license @wistia/ui v0.18.4-beta.a529e874.9a0f097
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6871,13 +6871,13 @@ var SpeedIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
|
6871
6871
|
|
|
6872
6872
|
// src/components/Icon/icons/SpinnerIcon.tsx
|
|
6873
6873
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6874
|
-
var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.
|
|
6874
|
+
var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
6875
6875
|
"svg",
|
|
6876
6876
|
{
|
|
6877
6877
|
...props,
|
|
6878
6878
|
viewBox: "0 0 24 24",
|
|
6879
6879
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6880
|
-
children: [
|
|
6880
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("g", { children: [
|
|
6881
6881
|
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
6882
6882
|
"path",
|
|
6883
6883
|
{
|
|
@@ -6895,10 +6895,10 @@ var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(
|
|
|
6895
6895
|
keyTimes: "0;1",
|
|
6896
6896
|
repeatCount: "indefinite",
|
|
6897
6897
|
type: "rotate",
|
|
6898
|
-
values: "0
|
|
6898
|
+
values: "0 12 12;360 12 12"
|
|
6899
6899
|
}
|
|
6900
6900
|
)
|
|
6901
|
-
]
|
|
6901
|
+
] })
|
|
6902
6902
|
}
|
|
6903
6903
|
);
|
|
6904
6904
|
|
|
@@ -18167,7 +18167,11 @@ var StyledThumbnail = import_styled_components127.styled.div`
|
|
|
18167
18167
|
width: 100%;
|
|
18168
18168
|
overflow: hidden;
|
|
18169
18169
|
position: relative;
|
|
18170
|
-
|
|
18170
|
+
|
|
18171
|
+
&,
|
|
18172
|
+
img {
|
|
18173
|
+
border-radius: clamp(var(--wui-border-radius-01), 8cqh, var(--wui-border-radius-05));
|
|
18174
|
+
}
|
|
18171
18175
|
|
|
18172
18176
|
@container (min-width: 200px) {
|
|
18173
18177
|
--wui-thumbnail-badge-offset: var(--wui-space-02);
|
|
@@ -18209,6 +18213,9 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
|
|
|
18209
18213
|
left: relativeLeft
|
|
18210
18214
|
};
|
|
18211
18215
|
};
|
|
18216
|
+
var hasValidThumbnailUrl = (thumbnailUrl) => {
|
|
18217
|
+
return (0, import_type_guards74.isNotNil)(thumbnailUrl) && (0, import_type_guards74.isNonEmptyString)(thumbnailUrl);
|
|
18218
|
+
};
|
|
18212
18219
|
var Thumbnail = (0, import_react100.forwardRef)(
|
|
18213
18220
|
({
|
|
18214
18221
|
gradientBackground = "defaultMidOne",
|
|
@@ -18227,7 +18234,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
|
|
|
18227
18234
|
const storyboardElementRef = (0, import_react100.useRef)(null);
|
|
18228
18235
|
const [cursorPosition, setCursorPosition] = (0, import_react100.useState)(null);
|
|
18229
18236
|
const backgroundUrl = (0, import_react100.useMemo)(
|
|
18230
|
-
() => thumbnailImageType === "square" && (
|
|
18237
|
+
() => thumbnailImageType === "square" && hasValidThumbnailUrl(thumbnailUrl) ? thumbnailUrl : void 0,
|
|
18231
18238
|
[thumbnailImageType, thumbnailUrl]
|
|
18232
18239
|
);
|
|
18233
18240
|
const isScrubbable = (0, import_type_guards74.isNotNil)(storyboard);
|
|
@@ -18278,7 +18285,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
|
|
|
18278
18285
|
width
|
|
18279
18286
|
}
|
|
18280
18287
|
);
|
|
18281
|
-
} else if ((
|
|
18288
|
+
} else if (hasValidThumbnailUrl(thumbnailUrl)) {
|
|
18282
18289
|
thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
|
|
18283
18290
|
ThumbnailImage,
|
|
18284
18291
|
{
|