@wistia/ui 0.6.41-beta.e321d0ef.a3ef679 → 0.6.41

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
@@ -2632,7 +2632,6 @@ type SelectOptionProps = {
2632
2632
  * @default false
2633
2633
  */
2634
2634
  disabled?: boolean;
2635
- selectedDisplayValue?: ReactNode;
2636
2635
  /**
2637
2636
  * Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
2638
2637
  * Use this when the content is complex, or you have non-textual content inside.
package/dist/index.d.ts CHANGED
@@ -2632,7 +2632,6 @@ type SelectOptionProps = {
2632
2632
  * @default false
2633
2633
  */
2634
2634
  disabled?: boolean;
2635
- selectedDisplayValue?: ReactNode;
2636
2635
  /**
2637
2636
  * Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
2638
2637
  * Use this when the content is complex, or you have non-textual content inside.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.41-beta.e321d0ef.a3ef679
3
+ * @license @wistia/ui v0.6.41
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -11355,7 +11355,6 @@ Select.displayName = "Select";
11355
11355
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11356
11356
  import { forwardRef as forwardRef23 } from "react";
11357
11357
  import styled55 from "styled-components";
11358
- import { isNotNil as isNotNil23 } from "@wistia/type-guards";
11359
11358
  import { jsx as jsx251, jsxs as jsxs37 } from "react/jsx-runtime";
11360
11359
  var StyledItem = styled55(Item)`
11361
11360
  ${variantStyleMap2.body3};
@@ -11384,24 +11383,21 @@ var StyledIconContainer = styled55.span`
11384
11383
  width: 12px;
11385
11384
  `;
11386
11385
  var SelectOption = forwardRef23(
11387
- ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11386
+ ({ children, ...props }, forwardedRef) => {
11388
11387
  return /* @__PURE__ */ jsxs37(
11389
11388
  StyledItem,
11390
11389
  {
11391
11390
  ...props,
11392
11391
  ref: forwardedRef,
11393
11392
  children: [
11394
- /* @__PURE__ */ jsx251(StyledIconContainer, { "data-indicator": true, children: /* @__PURE__ */ jsx251(ItemIndicator, { children: /* @__PURE__ */ jsx251(
11393
+ /* @__PURE__ */ jsx251(StyledIconContainer, { children: /* @__PURE__ */ jsx251(ItemIndicator, { children: /* @__PURE__ */ jsx251(
11395
11394
  Icon,
11396
11395
  {
11397
11396
  size: "sm",
11398
11397
  type: "checkmark"
11399
11398
  }
11400
11399
  ) }) }),
11401
- isNotNil23(selectedDisplayValue) ? /* @__PURE__ */ jsxs37("div", { children: [
11402
- children,
11403
- /* @__PURE__ */ jsx251("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx251(ItemText, { children: selectedDisplayValue }) })
11404
- ] }) : /* @__PURE__ */ jsx251(ItemText, { children })
11400
+ /* @__PURE__ */ jsx251(ItemText, { children })
11405
11401
  ]
11406
11402
  }
11407
11403
  );
@@ -11699,7 +11695,7 @@ var TableRow = ({ children, ...props }) => {
11699
11695
  // src/components/Tabs/Tabs.tsx
11700
11696
  import { forwardRef as forwardRef26, useState as useState11 } from "react";
11701
11697
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11702
- import { isNotNil as isNotNil25, isNil as isNil15 } from "@wistia/type-guards";
11698
+ import { isNotNil as isNotNil24, isNil as isNil15 } from "@wistia/type-guards";
11703
11699
  import styled68 from "styled-components";
11704
11700
 
11705
11701
  // src/components/Tabs/TabPanel.tsx
@@ -11755,7 +11751,7 @@ TabList.displayName = "TabList";
11755
11751
  import { forwardRef as forwardRef25, useEffect as useEffect9, useRef as useRef11 } from "react";
11756
11752
  import styled66 from "styled-components";
11757
11753
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
11758
- import { isNotNil as isNotNil24 } from "@wistia/type-guards";
11754
+ import { isNotNil as isNotNil23 } from "@wistia/type-guards";
11759
11755
 
11760
11756
  // src/components/Tabs/useTabsValue.tsx
11761
11757
  import { createContext as createContext9, useContext as useContext8 } from "react";
@@ -11813,8 +11809,8 @@ var TabItem = forwardRef25(
11813
11809
  StyledTabItem,
11814
11810
  {
11815
11811
  ref: combinedRef,
11816
- $hasLabel: isNotNil24(label),
11817
- "aria-label": isNotNil24(label) ? void 0 : ariaLabel,
11812
+ $hasLabel: isNotNil23(label),
11813
+ "aria-label": isNotNil23(label) ? void 0 : ariaLabel,
11818
11814
  disabled,
11819
11815
  value,
11820
11816
  children: [
@@ -11955,7 +11951,7 @@ var Tabs = forwardRef26(
11955
11951
  value
11956
11952
  );
11957
11953
  }
11958
- if (isNotNil25(label)) {
11954
+ if (isNotNil24(label)) {
11959
11955
  return /* @__PURE__ */ jsx263(
11960
11956
  TabItem,
11961
11957
  {
@@ -11967,7 +11963,7 @@ var Tabs = forwardRef26(
11967
11963
  value
11968
11964
  );
11969
11965
  }
11970
- if (isNotNil25(ariaLabelForTab)) {
11966
+ if (isNotNil24(ariaLabelForTab)) {
11971
11967
  return /* @__PURE__ */ jsx263(
11972
11968
  TabItem,
11973
11969
  {
@@ -12010,7 +12006,7 @@ Tab.displayName = "Tab";
12010
12006
  // src/components/Tag/Tag.tsx
12011
12007
  import { forwardRef as forwardRef28 } from "react";
12012
12008
  import styled69 from "styled-components";
12013
- import { isNil as isNil16, isNotNil as isNotNil26, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12009
+ import { isNil as isNil16, isNotNil as isNotNil25, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12014
12010
  import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs42 } from "react/jsx-runtime";
12015
12011
  var TagLabel = styled69.a`
12016
12012
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -12135,8 +12131,8 @@ var Tag = forwardRef28(
12135
12131
  onClickRemoveLabel,
12136
12132
  ...otherProps
12137
12133
  }, ref) => {
12138
- const hasIcon = isNotNil26(icon);
12139
- const labelProps = isNotNil26(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12134
+ const hasIcon = isNotNil25(icon);
12135
+ const labelProps = isNotNil25(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12140
12136
  return /* @__PURE__ */ jsxs42(
12141
12137
  StyledTag,
12142
12138
  {
@@ -12172,7 +12168,7 @@ Tag.displayName = "Tag";
12172
12168
 
12173
12169
  // src/components/WistiaLogo/WistiaLogo.tsx
12174
12170
  import styled70, { css as css36 } from "styled-components";
12175
- import { isNotNil as isNotNil27 } from "@wistia/type-guards";
12171
+ import { isNotNil as isNotNil26 } from "@wistia/type-guards";
12176
12172
  import { jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
12177
12173
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12178
12174
  if (iconOnly) {
@@ -12285,7 +12281,7 @@ var WistiaLogo = ({
12285
12281
  ...otherProps,
12286
12282
  children: [
12287
12283
  /* @__PURE__ */ jsx266("title", { children: title }),
12288
- isNotNil27(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12284
+ isNotNil26(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12289
12285
  renderBrandmark(brandmarkColor, iconOnly),
12290
12286
  renderLogotype(logotypeColor, iconOnly)
12291
12287
  ]
@@ -12297,7 +12293,7 @@ WistiaLogo.displayName = "WistiaLogo";
12297
12293
 
12298
12294
  // src/components/Thumbnail/ThumbnailBadge.tsx
12299
12295
  import styled71 from "styled-components";
12300
- import { isNotNil as isNotNil28 } from "@wistia/type-guards";
12296
+ import { isNotNil as isNotNil27 } from "@wistia/type-guards";
12301
12297
  import { jsx as jsx267, jsxs as jsxs44 } from "react/jsx-runtime";
12302
12298
  var StyledThumbnailBadge = styled71.div`
12303
12299
  align-items: center;
@@ -12329,7 +12325,7 @@ var ThumbnailBadge = ({
12329
12325
  ...otherProps
12330
12326
  }) => {
12331
12327
  return /* @__PURE__ */ jsxs44(StyledThumbnailBadge, { ...otherProps, children: [
12332
- isNotNil28(icon) && icon,
12328
+ isNotNil27(icon) && icon,
12333
12329
  /* @__PURE__ */ jsx267("span", { children: label })
12334
12330
  ] });
12335
12331
  };
@@ -12338,10 +12334,10 @@ ThumbnailBadge.displayName = "ThumbnailBadge";
12338
12334
  // src/components/Thumbnail/Thumbnail.tsx
12339
12335
  import { forwardRef as forwardRef29 } from "react";
12340
12336
  import styled72 from "styled-components";
12341
- import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12337
+ import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12342
12338
 
12343
12339
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12344
- import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12340
+ import { isNotNil as isNotNil28 } from "@wistia/type-guards";
12345
12341
  import { css as css37 } from "styled-components";
12346
12342
  var gradients = {
12347
12343
  defaultDarkOne: css37`
@@ -12469,7 +12465,7 @@ var gradients = {
12469
12465
  };
12470
12466
  var gradientMap = Object.keys(gradients);
12471
12467
  var getBackgroundGradient = (gradientName = void 0) => {
12472
- return isNotNil29(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12468
+ return isNotNil28(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12473
12469
  };
12474
12470
 
12475
12471
  // src/components/Thumbnail/Thumbnail.tsx
@@ -12505,7 +12501,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12505
12501
  var StyledThumbnail = styled72.div`
12506
12502
  ${({ $gradientBackground }) => getBackgroundGradient($gradientBackground)};
12507
12503
  aspect-ratio: 16 / 9;
12508
- background: ${({ $backgroundUrl }) => isNotNil30($backgroundUrl) ? `url('${$backgroundUrl}') center / cover` : void 0};
12504
+ background: ${({ $backgroundUrl }) => isNotNil29($backgroundUrl) ? `url('${$backgroundUrl}') center / cover` : void 0};
12509
12505
  border-radius: 4px;
12510
12506
  display: flex;
12511
12507
  overflow: hidden;
@@ -12521,7 +12517,7 @@ var Thumbnail = forwardRef29(
12521
12517
  children,
12522
12518
  ...otherProps
12523
12519
  }, ref) => {
12524
- const backgroundUrl = thumbnailImageType === "square" && isNotNil30(thumbnailUrl) ? thumbnailUrl : void 0;
12520
+ const backgroundUrl = thumbnailImageType === "square" && isNotNil29(thumbnailUrl) ? thumbnailUrl : void 0;
12525
12521
  return /* @__PURE__ */ jsxs45(
12526
12522
  StyledThumbnail,
12527
12523
  {
@@ -12531,8 +12527,8 @@ var Thumbnail = forwardRef29(
12531
12527
  $width: width,
12532
12528
  ...otherProps,
12533
12529
  children: [
12534
- isNotNil30(children) && children,
12535
- isNotNil30(thumbnailUrl) && /* @__PURE__ */ jsx268(
12530
+ isNotNil29(children) && children,
12531
+ isNotNil29(thumbnailUrl) && /* @__PURE__ */ jsx268(
12536
12532
  ThumbnailImage,
12537
12533
  {
12538
12534
  thumbnailImageType,