@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.cjs 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
  *
@@ -11849,6 +11849,7 @@ var Input = (0, import_react47.forwardRef)(
11849
11849
  autoSelect = false,
11850
11850
  leftIcon,
11851
11851
  rightIcon,
11852
+ className,
11852
11853
  ...props
11853
11854
  }, externalRef) => {
11854
11855
  const internalRef = (0, import_react47.useRef)(null);
@@ -11885,6 +11886,7 @@ var Input = (0, import_react47.forwardRef)(
11885
11886
  {
11886
11887
  $fullWidth: fullWidth,
11887
11888
  $monospace: monospace,
11889
+ className,
11888
11890
  "data-wui-input-container": true,
11889
11891
  children: [
11890
11892
  leftIconToDisplay ?? null,
@@ -14187,24 +14189,26 @@ var import_styled_components81 = require("styled-components");
14187
14189
  var import_react63 = require("react");
14188
14190
  var import_jsx_runtime276 = require("react/jsx-runtime");
14189
14191
  var StyledInput = (0, import_styled_components81.styled)(Input)`
14190
- &:not([rows]) {
14191
- min-height: unset;
14192
- }
14192
+ input {
14193
+ &:not([rows]) {
14194
+ min-height: unset;
14195
+ }
14193
14196
 
14194
- && {
14195
- ${({ $variant }) => variantStyleMap[$variant]}
14196
- /* The input font styles (edit mode) needs the same font styles as Heading */
14197
- --wui-input-font-size: var(--font-size);
14198
- --wui-input-font-weight: var(--font-weight);
14199
- --wui-input-line-height: var(--line-height);
14197
+ && {
14198
+ ${({ $variant }) => variantStyleMap[$variant]}
14199
+ /* The input font styles (edit mode) needs the same font styles as Heading */
14200
+ --wui-input-font-size: var(--font-size);
14201
+ --wui-input-font-weight: var(--font-weight);
14202
+ --wui-input-line-height: var(--line-height);
14200
14203
 
14201
- font-family: var(--font-family);
14202
- width: 100%;
14203
- padding: var(--wui-space-02);
14204
- border: none;
14205
- height: ${({ $height }) => `${$height}px`};
14206
- min-height: ${({ $height }) => `${$height}px`};
14207
- resize: none;
14204
+ font-family: var(--font-family);
14205
+ width: 100%;
14206
+ padding: var(--wui-space-02);
14207
+ border: none;
14208
+ height: ${({ $height }) => `${$height}px`};
14209
+ min-height: ${({ $height }) => `${$height}px`};
14210
+ resize: none;
14211
+ }
14208
14212
  }
14209
14213
  `;
14210
14214
  var editableStyles = import_styled_components81.css`
@@ -17981,14 +17985,6 @@ var ThumbnailStoryboardViewer = ({
17981
17985
 
17982
17986
  // src/components/Thumbnail/Thumbnail.tsx
17983
17987
  var import_jsx_runtime327 = require("react/jsx-runtime");
17984
- var WIDE_ASPECT_RATIO = 16 / 9;
17985
- var SQUARE_ASPECT_RATIO = 1;
17986
- var getAspectRatioValue = (aspectRatio) => {
17987
- if (aspectRatio === "square") {
17988
- return SQUARE_ASPECT_RATIO;
17989
- }
17990
- return WIDE_ASPECT_RATIO;
17991
- };
17992
17988
  var WideThumbnailImage = import_styled_components126.styled.img`
17993
17989
  height: 100%;
17994
17990
  object-fit: cover;
@@ -18027,7 +18023,7 @@ var StyledThumbnail = import_styled_components126.styled.div`
18027
18023
  )};
18028
18024
  background-position: center center;
18029
18025
  background-size: cover;
18030
- aspect-ratio: ${({ $aspectRatio }) => $aspectRatio};
18026
+ aspect-ratio: 16 / 9;
18031
18027
  display: flex;
18032
18028
  overflow: hidden;
18033
18029
  position: relative;
@@ -18036,10 +18032,7 @@ var StyledThumbnail = import_styled_components126.styled.div`
18036
18032
 
18037
18033
  &,
18038
18034
  img {
18039
- border-radius: ${({ $aspectRatio }) => {
18040
- const heightPercentage = 8 / $aspectRatio;
18041
- return `calc(8% * (1 / ${$aspectRatio})) / ${heightPercentage}%`;
18042
- }};
18035
+ border-radius: calc(8% * (9 / 16)) / 8%;
18043
18036
  }
18044
18037
  `;
18045
18038
  var StoryboardRenderer = ({
@@ -18047,10 +18040,17 @@ var StoryboardRenderer = ({
18047
18040
  width,
18048
18041
  percent,
18049
18042
  cursorPosition,
18050
- isStoryboardReady,
18051
- aspectRatio
18043
+ isStoryboardReady
18052
18044
  }) => {
18053
- const { url, width: sbWidth, height: sbHeight, frameHeight, frameWidth, frameCount } = storyboard;
18045
+ const {
18046
+ url,
18047
+ width: sbWidth,
18048
+ height: sbHeight,
18049
+ frameHeight,
18050
+ frameWidth,
18051
+ frameCount,
18052
+ aspectRatio
18053
+ } = storyboard;
18054
18054
  const targetWidth = (0, import_type_guards74.isString)(width) ? parseInt(width, 10) : Number(width);
18055
18055
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
18056
18056
  return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
@@ -18064,7 +18064,7 @@ var StoryboardRenderer = ({
18064
18064
  storyboardHeight: sbHeight,
18065
18065
  storyboardUrl: url,
18066
18066
  storyboardWidth: sbWidth,
18067
- targetAspectRatio: getAspectRatioValue(aspectRatio),
18067
+ targetAspectRatio: aspectRatio,
18068
18068
  targetWidth
18069
18069
  }
18070
18070
  );
@@ -18087,7 +18087,6 @@ var Thumbnail = (0, import_react100.forwardRef)(
18087
18087
  children,
18088
18088
  storyboard,
18089
18089
  height,
18090
- aspectRatio = "wide",
18091
18090
  ...props
18092
18091
  }, ref) => {
18093
18092
  const [percent, setPercent] = (0, import_react100.useState)(0);
@@ -18139,7 +18138,6 @@ var Thumbnail = (0, import_react100.forwardRef)(
18139
18138
  thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18140
18139
  StoryboardRenderer,
18141
18140
  {
18142
- aspectRatio,
18143
18141
  cursorPosition,
18144
18142
  isStoryboardReady,
18145
18143
  percent,
@@ -18163,7 +18161,6 @@ var Thumbnail = (0, import_react100.forwardRef)(
18163
18161
  {
18164
18162
  ref,
18165
18163
  ...props,
18166
- $aspectRatio: getAspectRatioValue(aspectRatio),
18167
18164
  $backgroundUrl: backgroundUrl,
18168
18165
  $gradientBackground: gradientBackground,
18169
18166
  $isScrubbable: isScrubbable,