@wistia/ui 0.6.15 → 0.6.16

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.15
3
+ * @license @wistia/ui v0.6.16
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9790,9 +9790,9 @@ var ModalHeader = ({
9790
9790
  hideTitle,
9791
9791
  hideCloseButton
9792
9792
  }) => {
9793
- const TitleWrapper = hideTitle ? ScreenReaderOnly : Title;
9793
+ const TitleComponent = hideTitle ? /* @__PURE__ */ jsx234(ScreenReaderOnly, { children: /* @__PURE__ */ jsx234(Title, { children: title }) }) : /* @__PURE__ */ jsx234(Title, { children: title });
9794
9794
  return /* @__PURE__ */ jsxs27(Header, { children: [
9795
- /* @__PURE__ */ jsx234(TitleWrapper, { children: title }),
9795
+ TitleComponent,
9796
9796
  hideCloseButton ? null : /* @__PURE__ */ jsx234(ModalCloseButton, {})
9797
9797
  ] });
9798
9798
  };
@@ -10064,17 +10064,96 @@ var Popover = ({
10064
10064
  };
10065
10065
  Popover.displayName = "Popover";
10066
10066
 
10067
+ // src/components/ProgressBar/ProgressBar.tsx
10068
+ import styled47 from "styled-components";
10069
+ import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
10070
+ import { isNotNil as isNotNil19 } from "@wistia/type-guards";
10071
+ import { jsx as jsx239, jsxs as jsxs30 } from "react/jsx-runtime";
10072
+ var ProgressBarWrapper = styled47.div`
10073
+ --progress-bar-height: 8px;
10074
+ --progress-bar-indicator-color: var(--wui-color-bg-fill);
10075
+ --progress-bar-background-color: var(--wui-color-bg-surface-secondary);
10076
+
10077
+ display: flex;
10078
+ align-items: center;
10079
+ gap: var(--wui-space-02);
10080
+ `;
10081
+ var getTranslateValue = (progress, max) => {
10082
+ if (progress === 0) {
10083
+ return "translateX(-101%)";
10084
+ }
10085
+ const progressPercentage = progress / max * 100;
10086
+ return `translateX(-${100 - progressPercentage}%)`;
10087
+ };
10088
+ var ProgressBarLabel = styled47.div`
10089
+ display: flex;
10090
+ line-height: var(--wui-typography-label-3-line-height);
10091
+ font-size: var(--wui-typography-label-3-size);
10092
+ font-weight: var(--wui-typography-weight-label);
10093
+ color: var(--wui-color-text-secondary);
10094
+ flex-shrink: 0;
10095
+ `;
10096
+ var StyledProgressIndicator = styled47(ProgressIndicator)`
10097
+ background-color: var(--progress-bar-indicator-color);
10098
+ width: 100%;
10099
+ height: 100%;
10100
+ border-top-right-radius: var(--wui-border-radius-rounded);
10101
+ border-bottom-right-radius: var(--wui-border-radius-rounded);
10102
+ transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);
10103
+ transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
10104
+ `;
10105
+ var StyledProgressBar = styled47(ProgressRoot)`
10106
+ position: relative;
10107
+ overflow: hidden;
10108
+ background: var(--progress-bar-background-color);
10109
+ border-radius: var(--wui-border-radius-rounded);
10110
+ width: 100%;
10111
+ height: var(--progress-bar-height);
10112
+
10113
+ /* Fix overflow clipping in Safari: https://gist.github.com/domske/b66047671c780a238b51c51ffde8d3a0 */
10114
+ transform: translateZ(0);
10115
+ `;
10116
+ var ProgressBar = ({
10117
+ progress,
10118
+ max = 100,
10119
+ children,
10120
+ labelLeft,
10121
+ labelRight,
10122
+ ...props
10123
+ }) => {
10124
+ return /* @__PURE__ */ jsxs30(ProgressBarWrapper, { children: [
10125
+ isNotNil19(labelLeft) ? /* @__PURE__ */ jsx239(ProgressBarLabel, { children: labelLeft }) : null,
10126
+ /* @__PURE__ */ jsx239(
10127
+ StyledProgressBar,
10128
+ {
10129
+ max,
10130
+ value: progress,
10131
+ ...props,
10132
+ children: /* @__PURE__ */ jsx239(
10133
+ StyledProgressIndicator,
10134
+ {
10135
+ $max: max,
10136
+ $progress: progress
10137
+ }
10138
+ )
10139
+ }
10140
+ ),
10141
+ isNotNil19(labelRight) ? /* @__PURE__ */ jsx239(ProgressBarLabel, { children: labelRight }) : null
10142
+ ] });
10143
+ };
10144
+ ProgressBar.displayName = "ProgressBar";
10145
+
10067
10146
  // src/components/Radio/Radio.tsx
10068
10147
  import { forwardRef as forwardRef18, useId as useId3 } from "react";
10069
- import styled47, { css as css27 } from "styled-components";
10148
+ import styled48, { css as css27 } from "styled-components";
10070
10149
  import { isNonEmptyString as isNonEmptyString3 } from "@wistia/type-guards";
10071
- import { jsx as jsx239, jsxs as jsxs30 } from "react/jsx-runtime";
10072
- var StyledLabelWrapper2 = styled47.div`
10150
+ import { jsx as jsx240, jsxs as jsxs31 } from "react/jsx-runtime";
10151
+ var StyledLabelWrapper2 = styled48.div`
10073
10152
  display: flex;
10074
10153
  flex-direction: column;
10075
10154
  padding-left: var(--wui-space-02);
10076
10155
  `;
10077
- var StyledRadio = styled47.input`
10156
+ var StyledRadio = styled48.input`
10078
10157
  box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
10079
10158
  appearance: none;
10080
10159
  margin: 0;
@@ -10116,7 +10195,7 @@ var defaultHoverStyle = css27`
10116
10195
  /* TODO Lamp to design hover state */
10117
10196
  cursor: pointer;
10118
10197
  `;
10119
- var StyledRadioWrapper = styled47.div`
10198
+ var StyledRadioWrapper = styled48.div`
10120
10199
  align-items: baseline;
10121
10200
  border: 1px solid transparent;
10122
10201
  border-radius: 4px;
@@ -10154,13 +10233,13 @@ var Radio = forwardRef18(
10154
10233
  }, ref) => {
10155
10234
  const generatedId = useId3();
10156
10235
  const computedId = isNonEmptyString3(id) ? id : `ui-radio-${generatedId}`;
10157
- return /* @__PURE__ */ jsxs30(
10236
+ return /* @__PURE__ */ jsxs31(
10158
10237
  StyledRadioWrapper,
10159
10238
  {
10160
10239
  "aria-invalid": otherProps["aria-invalid"],
10161
10240
  disabled,
10162
10241
  children: [
10163
- /* @__PURE__ */ jsx239(
10242
+ /* @__PURE__ */ jsx240(
10164
10243
  StyledRadio,
10165
10244
  {
10166
10245
  ref,
@@ -10175,8 +10254,8 @@ var Radio = forwardRef18(
10175
10254
  ...otherProps
10176
10255
  }
10177
10256
  ),
10178
- /* @__PURE__ */ jsxs30(StyledLabelWrapper2, { children: [
10179
- /* @__PURE__ */ jsx239(
10257
+ /* @__PURE__ */ jsxs31(StyledLabelWrapper2, { children: [
10258
+ /* @__PURE__ */ jsx240(
10180
10259
  Label,
10181
10260
  {
10182
10261
  disabled,
@@ -10185,7 +10264,7 @@ var Radio = forwardRef18(
10185
10264
  children: label
10186
10265
  }
10187
10266
  ),
10188
- /* @__PURE__ */ jsx239(LabelDescription, { children: description })
10267
+ /* @__PURE__ */ jsx240(LabelDescription, { children: description })
10189
10268
  ] })
10190
10269
  ]
10191
10270
  }
@@ -10196,13 +10275,13 @@ Radio.displayName = "Radio";
10196
10275
 
10197
10276
  // src/components/SegmentedControl/SegmentedControl.tsx
10198
10277
  import { forwardRef as forwardRef19 } from "react";
10199
- import styled49, { css as css28 } from "styled-components";
10278
+ import styled50, { css as css28 } from "styled-components";
10200
10279
  import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
10201
10280
  import { isNil as isNil13 } from "@wistia/type-guards";
10202
10281
 
10203
10282
  // src/components/SegmentedControl/useSelectedItemMeasurements.tsx
10204
10283
  import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState9 } from "react";
10205
- import { jsx as jsx240 } from "react/jsx-runtime";
10284
+ import { jsx as jsx241 } from "react/jsx-runtime";
10206
10285
  var SelectedItemMeasurementsContext = createContext6(
10207
10286
  null
10208
10287
  );
@@ -10217,7 +10296,7 @@ var SelectedItemMeasurementsProvider = ({
10217
10296
  }),
10218
10297
  [selectedItemMeasurements]
10219
10298
  );
10220
- return /* @__PURE__ */ jsx240(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
10299
+ return /* @__PURE__ */ jsx241(SelectedItemMeasurementsContext.Provider, { value: contextValue, children });
10221
10300
  };
10222
10301
  var useSelectedItemMeasurements = () => {
10223
10302
  const context = useContext5(SelectedItemMeasurementsContext);
@@ -10231,7 +10310,7 @@ var useSelectedItemMeasurements = () => {
10231
10310
 
10232
10311
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
10233
10312
  import { useMemo as useMemo9 } from "react";
10234
- import styled48 from "styled-components";
10313
+ import styled49 from "styled-components";
10235
10314
 
10236
10315
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
10237
10316
  import { createContext as createContext7, useContext as useContext6 } from "react";
@@ -10246,8 +10325,8 @@ var useSegmentedControlValue = () => {
10246
10325
  };
10247
10326
 
10248
10327
  // src/components/SegmentedControl/SelectedItemIndicator.tsx
10249
- import { jsx as jsx241 } from "react/jsx-runtime";
10250
- var SelectedItemIndicatorDiv = styled48.div`
10328
+ import { jsx as jsx242 } from "react/jsx-runtime";
10329
+ var SelectedItemIndicatorDiv = styled49.div`
10251
10330
  background-color: var(--wui-color-bg-fill-white);
10252
10331
  border-radius: var(--wui-border-radius-rounded);
10253
10332
  left: 0;
@@ -10273,7 +10352,7 @@ var SelectedItemIndicator = () => {
10273
10352
  if (!selectedValue) {
10274
10353
  return null;
10275
10354
  }
10276
- return /* @__PURE__ */ jsx241(
10355
+ return /* @__PURE__ */ jsx242(
10277
10356
  SelectedItemIndicatorDiv,
10278
10357
  {
10279
10358
  style: {
@@ -10286,7 +10365,7 @@ var SelectedItemIndicator = () => {
10286
10365
  };
10287
10366
 
10288
10367
  // src/components/SegmentedControl/SegmentedControl.tsx
10289
- import { jsx as jsx242, jsxs as jsxs31 } from "react/jsx-runtime";
10368
+ import { jsx as jsx243, jsxs as jsxs32 } from "react/jsx-runtime";
10290
10369
  var segmentedControlStyles = css28`
10291
10370
  display: inline-flex;
10292
10371
  background-color: var(--wui-color-bg-surface-secondary);
@@ -10297,7 +10376,7 @@ var segmentedControlStyles = css28`
10297
10376
  position: relative;
10298
10377
  width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
10299
10378
  `;
10300
- var StyledSegmentedControl = styled49(ToggleGroupRoot)`
10379
+ var StyledSegmentedControl = styled50(ToggleGroupRoot)`
10301
10380
  ${segmentedControlStyles}
10302
10381
  `;
10303
10382
  var SegmentedControl = forwardRef19(
@@ -10312,7 +10391,7 @@ var SegmentedControl = forwardRef19(
10312
10391
  if (isNil13(children)) {
10313
10392
  return null;
10314
10393
  }
10315
- return /* @__PURE__ */ jsx242(
10394
+ return /* @__PURE__ */ jsx243(
10316
10395
  StyledSegmentedControl,
10317
10396
  {
10318
10397
  ref,
@@ -10324,8 +10403,8 @@ var SegmentedControl = forwardRef19(
10324
10403
  type: "single",
10325
10404
  value: selectedValue,
10326
10405
  ...props,
10327
- children: /* @__PURE__ */ jsx242(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs31(SelectedItemMeasurementsProvider, { children: [
10328
- /* @__PURE__ */ jsx242(SelectedItemIndicator, {}),
10406
+ children: /* @__PURE__ */ jsx243(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs32(SelectedItemMeasurementsProvider, { children: [
10407
+ /* @__PURE__ */ jsx243(SelectedItemIndicator, {}),
10329
10408
  children
10330
10409
  ] }) })
10331
10410
  }
@@ -10336,26 +10415,26 @@ SegmentedControl.displayName = "SegmentedControl";
10336
10415
 
10337
10416
  // src/components/SegmentedControl/SegmentedControlItem.tsx
10338
10417
  import { forwardRef as forwardRef20, useEffect as useEffect6, useRef as useRef9 } from "react";
10339
- import styled50, { css as css29 } from "styled-components";
10418
+ import styled51, { css as css29 } from "styled-components";
10340
10419
  import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
10341
- import { isNotNil as isNotNil20 } from "@wistia/type-guards";
10420
+ import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10342
10421
 
10343
10422
  // src/private/helpers/mergeRefs/mergeRefs.ts
10344
- import { isNotNil as isNotNil19, isFunction as isFunction2 } from "@wistia/type-guards";
10423
+ import { isNotNil as isNotNil20, isFunction as isFunction2 } from "@wistia/type-guards";
10345
10424
  var mergeRefs = (refs) => (value) => {
10346
10425
  refs.forEach((ref) => {
10347
10426
  if (isFunction2(ref)) {
10348
10427
  ref(value);
10349
10428
  return;
10350
10429
  }
10351
- if (isNotNil19(ref)) {
10430
+ if (isNotNil20(ref)) {
10352
10431
  ref.current = value;
10353
10432
  }
10354
10433
  });
10355
10434
  };
10356
10435
 
10357
10436
  // src/components/SegmentedControl/SegmentedControlItem.tsx
10358
- import { jsxs as jsxs32 } from "react/jsx-runtime";
10437
+ import { jsxs as jsxs33 } from "react/jsx-runtime";
10359
10438
  var segmentedControlItemStyles = css29`
10360
10439
  all: unset; /* ToggleGroupItem is a button element */
10361
10440
  align-items: center;
@@ -10415,7 +10494,7 @@ var segmentedControlItemStyles = css29`
10415
10494
  }
10416
10495
  }
10417
10496
  `;
10418
- var StyledSegmentedControlItem = styled50(ToggleGroupItem)`
10497
+ var StyledSegmentedControlItem = styled51(ToggleGroupItem)`
10419
10498
  ${segmentedControlItemStyles}
10420
10499
  `;
10421
10500
  var SegmentedControlItem = forwardRef20(
@@ -10456,12 +10535,12 @@ var SegmentedControlItem = forwardRef20(
10456
10535
  resizeObserver.disconnect();
10457
10536
  };
10458
10537
  }, [selectedValue, setSelectedItemMeasurements, value]);
10459
- return /* @__PURE__ */ jsxs32(
10538
+ return /* @__PURE__ */ jsxs33(
10460
10539
  StyledSegmentedControlItem,
10461
10540
  {
10462
10541
  ref: combinedRef,
10463
- $hasLabel: isNotNil20(label),
10464
- "aria-label": isNotNil20(label) ? void 0 : ariaLabel,
10542
+ $hasLabel: isNotNil21(label),
10543
+ "aria-label": isNotNil21(label) ? void 0 : ariaLabel,
10465
10544
  disabled,
10466
10545
  onClick: handleClick,
10467
10546
  value,
@@ -10487,9 +10566,9 @@ import {
10487
10566
  ScrollDownButton
10488
10567
  } from "@radix-ui/react-select";
10489
10568
  import { forwardRef as forwardRef21 } from "react";
10490
- import styled51 from "styled-components";
10491
- import { jsx as jsx243, jsxs as jsxs33 } from "react/jsx-runtime";
10492
- var StyledTrigger = styled51(Trigger3)`
10569
+ import styled52 from "styled-components";
10570
+ import { jsx as jsx244, jsxs as jsxs34 } from "react/jsx-runtime";
10571
+ var StyledTrigger = styled52(Trigger3)`
10493
10572
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
10494
10573
  --wui-select-color-bg: var(--wui-color-bg-surface);
10495
10574
  --wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
@@ -10537,7 +10616,7 @@ var StyledTrigger = styled51(Trigger3)`
10537
10616
  background-color: var(--wui-color-bg-surface-disabled);
10538
10617
  }
