Skip to content

Commit

Permalink
Merge pull request #91 from atomicjolt/sc/reexports
Browse files Browse the repository at this point in the history
added reexports module to reexport things to consumers of the package that might be helpful
  • Loading branch information
seanrcollings authored Jan 23, 2025
2 parents 23cf3a8 + e4bb446 commit 7f7f0a8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions packages/atomic-elements/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./types";
export * from "./components";
export * from "./styles";
export * from "./hooks";
export * from "./reexports";
11 changes: 11 additions & 0 deletions packages/atomic-elements/src/reexports.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** Module re-exports functionality from nested modules to make them easier to use */

export { useListData, useAsyncList, useTreeData } from "react-stately";

export type {
SortDescriptor,
Selection,
SortDirection,
SelectionMode,
SelectionBehavior,
} from "react-stately";
10 changes: 1 addition & 9 deletions packages/atomic-elements/src/types/aria.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,4 @@ export type AriaProps<P> = Omit<
| "pattern"
>;

export type Key = string | number;

export type {
SortDescriptor,
Selection,
SortDirection,
SelectionMode,
SelectionBehavior,
} from "react-stately";
export type { Key } from "@react-types/shared";

0 comments on commit 7f7f0a8

Please sign in to comment.