@wistia/ui 0.6.7 → 0.6.8-beta.3374cdd2.9bbd4c2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.6.7
3
+ * @license @wistia/ui v0.6.8-beta.3374cdd2.9bbd4c2
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -8471,15 +8471,64 @@ var IconButton = forwardRef12(
8471
8471
  );
8472
8472
  IconButton.displayName = "IconButton";
8473
8473
 
8474
+ // src/components/Image/Image.tsx
8475
+ import styled35 from "styled-components";
8476
+ import { isNotNil as isNotNil12 } from "@wistia/type-guards";
8477
+ import { jsx as jsx196 } from "react/jsx-runtime";
8478
+ var getFillStyle2 = (fillContainer) => {
8479
+ if (fillContainer === "horizontal") {
8480
+ return "width: 100%;";
8481
+ }
8482
+ if (fillContainer === "vertical") {
8483
+ return "height: 100%;";
8484
+ }
8485
+ if (fillContainer === true) {
8486
+ return `
8487
+ width: 100%;
8488
+ height: 100%;
8489
+ `;
8490
+ }
8491
+ return void 0;
8492
+ };
8493
+ var StyledImage = styled35.img`
8494
+ border-radius: ${({ $borderRadius }) => isNotNil12($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
8495
+ ${({ $fillContainer }) => getFillStyle2($fillContainer)};
8496
+ object-fit: ${({ $objFit }) => $objFit};
8497
+ object-position: ${({ $objPosition }) => $objPosition};
8498
+ `;
8499
+ var Image = ({
8500
+ src,
8501
+ alt,
8502
+ borderRadius,
8503
+ fill: fillContainer = false,
8504
+ fit: objFit,
8505
+ loading = "lazy",
8506
+ position: objPosition,
8507
+ ...otherProps
8508
+ }) => /* @__PURE__ */ jsx196(
8509
+ StyledImage,
8510
+ {
8511
+ $borderRadius: borderRadius,
8512
+ $fillContainer: fillContainer,
8513
+ $objFit: objFit,
8514
+ $objPosition: objPosition,
8515
+ alt,
8516
+ loading,
8517
+ src,
8518
+ ...otherProps
8519
+ }
8520
+ );
8521
+ Image.displayName = "Image";
8522
+
8474
8523
  // src/components/Menu/Menu.tsx
8475
- import styled35, { css as css24, keyframes as keyframes2 } from "styled-components";
8524
+ import styled36, { css as css24, keyframes as keyframes2 } from "styled-components";
8476
8525
  import {
8477
8526
  DropdownMenu,
8478
8527
  DropdownMenuTrigger,
8479
8528
  DropdownMenuPortal,
8480
8529
  DropdownMenuContent
8481
8530
  } from "@radix-ui/react-dropdown-menu";
