@wistia/ui 0.18.0-beta.af6ce7a5.9372ce9 → 0.18.0-beta.c3ba0640.3c7bbc3
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 +36 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +36 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.0-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.0-beta.c3ba0640.3c7bbc3
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7724,7 +7724,6 @@ var StyledButton = styled5.button`
|
|
|
7724
7724
|
${({ $variant }) => buttonVariantsStyles[$variant]}
|
|
7725
7725
|
${({ $unstyled }) => !$unstyled && buttonBaseStyles}
|
|
7726
7726
|
${({ $fullWidth }) => $fullWidth && "width: 100%;"}
|
|
7727
|
-
align-self: flex-start;
|
|
7728
7727
|
text-align: center;
|
|
7729
7728
|
`;
|
|
7730
7729
|
var StyledButtonContent = styled5.div`
|
|
@@ -8421,7 +8420,7 @@ var DEFAULT_ELEMENT = "div";
|
|
|
8421
8420
|
var BoxComponent = forwardRef5(
|
|
8422
8421
|
({
|
|
8423
8422
|
alignContent = "stretch",
|
|
8424
|
-
alignItems = "
|
|
8423
|
+
alignItems = "flex-start",
|
|
8425
8424
|
alignSelf,
|
|
8426
8425
|
basis,
|
|
8427
8426
|
children,
|
|
@@ -8940,10 +8939,6 @@ var ButtonGroupComponent = styled14.div`
|
|
|
8940
8939
|
justify-content: ${({ $align }) => getAlignment($align)};
|
|
8941
8940
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
8942
8941
|
|
|
8943
|
-
${StyledButton} {
|
|
8944
|
-
align-self: unset;
|
|
8945
|
-
}
|
|
8946
|
-
|
|
8947
8942
|
${mq.smAndUp} {
|
|
8948
8943
|
flex-direction: row;
|
|
8949
8944
|
}
|
|
@@ -17547,7 +17542,7 @@ var StyledThumbnailBadge = styled104.div`
|
|
|
17547
17542
|
align-items: center;
|
|
17548
17543
|
background-color: rgb(0 0 0 / 50%);
|
|
17549
17544
|
border-radius: var(--wui-border-radius-01);
|
|
17550
|
-
bottom: var(--wui-
|
|
17545
|
+
bottom: var(--wui-thumbnail-badge-offset);
|
|
17551
17546
|
color: var(--wui-color-text-on-fill);
|
|
17552
17547
|
display: flex;
|
|
17553
17548
|
font-size: var(--wui-typography-body-4-size);
|
|
@@ -17555,7 +17550,7 @@ var StyledThumbnailBadge = styled104.div`
|
|
|
17555
17550
|
gap: var(--wui-space-01);
|
|
17556
17551
|
padding: 0 var(--wui-space-01);
|
|
17557
17552
|
position: absolute;
|
|
17558
|
-
right: var(--wui-
|
|
17553
|
+
right: var(--wui-thumbnail-badge-offset);
|
|
17559
17554
|
z-index: 1;
|
|
17560
17555
|
|
|
17561
17556
|
svg {
|
|
@@ -17880,7 +17875,15 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
17880
17875
|
}
|
|
17881
17876
|
);
|
|
17882
17877
|
};
|
|
17878
|
+
var StyledThumbnailContainer = styled106.div`
|
|
17879
|
+
container-type: inline-size;
|
|
17880
|
+
aspect-ratio: 16 / 9;
|
|
17881
|
+
width: ${({ $width }) => $width};
|
|
17882
|
+
display: flex;
|
|
17883
|
+
`;
|
|
17883
17884
|
var StyledThumbnail = styled106.div`
|
|
17885
|
+
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
17886
|
+
|
|
17884
17887
|
background-image: ${({ $backgroundUrl }) => isNotNil43($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
17885
17888
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
17886
17889
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -17888,16 +17891,35 @@ var StyledThumbnail = styled106.div`
|
|
|
17888
17891
|
)};
|
|
17889
17892
|
background-position: center center;
|
|
17890
17893
|
background-size: cover;
|
|
17894
|
+
width: 100%;
|
|
17891
17895
|
aspect-ratio: 16 / 9;
|
|
17892
|
-
display: flex;
|
|
17893
17896
|
overflow: hidden;
|
|
17894
17897
|
position: relative;
|
|
17895
|
-
|
|
17898
|
+
display: flex;
|
|
17899
|
+
|
|
17896
17900
|
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
17897
17901
|
|
|
17898
17902
|
&,
|
|
17899
17903
|
img {
|
|
17900
|
-
border-radius:
|
|
17904
|
+
border-radius: var(--wui-border-radius-02);
|
|
17905
|
+
}
|
|
17906
|
+
|
|
17907
|
+
@container (min-width: 200px) {
|
|
17908
|
+
&,
|
|
17909
|
+
img {
|
|
17910
|
+
border-radius: var(--wui-border-radius-03);
|
|
17911
|
+
}
|
|
17912
|
+
|
|
17913
|
+
--wui-thumbnail-badge-offset: var(--wui-space-02);
|
|
17914
|
+
}
|
|
17915
|
+
|
|
17916
|
+
@container (min-width: 400px) {
|
|
17917
|
+
&,
|
|
17918
|
+
img {
|
|
17919
|
+
border-radius: var(--wui-border-radius-05);
|
|
17920
|
+
}
|
|
17921
|
+
|
|
17922
|
+
--wui-thumbnail-badge-offset: var(--wui-space-03);
|
|
17901
17923
|
}
|
|
17902
17924
|
`;
|
|
17903
17925
|
var StoryboardRenderer = ({
|
|
@@ -18021,7 +18043,7 @@ var Thumbnail = forwardRef37(
|
|
|
18021
18043
|
} else {
|
|
18022
18044
|
thumbnailContent = null;
|
|
18023
18045
|
}
|
|
18024
|
-
return /* @__PURE__ */ jsxs69(
|
|
18046
|
+
return /* @__PURE__ */ jsx325(StyledThumbnailContainer, { $width: width, children: /* @__PURE__ */ jsxs69(
|
|
18025
18047
|
StyledThumbnail,
|
|
18026
18048
|
{
|
|
18027
18049
|
ref,
|
|
@@ -18039,7 +18061,7 @@ var Thumbnail = forwardRef37(
|
|
|
18039
18061
|
thumbnailContent
|
|
18040
18062
|
]
|
|
18041
18063
|
}
|
|
18042
|
-
);
|
|
18064
|
+
) });
|
|
18043
18065
|
}
|
|
18044
18066
|
);
|
|
18045
18067
|
Thumbnail.displayName = "Thumbnail_UI";
|