@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.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?: 'default' | 'secondary';
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?: 'default' | 'secondary' | 'tertiary';
953
+ prominence?: 'primary' | 'secondary' | 'tertiary';
954
954
  /**
955
955
  * Determines the color scheme for the card and its children.
956
956
  */
@@ -4138,7 +4138,7 @@ type ThumbnailProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'> & {
4138
4138
  /**
4139
4139
  * The URL of the thumbnail image to display
4140
4140
  */
4141
- thumbnailUrl: string | null | undefined;
4141
+ thumbnailUrl: string | null;
4142
4142
  /**
4143
4143
  * Children to render inside the thumbnail; must be a `ThumbnailBadge` component
4144
4144
  */
@@ -4178,7 +4178,7 @@ declare const Thumbnail: react.ForwardRefExoticComponent<Omit<Omit<react.Detaile
4178
4178
  /**
4179
4179
  * The URL of the thumbnail image to display
4180
4180
  */
4181
- thumbnailUrl: string | null | undefined;
4181
+ thumbnailUrl: string | null;
4182
4182
  /**
4183
4183
  * Children to render inside the thumbnail; must be a `ThumbnailBadge` component
4184
4184
  */
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?: 'default' | 'secondary';
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?: 'default' | 'secondary' | 'tertiary';
953
+ prominence?: 'primary' | 'secondary' | 'tertiary';
954
954
  /**
955
955
  * Determines the color scheme for the card and its children.
956
956
  */
@@ -4138,7 +4138,7 @@ type ThumbnailProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'> & {
4138
4138
  /**
4139
4139
  * The URL of the thumbnail image to display
4140
4140
  */
4141
- thumbnailUrl: string | null | undefined;
4141
+ thumbnailUrl: string | null;
4142
4142
  /**
4143
4143
  * Children to render inside the thumbnail; must be a `ThumbnailBadge` component
4144
4144
  */
@@ -4178,7 +4178,7 @@ declare const Thumbnail: react.ForwardRefExoticComponent<Omit<Omit<react.Detaile
4178
4178
  /**
4179
4179
  * The URL of the thumbnail image to display
4180
4180
  */
4181
- thumbnailUrl: string | null | undefined;
4181
+ thumbnailUrl: string | null;
4182
4182
  /**
4183
4183
  * Children to render inside the thumbnail; must be a `ThumbnailBadge` component
4184
4184
  */
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.18.3-beta.08d66fca.29123c9
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
  *
@@ -6690,13 +6690,13 @@ var SpeedIcon = (props) => /* @__PURE__ */ jsx168(
6690
6690
 
6691
6691
  // src/components/Icon/icons/SpinnerIcon.tsx
6692
6692
  import { jsx as jsx169, jsxs as jsxs7 } from "react/jsx-runtime";
6693
- var SpinnerIcon = (props) => /* @__PURE__ */ jsxs7(
6693
+ var SpinnerIcon = (props) => /* @__PURE__ */ jsx169(
6694
6694
  "svg",
6695
6695
  {
6696
6696
  ...props,
6697
6697
  viewBox: "0 0 24 24",
6698
6698
  xmlns: "http://www.w3.org/2000/svg",
6699
- children: [
6699
+ children: /* @__PURE__ */ jsxs7("g", { children: [
6700
6700
  /* @__PURE__ */ jsx169(
6701
6701
  "path",
6702
6702
  {
@@ -6714,10 +6714,10 @@ var SpinnerIcon = (props) => /* @__PURE__ */ jsxs7(
6714
6714
  keyTimes: "0;1",
6715
6715
  repeatCount: "indefinite",
6716
6716
  type: "rotate",
6717
- values: "0 0 0;360 0 0"
6717
+ values: "0 12 12;360 12 12"
6718
6718
  }
6719
6719
  )
6720
- ]
6720
+ ] })
6721
6721
  }
6722
6722
  );
6723
6723
 
@@ -9067,7 +9067,7 @@ var Banner = ({
9067
9067
  onClose,
9068
9068
  orientation = "horizontal",
9069
9069
  primaryAction,
9070
- prominence = "default",
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 === "default" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
9095
+ return !shouldShowImage && prominence === "primary" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
9096
9096
  }, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
9097
- const headingVariant = isSmallContainer || prominence === "default" ? "heading5" : "heading3";
9098
- const textVariant = prominence === "default" || isSmallContainer ? "body3" : "body2";
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
- default: {
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: "default",
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: "default",
13649
+ prominence: "primary",
13650
13650
  style: {
13651
13651
  position: "absolute",
13652
13652
  bottom: 0,
@@ -17699,14 +17699,7 @@ ThumbnailBadge.displayName = "ThumbnailBadge_UI";
17699
17699
  // src/components/Thumbnail/Thumbnail.tsx
17700
17700
  import { forwardRef as forwardRef37, useState as useState26, useRef as useRef24, useCallback as useCallback20, useMemo as useMemo17 } from "react";
17701
17701
  import { styled as styled107 } from "styled-components";
17702
- import {
17703
- isNil as isNil19,
17704
- isNotNil as isNotNil43,
17705
- isUndefined as isUndefined7,
17706
- isEmptyString as isEmptyString2,
17707
- isString as isString4,
17708
- isNonEmptyString as isNonEmptyString10
17709
- } from "@wistia/type-guards";
17702
+ import { isNil as isNil19, isNotNil as isNotNil43, isUndefined as isUndefined7, isEmptyString as isEmptyString2, isString as isString4 } from "@wistia/type-guards";
17710
17703
 
17711
17704
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
17712
17705
  import { isNotNil as isNotNil41 } from "@wistia/type-guards";
@@ -18079,9 +18072,6 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
18079
18072
  left: relativeLeft
18080
18073
  };
18081
18074
  };
18082
- var hasValidThumbnailUrl = (thumbnailUrl) => {
18083
- return isNotNil43(thumbnailUrl) && isNonEmptyString10(thumbnailUrl);
18084
- };
18085
18075
  var Thumbnail = forwardRef37(
18086
18076
  ({
18087
18077
  gradientBackground = "defaultMidOne",
@@ -18100,7 +18090,7 @@ var Thumbnail = forwardRef37(
18100
18090
  const storyboardElementRef = useRef24(null);
18101
18091
  const [cursorPosition, setCursorPosition] = useState26(null);
18102
18092
  const backgroundUrl = useMemo17(
18103
- () => thumbnailImageType === "square" && hasValidThumbnailUrl(thumbnailUrl) ? thumbnailUrl : void 0,
18093
+ () => thumbnailImageType === "square" && isNotNil43(thumbnailUrl) ? thumbnailUrl : void 0,
18104
18094
  [thumbnailImageType, thumbnailUrl]
18105
18095
  );
18106
18096
  const isScrubbable = isNotNil43(storyboard);
@@ -18151,7 +18141,7 @@ var Thumbnail = forwardRef37(
18151
18141
  width
18152
18142
  }
18153
18143
  );
18154
- } else if (hasValidThumbnailUrl(thumbnailUrl)) {
18144
+ } else if (isNotNil43(thumbnailUrl)) {
18155
18145
  thumbnailContent = /* @__PURE__ */ jsx326(
18156
18146
  ThumbnailImage,
18157
18147
  {