@wistia/ui 0.18.0-beta.c3ba0640.3c7bbc3 → 0.18.0-beta.d5accfdd.0ddbbc0
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 +42 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +94 -94
- package/dist/index.d.ts +94 -94
- package/dist/index.mjs +42 -43
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
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.d5accfdd.0ddbbc0
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -118,11 +118,6 @@ var globalStyleAdjustmentsCss = css`
|
|
|
118
118
|
font-size: inherit;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
/* Make sure textareas without a rows attribute are not tiny */
|
|
122
|
-
textarea:not([rows]) {
|
|
123
|
-
min-height: 10em;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
121
|
/* Anything that has been anchored to should have extra scroll margin */
|
|
127
122
|
&:target {
|
|
128
123
|
scroll-margin-block: 5ex;
|
|
@@ -11600,6 +11595,7 @@ var inputStyles = css30`
|
|
|
11600
11595
|
}
|
|
11601
11596
|
}
|
|
11602
11597
|
`;
|
|
11598
|
+
var calculateTextareaHeight = (rows = 1) => `calc((var(--wui-input-line-height) * ${rows}) + (var(--wui-input-vertical-padding) * 2));`;
|
|
11603
11599
|
var StyledInputContainer = styled44.div`
|
|
11604
11600
|
display: inline-flex;
|
|
11605
11601
|
position: relative;
|
|
@@ -11613,9 +11609,35 @@ var StyledInputContainer = styled44.div`
|
|
|
11613
11609
|
}
|
|
11614
11610
|
|
|
11615
11611
|
textarea {
|
|
11612
|
+
--wui-input-line-height: var(--wui-typography-body-3-line-height);
|
|
11613
|
+
|
|
11616
11614
|
border-radius: var(--wui-input-multiline-border-radius);
|
|
11617
11615
|
|
|
11618
|
-
|
|
11616
|
+
/* height based on rows attribute (1-5) */
|
|
11617
|
+
&[rows='1'] {
|
|
11618
|
+
height: ${calculateTextareaHeight(1)};
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11621
|
+
&[rows='2'] {
|
|
11622
|
+
height: ${calculateTextareaHeight(2)};
|
|
11623
|
+
}
|
|
11624
|
+
|
|
11625
|
+
&[rows='3'] {
|
|
11626
|
+
height: ${calculateTextareaHeight(3)};
|
|
11627
|
+
}
|
|
11628
|
+
|
|
11629
|
+
&[rows='4'] {
|
|
11630
|
+
height: ${calculateTextareaHeight(4)};
|
|
11631
|
+
}
|
|
11632
|
+
|
|
11633
|
+
&[rows='5'] {
|
|
11634
|
+
height: ${calculateTextareaHeight(5)};
|
|
11635
|
+
}
|
|
11636
|
+
|
|
11637
|
+
/* make sure textareas without a rows attribute are not tiny */
|
|
11638
|
+
&:not([rows]) {
|
|
11639
|
+
height: ${calculateTextareaHeight(5)};
|
|
11640
|
+
}
|
|
11619
11641
|
}
|
|
11620
11642
|
|
|
11621
11643
|
[type='search'] {
|
|
@@ -14041,6 +14063,10 @@ var StyledInput = styled62(Input)`
|
|
|
14041
14063
|
min-height: unset;
|
|
14042
14064
|
}
|
|
14043
14065
|
|
|
14066
|
+
&:focus {
|
|
14067
|
+
height: ${({ $height }) => `${$height}px !important`};
|
|
14068
|
+
}
|
|
14069
|
+
|
|
14044
14070
|
&& {
|
|
14045
14071
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
14046
14072
|
/* The input font styles (edit mode) needs the same font styles as Heading */
|
|
@@ -14840,6 +14866,7 @@ var FormField = ({
|
|
|
14840
14866
|
id: computedId,
|
|
14841
14867
|
label: isIntegratedLabel ? label : void 0,
|
|
14842
14868
|
"aria-describedby": ariaDescribedby,
|
|
14869
|
+
"aria-invalid": isNotNil28(computedError),
|
|
14843
14870
|
...props
|
|
14844
14871
|
};
|
|
14845
14872
|
if (isUndefined4(value) && isNotUndefined12(defaultValue)) {
|
|
@@ -14861,8 +14888,7 @@ var FormField = ({
|
|
|
14861
14888
|
childProps = {
|
|
14862
14889
|
...childProps,
|
|
14863
14890
|
name: computedName,
|
|
14864
|
-
onChange: handleChange
|
|
14865
|
-
"aria-invalid": isNotNil28(error)
|
|
14891
|
+
onChange: handleChange
|
|
14866
14892
|
};
|
|
14867
14893
|
}
|
|
14868
14894
|
Children10.only(children);
|
|
@@ -17542,7 +17568,7 @@ var StyledThumbnailBadge = styled104.div`
|
|
|
17542
17568
|
align-items: center;
|
|
17543
17569
|
background-color: rgb(0 0 0 / 50%);
|
|
17544
17570
|
border-radius: var(--wui-border-radius-01);
|
|
17545
|
-
bottom: var(--wui-
|
|
17571
|
+
bottom: var(--wui-space-01);
|
|
17546
17572
|
color: var(--wui-color-text-on-fill);
|
|
17547
17573
|
display: flex;
|
|
17548
17574
|
font-size: var(--wui-typography-body-4-size);
|
|
@@ -17550,7 +17576,7 @@ var StyledThumbnailBadge = styled104.div`
|
|
|
17550
17576
|
gap: var(--wui-space-01);
|
|
17551
17577
|
padding: 0 var(--wui-space-01);
|
|
17552
17578
|
position: absolute;
|
|
17553
|
-
right: var(--wui-
|
|
17579
|
+
right: var(--wui-space-01);
|
|
17554
17580
|
z-index: 1;
|
|
17555
17581
|
|
|
17556
17582
|
svg {
|
|
@@ -17875,15 +17901,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
17875
17901
|
}
|
|
17876
17902
|
);
|
|
17877
17903
|
};
|
|
17878
|
-
var StyledThumbnailContainer = styled106.div`
|
|
17879
|
-
container-type: inline-size;
|
|
17880
|
-
aspect-ratio: 16 / 9;
|
|
17881
|
-
width: ${({ $width }) => $width};
|
|
17882
|
-
display: flex;
|
|
17883
|
-
`;
|
|
17884
17904
|
var StyledThumbnail = styled106.div`
|
|
17885
|
-
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
17886
|
-
|
|
17887
17905
|
background-image: ${({ $backgroundUrl }) => isNotNil43($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
17888
17906
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
17889
17907
|
// if we don't have $backgroundUrl show a gradient
|
|
@@ -17891,35 +17909,16 @@ var StyledThumbnail = styled106.div`
|
|
|
17891
17909
|
)};
|
|
17892
17910
|
background-position: center center;
|
|
17893
17911
|
background-size: cover;
|
|
17894
|
-
width: 100%;
|
|
17895
17912
|
aspect-ratio: 16 / 9;
|
|
17913
|
+
display: flex;
|
|
17896
17914
|
overflow: hidden;
|
|
17897
17915
|
position: relative;
|
|
17898
|
-
|
|
17899
|
-
|
|
17916
|
+
width: ${({ $width }) => $width};
|
|
17900
17917
|
${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
|
|
17901
17918
|
|
|
17902
17919
|
&,
|
|
17903
17920
|
img {
|
|
17904
|
-
border-radius:
|
|
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);
|
|
17921
|
+
border-radius: calc(8% * (9 / 16)) / 8%;
|
|
17923
17922
|
}
|
|
17924
17923
|
`;
|
|
17925
17924
|
var StoryboardRenderer = ({
|
|
@@ -18043,7 +18042,7 @@ var Thumbnail = forwardRef37(
|
|
|
18043
18042
|
} else {
|
|
18044
18043
|
thumbnailContent = null;
|
|
18045
18044
|
}
|
|
18046
|
-
return /* @__PURE__ */
|
|
18045
|
+
return /* @__PURE__ */ jsxs69(
|
|
18047
18046
|
StyledThumbnail,
|
|
18048
18047
|
{
|
|
18049
18048
|
ref,
|
|
@@ -18061,7 +18060,7 @@ var Thumbnail = forwardRef37(
|
|
|
18061
18060
|
thumbnailContent
|
|
18062
18061
|
]
|
|
18063
18062
|
}
|
|
18064
|
-
)
|
|
18063
|
+
);
|
|
18065
18064
|
}
|
|
18066
18065
|
);
|
|
18067
18066
|
Thumbnail.displayName = "Thumbnail_UI";
|