@wistia/ui 0.6.45 → 0.7.0-beta.05e7ef9a.fd95b31

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.45
3
+ * @license @wistia/ui v0.7.0-beta.05e7ef9a.fd95b31
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -1983,6 +1983,10 @@ var isValidRef = (value) => {
1983
1983
  return isNotNil2(value) && isRecord(value) && "current" in value;
1984
1984
  };
1985
1985
 
1986
+ // src/private/helpers/noOpFn/noOpFn.ts
1987
+ var noOpFn = () => {
1988
+ };
1989
+
1986
1990
  // src/private/hooks/useEvent/useEvent.ts
1987
1991
  var isEventTargetSupported = (eventTarget) => (
1988
1992
  // @ts-expect-error the compiler thinks that addEventListener may not exist on eventTarget, but we still need to check it.
@@ -2007,8 +2011,7 @@ var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}
2007
2011
  if (savedEventHandler.current !== void 0) {
2008
2012
  return savedEventHandler.current(event);
2009
2013
  }
2010
- return () => {
2011
- };
2014
+ return noOpFn;
2012
2015
  };
2013
2016
  target.addEventListener(eventName, eventListener, savedEventOptions.current);
2014
2017
  return () => {
@@ -2082,8 +2085,7 @@ var useLockBodyScroll = (locked) => {
2082
2085
  document.body.style.overflow = originalStyle;
2083
2086
  };
2084
2087
  }
2085
- return () => {
2086
- };
2088
+ return noOpFn;
2087
2089
  }, [locked]);
2088
2090
  };
2089
2091
 
@@ -2220,6 +2222,12 @@ var ellipsisStyle = css12`
2220
2222
  }
2221
2223
  }
2222
2224
  `;
2225
+ var lineClampStyle = css12`
2226
+ -webkit-box-orient: vertical;
2227
+ -webkit-line-clamp: 1;
2228
+ display: -webkit-box !important;
2229
+ white-space: initial;
2230
+ `;
2223
2231
  var ellipsisFlexParentStyle = css12`
2224
2232
  min-width: 0;
2225
2233
  `;
@@ -2228,10 +2236,8 @@ var EllipsisComponent = styled.span`
2228
2236
  ${({ $lines }) => {
2229
2237
  if (isNotNil3($lines)) {
2230
2238
  return css12`
2231
- -webkit-box-orient: vertical;
2239
+ ${lineClampStyle};
2232
2240
  -webkit-line-clamp: ${$lines};
2233
- display: -webkit-box;
2234
- white-space: initial;
2235
2241
  `;
2236
2242
  }
2237
2243
  return void 0;
@@ -6902,7 +6908,7 @@ var Link = forwardRef(
6902
6908
  }, ref) => {
6903
6909
  const inRouterContext = useInRouterContext();
6904
6910
  const to = generateHref(props.href, type, disabled);
6905
- const handleClick = async (event, routingCallback = null) => {
6911
+ const handleClick = async (event) => {
6906
6912
  if (disabled) {
6907
6913
  event.preventDefault();
6908
6914
  } else if (beforeAction) {
@@ -6914,11 +6920,9 @@ var Link = forwardRef(
6914
6920
  } finally {
6915
6921
  if (isFunction2(props.onClick)) {
6916
6922
  props.onClick(event);
6917
- } else if (routingCallback !== null) {
6918
- routingCallback();
6919
- } else if (isNotNil5(to)) {
6923
+ }
6924
+ if (!inRouterContext && isNotNil5(to)) {
6920
6925
  window.location.assign(to);
6921
- } else {
6922
6926
  }
6923
6927
  }
6924
6928
  } else if (isFunction2(props.onClick)) {
@@ -8355,6 +8359,7 @@ import { isNotNull } from "@wistia/type-guards";
8355
8359
  // src/components/Heading/Heading.tsx
8356
8360
  import { forwardRef as forwardRef8 } from "react";
8357
8361
  import styled23, { css as css21 } from "styled-components";
8362
+ import { isNotNil as isNotNil14 } from "@wistia/type-guards";
8358
8363
  import { jsx as jsx212 } from "react/jsx-runtime";
8359
8364
  var heroStyle = css21`
