@wistia/ui 0.18.0-beta.9dd31b7e.fa98d59 → 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 +37 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +37 -10
- 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
|
*
|
|
@@ -14840,7 +14840,6 @@ var FormField = ({
|
|
|
14840
14840
|
id: computedId,
|
|
14841
14841
|
label: isIntegratedLabel ? label : void 0,
|
|
14842
14842
|
"aria-describedby": ariaDescribedby,
|
|
14843
|
-
"aria-invalid": isNotNil28(computedError),
|
|
14844
14843
|
...props
|
|
14845
14844
|
};
|
|
14846
14845
|
if (isUndefined4(value) && isNotUndefined12(defaultValue)) {
|
|
@@ -14862,7 +14861,8 @@ var FormField = ({
|
|
|
14862
14861
|
childProps = {
|
|
14863
14862
|
...childProps,
|
|
14864
14863
|
name: computedName,
|
|
14865
|
-
onChange: handleChange
|
|
14864
|
+
onChange: handleChange,
|
|
14865
|
+
"aria-invalid": isNotNil28(error)
|
|
14866
14866
|
};
|
|
14867
14867
|
}
|
|
14868
14868
|
Children10.only(children);
|
|
@@ -17542,7 +17542,7 @@ var StyledThumbnailBadge = styled104.div`
|
|
|
17542
17542
|
align-items: center;
|
|
17543
17543
|
background-color: rgb(0 0 0 / 50%);
|
|
17544
17544
|
border-radius: var(--wui-border-radius-01);
|
|
17545
|
-
bottom: var(--wui-
|
|
17545
|
+
bottom: var(--wui-thumbnail-badge-offset);
|
|
17546
17546
|
color: var(--wui-color-text-on-fill);
|
|
17547
17547
|
display: flex;
|
|
17548
17548
|
font-size: var(--wui-typography-body-4-size);
|
|
@@ -17550,7 +17550,7 @@ var StyledThumbnailBadge = styled104.div`
|
|
|
17550
17550
|
gap: var(--wui-space-01);
|
|
17551
17551
|
padding: 0 var(--wui-space-01);
|
|
17552
17552
|
position: absolute;
|
|
17553
|
-
right: var(--wui-
|
|
17553
|
+
right: var(--wui-thumbnail-badge-offset);
|
|
17554
17554
|
z-index: 1;
|
|
17555
17555
|
|
|
17556
17556
|
svg {
|
|
@@ -17875,7 +17875,15 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
17875
17875
|
}
|
|
17876
17876
|
);
|
|
17877
17877
|
};
|
|
17878
|
+
var StyledThumbnailContainer = styled106.div`
|
|
17879
|
+
container-type: inline-size;
|
|
17880
|
+
aspect-ratio: 16 / 9;
|
|
17881
|
+
width: ${({ $width }) => $width};
|
|
17882
|
+
display: flex;
|
|
17883
|
+
`;
|
|
17878
17884
|
var StyledThumbnail = styled106.div`
|
|
17885
|
+
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
17886
|
+
|
|
17879
17887
|
background-image: ${({ $backgroundUrl }) => isNotNil43($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
17880
17888
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
17881
17889
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -17883,16 +17891,35 @@ var StyledThumbnail = styled106.div`
|
|
|
17883
17891
|
)};
|
|
17884
17892
|
background-position: center center;
|
|
17885
17893
|
background-size: cover;
|
|
17894
|
+
width: 100%;
|
|
17886
17895
|
aspect-ratio: 16 / 9;
|
|
17887
|
-
display: flex;
|
|
17888
17896
|
overflow: hidden;
|
|
17889
17897
|
position: relative;
|
|
17890
|
-
|
|
17898
|
+
display: flex;
|
|
17899
|
+
|
|
17891
17900
|
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
17892
17901
|
|
|
17893
17902
|
&,
|
|
17894
17903
|
img {
|
|
17895
|
-
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);
|
|
17896
17923
|
}
|
|
17897
17924
|
`;
|
|
17898
17925
|
var StoryboardRenderer = ({
|
|
@@ -18016,7 +18043,7 @@ var Thumbnail = forwardRef37(
|
|
|
18016
18043
|
} else {
|
|
18017
18044
|
thumbnailContent = null;
|
|
18018
18045
|
}
|
|
18019
|
-
return /* @__PURE__ */ jsxs69(
|
|
18046
|
+
return /* @__PURE__ */ jsx325(StyledThumbnailContainer, { $width: width, children: /* @__PURE__ */ jsxs69(
|
|
18020
18047
|
StyledThumbnail,
|
|
18021
18048
|
{
|
|
18022
18049
|
ref,
|
|
@@ -18034,7 +18061,7 @@ var Thumbnail = forwardRef37(
|
|
|
18034
18061
|
thumbnailContent
|
|
18035
18062
|
]
|
|
18036
18063
|
}
|
|
18037
|
-
);
|
|
18064
|
+
) });
|
|
18038
18065
|
}
|
|
18039
18066
|
);
|
|
18040
18067
|
Thumbnail.displayName = "Thumbnail_UI";
|