@wistia/ui 0.6.30 → 0.6.31-beta.554b142e.bbe400b
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 +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.31-beta.554b142e.bbe400b
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6660,7 +6660,8 @@ var Link = forwardRef(
|
|
|
6660
6660
|
...commonProps,
|
|
6661
6661
|
...externalLinkProps
|
|
6662
6662
|
};
|
|
6663
|
-
|
|
6663
|
+
const shouldUseReactRouterLink = inRouterContext && type !== "external" && !to?.startsWith("http");
|
|
6664
|
+
return shouldUseReactRouterLink ? /* @__PURE__ */ jsx192(
|
|
6664
6665
|
StyledLink,
|
|
6665
6666
|
{
|
|
6666
6667
|
as: RouterLink,
|
|
@@ -7186,7 +7187,7 @@ Badge.displayName = "Badge";
|
|
|
7186
7187
|
// src/components/Box/Box.tsx
|
|
7187
7188
|
import { Children, cloneElement as cloneElement2, forwardRef as forwardRef5 } from "react";
|
|
7188
7189
|
import styled10 from "styled-components";
|
|
7189
|
-
import { isNotNil as isNotNil7, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined4
|
|
7190
|
+
import { isNotNil as isNotNil7, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
|
|
7190
7191
|
|
|
7191
7192
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
7192
7193
|
var makePolymorphic = (component) => {
|
|
@@ -7299,20 +7300,20 @@ var BoxComponent = forwardRef5(
|
|
|
7299
7300
|
...otherProps
|
|
7300
7301
|
}, ref) => {
|
|
7301
7302
|
if (isNotUndefined4(height)) {
|
|
7302
|
-
if (
|
|
7303
|
+
if (fill === true || fill === "vertical") {
|
|
7303
7304
|
throw new Error('Cannot use height prop with fill="vertical" or fill={true}');
|
|
7304
7305
|
}
|
|
7305
|
-
if (
|
|
7306
|
+
if (fillViewport === true || fillViewport === "vertical") {
|
|
7306
7307
|
throw new Error(
|
|
7307
7308
|
'Cannot use height prop with fillViewport="vertical" or fillViewport={true}'
|
|
7308
7309
|
);
|
|
7309
7310
|
}
|
|
7310
7311
|
}
|
|
7311
7312
|
if (isNotUndefined4(width)) {
|
|
7312
|
-
if (
|
|
7313
|
+
if (fill === true || fill === "horizontal") {
|
|
7313
7314
|
throw new Error('Cannot use width prop with fill="horizontal" or fill={true}');
|
|
7314
7315
|
}
|
|
7315
|
-
if (
|
|
7316
|
+
if (fillViewport === true || fillViewport === "horizontal") {
|
|
7316
7317
|
throw new Error(
|
|
7317
7318
|
'Cannot use width prop with fillViewport="horizontal" or fillViewport={true}'
|
|
7318
7319
|
);
|