8482
- import { isNotNil as isNotNil12, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
8531
+ import { isNotNil as isNotNil13, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
8483
8532
  import { useMemo as useMemo7 } from "react";
8484
8533
 
8485
8534
  // src/components/Menu/MenuContext.tsx
@@ -8488,7 +8537,7 @@ var MenuContext = createContext5({ compact: false });
8488
8537
  var useMenuContext = () => useContext4(MenuContext);
8489
8538
 
8490
8539
  // src/components/Menu/Menu.tsx
8491
- import { jsx as jsx196, jsxs as jsxs21 } from "react/jsx-runtime";
8540
+ import { jsx as jsx197, jsxs as jsxs21 } from "react/jsx-runtime";
8492
8541
  var open = keyframes2`
8493
8542
  from {
8494
8543
  opacity: 0;
@@ -8573,7 +8622,7 @@ var menuContentCss = css24`
8573
8622
  margin: var(--menu-divider-margin) 0;
8574
8623
  }
8575
8624
  `;
8576
- var MenuContent = styled35(DropdownMenuContent)`
8625
+ var MenuContent = styled36(DropdownMenuContent)`
8577
8626
  ${menuContentCss}
8578
8627
  `;
8579
8628
  var Menu = ({
@@ -8591,7 +8640,7 @@ var Menu = ({
8591
8640
  }) => {
8592
8641
  const contextValue = useMemo7(() => ({ compact }), [compact]);
8593
8642
  let controlProps = {
8594
- ...isNotNil12(onOpenChange) && isNotNil12(isOpen) ? { open: isOpen, onOpenChange } : {}
8643
+ ...isNotNil13(onOpenChange) && isNotNil13(isOpen) ? { open: isOpen, onOpenChange } : {}
8595
8644
  };
8596
8645
  if (disabled) {
8597
8646
  controlProps = {
@@ -8599,24 +8648,24 @@ var Menu = ({
8599
8648
  onOpenChange: () => null
8600
8649
  };
8601
8650
  }
8602
- return /* @__PURE__ */ jsx196(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs21(
8651
+ return /* @__PURE__ */ jsx197(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs21(
8603
8652
  DropdownMenu,
8604
8653
  {
8605
8654
  modal: false,
8606
8655
  ...controlProps,
8607
8656
  children: [
8608
- /* @__PURE__ */ jsx196(DropdownMenuTrigger, { asChild: true, children: isNotUndefined8(trigger) ? trigger : /* @__PURE__ */ jsx196(
8657
+ /* @__PURE__ */ jsx197(DropdownMenuTrigger, { asChild: true, children: isNotUndefined8(trigger) ? trigger : /* @__PURE__ */ jsx197(
8609
8658
  Button,
8610
8659
  {
8611
8660
  "aria-expanded": isOpen,
8612
8661
  disabled,
8613
8662
  forceState: isOpen ? "active" : void 0,
8614
- rightIcon: /* @__PURE__ */ jsx196(Icon, { type: "caret-down" }),
8663
+ rightIcon: /* @__PURE__ */ jsx197(Icon, { type: "caret-down" }),
8615
8664
  ...triggerProps,
8616
8665
  children: label
8617
8666
  }
8618
8667
  ) }),
8619
- /* @__PURE__ */ jsx196(DropdownMenuPortal, { children: /* @__PURE__ */ jsx196(
8668
+ /* @__PURE__ */ jsx197(DropdownMenuPortal, { children: /* @__PURE__ */ jsx197(
8620
8669
  MenuContent,
8621
8670
  {
8622
8671
  ...props,
@@ -8636,19 +8685,19 @@ var Menu = ({
8636
8685
  Menu.displayName = "Menu";
8637
8686
 
8638
8687
  // src/components/Menu/MenuLabel.tsx
8639
- import styled36 from "styled-components";
8688
+ import styled37 from "styled-components";
8640
8689
  import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
8641
- import { jsx as jsx197 } from "react/jsx-runtime";
8642
- var StyledMenuLabel = styled36(DropdownMenuLabel)`
8690
+ import { jsx as jsx198 } from "react/jsx-runtime";
8691
+ var StyledMenuLabel = styled37(DropdownMenuLabel)`
8643
8692
  padding: var(--wui-space-02);
8644
8693
  `;
8645
8694
  var MenuLabel = ({ children, ...props }) => {
8646
- return /* @__PURE__ */ jsx197(
8695
+ return /* @__PURE__ */ jsx198(
8647
8696
  StyledMenuLabel,
8648
8697
  {
8649
8698
  asChild: true,
8650
8699
  ...props,
8651
- children: /* @__PURE__ */ jsx197(
8700
+ children: /* @__PURE__ */ jsx198(
8652
8701
  Heading,
8653
8702
  {
8654
8703
  renderAs: "span",
@@ -8664,7 +8713,7 @@ MenuLabel.displayName = "MenuLabel";
8664
8713
 
8665
8714
  // src/components/Menu/SubMenu.tsx
8666
8715
  import { useState as useState8 } from "react";
8667
- import styled39 from "styled-components";
8716
+ import styled40 from "styled-components";
8668
8717
  import {
8669
8718
  DropdownMenuPortal as DropdownMenuPortal2,
8670
8719
  DropdownMenuSub,
@@ -8673,14 +8722,14 @@ import {
8673
8722
  DropdownMenuSubTrigger,
8674
8723
  DropdownMenuItem
8675
8724
  } from "@radix-ui/react-dropdown-menu";
8676
- import { isNotNil as isNotNil14 } from "@wistia/type-guards";
8725
+ import { isNotNil as isNotNil15 } from "@wistia/type-guards";
8677
8726
 
8678
8727
  // src/components/Menu/MenuItemButton.tsx
8679
8728
  import { forwardRef as forwardRef13 } from "react";
8680
- import styled37 from "styled-components";
8681
- import { isNotNil as isNotNil13, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
8682
- import { jsx as jsx198, jsxs as jsxs22 } from "react/jsx-runtime";
8683
- var StyledButton3 = styled37(Button)`
8729
+ import styled38 from "styled-components";
8730
+ import { isNotNil as isNotNil14, isNotUndefined as isNotUndefined9 } from "@wistia/type-guards";
8731
+ import { jsx as jsx199, jsxs as jsxs22 } from "react/jsx-runtime";
8732
+ var StyledButton3 = styled38(Button)`
8684
8733
  ${({ colorScheme }) => getColorScheme(colorScheme)};
8685
8734
 
8686
8735
  display: flex;
@@ -8719,7 +8768,7 @@ var StyledButton3 = styled37(Button)`
8719
8768
  padding-left: var(--wui-space-04);
8720
8769
  }
8721
8770
  `;
8722
- var StyledLeftIconContainer = styled37.div`
8771
+ var StyledLeftIconContainer = styled38.div`
8723
8772
  height: var(--menu-item-left-icon-size);
8724
8773
  width: var(--menu-item-left-icon-size);
8725
8774
 
@@ -8730,7 +8779,7 @@ var StyledLeftIconContainer = styled37.div`
8730
8779
  }
8731
8780
  }
8732
8781
  `;
8733
- var StyledRightIconContainer = styled37.div`
8782
+ var StyledRightIconContainer = styled38.div`
8734
8783
  height: var(--menu-item-right-icon-size);
8735
8784
  width: var(--menu-item-right-icon-size);
8736
8785
 
@@ -8741,13 +8790,13 @@ var StyledRightIconContainer = styled37.div`
8741
8790
  }
8742
8791
  }
8743
8792
  `;
8744
- var StyledLabelAndDescriptionContainer = styled37.div`
8793
+ var StyledLabelAndDescriptionContainer = styled38.div`
8745
8794
  display: flex;
8746
8795
  flex-direction: column;
8747
8796
  gap: var(--menu-label-description-gap);
8748
8797
  flex-basis: 100%;
8749
8798
  `;
8750
- var StyledBadgeContainer = styled37.div`
8799
+ var StyledBadgeContainer = styled38.div`
8751
8800
  align-self: start;
8752
8801
  justify-self: end;
8753
8802
  font-size: var(--wui-typography-label-4-size);
@@ -8762,7 +8811,7 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
8762
8811
  colorScheme = "error";
8763
8812
  }
8764
8813
  if (appearance === "gated") {
8765
- badge = /* @__PURE__ */ jsx198(
8814
+ badge = /* @__PURE__ */ jsx199(
8766
8815
  Icon,
8767
8816
  {
8768
8817
  colorScheme: "purple",
@@ -8784,10 +8833,10 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
8784
8833
  fullWidth: true,
8785
8834
  unstyled: true,
8786
8835
  children: [
8787
- props.leftIcon ? /* @__PURE__ */ jsx198(StyledLeftIconContainer, { children: props.leftIcon }) : null,
8788
- /* @__PURE__ */ jsx198(StyledLabelAndDescriptionContainer, { children }),
8789
- isNotNil13(badge) || isNotNil13(command) ? /* @__PURE__ */ jsx198(StyledBadgeContainer, { children: badge ?? command }) : null,
8790
- props.rightIcon ? /* @__PURE__ */ jsx198(StyledRightIconContainer, { children: props.rightIcon }) : null
8836
+ props.leftIcon ? /* @__PURE__ */ jsx199(StyledLeftIconContainer, { children: props.leftIcon }) : null,
8837
+ /* @__PURE__ */ jsx199(StyledLabelAndDescriptionContainer, { children }),
8838
+ isNotNil14(badge) || isNotNil14(command) ? /* @__PURE__ */ jsx199(StyledBadgeContainer, { children: badge ?? command }) : null,
8839
+ props.rightIcon ? /* @__PURE__ */ jsx199(StyledRightIconContainer, { children: props.rightIcon }) : null
8791
8840
  ]
8792
8841
  }
8793
8842
  );
@@ -8795,33 +8844,33 @@ var MenuItemButton = forwardRef13(({ children, appearance, command, icon, ...pro
8795
8844
  MenuItemButton.displayName = "MenuItemButton";
8796
8845
 
8797
8846
  // src/components/Menu/MenuItemLabelDescription.tsx
8798
- import styled38 from "styled-components";
8799
- import { jsx as jsx199 } from "react/jsx-runtime";
8800
- var StyledMenuItemLabel = styled38.span``;
8801
- var StyledMenuItemDescription = styled38(Text).attrs({
8847
+ import styled39 from "styled-components";
8848
+ import { jsx as jsx200 } from "react/jsx-runtime";
8849
+ var StyledMenuItemLabel = styled39.span``;
8850
+ var StyledMenuItemDescription = styled39(Text).attrs({
8802
8851
  variant: "body4",
8803
8852
  prominence: "secondary"
8804
8853
  })``;
8805
8854
  var MenuItemLabel = ({ children }) => {
8806
- return /* @__PURE__ */ jsx199(StyledMenuItemLabel, { children });
8855
+ return /* @__PURE__ */ jsx200(StyledMenuItemLabel, { children });
8807
8856
  };
8808
8857
  var MenuItemDescription = ({ children }) => {
8809
- return /* @__PURE__ */ jsx199(StyledMenuItemDescription, { children });
8858
+ return /* @__PURE__ */ jsx200(StyledMenuItemDescription, { children });
8810
8859
  };
8811
8860
 
8812
8861
  // src/components/Menu/SubMenu.tsx
8813
- import { jsx as jsx200, jsxs as jsxs23 } from "react/jsx-runtime";
8814
- var SubMenuContent = styled39(DropdownMenuSubContent)`
8862
+ import { jsx as jsx201, jsxs as jsxs23 } from "react/jsx-runtime";
8863
+ var SubMenuContent = styled40(DropdownMenuSubContent)`
8815
8864
  ${menuContentCss}
8816
8865
 
8817
8866
  ${mq.smAndDown} {
8818
8867
  transform: translateX(-100%) !important;
8819
8868
  }
8820
8869
  `;
8821
- var StyledMobileSubMenuItems = styled39.div`
8870
+ var StyledMobileSubMenuItems = styled40.div`
8822
8871
  margin-left: var(--wui-space-04);
8823
8872
  `;
8824
- var StyledSubTrigger = styled39(DropdownMenuSubTrigger)`
8873
+ var StyledSubTrigger = styled40(DropdownMenuSubTrigger)`
8825
8874
  outline: none;
8826
8875
 
8827
8876
  &[data-state='open'],
@@ -8832,11 +8881,11 @@ var StyledSubTrigger = styled39(DropdownMenuSubTrigger)`
8832
8881
  var SubMenuTrigger = (props) => {
8833
8882
  const { isSmAndUp } = useMq();
8834
8883
  const Trigger5 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
8835
- return /* @__PURE__ */ jsx200(Trigger5, { asChild: true, children: /* @__PURE__ */ jsx200(
8884
+ return /* @__PURE__ */ jsx201(Trigger5, { asChild: true, children: /* @__PURE__ */ jsx201(
8836
8885
  MenuItemButton,
8837
8886
  {
8838
8887
  ...props,
8839
- rightIcon: /* @__PURE__ */ jsx200(Icon, { type: "caret-right" })
8888
+ rightIcon: /* @__PURE__ */ jsx201(Icon, { type: "caret-right" })
8840
8889
  }
8841
8890
  ) });
8842
8891
  };
@@ -8852,10 +8901,10 @@ var SubMenu = ({
8852
8901
  const { compact } = useMenuContext();
8853
8902
  return isSmAndUp ? /* @__PURE__ */ jsxs23(DropdownMenuSub, { onOpenChange, children: [
8854
8903
  /* @__PURE__ */ jsxs23(SubMenuTrigger, { ...props, children: [
8855
- /* @__PURE__ */ jsx200(MenuItemLabel, { children: label }),
8856
- isNotNil14(description) ? /* @__PURE__ */ jsx200(MenuItemDescription, { children: description }) : null
8904
+ /* @__PURE__ */ jsx201(MenuItemLabel, { children: label }),
8905
+ isNotNil15(description) ? /* @__PURE__ */ jsx201(MenuItemDescription, { children: description }) : null
8857
8906
  ] }),
8858
- /* @__PURE__ */ jsx200(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx200(SubMenuContent, { $compact: compact, children }) })
8907
+ /* @__PURE__ */ jsx201(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx201(SubMenuContent, { $compact: compact, children }) })
8859
8908
  ] }) : /* @__PURE__ */ jsxs23(DropdownMenuGroup, { children: [
8860
8909
  /* @__PURE__ */ jsxs23(
8861
8910
  SubMenuTrigger,
@@ -8866,12 +8915,12 @@ var SubMenu = ({
8866
8915
  setIsExpanded((prev) => !prev);
8867
8916
  },
8868
8917
  children: [
8869
- /* @__PURE__ */ jsx200(MenuItemLabel, { children: label }),
8870
- /* @__PURE__ */ jsx200(MenuItemDescription, { children: description })
8918
+ /* @__PURE__ */ jsx201(MenuItemLabel, { children: label }),
8919
+ /* @__PURE__ */ jsx201(MenuItemDescription, { children: description })
8871
8920
  ]
8872
8921
  }
8873
8922
  ),
8874
- /* @__PURE__ */ jsx200(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
8923
+ /* @__PURE__ */ jsx201(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
8875
8924
  ] });
8876
8925
  };
8877
8926
  SubMenu.displayName = "SubMenu";
@@ -8879,15 +8928,15 @@ SubMenu.displayName = "SubMenu";
8879
8928
  // src/components/Menu/MenuItem.tsx
8880
8929
  import { forwardRef as forwardRef14 } from "react";
8881
8930
  import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
8882
- import { jsx as jsx201 } from "react/jsx-runtime";
8931
+ import { jsx as jsx202 } from "react/jsx-runtime";
8883
8932
  var MenuItem = forwardRef14(
8884
8933
  ({ onSelect = () => null, ...props }, ref) => {
8885
- return /* @__PURE__ */ jsx201(
8934
+ return /* @__PURE__ */ jsx202(
8886
8935
  DropdownMenuItem2,
8887
8936
  {
8888
8937
  asChild: true,
8889
8938
  onSelect,
8890
- children: /* @__PURE__ */ jsx201(
8939
+ children: /* @__PURE__ */ jsx202(
8891
8940
  MenuItemButton,
8892
8941
  {
8893
8942
  ...props,
@@ -8905,10 +8954,10 @@ MenuItem.displayName = "MenuItem";
8905
8954
  import {
8906
8955
  DropdownMenuRadioGroup
8907
8956
  } from "@radix-ui/react-dropdown-menu";
8908
- import { jsx as jsx202, jsxs as jsxs24 } from "react/jsx-runtime";
8957
+ import { jsx as jsx203, jsxs as jsxs24 } from "react/jsx-runtime";
8909
8958
  var MenuRadioGroup = ({ children, label, ...props }) => {
8910
8959
  return /* @__PURE__ */ jsxs24(DropdownMenuRadioGroup, { ...props, children: [
8911
- /* @__PURE__ */ jsx202(MenuLabel, { children: label }),
8960
+ /* @__PURE__ */ jsx203(MenuLabel, { children: label }),
8912
8961
  children
8913
8962
  ] });
8914
8963
  };
@@ -8919,11 +8968,11 @@ import {
8919
8968
  DropdownMenuItemIndicator,
8920
8969
  DropdownMenuRadioItem
8921
8970
  } from "@radix-ui/react-dropdown-menu";
8922
- import { jsx as jsx203 } from "react/jsx-runtime";
8971
+ import { jsx as jsx204 } from "react/jsx-runtime";
8923
8972
  var RadioMenuItem = ({
8924
8973
  onSelect,
8925
8974
  value,
8926
- indicator = /* @__PURE__ */ jsx203(
8975
+ indicator = /* @__PURE__ */ jsx204(
8927
8976
  Icon,
8928
8977
  {
8929
8978
  size: "sm",
@@ -8933,17 +8982,17 @@ var RadioMenuItem = ({
8933
8982
  ...props
8934
8983
  }) => {
8935
8984
  const extraProps = onSelect ? { onSelect } : {};
8936
- return /* @__PURE__ */ jsx203(
8985
+ return /* @__PURE__ */ jsx204(
8937
8986
  DropdownMenuRadioItem,
8938
8987
  {
8939
8988
  ...extraProps,
8940
8989
  asChild: true,
8941
8990
  value,
8942
- children: /* @__PURE__ */ jsx203(
8991
+ children: /* @__PURE__ */ jsx204(
8943
8992
  MenuItemButton,
8944
8993
  {
8945
8994
  ...props,
8946
- rightIcon: /* @__PURE__ */ jsx203(DropdownMenuItemIndicator, { children: indicator })
8995
+ rightIcon: /* @__PURE__ */ jsx204(DropdownMenuItemIndicator, { children: indicator })
8947
8996
  }
8948
8997
  )
8949
8998
  }
@@ -8955,7 +9004,7 @@ RadioMenuItem.displayName = "RadioMenuItem";
8955
9004
  import {
8956
9005
  DropdownMenuCheckboxItem
8957
9006
  } from "@radix-ui/react-dropdown-menu";
8958
- import { jsx as jsx204, jsxs as jsxs25 } from "react/jsx-runtime";
9007
+ import { jsx as jsx205, jsxs as jsxs25 } from "react/jsx-runtime";
8959
9008
  var CheckboxIndicator2 = ({ checked, ...props }) => {
8960
9009
  return checked ? /* @__PURE__ */ jsxs25(
8961
9010
  "svg",
@@ -8967,14 +9016,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
8967
9016
  width: "24",
8968
9017
  xmlns: "http://www.w3.org/2000/svg",
8969
9018
  children: [
8970
- /* @__PURE__ */ jsx204(
9019
+ /* @__PURE__ */ jsx205(
8971
9020
  "path",
8972
9021
  {
8973
9022
  d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
8974
9023
  fill: "#2949e5"
8975
9024
  }
8976
9025
  ),
8977
- /* @__PURE__ */ jsx204(
9026
+ /* @__PURE__ */ jsx205(
8978
9027
  "path",
8979
9028
  {
8980
9029
  d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
@@ -8993,14 +9042,14 @@ var CheckboxIndicator2 = ({ checked, ...props }) => {
8993
9042
  width: "24",
8994
9043
  xmlns: "http://www.w3.org/2000/svg",
8995
9044
  children: [
8996
- /* @__PURE__ */ jsx204(
9045
+ /* @__PURE__ */ jsx205(
8997
9046
  "path",
8998
9047
  {
8999
9048
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
9000
9049
  fill: "#fcfcfd"
9001
9050
  }
9002
9051
  ),
9003
- /* @__PURE__ */ jsx204(
9052
+ /* @__PURE__ */ jsx205(
9004
9053
  "path",
9005
9054
  {
9006
9055
  d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
@@ -9017,18 +9066,18 @@ var CheckboxMenuItem = ({
9017
9066
  onCheckedChange,
9018
9067
  ...props
9019
9068
  }) => {
9020
- return /* @__PURE__ */ jsx204(
9069
+ return /* @__PURE__ */ jsx205(
9021
9070
  DropdownMenuCheckboxItem,
9022
9071
  {
9023
9072
  asChild: true,
9024
9073
  checked,
9025
9074
  onCheckedChange,
9026
9075
  onSelect,
9027
- children: /* @__PURE__ */ jsx204(
9076
+ children: /* @__PURE__ */ jsx205(
9028
9077
  MenuItemButton,
9029
9078
  {
9030
9079
  ...props,
9031
- leftIcon: /* @__PURE__ */ jsx204(CheckboxIndicator2, { checked })
9080
+ leftIcon: /* @__PURE__ */ jsx205(CheckboxIndicator2, { checked })
9032
9081
  }
9033
9082
  )
9034
9083
  }
@@ -9038,36 +9087,36 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
9038
9087
 
9039
9088
  // src/components/Modal/Modal.tsx
9040
9089
  import { forwardRef as forwardRef17 } from "react";
9041
- import styled44 from "styled-components";
9090
+ import styled45 from "styled-components";
9042
9091
  import { Root as DialogRoot, Portal as DialogPortal } from "@radix-ui/react-dialog";
9043
- import { isNotNil as isNotNil16 } from "@wistia/type-guards";
9092
+ import { isNotNil as isNotNil17 } from "@wistia/type-guards";
9044
9093
 
9045
9094
  // src/components/Modal/ModalHeader.tsx
9046
- import styled41 from "styled-components";
9095
+ import styled42 from "styled-components";
9047
9096
  import { Title as DialogTitle } from "@radix-ui/react-dialog";
9048
9097
 
9049
9098
  // src/components/Modal/ModalCloseButton.tsx
9050
- import styled40 from "styled-components";
9099
+ import styled41 from "styled-components";
9051
9100
  import { Close as DialogClose } from "@radix-ui/react-dialog";
9052
- import { jsx as jsx205 } from "react/jsx-runtime";
9053
- var CloseButton = styled40(DialogClose)`
9101
+ import { jsx as jsx206 } from "react/jsx-runtime";
9102
+ var CloseButton = styled41(DialogClose)`
9054
9103
  align-self: start;
9055
9104
  `;
9056
9105
  var ModalCloseButton = () => {
9057
- return /* @__PURE__ */ jsx205(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx205(
9106
+ return /* @__PURE__ */ jsx206(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx206(
9058
9107
  IconButton,
9059
9108
  {
9060
9109
  label: "Dismiss modal",
9061
9110
  size: "sm",
9062
9111
  variant: "ghost",
9063
- children: /* @__PURE__ */ jsx205(Icon, { type: "close" })
9112
+ children: /* @__PURE__ */ jsx206(Icon, { type: "close" })
9064
9113
  }
9065
9114
  ) });
9066
9115
  };
9067
9116
 
9068
9117
  // src/components/Modal/ModalHeader.tsx
9069
- import { jsx as jsx206, jsxs as jsxs26 } from "react/jsx-runtime";
9070
- var Header = styled41.header`
9118
+ import { jsx as jsx207, jsxs as jsxs26 } from "react/jsx-runtime";
9119
+ var Header = styled42.header`
9071
9120
  display: flex;
9072
9121
  order: 1;
9073
9122
  gap: var(--wui-space-01);
@@ -9079,7 +9128,7 @@ var Header = styled41.header`
9079
9128
  margin-top: 0;
9080
9129
  }
9081
9130
  `;
9082
- var Title = styled41(DialogTitle)`
9131
+ var Title = styled42(DialogTitle)`
9083
9132
  font-family: var(--wui-typography-heading-2-family);
9084
9133
  line-height: var(--wui-typography-heading-2-line-height);
9085
9134
  font-size: var(--wui-typography-heading-2-size);
@@ -9092,19 +9141,19 @@ var ModalHeader = ({
9092
9141
  }) => {
9093
9142
  const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
9094
9143
  return /* @__PURE__ */ jsxs26(Header, { children: [
9095
- /* @__PURE__ */ jsx206(TitleWrapper, { children: title }),
9096
- hideCloseButton ? null : /* @__PURE__ */ jsx206(ModalCloseButton, {})
9144
+ /* @__PURE__ */ jsx207(TitleWrapper, { children: title }),
9145
+ hideCloseButton ? null : /* @__PURE__ */ jsx207(ModalCloseButton, {})
9097
9146
  ] });
9098
9147
  };
9099
9148
 
9100
9149
  // src/components/Modal/ModalContent.tsx
9101
9150
  import { forwardRef as forwardRef15 } from "react";
9102
- import styled42 from "styled-components";
9151
+ import styled43 from "styled-components";
9103
9152
  import { Content as DialogContent } from "@radix-ui/react-dialog";
9104
9153
 
9105
9154
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
9106
9155
  import { useRef as useRef8, useEffect as useEffect4 } from "react";
9107
- import { isNotNil as isNotNil15 } from "@wistia/type-guards";
9156
+ import { isNotNil as isNotNil16 } from "@wistia/type-guards";
9108
9157
  var useFocusRestore = () => {
9109
9158
  const previouslyFocusedRef = useRef8(null);
9110
9159
  useEffect4(() => {
@@ -9112,7 +9161,7 @@ var useFocusRestore = () => {
9112
9161
  }, []);
9113
9162
  useEffect4(() => {
9114
9163
  return () => {
9115
- if (isNotNil15(previouslyFocusedRef.current)) {
9164
+ if (isNotNil16(previouslyFocusedRef.current)) {
9116
9165
  setTimeout(() => {
9117
9166
  previouslyFocusedRef.current?.focus();
9118
9167
  }, 0);
@@ -9122,8 +9171,8 @@ var useFocusRestore = () => {
9122
9171
  };
9123
9172
 
9124
9173
  // src/components/Modal/ModalContent.tsx
9125
- import { jsx as jsx207 } from "react/jsx-runtime";
9126
- var StyledModalContent = styled42(DialogContent)`
9174
+ import { jsx as jsx208 } from "react/jsx-runtime";
9175
+ var StyledModalContent = styled43(DialogContent)`
9127
9176
  background-color: var(--wui-color-bg-app);
9128
9177
  box-sizing: border-box;
9129
9178
  display: flex;
@@ -9167,7 +9216,7 @@ var StyledModalContent = styled42(DialogContent)`
9167
9216
  var ModalContent = forwardRef15(
9168
9217
  ({ fullHeight, width, children, ...otherProps }, ref) => {
9169
9218
  useFocusRestore();
9170
- return /* @__PURE__ */ jsx207(
9219
+ return /* @__PURE__ */ jsx208(
9171
9220
  StyledModalContent,
9172
9221
  {
9173
9222
  ref,
@@ -9183,8 +9232,8 @@ var ModalContent = forwardRef15(
9183
9232
 
9184
9233
  // src/private/components/Backdrop/Backdrop.tsx
9185
9234
  import { forwardRef as forwardRef16 } from "react";
9186
- import styled43 from "styled-components";
9187
- import { jsx as jsx208 } from "react/jsx-runtime";
9235
+ import styled44 from "styled-components";
9236
+ import { jsx as jsx209 } from "react/jsx-runtime";
9188
9237
  var backdropAnimationDuration = 150;
9189
9238
  var alignVerticalMap = {
9190
9239
  stretch: "normal",
@@ -9197,7 +9246,7 @@ var alignHorizontalMap = {
9197
9246
  center: "center",
9198
9247
  right: "end"
9199
9248
  };
9200
- var BackdropComponent = styled43.div`
9249
+ var BackdropComponent = styled44.div`
9201
9250
  align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
9202
9251
  animation-name: backdropShow;
9203
9252
  animation-duration: ${() => `${backdropAnimationDuration}ms`};
@@ -9221,7 +9270,7 @@ var BackdropComponent = styled43.div`
9221
9270
  }
9222
9271
  `;
9223
9272
  var Backdrop = forwardRef16(
9224
- ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx208(
9273
+ ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ jsx209(
9225
9274
  BackdropComponent,
9226
9275
  {
9227
9276
  ref,
@@ -9235,9 +9284,9 @@ var Backdrop = forwardRef16(
9235
9284
  Backdrop.displayName = "Backdrop";
9236
9285
 
9237
9286
  // src/components/Modal/Modal.tsx
9238
- import { jsx as jsx209, jsxs as jsxs27 } from "react/jsx-runtime";
9287
+ import { jsx as jsx210, jsxs as jsxs27 } from "react/jsx-runtime";
9239
9288
  var DEFAULT_MODAL_WIDTH = "532px";
9240
- var ModalBody = styled44.div`
9289
+ var ModalBody = styled45.div`
9241
9290
  flex-direction: column;
9242
9291
  display: flex;
9243
9292
  order: 2;
@@ -9255,24 +9304,24 @@ var Modal = forwardRef17(
9255
9304
  width = DEFAULT_MODAL_WIDTH,
9256
9305
  ...props
9257
9306
  }, ref) => {
9258
- return /* @__PURE__ */ jsx209(
9307
+ return /* @__PURE__ */ jsx210(
9259
9308
  DialogRoot,
9260
9309
  {
9261
9310
  onOpenChange: (open2) => {
9262
- if (!open2 && isNotNil16(onRequestClose)) {
9311
+ if (!open2 && isNotNil17(onRequestClose)) {
9263
9312
  onRequestClose();
9264
9313
  }
9265
9314
  },
9266
9315
  open: isOpen,
9267
9316
  children: /* @__PURE__ */ jsxs27(DialogPortal, { children: [
9268
- /* @__PURE__ */ jsx209(Backdrop, {}),
9317
+ /* @__PURE__ */ jsx210(Backdrop, {}),
9269
9318
  /* @__PURE__ */ jsxs27(
9270
9319
  ModalContent,
9271
9320
  {
9272
9321
  ref,
9273
9322
  fullHeight,
9274
9323
  onOpenAutoFocus: (event) => {
9275
- if (isNotNil16(initialFocusRef) && initialFocusRef.current) {
9324
+ if (isNotNil17(initialFocusRef) && initialFocusRef.current) {
9276
9325
  event.preventDefault();
9277
9326
  requestAnimationFrame(() => {
9278
9327
  initialFocusRef.current?.focus();
@@ -9282,8 +9331,8 @@ var Modal = forwardRef17(
9282
9331
  width,
9283
9332
  ...props,
9284
9333
  children: [
9285
- /* @__PURE__ */ jsx209(ModalBody, { children }),
9286
- /* @__PURE__ */ jsx209(
9334
+ /* @__PURE__ */ jsx210(ModalBody, { children }),
9335
+ /* @__PURE__ */ jsx210(
9287
9336
  ModalHeader,
9288
9337
  {
9289
9338
  hideCloseButton,
@@ -9303,17 +9352,17 @@ Modal.displayName = "Modal";
9303
9352
 
9304
9353
  // src/components/Popover/Popover.tsx
9305
9354
  import { Root as Root3, Trigger as Trigger3, Portal as Portal2, Content as Content3, Close, Arrow as Arrow2 } from "@radix-ui/react-popover";
9306
- import styled45 from "styled-components";
9355
+ import styled46 from "styled-components";
9307
9356
 
9308
9357
  // src/private/helpers/getControls/getControlProps.tsx
9309
- import { isNotNil as isNotNil17 } from "@wistia/type-guards";
9358
+ import { isNotNil as isNotNil18 } from "@wistia/type-guards";
9310
9359
  var getControlProps = (isOpen, onOpenChange) => {
9311
- return isNotNil17(onOpenChange) && isNotNil17(isOpen) ? { open: isOpen, onOpenChange } : {};
9360
+ return isNotNil18(onOpenChange) && isNotNil18(isOpen) ? { open: isOpen, onOpenChange } : {};
9312
9361
  };
9313
9362
 
9314
9363
  // src/components/Popover/Popover.tsx
9315
- import { jsx as jsx210, jsxs as jsxs28 } from "react/jsx-runtime";
9316
- var StyledContent2 = styled45(Content3)`
9364
+ import { jsx as jsx211, jsxs as jsxs28 } from "react/jsx-runtime";
9365
+ var StyledContent2 = styled46(Content3)`
9317
9366
  border-radius: var(--wui-border-radius-02);
9318
9367
  padding: var(--wui-space-04);
9319
9368
  max-width: 320px;
@@ -9327,7 +9376,7 @@ var StyledContent2 = styled45(Content3)`
9327
9376
  right: var(--wui-space-02);
9328
9377
  }
9329
9378
  `;
9330
- var StyledArrow = styled45(Arrow2)`
9379
+ var StyledArrow = styled46(Arrow2)`
9331
9380
  fill: white;
9332
9381
  display: none;
9333
9382
  `;
@@ -9340,24 +9389,24 @@ var Popover = ({
9340
9389
  ...props
9341
9390
  }) => {
9342
9391
  return /* @__PURE__ */ jsxs28(Root3, { ...getControlProps(isOpen, onOpenChange), children: [
9343
- /* @__PURE__ */ jsx210(Trigger3, { asChild: true, children: trigger }),
9344
- /* @__PURE__ */ jsx210(Portal2, { children: /* @__PURE__ */ jsxs28(
9392
+ /* @__PURE__ */ jsx211(Trigger3, { asChild: true, children: trigger }),
9393
+ /* @__PURE__ */ jsx211(Portal2, { children: /* @__PURE__ */ jsxs28(
9345
9394
  StyledContent2,
9346
9395
  {
9347
9396
  sideOffset: 5,
9348
9397
  ...props,
9349
9398
  children: [
9350
- /* @__PURE__ */ jsx210(StyledArrow, {}),
9351
- !hideCloseButton && /* @__PURE__ */ jsx210(Close, { asChild: true, children: /* @__PURE__ */ jsx210(
9399
+ /* @__PURE__ */ jsx211(StyledArrow, {}),
9400
+ !hideCloseButton && /* @__PURE__ */ jsx211(Close, { asChild: true, children: /* @__PURE__ */ jsx211(
9352
9401
  IconButton,
9353
9402
  {
9354
9403
  "data-wui-popover-close": true,
9355
9404
  label: "Close",
9356
9405
  variant: "ghost",
9357
- children: /* @__PURE__ */ jsx210(Icon, { type: "close" })
9406
+ children: /* @__PURE__ */ jsx211(Icon, { type: "close" })
9358
9407
  }
9359
9408
  ) }),
9360
- /* @__PURE__ */ jsx210("div", { children })
9409
+ /* @__PURE__ */ jsx211("div", { children })
9361
9410
  ]
9362
9411
  }
9363
9412
  ) })
@@ -9367,15 +9416,15 @@ Popover.displayName = "Popover";
9367
9416
 
9368
9417
  // src/components/Radio/Radio.tsx
9369
9418
  import { forwardRef as forwardRef18, useId as useId3 } from "react";
9370
- import styled46, { css as css25 } from "styled-components";
9419
+ import styled47, { css as css25 } from "styled-components";
9371
9420
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
9372
- import { jsx as jsx211, jsxs as jsxs29 } from "react/jsx-runtime";
9373
- var StyledLabelWrapper2 = styled46.div`
9421
+ import { jsx as jsx212, jsxs as jsxs29 } from "react/jsx-runtime";
9422
+ var StyledLabelWrapper2 = styled47.div`
9374
9423
  display: flex;
9375
9424
  flex-direction: column;
9376
9425
  padding-left: var(--wui-space-02);
9377
9426
  `;
9378
- var StyledRadio = styled46.input`
9427
+ var StyledRadio = styled47.input`
9379
9428
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
9380
9429
  appearance: none;
9381
9430
  margin: 0;
@@ -9417,7 +9466,7 @@ var defaultHoverStyle = css25`
9417
9466
  /* TODO Lamp to design hover state */
9418
9467
  cursor: pointer;
9419
9468
  `;
9420
- var StyledRadioWrapper = styled46.div`
9469
+ var StyledRadioWrapper = styled47.div`
9421
9470
  align-items: baseline;
9422
9471
  border: 1px solid transparent;
9423
9472
  border-radius: 4px;
@@ -9461,7 +9510,7 @@ var Radio = forwardRef18(
9461
9510
  "aria-invalid": otherProps["aria-invalid"],
9462
9511
  disabled,
9463
9512
  children: [
9464
- /* @__PURE__ */ jsx211(
9513
+ /* @__PURE__ */ jsx212(
9465
9514
  StyledRadio,
9466
9515
  {
9467
9516
  ref,
@@ -9477,7 +9526,7 @@ var Radio = forwardRef18(
9477
9526
  }
9478
9527
  ),
9479
9528
  /* @__PURE__ */ jsxs29(StyledLabelWrapper2, { children: [
9480
- /* @__PURE__ */ jsx211(
9529
+ /* @__PURE__ */ jsx212(
9481
9530
  Label,
9482
9531
  {
9483
9532
  disabled,
@@ -9486,7 +9535,7 @@ var Radio = forwardRef18(
9486
9535
  children: label
9487
9536
  }
9488
9537
  ),
9489
- /* @__PURE__ */ jsx211(LabelDescription, { children: description })
9538
+ /* @__PURE__ */ jsx212(LabelDescription, { children: description })
9490
9539
  ] })
9491
9540
  ]
9492
9541
  }
@@ -9497,13 +9546,13 @@ Radio.displayName = "Radio";
9497
9546
 
9498
9547
  // src/components/SegmentedControl/SegmentedControl.tsx
9499
9548
  import { forwardRef as forwardRef19 } from "react";
9500
- import styled48, { css as css26 } from "styled-components";
9549
+ import styled49, { css as css26 } from "styled-components";
9501
9550
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
9502
9551
  import { isNil as isNil13 } from "@wistia/type-guards";
9503
9552
 
9504
9553
  // src/components/SegmentedControl/useSelectedItemMeasurements.tsx
9505
9554
  import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState9 } from "react";
9506
- import { jsx as jsx212 } from "react/jsx-runtime";
9555
+ import { jsx as jsx213 } from "react/jsx-runtime";
9507
9556
  var SelectedItemMeasurementsContext = createContext6(
9508
9557
  null
9509
9558
  );
@@ -9518,7 +9567,7 @@ var SelectedItemMeasurementsProvider = ({
9518
9567
  }),
9519
9568
  [selectedItemMeasurements]
9520
9569
  );
9521
- return /* @__PURE__ */ jsx212(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
9570
+ return /* @__PURE__ */ jsx213(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
9522
9571
  };
9523
9572
  var useSelectedItemMeasurements = () => {
9524
9573
  const context = useContext5(SelectedItemMeasurementsContext);
@@ -9532,7 +9581,7 @@ var useSelectedItemMeasurements = () => {
9532
9581
 
9533
9582
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
9534
9583
  import { useMemo as useMemo9 } from "react";
9535
- import styled47 from "styled-components";
9584
+ import styled48 from "styled-components";
9536
9585
 
9537
9586
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
9538
9587
  import { createContext as createContext7, useContext as useContext6 } from "react";
@@ -9547,9 +9596,9 @@ var useSegmentedControlValue = () => {
9547
9596
  };
9548
9597
 
9549
9598
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
9550
- import { jsx as jsx213 } from "react/jsx-runtime";
9599
+ import { jsx as jsx214 } from "react/jsx-runtime";
9551
9600
  var Z_INDEX_TO_SIT_BEHIND_SIBLINGS = -1;
9552
- var SelectedItemIndicatorDiv = styled47.div`
9601
+ var SelectedItemIndicatorDiv = styled48.div`
9553
9602
  background-color: var(--wui-color-bg-fill-white);
9554
9603
  border-radius: var(--wui-border-radius-rounded);
9555
9604
  left: 0;
@@ -9575,7 +9624,7 @@ var SelectedItemIndicator = () => {
9575
9624
  if (!selectedValue) {
9576
9625
  return null;
9577
9626
  }
9578
- return /* @__PURE__ */ jsx213(
9627
+ return /* @__PURE__ */ jsx214(
9579
9628
  SelectedItemIndicatorDiv,
9580
9629
  {
9581
9630
  style: {
@@ -9588,7 +9637,7 @@ var SelectedItemIndicator = () => {
9588
9637
  };
9589
9638
 
9590
9639
  // src/components/SegmentedControl/SegmentedControl.tsx
9591
- import { jsx as jsx214, jsxs as jsxs30 } from "react/jsx-runtime";
9640
+ import { jsx as jsx215, jsxs as jsxs30 } from "react/jsx-runtime";
9592
9641
  var segmentedControlStyles = css26`
9593
9642
  display: inline-flex;
9594
9643
  background-color: var(--wui-color-bg-surface-secondary);
@@ -9599,7 +9648,7 @@ var segmentedControlStyles = css26`
9599
9648
  position: relative;
9600
9649
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
9601
9650
  `;
9602
- var StyledSegmentedControl = styled48(ToggleGroupRoot)`
9651
+ var StyledSegmentedControl = styled49(ToggleGroupRoot)`
9603
9652
  ${segmentedControlStyles}
9604
9653
  `;
9605
9654
  var SegmentedControl = forwardRef19(
@@ -9614,7 +9663,7 @@ var SegmentedControl = forwardRef19(
9614
9663
  if (isNil13(children)) {
9615
9664
  return null;
9616
9665
  }
9617
- return /* @__PURE__ */ jsx214(
9666
+ return /* @__PURE__ */ jsx215(
9618
9667
  StyledSegmentedControl,
9619
9668
  {
9620
9669
  ref,
@@ -9626,8 +9675,8 @@ var SegmentedControl = forwardRef19(
9626
9675
  type: "single",
9627
9676
  value: selectedValue,
9628
9677
  ...props,
9629
- children: /* @__PURE__ */ jsx214(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs30(SelectedItemMeasurementsProvider, { children: [
9630
- /* @__PURE__ */ jsx214(SelectedItemIndicator, {}),
9678
+ children: /* @__PURE__ */ jsx215(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs30(SelectedItemMeasurementsProvider, { children: [
9679
+ /* @__PURE__ */ jsx215(SelectedItemIndicator, {}),
9631
9680
  children
9632
9681
  ] }) })
9633
9682
  }
@@ -9638,19 +9687,19 @@ SegmentedControl.displayName = "SegmentedControl";
9638
9687
 
9639
9688
  // src/components/SegmentedControl/SegmentedControlItem.tsx
9640
9689
  import { forwardRef as forwardRef20, useEffect as useEffect5, useRef as useRef9 } from "react";
9641
- import styled49, { css as css27 } from "styled-components";
9690
+ import styled50, { css as css27 } from "styled-components";
9642
9691
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
9643
- import { isNotNil as isNotNil19 } from "@wistia/type-guards";
9692
+ import { isNotNil as isNotNil20 } from "@wistia/type-guards";
9644
9693
 
9645
9694
  // src/private/helpers/mergeRefs/mergeRefs.ts
9646
- import { isNotNil as isNotNil18, isFunction as isFunction2 } from "@wistia/type-guards";
9695
+ import { isNotNil as isNotNil19, isFunction as isFunction2 } from "@wistia/type-guards";
9647
9696
  var mergeRefs = (refs) => (value) => {
9648
9697
  refs.forEach((ref) => {
9649
9698
  if (isFunction2(ref)) {
9650
9699
  ref(value);
9651
9700
  return;
9652
9701
  }
9653
- if (isNotNil18(ref)) {
9702
+ if (isNotNil19(ref)) {
9654
9703
  ref.current = value;
9655
9704
  }
9656
9705
  });
@@ -9717,7 +9766,7 @@ var segmentedControlItemStyles = css27`
9717
9766
  }
9718
9767
  }
9719
9768
  `;
9720
- var StyledSegmentedControlItem = styled49(ToggleGroupItem)`
9769
+ var StyledSegmentedControlItem = styled50(ToggleGroupItem)`
9721
9770
  ${segmentedControlItemStyles}
9722
9771
  `;
9723
9772
  var SegmentedControlItem = forwardRef20(
@@ -9762,8 +9811,8 @@ var SegmentedControlItem = forwardRef20(
9762
9811
  StyledSegmentedControlItem,
9763
9812
  {
9764
9813
  ref: combinedRef,
9765
- $hasLabel: isNotNil19(label),
9766
- "aria-label": isNotNil19(label) ? void 0 : ariaLabel,
9814
+ $hasLabel: isNotNil20(label),
9815
+ "aria-label": isNotNil20(label) ? void 0 : ariaLabel,
9767
9816
  disabled,
9768
9817
  onClick: handleClick,
9769
9818
  value,
@@ -9777,138 +9826,423 @@ var SegmentedControlItem = forwardRef20(
9777
9826
  );
9778
9827
  SegmentedControlItem.displayName = "SegmentedControlItem";
9779
9828
 
9780
- // src/components/Tabs/Tabs.tsx
9781
- import { forwardRef as forwardRef22, useState as useState10 } from "react";
9782
- import { Root as TabsRoot } from "@radix-ui/react-tabs";
9783
- import { isNotNil as isNotNil21, isNil as isNil14 } from "@wistia/type-guards";
9784
-
9785
- // src/components/Tabs/TabPanel.tsx
9786
- import styled50 from "styled-components";
9787
- import { Content as TabsContent } from "@radix-ui/react-tabs";
9788
- import { jsx as jsx215 } from "react/jsx-runtime";
9789
- var StyledTabPanel = styled50(TabsContent)`
9790
- display: flex;
9791
- flex-direction: column;
9792
- `;
9793
- var TabPanel = ({ children, value, ...props }) => {
9794
- return /* @__PURE__ */ jsx215(
9795
- StyledTabPanel,
9796
- {
9797
- value,
9798
- ...props,
9799
- children
9800
- }
9801
- );
9802
- };
9803
- TabPanel.displayName = "TabPanel";
9804
-
9805
- // src/components/Tabs/TabList.tsx
9829
+ // src/components/Select/Select.tsx
9830
+ import {
9831
+ Root as Root4,
9832
+ Trigger as Trigger4,
9833
+ Portal as Portal3,
9834
+ Content as Content4,
9835
+ ScrollUpButton,
9836
+ Viewport,
9837
+ Value,
9838
+ ScrollDownButton
9839
+ } from "@radix-ui/react-select";
9840
+ import { forwardRef as forwardRef21 } from "react";
9806
9841
  import styled51 from "styled-components";
9807
- import { List as RadixTabList } from "@radix-ui/react-tabs";
9808
- import { jsx as jsx216 } from "react/jsx-runtime";
9809
- var StyledTabList = styled51(RadixTabList)`
9810
- ${segmentedControlStyles}
9842
+ import { jsx as jsx216, jsxs as jsxs32 } from "react/jsx-runtime";
9843
+ var StyledTrigger = styled51(Trigger4)`
9844
+ ${({ $colorScheme }) => getColorScheme($colorScheme)};
9845
+ --wui-select-color-bg: var(--wui-color-bg-surface);
9846
+ --wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
9847
+ --wui-select-color-border: var(--wui-color-border);
9848
+ --wui-select-color-border-focus: var(--wui-color-border-active);
9849
+ --wui-select-color-border-error: var(--wui-color-border-error);
9850
+ --wui-select-color-border-disabled: var(--wui-color-border-disabled);
9851
+ --wui-select-border-radius: var(--wui-border-radius-rounded);
9852
+ --wui-select-multiline-border-radius: var(--wui-border-radius-02);
9853
+ --wui-select-vertical-padding: var(--wui-space-02);
9854
+ --wui-select-horizontal-padding: var(--wui-space-03);
9855
+ --wui-select-placeholder: var(--wui-gray-10);
9856
+ --wui-select-color-text-error: var(--wui-color-text-error);
9811
9857
 
9812
- margin-bottom: var(--wui-space-04);
9813
- `;
9814
- var TabList = ({
9815
- children,
9816
- fullWidth,
9817
- ariaLabel,
9818
- ...props
9819
- }) => {
9820
- return /* @__PURE__ */ jsx216(
9821
- StyledTabList,
9822
- {
9823
- $fullWidth: fullWidth,
9824
- "aria-label": ariaLabel,
9825
- ...props,
9826
- children
9827
- }
9828
- );
9829
- };
9830
- TabList.displayName = "TabList";
9858
+ padding: var(--wui-select-vertical-padding) var(--wui-select-horizontal-padding);
9859
+ background-color: var(--wui-select-color-bg);
9860
+ border: 1px solid var(--wui-select-color-border);
9861
+ border-radius: var(--wui-select-border-radius);
9862
+ min-width: 200px;
9863
+ text-align: left;
9864
+ display: inline-flex;
9865
+ align-items: center;
9866
+ justify-content: space-between;
9867
+ max-width: 100%;
9868
+ width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
9831
9869
 
9832
- // src/components/Tabs/TabItem.tsx
9833
- import { forwardRef as forwardRef21, useEffect as useEffect6, useRef as useRef10 } from "react";
9834
- import styled52 from "styled-components";
9835
- import { Trigger as RadixTab } from "@radix-ui/react-tabs";
9836
- import { isNotNil as isNotNil20 } from "@wistia/type-guards";
9870
+ > span {
9871
+ white-space: nowrap;
9872
+ text-overflow: ellipsis;
9873
+ overflow: hidden;
9874
+ }
9837
9875
 
9838
- // src/components/Tabs/useTabsValue.tsx
9839
- import { createContext as createContext8, useContext as useContext7 } from "react";
9840
- var TabsValueContext = createContext8(null);
9841
- var TabsValueProvider = TabsValueContext.Provider;
9842
- var useTabsValue = () => {
9843
- const context = useContext7(TabsValueContext);
9844
- if (context === null) {
9845
- throw new Error("useTabsValue must be used within a TabsValueProvider");
9876
+ &[aria-expanded='true'],
9877
+ &:focus {
9878
+ outline: 2px solid var(--wui-color-focus-ring);
9846
9879
  }
9847
- return context;
9848
- };
9849
9880
 
9850
- // src/components/Tabs/TabItem.tsx
9851
- import { jsxs as jsxs32 } from "react/jsx-runtime";
9852
- var StyledTabItem = styled52(RadixTab)`
9853
- ${segmentedControlItemStyles}
9881
+ &[aria-invalid='true'] {
9882
+ outline: 2px solid var(--wui-select-color-border-error);
9883
+ color: var(--wui-select-color-text-error);
9884
+ }
9854
9885
 
9855
- &:focus-visible {
9856
- outline: none;
9886
+ &:disabled {
9887
+ border-color: var(--wui-color-bg-surface-disabled);
9888
+ background-color: var(--wui-color-bg-surface-disabled);
9857
9889
  }
9858
9890
  `;
9859
- var TabItem = forwardRef21(
9860
- ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
9861
- const selectedValue = useTabsValue();
9862
- const { setSelectedItemMeasurements } = useSelectedItemMeasurements();
9863
- const buttonRef = useRef10(null);
9864
- const combinedRef = mergeRefs([buttonRef, forwardedRef]);
9865
- useEffect6(() => {
9866
- const buttonElem = buttonRef.current;
9867
- if (!buttonElem) {
9868
- return void 0;
9869
- }
9870
- if (selectedValue !== value) {
9871
- return void 0;
9872
- }
9873
- setSelectedItemMeasurements({
9874
- offsetLeft: buttonElem.offsetLeft,
9875
- offsetWidth: buttonElem.offsetWidth,
9876
- offsetHeight: buttonElem.offsetHeight
9877
- });
9878
- const resizeObserver = new ResizeObserver(() => {
9879
- setSelectedItemMeasurements({
9880
- offsetLeft: buttonElem.offsetLeft,
9881
- offsetWidth: buttonElem.offsetWidth,
9882
- offsetHeight: buttonElem.offsetHeight
9883
- });
9884
- });
9885
- resizeObserver.observe(buttonElem);
9886
- return () => {
9887
- resizeObserver.disconnect();
9888
- };
9889
- }, [selectedValue, setSelectedItemMeasurements, value]);
9891
+ var StyledContent3 = styled51(Content4)`
9892
+ --wui-select-content-border: var(--wui-color-border);
9893
+ --wui-select-content-bg: var(--wui-color-bg-surface);
9894
+ --wui-select-content-border-radius: var(--wui-border-radius-02);
9895
+ --wui-select-option-padding: var(--wui-space-02);
9896
+ --wui-select-option-inner-gap: var(--wui-space-03);
9897
+ --wui-select-option-bg-hover: var(--wui-color-bg-surface-hover);
9898
+
9899
+ overflow: hidden;
9900
+ transform: translateY(8px);
9901
+ background-color: var(--wui-select-content-bg);
9902
+ border: 1px solid var(--wui-select-content-border);
9903
+ border-radius: var(--wui-select-content-border-radius);
9904
+ padding: var(--wui-select-option-padding);
9905
+ min-width: var(--radix-select-trigger-width);
9906
+ max-height: var(--radix-select-content-available-height);
9907
+ z-index: var(--wui-zindex-menu);
9908
+ `;
9909
+ var Select = forwardRef21(
9910
+ ({
9911
+ colorScheme = "inherit",
9912
+ children,
9913
+ onChange = () => null,
9914
+ placeholder = "Select...",
9915
+ fullWidth = false,
9916
+ ...props
9917
+ }, forwardedRef) => {
9918
+ const responsiveFullWidth = useResponsiveProp(fullWidth);
9890
9919
  return /* @__PURE__ */ jsxs32(
9891
- StyledTabItem,
9920
+ Root4,
9892
9921
  {
9893
- ref: combinedRef,
9894
- $hasLabel: isNotNil20(label),
9895
- "aria-label": isNotNil20(label) ? void 0 : ariaLabel,
9896
- disabled,
9897
- value,
9922
+ ...props,
9923
+ onValueChange: onChange,
9898
9924
  children: [
9899
- icon,
9900
- label
9901
- ]
9902
- }
9903
- );
9904
- }
9905
- );
9906
- TabItem.displayName = "TabItem";
9907
-
9908
- // src/components/Tabs/extractTabItems.ts
9909
- import { Children as Children6, Fragment as Fragment7, isValidElement as isValidElement2 } from "react";
9910
- var extractTabItems = (children) => {
9911
- const tabItems = [];
9925
+ /* @__PURE__ */ jsxs32(
9926
+ StyledTrigger,
9927
+ {
9928
+ ref: forwardedRef,
9929
+ $colorScheme: colorScheme,
9930
+ $fullWidth: responsiveFullWidth,
9931
+ ...props,
9932
+ children: [
9933
+ /* @__PURE__ */ jsx216(Value, { placeholder }),
9934
+ /* @__PURE__ */ jsx216(
9935
+ Icon,
9936
+ {
9937
+ size: "md",
9938
+ type: "caret-down"
9939
+ }
9940
+ )
9941
+ ]
9942
+ }
9943
+ ),
9944
+ /* @__PURE__ */ jsx216(Portal3, { children: /* @__PURE__ */ jsxs32(StyledContent3, { position: "popper", children: [
9945
+ /* @__PURE__ */ jsx216(ScrollUpButton, { children: /* @__PURE__ */ jsx216(Icon, { type: "caret-up" }) }),
9946
+ /* @__PURE__ */ jsx216(Viewport, { children }),
9947
+ /* @__PURE__ */ jsx216(ScrollDownButton, { children: /* @__PURE__ */ jsx216(Icon, { type: "caret-down" }) })
9948
+ ] }) })
9949
+ ]
9950
+ }
9951
+ );
9952
+ }
9953
+ );
9954
+ Select.displayName = "Select";
9955
+
9956
+ // src/components/Select/SelectOption.tsx
9957
+ import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
9958
+ import { forwardRef as forwardRef22 } from "react";
9959
+ import styled52 from "styled-components";
9960
+ import { jsx as jsx217, jsxs as jsxs33 } from "react/jsx-runtime";
9961
+ var StyledItem = styled52(Item)`
9962
+ ${variantStyleMap2.body3};
9963
+ display: flex;
9964
+ padding: var(--wui-select-option-padding);
9965
+ gap: var(--wui-select-option-inner-gap);
9966
+ font-size: var(--font-size);
9967
+ font-weight: var(--font-weight);
9968
+ border-radius: var(--wui-border-radius-01);
9969
+
9970
+ &:hover,
9971
+ &:focus-visible {
9972
+ background-color: var(--wui-select-option-bg-hover);
9973
+ outline: none;
9974
+ }
9975
+
9976
+ &[aria-disabled='true'] {
9977
+ color: var(--wui-color-text-disabled);
9978
+ }
9979
+
9980
+ &[aria-disabled='true']:hover {
9981
+ background-color: transparent;
9982
+ }
9983
+ `;
9984
+ var StyledIconContainer = styled52.span`
9985
+ width: 12px;
9986
+ `;
9987
+ var SelectOption = forwardRef22(
9988
+ ({ children, ...props }, forwardedRef) => {
9989
+ return /* @__PURE__ */ jsxs33(
9990
+ StyledItem,
9991
+ {
9992
+ ...props,
9993
+ ref: forwardedRef,
9994
+ children: [
9995
+ /* @__PURE__ */ jsx217(StyledIconContainer, { children: /* @__PURE__ */ jsx217(ItemIndicator, { children: /* @__PURE__ */ jsx217(
9996
+ Icon,
9997
+ {
9998
+ size: "sm",
9999
+ type: "checkmark"
10000
+ }
10001
+ ) }) }),
10002
+ /* @__PURE__ */ jsx217(ItemText, { children })
10003
+ ]
10004
+ }
10005
+ );
10006
+ }
10007
+ );
10008
+ SelectOption.displayName = "Option";
10009
+
10010
+ // src/components/Select/SelectOptionGroup.tsx
10011
+ import { Group, Label as Label2 } from "@radix-ui/react-select";
10012
+ import styled53 from "styled-components";
10013
+ import { jsx as jsx218, jsxs as jsxs34 } from "react/jsx-runtime";
10014
+ var StyledLabel4 = styled53(Label2)`
10015
+ padding: var(--wui-select-option-padding);
10016
+ `;
10017
+ var SelectOptionGroup = ({ children, label, ...props }) => {
10018
+ return /* @__PURE__ */ jsxs34(Group, { ...props, children: [
10019
+ /* @__PURE__ */ jsx218(StyledLabel4, { children: /* @__PURE__ */ jsx218(
10020
+ Text,
10021
+ {
10022
+ prominence: "secondary",
10023
+ variant: "body3",
10024
+ children: label
10025
+ }
10026
+ ) }),
10027
+ children
10028
+ ] });
10029
+ };
10030
+
10031
+ // src/components/Table/Table.tsx
10032
+ import styled54, { css as css28 } from "styled-components";
10033
+ import { jsx as jsx219 } from "react/jsx-runtime";
10034
+ var StyledTable = styled54.table`
10035
+ width: 100%;
10036
+ border-collapse: collapse;
10037
+
10038
+ ${({ $striped }) => $striped && css28`
10039
+ tbody tr:nth-child(even) {
10040
+ background-color: #f2f2f2;
10041
+ }
10042
+ `}
10043
+ `;
10044
+ var Table = ({ children, striped = false, ...props }) => {
10045
+ return /* @__PURE__ */ jsx219(
10046
+ StyledTable,
10047
+ {
10048
+ $striped: striped,
10049
+ ...props,
10050
+ children
10051
+ }
10052
+ );
10053
+ };
10054
+
10055
+ // src/components/Table/TableBody.tsx
10056
+ import styled55 from "styled-components";
10057
+
10058
+ // src/components/Table/TableSectionContext.ts
10059
+ import { createContext as createContext8 } from "react";
10060
+ var TableSectionContext = createContext8(null);
10061
+
10062
+ // src/components/Table/TableBody.tsx
10063
+ import { jsx as jsx220 } from "react/jsx-runtime";
10064
+ var StyledTbody = styled55.tbody``;
10065
+ var TableBody = ({ children, ...props }) => {
10066
+ return /* @__PURE__ */ jsx220(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx220(StyledTbody, { ...props, children }) });
10067
+ };
10068
+
10069
+ // src/components/Table/TableCell.tsx
10070
+ import { useContext as useContext7 } from "react";
10071
+ import styled56 from "styled-components";
10072
+ import { jsx as jsx221 } from "react/jsx-runtime";
10073
+ var StyledTh = styled56.th`
10074
+ text-align: left;
10075
+ padding: 8px;
10076
+ `;
10077
+ var StyledTd = styled56.td`
10078
+ padding: 8px;
10079
+ `;
10080
+ var TableCell = ({ children, ...props }) => {
10081
+ const section = useContext7(TableSectionContext);
10082
+ if (section === "head") {
10083
+ return /* @__PURE__ */ jsx221(StyledTh, { ...props, children });
10084
+ }
10085
+ return /* @__PURE__ */ jsx221(StyledTd, { ...props, children });
10086
+ };
10087
+
10088
+ // src/components/Table/TableFooter.tsx
10089
+ import styled57 from "styled-components";
10090
+ import { jsx as jsx222 } from "react/jsx-runtime";
10091
+ var StyledTfoot = styled57.tfoot``;
10092
+ var TableFooter = ({ children, ...props }) => {
10093
+ return /* @__PURE__ */ jsx222(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx222(StyledTfoot, { ...props, children }) });
10094
+ };
10095
+
10096
+ // src/components/Table/TableHead.tsx
10097
+ import styled58 from "styled-components";
10098
+ import { jsx as jsx223 } from "react/jsx-runtime";
10099
+ var StyledThead = styled58.thead``;
10100
+ var TableHead = ({ children, ...props }) => {
10101
+ return /* @__PURE__ */ jsx223(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx223(StyledThead, { ...props, children }) });
10102
+ };
10103
+
10104
+ // src/components/Table/TableRow.tsx
10105
+ import styled59 from "styled-components";
10106
+ import { jsx as jsx224 } from "react/jsx-runtime";
10107
+ var StyledTr = styled59.tr`
10108
+ border-bottom: 1px solid #ddd;
10109
+ `;
10110
+ var TableRow = ({ children, ...props }) => {
10111
+ return /* @__PURE__ */ jsx224(StyledTr, { ...props, children });
10112
+ };
10113
+
10114
+ // src/components/Tabs/Tabs.tsx
10115
+ import { forwardRef as forwardRef24, useState as useState10 } from "react";
10116
+ import { Root as TabsRoot } from "@radix-ui/react-tabs";
10117
+ import { isNotNil as isNotNil22, isNil as isNil14 } from "@wistia/type-guards";
10118
+
10119
+ // src/components/Tabs/TabPanel.tsx
10120
+ import styled60 from "styled-components";
10121
+ import { Content as TabsContent } from "@radix-ui/react-tabs";
10122
+ import { jsx as jsx225 } from "react/jsx-runtime";
10123
+ var StyledTabPanel = styled60(TabsContent)`
10124
+ display: flex;
10125
+ flex-direction: column;
10126
+ `;
10127
+ var TabPanel = ({ children, value, ...props }) => {
10128
+ return /* @__PURE__ */ jsx225(
10129
+ StyledTabPanel,
10130
+ {
10131
+ value,
10132
+ ...props,
10133
+ children
10134
+ }
10135
+ );
10136
+ };
10137
+ TabPanel.displayName = "TabPanel";
10138
+
10139
+ // src/components/Tabs/TabList.tsx
10140
+ import styled61 from "styled-components";
10141
+ import { List as RadixTabList } from "@radix-ui/react-tabs";
10142
+ import { jsx as jsx226 } from "react/jsx-runtime";
10143
+ var StyledTabList = styled61(RadixTabList)`
10144
+ ${segmentedControlStyles}
10145
+
10146
+ margin-bottom: var(--wui-space-04);
10147
+ `;
10148
+ var TabList = ({
10149
+ children,
10150
+ fullWidth,
10151
+ ariaLabel,
10152
+ ...props
10153
+ }) => {
10154
+ return /* @__PURE__ */ jsx226(
10155
+ StyledTabList,
10156
+ {
10157
+ $fullWidth: fullWidth,
10158
+ "aria-label": ariaLabel,
10159
+ ...props,
10160
+ children
10161
+ }
10162
+ );
10163
+ };
10164
+ TabList.displayName = "TabList";
10165
+
10166
+ // src/components/Tabs/TabItem.tsx
10167
+ import { forwardRef as forwardRef23, useEffect as useEffect6, useRef as useRef10 } from "react";
10168
+ import styled62 from "styled-components";
10169
+ import { Trigger as RadixTab } from "@radix-ui/react-tabs";
10170
+ import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10171
+
10172
+ // src/components/Tabs/useTabsValue.tsx
10173
+ import { createContext as createContext9, useContext as useContext8 } from "react";
10174
+ var TabsValueContext = createContext9(null);
10175
+ var TabsValueProvider = TabsValueContext.Provider;
10176
+ var useTabsValue = () => {
10177
+ const context = useContext8(TabsValueContext);
10178
+ if (context === null) {
10179
+ throw new Error("useTabsValue must be used within a TabsValueProvider");
10180
+ }
10181
+ return context;
10182
+ };
10183
+
10184
+ // src/components/Tabs/TabItem.tsx
10185
+ import { jsxs as jsxs35 } from "react/jsx-runtime";
10186
+ var StyledTabItem = styled62(RadixTab)`
10187
+ ${segmentedControlItemStyles}
10188
+
10189
+ &:focus-visible {
10190
+ outline: none;
10191
+ }
10192
+ `;
10193
+ var TabItem = forwardRef23(
10194
+ ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
10195
+ const selectedValue = useTabsValue();
10196
+ const { setSelectedItemMeasurements } = useSelectedItemMeasurements();
10197
+ const buttonRef = useRef10(null);
10198
+ const combinedRef = mergeRefs([buttonRef, forwardedRef]);
10199
+ useEffect6(() => {
10200
+ const buttonElem = buttonRef.current;
10201
+ if (!buttonElem) {
10202
+ return void 0;
10203
+ }
10204
+ if (selectedValue !== value) {
10205
+ return void 0;
10206
+ }
10207
+ setSelectedItemMeasurements({
10208
+ offsetLeft: buttonElem.offsetLeft,
10209
+ offsetWidth: buttonElem.offsetWidth,
10210
+ offsetHeight: buttonElem.offsetHeight
10211
+ });
10212
+ const resizeObserver = new ResizeObserver(() => {
10213
+ setSelectedItemMeasurements({
10214
+ offsetLeft: buttonElem.offsetLeft,
10215
+ offsetWidth: buttonElem.offsetWidth,
10216
+ offsetHeight: buttonElem.offsetHeight
10217
+ });
10218
+ });
10219
+ resizeObserver.observe(buttonElem);
10220
+ return () => {
10221
+ resizeObserver.disconnect();
10222
+ };
10223
+ }, [selectedValue, setSelectedItemMeasurements, value]);
10224
+ return /* @__PURE__ */ jsxs35(
10225
+ StyledTabItem,
10226
+ {
10227
+ ref: combinedRef,
10228
+ $hasLabel: isNotNil21(label),
10229
+ "aria-label": isNotNil21(label) ? void 0 : ariaLabel,
10230
+ disabled,
10231
+ value,
10232
+ children: [
10233
+ icon,
10234
+ label
10235
+ ]
10236
+ }
10237
+ );
10238
+ }
10239
+ );
10240
+ TabItem.displayName = "TabItem";
10241
+
10242
+ // src/components/Tabs/extractTabItems.ts
10243
+ import { Children as Children6, Fragment as Fragment7, isValidElement as isValidElement2 } from "react";
10244
+ var extractTabItems = (children) => {
10245
+ const tabItems = [];
9912
10246
  Children6.forEach(children, (child) => {
9913
10247
  if (!isValidElement2(child)) {
9914
10248
  return;
@@ -9929,9 +10263,9 @@ var extractTabItems = (children) => {
9929
10263
 
9930
10264
  // src/components/Tabs/SelectedItemIndicator.tsx
9931
10265
  import { useMemo as useMemo10 } from "react";
9932
- import styled53 from "styled-components";
9933
- import { jsx as jsx217 } from "react/jsx-runtime";
9934
- var TabsSelectedItemIndicatorDiv = styled53(SelectedItemIndicatorDiv)`
10266
+ import styled63 from "styled-components";
10267
+ import { jsx as jsx227 } from "react/jsx-runtime";
10268
+ var TabsSelectedItemIndicatorDiv = styled63(SelectedItemIndicatorDiv)`
9935
10269
  &:has(~ ${StyledTabItem}:focus-visible) {
9936
10270
  outline: 2px solid var(--wui-color-focus-ring);
9937
10271
  }
@@ -9950,7 +10284,7 @@ var SelectedItemIndicator2 = () => {
9950
10284
  if (selectedValue == null) {
9951
10285
  return null;
9952
10286
  }
9953
- return /* @__PURE__ */ jsx217(
10287
+ return /* @__PURE__ */ jsx227(
9954
10288
  TabsSelectedItemIndicatorDiv,
9955
10289
  {
9956
10290
  style: {
@@ -9963,8 +10297,8 @@ var SelectedItemIndicator2 = () => {
9963
10297
  };
9964
10298
 
9965
10299
  // src/components/Tabs/Tabs.tsx
9966
- import { jsx as jsx218, jsxs as jsxs33 } from "react/jsx-runtime";
9967
- var Tabs = forwardRef22(
10300
+ import { jsx as jsx228, jsxs as jsxs36 } from "react/jsx-runtime";
10301
+ var Tabs = forwardRef24(
9968
10302
  ({
9969
10303
  children,
9970
10304
  fullWidth = true,
@@ -9980,25 +10314,25 @@ var Tabs = forwardRef22(
9980
10314
  defaultValue: defaultSelectedValue,
9981
10315
  onValueChange: setInternalSelectedValue
9982
10316
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
9983
- return /* @__PURE__ */ jsx218(
10317
+ return /* @__PURE__ */ jsx228(
9984
10318
  TabsRoot,
9985
10319
  {
9986
10320
  ref,
9987
10321
  activationMode: "automatic",
9988
10322
  ...otherProps,
9989
10323
  ...modeProps,
9990
- children: /* @__PURE__ */ jsx218(
10324
+ children: /* @__PURE__ */ jsx228(
9991
10325
  TabsValueProvider,
9992
10326
  {
9993
10327
  value: defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue,
9994
- children: /* @__PURE__ */ jsxs33(SelectedItemMeasurementsProvider, { children: [
9995
- /* @__PURE__ */ jsxs33(
10328
+ children: /* @__PURE__ */ jsxs36(SelectedItemMeasurementsProvider, { children: [
10329
+ /* @__PURE__ */ jsxs36(
9996
10330
  TabList,
9997
10331
  {
9998
10332
  ariaLabel,
9999
10333
  fullWidth,
10000
10334
  children: [
10001
- /* @__PURE__ */ jsx218(SelectedItemIndicator2, {}),
10335
+ /* @__PURE__ */ jsx228(SelectedItemIndicator2, {}),
10002
10336
  tabItems.map((tab) => {
10003
10337
  const {
10004
10338
  value,
@@ -10008,7 +10342,7 @@ var Tabs = forwardRef22(
10008
10342
  "aria-label": ariaLabelForTab
10009
10343
  } = tab.props;
10010
10344
  if (isNil14(icon)) {
10011
- return /* @__PURE__ */ jsx218(
10345
+ return /* @__PURE__ */ jsx228(
10012
10346
  TabItem,
10013
10347
  {
10014
10348
  disabled,
@@ -10018,8 +10352,8 @@ var Tabs = forwardRef22(
10018
10352
  value
10019
10353
  );
10020
10354
  }
10021
- if (isNotNil21(label)) {
10022
- return /* @__PURE__ */ jsx218(
10355
+ if (isNotNil22(label)) {
10356
+ return /* @__PURE__ */ jsx228(
10023
10357
  TabItem,
10024
10358
  {
10025
10359
  disabled,
@@ -10030,8 +10364,8 @@ var Tabs = forwardRef22(
10030
10364
  value
10031
10365
  );
10032
10366
  }
10033
- if (isNotNil21(ariaLabelForTab)) {
10034
- return /* @__PURE__ */ jsx218(
10367
+ if (isNotNil22(ariaLabelForTab)) {
10368
+ return /* @__PURE__ */ jsx228(
10035
10369
  TabItem,
10036
10370
  {
10037
10371
  "aria-label": ariaLabelForTab,
@@ -10047,7 +10381,7 @@ var Tabs = forwardRef22(
10047
10381
  ]
10048
10382
  }
10049
10383
  ),
10050
- tabItems.map((tab) => /* @__PURE__ */ jsx218(
10384
+ tabItems.map((tab) => /* @__PURE__ */ jsx228(
10051
10385
  TabPanel,
10052
10386
  {
10053
10387
  value: tab.props.value,
@@ -10065,19 +10399,19 @@ var Tabs = forwardRef22(
10065
10399
  Tabs.displayName = "Tabs";
10066
10400
 
10067
10401
  // src/components/Tabs/Tab.tsx
10068
- import { forwardRef as forwardRef23 } from "react";
10069
- import { jsx as jsx219 } from "react/jsx-runtime";
10070
- var Tab = forwardRef23(({ children }, ref) => {
10071
- return /* @__PURE__ */ jsx219("div", { ref, children });
10402
+ import { forwardRef as forwardRef25 } from "react";
10403
+ import { jsx as jsx229 } from "react/jsx-runtime";
10404
+ var Tab = forwardRef25(({ children }, ref) => {
10405
+ return /* @__PURE__ */ jsx229("div", { ref, children });
10072
10406
  });
10073
10407
  Tab.displayName = "Tab";
10074
10408
 
10075
10409
  // src/components/Tag/Tag.tsx
10076
- import { forwardRef as forwardRef24 } from "react";
10077
- import styled54 from "styled-components";
10078
- import { isNil as isNil15, isNotNil as isNotNil22, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
10079
- import { Fragment as Fragment8, jsx as jsx220, jsxs as jsxs34 } from "react/jsx-runtime";
10080
- var TagLabel = styled54.a`
10410
+ import { forwardRef as forwardRef26 } from "react";
10411
+ import styled64 from "styled-components";
10412
+ import { isNil as isNil15, isNotNil as isNotNil23, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
10413
+ import { Fragment as Fragment8, jsx as jsx230, jsxs as jsxs37 } from "react/jsx-runtime";
10414
+ var TagLabel = styled64.a`
10081
10415
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10082
10416
  font-size: var(--wui-typography-label-4-size);
10083
10417
  font-weight: var(--wui-typography-label-4-weight);
@@ -10105,14 +10439,14 @@ var TagLabel = styled54.a`
10105
10439
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
10106
10440
  }
10107
10441
  `;
10108
- var TagDivider = styled54.div`
10442
+ var TagDivider = styled64.div`
10109
10443
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10110
10444
  border-left: 1px solid var(--wui-color-border);
10111
10445
  display: flex;
10112
10446
  height: 14px;
10113
10447
  width: 1px;
10114
10448
  `;
10115
- var StyledRemoveButton = styled54.button`
10449
+ var StyledRemoveButton = styled64.button`
10116
10450
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10117
10451
  all: unset;
10118
10452
  cursor: pointer;
@@ -10140,7 +10474,7 @@ var StyledRemoveButton = styled54.button`
10140
10474
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
10141
10475
  }
10142
10476
  `;
10143
- var StyledTag = styled54.div`
10477
+ var StyledTag = styled64.div`
10144
10478
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10145
10479
  align-items: center;
10146
10480
  background-color: var(--wui-color-bg-surface-secondary);
@@ -10161,39 +10495,39 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
10161
10495
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
10162
10496
  );
10163
10497
  }
10164
- return /* @__PURE__ */ jsxs34(Fragment8, { children: [
10165
- /* @__PURE__ */ jsx220(TagDivider, { $colorScheme: colorScheme }),
10166
- /* @__PURE__ */ jsxs34(
10498
+ return /* @__PURE__ */ jsxs37(Fragment8, { children: [
10499
+ /* @__PURE__ */ jsx230(TagDivider, { $colorScheme: colorScheme }),
10500
+ /* @__PURE__ */ jsxs37(
10167
10501
  StyledRemoveButton,
10168
10502
  {
10169
10503
  $colorScheme: colorScheme,
10170
10504
  onClick: onClickRemove,
10171
10505
  type: "button",
10172
10506
  children: [
10173
- /* @__PURE__ */ jsx220(
10507
+ /* @__PURE__ */ jsx230(
10174
10508
  Icon,
10175
10509
  {
10176
10510
  size: "sm",
10177
10511
  type: "close"
10178
10512
  }
10179
10513
  ),
10180
- /* @__PURE__ */ jsx220(ScreenReaderOnly, { children: onClickRemoveLabel })
10514
+ /* @__PURE__ */ jsx230(ScreenReaderOnly, { children: onClickRemoveLabel })
10181
10515
  ]
10182
10516
  }
10183
10517
  )
10184
10518
  ] });
10185
10519
  };
10186
- var Tag = forwardRef24(
10520
+ var Tag = forwardRef26(
10187
10521
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
10188
- const labelProps = isNotNil22(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
10189
- return /* @__PURE__ */ jsxs34(
10522
+ const labelProps = isNotNil23(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
10523
+ return /* @__PURE__ */ jsxs37(
10190
10524
  StyledTag,
10191
10525
  {
10192
10526
  ref,
10193
10527
  $colorScheme: colorScheme,
10194
10528
  ...otherProps,
10195
10529
  children: [
10196
- /* @__PURE__ */ jsx220(
10530
+ /* @__PURE__ */ jsx230(
10197
10531
  TagLabel,
10198
10532
  {
10199
10533
  ...labelProps,
@@ -10201,7 +10535,7 @@ var Tag = forwardRef24(
10201
10535
  children: label
10202
10536
  }
10203
10537
  ),
10204
- /* @__PURE__ */ jsx220(
10538
+ /* @__PURE__ */ jsx230(
10205
10539
  RemoveButton,
10206
10540
  {
10207
10541
  colorScheme,
@@ -10217,26 +10551,26 @@ var Tag = forwardRef24(
10217
10551
  Tag.displayName = "Tag";
10218
10552
 
10219
10553
  // src/components/WistiaLogo/WistiaLogo.tsx
10220
- import styled55, { css as css28 } from "styled-components";
10221
- import { isNotNil as isNotNil23 } from "@wistia/type-guards";
10222
- import { jsx as jsx221, jsxs as jsxs35 } from "react/jsx-runtime";
10554
+ import styled65, { css as css29 } from "styled-components";
10555
+ import { isNotNil as isNotNil24 } from "@wistia/type-guards";
10556
+ import { jsx as jsx231, jsxs as jsxs38 } from "react/jsx-runtime";
10223
10557
  var renderBrandmark = (brandmarkColor, iconOnly) => {
10224
10558
  if (iconOnly) {
10225
- return /* @__PURE__ */ jsx221(
10559
+ return /* @__PURE__ */ jsx231(
10226
10560
  "g",
10227
10561
  {
10228
10562
  "data-testid": "ui-wistia-logo-brandmark",
10229
10563
  fill: brandmarkColor,
10230
- children: /* @__PURE__ */ jsx221("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" })
10564
+ children: /* @__PURE__ */ jsx231("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" })
10231
10565
  }
10232
10566
  );
10233
10567
  }
10234
- return /* @__PURE__ */ jsx221(
10568
+ return /* @__PURE__ */ jsx231(
10235
10569
  "g",
10236
10570
  {
10237
10571
  "data-testid": "ui-wistia-logo-brandmark",
10238
10572
  fill: brandmarkColor,
10239
- children: /* @__PURE__ */ jsx221("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" })
10573
+ children: /* @__PURE__ */ jsx231("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" })
10240
10574
  }
10241
10575
  );
10242
10576
  };
@@ -10244,12 +10578,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
10244
10578
  if (iconOnly) {
10245
10579
  return null;
10246
10580
  }
10247
- return /* @__PURE__ */ jsx221(
10581
+ return /* @__PURE__ */ jsx231(
10248
10582
  "g",
10249
10583
  {
10250
10584
  "data-testid": "ui-wistia-logo-logotype",
10251
10585
  fill: logotypeColor,
10252
- children: /* @__PURE__ */ jsx221("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" })
10586
+ children: /* @__PURE__ */ jsx231("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" })
10253
10587
  }
10254
10588
  );
10255
10589
  };
@@ -10259,7 +10593,7 @@ var computedViewBox = (iconOnly) => {
10259
10593
  }
10260
10594
  return "0 0 144 31.47";
10261
10595
  };
10262
- var WistiaLogoComponent = styled55.svg`
10596
+ var WistiaLogoComponent = styled65.svg`
10263
10597
  height: ${({ height }) => `${height}px`};
10264
10598
 
10265
10599
  /* ensure it will always fit on mobile */
@@ -10275,12 +10609,12 @@ var WistiaLogoComponent = styled55.svg`
10275
10609
  ${({ $opticallyCentered, $iconOnly }) => {
10276
10610
  if ($opticallyCentered) {
10277
10611
  if ($iconOnly) {
10278
- return css28`
10612
+ return css29`
10279
10613
  aspect-ratio: 1;
10280
10614
  padding: 11.85% 3.12% 13.91%;
10281
10615
  `;
10282
10616
  }
10283
- return css28`
10617
+ return css29`
10284
10618
  aspect-ratio: 127 / 32;
10285
10619
  `;
10286
10620
  }
@@ -10317,7 +10651,7 @@ var WistiaLogo = ({
10317
10651
  };
10318
10652
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
10319
10653
  const logotypeColor = VARIANT_COLORS[variant].logotype;
10320
- const Logo = /* @__PURE__ */ jsxs35(
10654
+ const Logo = /* @__PURE__ */ jsxs38(
10321
10655
  WistiaLogoComponent,
10322
10656
  {
10323
10657
  $hoverColor: hoverColor,
@@ -10330,259 +10664,16 @@ var WistiaLogo = ({
10330
10664
  xmlns: "http://www.w3.org/2000/svg",
10331
10665
  ...otherProps,
10332
10666
  children: [
10333
- /* @__PURE__ */ jsx221("title", { children: title }),
10334
- isNotNil23(description) ? /* @__PURE__ */ jsx221("desc", { children: description }) : null,
10667
+ /* @__PURE__ */ jsx231("title", { children: title }),
10668
+ isNotNil24(description) ? /* @__PURE__ */ jsx231("desc", { children: description }) : null,
10335
10669
  renderBrandmark(brandmarkColor, iconOnly),
10336
10670
  renderLogotype(logotypeColor, iconOnly)
10337
10671
  ]
10338
10672
  }
10339
10673
  );
10340
- return href !== void 0 ? /* @__PURE__ */ jsx221("a", { href, children: Logo }) : Logo;
10674
+ return href !== void 0 ? /* @__PURE__ */ jsx231("a", { href, children: Logo }) : Logo;
10341
10675
  };
10342
10676
  WistiaLogo.displayName = "WistiaLogo";
10343
-
10344
- // src/components/Select/Select.tsx
10345
- import {
10346
- Root as Root4,
10347
- Trigger as Trigger4,
10348
- Portal as Portal3,
10349
- Content as Content4,
10350
- ScrollUpButton,
10351
- Viewport,
10352
- Value,
10353
- ScrollDownButton
10354
- } from "@radix-ui/react-select";
10355
- import { forwardRef as forwardRef25 } from "react";
10356
- import styled56 from "styled-components";
10357
- import { jsx as jsx222, jsxs as jsxs36 } from "react/jsx-runtime";
10358
- var StyledTrigger = styled56(Trigger4)`
10359
- ${({ $colorScheme }) => getColorScheme($colorScheme)};
10360
- --wui-select-color-bg: var(--wui-color-bg-surface);
10361
- --wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
10362
- --wui-select-color-border: var(--wui-color-border);
10363
- --wui-select-color-border-focus: var(--wui-color-border-active);
10364
- --wui-select-color-border-error: var(--wui-color-border-error);
10365
- --wui-select-color-border-disabled: var(--wui-color-border-disabled);
10366
- --wui-select-border-radius: var(--wui-border-radius-rounded);
10367
- --wui-select-multiline-border-radius: var(--wui-border-radius-02);
10368
- --wui-select-vertical-padding: var(--wui-space-02);
10369
- --wui-select-horizontal-padding: var(--wui-space-03);
10370
- --wui-select-placeholder: var(--wui-gray-10);
10371
- --wui-select-color-text-error: var(--wui-color-text-error);
10372
-
10373
- padding: var(--wui-select-vertical-padding) var(--wui-select-horizontal-padding);
10374
- background-color: var(--wui-select-color-bg);
10375
- border: 1px solid var(--wui-select-color-border);
10376
- border-radius: var(--wui-select-border-radius);
10377
- min-width: 200px;
10378
- text-align: left;
10379
- display: inline-flex;
10380
- align-items: center;
10381
- justify-content: space-between;
10382
- width: ${({ $fullWidth = false }) => $fullWidth ? "100%" : "auto"};
10383
-
10384
- &[aria-expanded='true'],
10385
- &:focus {
10386
- outline: 2px solid var(--wui-color-focus-ring);
10387
- }
10388
-
10389
- &[aria-invalid='true'] {
10390
- outline: 2px solid var(--wui-select-color-border-error);
10391
- color: var(--wui-select-color-text-error);
10392
- }
10393
-
10394
- &:disabled {
10395
- border-color: var(--wui-color-bg-surface-disabled);
10396
- background-color: var(--wui-color-bg-surface-disabled);
10397
- }
10398
- `;
10399
- var StyledContent3 = styled56(Content4)`
10400
- --wui-select-content-border: var(--wui-color-border);
10401
- --wui-select-content-bg: var(--wui-color-bg-surface);
10402
- --wui-select-content-border-radius: var(--wui-border-radius-02);
10403
- --wui-select-option-padding: var(--wui-space-02);
10404
- --wui-select-option-inner-gap: var(--wui-space-03);
10405
- --wui-select-option-bg-hover: var(--wui-color-bg-surface-hover);
10406
-
10407
- overflow: hidden;
10408
- transform: translateY(8px);
10409
- background-color: var(--wui-select-content-bg);
10410
- border: 1px solid var(--wui-select-content-border);
10411
- border-radius: var(--wui-select-content-border-radius);
10412
- padding: var(--wui-select-option-padding);
10413
- min-width: 200px;
10414
- z-index: var(--wui-zindex-menu);
10415
- `;
10416
- var Select = forwardRef25(
10417
- ({
10418
- colorScheme = "inherit",
10419
- children,
10420
- onChange = () => null,
10421
- placeholder = "Select...",
10422
- fullWidth = false,
10423
- ...props
10424
- }, forwardedRef) => {
10425
- const responsiveFullWidth = useResponsiveProp(fullWidth);
10426
- return /* @__PURE__ */ jsxs36(
10427
- Root4,
10428
- {
10429
- ...props,
10430
- onValueChange: onChange,
10431
- children: [
10432
- /* @__PURE__ */ jsxs36(
10433
- StyledTrigger,
10434
- {
10435
- ref: forwardedRef,
10436
- $colorScheme: colorScheme,
10437
- $fullWidth: responsiveFullWidth,
10438
- ...props,
10439
- children: [
10440
- /* @__PURE__ */ jsx222(Value, { placeholder }),
10441
- /* @__PURE__ */ jsx222(
10442
- Icon,
10443
- {
10444
- size: "md",
10445
- type: "caret-down"
10446
- }
10447
- )
10448
- ]
10449
- }
10450
- ),
10451
- /* @__PURE__ */ jsx222(Portal3, { children: /* @__PURE__ */ jsxs36(StyledContent3, { position: "popper", children: [
10452
- /* @__PURE__ */ jsx222(ScrollUpButton, { children: /* @__PURE__ */ jsx222(Icon, { type: "caret-up" }) }),
10453
- /* @__PURE__ */ jsx222(Viewport, { children }),
10454
- /* @__PURE__ */ jsx222(ScrollDownButton, { children: /* @__PURE__ */ jsx222(Icon, { type: "caret-down" }) })
10455
- ] }) })
10456
- ]
10457
- }
10458
- );
10459
- }
10460
- );
10461
- Select.displayName = "Select";
10462
-
10463
- // src/components/Select/SelectOption.tsx
10464
- import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
10465
- import { forwardRef as forwardRef26 } from "react";
10466
- import styled57 from "styled-components";
10467
- import { jsx as jsx223, jsxs as jsxs37 } from "react/jsx-runtime";
10468
- var StyledItem = styled57(Item)`
10469
- ${variantStyleMap2.body3};
10470
- display: flex;
10471
- padding: var(--wui-select-option-padding);
10472
- gap: var(--wui-select-option-inner-gap);
10473
- font-size: var(--font-size);
10474
- font-weight: var(--font-weight);
10475
- border-radius: var(--wui-border-radius-01);
10476
-
10477
- &:hover,
10478
- &:focus-visible {
10479
- background-color: var(--wui-select-option-bg-hover);
10480
- outline: none;
10481
- }
10482
-
10483
- &[aria-disabled='true'] {
10484
- color: var(--wui-color-text-disabled);
10485
- }
10486
-
10487
- &[aria-disabled='true']:hover {
10488
- background-color: transparent;
10489
- }
10490
- `;
10491
- var StyledIconContainer = styled57.span`
10492
- width: 12px;
10493
- `;
10494
- var SelectOption = forwardRef26(
10495
- ({ children, ...props }, forwardedRef) => {
10496
- return /* @__PURE__ */ jsxs37(
10497
- StyledItem,
10498
- {
10499
- ...props,
10500
- ref: forwardedRef,
10501
- children: [
10502
- /* @__PURE__ */ jsx223(StyledIconContainer, { children: /* @__PURE__ */ jsx223(ItemIndicator, { children: /* @__PURE__ */ jsx223(
10503
- Icon,
10504
- {
10505
- size: "sm",
10506
- type: "checkmark"
10507
- }
10508
- ) }) }),
10509
- /* @__PURE__ */ jsx223(ItemText, { children })
10510
- ]
10511
- }
10512
- );
10513
- }
10514
- );
10515
- SelectOption.displayName = "Option";
10516
-
10517
- // src/components/Select/SelectOptionGroup.tsx
10518
- import { Group, Label as Label2 } from "@radix-ui/react-select";
10519
- import styled58 from "styled-components";
10520
- import { jsx as jsx224, jsxs as jsxs38 } from "react/jsx-runtime";
10521
- var StyledLabel4 = styled58(Label2)`
10522
- padding: var(--wui-select-option-padding);
10523
- `;
10524
- var SelectOptionGroup = ({ children, label, ...props }) => {
10525
- return /* @__PURE__ */ jsxs38(Group, { ...props, children: [
10526
- /* @__PURE__ */ jsx224(StyledLabel4, { children: /* @__PURE__ */ jsx224(
10527
- Text,
10528
- {
10529
- prominence: "secondary",
10530
- variant: "body3",
10531
- children: label
10532
- }
10533
- ) }),
10534
- children
10535
- ] });
10536
- };
10537
-
10538
- // src/components/Image/Image.tsx
10539
- import styled59 from "styled-components";
10540
- import { isNotNil as isNotNil24 } from "@wistia/type-guards";
10541
- import { jsx as jsx225 } from "react/jsx-runtime";
10542
- var getFillStyle2 = (fillContainer) => {
10543
- if (fillContainer === "horizontal") {
10544
- return "width: 100%;";
10545
- }
10546
- if (fillContainer === "vertical") {
10547
- return "height: 100%;";
10548
- }
10549
- if (fillContainer === true) {
10550
- return `
10551
- width: 100%;
10552
- height: 100%;
10553
- `;
10554
- }
10555
- return void 0;
10556
- };
10557
- var StyledImage = styled59.img`
10558
- border-radius: ${({ $borderRadius }) => isNotNil24($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
10559
- ${({ $fillContainer }) => getFillStyle2($fillContainer)};
10560
- object-fit: ${({ $objFit }) => $objFit};
10561
- object-position: ${({ $objPosition }) => $objPosition};
10562
- `;
10563
- var Image = ({
10564
- src,
10565
- alt,
10566
- borderRadius,
10567
- fill: fillContainer = false,
10568
- fit: objFit,
10569
- loading = "lazy",
10570
- position: objPosition,
10571
- ...otherProps
10572
- }) => /* @__PURE__ */ jsx225(
10573
- StyledImage,
10574
- {
10575
- $borderRadius: borderRadius,
10576
- $fillContainer: fillContainer,
10577
- $objFit: objFit,
10578
- $objPosition: objPosition,
10579
- alt,
10580
- loading,
10581
- src,
10582
- ...otherProps
10583
- }
10584
- );
10585
- Image.displayName = "Image";
10586
10677
  export {
10587
10678
  ActionButton,
10588
10679
  Avatar,
@@ -10642,6 +10733,12 @@ export {
10642
10733
  Stack,
10643
10734
  SubMenu,
10644
10735
  Tab,
10736
+ Table,
10737
+ TableBody,
10738
+ TableCell,
10739
+ TableFooter,
10740
+ TableHead,
10741
+ TableRow,
10645
10742
  Tabs,
10646
10743
  Tag,
10647
10744
  Text,