@wistia/ui 0.18.0-beta.782f3b36.e196b15 → 0.18.0-beta.8cfd0d52.ccf3429

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 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.8cfd0d52.ccf3429
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 = "stretch",
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
- --wui-input-line-height: var(--wui-typography-body-3-line-height);
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(3)};
11814
+ }
11795
11815
  }
11796
11816
 
11797
11817
  [type='search'] {