@wistia/ui 0.9.2 → 0.9.3-beta.2814a824.33fea3d

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