Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed May 18, 2024
1 parent 819a392 commit f0f9ed5
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"@react-aria/visually-hidden": "^3.5.0",
"@react-stately/collections": "^3.10.2",
"@react-stately/layout": "^3.8.0",
"@react-stately/list": "3.6.1",
"@react-stately/list": "^3.10.4",
"@react-stately/overlays": "^3.4.2",
"@react-stately/radio": "^3.6.0",
"@react-stately/select": "^3.3.2",
Expand Down
3 changes: 2 additions & 1 deletion src/menu/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mergeProps, useSyncRef } from '@react-aria/utils';
import React, { Key, ReactElement, useContext } from 'react';
import React, { ReactElement, useContext } from 'react';
import { useMenu } from '@react-aria/menu';
import { useTreeState } from '@react-stately/tree';
import { css } from '@emotion/react';
Expand All @@ -12,6 +12,7 @@ import {
FocusStrategy,
MultipleSelection,
} from '../types';
import { Key } from '../types';
import { MenuContext } from './context';
import { MenuItem } from './MenuItem';
import { MenuSection } from './MenuSection';
Expand Down
4 changes: 2 additions & 2 deletions src/menu/MenuItem.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { FocusRing } from '@react-aria/focus';
import { mergeProps } from '@react-aria/utils';
import React, { Key, useRef } from 'react';
import React, { useRef } from 'react';
import { TreeState } from '@react-stately/tree';
import { useHover } from '@react-aria/interactions';
import { useMenuItem } from '@react-aria/menu';
import { Text } from '../content';
import { classNames } from '../utils';
import { Icon, CheckmarkOutline } from '../icon';
import { Node } from '../types';
import { Key, Node } from '../types';
import { useMenuContext } from './context';
import { menuItemCSS } from './styles';

Expand Down
4 changes: 2 additions & 2 deletions src/menu/MenuSection.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { Fragment, Key } from 'react';
import React, { Fragment } from 'react';
import { TreeState } from '@react-stately/tree';
import { useMenuSection } from '@react-aria/menu';
import { useSeparator } from '@react-aria/separator';
import { getChildNodes } from '@react-stately/collections';
import { css } from '@emotion/react';
import theme from '../theme';
import { Node } from '../types';
import { Key, Node } from '../types';
import { MenuItem } from './MenuItem';
interface MenuSectionProps<T> {
item: Node<T>;
Expand Down
4 changes: 2 additions & 2 deletions src/navlist/NavList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Key, ReactElement } from 'react';
import React, { ReactElement } from 'react';
import { css } from '@emotion/react';
import { ListBox, ListBoxProps } from '../listbox';
import { DOMRef } from '../types';
import { DOMRef, Key } from '../types';
import { useDOMRef } from '../utils';
import theme from '../theme';

Expand Down
3 changes: 2 additions & 1 deletion src/types/collection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Key, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { Key } from './key';

export interface ItemProps<T> {
/** Rendered contents of the item or child items. */
Expand Down
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ export * from './progress';
export * from './style';
export * from './locale';
export * from './breadcrumb';
export * from './key';
3 changes: 2 additions & 1 deletion src/types/menu.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Key, ReactElement, ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';
import { ButtonProps } from './button';
import { OverlayTriggerProps } from './overlays';
import { Alignment } from './labelable';
import { FocusStrategy, MultipleSelection } from './selection';
import { CollectionBase } from './collection';
import { AriaLabelingProps, DOMProps } from './dom';
import { StyleProps } from './style';
import { Key } from './key';

export type MenuTriggerType = 'press' | 'longPress';

Expand Down
2 changes: 1 addition & 1 deletion src/types/selection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Key } from 'react';
import { Key } from './key';

