@wistia/ui 0.6.3 → 0.6.4-beta.3d84d1c3.070a742
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 +26 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +30 -7
- 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.4-beta.3d84d1c3.070a742
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1300,7 +1300,7 @@ var typographyTokens = import_styled_components7.css`
|
|
|
1300
1300
|
--wui-typography-heading-2-family: var(--wui-typography-family-brand);
|
|
1301
1301
|
--wui-typography-heading-2-line-height: 38px;
|
|
1302
1302
|
--wui-typography-heading-2-size: 32px;
|
|
1303
|
-
--wui-typography-heading-2-weight: var(--wui-typography-weight-brand-
|
|
1303
|
+
--wui-typography-heading-2-weight: var(--wui-typography-weight-brand-black);
|
|
1304
1304
|
|
|
1305
1305
|
/* Heading 3 */
|
|
1306
1306
|
--wui-typography-heading-3-family: var(--wui-typography-family-brand);
|
|
@@ -5967,13 +5967,17 @@ var Link = (0, import_react11.forwardRef)(
|
|
|
5967
5967
|
} catch (error) {
|
|
5968
5968
|
console.error(error);
|
|
5969
5969
|
} finally {
|
|
5970
|
-
if (
|
|
5970
|
+
if ((0, import_type_guards12.isFunction)(props.onClick)) {
|
|
5971
|
+
props.onClick(event);
|
|
5972
|
+
} else if (routingCallback !== null) {
|
|
5971
5973
|
routingCallback();
|
|
5972
5974
|
} else if ((0, import_type_guards12.isNotNil)(to)) {
|
|
5973
5975
|
window.location.assign(to);
|
|
5974
5976
|
} else {
|
|
5975
5977
|
}
|
|
5976
5978
|
}
|
|
5979
|
+
} else if ((0, import_type_guards12.isFunction)(props.onClick)) {
|
|
5980
|
+
props.onClick(event);
|
|
5977
5981
|
} else {
|
|
5978
5982
|
}
|
|
5979
5983
|
};
|
|
@@ -10340,6 +10344,21 @@ var WistiaLogoComponent = import_styled_components70.default.svg`
|
|
|
10340
10344
|
${({ $hoverColor }) => $hoverColor !== void 0 ? `fill: ${$hoverColor}` : null};
|
|
10341
10345
|
}
|
|
10342
10346
|
}
|
|
10347
|
+
|
|
10348
|
+
${({ $opticallyCentered, $iconOnly }) => {
|
|
10349
|
+
if ($opticallyCentered) {
|
|
10350
|
+
if ($iconOnly) {
|
|
10351
|
+
return import_styled_components70.css`
|
|
10352
|
+
aspect-ratio: 1;
|
|
10353
|
+
padding: 11.85% 3.12% 13.91%;
|
|
10354
|
+
`;
|
|
10355
|
+
}
|
|
10356
|
+
return import_styled_components70.css`
|
|
10357
|
+
aspect-ratio: 127 / 32;
|
|
10358
|
+
`;
|
|
10359
|
+
}
|
|
10360
|
+
return null;
|
|
10361
|
+
}}
|
|
10343
10362
|
`;
|
|
10344
10363
|
var WistiaLogo = ({
|
|
10345
10364
|
description = void 0,
|
|
@@ -10347,6 +10366,7 @@ var WistiaLogo = ({
|
|
|
10347
10366
|
hoverColor = void 0,
|
|
10348
10367
|
href = void 0,
|
|
10349
10368
|
iconOnly = false,
|
|
10369
|
+
opticallyCentered = false,
|
|
10350
10370
|
title = "Wistia Logo",
|
|
10351
10371
|
variant = "standard",
|
|
10352
10372
|
...otherProps
|
|
@@ -10374,7 +10394,10 @@ var WistiaLogo = ({
|
|
|
10374
10394
|
WistiaLogoComponent,
|
|
10375
10395
|
{
|
|
10376
10396
|
$hoverColor: hoverColor,
|
|
10397
|
+
$iconOnly: iconOnly,
|
|
10398
|
+
$opticallyCentered: opticallyCentered,
|
|
10377
10399
|
height,
|
|
10400
|
+
preserveAspectRatio: opticallyCentered ? "xMidYMin" : void 0,
|
|
10378
10401
|
role: "img",
|
|
10379
10402
|
viewBox: computedViewBox(iconOnly),
|
|
10380
10403
|
xmlns: "http://www.w3.org/2000/svg",
|