@wistia/ui 0.18.0-beta.3a151a03.96acbe5 → 0.18.0-beta.3b5be3b3.9e2fe2f

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.3b5be3b3.9e2fe2f
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7904,6 +7904,7 @@ var StyledButton = import_styled_components22.styled.button`
7904
7904
  ${({ $variant }) => buttonVariantsStyles[$variant]}
7905
7905
  ${({ $unstyled }) => !$unstyled && buttonBaseStyles}
7906
7906
  ${({ $fullWidth }) => $fullWidth && "width: 100%;"}
7907
+ align-self: flex-start;
7907
7908
  text-align: center;
7908
7909
  `;
7909
7910
  var StyledButtonContent = import_styled_components22.styled.div`
@@ -9119,6 +9120,10 @@ var ButtonGroupComponent = import_styled_components31.styled.div`
9119
9120
  justify-content: ${({ $align }) => getAlignment($align)};
9120
9121
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
9121
9122
 
9123
+ ${StyledButton} {
9124
+ align-self: unset;
9125
+ }
9126
+
9122
9127
  ${mq.smAndUp} {
9123
9128
  flex-direction: row;
9124
9129
  }
@@ -17981,14 +17986,6 @@ var ThumbnailStoryboardViewer = ({
17981
17986
 
17982
17987
  // src/components/Thumbnail/Thumbnail.tsx
17983
17988
  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
17989
  var WideThumbnailImage = import_styled_components126.styled.img`
17993
17990
  height: 100%;
17994
17991
  object-fit: cover;
@@ -18027,7 +18024,7 @@ var StyledThumbnail = import_styled_components126.styled.div`
18027
18024
  )};
18028
18025
  background-position: center center;
18029
18026
  background-size: cover;
18030
- aspect-ratio: ${({ $aspectRatio }) => $aspectRatio};
18027
+ aspect-ratio: 16 / 9;
18031
18028
  display: flex;
18032
18029
  overflow: hidden;
18033
18030
  position: relative;
@@ -18036,10 +18033,7 @@ var StyledThumbnail = import_styled_components126.styled.div`
18036
18033
 
18037
18034
  &,
18038
18035
  img {
18039
- border-radius: ${({ $aspectRatio }) => {
18040
- const heightPercentage = 8 / $aspectRatio;
18041
- return `calc(8% * (1 / ${$aspectRatio})) / ${heightPercentage}%`;
18042
- }};
18036
+ border-radius: calc(8% * (9 / 16)) / 8%;
18043
18037
  }
18044
18038
  `;
18045
18039
  var StoryboardRenderer = ({
@@ -18047,10 +18041,17 @@ var StoryboardRenderer = ({
18047
18041
  width,
18048
18042
  percent,
18049
18043
  cursorPosition,
18050
- isStoryboardReady,
18051
- aspectRatio
18044
+ isStoryboardReady
18052
18045
  }) => {
18053
- const { url, width: sbWidth, height: sbHeight, frameHeight, frameWidth, frameCount } = storyboard;
18046
+ const {
18047
+ url,
18048
+ width: sbWidth,
18049
+ height: sbHeight,
18050
+ frameHeight,
18051
+ frameWidth,
18052
+ frameCount,
18053
+ aspectRatio
18054
+ } = storyboard;
18054
18055
  const targetWidth = (0, import_type_guards74.isString)(width) ? parseInt(width, 10) : Number(width);
18055
18056
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
18056
18057
  return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
@@ -18064,7 +18065,7 @@ var StoryboardRenderer = ({
18064
18065
  storyboardHeight: sbHeight,
18065
18066
  storyboardUrl: url,
18066
18067
  storyboardWidth: sbWidth,
18067
- targetAspectRatio: getAspectRatioValue(aspectRatio),
18068
+ targetAspectRatio: aspectRatio,
18068
18069
  targetWidth
18069
18070
  }
18070
18071
  );
@@ -18087,7 +18088,6 @@ var Thumbnail = (0, import_react100.forwardRef)(
18087
18088
  children,
18088
18089
  storyboard,
18089
18090
  height,
18090
- aspectRatio = "wide",
18091
18091
  ...props
18092
18092
  }, ref) => {
18093
18093
  const [percent, setPercent] = (0, import_react100.useState)(0);
@@ -18139,7 +18139,6 @@ var Thumbnail = (0, import_react100.forwardRef)(
18139
18139
  thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
18140
18140
  StoryboardRenderer,
18141
18141
  {
18142
- aspectRatio,
18143
18142
  cursorPosition,
18144
18143
  isStoryboardReady,
18145
18144
  percent,
@@ -18163,7 +18162,6 @@ var Thumbnail = (0, import_react100.forwardRef)(
18163
18162
  {
18164
18163
  ref,
18165
18164
  ...props,
18166
- $aspectRatio: getAspectRatioValue(aspectRatio),
18167
18165
  $backgroundUrl: backgroundUrl,
18168
18166
  $gradientBackground: gradientBackground,
18169
18167
  $isScrubbable: isScrubbable,