Skip to content

Commit

Permalink
fix: re-export remaining types needed by dh ui from @react-types/shar…
Browse files Browse the repository at this point in the history
…ed (#2132)

Resolves #2084

**Steps Moving Forward:**
- Once this PR has merged, will go into plugins repo and use the
re-exported types, and remove @react-types/shared dependency (in order
to further eliminate spectrum dependency)
  • Loading branch information
AkshatJawne authored Jul 8, 2024
1 parent 0ae07eb commit 2119a61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/components/src/spectrum/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ import type {
} from '@react-types/shared';

export { Item } from '@adobe/react-spectrum';
export type { ItemProps } from '@react-types/shared';
export type {
ItemProps,
Orientation,
PressEvent,
SelectionMode,
} from '@react-types/shared';

/*
* We support primitive values as shorthand for `Item` elements in certain
Expand Down

0 comments on commit 2119a61

Please sign in to comment.