@wistia/ui 0.8.15 → 0.8.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -94,6 +94,15 @@ type UseFocusTrapOptions = {
94
94
  };
95
95
  declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) => (node: HTMLElement | null | undefined) => void;
96
96
 
97
+ type HoverProps = {
98
+ onFocus: () => void;
99
+ onMouseEnter: () => void;
100
+ onBlur: () => void;
101
+ onMouseLeave: () => void;
102
+ onMouseMove?: () => void;
103
+ };
104
+ declare const useIsHovered: () => [boolean, HoverProps, (hovered: boolean) => void];
105
+
97
106
  type AddEventListenerType = (type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions | boolean) => void;
98
107
  type RemoveEventListenerType = (type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions | boolean) => void;
99
108
  declare const useEvent: <T extends Event>(eventName: Parameters<AddEventListenerType>[0], eventHandler: (event: T) => unknown, eventTarget?: unknown, eventOptions?: Parameters<RemoveEventListenerType>[2]) => void;
@@ -3210,4 +3219,4 @@ declare const WistiaLogo: {
3210
3219
  displayName: string;
3211
3220
  };
3212
3221
 
3213
- export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
3222
+ export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useFocusTrap, useFormState, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
package/dist/index.d.ts CHANGED
@@ -94,6 +94,15 @@ type UseFocusTrapOptions = {
94
94
  };
95
95
  declare const useFocusTrap: (active?: boolean, options?: UseFocusTrapOptions) => (node: HTMLElement | null | undefined) => void;
96
96
 
97
+ type HoverProps = {
98
+ onFocus: () => void;
99
+ onMouseEnter: () => void;
100
+ onBlur: () => void;
101
+ onMouseLeave: () => void;
102
+ onMouseMove?: () => void;
103
+ };
104
+ declare const useIsHovered: () => [boolean, HoverProps, (hovered: boolean) => void];
105
+
97
106
  type AddEventListenerType = (type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions | boolean) => void;
98
107
  type RemoveEventListenerType = (type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions | boolean) => void;
99
108
  declare const useEvent: <T extends Event>(eventName: Parameters<AddEventListenerType>[0], eventHandler: (event: T) => unknown, eventTarget?: unknown, eventOptions?: Parameters<RemoveEventListenerType>[2]) => void;
@@ -3210,4 +3219,4 @@ declare const WistiaLogo: {
3210
3219
  displayName: string;
3211
3220
  };
3212
3221
 
3213
- export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useFocusTrap, useFormState, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
3222
+ export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, Ellipsis, type EllipsisProps, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Switch, type SwitchProps, Tab, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useFocusTrap, useFormState, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, useToast, useWindowSize };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.8.15
3
+ * @license @wistia/ui v0.8.16
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -2245,6 +2245,27 @@ var useFocusTrap = (active = true, options = {}) => {
2245
2245
  return setRef;
2246
2246
  };
2247
2247
 
2248
+ // src/hooks/useIsHovered/useIsHovered.ts
2249
+ import { useState as useState4 } from "react";
2250
+ var useIsHovered = () => {
2251
+ const [isHovered, setIsHovered] = useState4(false);
2252
+ const onFocus = () => setIsHovered(true);
2253
+ const onMouseEnter = () => setIsHovered(true);
2254
+ const onMouseMove = () => setIsHovered(true);
2255
+ const onBlur = () => setIsHovered(false);
2256
+ const onMouseLeave = () => setIsHovered(false);
2257
+ const hoverProps = {
2258
+ onFocus,
2259
+ onMouseEnter,
2260
+ onBlur,
2261
+ onMouseLeave
2262
+ };
2263
+ if (!isHovered) {
2264
+ hoverProps.onMouseMove = onMouseMove;
2265
+ }
2266
+ return [isHovered, hoverProps, setIsHovered];
2267
+ };
2268
+
2248
2269
  // src/hooks/useKey/useKey.ts
2249
2270
  import { useCallback as useCallback5 } from "react";
2250
2271
 
