@wistia/ui 0.9.7 → 0.10.0-beta.26b4bee5.4f64bde

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.9.7
3
+ * @license @wistia/ui v0.10.0-beta.26b4bee5.4f64bde
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -11789,7 +11789,7 @@ var segmentedControlItemStyles = css35`
11789
11789
  outline: 2px solid var(--wui-color-focus-ring);
11790
11790
  }
11791
11791
 
11792
- &:hover:not([data-state='on'], [data-state='active']) {
11792
+ &:hover:not([data-state='on'], [data-state='active'], [aria-selected='true']) {
11793
11793
  background-color: var(--wui-color-bg-surface-secondary-hover);
11794
11794
  }
11795
11795
 
@@ -12357,89 +12357,125 @@ var TableRow = ({ children, ...props }) => {
12357
12357
  };
12358
12358
 
12359
12359
  // src/components/Tabs/Tabs.tsx
12360
- import { forwardRef as forwardRef27, useState as useState15 } from "react";
12361
- import { Root as TabsRoot } from "@radix-ui/react-tabs";
12362
- import { isNotNil as isNotNil31, isNil as isNil14 } from "@wistia/type-guards";
12363
- import styled71 from "styled-components";
12360
+ import { Root as RadixTabsRoot } from "@radix-ui/react-tabs";
12361
+ import { useCallback as useCallback10, useState as useState15 } from "react";
12362
+ import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12364
12363
 
12365
- // src/components/Tabs/TabPanel.tsx
12366
- import styled67 from "styled-components";
12367
- import { Content as TabsContent } from "@radix-ui/react-tabs";
12364
+ // src/components/Tabs/useTabsValue.tsx
12365
+ import { createContext as createContext10, useContext as useContext11 } from "react";
12366
+ var TabsValueContext = createContext10(null);
12367
+ var TabsValueProvider = TabsValueContext.Provider;
12368
+ var useTabsValue = () => {
12369
+ const context = useContext11(TabsValueContext);
12370
+ if (context === null) {
12371
+ throw new Error("useTabsValue must be used within a TabsValueProvider");
12372
+ }
12373
+ return context;
12374
+ };
12375
+
12376
+ // src/components/Tabs/Tabs.tsx
12368
12377
  import { jsx as jsx265 } from "react/jsx-runtime";
12369
- var StyledTabPanel = styled67(TabsContent)`
12370
- display: flex;
12371
- flex-direction: column;
12372
- `;
12373
- var TabPanel = ({ children, value, ...props }) => {
12374
- return /* @__PURE__ */ jsx265(
12375
- StyledTabPanel,
12376
- {
12377
- value,
12378
- ...props,
12379
- children
12380
- }
12378
+ var Tabs = ({
12379
+ children,
12380
+ value: valueProp,
12381
+ onValueChange: onValueChangeProp,
12382
+ defaultValue,
12383
+ ...props
12384
+ }) => {
12385
+ const [value, setValue] = useState15(valueProp ?? defaultValue);
12386
+ const onValueChange = useCallback10(
12387
+ (newValue) => {
12388
+ setValue(newValue);
12389
+ if (onValueChangeProp) {
12390
+ onValueChangeProp(newValue);
12391
+ }
12392
+ },
12393
+ [onValueChangeProp]
12381
12394
  );
12395
+ const rootProps = {
12396
+ ...props,
12397
+ onValueChange
12398
+ };
12399
+ if (isNotNil30(value)) {
12400
+ rootProps.value = value;
12401
+ }
12402
+ if (isNotNil30(defaultValue)) {
12403
+ rootProps.defaultValue = defaultValue;
12404
+ }
12405
+ return /* @__PURE__ */ jsx265(RadixTabsRoot, { ...rootProps, children: /* @__PURE__ */ jsx265(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ jsx265(SelectedItemStyleProvider, { children }) }) });
12382
12406
  };
12383
- TabPanel.displayName = "TabPanel";
12407
+ Tabs.displayName = "Tabs";
12384
12408
 
12385
- // src/components/Tabs/TabList.tsx
12386
- import styled68 from "styled-components";
12387
- import { List as RadixTabList } from "@radix-ui/react-tabs";
12409
+ // src/components/Tabs/TabsContent.tsx
12410
+ import { Content as RadixTabsContent } from "@radix-ui/react-tabs";
12388
12411
  import { jsx as jsx266 } from "react/jsx-runtime";
12389
- var StyledTabList = styled68(RadixTabList)`
12390
- ${segmentedControlStyles}
12412
+ var TabsContent = ({ children, value }) => {
12413
+ return /* @__PURE__ */ jsx266(RadixTabsContent, { value, children });
12414
+ };
12415
+ TabsContent.displayName = "TabsContent";
12391
12416
 
