@wistia/ui 0.6.42-beta.c71edcd2.f90d494 → 0.6.42

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.42-beta.c71edcd2.f90d494
3
+ * @license @wistia/ui v0.6.42
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2237,11 +2237,11 @@ var EllipsisComponent = styled.span`
2237
2237
  return void 0;
2238
2238
  }}
2239
2239
  `;
2240
- var Ellipsis = ({ children, lines, ...props }) => /* @__PURE__ */ jsx4(
2240
+ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ jsx4(
2241
2241
  EllipsisComponent,
2242
2242
  {
2243
2243
  $lines: lines,
2244
- ...props,
2244
+ ...otherProps,
2245
2245
  children
2246
2246
  }
2247
2247
  );
@@ -6808,7 +6808,7 @@ var Icon = ({
6808
6808
  size = "lg",
6809
6809
  style,
6810
6810
  type,
6811
- ...props
6811
+ ...otherProps
6812
6812
  }) => {
6813
6813
  const responsiveSize = useResponsiveProp(size);
6814
6814
  if (isNil5(type)) {
@@ -6840,7 +6840,7 @@ var Icon = ({
6840
6840
  viewBox: "0 0 24 24",
6841
6841
  width: `${iconSizeMap[responsiveSize]}px`,
6842
6842
  xmlns: "http://www.w3.org/2000/svg",
6843
- ...props,
6843
+ ...otherProps,
6844
6844
  color: iconColor
6845
6845
  }
6846
6846
  );
@@ -7288,13 +7288,13 @@ var ColorSchemeWrapper = ({
7288
7288
  __nav = false,
7289
7289
  colorScheme = "inherit",
7290
7290
  children,
7291
- ...props
7291
+ ...otherProps
7292
7292
  }) => /* @__PURE__ */ jsx195(
7293
7293
  StyledColorSchemeWrapper,
7294
7294
  {
7295
7295
  $colorScheme: colorScheme,
7296
7296
  $nav: __nav,
7297
- ...props,
7297
+ ...otherProps,
7298
7298
  children
7299
7299
  }
7300
7300
  );
@@ -7387,7 +7387,7 @@ var Avatar = ({
7387
7387
  name,
7388
7388
  size = "md",
7389
7389
  onImageLoad,
7390
- ...props
7390
+ ...otherProps
7391
7391
  }) => {
7392
7392
  const [imageLoadState, setImageLoadState] = useState5("loading");
7393
7393
  useEffect5(() => {
@@ -7407,7 +7407,7 @@ var Avatar = ({
7407
7407
  return /* @__PURE__ */ jsx196(
7408
7408
  AvatarWrapper,
7409
7409
  {
7410
- ...props,
7410
+ ...otherProps,
7411
7411
  $maxHeight: avatarSize,
7412
7412
  children: showInitials ? /* @__PURE__ */ jsx196(
7413
7413
  InitialsContainer,
@@ -7457,13 +7457,13 @@ var StyledBadge = styled9.div`
7457
7457
  }
7458
7458
  `;
7459
7459
  var Badge = forwardRef4(
7460
- ({ colorScheme = "inherit", label, icon, ...props }, ref) => {
7460
+ ({ colorScheme = "inherit", label, icon, ...otherProps }, ref) => {
7461
7461
  const hasIcon = isNotNil7(icon);
7462
7462
  return /* @__PURE__ */ jsxs10(
7463
7463
  StyledBadge,
7464
7464
  {
7465
7465
  ref,
7466
- ...props,
7466
+ ...otherProps,
7467
7467
  $colorScheme: colorScheme,
7468
7468
  $hasIcon: hasIcon,
7469
7469
  children: [
@@ -7623,7 +7623,7 @@ var BoxComponent = forwardRef5(
7623
7623
  width,
7624
7624
  wrapItems = false,
7625
7625
  flexMode,
7626
- ...props
7626
+ ...otherProps
7627
7627
  }, ref) => {
7628
7628
  if (isNotUndefined5(height)) {
7629
7629
  if (fill === true || fill === "vertical") {
@@ -7667,7 +7667,7 @@ var BoxComponent = forwardRef5(
7667
7667
  $width: width,
7668
7668
  $wrapItems: wrapItems,
7669
7669
  as: renderAs ?? DEFAULT_ELEMENT,
7670
- ...props,
7670
+ ...otherProps,
7671
7671
  children: wrapChildren(children)
7672
7672
  }
7673
7673
  );
@@ -7804,7 +7804,7 @@ var ButtonGroup = ({
7804
7804
  align = "left",
7805
7805
  fullWidth = false,
7806
7806
  collapseOnSmallScreens = true,
7807
- ...props
7807
+ ...otherProps
7808
7808
  }) => {
7809
7809
  if (isNil10(children)) {
7810
7810
  return null;
@@ -7815,7 +7815,7 @@ var ButtonGroup = ({
7815
7815
  $align: align,
7816
7816
  $collapse: collapseOnSmallScreens,
7817
7817
  $fullWidth: fullWidth,
7818
- ...props,
7818
+ ...otherProps,
7819
7819
  children
7820
7820
  }
7821
7821
  );
@@ -7967,13 +7967,13 @@ var ScreenReaderOnly = ({
7967
7967
  text,
7968
7968
  children,
7969
7969
  focusable = false,
7970
- ...props
7970
+ ...otherProps
7971
7971
  }) => {
7972
7972
  const accessibleText = isNotNil9(text) ? text : children;
7973
7973
  if (focusable) {
7974
- return /* @__PURE__ */ jsx205(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
7974
+ return /* @__PURE__ */ jsx205(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
7975
7975
  }
7976
- return /* @__PURE__ */ jsx205(VisuallyHidden, { ...props, children: accessibleText });
7976
+ return /* @__PURE__ */ jsx205(VisuallyHidden, { ...otherProps, children: accessibleText });
7977
7977
  };
7978
7978
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
7979
7979
 
@@ -8377,7 +8377,7 @@ var HeadingComponent = forwardRef8(
8377
8377
  preventUserSelect = false,
8378
8378
  variant = "heading1",
8379
8379
  renderAs,
8380
- ...props
8380
+ ...otherProps
8381
8381
  }, ref) => /* @__PURE__ */ jsx211(
8382
8382
  StyledHeading,
8383
8383
  {
@@ -8390,7 +8390,7 @@ var HeadingComponent = forwardRef8(
8390
8390
  $preventUserSelect: preventUserSelect,
8391
8391
  $variant: variant,
8392
8392
  as: renderAs ?? variantElementMap[variant],
8393
- ...props
8393
+ ...otherProps
8394
8394
  }
8395
8395
  )
8396
8396
  );
@@ -8708,7 +8708,7 @@ var TextComponent = forwardRef9(
8708
8708
  prominence = "primary",
8709
8709
  variant = "body2",
8710
8710
  renderAs,
8711
- ...props
8711
+ ...otherProps
8712
8712
  }, ref) => {
8713
8713
  return /* @__PURE__ */ jsx214(
8714
8714
  StyledText,
@@ -8723,7 +8723,7 @@ var TextComponent = forwardRef9(
8723
8723
  $prominence: prominence,
8724
8724
  $variant: variant,
8725
8725
  as: renderAs ?? variantElementMap2[variant],
8726
- ...props
8726
+ ...otherProps
8727
8727
  }
8728
8728
  );
8729
8729
  }
@@ -8795,14 +8795,17 @@ var DividerComponent = styled27.div`
8795
8795
  }
8796
8796
  }}
8797
8797
  `;
8798
- var Divider = ({ orientation = "horizontal", ...props }) => {
8798
+ var Divider = ({
8799
+ orientation = "horizontal",
8800
+ ...otherProps
8801
+ }) => {
8799
8802
  return /* @__PURE__ */ jsx216(
8800
8803
  DividerComponent,
8801
8804
  {
8802
8805
  $orientation: orientation,
8803
8806
  "aria-orientation": orientation,
8804
8807
  role: "separator",
8805
- ...props
8808
+ ...otherProps
8806
8809
  }
8807
8810
  );
8808
8811
  };
@@ -9523,12 +9526,12 @@ var Label = ({
9523
9526
  htmlFor,
9524
9527
  required = false,
9525
9528
  screenReaderOnly = false,
9526
- ...props
9529
+ ...otherProps
9527
9530
  }) => {
9528
9531
  return /* @__PURE__ */ jsx223(
9529
9532
  StyledLabel3,
9530
9533
  {
9531
- ...props,
9534
+ ...otherProps,
9532
9535
  $disabled: disabled,
9533
9536
  $required: required,
9534
9537
  $screenReaderOnly: screenReaderOnly,
@@ -9828,7 +9831,7 @@ var Image = ({
9828
9831
  fit: objFit,
9829
9832
  loading = "lazy",
9830
9833
  position: objPosition,
9831
- ...props
9834
+ ...otherProps
9832
9835
  }) => /* @__PURE__ */ jsx229(
9833
9836
  StyledImage,
9834
9837
  {
@@ -9839,7 +9842,7 @@ var Image = ({
9839
9842
  alt,
9840
9843
  loading,
9841
9844
  src,
9842
- ...props
9845
+ ...otherProps
9843
9846
  }
9844
9847
  );
9845
9848
  Image.displayName = "Image";
@@ -10538,7 +10541,7 @@ var StyledModalContent = styled45(DialogContent)`
10538
10541
  }
10539
10542
  `;
10540
10543
  var ModalContent = forwardRef16(
10541
- ({ fullHeight, width, children, ...props }, ref) => {
10544
+ ({ fullHeight, width, children, ...otherProps }, ref) => {
10542
10545
  useFocusRestore();
10543
10546
  return /* @__PURE__ */ jsx241(
10544
10547
  StyledModalContent,
@@ -10547,7 +10550,7 @@ var ModalContent = forwardRef16(
10547
10550
  $fullHeight: fullHeight,
10548
10551
  $width: width,
10549
10552
  "aria-describedby": void 0,
10550
- ...props,
10553
+ ...otherProps,
10551
10554
  children
10552
10555
  }
10553
10556
  );
@@ -11945,7 +11948,7 @@ var Tabs = forwardRef26(
11945
11948
  selectedValue,
11946
11949
  onSelectedValueChange,
11947
11950
  stickyHeaders = true,
11948
- ...props
11951
+ ...otherProps
11949
11952
  }, ref) => {
11950
11953
  const tabItems = extractTabItems(children);
11951
11954
  const [internalSelectedValue, setInternalSelectedValue] = useState11(defaultSelectedValue);
@@ -11960,7 +11963,7 @@ var Tabs = forwardRef26(
11960
11963
  ref,
11961
11964
  $stickyHeaders: stickyHeaders,
11962
11965
  activationMode: "automatic",
11963
- ...props,
11966
+ ...otherProps,
11964
11967
  ...modeProps,
11965
11968
  children: /* @__PURE__ */ jsx263(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs41(SelectedItemMeasurementsProvider, { children: [
11966
11969
  /* @__PURE__ */ jsxs41(
@@ -12160,7 +12163,15 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12160
12163
  ] });
12161
12164
  };
12162
12165
  var Tag = forwardRef28(
12163
- ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12166
+ ({
12167
+ onClickRemove,
12168
+ colorScheme = "inherit",
12169
+ href,
12170
+ icon,
12171
+ label,
12172
+ onClickRemoveLabel,
12173
+ ...otherProps
12174
+ }, ref) => {
12164
12175
  const hasIcon = isNotNil25(icon);
12165
12176
  const labelProps = isNotNil25(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12166
12177
  return /* @__PURE__ */ jsxs42(
@@ -12168,7 +12179,7 @@ var Tag = forwardRef28(
12168
12179
  {
12169
12180
  ref,
12170
12181
  $colorScheme: colorScheme,
12171
- ...props,
12182
+ ...otherProps,
12172
12183
  children: [
12173
12184
  /* @__PURE__ */ jsxs42(
12174
12185
  TagLabel,
@@ -12196,221 +12207,27 @@ var Tag = forwardRef28(
12196
12207
  );
12197
12208
  Tag.displayName = "Tag";
12198
12209
 
12199
- // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12200
- import styled70 from "styled-components";
12201
- import { isNotNil as isNotNil27 } from "@wistia/type-guards";
12202
-
12203
- // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12204
- import { isNotNil as isNotNil26 } from "@wistia/type-guards";
12205
- import { css as css37 } from "styled-components";
12206
- var gradients = {
12207
- defaultDarkOne: css37`
12208
- background-color: #222d66;
12209
- background-image:
12210
- radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
12211
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12212
- radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12213
- radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12214
- `,
12215
- defaultDarkTwo: css37`
12216
- background-color: #222d66;
12217
- background-image:
12218
- radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
12219
- radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%),
12220
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12221
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12222
- `,
12223
- defaultLightOne: css37`
12224
- background-color: #ccd5ff;
12225
- background-image:
12226
- radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
12227
- radial-gradient(farthest-corner at top left, #ccd5ff, transparent 65%),
12228
- radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12229
- radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12230
- `,
12231
- defaultLightTwo: css37`
12232
- background-color: #ccd5ff;
12233
- background-image:
12234
- radial-gradient(ellipse at top, #ccd5ff, transparent),
12235
- radial-gradient(ellipse at bottom, #6b84ff, transparent);
12236
- `,
12237
- defaultMidOne: css37`
12238
- background-color: #6b84ff;
12239
- background-image:
12240
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
12241
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12242
- radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12243
- radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12244
- `,
12245
- defaultMidTwo: css37`
12246
- background-color: #6b84ff;
12247
- background-image:
12248
- radial-gradient(ellipse at top, #2949e5, transparent),
12249
- radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12250
- `,
12251
- green: css37`
12252
- background-color: #fafffa;
12253
- background-image:
12254
- radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12255
- radial-gradient(farthest-corner at top right, #268713, transparent 50%),
12256
- radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12257
- radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12258
- `,
12259
- greenWithPop: css37`
12260
- background-color: #fafffa;
12261
- background-image:
12262
- radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12263
- radial-gradient(farthest-corner at top right, #2949e5, transparent 50%),
12264
- radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12265
- radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12266
- `,
12267
- pink: css37`
12268
- background-color: #fffff0;
12269
- background-image:
12270
- radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
12271
- radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12272
- radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12273
- radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12274
- `,
12275
- pinkWithPop: css37`
12276
- background-color: #fffff0;
12277
- background-image:
12278
- radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12279
- radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12280
- radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12281
- radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12282
- `,
12283
- playfulGradientOne: css37`
12284
- background-color: #f7f8ff;
12285
- background-image:
12286
- radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
12287
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12288
- radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12289
- radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12290
- `,
12291
- playfulGradientTwo: css37`
12292
- background-color: #f7f8ff;
12293
- background-image:
12294
- radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
12295
- radial-gradient(farthest-corner at bottom right, #eff18d, transparent 50%),
12296
- radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12297
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12298
- `,
12299
- purple: css37`
12300
- background-color: #f2caff;
12301
- background-image:
12302
- radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12303
- radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12304
- `,
12305
- purpleWithPop: css37`
12306
- background-color: #f2caff;
12307
- background-image:
12308
- radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
12309
- radial-gradient(farthest-corner at top left, #d65cff, transparent 65%),
12310
- radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12311
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12312
- `,
12313
- yellow: css37`
12314
- background-color: #fffff0;
12315
- background-image:
12316
- radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12317
- radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12318
- radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12319
- radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12320
- `,
12321
- yellowWithPop: css37`
12322
- background-color: #fffff0;
12323
- background-image:
12324
- radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12325
- radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12326
- radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12327
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
12328
- `
12329
- };
12330
- var gradientMap = Object.keys(gradients);
12331
- var getBackgroundGradient = (gradientName = void 0) => {
12332
- return isNotNil26(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12333
- };
12334
-
12335
- // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12336
- import { jsx as jsx266 } from "react/jsx-runtime";
12337
- var StyledThumbnailCollage = styled70.div`
12338
- display: grid;
12339
- grid-gap: var(--wui-space-01);
12340
- grid-template-columns: 3fr 2fr;
12341
- grid-template-rows: 1fr 1fr;
12342
- height: 100%;
12343
- width: 100%;
12344
- aspect-ratio: 16 / 9;
12345
- `;
12346
- var ThumbnailCollageImage = styled70.div`
12347
- ${({ $thumbnailUrl }) => isNotNil27($thumbnailUrl) && `background-image: url(${$thumbnailUrl})`};
12348
- ${({ $backgroundGradient }) => $backgroundGradient && getBackgroundGradient($backgroundGradient)};
12349
- background-position: center;
12350
- background-size: cover;
12351
- border-radius: var(--wui-border-radius-02);
12352
-
12353
- :nth-child(1) {
12354
- grid-column: 1;
12355
- grid-row: 1 / 3;
12356
- }
12357
-
12358
- :only-child {
12359
- grid-column: 1 / 3;
12360
- grid-row: 1 / 3;
12361
- }
12362
-
12363
- :nth-child(2) {
12364
- grid-column: 2;
12365
-
12366
- &:last-child {
12367
- grid-row: 1 / 3;
12368
- }
12369
- }
12370
- `;
12371
- var ThumbnailCollage = ({
12372
- thumbnailUrls,
12373
- gradientBackground = "defaultMidOne",
12374
- ...props
12375
- }) => {
12376
- const displayThumbnails = thumbnailUrls.slice(0, 3);
12377
- return /* @__PURE__ */ jsx266(StyledThumbnailCollage, { ...props, children: displayThumbnails.length ? displayThumbnails.map((thumbnailUrl) => /* @__PURE__ */ jsx266(
12378
- ThumbnailCollageImage,
12379
- {
12380
- $thumbnailUrl: thumbnailUrl,
12381
- role: "presentation"
12382
- },
12383
- thumbnailUrl
12384
- )) : /* @__PURE__ */ jsx266(
12385
- ThumbnailCollageImage,
12386
- {
12387
- $backgroundGradient: gradientBackground,
12388
- role: "presentation"
12389
- }
12390
- ) });
12391
- };
12392
-
12393
12210
  // src/components/WistiaLogo/WistiaLogo.tsx
12394
- import styled71, { css as css38 } from "styled-components";
12395
- import { isNotNil as isNotNil28 } from "@wistia/type-guards";
12396
- import { jsx as jsx267, jsxs as jsxs43 } from "react/jsx-runtime";
12211
+ import styled70, { css as css37 } from "styled-components";
12212
+ import { isNotNil as isNotNil26 } from "@wistia/type-guards";
12213
+ import { jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
12397
12214
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12398
12215
  if (iconOnly) {
12399
- return /* @__PURE__ */ jsx267(
12216
+ return /* @__PURE__ */ jsx266(
12400
12217
  "g",
12401
12218
  {
12402
12219
  "data-testid": "ui-wistia-logo-brandmark",
12403
12220
  fill: brandmarkColor,
12404
- children: /* @__PURE__ */ jsx267("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12221
+ children: /* @__PURE__ */ jsx266("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12405
12222
  }
12406
12223
  );
12407
12224
  }
12408
- return /* @__PURE__ */ jsx267(
12225
+ return /* @__PURE__ */ jsx266(
12409
12226
  "g",
12410
12227
  {
12411
12228
  "data-testid": "ui-wistia-logo-brandmark",
12412
12229
  fill: brandmarkColor,
12413
- children: /* @__PURE__ */ jsx267("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12230
+ children: /* @__PURE__ */ jsx266("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
12414
12231
  }
12415
12232
  );
12416
12233
  };
@@ -12418,12 +12235,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
12418
12235
  if (iconOnly) {
12419
12236
  return null;
12420
12237
  }
12421
- return /* @__PURE__ */ jsx267(
12238
+ return /* @__PURE__ */ jsx266(
12422
12239
  "g",
12423
12240
  {
12424
12241
  "data-testid": "ui-wistia-logo-logotype",
12425
12242
  fill: logotypeColor,
12426
- children: /* @__PURE__ */ jsx267("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
12243
+ children: /* @__PURE__ */ jsx266("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
12427
12244
  }
12428
12245
  );
12429
12246
  };
@@ -12433,7 +12250,7 @@ var computedViewBox = (iconOnly) => {
12433
12250
  }
12434
12251
  return "0 0 144 31.47";
12435
12252
  };
12436
- var WistiaLogoComponent = styled71.svg`
12253
+ var WistiaLogoComponent = styled70.svg`
12437
12254
  height: ${({ height }) => `${height}px`};
12438
12255
 
12439
12256
  /* ensure it will always fit on mobile */
@@ -12449,12 +12266,12 @@ var WistiaLogoComponent = styled71.svg`
12449
12266
  ${({ $opticallyCentered, $iconOnly }) => {
12450
12267
  if ($opticallyCentered) {
12451
12268
  if ($iconOnly) {
12452
- return css38`
12269
+ return css37`
12453
12270
  aspect-ratio: 1;
12454
12271
  padding: 11.85% 3.12% 13.91%;
12455
12272
  `;
12456
12273
  }
12457
- return css38`
12274
+ return css37`
12458
12275
  aspect-ratio: 127 / 32;
12459
12276
  `;
12460
12277
  }
@@ -12470,7 +12287,7 @@ var WistiaLogo = ({
12470
12287
  opticallyCentered = false,
12471
12288
  title = "Wistia Logo",
12472
12289
  variant = "standard",
12473
- ...props
12290
+ ...otherProps
12474
12291
  }) => {
12475
12292
  const primaryColor = "#2949e5";
12476
12293
  const darkColor = "#000934";
@@ -12502,24 +12319,24 @@ var WistiaLogo = ({
12502
12319
  role: "img",
12503
12320
  viewBox: computedViewBox(iconOnly),
12504
12321
  xmlns: "http://www.w3.org/2000/svg",
12505
- ...props,
12322
+ ...otherProps,
12506
12323
  children: [
12507
- /* @__PURE__ */ jsx267("title", { children: title }),
12508
- isNotNil28(description) ? /* @__PURE__ */ jsx267("desc", { children: description }) : null,
12324
+ /* @__PURE__ */ jsx266("title", { children: title }),
12325
+ isNotNil26(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12509
12326
  renderBrandmark(brandmarkColor, iconOnly),
12510
12327
  renderLogotype(logotypeColor, iconOnly)
12511
12328
  ]
12512
12329
  }
12513
12330
  );
12514
- return href !== void 0 ? /* @__PURE__ */ jsx267("a", { href, children: Logo }) : Logo;
12331
+ return href !== void 0 ? /* @__PURE__ */ jsx266("a", { href, children: Logo }) : Logo;
12515
12332
  };
12516
12333
  WistiaLogo.displayName = "WistiaLogo";
12517
12334
 
12518
12335
  // src/components/Thumbnail/ThumbnailBadge.tsx
12519
- import styled72 from "styled-components";
12520
- import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12521
- import { jsx as jsx268, jsxs as jsxs44 } from "react/jsx-runtime";
12522
- var StyledThumbnailBadge = styled72.div`
12336
+ import styled71 from "styled-components";
12337
+ import { isNotNil as isNotNil27 } from "@wistia/type-guards";
12338
+ import { jsx as jsx267, jsxs as jsxs44 } from "react/jsx-runtime";
12339
+ var StyledThumbnailBadge = styled71.div`
12523
12340
  align-items: center;
12524
12341
  background-color: rgb(0 0 0 / 50%);
12525
12342
  border-radius: var(--wui-border-radius-01);
@@ -12543,32 +12360,170 @@ var StyledThumbnailBadge = styled72.div`
12543
12360
  }
12544
12361
  }
12545
12362
  `;
12546
- var ThumbnailBadge = ({ icon, label, ...props }) => {
12547
- return /* @__PURE__ */ jsxs44(StyledThumbnailBadge, { ...props, children: [
12548
- isNotNil29(icon) && icon,
12549
- /* @__PURE__ */ jsx268("span", { children: label })
12363
+ var ThumbnailBadge = ({
12364
+ icon,
12365
+ label,
12366
+ ...otherProps
12367
+ }) => {
12368
+ return /* @__PURE__ */ jsxs44(StyledThumbnailBadge, { ...otherProps, children: [
12369
+ isNotNil27(icon) && icon,
12370
+ /* @__PURE__ */ jsx267("span", { children: label })
12550
12371
  ] });
12551
12372
  };
12552
12373
  ThumbnailBadge.displayName = "ThumbnailBadge";
12553
12374
 
12554
12375
  // src/components/Thumbnail/Thumbnail.tsx
12555
12376
  import { forwardRef as forwardRef29 } from "react";
12556
- import styled73 from "styled-components";
12557
- import { isNil as isNil17, isNotNil as isNotNil30 } from "@wistia/type-guards";
12558
- import { jsx as jsx269, jsxs as jsxs45 } from "react/jsx-runtime";
12559
- var WideThumbnailImage = styled73.img`
12377
+ import styled72 from "styled-components";
12378
+ import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12379
+
12380
+ // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12381
+ import { isNotNil as isNotNil28 } from "@wistia/type-guards";
12382
+ import { css as css38 } from "styled-components";
12383
+ var gradients = {
12384
+ defaultDarkOne: css38`
12385
+ background-color: #222d66;
12386
+ background-image:
12387
+ radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
12388
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12389
+ radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12390
+ radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12391
+ `,
12392
+ defaultDarkTwo: css38`
12393
+ background-color: #222d66;
12394
+ background-image:
12395
+ radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
12396
+ radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%),
12397
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12398
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12399
+ `,
12400
+ defaultLightOne: css38`
12401
+ background-color: #ccd5ff;
12402
+ background-image:
12403
+ radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
12404
+ radial-gradient(farthest-corner at top left, #ccd5ff, transparent 65%),
12405
+ radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12406
+ radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12407
+ `,
12408
+ defaultLightTwo: css38`
12409
+ background-color: #ccd5ff;
12410
+ background-image:
12411
+ radial-gradient(ellipse at top, #ccd5ff, transparent),
12412
+ radial-gradient(ellipse at bottom, #6b84ff, transparent);
12413
+ `,
12414
+ defaultMidOne: css38`
12415
+ background-color: #6b84ff;
12416
+ background-image:
12417
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
12418
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12419
+ radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12420
+ radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12421
+ `,
12422
+ defaultMidTwo: css38`
12423
+ background-color: #6b84ff;
12424
+ background-image:
12425
+ radial-gradient(ellipse at top, #2949e5, transparent),
12426
+ radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12427
+ `,
12428
+ green: css38`
12429
+ background-color: #fafffa;
12430
+ background-image:
12431
+ radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12432
+ radial-gradient(farthest-corner at top right, #268713, transparent 50%),
12433
+ radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12434
+ radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12435
+ `,
12436
+ greenWithPop: css38`
12437
+ background-color: #fafffa;
12438
+ background-image:
12439
+ radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12440
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 50%),
12441
+ radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12442
+ radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12443
+ `,
12444
+ pink: css38`
12445
+ background-color: #fffff0;
12446
+ background-image:
12447
+ radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
12448
+ radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12449
+ radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12450
+ radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12451
+ `,
12452
+ pinkWithPop: css38`
12453
+ background-color: #fffff0;
12454
+ background-image:
12455
+ radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12456
+ radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12457
+ radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12458
+ radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12459
+ `,
12460
+ playfulGradientOne: css38`
12461
+ background-color: #f7f8ff;
12462
+ background-image:
12463
+ radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
12464
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12465
+ radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12466
+ radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12467
+ `,
12468
+ playfulGradientTwo: css38`
12469
+ background-color: #f7f8ff;
12470
+ background-image:
12471
+ radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
12472
+ radial-gradient(farthest-corner at bottom right, #eff18d, transparent 50%),
12473
+ radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12474
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12475
+ `,
12476
+ purple: css38`
12477
+ background-color: #f2caff;
12478
+ background-image:
12479
+ radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12480
+ radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12481
+ `,
12482
+ purpleWithPop: css38`
12483
+ background-color: #f2caff;
12484
+ background-image:
12485
+ radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
12486
+ radial-gradient(farthest-corner at top left, #d65cff, transparent 65%),
12487
+ radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12488
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12489
+ `,
12490
+ yellow: css38`
12491
+ background-color: #fffff0;
12492
+ background-image:
12493
+ radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12494
+ radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12495
+ radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12496
+ radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12497
+ `,
12498
+ yellowWithPop: css38`
12499
+ background-color: #fffff0;
12500
+ background-image:
12501
+ radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12502
+ radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12503
+ radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12504
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
12505
+ `
12506
+ };
12507
+ var gradientMap = Object.keys(gradients);
12508
+ var getBackgroundGradient = (gradientName = void 0) => {
12509
+ return isNotNil28(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12510
+ };
12511
+
12512
+ // src/components/Thumbnail/Thumbnail.tsx
12513
+ import { jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12514
+ var WideThumbnailImage = styled72.img`
12560
12515
  height: 100%;
12561
12516
  object-fit: cover;
12562
12517
  width: 100%;
12563
12518
  `;
12564
- var SquareThumbnailImage = styled73.img`
12519
+ var SquareThumbnailImage = styled72.img`
12565
12520
  backdrop-filter: blur(8px);
12566
12521
  object-fit: contain;
12567
12522
  width: 100%;
12568
12523
  `;
12569
12524
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12570
12525
  if (thumbnailImageType === "wide") {
12571
- return /* @__PURE__ */ jsx269(
12526
+ return /* @__PURE__ */ jsx268(
12572
12527
  WideThumbnailImage,
12573
12528
  {
12574
12529
  alt: "",
@@ -12576,7 +12531,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12576
12531
  }
12577
12532
  );
12578
12533
  }
12579
- return /* @__PURE__ */ jsx269(
12534
+ return /* @__PURE__ */ jsx268(
12580
12535
  SquareThumbnailImage,
12581
12536
  {
12582
12537
  alt: "",
@@ -12584,16 +12539,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12584
12539
  }
12585
12540
  );
12586
12541
  };
12587
- var StyledThumbnail = styled73.div`
12588
- background-image: ${({ $backgroundUrl }) => isNotNil30($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12589
- ${({ $backgroundUrl, $gradientBackground }) => (
12590
- // if we don't have $backgroundUrl show a gradient
12591
- isNil17($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12592
- )};
12593
- background-position: center center;
12594
- background-size: cover;
12542
+ var StyledThumbnail = styled72.div`
12543
+ ${({ $gradientBackground }) => getBackgroundGradient($gradientBackground)};
12595
12544
  aspect-ratio: 16 / 9;
12596
- border-radius: var(--wui-border-radius-01);
12545
+ background: ${({ $backgroundUrl }) => isNotNil29($backgroundUrl) ? `url('${$backgroundUrl}') center / cover` : void 0};
12546
+ border-radius: 4px;
12597
12547
  display: flex;
12598
12548
  overflow: hidden;
12599
12549
  position: relative;
@@ -12606,27 +12556,26 @@ var Thumbnail = forwardRef29(
12606
12556
  thumbnailUrl,
12607
12557
  width = "100%",
12608
12558
  children,
12609
- ...props
12559
+ ...otherProps
12610
12560
  }, ref) => {
12611
- const backgroundUrl = thumbnailImageType === "square" && isNotNil30(thumbnailUrl) ? thumbnailUrl : void 0;
12561
+ const backgroundUrl = thumbnailImageType === "square" && isNotNil29(thumbnailUrl) ? thumbnailUrl : void 0;
12612
12562
  return /* @__PURE__ */ jsxs45(
12613
12563
  StyledThumbnail,
12614
12564
  {
12615
12565
  ref,
12616
- ...props,
12617
12566
  $backgroundUrl: backgroundUrl,
12618
12567
  $gradientBackground: gradientBackground,
12619
12568
  $width: width,
12620
- role: "presentation",
12569
+ ...otherProps,
12621
12570
  children: [
12622
- isNotNil30(children) ? children : null,
12623
- isNotNil30(thumbnailUrl) ? /* @__PURE__ */ jsx269(
12571
+ isNotNil29(children) && children,
12572
+ isNotNil29(thumbnailUrl) && /* @__PURE__ */ jsx268(
12624
12573
  ThumbnailImage,
12625
12574
  {
12626
12575
  thumbnailImageType,
12627
12576
  thumbnailUrl
12628
12577
  }
12629
- ) : null
12578
+ )
12630
12579
  ]
12631
12580
  }
12632
12581
  );
@@ -12707,7 +12656,6 @@ export {
12707
12656
  Text,
12708
12657
  Thumbnail,
12709
12658
  ThumbnailBadge,
12710
- ThumbnailCollage,
12711
12659
  Tooltip,
12712
12660
  UIProvider,
12713
12661
  WistiaLogo,