@wistia/ui 0.18.2-beta.4003271.cf839cf → 0.18.2-beta.ac1bbb95.dea3e8b

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.2-beta.4003271.cf839cf
3
+ * @license @wistia/ui v0.18.2-beta.ac1bbb95.dea3e8b
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -18071,9 +18071,11 @@ var StyledThumbnailContainer = import_styled_components126.styled.div`
18071
18071
  width: ${({ $width }) => $width};
18072
18072
  display: flex;
18073
18073
  overflow: hidden;
18074
+ ${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
18074
18075
  `;
18075
18076
  var StyledThumbnail = import_styled_components126.styled.div`
18076
18077
  --wui-thumbnail-badge-offset: var(--wui-space-01);
18078
+
18077
18079
  background-image: ${({ $backgroundUrl }) => (0, import_type_guards74.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
18078
18080
  ${({ $backgroundUrl, $gradientBackground }) => (
18079
18081
  // if we don't have $backgroundUrl show a gradient
@@ -18081,19 +18083,15 @@ var StyledThumbnail = import_styled_components126.styled.div`
18081
18083
  )};
18082
18084
  background-position: center center;
18083
18085
  background-size: cover;
18084
-
18085
18086
  display: flex;
18086
18087
  width: 100%;
18087
18088
  overflow: hidden;
18088
18089
  position: relative;
18089
- display: flex;
18090
18090
  border-radius: clamp(var(--wui-border-radius-01), 8cqh, var(--wui-border-radius-05));
18091
18091
 
18092
18092
  @container (min-width: 200px) {
18093
18093
  --wui-thumbnail-badge-offset: var(--wui-space-02);
18094
18094
  }
18095
-
18096
- ${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
18097
18095
  `;
18098
18096
  var StoryboardRenderer = ({
18099
18097
  storyboard,
@@ -18216,19 +18214,20 @@ var Thumbnail = (0, import_react100.forwardRef)(
18216
18214
  {
18217
18215
  ref,
18218
18216
  $aspectRatio: aspectRatio,
18217
+ $isScrubbable: isScrubbable,
18219
18218
  $width: width,
18220
- "data-thumbnail-container": true,
18219
+ "data-wui-thumbnail-container": true,
18220
+ onBlur: handleMouseOut,
18221
+ onMouseMove: handleMouseMove,
18222
+ onMouseOut: handleMouseOut,
18223
+ role: "presentation",
18221
18224
  ...props,
18222
18225
  children: /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
18223
18226
  StyledThumbnail,
18224
18227
  {
18225
18228
  $backgroundUrl: backgroundUrl,
18226
18229
  $gradientBackground: gradientBackground,
18227
- $isScrubbable: isScrubbable,
18228
- onBlur: handleMouseOut,
18229
- onMouseMove: handleMouseMove,
18230
- onMouseOut: handleMouseOut,
18231
- role: "presentation",
18230
+ "data-testid": "thumbnail-inner",
18232
18231
  children: [
18233
18232
  (0, import_type_guards74.isNotNil)(children) ? children : null,
18234
18233
  thumbnailContent
@@ -18293,7 +18292,7 @@ var StyledThumbnailCollage = import_styled_components127.styled.div`
18293
18292
  }
18294
18293
 
18295
18294
  [data-thumbnail-container] {
18296
- //allows for the border radius to be based off the collage's dimensions
18295
+ /* allows for the border radius to be based off the collage dimensions */
18297
18296
  container-type: unset;
18298
18297
  aspect-ratio: unset;
18299
18298
  height: 100%;