@wistia/ui 0.6.40 → 0.6.41-beta.1462887a.f87e125
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 +280 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +94 -2
- package/dist/index.d.ts +94 -2
- package/dist/index.mjs +279 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.41-beta.1462887a.f87e125
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -110,6 +110,8 @@ __export(index_exports, {
|
|
|
110
110
|
Tabs: () => Tabs,
|
|
111
111
|
Tag: () => Tag,
|
|
112
112
|
Text: () => Text,
|
|
113
|
+
Thumbnail: () => Thumbnail,
|
|
114
|
+
ThumbnailBadge: () => ThumbnailBadge,
|
|
113
115
|
Tooltip: () => Tooltip,
|
|
114
116
|
UIProvider: () => UIProvider,
|
|
115
117
|
WistiaLogo: () => WistiaLogo,
|
|
@@ -10754,10 +10756,12 @@ var StyledContent2 = (0, import_styled_components63.default)(import_react_popove
|
|
|
10754
10756
|
${({ $unstyled }) => !$unstyled && import_styled_components63.css`
|
|
10755
10757
|
border-radius: var(--wui-border-radius-02);
|
|
10756
10758
|
padding: var(--wui-space-04);
|
|
10757
|
-
max-width: 320px;
|
|
10759
|
+
max-width: var(--wui-popover-max-width, 320px);
|
|
10760
|
+
max-height: var(--wui-popover-max-height, auto);
|
|
10758
10761
|
background-color: var(--wui-color-bg-surface);
|
|
10759
10762
|
box-shadow: var(--wui-elevation-01);
|
|
10760
10763
|
border: 1px solid var(--wui-color-border);
|
|
10764
|
+
overflow: auto;
|
|
10761
10765
|
`}
|
|
10762
10766
|
|
|
10763
10767
|
[data-wui-popover-close] {
|
|
@@ -10771,10 +10775,16 @@ var Popover = ({
|
|
|
10771
10775
|
trigger,
|
|
10772
10776
|
isOpen = false,
|
|
10773
10777
|
hideCloseButton = false,
|
|
10778
|
+
maxWidth = "320px",
|
|
10779
|
+
maxHeight = "auto",
|
|
10774
10780
|
onOpenChange,
|
|
10775
10781
|
unstyled = false,
|
|
10776
10782
|
...props
|
|
10777
10783
|
}) => {
|
|
10784
|
+
const style = {
|
|
10785
|
+
"--wui-popover-max-width": maxWidth,
|
|
10786
|
+
"--wui-popover-max-height": maxHeight
|
|
10787
|
+
};
|
|
10778
10788
|
return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
10779
10789
|
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_popover.Trigger, { asChild: true, children: trigger }),
|
|
10780
10790
|
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
|
|
@@ -10783,6 +10793,7 @@ var Popover = ({
|
|
|
10783
10793
|
sideOffset: 8,
|
|
10784
10794
|
...props,
|
|
10785
10795
|
$unstyled: unstyled,
|
|
10796
|
+
style,
|
|
10786
10797
|
children: [
|
|
10787
10798
|
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
10788
10799
|
IconButton,
|
|
@@ -12247,27 +12258,278 @@ var Tag = (0, import_react65.forwardRef)(
|
|
|
12247
12258
|
);
|
|
12248
12259
|
Tag.displayName = "Tag";
|
|
12249
12260
|
|
|
12250
|
-
// src/components/
|
|
12261
|
+
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
12251
12262
|
var import_styled_components85 = __toESM(require("styled-components"));
|
|
12252
12263
|
var import_type_guards47 = require("@wistia/type-guards");
|
|
12253
12264
|
var import_jsx_runtime268 = require("react/jsx-runtime");
|
|
12265
|
+
var StyledThumbnailBadge = import_styled_components85.default.div`
|
|
12266
|
+
align-items: center;
|
|
12267
|
+
background-color: rgb(0 0 0 / 50%);
|
|
12268
|
+
border-radius: var(--wui-border-radius-01);
|
|
12269
|
+
bottom: var(--wui-space-01);
|
|
12270
|
+
color: var(--wui-color-text-on-fill);
|
|
12271
|
+
display: flex;
|
|
12272
|
+
font-size: var(--wui-typography-body-4-size);
|
|
12273
|
+
font-weight: var(--wui-typography-weight-body-bold);
|
|
12274
|
+
gap: var(--wui-space-01);
|
|
12275
|
+
padding: 0 var(--wui-space-01);
|
|
12276
|
+
position: absolute;
|
|
12277
|
+
right: var(--wui-space-01);
|
|
12278
|
+
z-index: 1;
|
|
12279
|
+
|
|
12280
|
+
svg {
|
|
12281
|
+
height: 12px;
|
|
12282
|
+
width: 12px;
|
|
12283
|
+
|
|
12284
|
+
path {
|
|
12285
|
+
color: var(--wui-color-icon-on-fill);
|
|
12286
|
+
}
|
|
12287
|
+
}
|
|
12288
|
+
`;
|
|
12289
|
+
var ThumbnailBadge = ({
|
|
12290
|
+
icon,
|
|
12291
|
+
label,
|
|
12292
|
+
...otherProps
|
|
12293
|
+
}) => {
|
|
12294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(StyledThumbnailBadge, { ...otherProps, children: [
|
|
12295
|
+
(0, import_type_guards47.isNotNil)(icon) && icon,
|
|
12296
|
+
/* @__PURE__ */ (0, import_jsx_runtime268.jsx)("span", { children: label })
|
|
12297
|
+
] });
|
|
12298
|
+
};
|
|
12299
|
+
ThumbnailBadge.displayName = "ThumbnailBadge";
|
|
12300
|
+
|
|
12301
|
+
// src/components/Thumbnail/Thumbnail.tsx
|
|
12302
|
+
var import_react66 = require("react");
|
|
12303
|
+
var import_styled_components87 = __toESM(require("styled-components"));
|
|
12304
|
+
var import_type_guards49 = require("@wistia/type-guards");
|
|
12305
|
+
|
|
12306
|
+
// src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
|
|
12307
|
+
var import_type_guards48 = require("@wistia/type-guards");
|
|
12308
|
+
var import_styled_components86 = require("styled-components");
|
|
12309
|
+
var gradients = {
|
|
12310
|
+
defaultDarkOne: import_styled_components86.css`
|
|
12311
|
+
background-color: #222d66;
|
|
12312
|
+
background-image:
|
|
12313
|
+
radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
12314
|
+
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
12315
|
+
radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
|
|
12316
|
+
radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
|
|
12317
|
+
`,
|
|
12318
|
+
defaultDarkTwo: import_styled_components86.css`
|
|
12319
|
+
background-color: #222d66;
|
|
12320
|
+
background-image:
|
|
12321
|
+
radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
|
|
12322
|
+
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%),
|
|
12323
|
+
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
12324
|
+
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12325
|
+
`,
|
|
12326
|
+
defaultLightOne: import_styled_components86.css`
|
|
12327
|
+
background-color: #ccd5ff;
|
|
12328
|
+
background-image:
|
|
12329
|
+
radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
|
|
12330
|
+
radial-gradient(farthest-corner at top left, #ccd5ff, transparent 65%),
|
|
12331
|
+
radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
|
|
12332
|
+
radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
|
|
12333
|
+
`,
|
|
12334
|
+
defaultLightTwo: import_styled_components86.css`
|
|
12335
|
+
background-color: #ccd5ff;
|
|
12336
|
+
background-image:
|
|
12337
|
+
radial-gradient(ellipse at top, #ccd5ff, transparent),
|
|
12338
|
+
radial-gradient(ellipse at bottom, #6b84ff, transparent);
|
|
12339
|
+
`,
|
|
12340
|
+
defaultMidOne: import_styled_components86.css`
|
|
12341
|
+
background-color: #6b84ff;
|
|
12342
|
+
background-image:
|
|
12343
|
+
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
|
|
12344
|
+
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
12345
|
+
radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
|
|
12346
|
+
radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
|
|
12347
|
+
`,
|
|
12348
|
+
defaultMidTwo: import_styled_components86.css`
|
|
12349
|
+
background-color: #6b84ff;
|
|
12350
|
+
background-image:
|
|
12351
|
+
radial-gradient(ellipse at top, #2949e5, transparent),
|
|
12352
|
+
radial-gradient(ellipse at bottom, #ccd5ff, transparent);
|
|
12353
|
+
`,
|
|
12354
|
+
green: import_styled_components86.css`
|
|
12355
|
+
background-color: #fafffa;
|
|
12356
|
+
background-image:
|
|
12357
|
+
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
12358
|
+
radial-gradient(farthest-corner at top right, #268713, transparent 50%),
|
|
12359
|
+
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12360
|
+
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
12361
|
+
`,
|
|
12362
|
+
greenWithPop: import_styled_components86.css`
|
|
12363
|
+
background-color: #fafffa;
|
|
12364
|
+
background-image:
|
|
12365
|
+
radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
|
|
12366
|
+
radial-gradient(farthest-corner at top right, #2949e5, transparent 50%),
|
|
12367
|
+
radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
|
|
12368
|
+
radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
|
|
12369
|
+
`,
|
|
12370
|
+
pink: import_styled_components86.css`
|
|
12371
|
+
background-color: #fffff0;
|
|
12372
|
+
background-image:
|
|
12373
|
+
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
|
|
12374
|
+
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
12375
|
+
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
12376
|
+
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
|
|
12377
|
+
`,
|
|
12378
|
+
pinkWithPop: import_styled_components86.css`
|
|
12379
|
+
background-color: #fffff0;
|
|
12380
|
+
background-image:
|
|
12381
|
+
radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
|
|
12382
|
+
radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
|
|
12383
|
+
radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
|
|
12384
|
+
radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
|
|
12385
|
+
`,
|
|
12386
|
+
playfulGradientOne: import_styled_components86.css`
|
|
12387
|
+
background-color: #f7f8ff;
|
|
12388
|
+
background-image:
|
|
12389
|
+
radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
|
|
12390
|
+
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
12391
|
+
radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
|
|
12392
|
+
radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
|
|
12393
|
+
`,
|
|
12394
|
+
playfulGradientTwo: import_styled_components86.css`
|
|
12395
|
+
background-color: #f7f8ff;
|
|
12396
|
+
background-image:
|
|
12397
|
+
radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
|
|
12398
|
+
radial-gradient(farthest-corner at bottom right, #eff18d, transparent 50%),
|
|
12399
|
+
radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
|
|
12400
|
+
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12401
|
+
`,
|
|
12402
|
+
purple: import_styled_components86.css`
|
|
12403
|
+
background-color: #f2caff;
|
|
12404
|
+
background-image:
|
|
12405
|
+
radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
|
|
12406
|
+
radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
|
|
12407
|
+
`,
|
|
12408
|
+
purpleWithPop: import_styled_components86.css`
|
|
12409
|
+
background-color: #f2caff;
|
|
12410
|
+
background-image:
|
|
12411
|
+
radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
|
|
12412
|
+
radial-gradient(farthest-corner at top left, #d65cff, transparent 65%),
|
|
12413
|
+
radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
|
|
12414
|
+
radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
|
|
12415
|
+
`,
|
|
12416
|
+
yellow: import_styled_components86.css`
|
|
12417
|
+
background-color: #fffff0;
|
|
12418
|
+
background-image:
|
|
12419
|
+
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
12420
|
+
radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
|
|
12421
|
+
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
12422
|
+
radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
|
|
12423
|
+
`,
|
|
12424
|
+
yellowWithPop: import_styled_components86.css`
|
|
12425
|
+
background-color: #fffff0;
|
|
12426
|
+
background-image:
|
|
12427
|
+
radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
|
|
12428
|
+
radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
|
|
12429
|
+
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
12430
|
+
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
|
|
12431
|
+
`
|
|
12432
|
+
};
|
|
12433
|
+
var gradientMap = Object.keys(gradients);
|
|
12434
|
+
var getBackgroundGradient = (gradientName = void 0) => {
|
|
12435
|
+
return (0, import_type_guards48.isNotNil)(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
|
|
12436
|
+
};
|
|
12437
|
+
|
|
12438
|
+
// src/components/Thumbnail/Thumbnail.tsx
|
|
12439
|
+
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
12440
|
+
var WideThumbnailImage = import_styled_components87.default.img`
|
|
12441
|
+
height: 100%;
|
|
12442
|
+
object-fit: cover;
|
|
12443
|
+
width: 100%;
|
|
12444
|
+
`;
|
|
12445
|
+
var SquareThumbnailImage = import_styled_components87.default.img`
|
|
12446
|
+
backdrop-filter: blur(8px);
|
|
12447
|
+
object-fit: contain;
|
|
12448
|
+
width: 100%;
|
|
12449
|
+
`;
|
|
12450
|
+
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
12451
|
+
if (thumbnailImageType === "wide") {
|
|
12452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
12453
|
+
WideThumbnailImage,
|
|
12454
|
+
{
|
|
12455
|
+
alt: "",
|
|
12456
|
+
src: thumbnailUrl
|
|
12457
|
+
}
|
|
12458
|
+
);
|
|
12459
|
+
}
|
|
12460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
12461
|
+
SquareThumbnailImage,
|
|
12462
|
+
{
|
|
12463
|
+
alt: "",
|
|
12464
|
+
src: thumbnailUrl
|
|
12465
|
+
}
|
|
12466
|
+
);
|
|
12467
|
+
};
|
|
12468
|
+
var StyledThumbnail = import_styled_components87.default.div`
|
|
12469
|
+
${({ $gradientBackground }) => getBackgroundGradient($gradientBackground)};
|
|
12470
|
+
aspect-ratio: 16 / 9;
|
|
12471
|
+
background: ${({ $backgroundUrl }) => (0, import_type_guards49.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}') center / cover` : void 0};
|
|
12472
|
+
border-radius: 4px;
|
|
12473
|
+
display: flex;
|
|
12474
|
+
overflow: hidden;
|
|
12475
|
+
position: relative;
|
|
12476
|
+
width: ${({ $width }) => $width};
|
|
12477
|
+
`;
|
|
12478
|
+
var Thumbnail = (0, import_react66.forwardRef)(
|
|
12479
|
+
({
|
|
12480
|
+
gradientBackground = "defaultMidOne",
|
|
12481
|
+
thumbnailImageType = "square",
|
|
12482
|
+
thumbnailUrl,
|
|
12483
|
+
width = "100%",
|
|
12484
|
+
children,
|
|
12485
|
+
...otherProps
|
|
12486
|
+
}, ref) => {
|
|
12487
|
+
const backgroundUrl = thumbnailImageType === "square" && (0, import_type_guards49.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0;
|
|
12488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
|
|
12489
|
+
StyledThumbnail,
|
|
12490
|
+
{
|
|
12491
|
+
ref,
|
|
12492
|
+
$backgroundUrl: backgroundUrl,
|
|
12493
|
+
$gradientBackground: gradientBackground,
|
|
12494
|
+
$width: width,
|
|
12495
|
+
...otherProps,
|
|
12496
|
+
children: [
|
|
12497
|
+
(0, import_type_guards49.isNotNil)(children) && children,
|
|
12498
|
+
(0, import_type_guards49.isNotNil)(thumbnailUrl) && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
12499
|
+
ThumbnailImage,
|
|
12500
|
+
{
|
|
12501
|
+
thumbnailImageType,
|
|
12502
|
+
thumbnailUrl
|
|
12503
|
+
}
|
|
12504
|
+
)
|
|
12505
|
+
]
|
|
12506
|
+
}
|
|
12507
|
+
);
|
|
12508
|
+
}
|
|
12509
|
+
);
|
|
12510
|
+
Thumbnail.displayName = "Thumbnail";
|
|
12511
|
+
|
|
12512
|
+
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
12513
|
+
var import_styled_components88 = __toESM(require("styled-components"));
|
|
12514
|
+
var import_type_guards50 = require("@wistia/type-guards");
|
|
12515
|
+
var import_jsx_runtime270 = require("react/jsx-runtime");
|
|
12254
12516
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
12255
12517
|
if (iconOnly) {
|
|
12256
|
-
return /* @__PURE__ */ (0,
|
|
12518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
12257
12519
|
"g",
|
|
12258
12520
|
{
|
|
12259
12521
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
12260
12522
|
fill: brandmarkColor,
|
|
12261
|
-
children: /* @__PURE__ */ (0,
|
|
12523
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime270.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" })
|
|
12262
12524
|
}
|
|
12263
12525
|
);
|
|
12264
12526
|
}
|
|
12265
|
-
return /* @__PURE__ */ (0,
|
|
12527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
12266
12528
|
"g",
|
|
12267
12529
|
{
|
|
12268
12530
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
12269
12531
|
fill: brandmarkColor,
|
|
12270
|
-
children: /* @__PURE__ */ (0,
|
|
12532
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime270.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" })
|
|
12271
12533
|
}
|
|
12272
12534
|
);
|
|
12273
12535
|
};
|
|
@@ -12275,12 +12537,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
12275
12537
|
if (iconOnly) {
|
|
12276
12538
|
return null;
|
|
12277
12539
|
}
|
|
12278
|
-
return /* @__PURE__ */ (0,
|
|
12540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
12279
12541
|
"g",
|
|
12280
12542
|
{
|
|
12281
12543
|
"data-testid": "ui-wistia-logo-logotype",
|
|
12282
12544
|
fill: logotypeColor,
|
|
12283
|
-
children: /* @__PURE__ */ (0,
|
|
12545
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime270.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" })
|
|
12284
12546
|
}
|
|
12285
12547
|
);
|
|
12286
12548
|
};
|
|
@@ -12290,7 +12552,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
12290
12552
|
}
|
|
12291
12553
|
return "0 0 144 31.47";
|
|
12292
12554
|
};
|
|
12293
|
-
var WistiaLogoComponent =
|
|
12555
|
+
var WistiaLogoComponent = import_styled_components88.default.svg`
|
|
12294
12556
|
height: ${({ height }) => `${height}px`};
|
|
12295
12557
|
|
|
12296
12558
|
/* ensure it will always fit on mobile */
|
|
@@ -12306,12 +12568,12 @@ var WistiaLogoComponent = import_styled_components85.default.svg`
|
|
|
12306
12568
|
${({ $opticallyCentered, $iconOnly }) => {
|
|
12307
12569
|
if ($opticallyCentered) {
|
|
12308
12570
|
if ($iconOnly) {
|
|
12309
|
-
return
|
|
12571
|
+
return import_styled_components88.css`
|
|
12310
12572
|
aspect-ratio: 1;
|
|
12311
12573
|
padding: 11.85% 3.12% 13.91%;
|
|
12312
12574
|
`;
|
|
12313
12575
|
}
|
|
12314
|
-
return
|
|
12576
|
+
return import_styled_components88.css`
|
|
12315
12577
|
aspect-ratio: 127 / 32;
|
|
12316
12578
|
`;
|
|
12317
12579
|
}
|
|
@@ -12348,7 +12610,7 @@ var WistiaLogo = ({
|
|
|
12348
12610
|
};
|
|
12349
12611
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
12350
12612
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
12351
|
-
const Logo = /* @__PURE__ */ (0,
|
|
12613
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
|
|
12352
12614
|
WistiaLogoComponent,
|
|
12353
12615
|
{
|
|
12354
12616
|
$hoverColor: hoverColor,
|
|
@@ -12361,14 +12623,14 @@ var WistiaLogo = ({
|
|
|
12361
12623
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12362
12624
|
...otherProps,
|
|
12363
12625
|
children: [
|
|
12364
|
-
/* @__PURE__ */ (0,
|
|
12365
|
-
(0,
|
|
12626
|
+
/* @__PURE__ */ (0, import_jsx_runtime270.jsx)("title", { children: title }),
|
|
12627
|
+
(0, import_type_guards50.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("desc", { children: description }) : null,
|
|
12366
12628
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
12367
12629
|
renderLogotype(logotypeColor, iconOnly)
|
|
12368
12630
|
]
|
|
12369
12631
|
}
|
|
12370
12632
|
);
|
|
12371
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
12633
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("a", { href, children: Logo }) : Logo;
|
|
12372
12634
|
};
|
|
12373
12635
|
WistiaLogo.displayName = "WistiaLogo";
|
|
12374
12636
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -12444,6 +12706,8 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
12444
12706
|
Tabs,
|
|
12445
12707
|
Tag,
|
|
12446
12708
|
Text,
|
|
12709
|
+
Thumbnail,
|
|
12710
|
+
ThumbnailBadge,
|
|
12447
12711
|
Tooltip,
|
|
12448
12712
|
UIProvider,
|
|
12449
12713
|
WistiaLogo,
|