12392
- margin-bottom: var(--wui-space-04);
12393
- width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
12394
- align-self: ${({ $fullWidth }) => $fullWidth ? "auto" : "flex-start"};
12417
+ // src/components/Tabs/TabsList.tsx
12418
+ import { List as RadixTabList } from "@radix-ui/react-tabs";
12419
+ import styled68 from "styled-components";
12420
+
12421
+ // src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
12422
+ import styled67 from "styled-components";
12423
+ var TabsSelectedItemIndicatorDiv = styled67(SelectedItemIndicatorDiv)`
12424
+ &:has(~ button[role='tab']:focus-visible) {
12425
+ outline: 2px solid var(--wui-color-focus-ring);
12426
+ }
12395
12427
  `;
12396
- var TabList = ({
12397
- children,
12398
- fullWidth,
12399
- ariaLabel,
12400
- ...props
12401
- }) => {
12402
- return /* @__PURE__ */ jsx266(
12403
- StyledTabList,
12428
+
12429
+ // src/components/Tabs/SelectedTabIndicator.tsx
12430
+ import { jsx as jsx267 } from "react/jsx-runtime";
12431
+ var SelectedTabIndicator = () => {
12432
+ const { selectedItemIndicatorStyle } = useSelectedItemStyle();
12433
+ const selectedValue = useTabsValue();
12434
+ if (selectedValue == null) {
12435
+ return null;
12436
+ }
12437
+ return /* @__PURE__ */ jsx267(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12438
+ };
12439
+
12440
+ // src/components/Tabs/TabsList.tsx
12441
+ import { jsx as jsx268, jsxs as jsxs42 } from "react/jsx-runtime";
12442
+ var StyledRadixTabsList = styled68(RadixTabList)`
12443
+ ${segmentedControlStyles}
12444
+ `;
12445
+ var TabsList = ({ children, fullWidth = true, ...props }) => {
12446
+ return /* @__PURE__ */ jsxs42(
12447
+ StyledRadixTabsList,
12404
12448
  {
12405
12449
  $fullWidth: fullWidth,
12406
- "aria-label": ariaLabel,
12407
- ...props,
12408
- children
12450
+ "aria-label": props["aria-label"],
12451
+ children: [
12452
+ /* @__PURE__ */ jsx268(SelectedTabIndicator, {}),
12453
+ children
12454
+ ]
12409
12455
  }
12410
12456
  );
12411
12457
  };
12412
- TabList.displayName = "TabList";
12458
+ TabsList.displayName = "TabsList";
12413
12459
 
12414
- // src/components/Tabs/TabItem.tsx
12460
+ // src/components/Tabs/TabsTrigger.tsx
12415
12461
  import { forwardRef as forwardRef26, useEffect as useEffect12, useRef as useRef14 } from "react";
12416
- import styled69 from "styled-components";
12417
- import { Trigger as RadixTab } from "@radix-ui/react-tabs";
12418
- import { isNotNil as isNotNil30 } from "@wistia/type-guards";
12419
-
12420
- // src/components/Tabs/useTabsValue.tsx
12421
- import { createContext as createContext10, useContext as useContext11 } from "react";
12422
- var TabsValueContext = createContext10(null);
12423
- var TabsValueProvider = TabsValueContext.Provider;
12424
- var useTabsValue = () => {
12425
- const context = useContext11(TabsValueContext);
12426
- if (context === null) {
12427
- throw new Error("useTabsValue must be used within a TabsValueProvider");
12428
- }
12429
- return context;
12430
- };
12462
+ import { isNotNil as isNotNil31 } from "@wistia/type-guards";
12431
12463
 
12432
- // src/components/Tabs/TabItem.tsx
12433
- import { jsxs as jsxs42 } from "react/jsx-runtime";
12434
- var StyledTabItem = styled69(RadixTab)`
12464
+ // src/components/Tabs/StyledRadixTabsTrigger.tsx
12465
+ import styled69 from "styled-components";
12466
+ import { Trigger as RadixTabsTrigger } from "@radix-ui/react-tabs";
12467
+ var StyledRadixTabsTrigger = styled69(RadixTabsTrigger)`
12435
12468
  ${segmentedControlItemStyles}
12436
12469
 
12437
12470
  &:focus-visible {
12438
12471
  outline: none;
12439
12472
  }
12440
12473
  `;
12441
- var TabItem = forwardRef26(
12442
- ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
12474
+
12475
+ // src/components/Tabs/TabsTrigger.tsx
12476
+ import { jsxs as jsxs43 } from "react/jsx-runtime";
12477
+ var TabsTrigger = forwardRef26(
12478
+ ({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
12443
12479
  const selectedValue = useTabsValue();
12444
12480
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
12445
12481
  const buttonRef = useRef14(null);
@@ -12469,12 +12505,13 @@ var TabItem = forwardRef26(
12469
12505
  resizeObserver.disconnect();
12470
12506
  };
12471
12507
  }, [selectedValue, setSelectedItemMeasurements, value]);
12472
- return /* @__PURE__ */ jsxs42(
12473
- StyledTabItem,
12508
+ return /* @__PURE__ */ jsxs43(
12509
+ StyledRadixTabsTrigger,
12474
12510
  {
12511
+ ...otherProps,
12475
12512
  ref: combinedRef,
12476
- $hasLabel: isNotNil30(label),
12477
- "aria-label": isNotNil30(label) ? void 0 : ariaLabel,
12513
+ $hasLabel: isNotNil31(label),
12514
+ "aria-label": isNotNil31(label) ? void 0 : ariaLabel,
12478
12515
  disabled,
12479
12516
  value,
12480
12517
  children: [
@@ -12485,176 +12522,14 @@ var TabItem = forwardRef26(
12485
12522
  );
12486
12523
  }
12487
12524
  );
12488
- TabItem.displayName = "TabItem";
12489
-
12490
- // src/components/Tabs/extractTabItems.ts
12491
- import { Children as Children6, Fragment as Fragment7, isValidElement as isValidElement2 } from "react";
12492
- var extractTabItems = (children) => {
12493
- const tabItems = [];
12494
- Children6.forEach(children, (child) => {
12495
- if (!isValidElement2(child)) {
12496
- return;
12497
- }
12498
- if (typeof child.type !== "string" && child.type.displayName === "Tab") {
12499
- tabItems.push(child);
12500
- } else if (child.type === Fragment7) {
12501
- const fragmentElement = child;
12502
- tabItems.push(...extractTabItems(fragmentElement.props.children));
12503
- } else if ((child.props.children ?? null) != null) {
12504
- const childChildren = child.props.children;
12505
- tabItems.push(...extractTabItems(childChildren));
12506
- } else {
12507
- }
12508
- });
12509
- return tabItems;
12510
- };
12511
-
12512
- // src/components/Tabs/SelectedItemIndicator.tsx
12513
- import styled70 from "styled-components";
12514
- import { jsx as jsx267 } from "react/jsx-runtime";
12515
- var TabsSelectedItemIndicatorDiv = styled70(SelectedItemIndicatorDiv)`
12516
- &:has(~ ${StyledTabItem}:focus-visible) {
12517
- outline: 2px solid var(--wui-color-focus-ring);
12518
- }
12519
- `;
12520
- var SelectedItemIndicator2 = () => {
12521
- const { selectedItemIndicatorStyle } = useSelectedItemStyle();
12522
- const selectedValue = useTabsValue();
12523
- if (selectedValue == null) {
12524
- return null;
12525
- }
12526
- return /* @__PURE__ */ jsx267(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12527
- };
12528
-
12529
- // src/components/Tabs/Tabs.tsx
12530
- import { jsx as jsx268, jsxs as jsxs43 } from "react/jsx-runtime";
12531
- var TabsContainer = styled71.div`
12532
- display: flex;
12533
- flex-direction: column;
12534
- height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12535
- overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12536
- `;
12537
- var StickyTabContent = styled71.div`
12538
- flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
12539
- overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
12540
- overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12541
- `;
12542
- var StyledTabsRoot = styled71(TabsRoot)`
12543
- display: flex;
12544
- flex-direction: column;
12545
- height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12546
- `;
12547
- var Tabs = forwardRef27(
12548
- ({
12549
- children,
12550
- fullWidth = true,
12551
- "aria-label": ariaLabel,
12552
- defaultSelectedValue,
12553
- selectedValue,
12554
- onSelectedValueChange,
12555
- stickyHeaders = true,
12556
- ...props
12557
- }, ref) => {
12558
- const tabItems = extractTabItems(children);
12559
- const [internalSelectedValue, setInternalSelectedValue] = useState15(defaultSelectedValue);
12560
- const modeProps = defaultSelectedValue !== void 0 ? {
12561
- defaultValue: defaultSelectedValue,
12562
- onValueChange: setInternalSelectedValue
12563
- } : { value: selectedValue, onValueChange: onSelectedValueChange };
12564
- const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
12565
- return /* @__PURE__ */ jsx268(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx268(
12566
- StyledTabsRoot,
12567
- {
12568
- ref,
12569
- $stickyHeaders: stickyHeaders,
12570
- activationMode: "automatic",
12571
- ...props,
12572
- ...modeProps,
12573
- children: /* @__PURE__ */ jsx268(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs43(SelectedItemStyleProvider, { children: [
12574
- /* @__PURE__ */ jsxs43(
12575
- TabList,
12576
- {
12577
- ariaLabel,
12578
- fullWidth,
12579
- children: [
12580
- /* @__PURE__ */ jsx268(SelectedItemIndicator2, {}),
12581
- tabItems.map((tab) => {
12582
- const {
12583
- value,
12584
- disabled = false,
12585
- icon,
12586
- label,
12587
- "aria-label": ariaLabelForTab
12588
- } = tab.props;
12589
- if (isNil14(icon)) {
12590
- return /* @__PURE__ */ jsx268(
12591
- TabItem,
12592
- {
12593
- disabled,
12594
- label,
12595
- value
12596
- },
12597
- value
12598
- );
12599
- }
12600
- if (isNotNil31(label)) {
12601
- return /* @__PURE__ */ jsx268(
12602
- TabItem,
12603
- {
12604
- disabled,
12605
- icon,
12606
- label,
12607
- value
12608
- },
12609
- value
12610
- );
12611
- }
12612
- if (isNotNil31(ariaLabelForTab)) {
12613
- return /* @__PURE__ */ jsx268(
12614
- TabItem,
12615
- {
12616
- "aria-label": ariaLabelForTab,
12617
- disabled,
12618
- icon,
12619
- value
12620
- },
12621
- value
12622
- );
12623
- }
12624
- throw new Error("A `Tab` with an icon must have either label or aria-label");
12625
- })
12626
- ]
12627
- }
12628
- ),
12629
- /* @__PURE__ */ jsx268(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx268(
12630
- TabPanel,
12631
- {
12632
- value: tab.props.value,
12633
- children: tab.props.children
12634
- },
12635
- tab.props.value
12636
- )) })
12637
- ] }) })
12638
- }
12639
- ) });
12640
- }
12641
- );
12642
- Tabs.displayName = "Tabs";
12643
-
12644
- // src/components/Tabs/Tab.tsx
12645
- import { forwardRef as forwardRef28 } from "react";
12646
- import { jsx as jsx269 } from "react/jsx-runtime";
12647
- var Tab = forwardRef28(({ children }, ref) => {
12648
- return /* @__PURE__ */ jsx269("div", { ref, children });
12649
- });
12650
- Tab.displayName = "Tab";
12525
+ TabsTrigger.displayName = "TabsTrigger";
12651
12526
 
12652
12527
  // src/components/Tag/Tag.tsx
12653
- import { forwardRef as forwardRef29 } from "react";
12654
- import styled72 from "styled-components";
12655
- import { isNil as isNil15, isNotNil as isNotNil32, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12656
- import { Fragment as Fragment8, jsx as jsx270, jsxs as jsxs44 } from "react/jsx-runtime";
12657
- var TagLabel = styled72.a`
12528
+ import { forwardRef as forwardRef27 } from "react";
12529
+ import styled70 from "styled-components";
12530
+ import { isNil as isNil14, isNotNil as isNotNil32, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12531
+ import { Fragment as Fragment7, jsx as jsx269, jsxs as jsxs44 } from "react/jsx-runtime";
12532
+ var TagLabel = styled70.a`
12658
12533
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12659
12534
  font-size: var(--wui-typography-label-4-size);
12660
12535
  font-weight: var(--wui-typography-label-4-weight);
@@ -12689,14 +12564,14 @@ var TagLabel = styled72.a`
12689
12564
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12690
12565
  }
12691
12566
  `;
12692
- var TagDivider = styled72.div`
12567
+ var TagDivider = styled70.div`
12693
12568
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12694
12569
  border-left: 1px solid var(--wui-color-border);
12695
12570
  display: flex;
12696
12571
  height: 14px;
12697
12572
  width: 1px;
12698
12573
  `;
12699
- var StyledRemoveButton = styled72.button`
12574
+ var StyledRemoveButton = styled70.button`
12700
12575
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12701
12576
  all: unset;
12702
12577
  cursor: pointer;
@@ -12724,7 +12599,7 @@ var StyledRemoveButton = styled72.button`
12724
12599
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12725
12600
  }
12726
12601
  `;
12727
- var StyledTag = styled72.div`
12602
+ var StyledTag = styled70.div`
12728
12603
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12729
12604
  align-items: center;
12730
12605
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12737,16 +12612,16 @@ var StyledTag = styled72.div`
12737
12612
  }
12738
12613
  `;
12739
12614
  var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12740
- if (isNil15(onClickRemove)) {
12615
+ if (isNil14(onClickRemove)) {
12741
12616
  return null;
12742
12617
  }
12743
- if (isNil15(onClickRemoveLabel)) {
12618
+ if (isNil14(onClickRemoveLabel)) {
12744
12619
  throw new Error(
12745
12620
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12746
12621
  );
12747
12622
  }
12748
- return /* @__PURE__ */ jsxs44(Fragment8, { children: [
12749
- /* @__PURE__ */ jsx270(TagDivider, { $colorScheme: colorScheme }),
12623
+ return /* @__PURE__ */ jsxs44(Fragment7, { children: [
12624
+ /* @__PURE__ */ jsx269(TagDivider, { $colorScheme: colorScheme }),
12750
12625
  /* @__PURE__ */ jsxs44(
12751
12626
  StyledRemoveButton,
12752
12627
  {
@@ -12754,20 +12629,20 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12754
12629
  onClick: onClickRemove,
12755
12630
  type: "button",
12756
12631
  children: [
12757
- /* @__PURE__ */ jsx270(
12632
+ /* @__PURE__ */ jsx269(
12758
12633
  Icon,
12759
12634
  {
12760
12635
  size: "sm",
12761
12636
  type: "close"
12762
12637
  }
12763
12638
  ),
12764
- /* @__PURE__ */ jsx270(ScreenReaderOnly, { children: onClickRemoveLabel })
12639
+ /* @__PURE__ */ jsx269(ScreenReaderOnly, { children: onClickRemoveLabel })
12765
12640
  ]
12766
12641
  }
12767
12642
  )
12768
12643
  ] });
12769
12644
  };
12770
- var Tag = forwardRef29(
12645
+ var Tag = forwardRef27(
12771
12646
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12772
12647
  const hasIcon = isNotNil32(icon);
12773
12648
  const labelProps = isNotNil32(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
@@ -12789,7 +12664,7 @@ var Tag = forwardRef29(
12789
12664
  ]
12790
12665
  }
12791
12666
  ),
12792
- /* @__PURE__ */ jsx270(
12667
+ /* @__PURE__ */ jsx269(
12793
12668
  RemoveButton,
12794
12669
  {
12795
12670
  colorScheme,
@@ -12805,10 +12680,10 @@ var Tag = forwardRef29(
12805
12680
  Tag.displayName = "Tag";
12806
12681
 
12807
12682
  // src/components/Thumbnail/ThumbnailBadge.tsx
12808
- import styled73 from "styled-components";
12683
+ import styled71 from "styled-components";
12809
12684
  import { isNotNil as isNotNil33 } from "@wistia/type-guards";
12810
- import { jsx as jsx271, jsxs as jsxs45 } from "react/jsx-runtime";
12811
- var StyledThumbnailBadge = styled73.div`
12685
+ import { jsx as jsx270, jsxs as jsxs45 } from "react/jsx-runtime";
12686
+ var StyledThumbnailBadge = styled71.div`
12812
12687
  align-items: center;
12813
12688
  background-color: rgb(0 0 0 / 50%);
12814
12689
  border-radius: var(--wui-border-radius-01);
@@ -12835,15 +12710,15 @@ var StyledThumbnailBadge = styled73.div`
12835
12710
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12836
12711
  return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12837
12712
  isNotNil33(icon) && icon,
12838
- /* @__PURE__ */ jsx271("span", { children: label })
12713
+ /* @__PURE__ */ jsx270("span", { children: label })
12839
12714
  ] });
12840
12715
  };
12841
12716
  ThumbnailBadge.displayName = "ThumbnailBadge";
12842
12717
 
12843
12718
  // src/components/Thumbnail/Thumbnail.tsx
12844
- import { forwardRef as forwardRef30, useState as useState16, useRef as useRef15, useCallback as useCallback10, useMemo as useMemo9 } from "react";
12845
- import styled75 from "styled-components";
12846
- import { isNil as isNil16, isNotNil as isNotNil36, isUndefined as isUndefined5, isEmptyString as isEmptyString2, isString as isString2 } from "@wistia/type-guards";
12719
+ import { forwardRef as forwardRef28, useState as useState16, useRef as useRef15, useCallback as useCallback11, useMemo as useMemo9 } from "react";
12720
+ import styled73 from "styled-components";
12721
+ import { isNil as isNil15, isNotNil as isNotNil36, isUndefined as isUndefined5, isEmptyString as isEmptyString2, isString as isString2 } from "@wistia/type-guards";
12847
12722
 
12848
12723
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12849
12724
  import { isNotNil as isNotNil34 } from "@wistia/type-guards";
@@ -12978,10 +12853,10 @@ var getBackgroundGradient = (gradientName = void 0) => {
12978
12853
  };
12979
12854
 
12980
12855
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
12981
- import styled74 from "styled-components";
12856
+ import styled72 from "styled-components";
12982
12857
  import { isNotNil as isNotNil35 } from "@wistia/type-guards";
12983
- import { jsx as jsx272, jsxs as jsxs46 } from "react/jsx-runtime";
12984
- var ScrubLine = styled74.div`
12858
+ import { jsx as jsx271, jsxs as jsxs46 } from "react/jsx-runtime";
12859
+ var ScrubLine = styled72.div`
12985
12860
  position: absolute;
12986
12861
  top: 0;
12987
12862
  height: 100%;
@@ -13089,8 +12964,8 @@ var ThumbnailStoryboardViewer = ({
13089
12964
  ...props,
13090
12965
  style: viewerStyles,
13091
12966
  children: [
13092
- /* @__PURE__ */ jsx272("div", { style: storyboardStyles }),
13093
- showScrubLine ? /* @__PURE__ */ jsx272(
12967
+ /* @__PURE__ */ jsx271("div", { style: storyboardStyles }),
12968
+ showScrubLine ? /* @__PURE__ */ jsx271(
13094
12969
  ScrubLine,
13095
12970
  {
13096
12971
  style: {
@@ -13104,20 +12979,20 @@ var ThumbnailStoryboardViewer = ({
13104
12979
  };
13105
12980
 
13106
12981
  // src/components/Thumbnail/Thumbnail.tsx
13107
- import { jsx as jsx273, jsxs as jsxs47 } from "react/jsx-runtime";
13108
- var WideThumbnailImage = styled75.img`
12982
+ import { jsx as jsx272, jsxs as jsxs47 } from "react/jsx-runtime";
12983
+ var WideThumbnailImage = styled73.img`
13109
12984
  height: 100%;
13110
12985
  object-fit: cover;
13111
12986
  width: 100%;
13112
12987
  `;
13113
- var SquareThumbnailImage = styled75.img`
12988
+ var SquareThumbnailImage = styled73.img`
13114
12989
  backdrop-filter: blur(8px);
13115
12990
  object-fit: contain;
13116
12991
  width: 100%;
13117
12992
  `;
13118
12993
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13119
12994
  if (thumbnailImageType === "wide") {
13120
- return /* @__PURE__ */ jsx273(
12995
+ return /* @__PURE__ */ jsx272(
13121
12996
  WideThumbnailImage,
13122
12997
  {
13123
12998
  alt: "",
@@ -13126,7 +13001,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13126
13001
  }
13127
13002
  );
13128
13003
  }
13129
- return /* @__PURE__ */ jsx273(
13004
+ return /* @__PURE__ */ jsx272(
13130
13005
  SquareThumbnailImage,
13131
13006
  {
13132
13007
  alt: "",
@@ -13135,11 +13010,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13135
13010
  }
13136
13011
  );
13137
13012
  };
13138
- var StyledThumbnail = styled75.div`
13013
+ var StyledThumbnail = styled73.div`
13139
13014
  background-image: ${({ $backgroundUrl }) => isNotNil36($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
13140
13015
  ${({ $backgroundUrl, $gradientBackground }) => (
13141
13016
  // if we don't have $backgroundUrl show a gradient
13142
- isNil16($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
13017
+ isNil15($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
13143
13018
  )};
13144
13019
  background-position: center center;
13145
13020
  background-size: cover;
@@ -13164,7 +13039,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
13164
13039
  left: relativeLeft
13165
13040
  };
13166
13041
  };
13167
- var Thumbnail = forwardRef30(
13042
+ var Thumbnail = forwardRef28(
13168
13043
  ({
13169
13044
  gradientBackground = "defaultMidOne",
13170
13045
  thumbnailImageType = "square",
@@ -13185,7 +13060,7 @@ var Thumbnail = forwardRef30(
13185
13060
  [thumbnailImageType, thumbnailUrl]
13186
13061
  );
13187
13062
  const isScrubbable = isNotNil36(storyboard);
13188
- const trackStoryboardLoadStatus = useCallback10(() => {
13063
+ const trackStoryboardLoadStatus = useCallback11(() => {
13189
13064
  if (storyboardElementRef.current || !storyboard) {
13190
13065
  return storyboardElementRef.current;
13191
13066
  }
@@ -13195,7 +13070,7 @@ var Thumbnail = forwardRef30(
13195
13070
  storyboardElementRef.current = asset;
13196
13071
  return storyboardElementRef.current;
13197
13072
  }, [storyboard]);
13198
- const handleMouseMove = useCallback10(
13073
+ const handleMouseMove = useCallback11(
13199
13074
  (mouseEvent) => {
13200
13075
  if (!isScrubbable) return;
13201
13076
  const elem = mouseEvent.currentTarget;
@@ -13208,7 +13083,7 @@ var Thumbnail = forwardRef30(
13208
13083
  },
13209
13084
  [isScrubbable, trackStoryboardLoadStatus]
13210
13085
  );
13211
- const handleMouseOut = useCallback10(() => {
13086
+ const handleMouseOut = useCallback11(() => {
13212
13087
  if (!isScrubbable) return;
13213
13088
  setIsMouseOver(false);
13214
13089
  setCursorPosition(null);
@@ -13216,7 +13091,7 @@ var Thumbnail = forwardRef30(
13216
13091
  const shouldRenderStoryboard = useMemo9(() => {
13217
13092
  return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
13218
13093
  }, [isScrubbable, isMouseOver, isStoryboardReady]);
13219
- const renderStoryboard = useCallback10(() => {
13094
+ const renderStoryboard = useCallback11(() => {
13220
13095
  if (!storyboard || isUndefined5(height) || isEmptyString2(height)) return null;
13221
13096
  const {
13222
13097
  url,
@@ -13229,7 +13104,7 @@ var Thumbnail = forwardRef30(
13229
13104
  } = storyboard;
13230
13105
  const targetWidth = isString2(width) ? parseInt(width, 10) : Number(width);
13231
13106
  const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
13232
- return /* @__PURE__ */ jsx273(
13107
+ return /* @__PURE__ */ jsx272(
13233
13108
  ThumbnailStoryboardViewer,
13234
13109
  {
13235
13110
  cursorPosition: effectiveCursorPosition,
@@ -13249,7 +13124,7 @@ var Thumbnail = forwardRef30(
13249
13124
  if (shouldRenderStoryboard) {
13250
13125
  thumbnailContent = renderStoryboard();
13251
13126
  } else if (isNotNil36(thumbnailUrl)) {
13252
- thumbnailContent = /* @__PURE__ */ jsx273(
13127
+ thumbnailContent = /* @__PURE__ */ jsx272(
13253
13128
  ThumbnailImage,
13254
13129
  {
13255
13130
  thumbnailImageType,
@@ -13284,10 +13159,10 @@ Thumbnail.displayName = "Thumbnail";
13284
13159
 
13285
13160
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
13286
13161
  import React2 from "react";
13287
- import styled76 from "styled-components";
13162
+ import styled74 from "styled-components";
13288
13163
  import { isNonEmptyArray } from "@wistia/type-guards";
13289
- import { jsx as jsx274 } from "react/jsx-runtime";
13290
- var StyledThumbnailCollage = styled76.div`
13164
+ import { jsx as jsx273 } from "react/jsx-runtime";
13165
+ var StyledThumbnailCollage = styled74.div`
13291
13166
  display: grid;
13292
13167
  gap: var(--wui-space-01);
13293
13168
  width: 100%;
@@ -13369,7 +13244,7 @@ var ThumbnailCollage = ({
13369
13244
  });
13370
13245
  }) : [
13371
13246
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
13372
- /* @__PURE__ */ jsx274(
13247
+ /* @__PURE__ */ jsx273(
13373
13248
  Thumbnail,
13374
13249
  {
13375
13250
  gradientBackground,
@@ -13378,7 +13253,7 @@ var ThumbnailCollage = ({
13378
13253
  "fallback"
13379
13254
  )
13380
13255
  ];
13381
- return /* @__PURE__ */ jsx274(
13256
+ return /* @__PURE__ */ jsx273(
13382
13257
  StyledThumbnailCollage,
13383
13258
  {
13384
13259
  $gradientBackground: gradientBackground,
@@ -13390,26 +13265,26 @@ var ThumbnailCollage = ({
13390
13265
  };
13391
13266
 
13392
13267
  // src/components/WistiaLogo/WistiaLogo.tsx
13393
- import styled77, { css as css40 } from "styled-components";
13268
+ import styled75, { css as css40 } from "styled-components";
13394
13269
  import { isNotNil as isNotNil37 } from "@wistia/type-guards";
13395
- import { jsx as jsx275, jsxs as jsxs48 } from "react/jsx-runtime";
13270
+ import { jsx as jsx274, jsxs as jsxs48 } from "react/jsx-runtime";
13396
13271
  var renderBrandmark = (brandmarkColor, iconOnly) => {
13397
13272
  if (iconOnly) {
13398
- return /* @__PURE__ */ jsx275(
13273
+ return /* @__PURE__ */ jsx274(
13399
13274
  "g",
13400
13275
  {
13401
13276
  "data-testid": "ui-wistia-logo-brandmark",
13402
13277
  fill: brandmarkColor,
13403
- children: /* @__PURE__ */ jsx275("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13278
+ children: /* @__PURE__ */ jsx274("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13404
13279
  }
13405
13280
  );
13406
13281
  }
13407
- return /* @__PURE__ */ jsx275(
13282
+ return /* @__PURE__ */ jsx274(
13408
13283
  "g",
13409
13284
  {
13410
13285
  "data-testid": "ui-wistia-logo-brandmark",
13411
13286
  fill: brandmarkColor,
13412
- children: /* @__PURE__ */ jsx275("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13287
+ children: /* @__PURE__ */ jsx274("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
13413
13288
  }
13414
13289
  );
13415
13290
  };
@@ -13417,12 +13292,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
13417
13292
  if (iconOnly) {
13418
13293
  return null;
13419
13294
  }
13420
- return /* @__PURE__ */ jsx275(
13295
+ return /* @__PURE__ */ jsx274(
13421
13296
  "g",
13422
13297
  {
13423
13298
  "data-testid": "ui-wistia-logo-logotype",
13424
13299
  fill: logotypeColor,
13425
- children: /* @__PURE__ */ jsx275("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
13300
+ children: /* @__PURE__ */ jsx274("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
13426
13301
  }
13427
13302
  );
13428
13303
  };
@@ -13432,7 +13307,7 @@ var computedViewBox = (iconOnly) => {
13432
13307
  }
13433
13308
  return "0 0 144 31.47";
13434
13309
  };
13435
- var WistiaLogoComponent = styled77.svg`
13310
+ var WistiaLogoComponent = styled75.svg`
13436
13311
  height: ${({ height }) => `${height}px`};
13437
13312
 
13438
13313
  /* ensure it will always fit on mobile */
@@ -13503,38 +13378,38 @@ var WistiaLogo = ({
13503
13378
  xmlns: "http://www.w3.org/2000/svg",
13504
13379
  ...props,
13505
13380
  children: [
13506
- /* @__PURE__ */ jsx275("title", { children: title }),
13507
- isNotNil37(description) ? /* @__PURE__ */ jsx275("desc", { children: description }) : null,
13381
+ /* @__PURE__ */ jsx274("title", { children: title }),
13382
+ isNotNil37(description) ? /* @__PURE__ */ jsx274("desc", { children: description }) : null,
13508
13383
  renderBrandmark(brandmarkColor, iconOnly),
13509
13384
  renderLogotype(logotypeColor, iconOnly)
13510
13385
  ]
13511
13386
  }
13512
13387
  );
13513
- return href !== void 0 ? /* @__PURE__ */ jsx275("a", { href, children: Logo }) : Logo;
13388
+ return href !== void 0 ? /* @__PURE__ */ jsx274("a", { href, children: Logo }) : Logo;
13514
13389
  };
13515
13390
  WistiaLogo.displayName = "WistiaLogo";
13516
13391
 
13517
13392
  // src/components/List/List.tsx
13518
13393
  import { isNotNil as isNotNil38 } from "@wistia/type-guards";
13519
- import styled79, { css as css41 } from "styled-components";
13394
+ import styled77, { css as css41 } from "styled-components";
13520
13395
 
13521
13396
  // src/components/List/ListItem.tsx
13522
- import styled78 from "styled-components";
13523
- import { isNil as isNil17 } from "@wistia/type-guards";
13524
- import { jsx as jsx276 } from "react/jsx-runtime";
13525
- var ListItemComponent = styled78.li`
13397
+ import styled76 from "styled-components";
13398
+ import { isNil as isNil16 } from "@wistia/type-guards";
13399
+ import { jsx as jsx275 } from "react/jsx-runtime";
13400
+ var ListItemComponent = styled76.li`
13526
13401
  margin-bottom: var(--wui-space-02);
13527
13402
  `;
13528
13403
  var ListItem = ({ children }) => {
13529
- if (isNil17(children)) {
13404
+ if (isNil16(children)) {
13530
13405
  return null;
13531
13406
  }
13532
- return /* @__PURE__ */ jsx276(ListItemComponent, { children });
13407
+ return /* @__PURE__ */ jsx275(ListItemComponent, { children });
13533
13408
  };
13534
13409
  ListItem.displayName = "ListItem";
13535
13410
 
13536
13411
  // src/components/List/List.tsx
13537
- import { jsx as jsx277, jsxs as jsxs49 } from "react/jsx-runtime";
13412
+ import { jsx as jsx276, jsxs as jsxs49 } from "react/jsx-runtime";
13538
13413
  var spacesStyle = css41`
13539
13414
  overflow: hidden;
13540
13415
  padding-left: 0;
@@ -13593,7 +13468,7 @@ var unbulletedStyle = css41`
13593
13468
  list-style: none;
13594
13469
  padding-left: 0;
13595
13470
  `;
13596
- var ListComponent = styled79.ul`
13471
+ var ListComponent = styled77.ul`
13597
13472
  list-style-position: outside;
13598
13473
  margin: 0 0 var(--wui-space-01);
13599
13474
  padding: 0 0 0 var(--wui-space-04);
@@ -13620,7 +13495,7 @@ var ListComponent = styled79.ul`
13620
13495
  `;
13621
13496
  var renderListComponent = (listItems, variant, { ...otherProps }) => {
13622
13497
  const elementType = variant === "ordered" ? "ol" : "ul";
13623
- return /* @__PURE__ */ jsx277(
13498
+ return /* @__PURE__ */ jsx276(
13624
13499
  ListComponent,
13625
13500
  {
13626
13501
  as: elementType,
@@ -13645,7 +13520,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
13645
13520
  if (Array.isArray(item)) {
13646
13521
  return null;
13647
13522
  }
13648
- return /* @__PURE__ */ jsx277(ListItem, { children: item }, key);
13523
+ return /* @__PURE__ */ jsx276(ListItem, { children: item }, key);
13649
13524
  });
13650
13525
  return renderListComponent(items, variant, otherProps);
13651
13526
  };
@@ -13736,7 +13611,6 @@ export {
13736
13611
  Stack,
13737
13612
  SubMenu,
13738
13613
  Switch,
13739
- Tab,
13740
13614
  Table,
13741
13615
  TableBody,
13742
13616
  TableCell,
@@ -13744,6 +13618,9 @@ export {
13744
13618
  TableHead,
13745
13619
  TableRow,
13746
13620
  Tabs,
13621
+ TabsContent,
13622
+ TabsList,
13623
+ TabsTrigger,
13747
13624
  Tag,
13748
13625
  Text,
13749
13626
  Thumbnail,