@wistia/ui 0.18.0-beta.782f3b36.e196b15 → 0.18.0-beta.7c09bb1c.bb65223
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 +32 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +95 -102
- package/dist/index.d.ts +95 -102
- package/dist/index.mjs +32 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
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.7c09bb1c.bb65223
|
|
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;
|
|
@@ -8600,7 +8595,7 @@ var DEFAULT_ELEMENT = "div";
|
|
|
8600
8595
|
var BoxComponent = (0, import_react27.forwardRef)(
|
|
8601
8596
|
({
|
|
8602
8597
|
alignContent = "stretch",
|
|
8603
|
-
alignItems = "
|
|
8598
|
+
alignItems = "flex-start",
|
|
8604
8599
|
alignSelf,
|
|
8605
8600
|
basis,
|
|
8606
8601
|
children,
|
|
@@ -9481,7 +9476,6 @@ var prominenceMap = {
|
|
|
9481
9476
|
};
|
|
9482
9477
|
var Card = ({
|
|
9483
9478
|
children,
|
|
9484
|
-
alignItems = "flex-start",
|
|
9485
9479
|
border = false,
|
|
9486
9480
|
borderRadius = "border-radius-04",
|
|
9487
9481
|
colorScheme = "inherit",
|
|
@@ -9495,7 +9489,6 @@ var Card = ({
|
|
|
9495
9489
|
}) => /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
9496
9490
|
StyledCard,
|
|
9497
9491
|
{
|
|
9498
|
-
$alignItems: alignItems,
|
|
9499
9492
|
$backgroundColor: prominenceMap[prominence].backgroundColor,
|
|
9500
9493
|
$borderColor: border ? prominenceMap[prominence].borderColor : "transparent",
|
|
9501
9494
|
$borderRadius: borderRadius,
|
|
@@ -11776,6 +11769,7 @@ var inputStyles = import_styled_components62.css`
|
|
|
11776
11769
|
}
|
|
11777
11770
|
}
|
|
11778
11771
|
`;
|
|
11772
|
+
var calculateTextareaHeight = (rows = 1) => `calc((var(--wui-input-line-height) * ${rows}) + (var(--wui-input-vertical-padding) * 2));`;
|
|
11779
11773
|
var StyledInputContainer = import_styled_components62.styled.div`
|
|
11780
11774
|
display: inline-flex;
|
|
11781
11775
|
position: relative;
|
|
@@ -11789,9 +11783,35 @@ var StyledInputContainer = import_styled_components62.styled.div`
|
|
|
11789
11783
|
}
|
|
11790
11784
|
|
|
11791
11785
|
textarea {
|
|
11786
|
+
--wui-input-line-height: var(--wui-typography-body-3-line-height);
|
|
11787
|
+
|
|
11792
11788
|
border-radius: var(--wui-input-multiline-border-radius);
|
|
11793
11789
|
|
|
11794
|
-
|
|
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
|
+
}
|
|
11795
11815
|
}
|
|
11796
11816
|
|
|
11797
11817
|
[type='search'] {
|
|
@@ -14190,7 +14210,8 @@ var import_react63 = require("react");
|
|
|
14190
14210
|
var import_jsx_runtime276 = require("react/jsx-runtime");
|
|
14191
14211
|
var StyledInput = (0, import_styled_components81.styled)(Input)`
|
|
14192
14212
|
&:not([rows]) {
|
|
14193
|
-
|
|
14213
|
+
height: unset !important;
|
|
14214
|
+
min-height: unset !important;
|
|
14194
14215
|
}
|
|
14195
14216
|
|
|
14196
14217
|
&& {
|