@wistia/ui 0.15.14-beta.50e89a95.396fb5b → 0.15.14-beta.9bd768c0.e216110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -3083,10 +3083,6 @@ type ModalProps = ComponentPropsWithoutRef<'div'> & {
3083
3083
  * Determines if the title is visible
3084
3084
  */
3085
3085
  hideTitle?: boolean;
3086
- /**
3087
- * The maximum width the modal can be
3088
- */
3089
- maxWidth?: string;
3090
3086
  /**
3091
3087
  * When the Modal is dismissed, this function will be called. You'll typically want to set the
3092
3088
  * state of `isOpen` to false here
@@ -3135,10 +3131,6 @@ declare const Modal: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
3135
3131
  * Determines if the title is visible
3136
3132
  */
3137
3133
  hideTitle?: boolean;
3138
- /**
3139
- * The maximum width the modal can be
3140
- */
3141
- maxWidth?: string;
3142
3134
  /**
3143
3135
  * When the Modal is dismissed, this function will be called. You'll typically want to set the
3144
3136
  * state of `isOpen` to false here
package/dist/index.d.ts CHANGED
@@ -3083,10 +3083,6 @@ type ModalProps = ComponentPropsWithoutRef<'div'> & {
3083
3083
  * Determines if the title is visible
3084
3084
  */
3085
3085
  hideTitle?: boolean;
3086
- /**
3087
- * The maximum width the modal can be
3088
- */
3089
- maxWidth?: string;
3090
3086
  /**
3091
3087
  * When the Modal is dismissed, this function will be called. You'll typically want to set the
3092
3088
  * state of `isOpen` to false here
@@ -3135,10 +3131,6 @@ declare const Modal: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProp
3135
3131
  * Determines if the title is visible
3136
3132
  */
3137
3133
  hideTitle?: boolean;
3138
- /**
3139
- * The maximum width the modal can be
3140
- */
3141
- maxWidth?: string;
3142
3134
  /**
3143
3135
  * When the Modal is dismissed, this function will be called. You'll typically want to set the
3144
3136
  * state of `isOpen` to false here
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.15.14-beta.50e89a95.396fb5b
3
+ * @license @wistia/ui v0.15.14-beta.9bd768c0.e216110
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -14178,10 +14178,44 @@ import { createContext as createContext7, useMemo as useMemo13, useState as useS
14178
14178
  import { isNonEmptyString as isNonEmptyString6 } from "@wistia/type-guards";
14179
14179
  import styled63 from "styled-components";
14180
14180
  import { jsx as jsx277 } from "react/jsx-runtime";
14181
+ var LARGE_PADDING = "var(--wui-space-02)";
14182
+ var SMALL_PADDING = "var(--wui-space-01)";
14183
+ var getPaddingForVariant = (variant) => {
14184
+ const largePaddingVariants = [
14185
+ "hero",
14186
+ "heading1",
14187
+ "heading2",
14188
+ "heading3",
14189
+ "heading4",
14190
+ "body1",
14191
+ "label1",
14192
+ "body1Mono"
14193
+ ];
14194
+ const smallPaddingVariants = [
14195
+ "heading5",
14196
+ "heading6",
14197
+ "body2",
14198
+ "body3",
14199
+ "body4",
14200
+ "label2",
14201
+ "label3",
14202
+ "label4",
14203
+ "body2Mono",
14204
+ "body3Mono",
14205
+ "body4Mono"
14206
+ ];
14207
+ if (largePaddingVariants.includes(variant)) {
14208
+ return LARGE_PADDING;
14209
+ }
14210
+ if (smallPaddingVariants.includes(variant)) {
14211
+ return SMALL_PADDING;
14212
+ }
14213
+ return SMALL_PADDING;
14214
+ };
14181
14215
  var StyledEditableTextRoot = styled63.div`
14182
14216
  display: contents;
14183
14217
 
14184
- --wui-editable-text-padding: var(--wui-space-01);
14218
+ --wui-editable-text-padding: ${({ $typographicVariant }) => getPaddingForVariant($typographicVariant)};
14185
14219
  --wui-editable-text-border-radius: var(--wui-border-radius-01);
14186
14220
  `;
14187
14221
  var EditableTextContext = createContext7(null);
@@ -14279,6 +14313,7 @@ var EditableTextRoot = ({
14279
14313
  return /* @__PURE__ */ jsx277(
14280
14314
  StyledEditableTextRoot,
14281
14315
  {
14316
+ $typographicVariant: typographicVariant,
14282
14317
  "data-testid": "editable-text-root",
14283
14318
  "data-wui-editable-text-root": true,
14284
14319
  "data-wui-editable-text-state": getState(),
@@ -15374,7 +15409,7 @@ Mark.displayName = "Mark_UI";
15374
15409
  import { forwardRef as forwardRef26 } from "react";
15375
15410
  import styled78 from "styled-components";
15376
15411
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
15377
- import { isNotNil as isNotNil33 } from "@wistia/type-guards";
15412
+ import { isNotNil as isNotNil32 } from "@wistia/type-guards";
15378
15413
 
15379
15414
  // src/components/Modal/ModalHeader.tsx
15380
15415
  import styled75 from "styled-components";
@@ -15450,7 +15485,6 @@ var ModalHeader = ({
15450
15485
  import { forwardRef as forwardRef25 } from "react";
15451
15486
  import styled76, { css as css38, keyframes as keyframes4 } from "styled-components";
15452
15487
  import { Content as DialogContent } from "@radix-ui/react-dialog";
15453
- import { isNotNil as isNotNil32 } from "@wistia/type-guards";
15454
15488
 
15455
15489
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
15456
15490
  import { useRef as useRef20, useEffect as useEffect19 } from "react";
@@ -15588,14 +15622,9 @@ var StyledModalContent = styled76(DialogContent)`
15588
15622
  position: fixed;
15589
15623
  top: unset;
15590
15624
  left: unset;
15591
- width: ${({ $width, $maxWidth }) => {
15592
- if (isNotNil32($maxWidth)) {
15593
- return "auto";
15594
- }
15595
- return $width ?? DEFAULT_MODAL_WIDTH;
15596
- }};
15625
+ width: ${({ $width }) => $width ?? DEFAULT_MODAL_WIDTH};
15597
15626
  min-width: ${({ $width }) => $width ?? DEFAULT_MODAL_WIDTH};
15598
- max-width: ${({ $maxWidth }) => $maxWidth ?? "var(--wui-modal-max-width)"};
15627
+ max-width: var(--wui-modal-max-width);
15599
15628
  border-radius: var(--wui-border-radius-03);
15600
15629
  animation-duration: var(--wui-motion-duration-03);
15601
15630
  animation-timing-function: var(--wui-motion-ease-out);
@@ -15604,13 +15633,12 @@ var StyledModalContent = styled76(DialogContent)`
15604
15633
  }
15605
15634
  `;
15606
15635
  var ModalContent = forwardRef25(
15607
- ({ width, positionVariant = "fixed-top", maxWidth, children, ...props }, ref) => {
15636
+ ({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
15608
15637
  useFocusRestore();
15609
15638
  return /* @__PURE__ */ jsx294(
15610
15639
  StyledModalContent,
15611
15640
  {
15612
15641
  ref,
15613
- $maxWidth: maxWidth,
15614
15642
  $positionVariant: positionVariant,
15615
15643
  $width: width,
15616
15644
  "aria-describedby": void 0,
@@ -15680,7 +15708,6 @@ var Modal = forwardRef26(
15680
15708
  hideTitle = false,
15681
15709
  initialFocusRef,
15682
15710
  isOpen,
15683
- maxWidth,
15684
15711
  onRequestClose,
15685
15712
  positionVariant = "centered",
15686
15713
  title,
@@ -15691,7 +15718,7 @@ var Modal = forwardRef26(
15691
15718
  DialogRoot,
15692
15719
  {
15693
15720
  onOpenChange: (open2) => {
15694
- if (!open2 && isNotNil33(onRequestClose)) {
15721
+ if (!open2 && isNotNil32(onRequestClose)) {
15695
15722
  onRequestClose();
15696
15723
  }
15697
15724
  },
@@ -15702,9 +15729,8 @@ var Modal = forwardRef26(
15702
15729
  ModalContent,
15703
15730
  {
15704
15731
  ref,
15705
- maxWidth,
15706
15732
  onOpenAutoFocus: (event) => {
15707
- if (isNotNil33(initialFocusRef) && initialFocusRef.current) {
15733
+ if (isNotNil32(initialFocusRef) && initialFocusRef.current) {
15708
15734
  event.preventDefault();
15709
15735
  requestAnimationFrame(() => {
15710
15736
  initialFocusRef.current?.focus();
@@ -15716,7 +15742,7 @@ var Modal = forwardRef26(
15716
15742
  ...props,
15717
15743
  children: [
15718
15744
  /* @__PURE__ */ jsx295(ModalScrollArea, { children: /* @__PURE__ */ jsx295(ModalBody, { children }) }),
15719
- isNotNil33(footer) ? /* @__PURE__ */ jsx295(ModalFooter, { children: footer }) : null,
15745
+ isNotNil32(footer) ? /* @__PURE__ */ jsx295(ModalFooter, { children: footer }) : null,
15720
15746
  hideCloseButton && hideTitle ? null : /* @__PURE__ */ jsx295(
15721
15747
  ModalHeader,
15722
15748
  {
@@ -15762,9 +15788,9 @@ import { Root as Root2, Trigger as Trigger2, Portal, Content as Content2, Close
15762
15788
  import styled80, { css as css40 } from "styled-components";
15763
15789
 
15764
15790
  // src/private/helpers/getControls/getControlProps.tsx
15765
- import { isNotNil as isNotNil34 } from "@wistia/type-guards";
15791
+ import { isNotNil as isNotNil33 } from "@wistia/type-guards";
15766
15792
  var getControlProps = (isOpen, onOpenChange) => {
15767
- return isNotNil34(onOpenChange) && isNotNil34(isOpen) ? { open: isOpen, onOpenChange } : {};
15793
+ return isNotNil33(onOpenChange) && isNotNil33(isOpen) ? { open: isOpen, onOpenChange } : {};
15768
15794
  };
15769
15795
 
15770
15796
  // src/components/Popover/PopoverArrow.tsx
@@ -15920,7 +15946,7 @@ Popover.displayName = "Popover_UI";
15920
15946
  // src/components/ProgressBar/ProgressBar.tsx
15921
15947
  import styled81 from "styled-components";
15922
15948
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
15923
- import { isNotNil as isNotNil35 } from "@wistia/type-guards";
15949
+ import { isNotNil as isNotNil34 } from "@wistia/type-guards";
15924
15950
  import { jsx as jsx299, jsxs as jsxs54 } from "react/jsx-runtime";
15925
15951
  var ProgressBarWrapper = styled81.div`
15926
15952
  --progress-bar-height: 8px;
@@ -15976,7 +16002,7 @@ var ProgressBar = ({
15976
16002
  ...props
15977
16003
  }) => {
15978
16004
  return /* @__PURE__ */ jsxs54(ProgressBarWrapper, { children: [
15979
- isNotNil35(labelLeft) ? /* @__PURE__ */ jsx299(ProgressBarLabel, { children: labelLeft }) : null,
16005
+ isNotNil34(labelLeft) ? /* @__PURE__ */ jsx299(ProgressBarLabel, { children: labelLeft }) : null,
15980
16006
  /* @__PURE__ */ jsx299(
15981
16007
  StyledProgressBar,
15982
16008
  {
@@ -15994,7 +16020,7 @@ var ProgressBar = ({
15994
16020
  )
15995
16021
  }
15996
16022
  ),
15997
- isNotNil35(labelRight) ? /* @__PURE__ */ jsx299(ProgressBarLabel, { children: labelRight }) : null
16023
+ isNotNil34(labelRight) ? /* @__PURE__ */ jsx299(ProgressBarLabel, { children: labelRight }) : null
15998
16024
  ] });
15999
16025
  };
16000
16026
  ProgressBar.displayName = "ProgressBar_UI";
@@ -16315,7 +16341,7 @@ RadioCardRoot.displayName = "RadioCardRoot_UI";
16315
16341
 
16316
16342
  // src/components/RadioCard/RadioCardDefaultLayout.tsx
16317
16343
  import styled85 from "styled-components";
16318
- import { isNotNil as isNotNil36 } from "@wistia/type-guards";
16344
+ import { isNotNil as isNotNil35 } from "@wistia/type-guards";
16319
16345
 
16320
16346
  // src/components/RadioCard/RadioCardIndicator.tsx
16321
16347
  import styled84 from "styled-components";
@@ -16389,17 +16415,17 @@ var RadioCardDefaultLayout = ({
16389
16415
  showIndicator = true
16390
16416
  }) => {
16391
16417
  return /* @__PURE__ */ jsxs57(StyledCardContent, { children: [
16392
- showIndicator ? /* @__PURE__ */ jsx302(StyledIndicatorContainer, { $hasIcon: isNotNil36(icon), children: /* @__PURE__ */ jsx302(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
16418
+ showIndicator ? /* @__PURE__ */ jsx302(StyledIndicatorContainer, { $hasIcon: isNotNil35(icon), children: /* @__PURE__ */ jsx302(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
16393
16419
  /* @__PURE__ */ jsxs57(Stack, { gap: "space-02", children: [
16394
- isNotNil36(icon) && /* @__PURE__ */ jsx302(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
16420
+ isNotNil35(icon) && /* @__PURE__ */ jsx302(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
16395
16421
  /* @__PURE__ */ jsxs57(
16396
16422
  Stack,
16397
16423
  {
16398
16424
  gap: "space-01",
16399
- style: isNotNil36(icon) ? { paddingLeft: 2 } : void 0,
16425
+ style: isNotNil35(icon) ? { paddingLeft: 2 } : void 0,
16400
16426
  children: [
16401
- isNotNil36(label) && /* @__PURE__ */ jsx302(Text, { variant: "label3", children: /* @__PURE__ */ jsx302("strong", { children: label }) }),
16402
- isNotNil36(description) && /* @__PURE__ */ jsx302(
16427
+ isNotNil35(label) && /* @__PURE__ */ jsx302(Text, { variant: "label3", children: /* @__PURE__ */ jsx302("strong", { children: label }) }),
16428
+ isNotNil35(description) && /* @__PURE__ */ jsx302(
16403
16429
  Text,
16404
16430
  {
16405
16431
  prominence: "secondary",
@@ -16719,7 +16745,7 @@ SegmentedControl.displayName = "SegmentedControl_UI";
16719
16745
  import { forwardRef as forwardRef33, useEffect as useEffect21, useRef as useRef22 } from "react";
16720
16746
  import styled90, { css as css45 } from "styled-components";
16721
16747
  import { Item as ToggleGroupItem2 } from "@radix-ui/react-toggle-group";
16722
- import { isNotNil as isNotNil37 } from "@wistia/type-guards";
16748
+ import { isNotNil as isNotNil36 } from "@wistia/type-guards";
16723
16749
  import { jsxs as jsxs60 } from "react/jsx-runtime";
16724
16750
  var segmentedControlItemStyles = css45`
16725
16751
  all: unset; /* ToggleGroupItem is a button element */
@@ -16835,8 +16861,8 @@ var SegmentedControlItem = forwardRef33(
16835
16861
  {
16836
16862
  ref: combinedRef,
16837
16863
  ...otherProps,
16838
- $hasLabel: isNotNil37(label),
16839
- "aria-label": isNotNil37(label) ? void 0 : ariaLabel,
16864
+ $hasLabel: isNotNil36(label),
16865
+ "aria-label": isNotNil36(label) ? void 0 : ariaLabel,
16840
16866
  disabled,
16841
16867
  onClick: handleClick,
16842
16868
  value,
@@ -17010,7 +17036,7 @@ Select.displayName = "Select_UI";
17010
17036
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
17011
17037
  import { forwardRef as forwardRef35 } from "react";
17012
17038
  import styled92 from "styled-components";
17013
- import { isNotNil as isNotNil38 } from "@wistia/type-guards";
17039
+ import { isNotNil as isNotNil37 } from "@wistia/type-guards";
17014
17040
  import { jsx as jsx310, jsxs as jsxs62 } from "react/jsx-runtime";
17015
17041
  var StyledItem = styled92(Item)`
17016
17042
  ${getTypographicStyles("label3")}
@@ -17047,7 +17073,7 @@ var SelectOption = forwardRef35(
17047
17073
  ref: forwardedRef,
17048
17074
  $checkmarkVerticalAlign: checkmarkVerticalAlign,
17049
17075
  children: [
17050
- isNotNil38(selectedDisplayValue) ? /* @__PURE__ */ jsxs62("div", { children: [
17076
+ isNotNil37(selectedDisplayValue) ? /* @__PURE__ */ jsxs62("div", { children: [
17051
17077
  children,
17052
17078
  /* @__PURE__ */ jsx310("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx310(ItemText, { children: selectedDisplayValue }) })
17053
17079
  ] }) : /* @__PURE__ */ jsx310(ItemText, { children }),
@@ -17335,7 +17361,7 @@ var TableRow = ({ children, ...props }) => {
17335
17361
  // src/components/Tabs/Tabs.tsx
17336
17362
  import { Root as RadixTabsRoot } from "@radix-ui/react-tabs";
17337
17363
  import { useCallback as useCallback19, useState as useState25 } from "react";
17338
- import { isNotNil as isNotNil39 } from "@wistia/type-guards";
17364
+ import { isNotNil as isNotNil38 } from "@wistia/type-guards";
17339
17365
 
17340
17366
  // src/components/Tabs/useTabsValue.tsx
17341
17367
  import { createContext as createContext12, useContext as useContext18 } from "react";
@@ -17372,10 +17398,10 @@ var Tabs = ({
17372
17398
  ...props,
17373
17399
  onValueChange
17374
17400
  };
17375
- if (isNotNil39(value)) {
17401
+ if (isNotNil38(value)) {
17376
17402
  rootProps.value = value;
17377
17403
  }
17378
- if (isNotNil39(defaultValue)) {
17404
+ if (isNotNil38(defaultValue)) {
17379
17405
  rootProps.defaultValue = defaultValue;
17380
17406
  }
17381
17407
  return /* @__PURE__ */ jsx319(RadixTabsRoot, { ...rootProps, children: /* @__PURE__ */ jsx319(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ jsx319(SelectedItemStyleProvider, { children }) }) });
@@ -17444,7 +17470,7 @@ TabsList.displayName = "TabsList_UI";
17444
17470
 
17445
17471
  // src/components/Tabs/TabsTrigger.tsx
17446
17472
  import { forwardRef as forwardRef36, useEffect as useEffect22, useRef as useRef23 } from "react";
17447
- import { isNotNil as isNotNil40 } from "@wistia/type-guards";
17473
+ import { isNotNil as isNotNil39 } from "@wistia/type-guards";
17448
17474
 
17449
17475
  // src/components/Tabs/StyledRadixTabsTrigger.tsx
17450
17476
  import styled103 from "styled-components";
@@ -17495,8 +17521,8 @@ var TabsTrigger = forwardRef36(
17495
17521
  {
17496
17522
  ...otherProps,
17497
17523
  ref: combinedRef,
17498
- $hasLabel: isNotNil40(label),
17499
- "aria-label": isNotNil40(label) ? void 0 : ariaLabel,
17524
+ $hasLabel: isNotNil39(label),
17525
+ "aria-label": isNotNil39(label) ? void 0 : ariaLabel,
17500
17526
  disabled,
17501
17527
  value,
17502
17528
  children: [
@@ -17511,7 +17537,7 @@ TabsTrigger.displayName = "TabsTrigger_UI";
17511
17537
 
17512
17538
  // src/components/Thumbnail/ThumbnailBadge.tsx
17513
17539
  import styled104 from "styled-components";
17514
- import { isNotNil as isNotNil41 } from "@wistia/type-guards";
17540
+ import { isNotNil as isNotNil40 } from "@wistia/type-guards";
17515
17541
  import { jsx as jsx323, jsxs as jsxs67 } from "react/jsx-runtime";
17516
17542
  var StyledThumbnailBadge = styled104.div`
17517
17543
  align-items: center;
@@ -17540,7 +17566,7 @@ var StyledThumbnailBadge = styled104.div`
17540
17566
  `;
17541
17567
  var ThumbnailBadge = ({ icon, label, ...props }) => {
17542
17568
  return /* @__PURE__ */ jsxs67(StyledThumbnailBadge, { ...props, children: [
17543
- isNotNil41(icon) && icon,
17569
+ isNotNil40(icon) && icon,
17544
17570
  /* @__PURE__ */ jsx323("span", { children: label })
17545
17571
  ] });
17546
17572
  };
@@ -17549,10 +17575,10 @@ ThumbnailBadge.displayName = "ThumbnailBadge_UI";
17549
17575
  // src/components/Thumbnail/Thumbnail.tsx
17550
17576
  import { forwardRef as forwardRef37, useState as useState26, useRef as useRef24, useCallback as useCallback20, useMemo as useMemo17 } from "react";
17551
17577
  import styled106 from "styled-components";
17552
- import { isNil as isNil19, isNotNil as isNotNil44, isUndefined as isUndefined7, isEmptyString as isEmptyString2, isString as isString4 } from "@wistia/type-guards";
17578
+ import { isNil as isNil19, isNotNil as isNotNil43, isUndefined as isUndefined7, isEmptyString as isEmptyString2, isString as isString4 } from "@wistia/type-guards";
17553
17579
 
17554
17580
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
17555
- import { isNotNil as isNotNil42 } from "@wistia/type-guards";
17581
+ import { isNotNil as isNotNil41 } from "@wistia/type-guards";
17556
17582
  import { css as css49 } from "styled-components";
17557
17583
  var gradients = {
17558
17584
  defaultDarkOne: css49`
@@ -17680,12 +17706,12 @@ var gradients = {
17680
17706
  };
17681
17707
  var gradientMap = Object.keys(gradients);
17682
17708
  var getBackgroundGradient = (gradientName = void 0) => {
17683
- return isNotNil42(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
17709
+ return isNotNil41(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
17684
17710
  };
17685
17711
 
17686
17712
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
17687
17713
  import styled105 from "styled-components";
17688
- import { isNotNil as isNotNil43 } from "@wistia/type-guards";
17714
+ import { isNotNil as isNotNil42 } from "@wistia/type-guards";
17689
17715
  import { jsx as jsx324, jsxs as jsxs68 } from "react/jsx-runtime";
17690
17716
  var ScrubLine = styled105.div`
17691
17717
  position: absolute;
@@ -17779,8 +17805,8 @@ var ThumbnailStoryboardViewer = ({
17779
17805
  );
17780
17806
  const backgroundSize = `${scaledStoryboardWidth}px ${scaledStoryboardHeight}px`;
17781
17807
  const backgroundImage = `url(${storyboardUrl})`;
17782
- const showScrubLine = isNotNil43(cursorPosition);
17783
- const scrubLinePosition = isNotNil43(cursorPosition) ? `${cursorPosition - 1}px` : "0";
17808
+ const showScrubLine = isNotNil42(cursorPosition);
17809
+ const scrubLinePosition = isNotNil42(cursorPosition) ? `${cursorPosition - 1}px` : "0";
17784
17810
  const viewerStyles = {
17785
17811
  position: "relative",
17786
17812
  overflow: "hidden",
@@ -17851,7 +17877,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
17851
17877
  );
17852
17878
  };
17853
17879
  var StyledThumbnail = styled106.div`
17854
- background-image: ${({ $backgroundUrl }) => isNotNil44($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
17880
+ background-image: ${({ $backgroundUrl }) => isNotNil43($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
17855
17881
  ${({ $backgroundUrl, $gradientBackground }) => (
17856
17882
  // if we don't have $backgroundUrl show a gradient
17857
17883
  isNil19($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
@@ -17930,10 +17956,10 @@ var Thumbnail = forwardRef37(
17930
17956
  const storyboardElementRef = useRef24(null);
17931
17957
  const [cursorPosition, setCursorPosition] = useState26(null);
17932
17958
  const backgroundUrl = useMemo17(
17933
- () => thumbnailImageType === "square" && isNotNil44(thumbnailUrl) ? thumbnailUrl : void 0,
17959
+ () => thumbnailImageType === "square" && isNotNil43(thumbnailUrl) ? thumbnailUrl : void 0,
17934
17960
  [thumbnailImageType, thumbnailUrl]
17935
17961
  );
17936
- const isScrubbable = isNotNil44(storyboard);
17962
+ const isScrubbable = isNotNil43(storyboard);
17937
17963
  const trackStoryboardLoadStatus = useCallback20(() => {
17938
17964
  if (storyboardElementRef.current || !storyboard) {
17939
17965
  return storyboardElementRef.current;
@@ -17980,7 +18006,7 @@ var Thumbnail = forwardRef37(
17980
18006
  width
17981
18007
  }
17982
18008
  );
17983
- } else if (isNotNil44(thumbnailUrl)) {
18009
+ } else if (isNotNil43(thumbnailUrl)) {
17984
18010
  thumbnailContent = /* @__PURE__ */ jsx325(
17985
18011
  ThumbnailImage,
17986
18012
  {
@@ -18005,7 +18031,7 @@ var Thumbnail = forwardRef37(
18005
18031
  onMouseOut: handleMouseOut,
18006
18032
  role: "presentation",
18007
18033
  children: [
18008
- isNotNil44(children) ? children : null,
18034
+ isNotNil43(children) ? children : null,
18009
18035
  thumbnailContent
18010
18036
  ]
18011
18037
  }
@@ -18123,7 +18149,7 @@ var ThumbnailCollage = ({
18123
18149
 
18124
18150
  // src/components/WistiaLogo/WistiaLogo.tsx
18125
18151
  import styled108, { css as css50 } from "styled-components";
18126
- import { isNotNil as isNotNil45 } from "@wistia/type-guards";
18152
+ import { isNotNil as isNotNil44 } from "@wistia/type-guards";
18127
18153
  import { jsx as jsx327, jsxs as jsxs70 } from "react/jsx-runtime";
18128
18154
  var renderBrandmark = (brandmarkColor, iconOnly) => {
18129
18155
  if (iconOnly) {
@@ -18236,7 +18262,7 @@ var WistiaLogo = ({
18236
18262
  ...props,
18237
18263
  children: [
18238
18264
  /* @__PURE__ */ jsx327("title", { children: title }),
18239
- isNotNil45(description) ? /* @__PURE__ */ jsx327("desc", { children: description }) : null,
18265
+ isNotNil44(description) ? /* @__PURE__ */ jsx327("desc", { children: description }) : null,
18240
18266
  renderBrandmark(brandmarkColor, iconOnly),
18241
18267
  renderLogotype(logotypeColor, iconOnly)
18242
18268
  ]
@@ -18248,7 +18274,7 @@ WistiaLogo.displayName = "WistiaLogo_UI";
18248
18274
 
18249
18275
  // src/components/SplitButton/SplitButton.tsx
18250
18276
  import styled109 from "styled-components";
18251
- import { isNotNil as isNotNil46 } from "@wistia/type-guards";
18277
+ import { isNotNil as isNotNil45 } from "@wistia/type-guards";
18252
18278
  import { cloneElement as cloneElement9 } from "react";
18253
18279
  import { jsx as jsx328, jsxs as jsxs71 } from "react/jsx-runtime";
18254
18280
  var StyledSplitButton = styled109.span`
@@ -18295,7 +18321,7 @@ var SplitButton = ({
18295
18321
  children
18296
18322
  }
18297
18323
  ),
18298
- isNotNil46(menuItems) && /* @__PURE__ */ jsx328(
18324
+ isNotNil45(menuItems) && /* @__PURE__ */ jsx328(
18299
18325
  Menu,
18300
18326
  {
18301
18327
  ...menuProps,
@@ -18314,7 +18340,7 @@ var SplitButton = ({
18314
18340
  children: menuItems
18315
18341
  }
18316
18342
  ),
18317
- isNotNil46(secondaryAction) && cloneElement9(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
18343
+ isNotNil45(secondaryAction) && cloneElement9(secondaryAction, { disabled, size, unstyled, variant, colorScheme })
18318
18344
  ] });
18319
18345
  };
18320
18346
  SplitButton.displayName = "SplitButton_UI";