8360
8365
  --font-family: var(--wui-typography-heading-hero-family);
@@ -8416,7 +8421,18 @@ var StyledHeading = styled23.div`
8416
8421
  line-height: var(--line-height);
8417
8422
  color: var(--wui-color-text);
8418
8423
  ${({ $variant }) => variantStyleMap[$variant]}
8419
- ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8424
+ ${({ $truncate }) => {
8425
+ if (isNotNil14($truncate)) {
8426
+ return css21`
8427
+ ${ellipsisStyle};
8428
+ -webkit-box-orient: vertical;
8429
+ -webkit-line-clamp: ${$truncate};
8430
+ display: -webkit-box;
8431
+ white-space: initial;
8432
+ `;
8433
+ }
8434
+ return void 0;
8435
+ }}
8420
8436
  ${({ $inline }) => $inline && css21`
8421
8437
  display: inline-block;
8422
8438
  `}
@@ -8445,9 +8461,9 @@ var HeadingComponent = forwardRef8(
8445
8461
  align = "left",
8446
8462
  colorScheme = "inherit",
8447
8463
  disabled = false,
8448
- ellipsis = false,
8449
8464
  inline = false,
8450
8465
  preventUserSelect = false,
8466
+ truncate,
8451
8467
  variant = "heading1",
8452
8468
  renderAs,
8453
8469
  ...props
@@ -8458,9 +8474,9 @@ var HeadingComponent = forwardRef8(
8458
8474
  $align: align,
8459
8475
  $colorScheme: colorScheme,
8460
8476
  $disabled: disabled,
8461
- $ellipsis: ellipsis,
8462
8477
  $inline: inline,
8463
8478
  $preventUserSelect: preventUserSelect,
8479
+ $truncate: truncate,
8464
8480
  $variant: variant,
8465
8481
  as: renderAs ?? variantElementMap[variant],
8466
8482
  ...props
@@ -8606,6 +8622,7 @@ import styled27 from "styled-components";
8606
8622
  // src/components/Text/Text.tsx
8607
8623
  import { forwardRef as forwardRef9 } from "react";
8608
8624
  import styled26, { css as css22 } from "styled-components";
8625
+ import { isNotNil as isNotNil15 } from "@wistia/type-guards";
8609
8626
  import { jsx as jsx215 } from "react/jsx-runtime";
8610
8627
  var bodyBoldStyles = css22`
8611
8628
  > strong,
@@ -8749,7 +8766,16 @@ var StyledText = styled26.div`
8749
8766
  font-style: normal;
8750
8767
  margin: 0;
8751
8768
  ${({ $variant }) => variantStyleMap2[$variant]}
8752
- ${({ $ellipsis }) => $ellipsis && ellipsisStyle};
8769
+ ${({ $truncate }) => {
8770
+ if (isNotNil15($truncate)) {
8771
+ return css22`
8772
+ ${ellipsisStyle};
8773
+ ${lineClampStyle};
8774
+ -webkit-line-clamp: ${$truncate};
8775
+ `;
8776
+ }
8777
+ return void 0;
8778
+ }}
8753
8779
  ${({ $inline }) => $inline && css22`
8754
8780
  display: inline-block;
