Skip to content

Commit

Permalink
chore: update deps (#213)
Browse files Browse the repository at this point in the history
* chore: update deps

* chore: upgrade deps

* add key types
  • Loading branch information
mikeldking committed May 18, 2024
1 parent 05ad890 commit a679b80
Show file tree
Hide file tree
Showing 12 changed files with 2,032 additions and 2,396 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
2 changes: 1 addition & 1 deletion src/textfield/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function TextArea(props: TextAreaProps, ref: RefObject<TextFieldRef>) {

// not in stately because this is so we know when to re-measure, which is a spectrum design
const [inputValue, setInputValue] = useControlledState(
props.value,
props.value || '',
props.defaultValue,
() => {}
);
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';
1 change: 1 addition & 0 deletions src/types/key.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type Key = string | number;
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
4,399 changes: 2,015 additions & 2,384 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit a679b80

Please sign in to comment.