From 81bdfb0d7e5e77cf8654807202ddcc02f2359f59 Mon Sep 17 00:00:00 2001 From: Robert Snow Date: Wed, 1 May 2024 14:28:39 -0500 Subject: [PATCH] Add Submenu to monopackages (#6308) * Add Submenu to monopackages --- packages/@adobe/react-spectrum/src/index.ts | 6 +++--- packages/react-aria/src/index.ts | 4 ++-- packages/react-stately/src/index.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/@adobe/react-spectrum/src/index.ts b/packages/@adobe/react-spectrum/src/index.ts index feceb91764c..b990d8f45d6 100644 --- a/packages/@adobe/react-spectrum/src/index.ts +++ b/packages/@adobe/react-spectrum/src/index.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -// Mark as a client only package. This will cause a build time error if you try +// Mark as a client only package. This will cause a build time error if you try // to import it from a React Server Component in a framework like Next.js. import 'client-only'; @@ -39,7 +39,7 @@ export {LabeledValue} from '@react-spectrum/labeledvalue'; export {Link} from '@react-spectrum/link'; export {ListBox} from '@react-spectrum/listbox'; export {ListView} from '@react-spectrum/list'; -export {ActionMenu, Menu, MenuTrigger} from '@react-spectrum/menu'; +export {ActionMenu, Menu, MenuTrigger, SubmenuTrigger} from '@react-spectrum/menu'; export {Meter} from '@react-spectrum/meter'; export {NumberField} from '@react-spectrum/numberfield'; export {Picker} from '@react-spectrum/picker'; @@ -93,7 +93,7 @@ export type {SpectrumLabeledValueProps} from '@react-spectrum/labeledvalue'; export type {SpectrumLinkProps} from '@react-spectrum/link'; export type {SpectrumListBoxProps} from '@react-spectrum/listbox'; export type {SpectrumListViewProps} from '@react-spectrum/list'; -export type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps, SpectrumMenuDialogTriggerProps} from '@react-spectrum/menu'; +export type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps, SpectrumMenuDialogTriggerProps, SpectrumSubmenuTriggerProps} from '@react-spectrum/menu'; export type {SpectrumMeterProps} from '@react-spectrum/meter'; export type {SpectrumNumberFieldProps} from '@react-spectrum/numberfield'; export type {SpectrumPickerProps} from '@react-spectrum/picker'; diff --git a/packages/react-aria/src/index.ts b/packages/react-aria/src/index.ts index 84766dbcb88..93b4b9bf85a 100644 --- a/packages/react-aria/src/index.ts +++ b/packages/react-aria/src/index.ts @@ -25,7 +25,7 @@ export {useField, useLabel} from '@react-aria/label'; export {useGridList, useGridListItem, useGridListSelectionCheckbox} from '@react-aria/gridlist'; export {useLink} from '@react-aria/link'; export {useListBox, useListBoxSection, useOption} from '@react-aria/listbox'; -export {useMenu, useMenuItem, useMenuSection, useMenuTrigger} from '@react-aria/menu'; +export {useMenu, useMenuItem, useMenuSection, useMenuTrigger, useSubmenuTrigger} from '@react-aria/menu'; export {useMeter} from '@react-aria/meter'; export {useNumberField} from '@react-aria/numberfield'; export {DismissButton, ModalProvider, Overlay, OverlayContainer, OverlayProvider, useModal, useModalOverlay, useModalProvider, useOverlay, useOverlayPosition, useOverlayTrigger, usePopover, usePreventScroll} from '@react-aria/overlays'; @@ -61,7 +61,7 @@ export type {AriaFieldProps, FieldAria, LabelAria, LabelAriaProps} from '@react- export type {AriaLinkOptions, LinkAria} from '@react-aria/link'; export type {AriaListBoxOptions, AriaListBoxProps, AriaListBoxSectionProps, AriaOptionProps, ListBoxAria, ListBoxSectionAria, OptionAria} from '@react-aria/listbox'; export type {AriaGridListOptions, AriaGridListProps, GridListAria, AriaGridListItemOptions, GridListItemAria, AriaGridSelectionCheckboxProps, GridSelectionCheckboxAria} from '@react-aria/gridlist'; -export type {AriaMenuProps, AriaMenuItemProps, AriaMenuOptions, AriaMenuSectionProps, AriaMenuTriggerProps, MenuAria, MenuItemAria, MenuSectionAria, MenuTriggerAria} from '@react-aria/menu'; +export type {AriaMenuProps, AriaMenuItemProps, AriaMenuOptions, AriaMenuSectionProps, AriaMenuTriggerProps, MenuAria, MenuItemAria, MenuSectionAria, MenuTriggerAria, SubmenuTriggerAria, AriaSubmenuTriggerProps} from '@react-aria/menu'; export type {AriaMeterProps, MeterAria} from '@react-aria/meter'; export type {AriaNumberFieldProps, NumberFieldAria} from '@react-aria/numberfield'; export type {AriaModalOptions, AriaModalOverlayProps, AriaOverlayProps, AriaPopoverProps, AriaPositionProps, DismissButtonProps, ModalAria, ModalOverlayAria, ModalProviderAria, ModalProviderProps, OverlayAria, OverlayContainerProps, OverlayProps, OverlayTriggerAria, OverlayTriggerProps, PopoverAria, PositionAria, Placement, PlacementAxis, PositionProps} from '@react-aria/overlays'; diff --git a/packages/react-stately/src/index.ts b/packages/react-stately/src/index.ts index 8afbb075561..698c83d8743 100644 --- a/packages/react-stately/src/index.ts +++ b/packages/react-stately/src/index.ts @@ -17,7 +17,7 @@ export type {DateFieldState, DateFieldStateOptions, DatePickerState, DatePickerS export type {DraggableCollectionStateOptions, DraggableCollectionState, DroppableCollectionStateOptions, DroppableCollectionState} from '@react-stately/dnd'; export type {AsyncListData, AsyncListOptions, ListData, ListOptions, TreeData, TreeOptions} from '@react-stately/data'; export type {ListProps, ListState, SingleSelectListProps, SingleSelectListState} from '@react-stately/list'; -export type {MenuTriggerProps, MenuTriggerState, RootMenuTriggerState} from '@react-stately/menu'; +export type {MenuTriggerProps, MenuTriggerState, RootMenuTriggerState, SubmenuTriggerState, SubmenuTriggerProps} from '@react-stately/menu'; export type {OverlayTriggerProps, OverlayTriggerState} from '@react-stately/overlays'; export type {RadioGroupProps, RadioGroupState} from '@react-stately/radio'; export type {SearchFieldProps, SearchFieldState} from '@react-stately/searchfield'; @@ -40,7 +40,7 @@ export {useDraggableCollectionState, useDroppableCollectionState} from '@react-s export {Item, Section, useCollection} from '@react-stately/collections'; export {useAsyncList, useListData, useTreeData} from '@react-stately/data'; export {useListState, useSingleSelectListState} from '@react-stately/list'; -export {useMenuTriggerState} from '@react-stately/menu'; +export {useMenuTriggerState, useSubmenuTriggerState} from '@react-stately/menu'; export {useNumberFieldState} from '@react-stately/numberfield'; export {useOverlayTriggerState} from '@react-stately/overlays'; export {useRadioGroupState} from '@react-stately/radio';