8755
8781
  `}
@@ -8775,10 +8801,10 @@ var TextComponent = forwardRef9(
8775
8801
  align = "left",
8776
8802
  colorScheme = "inherit",
8777
8803
  disabled = false,
8778
- ellipsis = false,
8779
8804
  inline = false,
8780
8805
  preventUserSelect = false,
8781
8806
  prominence = "primary",
8807
+ truncate,
8782
8808
  variant = "body2",
8783
8809
  renderAs,
8784
8810
  ...props
@@ -8790,10 +8816,10 @@ var TextComponent = forwardRef9(
8790
8816
  $align: align,
8791
8817
  $colorScheme: colorScheme,
8792
8818
  $disabled: disabled,
8793
- $ellipsis: ellipsis,
8794
8819
  $inline: inline,
8795
8820
  $preventUserSelect: preventUserSelect,
8796
8821
  $prominence: prominence,
8822
+ $truncate: truncate,
8797
8823
  $variant: variant,
8798
8824
  as: renderAs ?? variantElementMap2[variant],
8799
8825
  ...props
@@ -9000,7 +9026,7 @@ Tooltip.displayName = "Tooltip";
9000
9026
  // src/components/Input/Input.tsx
9001
9027
  import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef4 } from "react";
9002
9028
  import styled30, { css as css26 } from "styled-components";
9003
- import { isNil as isNil13, isNotNil as isNotNil14, isRecord as isRecord4 } from "@wistia/type-guards";
9029
+ import { isNil as isNil13, isNotNil as isNotNil16, isRecord as isRecord4 } from "@wistia/type-guards";
9004
9030
 
9005
9031
  // src/css/sharedStyles/inputCssVariables.ts
9006
9032
  import { css as css25 } from "styled-components";
@@ -9138,27 +9164,27 @@ var Input = forwardRef10(
9138
9164
  const internalRef = useRef4();
9139
9165
  const ref = (
9140
9166
  // eslint-disable-next-line react-compiler/react-compiler
9141
- isNotNil14(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef
9167
+ isNotNil16(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef
9142
9168
  );
9143
9169
  let leftIconToDisplay = leftIcon;
9144
9170
  if (isNil13(leftIcon) && type === "search") {
9145
9171
  leftIconToDisplay = /* @__PURE__ */ jsx219(Icon, { type: "search" });
9146
9172
  }
9147
- if (isNotNil14(leftIconToDisplay)) {
9173
+ if (isNotNil16(leftIconToDisplay)) {
9148
9174
  leftIconToDisplay = cloneElement4(leftIconToDisplay, {
9149
9175
  size: "md",
9150
9176
  className: "wui-input-left-icon"
9151
9177
  });
9152
9178
  }
9153
9179
  let rightIconToDisplay = rightIcon;
9154
- if (isNotNil14(rightIconToDisplay)) {
9180
+ if (isNotNil16(rightIconToDisplay)) {
9155
9181
  rightIconToDisplay = cloneElement4(rightIconToDisplay, {
9156
9182
  size: "md",
9157
9183
  className: "wui-input-right-icon"
9158
9184
  });
9159
9185
  }
9160
9186
  const handleFocus2 = (event) => {
9161
- if (isNotNil14(props.onFocus)) {
9187
+ if (isNotNil16(props.onFocus)) {
9162
9188
  props.onFocus(event);
9163
9189
  }
9164
9190
  if (autoSelect && isValidRef(ref) && "current" in ref) {
@@ -9551,7 +9577,7 @@ var FormErrorSummary = ({ description }) => {
9551
9577
  // src/components/FormField/FormField.tsx
9552
9578
  import { Children as Children5, cloneElement as cloneElement5, useContext as useContext3 } from "react";
9553
9579
  import styled36 from "styled-components";
9554
- import { isArray as isArray2, isNotNil as isNotNil15, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
9580
+ import { isArray as isArray2, isNotNil as isNotNil17, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
9555
9581
 
9556
9582
  // src/components/Label/Label.tsx
9557
9583
  import styled34, { css as css28 } from "styled-components";
@@ -9767,8 +9793,8 @@ var FormField = ({
9767
9793
  defaultValue
9768
9794
  };
9769
9795
  }
9770
- if (isNotNil15(checkboxGroup)) {
9771
- const computedName = isNotNil15(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9796
+ if (isNotNil17(checkboxGroup)) {
9797
+ const computedName = isNotNil17(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
9772
9798
  const handleChange = (event) => {
9773
9799
  if (isNotUndefined9(props.onChange)) {
9774
9800
  props.onChange(event);
@@ -9781,7 +9807,7 @@ var FormField = ({
9781
9807
  ...childProps,
9782
9808
  name: computedName,
9783
9809
  onChange: handleChange,
9784
- "aria-invalid": isNotNil15(error)
9810
+ "aria-invalid": isNotNil17(error)
9785
9811
  };
9786
9812
  }
9787
9813
  Children5.only(children);
@@ -9792,9 +9818,9 @@ var FormField = ({
9792
9818
  "data-label-position": labelPosition ?? formState.labelPosition,
9793
9819
  children: [
9794
9820
  !isIntegratedLabel && /* @__PURE__ */ jsx227(Label, { htmlFor: computedId, children: label }),
9795
- isNotNil15(description) ? /* @__PURE__ */ jsx227(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9821
+ isNotNil17(description) ? /* @__PURE__ */ jsx227(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
9796
9822
  cloneElement5(children, childProps),
9797
- isNotNil15(computedError) ? /* @__PURE__ */ jsxs24(Fragment6, { children: [
9823
+ isNotNil17(computedError) ? /* @__PURE__ */ jsxs24(Fragment6, { children: [
9798
9824
  /* @__PURE__ */ jsx227("div", {}),
9799
9825
  /* @__PURE__ */ jsx227(
9800
9826
  ErrorMessages,
@@ -9877,7 +9903,7 @@ import {
9877
9903
  DropdownMenuPortal,
9878
9904
  DropdownMenuContent
9879
9905
  } from "@radix-ui/react-dropdown-menu";
9880
- import { isNotNil as isNotNil16, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
9906
+ import { isNotNil as isNotNil18, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
9881
9907
  import { useMemo as useMemo7 } from "react";
9882
9908
 
9883
9909
  // src/components/Menu/MenuContext.tsx
@@ -9989,7 +10015,7 @@ var Menu = ({
9989
10015
  }) => {
9990
10016
  const contextValue = useMemo7(() => ({ compact }), [compact]);
9991
10017
  let controlProps = {
9992
- ...isNotNil16(onOpenChange) && isNotNil16(isOpen) ? { open: isOpen, onOpenChange } : {}
10018
+ ...isNotNil18(onOpenChange) && isNotNil18(isOpen) ? { open: isOpen, onOpenChange } : {}
9993
10019
  };
9994
10020
  if (disabled) {
9995
10021
  controlProps = {
@@ -10071,12 +10097,12 @@ import {
10071
10097
  DropdownMenuSubTrigger,
10072
10098
  DropdownMenuItem
10073
10099
  } from "@radix-ui/react-dropdown-menu";
10074
- import { isNotNil as isNotNil18 } from "@wistia/type-guards";
10100
+ import { isNotNil as isNotNil20 } from "@wistia/type-guards";
10075
10101
 
10076
10102
  // src/components/Menu/MenuItemButton.tsx
10077
10103
  import { forwardRef as forwardRef14 } from "react";
10078
10104
  import styled40 from "styled-components";
10079
- import { isNotNil as isNotNil17, isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
10105
+ import { isNotNil as isNotNil19, isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
10080
10106
  import { jsx as jsx232, jsxs as jsxs26 } from "react/jsx-runtime";
10081
10107
  var StyledButton3 = styled40(Button)`
