diff --git a/packages/@react-aria/color/src/index.ts b/packages/@react-aria/color/src/index.ts index 530b0d21c7d..8f65cf51bcb 100644 --- a/packages/@react-aria/color/src/index.ts +++ b/packages/@react-aria/color/src/index.ts @@ -18,7 +18,7 @@ export {useColorChannelField} from './useColorChannelField'; export type {AriaColorAreaOptions, ColorAreaAria} from './useColorArea'; export type {AriaColorSliderOptions, ColorSliderAria} from './useColorSlider'; export type {AriaColorWheelOptions, ColorWheelAria} from './useColorWheel'; -export type {AriaColorFieldProps} from '@react-types/color'; +export type {AriaColorAreaProps, AriaColorFieldProps, AriaColorSliderProps} from '@react-types/color'; export type {ColorFieldAria} from './useColorField'; export type {AriaColorSwatchProps, ColorSwatchAria} from './useColorSwatch'; export type {AriaColorChannelFieldProps, ColorChannelFieldAria} from './useColorChannelField'; diff --git a/packages/@react-spectrum/s2/package.json b/packages/@react-spectrum/s2/package.json index 140fc81b153..22f76ca3da0 100644 --- a/packages/@react-spectrum/s2/package.json +++ b/packages/@react-spectrum/s2/package.json @@ -134,13 +134,10 @@ "@react-aria/i18n": "^3.12.5", "@react-aria/interactions": "^3.23.0", "@react-aria/live-announcer": "^3.4.1", - "@react-aria/tree": "3.0.0-beta.3", "@react-aria/utils": "^3.27.0", "@react-spectrum/utils": "^3.12.1", "@react-stately/layout": "^4.1.1", "@react-stately/utils": "^3.10.5", - "@react-stately/virtualizer": "^4.2.1", - "@react-types/color": "^3.0.2", "@react-types/dialog": "^3.5.15", "@react-types/grid": "^3.2.11", "@react-types/provider": "^3.8.6", diff --git a/packages/@react-spectrum/s2/src/CardView.tsx b/packages/@react-spectrum/s2/src/CardView.tsx index 208166342a7..39e6800f4fc 100644 --- a/packages/@react-spectrum/s2/src/CardView.tsx +++ b/packages/@react-spectrum/s2/src/CardView.tsx @@ -16,6 +16,7 @@ import { GridLayout, GridListItem, GridListProps, + Size, Virtualizer, WaterfallLayout } from 'react-aria-components'; @@ -25,7 +26,6 @@ import {DOMRef, DOMRefValue, forwardRefType, Key, LoadingState} from '@react-typ import {focusRing, style} from '../style' with {type: 'macro'}; import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'}; import {ImageCoordinator} from './ImageCoordinator'; -import {Size} from '@react-stately/virtualizer'; import {useActionBarContainer} from './ActionBar'; import {useDOMRef} from '@react-spectrum/utils'; import {useEffectEvent, useLayoutEffect, useLoadMore, useResizeObserver} from '@react-aria/utils'; diff --git a/packages/@react-spectrum/s2/src/ColorSwatch.tsx b/packages/@react-spectrum/s2/src/ColorSwatch.tsx index 01d4affbf93..8ba5bdad466 100644 --- a/packages/@react-spectrum/s2/src/ColorSwatch.tsx +++ b/packages/@react-spectrum/s2/src/ColorSwatch.tsx @@ -13,10 +13,10 @@ import { ColorSwatch as AriaColorSwatch, ColorSwatchProps as AriaColorSwatchProps, + Color, ContextValue, parseColor } from 'react-aria-components'; -import {Color} from '@react-types/color'; import {createContext, forwardRef, JSX, ReactElement, useContext, useMemo} from 'react'; import {DOMRef, DOMRefValue} from '@react-types/shared'; import {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'}; diff --git a/packages/@react-spectrum/s2/src/ColorSwatchPicker.tsx b/packages/@react-spectrum/s2/src/ColorSwatchPicker.tsx index 4eeaad0fd4c..1b5b9c81680 100644 --- a/packages/@react-spectrum/s2/src/ColorSwatchPicker.tsx +++ b/packages/@react-spectrum/s2/src/ColorSwatchPicker.tsx @@ -10,8 +10,7 @@ * governing permissions and limitations under the License. */ -import {ColorSwatchPicker as AriaColorSwatchPicker, ColorSwatchPickerItem as AriaColorSwatchPickerItem, ContextValue, SlotProps} from 'react-aria-components'; -import {Color} from '@react-types/color'; +import {ColorSwatchPicker as AriaColorSwatchPicker, ColorSwatchPickerItem as AriaColorSwatchPickerItem, Color, ContextValue, SlotProps} from 'react-aria-components'; import {ColorSwatchProps, InternalColorSwatchContext} from './ColorSwatch'; import {createContext, forwardRef, ReactElement, ReactNode} from 'react'; import {DOMRef, DOMRefValue, ValueBase} from '@react-types/shared'; diff --git a/packages/@react-spectrum/s2/src/TableView.tsx b/packages/@react-spectrum/s2/src/TableView.tsx index 665e2b7d9cd..16db0821306 100644 --- a/packages/@react-spectrum/s2/src/TableView.tsx +++ b/packages/@react-spectrum/s2/src/TableView.tsx @@ -32,6 +32,7 @@ import { TableHeader as RACTableHeader, TableHeaderProps as RACTableHeaderProps, TableProps as RACTableProps, + Rect, ResizableTableContainer, RowRenderProps, TableBodyRenderProps, @@ -59,7 +60,6 @@ import Nubbin from '../ui-icons/S2_MoveHorizontalTableWidget.svg'; import {ProgressCircle} from './ProgressCircle'; import {raw} from '../style/style-macro' with {type: 'macro'}; import React, {createContext, forwardRef, ReactElement, ReactNode, useCallback, useContext, useMemo, useRef, useState} from 'react'; -import {Rect} from '@react-stately/virtualizer'; import SortDownArrow from '../s2wf-icons/S2_Icon_SortDown_20_N.svg'; import SortUpArrow from '../s2wf-icons/S2_Icon_SortUp_20_N.svg'; import {useActionBarContainer} from './ActionBar'; diff --git a/packages/@react-stately/color/src/index.ts b/packages/@react-stately/color/src/index.ts index 5296aa77182..c07be85011e 100644 --- a/packages/@react-stately/color/src/index.ts +++ b/packages/@react-stately/color/src/index.ts @@ -25,5 +25,5 @@ export {useColorFieldState} from './useColorFieldState'; export {useColorChannelFieldState} from './useColorChannelFieldState'; export {useColorPickerState} from './useColorPickerState'; -export type {Color, ColorAreaProps, ColorFieldProps, ColorWheelProps} from '@react-types/color'; +export type {Color, ColorChannel, ColorFormat, ColorSpace, ColorAreaProps, ColorFieldProps, ColorWheelProps} from '@react-types/color'; export type {ColorSliderStateOptions} from './useColorSliderState'; diff --git a/packages/react-aria-components/package.json b/packages/react-aria-components/package.json index 4ecb679c93c..776e4dc11f4 100644 --- a/packages/react-aria-components/package.json +++ b/packages/react-aria-components/package.json @@ -41,27 +41,19 @@ "@internationalized/string": "^3.2.5", "@react-aria/autocomplete": "3.0.0-alpha.37", "@react-aria/collections": "3.0.0-alpha.7", - "@react-aria/color": "^3.0.3", - "@react-aria/disclosure": "^3.0.1", "@react-aria/dnd": "^3.8.1", "@react-aria/focus": "^3.19.1", "@react-aria/interactions": "^3.23.0", "@react-aria/live-announcer": "^3.4.1", - "@react-aria/menu": "^3.17.0", "@react-aria/toolbar": "3.0.0-beta.12", "@react-aria/utils": "^3.27.0", "@react-aria/virtualizer": "^4.1.1", "@react-stately/autocomplete": "3.0.0-alpha.0", - "@react-stately/color": "^3.8.2", - "@react-stately/disclosure": "^3.0.1", "@react-stately/layout": "^4.1.1", - "@react-stately/menu": "^3.9.1", "@react-stately/selection": "^3.19.0", "@react-stately/table": "^3.13.1", - "@react-stately/toast": "3.0.0-beta.7", "@react-stately/utils": "^3.10.5", "@react-stately/virtualizer": "^4.2.1", - "@react-types/color": "^3.0.2", "@react-types/form": "^3.7.9", "@react-types/grid": "^3.2.11", "@react-types/shared": "^3.27.0", diff --git a/packages/react-aria-components/src/ColorArea.tsx b/packages/react-aria-components/src/ColorArea.tsx index 0e5ecf52318..52b23c85621 100644 --- a/packages/react-aria-components/src/ColorArea.tsx +++ b/packages/react-aria-components/src/ColorArea.tsx @@ -1,11 +1,10 @@ -import {AriaColorAreaProps} from '@react-types/color'; +import {AriaColorAreaProps, useColorArea} from 'react-aria'; import {ColorAreaContext} from './RSPContexts'; -import {ColorAreaState, useColorAreaState} from '@react-stately/color'; +import {ColorAreaState, useColorAreaState} from 'react-stately'; import {filterDOMProps} from '@react-aria/utils'; import {InternalColorThumbContext} from './ColorThumb'; import {Provider, RenderProps, SlotProps, useContextProps, useRenderProps} from './utils'; import React, {createContext, ForwardedRef, forwardRef, useRef} from 'react'; -import {useColorArea} from '@react-aria/color'; export interface ColorAreaRenderProps { /** diff --git a/packages/react-aria-components/src/ColorField.tsx b/packages/react-aria-components/src/ColorField.tsx index 9d304e35715..7ac9326601a 100644 --- a/packages/react-aria-components/src/ColorField.tsx +++ b/packages/react-aria-components/src/ColorField.tsx @@ -10,10 +10,9 @@ * governing permissions and limitations under the License. */ -import {AriaColorFieldProps, useColorChannelField, useColorField} from '@react-aria/color'; -import {ColorChannel, ColorSpace} from '@react-types/color'; +import {AriaColorFieldProps, useColorChannelField, useColorField, useLocale} from 'react-aria'; +import {ColorChannel, ColorFieldState, ColorSpace, useColorChannelFieldState, useColorFieldState} from 'react-stately'; import {ColorFieldContext} from './RSPContexts'; -import {ColorFieldState, useColorChannelFieldState, useColorFieldState} from '@react-stately/color'; import {FieldErrorContext} from './FieldError'; import {filterDOMProps} from '@react-aria/utils'; import {InputContext} from './Input'; @@ -22,7 +21,6 @@ import {LabelContext} from './Label'; import {Provider, RACValidation, removeDataAttributes, RenderProps, SlotProps, useContextProps, useRenderProps, useSlot} from './utils'; import React, {createContext, ForwardedRef, forwardRef, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, Ref, useRef} from 'react'; import {TextContext} from './Text'; -import {useLocale} from 'react-aria'; export interface ColorFieldRenderProps { /** diff --git a/packages/react-aria-components/src/ColorPicker.tsx b/packages/react-aria-components/src/ColorPicker.tsx index 40394d7cb82..59208f65fbd 100644 --- a/packages/react-aria-components/src/ColorPicker.tsx +++ b/packages/react-aria-components/src/ColorPicker.tsx @@ -10,9 +10,8 @@ * governing permissions and limitations under the License. */ -import {Color} from '@react-types/color'; +import {Color, ColorPickerState, ColorPickerProps as StatelyColorPickerProps, useColorPickerState} from 'react-stately'; import {ColorAreaContext, ColorFieldContext, ColorSliderContext, ColorWheelContext} from './RSPContexts'; -import {ColorPickerState, ColorPickerProps as StatelyColorPickerProps, useColorPickerState} from '@react-stately/color'; import {ColorSwatchContext} from './ColorSwatch'; import {ColorSwatchPickerContext} from './ColorSwatchPicker'; import {mergeProps} from 'react-aria'; diff --git a/packages/react-aria-components/src/ColorSlider.tsx b/packages/react-aria-components/src/ColorSlider.tsx index 9cd774debf8..9b2924a5c64 100644 --- a/packages/react-aria-components/src/ColorSlider.tsx +++ b/packages/react-aria-components/src/ColorSlider.tsx @@ -1,14 +1,12 @@ -import {AriaColorSliderProps} from '@react-types/color'; +import {AriaColorSliderProps, Orientation, useColorSlider, useLocale} from 'react-aria'; import {ColorSliderContext} from './RSPContexts'; -import {ColorSliderState, useColorSliderState} from '@react-stately/color'; +import {ColorSliderState, useColorSliderState} from 'react-stately'; import {filterDOMProps} from '@react-aria/utils'; import {InternalColorThumbContext} from './ColorThumb'; import {LabelContext} from './Label'; -import {Orientation, useLocale} from 'react-aria'; import {Provider, RenderProps, SlotProps, useContextProps, useRenderProps, useSlot} from './utils'; import React, {createContext, ForwardedRef, forwardRef} from 'react'; import {SliderOutputContext, SliderStateContext, SliderTrackContext} from './Slider'; -import {useColorSlider} from '@react-aria/color'; export interface ColorSliderRenderProps { /** diff --git a/packages/react-aria-components/src/ColorSwatch.tsx b/packages/react-aria-components/src/ColorSwatch.tsx index 76bd8f80543..a19eb138502 100644 --- a/packages/react-aria-components/src/ColorSwatch.tsx +++ b/packages/react-aria-components/src/ColorSwatch.tsx @@ -1,5 +1,5 @@ -import {AriaColorSwatchProps, useColorSwatch} from '@react-aria/color'; -import {Color} from '@react-types/color'; +import {AriaColorSwatchProps, useColorSwatch} from 'react-aria'; +import {Color} from 'react-stately'; import {ContextValue, SlotProps, StyleRenderProps, useContextProps, useRenderProps} from './utils'; import React, {createContext, ForwardedRef, forwardRef} from 'react'; diff --git a/packages/react-aria-components/src/ColorSwatchPicker.tsx b/packages/react-aria-components/src/ColorSwatchPicker.tsx index f421f84b2ea..3df54e518e6 100644 --- a/packages/react-aria-components/src/ColorSwatchPicker.tsx +++ b/packages/react-aria-components/src/ColorSwatchPicker.tsx @@ -1,5 +1,5 @@ import {AriaLabelingProps, HoverEvents, ValueBase} from '@react-types/shared'; -import {Color, parseColor, useColorPickerState} from '@react-stately/color'; +import {Color, parseColor, useColorPickerState} from 'react-stately'; import {ColorSwatchContext} from './ColorSwatch'; import {composeRenderProps, ContextValue, RenderProps, StyleRenderProps, useContextProps} from './utils'; import {filterDOMProps} from '@react-aria/utils'; diff --git a/packages/react-aria-components/src/ColorThumb.tsx b/packages/react-aria-components/src/ColorThumb.tsx index e5123808be2..b33b07b912b 100644 --- a/packages/react-aria-components/src/ColorThumb.tsx +++ b/packages/react-aria-components/src/ColorThumb.tsx @@ -1,11 +1,9 @@ -import {Color} from '@react-types/color'; +import {Color} from 'react-stately'; import {filterDOMProps} from '@react-aria/utils'; import {HoverEvents, RefObject} from '@react-types/shared'; -import {mergeProps} from 'react-aria'; +import {mergeProps, useFocusRing, useHover} from 'react-aria'; import React, {createContext, ForwardedRef, forwardRef, HTMLAttributes, InputHTMLAttributes, useContext} from 'react'; import {RenderProps, useRenderProps} from './utils'; -import {useFocusRing} from '@react-aria/focus'; -import {useHover} from '@react-aria/interactions'; interface ColorState { getDisplayColor(): Color, diff --git a/packages/react-aria-components/src/ColorWheel.tsx b/packages/react-aria-components/src/ColorWheel.tsx index a4eccecfbd5..4ec6a0dc33c 100644 --- a/packages/react-aria-components/src/ColorWheel.tsx +++ b/packages/react-aria-components/src/ColorWheel.tsx @@ -1,6 +1,6 @@ -import {AriaColorWheelOptions, useColorWheel} from '@react-aria/color'; +import {AriaColorWheelOptions, useColorWheel} from 'react-aria'; import {ColorWheelContext} from './RSPContexts'; -import {ColorWheelState, useColorWheelState} from '@react-stately/color'; +import {ColorWheelState, useColorWheelState} from 'react-stately'; import {ContextValue, Provider, RenderProps, SlotProps, StyleRenderProps, useContextProps, useRenderProps} from './utils'; import {filterDOMProps} from '@react-aria/utils'; import {InternalColorThumbContext} from './ColorThumb'; diff --git a/packages/react-aria-components/src/Disclosure.tsx b/packages/react-aria-components/src/Disclosure.tsx index 15bf3bc6453..392bf517d31 100644 --- a/packages/react-aria-components/src/Disclosure.tsx +++ b/packages/react-aria-components/src/Disclosure.tsx @@ -10,14 +10,13 @@ * governing permissions and limitations under the License. */ -import {AriaDisclosureProps, useDisclosure} from '@react-aria/disclosure'; +import {AriaDisclosureProps, useDisclosure, useFocusRing} from 'react-aria'; import {ButtonContext} from './Button'; import {ContextValue, DEFAULT_SLOT, Provider, RenderProps, SlotProps, useContextProps, useRenderProps} from './utils'; -import {DisclosureGroupState, DisclosureState, DisclosureGroupProps as StatelyDisclosureGroupProps, useDisclosureGroupState, useDisclosureState} from '@react-stately/disclosure'; +import {DisclosureGroupState, DisclosureState, DisclosureGroupProps as StatelyDisclosureGroupProps, useDisclosureGroupState, useDisclosureState} from 'react-stately'; import {DOMProps, forwardRefType, Key} from '@react-types/shared'; import {filterDOMProps, mergeProps, mergeRefs, useId} from '@react-aria/utils'; import React, {createContext, DOMAttributes, ForwardedRef, forwardRef, ReactNode, useContext} from 'react'; -import {useFocusRing} from 'react-aria'; export interface DisclosureGroupProps extends StatelyDisclosureGroupProps, RenderProps, DOMProps {} diff --git a/packages/react-aria-components/src/Menu.tsx b/packages/react-aria-components/src/Menu.tsx index 5e72adbbf2f..d51042ce3de 100644 --- a/packages/react-aria-components/src/Menu.tsx +++ b/packages/react-aria-components/src/Menu.tsx @@ -10,9 +10,9 @@ * governing permissions and limitations under the License. */ -import {AriaMenuProps, FocusScope, mergeProps, useMenu, useMenuItem, useMenuSection, useMenuTrigger} from 'react-aria'; +import {AriaMenuProps, FocusScope, mergeProps, useHover, useMenu, useMenuItem, useMenuSection, useMenuTrigger, useSubmenuTrigger} from 'react-aria'; import {BaseCollection, Collection, CollectionBuilder, createBranchComponent, createLeafComponent} from '@react-aria/collections'; -import {MenuTriggerProps as BaseMenuTriggerProps, Collection as ICollection, Node, TreeState, useMenuTriggerState, useTreeState} from 'react-stately'; +import {MenuTriggerProps as BaseMenuTriggerProps, Collection as ICollection, Node, RootMenuTriggerState, TreeState, useMenuTriggerState, useSubmenuTriggerState, useTreeState} from 'react-stately'; import {CollectionProps, CollectionRendererContext, ItemRenderProps, SectionContext, SectionProps, usePersistedKeys} from './Collection'; import {ContextValue, DEFAULT_SLOT, Provider, RenderProps, ScrollableProps, SlotProps, StyleRenderProps, useContextProps, useRenderProps, useSlot, useSlottedContext} from './utils'; import {filterDOMProps, mergeRefs, useObjectRef, useResizeObserver} from '@react-aria/utils'; @@ -22,7 +22,7 @@ import {KeyboardContext} from './Keyboard'; import {MultipleSelectionState, SelectionManager, useMultipleSelectionState} from '@react-stately/selection'; import {OverlayTriggerStateContext} from './Dialog'; import {PopoverContext} from './Popover'; -import {PressResponder, useHover} from '@react-aria/interactions'; +import {PressResponder} from '@react-aria/interactions'; import React, { createContext, ForwardedRef, @@ -36,11 +36,9 @@ import React, { useRef, useState } from 'react'; -import {RootMenuTriggerState, useSubmenuTriggerState} from '@react-stately/menu'; import {SeparatorContext} from './Separator'; import {TextContext} from './Text'; import {UNSTABLE_InternalAutocompleteContext} from './Autocomplete'; -import {useSubmenuTrigger} from '@react-aria/menu'; export const MenuContext = createContext, HTMLDivElement>>(null); export const MenuStateContext = createContext | null>(null); diff --git a/packages/react-aria-components/src/Toast.tsx b/packages/react-aria-components/src/Toast.tsx index c175122e39f..527de1cb623 100644 --- a/packages/react-aria-components/src/Toast.tsx +++ b/packages/react-aria-components/src/Toast.tsx @@ -15,7 +15,7 @@ import {ButtonContext} from './Button'; import {ContextValue, DEFAULT_SLOT, Provider, RenderProps, StyleRenderProps, useContextProps, useRenderProps} from './utils'; import {createPortal} from 'react-dom'; import {forwardRefType} from '@react-types/shared'; -import {QueuedToast, ToastQueue, ToastState, useToastQueue} from '@react-stately/toast'; +import {QueuedToast, ToastQueue, ToastState, useToastQueue} from 'react-stately'; import React, {createContext, ForwardedRef, forwardRef, HTMLAttributes, JSX, ReactElement, useContext} from 'react'; import {TextContext} from './Text'; import {useObjectRef} from '@react-aria/utils'; diff --git a/packages/react-aria-components/src/index.ts b/packages/react-aria-components/src/index.ts index 7cd1f120115..9dd980b876f 100644 --- a/packages/react-aria-components/src/index.ts +++ b/packages/react-aria-components/src/index.ts @@ -80,9 +80,7 @@ export {useDragAndDrop} from './useDragAndDrop'; export {DropIndicator, DropIndicatorContext, DragAndDropContext} from './DragAndDrop'; export {Virtualizer} from './Virtualizer'; export {DIRECTORY_DRAG_TYPE, isDirectoryDropItem, isFileDropItem, isTextDropItem, SSRProvider, RouterProvider, I18nProvider, useLocale, useFilter, Pressable, Focusable} from 'react-aria'; -export {FormValidationContext} from 'react-stately'; -export {parseColor, getColorChannels} from '@react-stately/color'; -export {ToastQueue as UNSTABLE_ToastQueue} from '@react-stately/toast'; +export {FormValidationContext, parseColor, getColorChannels, ToastQueue as UNSTABLE_ToastQueue} from 'react-stately'; export {ListLayout, GridLayout, WaterfallLayout} from '@react-stately/layout'; export {Layout, LayoutInfo, Size, Rect, Point} from '@react-stately/virtualizer'; @@ -136,7 +134,6 @@ export type {TextAreaProps} from './TextArea'; export type {TextFieldProps, TextFieldRenderProps} from './TextField'; export type {TextProps} from './Text'; export type {ToastRegionProps, ToastRegionRenderProps, ToastProps, ToastRenderProps} from './Toast'; -export type {ToastOptions} from '@react-stately/toast'; export type {ToggleButtonProps, ToggleButtonRenderProps} from './ToggleButton'; export type {ToggleButtonGroupProps, ToggleButtonGroupRenderProps} from './ToggleButtonGroup'; export type {ToolbarProps, ToolbarRenderProps} from './Toolbar'; @@ -149,7 +146,6 @@ export type {VirtualizerProps} from './Virtualizer'; export type {DateValue, DateRange, TimeValue} from 'react-aria'; export type {DirectoryDropItem, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionStartEvent, DragPreviewRenderer, DragTypes, DropItem, DropOperation, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DroppableCollectionRootDropEvent, DropPosition, DropTarget, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem, PressEvent} from 'react-aria'; -export type {Key, Selection, SortDescriptor, SortDirection, SelectionMode} from 'react-stately'; +export type {Color, ColorSpace, ColorFormat, Key, Selection, SortDescriptor, SortDirection, SelectionMode, ToastOptions} from 'react-stately'; export type {ValidationResult, RouterConfig} from '@react-types/shared'; -export type {Color, ColorSpace, ColorFormat} from '@react-types/color'; export type {ListLayoutOptions, GridLayoutOptions, WaterfallLayoutOptions} from '@react-stately/layout'; diff --git a/packages/react-aria-components/stories/ColorArea.stories.tsx b/packages/react-aria-components/stories/ColorArea.stories.tsx index e154b5e32a9..905754099d1 100644 --- a/packages/react-aria-components/stories/ColorArea.stories.tsx +++ b/packages/react-aria-components/stories/ColorArea.stories.tsx @@ -12,7 +12,7 @@ import {ColorArea, ColorThumb} from '../src'; import {ColorSliderExample} from './ColorSlider.stories'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from 'react-stately'; import React, {useState} from 'react'; export default { diff --git a/packages/react-aria-components/stories/ColorPicker.stories.tsx b/packages/react-aria-components/stories/ColorPicker.stories.tsx index ba747b73dd4..dba4bcd7767 100644 --- a/packages/react-aria-components/stories/ColorPicker.stories.tsx +++ b/packages/react-aria-components/stories/ColorPicker.stories.tsx @@ -10,14 +10,12 @@ * governing permissions and limitations under the License. */ -import {Button, ColorSwatchPicker, ColorSwatchPickerItem, Dialog, DialogTrigger, Input, Label, Popover} from '../src'; +import {Button, ColorSpace, ColorSwatchPicker, ColorSwatchPickerItem, Dialog, DialogTrigger, getColorChannels, Input, Label, Popover} from '../src'; import {ColorAreaExample} from './ColorArea.stories'; import {ColorField} from '../src/ColorField'; import {ColorPicker} from '../src/ColorPicker'; import {ColorSliderExample} from './ColorSlider.stories'; -import {ColorSpace} from '@react-types/color'; import {ColorSwatchExample} from './ColorSwatch.stories'; -import {getColorChannels} from '@react-stately/color'; import React, {useState} from 'react'; export default { diff --git a/packages/react-aria/src/index.ts b/packages/react-aria/src/index.ts index c70bf21500c..950fe587217 100644 --- a/packages/react-aria/src/index.ts +++ b/packages/react-aria/src/index.ts @@ -55,7 +55,7 @@ export type {AriaBreadcrumbItemProps, AriaBreadcrumbsProps, BreadcrumbItemAria, export type {AriaButtonOptions, AriaButtonProps, AriaToggleButtonProps, ButtonAria, AriaToggleButtonGroupProps, ToggleButtonGroupAria} from '@react-aria/button'; export type {AriaCalendarCellProps, AriaCalendarGridProps, AriaCalendarProps, AriaRangeCalendarProps, CalendarAria, CalendarCellAria, CalendarGridAria, CalendarProps, RangeCalendarProps} from '@react-aria/calendar'; export type {AriaCheckboxGroupItemProps, AriaCheckboxGroupProps, AriaCheckboxProps, CheckboxAria, CheckboxGroupAria} from '@react-aria/checkbox'; -export type {AriaColorAreaOptions, AriaColorChannelFieldProps, AriaColorFieldProps, AriaColorSliderOptions, AriaColorSwatchProps, AriaColorWheelOptions, ColorAreaAria, ColorChannelFieldAria, ColorFieldAria, ColorSliderAria, ColorSwatchAria, ColorWheelAria} from '@react-aria/color'; +export type {AriaColorAreaOptions, AriaColorAreaProps, AriaColorChannelFieldProps, AriaColorFieldProps, AriaColorSliderOptions, AriaColorSliderProps, AriaColorSwatchProps, AriaColorWheelOptions, ColorAreaAria, ColorChannelFieldAria, ColorFieldAria, ColorSliderAria, ColorSwatchAria, ColorWheelAria} from '@react-aria/color'; 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'; diff --git a/packages/react-stately/src/index.ts b/packages/react-stately/src/index.ts index 18c20215a14..e732d241e81 100644 --- a/packages/react-stately/src/index.ts +++ b/packages/react-stately/src/index.ts @@ -12,7 +12,7 @@ export type {CalendarState, CalendarStateOptions, RangeCalendarState, RangeCalendarStateOptions} from '@react-stately/calendar'; export type {CheckboxGroupProps, CheckboxGroupState} from '@react-stately/checkbox'; -export type {Color, ColorAreaProps, ColorAreaState, ColorChannelFieldProps, ColorChannelFieldState, ColorChannelFieldStateOptions, ColorFieldProps, ColorFieldState, ColorPickerProps, ColorPickerState, ColorSliderState, ColorSliderStateOptions, ColorWheelProps, ColorWheelState} from '@react-stately/color'; +export type {Color, ColorChannel, ColorFormat, ColorSpace, ColorAreaProps, ColorAreaState, ColorChannelFieldProps, ColorChannelFieldState, ColorChannelFieldStateOptions, ColorFieldProps, ColorFieldState, ColorPickerProps, ColorPickerState, ColorSliderState, ColorSliderStateOptions, ColorWheelProps, ColorWheelState} from '@react-stately/color'; export type {ComboBoxState, ComboBoxStateOptions} from '@react-stately/combobox'; export type {DateFieldState, DateFieldStateOptions, DatePickerState, DatePickerStateOptions, DateRangePickerState, DateRangePickerStateOptions, DateSegment, SegmentType as DateSegmentType, TimeFieldStateOptions, TimeFieldState} from '@react-stately/datepicker'; export type {DisclosureState, DisclosureProps, DisclosureGroupState, DisclosureGroupProps} from '@react-stately/disclosure'; diff --git a/yarn.lock b/yarn.lock index bf21ddbaa15..eb3624279a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7903,13 +7903,10 @@ __metadata: "@react-aria/interactions": "npm:^3.23.0" "@react-aria/live-announcer": "npm:^3.4.1" "@react-aria/test-utils": "npm:1.0.0-alpha.3" - "@react-aria/tree": "npm:3.0.0-beta.3" "@react-aria/utils": "npm:^3.27.0" "@react-spectrum/utils": "npm:^3.12.1" "@react-stately/layout": "npm:^4.1.1" "@react-stately/utils": "npm:^3.10.5" - "@react-stately/virtualizer": "npm:^4.2.1" - "@react-types/color": "npm:^3.0.2" "@react-types/dialog": "npm:^3.5.15" "@react-types/grid": "npm:^3.2.11" "@react-types/provider": "npm:^3.8.6" @@ -29023,27 +29020,19 @@ __metadata: "@internationalized/string": "npm:^3.2.5" "@react-aria/autocomplete": "npm:3.0.0-alpha.37" "@react-aria/collections": "npm:3.0.0-alpha.7" - "@react-aria/color": "npm:^3.0.3" - "@react-aria/disclosure": "npm:^3.0.1" "@react-aria/dnd": "npm:^3.8.1" "@react-aria/focus": "npm:^3.19.1" "@react-aria/interactions": "npm:^3.23.0" "@react-aria/live-announcer": "npm:^3.4.1" - "@react-aria/menu": "npm:^3.17.0" "@react-aria/toolbar": "npm:3.0.0-beta.12" "@react-aria/utils": "npm:^3.27.0" "@react-aria/virtualizer": "npm:^4.1.1" "@react-stately/autocomplete": "npm:3.0.0-alpha.0" - "@react-stately/color": "npm:^3.8.2" - "@react-stately/disclosure": "npm:^3.0.1" "@react-stately/layout": "npm:^4.1.1" - "@react-stately/menu": "npm:^3.9.1" "@react-stately/selection": "npm:^3.19.0" "@react-stately/table": "npm:^3.13.1" - "@react-stately/toast": "npm:3.0.0-beta.7" "@react-stately/utils": "npm:^3.10.5" "@react-stately/virtualizer": "npm:^4.2.1" - "@react-types/color": "npm:^3.0.2" "@react-types/form": "npm:^3.7.9" "@react-types/grid": "npm:^3.2.11" "@react-types/shared": "npm:^3.27.0"