@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.cjs 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
  *
@@ -112,7 +112,6 @@ __export(index_exports, {
112
112
  Text: () => Text,
113
113
  Thumbnail: () => Thumbnail,
114
114
  ThumbnailBadge: () => ThumbnailBadge,
115
- ThumbnailCollage: () => ThumbnailCollage,
116
115
  Tooltip: () => Tooltip,
117
116
  UIProvider: () => UIProvider,
118
117
  WistiaLogo: () => WistiaLogo,
@@ -2364,11 +2363,11 @@ var EllipsisComponent = import_styled_components13.default.span`
2364
2363
  return void 0;
2365
2364
  }}
2366
2365
  `;
2367
- var Ellipsis = ({ children, lines, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2366
+ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
2368
2367
  EllipsisComponent,
2369
2368
  {
2370
2369
  $lines: lines,
2371
- ...props,
2370
+ ...otherProps,
2372
2371
  children
2373
2372
  }
2374
2373
  );
@@ -6935,7 +6934,7 @@ var Icon = ({
6935
6934
  size = "lg",
6936
6935
  style,
6937
6936
  type,
6938
- ...props
6937
+ ...otherProps
6939
6938
  }) => {
6940
6939
  const responsiveSize = useResponsiveProp(size);
6941
6940
  if ((0, import_type_guards13.isNil)(type)) {
@@ -6967,7 +6966,7 @@ var Icon = ({
6967
6966
  viewBox: "0 0 24 24",
6968
6967
  width: `${iconSizeMap[responsiveSize]}px`,
6969
6968
  xmlns: "http://www.w3.org/2000/svg",
6970
- ...props,
6969
+ ...otherProps,
6971
6970
  color: iconColor
6972
6971
  }
6973
6972
  );
@@ -7415,13 +7414,13 @@ var ColorSchemeWrapper = ({
7415
7414
  __nav = false,
7416
7415
  colorScheme = "inherit",
7417
7416
  children,
7418
- ...props
7417
+ ...otherProps
7419
7418
  }) => /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
7420
7419
  StyledColorSchemeWrapper,
7421
7420
  {
7422
7421
  $colorScheme: colorScheme,
7423
7422
  $nav: __nav,
7424
- ...props,
7423
+ ...otherProps,
7425
7424
  children
7426
7425
  }
7427
7426
  );
@@ -7514,7 +7513,7 @@ var Avatar = ({
7514
7513
  name,
7515
7514
  size = "md",
7516
7515
  onImageLoad,
7517
- ...props
7516
+ ...otherProps
7518
7517
  }) => {
7519
7518
  const [imageLoadState, setImageLoadState] = (0, import_react18.useState)("loading");
7520
7519
  (0, import_react18.useEffect)(() => {
@@ -7534,7 +7533,7 @@ var Avatar = ({
7534
7533
  return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7535
7534
  AvatarWrapper,
7536
7535
  {
7537
- ...props,
7536
+ ...otherProps,
7538
7537
  $maxHeight: avatarSize,
7539
7538
  children: showInitials ? /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
7540
7539
  InitialsContainer,
@@ -7584,13 +7583,13 @@ var StyledBadge = import_styled_components24.default.div`
7584
7583
  }
7585
7584
  `;
7586
7585
  var Badge = (0, import_react19.forwardRef)(
7587
- ({ colorScheme = "inherit", label, icon, ...props }, ref) => {
7586
+ ({ colorScheme = "inherit", label, icon, ...otherProps }, ref) => {
7588
7587
  const hasIcon = (0, import_type_guards18.isNotNil)(icon);
7589
7588
  return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
7590
7589
  StyledBadge,
7591
7590
  {
7592
7591
  ref,
7593
- ...props,
7592
+ ...otherProps,
7594
7593
  $colorScheme: colorScheme,
7595
7594
  $hasIcon: hasIcon,
7596
7595
  children: [
@@ -7750,7 +7749,7 @@ var BoxComponent = (0, import_react20.forwardRef)(
7750
7749
  width,
7751
7750
  wrapItems = false,
7752
7751
  flexMode,
7753
- ...props
7752
+ ...otherProps
7754
7753
  }, ref) => {
7755
7754
  if ((0, import_type_guards19.isNotUndefined)(height)) {
7756
7755
  if (fill === true || fill === "vertical") {
@@ -7794,7 +7793,7 @@ var BoxComponent = (0, import_react20.forwardRef)(
7794
7793
  $width: width,
7795
7794
  $wrapItems: wrapItems,
7796
7795
  as: renderAs ?? DEFAULT_ELEMENT,
7797
- ...props,
7796
+ ...otherProps,
7798
7797
  children: wrapChildren(children)
7799
7798
  }
7800
7799
  );
@@ -7931,7 +7930,7 @@ var ButtonGroup = ({
7931
7930
  align = "left",
7932
7931
  fullWidth = false,
7933
7932
  collapseOnSmallScreens = true,
7934
- ...props
7933
+ ...otherProps
7935
7934
  }) => {
7936
7935
  if ((0, import_type_guards20.isNil)(children)) {
7937
7936
  return null;
@@ -7942,7 +7941,7 @@ var ButtonGroup = ({
7942
7941
  $align: align,
7943
7942
  $collapse: collapseOnSmallScreens,
7944
7943
  $fullWidth: fullWidth,
7945
- ...props,
7944
+ ...otherProps,
7946
7945
  children
7947
7946
  }
7948
7947
  );
@@ -8094,13 +8093,13 @@ var ScreenReaderOnly = ({
8094
8093
  text,
8095
8094
  children,
8096
8095
  focusable = false,
8097
- ...props
8096
+ ...otherProps
8098
8097
  }) => {
8099
8098
  const accessibleText = (0, import_type_guards22.isNotNil)(text) ? text : children;
8100
8099
  if (focusable) {
8101
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
8100
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
8102
8101
  }
8103
- return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(VisuallyHidden, { ...props, children: accessibleText });
8102
+ return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
8104
8103
  };
8105
8104
  ScreenReaderOnly.displayName = "ScreenReaderOnly";
8106
8105
 
@@ -8504,7 +8503,7 @@ var HeadingComponent = (0, import_react26.forwardRef)(
8504
8503
  preventUserSelect = false,
8505
8504
  variant = "heading1",
8506
8505
  renderAs,
8507
- ...props
8506
+ ...otherProps
8508
8507
  }, ref) => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
8509
8508
  StyledHeading,
8510
8509
  {
@@ -8517,7 +8516,7 @@ var HeadingComponent = (0, import_react26.forwardRef)(
8517
8516
  $preventUserSelect: preventUserSelect,
8518
8517
  $variant: variant,
8519
8518
  as: renderAs ?? variantElementMap[variant],
8520
- ...props
8519
+ ...otherProps
8521
8520
  }
8522
8521
  )
8523
8522
  );
@@ -8835,7 +8834,7 @@ var TextComponent = (0, import_react27.forwardRef)(
8835
8834
  prominence = "primary",
8836
8835
  variant = "body2",
8837
8836
  renderAs,
8838
- ...props
8837
+ ...otherProps
8839
8838
  }, ref) => {
8840
8839
  return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
8841
8840
  StyledText,
@@ -8850,7 +8849,7 @@ var TextComponent = (0, import_react27.forwardRef)(
8850
8849
  $prominence: prominence,
8851
8850
  $variant: variant,
8852
8851
  as: renderAs ?? variantElementMap2[variant],
8853
- ...props
8852
+ ...otherProps
8854
8853
  }
8855
8854
  );
8856
8855
  }
@@ -8922,14 +8921,17 @@ var DividerComponent = import_styled_components42.default.div`
8922
8921
  }
8923
8922
  }}
8924
8923
  `;
8925
- var Divider = ({ orientation = "horizontal", ...props }) => {
8924
+ var Divider = ({
8925
+ orientation = "horizontal",
8926
+ ...otherProps
8927
+ }) => {
8926
8928
  return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
8927
8929
  DividerComponent,
8928
8930
  {
8929
8931
  $orientation: orientation,
8930
8932
  "aria-orientation": orientation,
8931
8933
  role: "separator",
8932
- ...props
8934
+ ...otherProps
8933
8935
  }
8934
8936
  );
8935
8937
  };
@@ -9644,12 +9646,12 @@ var Label = ({
9644
9646
  htmlFor,
9645
9647
  required = false,
9646
9648
  screenReaderOnly = false,
9647
- ...props
9649
+ ...otherProps
9648
9650
  }) => {
9649
9651
  return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
9650
9652
  StyledLabel3,
9651
9653
  {
9652
- ...props,
9654
+ ...otherProps,
9653
9655
  $disabled: disabled,
9654
9656
  $required: required,
9655
9657
  $screenReaderOnly: screenReaderOnly,
@@ -9949,7 +9951,7 @@ var Image = ({
9949
9951
  fit: objFit,
9950
9952
  loading = "lazy",
9951
9953
  position: objPosition,
9952
- ...props
9954
+ ...otherProps
9953
9955
  }) => /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
9954
9956
  StyledImage,
9955
9957
  {
@@ -9960,7 +9962,7 @@ var Image = ({
9960
9962
  alt,
9961
9963
  loading,
9962
9964
  src,
9963
- ...props
9965
+ ...otherProps
9964
9966
  }
9965
9967
  );
9966
9968
  Image.displayName = "Image";
@@ -10640,7 +10642,7 @@ var StyledModalContent = (0, import_styled_components61.default)(import_react_di
10640
10642
  }
10641
10643
  `;
10642
10644
  var ModalContent = (0, import_react45.forwardRef)(
10643
- ({ fullHeight, width, children, ...props }, ref) => {
10645
+ ({ fullHeight, width, children, ...otherProps }, ref) => {
10644
10646
  useFocusRestore();
10645
10647
  return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
10646
10648
  StyledModalContent,
@@ -10649,7 +10651,7 @@ var ModalContent = (0, import_react45.forwardRef)(
10649
10651
  $fullHeight: fullHeight,
10650
10652
  $width: width,
10651
10653
  "aria-describedby": void 0,
10652
- ...props,
10654
+ ...otherProps,
10653
10655
  children
10654
10656
  }
10655
10657
  );
@@ -12038,7 +12040,7 @@ var Tabs = (0, import_react63.forwardRef)(
12038
12040
  selectedValue,
12039
12041
  onSelectedValueChange,
12040
12042
  stickyHeaders = true,
12041
- ...props
12043
+ ...otherProps
12042
12044
  }, ref) => {
12043
12045
  const tabItems = extractTabItems(children);
12044
12046
  const [internalSelectedValue, setInternalSelectedValue] = (0, import_react63.useState)(defaultSelectedValue);
@@ -12053,7 +12055,7 @@ var Tabs = (0, import_react63.forwardRef)(
12053
12055
  ref,
12054
12056
  $stickyHeaders: stickyHeaders,
12055
12057
  activationMode: "automatic",
12056
- ...props,
12058
+ ...otherProps,
12057
12059
  ...modeProps,
12058
12060
  children: /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(SelectedItemMeasurementsProvider, { children: [
12059
12061
  /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
@@ -12253,7 +12255,15 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12253
12255
  ] });
12254
12256
  };
12255
12257
  var Tag = (0, import_react65.forwardRef)(
12256
- ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12258
+ ({
12259
+ onClickRemove,
12260
+ colorScheme = "inherit",
12261
+ href,
12262
+ icon,
12263
+ label,
12264
+ onClickRemoveLabel,
12265
+ ...otherProps
12266
+ }, ref) => {
12257
12267
  const hasIcon = (0, import_type_guards46.isNotNil)(icon);
12258
12268
  const labelProps = (0, import_type_guards46.isNotNil)(href) && (0, import_type_guards46.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12259
12269
  return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
@@ -12261,7 +12271,7 @@ var Tag = (0, import_react65.forwardRef)(
12261
12271
  {
12262
12272
  ref,
12263
12273
  $colorScheme: colorScheme,
12264
- ...props,
12274
+ ...otherProps,
12265
12275
  children: [
12266
12276
  /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
12267
12277
  TagLabel,
@@ -12289,221 +12299,27 @@ var Tag = (0, import_react65.forwardRef)(
12289
12299
  );
12290
12300
  Tag.displayName = "Tag";
12291
12301
 
12292
- // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12293
- var import_styled_components87 = __toESM(require("styled-components"));
12294
- var import_type_guards48 = require("@wistia/type-guards");
12295
-
12296
- // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12302
+ // src/components/WistiaLogo/WistiaLogo.tsx
12303
+ var import_styled_components86 = __toESM(require("styled-components"));
12297
12304
  var import_type_guards47 = require("@wistia/type-guards");
12298
- var import_styled_components86 = require("styled-components");
12299
- var gradients = {
12300
- defaultDarkOne: import_styled_components86.css`
12301
- background-color: #222d66;
12302
- background-image:
12303
- radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
12304
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12305
- radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12306
- radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12307
- `,
12308
- defaultDarkTwo: import_styled_components86.css`
12309
- background-color: #222d66;
12310
- background-image:
12311
- radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
12312
- radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%),
12313
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12314
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12315
- `,
12316
- defaultLightOne: import_styled_components86.css`
12317
- background-color: #ccd5ff;
12318
- background-image:
12319
- radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
12320
- radial-gradient(farthest-corner at top left, #ccd5ff, transparent 65%),
12321
- radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12322
- radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12323
- `,
12324
- defaultLightTwo: import_styled_components86.css`
12325
- background-color: #ccd5ff;
12326
- background-image:
12327
- radial-gradient(ellipse at top, #ccd5ff, transparent),
12328
- radial-gradient(ellipse at bottom, #6b84ff, transparent);
12329
- `,
12330
- defaultMidOne: import_styled_components86.css`
12331
- background-color: #6b84ff;
12332
- background-image:
12333
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
12334
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12335
- radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12336
- radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12337
- `,
12338
- defaultMidTwo: import_styled_components86.css`
12339
- background-color: #6b84ff;
12340
- background-image:
12341
- radial-gradient(ellipse at top, #2949e5, transparent),
12342
- radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12343
- `,
12344
- green: import_styled_components86.css`
12345
- background-color: #fafffa;
12346
- background-image:
12347
- radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12348
- radial-gradient(farthest-corner at top right, #268713, transparent 50%),
12349
- radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12350
- radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12351
- `,
12352
- greenWithPop: import_styled_components86.css`
12353
- background-color: #fafffa;
12354
- background-image:
12355
- radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12356
- radial-gradient(farthest-corner at top right, #2949e5, transparent 50%),
12357
- radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12358
- radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12359
- `,
12360
- pink: import_styled_components86.css`
12361
- background-color: #fffff0;
12362
- background-image:
12363
- radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
12364
- radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12365
- radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12366
- radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12367
- `,
12368
- pinkWithPop: import_styled_components86.css`
12369
- background-color: #fffff0;
12370
- background-image:
12371
- radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12372
- radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12373
- radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12374
- radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12375
- `,
12376
- playfulGradientOne: import_styled_components86.css`
12377
- background-color: #f7f8ff;
12378
- background-image:
12379
- radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
12380
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12381
- radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12382
- radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12383
- `,
12384
- playfulGradientTwo: import_styled_components86.css`
12385
- background-color: #f7f8ff;
12386
- background-image:
12387
- radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
12388
- radial-gradient(farthest-corner at bottom right, #eff18d, transparent 50%),
12389
- radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12390
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12391
- `,
12392
- purple: import_styled_components86.css`
12393
- background-color: #f2caff;
12394
- background-image:
12395
- radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12396
- radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12397
- `,
12398
- purpleWithPop: import_styled_components86.css`
12399
- background-color: #f2caff;
12400
- background-image:
12401
- radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
12402
- radial-gradient(farthest-corner at top left, #d65cff, transparent 65%),
12403
- radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12404
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12405
- `,
12406
- yellow: import_styled_components86.css`
12407
- background-color: #fffff0;
12408
- background-image:
12409
- radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12410
- radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12411
- radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12412
- radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12413
- `,
12414
- yellowWithPop: import_styled_components86.css`
12415
- background-color: #fffff0;
12416
- background-image:
12417
- radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12418
- radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12419
- radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12420
- radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
12421
- `
12422
- };
12423
- var gradientMap = Object.keys(gradients);
12424
- var getBackgroundGradient = (gradientName = void 0) => {
12425
- return (0, import_type_guards47.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12426
- };
12427
-
12428
- // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12429
12305
  var import_jsx_runtime268 = require("react/jsx-runtime");
12430
- var StyledThumbnailCollage = import_styled_components87.default.div`
12431
- display: grid;
12432
- grid-gap: var(--wui-space-01);
12433
- grid-template-columns: 3fr 2fr;
12434
- grid-template-rows: 1fr 1fr;
12435
- height: 100%;
12436
- width: 100%;
12437
- aspect-ratio: 16 / 9;
12438
- `;
12439
- var ThumbnailCollageImage = import_styled_components87.default.div`
12440
- ${({ $thumbnailUrl }) => (0, import_type_guards48.isNotNil)($thumbnailUrl) && `background-image: url(${$thumbnailUrl})`};
12441
- ${({ $backgroundGradient }) => $backgroundGradient && getBackgroundGradient($backgroundGradient)};
12442
- background-position: center;
12443
- background-size: cover;
12444
- border-radius: var(--wui-border-radius-02);
12445
-
12446
- :nth-child(1) {
12447
- grid-column: 1;
12448
- grid-row: 1 / 3;
12449
- }
12450
-
12451
- :only-child {
12452
- grid-column: 1 / 3;
12453
- grid-row: 1 / 3;
12454
- }
12455
-
12456
- :nth-child(2) {
12457
- grid-column: 2;
12458
-
12459
- &:last-child {
12460
- grid-row: 1 / 3;
12461
- }
12462
- }
12463
- `;
12464
- var ThumbnailCollage = ({
12465
- thumbnailUrls,
12466
- gradientBackground = "defaultMidOne",
12467
- ...props
12468
- }) => {
12469
- const displayThumbnails = thumbnailUrls.slice(0, 3);
12470
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(StyledThumbnailCollage, { ...props, children: displayThumbnails.length ? displayThumbnails.map((thumbnailUrl) => /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12471
- ThumbnailCollageImage,
12472
- {
12473
- $thumbnailUrl: thumbnailUrl,
12474
- role: "presentation"
12475
- },
12476
- thumbnailUrl
12477
- )) : /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12478
- ThumbnailCollageImage,
12479
- {
12480
- $backgroundGradient: gradientBackground,
12481
- role: "presentation"
12482
- }
12483
- ) });
12484
- };
12485
-
12486
- // src/components/WistiaLogo/WistiaLogo.tsx
12487
- var import_styled_components88 = __toESM(require("styled-components"));
12488
- var import_type_guards49 = require("@wistia/type-guards");
12489
- var import_jsx_runtime269 = require("react/jsx-runtime");
12490
12306
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12491
12307
  if (iconOnly) {
12492
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12308
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12493
12309
  "g",
12494
12310
  {
12495
12311
  "data-testid": "ui-wistia-logo-brandmark",
12496
12312
  fill: brandmarkColor,
12497
- children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("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" })
12313
+ children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("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" })
12498
12314
  }
12499
12315
  );
12500
12316
  }
12501
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12317
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12502
12318
  "g",
12503
12319
  {
12504
12320
  "data-testid": "ui-wistia-logo-brandmark",
12505
12321
  fill: brandmarkColor,
12506
- children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("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" })
12322
+ children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("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" })
12507
12323
  }
12508
12324
  );
12509
12325
  };
@@ -12511,12 +12327,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
12511
12327
  if (iconOnly) {
12512
12328
  return null;
12513
12329
  }
12514
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12330
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12515
12331
  "g",
12516
12332
  {
12517
12333
  "data-testid": "ui-wistia-logo-logotype",
12518
12334
  fill: logotypeColor,
12519
- children: /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("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" })
12335
+ children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("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" })
12520
12336
  }
12521
12337
  );
12522
12338
  };
@@ -12526,7 +12342,7 @@ var computedViewBox = (iconOnly) => {
12526
12342
  }
12527
12343
  return "0 0 144 31.47";
12528
12344
  };
12529
- var WistiaLogoComponent = import_styled_components88.default.svg`
12345
+ var WistiaLogoComponent = import_styled_components86.default.svg`
12530
12346
  height: ${({ height }) => `${height}px`};
12531
12347
 
12532
12348
  /* ensure it will always fit on mobile */
@@ -12542,12 +12358,12 @@ var WistiaLogoComponent = import_styled_components88.default.svg`
12542
12358
  ${({ $opticallyCentered, $iconOnly }) => {
12543
12359
  if ($opticallyCentered) {
12544
12360
  if ($iconOnly) {
12545
- return import_styled_components88.css`
12361
+ return import_styled_components86.css`
12546
12362
  aspect-ratio: 1;
12547
12363
  padding: 11.85% 3.12% 13.91%;
12548
12364
  `;
12549
12365
  }
12550
- return import_styled_components88.css`
12366
+ return import_styled_components86.css`
12551
12367
  aspect-ratio: 127 / 32;
12552
12368
  `;
12553
12369
  }
@@ -12563,7 +12379,7 @@ var WistiaLogo = ({
12563
12379
  opticallyCentered = false,
12564
12380
  title = "Wistia Logo",
12565
12381
  variant = "standard",
12566
- ...props
12382
+ ...otherProps
12567
12383
  }) => {
12568
12384
  const primaryColor = "#2949e5";
12569
12385
  const darkColor = "#000934";
@@ -12584,7 +12400,7 @@ var WistiaLogo = ({
12584
12400
  };
12585
12401
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12586
12402
  const logotypeColor = VARIANT_COLORS[variant].logotype;
12587
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12403
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12588
12404
  WistiaLogoComponent,
12589
12405
  {
12590
12406
  $hoverColor: hoverColor,
@@ -12595,24 +12411,24 @@ var WistiaLogo = ({
12595
12411
  role: "img",
12596
12412
  viewBox: computedViewBox(iconOnly),
12597
12413
  xmlns: "http://www.w3.org/2000/svg",
12598
- ...props,
12414
+ ...otherProps,
12599
12415
  children: [
12600
- /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("title", { children: title }),
12601
- (0, import_type_guards49.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("desc", { children: description }) : null,
12416
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("title", { children: title }),
12417
+ (0, import_type_guards47.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("desc", { children: description }) : null,
12602
12418
  renderBrandmark(brandmarkColor, iconOnly),
12603
12419
  renderLogotype(logotypeColor, iconOnly)
12604
12420
  ]
12605
12421
  }
12606
12422
  );
12607
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("a", { href, children: Logo }) : Logo;
12423
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("a", { href, children: Logo }) : Logo;
12608
12424
  };
12609
12425
  WistiaLogo.displayName = "WistiaLogo";
12610
12426
 
12611
12427
  // src/components/Thumbnail/ThumbnailBadge.tsx
12612
- var import_styled_components89 = __toESM(require("styled-components"));
12613
- var import_type_guards50 = require("@wistia/type-guards");
12614
- var import_jsx_runtime270 = require("react/jsx-runtime");
12615
- var StyledThumbnailBadge = import_styled_components89.default.div`
12428
+ var import_styled_components87 = __toESM(require("styled-components"));
12429
+ var import_type_guards48 = require("@wistia/type-guards");
12430
+ var import_jsx_runtime269 = require("react/jsx-runtime");
12431
+ var StyledThumbnailBadge = import_styled_components87.default.div`
12616
12432
  align-items: center;
12617
12433
  background-color: rgb(0 0 0 / 50%);
12618
12434
  border-radius: var(--wui-border-radius-01);
@@ -12636,32 +12452,170 @@ var StyledThumbnailBadge = import_styled_components89.default.div`
12636
12452
  }
12637
12453
  }
12638
12454
  `;
12639
- var ThumbnailBadge = ({ icon, label, ...props }) => {
12640
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(StyledThumbnailBadge, { ...props, children: [
12641
- (0, import_type_guards50.isNotNil)(icon) && icon,
12642
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("span", { children: label })
12455
+ var ThumbnailBadge = ({
12456
+ icon,
12457
+ label,
12458
+ ...otherProps
12459
+ }) => {
12460
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(StyledThumbnailBadge, { ...otherProps, children: [
12461
+ (0, import_type_guards48.isNotNil)(icon) && icon,
12462
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("span", { children: label })
12643
12463
  ] });
12644
12464
  };
12645
12465
  ThumbnailBadge.displayName = "ThumbnailBadge";
12646
12466
 
12647
12467
  // src/components/Thumbnail/Thumbnail.tsx
12648
12468
  var import_react66 = require("react");
12649
- var import_styled_components90 = __toESM(require("styled-components"));
12650
- var import_type_guards51 = require("@wistia/type-guards");
12651
- var import_jsx_runtime271 = require("react/jsx-runtime");
12652
- var WideThumbnailImage = import_styled_components90.default.img`
12469
+ var import_styled_components89 = __toESM(require("styled-components"));
12470
+ var import_type_guards50 = require("@wistia/type-guards");
12471
+
12472
+ // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12473
+ var import_type_guards49 = require("@wistia/type-guards");
12474
+ var import_styled_components88 = require("styled-components");
12475
+ var gradients = {
12476
+ defaultDarkOne: import_styled_components88.css`
12477
+ background-color: #222d66;
12478
+ background-image:
12479
+ radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
12480
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12481
+ radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12482
+ radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12483
+ `,
12484
+ defaultDarkTwo: import_styled_components88.css`
12485
+ background-color: #222d66;
12486
+ background-image:
12487
+ radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
12488
+ radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%),
12489
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12490
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12491
+ `,
12492
+ defaultLightOne: import_styled_components88.css`
12493
+ background-color: #ccd5ff;
12494
+ background-image:
12495
+ radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
12496
+ radial-gradient(farthest-corner at top left, #ccd5ff, transparent 65%),
12497
+ radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12498
+ radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12499
+ `,
12500
+ defaultLightTwo: import_styled_components88.css`
12501
+ background-color: #ccd5ff;
12502
+ background-image:
12503
+ radial-gradient(ellipse at top, #ccd5ff, transparent),
12504
+ radial-gradient(ellipse at bottom, #6b84ff, transparent);
12505
+ `,
12506
+ defaultMidOne: import_styled_components88.css`
12507
+ background-color: #6b84ff;
12508
+ background-image:
12509
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
12510
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12511
+ radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12512
+ radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12513
+ `,
12514
+ defaultMidTwo: import_styled_components88.css`
12515
+ background-color: #6b84ff;
12516
+ background-image:
12517
+ radial-gradient(ellipse at top, #2949e5, transparent),
12518
+ radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12519
+ `,
12520
+ green: import_styled_components88.css`
12521
+ background-color: #fafffa;
12522
+ background-image:
12523
+ radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12524
+ radial-gradient(farthest-corner at top right, #268713, transparent 50%),
12525
+ radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12526
+ radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12527
+ `,
12528
+ greenWithPop: import_styled_components88.css`
12529
+ background-color: #fafffa;
12530
+ background-image:
12531
+ radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
12532
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 50%),
12533
+ radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12534
+ radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12535
+ `,
12536
+ pink: import_styled_components88.css`
12537
+ background-color: #fffff0;
12538
+ background-image:
12539
+ radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
12540
+ radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12541
+ radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12542
+ radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12543
+ `,
12544
+ pinkWithPop: import_styled_components88.css`
12545
+ background-color: #fffff0;
12546
+ background-image:
12547
+ radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
12548
+ radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12549
+ radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12550
+ radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12551
+ `,
12552
+ playfulGradientOne: import_styled_components88.css`
12553
+ background-color: #f7f8ff;
12554
+ background-image:
12555
+ radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
12556
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12557
+ radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12558
+ radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12559
+ `,
12560
+ playfulGradientTwo: import_styled_components88.css`
12561
+ background-color: #f7f8ff;
12562
+ background-image:
12563
+ radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
12564
+ radial-gradient(farthest-corner at bottom right, #eff18d, transparent 50%),
12565
+ radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12566
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12567
+ `,
12568
+ purple: import_styled_components88.css`
12569
+ background-color: #f2caff;
12570
+ background-image:
12571
+ radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12572
+ radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12573
+ `,
12574
+ purpleWithPop: import_styled_components88.css`
12575
+ background-color: #f2caff;
12576
+ background-image:
12577
+ radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
12578
+ radial-gradient(farthest-corner at top left, #d65cff, transparent 65%),
12579
+ radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12580
+ radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12581
+ `,
12582
+ yellow: import_styled_components88.css`
12583
+ background-color: #fffff0;
12584
+ background-image:
12585
+ radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12586
+ radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12587
+ radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12588
+ radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12589
+ `,
12590
+ yellowWithPop: import_styled_components88.css`
12591
+ background-color: #fffff0;
12592
+ background-image:
12593
+ radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
12594
+ radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
12595
+ radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12596
+ radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
12597
+ `
12598
+ };
12599
+ var gradientMap = Object.keys(gradients);
12600
+ var getBackgroundGradient = (gradientName = void 0) => {
12601
+ return (0, import_type_guards49.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12602
+ };
12603
+
12604
+ // src/components/Thumbnail/Thumbnail.tsx
12605
+ var import_jsx_runtime270 = require("react/jsx-runtime");
12606
+ var WideThumbnailImage = import_styled_components89.default.img`
12653
12607
  height: 100%;
12654
12608
  object-fit: cover;
12655
12609
  width: 100%;
12656
12610
  `;
12657
- var SquareThumbnailImage = import_styled_components90.default.img`
12611
+ var SquareThumbnailImage = import_styled_components89.default.img`
12658
12612
  backdrop-filter: blur(8px);
12659
12613
  object-fit: contain;
12660
12614
  width: 100%;
12661
12615
  `;
12662
12616
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12663
12617
  if (thumbnailImageType === "wide") {
12664
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12618
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12665
12619
  WideThumbnailImage,
12666
12620
  {
12667
12621
  alt: "",
@@ -12669,7 +12623,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12669
12623
  }
12670
12624
  );
12671
12625
  }
12672
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12626
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12673
12627
  SquareThumbnailImage,
12674
12628
  {
12675
12629
  alt: "",
@@ -12677,16 +12631,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12677
12631
  }
12678
12632
  );
12679
12633
  };
12680
- var StyledThumbnail = import_styled_components90.default.div`
12681
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards51.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12682
- ${({ $backgroundUrl, $gradientBackground }) => (
12683
- // if we don't have $backgroundUrl show a gradient
12684
- (0, import_type_guards51.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12685
- )};
12686
- background-position: center center;
12687
- background-size: cover;
12634
+ var StyledThumbnail = import_styled_components89.default.div`
12635
+ ${({ $gradientBackground }) => getBackgroundGradient($gradientBackground)};
12688
12636
  aspect-ratio: 16 / 9;
12689
- border-radius: var(--wui-border-radius-01);
12637
+ background: ${({ $backgroundUrl }) => (0, import_type_guards50.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}') center / cover` : void 0};
12638
+ border-radius: 4px;
12690
12639
  display: flex;
12691
12640
  overflow: hidden;
12692
12641
  position: relative;
@@ -12699,27 +12648,26 @@ var Thumbnail = (0, import_react66.forwardRef)(
12699
12648
  thumbnailUrl,
12700
12649
  width = "100%",
12701
12650
  children,
12702
- ...props
12651
+ ...otherProps
12703
12652
  }, ref) => {
12704
- const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards51.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12705
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
12653
+ const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards50.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12654
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12706
12655
  StyledThumbnail,
12707
12656
  {
12708
12657
  ref,
12709
- ...props,
12710
12658
  $backgroundUrl: backgroundUrl,
12711
12659
  $gradientBackground: gradientBackground,
12712
12660
  $width: width,
12713
- role: "presentation",
12661
+ ...otherProps,
12714
12662
  children: [
12715
- (0, import_type_guards51.isNotNil)(children) ? children : null,
12716
- (0, import_type_guards51.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12663
+ (0, import_type_guards50.isNotNil)(children) && children,
12664
+ (0, import_type_guards50.isNotNil)(thumbnailUrl) && /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12717
12665
  ThumbnailImage,
12718
12666
  {
12719
12667
  thumbnailImageType,
12720
12668
  thumbnailUrl
12721
12669
  }
12722
- ) : null
12670
+ )
12723
12671
  ]
12724
12672
  }
12725
12673
  );
@@ -12801,7 +12749,6 @@ Thumbnail.displayName = "Thumbnail";
12801
12749
  Text,
12802
12750
  Thumbnail,
12803
12751
  ThumbnailBadge,
12804
- ThumbnailCollage,
12805
12752
  Tooltip,
12806
12753
  UIProvider,
12807
12754
  WistiaLogo,