@wistia/ui 0.18.2-beta.4003271.cf839cf → 0.18.2-beta.547ab1c7.fdb1aa5
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 +60 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +60 -54
- 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.2-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.2-beta.547ab1c7.fdb1aa5
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6870,13 +6870,13 @@ var SpeedIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
|
6870
6870
|
|
|
6871
6871
|
// src/components/Icon/icons/SpinnerIcon.tsx
|
|
6872
6872
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6873
|
-
var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.
|
|
6873
|
+
var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
6874
6874
|
"svg",
|
|
6875
6875
|
{
|
|
6876
6876
|
...props,
|
|
6877
6877
|
viewBox: "0 0 24 24",
|
|
6878
6878
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6879
|
-
children: [
|
|
6879
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("g", { children: [
|
|
6880
6880
|
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
6881
6881
|
"path",
|
|
6882
6882
|
{
|
|
@@ -6894,10 +6894,10 @@ var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(
|
|
|
6894
6894
|
keyTimes: "0;1",
|
|
6895
6895
|
repeatCount: "indefinite",
|
|
6896
6896
|
type: "rotate",
|
|
6897
|
-
values: "0
|
|
6897
|
+
values: "0 12 12;360 12 12"
|
|
6898
6898
|
}
|
|
6899
6899
|
)
|
|
6900
|
-
]
|
|
6900
|
+
] })
|
|
6901
6901
|
}
|
|
6902
6902
|
);
|
|
6903
6903
|
|
|
@@ -17724,7 +17724,7 @@ var StyledThumbnailBadge = import_styled_components123.styled.div`
|
|
|
17724
17724
|
align-items: center;
|
|
17725
17725
|
background-color: rgb(0 0 0 / 50%);
|
|
17726
17726
|
border-radius: var(--wui-border-radius-01);
|
|
17727
|
-
bottom: var(--wui-
|
|
17727
|
+
bottom: var(--wui-space-01);
|
|
17728
17728
|
color: var(--wui-color-text-on-fill);
|
|
17729
17729
|
display: flex;
|
|
17730
17730
|
font-size: var(--wui-typography-body-4-size);
|
|
@@ -17732,7 +17732,7 @@ var StyledThumbnailBadge = import_styled_components123.styled.div`
|
|
|
17732
17732
|
gap: var(--wui-space-01);
|
|
17733
17733
|
padding: 0 var(--wui-space-01);
|
|
17734
17734
|
position: absolute;
|
|
17735
|
-
right: var(--wui-
|
|
17735
|
+
right: var(--wui-space-01);
|
|
17736
17736
|
z-index: 1;
|
|
17737
17737
|
|
|
17738
17738
|
svg {
|
|
@@ -18065,15 +18065,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
18065
18065
|
}
|
|
18066
18066
|
);
|
|
18067
18067
|
};
|
|
18068
|
-
var StyledThumbnailContainer = import_styled_components126.styled.div`
|
|
18069
|
-
container-type: size;
|
|
18070
|
-
aspect-ratio: ${({ $aspectRatio }) => getAspectRatioValue($aspectRatio)};
|
|
18071
|
-
width: ${({ $width }) => $width};
|
|
18072
|
-
display: flex;
|
|
18073
|
-
overflow: hidden;
|
|
18074
|
-
`;
|
|
18075
18068
|
var StyledThumbnail = import_styled_components126.styled.div`
|
|
18076
|
-
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
18077
18069
|
background-image: ${({ $backgroundUrl }) => (0, import_type_guards74.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
18078
18070
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
18079
18071
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -18081,19 +18073,22 @@ var StyledThumbnail = import_styled_components126.styled.div`
|
|
|
18081
18073
|
)};
|
|
18082
18074
|
background-position: center center;
|
|
18083
18075
|
background-size: cover;
|
|
18084
|
-
|
|
18076
|
+
aspect-ratio: ${({ $aspectRatio }) => getAspectRatioValue($aspectRatio)};
|
|
18085
18077
|
display: flex;
|
|
18086
|
-
width: 100%;
|
|
18087
18078
|
overflow: hidden;
|
|
18088
18079
|
position: relative;
|
|
18089
|
-
|
|
18090
|
-
|
|
18080
|
+
width: ${({ $width }) => $width};
|
|
18081
|
+
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
18091
18082
|
|
|
18092
|
-
|
|
18093
|
-
|
|
18083
|
+
&,
|
|
18084
|
+
img {
|
|
18085
|
+
border-radius: ${({ $aspectRatio }) => {
|
|
18086
|
+
if ($aspectRatio === "square") {
|
|
18087
|
+
return "8%";
|
|
18088
|
+
}
|
|
18089
|
+
return `calc(8% * (9 / 16)) / 8%`;
|
|
18090
|
+
}};
|
|
18094
18091
|
}
|
|
18095
|
-
|
|
18096
|
-
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
18097
18092
|
`;
|
|
18098
18093
|
var StoryboardRenderer = ({
|
|
18099
18094
|
storyboard,
|
|
@@ -18211,30 +18206,24 @@ var Thumbnail = (0, import_react100.forwardRef)(
|
|
|
18211
18206
|
} else {
|
|
18212
18207
|
thumbnailContent = null;
|
|
18213
18208
|
}
|
|
18214
|
-
return /* @__PURE__ */ (0, import_jsx_runtime327.
|
|
18215
|
-
|
|
18209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
|
|
18210
|
+
StyledThumbnail,
|
|
18216
18211
|
{
|
|
18217
18212
|
ref,
|
|
18213
|
+
...props,
|
|
18218
18214
|
$aspectRatio: aspectRatio,
|
|
18215
|
+
$backgroundUrl: backgroundUrl,
|
|
18216
|
+
$gradientBackground: gradientBackground,
|
|
18217
|
+
$isScrubbable: isScrubbable,
|
|
18219
18218
|
$width: width,
|
|
18220
|
-
|
|
18221
|
-
|
|
18222
|
-
|
|
18223
|
-
|
|
18224
|
-
|
|
18225
|
-
|
|
18226
|
-
|
|
18227
|
-
|
|
18228
|
-
onBlur: handleMouseOut,
|
|
18229
|
-
onMouseMove: handleMouseMove,
|
|
18230
|
-
onMouseOut: handleMouseOut,
|
|
18231
|
-
role: "presentation",
|
|
18232
|
-
children: [
|
|
18233
|
-
(0, import_type_guards74.isNotNil)(children) ? children : null,
|
|
18234
|
-
thumbnailContent
|
|
18235
|
-
]
|
|
18236
|
-
}
|
|
18237
|
-
)
|
|
18219
|
+
onBlur: handleMouseOut,
|
|
18220
|
+
onMouseMove: handleMouseMove,
|
|
18221
|
+
onMouseOut: handleMouseOut,
|
|
18222
|
+
role: "presentation",
|
|
18223
|
+
children: [
|
|
18224
|
+
(0, import_type_guards74.isNotNil)(children) ? children : null,
|
|
18225
|
+
thumbnailContent
|
|
18226
|
+
]
|
|
18238
18227
|
}
|
|
18239
18228
|
);
|
|
18240
18229
|
}
|
|
@@ -18249,55 +18238,72 @@ var import_jsx_runtime328 = (
|
|
|
18249
18238
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
18250
18239
|
require("react/jsx-runtime")
|
|
18251
18240
|
);
|
|
18252
|
-
var ThumbnailCollageContainer = import_styled_components127.styled.div`
|
|
18253
|
-
container-type: size;
|
|
18254
|
-
width: 100%;
|
|
18255
|
-
aspect-ratio: 16 / 9;
|
|
18256
|
-
display: flex;
|
|
18257
|
-
`;
|
|
18258
18241
|
var StyledThumbnailCollage = import_styled_components127.styled.div`
|
|
18259
18242
|
display: grid;
|
|
18260
18243
|
gap: var(--wui-space-01);
|
|
18261
18244
|
width: 100%;
|
|
18262
18245
|
grid-template-columns: 3fr 2fr;
|
|
18263
18246
|
grid-template-rows: 1fr 1fr;
|
|
18247
|
+
aspect-ratio: 16 / 9;
|
|
18264
18248
|
|
|
18265
18249
|
&:has(:nth-child(1)) {
|
|
18250
|
+
--wui-collage-thumbnail-first-border-radius: calc(8% * (9 / 16)) / 8%;
|
|
18251
|
+
|
|
18266
18252
|
grid-template-areas:
|
|
18267
18253
|
'a a'
|
|
18268
18254
|
'a a';
|
|
18269
18255
|
}
|
|
18270
18256
|
|
|
18271
18257
|
&:has(:nth-child(2)) {
|
|
18258
|
+
--wui-collage-thumbnail-first-border-radius: 7.5% / 8%;
|
|
18259
|
+
--wui-collage-thumbnail-second-border-radius: 11.5% / 8%;
|
|
18260
|
+
|
|
18272
18261
|
grid-template-areas:
|
|
18273
18262
|
'a b'
|
|
18274
18263
|
'a b';
|
|
18275
18264
|
}
|
|
18276
18265
|
|
|
18277
18266
|
&:has(:nth-child(3)) {
|
|
18267
|
+
--wui-collage-thumbnail-first-border-radius: 7.5% / 8%;
|
|
18268
|
+
--wui-collage-thumbnail-second-border-radius: 11.5% / 16%;
|
|
18269
|
+
--wui-collage-thumbnail-third-border-radius: 11.5% / 16%;
|
|
18270
|
+
|
|
18278
18271
|
grid-template-areas:
|
|
18279
18272
|
'a b'
|
|
18280
18273
|
'a c';
|
|
18281
18274
|
}
|
|
18282
18275
|
|
|
18283
18276
|
> :nth-child(1) {
|
|
18277
|
+
--wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-first-border-radius);
|
|
18278
|
+
|
|
18284
18279
|
grid-area: a;
|
|
18285
18280
|
}
|
|
18286
18281
|
|
|
18287
18282
|
> :nth-child(2) {
|
|
18283
|
+
--wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-second-border-radius);
|
|
18284
|
+
|
|
18288
18285
|
grid-area: b;
|
|
18289
18286
|
}
|
|
18290
18287
|
|
|
18291
18288
|
> :nth-child(3) {
|
|
18289
|
+
--wui-collage-thumbnail-border-radius: var(--wui-collage-thumbnail-third-border-radius);
|
|
18290
|
+
|
|
18292
18291
|
grid-area: c;
|
|
18293
18292
|
}
|
|
18294
18293
|
|
|
18295
|
-
|
|
18296
|
-
//allows for the border radius to be based off the collage's dimensions
|
|
18297
|
-
container-type: unset;
|
|
18294
|
+
> * {
|
|
18298
18295
|
aspect-ratio: unset;
|
|
18299
18296
|
height: 100%;
|
|
18300
18297
|
width: 100%;
|
|
18298
|
+
border-radius: var(--wui-collage-thumbnail-border-radius);
|
|
18299
|
+
|
|
18300
|
+
img {
|
|
18301
|
+
border-radius: var(--wui-collage-thumbnail-border-radius);
|
|
18302
|
+
}
|
|
18303
|
+
|
|
18304
|
+
> :not(img) {
|
|
18305
|
+
display: none;
|
|
18306
|
+
}
|
|
18301
18307
|
}
|
|
18302
18308
|
`;
|
|
18303
18309
|
var ThumbnailCollage = ({
|
|
@@ -18322,7 +18328,7 @@ var ThumbnailCollage = ({
|
|
|
18322
18328
|
"fallback"
|
|
18323
18329
|
)
|
|
18324
18330
|
];
|
|
18325
|
-
return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
|
|
18331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
|
|
18326
18332
|
StyledThumbnailCollage,
|
|
18327
18333
|
{
|
|
18328
18334
|
$gradientBackground: gradientBackground,
|
|
@@ -18330,7 +18336,7 @@ var ThumbnailCollage = ({
|
|
|
18330
18336
|
...props,
|
|
18331
18337
|
children: thumbnails
|
|
18332
18338
|
}
|
|
18333
|
-
)
|
|
18339
|
+
);
|
|
18334
18340
|
};
|
|
18335
18341
|
|
|
18336
18342
|
// src/components/WistiaLogo/WistiaLogo.tsx
|