@wistia/ui 0.14.22 → 0.14.23-beta.efb9e2bb.f9aa0a1
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 +7 -6
- 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.14.
|
|
3
|
+
* @license @wistia/ui v0.14.23-beta.efb9e2bb.f9aa0a1
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -8568,14 +8568,14 @@ var Banner = ({
|
|
|
8568
8568
|
if (isSmallContainer) return shouldShowImage ? "inline" : "above";
|
|
8569
8569
|
return prominence === "secondary" ? "inline" : "above";
|
|
8570
8570
|
}, [icon, isSmallContainer, shouldShowImage, prominence]);
|
|
8571
|
-
const
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8571
|
+
const hasActions = isNotNil13(primaryAction) || isNotNil13(secondaryAction);
|
|
8572
|
+
const contentDirection = useMemo5(() => {
|
|
8573
|
+
if (orientation === "horizontal" && !hasActions) return "row";
|
|
8574
|
+
return !shouldShowImage && prominence === "default" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
|
|
8575
|
+
}, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
|
|
8575
8576
|
const headingVariant = isSmallContainer || prominence === "default" ? "heading5" : "heading3";
|
|
8576
8577
|
const textVariant = prominence === "default" || isSmallContainer ? "body3" : "body2";
|
|
8577
8578
|
const buttonSize = isSmallContainer ? "sm" : "md";
|
|
8578
|
-
const hasActions = isNotNil13(primaryAction) || isNotNil13(secondaryAction);
|
|
8579
8579
|
return /* @__PURE__ */ jsxs13(
|
|
8580
8580
|
StyledBanner,
|
|
8581
8581
|
{
|
|
@@ -9306,6 +9306,7 @@ var StyledCheckboxInput = styled27.div`
|
|
|
9306
9306
|
`;
|
|
9307
9307
|
var StyledHiddenCheckboxInput = styled27.input`
|
|
9308
9308
|
${visuallyHiddenStyle}
|
|
9309
|
+
position: relative;
|
|
9309
9310
|
`;
|
|
9310
9311
|
var Checkbox = forwardRef12(
|
|
9311
9312
|
({
|