export interface SingleSelection {
/** Whether the collection allows empty selection. */
Expand Down
19 changes: 4 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2414,7 +2414,7 @@
"@react-types/shared" "^3.23.0"
"@swc/helpers" "^0.5.0"

"@react-stately/collections@^3.10.2", "@react-stately/collections@^3.10.6", "@react-stately/collections@^3.5.1":
"@react-stately/collections@^3.10.2", "@react-stately/collections@^3.10.6":
version "3.10.6"
resolved "https://registry.yarnpkg.com/@react-stately/collections/-/collections-3.10.6.tgz#487a4c4e201e8f0de53725ce650d1e57b820917a"
integrity sha512-hb/yzxQnZaSRu43iR6ftkCJIqD4Qu5WUjl4ASBn2EGb9TmipA7bFnYVqSH4xFPCCTZ68Qxh95dOcxYBHlHeWZQ==
Expand Down Expand Up @@ -2461,17 +2461,6 @@
"@react-types/table" "^3.9.4"
"@swc/helpers" "^0.5.0"

"@react-stately/[email protected]":
version "3.6.1"
resolved "https://registry.yarnpkg.com/@react-stately/list/-/list-3.6.1.tgz#75d07a4e04111b804fb13c975df5a0c1265f3aa1"
integrity sha512-+/fVkK3UO+N2NoUGpe57k9gcnfIsyEgWP8SD6CXZUkJho7BTp6mwrH0Wm8tcOclT3uBk+fZaQrk8mR3uWsPZGw==
dependencies:
"@react-stately/collections" "^3.5.1"
"@react-stately/selection" "^3.11.2"
"@react-stately/utils" "^3.5.2"
"@react-types/shared" "^3.16.0"
"@swc/helpers" "^0.4.14"

"@react-stately/list@^3.10.4":
version "3.10.4"
resolved "https://registry.yarnpkg.com/@react-stately/list/-/list-3.10.4.tgz#edb7557e3229220847b7efa8b9be6c02658e574c"
Expand Down Expand Up @@ -2525,7 +2514,7 @@
"@react-types/shared" "^3.23.0"
"@swc/helpers" "^0.5.0"

"@react-stately/selection@^3.11.2", "@react-stately/selection@^3.15.0":
"@react-stately/selection@^3.15.0":
version "3.15.0"
resolved "https://registry.yarnpkg.com/@react-stately/selection/-/selection-3.15.0.tgz#224a7a279236aacbd30063bc9f11dbe196728e8e"
integrity sha512-OtypXNtvRWLmpkaktluzCYEXKXAON16WIJv2mZ4cae3H0UVfWaFL9sD+ST9nj7UqYNTDXECug5ziIY+YKd7zvA==
Expand Down Expand Up @@ -2589,7 +2578,7 @@
"@react-types/shared" "^3.23.0"
"@swc/helpers" "^0.5.0"

"@react-stately/utils@^3.10.0", "@react-stately/utils@^3.5.1", "@react-stately/utils@^3.5.2":
"@react-stately/utils@^3.10.0", "@react-stately/utils@^3.5.1":
version "3.10.0"
resolved "https://registry.yarnpkg.com/@react-stately/utils/-/utils-3.10.0.tgz#2479c891b9d726cc43e6abcc0cc74498eda8e0fa"
integrity sha512-nji2i9fTYg65ZWx/3r11zR1F2tGya+mBubRCbMTwHyRnsSLFZaeq/W6lmrOyIy1uMJKBNKLJpqfmpT4x7rw6pg==
Expand Down Expand Up @@ -2692,7 +2681,7 @@
dependencies:
"@react-types/shared" "^3.23.0"

"@react-types/shared@^3.16.0", "@react-types/shared@^3.23.0":
"@react-types/shared@^3.23.0":
version "3.23.0"
resolved "https://registry.yarnpkg.com/@react-types/shared/-/shared-3.23.0.tgz#59c9d2683d131b81a8f775b56408782fc70bc79b"
integrity sha512-GQm/iPiii3ikcaMNR4WdVkJ4w0mKtV3mLqeSfSqzdqbPr6vONkqXbh3RhPlPmAJs1b4QHnexd/wZQP3U9DHOwQ==
Expand Down

0 comments on commit f0f9ed5

Please sign in to comment.