10539
10618
  `;
10540
- var StyledContent3 = styled51(Content3)`
10619
+ var StyledContent3 = styled52(Content3)`
10541
10620
  --wui-select-content-border: var(--wui-color-border);
10542
10621
  --wui-select-content-bg: var(--wui-color-bg-surface);
10543
10622
  --wui-select-content-border-radius: var(--wui-border-radius-02);
@@ -10565,13 +10644,13 @@ var Select = forwardRef21(
10565
10644
  ...props
10566
10645
  }, forwardedRef) => {
10567
10646
  const responsiveFullWidth = useResponsiveProp(fullWidth);
10568
- return /* @__PURE__ */ jsxs33(
10647
+ return /* @__PURE__ */ jsxs34(
10569
10648
  Root3,
10570
10649
  {
10571
10650
  ...props,
10572
10651
  onValueChange: onChange,
10573
10652
  children: [
10574
- /* @__PURE__ */ jsxs33(
10653
+ /* @__PURE__ */ jsxs34(
10575
10654
  StyledTrigger,
10576
10655
  {
10577
10656
  ref: forwardedRef,
@@ -10579,8 +10658,8 @@ var Select = forwardRef21(
10579
10658
  $fullWidth: responsiveFullWidth,
10580
10659
  ...props,
10581
10660
  children: [
10582
- /* @__PURE__ */ jsx243(Value, { placeholder }),
10583
- /* @__PURE__ */ jsx243(
10661
+ /* @__PURE__ */ jsx244(Value, { placeholder }),
10662
+ /* @__PURE__ */ jsx244(
10584
10663
  Icon,
10585
10664
  {
10586
10665
  size: "md",
@@ -10590,10 +10669,10 @@ var Select = forwardRef21(
10590
10669
  ]
10591
10670
  }
10592
10671
  ),
10593
- /* @__PURE__ */ jsx243(Portal2, { children: /* @__PURE__ */ jsxs33(StyledContent3, { position: "popper", children: [
10594
- /* @__PURE__ */ jsx243(ScrollUpButton, { children: /* @__PURE__ */ jsx243(Icon, { type: "caret-up" }) }),
10595
- /* @__PURE__ */ jsx243(Viewport, { children }),
10596
- /* @__PURE__ */ jsx243(ScrollDownButton, { children: /* @__PURE__ */ jsx243(Icon, { type: "caret-down" }) })
10672
+ /* @__PURE__ */ jsx244(Portal2, { children: /* @__PURE__ */ jsxs34(StyledContent3, { position: "popper", children: [
10673
+ /* @__PURE__ */ jsx244(ScrollUpButton, { children: /* @__PURE__ */ jsx244(Icon, { type: "caret-up" }) }),
10674
+ /* @__PURE__ */ jsx244(Viewport, { children }),
10675
+ /* @__PURE__ */ jsx244(ScrollDownButton, { children: /* @__PURE__ */ jsx244(Icon, { type: "caret-down" }) })
10597
10676
  ] }) })
10598
10677
  ]
10599
10678
  }
@@ -10605,9 +10684,9 @@ Select.displayName = "Select";
10605
10684
  // src/components/Select/SelectOption.tsx
10606
10685
  import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
10607
10686
  import { forwardRef as forwardRef22 } from "react";
10608
- import styled52 from "styled-components";
10609
- import { jsx as jsx244, jsxs as jsxs34 } from "react/jsx-runtime";
10610
- var StyledItem = styled52(Item)`
10687
+ import styled53 from "styled-components";
10688
+ import { jsx as jsx245, jsxs as jsxs35 } from "react/jsx-runtime";
10689
+ var StyledItem = styled53(Item)`
10611
10690
  ${variantStyleMap2.body3};
10612
10691
  display: flex;
10613
10692
  padding: var(--wui-select-option-padding);
@@ -10630,25 +10709,25 @@ var StyledItem = styled52(Item)`
10630
10709
  background-color: transparent;
