@wistia/ui 0.7.1-beta.d41c0ad4.9264944 → 0.7.1

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.7.1-beta.d41c0ad4.9264944
3
+ * @license @wistia/ui v0.7.1
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,
@@ -12336,11 +12335,136 @@ var Tag = (0, import_react65.forwardRef)(
12336
12335
  );
12337
12336
  Tag.displayName = "Tag";
12338
12337
 
12339
- // src/components/Thumbnail/ThumbnailBadge.tsx
12338
+ // src/components/WistiaLogo/WistiaLogo.tsx
12340
12339
  var import_styled_components86 = __toESM(require("styled-components"));
12341
12340
  var import_type_guards50 = require("@wistia/type-guards");
12342
12341
  var import_jsx_runtime268 = require("react/jsx-runtime");
12343
- var StyledThumbnailBadge = import_styled_components86.default.div`
12342
+ var renderBrandmark = (brandmarkColor, iconOnly) => {
12343
+ if (iconOnly) {
12344
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12345
+ "g",
12346
+ {
12347
+ "data-testid": "ui-wistia-logo-brandmark",
12348
+ fill: brandmarkColor,
12349
+ 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" })
12350
+ }
12351
+ );
12352
+ }
12353
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12354
+ "g",
12355
+ {
12356
+ "data-testid": "ui-wistia-logo-brandmark",
12357
+ fill: brandmarkColor,
12358
+ 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" })
12359
+ }
12360
+ );
12361
+ };
12362
+ var renderLogotype = (logotypeColor, iconOnly) => {
12363
+ if (iconOnly) {
12364
+ return null;
12365
+ }
12366
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12367
+ "g",
12368
+ {
12369
+ "data-testid": "ui-wistia-logo-logotype",
12370
+ fill: logotypeColor,
12371
+ 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" })
12372
+ }
12373
+ );
12374
+ };
12375
+ var computedViewBox = (iconOnly) => {
12376
+ if (iconOnly) {
12377
+ return "0 0 34.4 26.78";
12378
+ }
12379
+ return "0 0 144 31.47";
12380
+ };
12381
+ var WistiaLogoComponent = import_styled_components86.default.svg`
12382
+ height: ${({ height }) => `${height}px`};
12383
+
12384
+ /* ensure it will always fit on mobile */
12385
+ max-height: 22vw;
12386
+ max-width: 100%;
12387
+
12388
+ &:hover {
12389
+ path {
12390
+ ${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
12391
+ }
12392
+ }
12393
+
12394
+ ${({ $opticallyCentered, $iconOnly }) => {
12395
+ if ($opticallyCentered) {
12396
+ if ($iconOnly) {
12397
+ return import_styled_components86.css`
12398
+ aspect-ratio: 1;
12399
+ padding: 11.85% 3.12% 13.91%;
12400
+ `;
12401
+ }
12402
+ return import_styled_components86.css`
12403
+ aspect-ratio: 127 / 32;
12404
+ `;
12405
+ }
12406
+ return null;
12407
+ }}
12408
+ `;
12409
+ var WistiaLogo = ({
12410
+ description = void 0,
12411
+ height = 100,
12412
+ hoverColor = void 0,
12413
+ href = void 0,
12414
+ iconOnly = false,
12415
+ opticallyCentered = false,
12416
+ title = "Wistia Logo",
12417
+ variant = "standard",
12418
+ ...props
12419
+ }) => {
12420
+ const primaryColor = "#2949e5";
12421
+ const darkColor = "#000934";
12422
+ const lightColor = "#ffffff";
12423
+ const VARIANT_COLORS = {
12424
+ standard: {
12425
+ brandmark: primaryColor,
12426
+ logotype: darkColor
12427
+ },
12428
+ dark: {
12429
+ brandmark: darkColor,
12430
+ logotype: darkColor
12431
+ },
12432
+ light: {
12433
+ brandmark: lightColor,
12434
+ logotype: lightColor
12435
+ }
12436
+ };
12437
+ const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12438
+ const logotypeColor = VARIANT_COLORS[variant].logotype;
12439
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12440
+ WistiaLogoComponent,
12441
+ {
12442
+ $hoverColor: hoverColor,
12443
+ $iconOnly: iconOnly,
12444
+ $opticallyCentered: opticallyCentered,
12445
+ height,
12446
+ preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
12447
+ role: "img",
12448
+ viewBox: computedViewBox(iconOnly),
12449
+ xmlns: "http://www.w3.org/2000/svg",
12450
+ ...props,
12451
+ children: [
12452
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("title", { children: title }),
12453
+ (0, import_type_guards50.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("desc", { children: description }) : null,
12454
+ renderBrandmark(brandmarkColor, iconOnly),
12455
+ renderLogotype(logotypeColor, iconOnly)
12456
+ ]
12457
+ }
12458
+ );
12459
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("a", { href, children: Logo }) : Logo;
12460
+ };
12461
+ WistiaLogo.displayName = "WistiaLogo";
12462
+
12463
+ // src/components/Thumbnail/ThumbnailBadge.tsx
12464
+ var import_styled_components87 = __toESM(require("styled-components"));
12465
+ var import_type_guards51 = require("@wistia/type-guards");
12466
+ var import_jsx_runtime269 = require("react/jsx-runtime");
12467
+ var StyledThumbnailBadge = import_styled_components87.default.div`
12344
12468
  align-items: center;
12345
12469
  background-color: rgb(0 0 0 / 50%);
12346
12470
  border-radius: var(--wui-border-radius-01);
@@ -12365,23 +12489,23 @@ var StyledThumbnailBadge = import_styled_components86.default.div`
12365
12489
  }
12366
12490
  `;
12367
12491
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12368
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(StyledThumbnailBadge, { ...props, children: [
12369
- (0, import_type_guards50.isNotNil)(icon) && icon,
12370
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("span", { children: label })
12492
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(StyledThumbnailBadge, { ...props, children: [
12493
+ (0, import_type_guards51.isNotNil)(icon) && icon,
12494
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("span", { children: label })
12371
12495
  ] });
12372
12496
  };
12373
12497
  ThumbnailBadge.displayName = "ThumbnailBadge";
12374
12498
 
12375
12499
  // src/components/Thumbnail/Thumbnail.tsx
12376
12500
  var import_react66 = require("react");
12377
- var import_styled_components88 = __toESM(require("styled-components"));
12378
- var import_type_guards52 = require("@wistia/type-guards");
12501
+ var import_styled_components89 = __toESM(require("styled-components"));
12502
+ var import_type_guards53 = require("@wistia/type-guards");
12379
12503
 
12380
12504
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12381
- var import_type_guards51 = require("@wistia/type-guards");
12382
- var import_styled_components87 = require("styled-components");
12505
+ var import_type_guards52 = require("@wistia/type-guards");
12506
+ var import_styled_components88 = require("styled-components");
12383
12507
  var gradients = {
12384
- defaultDarkOne: import_styled_components87.css`
12508
+ defaultDarkOne: import_styled_components88.css`
12385
12509
  background-color: #222d66;
12386
12510
  background-image:
12387
12511
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12389,7 +12513,7 @@ var gradients = {
12389
12513
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12390
12514
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12391
12515
  `,
12392
- defaultDarkTwo: import_styled_components87.css`
12516
+ defaultDarkTwo: import_styled_components88.css`
12393
12517
  background-color: #222d66;
12394
12518
  background-image:
12395
12519
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12397,7 +12521,7 @@ var gradients = {
12397
12521
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12398
12522
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12399
12523
  `,
12400
- defaultLightOne: import_styled_components87.css`
12524
+ defaultLightOne: import_styled_components88.css`
12401
12525
  background-color: #ccd5ff;
12402
12526
  background-image:
12403
12527
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12405,13 +12529,13 @@ var gradients = {
12405
12529
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12406
12530
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12407
12531
  `,
12408
- defaultLightTwo: import_styled_components87.css`
12532
+ defaultLightTwo: import_styled_components88.css`
12409
12533
  background-color: #ccd5ff;
12410
12534
  background-image:
12411
12535
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12412
12536
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12413
12537
  `,
12414
- defaultMidOne: import_styled_components87.css`
12538
+ defaultMidOne: import_styled_components88.css`
12415
12539
  background-color: #6b84ff;
12416
12540
  background-image:
12417
12541
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12419,13 +12543,13 @@ var gradients = {
12419
12543
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12420
12544
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12421
12545
  `,
12422
- defaultMidTwo: import_styled_components87.css`
12546
+ defaultMidTwo: import_styled_components88.css`
12423
12547
  background-color: #6b84ff;
12424
12548
  background-image:
12425
12549
  radial-gradient(ellipse at top, #2949e5, transparent),
12426
12550
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12427
12551
  `,
12428
- green: import_styled_components87.css`
12552
+ green: import_styled_components88.css`
12429
12553
  background-color: #fafffa;
12430
12554
  background-image:
12431
12555
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12433,7 +12557,7 @@ var gradients = {
12433
12557
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12434
12558
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12435
12559
  `,
12436
- greenWithPop: import_styled_components87.css`
12560
+ greenWithPop: import_styled_components88.css`
12437
12561
  background-color: #fafffa;
12438
12562
  background-image:
12439
12563
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12441,7 +12565,7 @@ var gradients = {
12441
12565
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12442
12566
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12443
12567
  `,
12444
- pink: import_styled_components87.css`
12568
+ pink: import_styled_components88.css`
12445
12569
  background-color: #fffff0;
12446
12570
  background-image:
12447
12571
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12449,7 +12573,7 @@ var gradients = {
12449
12573
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12450
12574
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12451
12575
  `,
12452
- pinkWithPop: import_styled_components87.css`
12576
+ pinkWithPop: import_styled_components88.css`
12453
12577
  background-color: #fffff0;
12454
12578
  background-image:
12455
12579
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12457,7 +12581,7 @@ var gradients = {
12457
12581
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12458
12582
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12459
12583
  `,
12460
- playfulGradientOne: import_styled_components87.css`
12584
+ playfulGradientOne: import_styled_components88.css`
12461
12585
  background-color: #f7f8ff;
12462
12586
  background-image:
12463
12587
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12465,7 +12589,7 @@ var gradients = {
12465
12589
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12466
12590
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12467
12591
  `,
12468
- playfulGradientTwo: import_styled_components87.css`
12592
+ playfulGradientTwo: import_styled_components88.css`
12469
12593
  background-color: #f7f8ff;
12470
12594
  background-image:
12471
12595
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12473,13 +12597,13 @@ var gradients = {
12473
12597
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12474
12598
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12475
12599
  `,
12476
- purple: import_styled_components87.css`
12600
+ purple: import_styled_components88.css`
12477
12601
  background-color: #f2caff;
12478
12602
  background-image:
12479
12603
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12480
12604
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12481
12605
  `,
12482
- purpleWithPop: import_styled_components87.css`
12606
+ purpleWithPop: import_styled_components88.css`
12483
12607
  background-color: #f2caff;
12484
12608
  background-image:
12485
12609
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12487,7 +12611,7 @@ var gradients = {
12487
12611
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12488
12612
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12489
12613
  `,
12490
- yellow: import_styled_components87.css`
12614
+ yellow: import_styled_components88.css`
12491
12615
  background-color: #fffff0;
12492
12616
  background-image:
12493
12617
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12495,7 +12619,7 @@ var gradients = {
12495
12619
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12496
12620
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12497
12621
  `,
12498
- yellowWithPop: import_styled_components87.css`
12622
+ yellowWithPop: import_styled_components88.css`
12499
12623
  background-color: #fffff0;
12500
12624
  background-image:
12501
12625
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12506,24 +12630,24 @@ var gradients = {
12506
12630
  };
12507
12631
  var gradientMap = Object.keys(gradients);
12508
12632
  var getBackgroundGradient = (gradientName = void 0) => {
12509
- return (0, import_type_guards51.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12633
+ return (0, import_type_guards52.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12510
12634
  };
12511
12635
 
12512
12636
  // src/components/Thumbnail/Thumbnail.tsx
12513
- var import_jsx_runtime269 = require("react/jsx-runtime");
12514
- var WideThumbnailImage = import_styled_components88.default.img`
12637
+ var import_jsx_runtime270 = require("react/jsx-runtime");
12638
+ var WideThumbnailImage = import_styled_components89.default.img`
12515
12639
  height: 100%;
12516
12640
  object-fit: cover;
12517
12641
  width: 100%;
12518
12642
  `;
12519
- var SquareThumbnailImage = import_styled_components88.default.img`
12643
+ var SquareThumbnailImage = import_styled_components89.default.img`
12520
12644
  backdrop-filter: blur(8px);
12521
12645
  object-fit: contain;
12522
12646
  width: 100%;
12523
12647
  `;
12524
12648
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12525
12649
  if (thumbnailImageType === "wide") {
12526
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12650
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12527
12651
  WideThumbnailImage,
12528
12652
  {
12529
12653
  alt: "",
@@ -12531,7 +12655,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12531
12655
  }
12532
12656
  );
12533
12657
  }
12534
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12658
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12535
12659
  SquareThumbnailImage,
12536
12660
  {
12537
12661
  alt: "",
@@ -12539,11 +12663,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12539
12663
  }
12540
12664
  );
12541
12665
  };
12542
- var StyledThumbnail = import_styled_components88.default.div`
12543
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards52.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12666
+ var StyledThumbnail = import_styled_components89.default.div`
12667
+ background-image: ${({ $backgroundUrl }) => (0, import_type_guards53.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12544
12668
  ${({ $backgroundUrl, $gradientBackground }) => (
12545
12669
  // if we don't have $backgroundUrl show a gradient
12546
- (0, import_type_guards52.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12670
+ (0, import_type_guards53.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12547
12671
  )};
12548
12672
  background-position: center center;
12549
12673
  background-size: cover;
@@ -12563,19 +12687,18 @@ var Thumbnail = (0, import_react66.forwardRef)(
12563
12687
  children,
12564
12688
  ...props
12565
12689
  }, ref) => {
12566
- const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards52.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12567
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12690
+ const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards53.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12691
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12568
12692
  StyledThumbnail,
12569
12693
  {
12570
12694
  ref,
12571
- ...props,
12572
12695
  $backgroundUrl: backgroundUrl,
12573
12696
  $gradientBackground: gradientBackground,
12574
12697
  $width: width,
12575
- role: "presentation",
12698
+ ...props,
12576
12699
  children: [
12577
- (0, import_type_guards52.isNotNil)(children) ? children : null,
12578
- (0, import_type_guards52.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12700
+ (0, import_type_guards53.isNotNil)(children) ? children : null,
12701
+ (0, import_type_guards53.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12579
12702
  ThumbnailImage,
12580
12703
  {
12581
12704
  thumbnailImageType,
@@ -12588,196 +12711,6 @@ var Thumbnail = (0, import_react66.forwardRef)(
12588
12711
  }
12589
12712
  );
12590
12713
  Thumbnail.displayName = "Thumbnail";
12591
-
12592
- // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12593
- var import_styled_components89 = __toESM(require("styled-components"));
12594
- var import_react67 = require("react");
12595
- var import_jsx_runtime270 = require("react/jsx-runtime");
12596
- var StyledThumbnailCollage = import_styled_components89.default.div`
12597
- display: grid;
12598
- grid-gap: var(--wui-space-01);
12599
- grid-template-columns: 3fr 2fr;
12600
- grid-template-rows: 1fr 1fr;
12601
- height: 100%;
12602
- width: 100%;
12603
- aspect-ratio: 16 / 9;
12604
- `;
12605
- var ThumbnailCollageImage = import_styled_components89.default.div`
12606
- ${({ $backgroundGradient }) => $backgroundGradient && getBackgroundGradient($backgroundGradient)};
12607
- background-position: center;
12608
- background-size: cover;
12609
- border-radius: var(--wui-border-radius-02);
12610
- overflow: hidden;
12611
-
12612
- :nth-child(1) {
12613
- grid-column: 1;
12614
- grid-row: 1 / 3;
12615
- }
12616
-
12617
- :only-child {
12618
- grid-column: 1 / 3;
12619
- grid-row: 1 / 3;
12620
- }
12621
-
12622
- :nth-child(2) {
12623
- grid-column: 2;
12624
-
12625
- &:last-child {
12626
- grid-row: 1 / 3;
12627
- }
12628
- }
12629
-
12630
- > * {
12631
- width: 100%;
12632
- height: 100%;
12633
- }
12634
- `;
12635
- var ThumbnailCollage = ({
12636
- children,
12637
- gradientBackground = "defaultMidOne",
12638
- ...props
12639
- }) => {
12640
- const thumbnailChildren = import_react67.Children.toArray(children).filter((child) => (0, import_react67.isValidElement)(child)).slice(0, 3);
12641
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(StyledThumbnailCollage, { ...props, children: thumbnailChildren.length > 0 ? thumbnailChildren.map((child, index) => /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12642
- ThumbnailCollageImage,
12643
- {
12644
- role: "presentation",
12645
- children: child
12646
- },
12647
- index
12648
- )) : /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12649
- ThumbnailCollageImage,
12650
- {
12651
- $backgroundGradient: gradientBackground,
12652
- role: "presentation"
12653
- }
12654
- ) });
12655
- };
12656
-
12657
- // src/components/WistiaLogo/WistiaLogo.tsx
12658
- var import_styled_components90 = __toESM(require("styled-components"));
12659
- var import_type_guards53 = require("@wistia/type-guards");
12660
- var import_jsx_runtime271 = require("react/jsx-runtime");
12661
- var renderBrandmark = (brandmarkColor, iconOnly) => {
12662
- if (iconOnly) {
12663
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12664
- "g",
12665
- {
12666
- "data-testid": "ui-wistia-logo-brandmark",
12667
- fill: brandmarkColor,
12668
- children: /* @__PURE__ */ (0, import_jsx_runtime271.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" })
12669
- }
12670
- );
12671
- }
12672
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12673
- "g",
12674
- {
12675
- "data-testid": "ui-wistia-logo-brandmark",
12676
- fill: brandmarkColor,
12677
- children: /* @__PURE__ */ (0, import_jsx_runtime271.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" })
12678
- }
12679
- );
12680
- };
12681
- var renderLogotype = (logotypeColor, iconOnly) => {
12682
- if (iconOnly) {
12683
- return null;
12684
- }
12685
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12686
- "g",
12687
- {
12688
- "data-testid": "ui-wistia-logo-logotype",
12689
- fill: logotypeColor,
12690
- children: /* @__PURE__ */ (0, import_jsx_runtime271.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" })
12691
- }
12692
- );
12693
- };
12694
- var computedViewBox = (iconOnly) => {
12695
- if (iconOnly) {
12696
- return "0 0 34.4 26.78";
12697
- }
12698
- return "0 0 144 31.47";
12699
- };
12700
- var WistiaLogoComponent = import_styled_components90.default.svg`
12701
- height: ${({ height }) => `${height}px`};
12702
-
12703
- /* ensure it will always fit on mobile */
12704
- max-height: 22vw;
12705
- max-width: 100%;
12706
-
12707
- &:hover {
12708
- path {
12709
- ${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
12710
- }
12711
- }
12712
-
12713
- ${({ $opticallyCentered, $iconOnly }) => {
12714
- if ($opticallyCentered) {
12715
- if ($iconOnly) {
12716
- return import_styled_components90.css`
12717
- aspect-ratio: 1;
12718
- padding: 11.85% 3.12% 13.91%;
12719
- `;
12720
- }
12721
- return import_styled_components90.css`
12722
- aspect-ratio: 127 / 32;
12723
- `;
12724
- }
12725
- return null;
12726
- }}
12727
- `;
12728
- var WistiaLogo = ({
12729
- description = void 0,
12730
- height = 100,
12731
- hoverColor = void 0,
12732
- href = void 0,
12733
- iconOnly = false,
12734
- opticallyCentered = false,
12735
- title = "Wistia Logo",
12736
- variant = "standard",
12737
- ...props
12738
- }) => {
12739
- const primaryColor = "#2949e5";
12740
- const darkColor = "#000934";
12741
- const lightColor = "#ffffff";
12742
- const VARIANT_COLORS = {
12743
- standard: {
12744
- brandmark: primaryColor,
12745
- logotype: darkColor
12746
- },
12747
- dark: {
12748
- brandmark: darkColor,
12749
- logotype: darkColor
12750
- },
12751
- light: {
12752
- brandmark: lightColor,
12753
- logotype: lightColor
12754
- }
12755
- };
12756
- const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12757
- const logotypeColor = VARIANT_COLORS[variant].logotype;
12758
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
12759
- WistiaLogoComponent,
12760
- {
12761
- $hoverColor: hoverColor,
12762
- $iconOnly: iconOnly,
12763
- $opticallyCentered: opticallyCentered,
12764
- height,
12765
- preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
12766
- role: "img",
12767
- viewBox: computedViewBox(iconOnly),
12768
- xmlns: "http://www.w3.org/2000/svg",
12769
- ...props,
12770
- children: [
12771
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("title", { children: title }),
12772
- (0, import_type_guards53.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("desc", { children: description }) : null,
12773
- renderBrandmark(brandmarkColor, iconOnly),
12774
- renderLogotype(logotypeColor, iconOnly)
12775
- ]
12776
- }
12777
- );
12778
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("a", { href, children: Logo }) : Logo;
12779
- };
12780
- WistiaLogo.displayName = "WistiaLogo";
12781
12714
  // Annotate the CommonJS export names for ESM import in node:
12782
12715
  0 && (module.exports = {
12783
12716
  ActionButton,
@@ -12853,7 +12786,6 @@ WistiaLogo.displayName = "WistiaLogo";
12853
12786
  Text,
12854
12787
  Thumbnail,
12855
12788
  ThumbnailBadge,
12856
- ThumbnailCollage,
12857
12789
  Tooltip,
12858
12790
  UIProvider,
12859
12791
  WistiaLogo,