@wistia/ui 0.5.7 → 0.6.0

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.5.7
3
+ * @license @wistia/ui v0.6.0
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -6650,7 +6650,12 @@ var ButtonGroupComponent = styled13.div`
6650
6650
  display: flex;
6651
6651
 
6652
6652
  /* this helps ensure that primary buttons appear at the top of the column */
6653
- flex-direction: ${({ $align }) => $align === "right" ? "column-reverse" : "column"};
6653
+ flex-direction: ${({ $collapse, $align }) => {
6654
+ if (!$collapse) {
6655
+ return "row";
6656
+ }
6657
+ return $align === "right" ? "column-reverse" : "column";
6658
+ }};
6654
6659
  gap: var(--wui-space-02);
6655
6660
  align-items: center;
6656
6661
  justify-content: ${({ $align }) => getAlignment($align)};
@@ -6670,6 +6675,7 @@ var ButtonGroup = ({
6670
6675
  children,
6671
6676
  align = "left",
6672
6677
  fullWidth = false,
6678
+ collapseOnSmallScreens = true,
6673
6679
  ...otherProps
6674
6680
  }) => {
6675
6681
  if (isNil10(children)) {
@@ -6679,6 +6685,7 @@ var ButtonGroup = ({
6679
6685
  ButtonGroupComponent,
6680
6686
  {
6681
6687
  $align: align,
6688
+ $collapse: collapseOnSmallScreens,
6682
6689
  $fullWidth: fullWidth,
6683
6690
  ...otherProps,
6684
6691
  children
@@ -8762,8 +8769,8 @@ var StyledSubTrigger = styled39(DropdownMenuSubTrigger)`
8762
8769
  `;
8763
8770
  var SubMenuTrigger = (props) => {
8764
8771
  const { isSmAndUp } = useMq();
8765
- const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
8766
- return /* @__PURE__ */ jsx200(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx200(
8772
+ const Trigger5 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
8773
+ return /* @__PURE__ */ jsx200(Trigger5, { asChild: true, children: /* @__PURE__ */ jsx200(
8767
8774
  MenuItemButton,
8768
8775
  {
8769
8776
  ...props,
@@ -9232,17 +9239,81 @@ var Modal = forwardRef17(
9232
9239
  );
9233
9240
  Modal.displayName = "Modal";
9234
9241
 
9242
+ // src/components/Popover/Popover.tsx
9243
+ import { Root as Root3, Trigger as Trigger3, Portal as Portal2, Content as Content3, Close, Arrow as Arrow2 } from "@radix-ui/react-popover";
9244
+ import styled45 from "styled-components";
9245
+
9246
+ // src/private/helpers/getControls/getControlProps.tsx
9247
+ import { isNotNil as isNotNil17 } from "@wistia/type-guards";
9248
+ var getControlProps = (isOpen, onOpenChange) => {
9249
+ return isNotNil17(onOpenChange) && isNotNil17(isOpen) ? { open: isOpen, onOpenChange } : {};
9250
+ };
9251
+
9252
+ // src/components/Popover/Popover.tsx
9253
+ import { jsx as jsx210, jsxs as jsxs28 } from "react/jsx-runtime";
9254
+ var StyledContent2 = styled45(Content3)`
9255
+ border-radius: var(--wui-border-radius-02);
9256
+ padding: var(--wui-space-04);
9257
+ max-width: 320px;
9258
+ background-color: var(--wui-color-bg-surface);
9259
+ box-shadow: var(--wui-elevation-01);
9260
+ border: 1px solid var(--wui-color-border);
9261
+
9262
+ [data-wui-popover-close] {
9263
+ position: absolute;
9264
+ top: var(--wui-space-02);
9265
+ right: var(--wui-space-02);
9266
+ }
9267
+ `;
9268
+ var StyledArrow = styled45(Arrow2)`
9269
+ fill: white;
9270
+ display: none;
9271
+ `;
9272
+ var Popover = ({
9273
+ children,
9274
+ trigger,
9275
+ isOpen = false,
9276
+ hideCloseButton = false,
9277
+ onOpenChange,
9278
+ ...props
9279
+ }) => {
9280
+ return /* @__PURE__ */ jsxs28(Root3, { ...getControlProps(isOpen, onOpenChange), children: [
9281
+ /* @__PURE__ */ jsx210(Trigger3, { asChild: true, children: trigger }),
9282
+ /* @__PURE__ */ jsx210(Portal2, { children: /* @__PURE__ */ jsxs28(
9283
+ StyledContent2,
9284
+ {
9285
+ sideOffset: 5,
9286
+ ...props,
9287
+ children: [
9288
+ /* @__PURE__ */ jsx210(StyledArrow, {}),
9289
+ !hideCloseButton && /* @__PURE__ */ jsx210(Close, { asChild: true, children: /* @__PURE__ */ jsx210(
9290
+ IconButton,
9291
+ {
9292
+ "data-wui-popover-close": true,
9293
+ label: "Close",
9294
+ variant: "ghost",
9295
+ children: /* @__PURE__ */ jsx210(Icon, { type: "close" })
9296
+ }
9297
+ ) }),
9298
+ /* @__PURE__ */ jsx210("div", { children })
9299
+ ]
9300
+ }
9301
+ ) })
9302
+ ] });
9303
+ };
9304
+ Popover.displayName = "Popover";
9305
+
9235
9306
  // src/components/Radio/Radio.tsx
9236
9307
  import { forwardRef as forwardRef18, useId as useId3 } from "react";
9237
- import styled45, { css as css25 } from "styled-components";
9308
+ import styled46, { css as css25 } from "styled-components";
9238
9309
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
9239
- import { jsx as jsx210, jsxs as jsxs28 } from "react/jsx-runtime";
9240
- var StyledLabelWrapper2 = styled45.div`
9310
+ import { jsx as jsx211, jsxs as jsxs29 } from "react/jsx-runtime";
9311
+ var StyledLabelWrapper2 = styled46.div`
9241
9312
  display: flex;
9242
9313
  flex-direction: column;
9243
9314
  padding-left: var(--wui-space-02);
9244
9315
  `;
