@wistia/ui 0.7.1-beta.0bcaec2b.99c7ce7 → 0.7.1-beta.19d3ecde.96a2e89

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.0bcaec2b.99c7ce7
3
+ * @license @wistia/ui v0.7.1-beta.19d3ecde.96a2e89
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,
@@ -9040,26 +9039,17 @@ var import_react29 = require("react");
9040
9039
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
9041
9040
  var import_styled_components44 = __toESM(require("styled-components"));
9042
9041
  var import_jsx_runtime218 = require("react/jsx-runtime");
9043
- var CompactTooltipStyles = import_styled_components44.css`
9044
- --tooltip-font-size: var(--wui-typography-label-4-size);
9045
- --tooltip-line-height: var(--wui-typography-label-4-line-height);
9046
- --tooltip-font-weight: var(--wui-typography-label-4-weight);
9047
- --tooltip-horizontal-padding: var(--wui-space-02);
9048
- --tooltip-vertical-padding: var(--wui-space-03);
9049
- `;
9050
9042
  var StyledContent = (0, import_styled_components44.default)(import_react_tooltip2.Content)`
9051
9043
  --tooltip-font-family: var(--wui-typography-family-default);
9052
9044
  --tooltip-border-radius: var(--wui-border-radius-05);
9053
9045
  --tooltip-bg: var(--wui-color-bg-tooltip);
9054
9046
  --tooltip-color: var(--wui-color-text-on-fill);
9055
- --tooltip-font-size: var(--wui-typography-label-3-size);
9056
- --tooltip-line-height: var(--wui-typography-label-3-line-height);
9057
- --tooltip-font-weight: var(--wui-typography-label-3-weight);
9058
- --tooltip-horizontal-padding: var(--wui-space-03);
9047
+ --tooltip-font-size: var(--wui-typography-label-4-size);
9048
+ --tooltip-line-height: var(--wui-typography-label-4-line-height);
9049
+ --tooltip-font-weight: var(--wui-typography-label-4-weight);
9050
+ --tooltip-horizontal-padding: var(--wui-space-02);
9059
9051
  --tooltip-vertical-padding: var(--wui-space-03);
9060
9052
 
9061
- ${({ $compact }) => Boolean($compact) && CompactTooltipStyles};
9062
-
9063
9053
  font-family: var(--tooltip-font-family);
9064
9054
  font-size: var(--tooltip-font-size);
9065
9055
  border-radius: var(--tooltip-border-radius);
@@ -9091,12 +9081,11 @@ var StyledContent = (0, import_styled_components44.default)(import_react_tooltip
9091
9081
  `;
9092
9082
  var VISUAL_OFFSET = 6;
