@wistia/ui 0.18.5-beta.9ab561d6.6f99781 → 0.18.6
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 +10 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +10 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -633,7 +633,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
633
633
|
/**
|
|
634
634
|
* Controls the visual prominence of the banner
|
|
635
635
|
*/
|
|
636
|
-
prominence?: '
|
|
636
|
+
prominence?: 'primary' | 'secondary';
|
|
637
637
|
colorScheme?: ColorSchemeTypes;
|
|
638
638
|
/**
|
|
639
639
|
* Optional image element to display in the banner
|
|
@@ -950,7 +950,7 @@ type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
|
|
|
950
950
|
/**
|
|
951
951
|
* Specifies the background and border color of the card.
|
|
952
952
|
*/
|
|
953
|
-
prominence?: '
|
|
953
|
+
prominence?: 'primary' | 'secondary' | 'tertiary';
|
|
954
954
|
/**
|
|
955
955
|
* Determines the color scheme for the card and its children.
|
|
956
956
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -633,7 +633,7 @@ type BannerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
633
633
|
/**
|
|
634
634
|
* Controls the visual prominence of the banner
|
|
635
635
|
*/
|
|
636
|
-
prominence?: '
|
|
636
|
+
prominence?: 'primary' | 'secondary';
|
|
637
637
|
colorScheme?: ColorSchemeTypes;
|
|
638
638
|
/**
|
|
639
639
|
* Optional image element to display in the banner
|
|
@@ -950,7 +950,7 @@ type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
|
|
|
950
950
|
/**
|
|
951
951
|
* Specifies the background and border color of the card.
|
|
952
952
|
*/
|
|
953
|
-
prominence?: '
|
|
953
|
+
prominence?: 'primary' | 'secondary' | 'tertiary';
|
|
954
954
|
/**
|
|
955
955
|
* Determines the color scheme for the card and its children.
|
|
956
956
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.
|
|
3
|
+
* @license @wistia/ui v0.18.6
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9067,7 +9067,7 @@ var Banner = ({
|
|
|
9067
9067
|
onClose,
|
|
9068
9068
|
orientation = "horizontal",
|
|
9069
9069
|
primaryAction,
|
|
9070
|
-
prominence = "
|
|
9070
|
+
prominence = "primary",
|
|
9071
9071
|
secondaryAction,
|
|
9072
9072
|
...props
|
|
9073
9073
|
}) => {
|
|
@@ -9092,10 +9092,10 @@ var Banner = ({
|
|
|
9092
9092
|
const hasActions = isNotNil13(primaryAction) || isNotNil13(secondaryAction);
|
|
9093
9093
|
const contentDirection = useMemo5(() => {
|
|
9094
9094
|
if (orientation === "horizontal" && !hasActions) return "row";
|
|
9095
|
-
return !shouldShowImage && prominence === "
|
|
9095
|
+
return !shouldShowImage && prominence === "primary" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
|
|
9096
9096
|
}, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
|
|
9097
|
-
const headingVariant = isSmallContainer || prominence === "
|
|
9098
|
-
const textVariant = prominence === "
|
|
9097
|
+
const headingVariant = isSmallContainer || prominence === "primary" ? "heading5" : "heading3";
|
|
9098
|
+
const textVariant = prominence === "primary" || isSmallContainer ? "body3" : "body2";
|
|
9099
9099
|
const buttonSize = isSmallContainer ? "sm" : "md";
|
|
9100
9100
|
return /* @__PURE__ */ jsxs13(
|
|
9101
9101
|
StyledBanner,
|
|
@@ -9360,7 +9360,7 @@ var StyledCard = styled20(Box)`
|
|
|
9360
9360
|
width: ${({ $width }) => $width};
|
|
9361
9361
|
`;
|
|
9362
9362
|
var prominenceMap = {
|
|
9363
|
-
|
|
9363
|
+
primary: {
|
|
9364
9364
|
backgroundColor: "var(--wui-color-bg-surface)",
|
|
9365
9365
|
borderColor: "var(--wui-color-border)"
|
|
9366
9366
|
},
|
|
@@ -13591,7 +13591,7 @@ var FilterMenu = forwardRef20(
|
|
|
13591
13591
|
border: false,
|
|
13592
13592
|
borderRadius: "border-radius-02",
|
|
13593
13593
|
paddingSize: "space-01",
|
|
13594
|
-
prominence: "
|
|
13594
|
+
prominence: "primary",
|
|
13595
13595
|
style: {
|
|
13596
13596
|
position: "absolute",
|
|
13597
13597
|
top: 0,
|
|
@@ -13646,7 +13646,7 @@ var FilterMenu = forwardRef20(
|
|
|
13646
13646
|
border: false,
|
|
13647
13647
|
borderRadius: "border-radius-02",
|
|
13648
13648
|
paddingSize: "space-01",
|
|
13649
|
-
prominence: "
|
|
13649
|
+
prominence: "primary",
|
|
13650
13650
|
style: {
|
|
13651
13651
|
position: "absolute",
|
|
13652
13652
|
bottom: 0,
|
|
@@ -18025,11 +18025,6 @@ var StyledThumbnailContainer = styled107.div`
|
|
|
18025
18025
|
`;
|
|
18026
18026
|
var StyledThumbnail = styled107.div`
|
|
18027
18027
|
--wui-thumbnail-badge-offset: var(--wui-space-01);
|
|
18028
|
-
--wui-thumbnail-border-radius: clamp(
|
|
18029
|
-
var(--wui-border-radius-01),
|
|
18030
|
-
calc(8cqh - var(--wui-thumbnail-collage-padding, 0px)),
|
|
18031
|
-
var(--wui-border-radius-05)
|
|
18032
|
-
);
|
|
18033
18028
|
|
|
18034
18029
|
background-image: ${({ $backgroundUrl }) => isNotNil43($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
|
|
18035
18030
|
${({ $backgroundUrl, $gradientBackground }) => (
|
|
@@ -18042,22 +18037,7 @@ var StyledThumbnail = styled107.div`
|
|
|
18042
18037
|
width: 100%;
|
|
18043
18038
|
overflow: hidden;
|
|
18044
18039
|
position: relative;
|
|
18045
|
-
border-radius: var(--wui-
|
|
18046
|
-
box-shadow: inset 0 0 0 1px var(--wui-thumbnail-collage-border-color);
|
|
18047
|
-
|
|
18048
|
-
&,
|
|
18049
|
-
img,
|
|
18050
|
-
&::after {
|
|
18051
|
-
border-radius: var(--wui-thumbnail-border-radius);
|
|
18052
|
-
}
|
|
18053
|
-
|
|
18054
|
-
&::after {
|
|
18055
|
-
content: '';
|
|
18056
|
-
position: absolute;
|
|
18057
|
-
inset: 0;
|
|
18058
|
-
box-shadow: inset 0 0 0 1px var(--wui-thumbnail-collage-border-color);
|
|
18059
|
-
border-radius: var(--wui-thumbnail-border-radius);
|
|
18060
|
-
}
|
|
18040
|
+
border-radius: clamp(var(--wui-border-radius-01), 8cqh, var(--wui-border-radius-05));
|
|
18061
18041
|
|
|
18062
18042
|
@container (min-width: 200px) {
|
|
18063
18043
|
--wui-thumbnail-badge-offset: var(--wui-space-02);
|
|
@@ -18225,17 +18205,11 @@ var ThumbnailCollageContainer = styled108.div`
|
|
|
18225
18205
|
display: flex;
|
|
18226
18206
|
`;
|
|
18227
18207
|
var StyledThumbnailCollage = styled108.div`
|
|
18228
|
-
--wui-thumbnail-collage-border-color: rgba(0, 0, 0, 0.05);
|
|
18229
|
-
--wui-thumbnail-collage-padding: var(--wui-space-01);
|
|
18230
|
-
padding: var(--wui-thumbnail-collage-padding);
|
|
18231
|
-
background-color: var(--wui-color-bg-surface-tertiary);
|
|
18232
|
-
border-radius: clamp(var(--wui-border-radius-01), 8cqh, var(--wui-border-radius-05));
|
|
18233
18208
|
display: grid;
|
|
18234
|
-
gap: var(--wui-
|
|
18209
|
+
gap: var(--wui-space-01);
|
|
18235
18210
|
width: 100%;
|
|
18236
18211
|
grid-template-columns: 3fr 2fr;
|
|
18237
18212
|
grid-template-rows: 1fr 1fr;
|
|
18238
|
-
border: 1px solid var(--wui-thumbnail-collage-border-color);
|
|
18239
18213
|
|
|
18240
18214
|
&:has(:nth-child(1)) {
|
|
18241
18215
|
grid-template-areas:
|
|
@@ -18273,10 +18247,6 @@ var StyledThumbnailCollage = styled108.div`
|
|
|
18273
18247
|
height: 100%;
|
|
18274
18248
|
width: 100%;
|
|
18275
18249
|
}
|
|
18276
|
-
|
|
18277
|
-
@container (min-width: 200px) {
|
|
18278
|
-
--wui-thumbnail-collage-padding: var(--wui-space-02);
|
|
18279
|
-
}
|
|
18280
18250
|
`;
|
|
18281
18251
|
var ThumbnailCollage = ({
|
|
18282
18252
|
children = [],
|