@wistia/ui 0.14.23-beta.93cf8a5d.82c61de → 0.14.23-beta.bc4541fa.a24cfc5
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 +27 -27
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.14.23-beta.
|
|
3
|
+
* @license @wistia/ui v0.14.23-beta.bc4541fa.a24cfc5
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -8742,14 +8742,14 @@ var Banner = ({
|
|
|
8742
8742
|
if (isSmallContainer) return shouldShowImage ? "inline" : "above";
|
|
8743
8743
|
return prominence === "secondary" ? "inline" : "above";
|
|
8744
8744
|
}, [icon, isSmallContainer, shouldShowImage, prominence]);
|
|
8745
|
-
const
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
}, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
|
|
8745
|
+
const contentDirection = (0, import_react31.useMemo)(
|
|
8746
|
+
() => !shouldShowImage && prominence === "default" && !isSmallContainer && !isVerticalLayout ? "row" : "column",
|
|
8747
|
+
[shouldShowImage, prominence, isSmallContainer, isVerticalLayout]
|
|
8748
|
+
);
|
|
8750
8749
|
const headingVariant = isSmallContainer || prominence === "default" ? "heading5" : "heading3";
|
|
8751
8750
|
const textVariant = prominence === "default" || isSmallContainer ? "body3" : "body2";
|
|
8752
8751
|
const buttonSize = isSmallContainer ? "sm" : "md";
|
|
8752
|
+
const hasActions = (0, import_type_guards24.isNotNil)(primaryAction) || (0, import_type_guards24.isNotNil)(secondaryAction);
|
|
8753
8753
|
return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(
|
|
8754
8754
|
StyledBanner,
|
|
8755
8755
|
{
|