@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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.18.0-beta.782f3b36.e196b15
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
  *
@@ -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;
@@ -8420,7 +8415,7 @@ var DEFAULT_ELEMENT = "div";
8420
8415
  var BoxComponent = forwardRef5(
8421
8416
  ({
8422
8417
  alignContent = "stretch",
8423
- alignItems = "stretch",
8418
+ alignItems = "flex-start",
8424
8419
  alignSelf,
8425
8420
  basis,
8426
8421
  children,
@@ -9301,7 +9296,6 @@ var prominenceMap = {
9301
9296
  };
9302
9297
  var Card = ({
9303
9298
  children,
9304
- alignItems = "flex-start",
9305
9299
  border = false,
9306
9300
  borderRadius = "border-radius-04",
9307
9301
  colorScheme = "inherit",
@@ -9315,7 +9309,6 @@ var Card = ({
9315
9309
  }) => /* @__PURE__ */ jsx214(
9316
9310
  StyledCard,
9317
9311
  {
9318
- $alignItems: alignItems,
9319
9312
  $backgroundColor: prominenceMap[prominence].backgroundColor,
9320
9313
  $borderColor: border ? prominenceMap[prominence].borderColor : "transparent",
9321
9314
  $borderRadius: borderRadius,
@@ -11602,6 +11595,7 @@ var inputStyles = css30`
11602
11595
  }
11603
11596
  }
11604
11597
  `;
11598
+ var calculateTextareaHeight = (rows = 1) => `calc((var(--wui-input-line-height) * ${rows}) + (var(--wui-input-vertical-padding) * 2));`;
11605
11599
  var StyledInputContainer = styled44.div`
11606
11600
  display: inline-flex;
11607
11601
  position: relative;
@@ -11615,9 +11609,35 @@ var StyledInputContainer = styled44.div`
11615
11609
  }
11616
11610
 
11617
11611
  textarea {
11612
+ --wui-input-line-height: var(--wui-typography-body-3-line-height);
11613
+
11618
11614
  border-radius: var(--wui-input-multiline-border-radius);
11619
11615
 
11620
- --wui-input-line-height: var(--wui-typography-body-3-line-height);
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
+ }
11621
11641
  }
11622
11642
 
11623
11643
  [type='search'] {
@@ -14040,7 +14060,8 @@ import { useState as useState18, useRef as useRef16 } from "react";
14040
14060
  import { Fragment as Fragment8, jsx as jsx276, jsxs as jsxs42 } from "react/jsx-runtime";
14041
14061
  var StyledInput = styled62(Input)`
14042
14062
  &:not([rows]) {
14043
- min-height: unset;
14063
+ height: unset !important;
14064
+ min-height: unset !important;
14044
14065
  }
14045
14066
 
14046
14067
  && {