@wistia/ui 0.18.0-beta.8cfd0d52.ccf3429 → 0.18.0-beta.90369b5e.f96f73a

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.8cfd0d52.ccf3429
3
+ * @license @wistia/ui v0.18.0-beta.90369b5e.f96f73a
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -11775,10 +11775,12 @@ var StyledInputContainer = import_styled_components62.styled.div`
11775
11775
  position: relative;
11776
11776
  ${inputStyles};
11777
11777
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11778
+ height: ${({ $fullHeight }) => $fullHeight ? "100%" : "auto"};
11778
11779
 
11779
11780
  input,
11780
11781
  textarea {
11781
11782
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
11783
+ height: ${({ $fullHeight }) => $fullHeight ? "100%" : "auto"};
11782
11784
  ${({ $monospace }) => $monospace && "font-family: var(--wui-typography-family-mono);"}
11783
11785
  }
11784
11786
 
@@ -11787,31 +11789,46 @@ var StyledInputContainer = import_styled_components62.styled.div`
11787
11789
 
11788
11790
  border-radius: var(--wui-input-multiline-border-radius);
11789
11791
 
11790
- /* height based on rows attribute (1-5) */
11791
- &[rows='1'] {
11792
- height: ${calculateTextareaHeight(1)};
11793
- }
11792
+ /* override height calculations when fullHeight is enabled */
11793
+ ${({ $fullHeight }) => $fullHeight && `
11794
+ &[rows='1'],
11795
+ &[rows='2'],
11796
+ &[rows='3'],
11797
+ &[rows='4'],
11798
+ &[rows='5'],
11799
+ &:not([rows]) {
11800
+ height: 100%;
11801
+ resize: none;
11802
+ }
11803
+ `}
11794
11804
 
11795
- &[rows='2'] {
11796
- height: ${calculateTextareaHeight(2)};
11797
- }
11805
+ /* height based on rows attribute (1-5) - only when fullHeight is not enabled */
11806
+ ${({ $fullHeight }) => !$fullHeight && `
11807
+ &[rows='1'] {
11808
+ height: ${calculateTextareaHeight(1)};
11809
+ }
11798
11810
 
11799
- &[rows='3'] {
11800
- height: ${calculateTextareaHeight(3)};
11801
- }
11811
+ &[rows='2'] {
11812
+ height: ${calculateTextareaHeight(2)};
11813
+ }
11802
11814
 
11803
- &[rows='4'] {
11804
- height: ${calculateTextareaHeight(4)};
11805
- }
11815
+ &[rows='3'] {
11816
+ height: ${calculateTextareaHeight(3)};
11817
+ }
11806
11818
 
11807
- &[rows='5'] {
11808
- height: ${calculateTextareaHeight(5)};
11809
- }
11819
+ &[rows='4'] {
11820
+ height: ${calculateTextareaHeight(4)};
11821
+ }
11810
11822
 
11811
- /* make sure textareas without a rows attribute are not tiny */
11812
- &:not([rows]) {
11813
- height: ${calculateTextareaHeight(3)};
11814
- }
11823
+ &[rows='5'] {
11824
+ height: ${calculateTextareaHeight(5)};
11825
+ }
11826
+
11827
+ /* make sure textareas without a rows attribute are not tiny */
11828
+ &:not([rows]) {
11829
+ height: ${calculateTextareaHeight(5)};
11830
+ }
11831
+ `}
11815
11832
  }
11816
11833
 
11817
11834
  [type='search'] {
@@ -11866,6 +11883,7 @@ var StyledInputContainer = import_styled_components62.styled.div`
11866
11883
  var Input = (0, import_react47.forwardRef)(
11867
11884
  ({
11868
11885
  fullWidth = true,
11886
+ fullHeight = false,
11869
11887
  monospace = false,
11870
11888
  type = "text",
11871
11889
  autoSelect = false,
@@ -11905,6 +11923,7 @@ var Input = (0, import_react47.forwardRef)(
11905
11923
  return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
11906
11924
  StyledInputContainer,
11907
11925
  {
11926
+ $fullHeight: fullHeight,
11908
11927
  $fullWidth: fullWidth,
11909
11928
  $monospace: monospace,
11910
11929
  "data-wui-input-container": true,
@@ -14213,6 +14232,10 @@ var StyledInput = (0, import_styled_components81.styled)(Input)`
14213
14232
  min-height: unset;
14214
14233
  }
14215
14234
 
14235
+ &:focus {
14236
+ height: ${({ $height }) => `${$height}px !important`};
14237
+ }
14238
+
14216
14239
  && {
14217
14240
  ${({ $variant }) => variantStyleMap[$variant]}
14218
14241
  /* The input font styles (edit mode) needs the same font styles as Heading */