@wistia/ui 0.8.7 → 0.8.8-beta.2b404aae.0ab25b9

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.8.7
3
+ * @license @wistia/ui v0.8.8-beta.2b404aae.0ab25b9
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9,6 +9,7 @@
9
9
 
10
10
 
11
11
  // src/providers/UIProvider/UIProvider.tsx
12
+ import { createContext as createContext2, useContext, useEffect as useEffect2 } from "react";
12
13
  import { Provider as TooltipProvider } from "@radix-ui/react-tooltip";
13
14
 
14
15
  // src/css/GlobalStyle.tsx
@@ -1468,12 +1469,21 @@ var ToastProvider = () => /* @__PURE__ */ jsx2(Toaster, { ...toastConfig });
1468
1469
 
1469
1470
  // src/providers/UIProvider/UIProvider.tsx
1470
1471
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
1472
+ var UIProviderContext = createContext2(false);
1471
1473
  var UIProvider = ({ children }) => {
1472
- return /* @__PURE__ */ jsx3(AriaLiveProvider, { children: /* @__PURE__ */ jsxs(TooltipProvider, { children: [
1474
+ const hasUIProviderParent = useContext(UIProviderContext);
1475
+ useEffect2(() => {
1476
+ if (hasUIProviderParent) {
1477
+ throw new Error(
1478
+ "UIProvider cannot be nested inside another UIProvider. This can lead to unexpected behavior."
1479
+ );
1480
+ }
1481
+ }, [hasUIProviderParent]);
1482
+ return /* @__PURE__ */ jsx3(UIProviderContext.Provider, { value: true, children: /* @__PURE__ */ jsx3(AriaLiveProvider, { children: /* @__PURE__ */ jsxs(TooltipProvider, { children: [
1473
1483
  /* @__PURE__ */ jsx3(GlobalStyle, {}),
1474
1484
  children,
1475
1485
  process.env["NODE_ENV"] !== "test" && /* @__PURE__ */ jsx3(ToastProvider, {})
1476
- ] }) });
1486
+ ] }) }) });
1477
1487
  };
1478
1488
 
1479
1489
  // src/helpers/copyToClipboard/copyToClipboard.ts
@@ -1941,10 +1951,10 @@ var mq = {
1941
1951
  };
1942
1952
 
1943
1953
  // src/hooks/useAriaLive/useAriaLive.tsx
1944
- import { useContext } from "react";
1954
+ import { useContext as useContext2 } from "react";
1945
1955
  import { isNil as isNil4 } from "@wistia/type-guards";
