@wistia/ui 0.9.2 → 0.9.3-beta.2248d8ec.76736a6

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.9.2
3
+ * @license @wistia/ui v0.9.3-beta.2248d8ec.76736a6
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -103,7 +103,6 @@ __export(index_exports, {
103
103
  Stack: () => Stack,
104
104
  SubMenu: () => SubMenu,
105
105
  Switch: () => Switch,
106
- Tab: () => Tab,
107
106
  Table: () => Table,
108
107
  TableBody: () => TableBody,
109
108
  TableCell: () => TableCell,
@@ -111,6 +110,9 @@ __export(index_exports, {
111
110
  TableHead: () => TableHead,
112
111
  TableRow: () => TableRow,
113
112
  Tabs: () => Tabs,
113
+ TabsContent: () => TabsContent,
114
+ TabsList: () => TabsList,
115
+ TabsTrigger: () => TabsTrigger,
114
116
  Tag: () => Tag,
115
117
  Text: () => Text,
116
118
  Thumbnail: () => Thumbnail,
@@ -7374,6 +7376,8 @@ var StyledActionButton = (0, import_styled_components22.default)(Button)`
7374
7376
 
7375
7377
  &:hover,
7376
7378
  :focus-visible {
7379
+ --wui-color-text: var(--wui-color-text-button);
7380
+
7377
7381
  ${({ $hoverColorScheme }) => getColorScheme($hoverColorScheme)};
7378
7382
  background: var(--wui-color-bg-surface-tertiary);
7379
7383
  }
@@ -7416,7 +7420,7 @@ var StyledSecondaryIcon = import_styled_components22.default.div`
7416
7420
  width: 100%;
7417
7421
  display: flex;
7418
7422
  justify-content: flex-end;
7419
- transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
7423
+ transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-out);
7420
7424
 
7421
7425
  ${({ $hideUntilHover }) => $hideUntilHover && import_styled_components22.css`
7422
7426
  will-change: transform;
@@ -8586,6 +8590,7 @@ var CollapsibleContent = ({ clamp, children }) => {
8586
8590
  };
8587
8591
 
8588
8592
  // src/components/DataCards/DataCard.tsx
8593
+ var import_react33 = require("react");
8589
8594
  var import_styled_components40 = __toESM(require("styled-components"));
8590
8595
  var import_type_guards29 = require("@wistia/type-guards");
8591
8596
 
@@ -8719,7 +8724,6 @@ var Heading = makePolymorphic(HeadingComponent);
8719
8724
  // src/components/DataCards/DataCard.tsx
8720
8725
  var import_jsx_runtime213 = require("react/jsx-runtime");
8721
8726
  var StyledDataCard = import_styled_components40.default.div`
8722
- ${({ $colorScheme }) => getColorScheme($colorScheme)}
8723
8727
  display: grid;
8724
8728
  grid-template-areas: 'label slot' 'value value';
8725
8729
  grid-template-rows: auto auto;
@@ -8730,6 +8734,49 @@ var StyledDataCard = import_styled_components40.default.div`
8730
8734
  flex: 1;
8731
8735
  border-radius: var(--wui-border-radius-02);
8732
8736
  position: relative;
8737
+ transition: background var(--wui-motion-duration-01) var(--wui-motion-ease);
8738
+
8739
+ &[data-click-region] {
8740
+ [data-wui-data-card-hover-icon] {
8741
+ opacity: 0;
8742
+ transform: translateX(-16px);
8743
+ transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-out);
8744
+ }
8745
+
8746
+ &:not([disabled]) {
8747
+ cursor: pointer;
8748
+
8749
+ &:hover,
8750
+ &:has([data-click-region-target-button]:focus-visible),
8751
+ &:has([data-click-region-target-link]:focus-visible) {
8752
+ --wui-color-text: var(--wui-color-text-button);
8753
+
8754
+ background: var(--wui-color-bg-surface-secondary-hover);
8755
+
8756
+ [data-wui-data-card-hover-icon] {
8757
+ opacity: 1;
8758
+ transform: translateX(0);
8759
+ }
8760
+ }
8761
+
8762
+ &:has([data-click-region-target-button]:active),
8763
+ &:has([data-click-region-target-link]:active) {
8764
+ background: var(--wui-color-bg-surface-secondary-active);
8765
+ }
8766
+
8767
+ &:has([data-click-region-target-button]:focus-visible),
8768
+ &:has([data-click-region-target-link]:focus-visible) {
8769
+ outline: 2px solid var(--wui-color-focus-ring);
8770
+ outline-offset: 2px;
8771
+ }
8772
+ }
8773
+
8774
+ &[disabled] {
8775
+ pointer-events: none;
8776
+ }
8777
+
8778
+ ${({ $colorScheme }) => getColorScheme($colorScheme)}
8779
+ }
8733
8780
  `;
8734
8781
  var shimmer = import_styled_components40.keyframes`
8735
8782
  0% {
@@ -8775,7 +8822,7 @@ var StyledDataCardTrendContainer = import_styled_components40.default.div`
8775
8822
  bottom: var(--wui-space-01);
8776
8823
  right: var(--wui-space-01);
8777
8824
  `;
8778
- var DataCard = ({
8825
+ var DataCardInner = ({
8779
8826
  label,
8780
8827
  value,
8781
8828
  upperRightSlot,
@@ -8810,6 +8857,38 @@ var DataCard = ({
8810
8857
  ]
8811
8858
  }
8812
8859
  );
8860
+ var DataCardArrowIcon = /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8861
+ Icon,
8862
+ {
8863
+ "data-wui-data-card-hover-icon": true,
8864
+ type: "arrow-right"
8865
+ }
8866
+ );
8867
+ var DataCard = (props) => {
8868
+ const ref = (0, import_react33.useRef)(null);
8869
+ if ((0, import_type_guards29.isNotNil)(props.href) || (0, import_type_guards29.isNotNil)(props.onClick)) {
8870
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8871
+ DataCardInner,
8872
+ {
8873
+ upperRightSlot: props.upperRightSlot ?? DataCardArrowIcon,
8874
+ ...props,
8875
+ label: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
8876
+ Button,
8877
+ {
8878
+ ref,
8879
+ ...(0, import_type_guards29.isNotNil)(props.beforeAction) ? { beforeAction: props.beforeAction } : {},
8880
+ disabled: props.disabled ?? false,
8881
+ href: props.href,
8882
+ onClick: props.onClick,
8883
+ unstyled: true,
8884
+ children: props.label
8885
+ }
8886
+ )
8887
+ }
8888
+ ) });
8889
+ }
8890
+ return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(DataCardInner, { ...props });
8891
+ };
8813
8892
  DataCard.displayName = "DataCard";
8814
8893
 
8815
8894
  // src/components/DataCards/DataCards.tsx
@@ -8850,7 +8929,7 @@ DataCards.displayName = "DataCards";
8850
8929
  var import_styled_components43 = __toESM(require("styled-components"));
8851
8930
 
8852
8931
  // src/components/Text/Text.tsx
8853
- var import_react33 = require("react");
8932
+ var import_react34 = require("react");
8854
8933
  var import_styled_components42 = __toESM(require("styled-components"));
8855
8934
  var import_type_guards30 = require("@wistia/type-guards");
8856
8935
  var import_jsx_runtime215 = require("react/jsx-runtime");
@@ -9025,7 +9104,7 @@ var StyledText = import_styled_components42.default.div`
9025
9104
  }
9026
9105
  `}
9027
9106
  `;
9028
- var TextComponent = (0, import_react33.forwardRef)(
9107
+ var TextComponent = (0, import_react34.forwardRef)(
9029
9108
  ({
9030
9109
  align = "left",
9031
9110
  colorScheme = "inherit",
@@ -9138,7 +9217,7 @@ Divider.displayName = "Divider";
9138
9217
 
9139
9218
  // src/components/EditableHeading/EditableHeading.tsx
9140
9219
  var import_styled_components48 = __toESM(require("styled-components"));
9141
- var import_react35 = require("react");
9220
+ var import_react36 = require("react");
9142
9221
 
9143
9222
  // src/components/Tooltip/Tooltip.tsx
9144
9223
  var import_react_tooltip2 = require("@radix-ui/react-tooltip");
@@ -9290,7 +9369,7 @@ var Tooltip = ({
9290
9369
  Tooltip.displayName = "Tooltip";
9291
9370
 
9292
9371
  // src/components/Input/Input.tsx
9293
- var import_react34 = require("react");
9372
+ var import_react35 = require("react");
9294
9373
  var import_styled_components47 = __toESM(require("styled-components"));
9295
9374
  var import_type_guards31 = require("@wistia/type-guards");
9296
9375
 
@@ -9425,7 +9504,7 @@ var StyledInputContainer = import_styled_components47.default.div`
9425
9504
  padding-right: 32px;
9426
9505
  }
9427
9506
  `;
9428
- var Input = (0, import_react34.forwardRef)(
9507
+ var Input = (0, import_react35.forwardRef)(
9429
9508
  ({
9430
9509
  fullWidth = true,
9431
9510
  monospace = false,
@@ -9435,7 +9514,7 @@ var Input = (0, import_react34.forwardRef)(
9435
9514
  rightIcon,
9436
9515
  ...props
9437
9516
  }, externalRef) => {
9438
- const internalRef = (0, import_react34.useRef)();
9517
+ const internalRef = (0, import_react35.useRef)();
9439
9518
  const ref = (
9440
9519
  // eslint-disable-next-line react-compiler/react-compiler
9441
9520
  (0, import_type_guards31.isNotNil)(externalRef) && (0, import_type_guards31.isRecord)(externalRef) && "current" in externalRef ? externalRef : internalRef
@@ -9445,14 +9524,14 @@ var Input = (0, import_react34.forwardRef)(
9445
9524
  leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon, { type: "search" });
9446
9525
  }
9447
9526
  if ((0, import_type_guards31.isNotNil)(leftIconToDisplay)) {
9448
- leftIconToDisplay = (0, import_react34.cloneElement)(leftIconToDisplay, {
9527
+ leftIconToDisplay = (0, import_react35.cloneElement)(leftIconToDisplay, {
9449
9528
  size: "md",
9450
9529
  className: "wui-input-left-icon"
9451
9530
  });
9452
9531
  }
9453
9532
  let rightIconToDisplay = rightIcon;
9454
9533
  if ((0, import_type_guards31.isNotNil)(rightIconToDisplay)) {
9455
- rightIconToDisplay = (0, import_react34.cloneElement)(rightIconToDisplay, {
9534
+ rightIconToDisplay = (0, import_react35.cloneElement)(rightIconToDisplay, {
9456
9535
  size: "md",
9457
9536
  className: "wui-input-right-icon"
9458
9537
  });
@@ -9544,11 +9623,11 @@ var EditableHeading = ({
9544
9623
  __forceEditing = false,
9545
9624
  editingDisabled = false
9546
9625
  }) => {
9547
- const [isEditing, setIsEditing] = (0, import_react35.useState)(false);
9548
- const [value, setValue] = (0, import_react35.useState)(children);
9549
- const [previousValue, setPreviousValue] = (0, import_react35.useState)(children);
9550
- const [headingHeight, setHeadingHeight] = (0, import_react35.useState)("60");
9551
- const headingRef = (0, import_react35.useRef)(null);
9626
+ const [isEditing, setIsEditing] = (0, import_react36.useState)(false);
9627
+ const [value, setValue] = (0, import_react36.useState)(children);
9628
+ const [previousValue, setPreviousValue] = (0, import_react36.useState)(children);
9629
+ const [headingHeight, setHeadingHeight] = (0, import_react36.useState)("60");
9630
+ const headingRef = (0, import_react36.useRef)(null);
9552
9631
  const handleSetEditing = (editing) => {
9553
9632
  if (editingDisabled) return;
9554
9633
  if (editing && headingRef.current) {
@@ -9627,12 +9706,12 @@ var EditableHeading = ({
9627
9706
  };
9628
9707
 
9629
9708
  // src/components/Form/Form.tsx
9630
- var import_react37 = require("react");
9709
+ var import_react38 = require("react");
9631
9710
  var import_styled_components50 = __toESM(require("styled-components"));
9632
9711
  var import_type_guards32 = require("@wistia/type-guards");
9633
9712
 
9634
9713
  // src/components/Stack/Stack.tsx
9635
- var import_react36 = require("react");
9714
+ var import_react37 = require("react");
9636
9715
  var import_styled_components49 = __toESM(require("styled-components"));
9637
9716
  var import_jsx_runtime221 = require("react/jsx-runtime");
9638
9717
  var DEFAULT_ELEMENT4 = "div";
@@ -9642,7 +9721,7 @@ var StyledStack = import_styled_components49.default.div`
9642
9721
  gap: ${({ $gap }) => `var(--wui-${$gap})`};
9643
9722
  align-items: ${({ $alignItems }) => $alignItems};
9644
9723
  `;
9645
- var StackComponent = (0, import_react36.forwardRef)(
9724
+ var StackComponent = (0, import_react37.forwardRef)(
9646
9725
  ({ renderAs, direction = "vertical", gap = "space-02", alignItems = "stretch", ...props }, ref) => {
9647
9726
  const responsiveGap = useResponsiveProp(gap);
9648
9727
  const responsiveDirection = useResponsiveProp(direction);
@@ -9671,7 +9750,7 @@ var StyledForm = import_styled_components50.default.form`
9671
9750
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9672
9751
  align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9673
9752
  `;
9674
- var FormContext = (0, import_react37.createContext)({
9753
+ var FormContext = (0, import_react38.createContext)({
9675
9754
  values: {},
9676
9755
  errors: {},
9677
9756
  hasSubmitted: false,
@@ -9687,11 +9766,11 @@ var FormComponent = ({
9687
9766
  fullWidth = false,
9688
9767
  ...props
9689
9768
  }, forwardedRef) => {
9690
- const [errors, setErrors] = (0, import_react37.useState)({});
9691
- const [hasSubmitted, setHasSubmitted] = (0, import_react37.useState)(false);
9692
- const innerRef = (0, import_react37.useRef)();
9769
+ const [errors, setErrors] = (0, import_react38.useState)({});
9770
+ const [hasSubmitted, setHasSubmitted] = (0, import_react38.useState)(false);
9771
+ const innerRef = (0, import_react38.useRef)();
9693
9772
  const ref = forwardedRef ?? innerRef;
9694
- const autoId = (0, import_react37.useId)();
9773
+ const autoId = (0, import_react38.useId)();
9695
9774
  const id = props.id ?? autoId;
9696
9775
  const handleValidate = (nextFormData) => {
9697
9776
  const nextData = Object.fromEntries(nextFormData.entries());
@@ -9733,7 +9812,7 @@ var FormComponent = ({
9733
9812
  void action(null);
9734
9813
  }
9735
9814
  };
9736
- const context = (0, import_react37.useMemo)(() => {
9815
+ const context = (0, import_react38.useMemo)(() => {
9737
9816
  return {
9738
9817
  values,
9739
9818
  errors,
@@ -9762,15 +9841,15 @@ var FormComponent = ({
9762
9841
  );
9763
9842
  };
9764
9843
  FormComponent.displayName = "Form";
9765
- var Form = (0, import_react37.forwardRef)(FormComponent);
9844
+ var Form = (0, import_react38.forwardRef)(FormComponent);
9766
9845
 
9767
9846
  // src/components/Form/useFormState.tsx
9768
- var import_react38 = require("react");
9847
+ var import_react39 = require("react");
9769
9848
  var useFormState = (action, initialData = {}) => {
9770
- const [data, setData] = (0, import_react38.useState)(initialData);
9771
- const [isPending, setIsPending] = (0, import_react38.useState)(false);
9772
- const [error, setError] = (0, import_react38.useState)(null);
9773
- const formAction = (0, import_react38.useCallback)(
9849
+ const [data, setData] = (0, import_react39.useState)(initialData);
9850
+ const [isPending, setIsPending] = (0, import_react39.useState)(false);
9851
+ const [error, setError] = (0, import_react39.useState)(null);
9852
+ const formAction = (0, import_react39.useCallback)(
9774
9853
  async (nextFormData) => {
9775
9854
  if (nextFormData === null) {
9776
9855
  setData(initialData);
@@ -9801,15 +9880,15 @@ var useFormState = (action, initialData = {}) => {
9801
9880
  };
9802
9881
 
9803
9882
  // src/components/Form/FormErrorSummary.tsx
9804
- var import_react39 = require("react");
9883
+ var import_react40 = require("react");
9805
9884
  var import_type_guards33 = require("@wistia/type-guards");
9806
9885
  var import_jsx_runtime223 = require("react/jsx-runtime");
9807
9886
  var ErrorItem = ({ name, error, formId }) => {
9808
9887
  return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Link, { href: `#${formId}-${name}`, children: error }) }, name);
9809
9888
  };
9810
9889
  var FormErrorSummary = ({ description }) => {
9811
- const ref = (0, import_react39.useRef)(null);
9812
- const { formId, errors, hasSubmitted } = (0, import_react39.useContext)(FormContext);
9890
+ const ref = (0, import_react40.useRef)(null);
9891
+ const { formId, errors, hasSubmitted } = (0, import_react40.useContext)(FormContext);
9813
9892
  const isValid = Object.keys(errors).length === 0;
9814
9893
  if (isValid || !hasSubmitted) {
9815
9894
  return null;
@@ -9839,7 +9918,7 @@ var FormErrorSummary = ({ description }) => {
9839
9918
  };
9840
9919
 
9841
9920
  // src/components/FormField/FormField.tsx
9842
- var import_react42 = require("react");
9921
+ var import_react43 = require("react");
9843
9922
  var import_styled_components53 = __toESM(require("styled-components"));
9844
9923
  var import_type_guards34 = require("@wistia/type-guards");
9845
9924
 
@@ -9904,11 +9983,11 @@ var Label = ({
9904
9983
  Label.displayName = "Label";
9905
9984
 
9906
9985
  // src/components/FormGroup/CheckboxGroup.tsx
9907
- var import_react41 = require("react");
9986
+ var import_react42 = require("react");
9908
9987
 
9909
9988
  // src/components/FormGroup/FormGroup.tsx
9910
9989
  var import_styled_components52 = __toESM(require("styled-components"));
9911
- var import_react40 = require("react");
9990
+ var import_react41 = require("react");
9912
9991
  var import_jsx_runtime225 = require("react/jsx-runtime");
9913
9992
  var StyledFieldset = import_styled_components52.default.fieldset`
9914
9993
  border: 0;
@@ -9917,7 +9996,7 @@ var StyledLegend = import_styled_components52.default.legend`
9917
9996
  margin-bottom: var(--space-01);
9918
9997
  `;
9919
9998
  var FormGroup = ({ children, label, ...props }) => {
9920
- const ref = (0, import_react40.useRef)();
9999
+ const ref = (0, import_react41.useRef)();
9921
10000
  return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
9922
10001
  Stack,
9923
10002
  {
@@ -9942,7 +10021,7 @@ FormGroup.displayName = "FormGroup";
9942
10021
 
9943
10022
  // src/components/FormGroup/CheckboxGroup.tsx
9944
10023
  var import_jsx_runtime226 = require("react/jsx-runtime");
9945
- var CheckboxGroupContext = (0, import_react41.createContext)(null);
10024
+ var CheckboxGroupContext = (0, import_react42.createContext)(null);
9946
10025
  var CheckboxGroup = ({
9947
10026
  children,
9948
10027
  name,
@@ -9950,7 +10029,7 @@ var CheckboxGroup = ({
9950
10029
  value,
9951
10030
  ...props
9952
10031
  }) => {
9953
- const context = (0, import_react41.useMemo)(() => {
10032
+ const context = (0, import_react42.useMemo)(() => {
9954
10033
  return {
9955
10034
  name,
9956
10035
  onChange
@@ -10035,8 +10114,8 @@ var FormField = ({
10035
10114
  value,
10036
10115
  ...props
10037
10116
  }) => {
10038
- const formState = (0, import_react42.useContext)(FormContext);
10039
- const checkboxGroup = (0, import_react42.useContext)(CheckboxGroupContext);
10117
+ const formState = (0, import_react43.useContext)(FormContext);
10118
+ const checkboxGroup = (0, import_react43.useContext)(CheckboxGroupContext);
10040
10119
  const defaultValue = formState.values[name];
10041
10120
  const isIntegratedLabel = children.type === Checkbox;
10042
10121
  const computedId = id ?? `${formState.formId}-${name}`;
@@ -10074,7 +10153,7 @@ var FormField = ({
10074
10153
  "aria-invalid": (0, import_type_guards34.isNotNil)(error)
10075
10154
  };
10076
10155
  }
10077
- import_react42.Children.only(children);
10156
+ import_react43.Children.only(children);
10078
10157
  return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
10079
10158
  StyledFormField,
10080
10159
  {
@@ -10083,7 +10162,7 @@ var FormField = ({
10083
10162
  children: [
10084
10163
  !isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Label, { htmlFor: computedId, children: label }),
10085
10164
  (0, import_type_guards34.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
10086
- (0, import_react42.cloneElement)(children, childProps),
10165
+ (0, import_react43.cloneElement)(children, childProps),
10087
10166
  (0, import_type_guards34.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, { children: [
10088
10167
  /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", {}),
10089
10168
  /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
@@ -10101,9 +10180,9 @@ var FormField = ({
10101
10180
  FormField.displayName = "FormField";
10102
10181
 
10103
10182
  // src/components/FormGroup/RadioGroup.tsx
10104
- var import_react43 = require("react");
10183
+ var import_react44 = require("react");
10105
10184
  var import_jsx_runtime228 = require("react/jsx-runtime");
10106
- var RadioGroupContext = (0, import_react43.createContext)(null);
10185
+ var RadioGroupContext = (0, import_react44.createContext)(null);
10107
10186
  var RadioGroup = ({
10108
10187
  children,
10109
10188
  name,
@@ -10111,7 +10190,7 @@ var RadioGroup = ({
10111
10190
  value,
10112
10191
  ...props
10113
10192
  }) => {
10114
- const context = (0, import_react43.useMemo)(() => {
10193
+ const context = (0, import_react44.useMemo)(() => {
10115
10194
  return {
10116
10195
  name,
10117
10196
  onChange
@@ -10122,7 +10201,7 @@ var RadioGroup = ({
10122
10201
  RadioGroup.displayName = "RadioGroup";
10123
10202
 
10124
10203
  // src/components/IconButton/IconButton.tsx
10125
- var import_react44 = require("react");
10204
+ var import_react45 = require("react");
10126
10205
  var import_styled_components54 = __toESM(require("styled-components"));
10127
10206
  var import_jsx_runtime229 = require("react/jsx-runtime");
10128
10207
  var StyledButton2 = (0, import_styled_components54.default)(Button)`
@@ -10139,7 +10218,7 @@ var StyledButton2 = (0, import_styled_components54.default)(Button)`
10139
10218
  align-items: center;
10140
10219
  line-height: 1;
10141
10220
  `;
10142
- var IconButton = (0, import_react44.forwardRef)(
10221
+ var IconButton = (0, import_react45.forwardRef)(
10143
10222
  ({ children, label, size = "md", ...props }, ref) => {
10144
10223
  const responsiveSize = useResponsiveProp(size);
10145
10224
  return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
@@ -10150,7 +10229,7 @@ var IconButton = (0, import_react44.forwardRef)(
10150
10229
  "aria-label": label,
10151
10230
  "data-wistia-ui-icon-button": true,
10152
10231
  size: responsiveSize,
10153
- children: (0, import_react44.cloneElement)(import_react44.Children.only(children), {
10232
+ children: (0, import_react45.cloneElement)(import_react45.Children.only(children), {
10154
10233
  size: responsiveSize
10155
10234
  })
10156
10235
  }
@@ -10161,7 +10240,7 @@ IconButton.displayName = "IconButton";
10161
10240
 
10162
10241
  // src/components/InputClickToCopy/InputClickToCopy.tsx
10163
10242
  var import_styled_components55 = __toESM(require("styled-components"));
10164
- var import_react45 = require("react");
10243
+ var import_react46 = require("react");
10165
10244
  var import_type_guards35 = require("@wistia/type-guards");
10166
10245
  var import_jsx_runtime230 = require("react/jsx-runtime");
10167
10246
  var StyledInput2 = (0, import_styled_components55.default)(Input)`
@@ -10174,10 +10253,10 @@ var StyledInput2 = (0, import_styled_components55.default)(Input)`
10174
10253
  }
10175
10254
  `;
10176
10255
  var COPY_SUCCESS_DURATION = 2e3;
10177
- var InputClickToCopy = (0, import_react45.forwardRef)(
10256
+ var InputClickToCopy = (0, import_react46.forwardRef)(
10178
10257
  ({ value, onCopy, ...props }, ref) => {
10179
- const [isCopied, setIsCopied] = (0, import_react45.useState)(false);
10180
- (0, import_react45.useEffect)(() => {
10258
+ const [isCopied, setIsCopied] = (0, import_react46.useState)(false);
10259
+ (0, import_react46.useEffect)(() => {
10181
10260
  if (isCopied) {
10182
10261
  const timeout = setTimeout(() => {
10183
10262
  setIsCopied(false);
@@ -10336,12 +10415,12 @@ KeyboardShortcut.displayName = "KeyboardShortcut";
10336
10415
  var import_styled_components57 = __toESM(require("styled-components"));
10337
10416
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
10338
10417
  var import_type_guards37 = require("@wistia/type-guards");
10339
- var import_react47 = require("react");
10418
+ var import_react48 = require("react");
10340
10419
 
10341
10420
  // src/components/Menu/MenuContext.tsx
10342
- var import_react46 = require("react");
10343
- var MenuContext = (0, import_react46.createContext)({ compact: false });
10344
- var useMenuContext = () => (0, import_react46.useContext)(MenuContext);
10421
+ var import_react47 = require("react");
10422
+ var MenuContext = (0, import_react47.createContext)({ compact: false });
10423
+ var useMenuContext = () => (0, import_react47.useContext)(MenuContext);
10345
10424
 
10346
10425
  // src/components/Menu/Menu.tsx
10347
10426
  var import_jsx_runtime232 = require("react/jsx-runtime");
@@ -10445,7 +10524,7 @@ var Menu = ({
10445
10524
  onInteractOutside,
10446
10525
  ...props
10447
10526
  }) => {
10448
- const contextValue = (0, import_react47.useMemo)(() => ({ compact }), [compact]);
10527
+ const contextValue = (0, import_react48.useMemo)(() => ({ compact }), [compact]);
10449
10528
  let controlProps = {
10450
10529
  ...(0, import_type_guards37.isNotNil)(onOpenChange) && (0, import_type_guards37.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
10451
10530
  };
@@ -10520,13 +10599,13 @@ var MenuLabel = ({ children, ...props }) => {
10520
10599
  MenuLabel.displayName = "MenuLabel";
10521
10600
 
10522
10601
  // src/components/Menu/SubMenu.tsx
10523
- var import_react49 = require("react");
10602
+ var import_react50 = require("react");
10524
10603
  var import_styled_components61 = __toESM(require("styled-components"));
10525
10604
  var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
10526
10605
  var import_type_guards39 = require("@wistia/type-guards");
10527
10606
 
10528
10607
  // src/components/Menu/MenuItemButton.tsx
10529
- var import_react48 = require("react");
10608
+ var import_react49 = require("react");
10530
10609
  var import_styled_components59 = __toESM(require("styled-components"));
10531
10610
  var import_type_guards38 = require("@wistia/type-guards");
10532
10611
  var import_jsx_runtime234 = require("react/jsx-runtime");
@@ -10603,7 +10682,7 @@ var StyledBadgeContainer = import_styled_components59.default.div`
10603
10682
  font-size: var(--wui-typography-label-4-size);
10604
10683
  color: var(--wui-color-text-secondary);
10605
10684
  `;
10606
- var MenuItemButton = (0, import_react48.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
10685
+ var MenuItemButton = (0, import_react49.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
10607
10686
  let { colorScheme, badge } = props;
10608
10687
  if (appearance === "dangerous") {
10609
10688
  if ((0, import_type_guards38.isNotUndefined)(colorScheme)) {
@@ -10703,7 +10782,7 @@ var SubMenu = ({
10703
10782
  ...props
10704
10783
  }) => {
10705
10784
  const { isSmAndUp } = useMq();
10706
- const [isExpanded, setIsExpanded] = (0, import_react49.useState)(false);
10785
+ const [isExpanded, setIsExpanded] = (0, import_react50.useState)(false);
10707
10786
  const { compact } = useMenuContext();
10708
10787
  return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
10709
10788
  /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(SubMenuTrigger, { ...props, children: [
@@ -10732,10 +10811,10 @@ var SubMenu = ({
10732
10811
  SubMenu.displayName = "SubMenu";
10733
10812
 
10734
10813
  // src/components/Menu/MenuItem.tsx
10735
- var import_react50 = require("react");
10814
+ var import_react51 = require("react");
10736
10815
  var import_react_dropdown_menu4 = require("@radix-ui/react-dropdown-menu");
10737
10816
  var import_jsx_runtime237 = require("react/jsx-runtime");
10738
- var MenuItem = (0, import_react50.forwardRef)(
10817
+ var MenuItem = (0, import_react51.forwardRef)(
10739
10818
  ({ onSelect = () => null, ...props }, ref) => {
10740
10819
  return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
10741
10820
  import_react_dropdown_menu4.DropdownMenuItem,
@@ -10884,7 +10963,7 @@ var CheckboxMenuItem = ({
10884
10963
  CheckboxMenuItem.displayName = "CheckboxMenuItem";
10885
10964
 
10886
10965
  // src/components/Modal/Modal.tsx
10887
- var import_react54 = require("react");
10966
+ var import_react55 = require("react");
10888
10967
  var import_styled_components66 = __toESM(require("styled-components"));
10889
10968
  var import_react_dialog4 = require("@radix-ui/react-dialog");
10890
10969
  var import_type_guards42 = require("@wistia/type-guards");
@@ -10944,19 +11023,19 @@ var ModalHeader = ({
10944
11023
  };
10945
11024
 
10946
11025
  // src/components/Modal/ModalContent.tsx
10947
- var import_react52 = require("react");
11026
+ var import_react53 = require("react");
10948
11027
  var import_styled_components64 = __toESM(require("styled-components"));
10949
11028
  var import_react_dialog3 = require("@radix-ui/react-dialog");
10950
11029
 
10951
11030
  // src/private/hooks/useFocusRestore/useFocusRestore.ts
10952
- var import_react51 = require("react");
11031
+ var import_react52 = require("react");
10953
11032
  var import_type_guards41 = require("@wistia/type-guards");
10954
11033
  var useFocusRestore = () => {
10955
- const previouslyFocusedRef = (0, import_react51.useRef)(null);
10956
- (0, import_react51.useEffect)(() => {
11034
+ const previouslyFocusedRef = (0, import_react52.useRef)(null);
11035
+ (0, import_react52.useEffect)(() => {
10957
11036
  previouslyFocusedRef.current = document.activeElement;
10958
11037
  }, []);
10959
- (0, import_react51.useEffect)(() => {
11038
+ (0, import_react52.useEffect)(() => {
10960
11039
  return () => {
10961
11040
  if ((0, import_type_guards41.isNotNil)(previouslyFocusedRef.current)) {
10962
11041
  setTimeout(() => {
@@ -11047,7 +11126,7 @@ var StyledModalContent = (0, import_styled_components64.default)(import_react_di
11047
11126
  }
11048
11127
  }
11049
11128
  `;
11050
- var ModalContent = (0, import_react52.forwardRef)(
11129
+ var ModalContent = (0, import_react53.forwardRef)(
11051
11130
  ({ fullHeight, width, alignHorizontal, alignVertical, children, ...props }, ref) => {
11052
11131
  useFocusRestore();
11053
11132
  return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
@@ -11067,7 +11146,7 @@ var ModalContent = (0, import_react52.forwardRef)(
11067
11146
  );
11068
11147
 
11069
11148
  // src/private/components/Backdrop/Backdrop.tsx
11070
- var import_react53 = require("react");
11149
+ var import_react54 = require("react");
11071
11150
  var import_styled_components65 = __toESM(require("styled-components"));
11072
11151
  var import_jsx_runtime244 = require("react/jsx-runtime");
11073
11152
  var alignVerticalMap = {
@@ -11107,7 +11186,7 @@ var BackdropComponent = import_styled_components65.default.div`
11107
11186
  }
11108
11187
  }
11109
11188
  `;
11110
- var Backdrop = (0, import_react53.forwardRef)(
11189
+ var Backdrop = (0, import_react54.forwardRef)(
11111
11190
  ({ alignHorizontal = "center", alignVertical = "center", children, ...otherProps }, ref) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
11112
11191
  BackdropComponent,
11113
11192
  {
@@ -11130,7 +11209,7 @@ var ModalBody = import_styled_components66.default.div`
11130
11209
  flex: 1 0 0;
11131
11210
  order: 2;
11132
11211
  `;
11133
- var Modal = (0, import_react54.forwardRef)(
11212
+ var Modal = (0, import_react55.forwardRef)(
11134
11213
  ({
11135
11214
  children,
11136
11215
  fullHeight = false,
@@ -11432,7 +11511,7 @@ var ProgressBar = ({
11432
11511
  ProgressBar.displayName = "ProgressBar";
11433
11512
 
11434
11513
  // src/components/Radio/Radio.tsx
11435
- var import_react55 = require("react");
11514
+ var import_react56 = require("react");
11436
11515
  var import_styled_components70 = __toESM(require("styled-components"));
11437
11516
  var import_type_guards45 = require("@wistia/type-guards");
11438
11517
  var import_jsx_runtime249 = require("react/jsx-runtime");
@@ -11535,7 +11614,7 @@ var StyledHiddenRadioInput = import_styled_components70.default.input`
11535
11614
  display: block;
11536
11615
  }
11537
11616
  `;
11538
- var Radio = (0, import_react55.forwardRef)(
11617
+ var Radio = (0, import_react56.forwardRef)(
11539
11618
  ({
11540
11619
  checked,
11541
11620
  disabled = false,
@@ -11550,7 +11629,7 @@ var Radio = (0, import_react55.forwardRef)(
11550
11629
  hideLabel = false,
11551
11630
  ...props
11552
11631
  }, ref) => {
11553
- const generatedId = (0, import_react55.useId)();
11632
+ const generatedId = (0, import_react56.useId)();
11554
11633
  const computedId = (0, import_type_guards45.isNonEmptyString)(id) ? id : `wistia-ui-radio-${generatedId}`;
11555
11634
  return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
11556
11635
  StyledRadioWrapper,
@@ -11600,20 +11679,20 @@ var Radio = (0, import_react55.forwardRef)(
11600
11679
  Radio.displayName = "Radio";
11601
11680
 
11602
11681
  // src/components/SegmentedControl/SegmentedControl.tsx
11603
- var import_react58 = require("react");
11682
+ var import_react59 = require("react");
11604
11683
  var import_styled_components72 = __toESM(require("styled-components"));
11605
11684
  var import_react_toggle_group = require("@radix-ui/react-toggle-group");
11606
11685
  var import_type_guards46 = require("@wistia/type-guards");
11607
11686
 
11608
11687
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11609
- var import_react56 = require("react");
11688
+ var import_react57 = require("react");
11610
11689
  var import_jsx_runtime250 = require("react/jsx-runtime");
11611
- var SelectedItemStyleContext = (0, import_react56.createContext)(null);
11690
+ var SelectedItemStyleContext = (0, import_react57.createContext)(null);
11612
11691
  var SelectedItemStyleProvider = ({
11613
11692
  children
11614
11693
  }) => {
11615
- const [selectedItemMeasurements, setSelectedItemMeasurements] = (0, import_react56.useState)(null);
11616
- const selectedItemIndicatorStyle = (0, import_react56.useMemo)(
11694
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = (0, import_react57.useState)(null);
11695
+ const selectedItemIndicatorStyle = (0, import_react57.useMemo)(
11617
11696
  () => selectedItemMeasurements != null ? {
11618
11697
  height: `${selectedItemMeasurements.offsetHeight}px`,
11619
11698
  transform: `translateX(${selectedItemMeasurements.offsetLeft}px) translateY(-50%)`,
@@ -11623,7 +11702,7 @@ var SelectedItemStyleProvider = ({
11623
11702
  },
11624
11703
  [selectedItemMeasurements]
11625
11704
  );
11626
- const contextValue = (0, import_react56.useMemo)(
11705
+ const contextValue = (0, import_react57.useMemo)(
11627
11706
  () => ({
11628
11707
  setSelectedItemMeasurements,
11629
11708
  selectedItemIndicatorStyle
@@ -11633,7 +11712,7 @@ var SelectedItemStyleProvider = ({
11633
11712
  return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(SelectedItemStyleContext.Provider, { value: contextValue, children });
11634
11713
  };
11635
11714
  var useSelectedItemStyle = () => {
11636
- const context = (0, import_react56.useContext)(SelectedItemStyleContext);
11715
+ const context = (0, import_react57.useContext)(SelectedItemStyleContext);
11637
11716
  if (context === null) {
11638
11717
  throw new Error("useSelectedItemStyle must be used within a SelectedItemStyleProvider");
11639
11718
  }
@@ -11644,11 +11723,11 @@ var useSelectedItemStyle = () => {
11644
11723
  var import_styled_components71 = __toESM(require("styled-components"));
11645
11724
 
11646
11725
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11647
- var import_react57 = require("react");
11648
- var SegmentedControlValueContext = (0, import_react57.createContext)(null);
11726
+ var import_react58 = require("react");
11727
+ var SegmentedControlValueContext = (0, import_react58.createContext)(null);
11649
11728
  var SegmentedControlValueProvider = SegmentedControlValueContext.Provider;
11650
11729
  var useSegmentedControlValue = () => {
11651
- const context = (0, import_react57.useContext)(SegmentedControlValueContext);
11730
+ const context = (0, import_react58.useContext)(SegmentedControlValueContext);
11652
11731
  if (context === null) {
11653
11732
  throw new Error("useSegmentedControlValue must be used within a SegmentedControlValueProvider");
11654
11733
  }
@@ -11694,7 +11773,7 @@ var segmentedControlStyles = import_styled_components72.css`
11694
11773
  var StyledSegmentedControl = (0, import_styled_components72.default)(import_react_toggle_group.Root)`
11695
11774
  ${segmentedControlStyles}
11696
11775
  `;
11697
- var SegmentedControl = (0, import_react58.forwardRef)(
11776
+ var SegmentedControl = (0, import_react59.forwardRef)(
11698
11777
  ({
11699
11778
  children,
11700
11779
  disabled = false,
@@ -11729,7 +11808,7 @@ var SegmentedControl = (0, import_react58.forwardRef)(
11729
11808
  SegmentedControl.displayName = "SegmentedControl";
11730
11809
 
11731
11810
  // src/components/SegmentedControl/SegmentedControlItem.tsx
11732
- var import_react59 = require("react");
11811
+ var import_react60 = require("react");
11733
11812
  var import_styled_components73 = __toESM(require("styled-components"));
11734
11813
  var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
11735
11814
  var import_type_guards47 = require("@wistia/type-guards");
@@ -11765,7 +11844,7 @@ var segmentedControlItemStyles = import_styled_components73.css`
11765
11844
  outline: 2px solid var(--wui-color-focus-ring);
11766
11845
  }
11767
11846
 
11768
- &:hover:not([data-state='on'], [data-state='active']) {
11847
+ &:hover:not([data-state='on'], [data-state='active'], [aria-selected='true']) {
11769
11848
  background-color: var(--wui-color-bg-surface-secondary-hover);
11770
11849
  }
11771
11850
 
@@ -11797,11 +11876,11 @@ var segmentedControlItemStyles = import_styled_components73.css`
11797
11876
  var StyledSegmentedControlItem = (0, import_styled_components73.default)(import_react_toggle_group2.Item)`
11798
11877
  ${segmentedControlItemStyles}
11799
11878
  `;
11800
- var SegmentedControlItem = (0, import_react59.forwardRef)(
11879
+ var SegmentedControlItem = (0, import_react60.forwardRef)(
11801
11880
  ({ disabled, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
11802
11881
  const selectedValue = useSegmentedControlValue();
11803
11882
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
11804
- const buttonRef = (0, import_react59.useRef)(null);
11883
+ const buttonRef = (0, import_react60.useRef)(null);
11805
11884
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
11806
11885
  const handleClick = (event) => {
11807
11886
  const target = event.target;
@@ -11810,7 +11889,7 @@ var SegmentedControlItem = (0, import_react59.forwardRef)(
11810
11889
  event.preventDefault();
11811
11890
  }
11812
11891
  };
11813
- (0, import_react59.useEffect)(() => {
11892
+ (0, import_react60.useEffect)(() => {
11814
11893
  const buttonElem = buttonRef.current;
11815
11894
  if (!buttonElem) {
11816
11895
  return void 0;
@@ -11856,7 +11935,7 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
11856
11935
 
11857
11936
  // src/components/Select/Select.tsx
11858
11937
  var import_react_select = require("@radix-ui/react-select");
11859
- var import_react60 = require("react");
11938
+ var import_react61 = require("react");
11860
11939
  var import_styled_components74 = __toESM(require("styled-components"));
11861
11940
  var import_jsx_runtime254 = require("react/jsx-runtime");
11862
11941
  var StyledTrigger = (0, import_styled_components74.default)(import_react_select.Trigger)`
@@ -11921,7 +12000,7 @@ var StyledContent3 = (0, import_styled_components74.default)(import_react_select
11921
12000
  max-height: var(--radix-select-content-available-height);
11922
12001
  z-index: var(--wui-zindex-select);
11923
12002
  `;
11924
- var Select = (0, import_react60.forwardRef)(
12003
+ var Select = (0, import_react61.forwardRef)(
11925
12004
  ({
11926
12005
  colorScheme = "inherit",
11927
12006
  children,
@@ -11970,7 +12049,7 @@ Select.displayName = "Select";
11970
12049
 
11971
12050
  // src/components/Select/SelectOption.tsx
11972
12051
  var import_react_select2 = require("@radix-ui/react-select");
11973
- var import_react61 = require("react");
12052
+ var import_react62 = require("react");
11974
12053
  var import_styled_components75 = __toESM(require("styled-components"));
11975
12054
  var import_type_guards48 = require("@wistia/type-guards");
11976
12055
  var import_jsx_runtime255 = require("react/jsx-runtime");
@@ -12001,7 +12080,7 @@ var StyledItem = (0, import_styled_components75.default)(import_react_select2.It
12001
12080
  var StyledIconContainer = import_styled_components75.default.span`
12002
12081
  width: 12px;
12003
12082
  `;
12004
- var SelectOption = (0, import_react61.forwardRef)(
12083
+ var SelectOption = (0, import_react62.forwardRef)(
12005
12084
  ({ children, selectedDisplayValue, ...props }, forwardedRef) => {
12006
12085
  return /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
12007
12086
  StyledItem,
@@ -12049,7 +12128,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
12049
12128
  };
12050
12129
 
12051
12130
  // src/components/Switch/Switch.tsx
12052
- var import_react62 = require("react");
12131
+ var import_react63 = require("react");
12053
12132
  var import_styled_components77 = __toESM(require("styled-components"));
12054
12133
  var import_type_guards49 = require("@wistia/type-guards");
12055
12134
  var import_jsx_runtime257 = require("react/jsx-runtime");
@@ -12154,7 +12233,7 @@ var StyledHiddenSwitchInput = import_styled_components77.default.input`
12154
12233
  }
12155
12234
  }
12156
12235
  `;
12157
- var Switch = (0, import_react62.forwardRef)(
12236
+ var Switch = (0, import_react63.forwardRef)(
12158
12237
  ({
12159
12238
  checked,
12160
12239
  disabled = false,
@@ -12169,7 +12248,7 @@ var Switch = (0, import_react62.forwardRef)(
12169
12248
  hideLabel = false,
12170
12249
  ...props
12171
12250
  }, ref) => {
12172
- const generatedId = (0, import_react62.useId)();
12251
+ const generatedId = (0, import_react63.useId)();
12173
12252
  const computedId = (0, import_type_guards49.isNonEmptyString)(id) ? id : `wistia-ui-switch-${generatedId}`;
12174
12253
  return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(StyledSwitchWrapper, { $disabled: disabled, children: [
12175
12254
  /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
@@ -12259,8 +12338,8 @@ var Table = ({
12259
12338
  var import_styled_components79 = __toESM(require("styled-components"));
12260
12339
 
12261
12340
  // src/components/Table/TableSectionContext.ts
12262
- var import_react63 = require("react");
12263
- var TableSectionContext = (0, import_react63.createContext)(null);
12341
+ var import_react64 = require("react");
12342
+ var TableSectionContext = (0, import_react64.createContext)(null);
12264
12343
 
12265
12344
  // src/components/Table/TableBody.tsx
12266
12345
  var import_jsx_runtime259 = require("react/jsx-runtime");
@@ -12270,7 +12349,7 @@ var TableBody = ({ children, ...props }) => {
12270
12349
  };
12271
12350
 
12272
12351
  // src/components/Table/TableCell.tsx
12273
- var import_react64 = require("react");
12352
+ var import_react65 = require("react");
12274
12353
  var import_styled_components80 = __toESM(require("styled-components"));
12275
12354
  var import_jsx_runtime260 = require("react/jsx-runtime");
12276
12355
  var sharedStyles = import_styled_components80.css`
@@ -12291,7 +12370,7 @@ var StyledTd = import_styled_components80.default.td`
12291
12370
  line-height: var(--wui-typography-body-2-line-height);
12292
12371
  `;
12293
12372
  var TableCell = ({ children, ...props }) => {
12294
- const section = (0, import_react64.useContext)(TableSectionContext);
12373
+ const section = (0, import_react65.useContext)(TableSectionContext);
12295
12374
  if (section === "head") {
12296
12375
  return /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(StyledTh, { ...props, children });
12297
12376
  }
@@ -12323,94 +12402,130 @@ var TableRow = ({ children, ...props }) => {
12323
12402
  };
12324
12403
 
12325
12404
  // src/components/Tabs/Tabs.tsx
12326
- var import_react68 = require("react");
12327
- var import_react_tabs4 = require("@radix-ui/react-tabs");
12328
- var import_type_guards51 = require("@wistia/type-guards");
12329
- var import_styled_components88 = __toESM(require("styled-components"));
12330
-
12331
- // src/components/Tabs/TabPanel.tsx
12332
- var import_styled_components84 = __toESM(require("styled-components"));
12333
12405
  var import_react_tabs = require("@radix-ui/react-tabs");
12406
+ var import_react67 = require("react");
12407
+ var import_type_guards50 = require("@wistia/type-guards");
12408
+
12409
+ // src/components/Tabs/useTabsValue.tsx
12410
+ var import_react66 = require("react");
12411
+ var TabsValueContext = (0, import_react66.createContext)(null);
12412
+ var TabsValueProvider = TabsValueContext.Provider;
12413
+ var useTabsValue = () => {
12414
+ const context = (0, import_react66.useContext)(TabsValueContext);
12415
+ if (context === null) {
12416
+ throw new Error("useTabsValue must be used within a TabsValueProvider");
12417
+ }
12418
+ return context;
12419
+ };
12420
+
12421
+ // src/components/Tabs/Tabs.tsx
12334
12422
  var import_jsx_runtime264 = require("react/jsx-runtime");
12335
- var StyledTabPanel = (0, import_styled_components84.default)(import_react_tabs.Content)`
12336
- display: flex;
12337
- flex-direction: column;
12338
- `;
12339
- var TabPanel = ({ children, value, ...props }) => {
12340
- return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
12341
- StyledTabPanel,
12342
- {
12343
- value,
12344
- ...props,
12345
- children
12346
- }
12423
+ var Tabs = ({
12424
+ children,
12425
+ value: valueProp,
12426
+ onValueChange: onValueChangeProp,
12427
+ defaultValue,
12428
+ ...props
12429
+ }) => {
12430
+ const [value, setValue] = (0, import_react67.useState)(valueProp ?? defaultValue);
12431
+ const onValueChange = (0, import_react67.useCallback)(
12432
+ (newValue) => {
12433
+ setValue(newValue);
12434
+ if (onValueChangeProp) {
12435
+ onValueChangeProp(newValue);
12436
+ }
12437
+ },
12438
+ [onValueChangeProp]
12347
12439
  );
12440
+ const rootProps = {
12441
+ ...props,
12442
+ onValueChange
12443
+ };
12444
+ if ((0, import_type_guards50.isNotNil)(value)) {
12445
+ rootProps.value = value;
12446
+ }
12447
+ if ((0, import_type_guards50.isNotNil)(defaultValue)) {
12448
+ rootProps.defaultValue = defaultValue;
12449
+ }
12450
+ return /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(import_react_tabs.Root, { ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(SelectedItemStyleProvider, { children }) }) });
12348
12451
  };
12349
- TabPanel.displayName = "TabPanel";
12452
+ Tabs.displayName = "Tabs";
12350
12453
 
12351
- // src/components/Tabs/TabList.tsx
12352
- var import_styled_components85 = __toESM(require("styled-components"));
12454
+ // src/components/Tabs/TabsContent.tsx
12353
12455
  var import_react_tabs2 = require("@radix-ui/react-tabs");
12354
12456
  var import_jsx_runtime265 = require("react/jsx-runtime");
12355
- var StyledTabList = (0, import_styled_components85.default)(import_react_tabs2.List)`
12356
- ${segmentedControlStyles}
12457
+ var TabsContent = ({ children, value }) => {
12458
+ return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(import_react_tabs2.Content, { value, children });
12459
+ };
12460
+ TabsContent.displayName = "TabsContent";
12357
12461
 
12358
- margin-bottom: var(--wui-space-04);
12359
- width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
12360
- align-self: ${({ $fullWidth }) => $fullWidth ? "auto" : "flex-start"};
12462
+ // src/components/Tabs/TabsList.tsx
12463
+ var import_react_tabs3 = require("@radix-ui/react-tabs");
12464
+ var import_styled_components85 = __toESM(require("styled-components"));
12465
+
12466
+ // src/components/Tabs/TabsSelectedItemIndicatorDiv.tsx
12467
+ var import_styled_components84 = __toESM(require("styled-components"));
12468
+ var TabsSelectedItemIndicatorDiv = (0, import_styled_components84.default)(SelectedItemIndicatorDiv)`
12469
+ &:has(~ button[role='tab']:focus-visible) {
12470
+ outline: 2px solid var(--wui-color-focus-ring);
12471
+ }
12361
12472
  `;
12362
- var TabList = ({
12363
- children,
12364
- fullWidth,
12365
- ariaLabel,
12366
- ...props
12367
- }) => {
12368
- return /* @__PURE__ */ (0, import_jsx_runtime265.jsx)(
12369
- StyledTabList,
12473
+
12474
+ // src/components/Tabs/SelectedTabIndicator.tsx
12475
+ var import_jsx_runtime266 = require("react/jsx-runtime");
12476
+ var SelectedTabIndicator = () => {
12477
+ const { selectedItemIndicatorStyle } = useSelectedItemStyle();
12478
+ const selectedValue = useTabsValue();
12479
+ if (selectedValue == null) {
12480
+ return null;
12481
+ }
12482
+ return /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12483
+ };
12484
+
12485
+ // src/components/Tabs/TabsList.tsx
12486
+ var import_jsx_runtime267 = require("react/jsx-runtime");
12487
+ var StyledRadixTabsList = (0, import_styled_components85.default)(import_react_tabs3.List)`
12488
+ ${segmentedControlStyles}
12489
+ `;
12490
+ var TabsList = ({ children, fullWidth = true, ...props }) => {
12491
+ return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
12492
+ StyledRadixTabsList,
12370
12493
  {
12371
12494
  $fullWidth: fullWidth,
12372
- "aria-label": ariaLabel,
12373
- ...props,
12374
- children
12495
+ "aria-label": props["aria-label"],
12496
+ children: [
12497
+ /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(SelectedTabIndicator, {}),
12498
+ children
12499
+ ]
12375
12500
  }
12376
12501
  );
12377
12502
  };
12378
- TabList.displayName = "TabList";
12379
-
12380
- // src/components/Tabs/TabItem.tsx
12381
- var import_react66 = require("react");
12382
- var import_styled_components86 = __toESM(require("styled-components"));
12383
- var import_react_tabs3 = require("@radix-ui/react-tabs");
12384
- var import_type_guards50 = require("@wistia/type-guards");
12503
+ TabsList.displayName = "TabsList";
12385
12504
 
12386
- // src/components/Tabs/useTabsValue.tsx
12387
- var import_react65 = require("react");
12388
- var TabsValueContext = (0, import_react65.createContext)(null);
12389
- var TabsValueProvider = TabsValueContext.Provider;
12390
- var useTabsValue = () => {
12391
- const context = (0, import_react65.useContext)(TabsValueContext);
12392
- if (context === null) {
12393
- throw new Error("useTabsValue must be used within a TabsValueProvider");
12394
- }
12395
- return context;
12396
- };
12505
+ // src/components/Tabs/TabsTrigger.tsx
12506
+ var import_react68 = require("react");
12507
+ var import_type_guards51 = require("@wistia/type-guards");
12397
12508
 
12398
- // src/components/Tabs/TabItem.tsx
12399
- var import_jsx_runtime266 = require("react/jsx-runtime");
12400
- var StyledTabItem = (0, import_styled_components86.default)(import_react_tabs3.Trigger)`
12509
+ // src/components/Tabs/StyledRadixTabsTrigger.tsx
12510
+ var import_styled_components86 = __toESM(require("styled-components"));
12511
+ var import_react_tabs4 = require("@radix-ui/react-tabs");
12512
+ var StyledRadixTabsTrigger = (0, import_styled_components86.default)(import_react_tabs4.Trigger)`
12401
12513
  ${segmentedControlItemStyles}
12402
12514
 
12403
12515
  &:focus-visible {
12404
12516
  outline: none;
12405
12517
  }
12406
12518
  `;
12407
- var TabItem = (0, import_react66.forwardRef)(
12408
- ({ disabled = false, icon, label, "aria-label": ariaLabel, value }, forwardedRef) => {
12519
+
12520
+ // src/components/Tabs/TabsTrigger.tsx
12521
+ var import_jsx_runtime268 = require("react/jsx-runtime");
12522
+ var TabsTrigger = (0, import_react68.forwardRef)(
12523
+ ({ disabled = false, icon, label, "aria-label": ariaLabel, value, ...otherProps }, forwardedRef) => {
12409
12524
  const selectedValue = useTabsValue();
12410
12525
  const { setSelectedItemMeasurements } = useSelectedItemStyle();
12411
- const buttonRef = (0, import_react66.useRef)(null);
12526
+ const buttonRef = (0, import_react68.useRef)(null);
12412
12527
  const combinedRef = mergeRefs([buttonRef, forwardedRef]);
12413
- (0, import_react66.useEffect)(() => {
12528
+ (0, import_react68.useEffect)(() => {
12414
12529
  const buttonElem = buttonRef.current;
12415
12530
  if (!buttonElem) {
12416
12531
  return void 0;
@@ -12435,12 +12550,13 @@ var TabItem = (0, import_react66.forwardRef)(
12435
12550
  resizeObserver.disconnect();
12436
12551
  };
12437
12552
  }, [selectedValue, setSelectedItemMeasurements, value]);
12438
- return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
12439
- StyledTabItem,
12553
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12554
+ StyledRadixTabsTrigger,
12440
12555
  {
12556
+ ...otherProps,
12441
12557
  ref: combinedRef,
12442
- $hasLabel: (0, import_type_guards50.isNotNil)(label),
12443
- "aria-label": (0, import_type_guards50.isNotNil)(label) ? void 0 : ariaLabel,
12558
+ $hasLabel: (0, import_type_guards51.isNotNil)(label),
12559
+ "aria-label": (0, import_type_guards51.isNotNil)(label) ? void 0 : ariaLabel,
12444
12560
  disabled,
12445
12561
  value,
12446
12562
  children: [
@@ -12451,176 +12567,14 @@ var TabItem = (0, import_react66.forwardRef)(
12451
12567
  );
12452
12568
  }
12453
12569
  );
12454
- TabItem.displayName = "TabItem";
12455
-
12456
- // src/components/Tabs/extractTabItems.ts
12457
- var import_react67 = require("react");
12458
- var extractTabItems = (children) => {
12459
- const tabItems = [];
12460
- import_react67.Children.forEach(children, (child) => {
12461
- if (!(0, import_react67.isValidElement)(child)) {
12462
- return;
12463
- }
12464
- if (typeof child.type !== "string" && child.type.displayName === "Tab") {
12465
- tabItems.push(child);
12466
- } else if (child.type === import_react67.Fragment) {
12467
- const fragmentElement = child;
12468
- tabItems.push(...extractTabItems(fragmentElement.props.children));
12469
- } else if ((child.props.children ?? null) != null) {
12470
- const childChildren = child.props.children;
12471
- tabItems.push(...extractTabItems(childChildren));
12472
- } else {
12473
- }
12474
- });
12475
- return tabItems;
12476
- };
12477
-
12478
- // src/components/Tabs/SelectedItemIndicator.tsx
12479
- var import_styled_components87 = __toESM(require("styled-components"));
12480
- var import_jsx_runtime267 = require("react/jsx-runtime");
12481
- var TabsSelectedItemIndicatorDiv = (0, import_styled_components87.default)(SelectedItemIndicatorDiv)`
12482
- &:has(~ ${StyledTabItem}:focus-visible) {
12483
- outline: 2px solid var(--wui-color-focus-ring);
12484
- }
12485
- `;
12486
- var SelectedItemIndicator2 = () => {
12487
- const { selectedItemIndicatorStyle } = useSelectedItemStyle();
12488
- const selectedValue = useTabsValue();
12489
- if (selectedValue == null) {
12490
- return null;
12491
- }
12492
- return /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(TabsSelectedItemIndicatorDiv, { style: selectedItemIndicatorStyle });
12493
- };
12494
-
12495
- // src/components/Tabs/Tabs.tsx
12496
- var import_jsx_runtime268 = require("react/jsx-runtime");
12497
- var TabsContainer = import_styled_components88.default.div`
12498
- display: flex;
12499
- flex-direction: column;
12500
- height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12501
- overflow: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12502
- `;
12503
- var StickyTabContent = import_styled_components88.default.div`
12504
- flex: ${({ $stickyHeaders }) => $stickyHeaders ? "1" : "initial"};
12505
- overflow-y: ${({ $stickyHeaders }) => $stickyHeaders ? "auto" : "visible"};
12506
- overflow-x: ${({ $stickyHeaders }) => $stickyHeaders ? "hidden" : "visible"};
12507
- `;
12508
- var StyledTabsRoot = (0, import_styled_components88.default)(import_react_tabs4.Root)`
12509
- display: flex;
12510
- flex-direction: column;
12511
- height: ${({ $stickyHeaders }) => $stickyHeaders ? "100%" : "auto"};
12512
- `;
12513
- var Tabs = (0, import_react68.forwardRef)(
12514
- ({
12515
- children,
12516
- fullWidth = true,
12517
- "aria-label": ariaLabel,
12518
- defaultSelectedValue,
12519
- selectedValue,
12520
- onSelectedValueChange,
12521
- stickyHeaders = true,
12522
- ...props
12523
- }, ref) => {
12524
- const tabItems = extractTabItems(children);
12525
- const [internalSelectedValue, setInternalSelectedValue] = (0, import_react68.useState)(defaultSelectedValue);
12526
- const modeProps = defaultSelectedValue !== void 0 ? {
12527
- defaultValue: defaultSelectedValue,
12528
- onValueChange: setInternalSelectedValue
12529
- } : { value: selectedValue, onValueChange: onSelectedValueChange };
12530
- const currentValue = defaultSelectedValue !== void 0 ? internalSelectedValue : selectedValue;
12531
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TabsContainer, { $stickyHeaders: stickyHeaders, children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12532
- StyledTabsRoot,
12533
- {
12534
- ref,
12535
- $stickyHeaders: stickyHeaders,
12536
- activationMode: "automatic",
12537
- ...props,
12538
- ...modeProps,
12539
- children: /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(TabsValueProvider, { value: currentValue, children: /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(SelectedItemStyleProvider, { children: [
12540
- /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
12541
- TabList,
12542
- {
12543
- ariaLabel,
12544
- fullWidth,
12545
- children: [
12546
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(SelectedItemIndicator2, {}),
12547
- tabItems.map((tab) => {
12548
- const {
12549
- value,
12550
- disabled = false,
12551
- icon,
12552
- label,
12553
- "aria-label": ariaLabelForTab
12554
- } = tab.props;
12555
- if ((0, import_type_guards51.isNil)(icon)) {
12556
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12557
- TabItem,
12558
- {
12559
- disabled,
12560
- label,
12561
- value
12562
- },
12563
- value
12564
- );
12565
- }
12566
- if ((0, import_type_guards51.isNotNil)(label)) {
12567
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12568
- TabItem,
12569
- {
12570
- disabled,
12571
- icon,
12572
- label,
12573
- value
12574
- },
12575
- value
12576
- );
12577
- }
12578
- if ((0, import_type_guards51.isNotNil)(ariaLabelForTab)) {
12579
- return /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12580
- TabItem,
12581
- {
12582
- "aria-label": ariaLabelForTab,
12583
- disabled,
12584
- icon,
12585
- value
12586
- },
12587
- value
12588
- );
12589
- }
12590
- throw new Error("A `Tab` with an icon must have either label or aria-label");
12591
- })
12592
- ]
12593
- }
12594
- ),
12595
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(StickyTabContent, { $stickyHeaders: stickyHeaders, children: tabItems.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
12596
- TabPanel,
12597
- {
12598
- value: tab.props.value,
12599
- children: tab.props.children
12600
- },
12601
- tab.props.value
12602
- )) })
12603
- ] }) })
12604
- }
12605
- ) });
12606
- }
12607
- );
12608
- Tabs.displayName = "Tabs";
12609
-
12610
- // src/components/Tabs/Tab.tsx
12611
- var import_react69 = require("react");
12612
- var import_jsx_runtime269 = require("react/jsx-runtime");
12613
- var Tab = (0, import_react69.forwardRef)(({ children }, ref) => {
12614
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("div", { ref, children });
12615
- });
12616
- Tab.displayName = "Tab";
12570
+ TabsTrigger.displayName = "TabsTrigger";
12617
12571
 
12618
12572
  // src/components/Tag/Tag.tsx
12619
- var import_react70 = require("react");
12620
- var import_styled_components89 = __toESM(require("styled-components"));
12573
+ var import_react69 = require("react");
12574
+ var import_styled_components87 = __toESM(require("styled-components"));
12621
12575
  var import_type_guards52 = require("@wistia/type-guards");
12622
- var import_jsx_runtime270 = require("react/jsx-runtime");
12623
- var TagLabel = import_styled_components89.default.a`
12576
+ var import_jsx_runtime269 = require("react/jsx-runtime");
12577
+ var TagLabel = import_styled_components87.default.a`
12624
12578
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12625
12579
  font-size: var(--wui-typography-label-4-size);
12626
12580
  font-weight: var(--wui-typography-label-4-weight);
@@ -12655,14 +12609,14 @@ var TagLabel = import_styled_components89.default.a`
12655
12609
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12656
12610
  }
12657
12611
  `;
12658
- var TagDivider = import_styled_components89.default.div`
12612
+ var TagDivider = import_styled_components87.default.div`
12659
12613
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12660
12614
  border-left: 1px solid var(--wui-color-border);
12661
12615
  display: flex;
12662
12616
  height: 14px;
12663
12617
  width: 1px;
12664
12618
  `;
12665
- var StyledRemoveButton = import_styled_components89.default.button`
12619
+ var StyledRemoveButton = import_styled_components87.default.button`
12666
12620
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12667
12621
  all: unset;
12668
12622
  cursor: pointer;
@@ -12690,7 +12644,7 @@ var StyledRemoveButton = import_styled_components89.default.button`
12690
12644
  box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
12691
12645
  }
12692
12646
  `;
12693
- var StyledTag = import_styled_components89.default.div`
12647
+ var StyledTag = import_styled_components87.default.div`
12694
12648
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
12695
12649
  align-items: center;
12696
12650
  background-color: var(--wui-color-bg-surface-secondary);
@@ -12711,40 +12665,40 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
12711
12665
  "for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
12712
12666
  );
12713
12667
  }
12714
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(import_jsx_runtime270.Fragment, { children: [
12715
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(TagDivider, { $colorScheme: colorScheme }),
12716
- /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12668
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(import_jsx_runtime269.Fragment, { children: [
12669
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(TagDivider, { $colorScheme: colorScheme }),
12670
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12717
12671
  StyledRemoveButton,
12718
12672
  {
12719
12673
  $colorScheme: colorScheme,
12720
12674
  onClick: onClickRemove,
12721
12675
  type: "button",
12722
12676
  children: [
12723
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12677
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12724
12678
  Icon,
12725
12679
  {
12726
12680
  size: "sm",
12727
12681
  type: "close"
12728
12682
  }
12729
12683
  ),
12730
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12684
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(ScreenReaderOnly, { children: onClickRemoveLabel })
12731
12685
  ]
12732
12686
  }
12733
12687
  )
12734
12688
  ] });
12735
12689
  };
12736
- var Tag = (0, import_react70.forwardRef)(
12690
+ var Tag = (0, import_react69.forwardRef)(
12737
12691
  ({ onClickRemove, colorScheme = "inherit", href, icon, label, onClickRemoveLabel, ...props }, ref) => {
12738
12692
  const hasIcon = (0, import_type_guards52.isNotNil)(icon);
12739
12693
  const labelProps = (0, import_type_guards52.isNotNil)(href) && (0, import_type_guards52.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
12740
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12694
+ return /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12741
12695
  StyledTag,
12742
12696
  {
12743
12697
  ref,
12744
12698
  $colorScheme: colorScheme,
12745
12699
  ...props,
12746
12700
  children: [
12747
- /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
12701
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
12748
12702
  TagLabel,
12749
12703
  {
12750
12704
  ...labelProps,
@@ -12755,7 +12709,7 @@ var Tag = (0, import_react70.forwardRef)(
12755
12709
  ]
12756
12710
  }
12757
12711
  ),
12758
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
12712
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
12759
12713
  RemoveButton,
12760
12714
  {
12761
12715
  colorScheme,
@@ -12771,10 +12725,10 @@ var Tag = (0, import_react70.forwardRef)(
12771
12725
  Tag.displayName = "Tag";
12772
12726
 
12773
12727
  // src/components/Thumbnail/ThumbnailBadge.tsx
12774
- var import_styled_components90 = __toESM(require("styled-components"));
12728
+ var import_styled_components88 = __toESM(require("styled-components"));
12775
12729
  var import_type_guards53 = require("@wistia/type-guards");
12776
- var import_jsx_runtime271 = require("react/jsx-runtime");
12777
- var StyledThumbnailBadge = import_styled_components90.default.div`
12730
+ var import_jsx_runtime270 = require("react/jsx-runtime");
12731
+ var StyledThumbnailBadge = import_styled_components88.default.div`
12778
12732
  align-items: center;
12779
12733
  background-color: rgb(0 0 0 / 50%);
12780
12734
  border-radius: var(--wui-border-radius-01);
@@ -12799,23 +12753,23 @@ var StyledThumbnailBadge = import_styled_components90.default.div`
12799
12753
  }
12800
12754
  `;
12801
12755
  var ThumbnailBadge = ({ icon, label, ...props }) => {
12802
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(StyledThumbnailBadge, { ...props, children: [
12756
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(StyledThumbnailBadge, { ...props, children: [
12803
12757
  (0, import_type_guards53.isNotNil)(icon) && icon,
12804
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("span", { children: label })
12758
+ /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("span", { children: label })
12805
12759
  ] });
12806
12760
  };
12807
12761
  ThumbnailBadge.displayName = "ThumbnailBadge";
12808
12762
 
12809
12763
  // src/components/Thumbnail/Thumbnail.tsx
12810
- var import_react71 = require("react");
12811
- var import_styled_components92 = __toESM(require("styled-components"));
12812
- var import_type_guards55 = require("@wistia/type-guards");
12764
+ var import_react70 = require("react");
12765
+ var import_styled_components91 = __toESM(require("styled-components"));
12766
+ var import_type_guards56 = require("@wistia/type-guards");
12813
12767
 
12814
12768
  // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
12815
12769
  var import_type_guards54 = require("@wistia/type-guards");
12816
- var import_styled_components91 = require("styled-components");
12770
+ var import_styled_components89 = require("styled-components");
12817
12771
  var gradients = {
12818
- defaultDarkOne: import_styled_components91.css`
12772
+ defaultDarkOne: import_styled_components89.css`
12819
12773
  background-color: #222d66;
12820
12774
  background-image:
12821
12775
  radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
@@ -12823,7 +12777,7 @@ var gradients = {
12823
12777
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
12824
12778
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
12825
12779
  `,
12826
- defaultDarkTwo: import_styled_components91.css`
12780
+ defaultDarkTwo: import_styled_components89.css`
12827
12781
  background-color: #222d66;
12828
12782
  background-image:
12829
12783
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
@@ -12831,7 +12785,7 @@ var gradients = {
12831
12785
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
12832
12786
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12833
12787
  `,
12834
- defaultLightOne: import_styled_components91.css`
12788
+ defaultLightOne: import_styled_components89.css`
12835
12789
  background-color: #ccd5ff;
12836
12790
  background-image:
12837
12791
  radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
@@ -12839,13 +12793,13 @@ var gradients = {
12839
12793
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
12840
12794
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
12841
12795
  `,
12842
- defaultLightTwo: import_styled_components91.css`
12796
+ defaultLightTwo: import_styled_components89.css`
12843
12797
  background-color: #ccd5ff;
12844
12798
  background-image:
12845
12799
  radial-gradient(ellipse at top, #ccd5ff, transparent),
12846
12800
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
12847
12801
  `,
12848
- defaultMidOne: import_styled_components91.css`
12802
+ defaultMidOne: import_styled_components89.css`
12849
12803
  background-color: #6b84ff;
12850
12804
  background-image:
12851
12805
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
@@ -12853,13 +12807,13 @@ var gradients = {
12853
12807
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
12854
12808
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
12855
12809
  `,
12856
- defaultMidTwo: import_styled_components91.css`
12810
+ defaultMidTwo: import_styled_components89.css`
12857
12811
  background-color: #6b84ff;
12858
12812
  background-image:
12859
12813
  radial-gradient(ellipse at top, #2949e5, transparent),
12860
12814
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
12861
12815
  `,
12862
- green: import_styled_components91.css`
12816
+ green: import_styled_components89.css`
12863
12817
  background-color: #fafffa;
12864
12818
  background-image:
12865
12819
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12867,7 +12821,7 @@ var gradients = {
12867
12821
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12868
12822
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12869
12823
  `,
12870
- greenWithPop: import_styled_components91.css`
12824
+ greenWithPop: import_styled_components89.css`
12871
12825
  background-color: #fafffa;
12872
12826
  background-image:
12873
12827
  radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
@@ -12875,7 +12829,7 @@ var gradients = {
12875
12829
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
12876
12830
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
12877
12831
  `,
12878
- pink: import_styled_components91.css`
12832
+ pink: import_styled_components89.css`
12879
12833
  background-color: #fffff0;
12880
12834
  background-image:
12881
12835
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
@@ -12883,7 +12837,7 @@ var gradients = {
12883
12837
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
12884
12838
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
12885
12839
  `,
12886
- pinkWithPop: import_styled_components91.css`
12840
+ pinkWithPop: import_styled_components89.css`
12887
12841
  background-color: #fffff0;
12888
12842
  background-image:
12889
12843
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
@@ -12891,7 +12845,7 @@ var gradients = {
12891
12845
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
12892
12846
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
12893
12847
  `,
12894
- playfulGradientOne: import_styled_components91.css`
12848
+ playfulGradientOne: import_styled_components89.css`
12895
12849
  background-color: #f7f8ff;
12896
12850
  background-image:
12897
12851
  radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
@@ -12899,7 +12853,7 @@ var gradients = {
12899
12853
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
12900
12854
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
12901
12855
  `,
12902
- playfulGradientTwo: import_styled_components91.css`
12856
+ playfulGradientTwo: import_styled_components89.css`
12903
12857
  background-color: #f7f8ff;
12904
12858
  background-image:
12905
12859
  radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
@@ -12907,13 +12861,13 @@ var gradients = {
12907
12861
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
12908
12862
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12909
12863
  `,
12910
- purple: import_styled_components91.css`
12864
+ purple: import_styled_components89.css`
12911
12865
  background-color: #f2caff;
12912
12866
  background-image:
12913
12867
  radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
12914
12868
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
12915
12869
  `,
12916
- purpleWithPop: import_styled_components91.css`
12870
+ purpleWithPop: import_styled_components89.css`
12917
12871
  background-color: #f2caff;
12918
12872
  background-image:
12919
12873
  radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
@@ -12921,7 +12875,7 @@ var gradients = {
12921
12875
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
12922
12876
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
12923
12877
  `,
12924
- yellow: import_styled_components91.css`
12878
+ yellow: import_styled_components89.css`
12925
12879
  background-color: #fffff0;
12926
12880
  background-image:
12927
12881
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12929,7 +12883,7 @@ var gradients = {
12929
12883
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
12930
12884
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
12931
12885
  `,
12932
- yellowWithPop: import_styled_components91.css`
12886
+ yellowWithPop: import_styled_components89.css`
12933
12887
  background-color: #fffff0;
12934
12888
  background-image:
12935
12889
  radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
@@ -12944,7 +12898,17 @@ var getBackgroundGradient = (gradientName = void 0) => {
12944
12898
  };
12945
12899
 
12946
12900
  // src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
12947
- var import_jsx_runtime272 = require("react/jsx-runtime");
12901
+ var import_styled_components90 = __toESM(require("styled-components"));
12902
+ var import_type_guards55 = require("@wistia/type-guards");
12903
+ var import_jsx_runtime271 = require("react/jsx-runtime");
12904
+ var ScrubLine = import_styled_components90.default.div`
12905
+ position: absolute;
12906
+ top: 0;
12907
+ height: 100%;
12908
+ width: 2px;
12909
+ background-color: var(--wui-color-bg-fill);
12910
+ z-index: 1;
12911
+ `;
12948
12912
  var getScaledDimensions = (originalAspectRatio, targetAspectRatio, viewerWidth, viewerHeight) => {
12949
12913
  let scaledHeight = viewerHeight;
12950
12914
  let scaledWidth = viewerWidth;
@@ -12984,7 +12948,7 @@ var ThumbnailStoryboardViewer = ({
12984
12948
  targetAspectRatio,
12985
12949
  scaleFactor = 1,
12986
12950
  framesPerRow = 10,
12987
- shouldLoadStoryboard = true,
12951
+ cursorPosition,
12988
12952
  ...props
12989
12953
  }) => {
12990
12954
  const originalAspectRatio = frameWidth / frameHeight;
@@ -13020,7 +12984,9 @@ var ThumbnailStoryboardViewer = ({
13020
12984
  storyboardHeight * scaleFactorFromAspectRatioFit * scaleFactor
13021
12985
  );
13022
12986
  const backgroundSize = `${scaledStoryboardWidth}px ${scaledStoryboardHeight}px`;
13023
- const backgroundImage = shouldLoadStoryboard ? `url(${storyboardUrl})` : "";
12987
+ const backgroundImage = `url(${storyboardUrl})`;
12988
+ const showScrubLine = (0, import_type_guards55.isNotNil)(cursorPosition);
12989
+ const scrubLinePosition = (0, import_type_guards55.isNotNil)(cursorPosition) ? `${cursorPosition - 1}px` : "0";
13024
12990
  const viewerStyles = {
13025
12991
  position: "relative",
13026
12992
  overflow: "hidden",
@@ -13037,31 +13003,41 @@ var ThumbnailStoryboardViewer = ({
13037
13003
  backgroundPosition,
13038
13004
  backgroundSize
13039
13005
  };
13040
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13006
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
13041
13007
  "div",
13042
13008
  {
13043
13009
  ...props,
13044
13010
  style: viewerStyles,
13045
- children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("div", { style: storyboardStyles })
13011
+ children: [
13012
+ /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { style: storyboardStyles }),
13013
+ showScrubLine ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
13014
+ ScrubLine,
13015
+ {
13016
+ style: {
13017
+ left: scrubLinePosition
13018
+ }
13019
+ }
13020
+ ) : null
13021
+ ]
13046
13022
  }
13047
13023
  );
13048
13024
  };
13049
13025
 
13050
13026
  // src/components/Thumbnail/Thumbnail.tsx
13051
- var import_jsx_runtime273 = require("react/jsx-runtime");
13052
- var WideThumbnailImage = import_styled_components92.default.img`
13027
+ var import_jsx_runtime272 = require("react/jsx-runtime");
13028
+ var WideThumbnailImage = import_styled_components91.default.img`
13053
13029
  height: 100%;
13054
13030
  object-fit: cover;
13055
13031
  width: 100%;
13056
13032
  `;
13057
- var SquareThumbnailImage = import_styled_components92.default.img`
13033
+ var SquareThumbnailImage = import_styled_components91.default.img`
13058
13034
  backdrop-filter: blur(8px);
13059
13035
  object-fit: contain;
13060
13036
  width: 100%;
13061
13037
  `;
13062
13038
  var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13063
13039
  if (thumbnailImageType === "wide") {
13064
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13040
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13065
13041
  WideThumbnailImage,
13066
13042
  {
13067
13043
  alt: "",
@@ -13070,7 +13046,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13070
13046
  }
13071
13047
  );
13072
13048
  }
13073
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13049
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13074
13050
  SquareThumbnailImage,
13075
13051
  {
13076
13052
  alt: "",
@@ -13079,11 +13055,11 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
13079
13055
  }
13080
13056
  );
13081
13057
  };
13082
- var StyledThumbnail = import_styled_components92.default.div`
13083
- background-image: ${({ $backgroundUrl }) => (0, import_type_guards55.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
13058
+ var StyledThumbnail = import_styled_components91.default.div`
13059
+ background-image: ${({ $backgroundUrl }) => (0, import_type_guards56.isNotNil)($backgroundUrl) ? `url('${$backgroundUrl}')` : void 0};
13084
13060
  ${({ $backgroundUrl, $gradientBackground }) => (
13085
13061
  // if we don't have $backgroundUrl show a gradient
13086
- (0, import_type_guards55.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
13062
+ (0, import_type_guards56.isNil)($backgroundUrl) ? getBackgroundGradient($gradientBackground) : void 0
13087
13063
  )};
13088
13064
  background-position: center center;
13089
13065
  background-size: cover;
@@ -13092,7 +13068,7 @@ var StyledThumbnail = import_styled_components92.default.div`
13092
13068
  overflow: hidden;
13093
13069
  position: relative;
13094
13070
  width: ${({ $width }) => $width};
13095
- ${({ $isScrubbable }) => $isScrubbable && "cursor: ew-resize;"}
13071
+ ${({ $isScrubbable }) => $isScrubbable && "cursor: pointer;"}
13096
13072
 
13097
13073
  &,
13098
13074
  img {
@@ -13108,7 +13084,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
13108
13084
  left: relativeLeft
13109
13085
  };
13110
13086
  };
13111
- var Thumbnail = (0, import_react71.forwardRef)(
13087
+ var Thumbnail = (0, import_react70.forwardRef)(
13112
13088
  ({
13113
13089
  gradientBackground = "defaultMidOne",
13114
13090
  thumbnailImageType = "square",
@@ -13119,16 +13095,17 @@ var Thumbnail = (0, import_react71.forwardRef)(
13119
13095
  height,
13120
13096
  ...props
13121
13097
  }, ref) => {
13122
- const [percent, setPercent] = (0, import_react71.useState)(0);
13123
- const [isMouseOver, setIsMouseOver] = (0, import_react71.useState)(false);
13124
- const [isStoryboardReady, setIsStoryboardReady] = (0, import_react71.useState)(false);
13125
- const storyboardElementRef = (0, import_react71.useRef)(null);
13126
- const backgroundUrl = (0, import_react71.useMemo)(
13127
- () => thumbnailImageType === "square" && (0, import_type_guards55.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
13098
+ const [percent, setPercent] = (0, import_react70.useState)(0);
13099
+ const [isMouseOver, setIsMouseOver] = (0, import_react70.useState)(false);
13100
+ const [isStoryboardReady, setIsStoryboardReady] = (0, import_react70.useState)(false);
13101
+ const storyboardElementRef = (0, import_react70.useRef)(null);
13102
+ const [cursorPosition, setCursorPosition] = (0, import_react70.useState)(null);
13103
+ const backgroundUrl = (0, import_react70.useMemo)(
13104
+ () => thumbnailImageType === "square" && (0, import_type_guards56.isNotNil)(thumbnailUrl) ? thumbnailUrl : void 0,
13128
13105
  [thumbnailImageType, thumbnailUrl]
13129
13106
  );
13130
- const isScrubbable = (0, import_type_guards55.isNotNil)(storyboard);
13131
- const trackStoryboardLoadStatus = (0, import_react71.useCallback)(() => {
13107
+ const isScrubbable = (0, import_type_guards56.isNotNil)(storyboard);
13108
+ const trackStoryboardLoadStatus = (0, import_react70.useCallback)(() => {
13132
13109
  if (storyboardElementRef.current || !storyboard) {
13133
13110
  return storyboardElementRef.current;
13134
13111
  }
@@ -13138,7 +13115,7 @@ var Thumbnail = (0, import_react71.forwardRef)(
13138
13115
  storyboardElementRef.current = asset;
13139
13116
  return storyboardElementRef.current;
13140
13117
  }, [storyboard]);
13141
- const handleMouseMove = (0, import_react71.useCallback)(
13118
+ const handleMouseMove = (0, import_react70.useCallback)(
13142
13119
  (mouseEvent) => {
13143
13120
  if (!isScrubbable) return;
13144
13121
  const elem = mouseEvent.currentTarget;
@@ -13146,19 +13123,21 @@ var Thumbnail = (0, import_react71.forwardRef)(
13146
13123
  const newPercent = relMousePos.left / elem.clientWidth;
13147
13124
  trackStoryboardLoadStatus();
13148
13125
  setPercent(newPercent);
13126
+ setCursorPosition(relMousePos.left);
13149
13127
  setIsMouseOver(true);
13150
13128
  },
13151
13129
  [isScrubbable, trackStoryboardLoadStatus]
13152
13130
  );
13153
- const handleMouseOut = (0, import_react71.useCallback)(() => {
13131
+ const handleMouseOut = (0, import_react70.useCallback)(() => {
13154
13132
  if (!isScrubbable) return;
13155
13133
  setIsMouseOver(false);
13134
+ setCursorPosition(null);
13156
13135
  }, [isScrubbable]);
13157
- const shouldRenderStoryboard = (0, import_react71.useMemo)(() => {
13136
+ const shouldRenderStoryboard = (0, import_react70.useMemo)(() => {
13158
13137
  return Boolean(isScrubbable && isMouseOver && isStoryboardReady);
13159
13138
  }, [isScrubbable, isMouseOver, isStoryboardReady]);
13160
- const renderStoryboard = (0, import_react71.useCallback)(() => {
13161
- if (!storyboard || (0, import_type_guards55.isUndefined)(height) || (0, import_type_guards55.isEmptyString)(height)) return null;
13139
+ const renderStoryboard = (0, import_react70.useCallback)(() => {
13140
+ if (!storyboard || (0, import_type_guards56.isUndefined)(height) || (0, import_type_guards56.isEmptyString)(height)) return null;
13162
13141
  const {
13163
13142
  url,
13164
13143
  width: sbWidth,
@@ -13168,10 +13147,12 @@ var Thumbnail = (0, import_react71.forwardRef)(
13168
13147
  frameCount,
13169
13148
  aspectRatio
13170
13149
  } = storyboard;
13171
- const targetWidth = (0, import_type_guards55.isString)(width) ? parseInt(width, 10) : Number(width);
13172
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13150
+ const targetWidth = (0, import_type_guards56.isString)(width) ? parseInt(width, 10) : Number(width);
13151
+ const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
13152
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13173
13153
  ThumbnailStoryboardViewer,
13174
13154
  {
13155
+ cursorPosition: effectiveCursorPosition,
13175
13156
  frameCount,
13176
13157
  frameHeight,
13177
13158
  frameWidth,
@@ -13183,12 +13164,12 @@ var Thumbnail = (0, import_react71.forwardRef)(
13183
13164
  targetWidth
13184
13165
  }
13185
13166
  );
13186
- }, [storyboard, percent, width, height]);
13167
+ }, [storyboard, percent, width, height, cursorPosition, isStoryboardReady]);
13187
13168
  let thumbnailContent = null;
13188
13169
  if (shouldRenderStoryboard) {
13189
13170
  thumbnailContent = renderStoryboard();
13190
- } else if ((0, import_type_guards55.isNotNil)(thumbnailUrl)) {
13191
- thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13171
+ } else if ((0, import_type_guards56.isNotNil)(thumbnailUrl)) {
13172
+ thumbnailContent = /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
13192
13173
  ThumbnailImage,
13193
13174
  {
13194
13175
  thumbnailImageType,
@@ -13198,7 +13179,7 @@ var Thumbnail = (0, import_react71.forwardRef)(
13198
13179
  } else {
13199
13180
  thumbnailContent = null;
13200
13181
  }
13201
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)(
13182
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(
13202
13183
  StyledThumbnail,
13203
13184
  {
13204
13185
  ref,
@@ -13212,7 +13193,7 @@ var Thumbnail = (0, import_react71.forwardRef)(
13212
13193
  onMouseOut: handleMouseOut,
13213
13194
  role: "presentation",
13214
13195
  children: [
13215
- (0, import_type_guards55.isNotNil)(children) ? children : null,
13196
+ (0, import_type_guards56.isNotNil)(children) ? children : null,
13216
13197
  thumbnailContent
13217
13198
  ]
13218
13199
  }
@@ -13222,14 +13203,14 @@ var Thumbnail = (0, import_react71.forwardRef)(
13222
13203
  Thumbnail.displayName = "Thumbnail";
13223
13204
 
13224
13205
  // src/components/ThumbnailCollage/ThumbnailCollage.tsx
13225
- var import_react72 = __toESM(require("react"));
13226
- var import_styled_components93 = __toESM(require("styled-components"));
13227
- var import_type_guards56 = require("@wistia/type-guards");
13228
- var import_jsx_runtime274 = (
13206
+ var import_react71 = __toESM(require("react"));
13207
+ var import_styled_components92 = __toESM(require("styled-components"));
13208
+ var import_type_guards57 = require("@wistia/type-guards");
13209
+ var import_jsx_runtime273 = (
13229
13210
  // ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
13230
13211
  require("react/jsx-runtime")
13231
13212
  );
13232
- var StyledThumbnailCollage = import_styled_components93.default.div`
13213
+ var StyledThumbnailCollage = import_styled_components92.default.div`
13233
13214
  display: grid;
13234
13215
  gap: var(--wui-space-01);
13235
13216
  width: 100%;
@@ -13302,15 +13283,15 @@ var ThumbnailCollage = ({
13302
13283
  gradientBackground = "defaultMidOne",
13303
13284
  ...props
13304
13285
  }) => {
13305
- const thumbnailArray = import_react72.default.Children.toArray(children);
13286
+ const thumbnailArray = import_react71.default.Children.toArray(children);
13306
13287
  const truncatedThumbnails = thumbnailArray.slice(0, 3);
13307
- const thumbnails = (0, import_type_guards56.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
13308
- return import_react72.default.cloneElement(child, {
13288
+ const thumbnails = (0, import_type_guards57.isNonEmptyArray)(thumbnailArray) ? truncatedThumbnails.map((child) => {
13289
+ return import_react71.default.cloneElement(child, {
13309
13290
  ...child.props,
13310
13291
  children: void 0
13311
13292
  });
13312
13293
  }) : [
13313
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13294
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13314
13295
  Thumbnail,
13315
13296
  {
13316
13297
  gradientBackground,
@@ -13319,7 +13300,7 @@ var ThumbnailCollage = ({
13319
13300
  "fallback"
13320
13301
  )
13321
13302
  ];
13322
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13303
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
13323
13304
  StyledThumbnailCollage,
13324
13305
  {
13325
13306
  $gradientBackground: gradientBackground,
@@ -13331,26 +13312,26 @@ var ThumbnailCollage = ({
13331
13312
  };
13332
13313
 
13333
13314
  // src/components/WistiaLogo/WistiaLogo.tsx
13334
- var import_styled_components94 = __toESM(require("styled-components"));
13335
- var import_type_guards57 = require("@wistia/type-guards");
13336
- var import_jsx_runtime275 = require("react/jsx-runtime");
13315
+ var import_styled_components93 = __toESM(require("styled-components"));
13316
+ var import_type_guards58 = require("@wistia/type-guards");
13317
+ var import_jsx_runtime274 = require("react/jsx-runtime");
13337
13318
  var renderBrandmark = (brandmarkColor, iconOnly) => {
13338
13319
  if (iconOnly) {
13339
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13320
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13340
13321
  "g",
13341
13322
  {
13342
13323
  "data-testid": "ui-wistia-logo-brandmark",
13343
13324
  fill: brandmarkColor,
13344
- children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("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" })
13325
+ children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("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" })
13345
13326
  }
13346
13327
  );
13347
13328
  }
13348
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13329
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13349
13330
  "g",
13350
13331
  {
13351
13332
  "data-testid": "ui-wistia-logo-brandmark",
13352
13333
  fill: brandmarkColor,
13353
- children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("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" })
13334
+ children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("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" })
13354
13335
  }
13355
13336
  );
13356
13337
  };
@@ -13358,12 +13339,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
13358
13339
  if (iconOnly) {
13359
13340
  return null;
13360
13341
  }
13361
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
13342
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
13362
13343
  "g",
13363
13344
  {
13364
13345
  "data-testid": "ui-wistia-logo-logotype",
13365
13346
  fill: logotypeColor,
13366
- children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("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" })
13347
+ children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("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" })
13367
13348
  }
13368
13349
  );
13369
13350
  };
@@ -13373,7 +13354,7 @@ var computedViewBox = (iconOnly) => {
13373
13354
  }
13374
13355
  return "0 0 144 31.47";
13375
13356
  };
13376
- var WistiaLogoComponent = import_styled_components94.default.svg`
13357
+ var WistiaLogoComponent = import_styled_components93.default.svg`
13377
13358
  height: ${({ height }) => `${height}px`};
13378
13359
 
13379
13360
  /* ensure it will always fit on mobile */
@@ -13389,12 +13370,12 @@ var WistiaLogoComponent = import_styled_components94.default.svg`
13389
13370
  ${({ $opticallyCentered, $iconOnly }) => {
13390
13371
  if ($opticallyCentered) {
13391
13372
  if ($iconOnly) {
13392
- return import_styled_components94.css`
13373
+ return import_styled_components93.css`
13393
13374
  aspect-ratio: 1;
13394
13375
  padding: 11.85% 3.12% 13.91%;
13395
13376
  `;
13396
13377
  }
13397
- return import_styled_components94.css`
13378
+ return import_styled_components93.css`
13398
13379
  aspect-ratio: 127 / 32;
13399
13380
  `;
13400
13381
  }
@@ -13431,7 +13412,7 @@ var WistiaLogo = ({
13431
13412
  };
13432
13413
  const brandmarkColor = VARIANT_COLORS[variant].brandmark;
13433
13414
  const logotypeColor = VARIANT_COLORS[variant].logotype;
13434
- const Logo = /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
13415
+ const Logo = /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
13435
13416
  WistiaLogoComponent,
13436
13417
  {
13437
13418
  $hoverColor: hoverColor,
@@ -13444,39 +13425,39 @@ var WistiaLogo = ({
13444
13425
  xmlns: "http://www.w3.org/2000/svg",
13445
13426
  ...props,
13446
13427
  children: [
13447
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("title", { children: title }),
13448
- (0, import_type_guards57.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("desc", { children: description }) : null,
13428
+ /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("title", { children: title }),
13429
+ (0, import_type_guards58.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("desc", { children: description }) : null,
13449
13430
  renderBrandmark(brandmarkColor, iconOnly),
13450
13431
  renderLogotype(logotypeColor, iconOnly)
13451
13432
  ]
13452
13433
  }
13453
13434
  );
13454
- return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("a", { href, children: Logo }) : Logo;
13435
+ return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("a", { href, children: Logo }) : Logo;
13455
13436
  };
13456
13437
  WistiaLogo.displayName = "WistiaLogo";
13457
13438
 
13458
13439
  // src/components/List/List.tsx
13459
- var import_type_guards59 = require("@wistia/type-guards");
13460
- var import_styled_components96 = __toESM(require("styled-components"));
13440
+ var import_type_guards60 = require("@wistia/type-guards");
13441
+ var import_styled_components95 = __toESM(require("styled-components"));
13461
13442
 
13462
13443
  // src/components/List/ListItem.tsx
13463
- var import_styled_components95 = __toESM(require("styled-components"));
13464
- var import_type_guards58 = require("@wistia/type-guards");
13465
- var import_jsx_runtime276 = require("react/jsx-runtime");
13466
- var ListItemComponent = import_styled_components95.default.li`
13444
+ var import_styled_components94 = __toESM(require("styled-components"));
13445
+ var import_type_guards59 = require("@wistia/type-guards");
13446
+ var import_jsx_runtime275 = require("react/jsx-runtime");
13447
+ var ListItemComponent = import_styled_components94.default.li`
13467
13448
  margin-bottom: var(--wui-space-02);
13468
13449
  `;
13469
13450
  var ListItem = ({ children }) => {
13470
- if ((0, import_type_guards58.isNil)(children)) {
13451
+ if ((0, import_type_guards59.isNil)(children)) {
13471
13452
  return null;
13472
13453
  }
13473
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(ListItemComponent, { children });
13454
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(ListItemComponent, { children });
13474
13455
  };
13475
13456
  ListItem.displayName = "ListItem";
13476
13457
 
13477
13458
  // src/components/List/List.tsx
13478
- var import_jsx_runtime277 = require("react/jsx-runtime");
13479
- var spacesStyle = import_styled_components96.css`
13459
+ var import_jsx_runtime276 = require("react/jsx-runtime");
13460
+ var spacesStyle = import_styled_components95.css`
13480
13461
  overflow: hidden;
13481
13462
  padding-left: 0;
13482
13463
  vertical-align: bottom;
@@ -13498,7 +13479,7 @@ var spacesStyle = import_styled_components96.css`
13498
13479
  }
13499
13480
  }
13500
13481
  `;
13501
- var commasStyle = import_styled_components96.css`
13482
+ var commasStyle = import_styled_components95.css`
13502
13483
  ${spacesStyle};
13503
13484
 
13504
13485
  li {
@@ -13508,7 +13489,7 @@ var commasStyle = import_styled_components96.css`
13508
13489
  }
13509
13490
  }
13510
13491
  `;
13511
- var slashesStyle = import_styled_components96.css`
13492
+ var slashesStyle = import_styled_components95.css`
13512
13493
  ${spacesStyle};
13513
13494
 
13514
13495
  li {
@@ -13519,7 +13500,7 @@ var slashesStyle = import_styled_components96.css`
13519
13500
  }
13520
13501
  }
13521
13502
  `;
13522
- var breadcrumbsStyle = import_styled_components96.css`
13503
+ var breadcrumbsStyle = import_styled_components95.css`
13523
13504
  ${spacesStyle};
13524
13505
 
13525
13506
  li {
@@ -13530,11 +13511,11 @@ var breadcrumbsStyle = import_styled_components96.css`
13530
13511
  }
13531
13512
  }
13532
13513
  `;
13533
- var unbulletedStyle = import_styled_components96.css`
13514
+ var unbulletedStyle = import_styled_components95.css`
13534
13515
  list-style: none;
13535
13516
  padding-left: 0;
13536
13517
  `;
13537
- var ListComponent = import_styled_components96.default.ul`
13518
+ var ListComponent = import_styled_components95.default.ul`
13538
13519
  list-style-position: outside;
13539
13520
  margin: 0 0 var(--wui-space-01);
13540
13521
  padding: 0 0 0 var(--wui-space-04);
@@ -13561,7 +13542,7 @@ var ListComponent = import_styled_components96.default.ul`
13561
13542
  `;
13562
13543
  var renderListComponent = (listItems, variant, { ...otherProps }) => {
13563
13544
  const elementType = variant === "ordered" ? "ol" : "ul";
13564
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
13545
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
13565
13546
  ListComponent,
13566
13547
  {
13567
13548
  as: elementType,
@@ -13578,7 +13559,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
13578
13559
  const nextItem = listItems[i + 1];
13579
13560
  const key = `item-${itemCount += 1}`;
13580
13561
  if (Array.isArray(nextItem)) {
13581
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(ListItem, { children: [
13562
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(ListItem, { children: [
13582
13563
  item,
13583
13564
  renderListFromArray(nextItem, variant, otherProps)
13584
13565
  ] }, key);
@@ -13586,7 +13567,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
13586
13567
  if (Array.isArray(item)) {
13587
13568
  return null;
13588
13569
  }
13589
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(ListItem, { children: item }, key);
13570
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(ListItem, { children: item }, key);
13590
13571
  });
13591
13572
  return renderListComponent(items, variant, otherProps);
13592
13573
  };
@@ -13597,13 +13578,13 @@ var List = ({
13597
13578
  ...otherProps
13598
13579
  }) => {
13599
13580
  const listVariant = variant ?? "bullets";
13600
- if ((0, import_type_guards59.isNotNil)(children)) {
13581
+ if ((0, import_type_guards60.isNotNil)(children)) {
13601
13582
  if (Array.isArray(children) && !children.length) {
13602
13583
  return null;
13603
13584
  }
13604
13585
  return renderListComponent(children, listVariant, otherProps);
13605
13586
  }
13606
- if ((0, import_type_guards59.isNotNil)(items)) {
13587
+ if ((0, import_type_guards60.isNotNil)(items)) {
13607
13588
  if (!items.length) {
13608
13589
  return null;
13609
13590
  }
@@ -13678,7 +13659,6 @@ List.displayName = "List";
13678
13659
  Stack,
13679
13660
  SubMenu,
13680
13661
  Switch,
13681
- Tab,
13682
13662
  Table,
13683
13663
  TableBody,
13684
13664
  TableCell,
@@ -13686,6 +13666,9 @@ List.displayName = "List";
13686
13666
  TableHead,
13687
13667
  TableRow,
13688
13668
  Tabs,
13669
+ TabsContent,
13670
+ TabsList,
13671
+ TabsTrigger,
13689
13672
  Tag,
13690
13673
  Text,
13691
13674
  Thumbnail,