@wistia/ui 0.8.9-beta.8e513df6.87f52b0 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -202,12 +202,11 @@ type LinkAsButtonProps = BaseProps$2 & ComponentPropsWithRef<'button'> & {
202
202
  };
203
203
  type LinkProps = LinkAsButtonProps | LinkAsLinkProps;
204
204
  /**
205
- * Links are used for navigation. If no `href` is supplied, a button that is visually styled to appear as a link
206
- * is rendered. If used in a `react-router` context, their [Link](https://reactrouter.com/en/main/components/link).
207
- * component is used, otherwise a native `a` element.
208
- *
205
+ * Links are used for navigation. If no `href` is supplied, a button that is visually styled to apper as a link
206
+ * is used. If used in a react-router context, their [Link](https://reactrouter.com/en/main/components/link). component is used, otherwise a native a tag.
209
207
  * This means in addition to its own props, `Link` can use props from `react-router-dom`'s `Link` component. View their documentation [here](https://reactrouter.com/en/main/components/link).
210
208
  * The one prop we ignore from react-router is `to`. We use `href` instead and map it under the hood.
209
+ *
211
210
  */
212
211
  declare const Link: react.ForwardRefExoticComponent<(Omit<LinkAsLinkProps, "ref"> | Omit<LinkAsButtonProps, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
213
212
 
@@ -759,7 +758,7 @@ declare const Breadcrumbs: {
759
758
  type BreadcrumbProps = ButtonAsLinkProps & {
760
759
  /**
761
760
  * An [Icon](../?path=/docs/components-icon--docs) to show at the beginning of the breadcrumb
762
- */
761
+ * */
763
762
  icon?: ButtonAsLinkProps['leftIcon'];
764
763
  /**
765
764
  * The text of the breadcrumb link
@@ -839,51 +838,51 @@ type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
839
838
  width?: string;
840
839
  /**
841
840
  * @ignore
842
- */
841
+ * */
843
842
  alignContent?: BoxProps['alignContent'];
844
843
  /**
845
844
  * @ignore
846
- */
845
+ * */
847
846
  alignItems?: BoxProps['alignItems'];
848
847
  /**
849
848
  * @ignore
850
- */
849
+ * */
851
850
  alignSelf?: BoxProps['alignSelf'];
852
851
  /**
853
852
  * @ignore
854
- */
853
+ * */
855
854
  basis?: BoxProps['basis'];
856
855
  /**
857
856
  * @ignore
858
- */
857
+ * */
859
858
  fill?: BoxProps['fill'];
860
859
  /**
861
860
  * @ignore
862
- */
861
+ * */
863
862
  fillViewport?: BoxProps['fillViewport'];
864
863
  /**
865
864
  * @ignore
866
- */
865
+ * */
867
866
  grow?: BoxProps['grow'];
868
867
  /**
869
868
  * @ignore
870
- */
869
+ * */
871
870
  inline?: BoxProps['inline'];
872
871
  /**
873
872
  * @ignore
874
- */
873
+ * */
875
874
  justifyContent?: BoxProps['justifyContent'];
876
875
  /**
877
876
  * @ignore
878
- */
877
+ * */
879
878
  order?: BoxProps['order'];
880
879
  /**
881
880
  * @ignore
882
- */
881
+ * */
883
882
  shrink?: BoxProps['shrink'];
884
883
  /**
885
884
  * @ignore
886
- */
885
+ * */
887
886
  wrapItems?: BoxProps['wrapItems'];
888
887
  };
889
888
  /**
@@ -1854,7 +1853,7 @@ type ControlledMenuProps = {
1854
1853
  /**
1855
1854
  * Is the menu open.
1856
1855
  * Must be used with `onOpenChange`.
1857
- */
1856
+ * */
1858
1857
  isOpen: boolean;
1859
1858
  /** When an attempt to toggle the menu is triggered.
1860
1859
  * Must be used with `isOpen`.
@@ -1894,7 +1893,7 @@ type MenuProps = MenuControlProps & {
1894
1893
  onInteractOutside?: DropdownMenuContentProps['onInteractOutside'];
1895
1894
  /**
1896
1895
  * Replace the default trigger with a custom button or other element
1897
- */
1896
+ * */
1898
1897
  trigger?: ReactNode;
1899
1898
  /**
1900
1899
  * Props to pass to the trigger component, the default trigger is Button
@@ -1979,23 +1978,23 @@ type MenuItemButtonProps = ButtonProps & {
1979
1978
  rightIcon?: ButtonProps['rightIcon'];
1980
1979
  /**
1981
1980
  * @ignore
1982
- */
1981
+ * */
1983
1982
  fullWidth?: never;
1984
1983
  /**
1985
1984
  * @ignore
1986
- */
1985
+ * */
1987
1986
  asChild?: never;
1988
1987
  /**
1989
1988
  * @ignore
1990
- */
1989
+ * */
1991
1990
  variant?: never;
1992
1991
  /**
1993
1992
  * @ignore
1994
- */
1993
+ * */
1995
1994
  size?: never;
1996
1995
  /**
1997
1996
  * @ignore
1998
- */
1997
+ * */
1999
1998
  unstyled?: never;
2000
1999
  };
2001
2000
 
@@ -2343,7 +2342,7 @@ type ControlledPopoverProps = {
2343
2342
  /**
2344
2343
  * Is the popover open.
2345
2344
  * Must be used with `onOpenChange`.
2346
- */
2345
+ * */
2347
2346
  isOpen: boolean;
2348
2347
  /** When an attempt to toggle the popover is triggered.
2349
2348
  * Must be used with `isOpen`.
@@ -2375,7 +2374,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
2375
2374
  hideCloseButton?: boolean;
2376
2375
  /**
2377
2376
  * An interactive element. Most commonly a [Button](?path=/docs/components-button--docs) or [IconButton]([Button](?path=/docs/components-iconbutton--docs)).
2378
- */
2377
+ * */
2379
2378
  trigger: JSX.Element;
2380
2379
  /**
2381
2380
  * If true, the popover will use the unstyled Content component instead of StyledContent
package/dist/index.d.ts CHANGED
@@ -202,12 +202,11 @@ type LinkAsButtonProps = BaseProps$2 & ComponentPropsWithRef<'button'> & {
202
202
  };
203
203
  type LinkProps = LinkAsButtonProps | LinkAsLinkProps;
204
204
  /**
205
- * Links are used for navigation. If no `href` is supplied, a button that is visually styled to appear as a link
206
- * is rendered. If used in a `react-router` context, their [Link](https://reactrouter.com/en/main/components/link).
207
- * component is used, otherwise a native `a` element.
208
- *
205
+ * Links are used for navigation. If no `href` is supplied, a button that is visually styled to apper as a link
206
+ * is used. If used in a react-router context, their [Link](https://reactrouter.com/en/main/components/link). component is used, otherwise a native a tag.
209
207
  * This means in addition to its own props, `Link` can use props from `react-router-dom`'s `Link` component. View their documentation [here](https://reactrouter.com/en/main/components/link).
210
208
  * The one prop we ignore from react-router is `to`. We use `href` instead and map it under the hood.
209
+ *
211
210
  */
212
211
  declare const Link: react.ForwardRefExoticComponent<(Omit<LinkAsLinkProps, "ref"> | Omit<LinkAsButtonProps, "ref">) & react.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
213
212
 
@@ -759,7 +758,7 @@ declare const Breadcrumbs: {
759
758
  type BreadcrumbProps = ButtonAsLinkProps & {
760
759
  /**
761
760
  * An [Icon](../?path=/docs/components-icon--docs) to show at the beginning of the breadcrumb
762
- */
761
+ * */
763
762
  icon?: ButtonAsLinkProps['leftIcon'];
764
763
  /**
765
764
  * The text of the breadcrumb link
@@ -839,51 +838,51 @@ type CardProps = BoxProps & ComponentPropsWithoutRef<'div'> & {
839
838
  width?: string;
840
839
  /**
841
840
  * @ignore
842
- */
841
+ * */
843
842
  alignContent?: BoxProps['alignContent'];
844
843
  /**
845
844
  * @ignore
846
- */
845
+ * */
847
846
  alignItems?: BoxProps['alignItems'];
848
847
  /**
849
848
  * @ignore
850
- */
849
+ * */
851
850
  alignSelf?: BoxProps['alignSelf'];
852
851
  /**
853
852
  * @ignore
854
- */
853
+ * */
855
854
  basis?: BoxProps['basis'];
856
855
  /**
857
856
  * @ignore
858
- */
857
+ * */
859
858
  fill?: BoxProps['fill'];
860
859
  /**
861
860
  * @ignore
862
- */
861
+ * */
863
862
  fillViewport?: BoxProps['fillViewport'];
864
863
  /**
865
864
  * @ignore
866
- */
865
+ * */
867
866
  grow?: BoxProps['grow'];
868
867
  /**
869
868
  * @ignore
870
- */
869
+ * */
871
870
  inline?: BoxProps['inline'];
872
871
  /**
873
872
  * @ignore
874
- */
873
+ * */
875
874
  justifyContent?: BoxProps['justifyContent'];
876
875
  /**
877
876
  * @ignore
878
- */
877
+ * */
879
878
  order?: BoxProps['order'];
880
879
  /**
881
880
  * @ignore
882
- */
881
+ * */
883
882
  shrink?: BoxProps['shrink'];
884
883
  /**
885
884
  * @ignore
886
- */
885
+ * */
887
886
  wrapItems?: BoxProps['wrapItems'];
888
887
  };
889
888
  /**
@@ -1854,7 +1853,7 @@ type ControlledMenuProps = {
1854
1853
  /**
1855
1854
  * Is the menu open.
1856
1855
  * Must be used with `onOpenChange`.
1857
- */
1856
+ * */
1858
1857
  isOpen: boolean;
1859
1858
  /** When an attempt to toggle the menu is triggered.
1860
1859
  * Must be used with `isOpen`.
@@ -1894,7 +1893,7 @@ type MenuProps = MenuControlProps & {
1894
1893
  onInteractOutside?: DropdownMenuContentProps['onInteractOutside'];
1895
1894
  /**
1896
1895
  * Replace the default trigger with a custom button or other element
1897
- */
1896
+ * */
1898
1897
  trigger?: ReactNode;
1899
1898
  /**
1900
1899
  * Props to pass to the trigger component, the default trigger is Button
@@ -1979,23 +1978,23 @@ type MenuItemButtonProps = ButtonProps & {
1979
1978
  rightIcon?: ButtonProps['rightIcon'];
1980
1979
  /**
1981
1980
  * @ignore
1982
- */
1981
+ * */
1983
1982
  fullWidth?: never;
1984
1983
  /**
1985
1984
  * @ignore
1986
- */
1985
+ * */
1987
1986
  asChild?: never;
1988
1987
  /**
1989
1988
  * @ignore
1990
- */
1989
+ * */
1991
1990
  variant?: never;
1992
1991
  /**
1993
1992
  * @ignore
1994
- */
1993
+ * */
1995
1994
  size?: never;
1996
1995
  /**
1997
1996
  * @ignore
1998
- */
1997
+ * */
1999
1998
  unstyled?: never;
2000
1999
  };
2001
2000
 
@@ -2343,7 +2342,7 @@ type ControlledPopoverProps = {
2343
2342
  /**
2344
2343
  * Is the popover open.
2345
2344
  * Must be used with `onOpenChange`.
2346
- */
2345
+ * */
2347
2346
  isOpen: boolean;
2348
2347
  /** When an attempt to toggle the popover is triggered.
2349
2348
  * Must be used with `isOpen`.
@@ -2375,7 +2374,7 @@ type PopoverProps = ContentProps & PopoverControlProps & {
2375
2374
  hideCloseButton?: boolean;
2376
2375
  /**
2377
2376
  * An interactive element. Most commonly a [Button](?path=/docs/components-button--docs) or [IconButton]([Button](?path=/docs/components-iconbutton--docs)).
2378
- */
2377
+ * */
2379
2378
  trigger: JSX.Element;
2380
2379
  /**
2381
2380
  * If true, the popover will use the unstyled Content component instead of StyledContent
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.8.9-beta.8e513df6.87f52b0
3
+ * @license @wistia/ui v0.8.9
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -10,7 +10,6 @@
10
10
 
11
11
  // src/providers/UIProvider/UIProvider.tsx
12
12
  import { Provider as TooltipProvider } from "@radix-ui/react-tooltip";
13
- import { createContext as createContext2, useContext } from "react";
14
13
 
15
14
  // src/css/GlobalStyle.tsx
16
15
  import { createGlobalStyle } from "styled-components";
@@ -1469,17 +1468,12 @@ var ToastProvider = () => /* @__PURE__ */ jsx2(Toaster, { ...toastConfig });
1469
1468
 
1470
1469
  // src/providers/UIProvider/UIProvider.tsx
1471
1470
  import { jsx as jsx3, jsxs } from "react/jsx-runtime";
1472
- var UIProviderNestingContext = createContext2(false);
1473
1471
  var UIProvider = ({ children }) => {
1474
- const isNested = useContext(UIProviderNestingContext);
1475
- if (isNested) {
1476
- console.warn("UIProvider is nested. Only one instance of UIProvider.");
1477
- }
1478
- return /* @__PURE__ */ jsx3(UIProviderNestingContext.Provider, { value: true, children: /* @__PURE__ */ jsx3(AriaLiveProvider, { children: /* @__PURE__ */ jsxs(TooltipProvider, { children: [
1472
+ return /* @__PURE__ */ jsx3(AriaLiveProvider, { children: /* @__PURE__ */ jsxs(TooltipProvider, { children: [
1479
1473
  /* @__PURE__ */ jsx3(GlobalStyle, {}),
1480
1474
  children,
1481
1475
  process.env["NODE_ENV"] !== "test" && /* @__PURE__ */ jsx3(ToastProvider, {})
1482
- ] }) }) });
1476
+ ] }) });
1483
1477
  };
1484
1478
 
1485
1479
  // src/helpers/copyToClipboard/copyToClipboard.ts
@@ -1947,10 +1941,10 @@ var mq = {
1947
1941
  };
1948
1942
 
1949
1943
  // src/hooks/useAriaLive/useAriaLive.tsx
1950
- import { useContext as useContext2 } from "react";
1944
+ import { useContext } from "react";
1951
1945
  import { isNil as isNil4 } from "@wistia/type-guards";
1952
1946
  var useAriaLive = () => {
1953
- const context = useContext2(AriaLiveContext);
1947
+ const context = useContext(AriaLiveContext);
1954
1948
  if (isNil4(context)) {
1955
1949
  throw new Error("useAriaLive must be used within an AriaLiveProvider");
1956
1950
  }
@@ -6865,29 +6859,31 @@ Icon.displayName = "Icon";
6865
6859
 
6866
6860
  // src/components/Link/Link.tsx
6867
6861
  import { forwardRef } from "react";
6862
+ import { isFunction as isFunction2, isNil as isNil6, isNotNil as isNotNil5, isNotUndefined as isNotUndefined3, isUndefined as isUndefined2 } from "@wistia/type-guards";
6868
6863
  import styled4 from "styled-components";
6869
6864
  import { Link as RouterLink, useInRouterContext } from "react-router-dom";
6870
- import { isFunction as isFunction2, isNil as isNil6, isNotNil as isNotNil5, isNotUndefined as isNotUndefined3, isUndefined as isUndefined2 } from "@wistia/type-guards";
6871
6865
  import { jsx as jsx192, jsxs as jsxs7 } from "react/jsx-runtime";
6872
6866
  var generateHref = (href, type, disabled) => {
6873
6867
  if (disabled || isNil6(href)) {
6874
6868
  return void 0;
6875
6869
  }
6876
- let modifiedHref = href;
6870
+ let to = href;
6877
6871
  if (type === "phone") {
6878
- modifiedHref = `tel:${href}`;
6872
+ to = `tel:${href}`;
6879
6873
  }
6880
6874
  if (type === "email") {
6881
- modifiedHref = `mailto:${href}`;
6875
+ to = `mailto:${href}`;
6882
6876
  }
6883
- return modifiedHref;
6877
+ return to;
6884
6878
  };
6885
6879
  var isButton = (props) => isUndefined2(props.href);
6886
6880
  var isLink = (props) => isNotUndefined3(props.href);
6887
6881
  var StyledLink = styled4.a`
6882
+ --link-icon-size: 14px;
6883
+
6888
6884
  ${({ href }) => isNil6(href) && buttonResetCss};
6889
6885
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
6890
- cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
6886
+ cursor: pointer;
6891
6887
  font-family: var(--wui-typography-family-default);
6892
6888
  color: var(--wui-color-text-link);
6893
6889
  text-decoration: ${({ $underline }) => $underline ? "underline" : "none"};
@@ -6897,8 +6893,8 @@ var StyledLink = styled4.a`
6897
6893
 
6898
6894
  && {
6899
6895
  svg {
6900
- width: 14px;
6901
- height: 14px;
6896
+ width: var(--link-icon-size);
6897
+ height: var(--link-icon-size);
6902
6898
  }
6903
6899
  }
6904
6900
  `;
@@ -6943,7 +6939,6 @@ var Link = forwardRef(
6943
6939
  };
6944
6940
  const commonProps = {
6945
6941
  $colorScheme: colorScheme,
6946
- $disabled: disabled,
6947
6942
  $underline: underline,
6948
6943
  onClick: handleClick
6949
6944
  };
@@ -6962,27 +6957,33 @@ var Link = forwardRef(
6962
6957
  }
6963
6958
  if (isLink(props)) {
6964
6959
  const externalLinkProps = type === "external" ? { target: "_blank", rel: "noopener noreferrer" } : null;
6965
- const routerSpecificProps = shouldUseReactRouterLink ? {
6966
- // TODO: Using 'any' here due to styled-components typing limitations with RouterLink
6967
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
6968
- as: RouterLink,
6969
- to: to ?? ""
6970
- } : {
6971
- as: "a",
6972
- href: to
6973
- };
6974
6960
  const combinedProps = {
6975
6961
  ref,
6976
6962
  ...props,
6977
6963
  ...commonProps,
6978
- ...externalLinkProps,
6979
- ...routerSpecificProps
6964
+ ...externalLinkProps
6980
6965
  };
6981
- return /* @__PURE__ */ jsxs7(StyledLink, { ...combinedProps, children: [
6982
- leftIcon ?? null,
6983
- children,
6984
- rightIcon ?? null
6985
- ] });
6966
+ return shouldUseReactRouterLink ? /* @__PURE__ */ jsx192(
6967
+ StyledLink,
6968
+ {
6969
+ as: RouterLink,
6970
+ ...combinedProps,
6971
+ to: to ?? "",
6972
+ children
6973
+ }
6974
+ ) : /* @__PURE__ */ jsxs7(
6975
+ StyledLink,
6976
+ {
6977
+ as: "a",
6978
+ ...combinedProps,
6979
+ href: to,
6980
+ children: [
6981
+ leftIcon ?? null,
6982
+ children,
6983
+ rightIcon ?? null
6984
+ ]
6985
+ }
6986
+ );
6986
6987
  }
6987
6988
  return null;
6988
6989
  }
@@ -9351,7 +9352,7 @@ var EditableHeading = ({
9351
9352
  };
9352
9353
 
9353
9354
  // src/components/Form/Form.tsx
9354
- import { forwardRef as forwardRef12, useRef as useRef6, useMemo as useMemo4, createContext as createContext3, useState as useState7, useId as useId2 } from "react";
9355
+ import { forwardRef as forwardRef12, useRef as useRef6, useMemo as useMemo4, createContext as createContext2, useState as useState7, useId as useId2 } from "react";
9355
9356
  import styled33 from "styled-components";
9356
9357
  import { isNotUndefined as isNotUndefined7, isUndefined as isUndefined3 } from "@wistia/type-guards";
9357
9358
 
@@ -9395,7 +9396,7 @@ var StyledForm = styled33.form`
9395
9396
  max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
9396
9397
  align-items: ${({ $fullWidth }) => $fullWidth ? "stretch" : "flex-start"};
9397
9398
  `;
9398
- var FormContext = createContext3({
9399
+ var FormContext = createContext2({
9399
9400
  values: {},
9400
9401
  errors: {},
9401
9402
  hasSubmitted: false,
@@ -9525,7 +9526,7 @@ var useFormState = (action, initialData = {}) => {
9525
9526
  };
9526
9527
 
9527
9528
  // src/components/Form/FormErrorSummary.tsx
9528
- import { useContext as useContext3, useRef as useRef7 } from "react";
9529
+ import { useContext as useContext2, useRef as useRef7 } from "react";
9529
9530
  import { isArray, isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
9530
9531
  import { jsx as jsx223, jsxs as jsxs22 } from "react/jsx-runtime";
9531
9532
  var ErrorItem = ({ name, error, formId }) => {
@@ -9533,7 +9534,7 @@ var ErrorItem = ({ name, error, formId }) => {
9533
9534
  };
9534
9535
  var FormErrorSummary = ({ description }) => {
9535
9536
  const ref = useRef7(null);
9536
- const { formId, errors, hasSubmitted } = useContext3(FormContext);
9537
+ const { formId, errors, hasSubmitted } = useContext2(FormContext);
9537
9538
  const isValid = Object.keys(errors).length === 0;
9538
9539
  if (isValid || !hasSubmitted) {
9539
9540
  return null;
@@ -9563,7 +9564,7 @@ var FormErrorSummary = ({ description }) => {
9563
9564
  };
9564
9565
 
9565
9566
  // src/components/FormField/FormField.tsx
9566
- import { Children as Children5, cloneElement as cloneElement5, useContext as useContext4 } from "react";
9567
+ import { Children as Children5, cloneElement as cloneElement5, useContext as useContext3 } from "react";
9567
9568
  import styled36 from "styled-components";
9568
9569
  import { isArray as isArray2, isNotNil as isNotNil17, isNotUndefined as isNotUndefined9, isUndefined as isUndefined4 } from "@wistia/type-guards";
9569
9570
 
@@ -9628,7 +9629,7 @@ var Label = ({
9628
9629
  Label.displayName = "Label";
9629
9630
 
9630
9631
  // src/components/FormGroup/CheckboxGroup.tsx
9631
- import { createContext as createContext4, useMemo as useMemo5 } from "react";
9632
+ import { createContext as createContext3, useMemo as useMemo5 } from "react";
9632
9633
 
9633
9634
  // src/components/FormGroup/FormGroup.tsx
9634
9635
  import styled35 from "styled-components";
@@ -9666,7 +9667,7 @@ FormGroup.displayName = "FormGroup";
9666
9667
 
9667
9668
  // src/components/FormGroup/CheckboxGroup.tsx
9668
9669
  import { jsx as jsx226 } from "react/jsx-runtime";
9669
- var CheckboxGroupContext = createContext4(null);
9670
+ var CheckboxGroupContext = createContext3(null);
9670
9671
  var CheckboxGroup = ({
9671
9672
  children,
9672
9673
  name,
@@ -9759,8 +9760,8 @@ var FormField = ({
9759
9760
  value,
9760
9761
  ...props
9761
9762
  }) => {
9762
- const formState = useContext4(FormContext);
9763
- const checkboxGroup = useContext4(CheckboxGroupContext);
9763
+ const formState = useContext3(FormContext);
9764
+ const checkboxGroup = useContext3(CheckboxGroupContext);
9764
9765
  const defaultValue = formState.values[name];
9765
9766
  const isIntegratedLabel = children.type === Checkbox;
9766
9767
  const computedId = id ?? `${formState.formId}-${name}`;
@@ -9825,9 +9826,9 @@ var FormField = ({
9825
9826
  FormField.displayName = "FormField";
9826
9827
 
9827
9828
  // src/components/FormGroup/RadioGroup.tsx
9828
- import { createContext as createContext5, useMemo as useMemo6 } from "react";
9829
+ import { createContext as createContext4, useMemo as useMemo6 } from "react";
9829
9830
  import { jsx as jsx228 } from "react/jsx-runtime";
9830
- var RadioGroupContext = createContext5(null);
9831
+ var RadioGroupContext = createContext4(null);
9831
9832
  var RadioGroup = ({
9832
9833
  children,
9833
9834
  name,
@@ -9959,9 +9960,9 @@ import { isNotNil as isNotNil18, isNotUndefined as isNotUndefined10 } from "@wis
9959
9960
  import { useMemo as useMemo7 } from "react";
9960
9961
 
9961
9962
  // src/components/Menu/MenuContext.tsx
9962
- import { createContext as createContext6, useContext as useContext5 } from "react";
9963
- var MenuContext = createContext6({ compact: false });
9964
- var useMenuContext = () => useContext5(MenuContext);
9963
+ import { createContext as createContext5, useContext as useContext4 } from "react";
9964
+ var MenuContext = createContext5({ compact: false });
9965
+ var useMenuContext = () => useContext4(MenuContext);
9965
9966
 
9966
9967
  // src/components/Menu/Menu.tsx
9967
9968
  import { jsx as jsx231, jsxs as jsxs25 } from "react/jsx-runtime";
@@ -11109,9 +11110,9 @@ import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11109
11110
  import { isNil as isNil14 } from "@wistia/type-guards";
11110
11111
 
11111
11112
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11112
- import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState11 } from "react";
11113
+ import { createContext as createContext6, useContext as useContext5, useMemo as useMemo8, useState as useState11 } from "react";
11113
11114
  import { jsx as jsx248 } from "react/jsx-runtime";
11114
- var SelectedItemStyleContext = createContext7(null);
11115
+ var SelectedItemStyleContext = createContext6(null);
11115
11116
  var SelectedItemStyleProvider = ({
11116
11117
  children
11117
11118
  }) => {
@@ -11136,7 +11137,7 @@ var SelectedItemStyleProvider = ({
11136
11137
  return /* @__PURE__ */ jsx248(SelectedItemStyleContext.Provider, { value: contextValue, children });
11137
11138
  };
11138
11139
  var useSelectedItemStyle = () => {
11139
- const context = useContext6(SelectedItemStyleContext);
11140
+ const context = useContext5(SelectedItemStyleContext);
11140
11141
  if (context === null) {
11141
11142
  throw new Error("useSelectedItemStyle must be used within a SelectedItemStyleProvider");
11142
11143
  }
@@ -11147,11 +11148,11 @@ var useSelectedItemStyle = () => {
11147
11148
  import styled52 from "styled-components";
11148
11149
 
11149
11150
  // src/components/SegmentedControl/useSegmentedControlValue.tsx
11150
- import { createContext as createContext8, useContext as useContext7 } from "react";
11151
- var SegmentedControlValueContext = createContext8(null);
11151
+ import { createContext as createContext7, useContext as useContext6 } from "react";
11152
+ var SegmentedControlValueContext = createContext7(null);
11152
11153
  var SegmentedControlValueProvider = SegmentedControlValueContext.Provider;
11153
11154
  var useSegmentedControlValue = () => {
11154
- const context = useContext7(SegmentedControlValueContext);
11155
+ const context = useContext6(SegmentedControlValueContext);
11155
11156
  if (context === null) {
11156
11157
  throw new Error("useSegmentedControlValue must be used within a SegmentedControlValueProvider");
11157
11158
  }
@@ -11763,8 +11764,8 @@ var Table = ({
11763
11764
  import styled60 from "styled-components";
11764
11765
 
11765
11766
  // src/components/Table/TableSectionContext.ts
11766
- import { createContext as createContext9 } from "react";
11767
- var TableSectionContext = createContext9(null);
11767
+ import { createContext as createContext8 } from "react";
11768
+ var TableSectionContext = createContext8(null);
11768
11769
 
11769
11770
  // src/components/Table/TableBody.tsx
11770
11771
  import { jsx as jsx256 } from "react/jsx-runtime";
@@ -11774,7 +11775,7 @@ var TableBody = ({ children, ...props }) => {
11774
11775
  };
11775
11776
 
11776
11777
  // src/components/Table/TableCell.tsx
11777
- import { useContext as useContext8 } from "react";
11778
+ import { useContext as useContext7 } from "react";
11778
11779
  import styled61, { css as css36 } from "styled-components";
11779
11780
  import { jsx as jsx257 } from "react/jsx-runtime";
11780
11781
  var sharedStyles = css36`
@@ -11795,7 +11796,7 @@ var StyledTd = styled61.td`
11795
11796
  line-height: var(--wui-typography-body-2-line-height);
11796
11797
  `;
11797
11798
  var TableCell = ({ children, ...props }) => {
11798
- const section = useContext8(TableSectionContext);
11799
+ const section = useContext7(TableSectionContext);
11799
11800
  if (section === "head") {
11800
11801
  return /* @__PURE__ */ jsx257(StyledTh, { ...props, children });
11801
11802
  }
@@ -11888,11 +11889,11 @@ import { Trigger as RadixTab } from "@radix-ui/react-tabs";
11888
11889
  import { isNotNil as isNotNil28 } from "@wistia/type-guards";
11889
11890
 
11890
11891
  // src/components/Tabs/useTabsValue.tsx
11891
- import { createContext as createContext10, useContext as useContext9 } from "react";
11892
- var TabsValueContext = createContext10(null);
11892
+ import { createContext as createContext9, useContext as useContext8 } from "react";
11893
+ var TabsValueContext = createContext9(null);
11893
11894
  var TabsValueProvider = TabsValueContext.Provider;
11894
11895
  var useTabsValue = () => {
11895
- const context = useContext9(TabsValueContext);
11896
+ const context = useContext8(TabsValueContext);
11896
11897
  if (context === null) {
11897
11898
  throw new Error("useTabsValue must be used within a TabsValueProvider");
11898
11899
  }