@wistia/ui 0.18.0-beta.af6ce7a5.9372ce9 → 0.18.0-beta.c3ba0640.3c7bbc3

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.af6ce7a5.9372ce9
3
+ * @license @wistia/ui v0.18.0-beta.c3ba0640.3c7bbc3
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -7904,7 +7904,6 @@ 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;
7908
7907
  text-align: center;
7909
7908
  `;
7910
7909
  var StyledButtonContent = import_styled_components22.styled.div`
@@ -8601,7 +8600,7 @@ var DEFAULT_ELEMENT = "div";
8601
8600
  var BoxComponent = (0, import_react27.forwardRef)(
8602
8601
  ({
8603
8602
  alignContent = "stretch",
8604
- alignItems = "stretch",
8603
+ alignItems = "flex-start",
8605
8604
  alignSelf,
8606
8605
  basis,
8607
8606
  children,
@@ -9120,10 +9119,6 @@ var ButtonGroupComponent = import_styled_components31.styled.div`
9120
9119
  justify-content: ${({ $align }) => getAlignment($align)};
9121
9120
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
9122
9121
 
9123
- ${StyledButton} {
9124
- align-self: unset;
9125
- }
9126
-
9127
9122
  ${mq.smAndUp} {
9128
9123
  flex-direction: row;
9129
9124
  }
@@ -17683,7 +17678,7 @@ var StyledThumbnailBadge = import_styled_components123.styled.div`
17683
17678
  align-items: center;
17684
17679
  background-color: rgb(0 0 0 / 50%);
17685
17680
  border-radius: var(--wui-border-radius-01);
17686
- bottom: var(--wui-space-01);
17681
+ bottom: var(--wui-thumbnail-badge-offset);
17687
17682
  color: var(--wui-color-text-on-fill);
17688
17683
  display: flex;
17689
17684
  font-size: var(--wui-typography-body-4-size);
@@ -17691,7 +17686,7 @@ var StyledThumbnailBadge = import_styled_components123.styled.div`
17691
17686
  gap: var(--wui-space-01);
17692
17687
  padding: 0 var(--wui-space-01);
17693
17688
  position: absolute;
17694
- right: var(--wui-space-01);
17689
+ right: var(--wui-thumbnail-badge-offset);
17695
17690
  z-index: 1;
17696
17691
 
17697
17692
  svg {
@@ -18016,7 +18011,15 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
18016
18011
  }
18017
18012
  );
18018
18013
  };
18014
+ var StyledThumbnailContainer = import_styled_components126.styled.div`
18015
+ container-type: inline-size;
18016
+ aspect-ratio: 16 / 9;
18017
+ width: ${({ $width }) => $width};
18018
+ display: flex;
18019
+ `;
18019
18020
  var StyledThumbnail = import_styled_components126.styled.div`
18021
+ --wui-thumbnail-badge-offset: var(--wui-space-01);
18022
+
18020
18023
  background-image: ${({ $backgroundUrl }) => (0, import_type_guards74.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
18021
18024
  ${({ $backgroundUrl, $gradientBackground }) => (
18022
18025
  // if we don't have $backgroundUrl show a gradient
@@ -18024,16 +18027,35 @@ var StyledThumbnail = import_styled_components126.styled.div`
18024
18027
  )};
18025
18028
  background-position: center center;
18026
18029
  background-size: cover;
18030
+ width: 100%;
18027
18031
  aspect-ratio: 16 / 9;
18028
- display: flex;
18029
18032
  overflow: hidden;
18030
18033
  position: relative;
18031
- width: ${({ $width }) => $width};
18034
+ display: flex;
18035
+
18032
18036
  ${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
18033
18037
 
18034
18038
  &,
18035
18039
  img {
18036
- border-radius: calc(8% * (9 / 16)) / 8%;
18040
+ border-radius: var(--wui-border-radius-02);
18041
+ }
18042
+
18043
+ @container (min-width: 200px) {
18044
+ &,
18045
+ img {
18046
+ border-radius: var(--wui-border-radius-03);
18047
+ }
18048
+
18049
+ --wui-thumbnail-badge-offset: var(--wui-space-02);
18050
+ }
18051
+
18052
+ @container (min-width: 400px) {
18053
+ &,
18054
+ img {
18055
+ border-radius: var(--wui-border-radius-05);
18056
+ }
18057
+
18058
+ --wui-thumbnail-badge-offset: var(--wui-space-03);
18037
18059
  }
18038
18060
  `;
18039
18061
  var StoryboardRenderer = ({
@@ -18157,7 +18179,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
18157
18179
  } else {
18158
18180
  thumbnailContent = null;
18159
18181
  }
18160
- return /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
18182
+ return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(StyledThumbnailContainer, { $width: width, children: /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
18161
18183
  StyledThumbnail,
18162
18184
  {
18163
18185
  ref,
@@ -18175,7 +18197,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
18175
18197
  thumbnailContent
18176
18198
  ]
18177
18199
  }
18178
- );
18200
+ ) });
18179
18201
  }
18180
18202
  );
18181
18203
  Thumbnail.displayName = "Thumbnail_UI";