10082
10108
  ${({ colorScheme }) => getColorScheme(colorScheme)};
@@ -10184,7 +10210,7 @@ var MenuItemButton = forwardRef14(({ children, appearance, command, icon, ...pro
10184
10210
  children: [
10185
10211
  props.leftIcon ? /* @__PURE__ */ jsx232(StyledLeftIconContainer, { children: props.leftIcon }) : null,
10186
10212
  /* @__PURE__ */ jsx232(StyledLabelAndDescriptionContainer, { children }),
10187
- isNotNil17(badge) || isNotNil17(command) ? /* @__PURE__ */ jsx232(StyledBadgeContainer, { children: badge ?? command }) : null,
10213
+ isNotNil19(badge) || isNotNil19(command) ? /* @__PURE__ */ jsx232(StyledBadgeContainer, { children: badge ?? command }) : null,
10188
10214
  props.rightIcon ? /* @__PURE__ */ jsx232(StyledRightIconContainer, { children: props.rightIcon }) : null
10189
10215
  ]
10190
10216
  }
@@ -10252,7 +10278,7 @@ var SubMenu = ({
10252
10278
  return isSmAndUp ? /* @__PURE__ */ jsxs27(DropdownMenuSub, { onOpenChange, children: [
10253
10279
  /* @__PURE__ */ jsxs27(SubMenuTrigger, { ...props, children: [
10254
10280
  /* @__PURE__ */ jsx234(MenuItemLabel, { children: label }),
10255
- isNotNil18(description) ? /* @__PURE__ */ jsx234(MenuItemDescription, { children: description }) : null
10281
+ isNotNil20(description) ? /* @__PURE__ */ jsx234(MenuItemDescription, { children: description }) : null
10256
10282
  ] }),
10257
10283
  /* @__PURE__ */ jsx234(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx234(SubMenuContent, { $compact: compact, children }) })
10258
10284
  ] }) : /* @__PURE__ */ jsxs27(DropdownMenuGroup, { children: [
@@ -10439,7 +10465,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
10439
10465
  import { forwardRef as forwardRef18 } from "react";
10440
10466
  import styled47 from "styled-components";
10441
10467
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
10442
- import { isNotNil as isNotNil20 } from "@wistia/type-guards";
10468
+ import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10443
10469
 
10444
10470
  // src/components/Modal/ModalHeader.tsx
10445
10471
  import styled44 from "styled-components";
@@ -10502,7 +10528,7 @@ import { Content as DialogContent } from "@radix-ui/react-dialog";
10502
10528
 
10503
10529
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
10504
10530
  import { useRef as useRef9, useEffect as useEffect7 } from "react";
10505
- import { isNotNil as isNotNil19 } from "@wistia/type-guards";
10531
+ import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10506
10532
  var useFocusRestore = () => {
10507
10533
  const previouslyFocusedRef = useRef9(null);
10508
10534
  useEffect7(() => {
@@ -10510,7 +10536,7 @@ var useFocusRestore = () => {
10510
10536
  }, []);
10511
10537
  useEffect7(() => {
10512
10538
  return () => {
10513
- if (isNotNil19(previouslyFocusedRef.current)) {
10539
+ if (isNotNil21(previouslyFocusedRef.current)) {
10514
10540
  setTimeout(() => {
10515
10541
  previouslyFocusedRef.current?.focus();
10516
10542
  }, 0);
@@ -10657,7 +10683,7 @@ var Modal = forwardRef18(
10657
10683
  DialogRoot,
10658
10684
  {
10659
10685
  onOpenChange: (open2) => {
10660
- if (!open2 && isNotNil20(onRequestClose)) {
10686
+ if (!open2 && isNotNil22(onRequestClose)) {
10661
10687
  onRequestClose();
10662
10688
  }
10663
10689
  },
@@ -10670,7 +10696,7 @@ var Modal = forwardRef18(
10670
10696
  ref,
10671
10697
  fullHeight,
10672
10698
  onOpenAutoFocus: (event) => {
10673
- if (isNotNil20(initialFocusRef) && initialFocusRef.current) {
10699
+ if (isNotNil22(initialFocusRef) && initialFocusRef.current) {
10674
10700
  event.preventDefault();
10675
10701
  requestAnimationFrame(() => {
10676
10702
  initialFocusRef.current?.focus();
@@ -10704,9 +10730,9 @@ import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close
10704
10730
  import styled48, { css as css30 } from "styled-components";
10705
10731
 
10706
10732
  // src/private/helpers/getControls/getControlProps.tsx
10707
- import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10733
+ import { isNotNil as isNotNil23 } from "@wistia/type-guards";
10708
10734
  var getControlProps = (isOpen, onOpenChange) => {
10709
- return isNotNil21(onOpenChange) && isNotNil21(isOpen) ? { open: isOpen, onOpenChange } : {};
10735
+ return isNotNil23(onOpenChange) && isNotNil23(isOpen) ? { open: isOpen, onOpenChange } : {};
10710
10736
  };
10711
10737
 
10712
10738
  // src/components/Popover/Popover.tsx
@@ -10774,7 +10800,7 @@ Popover.displayName = "Popover";
10774
10800
  // src/components/ProgressBar/ProgressBar.tsx
10775
10801
  import styled49 from "styled-components";
10776
10802
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
10777
- import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10803
+ import { isNotNil as isNotNil24 } from "@wistia/type-guards";
10778
10804
  import { jsx as jsx245, jsxs as jsxs33 } from "react/jsx-runtime";
10779
10805
  var ProgressBarWrapper = styled49.div`
10780
10806
  --progress-bar-height: 8px;
@@ -10829,7 +10855,7 @@ var ProgressBar = ({
10829
10855
  ...props
10830
10856
  }) => {
10831
10857
  return /* @__PURE__ */ jsxs33(ProgressBarWrapper, { children: [
10832
- isNotNil22(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
10858
+ isNotNil24(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
10833
10859
  /* @__PURE__ */ jsx245(
10834
10860
  StyledProgressBar,
10835
10861
  {
@@ -10845,7 +10871,7 @@ var ProgressBar = ({
10845
10871
  )
10846
10872
  }
10847
10873
  ),
10848
- isNotNil22(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
10874
+ isNotNil24(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
10849
10875
  ] });
10850
10876
  };
10851
10877
  ProgressBar.displayName = "ProgressBar";
@@ -11162,7 +11188,7 @@ SegmentedControl.displayName = "SegmentedControl";
11162
11188
  import { forwardRef as forwardRef21, useEffect as useEffect8, useRef as useRef10 } from "react";
11163
11189
  import styled53, { css as css33 } from "styled-components";
11164
11190
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
11165
- import { isNotNil as isNotNil23 } from "@wistia/type-guards";
11191
+ import { isNotNil as isNotNil25 } from "@wistia/type-guards";
11166
11192
  import { jsxs as jsxs36 } from "react/jsx-runtime";
11167
11193
  var segmentedControlItemStyles = css33`
11168
11194
  all: unset; /* ToggleGroupItem is a button element */
@@ -11269,8 +11295,8 @@ var SegmentedControlItem = forwardRef21(
11269
11295
  StyledSegmentedControlItem,
11270
11296
  {
11271
11297
  ref: combinedRef,
11272
- $hasLabel: isNotNil23(label),
11273
- "aria-label": isNotNil23(label) ? void 0 : ariaLabel,
11298
+ $hasLabel: isNotNil25(label),
11299
+ "aria-label": isNotNil25(label) ? void 0 : ariaLabel,
11274
11300
  disabled,
11275
11301
  onClick: handleClick,
11276
11302
  value,
@@ -11411,7 +11437,7 @@ Select.displayName = "Select";
11411
11437
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11412
11438
  import { forwardRef as forwardRef23 } from "react";
11413
11439
  import styled55 from "styled-components";
11414
- import { isNotNil as isNotNil24 } from "@wistia/type-guards";
11440
+ import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11415
11441
  import { jsx as jsx251, jsxs as jsxs38 } from "react/jsx-runtime";
11416
11442
  var StyledItem = styled55(Item)`
11417
11443
  ${variantStyleMap2.body3};
@@ -11455,7 +11481,7 @@ var SelectOption = forwardRef23(
11455
11481
  type: "checkmark"
11456
11482
  }
11457
11483
  ) }) }),
11458
- isNotNil24(selectedDisplayValue) ? /* @__PURE__ */ jsxs38("div", { children: [
11484
+ isNotNil26(selectedDisplayValue) ? /* @__PURE__ */ jsxs38("div", { children: [
11459
11485
  children,
11460
11486
  /* @__PURE__ */ jsx251("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx251(ItemText, { children: selectedDisplayValue }) })
11461
11487
  ] }) : /* @__PURE__ */ jsx251(ItemText, { children })
@@ -11756,7 +11782,7 @@ var TableRow = ({ children, ...props }) => {
11756
11782
  // src/components/Tabs/Tabs.tsx
11757
11783
  import { forwardRef as forwardRef26, useState as useState11 } from "react";
11758
11784
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11759
- import { isNotNil as isNotNil26, isNil as isNil15 } from "@wistia/type-guards";
11785
+ import { isNotNil as isNotNil28, isNil as isNil15 } from "@wistia/type-guards";
11760
11786
  import styled68 from "styled-components";
11761
11787
 
11762
11788
  // src/components/Tabs/TabPanel.tsx
@@ -11812,7 +11838,7 @@ TabList.displayName = "TabList";
11812
11838
  import { forwardRef as forwardRef25, useEffect as useEffect9, useRef as useRef11 } from "react";
11813
11839
  import styled66 from "styled-components";
11814
11840
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
11815
- import { isNotNil as isNotNil25 } from "@wistia/type-guards";
11841
+ import { isNotNil as isNotNil27 } from "@wistia/type-guards";
11816
11842
 
11817
11843
  // src/components/Tabs/useTabsValue.tsx
11818
11844
  import { createContext as createContext9, useContext as useContext8 } from "react";
@@ -11870,8 +11896,8 @@ var TabItem = forwardRef25(
11870
11896
  StyledTabItem,
11871
11897
  {
11872
11898
  ref: combinedRef,
11873
- $hasLabel: isNotNil25(label),
11874
- "aria-label": isNotNil25(label) ? void 0 : ariaLabel,
11899
+ $hasLabel: isNotNil27(label),
11900
+ "aria-label": isNotNil27(label) ? void 0 : ariaLabel,
11875
11901
  disabled,
11876
11902
  value,
11877
11903
  children: [
@@ -12012,7 +12038,7 @@ var Tabs = forwardRef26(
12012
12038
  value
12013
12039
  );
12014
12040
  }
12015
- if (isNotNil26(label)) {
12041
+ if (isNotNil28(label)) {
12016
12042
  return /* @__PURE__ */ jsx263(
12017
12043
  TabItem,
12018
12044
  {
@@ -12024,7 +12050,7 @@ var Tabs = forwardRef26(
12024
12050
  value
12025
12051
  );
12026
12052
  }
12027
- if (isNotNil26(ariaLabelForTab)) {
12053
+ if (isNotNil28(ariaLabelForTab)) {
12028
12054
  return /* @__PURE__ */ jsx263(
12029
12055
  TabItem,
12030
12056
  {
@@ -12067,7 +12093,7 @@ Tab.displayName = "Tab";
12067
12093
  // src/components/Tag/Tag.tsx
12068
12094
  import { forwardRef as forwardRef28 } from "react";
12069
12095
  import styled69 from "styled-components";
12070
- import { isNil as isNil16, isNotNil as isNotNil27, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12096
+ import { isNil as isNil16, isNotNil as isNotNil29, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12071
12097
  import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs43 } from "react/jsx-runtime";
12072
12098
  var TagLabel = styled69.a`
12073
12099
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -12184,8 +12210,8 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12184
12210
  };
12185
12211
  var Tag = forwardRef28(
12186
12212
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12187
- const hasIcon = isNotNil27(icon);
12188
- const labelProps = isNotNil27(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12213
+ const hasIcon = isNotNil29(icon);
12214
+ const labelProps = isNotNil29(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12189
12215
  return /* @__PURE__ */ jsxs43(
12190
12216
  StyledTag,
12191
12217
  {
@@ -12221,7 +12247,7 @@ Tag.displayName = "Tag";
12221
12247
 
12222
12248
  // src/components/WistiaLogo/WistiaLogo.tsx
12223
12249
  import styled70, { css as css37 } from "styled-components";
12224
- import { isNotNil as isNotNil28 } from "@wistia/type-guards";
12250
+ import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12225
12251
  import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
12226
12252
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12227
12253
  if (iconOnly) {
@@ -12334,7 +12360,7 @@ var WistiaLogo = ({
12334
12360
  ...props,
12335
12361
  children: [
12336
12362
  /* @__PURE__ */ jsx266("title", { children: title }),
12337
- isNotNil28(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12363
+ isNotNil30(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12338
12364
  renderBrandmark(brandmarkColor, iconOnly),
12339
12365
  renderLogotype(logotypeColor, iconOnly)
12340
12366
  ]
@@ -12346,7 +12372,7 @@ WistiaLogo.displayName = "WistiaLogo";
12346
12372
 
12347
12373
  // src/components/Thumbnail/ThumbnailBadge.tsx
12348
12374
  import styled71 from "styled-components";
12349
- import { isNotNil as isNotNil29 } from "@wistia/type-guards";
12375
+ import { isNotNil as isNotNil31 } from "@wistia/type-guards";
12350
12376
  import { jsx as jsx267, jsxs as jsxs45 } from "react/jsx-runtime";
12351
12377
  var StyledThumbnailBadge = styled71.div`
12352
12378
  align-items: center;
@@ -12374,7 +12400,7 @@ var StyledThumbnailBadge = styled71.div`
12374
12400
  `;
12375
12401
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12376
12402
  return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12377
- isNotNil29(icon) && icon,
12403
+ isNotNil31(icon) && icon,
12378
12404
  /* @__PURE__ */ jsx267("span", { children: label })
12379
12405
  ] });
12380
12406
  };
@@ -12383,10 +12409,10 @@ ThumbnailBadge.displayName = "ThumbnailBadge";
12383
12409
  // src/components/Thumbnail/Thumbnail.tsx
12384
12410
  import { forwardRef as forwardRef29 } from "react";
12385
12411
  import styled72 from "styled-components";
12386
- import { isNil as isNil17, isNotNil as isNotNil31 } from "@wistia/type-guards";
12412
+ import { isNil as isNil17, isNotNil as isNotNil33 } from "@wistia/type-guards";
12387
12413
 
12388
12414
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12389
- import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12415
+ import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12390
12416
  import { css as css38 } from "styled-components";
12391
12417
  var gradients = {
12392
12418
  defaultDarkOne: css38`
@@ -12514,7 +12540,7 @@ var gradients = {
12514
12540
  };
12515
12541
  var gradientMap = Object.keys(gradients);
12516
12542
  var getBackgroundGradient = (gradientName = void 0) => {
12517
- return isNotNil30(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12543
+ return isNotNil32(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12518
12544
  };
12519
12545
 
12520
12546
  // src/components/Thumbnail/Thumbnail.tsx
@@ -12548,7 +12574,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12548
12574
  );
12549
12575
  };
12550
12576
  var StyledThumbnail = styled72.div`
12551
- background-image: ${({ $backgroundUrl }) => isNotNil31($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12577
+ background-image: ${({ $backgroundUrl }) => isNotNil33($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12552
12578
  ${({ $backgroundUrl, $gradientBackground }) => (
12553
12579
  // if we don't have $backgroundUrl show a gradient
12554
12580
  isNil17($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
@@ -12571,7 +12597,7 @@ var Thumbnail = forwardRef29(
12571
12597
  children,
12572
12598
  ...props
12573
12599
  }, ref) => {
12574
- const backgroundUrl = thumbnailImageType === "square" && isNotNil31(thumbnailUrl) ? thumbnailUrl : void 0;
12600
+ const backgroundUrl = thumbnailImageType === "square" && isNotNil33(thumbnailUrl) ? thumbnailUrl : void 0;
12575
12601
  return /* @__PURE__ */ jsxs46(
12576
12602
  StyledThumbnail,
12577
12603
  {
@@ -12581,8 +12607,8 @@ var Thumbnail = forwardRef29(
12581
12607
  $width: width,
12582
12608
  ...props,
12583
12609
  children: [
12584
- isNotNil31(children) ? children : null,
12585
- isNotNil31(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12610
+ isNotNil33(children) ? children : null,
12611
+ isNotNil33(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12586
12612
  ThumbnailImage,
12587
12613
  {
12588
12614
  thumbnailImageType,
@@ -12675,8 +12701,6 @@ export {
12675
12701
  colorSchemeOptions,
12676
12702
  copyToClipboard,
12677
12703
  dateTime,
12678
- ellipsisFlexParentStyle,
12679
- ellipsisStyle,
12680
12704
  iconSizeMap,
12681
12705
  mergeRefs,
12682
12706
  mq,