10631
10710
  }
10632
10711
  `;
10633
- var StyledIconContainer = styled52.span`
10712
+ var StyledIconContainer = styled53.span`
10634
10713
  width: 12px;
10635
10714
  `;
10636
10715
  var SelectOption = forwardRef22(
10637
10716
  ({ children, ...props }, forwardedRef) => {
10638
- return /* @__PURE__ */ jsxs34(
10717
+ return /* @__PURE__ */ jsxs35(
10639
10718
  StyledItem,
10640
10719
  {
10641
10720
  ...props,
10642
10721
  ref: forwardedRef,
10643
10722
  children: [
10644
- /* @__PURE__ */ jsx244(StyledIconContainer, { children: /* @__PURE__ */ jsx244(ItemIndicator, { children: /* @__PURE__ */ jsx244(
10723
+ /* @__PURE__ */ jsx245(StyledIconContainer, { children: /* @__PURE__ */ jsx245(ItemIndicator, { children: /* @__PURE__ */ jsx245(
10645
10724
  Icon,
10646
10725
  {
10647
10726
  size: "sm",
10648
10727
  type: "checkmark"
10649
10728
  }
10650
10729
  ) }) }),
10651
- /* @__PURE__ */ jsx244(ItemText, { children })
10730
+ /* @__PURE__ */ jsx245(ItemText, { children })
10652
10731
  ]
10653
10732
  }
10654
10733
  );
@@ -10658,14 +10737,14 @@ SelectOption.displayName = "Option";
10658
10737
 
10659
10738
  // src/components/Select/SelectOptionGroup.tsx
10660
10739
  import { Group, Label as Label2 } from "@radix-ui/react-select";
10661
- import styled53 from "styled-components";
10662
- import { jsx as jsx245, jsxs as jsxs35 } from "react/jsx-runtime";
10663
- var StyledLabel4 = styled53(Label2)`
10740
+ import styled54 from "styled-components";
10741
+ import { jsx as jsx246, jsxs as jsxs36 } from "react/jsx-runtime";
10742
+ var StyledLabel4 = styled54(Label2)`
10664
10743
  padding: var(--wui-select-option-padding);
10665
10744
  `;
10666
10745
  var SelectOptionGroup = ({ children, label, ...props }) => {
10667
- return /* @__PURE__ */ jsxs35(Group, { ...props, children: [
10668
- /* @__PURE__ */ jsx245(StyledLabel4, { children: /* @__PURE__ */ jsx245(
10746
+ return /* @__PURE__ */ jsxs36(Group, { ...props, children: [
10747
+ /* @__PURE__ */ jsx246(StyledLabel4, { children: /* @__PURE__ */ jsx246(
10669
10748
  Text,
10670
10749
  {
10671
10750
  prominence: "secondary",
@@ -10679,15 +10758,15 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
10679
10758
 
10680
10759
  // src/components/Table/Table.tsx
10681
10760
  import { useMemo as useMemo10 } from "react";
10682
- import styled54, { css as css30 } from "styled-components";
10761
+ import styled55, { css as css30 } from "styled-components";
10683
10762
 
10684
10763
  // src/components/Table/TableContext.tsx
10685
10764
  import React from "react";
10686
10765
  var TableContext = React.createContext({ divided: false });
10687
10766
 
10688
10767
  // src/components/Table/Table.tsx
10689
- import { jsx as jsx246 } from "react/jsx-runtime";
10690
- var StyledTable = styled54.table`
10768
+ import { jsx as jsx247 } from "react/jsx-runtime";
10769
+ var StyledTable = styled55.table`
10691
10770
  width: 100%;
10692
10771
  border-collapse: collapse;
10693
10772
 
@@ -10704,7 +10783,7 @@ var Table = ({
10704
10783
  ...props
10705
10784
  }) => {
10706
10785
  const contextValue = useMemo10(() => ({ divided }), [divided]);
10707
- return /* @__PURE__ */ jsx246(TableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx246(
10786
+ return /* @__PURE__ */ jsx247(TableContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx247(
10708
10787
  StyledTable,
10709
10788
  {
10710
10789
  $striped: striped,
@@ -10715,35 +10794,35 @@ var Table = ({
10715
10794
  };
10716
10795
 
10717
10796
  // src/components/Table/TableBody.tsx
10718
- import styled55 from "styled-components";
10797
+ import styled56 from "styled-components";
10719
10798
 
10720
10799
  // src/components/Table/TableSectionContext.ts
10721
10800
  import { createContext as createContext8 } from "react";
10722
10801
  var TableSectionContext = createContext8(null);
10723
10802
 
10724
10803
  // src/components/Table/TableBody.tsx
10725
- import { jsx as jsx247 } from "react/jsx-runtime";
10726
- var StyledTbody = styled55.tbody``;
10804
+ import { jsx as jsx248 } from "react/jsx-runtime";
10805
+ var StyledTbody = styled56.tbody``;
10727
10806
  var TableBody = ({ children, ...props }) => {
10728
- return /* @__PURE__ */ jsx247(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx247(StyledTbody, { ...props, children }) });
10807
+ return /* @__PURE__ */ jsx248(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx248(StyledTbody, { ...props, children }) });
10729
10808
  };
10730
10809
 
10731
10810
  // src/components/Table/TableCell.tsx
10732
10811
  import { useContext as useContext7 } from "react";
10733
- import styled56, { css as css31 } from "styled-components";
10734
- import { jsx as jsx248 } from "react/jsx-runtime";
10812
+ import styled57, { css as css31 } from "styled-components";
10813
+ import { jsx as jsx249 } from "react/jsx-runtime";
10735
10814
  var sharedStyles = css31`
10736
10815
  color: var(--wui-color-text);
10737
10816
  padding: var(--wui-space-02);
10738
10817
  text-align: left;
10739
10818
  `;
10740
- var StyledTh = styled56.th`
10819
+ var StyledTh = styled57.th`
10741
10820
  ${sharedStyles}
10742
10821
  font-size: var(--wui-typography-body-4-size);
10743
10822
  font-weight: var(--wui-typography-weight-label-bold);
10744
10823
  line-height: var(--wui-typography-body-4-line-height);
10745
10824
  `;
10746
- var StyledTd = styled56.td`
10825
+ var StyledTd = styled57.td`
10747
10826
  ${sharedStyles}
10748
10827
  font-size: var(--wui-typography-body-2-size);
10749
10828
  font-weight: var(--wui-typography-body-2-weight);
@@ -10752,37 +10831,37 @@ var StyledTd = styled56.td`
10752
10831
  var TableCell = ({ children, ...props }) => {
10753
10832
  const section = useContext7(TableSectionContext);
10754
10833
  if (section === "head") {
10755
- return /* @__PURE__ */ jsx248(StyledTh, { ...props, children });
10834
+ return /* @__PURE__ */ jsx249(StyledTh, { ...props, children });
10756
10835
  }
10757
- return /* @__PURE__ */ jsx248(StyledTd, { ...props, children });
10836
+ return /* @__PURE__ */ jsx249(StyledTd, { ...props, children });
10758
10837
  };
10759
10838
 
10760
10839
  // src/components/Table/TableFooter.tsx
10761
- import styled57 from "styled-components";
10762
- import { jsx as jsx249 } from "react/jsx-runtime";
10763
- var StyledTfoot = styled57.tfoot``;
10840
+ import styled58 from "styled-components";
10841
+ import { jsx as jsx250 } from "react/jsx-runtime";
10842
+ var StyledTfoot = styled58.tfoot``;
10764
10843
  var TableFooter = ({ children, ...props }) => {
10765
- return /* @__PURE__ */ jsx249(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx249(StyledTfoot, { ...props, children }) });
10844
+ return /* @__PURE__ */ jsx250(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx250(StyledTfoot, { ...props, children }) });
10766
10845
  };
10767
10846
 
10768
10847
  // src/components/Table/TableHead.tsx
10769
- import styled58 from "styled-components";
10770
- import { jsx as jsx250 } from "react/jsx-runtime";
10771
- var StyledThead = styled58.thead``;
10848
+ import styled59 from "styled-components";
10849
+ import { jsx as jsx251 } from "react/jsx-runtime";
10850
+ var StyledThead = styled59.thead``;
10772
10851
  var TableHead = ({ children, ...props }) => {
10773
- return /* @__PURE__ */ jsx250(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx250(StyledThead, { ...props, children }) });
10852
+ return /* @__PURE__ */ jsx251(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx251(StyledThead, { ...props, children }) });
10774
10853
  };
10775
10854
 
10776
10855
  // src/components/Table/TableRow.tsx
10777
10856
  import { useContext as useContext8 } from "react";
10778
- import styled59 from "styled-components";
10779
- import { jsx as jsx251 } from "react/jsx-runtime";
10780
- var StyledTr = styled59.tr`
10857
+ import styled60 from "styled-components";
10858
+ import { jsx as jsx252 } from "react/jsx-runtime";
10859
+ var StyledTr = styled60.tr`
10781
10860
  ${({ $divided }) => $divided && `border-bottom: 1px solid var(--wui-color-border);`}
10782
10861
  `;
10783
10862
  var TableRow = ({ children, ...props }) => {
10784
10863
  const { divided = false } = useContext8(TableContext);
10785
- return /* @__PURE__ */ jsx251(
10864
+ return /* @__PURE__ */ jsx252(
10786
10865
  StyledTr,
10787
10866
  {
10788
10867
  $divided: divided,
@@ -10795,19 +10874,19 @@ var TableRow = ({ children, ...props }) => {
10795
10874
  // src/components/Tabs/Tabs.tsx
10796
10875
  import { forwardRef as forwardRef24, useState as useState10 } from "react";
10797
10876
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
10798
- import { isNotNil as isNotNil22, isNil as isNil14 } from "@wistia/type-guards";
10799
- import styled64 from "styled-components";
10877
+ import { isNotNil as isNotNil23, isNil as isNil14 } from "@wistia/type-guards";
10878
+ import styled65 from "styled-components";
10800
10879
 
10801
10880
  // src/components/Tabs/TabPanel.tsx
10802
- import styled60 from "styled-components";
10881
+ import styled61 from "styled-components";
10803
10882
  import { Content as TabsContent } from "@radix-ui/react-tabs";
10804
- import { jsx as jsx252 } from "react/jsx-runtime";
10805
- var StyledTabPanel = styled60(TabsContent)`
10883
+ import { jsx as jsx253 } from "react/jsx-runtime";
10884
+ var StyledTabPanel = styled61(TabsContent)`
10806
10885
  display: flex;
10807
10886
  flex-direction: column;
10808
10887
  `;
10809
10888
  var TabPanel = ({ children, value, ...props }) => {
10810
- return /* @__PURE__ */ jsx252(
10889
+ return /* @__PURE__ */ jsx253(
10811
10890
  StyledTabPanel,
10812
10891
  {
10813
10892
  value,
@@ -10819,10 +10898,10 @@ var TabPanel = ({ children, value, ...props }) => {
10819
10898
  TabPanel.displayName = "TabPanel";
10820
10899
 
10821
10900
  // src/components/Tabs/TabList.tsx
10822
- import styled61 from "styled-components";
10901
+ import styled62 from "styled-components";
10823
10902
  import { List as RadixTabList } from "@radix-ui/react-tabs";
10824
- import { jsx as jsx253 } from "react/jsx-runtime";
10825
- var StyledTabList = styled61(RadixTabList)`
10903
+ import { jsx as jsx254 } from "react/jsx-runtime";
10904
+ var StyledTabList = styled62(RadixTabList)`
10826
10905
  ${segmentedControlStyles}
10827
10906
 
10828
10907
  margin-bottom: var(--wui-space-04);
@@ -10835,7 +10914,7 @@ var TabList = ({
10835
10914
  ariaLabel,
10836
10915
  ...props
10837
10916
  }) => {
10838
- return /* @__PURE__ */ jsx253(
10917
+ return /* @__PURE__ */ jsx254(
10839
10918
  StyledTabList,
10840
10919
  {
10841
10920
  $fullWidth: fullWidth,
@@ -10849,9 +10928,9 @@ TabList.displayName = "TabList";
10849
10928
 
10850
10929
  // src/components/Tabs/TabItem.tsx
10851
10930
  import { forwardRef as forwardRef23, useEffect as useEffect7, useRef as useRef10 } from "react";
10852
- import styled62 from "styled-components";
10931
+ import styled63 from "styled-components";
10853
10932
  import { Trigger as RadixTab } from "@radix-ui/react-tabs";
10854
- import { isNotNil as isNotNil21 } from "@wistia/type-guards";
10933
+ import { isNotNil as isNotNil22 } from "@wistia/type-guards";
10855
10934
 
10856
10935
  // src/components/Tabs/useTabsValue.tsx
10857
10936
  import { createContext as createContext9, useContext as useContext9 } from "react";
@@ -10866,8 +10945,8 @@ var useTabsValue = () => {
10866
10945
  };
10867
10946
 
10868
10947
  // src/components/Tabs/TabItem.tsx
10869
- import { jsxs as jsxs36 } from "react/jsx-runtime";
10870
- var StyledTabItem = styled62(RadixTab)`
10948
+ import { jsxs as jsxs37 } from "react/jsx-runtime";
10949
+ var StyledTabItem = styled63(RadixTab)`
10871
10950
  ${segmentedControlItemStyles}
10872
10951
 
10873
10952
  &:focus-visible {
@@ -10905,12 +10984,12 @@ var TabItem = forwardRef23(
10905
10984
  resizeObserver.disconnect();
10906
10985
  };
10907
10986
  }, [selectedValue, setSelectedItemMeasurements, value]);
10908
- return /* @__PURE__ */ jsxs36(
10987
+ return /* @__PURE__ */ jsxs37(
10909
10988
  StyledTabItem,
10910
10989
  {
10911
10990
  ref: combinedRef,
10912
- $hasLabel: isNotNil21(label),
10913
- "aria-label": isNotNil21(label) ? void 0 : ariaLabel,
10991
+ $hasLabel: isNotNil22(label),
10992
+ "aria-label": isNotNil22(label) ? void 0 : ariaLabel,
10914
10993
  disabled,
10915
10994
  value,
10916
10995
  children: [
@@ -10947,9 +11026,9 @@ var extractTabItems = (children) => {
10947
11026
 
10948
11027
  // src/components/Tabs/SelectedItemIndicator.tsx
10949
11028
  import { useMemo as useMemo11 } from "react";
10950
- import styled63 from "styled-components";
10951
- import { jsx as jsx254 } from "react/jsx-runtime";
10952
- var TabsSelectedItemIndicatorDiv = styled63(SelectedItemIndicatorDiv)`
11029
+ import styled64 from "styled-components";
11030
+ import { jsx as jsx255 } from "react/jsx-runtime";
11031
+ var TabsSelectedItemIndicatorDiv = styled64(SelectedItemIndicatorDiv)`
10953
11032
  &:has(~ ${StyledTabItem}:focus-visible) {
10954
11033
  outline: 2px solid var(--wui-color-focus-ring);
10955
11034
  }
@@ -10968,7 +11047,7 @@ var SelectedItemIndicator2 = () => {
10968
11047
  if (selectedValue == null) {
10969
11048
  return null;
10970
11049
  }
10971
- return /* @__PURE__ */ jsx254(
11050
+ return /* @__PURE__ */ jsx255(
10972
11051
  TabsSelectedItemIndicatorDiv,
10973
11052
  {
10974
11053
  style: {
@@ -10981,19 +11060,19 @@ var SelectedItemIndicator2 = () => {
10981
11060
  };
10982
11061
 
10983
11062
  // src/components/Tabs/Tabs.tsx
10984
- import { jsx as jsx255, jsxs as jsxs37 } from "react/jsx-runtime";
10985
- var TabsContainer = styled64.div`
11063
+ import { jsx as jsx256, jsxs as jsxs38 } from "react/jsx-runtime";
11064
+ var TabsContainer = styled65.div`
10986
11065
  display: flex;
10987
11066
  flex-direction: column;
10988
11067
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
10989
11068
  overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
10990
11069
  `;
10991
- var StickyTabContent = styled64.div`
11070
+ var StickyTabContent = styled65.div`
10992
11071
  flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
10993
11072
  overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
10994
11073
  overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
10995
11074
  `;
10996
- var StyledTabsRoot = styled64(TabsRoot)`
11075
+ var StyledTabsRoot = styled65(TabsRoot)`
10997
11076
  display: flex;
10998
11077
  flex-direction: column;
10999
11078
  height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
@@ -11016,7 +11095,7 @@ var Tabs = forwardRef24(
11016
11095
  onValueChange: setInternalSelectedValue
11017
11096
  } : { value: selectedValue, onValueChange: onSelectedValueChange };
11018
11097
  const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
11019
- return /* @__PURE__ */ jsx255(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx255(
11098
+ return /* @__PURE__ */ jsx256(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ jsx256(
11020
11099
  StyledTabsRoot,
11021
11100
  {
11022
11101
  ref,
@@ -11024,14 +11103,14 @@ var Tabs = forwardRef24(
11024
11103
  activationMode: "automatic",
11025
11104
  ...otherProps,
11026
11105
  ...modeProps,
11027
- children: /* @__PURE__ */ jsx255(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs37(SelectedItemMeasurementsProvider, { children: [
11028
- /* @__PURE__ */ jsxs37(
11106
+ children: /* @__PURE__ */ jsx256(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ jsxs38(SelectedItemMeasurementsProvider, { children: [
11107
+ /* @__PURE__ */ jsxs38(
11029
11108
  TabList,
11030
11109
  {
11031
11110
  ariaLabel,
11032
11111
  fullWidth,
11033
11112
  children: [
11034
- /* @__PURE__ */ jsx255(SelectedItemIndicator2, {}),
11113
+ /* @__PURE__ */ jsx256(SelectedItemIndicator2, {}),
11035
11114
  tabItems.map((tab) => {
11036
11115
  const {
11037
11116
  value,
@@ -11041,7 +11120,7 @@ var Tabs = forwardRef24(
11041
11120
  "aria-label": ariaLabelForTab
11042
11121
  } = tab.props;
11043
11122
  if (isNil14(icon)) {
11044
- return /* @__PURE__ */ jsx255(
11123
+ return /* @__PURE__ */ jsx256(
11045
11124
  TabItem,
11046
11125
  {
11047
11126
  disabled,
@@ -11051,8 +11130,8 @@ var Tabs = forwardRef24(
11051
11130
  value
11052
11131
  );
11053
11132
  }
11054
- if (isNotNil22(label)) {
11055
- return /* @__PURE__ */ jsx255(
11133
+ if (isNotNil23(label)) {
11134
+ return /* @__PURE__ */ jsx256(
11056
11135
  TabItem,
11057
11136
  {
11058
11137
  disabled,
@@ -11063,8 +11142,8 @@ var Tabs = forwardRef24(
11063
11142
  value
11064
11143
  );
11065
11144
  }
11066
- if (isNotNil22(ariaLabelForTab)) {
11067
- return /* @__PURE__ */ jsx255(
11145
+ if (isNotNil23(ariaLabelForTab)) {
11146
+ return /* @__PURE__ */ jsx256(
11068
11147
  TabItem,
11069
11148
  {
11070
11149
  "aria-label": ariaLabelForTab,
@@ -11080,7 +11159,7 @@ var Tabs = forwardRef24(
11080
11159
  ]
11081
11160
  }
11082
11161
  ),
11083
- /* @__PURE__ */ jsx255(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx255(
11162
+ /* @__PURE__ */ jsx256(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ jsx256(
11084
11163
  TabPanel,
11085
11164
  {
11086
11165
  value: tab.props.value,
@@ -11097,18 +11176,18 @@ Tabs.displayName = "Tabs";
11097
11176
 
11098
11177
  // src/components/Tabs/Tab.tsx
11099
11178
  import { forwardRef as forwardRef25 } from "react";
11100
- import { jsx as jsx256 } from "react/jsx-runtime";
11179
+ import { jsx as jsx257 } from "react/jsx-runtime";
11101
11180
  var Tab = forwardRef25(({ children }, ref) => {
11102
- return /* @__PURE__ */ jsx256("div", { ref, children });
11181
+ return /* @__PURE__ */ jsx257("div", { ref, children });
11103
11182
  });
11104
11183
  Tab.displayName = "Tab";
11105
11184
 
11106
11185
  // src/components/Tag/Tag.tsx
11107
11186
  import { forwardRef as forwardRef26 } from "react";
11108
- import styled65 from "styled-components";
11109
- import { isNil as isNil15, isNotNil as isNotNil23, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11110
- import { Fragment as Fragment8, jsx as jsx257, jsxs as jsxs38 } from "react/jsx-runtime";
11111
- var TagLabel = styled65.a`
11187
+ import styled66 from "styled-components";
11188
+ import { isNil as isNil15, isNotNil as isNotNil24, isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
11189
+ import { Fragment as Fragment8, jsx as jsx258, jsxs as jsxs39 } from "react/jsx-runtime";
11190
+ var TagLabel = styled66.a`
11112
11191
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11113
11192
  font-size: var(--wui-typography-label-4-size);
11114
11193
  font-weight: var(--wui-typography-label-4-weight);
@@ -11136,14 +11215,14 @@ var TagLabel = styled65.a`
11136
11215
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
11137
11216
  }
11138
11217
  `;
11139
- var TagDivider = styled65.div`
11218
+ var TagDivider = styled66.div`
11140
11219
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11141
11220
  border-left: 1px solid var(--wui-color-border);
11142
11221
  display: flex;
11143
11222
  height: 14px;
11144
11223
  width: 1px;
11145
11224
  `;
11146
- var StyledRemoveButton = styled65.button`
11225
+ var StyledRemoveButton = styled66.button`
11147
11226
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11148
11227
  all: unset;
11149
11228
  cursor: pointer;
@@ -11171,7 +11250,7 @@ var StyledRemoveButton = styled65.button`
11171
11250
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
11172
11251
  }
11173
11252
  `;
11174
- var StyledTag = styled65.div`
11253
+ var StyledTag = styled66.div`
11175
11254
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
11176
11255
  align-items: center;
11177
11256
  background-color: var(--wui-color-bg-surface-secondary);
@@ -11192,23 +11271,23 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
11192
11271
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
11193
11272
  );
11194
11273
  }
11195
- return /* @__PURE__ */ jsxs38(Fragment8, { children: [
11196
- /* @__PURE__ */ jsx257(TagDivider, { $colorScheme: colorScheme }),
11197
- /* @__PURE__ */ jsxs38(
11274
+ return /* @__PURE__ */ jsxs39(Fragment8, { children: [
11275
+ /* @__PURE__ */ jsx258(TagDivider, { $colorScheme: colorScheme }),
11276
+ /* @__PURE__ */ jsxs39(
11198
11277
  StyledRemoveButton,
11199
11278
  {
11200
11279
  $colorScheme: colorScheme,
11201
11280
  onClick: onClickRemove,
11202
11281
  type: "button",
11203
11282
  children: [
11204
- /* @__PURE__ */ jsx257(
11283
+ /* @__PURE__ */ jsx258(
11205
11284
  Icon,
11206
11285
  {
11207
11286
  size: "sm",
11208
11287
  type: "close"
11209
11288
  }
11210
11289
  ),
11211
- /* @__PURE__ */ jsx257(ScreenReaderOnly, { children: onClickRemoveLabel })
11290
+ /* @__PURE__ */ jsx258(ScreenReaderOnly, { children: onClickRemoveLabel })
11212
11291
  ]
11213
11292
  }
11214
11293
  )
@@ -11216,15 +11295,15 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
11216
11295
  };
11217
11296
  var Tag = forwardRef26(
11218
11297
  ({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
11219
- const labelProps = isNotNil23(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
11220
- return /* @__PURE__ */ jsxs38(
11298
+ const labelProps = isNotNil24(href) && isNonEmptyString4(href) ? { href, as: "a" } : { as: "span" };
11299
+ return /* @__PURE__ */ jsxs39(
11221
11300
  StyledTag,
11222
11301
  {
11223
11302
  ref,
11224
11303
  $colorScheme: colorScheme,
11225
11304
  ...otherProps,
11226
11305
  children: [
11227
- /* @__PURE__ */ jsx257(
11306
+ /* @__PURE__ */ jsx258(
11228
11307
  TagLabel,
11229
11308
  {
11230
11309
  ...labelProps,
@@ -11232,7 +11311,7 @@ var Tag = forwardRef26(
11232
11311
  children: label
11233
11312
  }
11234
11313
  ),
11235
- /* @__PURE__ */ jsx257(
11314
+ /* @__PURE__ */ jsx258(
11236
11315
  RemoveButton,
11237
11316
  {
11238
11317
  colorScheme,
@@ -11248,26 +11327,26 @@ var Tag = forwardRef26(
11248
11327
  Tag.displayName = "Tag";
11249
11328
 
11250
11329
  // src/components/WistiaLogo/WistiaLogo.tsx
11251
- import styled66, { css as css32 } from "styled-components";
11252
- import { isNotNil as isNotNil24 } from "@wistia/type-guards";
11253
- import { jsx as jsx258, jsxs as jsxs39 } from "react/jsx-runtime";
11330
+ import styled67, { css as css32 } from "styled-components";
11331
+ import { isNotNil as isNotNil25 } from "@wistia/type-guards";
11332
+ import { jsx as jsx259, jsxs as jsxs40 } from "react/jsx-runtime";
11254
11333
  var renderBrandmark = (brandmarkColor, iconOnly) => {
11255
11334
  if (iconOnly) {
11256
- return /* @__PURE__ */ jsx258(
11335
+ return /* @__PURE__ */ jsx259(
11257
11336
  "g",
11258
11337
  {
11259
11338
  "data-testid": "ui-wistia-logo-brandmark",
11260
11339
  fill: brandmarkColor,
11261
- children: /* @__PURE__ */ jsx258("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" })
11340
+ children: /* @__PURE__ */ jsx259("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" })
11262
11341
  }
11263
11342
  );
11264
11343
  }
11265
- return /* @__PURE__ */ jsx258(
11344
+ return /* @__PURE__ */ jsx259(
11266
11345
  "g",
11267
11346
  {
11268
11347
  "data-testid": "ui-wistia-logo-brandmark",
11269
11348
  fill: brandmarkColor,
11270
- children: /* @__PURE__ */ jsx258("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" })
11349
+ children: /* @__PURE__ */ jsx259("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" })
11271
11350
  }
11272
11351
  );
11273
11352
  };
@@ -11275,12 +11354,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
11275
11354
  if (iconOnly) {
11276
11355
  return null;
11277
11356
  }
11278
- return /* @__PURE__ */ jsx258(
11357
+ return /* @__PURE__ */ jsx259(
11279
11358
  "g",
11280
11359
  {
11281
11360
  "data-testid": "ui-wistia-logo-logotype",
11282
11361
  fill: logotypeColor,
11283
- children: /* @__PURE__ */ jsx258("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" })
11362
+ children: /* @__PURE__ */ jsx259("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" })
11284
11363
  }
11285
11364
  );
11286
11365
  };
@@ -11290,7 +11369,7 @@ var computedViewBox = (iconOnly) => {
11290
11369
  }
11291
11370
  return "0 0 144 31.47";
11292
11371
  };
11293
- var WistiaLogoComponent = styled66.svg`
11372
+ var WistiaLogoComponent = styled67.svg`
11294
11373
  height: ${({ height }) => `${height}px`};
11295
11374
 
11296
11375
  /* ensure it will always fit on mobile */
@@ -11348,7 +11427,7 @@ var WistiaLogo = ({
11348
11427
  };
11349
11428
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
11350
11429
  const logotypeColor = VARIANT_COLORS[variant].logotype;
11351
- const Logo = /* @__PURE__ */ jsxs39(
11430
+ const Logo = /* @__PURE__ */ jsxs40(
11352
11431
  WistiaLogoComponent,
11353
11432
  {
11354
11433
  $hoverColor: hoverColor,
@@ -11361,14 +11440,14 @@ var WistiaLogo = ({
11361
11440
  xmlns: "http://www.w3.org/2000/svg",
11362
11441
  ...otherProps,
11363
11442
  children: [
11364
- /* @__PURE__ */ jsx258("title", { children: title }),
11365
- isNotNil24(description) ? /* @__PURE__ */ jsx258("desc", { children: description }) : null,
11443
+ /* @__PURE__ */ jsx259("title", { children: title }),
11444
+ isNotNil25(description) ? /* @__PURE__ */ jsx259("desc", { children: description }) : null,
11366
11445
  renderBrandmark(brandmarkColor, iconOnly),
11367
11446
  renderLogotype(logotypeColor, iconOnly)
11368
11447
  ]
11369
11448
  }
11370
11449
  );
11371
- return href !== void 0 ? /* @__PURE__ */ jsx258("a", { href, children: Logo }) : Logo;
11450
+ return href !== void 0 ? /* @__PURE__ */ jsx259("a", { href, children: Logo }) : Logo;
11372
11451
  };
11373
11452
  WistiaLogo.displayName = "WistiaLogo";
11374
11453
  export {
@@ -11419,6 +11498,7 @@ export {
11419
11498
  Modal,
11420
11499
  PersistentFileAmountLimitValidator,
11421
11500
  Popover,
11501
+ ProgressBar,
11422
11502
  Radio,
11423
11503
  RadioGroup,
11424
11504
  RadioMenuItem,