@wistia/ui 0.18.0-beta.3a151a03.96acbe5 → 0.18.0-beta.46b86a85.538143d

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
@@ -4108,7 +4108,6 @@ declare const gradients: {
4108
4108
  };
4109
4109
  type GradientNameType = keyof typeof gradients;
4110
4110
 
4111
- type AspectRatioType = 'square' | 'wide';
4112
4111
  type Storyboard = {
4113
4112
  __typename?: string;
4114
4113
  aspectRatio: number;
@@ -4151,11 +4150,6 @@ type ThumbnailProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'> & {
4151
4150
  * Example: '180px'
4152
4151
  */
4153
4152
  height?: string;
4154
- /**
4155
- * The aspect ratio of the thumbnail container.
4156
- * 'wide' maps to 16:9 ratio, 'square' maps to 1:1 ratio.
4157
- */
4158
- aspectRatio?: AspectRatioType;
4159
4153
  };
4160
4154
  /**
4161
4155
  * A `Thumbnail` is a small, reduced-size version of an image or video used as a preview or representative image.
@@ -4191,11 +4185,6 @@ declare const Thumbnail: react.ForwardRefExoticComponent<Omit<Omit<react.Detaile
4191
4185
  * Example: '180px'
4192
4186
  */
4193
4187
  height?: string;
4194
- /**
4195
- * The aspect ratio of the thumbnail container.
4196
- * 'wide' maps to 16:9 ratio, 'square' maps to 1:1 ratio.
4197
- */
4198
- aspectRatio?: AspectRatioType;
4199
4188
  } & react.RefAttributes<HTMLDivElement>>;
4200
4189
 
4201
4190
  type ThumbnailCollageProps = {
package/dist/index.d.ts CHANGED
@@ -4108,7 +4108,6 @@ declare const gradients: {
4108
4108
  };
4109
4109
  type GradientNameType = keyof typeof gradients;
4110
4110
 
4111
- type AspectRatioType = 'square' | 'wide';
4112
4111
  type Storyboard = {
4113
4112
  __typename?: string;
4114
4113
  aspectRatio: number;
@@ -4151,11 +4150,6 @@ type ThumbnailProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'> & {
4151
4150
  * Example: '180px'
4152
4151
  */
4153
4152
  height?: string;
4154
- /**
4155
- * The aspect ratio of the thumbnail container.
4156
- * 'wide' maps to 16:9 ratio, 'square' maps to 1:1 ratio.
4157
- */
4158
- aspectRatio?: AspectRatioType;
4159
4153
  };
4160
4154
  /**
4161
4155
  * A `Thumbnail` is a small, reduced-size version of an image or video used as a preview or representative image.
@@ -4191,11 +4185,6 @@ declare const Thumbnail: react.ForwardRefExoticComponent<Omit<Omit<react.Detaile
4191
4185
  * Example: '180px'
4192
4186
  */
4193
4187
  height?: string;
4194
- /**
4195
- * The aspect ratio of the thumbnail container.
4196
- * 'wide' maps to 16:9 ratio, 'square' maps to 1:1 ratio.
4197
- */
4198
- aspectRatio?: AspectRatioType;
4199
4188
  } & react.RefAttributes<HTMLDivElement>>;
4200
4189
 
