@wistia/ui 0.14.26 → 0.14.27
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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -6
- 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.14.
|
|
3
|
+
* @license @wistia/ui v0.14.27
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -8760,14 +8760,14 @@ var Banner = ({
|
|
|
8760
8760
|
if (isSmallContainer) return shouldShowImage ? "inline" : "above";
|
|
8761
8761
|
return prominence === "secondary" ? "inline" : "above";
|
|
8762
8762
|
}, [icon, isSmallContainer, shouldShowImage, prominence]);
|
|
8763
|
-
const
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8763
|
+
const hasActions = (0, import_type_guards24.isNotNil)(primaryAction) || (0, import_type_guards24.isNotNil)(secondaryAction);
|
|
8764
|
+
const contentDirection = (0, import_react31.useMemo)(() => {
|
|
8765
|
+
if (orientation === "horizontal" && !hasActions) return "row";
|
|
8766
|
+
return !shouldShowImage && prominence === "default" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
|
|
8767
|
+
}, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
|
|
8767
8768
|
const headingVariant = isSmallContainer || prominence === "default" ? "heading5" : "heading3";
|
|
8768
8769
|
const textVariant = prominence === "default" || isSmallContainer ? "body3" : "body2";
|
|
8769
8770
|
const buttonSize = isSmallContainer ? "sm" : "md";
|
|
8770
|
-
const hasActions = (0, import_type_guards24.isNotNil)(primaryAction) || (0, import_type_guards24.isNotNil)(secondaryAction);
|
|
8771
8771
|
return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(
|
|
8772
8772
|
StyledBanner,
|
|
8773
8773
|
{
|