@wistia/ui 0.18.0-beta.46b86a85.538143d → 0.18.0-beta.487a02f2.5478196

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.d.mts CHANGED
@@ -673,12 +673,19 @@ type BannerImageProps = ComponentPropsWithoutRef<'div'> & {
673
673
  * Alternative text description of the image for accessibility
674
674
  */
675
675
  alt?: string;
676
+ /**
677
+ * The aspect ratio that the image should _try_ to maintain.
678
+ */
679
+ aspectRatio?: 'square' | 'wide' | {
680
+ height: number;
681
+ width: number;
682
+ };
676
683
  /**
677
684
  * Position of the image within the banner layout. Only applies in horizontal orientation.
678
685
  */
679
686
  alignment?: 'left' | 'right';
680
687
  };
681
- declare const BannerImage: ({ alignment, alt, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
688
+ declare const BannerImage: ({ alignment, alt, aspectRatio, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
682
689
 
683
690
  type UnknownRecord = Record<string, unknown>;
684
691
  type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
package/dist/index.d.ts CHANGED
@@ -673,12 +673,19 @@ type BannerImageProps = ComponentPropsWithoutRef<'div'> & {
673
673
  * Alternative text description of the image for accessibility
674
674
  */
675
675
  alt?: string;
676
+ /**
677
+ * The aspect ratio that the image should _try_ to maintain.
678
+ */
679
+ aspectRatio?: 'square' | 'wide' | {
680
+ height: number;
681
+ width: number;
682
+ };
676
683
  /**
677
684
  * Position of the image within the banner layout. Only applies in horizontal orientation.
678
685
  */
679
686
  alignment?: 'left' | 'right';
680
687
  };
681
- declare const BannerImage: ({ alignment, alt, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
688
+ declare const BannerImage: ({ alignment, alt, aspectRatio, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
682
689
 
683
690
  type UnknownRecord = Record<string, unknown>;
684
691
  type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.18.0-beta.46b86a85.538143d
3
+ * @license @wistia/ui v0.18.0-beta.487a02f2.5478196
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -11675,7 +11675,6 @@ var Input = forwardRef15(
11675
11675
  autoSelect = false,
11676
11676
  leftIcon,
11677
11677
  rightIcon,
11678
- className,
11679
11678
  ...props
11680
11679
  }, externalRef) => {
11681
11680
  const internalRef = useRef9(null);
@@ -11712,7 +11711,6 @@ var Input = forwardRef15(
11712
11711
  {
11713
11712
  $fullWidth: fullWidth,
11714
11713
  $monospace: monospace,
11715
- className,
11716
11714
  "data-wui-input-container": true,
11717
11715
  children: [
11718
11716
  leftIconToDisplay ?? null,
@@ -14039,26 +14037,24 @@ import { styled as styled62, css as css34 } from "styled-components";
14039
14037
  import { useState as useState18, useRef as useRef16 } from "react";
14040
14038
  import { Fragment as Fragment8, jsx as jsx276, jsxs as jsxs42 } from "react/jsx-runtime";
14041
14039
  var StyledInput = styled62(Input)`
14042
- input {
14043
- &:not([rows]) {
14044
- min-height: unset;
14045
- }
14040
+ &:not([rows]) {
14041
+ min-height: unset;
14042
+ }
14046
14043
 
14047
- && {
14048
- ${({ $variant }) => variantStyleMap[$variant]}
14049
- /* The input font styles (edit mode) needs the same font styles as Heading */
14050
- --wui-input-font-size: var(--font-size);
14051
- --wui-input-font-weight: var(--font-weight);
14052
- --wui-input-line-height: var(--line-height);
14044
+ && {
14045
+ ${({ $variant }) => variantStyleMap[$variant]}
14046
+ /* The input font styles (edit mode) needs the same font styles as Heading */
14047
+ --wui-input-font-size: var(--font-size);
14048
+ --wui-input-font-weight: var(--font-weight);
14049
+ --wui-input-line-height: var(--line-height);
14053
14050
 
14054
- font-family: var(--font-family);
14055
- width: 100%;
14056
- padding: var(--wui-space-02);
14057
- border: none;
14058
- height: ${({ $height }) => `${$height}px`};
14059
- min-height: ${({ $height }) => `${$height}px`};
14060
- resize: none;
14061
- }
14051
+ font-family: var(--font-family);
14052
+ width: 100%;
14053
+ padding: var(--wui-space-02);
14054
+ border: none;
14055
+ height: ${({ $height }) => `${$height}px`};
14056
+ min-height: ${({ $height }) => `${$height}px`};
14057
+ resize: none;
14062
14058
  }
14063
14059
  `;
14064
14060
  var editableStyles = css34`