9245
- var StyledRadio = styled45.input`
9316
+ var StyledRadio = styled46.input`
9246
9317
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
9247
9318
  appearance: none;
9248
9319
  margin: 0;
@@ -9284,7 +9355,7 @@ var defaultHoverStyle = css25`
9284
9355
  /* TODO Lamp to design hover state */
9285
9356
  cursor: pointer;
9286
9357
  `;
9287
- var StyledRadioWrapper = styled45.div`
9358
+ var StyledRadioWrapper = styled46.div`
9288
9359
  align-items: baseline;
9289
9360
  border: 1px solid transparent;
9290
9361
  border-radius: 4px;
@@ -9322,13 +9393,13 @@ var Radio = forwardRef18(
9322
9393
  }, ref) => {
9323
9394
  const generatedId = useId3();
9324
9395
  const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
9325
- return /* @__PURE__ */ jsxs28(
9396
+ return /* @__PURE__ */ jsxs29(
9326
9397
  StyledRadioWrapper,
9327
9398
  {
9328
9399
  "aria-invalid": otherProps["aria-invalid"],
9329
9400
  disabled,
9330
9401
  children: [
9331
- /* @__PURE__ */ jsx210(
9402
+ /* @__PURE__ */ jsx211(
9332
9403
  StyledRadio,
9333
9404
  {
9334
9405
  ref,
@@ -9343,8 +9414,8 @@ var Radio = forwardRef18(
9343
9414
  ...otherProps
9344
9415
  }
9345
9416
  ),
9346
- /* @__PURE__ */ jsxs28(StyledLabelWrapper2, { children: [
9347
- /* @__PURE__ */ jsx210(
9417
+ /* @__PURE__ */ jsxs29(StyledLabelWrapper2, { children: [
9418
+ /* @__PURE__ */ jsx211(
9348
9419
  Label,
9349
9420
  {
9350
9421
  disabled,
@@ -9353,7 +9424,7 @@ var Radio = forwardRef18(
9353
9424
  children: label
9354
9425
  }
9355
9426
  ),
9356
- /* @__PURE__ */ jsx210(LabelDescription, { children: description })
9427
+ /* @__PURE__ */ jsx211(LabelDescription, { children: description })
9357
9428
  ] })
9358
9429
  ]
9359
9430
  }
@@ -9364,13 +9435,13 @@ Radio.displayName = "Radio";
9364
9435
 
9365
9436
  // src/components/SegmentedControl/SegmentedControl.tsx
9366
9437
  import { forwardRef as forwardRef19 } from "react";
9367
- import styled47, { css as css26 } from "styled-components";
9438
+ import styled48, { css as css26 } from "styled-components";
9368
9439
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
9369
9440
  import { isNil as isNil13 } from "@wistia/type-guards";
9370
9441
 
9371
9442
  // src/components/SegmentedControl/useSelectedItemMeasurements.tsx
9372
9443
  import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState9 } from "react";
9373
- import { jsx as jsx211 } from "react/jsx-runtime";
9444
+ import { jsx as jsx212 } from "react/jsx-runtime";
9374
9445
  var SelectedItemMeasurementsContext = createContext6(
9375
9446
  null
9376
9447
  );
@@ -9385,7 +9456,7 @@ var SelectedItemMeasurementsProvider = ({
9385
9456
  }),
9386
9457
  [selectedItemMeasurements]
9387
9458
  );
9388
- return /* @__PURE__ */ jsx211(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
9459
+ return /* @__PURE__ */ jsx212(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
9389
9460
  };
9390
9461
  var useSelectedItemMeasurements = () => {
9391
9462
  const context = useContext5(SelectedItemMeasurementsContext);
@@ -9399,7 +9470,7 @@ var useSelectedItemMeasurements = () => {
9399
9470
 
9400
9471
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
9401
9472
  import { useMemo as useMemo9 } from "react";
9402
- import styled46 from "styled-components";
9473
+ import styled47 from "styled-components";
9403
9474
 
9404
9475
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
9405
9476
  import { createContext as createContext7, useContext as useContext6 } from "react";
@@ -9414,9 +9485,9 @@ var useSegmentedControlValue = () => {
9414
9485
  };
9415
9486
 
9416
9487
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
9417
- import { jsx as jsx212 } from "react/jsx-runtime";
9488
+ import { jsx as jsx213 } from "react/jsx-runtime";
9418
9489
  var Z_INDEX_TO_SIT_BEHIND_SIBLINGS = -1;
9419
- var SelectedItemIndicatorDiv = styled46.div`
9490
+ var SelectedItemIndicatorDiv = styled47.div`
9420
9491
  background-color: var(--wui-color-bg-fill-white);
9421
9492
  border-radius: var(--wui-border-radius-rounded);
9422
9493
  left: 0;
@@ -9441,7 +9512,7 @@ var SelectedItemIndicator = () => {
9441
9512
  if (!selectedValue) {
9442
9513
  return null;
9443
9514
  }
9444
- return /* @__PURE__ */ jsx212(
9515
+ return /* @__PURE__ */ jsx213(
9445
9516
  SelectedItemIndicatorDiv,
9446
9517
  {
9447
9518
  style: {
@@ -9454,7 +9525,7 @@ var SelectedItemIndicator = () => {
9454
9525
  };
9455
9526
 
9456
9527
  // src/components/SegmentedControl/SegmentedControl.tsx
9457
- import { jsx as jsx213, jsxs as jsxs29 } from "react/jsx-runtime";
9528
+ import { jsx as jsx214, jsxs as jsxs30 } from "react/jsx-runtime";
9458
9529
  var segmentedControlStyles = css26`
9459
9530
  display: inline-flex;
9460
9531
  background-color: var(--wui-color-bg-surface-secondary);
@@ -9465,7 +9536,7 @@ var segmentedControlStyles = css26`
9465
9536
  position: relative;
9466
9537
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
9467
9538
  `;
9468
- var StyledSegmentedControl = styled47(ToggleGroupRoot)`
9539
+ var StyledSegmentedControl = styled48(ToggleGroupRoot)`
9469
9540
  ${segmentedControlStyles}
9470
9541
  `;
9471
9542
  var SegmentedControl = forwardRef19(
@@ -9480,7 +9551,7 @@ var SegmentedControl = forwardRef19(
9480
9551
  if (isNil13(children)) {
9481
9552
  return null;
9482
9553
  }
9483
- return /* @__PURE__ */ jsx213(
9554
+ return /* @__PURE__ */ jsx214(
9484
9555
  StyledSegmentedControl,
9485
9556
  {
9486
9557
  ref,
@@ -9492,8 +9563,8 @@ var SegmentedControl = forwardRef19(
9492
9563
  type: "single",
9493
9564
  value: selectedValue,
9494
9565
  ...props,
9495
- children: /* @__PURE__ */ jsx213(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs29(SelectedItemMeasurementsProvider, { children: [
9496
- /* @__PURE__ */ jsx213(SelectedItemIndicator, {}),
9566
+ children: /* @__PURE__ */ jsx214(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs30(SelectedItemMeasurementsProvider, { children: [
9567
+ /* @__PURE__ */ jsx214(SelectedItemIndicator, {}),
9497
9568
  children
9498
9569
  ] }) })
9499
9570
  }
@@ -9504,26 +9575,26 @@ SegmentedControl.displayName = "SegmentedControl";
9504
9575
 
9505
9576
  // src/components/SegmentedControl/SegmentedControlItem.tsx
9506
9577
  import { forwardRef as forwardRef20, useEffect as useEffect5, useRef as useRef9 } from "react";
9507
- import styled48, { css as css27 } from "styled-components";
9578
+ import styled49, { css as css27 } from "styled-components";
9508
9579
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
9509
- import { isNotNil as isNotNil18 } from "@wistia/type-guards";
9580
+ import { isNotNil as isNotNil19 } from "@wistia/type-guards";
9510
9581
 
9511
9582
  // src/private/helpers/mergeRefs/mergeRefs.ts
9512
- import { isNotNil as isNotNil17, isFunction } from "@wistia/type-guards";
9583
+ import { isNotNil as isNotNil18, isFunction } from "@wistia/type-guards";
9513
9584
  var mergeRefs = (refs) => (value) => {
9514
9585
  refs.forEach((ref) => {
9515
9586
  if (isFunction(ref)) {
9516
9587
  ref(value);
9517
9588
  return;
9518
9589
  }
9519
- if (isNotNil17(ref)) {
9590
+ if (isNotNil18(ref)) {
9520
9591
  ref.current = value;
9521
9592
  }
9522
9593
  });
9523
9594
  };
9524
9595
 
9525
9596
  // src/components/SegmentedControl/SegmentedControlItem.tsx
9526
- import { jsxs as jsxs30 } from "react/jsx-runtime";
9597
+ import { jsxs as jsxs31 } from "react/jsx-runtime";
9527
9598
  var segmentedControlItemStyles = css27`
9528
9599
  all: unset; /* ToggleGroupItem is a button element */
9529
9600
  align-items: center;
@@ -9584,7 +9655,7 @@ var segmentedControlItemStyles = css27`
9584
9655
  }
9585
9656
  }
9586
9657
  `;
9587
- var StyledSegmentedControlItem = styled48(ToggleGroupItem)`
9658
+ var StyledSegmentedControlItem = styled49(ToggleGroupItem)`
9588
9659
  ${segmentedControlItemStyles}
9589
9660
  `;
9590
9661
  var SegmentedControlItem = forwardRef20(
@@ -9625,12 +9696,12 @@ var SegmentedControlItem = forwardRef20(
9625
9696
  resizeObserver.disconnect();
9626
9697
  };
9627
9698
  }, [selectedValue, setSelectedItemMeasurements, value]);
9628
- return /* @__PURE__ */ jsxs30(
9699
+ return /* @__PURE__ */ jsxs31(
9629
9700
  StyledSegmentedControlItem,
9630
9701
  {
9631
9702
  ref: combinedRef,
9632
- $hasLabel: isNotNil18(label),
9633
- "aria-label": isNotNil18(label) ? void 0 : ariaLabel,
9703
+ $hasLabel: isNotNil19(label),
9704
+ "aria-label": isNotNil19(label) ? void 0 : ariaLabel,
9634
9705
  disabled,
9635
9706
  onClick: handleClick,
9636
9707
  value,
@@ -9647,18 +9718,18 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
9647
9718
  // src/components/Tabs/Tabs.tsx
9648
9719
  import { forwardRef as forwardRef22, useState as useState10 } from "react";
9649
9720
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
9650
- import { isNotNil as isNotNil20, isNil as isNil14 } from "@wistia/type-guards";
9721
+ import { isNotNil as isNotNil21, isNil as isNil14 } from "@wistia/type-guards";
9651
9722
 
9652
9723
  // src/components/Tabs/TabPanel.tsx
9653
- import styled49 from "styled-components";
9724
+ import styled50 from "styled-components";
9654
9725
  import { Content as TabsContent } from "@radix-ui/react-tabs";
9655
- import { jsx as jsx214 } from "react/jsx-runtime";
9656
- var StyledTabPanel = styled49(TabsContent)`
9726
+ import { jsx as jsx215 } from "react/jsx-runtime";
9727
+ var StyledTabPanel = styled50(TabsContent)`
9657
9728
  display: flex;
9658
9729
  flex-direction: column;
9659
9730
  `;
9660
9731
  var TabPanel = ({ children, value, ...props }) => {
9661
- return /* @__PURE__ */ jsx214(
9732
+ return /* @__PURE__ */ jsx215(
9662
9733
  StyledTabPanel,
9663
9734
  {
9664
9735
  value,
@@ -9670,10 +9741,10 @@ var TabPanel = ({ children, value, ...props }) => {
9670
9741
  TabPanel.displayName = "TabPanel";
9671
9742
 
9672
9743
  // src/components/Tabs/TabList.tsx
9673
- import styled50 from "styled-components";
9744
+ import styled51 from "styled-components";
9674
9745
  import { List as RadixTabList } from "@radix-ui/react-tabs";
9675
- import { jsx as jsx215 } from "react/jsx-runtime";
9676
- var StyledTabList = styled50(RadixTabList)`
9746
+ import { jsx as jsx216 } from "react/jsx-runtime";
9747
+ var StyledTabList = styled51(RadixTabList)`
9677
9748
  ${segmentedControlStyles}
9678
9749
 
9679
9750
  margin-bottom: var(--wui-space-04);
@@ -9684,7 +9755,7 @@ var TabList = ({
9684
9755
  ariaLabel,
9685
9756
  ...props
9686
9757
  }) => {
9687
- return /* @__PURE__ */ jsx215(
9758
+ return /* @__PURE__ */ jsx216(
9688
9759
  StyledTabList,
9689
9760
  {
9690
9761
  $fullWidth: fullWidth,
@@ -9698,9 +9769,9 @@ TabList.displayName = "TabList";
9698
9769
 
9699
9770
  // src/components/Tabs/TabItem.tsx
9700
9771
  import { forwardRef as forwardRef21, useEffect as useEffect6, useRef as useRef10 } from "react";
9701
- import styled51 from "styled-components";
9772
+ import styled52 from "styled-components";
9702
9773
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
9703
- import { isNotNil as isNotNil19 } from "@wistia/type-guards";
9774
+ import { isNotNil as isNotNil20 } from "@wistia/type-guards";
9704
9775
 
9705
9776
  // src/components/Tabs/useTabsValue.tsx
9706
9777
  import { createContext as createContext8, useContext as useContext7 } from "react";
@@ -9715,8 +9786,8 @@ var useTabsValue = () => {
9715
9786
  };
9716
9787
 
9717
9788
  // src/components/Tabs/TabItem.tsx
9718
- import { jsxs as jsxs31 } from "react/jsx-runtime";
9719
- var StyledTabItem = styled51(RadixTab)`
9789
+ import { jsxs as jsxs32 } from "react/jsx-runtime";
9790
+ var StyledTabItem = styled52(RadixTab)`
9720
9791
  ${segmentedControlItemStyles}
9721
9792
 
9722
9793
  &:focus-visible {
@@ -9754,12 +9825,12 @@ var TabItem = forwardRef21(
9754
9825
  resizeObserver.disconnect();
9755
9826
  };
9756
9827
  }, [selectedValue, setSelectedItemMeasurements, value]);
9757
- return /* @__PURE__ */ jsxs31(
9828
+ return /* @__PURE__ */ jsxs32(
9758
9829
  StyledTabItem,
9759
9830
  {
9760
9831
  ref: combinedRef,
9761
- $hasLabel: isNotNil19(label),
9762
- "aria-label": isNotNil19(label) ? void 0 : ariaLabel,
9832
+ $hasLabel: isNotNil20(label),
9833
+ "aria-label": isNotNil20(label) ? void 0 : ariaLabel,
9763
9834
  disabled,
9764
9835
  value,
9765
9836
  children: [
@@ -9796,9 +9867,9 @@ var extractTabItems = (children) => {
9796
9867
 
9797
9868
  // src/components/Tabs/SelectedItemIndicator.tsx
9798
9869
  import { useMemo as useMemo10 } from "react";
9799
- import styled52 from "styled-components";
9800
- import { jsx as jsx216 } from "react/jsx-runtime";
9801
- var TabsSelectedItemIndicatorDiv = styled52(SelectedItemIndicatorDiv)`
9870
+ import styled53 from "styled-components";
9871
+ import { jsx as jsx217 } from "react/jsx-runtime";
9872
+ var TabsSelectedItemIndicatorDiv = styled53(SelectedItemIndicatorDiv)`
9802
9873
  &:has(~ ${StyledTabItem}:focus-visible) {
9803
9874
  outline: 2px solid var(--wui-color-focus-ring);
9804
9875
  }
@@ -9817,7 +9888,7 @@ var SelectedItemIndicator2 = () => {
9817
9888
  if (selectedValue == null) {
9818
9889
  return null;
9819
9890
  }
9820
- return /* @__PURE__ */ jsx216(
9891
+ return /* @__PURE__ */ jsx217(
9821
9892
  TabsSelectedItemIndicatorDiv,
9822
9893
  {
9823
9894
  style: {
@@ -9830,7 +9901,7 @@ var SelectedItemIndicator2 = () => {
9830
9901
  };
9831
9902
 
9832
9903
  // src/components/Tabs/Tabs.tsx
9833
- import { jsx as jsx217, jsxs as jsxs32 } from "react/jsx-runtime";
9904
+ import { jsx as jsx218, jsxs as jsxs33 } from "react/jsx-runtime";
9834
9905
  var Tabs = forwardRef22(
9835
9906
  ({
9836
9907
  children,
@@ -9847,25 +9918,25 @@ var Tabs = forwardRef22(
9847
9918
  defaultValue: defaultSelectedValue,
9848
9919
  onValueChange: setInternalSelectedValue
9849
9920
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
9850
- return /* @__PURE__ */ jsx217(
9921
+ return /* @__PURE__ */ jsx218(
9851
9922
  TabsRoot,
9852
9923
  {
9853
9924
  ref,
9854
9925
  activationMode: "automatic",
9855
9926
  ...otherProps,
9856
9927
  ...modeProps,
9857
- children: /* @__PURE__ */ jsx217(
9928
+ children: /* @__PURE__ */ jsx218(
9858
9929
  TabsValueProvider,
9859
9930
  {
9860
9931
  value: defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue,
9861
- children: /* @__PURE__ */ jsxs32(SelectedItemMeasurementsProvider, { children: [
9862
- /* @__PURE__ */ jsxs32(
9932
+ children: /* @__PURE__ */ jsxs33(SelectedItemMeasurementsProvider, { children: [
9933
+ /* @__PURE__ */ jsxs33(
9863
9934
  TabList,
9864
9935
  {
9865
9936
  ariaLabel,
9866
9937
  fullWidth,
9867
9938
  children: [
9868
- /* @__PURE__ */ jsx217(SelectedItemIndicator2, {}),
9939
+ /* @__PURE__ */ jsx218(SelectedItemIndicator2, {}),
9869
9940
  tabItems.map((tab) => {
9870
9941
  const {
9871
9942
  value,
@@ -9875,7 +9946,7 @@ var Tabs = forwardRef22(
9875
9946
  "aria-label": ariaLabelForTab
9876
9947
  } = tab.props;
9877
9948
  if (isNil14(icon)) {
9878
- return /* @__PURE__ */ jsx217(
9949
+ return /* @__PURE__ */ jsx218(
9879
9950
  TabItem,
9880
9951
  {
9881
9952
  disabled,
@@ -9885,8 +9956,8 @@ var Tabs = forwardRef22(
9885
9956
  value
9886
9957
  );
9887
9958
  }
9888
- if (isNotNil20(label)) {
9889
- return /* @__PURE__ */ jsx217(
9959
+ if (isNotNil21(label)) {
9960
+ return /* @__PURE__ */ jsx218(
9890
9961
  TabItem,
9891
9962
  {
9892
9963
  disabled,
@@ -9897,8 +9968,8 @@ var Tabs = forwardRef22(
9897
9968
  value
9898
9969
  );
9899
9970
  }
9900
- if (isNotNil20(ariaLabelForTab)) {
9901
- return /* @__PURE__ */ jsx217(
9971
+ if (isNotNil21(ariaLabelForTab)) {
9972
+ return /* @__PURE__ */ jsx218(
9902
9973
  TabItem,
9903
9974
  {
9904
9975
  "aria-label": ariaLabelForTab,
@@ -9914,7 +9985,7 @@ var Tabs = forwardRef22(
9914
9985
  ]
9915
9986
  }
9916
9987
  ),
9917
- tabItems.map((tab) => /* @__PURE__ */ jsx217(
9988
+ tabItems.map((tab) => /* @__PURE__ */ jsx218(
9918
9989
  TabPanel,
9919
9990
  {
9920
9991
  value: tab.props.value,
@@ -9933,18 +10004,18 @@ Tabs.displayName = "Tabs";
9933
10004
 
9934
10005
  // src/components/Tabs/Tab.tsx
9935
10006
  import { forwardRef as forwardRef23 } from "react";
9936
- import { jsx as jsx218 } from "react/jsx-runtime";
10007
+ import { jsx as jsx219 } from "react/jsx-runtime";
9937
10008
  var Tab = forwardRef23(({ children }, ref) => {
9938
- return /* @__PURE__ */ jsx218("div", { ref, children });
10009
+ return /* @__PURE__ */ jsx219("div", { ref, children });
9939
10010
  });
9940
10011
  Tab.displayName = "Tab";
9941
10012
 
9942
10013
  // src/components/Tag/Tag.tsx
9943
10014
  import { forwardRef as forwardRef24 } from "react";
9944
- import styled53 from "styled-components";
9945
- import { isNil as isNil15, isNotNil as isNotNil21, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
9946
- import { Fragment as Fragment7, jsx as jsx219, jsxs as jsxs33 } from "react/jsx-runtime";
9947
- var TagLabel = styled53.a`
10015
+ import styled54 from "styled-components";
10016
+ import { isNil as isNil15, isNotNil as isNotNil22, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
10017
+ import { Fragment as Fragment7, jsx as jsx220, jsxs as jsxs34 } from "react/jsx-runtime";
10018
+ var TagLabel = styled54.a`
9948
10019
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
9949
10020
  font-size: var(--wui-typography-label-4-size);
9950
10021
  font-weight: var(--wui-typography-label-4-weight);
@@ -9972,14 +10043,14 @@ var TagLabel = styled53.a`
9972
10043
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
9973
10044
  }
9974
10045
  `;
9975
- var TagDivider = styled53.div`
10046
+ var TagDivider = styled54.div`
9976
10047
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
9977
10048
  border-left: 1px solid var(--wui-color-border);
9978
10049
  display: flex;
9979
10050
  height: 14px;
9980
10051
  width: 1px;
9981
10052
  `;
9982
- var StyledRemoveButton = styled53.button`
10053
+ var StyledRemoveButton = styled54.button`
9983
10054
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
9984
10055
  all: unset;
9985
10056
  cursor: pointer;
@@ -10007,7 +10078,7 @@ var StyledRemoveButton = styled53.button`
10007
10078
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
10008
10079
  }
10009
10080
  `;
10010
- var StyledTag = styled53.div`
10081
+ var StyledTag = styled54.div`
10011
10082
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10012
10083
  align-items: center;
10013
10084
  background-color: var(--wui-color-bg-surface-secondary);
@@ -10028,23 +10099,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
10028
10099
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
10029
10100
  );
10030
10101
  }
10031
- return /* @__PURE__ */ jsxs33(Fragment7, { children: [
10032
- /* @__PURE__ */ jsx219(TagDivider, { $colorScheme: colorScheme }),
10033
- /* @__PURE__ */ jsxs33(
10102
+ return /* @__PURE__ */ jsxs34(Fragment7, { children: [
10103
+ /* @__PURE__ */ jsx220(TagDivider, { $colorScheme: colorScheme }),
10104
+ /* @__PURE__ */ jsxs34(
10034
10105
  StyledRemoveButton,
10035
10106
  {
10036
10107
  $colorScheme: colorScheme,
10037
10108
  onClick: onClickRemove,
10038
10109
  type: "button",
10039
10110
  children: [
10040
- /* @__PURE__ */ jsx219(
10111
+ /* @__PURE__ */ jsx220(
10041
10112
  Icon,
10042
10113
  {
10043
10114
  size: "sm",
10044
10115
  type: "close"
10045
10116
  }
10046
10117
  ),
10047
- /* @__PURE__ */ jsx219(ScreenReaderOnly, { children: onClickRemoveLabel })
10118
+ /* @__PURE__ */ jsx220(ScreenReaderOnly, { children: onClickRemoveLabel })
10048
10119
  ]
10049
10120
  }
10050
10121
  )
@@ -10052,15 +10123,15 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
10052
10123
  };
10053
10124
  var Tag = forwardRef24(
10054
10125
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
10055
- const labelProps = isNotNil21(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
10056
- return /* @__PURE__ */ jsxs33(
10126
+ const labelProps = isNotNil22(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
10127
+ return /* @__PURE__ */ jsxs34(
10057
10128
  StyledTag,
10058
10129
  {
10059
10130
  ref,
10060
10131
  $colorScheme: colorScheme,
10061
10132
  ...otherProps,
10062
10133
  children: [
10063
- /* @__PURE__ */ jsx219(
10134
+ /* @__PURE__ */ jsx220(
10064
10135
  TagLabel,
10065
10136
  {
10066
10137
  ...labelProps,
@@ -10068,7 +10139,7 @@ var Tag = forwardRef24(
10068
10139
  children: label
10069
10140
  }
10070
10141
  ),
10071
- /* @__PURE__ */ jsx219(
10142
+ /* @__PURE__ */ jsx220(
10072
10143
  RemoveButton,
10073
10144
  {
10074
10145
  colorScheme,
@@ -10084,26 +10155,26 @@ var Tag = forwardRef24(
10084
10155
  Tag.displayName = "Tag";
10085
10156
 
10086
10157
  // src/components/WistiaLogo/WistiaLogo.tsx
10087
- import styled54 from "styled-components";
10088
- import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10089
- import { jsx as jsx220, jsxs as jsxs34 } from "react/jsx-runtime";
10158
+ import styled55 from "styled-components";
10159
+ import { isNotNil as isNotNil23 } from "@wistia/type-guards";
10160
+ import { jsx as jsx221, jsxs as jsxs35 } from "react/jsx-runtime";
10090
10161
  var renderBrandmark = (brandmarkColor, iconOnly) => {
10091
10162
  if (iconOnly) {
10092
- return /* @__PURE__ */ jsx220(
10163
+ return /* @__PURE__ */ jsx221(
10093
10164
  "g",
10094
10165
  {
10095
10166
  "data-testid": "ui-wistia-logo-brandmark",
10096
10167
  fill: brandmarkColor,
10097
- children: /* @__PURE__ */ jsx220("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" })
10168
+ 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" })
10098
10169
  }
10099
10170
  );
10100
10171
  }
10101
- return /* @__PURE__ */ jsx220(
10172
+ return /* @__PURE__ */ jsx221(
10102
10173
  "g",
10103
10174
  {
10104
10175
  "data-testid": "ui-wistia-logo-brandmark",
10105
10176
  fill: brandmarkColor,
10106
- children: /* @__PURE__ */ jsx220("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" })
10177
+ 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" })
10107
10178
  }
10108
10179
  );
10109
10180
  };
@@ -10111,12 +10182,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
10111
10182
  if (iconOnly) {
10112
10183
  return null;
10113
10184
  }
10114
- return /* @__PURE__ */ jsx220(
10185
+ return /* @__PURE__ */ jsx221(
10115
10186
  "g",
10116
10187
  {
10117
10188
  "data-testid": "ui-wistia-logo-logotype",
10118
10189
  fill: logotypeColor,
10119
- children: /* @__PURE__ */ jsx220("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" })
10190
+ 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" })
10120
10191
  }
10121
10192
  );
10122
10193
  };
@@ -10126,7 +10197,7 @@ var computedViewBox = (iconOnly) => {
10126
10197
  }
10127
10198
  return "0 0 144 31.47";
10128
10199
  };
10129
- var WistiaLogoComponent = styled54.svg`
10200
+ var WistiaLogoComponent = styled55.svg`
10130
10201
  height: ${({ height }) => `${height}px`};
10131
10202
 
10132
10203
  /* ensure it will always fit on mobile */
@@ -10168,7 +10239,7 @@ var WistiaLogo = ({
10168
10239
  };
10169
10240
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
10170
10241
  const logotypeColor = VARIANT_COLORS[variant].logotype;
10171
- const Logo = /* @__PURE__ */ jsxs34(
10242
+ const Logo = /* @__PURE__ */ jsxs35(
10172
10243
  WistiaLogoComponent,
10173
10244
  {
10174
10245
  $hoverColor: hoverColor,
@@ -10178,32 +10249,32 @@ var WistiaLogo = ({
10178
10249
  xmlns: "http://www.w3.org/2000/svg",
10179
10250
  ...otherProps,
10180
10251
  children: [
10181
- /* @__PURE__ */ jsx220("title", { children: title }),
10182
- isNotNil22(description) ? /* @__PURE__ */ jsx220("desc", { children: description }) : null,
10252
+ /* @__PURE__ */ jsx221("title", { children: title }),
10253
+ isNotNil23(description) ? /* @__PURE__ */ jsx221("desc", { children: description }) : null,
10183
10254
  renderBrandmark(brandmarkColor, iconOnly),
10184
10255
  renderLogotype(logotypeColor, iconOnly)
10185
10256
  ]
10186
10257
  }
10187
10258
  );
10188
- return href !== void 0 ? /* @__PURE__ */ jsx220("a", { href, children: Logo }) : Logo;
10259
+ return href !== void 0 ? /* @__PURE__ */ jsx221("a", { href, children: Logo }) : Logo;
10189
10260
  };
10190
10261
  WistiaLogo.displayName = "WistiaLogo";
10191
10262
 
10192
10263
  // src/components/Select/Select.tsx
10193
10264
  import {
10194
- Root as Root3,
10195
- Trigger as Trigger3,
10196
- Portal as Portal2,
10197
- Content as Content3,
10265
+ Root as Root4,
10266
+ Trigger as Trigger4,
10267
+ Portal as Portal3,
10268
+ Content as Content4,
10198
10269
  ScrollUpButton,
10199
10270
  Viewport,
10200
10271
  Value,
10201
10272
  ScrollDownButton
10202
10273
  } from "@radix-ui/react-select";
10203
10274
  import { forwardRef as forwardRef25 } from "react";
10204
- import styled55 from "styled-components";
10205
- import { jsx as jsx221, jsxs as jsxs35 } from "react/jsx-runtime";
10206
- var StyledTrigger = styled55(Trigger3)`
10275
+ import styled56 from "styled-components";
10276
+ import { jsx as jsx222, jsxs as jsxs36 } from "react/jsx-runtime";
10277
+ var StyledTrigger = styled56(Trigger4)`
10207
10278
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10208
10279
  --wui-select-color-bg: var(--wui-color-bg-surface);
10209
10280
  --wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -10244,7 +10315,7 @@ var StyledTrigger = styled55(Trigger3)`
10244
10315
  background-color: var(--wui-color-bg-surface-disabled);
10245
10316
  }
10246
10317
  `;
10247
- var StyledContent2 = styled55(Content3)`
10318
+ var StyledContent3 = styled56(Content4)`
10248
10319
  --wui-select-content-border: var(--wui-color-border);
10249
10320
  --wui-select-content-bg: var(--wui-color-bg-surface);
10250
10321
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -10270,13 +10341,13 @@ var Select = forwardRef25(
10270
10341
  ...props
10271
10342
  }, forwardedRef) => {
10272
10343
  const responsiveFullWidth = useResponsiveProp(fullWidth);
10273
- return /* @__PURE__ */ jsxs35(
10274
- Root3,
10344
+ return /* @__PURE__ */ jsxs36(
10345
+ Root4,
10275
10346
  {
10276
10347
  ...props,
10277
10348
  onValueChange: onChange,
10278
10349
  children: [
10279
- /* @__PURE__ */ jsxs35(
10350
+ /* @__PURE__ */ jsxs36(
10280
10351
  StyledTrigger,
10281
10352
  {
10282
10353
  ref: forwardedRef,
@@ -10284,8 +10355,8 @@ var Select = forwardRef25(
10284
10355
  $fullWidth: responsiveFullWidth,
10285
10356
  ...props,
10286
10357
  children: [
10287
- /* @__PURE__ */ jsx221(Value, { placeholder }),
10288
- /* @__PURE__ */ jsx221(
10358
+ /* @__PURE__ */ jsx222(Value, { placeholder }),
10359
+ /* @__PURE__ */ jsx222(
10289
10360
  Icon,
10290
10361
  {
10291
10362
  size: "md",
@@ -10295,10 +10366,10 @@ var Select = forwardRef25(
10295
10366
  ]
10296
10367
  }
10297
10368
  ),
10298
- /* @__PURE__ */ jsx221(Portal2, { children: /* @__PURE__ */ jsxs35(StyledContent2, { position: "popper", children: [
10299
- /* @__PURE__ */ jsx221(ScrollUpButton, { children: /* @__PURE__ */ jsx221(Icon, { type: "caret-up" }) }),
10300
- /* @__PURE__ */ jsx221(Viewport, { children }),
10301
- /* @__PURE__ */ jsx221(ScrollDownButton, { children: /* @__PURE__ */ jsx221(Icon, { type: "caret-down" }) })
10369
+ /* @__PURE__ */ jsx222(Portal3, { children: /* @__PURE__ */ jsxs36(StyledContent3, { position: "popper", children: [
10370
+ /* @__PURE__ */ jsx222(ScrollUpButton, { children: /* @__PURE__ */ jsx222(Icon, { type: "caret-up" }) }),
10371
+ /* @__PURE__ */ jsx222(Viewport, { children }),
10372
+ /* @__PURE__ */ jsx222(ScrollDownButton, { children: /* @__PURE__ */ jsx222(Icon, { type: "caret-down" }) })
10302
10373
  ] }) })
10303
10374
  ]
10304
10375
  }
@@ -10310,9 +10381,9 @@ Select.displayName = "Select";
10310
10381
  // src/components/Select/SelectOption.tsx
10311
10382
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
10312
10383
  import { forwardRef as forwardRef26 } from "react";
10313
- import styled56 from "styled-components";
10314
- import { jsx as jsx222, jsxs as jsxs36 } from "react/jsx-runtime";
10315
- var StyledItem = styled56(Item)`
10384
+ import styled57 from "styled-components";
10385
+ import { jsx as jsx223, jsxs as jsxs37 } from "react/jsx-runtime";
10386
+ var StyledItem = styled57(Item)`
10316
10387
  ${variantStyleMap2.body3};
10317
10388
  display: flex;
10318
10389
  padding: var(--wui-select-option-padding);
@@ -10335,25 +10406,25 @@ var StyledItem = styled56(Item)`
10335
10406
  background-color: transparent;
10336
10407
  }
10337
10408
  `;
10338
- var StyledIconContainer = styled56.span`
10409
+ var StyledIconContainer = styled57.span`
10339
10410
  width: 12px;
10340
10411
  `;
10341
10412
  var SelectOption = forwardRef26(
10342
10413
  ({ children, ...props }, forwardedRef) => {
10343
- return /* @__PURE__ */ jsxs36(
10414
+ return /* @__PURE__ */ jsxs37(
10344
10415
  StyledItem,
10345
10416
  {
10346
10417
  ...props,
10347
10418
  ref: forwardedRef,
10348
10419
  children: [
10349
- /* @__PURE__ */ jsx222(StyledIconContainer, { children: /* @__PURE__ */ jsx222(ItemIndicator, { children: /* @__PURE__ */ jsx222(
10420
+ /* @__PURE__ */ jsx223(StyledIconContainer, { children: /* @__PURE__ */ jsx223(ItemIndicator, { children: /* @__PURE__ */ jsx223(
10350
10421
  Icon,
10351
10422
  {
10352
10423
  size: "sm",
10353
10424
  type: "checkmark"
10354
10425
  }
10355
10426
  ) }) }),
10356
- /* @__PURE__ */ jsx222(ItemText, { children })
10427
+ /* @__PURE__ */ jsx223(ItemText, { children })
10357
10428
  ]
10358
10429
  }
10359
10430
  );
@@ -10363,14 +10434,14 @@ SelectOption.displayName = "Option";
10363
10434
 
10364
10435
  // src/components/Select/SelectOptionGroup.tsx
10365
10436
  import { Group, Label as Label2 } from "@radix-ui/react-select";
10366
- import styled57 from "styled-components";
10367
- import { jsx as jsx223, jsxs as jsxs37 } from "react/jsx-runtime";
10368
- var StyledLabel4 = styled57(Label2)`
10437
+ import styled58 from "styled-components";
10438
+ import { jsx as jsx224, jsxs as jsxs38 } from "react/jsx-runtime";
10439
+ var StyledLabel4 = styled58(Label2)`
10369
10440
  padding: var(--wui-select-option-padding);
10370
10441
  `;
10371
10442
  var SelectOptionGroup = ({ children, label, ...props }) => {
10372
- return /* @__PURE__ */ jsxs37(Group, { ...props, children: [
10373
- /* @__PURE__ */ jsx223(StyledLabel4, { children: /* @__PURE__ */ jsx223(
10443
+ return /* @__PURE__ */ jsxs38(Group, { ...props, children: [
10444
+ /* @__PURE__ */ jsx224(StyledLabel4, { children: /* @__PURE__ */ jsx224(
10374
10445
  Text,
10375
10446
  {
10376
10447
  prominence: "secondary",
@@ -10421,6 +10492,7 @@ export {
10421
10492
  MenuLabel,
10422
10493
  MenuRadioGroup,
10423
10494
  Modal,
10495
+ Popover,
10424
10496
  Radio,
10425
10497
  RadioGroup,
10426
10498
  RadioMenuItem,