@@ -2321,9 +2342,9 @@ var useKey = (key, eventHandler, { eventName = "keydown", eventTarget, eventOpti
2321
2342
  };
2322
2343
 
2323
2344
  // src/hooks/useLocalStorage/useLocalStorage.ts
2324
- import { useState as useState4 } from "react";
2345
+ import { useState as useState5 } from "react";
2325
2346
  var useLocalStorage = (key, initialValue, storage = window.localStorage) => {
2326
- const [storedValue, setStoredValue] = useState4(() => {
2347
+ const [storedValue, setStoredValue] = useState5(() => {
2327
2348
  try {
2328
2349
  const item = storage.getItem(key);
2329
2350
  return item !== null && !!item ? JSON.parse(item) : initialValue;
@@ -2367,7 +2388,7 @@ var useLockBodyScroll = (locked) => {
2367
2388
  import { isBoolean } from "@wistia/type-guards";
2368
2389
 
2369
2390
  // src/hooks/useWindowSize/useWindowSize.ts
2370
- import { useState as useState5, useLayoutEffect as useLayoutEffect2 } from "react";
2391
+ import { useState as useState6, useLayoutEffect as useLayoutEffect2 } from "react";
2371
2392
  import { debounce } from "throttle-debounce";
2372
2393
 
2373
2394
  // src/private/helpers/isClient/isClient.ts
@@ -2375,7 +2396,7 @@ var isClient = () => typeof window !== "undefined" && typeof document !== "undef
2375
2396
 
2376
2397
  // src/hooks/useWindowSize/useWindowSize.ts
2377
2398
  var useWindowSize = (interval = 0) => {
2378
- const [dimensions, setDimensions] = useState5({
2399
+ const [dimensions, setDimensions] = useState6({
2379
2400
  width: isClient() ? window.innerWidth : 0,
2380
2401
  height: isClient() ? window.innerHeight : 0
2381
2402
  });
@@ -7302,7 +7323,7 @@ var ActionButton = forwardRef3(
7302
7323
  ActionButton.displayName = "ActionButton";
7303
7324
 
7304
7325
  // src/components/Avatar/Avatar.tsx
7305
- import { useState as useState6, useMemo as useMemo3, useEffect as useEffect6 } from "react";
7326
+ import { useState as useState7, useMemo as useMemo3, useEffect as useEffect6 } from "react";
7306
7327
  import { isNil as isNil8, isNotNil as isNotNil8 } from "@wistia/type-guards";
7307
7328
  import styled9 from "styled-components";
7308
7329
 
@@ -7510,7 +7531,7 @@ var Avatar = ({
7510
7531
  onImageLoad,
7511
7532
  ...props
7512
7533
  }) => {
7513
- const [imageLoadState, setImageLoadState] = useState6("loading");
7534
+ const [imageLoadState, setImageLoadState] = useState7("loading");
7514
7535
  useEffect6(() => {
7515
7536
  setImageLoadState("loading");
7516
7537
  }, [imageUrl]);
@@ -8954,7 +8975,7 @@ Divider.displayName = "Divider";
8954
8975
 
8955
8976
  // src/components/EditableHeading/EditableHeading.tsx
8956
8977
  import styled31, { css as css27 } from "styled-components";
8957
- import { useState as useState7, useRef as useRef6 } from "react";
8978
+ import { useState as useState8, useRef as useRef6 } from "react";
8958
8979
 
8959
8980
  // src/components/Tooltip/Tooltip.tsx
8960
8981
  import {
@@ -9312,10 +9333,10 @@ var EditableHeading = ({
9312
9333
  __forceEditing = false,
9313
9334
  editingDisabled = false
9314
9335
  }) => {
9315
- const [isEditing, setIsEditing] = useState7(false);
9316
- const [value, setValue] = useState7(children);
9317
- const [previousValue, setPreviousValue] = useState7(children);
9318
- const [headingHeight, setHeadingHeight] = useState7("60");
9336
+ const [isEditing, setIsEditing] = useState8(false);
9337
+ const [value, setValue] = useState8(children);
9338
+ const [previousValue, setPreviousValue] = useState8(children);
9339
+ const [headingHeight, setHeadingHeight] = useState8("60");
9319
9340
  const headingRef = useRef6(null);
9320
9341
  const handleSetEditing = (editing) => {
9321
9342
  if (editingDisabled) return;
@@ -9395,7 +9416,7 @@ var EditableHeading = ({
9395
9416
  };
9396
9417
 
9397
9418
  // src/components/Form/Form.tsx
9398
- import { forwardRef as forwardRef12, useRef as useRef7, useMemo as useMemo4, createContext as createContext3, useState as useState8, useId as useId2 } from "react";
9419
+ import { forwardRef as forwardRef12, useRef as useRef7, useMemo as useMemo4, createContext as createContext3, useState as useState9, useId as useId2 } from "react";
9399
9420
  import styled33 from "styled-components";
9400
9421
  import { isNotUndefined as isNotUndefined7, isUndefined as isUndefined3 } from "@wistia/type-guards";
9401
9422
 
@@ -9455,8 +9476,8 @@ var FormComponent = ({
9455
9476
  fullWidth = false,
9456
9477
  ...props
9457
9478
  }, forwardedRef) => {
9458
- const [errors, setErrors] = useState8({});
9459
- const [hasSubmitted, setHasSubmitted] = useState8(false);
9479
+ const [errors, setErrors] = useState9({});
9480
+ const [hasSubmitted, setHasSubmitted] = useState9(false);
9460
9481
  const innerRef = useRef7();
9461
9482
  const ref = forwardedRef ?? innerRef;
9462
9483
  const autoId = useId2();
@@ -9533,11 +9554,11 @@ FormComponent.displayName = "Form";
9533
9554
  var Form = forwardRef12(FormComponent);
9534
9555
 
9535
9556
  // src/components/Form/useFormState.tsx
9536
- import { useCallback as useCallback8, useState as useState9 } from "react";
9557
+ import { useCallback as useCallback8, useState as useState10 } from "react";
9537
9558
  var useFormState = (action, initialData = {}) => {
9538
- const [data, setData] = useState9(initialData);
9539
- const [isPending, setIsPending] = useState9(false);
9540
- const [error, setError] = useState9(null);
9559
+ const [data, setData] = useState10(initialData);
9560
+ const [isPending, setIsPending] = useState10(false);
9561
+ const [error, setError] = useState10(null);
9541
9562
  const formAction = useCallback8(
9542
9563
  async (nextFormData) => {
9543
9564
  if (nextFormData === null) {
@@ -9929,7 +9950,7 @@ IconButton.displayName = "IconButton";
9929
9950
 
9930
9951
  // src/components/InputClickToCopy/InputClickToCopy.tsx
9931
9952
  import styled38 from "styled-components";
9932
- import { forwardRef as forwardRef14, useEffect as useEffect8, useState as useState10 } from "react";
9953
+ import { forwardRef as forwardRef14, useEffect as useEffect8, useState as useState11 } from "react";
9933
9954
  import { isFunction as isFunction3 } from "@wistia/type-guards";
9934
9955
  import { jsx as jsx230 } from "react/jsx-runtime";
9935
9956
  var StyledInput2 = styled38(Input)`
@@ -9944,7 +9965,7 @@ var StyledInput2 = styled38(Input)`
9944
9965
  var COPY_SUCCESS_DURATION = 2e3;
9945
9966
  var InputClickToCopy = forwardRef14(
9946
9967
  ({ value, onCopy, ...props }, ref) => {
9947
- const [isCopied, setIsCopied] = useState10(false);
9968
+ const [isCopied, setIsCopied] = useState11(false);
9948
9969
  useEffect8(() => {
9949
9970
  if (isCopied) {
9950
9971
  const timeout = setTimeout(() => {
@@ -10183,7 +10204,7 @@ var MenuLabel = ({ children, ...props }) => {
10183
10204
  MenuLabel.displayName = "MenuLabel";
10184
10205
 
10185
10206
  // src/components/Menu/SubMenu.tsx
10186
- import { useState as useState11 } from "react";
10207
+ import { useState as useState12 } from "react";
10187
10208
  import styled43 from "styled-components";
10188
10209
  import {
10189
10210
  DropdownMenuPortal as DropdownMenuPortal2,
@@ -10369,7 +10390,7 @@ var SubMenu = ({
10369
10390
  ...props
10370
10391
  }) => {
10371
10392
  const { isSmAndUp } = useMq();
10372
- const [isExpanded, setIsExpanded] = useState11(false);
10393
+ const [isExpanded, setIsExpanded] = useState12(false);
10373
10394
  const { compact } = useMenuContext();
10374
10395
  return isSmAndUp ? /* @__PURE__ */ jsxs27(DropdownMenuSub, { onOpenChange, children: [
10375
10396
  /* @__PURE__ */ jsxs27(SubMenuTrigger, { ...props, children: [
@@ -10733,6 +10754,11 @@ var BackdropComponent = styled47.div`
10733
10754
  position: fixed;
10734
10755
  z-index: var(--wui-zindex-backdrop);
10735
10756
 
10757
+ @media (prefers-reduced-motion: reduce) {
10758
+ animation: none;
10759
+ opacity: 1;
10760
+ }
10761
+
10736
10762
  @keyframes backdropShow {
10737
10763
  from {
10738
10764
  opacity: 0;
@@ -11153,13 +11179,13 @@ import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
11153
11179
  import { isNil as isNil14 } from "@wistia/type-guards";
11154
11180
 
11155
11181
  // src/components/SegmentedControl/useSelectedItemStyle.tsx
11156
- import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState12 } from "react";
11182
+ import { createContext as createContext7, useContext as useContext6, useMemo as useMemo8, useState as useState13 } from "react";
11157
11183
  import { jsx as jsx248 } from "react/jsx-runtime";
11158
11184
  var SelectedItemStyleContext = createContext7(null);
11159
11185
  var SelectedItemStyleProvider = ({
11160
11186
  children
11161
11187
  }) => {
11162
- const [selectedItemMeasurements, setSelectedItemMeasurements] = useState12(null);
11188
+ const [selectedItemMeasurements, setSelectedItemMeasurements] = useState13(null);
11163
11189
  const selectedItemIndicatorStyle = useMemo8(
11164
11190
  () => selectedItemMeasurements != null ? {
11165
11191
  height: `${selectedItemMeasurements.offsetHeight}px`,
@@ -11879,7 +11905,7 @@ var TableRow = ({ children, ...props }) => {
11879
11905
  };
11880
11906
 
11881
11907
  // src/components/Tabs/Tabs.tsx
11882
- import { forwardRef as forwardRef27, useState as useState13 } from "react";
11908
+ import { forwardRef as forwardRef27, useState as useState14 } from "react";
11883
11909
  import { Root as TabsRoot } from "@radix-ui/react-tabs";
11884
11910
  import { isNotNil as isNotNil29, isNil as isNil15 } from "@wistia/type-guards";
11885
11911
  import styled69 from "styled-components";
@@ -12078,7 +12104,7 @@ var Tabs = forwardRef27(
12078
12104
  ...props
12079
12105
  }, ref) => {
12080
12106
  const tabItems = extractTabItems(children);
12081
- const [internalSelectedValue, setInternalSelectedValue] = useState13(defaultSelectedValue);
12107
+ const [internalSelectedValue, setInternalSelectedValue] = useState14(defaultSelectedValue);
12082
12108
  const modeProps = defaultSelectedValue !== void 0 ? {
12083
12109
  defaultValue: defaultSelectedValue,
12084
12110
  onValueChange: setInternalSelectedValue
@@ -12909,6 +12935,7 @@ export {
12909
12935
  useFocusTrap,
12910
12936
  useFormState,
12911
12937
  useImperativeFilePicker,
12938
+ useIsHovered,
12912
12939
  useKey,
12913
12940
  useLocalStorage,
12914
12941
  useLockBodyScroll,