Skip to content

Commit

Permalink
chore: add accordion to monopackage (#7285)
Browse files Browse the repository at this point in the history
* chore: add accordion to monopackage

* update package json, update react-aria monopackage

* fix version

* update yarn.lock
  • Loading branch information
yihuiliao authored Oct 29, 2024
1 parent b01fbf2 commit e92ccd7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/@adobe/react-spectrum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@react-aria/ssr": "^3.9.6",
"@react-aria/utils": "^3.25.3",
"@react-aria/visually-hidden": "^3.8.17",
"@react-spectrum/accordion": "^3.0.0-alpha.35",
"@react-spectrum/actionbar": "^3.6.1",
"@react-spectrum/actiongroup": "^3.10.9",
"@react-spectrum/avatar": "^3.0.16",
Expand Down
2 changes: 2 additions & 0 deletions packages/@adobe/react-spectrum/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import 'client-only';
export {ActionGroup} from '@react-spectrum/actiongroup';
export {Badge} from '@react-spectrum/badge';
export {Breadcrumbs} from '@react-spectrum/breadcrumbs';
export {Accordion, Disclosure, DisclosurePanel, DisclosureHeader} from '@react-spectrum/accordion';
export {ActionBar, ActionBarContainer} from '@react-spectrum/actionbar';
export {ActionButton, Button, LogicButton, ToggleButton} from '@react-spectrum/button';
export {Avatar} from '@react-spectrum/avatar';
Expand Down Expand Up @@ -122,3 +123,4 @@ export type {DateFormatter, DateFormatterOptions, Filter, FormatMessage, Locale,
export type {SSRProviderProps} from '@react-aria/ssr';
export type {DirectoryDropItem, DragAndDropHooks, DragAndDropOptions, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionStartEvent, DragPreviewRenderer, DragTypes, DropItem, DropOperation, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DroppableCollectionRootDropEvent, DropPosition, DropTarget, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem} from '@react-spectrum/dnd';
export type {Key, Selection, ItemProps, SectionProps, RouterConfig} from '@react-types/shared';
export type {SpectrumAccordionProps, SpectrumDisclosureProps, SpectrumDisclosurePanelProps, SpectrumDisclosureHeaderProps} from '@react-spectrum/accordion';
2 changes: 2 additions & 0 deletions packages/react-aria/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"dependencies": {
"@internationalized/string": "^3.2.4",
"@react-aria/accordion": "^3.0.0-alpha.35",
"@react-aria/breadcrumbs": "^3.5.18",
"@react-aria/button": "^3.10.1",
"@react-aria/calendar": "^3.5.13",
Expand All @@ -46,6 +47,7 @@
"@react-aria/combobox": "^3.10.5",
"@react-aria/datepicker": "^3.11.4",
"@react-aria/dialog": "^3.5.19",
"@react-aria/disclosure": "^3.0.0-alpha.1",
"@react-aria/dnd": "^3.7.4",
"@react-aria/focus": "^3.18.4",
"@react-aria/gridlist": "^3.9.5",
Expand Down
4 changes: 4 additions & 0 deletions packages/react-aria/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* governing permissions and limitations under the License.
*/

export {useAccordionItem, useAccordion} from '@react-aria/accordion';
export {useBreadcrumbItem, useBreadcrumbs} from '@react-aria/breadcrumbs';
export {useButton, useToggleButton} from '@react-aria/button';
export {useCalendar, useCalendarCell, useCalendarGrid, useRangeCalendar} from '@react-aria/calendar';
Expand All @@ -18,6 +19,7 @@ export {useColorArea, useColorChannelField, useColorField, useColorSlider, useCo
export {useComboBox} from '@react-aria/combobox';
export {useDateField, useDatePicker, useDateRangePicker, useDateSegment, useTimeField} from '@react-aria/datepicker';
export {useDialog} from '@react-aria/dialog';
export {useDisclosure} from '@react-aria/disclosure';
export {useDrag, useDrop, useDraggableCollection, useDroppableCollection, useDroppableItem, useDropIndicator, useDraggableItem, useClipboard, DragPreview, ListDropTargetDelegate, DIRECTORY_DRAG_TYPE, isDirectoryDropItem, isFileDropItem, isTextDropItem} from '@react-aria/dnd';
export {FocusRing, FocusScope, useFocusManager, useFocusRing, useFocusable} from '@react-aria/focus';
export {I18nProvider, useCollator, useDateFormatter, useFilter, useLocale, useLocalizedStringFormatter, useMessageFormatter, useNumberFormatter} from '@react-aria/i18n';
Expand Down Expand Up @@ -47,6 +49,7 @@ export {useTooltip, useTooltipTrigger} from '@react-aria/tooltip';
export {chain, mergeProps, useId, useObjectRef, RouterProvider} from '@react-aria/utils';
export {VisuallyHidden, useVisuallyHidden} from '@react-aria/visually-hidden';

export type {AriaAccordionProps, AccordionAria, AccordionItemAria, AccordionItemAriaProps} from '@react-aria/accordion';
export type {AriaBreadcrumbItemProps, AriaBreadcrumbsProps, BreadcrumbItemAria, BreadcrumbsAria} from '@react-aria/breadcrumbs';
export type {AriaButtonOptions, AriaButtonProps, AriaToggleButtonProps, ButtonAria} from '@react-aria/button';
export type {AriaCalendarCellProps, AriaCalendarGridProps, AriaCalendarProps, AriaRangeCalendarProps, CalendarAria, CalendarCellAria, CalendarGridAria, CalendarProps, RangeCalendarProps} from '@react-aria/calendar';
Expand All @@ -55,6 +58,7 @@ export type {AriaColorAreaOptions, AriaColorChannelFieldProps, AriaColorFieldPro
export type {AriaComboBoxOptions, AriaComboBoxProps, ComboBoxAria} from '@react-aria/combobox';
export type {AriaDateFieldProps, AriaDatePickerProps, AriaDateRangePickerProps, AriaTimeFieldProps, DateFieldAria, DatePickerAria, DateRangePickerAria, DateSegmentAria, DateRange, DateValue, TimeValue} from '@react-aria/datepicker';
export type {AriaDialogProps, DialogAria} from '@react-aria/dialog';
export type {DisclosureAria, AriaDisclosureProps} from '@react-aria/disclosure';
export type {AriaFocusRingProps, FocusableAria, FocusableOptions, FocusManager, FocusManagerOptions, FocusRingAria, FocusRingProps, FocusScopeProps} from '@react-aria/focus';
export type {DateFormatter, DateFormatterOptions, Filter, FormatMessage, I18nProviderProps, Locale, LocalizedStringFormatter, LocalizedStrings} from '@react-aria/i18n';
export type {ClipboardProps, ClipboardResult, DirectoryDropItem, DragEndEvent, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionOptions, DraggableCollectionStartEvent, DraggableItemProps, DraggableItemResult, DragItem, DragMoveEvent, DragOptions, DragPreviewProps, DragPreviewRenderer, DragResult, DragStartEvent, DragTypes, DropEnterEvent, DropEvent, DropExitEvent, DropIndicatorAria, DropIndicatorProps, DropItem, DropMoveEvent, DropOperation, DropOptions, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionOptions, DroppableCollectionReorderEvent, DroppableCollectionResult, DroppableCollectionRootDropEvent, DroppableItemOptions, DroppableItemResult, DropPosition, DropResult, DropTarget, DropTargetDelegate, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem} from '@react-aria/dnd';
Expand Down
9 changes: 6 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ __metadata:
"@react-aria/ssr": "npm:^3.9.6"
"@react-aria/utils": "npm:^3.25.3"
"@react-aria/visually-hidden": "npm:^3.8.17"
"@react-spectrum/accordion": "npm:^3.0.0-alpha.35"
"@react-spectrum/actionbar": "npm:^3.6.1"
"@react-spectrum/actiongroup": "npm:^3.10.9"
"@react-spectrum/avatar": "npm:^3.0.16"
Expand Down Expand Up @@ -5626,7 +5627,7 @@ __metadata:
languageName: node
linkType: hard

"@react-aria/accordion@npm:3.0.0-alpha.35, @react-aria/accordion@workspace:packages/@react-aria/accordion":
"@react-aria/accordion@npm:3.0.0-alpha.35, @react-aria/accordion@npm:^3.0.0-alpha.35, @react-aria/accordion@workspace:packages/@react-aria/accordion":
version: 0.0.0-use.local
resolution: "@react-aria/accordion@workspace:packages/@react-aria/accordion"
dependencies:
Expand Down Expand Up @@ -5869,7 +5870,7 @@ __metadata:
languageName: unknown
linkType: soft

"@react-aria/disclosure@npm:3.0.0-alpha.1, @react-aria/disclosure@workspace:packages/@react-aria/disclosure":
"@react-aria/disclosure@npm:3.0.0-alpha.1, @react-aria/disclosure@npm:^3.0.0-alpha.1, @react-aria/disclosure@workspace:packages/@react-aria/disclosure":
version: 0.0.0-use.local
resolution: "@react-aria/disclosure@workspace:packages/@react-aria/disclosure"
dependencies:
Expand Down Expand Up @@ -6600,7 +6601,7 @@ __metadata:
languageName: unknown
linkType: soft

"@react-spectrum/accordion@workspace:packages/@react-spectrum/accordion":
"@react-spectrum/accordion@npm:^3.0.0-alpha.35, @react-spectrum/accordion@workspace:packages/@react-spectrum/accordion":
version: 0.0.0-use.local
resolution: "@react-spectrum/accordion@workspace:packages/@react-spectrum/accordion"
dependencies:
Expand Down Expand Up @@ -29027,6 +29028,7 @@ __metadata:
"@babel/cli": "npm:^7.24.1"
"@babel/core": "npm:^7.24.3"
"@internationalized/string": "npm:^3.2.4"
"@react-aria/accordion": "npm:^3.0.0-alpha.35"
"@react-aria/breadcrumbs": "npm:^3.5.18"
"@react-aria/button": "npm:^3.10.1"
"@react-aria/calendar": "npm:^3.5.13"
Expand All @@ -29035,6 +29037,7 @@ __metadata:
"@react-aria/combobox": "npm:^3.10.5"
"@react-aria/datepicker": "npm:^3.11.4"
"@react-aria/dialog": "npm:^3.5.19"
"@react-aria/disclosure": "npm:^3.0.0-alpha.1"
"@react-aria/dnd": "npm:^3.7.4"
"@react-aria/focus": "npm:^3.18.4"
"@react-aria/gridlist": "npm:^3.9.5"
Expand Down

1 comment on commit e92ccd7

@rspbot
Copy link

@rspbot rspbot commented on e92ccd7 Oct 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.