9093
9083
  var Tooltip = ({
9094
- delay = 700,
9084
+ delay = 500,
9095
9085
  direction = "top",
9096
9086
  content,
9097
9087
  children,
9098
9088
  forceOpen,
9099
- compact = false,
9100
9089
  hideArrow = false
9101
9090
  }) => {
9102
9091
  const rootProps = {};
@@ -9116,7 +9105,6 @@ var Tooltip = ({
9116
9105
  /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
9117
9106
  StyledContent,
9118
9107
  {
9119
- $compact: compact,
9120
9108
  side: direction,
9121
9109
  sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
9122
9110
  children: [
@@ -9462,14 +9450,7 @@ var EditableHeading = ({
9462
9450
  );
9463
9451
  }
9464
9452
  return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
9465
- /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9466
- Tooltip,
9467
- {
9468
- compact: true,
9469
- content: tooltipText,
9470
- children: HeadingComponent2
9471
- }
9472
- ),
9453
+ /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
9473
9454
  /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
9474
9455
  "button",
9475
9456
  {
@@ -12336,11 +12317,136 @@ var Tag = (0, import_react65.forwardRef)(
12336
12317
  );
12337
12318
  Tag.displayName = "Tag";
12338
12319
 
12339
- // src/components/Thumbnail/ThumbnailBadge.tsx
12320
+ // src/components/WistiaLogo/WistiaLogo.tsx
12340
12321
  var import_styled_components86 = __toESM(require("styled-components"));
12341
12322
  var import_type_guards50 = require("@wistia/type-guards");
12342
12323
  var import_jsx_runtime268 = require("react/jsx-runtime");
12343
- var StyledThumbnailBadge = import_styled_components86.default.div`
12324
+ var renderBrandmark = (brandmarkColor, iconOnly) => {
12325
+ if (iconOnly) {
12326
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12327
+ "g",
12328
+ {
12329
+ "data-testid": "ui-wistia-logo-brandmark",
12330
+ fill: brandmarkColor,
12331
+ 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" })
12332
+ }
12333
+ );
12334
+ }
12335
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12336
+ "g",
12337
+ {
12338
+ "data-testid": "ui-wistia-logo-brandmark",
12339
+ fill: brandmarkColor,
12340
+ 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" })
12341
+ }
12342
+ );
12343
+ };
12344
+ var renderLogotype = (logotypeColor, iconOnly) => {
12345
+ if (iconOnly) {
12346
+ return null;
12347
+ }
12348
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12349
+ "g",
12350
+ {
12351
+ "data-testid": "ui-wistia-logo-logotype",
12352
+ fill: logotypeColor,
12353
+ 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" })
12354
+ }
12355
+ );
12356
+ };
12357
+ var computedViewBox = (iconOnly) => {
12358
+ if (iconOnly) {
12359
+ return "0 0 34.4 26.78";
12360
+ }
12361
+ return "0 0 144 31.47";
12362
+ };
12363
+ var WistiaLogoComponent = import_styled_components86.default.svg`
12364
+ height: ${({ height }) => `${height}px`};
12365
+
12366
+ /* ensure it will always fit on mobile */
12367
+ max-height: 22vw;
12368
+ max-width: 100%;
12369
+
12370
+ &:hover {
12371
+ path {
12372
+ ${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
12373
+ }
12374
+ }
12375
+
12376
+ ${({ $opticallyCentered, $iconOnly }) => {
12377
+ if ($opticallyCentered) {
12378
+ if ($iconOnly) {
12379
+ return import_styled_components86.css`
12380
+ aspect-ratio: 1;
12381
+ padding: 11.85% 3.12% 13.91%;
12382
+ `;
12383
+ }
12384
+ return import_styled_components86.css`
12385
+ aspect-ratio: 127 / 32;
12386
+ `;
12387
+ }
12388
+ return null;
12389
+ }}
12390
+ `;
12391
+ var WistiaLogo = ({
12392
+ description = void 0,
12393
+ height = 100,
12394
+ hoverColor = void 0,
12395
+ href = void 0,
12396
+ iconOnly = false,
12397
+ opticallyCentered = false,
12398
+ title = "Wistia Logo",
12399
+ variant = "standard",
12400
+ ...props
12401
+ }) => {
12402
+ const primaryColor = "#2949e5";
12403
+ const darkColor = "#000934";
12404
+ const lightColor = "#ffffff";
12405
+ const VARIANT_COLORS = {
12406
+ standard: {
12407
+ brandmark: primaryColor,
12408
+ logotype: darkColor
12409
+ },
12410
+ dark: {
12411
+ brandmark: darkColor,
12412
+ logotype: darkColor
12413
+ },
12414
+ light: {
12415
+ brandmark: lightColor,
12416
+ logotype: lightColor
12417
+ }
12418
+ };
12419
+ const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12420
+ const logotypeColor = VARIANT_COLORS[variant].logotype;
12421
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12422
+ WistiaLogoComponent,
12423
+ {
12424
+ $hoverColor: hoverColor,
12425
+ $iconOnly: iconOnly,
12426
+ $opticallyCentered: opticallyCentered,
12427
+ height,
12428
+ preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
12429
+ role: "img",
12430
+ viewBox: computedViewBox(iconOnly),
12431
+ xmlns: "http://www.w3.org/2000/svg",
12432
+ ...props,
12433
+ children: [
12434
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("title", { children: title }),
12435
+ (0, import_type_guards50.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("desc", { children: description }) : null,
12436
+ renderBrandmark(brandmarkColor, iconOnly),
12437
+ renderLogotype(logotypeColor, iconOnly)
12438
+ ]
12439
+ }
12440
+ );
12441
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("a", { href, children: Logo }) : Logo;
12442
+ };
12443
+ WistiaLogo.displayName = "WistiaLogo";
12444
+
12445
+ // src/components/Thumbnail/ThumbnailBadge.tsx
12446
+ var import_styled_components87 = __toESM(require("styled-components"));
12447
+ var import_type_guards51 = require("@wistia/type-guards");
12448
+ var import_jsx_runtime269 = require("react/jsx-runtime");
12449
+ var StyledThumbnailBadge = import_styled_components87.default.div`
12344
12450
  align-items: center;
12345
12451
  background-color: rgb(0 0 0 / 50%);
12346
12452
  border-radius: var(--wui-border-radius-01);
@@ -12365,23 +12471,23 @@ var StyledThumbnailBadge = import_styled_components86.default.div`
12365
12471
  }
12366
12472
  `;
12367
12473
  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 })
12474
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(StyledThumbnailBadge, { ...props, children: [
12475
+ (0, import_type_guards51.isNotNil)(icon) && icon,
12476
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("span", { children: label })
12371
12477
  ] });
12372
12478
  };
12373
12479
  ThumbnailBadge.displayName = "ThumbnailBadge";
12374
12480
 
12375
12481
  // src/components/Thumbnail/Thumbnail.tsx
12376
12482
  var import_react66 = require("react");
12377
- var import_styled_components88 = __toESM(require("styled-components"));
12378
- var import_type_guards52 = require("@wistia/type-guards");
12483
+ var import_styled_components89 = __toESM(require("styled-components"));
12484
+ var import_type_guards53 = require("@wistia/type-guards");
12379
12485
 
12380
12486
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12381
- var import_type_guards51 = require("@wistia/type-guards");
12382
- var import_styled_components87 = require("styled-components");
12487
+ var import_type_guards52 = require("@wistia/type-guards");
12488
+ var import_styled_components88 = require("styled-components");
12383
12489
  var gradients = {
12384
- defaultDarkOne: import_styled_components87.css`
12490
+ defaultDarkOne: import_styled_components88.css`
12385
12491
  background-color: #222d66;
12386
12492
  background-image:
12387
12493
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12389,7 +12495,7 @@ var gradients = {
12389
12495
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12390
12496
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12391
12497
  `,
12392
- defaultDarkTwo: import_styled_components87.css`
12498
+ defaultDarkTwo: import_styled_components88.css`
12393
12499
  background-color: #222d66;
12394
12500
  background-image:
12395
12501
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12397,7 +12503,7 @@ var gradients = {
12397
12503
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12398
12504
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12399
12505
  `,
12400
- defaultLightOne: import_styled_components87.css`
12506
+ defaultLightOne: import_styled_components88.css`
12401
12507
  background-color: #ccd5ff;
12402
12508
  background-image:
12403
12509
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12405,13 +12511,13 @@ var gradients = {
12405
12511
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12406
12512
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12407
12513
  `,
12408
- defaultLightTwo: import_styled_components87.css`
12514
+ defaultLightTwo: import_styled_components88.css`
12409
12515
  background-color: #ccd5ff;
12410
12516
  background-image:
12411
12517
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12412
12518
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12413
12519
  `,
12414
- defaultMidOne: import_styled_components87.css`
12520
+ defaultMidOne: import_styled_components88.css`
12415
12521
  background-color: #6b84ff;
12416
12522
  background-image:
12417
12523
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12419,13 +12525,13 @@ var gradients = {
12419
12525
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12420
12526
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12421
12527
  `,
12422
- defaultMidTwo: import_styled_components87.css`
12528
+ defaultMidTwo: import_styled_components88.css`
12423
12529
  background-color: #6b84ff;
12424
12530
  background-image:
12425
12531
  radial-gradient(ellipse at top, #2949e5, transparent),
12426
12532
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12427
12533
  `,
12428
- green: import_styled_components87.css`
12534
+ green: import_styled_components88.css`
12429
12535
  background-color: #fafffa;
12430
12536
  background-image:
12431
12537
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12433,7 +12539,7 @@ var gradients = {
12433
12539
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12434
12540
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12435
12541
  `,
12436
- greenWithPop: import_styled_components87.css`
12542
+ greenWithPop: import_styled_components88.css`
12437
12543
  background-color: #fafffa;
12438
12544
  background-image:
12439
12545
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12441,7 +12547,7 @@ var gradients = {
12441
12547
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12442
12548
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12443
12549
  `,
12444
- pink: import_styled_components87.css`
12550
+ pink: import_styled_components88.css`
12445
12551
  background-color: #fffff0;
12446
12552
  background-image:
12447
12553
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12449,7 +12555,7 @@ var gradients = {
12449
12555
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12450
12556
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12451
12557
  `,
12452
- pinkWithPop: import_styled_components87.css`
12558
+ pinkWithPop: import_styled_components88.css`
12453
12559
  background-color: #fffff0;
12454
12560
  background-image:
12455
12561
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12457,7 +12563,7 @@ var gradients = {
12457
12563
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12458
12564
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12459
12565
  `,
12460
- playfulGradientOne: import_styled_components87.css`
12566
+ playfulGradientOne: import_styled_components88.css`
12461
12567
  background-color: #f7f8ff;
12462
12568
  background-image:
12463
12569
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12465,7 +12571,7 @@ var gradients = {
12465
12571
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12466
12572
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12467
12573
  `,
12468
- playfulGradientTwo: import_styled_components87.css`
12574
+ playfulGradientTwo: import_styled_components88.css`
12469
12575
  background-color: #f7f8ff;
12470
12576
  background-image:
12471
12577
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12473,13 +12579,13 @@ var gradients = {
12473
12579
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12474
12580
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12475
12581
  `,
12476
- purple: import_styled_components87.css`
12582
+ purple: import_styled_components88.css`
12477
12583
  background-color: #f2caff;
12478
12584
  background-image:
12479
12585
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12480
12586
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12481
12587
  `,
12482
- purpleWithPop: import_styled_components87.css`
12588
+ purpleWithPop: import_styled_components88.css`
12483
12589
  background-color: #f2caff;
12484
12590
  background-image:
12485
12591
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12487,7 +12593,7 @@ var gradients = {
12487
12593
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12488
12594
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12489
12595
  `,
12490
- yellow: import_styled_components87.css`
12596
+ yellow: import_styled_components88.css`
12491
12597
  background-color: #fffff0;
12492
12598
  background-image:
12493
12599
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12495,7 +12601,7 @@ var gradients = {
12495
12601
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12496
12602
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12497
12603
  `,
12498
- yellowWithPop: import_styled_components87.css`
12604
+ yellowWithPop: import_styled_components88.css`
12499
12605
  background-color: #fffff0;
12500
12606
  background-image:
12501
12607
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12506,24 +12612,24 @@ var gradients = {
12506
12612
  };
12507
12613
  var gradientMap = Object.keys(gradients);
12508
12614
  var getBackgroundGradient = (gradientName = void 0) => {
12509
- return (0, import_type_guards51.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12615
+ return (0, import_type_guards52.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12510
12616
  };
12511
12617
 
12512
12618
  // src/components/Thumbnail/Thumbnail.tsx
12513
- var import_jsx_runtime269 = require("react/jsx-runtime");
12514
- var WideThumbnailImage = import_styled_components88.default.img`
12619
+ var import_jsx_runtime270 = require("react/jsx-runtime");
12620
+ var WideThumbnailImage = import_styled_components89.default.img`
12515
12621
  height: 100%;
12516
12622
  object-fit: cover;
12517
12623
  width: 100%;
12518
12624
  `;
12519
- var SquareThumbnailImage = import_styled_components88.default.img`
12625
+ var SquareThumbnailImage = import_styled_components89.default.img`
12520
12626
  backdrop-filter: blur(8px);
12521
12627
  object-fit: contain;
12522
12628
  width: 100%;
12523
12629
  `;
12524
12630
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12525
12631
  if (thumbnailImageType === "wide") {
12526
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12632
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12527
12633
  WideThumbnailImage,
12528
12634
  {
12529
12635
  alt: "",
@@ -12531,7 +12637,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12531
12637
  }
12532
12638
  );
12533
12639
  }
12534
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12640
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12535
12641
  SquareThumbnailImage,
12536
12642
  {
12537
12643
  alt: "",
@@ -12539,11 +12645,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12539
12645
  }
12540
12646
  );
12541
12647
  };
12542
- var StyledThumbnail = import_styled_components88.default.div`
12543
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards52.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12648
+ var StyledThumbnail = import_styled_components89.default.div`
12649
+ background-image: ${({ $backgroundUrl }) => (0, import_type_guards53.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12544
12650
  ${({ $backgroundUrl, $gradientBackground }) => (
12545
12651
  // if we don't have $backgroundUrl show a gradient
12546
- (0, import_type_guards52.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12652
+ (0, import_type_guards53.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
12547
12653
  )};
12548
12654
  background-position: center center;
12549
12655
  background-size: cover;
@@ -12563,19 +12669,18 @@ var Thumbnail = (0, import_react66.forwardRef)(
12563
12669
  children,
12564
12670
  ...props
12565
12671
  }, ref) => {
12566
- const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards52.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12567
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12672
+ const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards53.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
12673
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12568
12674
  StyledThumbnail,
12569
12675
  {
12570
12676
  ref,
12571
- ...props,
12572
12677
  $backgroundUrl: backgroundUrl,
12573
12678
  $gradientBackground: gradientBackground,
12574
12679
  $width: width,
12575
- role: "presentation",
12680
+ ...props,
12576
12681
  children: [
12577
- (0, import_type_guards52.isNotNil)(children) ? children : null,
12578
- (0, import_type_guards52.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12682
+ (0, import_type_guards53.isNotNil)(children) ? children : null,
12683
+ (0, import_type_guards53.isNotNil)(thumbnailUrl) ? /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12579
12684
  ThumbnailImage,
12580
12685
  {
12581
12686
  thumbnailImageType,
@@ -12588,191 +12693,6 @@ var Thumbnail = (0, import_react66.forwardRef)(
12588
12693
  }
12589
12694
  );
12590
12695
  Thumbnail.displayName = "Thumbnail";
12591
-
12592
- // src/components/ThumbnailCollage/ThumbnailCollage.tsx
12593
- var import_styled_components89 = __toESM(require("styled-components"));
12594
- var import_type_guards53 = require("@wistia/type-guards");
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
- ${({ $thumbnailUrl }) => (0, import_type_guards53.isNotNil)($thumbnailUrl) && `background-image: url(${$thumbnailUrl})`};
12607
- ${({ $backgroundGradient }) => $backgroundGradient && getBackgroundGradient($backgroundGradient)};
12608
- background-position: center;
12609
- background-size: cover;
12610
- border-radius: var(--wui-border-radius-02);
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
- var ThumbnailCollage = ({
12631
- thumbnailUrls,
12632
- gradientBackground = "defaultMidOne",
12633
- ...props
12634
- }) => {
12635
- const displayThumbnails = thumbnailUrls.slice(0, 3);
12636
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(StyledThumbnailCollage, { ...props, children: displayThumbnails.length ? displayThumbnails.map((thumbnailUrl) => /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12637
- ThumbnailCollageImage,
12638
- {
12639
- $thumbnailUrl: thumbnailUrl,
12640
- role: "presentation"
12641
- },
12642
- thumbnailUrl
12643
- )) : /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12644
- ThumbnailCollageImage,
12645
- {
12646
- $backgroundGradient: gradientBackground,
12647
- role: "presentation"
12648
- }
12649
- ) });
12650
- };
12651
-
12652
- // src/components/WistiaLogo/WistiaLogo.tsx
12653
- var import_styled_components90 = __toESM(require("styled-components"));
12654
- var import_type_guards54 = require("@wistia/type-guards");
12655
- var import_jsx_runtime271 = require("react/jsx-runtime");
12656
- var renderBrandmark = (brandmarkColor, iconOnly) => {
12657
- if (iconOnly) {
12658
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12659
- "g",
12660
- {
12661
- "data-testid": "ui-wistia-logo-brandmark",
12662
- fill: brandmarkColor,
12663
- 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" })
12664
- }
12665
- );
12666
- }
12667
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12668
- "g",
12669
- {
12670
- "data-testid": "ui-wistia-logo-brandmark",
12671
- fill: brandmarkColor,
12672
- 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" })
12673
- }
12674
- );
12675
- };
12676
- var renderLogotype = (logotypeColor, iconOnly) => {
12677
- if (iconOnly) {
12678
- return null;
12679
- }
12680
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
12681
- "g",
12682
- {
12683
- "data-testid": "ui-wistia-logo-logotype",
12684
- fill: logotypeColor,
12685
- 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" })
12686
- }
12687
- );
12688
- };
12689
- var computedViewBox = (iconOnly) => {
12690
- if (iconOnly) {
12691
- return "0 0 34.4 26.78";
12692
- }
12693
- return "0 0 144 31.47";
12694
- };
12695
- var WistiaLogoComponent = import_styled_components90.default.svg`
12696
- height: ${({ height }) => `${height}px`};
12697
-
12698
- /* ensure it will always fit on mobile */
12699
- max-height: 22vw;
12700
- max-width: 100%;
12701
-
12702
- &:hover {
12703
- path {
12704
- ${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
12705
- }
12706
- }
12707
-
12708
- ${({ $opticallyCentered, $iconOnly }) => {
12709
- if ($opticallyCentered) {
12710
- if ($iconOnly) {
12711
- return import_styled_components90.css`
12712
- aspect-ratio: 1;
12713
- padding: 11.85% 3.12% 13.91%;
12714
- `;
12715
- }
12716
- return import_styled_components90.css`
12717
- aspect-ratio: 127 / 32;
12718
- `;
12719
- }
12720
- return null;
12721
- }}
12722
- `;
12723
- var WistiaLogo = ({
12724
- description = void 0,
12725
- height = 100,
12726
- hoverColor = void 0,
12727
- href = void 0,
12728
- iconOnly = false,
12729
- opticallyCentered = false,
12730
- title = "Wistia Logo",
12731
- variant = "standard",
12732
- ...props
12733
- }) => {
12734
- const primaryColor = "#2949e5";
12735
- const darkColor = "#000934";
12736
- const lightColor = "#ffffff";
12737
- const VARIANT_COLORS = {
12738
- standard: {
12739
- brandmark: primaryColor,
12740
- logotype: darkColor
12741
- },
12742
- dark: {
12743
- brandmark: darkColor,
12744
- logotype: darkColor
12745
- },
12746
- light: {
12747
- brandmark: lightColor,
12748
- logotype: lightColor
12749
- }
12750
- };
12751
- const brandmarkColor = VARIANT_COLORS[variant].brandmark;
12752
- const logotypeColor = VARIANT_COLORS[variant].logotype;
12753
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
12754
- WistiaLogoComponent,
12755
- {
12756
- $hoverColor: hoverColor,
12757
- $iconOnly: iconOnly,
12758
- $opticallyCentered: opticallyCentered,
12759
- height,
12760
- preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
12761
- role: "img",
12762
- viewBox: computedViewBox(iconOnly),
12763
- xmlns: "http://www.w3.org/2000/svg",
12764
- ...props,
12765
- children: [
12766
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("title", { children: title }),
12767
- (0, import_type_guards54.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("desc", { children: description }) : null,
12768
- renderBrandmark(brandmarkColor, iconOnly),
12769
- renderLogotype(logotypeColor, iconOnly)
12770
- ]
12771
- }
12772
- );
12773
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("a", { href, children: Logo }) : Logo;
12774
- };
12775
- WistiaLogo.displayName = "WistiaLogo";
12776
12696
  // Annotate the CommonJS export names for ESM import in node:
12777
12697
  0 && (module.exports = {
12778
12698
  ActionButton,
@@ -12848,7 +12768,6 @@ WistiaLogo.displayName = "WistiaLogo";
12848
12768
  Text,
12849
12769
  Thumbnail,
12850
12770
  ThumbnailBadge,
12851
- ThumbnailCollage,
12852
12771
  Tooltip,
12853
12772
  UIProvider,
12854
12773
  WistiaLogo,