@wistia/ui 0.18.3-beta.08d66fca.29123c9 → 0.18.3-beta.5117ebdf.db9116e
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 +14 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +15 -25
- 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.18.3-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.3-beta.5117ebdf.db9116e
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6871,13 +6871,13 @@ var SpeedIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
|
6871
6871
|
|
|
6872
6872
|
// src/components/Icon/icons/SpinnerIcon.tsx
|
|
6873
6873
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6874
|
-
var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.
|
|
6874
|
+
var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
6875
6875
|
"svg",
|
|
6876
6876
|
{
|
|
6877
6877
|
...props,
|
|
6878
6878
|
viewBox: "0 0 24 24",
|
|
6879
6879
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6880
|
-
children: [
|
|
6880
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("g", { children: [
|
|
6881
6881
|
/* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
6882
6882
|
"path",
|
|
6883
6883
|
{
|
|
@@ -6895,10 +6895,10 @@ var SpinnerIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)(
|
|
|
6895
6895
|
keyTimes: "0;1",
|
|
6896
6896
|
repeatCount: "indefinite",
|
|
6897
6897
|
type: "rotate",
|
|
6898
|
-
values: "0
|
|
6898
|
+
values: "0 12 12;360 12 12"
|
|
6899
6899
|
}
|
|
6900
6900
|
)
|
|
6901
|
-
]
|
|
6901
|
+
] })
|
|
6902
6902
|
}
|
|
6903
6903
|
);
|
|
6904
6904
|
|
|
@@ -9248,7 +9248,7 @@ var Banner = ({
|
|
|
9248
9248
|
onClose,
|
|
9249
9249
|
orientation = "horizontal",
|
|
9250
9250
|
primaryAction,
|
|
9251
|
-
prominence = "
|
|
9251
|
+
prominence = "primary",
|
|
9252
9252
|
secondaryAction,
|
|
9253
9253
|
...props
|
|
9254
9254
|
}) => {
|
|
@@ -9273,10 +9273,10 @@ var Banner = ({
|
|
|
9273
9273
|
const hasActions = (0, import_type_guards25.isNotNil)(primaryAction) || (0, import_type_guards25.isNotNil)(secondaryAction);
|
|
9274
9274
|
const contentDirection = (0, import_react31.useMemo)(() => {
|
|
9275
9275
|
if (orientation === "horizontal" && !hasActions) return "row";
|
|
9276
|
-
return !shouldShowImage && prominence === "
|
|
9276
|
+
return !shouldShowImage && prominence === "primary" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
|
|
9277
9277
|
}, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
|
|
9278
|
-
const headingVariant = isSmallContainer || prominence === "
|
|
9279
|
-
const textVariant = prominence === "
|
|
9278
|
+
const headingVariant = isSmallContainer || prominence === "primary" ? "heading5" : "heading3";
|
|
9279
|
+
const textVariant = prominence === "primary" || isSmallContainer ? "body3" : "body2";
|
|
9280
9280
|
const buttonSize = isSmallContainer ? "sm" : "md";
|
|
9281
9281
|
return /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(
|
|
9282
9282
|
StyledBanner,
|
|
@@ -9541,7 +9541,7 @@ var StyledCard = (0, import_styled_components37.styled)(Box)`
|
|
|
9541
9541
|
width: ${({ $width }) => $width};
|
|
9542
9542
|
`;
|
|
9543
9543
|
var prominenceMap = {
|
|
9544
|
-
|
|
9544
|
+
primary: {
|
|
9545
9545
|
backgroundColor: "var(--wui-color-bg-surface)",
|
|
9546
9546
|
borderColor: "var(--wui-color-border)"
|
|
9547
9547
|
},
|
|
@@ -13742,7 +13742,7 @@ var FilterMenu = (0, import_react60.forwardRef)(
|
|
|
13742
13742
|
border: false,
|
|
13743
13743
|
borderRadius: "border-radius-02",
|
|
13744
13744
|
paddingSize: "space-01",
|
|
13745
|
-
prominence: "
|
|
13745
|
+
prominence: "primary",
|
|
13746
13746
|
style: {
|
|
13747
13747
|
position: "absolute",
|
|
13748
13748
|
top: 0,
|
|
@@ -13797,7 +13797,7 @@ var FilterMenu = (0, import_react60.forwardRef)(
|
|
|
13797
13797
|
border: false,
|
|
13798
13798
|
borderRadius: "border-radius-02",
|
|
13799
13799
|
paddingSize: "space-01",
|
|
13800
|
-
prominence: "
|
|
13800
|
+
prominence: "primary",
|
|
13801
13801
|
style: {
|
|
13802
13802
|
position: "absolute",
|
|
13803
13803
|
bottom: 0,
|
|
@@ -18209,9 +18209,6 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
|
|
|
18209
18209
|
left: relativeLeft
|
|
18210
18210
|
};
|
|
18211
18211
|
};
|
|
18212
|
-
var hasValidThumbnailUrl = (thumbnailUrl) => {
|
|
18213
|
-
return (0, import_type_guards74.isNotNil)(thumbnailUrl) && (0, import_type_guards74.isNonEmptyString)(thumbnailUrl);
|
|
18214
|
-
};
|
|
18215
18212
|
var Thumbnail = (0, import_react100.forwardRef)(
|
|
18216
18213
|
({
|
|
18217
18214
|
gradientBackground = "defaultMidOne",
|
|
@@ -18230,7 +18227,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
|
|
|
18230
18227
|
const storyboardElementRef = (0, import_react100.useRef)(null);
|
|
18231
18228
|
const [cursorPosition, setCursorPosition] = (0, import_react100.useState)(null);
|
|
18232
18229
|
const backgroundUrl = (0, import_react100.useMemo)(
|
|
18233
|
-
() => thumbnailImageType === "square" &&
|
|
18230
|
+
() => thumbnailImageType === "square" && (0, import_type_guards74.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
|
|
18234
18231
|
[thumbnailImageType, thumbnailUrl]
|
|
18235
18232
|
);
|
|
18236
18233
|
const isScrubbable = (0, import_type_guards74.isNotNil)(storyboard);
|
|
@@ -18281,7 +18278,7 @@ var Thumbnail = (0, import_react100.forwardRef)(
|
|
|
18281
18278
|
width
|
|
18282
18279
|
}
|
|
18283
18280
|
);
|
|
18284
|
-
} else if (
|
|
18281
|
+
} else if ((0, import_type_guards74.isNotNil)(thumbnailUrl)) {
|
|
18285
18282
|
thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
|
|
18286
18283
|
ThumbnailImage,
|
|
18287
18284
|
{
|