@wistia/ui 0.18.0-beta.80cfc750.f949e60 → 0.18.0-beta.852523a6.1e31df4
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 +33 -7
- 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 +33 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
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.852523a6.1e31df4
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -307,11 +307,6 @@ var globalStyleAdjustmentsCss = import_styled_components.css`
|
|
|
307
307
|
font-size: inherit;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
/* Make sure textareas without a rows attribute are not tiny */
|
|
311
|
-
textarea:not([rows]) {
|
|
312
|
-
min-height: 10em;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
310
|
/* Anything that has been anchored to should have extra scroll margin */
|
|
316
311
|
&:target {
|
|
317
312
|
scroll-margin-block: 5ex;
|
|
@@ -11774,6 +11769,7 @@ var inputStyles = import_styled_components62.css`
|
|
|
11774
11769
|
}
|
|
11775
11770
|
}
|
|
11776
11771
|
`;
|
|
11772
|
+
var calculateTextareaHeight = (rows = 1) => `calc((var(--wui-input-line-height) * ${rows}) + (var(--wui-input-vertical-padding) * 2));`;
|
|
11777
11773
|
var StyledInputContainer = import_styled_components62.styled.div`
|
|
11778
11774
|
display: inline-flex;
|
|
11779
11775
|
position: relative;
|
|
@@ -11787,9 +11783,35 @@ var StyledInputContainer = import_styled_components62.styled.div`
|
|
|
11787
11783
|
}
|
|
11788
11784
|
|
|
11789
11785
|
textarea {
|
|
11786
|
+
--wui-input-line-height: var(--wui-typography-body-3-line-height);
|
|
11787
|
+
|
|
11790
11788
|
border-radius: var(--wui-input-multiline-border-radius);
|
|
11791
11789
|
|
|
11792
|
-
|
|
11790
|
+
/* height based on rows attribute (1-5) */
|
|
11791
|
+
&[rows='1'] {
|
|
11792
|
+
height: ${calculateTextareaHeight(1)};
|
|
11793
|
+
}
|
|
11794
|
+
|
|
11795
|
+
&[rows='2'] {
|
|
11796
|
+
height: ${calculateTextareaHeight(2)};
|
|
11797
|
+
}
|
|
11798
|
+
|
|
11799
|
+
&[rows='3'] {
|
|
11800
|
+
height: ${calculateTextareaHeight(3)};
|
|
11801
|
+
}
|
|
11802
|
+
|
|
11803
|
+
&[rows='4'] {
|
|
11804
|
+
height: ${calculateTextareaHeight(4)};
|
|
11805
|
+
}
|
|
11806
|
+
|
|
11807
|
+
&[rows='5'] {
|
|
11808
|
+
height: ${calculateTextareaHeight(5)};
|
|
11809
|
+
}
|
|
11810
|
+
|
|
11811
|
+
/* make sure textareas without a rows attribute are not tiny */
|
|
11812
|
+
&:not([rows]) {
|
|
11813
|
+
height: ${calculateTextareaHeight(5)};
|
|
11814
|
+
}
|
|
11793
11815
|
}
|
|
11794
11816
|
|
|
11795
11817
|
[type='search'] {
|
|
@@ -14191,6 +14213,10 @@ var StyledInput = (0, import_styled_components81.styled)(Input)`
|
|
|
14191
14213
|
min-height: unset;
|
|
14192
14214
|
}
|
|
14193
14215
|
|
|
14216
|
+
&:focus {
|
|
14217
|
+
height: ${({ $height }) => `${$height}px !important`};
|
|
14218
|
+
}
|
|
14219
|
+
|
|
14194
14220
|
&& {
|
|
14195
14221
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
14196
14222
|
/* The input font styles (edit mode) needs the same font styles as Heading */
|