1946
1956
  var useAriaLive = () => {
1947
- const context = useContext(AriaLiveContext);
1957
+ const context = useContext2(AriaLiveContext);
1948
1958
  if (isNil4(context)) {
1949
1959
  throw new Error("useAriaLive must be used within an AriaLiveProvider");
1950
1960
  }
@@ -1975,7 +1985,7 @@ import {
1975
1985
  import { useCallback as useCallback3 } from "react";
1976
1986
 
1977
1987
  // src/private/hooks/useEvent/useEvent.ts
1978
- import { useEffect as useEffect2, useRef as useRef2 } from "react";
1988
+ import { useEffect as useEffect3, useRef as useRef2 } from "react";
1979
1989
 
1980
1990
  // src/private/helpers/isValidRef/isValidRef.ts
1981
1991
  import { isNotNil as isNotNil2, isRecord } from "@wistia/type-guards";
@@ -1996,13 +2006,13 @@ var isEventTargetSupported = (eventTarget) => (
1996
2006
  var useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
1997
2007
  const savedEventHandler = useRef2();
1998
2008
  const savedEventOptions = useRef2();
1999
- useEffect2(() => {
2009
+ useEffect3(() => {
2000
2010
  savedEventHandler.current = eventHandler;
2001
2011
  }, [eventHandler]);
2002
- useEffect2(() => {
2012
+ useEffect3(() => {
2003
2013
  savedEventOptions.current = eventOptions;
2004
2014
  }, [eventOptions]);
2005
- useEffect2(() => {
2015
+ useEffect3(() => {
2006
2016
  const target = isValidRef(eventTarget) ? eventTarget.current : eventTarget;
2007
2017
  if (!eventName || !isEventTargetSupported(target)) {
2008
2018
  return;
@@ -2090,9 +2100,9 @@ var useLockBodyScroll = (locked) => {
2090
2100
  };
2091
2101
 
2092
2102
  // src/hooks/useOnClickOutside/useOnClickOutside.ts
2093
- import { useEffect as useEffect3 } from "react";
2103
+ import { useEffect as useEffect4 } from "react";
2094
2104
  var useOnClickOutside = (ref, handler, eventTypes = ["mousedown", "touchend"]) => {
2095
- useEffect3(() => {
2105
+ useEffect4(() => {
2096
2106
  const listener = (event) => {
2097
2107
  if (!ref.current || ref.current.contains(event.target)) {
2098
2108
  return;
@@ -2196,9 +2206,20 @@ import { isNotNil as isNotNil4 } from "@wistia/type-guards";
2196
2206
 
2197
2207
  // src/components/Ellipsis/Ellipsis.tsx
2198
2208
  import { isNotNil as isNotNil3 } from "@wistia/type-guards";
2199
- import styled, { css as css12 } from "styled-components";
2209
+ import styled, { css as css13 } from "styled-components";
2210
+
2211
+ // src/css/lineClampCss.tsx
2212
+ import { css as css12 } from "styled-components";
2213
+ var lineClampCss = ($lines = 1) => css12`
2214
+ -webkit-box-orient: vertical;
2215
+ -webkit-line-clamp: ${$lines};
2216
+ display: -webkit-box !important;
2217
+ white-space: initial;
2218
+ `;
2219
+
2220
+ // src/components/Ellipsis/Ellipsis.tsx
2200
2221
  import { jsx as jsx4 } from "react/jsx-runtime";
2201
- var ellipsisStyle = css12`
2222
+ var ellipsisStyle = css13`
2202
2223
  overflow: hidden;
2203
2224
  text-overflow: ellipsis;
2204
2225
  white-space: nowrap;
@@ -2222,23 +2243,14 @@ var ellipsisStyle = css12`
2222
2243
  }
2223
2244
  }
2224
2245
  `;
2225
- var lineClampStyle = css12`
2226
- -webkit-box-orient: vertical;
2227
- -webkit-line-clamp: 1;
2228
- display: -webkit-box !important;
2229
- white-space: initial;
2230
- `;
2231
- var ellipsisFlexParentStyle = css12`
2246
+ var ellipsisFlexParentStyle = css13`
2232
2247
  min-width: 0;
2233
2248
  `;
2234
2249
  var EllipsisComponent = styled.span`
2235
2250
  ${ellipsisStyle};
2236
2251
  ${({ $lines }) => {
2237
2252
  if (isNotNil3($lines)) {
2238
- return css12`
2239
- ${lineClampStyle};
2240
- -webkit-line-clamp: ${$lines};
2241
- `;
2253
+ return lineClampCss($lines);
2242
2254
  }
2243
2255
  return void 0;
2244
2256
  }}
@@ -2254,7 +2266,7 @@ var Ellipsis = ({ children, lines, ...props }) => /* @__PURE__ */ jsx4(
2254
2266
  Ellipsis.displayName = "Ellipsis";
2255
2267
 
2256
2268
  // src/private/helpers/getColorScheme/getColorScheme.ts
2257
- import { css as css13 } from "styled-components";
2269
+ import { css as css14 } from "styled-components";
2258
2270
  var colorSchemeSchema = [
2259
2271
  { token: "bg-surface", step: "2" },
2260
2272
  { token: "bg-surface-hover", step: "3" },
@@ -2281,7 +2293,7 @@ var colorSchemeSchema = [
2281
2293
  { token: "icon-on-fill", step: "contrast" },
2282
2294
  { token: "focus-ring", step: "9" }
2283
2295
  ];
2284
- var defaultScheme = css13`
2296
+ var defaultScheme = css14`
2285
2297
  --wui-color-bg-surface: var(--wui-gray-1);
2286
2298
  --wui-color-bg-surface-hover: var(--wui-gray-3);
2287
2299
  --wui-color-bg-surface-active: var(--wui-gray-4);
@@ -2307,7 +2319,7 @@ var defaultScheme = css13`
2307
2319
  --wui-color-icon-on-fill: var(--wui-gray-contrast);
2308
2320
  --wui-color-focus-ring: var(--wui-blue-9);
2309
2321
  `;
2310
- var navScheme = css13`
2322
+ var navScheme = css14`
2311
2323
  --wui-color-bg-app: #1e3399;
2312
2324
 
2313
2325
  --wui-color-bg-fill: var(--wui-blue-1);
@@ -2368,7 +2380,7 @@ var getColorScheme = (colorScheme) => {
2368
2380
  if (colorScheme === "default") {
2369
2381
  return defaultScheme;
2370
2382
  }
2371
- return css13`
2383
+ return css14`
2372
2384
  ${colorSchemeSchema.map(({ token, step }) => {
2373
2385
  return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
2374
2386
  }).join("")}
@@ -2381,6 +2393,8 @@ var Message = styled2(Ellipsis)`
2381
2393
  line-height: var(--wui-typography-label-3-line-height);
2382
2394
  font-size: var(--wui-typography-label-3-size);
2383
2395
  font-weight: var(--wui-typography-label-3-weight);
2396
+
2397
+ ${lineClampCss(3)}
2384
2398
  `;
2385
2399
  var MessageWrapper = styled2.div`
2386
2400
  display: flex;
@@ -2483,7 +2497,7 @@ var useToast = () => {
2483
2497
  };
2484
2498
 
2485
2499
  // src/hooks/useFocusTrap/useFocusTrap.ts
2486
- import { useRef as useRef3, useCallback as useCallback5, useEffect as useEffect4 } from "react";
2500
+ import { useRef as useRef3, useCallback as useCallback5, useEffect as useEffect5 } from "react";
2487
2501
  import { isNotUndefined } from "@wistia/type-guards";
2488
2502
 
2489
2503
  // src/hooks/useFocusTrap/helpers.ts
@@ -2697,7 +2711,7 @@ var useFocusTrap = (active = true, options = {}) => {
2697
2711
  },
2698
2712
  [active, options.focusSelector, options.disableAriaHider]
2699
2713
  );
2700
- useEffect4(() => {
2714
+ useEffect5(() => {
2701
2715
  if (!active) {
2702
2716
  return void 0;
2703
2717
  }
@@ -2716,7 +2730,7 @@ var useFocusTrap = (active = true, options = {}) => {
2716
2730
 
2717
2731
  // src/components/ActionButton/ActionButton.tsx
2718
2732
  import { forwardRef as forwardRef3 } from "react";
2719
- import styled6, { css as css16 } from "styled-components";
2733
+ import styled6, { css as css17 } from "styled-components";
2720
2734
 
2721
2735
  // src/components/Button/Button.tsx
2722
2736
  import { forwardRef as forwardRef2 } from "react";
@@ -2724,8 +2738,8 @@ import styled5 from "styled-components";
2724
2738
  import { isNotNil as isNotNil6, isNotUndefined as isNotUndefined4 } from "@wistia/type-guards";
2725
2739
 
2726
2740
  // src/css/buttonResetCss.tsx
2727
- import { css as css14 } from "styled-components";
2728
- var buttonResetCss = css14`
2741
+ import { css as css15 } from "styled-components";
2742
+ var buttonResetCss = css15`
2729
2743
  align-items: center;
2730
2744
  background-color: transparent;
2731
2745
  background-image: none;
@@ -2770,8 +2784,8 @@ var buttonResetCss = css14`
2770
2784
  `;
2771
2785
 
2772
2786
  // src/components/Button/buttonStyles.tsx
2773
- import { css as css15 } from "styled-components";
2774
- var buttonSmallStyles = css15`
2787
+ import { css as css16 } from "styled-components";
2788
+ var buttonSmallStyles = css16`
2775
2789
  --button-padding-vertical: var(--wui-space-01);
2776
2790
  --button-padding-horizontal: var(--wui-space-02);
2777
2791
  --button-label-padding-horizontal: var(--wui-space-01);
@@ -2782,7 +2796,7 @@ var buttonSmallStyles = css15`
2782
2796
  --button-icon-size: 12px;
2783
2797
  --button-label-gap: 4px;
2784
2798
  `;
2785
- var buttonMediumStyles = css15`
2799
+ var buttonMediumStyles = css16`
2786
2800
  --button-padding-vertical: var(--wui-space-02);
2787
2801
  --button-padding-horizontal: var(--wui-space-02);
2788
2802
  --button-label-padding-horizontal: 6px;
@@ -2793,7 +2807,7 @@ var buttonMediumStyles = css15`
2793
2807
  --button-icon-size: 16px;
2794
2808
  --button-label-gap: 6px;
2795
2809
  `;
2796
- var buttonLargeStyles = css15`
2810
+ var buttonLargeStyles = css16`
2797
2811
  --button-padding-vertical: var(--wui-space-02);
2798
2812
  --button-padding-horizontal: var(--wui-space-02);
2799
2813
  --button-label-padding-horizontal: var(--wui-space-02);
@@ -2804,7 +2818,7 @@ var buttonLargeStyles = css15`
2804
2818
  --button-icon-size: 24px;
2805
2819
  --button-label-gap: 8px;
2806
2820
  `;
2807
- var buttonExtraLargeStyles = css15`
2821
+ var buttonExtraLargeStyles = css16`
2808
2822
  --button-padding-vertical: var(--wui-space-03);
2809
2823
  --button-padding-horizontal: var(--wui-space-03);
2810
2824
  --button-label-padding-horizontal: var(--wui-space-02);
@@ -2815,34 +2829,34 @@ var buttonExtraLargeStyles = css15`
2815
2829
  --button-icon-size: 24px;
2816
2830
  --button-label-gap: 8px;
2817
2831
  `;
2818
- var ghostButtonVariant = css15`
2832
+ var ghostButtonVariant = css16`
2819
2833
  --button-color-bg: transparent;
2820
2834
  --button-color-bg-hover: var(--wui-color-bg-surface-hover);
2821
2835
  --button-color-bg-active: var(--wui-color-bg-surface-active);
2822
2836
  --button-color-text: var(--wui-color-text-button);
2823
2837
  --button-color-icon: var(--wui-color-icon);
2824
2838
  `;
2825
- var outlineButtonVariant = css15`
2839
+ var outlineButtonVariant = css16`
2826
2840
  ${ghostButtonVariant};
2827
2841
  --button-color-border: var(--wui-color-border);
2828
2842
 
2829
2843
  box-shadow: 0 0 0 2px var(--button-color-border) inset;
2830
2844
  `;
2831
- var softButtonVariant = css15`
2845
+ var softButtonVariant = css16`
2832
2846
  --button-color-bg: var(--wui-color-bg-surface-secondary);
2833
2847
  --button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
2834
2848
  --button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
2835
2849
  --button-color-text: var(--wui-color-text-button);
2836
2850
  --button-color-icon: var(--wui-color-icon);
2837
2851
  `;
2838
- var solidButtonVariant = css15`
2852
+ var solidButtonVariant = css16`
2839
2853
  --button-color-bg: var(--wui-color-bg-fill);
2840
2854
  --button-color-bg-hover: var(--wui-color-bg-fill-hover);
2841
2855
  --button-color-bg-active: var(--wui-color-bg-fill-active);
2842
2856
  --button-color-text: var(--wui-color-text-on-fill);
2843
2857
  --button-color-icon: var(--wui-color-icon-on-fill);
2844
2858
  `;
2845
- var disabledButtonVariant = css15`
2859
+ var disabledButtonVariant = css16`
2846
2860
  --button-color-bg: var(--wui-color-bg-surface-disabled);
2847
2861
  --button-color-bg-hover: var(--wui-color-bg-surface-disabled);
2848
2862
  --button-color-bg-active: var(--wui-color-bg-surface-disabled);
@@ -2850,7 +2864,7 @@ var disabledButtonVariant = css15`
2850
2864
  --button-color-icon: var(--wui-color-icon-disabled);
2851
2865
  --button-color-border: var(--wui-color-border-disabled);
2852
2866
  `;
2853
- var pressedButtonVariant = css15`
2867
+ var pressedButtonVariant = css16`
2854
2868
  --button-color-bg: var(--wui-color-bg-surface-selected);
2855
2869
  --button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
2856
2870
  --button-color-bg-active: var(--wui-color-bg-surface-selected-active);
@@ -2858,7 +2872,7 @@ var pressedButtonVariant = css15`
2858
2872
  --button-color-icon: var(--wui-color-icon-selected);
2859
2873
  --button-color-border: var(--wui-color-border-selected);
2860
2874
  `;
2861
- var buttonBaseStyles = css15`
2875
+ var buttonBaseStyles = css16`
2862
2876
  border-radius: var(--wui-border-radius-rounded);
2863
2877
  font-family: var(--button-typography-family);
2864
2878
  font-size: var(--button-typography-size);
@@ -6924,7 +6938,7 @@ var Link = forwardRef(
6924
6938
  if (isFunction2(props.onClick)) {
6925
6939
  props.onClick(event);
6926
6940
  }
6927
- if (!inRouterContext && isNotNil5(to)) {
6941
+ if (!shouldUseReactRouterLink && isNotNil5(to)) {
6928
6942
  window.location.assign(to);
6929
6943
  }
6930
6944
  }
@@ -7191,7 +7205,7 @@ var StyledSecondaryIcon = styled6.div`
7191
7205
  justify-content: flex-end;
7192
7206
  transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
7193
7207
 
7194
- ${({ $hideUntilHover }) => $hideUntilHover && css16`
7208
+ ${({ $hideUntilHover }) => $hideUntilHover && css17`
7195
7209
  will-change: transform;
7196
7210
  opacity: 0;
7197
7211
  transform: translateX(-16px);
@@ -7263,7 +7277,7 @@ var ActionButton = forwardRef3(
7263
7277
  ActionButton.displayName = "ActionButton";
7264
7278
 
7265
7279
  // src/components/Avatar/Avatar.tsx
7266
- import { useState as useState5, useMemo as useMemo3, useEffect as useEffect5 } from "react";
7280
+ import { useState as useState5, useMemo as useMemo3, useEffect as useEffect6 } from "react";
7267
7281
  import { isNil as isNil8, isNotNil as isNotNil8 } from "@wistia/type-guards";
7268
7282
  import styled9 from "styled-components";
7269
7283
 
@@ -7472,7 +7486,7 @@ var Avatar = ({
7472
7486
  ...props
7473
7487
  }) => {
7474
7488
  const [imageLoadState, setImageLoadState] = useState5("loading");
7475
- useEffect5(() => {
7489
+ useEffect6(() => {
7476
7490
  setImageLoadState("loading");
7477
7491
  }, [imageUrl]);
7478
7492
  const handleImageLoad = () => {
@@ -7557,7 +7571,7 @@ Badge.displayName = "Badge";
7557
7571
 
7558
7572
  // src/components/Box/Box.tsx
7559
7573
  import { Children, cloneElement as cloneElement2, forwardRef as forwardRef5 } from "react";
7560
- import styled11, { css as css17 } from "styled-components";
7574
+ import styled11, { css as css18 } from "styled-components";
7561
7575
  import { isNotNil as isNotNil10, isNil as isNil9, isRecord as isRecord3, isNotUndefined as isNotUndefined5 } from "@wistia/type-guards";
7562
7576
 
7563
7577
  // src/private/helpers/makePolymorphic/makePolymorphic.tsx
@@ -7614,27 +7628,27 @@ var getFlexStyle = (flexMode) => {
7614
7628
  switch (flexMode) {
7615
7629
  // grows to fill space, won't shrink, starts at 0
7616
7630
  case "grow":
7617
- return css17`
7631
+ return css18`
7618
7632
  flex: 1 0 0;
7619
7633
  `;
7620
7634
  // default behavior, can shrink but won't grow
7621
7635
  case "initial":
7622
- return css17`
7636
+ return css18`
7623
7637
  flex: 0 1 auto;
7624
7638
  `;
7625
7639
  // equal distribution of space
7626
7640
  case "equal":
7627
- return css17`
7641
+ return css18`
7628
7642
  flex: 1;
7629
7643
  `;
7630
7644
  // won't grow or shrink
7631
7645
  case "rigid":
7632
- return css17`
7646
+ return css18`
7633
7647
  flex: 0 0 auto;
7634
7648
  `;
7635
7649
  // can grow and shrink from content size
7636
7650
  case "fluid":
7637
- return css17`
7651
+ return css18`
7638
7652
  flex: 1 1 auto;
7639
7653
  `;
7640
7654
  default:
@@ -7991,18 +8005,18 @@ Center.displayName = "Center";
7991
8005
 
7992
8006
  // src/components/Checkbox/Checkbox.tsx
7993
8007
  import { forwardRef as forwardRef7, useId } from "react";
7994
- import styled20, { css as css20 } from "styled-components";
8008
+ import styled20, { css as css21 } from "styled-components";
7995
8009
  import { isNonEmptyString as isNonEmptyString2 } from "@wistia/type-guards";
7996
8010
 
7997
8011
  // src/private/components/FormControlLabel/FormControlLabel.tsx
7998
- import styled19, { css as css19 } from "styled-components";
8012
+ import styled19, { css as css20 } from "styled-components";
7999
8013
  import { isNil as isNil12, isNotNil as isNotNil12 } from "@wistia/type-guards";
8000
8014
 
8001
8015
  // src/private/components/FormControlLabel/FormControlLabelDescription.tsx
8002
- import styled17, { css as css18 } from "styled-components";
8016
+ import styled17, { css as css19 } from "styled-components";
8003
8017
  import { isNil as isNil11 } from "@wistia/type-guards";
8004
8018
  import { jsx as jsx205 } from "react/jsx-runtime";
8005
- var disabledStyle = css18`
8019
+ var disabledStyle = css19`
8006
8020
  color: var(--wui-color-text-disabled);
8007
8021
  `;
8008
8022
  var StyledFormControlLabelDescription = styled17.div`
@@ -8058,7 +8072,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
8058
8072
 
8059
8073
  // src/private/components/FormControlLabel/FormControlLabel.tsx
8060
8074
  import { jsx as jsx207, jsxs as jsxs14 } from "react/jsx-runtime";
8061
- var disabledStyle2 = css19`
8075
+ var disabledStyle2 = css20`
8062
8076
  cursor: not-allowed;
8063
8077
  color: var(--wui-color-text-disabled);
8064
8078
  `;
@@ -8129,7 +8143,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx208(
8129
8143
  )
8130
8144
  }
8131
8145
  );
8132
- var sizeSmall = css20`
8146
+ var sizeSmall = css21`
8133
8147
  width: 14px;
8134
8148
  height: 14px;
8135
8149
  min-width: 14px;
@@ -8140,7 +8154,7 @@ var sizeSmall = css20`
8140
8154
  height: 7px;
8141
8155
  }
8142
8156
  `;
8143
- var sizeMedium = css20`
8157
+ var sizeMedium = css21`
8144
8158
  width: 16px;
8145
8159
  height: 16px;
8146
8160
  min-width: 16px;
@@ -8151,7 +8165,7 @@ var sizeMedium = css20`
8151
8165
  height: 9px;
8152
8166
  }
8153
8167
  `;
8154
- var sizeLarge = css20`
8168
+ var sizeLarge = css21`
8155
8169
  width: 20px;
8156
8170
  height: 20px;
8157
8171
  min-width: 20px;
@@ -8268,9 +8282,9 @@ var Checkbox = forwardRef7(
8268
8282
  Checkbox.displayName = "Checkbox";
8269
8283
 
8270
8284
  // src/components/ClickRegion/ClickRegion.tsx
8271
- import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback6, useEffect as useEffect6 } from "react";
8285
+ import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback6, useEffect as useEffect7 } from "react";
8272
8286
  var ClickRegion = ({ children, targetRef }) => {
8273
- useEffect6(() => {
8287
+ useEffect7(() => {
8274
8288
  if (targetRef.current && targetRef.current.tagName === "A") {
8275
8289
  targetRef.current.setAttribute("data-click-region-target-link", "");
8276
8290
  } else if (targetRef.current && targetRef.current.tagName === "BUTTON") {
@@ -8360,46 +8374,46 @@ import { isNotNull } from "@wistia/type-guards";
8360
8374
 
8361
8375
  // src/components/Heading/Heading.tsx
8362
8376
  import { forwardRef as forwardRef8 } from "react";
8363
- import styled23, { css as css21 } from "styled-components";
8377
+ import styled23, { css as css22 } from "styled-components";
8364
8378
  import { isNotNil as isNotNil14 } from "@wistia/type-guards";
8365
8379
  import { jsx as jsx212 } from "react/jsx-runtime";
8366
- var heroStyle = css21`
8380
+ var heroStyle = css22`
8367
8381
  --font-family: var(--wui-typography-heading-hero-family);
8368
8382
  --font-size: var(--wui-typography-heading-hero-size);
8369
8383
  --font-weight: var(--wui-typography-heading-hero-weight);
8370
8384
  --line-height: var(--wui-typography-heading-hero-line-height);
8371
8385
  `;
8372
- var heading1TextStyle = css21`
8386
+ var heading1TextStyle = css22`
8373
8387
  --font-family: var(--wui-typography-heading-1-family);
8374
8388
  --font-size: var(--wui-typography-heading-1-size);
8375
8389
  --font-weight: var(--wui-typography-heading-1-weight);
8376
8390
  --line-height: var(--wui-typography-heading-1-line-height);
8377
8391
  `;
8378
- var heading2TextStyle = css21`
8392
+ var heading2TextStyle = css22`
8379
8393
  --font-family: var(--wui-typography-heading-2-family);
8380
8394
  --font-size: var(--wui-typography-heading-2-size);
8381
8395
  --font-weight: var(--wui-typography-heading-2-weight);
8382
8396
  --line-height: var(--wui-typography-heading-2-line-height);
8383
8397
  `;
8384
- var heading3TextStyle = css21`
8398
+ var heading3TextStyle = css22`
8385
8399
  --font-family: var(--wui-typography-heading-3-family);
8386
8400
  --font-size: var(--wui-typography-heading-3-size);
8387
8401
  --font-weight: var(--wui-typography-heading-3-weight);
8388
8402
  --line-height: var(--wui-typography-heading-3-line-height);
8389
8403
  `;
8390
- var heading4TextStyle = css21`
8404
+ var heading4TextStyle = css22`
8391
8405
  --font-family: var(--wui-typography-heading-4-family);
8392
8406
  --font-size: var(--wui-typography-heading-4-size);
8393
8407
  --font-weight: var(--wui-typography-heading-4-weight);
8394
8408
  --line-height: var(--wui-typography-heading-4-line-height);
8395
8409
  `;
8396
- var heading5TextStyle = css21`
8410
+ var heading5TextStyle = css22`
8397
8411
  --font-family: var(--wui-typography-heading-5-family);
8398
8412
  --font-size: var(--wui-typography-heading-5-size);
8399
8413
  --font-weight: var(--wui-typography-heading-5-weight);
8400
8414
  --line-height: var(--wui-typography-heading-5-line-height);
8401
8415
  `;
8402
- var heading6TextStyle = css21`
8416
+ var heading6TextStyle = css22`
8403
8417
  --font-family: var(--wui-typography-heading-6-family);
8404
8418
  --font-size: var(--wui-typography-heading-6-size);
8405
8419
  --font-weight: var(--wui-typography-heading-6-weight);
@@ -8425,26 +8439,23 @@ var StyledHeading = styled23.div`
8425
8439
  ${({ $variant }) => variantStyleMap[$variant]}
8426
8440
  ${({ $truncate }) => {
8427
8441
  if (isNotNil14($truncate)) {
8428
- return css21`
8442
+ return css22`
8429
8443
  ${ellipsisStyle};
8430
- -webkit-box-orient: vertical;
8431
- -webkit-line-clamp: ${$truncate};
8432
- display: -webkit-box;
8433
- white-space: initial;
8444
+ ${lineClampCss($truncate)};
8434
8445
  `;
8435
8446
  }
8436
8447
  return void 0;
8437
8448
  }}
8438
- ${({ $inline }) => $inline && css21`
8449
+ ${({ $inline }) => $inline && css22`
8439
8450
  display: inline-block;
8440
8451
  `}
8441
- ${({ $disabled }) => $disabled && css21`
8452
+ ${({ $disabled }) => $disabled && css22`
8442
8453
  color: var(--wui-color-text-disabled);
8443
8454
  `}
8444
- ${({ $preventUserSelect }) => $preventUserSelect && css21`
8455
+ ${({ $preventUserSelect }) => $preventUserSelect && css22`
8445
8456
  user-select: none;
8446
8457
  `}
8447
- ${({ $align }) => css21`
8458
+ ${({ $align }) => css22`
8448
8459
  text-align: ${$align};
8449
8460
  `}
8450
8461
  margin: 0;
@@ -8623,22 +8634,22 @@ import styled27 from "styled-components";
8623
8634
 
8624
8635
  // src/components/Text/Text.tsx
8625
8636
  import { forwardRef as forwardRef9 } from "react";
8626
- import styled26, { css as css22 } from "styled-components";
8637
+ import styled26, { css as css23 } from "styled-components";
8627
8638
  import { isNotNil as isNotNil15 } from "@wistia/type-guards";
8628
8639
  import { jsx as jsx215 } from "react/jsx-runtime";
8629
- var bodyBoldStyles = css22`
8640
+ var bodyBoldStyles = css23`
8630
8641
  > strong,
8631
8642
  b {
8632
8643
  font-weight: var(--wui-typography-weight-body-bold);
8633
8644
  }
8634
8645
  `;
8635
- var labelBoldStyles = css22`
8646
+ var labelBoldStyles = css23`
8636
8647
  > strong,
8637
8648
  b {
8638
8649
  font-weight: var(--wui-typography-weight-label-bold);
8639
8650
  }
8640
8651
  `;
8641
- var body1TextStyle = css22`
8652
+ var body1TextStyle = css23`
8642
8653
  --font-family: var(--wui-typography-body-1-family);
8643
8654
  --font-size: var(--wui-typography-body-1-size);
8644
8655
  --font-weight: var(--wui-typography-body-1-weight);
@@ -8646,7 +8657,7 @@ var body1TextStyle = css22`
8646
8657
  --paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
8647
8658
  ${bodyBoldStyles}
8648
8659
  `;
8649
- var body2TextStyle = css22`
8660
+ var body2TextStyle = css23`
8650
8661
  --font-family: var(--wui-typography-body-2-family);
8651
8662
  --font-size: var(--wui-typography-body-2-size);
8652
8663
  --font-weight: var(--wui-typography-body-2-weight);
@@ -8654,7 +8665,7 @@ var body2TextStyle = css22`
8654
8665
  --paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
8655
8666
  ${bodyBoldStyles}
8656
8667
  `;
8657
- var body3TextStyle = css22`
8668
+ var body3TextStyle = css23`
8658
8669
  --font-family: var(--wui-typography-body-3-family);
8659
8670
  --font-size: var(--wui-typography-body-3-size);
8660
8671
  --font-weight: var(--wui-typography-body-3-weight);
@@ -8662,7 +8673,7 @@ var body3TextStyle = css22`
8662
8673
  --paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
8663
8674
  ${bodyBoldStyles}
8664
8675
  `;
8665
- var body4TextStyle = css22`
8676
+ var body4TextStyle = css23`
8666
8677
  --font-family: var(--wui-typography-body-4-family);
8667
8678
  --font-size: var(--wui-typography-body-4-size);
8668
8679
  --font-weight: var(--wui-typography-body-4-weight);
@@ -8670,47 +8681,47 @@ var body4TextStyle = css22`
8670
8681
  --paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
8671
8682
  ${bodyBoldStyles}
8672
8683
  `;
8673
- var label1TextStyle = css22`
8684
+ var label1TextStyle = css23`
8674
8685
  --font-family: var(--wui-typography-label-1-family);
8675
8686
  --font-size: var(--wui-typography-label-1-size);
8676
8687
  --font-weight: var(--wui-typography-label-1-weight);
8677
8688
  --line-height: var(--wui-typography-label-1-line-height);
8678
8689
  ${labelBoldStyles}
8679
8690
  `;
8680
- var label2TextStyle = css22`
8691
+ var label2TextStyle = css23`
8681
8692
  --font-family: var(--wui-typography-label-2-family);
8682
8693
  --font-size: var(--wui-typography-label-2-size);
8683
8694
  --font-weight: var(--wui-typography-label-2-weight);
8684
8695
  --line-height: var(--wui-typography-label-2-line-height);
8685
8696
  ${labelBoldStyles}
8686
8697
  `;
8687
- var label3TextStyle = css22`
8698
+ var label3TextStyle = css23`
8688
8699
  --font-family: var(--wui-typography-label-3-family);
8689
8700
  --font-size: var(--wui-typography-label-3-size);
8690
8701
  --font-weight: var(--wui-typography-label-3-weight);
8691
8702
  --line-height: var(--wui-typography-label-3-line-height);
8692
8703
  ${labelBoldStyles}
8693
8704
  `;
8694
- var label4TextStyle = css22`
8705
+ var label4TextStyle = css23`
8695
8706
  --font-family: var(--wui-typography-label-4-family);
8696
8707
  --font-size: var(--wui-typography-label-4-size);
8697
8708
  --font-weight: var(--wui-typography-label-4-weight);
8698
8709
  --line-height: var(--wui-typography-label-4-line-height);
8699
8710
  ${labelBoldStyles}
8700
8711
  `;
8701
- var body1MonoTextStyle = css22`
8712
+ var body1MonoTextStyle = css23`
8702
8713
  ${body1TextStyle};
8703
8714
  --font-family: var(--wui-typography-family-mono);
8704
8715
  `;
8705
- var body2MonoTextStyle = css22`
8716
+ var body2MonoTextStyle = css23`
8706
8717
  ${body2TextStyle};
8707
8718
  --font-family: var(--wui-typography-family-mono);
8708
8719
  `;
8709
- var body3MonoTextStyle = css22`
8720
+ var body3MonoTextStyle = css23`
8710
8721
  ${body3TextStyle};
8711
8722
  --font-family: var(--wui-typography-family-mono);
8712
8723
  `;
8713
- var body4MonoTextStyle = css22`
8724
+ var body4MonoTextStyle = css23`
8714
8725
  ${body4TextStyle};
8715
8726
  --font-family: var(--wui-typography-family-mono);
8716
8727
  `;
@@ -8770,27 +8781,26 @@ var StyledText = styled26.div`
8770
8781
  ${({ $variant }) => variantStyleMap2[$variant]}
8771
8782
  ${({ $truncate }) => {
8772
8783
  if (isNotNil15($truncate)) {
8773
- return css22`
8784
+ return css23`
8774
8785
  ${ellipsisStyle};
8775
- ${lineClampStyle};
8776
- -webkit-line-clamp: ${$truncate};
8786
+ ${lineClampCss($truncate)};
8777
8787
  `;
8778
8788
  }
8779
8789
  return void 0;
8780
8790
  }}
8781
- ${({ $inline }) => $inline && css22`
8791
+ ${({ $inline }) => $inline && css23`
8782
8792
  display: inline-block;
8783
8793
  `}
8784
- ${({ $disabled }) => $disabled && css22`
8794
+ ${({ $disabled }) => $disabled && css23`
8785
8795
  --text-color: var(--wui-color-text-disabled);
8786
8796
  `}
8787
- ${({ $preventUserSelect }) => $preventUserSelect && css22`
8797
+ ${({ $preventUserSelect }) => $preventUserSelect && css23`
8788
8798
  user-select: none;
8789
8799
  `}
8790
- ${({ $align }) => css22`
8800
+ ${({ $align }) => css23`
8791
8801
  text-align: ${$align};
8792
8802
  `}
8793
- ${({ as }) => as === "p" && css22`
8803
+ ${({ as }) => as === "p" && css23`
8794
8804
  display: block;
8795
8805
 
8796
8806
  + p {
@@ -8870,16 +8880,16 @@ var DataCardTrend = ({
8870
8880
  };
8871
8881
 
8872
8882
  // src/components/Divider/Divider.tsx
8873
- import styled28, { css as css23 } from "styled-components";
8883
+ import styled28, { css as css24 } from "styled-components";
8874
8884
  import { jsx as jsx217 } from "react/jsx-runtime";
8875
- var horizontalBorderCss = css23`
8885
+ var horizontalBorderCss = css24`
8876
8886
  border-top-color: var(--wui-color-border);
8877
8887
  border-top-style: solid;
8878
8888
  border-top-width: 1px;
8879
8889
  clear: both; /* for horizontal dividers, ensure it clears any floats */
8880
8890
  height: 0;
8881
8891
  `;
8882
- var verticalBorderCss = css23`
8892
+ var verticalBorderCss = css24`
8883
8893
  background-color: var(--wui-color-border);
8884
8894
  max-width: 1px;
8885
8895
  min-height: 100%;
@@ -8910,7 +8920,7 @@ var Divider = ({ orientation = "horizontal", ...props }) => {
8910
8920
  Divider.displayName = "Divider";
8911
8921
 
8912
8922
  // src/components/EditableHeading/EditableHeading.tsx
8913
- import styled31, { css as css26 } from "styled-components";
8923
+ import styled31, { css as css27 } from "styled-components";
8914
8924
  import { useState as useState6, useRef as useRef5 } from "react";
8915
8925
 
8916
8926
  // src/components/Tooltip/Tooltip.tsx
@@ -9016,12 +9026,12 @@ Tooltip.displayName = "Tooltip";
9016
9026
 
9017
9027
  // src/components/Input/Input.tsx
9018
9028
  import { forwardRef as forwardRef10, cloneElement as cloneElement4, useRef as useRef4 } from "react";
9019
- import styled30, { css as css25 } from "styled-components";
9029
+ import styled30, { css as css26 } from "styled-components";
9020
9030
  import { isNil as isNil13, isNotNil as isNotNil16, isRecord as isRecord4 } from "@wistia/type-guards";
9021
9031
 
9022
9032
  // src/css/sharedStyles/inputCssVariables.ts
9023
- import { css as css24 } from "styled-components";
9024
- var inputCssVariables = css24`
9033
+ import { css as css25 } from "styled-components";
9034
+ var inputCssVariables = css25`
9025
9035
  /* Colors */
9026
9036
  --wui-input-color-bg: var(--wui-color-bg-surface);
9027
9037
  --wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -9048,7 +9058,7 @@ var inputCssVariables = css24`
9048
9058
 
9049
9059
  // src/components/Input/Input.tsx
9050
9060
  import { jsx as jsx219, jsxs as jsxs20 } from "react/jsx-runtime";
9051
- var inputStyles = css25`
9061
+ var inputStyles = css26`
9052
9062
  ${inputCssVariables}
9053
9063
  input,
9054
9064
  textarea {
@@ -9242,7 +9252,7 @@ var StyledInput = styled31(Input)`
9242
9252
  height: ${({ $height }) => `${$height}px`};
9243
9253
  }
9244
9254
  `;
9245
- var editableStyles = css26`
9255
+ var editableStyles = css27`
9246
9256
  &:has(+ :focus-within) {
9247
9257
  background: var(--wui-color-bg-surface-hover);
9248
9258
  }
@@ -9352,7 +9362,7 @@ var EditableHeading = ({
9352
9362
  };
9353
9363
 
9354
9364
  // src/components/Form/Form.tsx
9355
- import { forwardRef as forwardRef12, useRef as useRef6, useMemo as useMemo4, createContext as createContext2, useState as useState7, useId as useId2 } from "react";
9365
+ import { forwardRef as forwardRef12, useRef as useRef6, useMemo as useMemo4, createContext as createContext3, useState as useState7, useId as useId2 } from "react";
9356
9366
  import styled33 from "styled-components";
9357
9367
  import { isNotUndefined as isNotUndefined7, isUndefined as isUndefined3 } from "@wistia/type-guards";
9358
9368
 
@@ -9396,7 +9406,7 @@ var StyledForm = styled33.form`
9396
9406
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9397
9407
  align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9398
9408
  `;
9399
- var FormContext = createContext2({
9409
+ var FormContext = createContext3({
9400
9410
  values: {},
9401
9411
  errors: {},
9402
9412
  hasSubmitted: false,
@@ -9526,7 +9536,7 @@ var useFormState = (action, initialData = {}) => {
9526
9536
  };
9527
9537
 
9528
9538
  // src/components/Form/FormErrorSummary.tsx
9529
- import { useContext as useContext2, useRef as useRef7 } from "react";
9539
+ import { useContext as useContext3, useRef as useRef7 } from "react";
9530
9540
  import { isArray, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
9531
9541
  import { jsx as jsx223, jsxs as jsxs22 } from "react/jsx-runtime";
9532
9542
  var ErrorItem = ({ name, error, formId }) => {
@@ -9534,7 +9544,7 @@ var ErrorItem = ({ name, error, formId }) => {
9534
9544
  };
9535
9545
  var FormErrorSummary = ({ description }) => {
9536
9546
  const ref = useRef7(null);
9537
- const { formId, errors, hasSubmitted } = useContext2(FormContext);
9547
+ const { formId, errors, hasSubmitted } = useContext3(FormContext);
9538
9548
  const isValid = Object.keys(errors).length === 0;
9539
9549
  if (isValid || !hasSubmitted) {
9540
9550
  return null;
@@ -9564,14 +9574,14 @@ var FormErrorSummary = ({ description }) => {
9564
9574
  };
9565
9575
 
9566
9576
  // src/components/FormField/FormField.tsx
9567
- import { Children as Children5, cloneElement as cloneElement5, useContext as useContext3 } from "react";
9577
+ import { Children as Children5, cloneElement as cloneElement5, useContext as useContext4 } from "react";
9568
9578
  import styled36 from "styled-components";
9569
9579
  import { isArray as isArray2, isNotNil as isNotNil17, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
9570
9580
 
9571
9581
  // src/components/Label/Label.tsx
9572
- import styled34, { css as css27 } from "styled-components";
9582
+ import styled34, { css as css28 } from "styled-components";
9573
9583
  import { jsx as jsx224 } from "react/jsx-runtime";
9574
- var requiredStyle = css27`
9584
+ var requiredStyle = css28`
9575
9585
  &::after {
9576
9586
  color: var(--wui-color-text-error);
9577
9587
  display: inline;
@@ -9579,7 +9589,7 @@ var requiredStyle = css27`
9579
9589
  content: '*';
9580
9590
  }
9581
9591
  `;
9582
- var disabledStyle3 = css27`
9592
+ var disabledStyle3 = css28`
9583
9593
  color: var(--wui-color-text-disabled);
9584
9594
  `;
9585
9595
  var StyledLabel3 = styled34.label`
@@ -9629,7 +9639,7 @@ var Label = ({
9629
9639
  Label.displayName = "Label";
9630
9640
 
9631
9641
  // src/components/FormGroup/CheckboxGroup.tsx
9632
- import { createContext as createContext3, useMemo as useMemo5 } from "react";
9642
+ import { createContext as createContext4, useMemo as useMemo5 } from "react";
9633
9643
 
9634
9644
  // src/components/FormGroup/FormGroup.tsx
9635
9645
  import styled35 from "styled-components";
@@ -9667,7 +9677,7 @@ FormGroup.displayName = "FormGroup";
9667
9677
 
9668
9678
  // src/components/FormGroup/CheckboxGroup.tsx
9669
9679
  import { jsx as jsx226 } from "react/jsx-runtime";
9670
- var CheckboxGroupContext = createContext3(null);
9680
+ var CheckboxGroupContext = createContext4(null);
9671
9681
  var CheckboxGroup = ({
9672
9682
  children,
9673
9683
  name,
@@ -9760,8 +9770,8 @@ var FormField = ({
9760
9770
  value,
9761
9771
  ...props
9762
9772
  }) => {
9763
- const formState = useContext3(FormContext);
9764
- const checkboxGroup = useContext3(CheckboxGroupContext);
9773
+ const formState = useContext4(FormContext);
9774
+ const checkboxGroup = useContext4(CheckboxGroupContext);
9765
9775
  const defaultValue = formState.values[name];
9766
9776
  const isIntegratedLabel = children.type === Checkbox;
9767
9777
  const computedId = id ?? `${formState.formId}-${name}`;
@@ -9826,9 +9836,9 @@ var FormField = ({
9826
9836
  FormField.displayName = "FormField";
9827
9837
 
9828
9838
  // src/components/FormGroup/RadioGroup.tsx
9829
- import { createContext as createContext4, useMemo as useMemo6 } from "react";
9839
+ import { createContext as createContext5, useMemo as useMemo6 } from "react";
9830
9840
  import { jsx as jsx228 } from "react/jsx-runtime";
9831
- var RadioGroupContext = createContext4(null);
9841
+ var RadioGroupContext = createContext5(null);
9832
9842
  var RadioGroup = ({
9833
9843
  children,
9834
9844
  name,
@@ -9885,7 +9895,7 @@ var IconButton = forwardRef13(
9885
9895
  IconButton.displayName = "IconButton";
9886
9896
 
9887
9897
  // src/components/Menu/Menu.tsx
9888
- import styled38, { css as css28, keyframes as keyframes2 } from "styled-components";
9898
+ import styled38, { css as css29, keyframes as keyframes2 } from "styled-components";
9889
9899
  import {
9890
9900
  DropdownMenu,
9891
9901
  DropdownMenuTrigger,
@@ -9896,9 +9906,9 @@ import { isNotNil as isNotNil18, isNotUndefined as isNotUndefined10 } from "@wis
9896
9906
  import { useMemo as useMemo7 } from "react";
9897
9907
 
9898
9908
  // src/components/Menu/MenuContext.tsx
9899
- import { createContext as createContext5, useContext as useContext4 } from "react";
9900
- var MenuContext = createContext5({ compact: false });
9901
- var useMenuContext = () => useContext4(MenuContext);
9909
+ import { createContext as createContext6, useContext as useContext5 } from "react";
9910
+ var MenuContext = createContext6({ compact: false });
9911
+ var useMenuContext = () => useContext5(MenuContext);
9902
9912
 
9903
9913
  // src/components/Menu/Menu.tsx
9904
9914
  import { jsx as jsx230, jsxs as jsxs25 } from "react/jsx-runtime";
@@ -9922,7 +9932,7 @@ var close = keyframes2`
9922
9932
  transform: scale(.97) translateY(-8px);
9923
9933
  }
9924
9934
  `;
9925
- var menuItemCss = css28`
9935
+ var menuItemCss = css29`
9926
9936
  --menu-label-description-gap: var(--wui-space-01);
9927
9937
  --menu-item-inner-gap: var(--wui-space-03);
9928
9938
  --menu-item-left-icon-size: 24px;
@@ -9933,7 +9943,7 @@ var menuItemCss = css28`
9933
9943
  --menu-label-line-height: var(--wui-typography-label-3-line-height);
9934
9944
  --menu-divider-margin: var(--wui-space-02);
9935
9945
  `;
9936
- var compactMenuItemCss = css28`
9946
+ var compactMenuItemCss = css29`
9937
9947
  --menu-label-description-gap: 0;
9938
9948
  --menu-item-inner-gap: var(--wui-space-02);
9939
9949
  --menu-item-left-icon-size: 16px;
@@ -9944,7 +9954,7 @@ var compactMenuItemCss = css28`
9944
9954
  --menu-label-line-height: var(--wui-typography-label-4-line-height);
9945
9955
  --menu-divider-margin: var(--wui-space-01);
9946
9956
  `;
9947
- var menuContentCss = css28`
9957
+ var menuContentCss = css29`
9948
9958
  --menu-font-family: var(--wui-typography-family-default);
9949
9959
  --menu-bg: var(--wui-color-bg-surface);
9950
9960
  --menu-shadow: var(--wui-elevation-01);
@@ -10367,8 +10377,10 @@ RadioMenuItem.displayName = "RadioMenuItem";
10367
10377
 
10368
10378
  // src/components/Menu/CheckboxMenuItem.tsx
10369
10379
  import {
10370
- DropdownMenuCheckboxItem
10380
+ DropdownMenuCheckboxItem,
10381
+ DropdownMenuItemIndicator as DropdownMenuItemIndicator2
10371
10382
  } from "@radix-ui/react-dropdown-menu";
10383
+ import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10372
10384
  import { jsx as jsx238, jsxs as jsxs29 } from "react/jsx-runtime";
10373
10385
  var CheckboxIndicator = ({ checked, ...props }) => {
10374
10386
  return checked ? /* @__PURE__ */ jsxs29(
@@ -10442,7 +10454,8 @@ var CheckboxMenuItem = ({
10442
10454
  MenuItemButton,
10443
10455
  {
10444
10456
  ...props,
10445
- leftIcon: /* @__PURE__ */ jsx238(CheckboxIndicator, { checked })
10457
+ leftIcon: isNotNil21(props.icon) ? props.icon : /* @__PURE__ */ jsx238(CheckboxIndicator, { checked }),
10458
+ rightIcon: isNotNil21(props.icon) ? /* @__PURE__ */ jsx238(DropdownMenuItemIndicator2, { children: /* @__PURE__ */ jsx238(Icon, { type: "checkmark" }) }) : void 0
10446
10459
  }
10447
10460
  )
10448
10461
  }
@@ -10454,7 +10467,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
10454
10467
  import { forwardRef as forwardRef18 } from "react";
10455
10468
  import styled47 from "styled-components";
10456
10469
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
10457
- import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10470
+ import { isNotNil as isNotNil23 } from "@wistia/type-guards";
10458
10471
 
10459
10472
  // src/components/Modal/ModalHeader.tsx
10460
10473
  import styled44 from "styled-components";
@@ -10516,16 +10529,16 @@ import styled45 from "styled-components";
10516
10529
  import { Content as DialogContent } from "@radix-ui/react-dialog";
10517
10530
 
10518
10531
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
10519
- import { useRef as useRef9, useEffect as useEffect7 } from "react";
10520
- import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10532
+ import { useRef as useRef9, useEffect as useEffect8 } from "react";
10533
+ import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10521
10534
  var useFocusRestore = () => {
10522
10535
  const previouslyFocusedRef = useRef9(null);
10523
- useEffect7(() => {
10536
+ useEffect8(() => {
10524
10537
  previouslyFocusedRef.current = document.activeElement;
10525
10538
  }, []);
10526
- useEffect7(() => {
10539
+ useEffect8(() => {
10527
10540
  return () => {
10528
- if (isNotNil21(previouslyFocusedRef.current)) {
10541
+ if (isNotNil22(previouslyFocusedRef.current)) {
10529
10542
  setTimeout(() => {
10530
10543
  previouslyFocusedRef.current?.focus();
10531
10544
  }, 0);
@@ -10672,7 +10685,7 @@ var Modal = forwardRef18(
10672
10685
  DialogRoot,
10673
10686
  {
10674
10687
  onOpenChange: (open2) => {
10675
- if (!open2 && isNotNil22(onRequestClose)) {
10688
+ if (!open2 && isNotNil23(onRequestClose)) {
10676
10689
  onRequestClose();
10677
10690
  }
10678
10691
  },
@@ -10685,7 +10698,7 @@ var Modal = forwardRef18(
10685
10698
  ref,
10686
10699
  fullHeight,
10687
10700
  onOpenAutoFocus: (event) => {
10688
- if (isNotNil22(initialFocusRef) && initialFocusRef.current) {
10701
+ if (isNotNil23(initialFocusRef) && initialFocusRef.current) {
10689
10702
  event.preventDefault();
10690
10703
  requestAnimationFrame(() => {
10691
10704
  initialFocusRef.current?.focus();
@@ -10716,19 +10729,19 @@ Modal.displayName = "Modal";
10716
10729
 
10717
10730
  // src/components/Popover/Popover.tsx
10718
10731
  import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close } from "@radix-ui/react-popover";
10719
- import styled48, { css as css29 } from "styled-components";
10732
+ import styled48, { css as css30 } from "styled-components";
10720
10733
 
10721
10734
  // src/private/helpers/getControls/getControlProps.tsx
10722
- import { isNotNil as isNotNil23 } from "@wistia/type-guards";
10735
+ import { isNotNil as isNotNil24 } from "@wistia/type-guards";
10723
10736
  var getControlProps = (isOpen, onOpenChange) => {
10724
- return isNotNil23(onOpenChange) && isNotNil23(isOpen) ? { open: isOpen, onOpenChange } : {};
10737
+ return isNotNil24(onOpenChange) && isNotNil24(isOpen) ? { open: isOpen, onOpenChange } : {};
10725
10738
  };
10726
10739
 
10727
10740
  // src/components/Popover/Popover.tsx
10728
10741
  import { jsx as jsx244, jsxs as jsxs32 } from "react/jsx-runtime";
10729
10742
  var StyledContent2 = styled48(Content2)`
10730
10743
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10731
- ${({ $unstyled }) => !$unstyled && css29`
10744
+ ${({ $unstyled }) => !$unstyled && css30`
10732
10745
  border-radius: var(--wui-border-radius-02);
10733
10746
  padding: var(--wui-space-04);
10734
10747
  max-width: var(--wui-popover-max-width, 320px);
@@ -10792,7 +10805,7 @@ Popover.displayName = "Popover";
10792
10805
  // src/components/ProgressBar/ProgressBar.tsx
10793
10806
  import styled49 from "styled-components";
10794
10807
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
10795
- import { isNotNil as isNotNil24 } from "@wistia/type-guards";
10808
+ import { isNotNil as isNotNil25 } from "@wistia/type-guards";
10796
10809
  import { jsx as jsx245, jsxs as jsxs33 } from "react/jsx-runtime";
10797
10810
  var ProgressBarWrapper = styled49.div`
10798
10811
  --progress-bar-height: 8px;
@@ -10847,7 +10860,7 @@ var ProgressBar = ({
10847
10860
  ...props
10848
10861
  }) => {
10849
10862
  return /* @__PURE__ */ jsxs33(ProgressBarWrapper, { children: [
10850
- isNotNil24(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
10863
+ isNotNil25(labelLeft) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelLeft }) : null,
10851
10864
  /* @__PURE__ */ jsx245(
10852
10865
  StyledProgressBar,
10853
10866
  {
@@ -10863,14 +10876,14 @@ var ProgressBar = ({
10863
10876
  )
10864
10877
  }
10865
10878
  ),
10866
- isNotNil24(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
10879
+ isNotNil25(labelRight) ? /* @__PURE__ */ jsx245(ProgressBarLabel, { children: labelRight }) : null
10867
10880
  ] });
10868
10881
  };
10869
10882
  ProgressBar.displayName = "ProgressBar";
10870
10883
 
10871
10884
  // src/components/Radio/Radio.tsx
10872
10885
  import { forwardRef as forwardRef19, useId as useId3 } from "react";
10873
- import styled50, { css as css30 } from "styled-components";
10886
+ import styled50, { css as css31 } from "styled-components";
10874
10887
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
10875
10888
  import { jsx as jsx246, jsxs as jsxs34 } from "react/jsx-runtime";
10876
10889
  var RadioIcon = () => /* @__PURE__ */ jsx246(
@@ -10892,7 +10905,7 @@ var RadioIcon = () => /* @__PURE__ */ jsx246(
10892
10905
  )
10893
10906
  }
10894
10907
  );
10895
- var sizeSmall2 = css30`
10908
+ var sizeSmall2 = css31`
10896
10909
  width: 14px;
10897
10910
  height: 14px;
10898
10911
  min-width: 14px;
@@ -10903,7 +10916,7 @@ var sizeSmall2 = css30`
10903
10916
  height: 7px;
10904
10917
  }
10905
10918
  `;
10906
- var sizeMedium2 = css30`
10919
+ var sizeMedium2 = css31`
10907
10920
  width: 16px;
10908
10921
  height: 16px;
10909
10922
  min-width: 16px;
@@ -10914,7 +10927,7 @@ var sizeMedium2 = css30`
10914
10927
  height: 8px;
10915
10928
  }
10916
10929
  `;
10917
- var sizeLarge2 = css30`
10930
+ var sizeLarge2 = css31`
10918
10931
  width: 20px;
10919
10932
  height: 20px;
10920
10933
  min-width: 20px;
@@ -11038,14 +11051,14 @@ Radio.displayName = "Radio";
11038
11051
 
11039
11052
  // src/components/SegmentedControl/SegmentedControl.tsx
11040
11053
  import { forwardRef as forwardRef20 } from "react";
11041
- import styled52, { css as css31 } from "styled-components";
11054
+ import styled52, { css as css32 } from "styled-components";
11042
11055
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11043
11056
  import { isNil as isNil14 } from "@wistia/type-guards";
11044
11057
 
11045
11058
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11046
- import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState10 } from "react";
11059
+ import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState10 } from "react";
11047
11060
  import { jsx as jsx247 } from "react/jsx-runtime";
11048
- var SelectedItemStyleContext = createContext6(null);
11061
+ var SelectedItemStyleContext = createContext7(null);
11049
11062
  var SelectedItemStyleProvider = ({
11050
11063
  children
11051
11064
  }) => {
@@ -11070,7 +11083,7 @@ var SelectedItemStyleProvider = ({
11070
11083
  return /* @__PURE__ */ jsx247(SelectedItemStyleContext.Provider, { value: contextValue, children });
11071
11084
  };
11072
11085
  var useSelectedItemStyle = () => {
11073
- const context = useContext5(SelectedItemStyleContext);
11086
+ const context = useContext6(SelectedItemStyleContext);
11074
11087
  if (context === null) {
11075
11088
  throw new Error("useSelectedItemStyle must be used within a SelectedItemStyleProvider");
11076
11089
  }
@@ -11081,11 +11094,11 @@ var useSelectedItemStyle = () => {
11081
11094
  import styled51 from "styled-components";
11082
11095
 
11083
11096
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11084
- import { createContext as createContext7, useContext as useContext6 } from "react";
11085
- var SegmentedControlValueContext = createContext7(null);
11097
+ import { createContext as createContext8, useContext as useContext7 } from "react";
11098
+ var SegmentedControlValueContext = createContext8(null);
11086
11099
  var SegmentedControlValueProvider = SegmentedControlValueContext.Provider;
11087
11100
  var useSegmentedControlValue = () => {
11088
- const context = useContext6(SegmentedControlValueContext);
11101
+ const context = useContext7(SegmentedControlValueContext);
11089
11102
  if (context === null) {
11090
11103
  throw new Error("useSegmentedControlValue must be used within a SegmentedControlValueProvider");
11091
11104
  }
@@ -11117,7 +11130,7 @@ var SelectedItemIndicator = () => {
11117
11130
 
11118
11131
  // src/components/SegmentedControl/SegmentedControl.tsx
11119
11132
  import { jsx as jsx249, jsxs as jsxs35 } from "react/jsx-runtime";
11120
- var segmentedControlStyles = css31`
11133
+ var segmentedControlStyles = css32`
11121
11134
  display: inline-flex;
11122
11135
  background-color: var(--wui-color-bg-surface-secondary);
11123
11136
  border-radius: var(--wui-border-radius-rounded);
@@ -11166,12 +11179,12 @@ var SegmentedControl = forwardRef20(
11166
11179
  SegmentedControl.displayName = "SegmentedControl";
11167
11180
 
11168
11181
  // src/components/SegmentedControl/SegmentedControlItem.tsx
11169
- import { forwardRef as forwardRef21, useEffect as useEffect8, useRef as useRef10 } from "react";
11170
- import styled53, { css as css32 } from "styled-components";
11182
+ import { forwardRef as forwardRef21, useEffect as useEffect9, useRef as useRef10 } from "react";
11183
+ import styled53, { css as css33 } from "styled-components";
11171
11184
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
11172
- import { isNotNil as isNotNil25 } from "@wistia/type-guards";
11185
+ import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11173
11186
  import { jsxs as jsxs36 } from "react/jsx-runtime";
11174
- var segmentedControlItemStyles = css32`
11187
+ var segmentedControlItemStyles = css33`
11175
11188
  all: unset; /* ToggleGroupItem is a button element */
11176
11189
  align-items: center;
11177
11190
  border-radius: var(--wui-border-radius-rounded);
@@ -11247,7 +11260,7 @@ var SegmentedControlItem = forwardRef21(
11247
11260
  event.preventDefault();
11248
11261
  }
11249
11262
  };
11250
- useEffect8(() => {
11263
+ useEffect9(() => {
11251
11264
  const buttonElem = buttonRef.current;
11252
11265
  if (!buttonElem) {
11253
11266
  return void 0;
@@ -11276,8 +11289,8 @@ var SegmentedControlItem = forwardRef21(
11276
11289
  StyledSegmentedControlItem,
11277
11290
  {
11278
11291
  ref: combinedRef,
11279
- $hasLabel: isNotNil25(label),
11280
- "aria-label": isNotNil25(label) ? void 0 : ariaLabel,
11292
+ $hasLabel: isNotNil26(label),
11293
+ "aria-label": isNotNil26(label) ? void 0 : ariaLabel,
11281
11294
  disabled,
11282
11295
  onClick: handleClick,
11283
11296
  value,
@@ -11418,7 +11431,7 @@ Select.displayName = "Select";
11418
11431
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11419
11432
  import { forwardRef as forwardRef23 } from "react";
11420
11433
  import styled55 from "styled-components";
11421
- import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11434
+ import { isNotNil as isNotNil27 } from "@wistia/type-guards";
11422
11435
  import { jsx as jsx251, jsxs as jsxs38 } from "react/jsx-runtime";
11423
11436
  var StyledItem = styled55(Item)`
11424
11437
  ${variantStyleMap2.body3};
@@ -11462,7 +11475,7 @@ var SelectOption = forwardRef23(
11462
11475
  type: "checkmark"
11463
11476
  }
11464
11477
  ) }) }),
11465
- isNotNil26(selectedDisplayValue) ? /* @__PURE__ */ jsxs38("div", { children: [
11478
+ isNotNil27(selectedDisplayValue) ? /* @__PURE__ */ jsxs38("div", { children: [
11466
11479
  children,
11467
11480
  /* @__PURE__ */ jsx251("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx251(ItemText, { children: selectedDisplayValue }) })
11468
11481
  ] }) : /* @__PURE__ */ jsx251(ItemText, { children })
@@ -11496,10 +11509,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11496
11509
 
11497
11510
  // src/components/Switch/Switch.tsx
11498
11511
  import { forwardRef as forwardRef24, useId as useId4 } from "react";
11499
- import styled57, { css as css33 } from "styled-components";
11512
+ import styled57, { css as css34 } from "styled-components";
11500
11513
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11501
11514
  import { jsx as jsx253, jsxs as jsxs40 } from "react/jsx-runtime";
11502
- var sizeSmall3 = css33`
11515
+ var sizeSmall3 = css34`
11503
11516
  --wui-size-small-width: 24px;
11504
11517
  --wui-size-small-height: 14px;
11505
11518
 
@@ -11514,7 +11527,7 @@ var sizeSmall3 = css33`
11514
11527
  height: calc(var(--wui-size-small-width) / 2);
11515
11528
  }
11516
11529
  `;
11517
- var sizeMedium3 = css33`
11530
+ var sizeMedium3 = css34`
11518
11531
  --wui-size-medium-width: 32px;
11519
11532
  --wui-size-medium-height: 18px;
11520
11533
 
@@ -11529,7 +11542,7 @@ var sizeMedium3 = css33`
11529
11542
  height: calc(var(--wui-size-medium-width) / 2);
11530
11543
  }
11531
11544
  `;
11532
- var sizeLarge3 = css33`
11545
+ var sizeLarge3 = css34`
11533
11546
  --wui-size-large-width: 40px;
11534
11547
  --wui-size-large-height: 22px;
11535
11548
 
@@ -11658,19 +11671,19 @@ var Switch = forwardRef24(
11658
11671
  Switch.displayName = "Switch";
11659
11672
 
11660
11673
  // src/components/Table/Table.tsx
11661
- import styled58, { css as css34 } from "styled-components";
11674
+ import styled58, { css as css35 } from "styled-components";
11662
11675
  import { jsx as jsx254 } from "react/jsx-runtime";
11663
11676
  var StyledTable = styled58.table`
11664
11677
  width: 100%;
11665
11678
  border-collapse: collapse;
11666
11679
 
11667
- ${({ $striped }) => $striped && css34`
11680
+ ${({ $striped }) => $striped && css35`
11668
11681
  tbody tr:nth-child(even) {
11669
11682
  background-color: var(--wui-color-bg-surface-secondary);
11670
11683
  }
11671
11684
  `}
11672
11685
 
11673
- ${({ $divided }) => $divided && css34`
11686
+ ${({ $divided }) => $divided && css35`
11674
11687
  tr {
11675
11688
  border-bottom: 1px solid var(--wui-color-border);
11676
11689
  }
@@ -11697,8 +11710,8 @@ var Table = ({
11697
11710
  import styled59 from "styled-components";
11698
11711
 
11699
11712
  // src/components/Table/TableSectionContext.ts
11700
- import { createContext as createContext8 } from "react";
11701
- var TableSectionContext = createContext8(null);
11713
+ import { createContext as createContext9 } from "react";
11714
+ var TableSectionContext = createContext9(null);
11702
11715
 
11703
11716
  // src/components/Table/TableBody.tsx
11704
11717
  import { jsx as jsx255 } from "react/jsx-runtime";
@@ -11708,10 +11721,10 @@ var TableBody = ({ children, ...props }) => {
11708
11721
  };
11709
11722
 
11710
11723
  // src/components/Table/TableCell.tsx
11711
- import { useContext as useContext7 } from "react";
11712
- import styled60, { css as css35 } from "styled-components";
11724
+ import { useContext as useContext8 } from "react";
11725
+ import styled60, { css as css36 } from "styled-components";
11713
11726
  import { jsx as jsx256 } from "react/jsx-runtime";
11714
- var sharedStyles = css35`
11727
+ var sharedStyles = css36`
11715
11728
  color: var(--wui-color-text);
11716
11729
  padding: var(--wui-space-02);
11717
11730
  text-align: left;
@@ -11729,7 +11742,7 @@ var StyledTd = styled60.td`
11729
11742
  line-height: var(--wui-typography-body-2-line-height);
11730
11743
  `;
11731
11744
  var TableCell = ({ children, ...props }) => {
11732
- const section = useContext7(TableSectionContext);
11745
+ const section = useContext8(TableSectionContext);
11733
11746
  if (section === "head") {
11734
11747
  return /* @__PURE__ */ jsx256(StyledTh, { ...props, children });
11735
11748
  }
@@ -11763,7 +11776,7 @@ var TableRow = ({ children, ...props }) => {
11763
11776
  // src/components/Tabs/Tabs.tsx
11764
11777
  import { forwardRef as forwardRef26, useState as useState11 } from "react";
11765
11778
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11766
- import { isNotNil as isNotNil28, isNil as isNil15 } from "@wistia/type-guards";
11779
+ import { isNotNil as isNotNil29, isNil as isNil15 } from "@wistia/type-guards";
11767
11780
  import styled68 from "styled-components";
11768
11781
 
11769
11782
  // src/components/Tabs/TabPanel.tsx
@@ -11816,17 +11829,17 @@ var TabList = ({
11816
11829
  TabList.displayName = "TabList";
11817
11830
 
11818
11831
  // src/components/Tabs/TabItem.tsx
11819
- import { forwardRef as forwardRef25, useEffect as useEffect9, useRef as useRef11 } from "react";
11832
+ import { forwardRef as forwardRef25, useEffect as useEffect10, useRef as useRef11 } from "react";
11820
11833
  import styled66 from "styled-components";
11821
11834
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
11822
- import { isNotNil as isNotNil27 } from "@wistia/type-guards";
11835
+ import { isNotNil as isNotNil28 } from "@wistia/type-guards";
11823
11836
 
11824
11837
  // src/components/Tabs/useTabsValue.tsx
11825
- import { createContext as createContext9, useContext as useContext8 } from "react";
11826
- var TabsValueContext = createContext9(null);
11838
+ import { createContext as createContext10, useContext as useContext9 } from "react";
11839
+ var TabsValueContext = createContext10(null);
11827
11840
  var TabsValueProvider = TabsValueContext.Provider;
11828
11841
  var useTabsValue = () => {
11829
- const context = useContext8(TabsValueContext);
11842
+ const context = useContext9(TabsValueContext);
11830
11843
  if (context === null) {
11831
11844
  throw new Error("useTabsValue must be used within a TabsValueProvider");
11832
11845
  }
@@ -11848,7 +11861,7 @@ var TabItem = forwardRef25(
11848
11861
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
11849
11862
  const buttonRef = useRef11(null);
11850
11863
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
11851
- useEffect9(() => {
11864
+ useEffect10(() => {
11852
11865
  const buttonElem = buttonRef.current;
11853
11866
  if (!buttonElem) {
11854
11867
  return void 0;
@@ -11877,8 +11890,8 @@ var TabItem = forwardRef25(
11877
11890
  StyledTabItem,
11878
11891
  {
11879
11892
  ref: combinedRef,
11880
- $hasLabel: isNotNil27(label),
11881
- "aria-label": isNotNil27(label) ? void 0 : ariaLabel,
11893
+ $hasLabel: isNotNil28(label),
11894
+ "aria-label": isNotNil28(label) ? void 0 : ariaLabel,
11882
11895
  disabled,
11883
11896
  value,
11884
11897
  children: [
@@ -12001,7 +12014,7 @@ var Tabs = forwardRef26(
12001
12014
  value
12002
12015
  );
12003
12016
  }
12004
- if (isNotNil28(label)) {
12017
+ if (isNotNil29(label)) {
12005
12018
  return /* @__PURE__ */ jsx263(
12006
12019
  TabItem,
12007
12020
  {
@@ -12013,7 +12026,7 @@ var Tabs = forwardRef26(
12013
12026
  value
12014
12027
  );
12015
12028
  }
12016
- if (isNotNil28(ariaLabelForTab)) {
12029
+ if (isNotNil29(ariaLabelForTab)) {
12017
12030
  return /* @__PURE__ */ jsx263(
12018
12031
  TabItem,
12019
12032
  {
@@ -12056,7 +12069,7 @@ Tab.displayName = "Tab";
12056
12069
  // src/components/Tag/Tag.tsx
12057
12070
  import { forwardRef as forwardRef28 } from "react";
12058
12071
  import styled69 from "styled-components";
12059
- import { isNil as isNil16, isNotNil as isNotNil29, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12072
+ import { isNil as isNil16, isNotNil as isNotNil30, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12060
12073
  import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs43 } from "react/jsx-runtime";
12061
12074
  var TagLabel = styled69.a`
12062
12075
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -12173,8 +12186,8 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12173
12186
  };
12174
12187
  var Tag = forwardRef28(
12175
12188
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12176
- const hasIcon = isNotNil29(icon);
12177
- const labelProps = isNotNil29(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12189
+ const hasIcon = isNotNil30(icon);
12190
+ const labelProps = isNotNil30(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12178
12191
  return /* @__PURE__ */ jsxs43(
12179
12192
  StyledTag,
12180
12193
  {
@@ -12209,8 +12222,8 @@ var Tag = forwardRef28(
12209
12222
  Tag.displayName = "Tag";
12210
12223
 
12211
12224
  // src/components/WistiaLogo/WistiaLogo.tsx
12212
- import styled70, { css as css36 } from "styled-components";
12213
- import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12225
+ import styled70, { css as css37 } from "styled-components";
12226
+ import { isNotNil as isNotNil31 } from "@wistia/type-guards";
12214
12227
  import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
12215
12228
  var renderBrandmark = (brandmarkColor, iconOnly) => {
12216
12229
  if (iconOnly) {
@@ -12267,12 +12280,12 @@ var WistiaLogoComponent = styled70.svg`
12267
12280
  ${({ $opticallyCentered, $iconOnly }) => {
12268
12281
  if ($opticallyCentered) {
12269
12282
  if ($iconOnly) {
12270
- return css36`
12283
+ return css37`
12271
12284
  aspect-ratio: 1;
12272
12285
  padding: 11.85% 3.12% 13.91%;
12273
12286
  `;
12274
12287
  }
12275
- return css36`
12288
+ return css37`
12276
12289
  aspect-ratio: 127 / 32;
12277
12290
  `;
12278
12291
  }
@@ -12323,7 +12336,7 @@ var WistiaLogo = ({
12323
12336
  ...props,
12324
12337
  children: [
12325
12338
  /* @__PURE__ */ jsx266("title", { children: title }),
12326
- isNotNil30(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12339
+ isNotNil31(description) ? /* @__PURE__ */ jsx266("desc", { children: description }) : null,
12327
12340
  renderBrandmark(brandmarkColor, iconOnly),
12328
12341
  renderLogotype(logotypeColor, iconOnly)
12329
12342
  ]
@@ -12335,7 +12348,7 @@ WistiaLogo.displayName = "WistiaLogo";
12335
12348
 
12336
12349
  // src/components/Thumbnail/ThumbnailBadge.tsx
12337
12350
  import styled71 from "styled-components";
12338
- import { isNotNil as isNotNil31 } from "@wistia/type-guards";
12351
+ import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12339
12352
  import { jsx as jsx267, jsxs as jsxs45 } from "react/jsx-runtime";
12340
12353
  var StyledThumbnailBadge = styled71.div`
12341
12354
  align-items: center;
@@ -12363,7 +12376,7 @@ var StyledThumbnailBadge = styled71.div`
12363
12376
  `;
12364
12377
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12365
12378
  return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12366
- isNotNil31(icon) && icon,
12379
+ isNotNil32(icon) && icon,
12367
12380
  /* @__PURE__ */ jsx267("span", { children: label })
12368
12381
  ] });
12369
12382
  };
@@ -12372,13 +12385,13 @@ ThumbnailBadge.displayName = "ThumbnailBadge";
12372
12385
  // src/components/Thumbnail/Thumbnail.tsx
12373
12386
  import { forwardRef as forwardRef29 } from "react";
12374
12387
  import styled72 from "styled-components";
12375
- import { isNil as isNil17, isNotNil as isNotNil33 } from "@wistia/type-guards";
12388
+ import { isNil as isNil17, isNotNil as isNotNil34 } from "@wistia/type-guards";
12376
12389
 
12377
12390
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12378
- import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12379
- import { css as css37 } from "styled-components";
12391
+ import { isNotNil as isNotNil33 } from "@wistia/type-guards";
12392
+ import { css as css38 } from "styled-components";
12380
12393
  var gradients = {
12381
- defaultDarkOne: css37`
12394
+ defaultDarkOne: css38`
12382
12395
  background-color: #222d66;
12383
12396
  background-image:
12384
12397
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12386,7 +12399,7 @@ var gradients = {
12386
12399
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12387
12400
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12388
12401
  `,
12389
- defaultDarkTwo: css37`
12402
+ defaultDarkTwo: css38`
12390
12403
  background-color: #222d66;
12391
12404
  background-image:
12392
12405
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12394,7 +12407,7 @@ var gradients = {
12394
12407
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12395
12408
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12396
12409
  `,
12397
- defaultLightOne: css37`
12410
+ defaultLightOne: css38`
12398
12411
  background-color: #ccd5ff;
12399
12412
  background-image:
12400
12413
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12402,13 +12415,13 @@ var gradients = {
12402
12415
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12403
12416
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12404
12417
  `,
12405
- defaultLightTwo: css37`
12418
+ defaultLightTwo: css38`
12406
12419
  background-color: #ccd5ff;
12407
12420
  background-image:
12408
12421
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12409
12422
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12410
12423
  `,
12411
- defaultMidOne: css37`
12424
+ defaultMidOne: css38`
12412
12425
  background-color: #6b84ff;
12413
12426
  background-image:
12414
12427
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12416,13 +12429,13 @@ var gradients = {
12416
12429
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12417
12430
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12418
12431
  `,
12419
- defaultMidTwo: css37`
12432
+ defaultMidTwo: css38`
12420
12433
  background-color: #6b84ff;
12421
12434
  background-image:
12422
12435
  radial-gradient(ellipse at top, #2949e5, transparent),
12423
12436
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12424
12437
  `,
12425
- green: css37`
12438
+ green: css38`
12426
12439
  background-color: #fafffa;
12427
12440
  background-image:
12428
12441
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12430,7 +12443,7 @@ var gradients = {
12430
12443
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12431
12444
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12432
12445
  `,
12433
- greenWithPop: css37`
12446
+ greenWithPop: css38`
12434
12447
  background-color: #fafffa;
12435
12448
  background-image:
12436
12449
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12438,7 +12451,7 @@ var gradients = {
12438
12451
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12439
12452
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12440
12453
  `,
12441
- pink: css37`
12454
+ pink: css38`
12442
12455
  background-color: #fffff0;
12443
12456
  background-image:
12444
12457
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12446,7 +12459,7 @@ var gradients = {
12446
12459
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12447
12460
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12448
12461
  `,
12449
- pinkWithPop: css37`
12462
+ pinkWithPop: css38`
12450
12463
  background-color: #fffff0;
12451
12464
  background-image:
12452
12465
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12454,7 +12467,7 @@ var gradients = {
12454
12467
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12455
12468
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12456
12469
  `,
12457
- playfulGradientOne: css37`
12470
+ playfulGradientOne: css38`
12458
12471
  background-color: #f7f8ff;
12459
12472
  background-image:
12460
12473
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12462,7 +12475,7 @@ var gradients = {
12462
12475
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12463
12476
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12464
12477
  `,
12465
- playfulGradientTwo: css37`
12478
+ playfulGradientTwo: css38`
12466
12479
  background-color: #f7f8ff;
12467
12480
  background-image:
12468
12481
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12470,13 +12483,13 @@ var gradients = {
12470
12483
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12471
12484
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12472
12485
  `,
12473
- purple: css37`
12486
+ purple: css38`
12474
12487
  background-color: #f2caff;
12475
12488
  background-image:
12476
12489
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12477
12490
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12478
12491
  `,
12479
- purpleWithPop: css37`
12492
+ purpleWithPop: css38`
12480
12493
  background-color: #f2caff;
12481
12494
  background-image:
12482
12495
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12484,7 +12497,7 @@ var gradients = {
12484
12497
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12485
12498
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12486
12499
  `,
12487
- yellow: css37`
12500
+ yellow: css38`
12488
12501
  background-color: #fffff0;
12489
12502
  background-image:
12490
12503
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12492,7 +12505,7 @@ var gradients = {
12492
12505
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12493
12506
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12494
12507
  `,
12495
- yellowWithPop: css37`
12508
+ yellowWithPop: css38`
12496
12509
  background-color: #fffff0;
12497
12510
  background-image:
12498
12511
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12503,7 +12516,7 @@ var gradients = {
12503
12516
  };
12504
12517
  var gradientMap = Object.keys(gradients);
12505
12518
  var getBackgroundGradient = (gradientName = void 0) => {
12506
- return isNotNil32(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12519
+ return isNotNil33(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
12507
12520
  };
12508
12521
 
12509
12522
  // src/components/Thumbnail/Thumbnail.tsx
@@ -12537,7 +12550,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
12537
12550
  );
12538
12551
  };
12539
12552
  var StyledThumbnail = styled72.div`
12540
- background-image: ${({ $backgroundUrl }) => isNotNil33($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12553
+ background-image: ${({ $backgroundUrl }) => isNotNil34($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
12541
12554
  ${({ $backgroundUrl, $gradientBackground }) => (
12542
12555
  // if we don't have $backgroundUrl show a gradient
12543
12556
  isNil17($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
@@ -12564,7 +12577,7 @@ var Thumbnail = forwardRef29(
12564
12577
  children,
12565
12578
  ...props
12566
12579
  }, ref) => {
12567
- const backgroundUrl = thumbnailImageType === "square" && isNotNil33(thumbnailUrl) ? thumbnailUrl : void 0;
12580
+ const backgroundUrl = thumbnailImageType === "square" && isNotNil34(thumbnailUrl) ? thumbnailUrl : void 0;
12568
12581
  return /* @__PURE__ */ jsxs46(
12569
12582
  StyledThumbnail,
12570
12583
  {
@@ -12574,8 +12587,8 @@ var Thumbnail = forwardRef29(
12574
12587
  $width: width,
12575
12588
  ...props,
12576
12589
  children: [
12577
- isNotNil33(children) ? children : null,
12578
- isNotNil33(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12590
+ isNotNil34(children) ? children : null,
12591
+ isNotNil34(thumbnailUrl) ? /* @__PURE__ */ jsx268(
12579
12592
  ThumbnailImage,
12580
12593
  {
12581
12594
  thumbnailImageType,
@@ -12591,7 +12604,7 @@ Thumbnail.displayName = "Thumbnail";
12591
12604
 
12592
12605
  // src/components/InputClickToCopy/InputClickToCopy.tsx
12593
12606
  import styled73 from "styled-components";
12594
- import { forwardRef as forwardRef30, useEffect as useEffect10, useState as useState12 } from "react";
12607
+ import { forwardRef as forwardRef30, useEffect as useEffect11, useState as useState12 } from "react";
12595
12608
  import { isFunction as isFunction3 } from "@wistia/type-guards";
12596
12609
  import { jsx as jsx269 } from "react/jsx-runtime";
12597
12610
  var StyledInput2 = styled73(Input)`
@@ -12607,7 +12620,7 @@ var COPY_SUCCESS_DURATION = 2e3;
12607
12620
  var InputClickToCopy = forwardRef30(
12608
12621
  ({ value, onCopy, ...props }, ref) => {
12609
12622
  const [isCopied, setIsCopied] = useState12(false);
12610
- useEffect10(() => {
12623
+ useEffect11(() => {
12611
12624
  if (isCopied) {
12612
12625
  const timeout = setTimeout(() => {
12613
12626
  setIsCopied(false);