Skip to content

Commit 0e69a1b

Browse files
authored
chore: Audit subpath exports (adobe#9850)
* Add ItemProps to all subpaths that export Item * Add additional Provider exports * Fix a missed icon import * export Focusable and Pressable * Add useFilter to Autocomplete and ComboBox * Remove deprecated Section * Additional re-exports * virtualizer * audit * fix test
1 parent 383602e commit 0e69a1b

File tree

926 files changed

+1163
-1229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

926 files changed

+1163
-1229
lines changed

packages/@adobe/react-spectrum/exports/ActionBar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ export {ActionBarContainer} from '../src/actionbar/ActionBarContainer';
1515
export type {SpectrumActionBarContainerProps} from '../src/actionbar/ActionBarContainer';
1616
export type {SpectrumActionBarProps} from '../src/actionbar/ActionBar';
1717
export {Item} from 'react-stately/Item';
18+
export type {ItemProps, Key} from '@react-types/shared';

packages/@adobe/react-spectrum/exports/ActionGroup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
export {ActionGroup} from '../src/actiongroup/ActionGroup';
1414
export type {SpectrumActionGroupProps} from '../src/actiongroup/ActionGroup';
1515
export {Item} from 'react-stately/Item';
16+
export type {ItemProps, Key} from '@react-types/shared';

packages/@adobe/react-spectrum/exports/ActionMenu.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ export {ActionMenu} from '../src/menu/ActionMenu';
1616
export type {SpectrumActionMenuProps} from '../src/menu/ActionMenu';
1717
export {Item} from 'react-stately/Item';
1818
export {Section} from 'react-stately/Section';
19+
export type {ItemProps, SectionProps, Key, Selection} from '@react-types/shared';

packages/@adobe/react-spectrum/exports/Breadcrumbs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
export {Breadcrumbs} from '../src/breadcrumbs/Breadcrumbs';
1414
export type {SpectrumBreadcrumbsProps} from '../src/breadcrumbs/Breadcrumbs';
1515
export {Item} from 'react-stately/Item';
16+
export type {ItemProps, Key} from '@react-types/shared';

packages/@adobe/react-spectrum/exports/ComboBox.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ export {ComboBox} from '../src/combobox/ComboBox';
1616
export type {SpectrumComboBoxProps} from '../src/combobox/ComboBox';
1717
export {Item} from 'react-stately/Item';
1818
export {Section} from 'react-stately/Section';
19+
export type {ItemProps, SectionProps, Key} from '@react-types/shared';
20+
export {useFilter} from 'react-aria/useFilter';
21+
export type {Filter} from 'react-aria/useFilter';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export {FileTrigger} from 'react-aria-components/FileTrigger';
2+
export type {FileTriggerProps} from 'react-aria-components/FileTrigger';

packages/@adobe/react-spectrum/exports/ListBox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ export {ListBox} from '../src/listbox/ListBox';
1616
export {Item} from 'react-stately/Item';
1717
export {Section} from 'react-stately/Section';
1818
export type {SpectrumListBoxProps} from '../src/listbox/ListBoxBase';
19+
export type {ItemProps, SectionProps, Key, Selection} from '@react-types/shared';

packages/@adobe/react-spectrum/exports/ListView.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
export {ListView} from '../src/list/ListView';
1414
export type {SpectrumListViewProps} from '../src/list/ListView';
1515
export {Item} from 'react-stately/Item';
16+
export type {ItemProps, Key, Selection} from '@react-types/shared';

packages/@adobe/react-spectrum/exports/Menu.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ export type {SpectrumMenuDialogTriggerProps} from '../src/menu/ContextualHelpTri
2020
export type {SpectrumSubmenuTriggerProps} from '../src/menu/SubmenuTrigger';
2121
export {Item} from 'react-stately/Item';
2222
export {Section} from 'react-stately/Section';
23+
export type {ItemProps, SectionProps, Key, Selection} from '@react-types/shared';

packages/@adobe/react-spectrum/exports/MenuTrigger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ export {MenuTrigger} from '../src/menu/MenuTrigger';
1616
export type {SpectrumMenuTriggerProps} from '../src/menu/MenuTrigger';
1717
export {Item} from 'react-stately/Item';
1818
export {Section} from 'react-stately/Section';
19+
export type {ItemProps, SectionProps, Key} from '@react-types/shared';

0 commit comments

Comments
 (0)