@wistia/ui 0.8.26 → 0.8.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1668,7 +1668,7 @@ declare const Icon: {
1668
1668
 
1669
1669
  type IconButtonProps = {
1670
1670
  /**
1671
- * Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
1671
+ * Accessible text for screen readers.
1672
1672
  */
1673
1673
  label: string;
1674
1674
  /**
@@ -1682,7 +1682,7 @@ type IconButtonProps = {
1682
1682
  */
1683
1683
  declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1684
1684
  /**
1685
- * Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
1685
+ * Accessible text for screen readers.
1686
1686
  */
1687
1687
  label: string;
1688
1688
  /**
@@ -1691,7 +1691,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1691
1691
  children: JSX.Element;
1692
1692
  } & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
1693
1693
  /**
1694
- * Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
1694
+ * Accessible text for screen readers.
1695
1695
  */
1696
1696
  label: string;
1697
1697
  /**
@@ -2242,9 +2242,9 @@ declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_run
2242
2242
  declare const MenuItemDescription: ({ children }: MenuItemDescriptionProps) => react_jsx_runtime.JSX.Element;
2243
2243
 
2244
2244
  type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
2245
- /** The label for the radio group */
2246
- label: ReactNode;
2247
- /** The radio items */
2245
+ /**
2246
+ * The radio items
2247
+ */
2248
2248
  children: ReactNode | ReactNode[];
2249
2249
  /**
2250
2250
  * @ignore
@@ -2252,7 +2252,7 @@ type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
2252
2252
  asChild?: never;
2253
2253
  };
2254
2254
  declare const MenuRadioGroup: {
2255
- ({ children, label, ...props }: MenuRadioGroupProps): react_jsx_runtime.JSX.Element;
2255
+ ({ children, ...props }: MenuRadioGroupProps): react_jsx_runtime.JSX.Element;
2256
2256
  displayName: string;
2257
2257
  };
2258
2258
 
package/dist/index.d.ts CHANGED
@@ -1668,7 +1668,7 @@ declare const Icon: {
1668
1668
 
1669
1669
  type IconButtonProps = {
1670
1670
  /**
1671
- * Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
1671
+ * Accessible text for screen readers.
1672
1672
  */
1673
1673
  label: string;
1674
1674
  /**
@@ -1682,7 +1682,7 @@ type IconButtonProps = {
1682
1682
  */
1683
1683
  declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1684
1684
  /**
1685
- * Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
1685
+ * Accessible text for screen readers.
1686
1686
  */
1687
1687
  label: string;
1688
1688
  /**
@@ -1691,7 +1691,7 @@ declare const IconButton: react.ForwardRefExoticComponent<(Omit<{
1691
1691
  children: JSX.Element;
1692
1692
  } & Omit<ButtonAsButtonProps, "leftIcon" | "rightIcon" | "fullWidth">, "ref"> | Omit<{
1693
1693
  /**
1694
- * Accessible text for screen readers. Also shows up in a tooltip unless `disableTooltip` is true.
1694
+ * Accessible text for screen readers.
1695
1695
  */
1696
1696
  label: string;
1697
1697
  /**
@@ -2242,9 +2242,9 @@ declare const MenuItemLabel: ({ children }: MenuItemLabelProps) => react_jsx_run
2242
2242
  declare const MenuItemDescription: ({ children }: MenuItemDescriptionProps) => react_jsx_runtime.JSX.Element;
2243
2243
 
2244
2244
  type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
2245
- /** The label for the radio group */
2246
- label: ReactNode;
2247
- /** The radio items */
2245
+ /**
2246
+ * The radio items
2247
+ */
2248
2248
  children: ReactNode | ReactNode[];
2249
2249
  /**
2250
2250
  * @ignore
@@ -2252,7 +2252,7 @@ type MenuRadioGroupProps = DropdownMenuRadioGroupProps & {
2252
2252
  asChild?: never;
2253
2253
  };
2254
2254
  declare const MenuRadioGroup: {
2255
- ({ children, label, ...props }: MenuRadioGroupProps): react_jsx_runtime.JSX.Element;
2255
+ ({ children, ...props }: MenuRadioGroupProps): react_jsx_runtime.JSX.Element;
2256
2256
  displayName: string;
2257
2257
  };
2258
2258
 
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.8.26
3
+ * @license @wistia/ui v0.8.27
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -8369,6 +8369,11 @@ Checkbox.displayName = "Checkbox";
8369
8369
 
8370
8370
  // src/components/ClickRegion/ClickRegion.tsx
8371
8371
  import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback8, useEffect as useEffect8 } from "react";
8372
+ var isClickableElement = (element) => {
8373
+ if (!element) return false;
8374
+ const el = element;
8375
+ return el.closest("button") !== null || el.closest("a") !== null || el.closest("input") !== null || el.closest("select") !== null || el.closest("textarea") !== null || el.closest("label") !== null || el.closest("[data-wui-faux-input]") !== null;
8376
+ };
8372
8377
  var ClickRegion = ({ children, targetRef }) => {
8373
8378
  useEffect8(() => {
8374
8379
  if (targetRef.current && targetRef.current.tagName === "A") {
@@ -8381,7 +8386,10 @@ var ClickRegion = ({ children, targetRef }) => {
8381
8386
  const handleClick = useCallback8(
8382
8387
  (event) => {
8383
8388
  const node = targetRef.current;
8384
- if (event.target instanceof HTMLAnchorElement && !event.target.hasAttribute("data-click-region-target-link") || event.target instanceof HTMLButtonElement && !event.target.hasAttribute("data-click-region-target-button")) {
8389
+ if (event.target === node) {
8390
+ return;
8391
+ }
8392
+ if (isClickableElement(event.target) && event.target !== node) {
8385
8393
  event.stopPropagation();
8386
8394
  return;
8387
8395
  }
@@ -10654,12 +10662,9 @@ MenuItem.displayName = "MenuItem";
10654
10662
  import {
10655
10663
  DropdownMenuRadioGroup
10656
10664
  } from "@radix-ui/react-dropdown-menu";
10657
- import { jsx as jsx238, jsxs as jsxs29 } from "react/jsx-runtime";
10658
- var MenuRadioGroup = ({ children, label, ...props }) => {
10659
- return /* @__PURE__ */ jsxs29(DropdownMenuRadioGroup, { ...props, children: [
10660
- /* @__PURE__ */ jsx238(MenuLabel, { children: label }),
10661
- children
10662
- ] });
10665
+ import { jsx as jsx238 } from "react/jsx-runtime";
10666
+ var MenuRadioGroup = ({ children, ...props }) => {
10667
+ return /* @__PURE__ */ jsx238(DropdownMenuRadioGroup, { ...props, children });
10663
10668
  };
10664
10669
  MenuRadioGroup.displayName = "MenuRadioGroup";
10665
10670
 
@@ -10706,9 +10711,9 @@ import {
10706
10711
  DropdownMenuItemIndicator as DropdownMenuItemIndicator2
10707
10712
  } from "@radix-ui/react-dropdown-menu";
10708
10713
  import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10709
- import { jsx as jsx240, jsxs as jsxs30 } from "react/jsx-runtime";
10714
+ import { jsx as jsx240, jsxs as jsxs29 } from "react/jsx-runtime";
10710
10715
  var CheckboxIndicator = ({ checked, ...props }) => {
10711
- return checked ? /* @__PURE__ */ jsxs30(
10716
+ return checked ? /* @__PURE__ */ jsxs29(
10712
10717
  "svg",
10713
10718
  {
10714
10719
  ...props,
@@ -10734,7 +10739,7 @@ var CheckboxIndicator = ({ checked, ...props }) => {
10734
10739
  )
10735
10740
  ]
10736
10741
  }
10737
- ) : /* @__PURE__ */ jsxs30(
10742
+ ) : /* @__PURE__ */ jsxs29(
10738
10743
  "svg",
10739
10744
  {
10740
10745
  ...props,
@@ -10818,7 +10823,7 @@ var ModalCloseButton = () => {
10818
10823
  };
10819
10824
 
10820
10825
  // src/components/Modal/ModalHeader.tsx
10821
- import { jsx as jsx242, jsxs as jsxs31 } from "react/jsx-runtime";
10826
+ import { jsx as jsx242, jsxs as jsxs30 } from "react/jsx-runtime";
10822
10827
  var Header = styled46.header`
10823
10828
  display: flex;
10824
10829
  order: 1;
@@ -10842,7 +10847,7 @@ var ModalHeader = ({
10842
10847
  hideCloseButton
10843
10848
  }) => {
10844
10849
  const TitleComponent = hideTitle ? /* @__PURE__ */ jsx242(ScreenReaderOnly, { children: /* @__PURE__ */ jsx242(Title, { children: title }) }) : /* @__PURE__ */ jsx242(Title, { children: title });
10845
- return /* @__PURE__ */ jsxs31(Header, { $hideTitle: hideTitle, children: [
10850
+ return /* @__PURE__ */ jsxs30(Header, { $hideTitle: hideTitle, children: [
10846
10851
  TitleComponent,
10847
10852
  hideCloseButton ? null : /* @__PURE__ */ jsx242(ModalCloseButton, {})
10848
10853
  ] });
@@ -11027,7 +11032,7 @@ var Backdrop = forwardRef18(
11027
11032
  Backdrop.displayName = "Backdrop";
11028
11033
 
11029
11034
  // src/components/Modal/Modal.tsx
11030
- import { jsx as jsx245, jsxs as jsxs32 } from "react/jsx-runtime";
11035
+ import { jsx as jsx245, jsxs as jsxs31 } from "react/jsx-runtime";
11031
11036
  var DEFAULT_MODAL_WIDTH = "532px";
11032
11037
  var ModalBody = styled49.div`
11033
11038
  flex-direction: column;
@@ -11059,9 +11064,9 @@ var Modal = forwardRef19(
11059
11064
  }
11060
11065
  },
11061
11066
  open: isOpen,
11062
- children: /* @__PURE__ */ jsxs32(DialogPortal, { children: [
11067
+ children: /* @__PURE__ */ jsxs31(DialogPortal, { children: [
11063
11068
  /* @__PURE__ */ jsx245(Backdrop, {}),
11064
- /* @__PURE__ */ jsxs32(
11069
+ /* @__PURE__ */ jsxs31(
11065
11070
  ModalContent,
11066
11071
  {
11067
11072
  ref,
@@ -11111,7 +11116,7 @@ var getControlProps = (isOpen, onOpenChange) => {
11111
11116
  // src/components/Popover/PopoverArrow.tsx
11112
11117
  import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
11113
11118
  import styled50, { css as css31, keyframes as keyframes4 } from "styled-components";
11114
- import { jsx as jsx246, jsxs as jsxs33 } from "react/jsx-runtime";
11119
+ import { jsx as jsx246, jsxs as jsxs32 } from "react/jsx-runtime";
11115
11120
  var StyledPath = styled50.path`
11116
11121
  fill: var(--wui-color-border-secondary);
11117
11122
  `;
@@ -11150,7 +11155,7 @@ var StyledCircle = styled50.circle`
11150
11155
  }
11151
11156
  `;
11152
11157
  var PopoverArrow = ({ isAnimated }) => {
11153
- return /* @__PURE__ */ jsx246(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs33(
11158
+ return /* @__PURE__ */ jsx246(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs32(
11154
11159
  "svg",
11155
11160
  {
11156
11161
  fill: "none",
@@ -11189,7 +11194,7 @@ var PopoverArrow = ({ isAnimated }) => {
11189
11194
  PopoverArrow.displayName = "PopoverArrow";
11190
11195
 
11191
11196
  // src/components/Popover/Popover.tsx
11192
- import { jsx as jsx247, jsxs as jsxs34 } from "react/jsx-runtime";
11197
+ import { jsx as jsx247, jsxs as jsxs33 } from "react/jsx-runtime";
11193
11198
  var StyledContent2 = styled51(Content2)`
11194
11199
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11195
11200
  ${({ $unstyled }) => !$unstyled && css32`
@@ -11228,9 +11233,9 @@ var Popover = ({
11228
11233
  "--wui-popover-max-width": maxWidth,
11229
11234
  "--wui-popover-max-height": maxHeight
11230
11235
  };
11231
- return /* @__PURE__ */ jsxs34(Root, { ...getControlProps(isOpen, onOpenChange), children: [
11236
+ return /* @__PURE__ */ jsxs33(Root, { ...getControlProps(isOpen, onOpenChange), children: [
11232
11237
  /* @__PURE__ */ jsx247(Trigger2, { asChild: true, children: trigger }),
11233
- /* @__PURE__ */ jsx247(Portal, { children: /* @__PURE__ */ jsxs34(
11238
+ /* @__PURE__ */ jsx247(Portal, { children: /* @__PURE__ */ jsxs33(
11234
11239
  StyledContent2,
11235
11240
  {
11236
11241
  $colorScheme: colorScheme,
@@ -11261,7 +11266,7 @@ Popover.displayName = "Popover";
11261
11266
  import styled52 from "styled-components";
11262
11267
  import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
11263
11268
  import { isNotNil as isNotNil26 } from "@wistia/type-guards";
11264
- import { jsx as jsx248, jsxs as jsxs35 } from "react/jsx-runtime";
11269
+ import { jsx as jsx248, jsxs as jsxs34 } from "react/jsx-runtime";
11265
11270
  var ProgressBarWrapper = styled52.div`
11266
11271
  --progress-bar-height: 8px;
11267
11272
  --progress-bar-indicator-color: var(--wui-color-bg-fill);
@@ -11314,7 +11319,7 @@ var ProgressBar = ({
11314
11319
  labelRight,
11315
11320
  ...props
11316
11321
  }) => {
11317
- return /* @__PURE__ */ jsxs35(ProgressBarWrapper, { children: [
11322
+ return /* @__PURE__ */ jsxs34(ProgressBarWrapper, { children: [
11318
11323
  isNotNil26(labelLeft) ? /* @__PURE__ */ jsx248(ProgressBarLabel, { children: labelLeft }) : null,
11319
11324
  /* @__PURE__ */ jsx248(
11320
11325
  StyledProgressBar,
@@ -11340,7 +11345,7 @@ ProgressBar.displayName = "ProgressBar";
11340
11345
  import { forwardRef as forwardRef20, useId as useId3 } from "react";
11341
11346
  import styled53, { css as css33 } from "styled-components";
11342
11347
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
11343
- import { jsx as jsx249, jsxs as jsxs36 } from "react/jsx-runtime";
11348
+ import { jsx as jsx249, jsxs as jsxs35 } from "react/jsx-runtime";
11344
11349
  var RadioIcon = () => /* @__PURE__ */ jsx249(
11345
11350
  "svg",
11346
11351
  {
@@ -11457,7 +11462,7 @@ var Radio = forwardRef20(
11457
11462
  }, ref) => {
11458
11463
  const generatedId = useId3();
11459
11464
  const computedId = isNonEmptyString3(id) ? id : `wistia-ui-radio-${generatedId}`;
11460
- return /* @__PURE__ */ jsxs36(
11465
+ return /* @__PURE__ */ jsxs35(
11461
11466
  StyledRadioWrapper,
11462
11467
  {
11463
11468
  $disabled: disabled,
@@ -11584,7 +11589,7 @@ var SelectedItemIndicator = () => {
11584
11589
  };
11585
11590
 
11586
11591
  // src/components/SegmentedControl/SegmentedControl.tsx
11587
- import { jsx as jsx252, jsxs as jsxs37 } from "react/jsx-runtime";
11592
+ import { jsx as jsx252, jsxs as jsxs36 } from "react/jsx-runtime";
11588
11593
  var segmentedControlStyles = css34`
11589
11594
  display: inline-flex;
11590
11595
  background-color: var(--wui-color-bg-surface-secondary);
@@ -11623,7 +11628,7 @@ var SegmentedControl = forwardRef21(
11623
11628
  type: "single",
11624
11629
  value: selectedValue,
11625
11630
  ...props,
11626
- children: /* @__PURE__ */ jsx252(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs37(SelectedItemStyleProvider, { children: [
11631
+ children: /* @__PURE__ */ jsx252(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs36(SelectedItemStyleProvider, { children: [
11627
11632
  /* @__PURE__ */ jsx252(SelectedItemIndicator, {}),
11628
11633
  children
11629
11634
  ] }) })
@@ -11638,7 +11643,7 @@ import { forwardRef as forwardRef22, useEffect as useEffect11, useRef as useRef1
11638
11643
  import styled56, { css as css35 } from "styled-components";
11639
11644
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
11640
11645
  import { isNotNil as isNotNil27 } from "@wistia/type-guards";
11641
- import { jsxs as jsxs38 } from "react/jsx-runtime";
11646
+ import { jsxs as jsxs37 } from "react/jsx-runtime";
11642
11647
  var segmentedControlItemStyles = css35`
11643
11648
  all: unset; /* ToggleGroupItem is a button element */
11644
11649
  align-items: center;
@@ -11740,7 +11745,7 @@ var SegmentedControlItem = forwardRef22(
11740
11745
  resizeObserver.disconnect();
11741
11746
  };
11742
11747
  }, [selectedValue, setSelectedItemMeasurements, value]);
11743
- return /* @__PURE__ */ jsxs38(
11748
+ return /* @__PURE__ */ jsxs37(
11744
11749
  StyledSegmentedControlItem,
11745
11750
  {
11746
11751
  ref: combinedRef,
@@ -11772,7 +11777,7 @@ import {
11772
11777
  } from "@radix-ui/react-select";
11773
11778
  import { forwardRef as forwardRef23 } from "react";
11774
11779
  import styled57 from "styled-components";
11775
- import { jsx as jsx253, jsxs as jsxs39 } from "react/jsx-runtime";
11780
+ import { jsx as jsx253, jsxs as jsxs38 } from "react/jsx-runtime";
11776
11781
  var StyledTrigger = styled57(Trigger3)`
11777
11782
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11778
11783
  ${inputCssVariables};
@@ -11845,13 +11850,13 @@ var Select = forwardRef23(
11845
11850
  ...props
11846
11851
  }, forwardedRef) => {
11847
11852
  const responsiveFullWidth = useResponsiveProp(fullWidth);
11848
- return /* @__PURE__ */ jsxs39(
11853
+ return /* @__PURE__ */ jsxs38(
11849
11854
  Root2,
11850
11855
  {
11851
11856
  ...props,
11852
11857
  onValueChange: onChange,
11853
11858
  children: [
11854
- /* @__PURE__ */ jsxs39(
11859
+ /* @__PURE__ */ jsxs38(
11855
11860
  StyledTrigger,
11856
11861
  {
11857
11862
  ref: forwardedRef,
@@ -11870,7 +11875,7 @@ var Select = forwardRef23(
11870
11875
  ]
11871
11876
  }
11872
11877
  ),
11873
- /* @__PURE__ */ jsx253(Portal2, { children: /* @__PURE__ */ jsxs39(StyledContent3, { position: "popper", children: [
11878
+ /* @__PURE__ */ jsx253(Portal2, { children: /* @__PURE__ */ jsxs38(StyledContent3, { position: "popper", children: [
11874
11879
  /* @__PURE__ */ jsx253(ScrollUpButton, { children: /* @__PURE__ */ jsx253(Icon, { type: "caret-up" }) }),
11875
11880
  /* @__PURE__ */ jsx253(Viewport, { children }),
11876
11881
  /* @__PURE__ */ jsx253(ScrollDownButton, { children: /* @__PURE__ */ jsx253(Icon, { type: "caret-down" }) })
@@ -11887,7 +11892,7 @@ import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
11887
11892
  import { forwardRef as forwardRef24 } from "react";
11888
11893
  import styled58 from "styled-components";
11889
11894
  import { isNotNil as isNotNil28 } from "@wistia/type-guards";
11890
- import { jsx as jsx254, jsxs as jsxs40 } from "react/jsx-runtime";
11895
+ import { jsx as jsx254, jsxs as jsxs39 } from "react/jsx-runtime";
11891
11896
  var StyledItem = styled58(Item)`
11892
11897
  ${variantStyleMap2.body3};
11893
11898
  display: flex;
@@ -11917,7 +11922,7 @@ var StyledIconContainer = styled58.span`
11917
11922
  `;
11918
11923
  var SelectOption = forwardRef24(
11919
11924
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
11920
- return /* @__PURE__ */ jsxs40(
11925
+ return /* @__PURE__ */ jsxs39(
11921
11926
  StyledItem,
11922
11927
  {
11923
11928
  ...props,
@@ -11930,7 +11935,7 @@ var SelectOption = forwardRef24(
11930
11935
  type: "checkmark"
11931
11936
  }
11932
11937
  ) }) }),
11933
- isNotNil28(selectedDisplayValue) ? /* @__PURE__ */ jsxs40("div", { children: [
11938
+ isNotNil28(selectedDisplayValue) ? /* @__PURE__ */ jsxs39("div", { children: [
11934
11939
  children,
11935
11940
  /* @__PURE__ */ jsx254("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx254(ItemText, { children: selectedDisplayValue }) })
11936
11941
  ] }) : /* @__PURE__ */ jsx254(ItemText, { children })
@@ -11944,12 +11949,12 @@ SelectOption.displayName = "SelectOption";
11944
11949
  // src/components/Select/SelectOptionGroup.tsx
11945
11950
  import { Group, Label as Label3 } from "@radix-ui/react-select";
11946
11951
  import styled59 from "styled-components";
11947
- import { jsx as jsx255, jsxs as jsxs41 } from "react/jsx-runtime";
11952
+ import { jsx as jsx255, jsxs as jsxs40 } from "react/jsx-runtime";
11948
11953
  var StyledLabel4 = styled59(Label3)`
11949
11954
  padding: var(--wui-select-option-padding);
11950
11955
  `;
11951
11956
  var SelectOptionGroup = ({ children, label, ...props }) => {
11952
- return /* @__PURE__ */ jsxs41(Group, { ...props, children: [
11957
+ return /* @__PURE__ */ jsxs40(Group, { ...props, children: [
11953
11958
  /* @__PURE__ */ jsx255(StyledLabel4, { children: /* @__PURE__ */ jsx255(
11954
11959
  Text,
11955
11960
  {
@@ -11966,7 +11971,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
11966
11971
  import { forwardRef as forwardRef25, useId as useId4 } from "react";
11967
11972
  import styled60, { css as css36 } from "styled-components";
11968
11973
  import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11969
- import { jsx as jsx256, jsxs as jsxs42 } from "react/jsx-runtime";
11974
+ import { jsx as jsx256, jsxs as jsxs41 } from "react/jsx-runtime";
11970
11975
  var sizeSmall3 = css36`
11971
11976
  --wui-size-small-width: 24px;
11972
11977
  --wui-size-small-height: 14px;
@@ -12085,7 +12090,7 @@ var Switch = forwardRef25(
12085
12090
  }, ref) => {
12086
12091
  const generatedId = useId4();
12087
12092
  const computedId = isNonEmptyString4(id) ? id : `wistia-ui-switch-${generatedId}`;
12088
- return /* @__PURE__ */ jsxs42(StyledSwitchWrapper, { $disabled: disabled, children: [
12093
+ return /* @__PURE__ */ jsxs41(StyledSwitchWrapper, { $disabled: disabled, children: [
12089
12094
  /* @__PURE__ */ jsx256(
12090
12095
  StyledHiddenSwitchInput,
12091
12096
  {
@@ -12310,7 +12315,7 @@ var useTabsValue = () => {
12310
12315
  };
12311
12316
 
12312
12317
  // src/components/Tabs/TabItem.tsx
12313
- import { jsxs as jsxs43 } from "react/jsx-runtime";
12318
+ import { jsxs as jsxs42 } from "react/jsx-runtime";
12314
12319
  var StyledTabItem = styled69(RadixTab)`
12315
12320
  ${segmentedControlItemStyles}
12316
12321
 
@@ -12349,7 +12354,7 @@ var TabItem = forwardRef26(
12349
12354
  resizeObserver.disconnect();
12350
12355
  };
12351
12356
  }, [selectedValue, setSelectedItemMeasurements, value]);
12352
- return /* @__PURE__ */ jsxs43(
12357
+ return /* @__PURE__ */ jsxs42(
12353
12358
  StyledTabItem,
12354
12359
  {
12355
12360
  ref: combinedRef,
@@ -12407,7 +12412,7 @@ var SelectedItemIndicator2 = () => {
12407
12412
  };
12408
12413
 
12409
12414
  // src/components/Tabs/Tabs.tsx
12410
- import { jsx as jsx266, jsxs as jsxs44 } from "react/jsx-runtime";
12415
+ import { jsx as jsx266, jsxs as jsxs43 } from "react/jsx-runtime";
12411
12416
  var TabsContainer = styled71.div`
12412
12417
  display: flex;
12413
12418
  flex-direction: column;
@@ -12450,8 +12455,8 @@ var Tabs = forwardRef27(
12450
12455
  activationMode: "automatic",
12451
12456
  ...props,
12452
12457
  ...modeProps,
12453
- children: /* @__PURE__ */ jsx266(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs44(SelectedItemStyleProvider, { children: [
12454
- /* @__PURE__ */ jsxs44(
12458
+ children: /* @__PURE__ */ jsx266(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs43(SelectedItemStyleProvider, { children: [
12459
+ /* @__PURE__ */ jsxs43(
12455
12460
  TabList,
12456
12461
  {
12457
12462
  ariaLabel,
@@ -12533,7 +12538,7 @@ Tab.displayName = "Tab";
12533
12538
  import { forwardRef as forwardRef29 } from "react";
12534
12539
  import styled72 from "styled-components";
12535
12540
  import { isNil as isNil16, isNotNil as isNotNil31, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
12536
- import { Fragment as Fragment8, jsx as jsx268, jsxs as jsxs45 } from "react/jsx-runtime";
12541
+ import { Fragment as Fragment8, jsx as jsx268, jsxs as jsxs44 } from "react/jsx-runtime";
12537
12542
  var TagLabel = styled72.a`
12538
12543
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12539
12544
  font-size: var(--wui-typography-label-4-size);
@@ -12625,9 +12630,9 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12625
12630
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12626
12631
  );
12627
12632
  }
12628
- return /* @__PURE__ */ jsxs45(Fragment8, { children: [
12633
+ return /* @__PURE__ */ jsxs44(Fragment8, { children: [
12629
12634
  /* @__PURE__ */ jsx268(TagDivider, { $colorScheme: colorScheme }),
12630
- /* @__PURE__ */ jsxs45(
12635
+ /* @__PURE__ */ jsxs44(
12631
12636
  StyledRemoveButton,
12632
12637
  {
12633
12638
  $colorScheme: colorScheme,
@@ -12651,14 +12656,14 @@ var Tag = forwardRef29(
12651
12656
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12652
12657
  const hasIcon = isNotNil31(icon);
12653
12658
  const labelProps = isNotNil31(href) && isNonEmptyString5(href) ? { href, as: "a" } : { as: "span" };
12654
- return /* @__PURE__ */ jsxs45(
12659
+ return /* @__PURE__ */ jsxs44(
12655
12660
  StyledTag,
12656
12661
  {
12657
12662
  ref,
12658
12663
  $colorScheme: colorScheme,
12659
12664
  ...props,
12660
12665
  children: [
12661
- /* @__PURE__ */ jsxs45(
12666
+ /* @__PURE__ */ jsxs44(
12662
12667
  TagLabel,
12663
12668
  {
12664
12669
  ...labelProps,
@@ -12687,7 +12692,7 @@ Tag.displayName = "Tag";
12687
12692
  // src/components/Thumbnail/ThumbnailBadge.tsx
12688
12693
  import styled73 from "styled-components";
12689
12694
  import { isNotNil as isNotNil32 } from "@wistia/type-guards";
12690
- import { jsx as jsx269, jsxs as jsxs46 } from "react/jsx-runtime";
12695
+ import { jsx as jsx269, jsxs as jsxs45 } from "react/jsx-runtime";
12691
12696
  var StyledThumbnailBadge = styled73.div`
12692
12697
  align-items: center;
12693
12698
  background-color: rgb(0 0 0 / 50%);
@@ -12713,7 +12718,7 @@ var StyledThumbnailBadge = styled73.div`
12713
12718
  }
12714
12719
  `;
12715
12720
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12716
- return /* @__PURE__ */ jsxs46(StyledThumbnailBadge, { ...props, children: [
12721
+ return /* @__PURE__ */ jsxs45(StyledThumbnailBadge, { ...props, children: [
12717
12722
  isNotNil32(icon) && icon,
12718
12723
  /* @__PURE__ */ jsx269("span", { children: label })
12719
12724
  ] });
@@ -12858,7 +12863,7 @@ var getBackgroundGradient = (gradientName = void 0) => {
12858
12863
  };
12859
12864
 
12860
12865
  // src/components/Thumbnail/Thumbnail.tsx
12861
- import { jsx as jsx270, jsxs as jsxs47 } from "react/jsx-runtime";
12866
+ import { jsx as jsx270, jsxs as jsxs46 } from "react/jsx-runtime";
12862
12867
  var WideThumbnailImage = styled74.img`
12863
12868
  height: 100%;
12864
12869
  object-fit: cover;
@@ -12918,7 +12923,7 @@ var Thumbnail = forwardRef30(
12918
12923
  ...props
12919
12924
  }, ref) => {
12920
12925
  const backgroundUrl = thumbnailImageType === "square" && isNotNil34(thumbnailUrl) ? thumbnailUrl : void 0;
12921
- return /* @__PURE__ */ jsxs47(
12926
+ return /* @__PURE__ */ jsxs46(
12922
12927
  StyledThumbnail,
12923
12928
  {
12924
12929
  ref,
@@ -13053,7 +13058,7 @@ var ThumbnailCollage = ({
13053
13058
  // src/components/WistiaLogo/WistiaLogo.tsx
13054
13059
  import styled76, { css as css40 } from "styled-components";
13055
13060
  import { isNotNil as isNotNil35 } from "@wistia/type-guards";
13056
- import { jsx as jsx272, jsxs as jsxs48 } from "react/jsx-runtime";
13061
+ import { jsx as jsx272, jsxs as jsxs47 } from "react/jsx-runtime";
13057
13062
  var renderBrandmark = (brandmarkColor, iconOnly) => {
13058
13063
  if (iconOnly) {
13059
13064
  return /* @__PURE__ */ jsx272(
@@ -13151,7 +13156,7 @@ var WistiaLogo = ({
13151
13156
  };
13152
13157
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
13153
13158
  const logotypeColor = VARIANT_COLORS[variant].logotype;
13154
- const Logo = /* @__PURE__ */ jsxs48(
13159
+ const Logo = /* @__PURE__ */ jsxs47(
13155
13160
  WistiaLogoComponent,
13156
13161
  {
13157
13162
  $hoverColor: hoverColor,