4201
4190
  type ThumbnailCollageProps = {
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.18.0-beta.3a151a03.96acbe5
3
+ * @license @wistia/ui v0.18.0-beta.46b86a85.538143d
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -11675,6 +11675,7 @@ var Input = forwardRef15(
11675
11675
  autoSelect = false,
11676
11676
  leftIcon,
11677
11677
  rightIcon,
11678
+ className,
11678
11679
  ...props
11679
11680
  }, externalRef) => {
11680
11681
  const internalRef = useRef9(null);
@@ -11711,6 +11712,7 @@ var Input = forwardRef15(
11711
11712
  {
11712
11713
  $fullWidth: fullWidth,
11713
11714
  $monospace: monospace,
11715
+ className,
11714
11716
  "data-wui-input-container": true,
11715
11717
  children: [
11716
11718
  leftIconToDisplay ?? null,
@@ -14037,24 +14039,26 @@ import { styled as styled62, css as css34 } from "styled-components";
14037
14039
  import { useState as useState18, useRef as useRef16 } from "react";
14038
14040
  import { Fragment as Fragment8, jsx as jsx276, jsxs as jsxs42 } from "react/jsx-runtime";
14039
14041
  var StyledInput = styled62(Input)`
14040
- &:not([rows]) {
14041
- min-height: unset;
14042
- }
14042
+ input {
14043
+ &:not([rows]) {
14044
+ min-height: unset;
14045
+ }
14043
14046
 
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);
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);
14050
14053
 
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;
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
+ }
14058
14062
  }
14059
14063
  `;
14060
14064
  var editableStyles = css34`
@@ -17845,14 +17849,6 @@ var ThumbnailStoryboardViewer = ({
17845
17849
 
17846
17850
  // src/components/Thumbnail/Thumbnail.tsx
17847
17851
  import { jsx as jsx325, jsxs as jsxs69 } from "react/jsx-runtime";
17848
- var WIDE_ASPECT_RATIO = 16 / 9;
17849
- var SQUARE_ASPECT_RATIO = 1;
17850
- var getAspectRatioValue = (aspectRatio) => {
17851
- if (aspectRatio === "square") {
17852
- return SQUARE_ASPECT_RATIO;
17853
- }
17854
- return WIDE_ASPECT_RATIO;
17855
- };
17856
17852
  var WideThumbnailImage = styled106.img`
17857
17853
  height: 100%;
17858
17854
  object-fit: cover;
@@ -17891,7 +17887,7 @@ var StyledThumbnail = styled106.div`
17891
17887
  )};
17892
17888
  background-position: center center;
17893
17889
  background-size: cover;
17894
- aspect-ratio: ${({ $aspectRatio }) => $aspectRatio};
17890
+ aspect-ratio: 16 / 9;
17895
17891
  display: flex;
17896
17892
  overflow: hidden;
17897
17893
  position: relative;
@@ -17900,10 +17896,7 @@ var StyledThumbnail = styled106.div`
17900
17896
 
17901
17897
  &,
17902
17898
  img {
17903
- border-radius: ${({ $aspectRatio }) => {
17904
- const heightPercentage = 8 / $aspectRatio;
17905
- return `calc(8% * (1 / ${$aspectRatio})) / ${heightPercentage}%`;
17906
- }};
17899
+ border-radius: calc(8% * (9 / 16)) / 8%;
17907
17900
  }
17908
17901
  `;
17909
17902
  var StoryboardRenderer = ({
@@ -17911,10 +17904,17 @@ var StoryboardRenderer = ({
17911
17904
  width,
17912
17905
  percent,
17913
17906
  cursorPosition,
17914
- isStoryboardReady,
17915
- aspectRatio
17907
+ isStoryboardReady
17916
17908
  }) => {
17917
- const { url, width: sbWidth, height: sbHeight, frameHeight, frameWidth, frameCount } = storyboard;
17909
+ const {
17910
+ url,
17911
+ width: sbWidth,
17912
+ height: sbHeight,
17913
+ frameHeight,
17914
+ frameWidth,
17915
+ frameCount,
17916
+ aspectRatio
17917
+ } = storyboard;
17918
17918
  const targetWidth = isString4(width) ? parseInt(width, 10) : Number(width);
17919
17919
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
17920
17920
  return /* @__PURE__ */ jsx325(
@@ -17928,7 +17928,7 @@ var StoryboardRenderer = ({
17928
17928
  storyboardHeight: sbHeight,
17929
17929
  storyboardUrl: url,
17930
17930
  storyboardWidth: sbWidth,
17931
- targetAspectRatio: getAspectRatioValue(aspectRatio),
17931
+ targetAspectRatio: aspectRatio,
17932
17932
  targetWidth
17933
17933
  }
17934
17934
  );
@@ -17951,7 +17951,6 @@ var Thumbnail = forwardRef37(
17951
17951
  children,
17952
17952
  storyboard,
17953
17953
  height,
17954
- aspectRatio = "wide",
17955
17954
  ...props
17956
17955
  }, ref) => {
17957
17956
  const [percent, setPercent] = useState26(0);
@@ -18003,7 +18002,6 @@ var Thumbnail = forwardRef37(
18003
18002
  thumbnailContent = /* @__PURE__ */ jsx325(
18004
18003
  StoryboardRenderer,
18005
18004
  {
18006
- aspectRatio,
18007
18005
  cursorPosition,
18008
18006
  isStoryboardReady,
18009
18007
  percent,
@@ -18027,7 +18025,6 @@ var Thumbnail = forwardRef37(
18027
18025
  {
18028
18026
  ref,
18029
18027
  ...props,
18030
- $aspectRatio: getAspectRatioValue(aspectRatio),
18031
18028
  $backgroundUrl: backgroundUrl,
18032
18029
  $gradientBackground: gradientBackground,
18033
18030
  $isScrubbable: isScrubbable,