diff --git a/examples/rsp-cra-18/src/App.tsx b/examples/rsp-cra-18/src/App.tsx index 0abebf7ad5d..6581d37397c 100644 --- a/examples/rsp-cra-18/src/App.tsx +++ b/examples/rsp-cra-18/src/App.tsx @@ -3,7 +3,7 @@ import {Provider, defaultTheme, Item, TagGroup, Cell, Column, Row, TableBody, Ta import Lighting from './Lighting'; import {useState} from 'react' import BodyContent from './BodyContent'; -import {enableTableNestedRows} from '@react-stately/flags'; +import {enableTableNestedRows} from '@react-stately-nutrient/flags'; import ButtonExamples from './sections/ButtonExamples'; import CollectionExamples from './sections/CollectionExamples'; import DateTimeExamples from './sections/DateTimeExamples'; diff --git a/examples/rsp-next-ts-17/pages/_app.tsx b/examples/rsp-next-ts-17/pages/_app.tsx index d5a7ef8d618..1f868542e32 100644 --- a/examples/rsp-next-ts-17/pages/_app.tsx +++ b/examples/rsp-next-ts-17/pages/_app.tsx @@ -14,7 +14,7 @@ import { useState } from "react"; import Moon from "@spectrum-icons/workflow/Moon"; import Light from "@spectrum-icons/workflow/Light"; import { ToastContainer } from "@react-spectrum/toast"; -import {enableTableNestedRows} from '@react-stately/flags'; +import {enableTableNestedRows} from '@react-stately-nutrient/flags'; function MyApp({ Component, pageProps }: AppProps) { const [theme, setTheme] = useState("light"); diff --git a/examples/rsp-next-ts/pages/_app.tsx b/examples/rsp-next-ts/pages/_app.tsx index d791494cdf9..e5888e8e5de 100644 --- a/examples/rsp-next-ts/pages/_app.tsx +++ b/examples/rsp-next-ts/pages/_app.tsx @@ -13,7 +13,7 @@ import { useState } from "react"; import Moon from "@spectrum-icons/workflow/Moon"; import Light from "@spectrum-icons/workflow/Light"; import { ToastContainer } from "@react-spectrum/toast"; -import {enableTableNestedRows} from '@react-stately/flags'; +import {enableTableNestedRows} from '@react-stately-nutrient/flags'; import {useRouter, type NextRouter} from 'next/router'; import Script from 'next/script'; diff --git a/examples/rsp-webpack-4/src/App.js b/examples/rsp-webpack-4/src/App.js index da8eca112de..6797051fc5c 100644 --- a/examples/rsp-webpack-4/src/App.js +++ b/examples/rsp-webpack-4/src/App.js @@ -3,7 +3,7 @@ import {Provider, defaultTheme, Item, TagGroup, Cell, Column, InlineAlert, Row, import Lighting from './Lighting'; import {useState} from 'react' import BodyContent from './BodyContent'; -import {enableTableNestedRows} from '@react-stately/flags'; +import {enableTableNestedRows} from '@react-stately-nutrient/flags'; let columns = [ {name: 'Foo', key: 'foo'}, diff --git a/packages/@adobe/react-spectrum/package.json b/packages/@adobe/react-spectrum/package.json index 60481d68012..576670ac422 100644 --- a/packages/@adobe/react-spectrum/package.json +++ b/packages/@adobe/react-spectrum/package.json @@ -97,8 +97,8 @@ "@react-spectrum/tree": "^3.0.1", "@react-spectrum/view": "^3.6.17", "@react-spectrum/well": "^3.4.21", - "@react-stately/collections": "^3.12.2", - "@react-stately/data": "^3.12.2", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/data": "^3.12.2", "@react-types/shared": "^3.28.0", "client-only": "^0.0.1" }, diff --git a/packages/@adobe/react-spectrum/src/index.ts b/packages/@adobe/react-spectrum/src/index.ts index c88c97e5a30..df213ed5466 100644 --- a/packages/@adobe/react-spectrum/src/index.ts +++ b/packages/@adobe/react-spectrum/src/index.ts @@ -66,8 +66,8 @@ export {Tooltip, TooltipTrigger} from '@react-spectrum/tooltip'; export {TreeView, TreeViewItem, TreeViewItemContent} from '@react-spectrum/tree'; export {Content, Footer, Header, View} from '@react-spectrum/view'; export {Well} from '@react-spectrum/well'; -export {Item, Section} from '@react-stately/collections'; -export {useAsyncList, useListData, useTreeData} from '@react-stately/data'; +export {Item, Section} from '@react-stately-nutrient/collections'; +export {useAsyncList, useListData, useTreeData} from '@react-stately-nutrient/data'; export {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; export {useCollator, useDateFormatter, useFilter, useLocale, useLocalizedStringFormatter, useMessageFormatter, useNumberFormatter} from '@react-aria-nutrient/i18n'; export {SSRProvider} from '@react-aria-nutrient/ssr'; @@ -122,7 +122,7 @@ export type {SpectrumTooltipProps, SpectrumTooltipTriggerProps} from '@react-spe export type {SpectrumTreeViewProps, SpectrumTreeViewItemProps, SpectrumTreeViewItemContentProps} from '@react-spectrum/tree'; export type {ContentProps, FooterProps, HeaderProps, ViewProps} from '@react-spectrum/view'; export type {SpectrumWellProps} from '@react-spectrum/well'; -export type {AsyncListData, AsyncListOptions, ListData, ListOptions, TreeData, TreeOptions} from '@react-stately/data'; +export type {AsyncListData, AsyncListOptions, ListData, ListOptions, TreeData, TreeOptions} from '@react-stately-nutrient/data'; export type {VisuallyHiddenAria, VisuallyHiddenProps} from '@react-aria-nutrient/visually-hidden'; export type {DateFormatter, DateFormatterOptions, Filter, FormatMessage, Locale, LocalizedStrings} from '@react-aria-nutrient/i18n'; export type {SSRProviderProps} from '@react-aria-nutrient/ssr'; diff --git a/packages/@react-aria/actiongroup/package.json b/packages/@react-aria/actiongroup/package.json index 33e7032fbbb..9d5ff488adc 100644 --- a/packages/@react-aria/actiongroup/package.json +++ b/packages/@react-aria/actiongroup/package.json @@ -26,7 +26,7 @@ "@react-aria-nutrient/i18n": "^3.12.7", "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/list": "^3.12.0", + "@react-stately-nutrient/list": "^3.12.0", "@react-types/actiongroup": "^3.4.15", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/actiongroup/src/useActionGroup.ts b/packages/@react-aria/actiongroup/src/useActionGroup.ts index bbd3f959fea..3c676cdb33b 100644 --- a/packages/@react-aria/actiongroup/src/useActionGroup.ts +++ b/packages/@react-aria/actiongroup/src/useActionGroup.ts @@ -14,7 +14,7 @@ import {AriaActionGroupProps} from '@react-types/actiongroup'; import {createFocusManager} from '@react-aria-nutrient/focus'; import {DOMAttributes, FocusableElement, Orientation, RefObject} from '@react-types/shared'; import {filterDOMProps, useLayoutEffect} from '@react-aria-nutrient/utils'; -import {ListState} from '@react-stately/list'; +import {ListState} from '@react-stately-nutrient/list'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useState} from 'react'; diff --git a/packages/@react-aria/actiongroup/src/useActionGroupItem.ts b/packages/@react-aria/actiongroup/src/useActionGroupItem.ts index 9f773027f5d..f17f4aeba52 100644 --- a/packages/@react-aria/actiongroup/src/useActionGroupItem.ts +++ b/packages/@react-aria/actiongroup/src/useActionGroupItem.ts @@ -11,7 +11,7 @@ */ import {DOMAttributes, FocusableElement, Key, RefObject} from '@react-types/shared'; -import {ListState} from '@react-stately/list'; +import {ListState} from '@react-stately-nutrient/list'; import {mergeProps, useEffectEvent} from '@react-aria-nutrient/utils'; import {PressProps} from '@react-aria-nutrient/interactions'; import {useEffect} from 'react'; diff --git a/packages/@react-aria/actiongroup/test/useActionGroup.test.ts b/packages/@react-aria/actiongroup/test/useActionGroup.test.ts index 47ed9679fc7..670a7776c07 100644 --- a/packages/@react-aria/actiongroup/test/useActionGroup.test.ts +++ b/packages/@react-aria/actiongroup/test/useActionGroup.test.ts @@ -14,7 +14,7 @@ import {createRef} from 'react'; import {FocusableElement} from '@react-types/shared'; import {renderHook} from '@react-spectrum/test-utils-internal'; import {useActionGroup} from '../'; -import {useListState} from '@react-stately/list'; +import {useListState} from '@react-stately-nutrient/list'; describe('useActionGroup', function () { let renderActionGroupHook = (props) => { diff --git a/packages/@react-aria/autocomplete/docs/useAutocomplete.mdx b/packages/@react-aria/autocomplete/docs/useAutocomplete.mdx index b718cdfe0d2..852a687c9d5 100644 --- a/packages/@react-aria/autocomplete/docs/useAutocomplete.mdx +++ b/packages/@react-aria/autocomplete/docs/useAutocomplete.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/autocomplete'; import {FunctionAPI, HeaderInfo, InterfaceType, TypeContext, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/autocomplete/package.json'; -import statelyDocs from 'docs:@react-stately/autocomplete'; +import statelyDocs from 'docs:@react-stately-nutrient/autocomplete'; import {InlineAlert, Content, Heading} from '@adobe/react-spectrum'; --- @@ -56,7 +56,7 @@ to filter the collection. `useAutocomplete` handles exposing the correct ARIA at -State is managed by the hook from `@react-stately/autocomplete`. +State is managed by the hook from `@react-stately-nutrient/autocomplete`. The state object should be passed as an option to `useAutocomplete`. ## Internationalization diff --git a/packages/@react-aria/autocomplete/docs/useSearchAutocomplete.mdx b/packages/@react-aria/autocomplete/docs/useSearchAutocomplete.mdx index 68f14efc354..9d71955c452 100644 --- a/packages/@react-aria/autocomplete/docs/useSearchAutocomplete.mdx +++ b/packages/@react-aria/autocomplete/docs/useSearchAutocomplete.mdx @@ -16,8 +16,8 @@ import {FunctionAPI, HeaderInfo, InterfaceType, TypeContext, TypeLink, PageDescr import i18nDocs from 'docs:@react-aria-nutrient/i18n'; import overlaysDocs from 'docs:@react-aria-nutrient/overlays'; import packageData from '@react-aria-nutrient/autocomplete/package.json'; -import selectionDocs from 'docs:@react-stately/selection'; -import statelyDocs from 'docs:@react-stately/combobox'; +import selectionDocs from 'docs:@react-stately-nutrient/selection'; +import statelyDocs from 'docs:@react-stately-nutrient/combobox'; import Anatomy from './anatomy.svg'; import ChevronRight from '@spectrum-icons/workflow/ChevronRight'; import {ExampleCard} from '@react-spectrum/docs/src/ExampleCard'; @@ -83,7 +83,7 @@ with [useListBox](useListBox.html), which handles the implementation of the popu -State is managed by the hook from `@react-stately/combobox`. +State is managed by the hook from `@react-stately-nutrient/combobox`. The state object should be passed as an option to `useSearchAutocomplete`. If the search field does not have a visible label, an `aria-label` or `aria-labelledby` prop must be provided instead to @@ -96,7 +96,7 @@ navigation and other interactions. It does this using the from -`@react-stately/combobox` implements a JSX based interface for building collections instead. +`@react-stately-nutrient/combobox` implements a JSX based interface for building collections instead. See [Collection Components](/react-stately/collections.html) for more information, and [Collection Interface](/react-stately/Collection.html) for internal details. @@ -122,9 +122,9 @@ In addition, see [useListBox](useListBox.html) for examples of sections (option options. ```tsx example export=true -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {useButton} from '@react-aria-nutrient/button'; -import {useComboBoxState} from '@react-stately/combobox' +import {useComboBoxState} from '@react-stately-nutrient/combobox' import {useSearchAutocomplete} from '@react-aria-nutrient/autocomplete'; import {useFilter} from '@react-aria-nutrient/i18n'; @@ -543,7 +543,7 @@ and filtering of data from a server. You may additionally want to display a spin state to the user, or support features like infinite scroll to load more data. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; function AsyncLoadingExample() { let list = useAsyncList({ diff --git a/packages/@react-aria/autocomplete/package.json b/packages/@react-aria/autocomplete/package.json index 1d9be5b03eb..8e784a8a265 100644 --- a/packages/@react-aria/autocomplete/package.json +++ b/packages/@react-aria/autocomplete/package.json @@ -30,8 +30,8 @@ "@react-aria-nutrient/searchfield": "^3.8.2", "@react-aria-nutrient/textfield": "^3.17.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/autocomplete": "3.0.0-beta.0", - "@react-stately/combobox": "^3.10.3", + "@react-stately-nutrient/autocomplete": "3.0.0-beta.0", + "@react-stately-nutrient/combobox": "^3.10.3", "@react-types/autocomplete": "3.0.0-alpha.29", "@react-types/button": "^3.11.0", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/autocomplete/src/useAutocomplete.ts b/packages/@react-aria/autocomplete/src/useAutocomplete.ts index 81599038d11..3994b3ef4f9 100644 --- a/packages/@react-aria/autocomplete/src/useAutocomplete.ts +++ b/packages/@react-aria/autocomplete/src/useAutocomplete.ts @@ -12,7 +12,7 @@ import {AriaLabelingProps, BaseEvent, DOMProps, RefObject} from '@react-types/shared'; import {AriaTextFieldProps} from '@react-aria-nutrient/textfield'; -import {AutocompleteProps, AutocompleteState} from '@react-stately/autocomplete'; +import {AutocompleteProps, AutocompleteState} from '@react-stately-nutrient/autocomplete'; import {CLEAR_FOCUS_EVENT, FOCUS_EVENT, getActiveElement, getOwnerDocument, isCtrlKeyPressed, mergeProps, mergeRefs, useEffectEvent, useId, useLabels, useObjectRef} from '@react-aria-nutrient/utils'; import {dispatchVirtualBlur, dispatchVirtualFocus, moveVirtualFocus} from '@react-aria-nutrient/focus'; import {getInteractionModality} from '@react-aria-nutrient/interactions'; diff --git a/packages/@react-aria/autocomplete/src/useSearchAutocomplete.ts b/packages/@react-aria/autocomplete/src/useSearchAutocomplete.ts index 9f5f2ba96bf..42c2f6712ee 100644 --- a/packages/@react-aria/autocomplete/src/useSearchAutocomplete.ts +++ b/packages/@react-aria/autocomplete/src/useSearchAutocomplete.ts @@ -13,7 +13,7 @@ import {AriaButtonProps} from '@react-types/button'; import {AriaListBoxOptions} from '@react-aria-nutrient/listbox'; import {AriaSearchAutocompleteProps} from '@react-types/autocomplete'; -import {ComboBoxState} from '@react-stately/combobox'; +import {ComboBoxState} from '@react-stately-nutrient/combobox'; import {DOMAttributes, KeyboardDelegate, LayoutDelegate, RefObject, ValidationResult} from '@react-types/shared'; import {InputHTMLAttributes} from 'react'; import {mergeProps} from '@react-aria-nutrient/utils'; diff --git a/packages/@react-aria/autocomplete/test/useSearchAutocomplete.test.js b/packages/@react-aria/autocomplete/test/useSearchAutocomplete.test.js index 1ff0745bb64..8b0f3929586 100644 --- a/packages/@react-aria/autocomplete/test/useSearchAutocomplete.test.js +++ b/packages/@react-aria/autocomplete/test/useSearchAutocomplete.test.js @@ -10,10 +10,10 @@ * governing permissions and limitations under the License. */ -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; import {renderHook} from '@react-spectrum/test-utils-internal'; -import {useComboBoxState} from '@react-stately/combobox'; +import {useComboBoxState} from '@react-stately-nutrient/combobox'; import {useSearchAutocomplete} from '../'; describe('useSearchAutocomplete', function () { diff --git a/packages/@react-aria/button/docs/useToggleButton.mdx b/packages/@react-aria/button/docs/useToggleButton.mdx index 25cb267366b..b0ce1c30f41 100644 --- a/packages/@react-aria/button/docs/useToggleButton.mdx +++ b/packages/@react-aria/button/docs/useToggleButton.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/button'; -import statelyDocs from 'docs:@react-stately/toggle'; +import statelyDocs from 'docs:@react-stately-nutrient/toggle'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/button/package.json'; @@ -62,7 +62,7 @@ whether the user is currently pressing the button: Selection state is managed by the -hook in `@react-stately/toggle`. The state object should be passed as an option to `useToggleButton`. +hook in `@react-stately-nutrient/toggle`. The state object should be passed as an option to `useToggleButton`. If a visual label is not provided (e.g. an icon only button), then an `aria-label` or `aria-labelledby` prop must be passed to identify the button to assistive technology. @@ -80,7 +80,7 @@ In addition, the `isPressed` state is used to adjust the background to be darker ```tsx example export=true import {useRef} from 'react'; import {useToggleButton} from '@react-aria-nutrient/button'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; function ToggleButton(props) { let ref = useRef(null); diff --git a/packages/@react-aria/button/docs/useToggleButtonGroup.mdx b/packages/@react-aria/button/docs/useToggleButtonGroup.mdx index ff2993271cf..e4147df43a8 100644 --- a/packages/@react-aria/button/docs/useToggleButtonGroup.mdx +++ b/packages/@react-aria/button/docs/useToggleButtonGroup.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/button'; -import statelyDocs from 'docs:@react-stately/toggle'; +import statelyDocs from 'docs:@react-stately-nutrient/toggle'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/button/package.json'; @@ -66,7 +66,7 @@ A toggle button group consists of a set of toggle buttons, and coordinates the s Selection state is managed by the -hook in `@react-stately/toggle`. The state object should be passed as an option to `useToggleButtonGroup` +hook in `@react-stately-nutrient/toggle`. The state object should be passed as an option to `useToggleButtonGroup` and `useToggleButtonGroupItem`. **Note:** `useToggleButtonGroupItem` should only be used when it is contained within a toggle button group. For a @@ -76,9 +76,9 @@ standalone toggle button, use the [useToggleButton](useToggleButton.html) hook i ```tsx example export=true import type {AriaToggleButtonGroupProps, AriaToggleButtonGroupItemProps} from '@react-aria-nutrient/button'; -import type {ToggleGroupState} from '@react-stately/toggle'; +import type {ToggleGroupState} from '@react-stately-nutrient/toggle'; import {useToggleButtonGroup, useToggleButtonGroupItem} from '@react-aria-nutrient/button'; -import {useToggleGroupState} from '@react-stately/toggle'; +import {useToggleGroupState} from '@react-stately-nutrient/toggle'; interface ToggleButtonGroupProps extends AriaToggleButtonGroupProps { children: React.ReactNode diff --git a/packages/@react-aria/button/package.json b/packages/@react-aria/button/package.json index fd54bc139dc..b7c3c7f7977 100644 --- a/packages/@react-aria/button/package.json +++ b/packages/@react-aria/button/package.json @@ -25,7 +25,7 @@ "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/toolbar": "3.0.0-beta.14", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/toggle": "^3.8.2", + "@react-stately-nutrient/toggle": "^3.8.2", "@react-types/button": "^3.11.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/button/src/useToggleButton.ts b/packages/@react-aria/button/src/useToggleButton.ts index faf2446cc28..ba886bf3222 100644 --- a/packages/@react-aria/button/src/useToggleButton.ts +++ b/packages/@react-aria/button/src/useToggleButton.ts @@ -22,7 +22,7 @@ import {AriaToggleButtonProps} from '@react-types/button'; import {ButtonAria, useButton} from './useButton'; import {chain, mergeProps} from '@react-aria-nutrient/utils'; import {DOMAttributes} from '@react-types/shared'; -import {ToggleState} from '@react-stately/toggle'; +import {ToggleState} from '@react-stately-nutrient/toggle'; export interface AriaToggleButtonOptions extends Omit, 'children'> {} diff --git a/packages/@react-aria/button/src/useToggleButtonGroup.ts b/packages/@react-aria/button/src/useToggleButtonGroup.ts index ae4dc6be239..37132f01988 100644 --- a/packages/@react-aria/button/src/useToggleButtonGroup.ts +++ b/packages/@react-aria/button/src/useToggleButtonGroup.ts @@ -20,7 +20,7 @@ import { import {AriaLabelingProps, DOMAttributes, Orientation, RefObject} from '@react-types/shared'; import {AriaToggleButtonGroupItemProps} from '@react-types/button'; import {ToggleButtonAria, useToggleButton} from './useToggleButton'; -import {ToggleGroupProps, ToggleGroupState, ToggleState} from '@react-stately/toggle'; +import {ToggleGroupProps, ToggleGroupState, ToggleState} from '@react-stately-nutrient/toggle'; import {useToolbar} from '@react-aria-nutrient/toolbar'; export interface AriaToggleButtonGroupProps extends ToggleGroupProps, AriaLabelingProps { diff --git a/packages/@react-aria/calendar/docs/useCalendar.mdx b/packages/@react-aria/calendar/docs/useCalendar.mdx index 43b19bf5d40..4390107b6fb 100644 --- a/packages/@react-aria/calendar/docs/useCalendar.mdx +++ b/packages/@react-aria/calendar/docs/useCalendar.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/calendar'; -import statelyDocs from 'docs:@react-stately/calendar'; +import statelyDocs from 'docs:@react-stately-nutrient/calendar'; import i18nDocs from 'docs:@internationalized/date'; import {FunctionAPI, HeaderInfo, InterfaceType, TypeContext, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/calendar/package.json'; @@ -85,7 +85,7 @@ A calendar consists of a grouping element containing one or more date grids (e.g -State is managed by the hook from `@react-stately/calendar`. The state object should be passed as an option to `useCalendar`, `useCalendarGrid`, and `useCalendarCell`. +State is managed by the hook from `@react-stately-nutrient/calendar`. The state object should be passed as an option to `useCalendar`, `useCalendarGrid`, and `useCalendarCell`. Note that much of this anatomy is shared with [range calendars](useRangeCalendar.html). The only difference is that `useCalendarState` is used instead of `useRangeCalendarState`, and `useCalendar` is used instead of `useRangeCalendar`. @@ -104,7 +104,7 @@ A `Calendar` consists of three components: the main calendar wrapper element wit For simplicity, this example only displays a single month at a time. See the [styled examples](#styled-examples) section for more examples with multiple months, as well as other time ranges like weeks. ```tsx example render=false export=true -import {useCalendarState} from '@react-stately/calendar'; +import {useCalendarState} from '@react-stately-nutrient/calendar'; import {useCalendar} from '@react-aria-nutrient/calendar'; import {useLocale} from '@react-aria-nutrient/i18n'; import {createCalendar} from '@internationalized/date'; @@ -545,7 +545,7 @@ By default, this includes [all calendar systems](../internationalized/date/Calen For example, if your application only supports Gregorian dates, you could implement a `createCalendar` function like this: ```jsx -import {useCalendarState} from '@react-stately/datepicker'; +import {useCalendarState} from '@react-stately-nutrient/datepicker'; import {useLocale} from '@react-aria-nutrient/i18n'; import {GregorianCalendar} from '@internationalized/date'; diff --git a/packages/@react-aria/calendar/docs/useRangeCalendar.mdx b/packages/@react-aria/calendar/docs/useRangeCalendar.mdx index 3a4bf825222..2a711327abe 100644 --- a/packages/@react-aria/calendar/docs/useRangeCalendar.mdx +++ b/packages/@react-aria/calendar/docs/useRangeCalendar.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/calendar'; -import statelyDocs from 'docs:@react-stately/calendar'; +import statelyDocs from 'docs:@react-stately-nutrient/calendar'; import i18nDocs from 'docs:@internationalized/date'; import {FunctionAPI, HeaderInfo, InterfaceType, TypeContext, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/calendar/package.json'; @@ -84,7 +84,7 @@ A range calendar consists of a grouping element containing one or more date grid -State is managed by the hook from `@react-stately/calendar`. The state object should be passed as an option to `useRangeCalendar`, `useCalendarGrid`, and `useCalendarCell`. +State is managed by the hook from `@react-stately-nutrient/calendar`. The state object should be passed as an option to `useRangeCalendar`, `useCalendarGrid`, and `useCalendarCell`. Note that much of this anatomy is shared with [non-range calendars](useCalendar.html). The only difference is that `useRangeCalendarState` is used instead of `useCalendarState`, and `useRangeCalendar` is used instead of `useCalendar`. @@ -103,7 +103,7 @@ A `RangeCalendar` consists of three components: the main calendar wrapper elemen For simplicity, this example only displays a single month at a time. See the [styled examples](#styled-examples) section for more examples with multiple months, as well as other time ranges like weeks. ```tsx example render=false export=true -import {useRangeCalendarState} from '@react-stately/calendar'; +import {useRangeCalendarState} from '@react-stately-nutrient/calendar'; import {useRangeCalendar} from '@react-aria-nutrient/calendar'; import {useLocale} from '@react-aria-nutrient/i18n'; import {createCalendar} from '@internationalized/date'; @@ -564,7 +564,7 @@ By default, this includes [all calendar systems](../internationalized/date/Calen For example, if your application only supports Gregorian dates, you could implement a `createCalendar` function like this: ```jsx -import {useRangeCalendarState} from '@react-stately/datepicker'; +import {useRangeCalendarState} from '@react-stately-nutrient/datepicker'; import {useLocale} from '@react-aria-nutrient/i18n'; import {GregorianCalendar} from '@internationalized/date'; diff --git a/packages/@react-aria/calendar/package.json b/packages/@react-aria/calendar/package.json index 93b4fc3b772..56eb4f595e7 100644 --- a/packages/@react-aria/calendar/package.json +++ b/packages/@react-aria/calendar/package.json @@ -27,7 +27,7 @@ "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/live-announcer": "^3.4.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/calendar": "^3.7.1", + "@react-stately-nutrient/calendar": "^3.7.1", "@react-types/button": "^3.11.0", "@react-types/calendar": "^3.6.1", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/calendar/src/useCalendar.ts b/packages/@react-aria/calendar/src/useCalendar.ts index 40ac2395117..eb78be35a56 100644 --- a/packages/@react-aria/calendar/src/useCalendar.ts +++ b/packages/@react-aria/calendar/src/useCalendar.ts @@ -12,7 +12,7 @@ import {AriaCalendarProps, DateValue} from '@react-types/calendar'; import {CalendarAria, useCalendarBase} from './useCalendarBase'; -import {CalendarState} from '@react-stately/calendar'; +import {CalendarState} from '@react-stately-nutrient/calendar'; /** * Provides the behavior and accessibility implementation for a calendar component. diff --git a/packages/@react-aria/calendar/src/useCalendarBase.ts b/packages/@react-aria/calendar/src/useCalendarBase.ts index 1a7e775aa4e..455c394683b 100644 --- a/packages/@react-aria/calendar/src/useCalendarBase.ts +++ b/packages/@react-aria/calendar/src/useCalendarBase.ts @@ -14,7 +14,7 @@ import {announce} from '@react-aria-nutrient/live-announcer'; import {AriaButtonProps} from '@react-types/button'; import {AriaLabelingProps, DOMAttributes, DOMProps} from '@react-types/shared'; import {CalendarPropsBase} from '@react-types/calendar'; -import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; +import {CalendarState, RangeCalendarState} from '@react-stately-nutrient/calendar'; import {filterDOMProps, mergeProps, useLabels, useSlotId, useUpdateEffect} from '@react-aria-nutrient/utils'; import {hookData, useSelectedDateDescription, useVisibleRangeDescription} from './utils'; // @ts-ignore diff --git a/packages/@react-aria/calendar/src/useCalendarCell.ts b/packages/@react-aria/calendar/src/useCalendarCell.ts index f2f058885a8..136dd440e3c 100644 --- a/packages/@react-aria/calendar/src/useCalendarCell.ts +++ b/packages/@react-aria/calendar/src/useCalendarCell.ts @@ -11,7 +11,7 @@ */ import {CalendarDate, isEqualDay, isSameDay, isToday} from '@internationalized/date'; -import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; +import {CalendarState, RangeCalendarState} from '@react-stately-nutrient/calendar'; import {DOMAttributes, RefObject} from '@react-types/shared'; import {focusWithoutScrolling, getScrollParent, mergeProps, scrollIntoViewport, useDeepMemo, useDescription} from '@react-aria-nutrient/utils'; import {getEraFormat, hookData} from './utils'; diff --git a/packages/@react-aria/calendar/src/useCalendarGrid.ts b/packages/@react-aria/calendar/src/useCalendarGrid.ts index 08ae712df7e..909838d0f9b 100644 --- a/packages/@react-aria/calendar/src/useCalendarGrid.ts +++ b/packages/@react-aria/calendar/src/useCalendarGrid.ts @@ -11,7 +11,7 @@ */ import {CalendarDate, getWeeksInMonth, startOfWeek, today} from '@internationalized/date'; -import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; +import {CalendarState, RangeCalendarState} from '@react-stately-nutrient/calendar'; import {DOMAttributes} from '@react-types/shared'; import {hookData, useVisibleRangeDescription} from './utils'; import {KeyboardEvent, useMemo} from 'react'; diff --git a/packages/@react-aria/calendar/src/useRangeCalendar.ts b/packages/@react-aria/calendar/src/useRangeCalendar.ts index 8f80cda84c7..eeb9deaabf5 100644 --- a/packages/@react-aria/calendar/src/useRangeCalendar.ts +++ b/packages/@react-aria/calendar/src/useRangeCalendar.ts @@ -13,7 +13,7 @@ import {AriaRangeCalendarProps, DateValue} from '@react-types/calendar'; import {CalendarAria, useCalendarBase} from './useCalendarBase'; import {FocusableElement, RefObject} from '@react-types/shared'; -import {RangeCalendarState} from '@react-stately/calendar'; +import {RangeCalendarState} from '@react-stately-nutrient/calendar'; import {useEvent} from '@react-aria-nutrient/utils'; import {useRef} from 'react'; diff --git a/packages/@react-aria/calendar/src/utils.ts b/packages/@react-aria/calendar/src/utils.ts index 0c2e9a96fe6..d8b251568ab 100644 --- a/packages/@react-aria/calendar/src/utils.ts +++ b/packages/@react-aria/calendar/src/utils.ts @@ -11,7 +11,7 @@ */ import {CalendarDate, DateFormatter, endOfMonth, isSameDay, startOfMonth} from '@internationalized/date'; -import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; +import {CalendarState, RangeCalendarState} from '@react-stately-nutrient/calendar'; // @ts-ignore import intlMessages from '../intl/*.json'; import type {LocalizedStringFormatter} from '@internationalized/string'; diff --git a/packages/@react-aria/calendar/stories/Example.tsx b/packages/@react-aria/calendar/stories/Example.tsx index 1922dfe92a3..98536695cdc 100644 --- a/packages/@react-aria/calendar/stories/Example.tsx +++ b/packages/@react-aria/calendar/stories/Example.tsx @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ import {Button} from '@react-spectrum/button'; -import {CalendarState, RangeCalendarState, useCalendarState} from '@react-stately/calendar'; +import {CalendarState, RangeCalendarState, useCalendarState} from '@react-stately-nutrient/calendar'; import {createCalendar, DateDuration, startOfWeek} from '@internationalized/date'; import React, {ReactElement, useMemo, useRef} from 'react'; import {useCalendar, useCalendarCell, useCalendarGrid} from '../src'; diff --git a/packages/@react-aria/checkbox/docs/useCheckbox.mdx b/packages/@react-aria/checkbox/docs/useCheckbox.mdx index f73740f6cd3..ea8d8d0d110 100644 --- a/packages/@react-aria/checkbox/docs/useCheckbox.mdx +++ b/packages/@react-aria/checkbox/docs/useCheckbox.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/checkbox'; import hiddenDocs from 'docs:@react-aria-nutrient/visually-hidden'; import focusDocs from 'docs:@react-aria-nutrient/focus'; -import statelyDocs from 'docs:@react-stately/toggle'; +import statelyDocs from 'docs:@react-stately-nutrient/toggle'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/checkbox/package.json'; @@ -69,7 +69,7 @@ to toggle the selection state, or use the Tab key to naviga Selection state is managed by the -hook in `@react-stately/toggle`. The state object should be passed as an option to `useCheckbox`. +hook in `@react-stately-nutrient/toggle`. The state object should be passed as an option to `useCheckbox`. In most cases, checkboxes should have a visual label. If the checkbox does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify the element to assistive @@ -79,7 +79,7 @@ technology. ```tsx example import {useCheckbox} from '@react-aria-nutrient/checkbox'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; function Checkbox(props) { let {children} = props; diff --git a/packages/@react-aria/checkbox/docs/useCheckboxGroup.mdx b/packages/@react-aria/checkbox/docs/useCheckboxGroup.mdx index 6963effa4df..92a28758305 100644 --- a/packages/@react-aria/checkbox/docs/useCheckboxGroup.mdx +++ b/packages/@react-aria/checkbox/docs/useCheckboxGroup.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/checkbox'; import hiddenDocs from 'docs:@react-aria-nutrient/visually-hidden'; import focusDocs from 'docs:@react-aria-nutrient/focus'; -import statelyDocs from 'docs:@react-stately/checkbox'; +import statelyDocs from 'docs:@react-stately-nutrient/checkbox'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/checkbox/package.json'; @@ -82,7 +82,7 @@ onto the appropriate element: Selection state is managed by the -hook in `@react-stately/checkbox`. The state object should be passed as an option to `useCheckboxGroup` +hook in `@react-stately-nutrient/checkbox`. The state object should be passed as an option to `useCheckboxGroup` and `useCheckboxGroupItem`. Individual checkboxes must have a visual label. If the checkbox group does not have a visible label, @@ -100,7 +100,7 @@ for the checkbox. ```tsx example export=true import {useCheckboxGroup, useCheckboxGroupItem} from '@react-aria-nutrient/checkbox'; -import {useCheckboxGroupState} from '@react-stately/checkbox'; +import {useCheckboxGroupState} from '@react-stately-nutrient/checkbox'; let CheckboxGroupContext = React.createContext(null); diff --git a/packages/@react-aria/checkbox/package.json b/packages/@react-aria/checkbox/package.json index 87881b7fd92..7dcdffca8c9 100644 --- a/packages/@react-aria/checkbox/package.json +++ b/packages/@react-aria/checkbox/package.json @@ -27,9 +27,9 @@ "@react-aria-nutrient/label": "^3.7.16", "@react-aria-nutrient/toggle": "^3.11.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/checkbox": "^3.6.12", - "@react-stately/form": "^3.1.2", - "@react-stately/toggle": "^3.8.2", + "@react-stately-nutrient/checkbox": "^3.6.12", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/toggle": "^3.8.2", "@react-types/checkbox": "^3.9.2", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/checkbox/src/useCheckbox.ts b/packages/@react-aria/checkbox/src/useCheckbox.ts index e722d2bfb9b..afc85868167 100644 --- a/packages/@react-aria/checkbox/src/useCheckbox.ts +++ b/packages/@react-aria/checkbox/src/useCheckbox.ts @@ -13,9 +13,9 @@ import {AriaCheckboxProps} from '@react-types/checkbox'; import {InputHTMLAttributes, LabelHTMLAttributes, useEffect} from 'react'; import {mergeProps} from '@react-aria-nutrient/utils'; -import {privateValidationStateProp, useFormValidationState} from '@react-stately/form'; +import {privateValidationStateProp, useFormValidationState} from '@react-stately-nutrient/form'; import {RefObject, ValidationResult} from '@react-types/shared'; -import {ToggleState} from '@react-stately/toggle'; +import {ToggleState} from '@react-stately-nutrient/toggle'; import {useFormValidation} from '@react-aria-nutrient/form'; import {usePress} from '@react-aria-nutrient/interactions'; import {useToggle} from '@react-aria-nutrient/toggle'; diff --git a/packages/@react-aria/checkbox/src/useCheckboxGroup.ts b/packages/@react-aria/checkbox/src/useCheckboxGroup.ts index b9e88c68f8a..0e57188d8a8 100644 --- a/packages/@react-aria/checkbox/src/useCheckboxGroup.ts +++ b/packages/@react-aria/checkbox/src/useCheckboxGroup.ts @@ -12,7 +12,7 @@ import {AriaCheckboxGroupProps} from '@react-types/checkbox'; import {checkboxGroupData} from './utils'; -import {CheckboxGroupState} from '@react-stately/checkbox'; +import {CheckboxGroupState} from '@react-stately-nutrient/checkbox'; import {DOMAttributes, ValidationResult} from '@react-types/shared'; import {filterDOMProps, mergeProps} from '@react-aria-nutrient/utils'; import {useField} from '@react-aria-nutrient/label'; diff --git a/packages/@react-aria/checkbox/src/useCheckboxGroupItem.ts b/packages/@react-aria/checkbox/src/useCheckboxGroupItem.ts index 41a66b79a7d..ac428d902a4 100644 --- a/packages/@react-aria/checkbox/src/useCheckboxGroupItem.ts +++ b/packages/@react-aria/checkbox/src/useCheckboxGroupItem.ts @@ -13,11 +13,11 @@ import {AriaCheckboxGroupItemProps} from '@react-types/checkbox'; import {CheckboxAria, useCheckbox} from './useCheckbox'; import {checkboxGroupData} from './utils'; -import {CheckboxGroupState} from '@react-stately/checkbox'; -import {DEFAULT_VALIDATION_RESULT, privateValidationStateProp, useFormValidationState} from '@react-stately/form'; +import {CheckboxGroupState} from '@react-stately-nutrient/checkbox'; +import {DEFAULT_VALIDATION_RESULT, privateValidationStateProp, useFormValidationState} from '@react-stately-nutrient/form'; import {RefObject, ValidationResult} from '@react-types/shared'; import {useEffect, useRef} from 'react'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; /** * Provides the behavior and accessibility implementation for a checkbox component contained within a checkbox group. diff --git a/packages/@react-aria/checkbox/src/utils.ts b/packages/@react-aria/checkbox/src/utils.ts index 03a13138a63..1c518942506 100644 --- a/packages/@react-aria/checkbox/src/utils.ts +++ b/packages/@react-aria/checkbox/src/utils.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {CheckboxGroupState} from '@react-stately/checkbox'; +import {CheckboxGroupState} from '@react-stately-nutrient/checkbox'; interface CheckboxGroupData { name?: string, diff --git a/packages/@react-aria/checkbox/test/useCheckboxGroup.test.tsx b/packages/@react-aria/checkbox/test/useCheckboxGroup.test.tsx index 7d904b87cab..932644c18f6 100644 --- a/packages/@react-aria/checkbox/test/useCheckboxGroup.test.tsx +++ b/packages/@react-aria/checkbox/test/useCheckboxGroup.test.tsx @@ -11,7 +11,7 @@ */ import {AriaCheckboxGroupItemProps, AriaCheckboxGroupProps} from '@react-types/checkbox'; -import {CheckboxGroupState, useCheckboxGroupState} from '@react-stately/checkbox'; +import {CheckboxGroupState, useCheckboxGroupState} from '@react-stately-nutrient/checkbox'; import {pointerMap, render} from '@react-spectrum/test-utils-internal'; import React, {useRef} from 'react'; import {useCheckboxGroup, useCheckboxGroupItem} from '../'; diff --git a/packages/@react-aria/color/docs/useColorArea.mdx b/packages/@react-aria/color/docs/useColorArea.mdx index 1ab5e0a2941..bbb2ec4e7c3 100644 --- a/packages/@react-aria/color/docs/useColorArea.mdx +++ b/packages/@react-aria/color/docs/useColorArea.mdx @@ -12,7 +12,7 @@ export default Layout; import ChevronRight from '@spectrum-icons/workflow/ChevronRight'; import docs from 'docs:@react-aria-nutrient/color'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/color/package.json'; import Anatomy from './ColorAreaAnatomy.svg'; @@ -74,7 +74,7 @@ values to assistive technologies. State is managed by the -hook from `@react-stately/color`. The state object should be passed as an option to `useColorArea`. +hook from `@react-stately-nutrient/color`. The state object should be passed as an option to `useColorArea`. By default, `useColorArea` provides an `aria-label` for the localized string "Color Picker", which labels the visually hidden `` elements for the two color channels, or on mobile devices, @@ -94,7 +94,7 @@ from view. The thumb also uses the ```tsx example export=true import {useColorArea} from '@react-aria-nutrient/color'; -import {useColorAreaState} from '@react-stately/color'; +import {useColorAreaState} from '@react-stately-nutrient/color'; import {useFocusRing} from '@react-aria-nutrient/focus'; const SIZE = 192; @@ -187,7 +187,7 @@ like a color slider using the [useColorSlider](useColorSlider.html) hook or a co The `onChangeEnd` prop can be used to handle when a user stops dragging the color area. ```tsx example -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [ @@ -285,7 +285,7 @@ It is built using the [useColorSlider](useColorSlider.html) hook, and can be sha ```tsx example export=true render=false import {useColorSlider} from '@react-aria-nutrient/color'; - import {useColorSliderState} from '@react-stately/color'; + import {useColorSliderState} from '@react-stately-nutrient/color'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useFocusRing} from '@react-aria-nutrient/focus'; @@ -462,7 +462,7 @@ To get a localized channel name to use as a label, you can use the `color.getCha #### RGB ```tsx example -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [ @@ -524,7 +524,7 @@ function Example() { ``` #### HSL ```tsx example -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [ @@ -586,7 +586,7 @@ function Example() { ``` #### HSB ```tsx example -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [ diff --git a/packages/@react-aria/color/docs/useColorField.mdx b/packages/@react-aria/color/docs/useColorField.mdx index 806b25dab81..198a3e3427d 100644 --- a/packages/@react-aria/color/docs/useColorField.mdx +++ b/packages/@react-aria/color/docs/useColorField.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/color'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/color/package.json'; import Anatomy from './ColorFieldAnatomy.svg'; @@ -69,7 +69,7 @@ and the `aria-labelledby` attribute on the `` element. State is managed by the -hook from `@react-stately/color`. The state object should be passed as an option to `useColorField` +hook from `@react-stately-nutrient/color`. The state object should be passed as an option to `useColorField` If there is no visual label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify the element to screen readers. @@ -78,7 +78,7 @@ to identify the element to screen readers. ```tsx example export=true import {useColorField} from '@react-aria-nutrient/color'; -import {useColorFieldState} from '@react-stately/color'; +import {useColorFieldState} from '@react-stately-nutrient/color'; function ColorField(props) { let state = useColorFieldState(props); @@ -118,7 +118,7 @@ function is used to parse the initial color from a hex string, stored in state. are used to update the value in state when the edits the value. ```tsx example -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [color, setColor] = React.useState(parseColor('#7f007f')); diff --git a/packages/@react-aria/color/docs/useColorSlider.mdx b/packages/@react-aria/color/docs/useColorSlider.mdx index 203764bad02..7d25586a530 100644 --- a/packages/@react-aria/color/docs/useColorSlider.mdx +++ b/packages/@react-aria/color/docs/useColorSlider.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/color'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import typesDocs from 'docs:@react-types/color'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/color/package.json'; @@ -77,7 +77,7 @@ A visually hidden `` element is used to represent the value to assistive State is managed by the -hook from `@react-stately/color`. The state object should be passed as an option to `useColorSlider` +hook from `@react-stately-nutrient/color`. The state object should be passed as an option to `useColorSlider` By default, `useColorSlider` provides an `aria-label` for the localized color channel name. If you wish to display a visual label, or override this with a more specific label, a `label`, `aria-label` or `aria-labelledby` prop may be passed instead. @@ -97,7 +97,7 @@ The thumb also uses the [useFocusRing](useFocusRing.html) hook to grow in size w ```tsx example export=true import {useColorSlider} from '@react-aria-nutrient/color'; -import {useColorSliderState} from '@react-stately/color'; +import {useColorSliderState} from '@react-stately-nutrient/color'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useFocusRing} from '@react-aria-nutrient/focus'; @@ -244,7 +244,7 @@ function is used to parse the initial color from a hex value, stored in state. T of `ColorSlider` are used to make the sliders controlled, so that they all update when the color is modified. ```tsx example -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [color, setColor] = React.useState(parseColor('#7f007f')); diff --git a/packages/@react-aria/color/docs/useColorSwatch.mdx b/packages/@react-aria/color/docs/useColorSwatch.mdx index 397b64e283f..dba618fcf5a 100644 --- a/packages/@react-aria/color/docs/useColorSwatch.mdx +++ b/packages/@react-aria/color/docs/useColorSwatch.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/color'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/color/package.json'; @@ -88,7 +88,7 @@ The following examples show how to use the `ColorSwatch` component created in th ColorSwatch accepts a value via the `color` prop. The value should be a color string or object. This example uses the function to parse a color from an HSL string. ```tsx example -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; ``` diff --git a/packages/@react-aria/color/docs/useColorWheel.mdx b/packages/@react-aria/color/docs/useColorWheel.mdx index 2ef67fde37c..38c992229ac 100644 --- a/packages/@react-aria/color/docs/useColorWheel.mdx +++ b/packages/@react-aria/color/docs/useColorWheel.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/color'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/color/package.json'; import Anatomy from './ColorWheelAnatomy.svg'; @@ -70,7 +70,7 @@ A visually hidden `` element is used to represent the value to assistive State is managed by the -hook from `@react-stately/color`. The state object should be passed as an option to `useColorWheel` +hook from `@react-stately-nutrient/color`. The state object should be passed as an option to `useColorWheel` By default, `useColorWheel` provides an `aria-label` for the localized string "Hue". If you wish to override this with a more specific label, an `aria-label` or `aria-labelledby` prop may be passed instead to identify the element @@ -85,7 +85,7 @@ uses the [useFocusRing](useFocusRing.html) hook to grow in size when it is keybo ```tsx example export=true import {useColorWheel} from '@react-aria-nutrient/color'; -import {useColorWheelState} from '@react-stately/color'; +import {useColorWheelState} from '@react-stately-nutrient/color'; import {useFocusRing} from '@react-aria-nutrient/focus'; const RADIUS = 100; @@ -153,7 +153,7 @@ function is used to parse the initial color from an HSL string, stored in state. is used to update the value in state when the user drags the thumb. ```tsx example -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [color, setColor] = React.useState(parseColor('hsl(0, 100%, 50%)')); diff --git a/packages/@react-aria/color/package.json b/packages/@react-aria/color/package.json index 86c087a5c3d..cc5b1036cd1 100644 --- a/packages/@react-aria/color/package.json +++ b/packages/@react-aria/color/package.json @@ -30,8 +30,8 @@ "@react-aria-nutrient/textfield": "^3.17.1", "@react-aria-nutrient/utils": "^3.28.1", "@react-aria-nutrient/visually-hidden": "^3.8.21", - "@react-stately/color": "^3.8.3", - "@react-stately/form": "^3.1.2", + "@react-stately-nutrient/color": "^3.8.3", + "@react-stately-nutrient/form": "^3.1.2", "@react-types/color": "^3.0.3", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/color/src/useColorArea.ts b/packages/@react-aria/color/src/useColorArea.ts index a1df2584f6c..1070deb5a99 100644 --- a/packages/@react-aria/color/src/useColorArea.ts +++ b/packages/@react-aria/color/src/useColorArea.ts @@ -11,7 +11,7 @@ */ import {AriaColorAreaProps, ColorChannel} from '@react-types/color'; -import {ColorAreaState} from '@react-stately/color'; +import {ColorAreaState} from '@react-stately-nutrient/color'; import {DOMAttributes, RefObject} from '@react-types/shared'; import {focusWithoutScrolling, isAndroid, isIOS, mergeProps, useFormReset, useGlobalListeners, useLabels} from '@react-aria-nutrient/utils'; // @ts-ignore diff --git a/packages/@react-aria/color/src/useColorAreaGradient.ts b/packages/@react-aria/color/src/useColorAreaGradient.ts index 1bb231c5ddd..385fb0f1268 100644 --- a/packages/@react-aria/color/src/useColorAreaGradient.ts +++ b/packages/@react-aria/color/src/useColorAreaGradient.ts @@ -11,7 +11,7 @@ */ import {Color, ColorChannel} from '@react-types/color'; -import {ColorAreaState, parseColor} from '@react-stately/color'; +import {ColorAreaState, parseColor} from '@react-stately-nutrient/color'; import {CSSProperties, useMemo} from 'react'; const hue = (color: Color) => [0, 60, 120, 180, 240, 300, 360].map(hue => color.withChannelValue('hue', hue).toString('css')).join(', '); diff --git a/packages/@react-aria/color/src/useColorChannelField.ts b/packages/@react-aria/color/src/useColorChannelField.ts index 808119a7d74..3fee533cc0f 100644 --- a/packages/@react-aria/color/src/useColorChannelField.ts +++ b/packages/@react-aria/color/src/useColorChannelField.ts @@ -11,7 +11,7 @@ */ import {AriaLabelingProps, RefObject} from '@react-types/shared'; -import {ColorChannelFieldProps, ColorChannelFieldState} from '@react-stately/color'; +import {ColorChannelFieldProps, ColorChannelFieldState} from '@react-stately-nutrient/color'; import {NumberFieldAria, useNumberField} from '@react-aria-nutrient/numberfield'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/color/src/useColorField.ts b/packages/@react-aria/color/src/useColorField.ts index 3e67f5c9e95..921b9eea24d 100644 --- a/packages/@react-aria/color/src/useColorField.ts +++ b/packages/@react-aria/color/src/useColorField.ts @@ -11,7 +11,7 @@ */ import {AriaColorFieldProps} from '@react-types/color'; -import {ColorFieldState} from '@react-stately/color'; +import {ColorFieldState} from '@react-stately-nutrient/color'; import {DOMAttributes, ValidationResult} from '@react-types/shared'; import { InputHTMLAttributes, @@ -21,7 +21,7 @@ import { useState } from 'react'; import {mergeProps, useId} from '@react-aria-nutrient/utils'; -import {privateValidationStateProp} from '@react-stately/form'; +import {privateValidationStateProp} from '@react-stately-nutrient/form'; import {useFocusWithin, useScrollWheel} from '@react-aria-nutrient/interactions'; import {useFormattedTextField} from '@react-aria-nutrient/textfield'; import {useSpinButton} from '@react-aria-nutrient/spinbutton'; diff --git a/packages/@react-aria/color/src/useColorSlider.ts b/packages/@react-aria/color/src/useColorSlider.ts index 0a1d7cbc4e7..9bc0fe97dcb 100644 --- a/packages/@react-aria/color/src/useColorSlider.ts +++ b/packages/@react-aria/color/src/useColorSlider.ts @@ -11,7 +11,7 @@ */ import {AriaColorSliderProps} from '@react-types/color'; -import {ColorSliderState} from '@react-stately/color'; +import {ColorSliderState} from '@react-stately-nutrient/color'; import {DOMAttributes, RefObject} from '@react-types/shared'; import {InputHTMLAttributes} from 'react'; import {mergeProps} from '@react-aria-nutrient/utils'; diff --git a/packages/@react-aria/color/src/useColorSwatch.ts b/packages/@react-aria/color/src/useColorSwatch.ts index 685121cf730..55d5fc3dee4 100644 --- a/packages/@react-aria/color/src/useColorSwatch.ts +++ b/packages/@react-aria/color/src/useColorSwatch.ts @@ -16,7 +16,7 @@ import {filterDOMProps, useId} from '@react-aria-nutrient/utils'; import {HTMLAttributes, useMemo} from 'react'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import {useLocale, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; export interface AriaColorSwatchProps extends AriaLabelingProps, DOMProps { diff --git a/packages/@react-aria/color/src/useColorWheel.ts b/packages/@react-aria/color/src/useColorWheel.ts index c93e7bcb863..95cd3fc4b7b 100644 --- a/packages/@react-aria/color/src/useColorWheel.ts +++ b/packages/@react-aria/color/src/useColorWheel.ts @@ -11,7 +11,7 @@ */ import {AriaColorWheelProps} from '@react-types/color'; -import {ColorWheelState} from '@react-stately/color'; +import {ColorWheelState} from '@react-stately-nutrient/color'; import {DOMAttributes, RefObject} from '@react-types/shared'; import {focusWithoutScrolling, mergeProps, useFormReset, useGlobalListeners, useLabels} from '@react-aria-nutrient/utils'; import React, {ChangeEvent, InputHTMLAttributes, useCallback, useRef} from 'react'; diff --git a/packages/@react-aria/color/test/useColorField.test.js b/packages/@react-aria/color/test/useColorField.test.js index c1604f323cb..5541591e364 100644 --- a/packages/@react-aria/color/test/useColorField.test.js +++ b/packages/@react-aria/color/test/useColorField.test.js @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {parseColor, useColorFieldState} from '@react-stately/color'; +import {parseColor, useColorFieldState} from '@react-stately-nutrient/color'; import React from 'react'; import {renderHook} from '@react-spectrum/test-utils-internal'; import {useColorField} from '../'; diff --git a/packages/@react-aria/color/test/useColorWheel.test.tsx b/packages/@react-aria/color/test/useColorWheel.test.tsx index 03d343be3f5..1cfce76b193 100644 --- a/packages/@react-aria/color/test/useColorWheel.test.tsx +++ b/packages/@react-aria/color/test/useColorWheel.test.tsx @@ -12,7 +12,7 @@ import {act, fireEvent, installMouseEvent, installPointerEvent, pointerMap, render} from '@react-spectrum/test-utils-internal'; import {ColorWheelProps} from '@react-types/color'; -import {parseColor, useColorWheelState} from '@react-stately/color'; +import {parseColor, useColorWheelState} from '@react-stately-nutrient/color'; import React, {useRef} from 'react'; import {useColorWheel} from '../'; import userEvent from '@testing-library/user-event'; diff --git a/packages/@react-aria/combobox/docs/useComboBox.mdx b/packages/@react-aria/combobox/docs/useComboBox.mdx index 402226f4931..e32c4fbba1e 100644 --- a/packages/@react-aria/combobox/docs/useComboBox.mdx +++ b/packages/@react-aria/combobox/docs/useComboBox.mdx @@ -17,8 +17,8 @@ import i18nDocs from 'docs:@react-aria-nutrient/i18n'; import listboxDocs from 'docs:@react-aria-nutrient/listbox'; import overlaysDocs from 'docs:@react-aria-nutrient/overlays'; import packageData from '@react-aria-nutrient/combobox/package.json'; -import selectionDocs from 'docs:@react-stately/selection'; -import statelyDocs from 'docs:@react-stately/combobox'; +import selectionDocs from 'docs:@react-stately-nutrient/selection'; +import statelyDocs from 'docs:@react-stately-nutrient/combobox'; import Anatomy from './anatomy.svg'; import ChevronRight from '@spectrum-icons/workflow/ChevronRight'; import {ExampleCard} from '@react-spectrum/docs/src/ExampleCard'; @@ -100,7 +100,7 @@ input via the `aria-describedby` attribute. -State is managed by the hook from `@react-stately/combobox`. +State is managed by the hook from `@react-stately-nutrient/combobox`. The state object should be passed as an option to `useComboBox`. If the combo box does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to @@ -113,7 +113,7 @@ navigation and other interactions. It does this using the from -`@react-stately/combobox` implements a JSX based interface for building collections instead. +`@react-stately-nutrient/combobox` implements a JSX based interface for building collections instead. See [Collection Components](/react-stately/collections.html) for more information, and [Collection Interface](/react-stately/Collection.html) for internal details. @@ -140,9 +140,9 @@ In addition, see [useListBox](useListBox.html) for examples of sections (option options. For an example of the description and error message elements, see [useTextField](useTextField.html). ```tsx example export=true -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {useButton} from '@react-aria-nutrient/button'; -import {useComboBoxState} from '@react-stately/combobox' +import {useComboBoxState} from '@react-stately-nutrient/combobox' import {useComboBox} from '@react-aria-nutrient/combobox'; import {useFilter} from '@react-aria-nutrient/i18n'; @@ -642,7 +642,7 @@ state to the user, or support features like infinite scroll to load more data. S of a ComboBox supporting those features. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; function AsyncLoadingExample() { let list = useAsyncList({ diff --git a/packages/@react-aria/combobox/package.json b/packages/@react-aria/combobox/package.json index 060a9bcddb5..2e1a6aa37f7 100644 --- a/packages/@react-aria/combobox/package.json +++ b/packages/@react-aria/combobox/package.json @@ -31,9 +31,9 @@ "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/textfield": "^3.17.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/collections": "^3.12.2", - "@react-stately/combobox": "^3.10.3", - "@react-stately/form": "^3.1.2", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/combobox": "^3.10.3", + "@react-stately-nutrient/form": "^3.1.2", "@react-types/button": "^3.11.0", "@react-types/combobox": "^3.13.3", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/combobox/src/useComboBox.ts b/packages/@react-aria/combobox/src/useComboBox.ts index b0bc5d4eabc..1439bed07f1 100644 --- a/packages/@react-aria/combobox/src/useComboBox.ts +++ b/packages/@react-aria/combobox/src/useComboBox.ts @@ -17,14 +17,14 @@ import {ariaHideOutside} from '@react-aria-nutrient/overlays'; import {AriaListBoxOptions, getItemId, listData} from '@react-aria-nutrient/listbox'; import {BaseEvent, DOMAttributes, KeyboardDelegate, LayoutDelegate, PressEvent, RefObject, RouterOptions, ValidationResult} from '@react-types/shared'; import {chain, getActiveElement, getOwnerDocument, isAppleDevice, mergeProps, useLabels, useRouter, useUpdateEffect} from '@react-aria-nutrient/utils'; -import {ComboBoxState} from '@react-stately/combobox'; +import {ComboBoxState} from '@react-stately-nutrient/combobox'; import {dispatchVirtualFocus} from '@react-aria-nutrient/focus'; import {FocusEvent, InputHTMLAttributes, KeyboardEvent, TouchEvent, useEffect, useMemo, useRef} from 'react'; -import {getChildNodes, getItemCount} from '@react-stately/collections'; +import {getChildNodes, getItemCount} from '@react-stately-nutrient/collections'; // @ts-ignore import intlMessages from '../intl/*.json'; import {ListKeyboardDelegate, useSelectableCollection} from '@react-aria-nutrient/selection'; -import {privateValidationStateProp} from '@react-stately/form'; +import {privateValidationStateProp} from '@react-stately-nutrient/form'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useMenuTrigger} from '@react-aria-nutrient/menu'; import {useTextField} from '@react-aria-nutrient/textfield'; diff --git a/packages/@react-aria/combobox/stories/example.tsx b/packages/@react-aria/combobox/stories/example.tsx index ceb035b8ace..436cf3e22d6 100644 --- a/packages/@react-aria/combobox/stories/example.tsx +++ b/packages/@react-aria/combobox/stories/example.tsx @@ -15,7 +15,7 @@ import {FocusScope} from '@react-aria-nutrient/focus'; import React from 'react'; import {useButton} from '@react-aria-nutrient/button'; import {useComboBox} from '@react-aria-nutrient/combobox'; -import {useComboBoxState} from '@react-stately/combobox'; +import {useComboBoxState} from '@react-stately-nutrient/combobox'; import {useFilter} from '@react-aria-nutrient/i18n'; import {useListBox, useOption} from '@react-aria-nutrient/listbox'; diff --git a/packages/@react-aria/combobox/stories/useComboBox.stories.tsx b/packages/@react-aria/combobox/stories/useComboBox.stories.tsx index 38eb68fceb7..4a6b4cc7f1f 100644 --- a/packages/@react-aria/combobox/stories/useComboBox.stories.tsx +++ b/packages/@react-aria/combobox/stories/useComboBox.stories.tsx @@ -11,7 +11,7 @@ */ import {ComboBox} from './example'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; export default { diff --git a/packages/@react-aria/combobox/test/useComboBox.test.js b/packages/@react-aria/combobox/test/useComboBox.test.js index 9b83283f355..f7d941922bf 100644 --- a/packages/@react-aria/combobox/test/useComboBox.test.js +++ b/packages/@react-aria/combobox/test/useComboBox.test.js @@ -11,10 +11,10 @@ */ import {actHook as act, renderHook} from '@react-spectrum/test-utils-internal'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; import {useComboBox} from '../'; -import {useComboBoxState} from '@react-stately/combobox'; +import {useComboBoxState} from '@react-stately-nutrient/combobox'; describe('useComboBox', function () { let preventDefault = jest.fn(); diff --git a/packages/@react-aria/datepicker/docs/useDateField.mdx b/packages/@react-aria/datepicker/docs/useDateField.mdx index 4c8affdfe30..cfc4d4e5632 100644 --- a/packages/@react-aria/datepicker/docs/useDateField.mdx +++ b/packages/@react-aria/datepicker/docs/useDateField.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/datepicker'; -import statelyDocs from 'docs:@react-stately/datepicker'; +import statelyDocs from 'docs:@react-stately-nutrient/datepicker'; import i18nDocs from 'docs:@internationalized/date'; import {FunctionAPI, HeaderInfo, InterfaceType, TypeContext, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/datepicker/package.json'; @@ -77,7 +77,7 @@ input via the `aria-describedby` attribute. Note that most of this anatomy is shared with [useTimeField](useTimeField.html), so you can reuse many components between them if you have both. -State is managed by the hook from `@react-stately/datepicker`. +State is managed by the hook from `@react-stately-nutrient/datepicker`. The state object should be passed as an option to `useDateField` and `useDateSegment`. If the date field does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to @@ -94,7 +94,7 @@ Dates and times are represented in many different ways by cultures around the wo ## Example ```tsx example export=true -import {useDateFieldState} from '@react-stately/datepicker'; +import {useDateFieldState} from '@react-stately-nutrient/datepicker'; import {useDateField, useDateSegment} from '@react-aria-nutrient/datepicker'; import {createCalendar} from '@internationalized/date'; import {useLocale} from '@react-aria-nutrient/i18n'; @@ -398,7 +398,7 @@ By default, this includes [all calendar systems](../internationalized/date/Calen For example, if your application only supports Gregorian dates, you could implement a `createCalendar` function like this: ```jsx -import {useDateFieldState} from '@react-stately/datepicker'; +import {useDateFieldState} from '@react-stately-nutrient/datepicker'; import {useLocale} from '@react-aria-nutrient/i18n'; import {GregorianCalendar} from '@internationalized/date'; diff --git a/packages/@react-aria/datepicker/docs/useDatePicker.mdx b/packages/@react-aria/datepicker/docs/useDatePicker.mdx index 02f6e448aa6..3526104d884 100644 --- a/packages/@react-aria/datepicker/docs/useDatePicker.mdx +++ b/packages/@react-aria/datepicker/docs/useDatePicker.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/datepicker'; -import statelyDocs from 'docs:@react-stately/datepicker'; +import statelyDocs from 'docs:@react-stately-nutrient/datepicker'; import i18nDocs from 'docs:@internationalized/date'; import {FunctionAPI, HeaderInfo, InterfaceType, TypeContext, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/datepicker/package.json'; @@ -69,7 +69,7 @@ input via the `aria-describedby` attribute. -State is managed by the hook from `@react-stately/datepicker`. The state object should be passed as an argument to `useDatePicker`. +State is managed by the hook from `@react-stately-nutrient/datepicker`. The state object should be passed as an argument to `useDatePicker`. If the date picker does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify it to assistive technology. @@ -85,7 +85,7 @@ Dates and times are represented in many different ways by cultures around the wo A `DatePicker` composes several other components to produce a composite element that can be used to enter dates with a keyboard, or select them on a calendar. The `DateField`, `Popover`, `Calendar`, and `Button` components used in this example are independent and can be used separately from the `DatePicker`. The code is available below, and documentation is available on the corresponding pages. ```tsx example export=true -import {useDatePickerState} from '@react-stately/datepicker'; +import {useDatePickerState} from '@react-stately-nutrient/datepicker'; import {useDatePicker} from '@react-aria-nutrient/datepicker'; // Reuse the DateField, Popover, Dialog, Calendar, and Button from your component library. @@ -145,7 +145,7 @@ The `DateField` component implements the keyboard editable input used in a `Date ```tsx example export=true render=false import {useLocale} from '@react-aria-nutrient/i18n'; -import {useDateFieldState} from '@react-stately/datepicker'; +import {useDateFieldState} from '@react-stately-nutrient/datepicker'; import {useDateField, useDateSegment} from '@react-aria-nutrient/datepicker'; function DateField(props) { @@ -325,7 +325,7 @@ The `Calendar` component implements the month grid shown within the `DatePicker` Show code ```tsx example export=true render=false -import {useCalendarState} from '@react-stately/calendar'; +import {useCalendarState} from '@react-stately-nutrient/calendar'; import {useCalendar, useCalendarGrid, useCalendarCell} from '@react-aria-nutrient/calendar'; import {createCalendar, getWeeksInMonth} from '@internationalized/date'; diff --git a/packages/@react-aria/datepicker/docs/useDateRangePicker.mdx b/packages/@react-aria/datepicker/docs/useDateRangePicker.mdx index adbf21f397c..22d24d5d710 100644 --- a/packages/@react-aria/datepicker/docs/useDateRangePicker.mdx +++ b/packages/@react-aria/datepicker/docs/useDateRangePicker.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/datepicker'; -import statelyDocs from 'docs:@react-stately/datepicker'; +import statelyDocs from 'docs:@react-stately-nutrient/datepicker'; import i18nDocs from 'docs:@internationalized/date'; import {FunctionAPI, HeaderInfo, InterfaceType, TypeContext, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/datepicker/package.json'; @@ -69,7 +69,7 @@ input via the `aria-describedby` attribute. -State is managed by the hook from `@react-stately/datepicker`. The state object should be passed as an argument to `useDateRangePicker`. +State is managed by the hook from `@react-stately-nutrient/datepicker`. The state object should be passed as an argument to `useDateRangePicker`. If the date range picker does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify it to assistive technology. @@ -85,7 +85,7 @@ Dates and times are represented in many different ways by cultures around the wo A `DateRangePicker` composes several other components to produce a composite element that can be used to enter date ranges with a keyboard, or select them on a calendar. The `DateField`, `Popover`, `Calendar`, and `Button` components used in this example are independent and can be used separately from the `DateRangePicker`. The code is available below, and documentation is available on the corresponding pages. ```tsx example export=true -import {useDateRangePickerState} from '@react-stately/datepicker'; +import {useDateRangePickerState} from '@react-stately-nutrient/datepicker'; import {useDateRangePicker} from '@react-aria-nutrient/datepicker'; // Reuse the DateField, Popover, Dialog, RangeCalendar, and Button from your component library. @@ -152,7 +152,7 @@ The `DateField` component implements the keyboard editable inputs used in a `Dat ```tsx example export=true render=false import {useLocale} from '@react-aria-nutrient/i18n'; -import {useDateFieldState} from '@react-stately/datepicker'; +import {useDateFieldState} from '@react-stately-nutrient/datepicker'; import {useDateField, useDateSegment} from '@react-aria-nutrient/datepicker'; function DateField(props) { @@ -337,7 +337,7 @@ The `RangeCalendar` component implements the month grid shown within the `DateRa Show code ```tsx example export=true render=false -import {useRangeCalendarState} from '@react-stately/calendar'; +import {useRangeCalendarState} from '@react-stately-nutrient/calendar'; import {useRangeCalendar, useCalendarGrid, useCalendarCell} from '@react-aria-nutrient/calendar'; import {createCalendar, getWeeksInMonth} from '@internationalized/date'; diff --git a/packages/@react-aria/datepicker/docs/useTimeField.mdx b/packages/@react-aria/datepicker/docs/useTimeField.mdx index a32bc5a9e3d..f06824a5231 100644 --- a/packages/@react-aria/datepicker/docs/useTimeField.mdx +++ b/packages/@react-aria/datepicker/docs/useTimeField.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/datepicker'; -import statelyDocs from 'docs:@react-stately/datepicker'; +import statelyDocs from 'docs:@react-stately-nutrient/datepicker'; import i18nDocs from 'docs:@internationalized/date'; import {FunctionAPI, HeaderInfo, InterfaceType, TypeContext, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/datepicker/package.json'; @@ -76,7 +76,7 @@ input via the `aria-describedby` attribute. Note that most of this anatomy is shared with [useDateField](useDateField.html), so you can reuse many components between them if you have both. -State is managed by the hook from `@react-stately/datepicker`. The state object should be passed as an option to `useTimeField` and `useDateSegment`. +State is managed by the hook from `@react-stately-nutrient/datepicker`. The state object should be passed as an option to `useTimeField` and `useDateSegment`. If the time field does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify it to assistive technology. @@ -90,7 +90,7 @@ Times are represented in many different ways by cultures around the world. This ## Example ```tsx example export=true -import {useTimeFieldState} from '@react-stately/datepicker'; +import {useTimeFieldState} from '@react-stately-nutrient/datepicker'; import {useTimeField, useDateSegment} from '@react-aria-nutrient/datepicker'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/datepicker/package.json b/packages/@react-aria/datepicker/package.json index b15e1190572..966a507e76c 100644 --- a/packages/@react-aria/datepicker/package.json +++ b/packages/@react-aria/datepicker/package.json @@ -32,8 +32,8 @@ "@react-aria-nutrient/label": "^3.7.16", "@react-aria-nutrient/spinbutton": "^3.6.13", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/datepicker": "^3.13.0", - "@react-stately/form": "^3.1.2", + "@react-stately-nutrient/datepicker": "^3.13.0", + "@react-stately-nutrient/form": "^3.1.2", "@react-types/button": "^3.11.0", "@react-types/calendar": "^3.6.1", "@react-types/datepicker": "^3.11.0", diff --git a/packages/@react-aria/datepicker/src/useDateField.ts b/packages/@react-aria/datepicker/src/useDateField.ts index 5df2dc790ed..2684a13204c 100644 --- a/packages/@react-aria/datepicker/src/useDateField.ts +++ b/packages/@react-aria/datepicker/src/useDateField.ts @@ -12,7 +12,7 @@ import {AriaDateFieldProps as AriaDateFieldPropsBase, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker'; import {createFocusManager, FocusManager} from '@react-aria-nutrient/focus'; -import {DateFieldState, TimeFieldState} from '@react-stately/datepicker'; +import {DateFieldState, TimeFieldState} from '@react-stately-nutrient/datepicker'; import {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared'; import {filterDOMProps, mergeProps, useDescription, useFormReset} from '@react-aria-nutrient/utils'; import {InputHTMLAttributes, useEffect, useMemo, useRef} from 'react'; diff --git a/packages/@react-aria/datepicker/src/useDatePicker.ts b/packages/@react-aria/datepicker/src/useDatePicker.ts index 06e8a306670..a82f022b119 100644 --- a/packages/@react-aria/datepicker/src/useDatePicker.ts +++ b/packages/@react-aria/datepicker/src/useDatePicker.ts @@ -15,12 +15,12 @@ import {AriaDatePickerProps, DateValue} from '@react-types/datepicker'; import {AriaDialogProps} from '@react-types/dialog'; import {CalendarProps} from '@react-types/calendar'; import {createFocusManager} from '@react-aria-nutrient/focus'; -import {DatePickerState} from '@react-stately/datepicker'; +import {DatePickerState} from '@react-stately-nutrient/datepicker'; import {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared'; import {filterDOMProps, mergeProps, useDescription, useId} from '@react-aria-nutrient/utils'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {privateValidationStateProp} from '@react-stately/form'; +import {privateValidationStateProp} from '@react-stately-nutrient/form'; import {roleSymbol} from './useDateField'; import {useDatePickerGroup} from './useDatePickerGroup'; import {useField} from '@react-aria-nutrient/label'; diff --git a/packages/@react-aria/datepicker/src/useDatePickerGroup.ts b/packages/@react-aria/datepicker/src/useDatePickerGroup.ts index a24f025b198..84d49d71096 100644 --- a/packages/@react-aria/datepicker/src/useDatePickerGroup.ts +++ b/packages/@react-aria/datepicker/src/useDatePickerGroup.ts @@ -1,5 +1,5 @@ import {createFocusManager, getFocusableTreeWalker} from '@react-aria-nutrient/focus'; -import {DateFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker'; +import {DateFieldState, DatePickerState, DateRangePickerState} from '@react-stately-nutrient/datepicker'; import {DOMAttributes, FocusableElement, KeyboardEvent, RefObject} from '@react-types/shared'; import {mergeProps} from '@react-aria-nutrient/utils'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/datepicker/src/useDateRangePicker.ts b/packages/@react-aria/datepicker/src/useDateRangePicker.ts index 0c7ffda92b3..8b1eeb076ad 100644 --- a/packages/@react-aria/datepicker/src/useDateRangePicker.ts +++ b/packages/@react-aria/datepicker/src/useDateRangePicker.ts @@ -15,8 +15,8 @@ import {AriaDatePickerProps, AriaDateRangePickerProps, DateValue} from '@react-t import {AriaDialogProps} from '@react-types/dialog'; import {createFocusManager} from '@react-aria-nutrient/focus'; import {DateRange, RangeCalendarProps} from '@react-types/calendar'; -import {DateRangePickerState} from '@react-stately/datepicker'; -import {DEFAULT_VALIDATION_RESULT, mergeValidation, privateValidationStateProp} from '@react-stately/form'; +import {DateRangePickerState} from '@react-stately-nutrient/datepicker'; +import {DEFAULT_VALIDATION_RESULT, mergeValidation, privateValidationStateProp} from '@react-stately-nutrient/form'; import {DOMAttributes, GroupDOMAttributes, KeyboardEvent, RefObject, ValidationResult} from '@react-types/shared'; import {filterDOMProps, mergeProps, useDescription, useId} from '@react-aria-nutrient/utils'; import {focusManagerSymbol, roleSymbol} from './useDateField'; diff --git a/packages/@react-aria/datepicker/src/useDateSegment.ts b/packages/@react-aria/datepicker/src/useDateSegment.ts index ff408fa9820..9d12909b333 100644 --- a/packages/@react-aria/datepicker/src/useDateSegment.ts +++ b/packages/@react-aria/datepicker/src/useDateSegment.ts @@ -11,7 +11,7 @@ */ import {CalendarDate, toCalendar} from '@internationalized/date'; -import {DateFieldState, DateSegment} from '@react-stately/datepicker'; +import {DateFieldState, DateSegment} from '@react-stately-nutrient/datepicker'; import {getScrollParent, isIOS, isMac, mergeProps, scrollIntoViewport, useEvent, useId, useLabels, useLayoutEffect} from '@react-aria-nutrient/utils'; import {hookData} from './useDateField'; import {NumberParser} from '@internationalized/number'; diff --git a/packages/@react-aria/dialog/docs/useDialog.mdx b/packages/@react-aria/dialog/docs/useDialog.mdx index f75a904c707..f7b16d888db 100644 --- a/packages/@react-aria/dialog/docs/useDialog.mdx +++ b/packages/@react-aria/dialog/docs/useDialog.mdx @@ -129,7 +129,7 @@ The `Modal` and `ModalTrigger` components render the dialog within a typical mod Show code ```tsx example export=true render=false -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import {Overlay, useModalOverlay, useOverlayTrigger} from '@react-aria-nutrient/overlays'; function Modal({state, children, ...props}) { diff --git a/packages/@react-aria/disclosure/docs/useDisclosure.mdx b/packages/@react-aria/disclosure/docs/useDisclosure.mdx index c9acadbdcad..67901f996ce 100644 --- a/packages/@react-aria/disclosure/docs/useDisclosure.mdx +++ b/packages/@react-aria/disclosure/docs/useDisclosure.mdx @@ -12,7 +12,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/disclosure'; import utilsDocs from 'docs:@react-aria-nutrient/utils'; -import statelyDocs from 'docs:@react-stately/disclosure'; +import statelyDocs from 'docs:@react-stately-nutrient/disclosure'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/disclosure/package.json'; @@ -62,14 +62,14 @@ A disclosure consists of a trigger button and a panel. Clicking on or pressing < State is managed by the -hook in `@react-stately/disclosure`. The state object should be passed as an option to `useDisclosure`. +hook in `@react-stately-nutrient/disclosure`. The state object should be passed as an option to `useDisclosure`. ## Example This example displays a basic disclosure with a button that toggles the visibility of the panel. ```tsx example export=true -import {useDisclosureState} from '@react-stately/disclosure'; +import {useDisclosureState} from '@react-stately-nutrient/disclosure'; import {useDisclosure} from '@react-aria-nutrient/disclosure'; import {useButton} from '@react-aria-nutrient/button'; import {mergeProps, useFocusRing} from '@react-aria-nutrient/react-aria'; @@ -200,7 +200,7 @@ A disclosure can be disabled with the `isDisabled` prop. This will disable the t A disclosure group (i.e. accordion) is a set of disclosures where only one disclosure can be expanded at a time. The following example shows how to create a `DisclosureGroup` component with the `useDisclosureGroupState` hook. We'll also create a `DisclosureItem` component that uses the `DisclosureGroupState` context for managing its state. ```tsx example export=true render=false -import {useDisclosureGroupState} from '@react-stately/disclosure'; +import {useDisclosureGroupState} from '@react-stately-nutrient/disclosure'; import {useId} from '@react-aria-nutrient/utils'; const DisclosureGroupStateContext = React.createContext(null); diff --git a/packages/@react-aria/disclosure/package.json b/packages/@react-aria/disclosure/package.json index a2851a9890d..6056dc63fe2 100644 --- a/packages/@react-aria/disclosure/package.json +++ b/packages/@react-aria/disclosure/package.json @@ -24,7 +24,7 @@ "dependencies": { "@react-aria-nutrient/ssr": "^3.9.7", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/disclosure": "^3.0.2", + "@react-stately-nutrient/disclosure": "^3.0.2", "@react-types/button": "^3.11.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-aria/disclosure/src/useDisclosure.ts b/packages/@react-aria/disclosure/src/useDisclosure.ts index f98307a0417..4f2000a3918 100644 --- a/packages/@react-aria/disclosure/src/useDisclosure.ts +++ b/packages/@react-aria/disclosure/src/useDisclosure.ts @@ -11,7 +11,7 @@ */ import {AriaButtonProps} from '@react-types/button'; -import {DisclosureState} from '@react-stately/disclosure'; +import {DisclosureState} from '@react-stately-nutrient/disclosure'; import {flushSync} from 'react-dom'; import {HTMLAttributes, RefObject, useCallback, useEffect, useRef} from 'react'; import {useEvent, useId, useLayoutEffect} from '@react-aria-nutrient/utils'; diff --git a/packages/@react-aria/disclosure/test/useDisclosure.test.ts b/packages/@react-aria/disclosure/test/useDisclosure.test.ts index 6c23bfd9576..37cd85ddcb6 100644 --- a/packages/@react-aria/disclosure/test/useDisclosure.test.ts +++ b/packages/@react-aria/disclosure/test/useDisclosure.test.ts @@ -12,7 +12,7 @@ import {actHook as act, renderHook} from '@react-spectrum/test-utils-internal'; import {PressEvent} from '@react-types/shared'; import {useDisclosure} from '../src/useDisclosure'; -import {useDisclosureState} from '@react-stately/disclosure'; +import {useDisclosureState} from '@react-stately-nutrient/disclosure'; describe('useDisclosure', () => { let defaultProps = {}; diff --git a/packages/@react-aria/dnd/docs/useDraggableCollection.mdx b/packages/@react-aria/dnd/docs/useDraggableCollection.mdx index 4e56beba5b2..d011d88c764 100644 --- a/packages/@react-aria/dnd/docs/useDraggableCollection.mdx +++ b/packages/@react-aria/dnd/docs/useDraggableCollection.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/dnd'; -import statelyDocs from 'docs:@react-stately/dnd'; +import statelyDocs from 'docs:@react-stately-nutrient/dnd'; import sharedDocs from 'docs:@react-types/shared'; import selectionDocs from 'docs:@react-aria-nutrient/selection'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; @@ -57,11 +57,11 @@ This example renders a ListBox using the [useListBox](useListBox.html) hook, and ```tsx example export=true import {useListBox, useOption} from '@react-aria-nutrient/listbox'; -import {useListState} from '@react-stately/list'; -import {Item} from '@react-stately/collections'; +import {useListState} from '@react-stately-nutrient/list'; +import {Item} from '@react-stately-nutrient/collections'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {mergeProps} from '@react-aria-nutrient/utils'; -import {useDraggableCollectionState} from '@react-stately/dnd'; +import {useDraggableCollectionState} from '@react-stately-nutrient/dnd'; import {useDraggableCollection, useDraggableItem} from '@react-aria-nutrient/dnd'; function ListBox(props) { @@ -416,7 +416,7 @@ The `onDragEnd` event allows the drag source to respond when a drag that it init This example removes the dragged items from the UI when a move operation is completed. It uses the [useListData](../react-stately/useListData.html) hook to help manage and update the list of items. Try holding the Option or Alt keys to change the operation to copy, and see how the behavior changes. ```tsx example -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; function Example() { let list = useListData({ @@ -468,7 +468,7 @@ The drag source can also control which drop operations are allowed for the data. Drag and drop can be combined in the same collection component to allow reordering items. See [useDroppableCollection](useDroppableCollection.html) for more details. ```tsx example export=true render=false -import {useDroppableCollectionState} from '@react-stately/dnd'; +import {useDroppableCollectionState} from '@react-stately-nutrient/dnd'; import {useDroppableCollection, useDropIndicator, ListDropTargetDelegate} from '@react-aria-nutrient/dnd'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; @@ -601,7 +601,7 @@ function DropIndicator(props) { Now, we can render an example ListBox, which allows the user to reorder items. The `onReorder` event is triggered when the user drops dragged items which originated within the same collection. As above, [useListData](../react-stately/useListData.html) is used to manage the list items in this example, but it is not a requirement. ```tsx example -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; function Example() { let list = useListData({ diff --git a/packages/@react-aria/dnd/docs/useDroppableCollection.mdx b/packages/@react-aria/dnd/docs/useDroppableCollection.mdx index e3768177402..f5d6bfcef04 100644 --- a/packages/@react-aria/dnd/docs/useDroppableCollection.mdx +++ b/packages/@react-aria/dnd/docs/useDroppableCollection.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/dnd'; -import statelyDocs from 'docs:@react-stately/dnd'; +import statelyDocs from 'docs:@react-stately-nutrient/dnd'; import sharedDocs from 'docs:@react-types/shared'; import selectionDocs from 'docs:@react-aria-nutrient/selection'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; @@ -64,11 +64,11 @@ This example renders a ListBox using the [useListBox](useListBox.html) hook, and ```tsx example import {useListBox, useOption} from '@react-aria-nutrient/listbox'; -import {useListState} from '@react-stately/list'; -import {Item} from '@react-stately/collections'; +import {useListState} from '@react-stately-nutrient/list'; +import {Item} from '@react-stately-nutrient/collections'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {mergeProps} from '@react-aria-nutrient/utils'; -import {useDroppableCollectionState} from '@react-stately/dnd'; +import {useDroppableCollectionState} from '@react-stately-nutrient/dnd'; import {useDroppableCollection, useDroppableItem, ListDropTargetDelegate} from '@react-aria-nutrient/dnd'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; @@ -310,7 +310,7 @@ function Option({ item, state, dropState }) { Now, we can render an example ListBox, which inserts a new item on drop. This uses the [useListData](../react-stately/useListData.html) hook to manage the list of items, which is updated in the `onInsert` event. Note that `useListData` is a convenience hook, not a requirement. You can manage your state however you wish. ```tsx example -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; function Example() { let list = useListData({ @@ -491,7 +491,7 @@ function Option({ item, state, dropState }) { Drag and drop can be combined in the same collection component to allow reordering items. This example builds on the [dropping between items](#dropping-between-items) example above to add support for dragging items as well. This is done using the `useDraggableCollection` and `useDraggableItem` hooks. See the [docs](useDraggableCollection.html) for more details on these hooks. ```tsx example export=true render=false -import {useDraggableCollectionState} from '@react-stately/dnd'; +import {useDraggableCollectionState} from '@react-stately-nutrient/dnd'; import {useDraggableCollection, useDraggableItem} from '@react-aria-nutrient/dnd'; function ReorderableListBox(props) { @@ -602,7 +602,7 @@ function ReorderableOption({ item, state, dragState, dropState }) { Now, we can render an example ListBox, which allows the user to reorder items. The `onReorder` event is triggered when the user drops dragged items which originated within the same collection. As above, [useListData](../react-stately/useListData.html) is used to manage the list items in this example, but it is not a requirement. ```tsx example -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; function Example() { let list = useListData({ diff --git a/packages/@react-aria/dnd/package.json b/packages/@react-aria/dnd/package.json index ba7291d917a..60c52d03520 100644 --- a/packages/@react-aria/dnd/package.json +++ b/packages/@react-aria/dnd/package.json @@ -28,7 +28,7 @@ "@react-aria-nutrient/live-announcer": "^3.4.1", "@react-aria-nutrient/overlays": "^3.26.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/dnd": "^3.5.2", + "@react-stately-nutrient/dnd": "^3.5.2", "@react-types/button": "^3.11.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/dnd/src/useDraggableCollection.ts b/packages/@react-aria/dnd/src/useDraggableCollection.ts index 21f918eafe5..d2a876c5786 100644 --- a/packages/@react-aria/dnd/src/useDraggableCollection.ts +++ b/packages/@react-aria/dnd/src/useDraggableCollection.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {DraggableCollectionState} from '@react-stately/dnd'; +import {DraggableCollectionState} from '@react-stately-nutrient/dnd'; import {globalDndState, setDraggingCollectionRef} from './utils'; import {RefObject} from '@react-types/shared'; diff --git a/packages/@react-aria/dnd/src/useDraggableItem.ts b/packages/@react-aria/dnd/src/useDraggableItem.ts index da5c6642073..2597665b07b 100644 --- a/packages/@react-aria/dnd/src/useDraggableItem.ts +++ b/packages/@react-aria/dnd/src/useDraggableItem.ts @@ -12,7 +12,7 @@ import {AriaButtonProps} from '@react-types/button'; import {clearGlobalDnDState, isInternalDropOperation, setDraggingKeys, useDragModality} from './utils'; -import {DraggableCollectionState} from '@react-stately/dnd'; +import {DraggableCollectionState} from '@react-stately-nutrient/dnd'; import {HTMLAttributes} from 'react'; // @ts-ignore import intlMessages from '../intl/*.json'; diff --git a/packages/@react-aria/dnd/src/useDropIndicator.ts b/packages/@react-aria/dnd/src/useDropIndicator.ts index ad392d13ef4..7ca8bafa9ed 100644 --- a/packages/@react-aria/dnd/src/useDropIndicator.ts +++ b/packages/@react-aria/dnd/src/useDropIndicator.ts @@ -11,7 +11,7 @@ */ import * as DragManager from './DragManager'; -import {DroppableCollectionState} from '@react-stately/dnd'; +import {DroppableCollectionState} from '@react-stately-nutrient/dnd'; import {DropTarget, Key, RefObject} from '@react-types/shared'; import {getDroppableCollectionId} from './utils'; import {HTMLAttributes} from 'react'; diff --git a/packages/@react-aria/dnd/src/useDroppableCollection.ts b/packages/@react-aria/dnd/src/useDroppableCollection.ts index 1c8681423e6..aed79712728 100644 --- a/packages/@react-aria/dnd/src/useDroppableCollection.ts +++ b/packages/@react-aria/dnd/src/useDroppableCollection.ts @@ -34,7 +34,7 @@ import { RefObject } from '@react-types/shared'; import * as DragManager from './DragManager'; -import {DroppableCollectionState} from '@react-stately/dnd'; +import {DroppableCollectionState} from '@react-stately-nutrient/dnd'; import {HTMLAttributes, useCallback, useEffect, useRef} from 'react'; import {mergeProps, useId, useLayoutEffect} from '@react-aria-nutrient/utils'; import {setInteractionModality} from '@react-aria-nutrient/interactions'; diff --git a/packages/@react-aria/dnd/src/useDroppableItem.ts b/packages/@react-aria/dnd/src/useDroppableItem.ts index d62b737619d..5cccf543894 100644 --- a/packages/@react-aria/dnd/src/useDroppableItem.ts +++ b/packages/@react-aria/dnd/src/useDroppableItem.ts @@ -11,7 +11,7 @@ */ import * as DragManager from './DragManager'; -import {DroppableCollectionState} from '@react-stately/dnd'; +import {DroppableCollectionState} from '@react-stately-nutrient/dnd'; import {DropTarget, RefObject} from '@react-types/shared'; import {getDroppableCollectionRef, getTypes, globalDndState, isInternalDropOperation} from './utils'; import {HTMLAttributes, useEffect} from 'react'; diff --git a/packages/@react-aria/dnd/src/utils.ts b/packages/@react-aria/dnd/src/utils.ts index 518b56a5dbf..6f92fd5afb1 100644 --- a/packages/@react-aria/dnd/src/utils.ts +++ b/packages/@react-aria/dnd/src/utils.ts @@ -12,7 +12,7 @@ import {CUSTOM_DRAG_TYPE, DROP_OPERATION, GENERIC_TYPE, NATIVE_DRAG_TYPES} from './constants'; import {DirectoryDropItem, DragItem, DropItem, FileDropItem, DragTypes as IDragTypes, Key, RefObject, TextDropItem} from '@react-types/shared'; -import {DroppableCollectionState} from '@react-stately/dnd'; +import {DroppableCollectionState} from '@react-stately-nutrient/dnd'; import {getInteractionModality, useInteractionModality} from '@react-aria-nutrient/interactions'; interface DroppableCollectionMap { diff --git a/packages/@react-aria/dnd/stories/DraggableCollection.tsx b/packages/@react-aria/dnd/stories/DraggableCollection.tsx index ab861232942..015cdc6b7a2 100644 --- a/packages/@react-aria/dnd/stories/DraggableCollection.tsx +++ b/packages/@react-aria/dnd/stories/DraggableCollection.tsx @@ -15,16 +15,16 @@ import dndStyles from './dnd.css'; import {DragPreview} from '../src'; import {FocusRing} from '@react-aria-nutrient/focus'; import Folder from '@spectrum-icons/workflow/Folder'; -import {GridCollection, useGridState} from '@react-stately/grid'; -import {Item} from '@react-stately/collections'; +import {GridCollection, useGridState} from '@react-stately-nutrient/grid'; +import {Item} from '@react-stately-nutrient/collections'; import React, {useRef} from 'react'; import ShowMenu from '@spectrum-icons/workflow/ShowMenu'; import {useButton} from '@react-aria-nutrient/button'; import {useDraggableCollection, useDraggableItem} from '..'; -import {useDraggableCollectionState} from '@react-stately/dnd'; +import {useDraggableCollectionState} from '@react-stately-nutrient/dnd'; import {useGrid, useGridCell, useGridRow} from '@react-aria-nutrient/grid'; -import {useListData} from '@react-stately/data'; -import {useListState} from '@react-stately/list'; +import {useListData} from '@react-stately-nutrient/data'; +import {useListState} from '@react-stately-nutrient/list'; interface ItemValue { id: string, diff --git a/packages/@react-aria/dnd/stories/DraggableListBox.tsx b/packages/@react-aria/dnd/stories/DraggableListBox.tsx index f11be6557a9..6b4345f05d3 100644 --- a/packages/@react-aria/dnd/stories/DraggableListBox.tsx +++ b/packages/@react-aria/dnd/stories/DraggableListBox.tsx @@ -3,10 +3,10 @@ import dndStyles from './dnd.css'; import {mergeProps} from '@react-aria-nutrient/utils'; import React from 'react'; import {useDraggableCollection, useDraggableItem} from '@react-aria-nutrient/dnd'; -import {useDraggableCollectionState} from '@react-stately/dnd'; +import {useDraggableCollectionState} from '@react-stately-nutrient/dnd'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {useListBox, useOption} from '@react-aria-nutrient/listbox'; -import {useListState} from '@react-stately/list'; +import {useListState} from '@react-stately-nutrient/list'; export function DraggableListBox(props) { let state = useListState(props); diff --git a/packages/@react-aria/dnd/stories/DroppableGrid.tsx b/packages/@react-aria/dnd/stories/DroppableGrid.tsx index e139f25cfe6..c3328a0826b 100644 --- a/packages/@react-aria/dnd/stories/DroppableGrid.tsx +++ b/packages/@react-aria/dnd/stories/DroppableGrid.tsx @@ -16,17 +16,17 @@ import dropIndicatorStyles from '@adobe/spectrum-css-temp/components/dropindicat import {DroppableCollectionDropEvent} from '@react-types/shared'; import {FocusRing} from '@react-aria-nutrient/focus'; import Folder from '@spectrum-icons/workflow/Folder'; -import {GridCollection, useGridState} from '@react-stately/grid'; -import {Item} from '@react-stately/collections'; +import {GridCollection, useGridState} from '@react-stately-nutrient/grid'; +import {Item} from '@react-stately-nutrient/collections'; import {ListDropTargetDelegate} from '@react-aria-nutrient/dnd'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; import {mergeProps} from '@react-aria-nutrient/utils'; import React from 'react'; import {useClipboard, useDropIndicator, useDroppableCollection} from '..'; -import {useDroppableCollectionState} from '@react-stately/dnd'; +import {useDroppableCollectionState} from '@react-stately-nutrient/dnd'; import {useGrid, useGridCell, useGridRow} from '@react-aria-nutrient/grid'; -import {useListData} from '@react-stately/data'; -import {useListState} from '@react-stately/list'; +import {useListData} from '@react-stately-nutrient/data'; +import {useListState} from '@react-stately-nutrient/list'; import {useVisuallyHidden} from '@react-aria-nutrient/visually-hidden'; interface ListItem { diff --git a/packages/@react-aria/dnd/stories/DroppableListBox.tsx b/packages/@react-aria/dnd/stories/DroppableListBox.tsx index 4f5c7fd8c16..28273da9915 100644 --- a/packages/@react-aria/dnd/stories/DroppableListBox.tsx +++ b/packages/@react-aria/dnd/stories/DroppableListBox.tsx @@ -18,15 +18,15 @@ import dropIndicatorStyles from '@adobe/spectrum-css-temp/components/dropindicat import {DroppableCollectionDropEvent} from '@react-types/shared'; import {FocusRing} from '@react-aria-nutrient/focus'; import Folder from '@spectrum-icons/workflow/Folder'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {ListDropTargetDelegate} from '@react-aria-nutrient/dnd'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; import React from 'react'; import {useDropIndicator, useDroppableCollection, useDroppableItem} from '..'; -import {useDroppableCollectionState} from '@react-stately/dnd'; +import {useDroppableCollectionState} from '@react-stately-nutrient/dnd'; import {useListBox, useOption} from '@react-aria-nutrient/listbox'; -import {useListData} from '@react-stately/data'; -import {useListState} from '@react-stately/list'; +import {useListData} from '@react-stately-nutrient/data'; +import {useListState} from '@react-stately-nutrient/list'; import {useVisuallyHidden} from '@react-aria-nutrient/visually-hidden'; interface ItemValue { diff --git a/packages/@react-aria/dnd/stories/Reorderable.tsx b/packages/@react-aria/dnd/stories/Reorderable.tsx index ef19697b8a7..46e1411f922 100644 --- a/packages/@react-aria/dnd/stories/Reorderable.tsx +++ b/packages/@react-aria/dnd/stories/Reorderable.tsx @@ -18,8 +18,8 @@ import {DragPreview} from '../src'; import dropIndicatorStyles from '@adobe/spectrum-css-temp/components/dropindicator/vars.css'; import {FocusRing} from '@react-aria-nutrient/focus'; import Folder from '@spectrum-icons/workflow/Folder'; -import {GridCollection, useGridState} from '@react-stately/grid'; -import {Item} from '@react-stately/collections'; +import {GridCollection, useGridState} from '@react-stately-nutrient/grid'; +import {Item} from '@react-stately-nutrient/collections'; import {ItemDropTarget, Key} from '@react-types/shared'; import {ListDropTargetDelegate} from '@react-aria-nutrient/dnd'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; @@ -27,10 +27,10 @@ import React, {useRef} from 'react'; import ShowMenu from '@spectrum-icons/workflow/ShowMenu'; import {useButton} from '@react-aria-nutrient/button'; import {useDraggableCollection, useDraggableItem, useDropIndicator, useDroppableCollection} from '..'; -import {useDraggableCollectionState, useDroppableCollectionState} from '@react-stately/dnd'; +import {useDraggableCollectionState, useDroppableCollectionState} from '@react-stately-nutrient/dnd'; import {useGrid, useGridCell, useGridRow} from '@react-aria-nutrient/grid'; -import {useListData} from '@react-stately/data'; -import {useListState} from '@react-stately/list'; +import {useListData} from '@react-stately-nutrient/data'; +import {useListState} from '@react-stately-nutrient/list'; import {useVisuallyHidden} from '@react-aria-nutrient/visually-hidden'; export function ReorderableGridExample(props) { diff --git a/packages/@react-aria/dnd/stories/VirtualizedListBox.tsx b/packages/@react-aria/dnd/stories/VirtualizedListBox.tsx index d6f04bf19b7..9de9e145d85 100644 --- a/packages/@react-aria/dnd/stories/VirtualizedListBox.tsx +++ b/packages/@react-aria/dnd/stories/VirtualizedListBox.tsx @@ -16,17 +16,17 @@ import {classNames} from '@react-spectrum/utils'; import dndStyles from './dnd.css'; import dropIndicatorStyles from '@adobe/spectrum-css-temp/components/dropindicator/vars.css'; import {DroppableCollectionDropEvent} from '@react-types/shared'; -import {DroppableCollectionState, useDroppableCollectionState} from '@react-stately/dnd'; +import {DroppableCollectionState, useDroppableCollectionState} from '@react-stately-nutrient/dnd'; import {FocusRing} from '@react-aria-nutrient/focus'; import Folder from '@spectrum-icons/workflow/Folder'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; -import {ListLayout} from '@react-stately/layout'; -import {ListState, useListState} from '@react-stately/list'; +import {ListLayout} from '@react-stately-nutrient/layout'; +import {ListState, useListState} from '@react-stately-nutrient/list'; import React, {useMemo} from 'react'; import {useDropIndicator, useDroppableCollection, useDroppableItem} from '..'; import {useListBox, useOption} from '@react-aria-nutrient/listbox'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; import {useVisuallyHidden} from '@react-aria-nutrient/visually-hidden'; import {Virtualizer} from '@react-aria-nutrient/virtualizer'; diff --git a/packages/@react-aria/dnd/stories/dnd.stories.tsx b/packages/@react-aria/dnd/stories/dnd.stories.tsx index 11488d5ab9d..0041473c2f8 100644 --- a/packages/@react-aria/dnd/stories/dnd.stories.tsx +++ b/packages/@react-aria/dnd/stories/dnd.stories.tsx @@ -28,9 +28,9 @@ import dropzoneStyles from '@adobe/spectrum-css-temp/components/dnd/vars.css'; import {Flex} from '@react-spectrum/layout'; import {FocusRing} from '@react-aria-nutrient/focus'; import Folder from '@spectrum-icons/workflow/Folder'; -import {GridCollection, useGridState} from '@react-stately/grid'; +import {GridCollection, useGridState} from '@react-stately-nutrient/grid'; import {Heading} from '@react-spectrum/text'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import Paste from '@spectrum-icons/workflow/Paste'; import {PressResponder} from '@react-aria-nutrient/interactions'; import React, {useRef} from 'react'; @@ -38,10 +38,10 @@ import {ReorderableGridExample} from './Reorderable'; import ShowMenu from '@spectrum-icons/workflow/ShowMenu'; import {useButton} from '@react-aria-nutrient/button'; import {useClipboard, useDrag, useDraggableCollection, useDraggableItem, useDrop} from '..'; -import {useDraggableCollectionState} from '@react-stately/dnd'; +import {useDraggableCollectionState} from '@react-stately-nutrient/dnd'; import {useGrid, useGridCell, useGridRow} from '@react-aria-nutrient/grid'; -import {useListData} from '@react-stately/data'; -import {useListState} from '@react-stately/list'; +import {useListData} from '@react-stately-nutrient/data'; +import {useListState} from '@react-stately-nutrient/list'; import {VirtualizedListBoxExample} from './VirtualizedListBox'; interface ItemValue { diff --git a/packages/@react-aria/dnd/test/useDraggableCollection.test.js b/packages/@react-aria/dnd/test/useDraggableCollection.test.js index 378a076913c..311df77afd2 100644 --- a/packages/@react-aria/dnd/test/useDraggableCollection.test.js +++ b/packages/@react-aria/dnd/test/useDraggableCollection.test.js @@ -15,7 +15,7 @@ import {DataTransfer, DataTransferItem, DragEvent} from './mocks'; import {DraggableCollectionExample} from '../stories/DraggableCollection'; import {DraggableListBox} from '../stories/DraggableListBox'; import {Droppable} from './examples'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; import {theme} from '@react-spectrum/theme-default'; diff --git a/packages/@react-aria/focus/test/FocusScope.test.js b/packages/@react-aria/focus/test/FocusScope.test.js index a5ffd22aa9f..ed0bd0f80d9 100644 --- a/packages/@react-aria/focus/test/FocusScope.test.js +++ b/packages/@react-aria/focus/test/FocusScope.test.js @@ -13,7 +13,7 @@ import {act, createShadowRoot, fireEvent, pointerMap, render, waitFor} from '@react-spectrum/test-utils-internal'; import {defaultTheme} from '@adobe/react-spectrum'; import {DialogContainer} from '@react-spectrum/dialog'; -import {enableShadowDOM} from '@react-stately/flags'; +import {enableShadowDOM} from '@react-stately-nutrient/flags'; import {FocusScope, useFocusManager} from '../'; import {focusScopeTree} from '../src/FocusScope'; import {Provider} from '@react-spectrum/provider'; diff --git a/packages/@react-aria/form/package.json b/packages/@react-aria/form/package.json index 1c9415fbc02..de33369b977 100644 --- a/packages/@react-aria/form/package.json +++ b/packages/@react-aria/form/package.json @@ -24,7 +24,7 @@ "dependencies": { "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/form": "^3.1.2", + "@react-stately-nutrient/form": "^3.1.2", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-aria/form/src/useFormValidation.ts b/packages/@react-aria/form/src/useFormValidation.ts index 896c5d8f5a0..92153b9e965 100644 --- a/packages/@react-aria/form/src/useFormValidation.ts +++ b/packages/@react-aria/form/src/useFormValidation.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {FormValidationState} from '@react-stately/form'; +import {FormValidationState} from '@react-stately-nutrient/form'; import {RefObject, Validation, ValidationResult} from '@react-types/shared'; import {setInteractionModality} from '@react-aria-nutrient/interactions'; import {useEffect} from 'react'; diff --git a/packages/@react-aria/grid/package.json b/packages/@react-aria/grid/package.json index 91682ca7b7d..55ebdc86eb7 100644 --- a/packages/@react-aria/grid/package.json +++ b/packages/@react-aria/grid/package.json @@ -28,9 +28,9 @@ "@react-aria-nutrient/live-announcer": "^3.4.1", "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/collections": "^3.12.2", - "@react-stately/grid": "^3.11.0", - "@react-stately/selection": "^3.20.0", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/grid": "^3.11.0", + "@react-stately-nutrient/selection": "^3.20.0", "@react-types/checkbox": "^3.9.2", "@react-types/grid": "^3.3.0", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/grid/src/GridKeyboardDelegate.ts b/packages/@react-aria/grid/src/GridKeyboardDelegate.ts index 67bb1bfe65c..94fbce61773 100644 --- a/packages/@react-aria/grid/src/GridKeyboardDelegate.ts +++ b/packages/@react-aria/grid/src/GridKeyboardDelegate.ts @@ -12,7 +12,7 @@ import {Direction, DisabledBehavior, Key, KeyboardDelegate, LayoutDelegate, Node, Rect, RefObject, Size} from '@react-types/shared'; import {DOMLayoutDelegate} from '@react-aria-nutrient/selection'; -import {getChildNodes, getFirstItem, getLastItem, getNthItem} from '@react-stately/collections'; +import {getChildNodes, getFirstItem, getLastItem, getNthItem} from '@react-stately-nutrient/collections'; import {GridCollection, GridNode} from '@react-types/grid'; export interface GridKeyboardDelegateOptions { diff --git a/packages/@react-aria/grid/src/useGrid.ts b/packages/@react-aria/grid/src/useGrid.ts index 50b0ad96c79..2ff950cb1c2 100644 --- a/packages/@react-aria/grid/src/useGrid.ts +++ b/packages/@react-aria/grid/src/useGrid.ts @@ -15,7 +15,7 @@ import {filterDOMProps, mergeProps, useId} from '@react-aria-nutrient/utils'; import {GridCollection} from '@react-types/grid'; import {GridKeyboardDelegate} from './GridKeyboardDelegate'; import {gridMap} from './utils'; -import {GridState} from '@react-stately/grid'; +import {GridState} from '@react-stately-nutrient/grid'; import {useCallback, useMemo} from 'react'; import {useCollator, useLocale} from '@react-aria-nutrient/i18n'; import {useGridSelectionAnnouncement} from './useGridSelectionAnnouncement'; diff --git a/packages/@react-aria/grid/src/useGridCell.ts b/packages/@react-aria/grid/src/useGridCell.ts index ec1bef560ba..a5d1e9366f1 100644 --- a/packages/@react-aria/grid/src/useGridCell.ts +++ b/packages/@react-aria/grid/src/useGridCell.ts @@ -16,7 +16,7 @@ import {getFocusableTreeWalker} from '@react-aria-nutrient/focus'; import {getScrollParent, mergeProps, scrollIntoViewport} from '@react-aria-nutrient/utils'; import {GridCollection, GridNode} from '@react-types/grid'; import {gridMap} from './utils'; -import {GridState} from '@react-stately/grid'; +import {GridState} from '@react-stately-nutrient/grid'; import {KeyboardEvent as ReactKeyboardEvent, useRef} from 'react'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useSelectableItem} from '@react-aria-nutrient/selection'; diff --git a/packages/@react-aria/grid/src/useGridRow.ts b/packages/@react-aria/grid/src/useGridRow.ts index b1d4f96facd..9e19b5075ad 100644 --- a/packages/@react-aria/grid/src/useGridRow.ts +++ b/packages/@react-aria/grid/src/useGridRow.ts @@ -14,7 +14,7 @@ import {chain} from '@react-aria-nutrient/utils'; import {DOMAttributes, FocusableElement, RefObject} from '@react-types/shared'; import {GridCollection, GridNode} from '@react-types/grid'; import {gridMap} from './utils'; -import {GridState} from '@react-stately/grid'; +import {GridState} from '@react-stately-nutrient/grid'; import {SelectableItemStates, useSelectableItem} from '@react-aria-nutrient/selection'; export interface GridRowProps { diff --git a/packages/@react-aria/grid/src/useGridSelectionAnnouncement.ts b/packages/@react-aria/grid/src/useGridSelectionAnnouncement.ts index 4fb1ce7795f..37a6f12858c 100644 --- a/packages/@react-aria/grid/src/useGridSelectionAnnouncement.ts +++ b/packages/@react-aria/grid/src/useGridSelectionAnnouncement.ts @@ -14,7 +14,7 @@ import {announce} from '@react-aria-nutrient/live-announcer'; import {Collection, Key, Node, Selection} from '@react-types/shared'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {SelectionManager} from '@react-stately/selection'; +import {SelectionManager} from '@react-stately-nutrient/selection'; import {useEffectEvent, useUpdateEffect} from '@react-aria-nutrient/utils'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useRef} from 'react'; diff --git a/packages/@react-aria/grid/src/useGridSelectionCheckbox.ts b/packages/@react-aria/grid/src/useGridSelectionCheckbox.ts index 4e7e430371b..d19f32b243e 100644 --- a/packages/@react-aria/grid/src/useGridSelectionCheckbox.ts +++ b/packages/@react-aria/grid/src/useGridSelectionCheckbox.ts @@ -1,6 +1,6 @@ import {AriaCheckboxProps} from '@react-types/checkbox'; import {GridCollection} from '@react-types/grid'; -import {GridState} from '@react-stately/grid'; +import {GridState} from '@react-stately-nutrient/grid'; // @ts-ignore import intlMessages from '../intl/*.json'; import {Key} from '@react-types/shared'; diff --git a/packages/@react-aria/grid/src/useHighlightSelectionDescription.ts b/packages/@react-aria/grid/src/useHighlightSelectionDescription.ts index 688eab4b79a..0967dd9a09d 100644 --- a/packages/@react-aria/grid/src/useHighlightSelectionDescription.ts +++ b/packages/@react-aria/grid/src/useHighlightSelectionDescription.ts @@ -13,7 +13,7 @@ import {AriaLabelingProps} from '@react-types/shared'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {MultipleSelectionManager} from '@react-stately/selection'; +import {MultipleSelectionManager} from '@react-stately-nutrient/selection'; import {useDescription} from '@react-aria-nutrient/utils'; import {useInteractionModality} from '@react-aria-nutrient/interactions'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/grid/src/utils.ts b/packages/@react-aria/grid/src/utils.ts index 65ffeee0939..887f6944cca 100644 --- a/packages/@react-aria/grid/src/utils.ts +++ b/packages/@react-aria/grid/src/utils.ts @@ -11,7 +11,7 @@ */ import type {GridCollection} from '@react-types/grid'; -import type {GridState} from '@react-stately/grid'; +import type {GridState} from '@react-stately-nutrient/grid'; import type {Key, KeyboardDelegate} from '@react-types/shared'; interface GridMapShared { diff --git a/packages/@react-aria/grid/stories/example.tsx b/packages/@react-aria/grid/stories/example.tsx index a5680628e21..ecb416ba1cf 100644 --- a/packages/@react-aria/grid/stories/example.tsx +++ b/packages/@react-aria/grid/stories/example.tsx @@ -10,12 +10,12 @@ * governing permissions and limitations under the License. */ -import {GridCollection, useGridState} from '@react-stately/grid'; +import {GridCollection, useGridState} from '@react-stately-nutrient/grid'; import {mergeProps} from '@react-aria-nutrient/utils'; import React from 'react'; import {useFocus} from '@react-aria-nutrient/interactions'; import {useGrid, useGridCell, useGridRow} from '../'; -import {useListState} from '@react-stately/list'; +import {useListState} from '@react-stately-nutrient/list'; export function Grid(props) { let {gridFocusMode = 'row', cellFocusMode = 'child'} = props; diff --git a/packages/@react-aria/grid/stories/useGrid.stories.tsx b/packages/@react-aria/grid/stories/useGrid.stories.tsx index a6e466de843..6e4b3bee389 100644 --- a/packages/@react-aria/grid/stories/useGrid.stories.tsx +++ b/packages/@react-aria/grid/stories/useGrid.stories.tsx @@ -11,7 +11,7 @@ */ import {Grid} from './example'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; import {Switch} from '@react-spectrum/switch'; diff --git a/packages/@react-aria/grid/test/useGrid.test.js b/packages/@react-aria/grid/test/useGrid.test.js index 8804655b940..815ddca699d 100644 --- a/packages/@react-aria/grid/test/useGrid.test.js +++ b/packages/@react-aria/grid/test/useGrid.test.js @@ -12,7 +12,7 @@ import {act, pointerMap, render} from '@react-spectrum/test-utils-internal'; import {Grid} from '../stories/example'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; import {Switch} from '@react-spectrum/switch'; import userEvent from '@testing-library/user-event'; diff --git a/packages/@react-aria/gridlist/docs/useGridList.mdx b/packages/@react-aria/gridlist/docs/useGridList.mdx index c8766e86138..2693106c5c7 100644 --- a/packages/@react-aria/gridlist/docs/useGridList.mdx +++ b/packages/@react-aria/gridlist/docs/useGridList.mdx @@ -13,8 +13,8 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/gridlist'; import ChevronRight from '@spectrum-icons/workflow/ChevronRight'; import collectionsDocs from 'docs:@react-types/shared/src/collections.d.ts'; -import selectionDocs from 'docs:@react-stately/selection'; -import statelyDocs from 'docs:@react-stately/list'; +import selectionDocs from 'docs:@react-stately-nutrient/selection'; +import statelyDocs from 'docs:@react-stately-nutrient/list'; import focusDocs from 'docs:@react-aria-nutrient/focus'; import checkboxDocs from 'docs:@react-aria-nutrient/checkbox'; import utilsDocs from 'docs:@react-aria-nutrient/utils'; @@ -87,7 +87,7 @@ for assistive technology. State is managed by the -hook from `@react-stately/list`. The state object should be passed as an option to each of the above hooks where applicable. +hook from `@react-stately-nutrient/list`. The state object should be passed as an option to each of the above hooks where applicable. Note that an `aria-label` or `aria-labelledby` must be passed to the list to identify the element to assistive technology. @@ -99,7 +99,7 @@ the from -`@react-stately/list` implements a JSX based interface for building collections instead. +`@react-stately-nutrient/list` implements a JSX based interface for building collections instead. See [Collection Components](/react-stately/collections.html) for more information, and [Collection Interface](/react-stately/Collection.html) for internal details. @@ -124,7 +124,7 @@ the rows of the List and render the relevant components, which we'll define belo You may notice the extra `
` with `gridCellProps` in our example. This is needed because we are following the [ARIA grid pattern](https://www.w3.org/WAI/ARIA/apg/patterns/grid/), which does not allow rows without any child `gridcell` elements. ```tsx example export=true render=false -import {useListState} from '@react-stately/list'; +import {useListState} from '@react-stately-nutrient/list'; import {mergeProps} from '@react-aria-nutrient/utils'; import {useRef} from 'react'; import {useFocusRing} from '@react-aria-nutrient/focus'; @@ -172,7 +172,7 @@ function ListItem({ item, state }) { Now we can render a basic example list, with multiple selection and interactive children in each item. ```tsx example -import {Item} from "@react-stately/collections"; +import {Item} from "@react-stately-nutrient/collections"; // Reuse the Button from your component library. See below. import {Button} from 'your-component-library'; @@ -321,7 +321,7 @@ The `Checkbox` component is used in the above example for row selection. It is b ```tsx example export=true render=false import {useCheckbox} from '@react-aria-nutrient/checkbox'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; function Checkbox(props) { let inputRef = useRef(null); @@ -513,7 +513,7 @@ The `` component works with frameworks and client side routers like [Next. This example uses the [useAsyncList](../react-stately/useAsyncList.html) hook to handle asynchronous loading of data from a server. You may additionally want to display a spinner to indicate the loading state to the user, or support features like infinite scroll to load more data. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; function AsyncList() { diff --git a/packages/@react-aria/gridlist/package.json b/packages/@react-aria/gridlist/package.json index f57ba881082..0d7ce72baf0 100644 --- a/packages/@react-aria/gridlist/package.json +++ b/packages/@react-aria/gridlist/package.json @@ -28,9 +28,9 @@ "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/collections": "^3.12.2", - "@react-stately/list": "^3.12.0", - "@react-stately/tree": "^3.8.8", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/list": "^3.12.0", + "@react-stately-nutrient/tree": "^3.8.8", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-aria/gridlist/src/useGridList.ts b/packages/@react-aria/gridlist/src/useGridList.ts index c5be7917225..f8ab8d0d907 100644 --- a/packages/@react-aria/gridlist/src/useGridList.ts +++ b/packages/@react-aria/gridlist/src/useGridList.ts @@ -25,7 +25,7 @@ import { } from '@react-types/shared'; import {filterDOMProps, mergeProps, useId} from '@react-aria-nutrient/utils'; import {listMap} from './utils'; -import {ListState} from '@react-stately/list'; +import {ListState} from '@react-stately-nutrient/list'; import {useGridSelectionAnnouncement, useHighlightSelectionDescription} from '@react-aria-nutrient/grid'; import {useHasTabbableChild} from '@react-aria-nutrient/focus'; import {useSelectableList} from '@react-aria-nutrient/selection'; diff --git a/packages/@react-aria/gridlist/src/useGridListItem.ts b/packages/@react-aria/gridlist/src/useGridListItem.ts index fd8ff65f8c8..d5ee816337e 100644 --- a/packages/@react-aria/gridlist/src/useGridListItem.ts +++ b/packages/@react-aria/gridlist/src/useGridListItem.ts @@ -13,13 +13,13 @@ import {chain, getScrollParent, mergeProps, scrollIntoViewport, useSlotId, useSyntheticLinkProps} from '@react-aria-nutrient/utils'; import {DOMAttributes, FocusableElement, Key, RefObject, Node as RSNode} from '@react-types/shared'; import {focusSafely, getFocusableTreeWalker} from '@react-aria-nutrient/focus'; -import {getLastItem} from '@react-stately/collections'; +import {getLastItem} from '@react-stately-nutrient/collections'; import {getRowId, listMap} from './utils'; import {HTMLAttributes, KeyboardEvent as ReactKeyboardEvent, useRef} from 'react'; import {isFocusVisible} from '@react-aria-nutrient/interactions'; -import type {ListState} from '@react-stately/list'; +import type {ListState} from '@react-stately-nutrient/list'; import {SelectableItemStates, useSelectableItem} from '@react-aria-nutrient/selection'; -import type {TreeState} from '@react-stately/tree'; +import type {TreeState} from '@react-stately-nutrient/tree'; import {useLocale} from '@react-aria-nutrient/i18n'; export interface AriaGridListItemOptions { diff --git a/packages/@react-aria/gridlist/src/useGridListSelectionCheckbox.ts b/packages/@react-aria/gridlist/src/useGridListSelectionCheckbox.ts index 6fdc91d0edb..128d445d0e8 100644 --- a/packages/@react-aria/gridlist/src/useGridListSelectionCheckbox.ts +++ b/packages/@react-aria/gridlist/src/useGridListSelectionCheckbox.ts @@ -12,7 +12,7 @@ import {AriaGridSelectionCheckboxProps, GridSelectionCheckboxAria, useGridSelectionCheckbox} from '@react-aria-nutrient/grid'; import {getRowId} from './utils'; -import type {ListState} from '@react-stately/list'; +import type {ListState} from '@react-stately-nutrient/list'; /** * Provides the behavior and accessibility implementation for a selection checkbox in a grid list. diff --git a/packages/@react-aria/gridlist/src/utils.ts b/packages/@react-aria/gridlist/src/utils.ts index 0829badb166..84e9daa3382 100644 --- a/packages/@react-aria/gridlist/src/utils.ts +++ b/packages/@react-aria/gridlist/src/utils.ts @@ -11,7 +11,7 @@ */ import {Key} from '@react-types/shared'; -import type {ListState} from '@react-stately/list'; +import type {ListState} from '@react-stately-nutrient/list'; interface ListMapShared { id: string, diff --git a/packages/@react-aria/interactions/package.json b/packages/@react-aria/interactions/package.json index 56c5fb4d39d..05c5238568f 100644 --- a/packages/@react-aria/interactions/package.json +++ b/packages/@react-aria/interactions/package.json @@ -24,7 +24,7 @@ "dependencies": { "@react-aria-nutrient/ssr": "^3.9.7", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/flags": "^3.1.0", + "@react-stately-nutrient/flags": "^3.1.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-aria/interactions/test/useFocus.test.js b/packages/@react-aria/interactions/test/useFocus.test.js index 0d9a279bdcb..23a3cc9135c 100644 --- a/packages/@react-aria/interactions/test/useFocus.test.js +++ b/packages/@react-aria/interactions/test/useFocus.test.js @@ -11,7 +11,7 @@ */ import {act, createShadowRoot, render, waitFor} from '@react-spectrum/test-utils-internal'; -import {enableShadowDOM} from '@react-stately/flags'; +import {enableShadowDOM} from '@react-stately-nutrient/flags'; import React from 'react'; import ReactDOM from 'react-dom'; import {useFocus} from '../'; diff --git a/packages/@react-aria/interactions/test/usePress.test.js b/packages/@react-aria/interactions/test/usePress.test.js index b0d52a28111..7d3c2f35fd6 100644 --- a/packages/@react-aria/interactions/test/usePress.test.js +++ b/packages/@react-aria/interactions/test/usePress.test.js @@ -13,7 +13,7 @@ import {act, createShadowRoot, fireEvent, installMouseEvent, installPointerEvent, render, waitFor} from '@react-spectrum/test-utils-internal'; import {ActionButton} from '@react-spectrum/button'; import {Dialog, DialogTrigger} from '@react-spectrum/dialog'; -import {enableShadowDOM} from '@react-stately/flags'; +import {enableShadowDOM} from '@react-stately-nutrient/flags'; import MatchMediaMock from 'jest-matchmedia-mock'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; diff --git a/packages/@react-aria/listbox/docs/useListBox.mdx b/packages/@react-aria/listbox/docs/useListBox.mdx index 1080004b4bb..eb5574c5d00 100644 --- a/packages/@react-aria/listbox/docs/useListBox.mdx +++ b/packages/@react-aria/listbox/docs/useListBox.mdx @@ -12,8 +12,8 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/listbox'; import collectionsDocs from 'docs:@react-types/shared/src/collections.d.ts'; -import selectionDocs from 'docs:@react-stately/selection'; -import statelyDocs from 'docs:@react-stately/list'; +import selectionDocs from 'docs:@react-stately-nutrient/selection'; +import statelyDocs from 'docs:@react-stately-nutrient/list'; import utilsDocs from 'docs:@react-aria-nutrient/utils'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/listbox/package.json'; @@ -93,7 +93,7 @@ along with props for an optional visual label: State is managed by the -hook from `@react-stately/list`. The state object should be passed as an option to +hook from `@react-stately-nutrient/list`. The state object should be passed as an option to each of the above hooks. If a listbox, options, or group does not have a visible label, an `aria-label` or `aria-labelledby` @@ -107,7 +107,7 @@ the from -`@react-stately/list` implements a JSX based interface for building collections instead. +`@react-stately-nutrient/list` implements a JSX based interface for building collections instead. See [Collection Components](/react-stately/collections.html) for more information, and [Collection Interface](/react-stately/Collection.html) for internal details. @@ -128,8 +128,8 @@ is rendered according to the item's `type` property. ```tsx example export=true import type {AriaListBoxProps} from '@react-aria-nutrient/listbox'; import {useListBox, useOption} from '@react-aria-nutrient/listbox'; -import {useListState} from '@react-stately/list'; -import {Item} from '@react-stately/collections'; +import {useListState} from '@react-stately-nutrient/list'; +import {Item} from '@react-stately-nutrient/collections'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {mergeProps} from '@react-aria-nutrient/utils'; @@ -363,7 +363,7 @@ function ListBoxSection({section, state}) { With this in place, we can now render a static ListBox with multiple sections: ```tsx example -import {Section} from '@react-stately/collections'; +import {Section} from '@react-stately-nutrient/collections';
@@ -510,7 +510,7 @@ of data from a server. You may additionally want to display a spinner to indicat state to the user, or support features like infinite scroll to load more data. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Pokemon { name: string diff --git a/packages/@react-aria/listbox/package.json b/packages/@react-aria/listbox/package.json index ef6fc2d8bf9..8396685d189 100644 --- a/packages/@react-aria/listbox/package.json +++ b/packages/@react-aria/listbox/package.json @@ -26,8 +26,8 @@ "@react-aria-nutrient/label": "^3.7.16", "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/collections": "^3.12.2", - "@react-stately/list": "^3.12.0", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/list": "^3.12.0", "@react-types/listbox": "^3.5.5", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/listbox/src/useListBox.ts b/packages/@react-aria/listbox/src/useListBox.ts index 266e8a131ec..af01b7e7574 100644 --- a/packages/@react-aria/listbox/src/useListBox.ts +++ b/packages/@react-aria/listbox/src/useListBox.ts @@ -14,7 +14,7 @@ import {AriaListBoxProps} from '@react-types/listbox'; import {DOMAttributes, KeyboardDelegate, LayoutDelegate, RefObject} from '@react-types/shared'; import {filterDOMProps, mergeProps, useId} from '@react-aria-nutrient/utils'; import {listData} from './utils'; -import {ListState} from '@react-stately/list'; +import {ListState} from '@react-stately-nutrient/list'; import {useFocusWithin} from '@react-aria-nutrient/interactions'; import {useLabel} from '@react-aria-nutrient/label'; import {useSelectableList} from '@react-aria-nutrient/selection'; diff --git a/packages/@react-aria/listbox/src/useOption.ts b/packages/@react-aria/listbox/src/useOption.ts index a3d476f2c09..9056f5b57a3 100644 --- a/packages/@react-aria/listbox/src/useOption.ts +++ b/packages/@react-aria/listbox/src/useOption.ts @@ -12,10 +12,10 @@ import {chain, filterDOMProps, isMac, isWebKit, mergeProps, useLinkProps, useSlotId} from '@react-aria-nutrient/utils'; import {DOMAttributes, FocusableElement, Key, RefObject} from '@react-types/shared'; -import {getItemCount} from '@react-stately/collections'; +import {getItemCount} from '@react-stately-nutrient/collections'; import {getItemId, listData} from './utils'; import {isFocusVisible, useHover} from '@react-aria-nutrient/interactions'; -import {ListState} from '@react-stately/list'; +import {ListState} from '@react-stately-nutrient/list'; import {SelectableItemStates, useSelectableItem} from '@react-aria-nutrient/selection'; export interface OptionAria extends SelectableItemStates { diff --git a/packages/@react-aria/listbox/src/utils.ts b/packages/@react-aria/listbox/src/utils.ts index 0477b91ff03..9b198f45b88 100644 --- a/packages/@react-aria/listbox/src/utils.ts +++ b/packages/@react-aria/listbox/src/utils.ts @@ -11,7 +11,7 @@ */ import {Key} from '@react-types/shared'; -import {ListState} from '@react-stately/list'; +import {ListState} from '@react-stately-nutrient/list'; interface ListData { id?: string, diff --git a/packages/@react-aria/menu/docs/useMenu.mdx b/packages/@react-aria/menu/docs/useMenu.mdx index 5954432b9e6..bb147fadc05 100644 --- a/packages/@react-aria/menu/docs/useMenu.mdx +++ b/packages/@react-aria/menu/docs/useMenu.mdx @@ -15,8 +15,8 @@ import overlaysDocs from 'docs:@react-aria-nutrient/overlays'; import focusDocs from 'docs:@react-aria-nutrient/focus'; import menuDocs from 'docs:@react-aria-nutrient/menu'; import buttonDocs from 'docs:@react-aria-nutrient/button'; -import statelyDocs from 'docs:@react-stately/menu'; -import treeDocs from 'docs:@react-stately/tree'; +import statelyDocs from 'docs:@react-stately-nutrient/menu'; +import treeDocs from 'docs:@react-stately-nutrient/tree'; import utilsDocs from 'docs:@react-aria-nutrient/utils'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/menu/package.json'; @@ -99,8 +99,8 @@ and `useMenuSection` handle exposing this to assistive technology using ARIA, al State for the trigger is managed by the -hook from `@react-stately/menu`. State for the menu itself is managed by the -hook from `@react-stately/tree`. These state objects should be passed to the appropriate React Aria hooks. +hook from `@react-stately-nutrient/menu`. State for the menu itself is managed by the +hook from `@react-stately-nutrient/tree`. These state objects should be passed to the appropriate React Aria hooks. If a menu, menu item, or group does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify the element to assistive technology. @@ -118,10 +118,10 @@ The `Popover` and `Button` components used in this example are independent, and The code is available below, and documentation is available on the corresponding pages. ```tsx example export=true render=false -import type {MenuTriggerProps} from '@react-stately/menu'; -import {useMenuTriggerState} from '@react-stately/menu'; +import type {MenuTriggerProps} from '@react-stately-nutrient/menu'; +import {useMenuTriggerState} from '@react-stately-nutrient/menu'; import {useMenuTrigger} from '@react-aria-nutrient/menu'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; // Reuse the Popover, and Button from your component library. See below for details. import {Popover, Button} from 'your-component-library'; @@ -168,7 +168,7 @@ For each item in the collection in state, we render either a `MenuItem` or `Menu ```tsx example export=true render=false import type {AriaMenuProps} from '@react-aria-nutrient/menu'; import {useMenu} from '@react-aria-nutrient/menu'; -import {useTreeState} from '@react-stately/tree'; +import {useTreeState} from '@react-stately-nutrient/tree'; function Menu(props: AriaMenuProps) { // Create menu state based on the incoming props @@ -458,7 +458,7 @@ function MenuSection({section, state}) { With this in place, we can now render a static menu with multiple sections: ```tsx example -import {Section} from '@react-stately/collections'; +import {Section} from '@react-stately-nutrient/collections';
diff --git a/packages/@react-aria/menu/package.json b/packages/@react-aria/menu/package.json index 1f538f73b7d..2ad151ea32f 100644 --- a/packages/@react-aria/menu/package.json +++ b/packages/@react-aria/menu/package.json @@ -28,10 +28,10 @@ "@react-aria-nutrient/overlays": "^3.26.1", "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/collections": "^3.12.2", - "@react-stately/menu": "^3.9.2", - "@react-stately/selection": "^3.20.0", - "@react-stately/tree": "^3.8.8", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/menu": "^3.9.2", + "@react-stately-nutrient/selection": "^3.20.0", + "@react-stately-nutrient/tree": "^3.8.8", "@react-types/button": "^3.11.0", "@react-types/menu": "^3.9.15", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/menu/src/useMenu.ts b/packages/@react-aria/menu/src/useMenu.ts index f699e9b7da5..09f8145e10e 100644 --- a/packages/@react-aria/menu/src/useMenu.ts +++ b/packages/@react-aria/menu/src/useMenu.ts @@ -14,7 +14,7 @@ import {AriaMenuProps} from '@react-types/menu'; import {DOMAttributes, KeyboardDelegate, KeyboardEvents, RefObject} from '@react-types/shared'; import {filterDOMProps, mergeProps} from '@react-aria-nutrient/utils'; import {menuData} from './utils'; -import {TreeState} from '@react-stately/tree'; +import {TreeState} from '@react-stately-nutrient/tree'; import {useSelectableList} from '@react-aria-nutrient/selection'; export interface MenuAria { diff --git a/packages/@react-aria/menu/src/useMenuItem.ts b/packages/@react-aria/menu/src/useMenuItem.ts index ddc8bb24952..77174ee3d26 100644 --- a/packages/@react-aria/menu/src/useMenuItem.ts +++ b/packages/@react-aria/menu/src/useMenuItem.ts @@ -12,11 +12,11 @@ import {DOMAttributes, DOMProps, FocusableElement, FocusEvents, HoverEvents, Key, KeyboardEvents, PressEvent, PressEvents, RefObject, RouterOptions} from '@react-types/shared'; import {filterDOMProps, mergeProps, useLinkProps, useRouter, useSlotId} from '@react-aria-nutrient/utils'; -import {getItemCount} from '@react-stately/collections'; +import {getItemCount} from '@react-stately-nutrient/collections'; import {isFocusVisible, useFocus, useHover, useKeyboard, usePress} from '@react-aria-nutrient/interactions'; import {menuData} from './utils'; -import {SelectionManager} from '@react-stately/selection'; -import {TreeState} from '@react-stately/tree'; +import {SelectionManager} from '@react-stately-nutrient/selection'; +import {TreeState} from '@react-stately-nutrient/tree'; import {useSelectableItem} from '@react-aria-nutrient/selection'; export interface MenuItemAria { diff --git a/packages/@react-aria/menu/src/useMenuTrigger.ts b/packages/@react-aria/menu/src/useMenuTrigger.ts index 272901716e5..9a030c40ba7 100644 --- a/packages/@react-aria/menu/src/useMenuTrigger.ts +++ b/packages/@react-aria/menu/src/useMenuTrigger.ts @@ -16,7 +16,7 @@ import {FocusableElement, RefObject} from '@react-types/shared'; import {focusWithoutScrolling, useId} from '@react-aria-nutrient/utils'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {MenuTriggerState} from '@react-stately/menu'; +import {MenuTriggerState} from '@react-stately-nutrient/menu'; import {MenuTriggerType} from '@react-types/menu'; import {PressProps, useLongPress} from '@react-aria-nutrient/interactions'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/menu/src/useSubmenuTrigger.ts b/packages/@react-aria/menu/src/useSubmenuTrigger.ts index 7e7327b436e..f5fd3a6edb8 100644 --- a/packages/@react-aria/menu/src/useSubmenuTrigger.ts +++ b/packages/@react-aria/menu/src/useSubmenuTrigger.ts @@ -15,7 +15,7 @@ import {AriaMenuOptions} from './useMenu'; import type {AriaPopoverProps, OverlayProps} from '@react-aria-nutrient/overlays'; import {FocusableElement, FocusStrategy, KeyboardEvent, Node, PressEvent, RefObject} from '@react-types/shared'; import {focusWithoutScrolling, useEffectEvent, useId, useLayoutEffect} from '@react-aria-nutrient/utils'; -import type {SubmenuTriggerState} from '@react-stately/menu'; +import type {SubmenuTriggerState} from '@react-stately-nutrient/menu'; import {useCallback, useRef} from 'react'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useSafelyMouseToSubmenu} from './useSafelyMouseToSubmenu'; diff --git a/packages/@react-aria/menu/src/utils.ts b/packages/@react-aria/menu/src/utils.ts index e57d9129439..d5f4066e5e5 100644 --- a/packages/@react-aria/menu/src/utils.ts +++ b/packages/@react-aria/menu/src/utils.ts @@ -11,7 +11,7 @@ */ import {Key} from '@react-types/shared'; -import {TreeState} from '@react-stately/tree'; +import {TreeState} from '@react-stately-nutrient/tree'; interface MenuData { onClose?: () => void, diff --git a/packages/@react-aria/menu/stories/useMenu.stories.tsx b/packages/@react-aria/menu/stories/useMenu.stories.tsx index 9410d149243..56ddf7880e7 100644 --- a/packages/@react-aria/menu/stories/useMenu.stories.tsx +++ b/packages/@react-aria/menu/stories/useMenu.stories.tsx @@ -13,14 +13,14 @@ import {action} from '@storybook/addon-actions'; import {DismissButton, useOverlay} from '@react-aria-nutrient/overlays'; import {FocusScope} from '@react-aria-nutrient/focus'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {mergeProps} from '@react-aria-nutrient/utils'; import React from 'react'; import {useButton} from '@react-aria-nutrient/button'; import {useFocus, useInteractOutside} from '@react-aria-nutrient/interactions'; import {useMenu, useMenuItem, useMenuTrigger} from '@react-aria-nutrient/menu'; -import {useMenuTriggerState} from '@react-stately/menu'; -import {useTreeState} from '@react-stately/tree'; +import {useMenuTriggerState} from '@react-stately-nutrient/menu'; +import {useTreeState} from '@react-stately-nutrient/tree'; export default { title: 'useMenu' diff --git a/packages/@react-aria/menu/test/useMenu.test.tsx b/packages/@react-aria/menu/test/useMenu.test.tsx index aafb79204c3..a99e04930b4 100644 --- a/packages/@react-aria/menu/test/useMenu.test.tsx +++ b/packages/@react-aria/menu/test/useMenu.test.tsx @@ -11,11 +11,11 @@ */ import {AriaMenuProps, useMenu, useMenuItem} from '../'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {pointerMap, render} from '@react-spectrum/test-utils-internal'; import React from 'react'; import userEvent from '@testing-library/user-event'; -import {useTreeState} from '@react-stately/tree'; +import {useTreeState} from '@react-stately-nutrient/tree'; function Menu(props: AriaMenuProps & {onSelect: () => void}) { // Create menu state based on the incoming props diff --git a/packages/@react-aria/numberfield/docs/useNumberField.mdx b/packages/@react-aria/numberfield/docs/useNumberField.mdx index 3388dfda964..c209fdd1705 100644 --- a/packages/@react-aria/numberfield/docs/useNumberField.mdx +++ b/packages/@react-aria/numberfield/docs/useNumberField.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/numberfield'; -import statelyDocs from 'docs:@react-stately/numberfield'; +import statelyDocs from 'docs:@react-stately-nutrient/numberfield'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/numberfield/package.json'; import Anatomy from './anatomy.svg'; @@ -84,7 +84,7 @@ input via the `aria-describedby` attribute. State is managed by the -hook from `@react-stately/numberfield`. The state object should be passed as an option to `useNumberField` +hook from `@react-stately-nutrient/numberfield`. The state object should be passed as an option to `useNumberField` If there is no visual label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify the element to screen readers. @@ -105,7 +105,7 @@ In addition, see [useTextField](useTextField.html) for an example of the descrip ```tsx example export=true import {useNumberField} from '@react-aria-nutrient/numberfield'; -import {useNumberFieldState} from '@react-stately/numberfield'; +import {useNumberFieldState} from '@react-stately-nutrient/numberfield'; import {useLocale} from '@react-aria-nutrient/i18n'; // Reuse the Button from your component library. See below for details. diff --git a/packages/@react-aria/numberfield/package.json b/packages/@react-aria/numberfield/package.json index c5429e08373..e9967e83f13 100644 --- a/packages/@react-aria/numberfield/package.json +++ b/packages/@react-aria/numberfield/package.json @@ -27,8 +27,8 @@ "@react-aria-nutrient/spinbutton": "^3.6.13", "@react-aria-nutrient/textfield": "^3.17.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/form": "^3.1.2", - "@react-stately/numberfield": "^3.9.10", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/numberfield": "^3.9.10", "@react-types/button": "^3.11.0", "@react-types/numberfield": "^3.8.9", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/numberfield/src/useNumberField.ts b/packages/@react-aria/numberfield/src/useNumberField.ts index cfe38cbb2c1..91a3e709ae8 100644 --- a/packages/@react-aria/numberfield/src/useNumberField.ts +++ b/packages/@react-aria/numberfield/src/useNumberField.ts @@ -24,8 +24,8 @@ import { } from 'react'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {NumberFieldState} from '@react-stately/numberfield'; -import {privateValidationStateProp} from '@react-stately/form'; +import {NumberFieldState} from '@react-stately-nutrient/numberfield'; +import {privateValidationStateProp} from '@react-stately-nutrient/form'; import {useFocus, useFocusWithin, useScrollWheel} from '@react-aria-nutrient/interactions'; import {useFormattedTextField} from '@react-aria-nutrient/textfield'; import { diff --git a/packages/@react-aria/numberfield/test/useNumberField.test.ts b/packages/@react-aria/numberfield/test/useNumberField.test.ts index 7c2a3d274aa..f0839f42405 100644 --- a/packages/@react-aria/numberfield/test/useNumberField.test.ts +++ b/packages/@react-aria/numberfield/test/useNumberField.test.ts @@ -3,7 +3,7 @@ import React from 'react'; import {renderHook} from '@react-spectrum/test-utils-internal'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useNumberField} from '../'; -import {useNumberFieldState} from '@react-stately/numberfield'; +import {useNumberFieldState} from '@react-stately-nutrient/numberfield'; describe('useNumberField hook', () => { let ref; diff --git a/packages/@react-aria/overlays/docs/useModalOverlay.mdx b/packages/@react-aria/overlays/docs/useModalOverlay.mdx index f3e7e844f70..499974bbcbd 100644 --- a/packages/@react-aria/overlays/docs/useModalOverlay.mdx +++ b/packages/@react-aria/overlays/docs/useModalOverlay.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/overlays'; import focusDocs from 'docs:@react-aria-nutrient/focus'; import dialogDocs from 'docs:@react-aria-nutrient/dialog'; -import statelyDocs from 'docs:@react-stately/overlays'; +import statelyDocs from 'docs:@react-stately-nutrient/overlays'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/overlays/package.json'; @@ -65,7 +65,7 @@ A modal overlay consists of an overlay container element, and an underlay. The o State is managed by the -hook in `@react-stately/overlays`. The state object should be passed as an argument to `useModalOverlay`. +hook in `@react-stately-nutrient/overlays`. The state object should be passed as an argument to `useModalOverlay`. ## Example @@ -114,7 +114,7 @@ function Modal({state, children, ...props}) { The below `ModalTrigger` component uses the hook to show the modal when a button is pressed. It accepts a function as children, which is called with a callback that closes the modal. This can be used to implement a close button. ```tsx example export=true render=false -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import {useOverlayTrigger} from '@react-aria-nutrient/overlays'; // Reuse the Button from your component library. See below for details. diff --git a/packages/@react-aria/overlays/docs/usePopover.mdx b/packages/@react-aria/overlays/docs/usePopover.mdx index 03e84d57756..c6234ffb46a 100644 --- a/packages/@react-aria/overlays/docs/usePopover.mdx +++ b/packages/@react-aria/overlays/docs/usePopover.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/overlays'; import focusDocs from 'docs:@react-aria-nutrient/focus'; import dialogDocs from 'docs:@react-aria-nutrient/dialog'; -import statelyDocs from 'docs:@react-stately/overlays'; +import statelyDocs from 'docs:@react-stately-nutrient/overlays'; import typesDocs from 'docs:@react-types/overlays'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; @@ -68,7 +68,7 @@ A popover consists of a trigger element (e.g. button) and an overlay, which is p State is managed by the -hook in `@react-stately/overlays`. The state object should be passed as an argument to `usePopover`. +hook in `@react-stately-nutrient/overlays`. The state object should be passed as an argument to `usePopover`. ## Example @@ -120,7 +120,7 @@ function Popover({children, state, offset = 8, ...props}: PopoverProps) { The above `Popover` component can be used as part of many different patterns, such as [ComboBox](useComboBox.html), [Select](useSelect.html), and [DatePicker](useDatePicker.html). To use it standalone, we need a trigger element. The below `PopoverTrigger` component uses the hook to trigger the popover when a button is pressed. This hook also ensures that the button and popover are semantically connected via ARIA. ```tsx example export=true render=false -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import {useOverlayTrigger} from '@react-aria-nutrient/overlays'; // Reuse the Button from your component library. See below for details. diff --git a/packages/@react-aria/overlays/package.json b/packages/@react-aria/overlays/package.json index 0b54d2c041e..412b64f753f 100644 --- a/packages/@react-aria/overlays/package.json +++ b/packages/@react-aria/overlays/package.json @@ -29,7 +29,7 @@ "@react-aria-nutrient/utils": "^3.28.1", "@react-aria-nutrient/visually-hidden": "^3.8.21", "@react-aria/ssr": "^3.9.7", - "@react-stately/overlays": "^3.6.14", + "@react-stately-nutrient/overlays": "^3.6.14", "@react-types/button": "^3.11.0", "@react-types/overlays": "^3.8.13", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/overlays/src/useModalOverlay.ts b/packages/@react-aria/overlays/src/useModalOverlay.ts index eab62e29553..3d9ab72021d 100644 --- a/packages/@react-aria/overlays/src/useModalOverlay.ts +++ b/packages/@react-aria/overlays/src/useModalOverlay.ts @@ -14,7 +14,7 @@ import {ariaHideOutside} from './ariaHideOutside'; import {AriaOverlayProps, useOverlay} from './useOverlay'; import {DOMAttributes, RefObject} from '@react-types/shared'; import {mergeProps} from '@react-aria-nutrient/utils'; -import {OverlayTriggerState} from '@react-stately/overlays'; +import {OverlayTriggerState} from '@react-stately-nutrient/overlays'; import {useEffect} from 'react'; import {useOverlayFocusContain} from './Overlay'; import {usePreventScroll} from './usePreventScroll'; diff --git a/packages/@react-aria/overlays/src/useOverlayTrigger.ts b/packages/@react-aria/overlays/src/useOverlayTrigger.ts index 991837db07b..066b7877ba8 100644 --- a/packages/@react-aria/overlays/src/useOverlayTrigger.ts +++ b/packages/@react-aria/overlays/src/useOverlayTrigger.ts @@ -13,7 +13,7 @@ import {AriaButtonProps} from '@react-types/button'; import {DOMProps, RefObject} from '@react-types/shared'; import {onCloseMap} from './useCloseOnScroll'; -import {OverlayTriggerState} from '@react-stately/overlays'; +import {OverlayTriggerState} from '@react-stately-nutrient/overlays'; import {useEffect} from 'react'; import {useId} from '@react-aria-nutrient/utils'; diff --git a/packages/@react-aria/overlays/src/usePopover.ts b/packages/@react-aria/overlays/src/usePopover.ts index d5bf3374bf4..4adad1c5e21 100644 --- a/packages/@react-aria/overlays/src/usePopover.ts +++ b/packages/@react-aria/overlays/src/usePopover.ts @@ -14,7 +14,7 @@ import {ariaHideOutside, keepVisible} from './ariaHideOutside'; import {AriaPositionProps, useOverlayPosition} from './useOverlayPosition'; import {DOMAttributes, RefObject} from '@react-types/shared'; import {mergeProps, useLayoutEffect} from '@react-aria-nutrient/utils'; -import {OverlayTriggerState} from '@react-stately/overlays'; +import {OverlayTriggerState} from '@react-stately-nutrient/overlays'; import {PlacementAxis} from '@react-types/overlays'; import {useOverlay} from './useOverlay'; import {usePreventScroll} from './usePreventScroll'; diff --git a/packages/@react-aria/overlays/stories/UseOverlayPosition.stories.tsx b/packages/@react-aria/overlays/stories/UseOverlayPosition.stories.tsx index 2fd4b73963b..d7a4cb209f6 100644 --- a/packages/@react-aria/overlays/stories/UseOverlayPosition.stories.tsx +++ b/packages/@react-aria/overlays/stories/UseOverlayPosition.stories.tsx @@ -15,7 +15,7 @@ import {Placement} from '@react-types/overlays'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; import {useOverlayPosition, useOverlayTrigger} from '../src'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; function Trigger(props: { withPortal: boolean, diff --git a/packages/@react-aria/overlays/test/useModalOverlay.test.js b/packages/@react-aria/overlays/test/useModalOverlay.test.js index 17a40e7c969..6d23a93dda4 100644 --- a/packages/@react-aria/overlays/test/useModalOverlay.test.js +++ b/packages/@react-aria/overlays/test/useModalOverlay.test.js @@ -2,7 +2,7 @@ import {fireEvent, installMouseEvent, installPointerEvent, render} from '@react- import {mergeProps} from '@react-aria-nutrient/utils'; import React, {useRef} from 'react'; import {useModalOverlay} from '..'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; function Example(props) { let ref = useRef(); diff --git a/packages/@react-aria/overlays/test/useOverlayTrigger.test.js b/packages/@react-aria/overlays/test/useOverlayTrigger.test.js index 869f4adf7b3..6f9ffc43575 100644 --- a/packages/@react-aria/overlays/test/useOverlayTrigger.test.js +++ b/packages/@react-aria/overlays/test/useOverlayTrigger.test.js @@ -13,7 +13,7 @@ import {fireEvent, render} from '@react-spectrum/test-utils-internal'; import React, {useRef} from 'react'; import {useOverlayPosition, useOverlayTrigger} from '../'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; function Example(props) { let ref = useRef(); diff --git a/packages/@react-aria/overlays/test/usePopover.test.tsx b/packages/@react-aria/overlays/test/usePopover.test.tsx index 1b65f9edf23..99c02e34ab6 100644 --- a/packages/@react-aria/overlays/test/usePopover.test.tsx +++ b/packages/@react-aria/overlays/test/usePopover.test.tsx @@ -11,7 +11,7 @@ */ import {fireEvent, render} from '@react-spectrum/test-utils-internal'; -import {type OverlayTriggerProps, useOverlayTriggerState} from '@react-stately/overlays'; +import {type OverlayTriggerProps, useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import React, {useRef} from 'react'; import {useOverlayTrigger, usePopover} from '../'; diff --git a/packages/@react-aria/radio/docs/useRadioGroup.mdx b/packages/@react-aria/radio/docs/useRadioGroup.mdx index 305ffb918c6..2e809d1e427 100644 --- a/packages/@react-aria/radio/docs/useRadioGroup.mdx +++ b/packages/@react-aria/radio/docs/useRadioGroup.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/radio'; import hiddenDocs from 'docs:@react-aria-nutrient/visually-hidden'; import focusDocs from 'docs:@react-aria-nutrient/focus'; -import statelyDocs from 'docs:@react-stately/radio'; +import statelyDocs from 'docs:@react-stately-nutrient/radio'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/radio/package.json'; @@ -83,7 +83,7 @@ onto the appropriate element: Selection state is managed by the -hook in `@react-stately/radio`. The state object should be passed as an option to `useRadio`. +hook in `@react-stately-nutrient/radio`. The state object should be passed as an option to `useRadio`. Individual radio buttons must have a visual label. If the radio group does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify the element to assistive @@ -97,7 +97,7 @@ for the radio. ```tsx example import {useRadioGroup, useRadio} from '@react-aria-nutrient/radio'; -import {useRadioGroupState} from '@react-stately/radio'; +import {useRadioGroupState} from '@react-stately-nutrient/radio'; let RadioContext = React.createContext(null); diff --git a/packages/@react-aria/radio/package.json b/packages/@react-aria/radio/package.json index 1856cae9db5..e424329e99f 100644 --- a/packages/@react-aria/radio/package.json +++ b/packages/@react-aria/radio/package.json @@ -28,7 +28,7 @@ "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/label": "^3.7.16", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/radio": "^3.10.11", + "@react-stately-nutrient/radio": "^3.10.11", "@react-types/radio": "^3.8.7", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/radio/src/useRadio.ts b/packages/@react-aria/radio/src/useRadio.ts index b681c585581..9db90ab3585 100644 --- a/packages/@react-aria/radio/src/useRadio.ts +++ b/packages/@react-aria/radio/src/useRadio.ts @@ -14,7 +14,7 @@ import {AriaRadioProps} from '@react-types/radio'; import {filterDOMProps, mergeProps, useFormReset} from '@react-aria-nutrient/utils'; import {InputHTMLAttributes, LabelHTMLAttributes} from 'react'; import {radioGroupData} from './utils'; -import {RadioGroupState} from '@react-stately/radio'; +import {RadioGroupState} from '@react-stately-nutrient/radio'; import {RefObject} from '@react-types/shared'; import {useFocusable, usePress} from '@react-aria-nutrient/interactions'; import {useFormValidation} from '@react-aria-nutrient/form'; diff --git a/packages/@react-aria/radio/src/useRadioGroup.ts b/packages/@react-aria/radio/src/useRadioGroup.ts index b5b5a936eb5..038c917ce82 100644 --- a/packages/@react-aria/radio/src/useRadioGroup.ts +++ b/packages/@react-aria/radio/src/useRadioGroup.ts @@ -15,7 +15,7 @@ import {DOMAttributes, ValidationResult} from '@react-types/shared'; import {filterDOMProps, mergeProps, useId} from '@react-aria-nutrient/utils'; import {getFocusableTreeWalker} from '@react-aria-nutrient/focus'; import {radioGroupData} from './utils'; -import {RadioGroupState} from '@react-stately/radio'; +import {RadioGroupState} from '@react-stately-nutrient/radio'; import {useField} from '@react-aria-nutrient/label'; import {useFocusWithin} from '@react-aria-nutrient/interactions'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/radio/src/utils.ts b/packages/@react-aria/radio/src/utils.ts index 01fcfc88a52..8a232a48fe0 100644 --- a/packages/@react-aria/radio/src/utils.ts +++ b/packages/@react-aria/radio/src/utils.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {RadioGroupState} from '@react-stately/radio'; +import {RadioGroupState} from '@react-stately-nutrient/radio'; interface RadioGroupData { name: string, diff --git a/packages/@react-aria/searchfield/docs/useSearchField.mdx b/packages/@react-aria/searchfield/docs/useSearchField.mdx index 7976e2f0c0d..ca51b73796b 100644 --- a/packages/@react-aria/searchfield/docs/useSearchField.mdx +++ b/packages/@react-aria/searchfield/docs/useSearchField.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/searchfield'; -import statelyDocs from 'docs:@react-stately/searchfield'; +import statelyDocs from 'docs:@react-stately-nutrient/searchfield'; import buttonDocs from 'docs:@react-aria-nutrient/button'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; @@ -72,7 +72,7 @@ input via the `aria-describedby` attribute. State is managed by the -hook in `@react-stately/searchfield`. The state object should be passed as an option to `useSearchField`. +hook in `@react-stately-nutrient/searchfield`. The state object should be passed as an option to `useSearchField`. If there is no visual label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify the element to screen readers. @@ -83,7 +83,7 @@ to identify the element to screen readers. ```tsx example import {useSearchField} from '@react-aria-nutrient/searchfield'; -import {useSearchFieldState} from '@react-stately/searchfield'; +import {useSearchFieldState} from '@react-stately-nutrient/searchfield'; function SearchField(props) { let {label} = props; diff --git a/packages/@react-aria/searchfield/package.json b/packages/@react-aria/searchfield/package.json index 5a8bdc3c151..b0f78a6d1d7 100644 --- a/packages/@react-aria/searchfield/package.json +++ b/packages/@react-aria/searchfield/package.json @@ -25,7 +25,7 @@ "@react-aria-nutrient/i18n": "^3.12.7", "@react-aria-nutrient/textfield": "^3.17.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/searchfield": "^3.5.10", + "@react-stately-nutrient/searchfield": "^3.5.10", "@react-types/button": "^3.11.0", "@react-types/searchfield": "^3.6.0", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/searchfield/src/useSearchField.ts b/packages/@react-aria/searchfield/src/useSearchField.ts index 1d4ea213759..46efb624b8a 100644 --- a/packages/@react-aria/searchfield/src/useSearchField.ts +++ b/packages/@react-aria/searchfield/src/useSearchField.ts @@ -17,7 +17,7 @@ import {DOMAttributes, RefObject, ValidationResult} from '@react-types/shared'; import {InputHTMLAttributes, LabelHTMLAttributes} from 'react'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {SearchFieldState} from '@react-stately/searchfield'; +import {SearchFieldState} from '@react-stately-nutrient/searchfield'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useTextField} from '@react-aria-nutrient/textfield'; diff --git a/packages/@react-aria/select/docs/useSelect.mdx b/packages/@react-aria/select/docs/useSelect.mdx index 05d43fbde51..ac61e66001c 100644 --- a/packages/@react-aria/select/docs/useSelect.mdx +++ b/packages/@react-aria/select/docs/useSelect.mdx @@ -12,8 +12,8 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/select'; import collectionsDocs from 'docs:@react-types/shared/src/collections.d.ts'; -import selectionDocs from 'docs:@react-stately/selection'; -import statelyDocs from 'docs:@react-stately/select'; +import selectionDocs from 'docs:@react-stately-nutrient/selection'; +import statelyDocs from 'docs:@react-stately-nutrient/select'; import overlaysDocs from 'docs:@react-aria-nutrient/overlays'; import focusDocs from 'docs:@react-aria-nutrient/focus'; import listboxDocs from 'docs:@react-aria-nutrient/listbox'; @@ -88,7 +88,7 @@ input via the `aria-describedby` attribute. State is managed by the -hook from `@react-stately/select`. The state object should be passed as an option to `useSelect` +hook from `@react-stately-nutrient/select`. The state object should be passed as an option to `useSelect` If a select does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify it to assistive technology. @@ -100,7 +100,7 @@ navigation and other interactions. It does this using the from -`@react-stately/select` implements a JSX based interface for building collections instead. +`@react-stately-nutrient/select` implements a JSX based interface for building collections instead. See [Collection Components](/react-stately/collections.html) for more information, and [Collection Interface](/react-stately/Collection.html) for internal details. @@ -128,8 +128,8 @@ options. For an example of the description and error message elements, see [useT ```tsx example export=true import {HiddenSelect, useSelect} from '@react-aria-nutrient/select'; -import {Item} from '@react-stately/collections'; -import {useSelectState} from '@react-stately/select'; +import {Item} from '@react-stately-nutrient/collections'; +import {useSelectState} from '@react-stately-nutrient/select'; // Reuse the ListBox, Popover, and Button from your component library. See below for details. import {ListBox, Popover, Button} from 'your-component-library'; @@ -427,7 +427,7 @@ of data from a server. You may additionally want to display a spinner to indicat state to the user, or support features like infinite scroll to load more data. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; function AsyncLoadingExample() { let list = useAsyncList({ diff --git a/packages/@react-aria/select/package.json b/packages/@react-aria/select/package.json index 11432171c3a..099a92c47f3 100644 --- a/packages/@react-aria/select/package.json +++ b/packages/@react-aria/select/package.json @@ -31,7 +31,7 @@ "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", "@react-aria-nutrient/visually-hidden": "^3.8.21", - "@react-stately/select": "^3.6.11", + "@react-stately-nutrient/select": "^3.6.11", "@react-types/button": "^3.11.0", "@react-types/select": "^3.9.10", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/select/src/HiddenSelect.tsx b/packages/@react-aria/select/src/HiddenSelect.tsx index 3c668c26a0f..b332d27c019 100644 --- a/packages/@react-aria/select/src/HiddenSelect.tsx +++ b/packages/@react-aria/select/src/HiddenSelect.tsx @@ -13,7 +13,7 @@ import {FocusableElement, RefObject} from '@react-types/shared'; import React, {ReactNode, useRef} from 'react'; import {selectData} from './useSelect'; -import {SelectState} from '@react-stately/select'; +import {SelectState} from '@react-stately-nutrient/select'; import {useFormReset} from '@react-aria-nutrient/utils'; import {useFormValidation} from '@react-aria-nutrient/form'; import {useVisuallyHidden} from '@react-aria-nutrient/visually-hidden'; diff --git a/packages/@react-aria/select/src/useSelect.ts b/packages/@react-aria/select/src/useSelect.ts index 6fbd3b91cc0..7c9ba6bd71d 100644 --- a/packages/@react-aria/select/src/useSelect.ts +++ b/packages/@react-aria/select/src/useSelect.ts @@ -17,7 +17,7 @@ import {chain, filterDOMProps, mergeProps, useId} from '@react-aria-nutrient/uti import {DOMAttributes, KeyboardDelegate, RefObject, ValidationResult} from '@react-types/shared'; import {FocusEvent, useMemo} from 'react'; import {ListKeyboardDelegate, useTypeSelect} from '@react-aria-nutrient/selection'; -import {SelectState} from '@react-stately/select'; +import {SelectState} from '@react-stately-nutrient/select'; import {setInteractionModality} from '@react-aria-nutrient/interactions'; import {useCollator} from '@react-aria-nutrient/i18n'; import {useField} from '@react-aria-nutrient/label'; diff --git a/packages/@react-aria/select/stories/example.tsx b/packages/@react-aria/select/stories/example.tsx index f82f5a58a6a..48b7f82b2c6 100644 --- a/packages/@react-aria/select/stories/example.tsx +++ b/packages/@react-aria/select/stories/example.tsx @@ -16,7 +16,7 @@ import {HiddenSelect, useSelect} from '@react-aria-nutrient/select'; import React from 'react'; import {useButton} from '@react-aria-nutrient/button'; import {useListBox, useOption} from '@react-aria-nutrient/listbox'; -import {useSelectState} from '@react-stately/select'; +import {useSelectState} from '@react-stately-nutrient/select'; export function Select(props) { // Create state based on the incoming props diff --git a/packages/@react-aria/select/stories/useSelect.stories.tsx b/packages/@react-aria/select/stories/useSelect.stories.tsx index 68df25047a0..2982faf5684 100644 --- a/packages/@react-aria/select/stories/useSelect.stories.tsx +++ b/packages/@react-aria/select/stories/useSelect.stories.tsx @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; import {Select} from './example'; diff --git a/packages/@react-aria/select/test/HiddenSelect.test.tsx b/packages/@react-aria/select/test/HiddenSelect.test.tsx index eac596cace7..b1829f927fc 100644 --- a/packages/@react-aria/select/test/HiddenSelect.test.tsx +++ b/packages/@react-aria/select/test/HiddenSelect.test.tsx @@ -3,7 +3,7 @@ import {Item} from 'react-stately'; import {pointerMap} from '@react-spectrum/test-utils-internal'; import React, {useRef} from 'react'; import {render, screen} from '@testing-library/react'; -import {SelectProps, useSelectState} from '@react-stately/select'; +import {SelectProps, useSelectState} from '@react-stately-nutrient/select'; import userEvent from '@testing-library/user-event'; const HiddenSelectExample = (props: Partial> & { hiddenProps?: Partial> }) => { diff --git a/packages/@react-aria/selection/package.json b/packages/@react-aria/selection/package.json index 7e1250e0ed9..a248aec0f52 100644 --- a/packages/@react-aria/selection/package.json +++ b/packages/@react-aria/selection/package.json @@ -26,7 +26,7 @@ "@react-aria-nutrient/i18n": "^3.12.7", "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/selection": "^3.20.0", + "@react-stately-nutrient/selection": "^3.20.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-aria/selection/src/useSelectableCollection.ts b/packages/@react-aria/selection/src/useSelectableCollection.ts index 3175e543db6..a410c1ec9a4 100644 --- a/packages/@react-aria/selection/src/useSelectableCollection.ts +++ b/packages/@react-aria/selection/src/useSelectableCollection.ts @@ -17,7 +17,7 @@ import {FocusEvent, KeyboardEvent, useEffect, useRef} from 'react'; import {focusSafely, getInteractionModality} from '@react-aria-nutrient/interactions'; import {getFocusableTreeWalker, moveVirtualFocus} from '@react-aria-nutrient/focus'; import {getItemElement, isNonContiguousSelectionModifier, useCollectionId} from './utils'; -import {MultipleSelectionManager} from '@react-stately/selection'; +import {MultipleSelectionManager} from '@react-stately-nutrient/selection'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useTypeSelect} from './useTypeSelect'; diff --git a/packages/@react-aria/selection/src/useSelectableItem.ts b/packages/@react-aria/selection/src/useSelectableItem.ts index e0772a9129b..d4670efcea7 100644 --- a/packages/@react-aria/selection/src/useSelectableItem.ts +++ b/packages/@react-aria/selection/src/useSelectableItem.ts @@ -15,7 +15,7 @@ import {focusSafely, PressHookProps, useLongPress, usePress} from '@react-aria-n import {getCollectionId, isNonContiguousSelectionModifier} from './utils'; import {isCtrlKeyPressed, mergeProps, openLink, useId, useRouter} from '@react-aria-nutrient/utils'; import {moveVirtualFocus} from '@react-aria-nutrient/focus'; -import {MultipleSelectionManager} from '@react-stately/selection'; +import {MultipleSelectionManager} from '@react-stately-nutrient/selection'; import {useEffect, useRef} from 'react'; export interface SelectableItemOptions extends DOMProps { diff --git a/packages/@react-aria/selection/src/useTypeSelect.ts b/packages/@react-aria/selection/src/useTypeSelect.ts index 01cea26fc57..696c66799b3 100644 --- a/packages/@react-aria/selection/src/useTypeSelect.ts +++ b/packages/@react-aria/selection/src/useTypeSelect.ts @@ -12,7 +12,7 @@ import {DOMAttributes, Key, KeyboardDelegate} from '@react-types/shared'; import {KeyboardEvent, useRef} from 'react'; -import {MultipleSelectionManager} from '@react-stately/selection'; +import {MultipleSelectionManager} from '@react-stately-nutrient/selection'; /** * Controls how long to wait before clearing the typeahead buffer. diff --git a/packages/@react-aria/selection/stories/List.tsx b/packages/@react-aria/selection/stories/List.tsx index 0fdc3d1cc52..a22ae84050d 100644 --- a/packages/@react-aria/selection/stories/List.tsx +++ b/packages/@react-aria/selection/stories/List.tsx @@ -5,7 +5,7 @@ import { Node, SelectionBehavior } from '@react-types/shared'; -import {ListState, useListState} from '@react-stately/list'; +import {ListState, useListState} from '@react-stately-nutrient/list'; import React, {useRef} from 'react'; import {useSelectableItem, useSelectableList} from '@react-aria-nutrient/selection'; diff --git a/packages/@react-aria/selection/stories/useSelectableList.stories.tsx b/packages/@react-aria/selection/stories/useSelectableList.stories.tsx index 3a310079512..b376c4ce198 100644 --- a/packages/@react-aria/selection/stories/useSelectableList.stories.tsx +++ b/packages/@react-aria/selection/stories/useSelectableList.stories.tsx @@ -13,7 +13,7 @@ import {CollectionBase, Node} from '@react-types/shared'; import {Item} from '@react-spectrum/actiongroup'; import {List} from './List'; -import {ListState, useListState} from '@react-stately/list'; +import {ListState, useListState} from '@react-stately-nutrient/list'; import * as React from 'react'; import {Section} from '@react-spectrum/menu'; import styles from './styles.css'; diff --git a/packages/@react-aria/selection/test/useSelectableCollection.test.js b/packages/@react-aria/selection/test/useSelectableCollection.test.js index b83705e5248..4e57271d6d0 100644 --- a/packages/@react-aria/selection/test/useSelectableCollection.test.js +++ b/packages/@react-aria/selection/test/useSelectableCollection.test.js @@ -11,7 +11,7 @@ */ import {fireEvent, installPointerEvent, pointerMap, render, simulateDesktop, simulateMobile, within} from '@react-spectrum/test-utils-internal'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {List} from '../stories/List'; import React from 'react'; import userEvent from '@testing-library/user-event'; diff --git a/packages/@react-aria/slider/docs/useSlider.mdx b/packages/@react-aria/slider/docs/useSlider.mdx index 424650e2f06..5f03fa84d23 100644 --- a/packages/@react-aria/slider/docs/useSlider.mdx +++ b/packages/@react-aria/slider/docs/useSlider.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/slider'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/slider/package.json'; -import statelyDocs from 'docs:@react-stately/slider'; +import statelyDocs from 'docs:@react-stately-nutrient/slider'; import i18nDocs from 'docs:@react-aria-nutrient/i18n'; import Anatomy from './anatomy.svg'; import ChevronRight from '@spectrum-icons/workflow/ChevronRight'; @@ -111,7 +111,7 @@ display using a different color when it is keyboard focused (try tabbing to it). ```tsx example export=true import {useSlider, useSliderThumb} from '@react-aria-nutrient/slider'; -import {useSliderState} from '@react-stately/slider'; +import {useSliderState} from '@react-stately-nutrient/slider'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; import {mergeProps} from '@react-aria-nutrient/utils'; diff --git a/packages/@react-aria/slider/package.json b/packages/@react-aria/slider/package.json index 79b007be7ea..4eb10b16a29 100644 --- a/packages/@react-aria/slider/package.json +++ b/packages/@react-aria/slider/package.json @@ -26,7 +26,7 @@ "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/label": "^3.7.16", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/slider": "^3.6.2", + "@react-stately-nutrient/slider": "^3.6.2", "@react-types/shared": "^3.28.0", "@react-types/slider": "^3.7.9", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/slider/src/useSlider.ts b/packages/@react-aria/slider/src/useSlider.ts index 1abfe4051cf..7378ae09298 100644 --- a/packages/@react-aria/slider/src/useSlider.ts +++ b/packages/@react-aria/slider/src/useSlider.ts @@ -16,7 +16,7 @@ import {DOMAttributes, RefObject} from '@react-types/shared'; import {getSliderThumbId, sliderData} from './utils'; import React, {LabelHTMLAttributes, OutputHTMLAttributes, useRef} from 'react'; import {setInteractionModality, useMove} from '@react-aria-nutrient/interactions'; -import {SliderState} from '@react-stately/slider'; +import {SliderState} from '@react-stately-nutrient/slider'; import {useLabel} from '@react-aria-nutrient/label'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/slider/src/useSliderThumb.ts b/packages/@react-aria/slider/src/useSliderThumb.ts index c543302fbb9..e7ff9c6147f 100644 --- a/packages/@react-aria/slider/src/useSliderThumb.ts +++ b/packages/@react-aria/slider/src/useSliderThumb.ts @@ -3,7 +3,7 @@ import {clamp, focusWithoutScrolling, mergeProps, useFormReset, useGlobalListene import {DOMAttributes, RefObject} from '@react-types/shared'; import {getSliderThumbId, sliderData} from './utils'; import React, {ChangeEvent, InputHTMLAttributes, LabelHTMLAttributes, useCallback, useEffect, useRef} from 'react'; -import {SliderState} from '@react-stately/slider'; +import {SliderState} from '@react-stately-nutrient/slider'; import {useFocusable, useKeyboard, useMove} from '@react-aria-nutrient/interactions'; import {useLabel} from '@react-aria-nutrient/label'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/slider/src/utils.ts b/packages/@react-aria/slider/src/utils.ts index 5cb7a0b807d..64ead75fec1 100644 --- a/packages/@react-aria/slider/src/utils.ts +++ b/packages/@react-aria/slider/src/utils.ts @@ -1,4 +1,4 @@ -import {SliderState} from '@react-stately/slider'; +import {SliderState} from '@react-stately-nutrient/slider'; interface SliderData { id: string, diff --git a/packages/@react-aria/slider/stories/StoryMultiSlider.tsx b/packages/@react-aria/slider/stories/StoryMultiSlider.tsx index 102ea697074..512dbb86b6d 100644 --- a/packages/@react-aria/slider/stories/StoryMultiSlider.tsx +++ b/packages/@react-aria/slider/stories/StoryMultiSlider.tsx @@ -14,7 +14,7 @@ import {classNames} from '@react-spectrum/utils'; import {FocusRing} from '@react-aria-nutrient/focus'; import React from 'react'; import {SliderProps, SliderThumbProps} from '@react-types/slider'; -import {SliderState, useSliderState} from '@react-stately/slider'; +import {SliderState, useSliderState} from '@react-stately-nutrient/slider'; import styles from './story-slider.css'; import {useNumberFormatter} from '@react-aria-nutrient/i18n'; import {useSlider, useSliderThumb} from '@react-aria-nutrient/slider'; diff --git a/packages/@react-aria/slider/stories/StoryRangeSlider.tsx b/packages/@react-aria/slider/stories/StoryRangeSlider.tsx index 280db99e1af..0ce1f8d58b9 100644 --- a/packages/@react-aria/slider/stories/StoryRangeSlider.tsx +++ b/packages/@react-aria/slider/stories/StoryRangeSlider.tsx @@ -4,7 +4,7 @@ import React from 'react'; import styles from './story-slider.css'; import {useNumberFormatter} from '@react-aria-nutrient/i18n'; import {useSlider, useSliderThumb} from '@react-aria-nutrient/slider'; -import {useSliderState} from '@react-stately/slider'; +import {useSliderState} from '@react-stately-nutrient/slider'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; diff --git a/packages/@react-aria/slider/stories/StorySlider.tsx b/packages/@react-aria/slider/stories/StorySlider.tsx index 96a3c6dffdc..dc3c9543ca5 100644 --- a/packages/@react-aria/slider/stories/StorySlider.tsx +++ b/packages/@react-aria/slider/stories/StorySlider.tsx @@ -16,7 +16,7 @@ import React from 'react'; import styles from './story-slider.css'; import {useNumberFormatter} from '@react-aria-nutrient/i18n'; import {useSlider, useSliderThumb} from '@react-aria-nutrient/slider'; -import {useSliderState} from '@react-stately/slider'; +import {useSliderState} from '@react-stately-nutrient/slider'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; interface StorySliderProps extends AriaSliderProps { diff --git a/packages/@react-aria/slider/test/useSlider.test.js b/packages/@react-aria/slider/test/useSlider.test.js index 7bcaed97e0d..b1993de8b36 100644 --- a/packages/@react-aria/slider/test/useSlider.test.js +++ b/packages/@react-aria/slider/test/useSlider.test.js @@ -2,7 +2,7 @@ import {fireEvent, installMouseEvent, installPointerEvent, render, renderHook, s import * as React from 'react'; import {useRef} from 'react'; import {useSlider, useSliderThumb} from '../src'; -import {useSliderState} from '@react-stately/slider'; +import {useSliderState} from '@react-stately-nutrient/slider'; describe('useSlider', () => { let numberFormatter = new Intl.NumberFormat('en-US', {}); diff --git a/packages/@react-aria/slider/test/useSliderThumb.test.js b/packages/@react-aria/slider/test/useSliderThumb.test.js index eefe094d5b6..64bacb6c3a5 100644 --- a/packages/@react-aria/slider/test/useSliderThumb.test.js +++ b/packages/@react-aria/slider/test/useSliderThumb.test.js @@ -3,7 +3,7 @@ import * as React from 'react'; import {useRef} from 'react'; import userEvent from '@testing-library/user-event'; import {useSlider, useSliderThumb} from '../src'; -import {useSliderState} from '@react-stately/slider'; +import {useSliderState} from '@react-stately-nutrient/slider'; describe('useSliderThumb', () => { let numberFormatter = new Intl.NumberFormat('en-US', {}); diff --git a/packages/@react-aria/steplist/package.json b/packages/@react-aria/steplist/package.json index 10a9cad02c9..438b2d0c1bb 100644 --- a/packages/@react-aria/steplist/package.json +++ b/packages/@react-aria/steplist/package.json @@ -25,7 +25,7 @@ "@react-aria-nutrient/i18n": "^3.12.7", "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/steplist": "3.0.0-alpha.12", + "@react-stately-nutrient/steplist": "3.0.0-alpha.12", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-aria/steplist/src/useStepList.ts b/packages/@react-aria/steplist/src/useStepList.ts index d8977600aa2..2c679eaf46b 100644 --- a/packages/@react-aria/steplist/src/useStepList.ts +++ b/packages/@react-aria/steplist/src/useStepList.ts @@ -15,7 +15,7 @@ import {filterDOMProps, mergeProps} from '@react-aria-nutrient/utils'; import {HTMLAttributes} from 'react'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {StepListProps, StepListState} from '@react-stately/steplist'; +import {StepListProps, StepListState} from '@react-stately-nutrient/steplist'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useSelectableList} from '@react-aria-nutrient/selection'; diff --git a/packages/@react-aria/steplist/src/useStepListItem.ts b/packages/@react-aria/steplist/src/useStepListItem.ts index f529eddf640..f161370fbea 100644 --- a/packages/@react-aria/steplist/src/useStepListItem.ts +++ b/packages/@react-aria/steplist/src/useStepListItem.ts @@ -12,7 +12,7 @@ import {HTMLAttributes} from 'react'; import {Key, RefObject} from '@react-types/shared'; -import {StepListState} from '@react-stately/steplist'; +import {StepListState} from '@react-stately-nutrient/steplist'; import {useSelectableItem} from '@react-aria-nutrient/selection'; export interface AriaStepListItemProps { diff --git a/packages/@react-aria/switch/docs/useSwitch.mdx b/packages/@react-aria/switch/docs/useSwitch.mdx index 5ff96cd9a15..fd43f7a1aeb 100644 --- a/packages/@react-aria/switch/docs/useSwitch.mdx +++ b/packages/@react-aria/switch/docs/useSwitch.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/switch'; import hiddenDocs from 'docs:@react-aria-nutrient/visually-hidden'; import focusDocs from 'docs:@react-aria-nutrient/focus'; -import statelyDocs from 'docs:@react-stately/toggle'; +import statelyDocs from 'docs:@react-stately-nutrient/toggle'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/switch/package.json'; @@ -66,7 +66,7 @@ to toggle the selection state, or use the Tab key to naviga Selection state is managed by the -hook in `@react-stately/toggle`. The state object should be passed as an option to `useSwitch`. +hook in `@react-stately-nutrient/toggle`. The state object should be passed as an option to `useSwitch`. In most cases, switches should have a visual label. If the switch does not have a visible label, an `aria-label` or `aria-labelledby` prop must be passed instead to identify the element to assistive @@ -90,7 +90,7 @@ not with a mouse or touch. ```tsx example export=true import {useSwitch} from '@react-aria-nutrient/switch'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; import {useFocusRing} from '@react-aria-nutrient/focus'; function Switch(props) { diff --git a/packages/@react-aria/switch/package.json b/packages/@react-aria/switch/package.json index 4a084ffbc9f..5c522fe3b33 100644 --- a/packages/@react-aria/switch/package.json +++ b/packages/@react-aria/switch/package.json @@ -23,7 +23,7 @@ }, "dependencies": { "@react-aria-nutrient/toggle": "^3.11.1", - "@react-stately/toggle": "^3.8.2", + "@react-stately-nutrient/toggle": "^3.8.2", "@react-types/shared": "^3.28.0", "@react-types/switch": "^3.5.9", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/switch/src/useSwitch.ts b/packages/@react-aria/switch/src/useSwitch.ts index 14b09d5759d..9f6ed549b77 100644 --- a/packages/@react-aria/switch/src/useSwitch.ts +++ b/packages/@react-aria/switch/src/useSwitch.ts @@ -13,7 +13,7 @@ import {AriaSwitchProps} from '@react-types/switch'; import {InputHTMLAttributes, LabelHTMLAttributes} from 'react'; import {RefObject} from '@react-types/shared'; -import {ToggleState} from '@react-stately/toggle'; +import {ToggleState} from '@react-stately-nutrient/toggle'; import {useToggle} from '@react-aria-nutrient/toggle'; export interface SwitchAria { diff --git a/packages/@react-aria/table/docs/useTable.mdx b/packages/@react-aria/table/docs/useTable.mdx index c92c4612ae1..86e41c3492a 100644 --- a/packages/@react-aria/table/docs/useTable.mdx +++ b/packages/@react-aria/table/docs/useTable.mdx @@ -12,8 +12,8 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/table'; import collectionsDocs from 'docs:@react-types/shared/src/collections.d.ts'; -import selectionDocs from 'docs:@react-stately/selection'; -import statelyDocs from 'docs:@react-stately/table'; +import selectionDocs from 'docs:@react-stately-nutrient/selection'; +import statelyDocs from 'docs:@react-stately-nutrient/table'; import focusDocs from 'docs:@react-aria-nutrient/focus'; import checkboxDocs from 'docs:@react-aria-nutrient/checkbox'; import utilsDocs from 'docs:@react-aria-nutrient/utils'; @@ -93,7 +93,7 @@ to assistive technology using ARIA. -hook from `@react-stately/table`. The state object should be passed as an option to each of the above hooks where applicable. +hook from `@react-stately-nutrient/table`. The state object should be passed as an option to each of the above hooks where applicable. Note that an `aria-label` or `aria-labelledby` must be passed to the table to identify the element to assistive technology. @@ -105,7 +105,7 @@ the from -`@react-stately/table` implements a JSX based interface for building collections instead. +`@react-stately-nutrient/table` implements a JSX based interface for building collections instead. See [Collection Components](/react-stately/collections.html) for more information, and [Collection Interface](/react-stately/Collection.html) for internal details. @@ -131,7 +131,7 @@ and manage state such as the focused row/cell, selection, and sort column/direct the rows and cells of the table and render the relevant components, which we'll define below. ```tsx example export=true render=false -import {Cell, Column, Row, TableBody, TableHeader, useTableState} from '@react-stately/table'; +import {Cell, Column, Row, TableBody, TableHeader, useTableState} from '@react-stately-nutrient/table'; import {mergeProps} from '@react-aria-nutrient/utils'; import {useRef} from 'react'; import {useFocusRing} from '@react-aria-nutrient/focus'; @@ -489,7 +489,7 @@ hook, and can be shared with many other components. Show code ```tsx example export=true render=false -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; import {useCheckbox} from '@react-aria-nutrient/checkbox'; function Checkbox(props) { @@ -711,7 +711,7 @@ This example performs client side sorting by passing a `sort` function to the [u See the docs for more information on how to perform server side sorting. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string, @@ -869,7 +869,7 @@ let rows = [ ## Resizable Columns For resizable column support, two additional hooks need to be added to the table implementation above. The -hook from `@react-stately/table` is responsible for initializing and tracking the widths of every column in your table, returning functions that you can use to +hook from `@react-stately-nutrient/table` is responsible for initializing and tracking the widths of every column in your table, returning functions that you can use to update the column widths during a column resize operation. Note that this state is supplementary to the state returned by . The second column resizing hook is . This hook handles the interactions for a table column's resizer @@ -887,7 +887,7 @@ The various style changes below are to add a wrapper div so the table is scrolla ```tsx example export=true render=false import {useCallback} from 'react'; -import {useTableColumnResizeState} from '@react-stately/table'; +import {useTableColumnResizeState} from '@react-stately-nutrient/table'; function ResizableColumnsTable(props) { let state = useTableState(props); diff --git a/packages/@react-aria/table/package.json b/packages/@react-aria/table/package.json index b892eb185a0..5e8a24e48e5 100644 --- a/packages/@react-aria/table/package.json +++ b/packages/@react-aria/table/package.json @@ -29,9 +29,9 @@ "@react-aria-nutrient/live-announcer": "^3.4.1", "@react-aria-nutrient/utils": "^3.28.1", "@react-aria-nutrient/visually-hidden": "^3.8.21", - "@react-stately/collections": "^3.12.2", - "@react-stately/flags": "^3.1.0", - "@react-stately/table": "^3.14.0", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/flags": "^3.1.0", + "@react-stately-nutrient/table": "^3.14.0", "@react-types/checkbox": "^3.9.2", "@react-types/grid": "^3.3.0", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-aria/table/src/TableKeyboardDelegate.ts b/packages/@react-aria/table/src/TableKeyboardDelegate.ts index 508e770a848..fa57f2909c6 100644 --- a/packages/@react-aria/table/src/TableKeyboardDelegate.ts +++ b/packages/@react-aria/table/src/TableKeyboardDelegate.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {getChildNodes, getFirstItem} from '@react-stately/collections'; +import {getChildNodes, getFirstItem} from '@react-stately-nutrient/collections'; import {GridKeyboardDelegate} from '@react-aria-nutrient/grid'; import {Key, Node} from '@react-types/shared'; import {TableCollection} from '@react-types/table'; diff --git a/packages/@react-aria/table/src/useTable.ts b/packages/@react-aria/table/src/useTable.ts index 4959805914b..afa58ad55dc 100644 --- a/packages/@react-aria/table/src/useTable.ts +++ b/packages/@react-aria/table/src/useTable.ts @@ -18,8 +18,8 @@ import intlMessages from '../intl/*.json'; import {Key, LayoutDelegate, Rect, RefObject, Size} from '@react-types/shared'; import {mergeProps, useDescription, useId, useUpdateEffect} from '@react-aria-nutrient/utils'; import {TableKeyboardDelegate} from './TableKeyboardDelegate'; -import {tableNestedRows} from '@react-stately/flags'; -import {TableState, TreeGridState} from '@react-stately/table'; +import {tableNestedRows} from '@react-stately-nutrient/flags'; +import {TableState, TreeGridState} from '@react-stately-nutrient/table'; import {useCollator, useLocale, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useMemo} from 'react'; diff --git a/packages/@react-aria/table/src/useTableCell.ts b/packages/@react-aria/table/src/useTableCell.ts index 1fd9d7c9641..23d86e5a762 100644 --- a/packages/@react-aria/table/src/useTableCell.ts +++ b/packages/@react-aria/table/src/useTableCell.ts @@ -13,7 +13,7 @@ import {DOMAttributes, FocusableElement, RefObject} from '@react-types/shared'; import {getCellId} from './utils'; import {GridNode} from '@react-types/grid'; -import {TableState} from '@react-stately/table'; +import {TableState} from '@react-stately-nutrient/table'; import {useGridCell} from '@react-aria-nutrient/grid'; export interface AriaTableCellProps { diff --git a/packages/@react-aria/table/src/useTableColumnHeader.ts b/packages/@react-aria/table/src/useTableColumnHeader.ts index cbabb12ba70..f84875a79c7 100644 --- a/packages/@react-aria/table/src/useTableColumnHeader.ts +++ b/packages/@react-aria/table/src/useTableColumnHeader.ts @@ -16,7 +16,7 @@ import {GridNode} from '@react-types/grid'; // @ts-ignore import intlMessages from '../intl/*.json'; import {isAndroid, mergeProps, useDescription} from '@react-aria-nutrient/utils'; -import {TableState} from '@react-stately/table'; +import {TableState} from '@react-stately-nutrient/table'; import {useEffect} from 'react'; import {useFocusable, usePress} from '@react-aria-nutrient/interactions'; import {useGridCell} from '@react-aria-nutrient/grid'; diff --git a/packages/@react-aria/table/src/useTableColumnResize.ts b/packages/@react-aria/table/src/useTableColumnResize.ts index dead8d517c2..2f7dc0e9cb2 100644 --- a/packages/@react-aria/table/src/useTableColumnResize.ts +++ b/packages/@react-aria/table/src/useTableColumnResize.ts @@ -19,7 +19,7 @@ import {GridNode} from '@react-types/grid'; // @ts-ignore import intlMessages from '../intl/*.json'; import {mergeProps, useDescription, useEffectEvent, useId} from '@react-aria-nutrient/utils'; -import {TableColumnResizeState} from '@react-stately/table'; +import {TableColumnResizeState} from '@react-stately-nutrient/table'; import {useLocale, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useVisuallyHidden} from '@react-aria-nutrient/visually-hidden'; diff --git a/packages/@react-aria/table/src/useTableHeaderRow.ts b/packages/@react-aria/table/src/useTableHeaderRow.ts index d20b4bf8dde..415affc34f5 100644 --- a/packages/@react-aria/table/src/useTableHeaderRow.ts +++ b/packages/@react-aria/table/src/useTableHeaderRow.ts @@ -12,8 +12,8 @@ import {DOMAttributes, RefObject} from '@react-types/shared'; import {GridRowProps} from '@react-aria-nutrient/grid'; -import {tableNestedRows} from '@react-stately/flags'; -import {TableState} from '@react-stately/table'; +import {tableNestedRows} from '@react-stately-nutrient/flags'; +import {TableState} from '@react-stately-nutrient/table'; export interface TableHeaderRowAria { /** Props for the grid row element. */ diff --git a/packages/@react-aria/table/src/useTableRow.ts b/packages/@react-aria/table/src/useTableRow.ts index accfc36f059..adb0c19102a 100644 --- a/packages/@react-aria/table/src/useTableRow.ts +++ b/packages/@react-aria/table/src/useTableRow.ts @@ -11,15 +11,15 @@ */ import {FocusableElement, RefObject} from '@react-types/shared'; -import {getLastItem} from '@react-stately/collections'; +import {getLastItem} from '@react-stately-nutrient/collections'; import {getRowLabelledBy} from './utils'; import type {GridNode} from '@react-types/grid'; import {GridRowAria, GridRowProps, useGridRow} from '@react-aria-nutrient/grid'; import {HTMLAttributes} from 'react'; import {mergeProps, useSyntheticLinkProps} from '@react-aria-nutrient/utils'; import {TableCollection} from '@react-types/table'; -import {tableNestedRows} from '@react-stately/flags'; -import {TableState, TreeGridState} from '@react-stately/table'; +import {tableNestedRows} from '@react-stately-nutrient/flags'; +import {TableState, TreeGridState} from '@react-stately-nutrient/table'; import {useLocale} from '@react-aria-nutrient/i18n'; const EXPANSION_KEYS = { diff --git a/packages/@react-aria/table/src/useTableSelectionCheckbox.ts b/packages/@react-aria/table/src/useTableSelectionCheckbox.ts index 07f5198b4de..7e0c5f2e934 100644 --- a/packages/@react-aria/table/src/useTableSelectionCheckbox.ts +++ b/packages/@react-aria/table/src/useTableSelectionCheckbox.ts @@ -15,7 +15,7 @@ import {getRowLabelledBy} from './utils'; // @ts-ignore import intlMessages from '../intl/*.json'; import {Key} from '@react-types/shared'; -import {TableState} from '@react-stately/table'; +import {TableState} from '@react-stately-nutrient/table'; import {useGridSelectionCheckbox} from '@react-aria-nutrient/grid'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/table/src/utils.ts b/packages/@react-aria/table/src/utils.ts index e3f5936ed50..41f59a04727 100644 --- a/packages/@react-aria/table/src/utils.ts +++ b/packages/@react-aria/table/src/utils.ts @@ -11,7 +11,7 @@ */ import {Key} from '@react-types/shared'; -import {TableState} from '@react-stately/table'; +import {TableState} from '@react-stately-nutrient/table'; export const gridIds = new WeakMap, string>(); diff --git a/packages/@react-aria/table/stories/example-backwards-compat.tsx b/packages/@react-aria/table/stories/example-backwards-compat.tsx index 5bcbf703adb..3a52e592f72 100644 --- a/packages/@react-aria/table/stories/example-backwards-compat.tsx +++ b/packages/@react-aria/table/stories/example-backwards-compat.tsx @@ -23,8 +23,8 @@ import { useTableRowGroup, useTableSelectAllCheckbox, useTableSelectionCheckbox } from '../src'; -import {useTableState} from '@react-stately/table'; -import {useToggleState} from '@react-stately/toggle'; +import {useTableState} from '@react-stately-nutrient/table'; +import {useToggleState} from '@react-stately-nutrient/toggle'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; export function Table(props) { diff --git a/packages/@react-aria/table/stories/example-docs.tsx b/packages/@react-aria/table/stories/example-docs.tsx index 3d298ab6610..af9b19036c7 100644 --- a/packages/@react-aria/table/stories/example-docs.tsx +++ b/packages/@react-aria/table/stories/example-docs.tsx @@ -17,7 +17,7 @@ import React, {useCallback, useRef} from 'react'; import {useButton} from '@react-aria-nutrient/react-aria'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {useTable, useTableCell, useTableColumnHeader, useTableColumnResize, useTableHeaderRow, useTableRow, useTableRowGroup} from '@react-aria-nutrient/table'; -import {useTableColumnResizeState, useTableState} from '@react-stately/table'; +import {useTableColumnResizeState, useTableState} from '@react-stately-nutrient/table'; export function Table(props) { let { diff --git a/packages/@react-aria/table/stories/example-resizing.tsx b/packages/@react-aria/table/stories/example-resizing.tsx index 3e55614238d..7e3b68741e2 100644 --- a/packages/@react-aria/table/stories/example-resizing.tsx +++ b/packages/@react-aria/table/stories/example-resizing.tsx @@ -29,8 +29,8 @@ import {mergeProps, useLayoutEffect, useResizeObserver} from '@react-aria-nutrie import React, {useCallback, useMemo, useRef, useState} from 'react'; import styles from '@adobe/spectrum-css-temp/components/table/vars.css'; import {useCheckbox} from '@react-aria-nutrient/checkbox'; -import {useTableColumnResizeState, useTableState} from '@react-stately/table'; -import {useToggleState} from '@react-stately/toggle'; +import {useTableColumnResizeState, useTableState} from '@react-stately-nutrient/table'; +import {useToggleState} from '@react-stately-nutrient/toggle'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; export function Table(props) { diff --git a/packages/@react-aria/table/stories/example.tsx b/packages/@react-aria/table/stories/example.tsx index 201217475eb..d8123fb2828 100644 --- a/packages/@react-aria/table/stories/example.tsx +++ b/packages/@react-aria/table/stories/example.tsx @@ -15,8 +15,8 @@ import React, {useRef, useState} from 'react'; import {useCheckbox} from '@react-aria-nutrient/checkbox'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {useTable, useTableCell, useTableColumnHeader, useTableHeaderRow, useTableRow, useTableRowGroup, useTableSelectAllCheckbox, useTableSelectionCheckbox} from '@react-aria-nutrient/table'; -import {useTableState} from '@react-stately/table'; -import {useToggleState} from '@react-stately/toggle'; +import {useTableState} from '@react-stately-nutrient/table'; +import {useToggleState} from '@react-stately-nutrient/toggle'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; export function Table(props) { diff --git a/packages/@react-aria/table/stories/useTable.stories.tsx b/packages/@react-aria/table/stories/useTable.stories.tsx index 4033fd967fd..ac53500a7b4 100644 --- a/packages/@react-aria/table/stories/useTable.stories.tsx +++ b/packages/@react-aria/table/stories/useTable.stories.tsx @@ -12,7 +12,7 @@ import {action} from '@storybook/addon-actions'; import {Table as BackwardCompatTable} from './example-backwards-compat'; -import {Cell, Column, Row, TableBody, TableHeader} from '@react-stately/table'; +import {Cell, Column, Row, TableBody, TableHeader} from '@react-stately-nutrient/table'; import {ColumnSize} from '@react-types/table'; import {Table as DocsTable} from './example-docs'; import {Key} from '@react-types/shared'; diff --git a/packages/@react-aria/table/test/ariaTableResizing.test.tsx b/packages/@react-aria/table/test/ariaTableResizing.test.tsx index 2726936fbfc..83b4d56d7f6 100644 --- a/packages/@react-aria/table/test/ariaTableResizing.test.tsx +++ b/packages/@react-aria/table/test/ariaTableResizing.test.tsx @@ -11,7 +11,7 @@ */ import {act, fireEvent} from '@react-spectrum/test-utils-internal'; -import {Cell, Column, Row, TableBody, TableHeader} from '@react-stately/table'; +import {Cell, Column, Row, TableBody, TableHeader} from '@react-stately-nutrient/table'; import {composeStories} from '@storybook/react'; import {Key} from '@react-types/shared'; import React from 'react'; diff --git a/packages/@react-aria/table/test/useTable.test.tsx b/packages/@react-aria/table/test/useTable.test.tsx index 184847040b7..078ff0b45b4 100644 --- a/packages/@react-aria/table/test/useTable.test.tsx +++ b/packages/@react-aria/table/test/useTable.test.tsx @@ -12,7 +12,7 @@ jest.mock('@react-aria-nutrient/live-announcer'); import {announce} from '@react-aria-nutrient/live-announcer'; -import {Cell, Column, Row, TableBody, TableHeader, useTableState} from '@react-stately/table'; +import {Cell, Column, Row, TableBody, TableHeader, useTableState} from '@react-stately-nutrient/table'; import {pointerMap, render} from '@react-spectrum/test-utils-internal'; import React, {useRef} from 'react'; import { diff --git a/packages/@react-aria/table/test/useTableBackwardCompat.test.tsx b/packages/@react-aria/table/test/useTableBackwardCompat.test.tsx index 27777bdfdb3..cddfd6668ec 100644 --- a/packages/@react-aria/table/test/useTableBackwardCompat.test.tsx +++ b/packages/@react-aria/table/test/useTableBackwardCompat.test.tsx @@ -12,7 +12,7 @@ jest.mock('@react-aria-nutrient/live-announcer'); import {announce} from '@react-aria-nutrient/live-announcer'; -import {Cell, Column, Row, TableBody, TableHeader, useTableState} from '@react-stately/table'; +import {Cell, Column, Row, TableBody, TableHeader, useTableState} from '@react-stately-nutrient/table'; import {pointerMap, render} from '@react-spectrum/test-utils-internal'; import React, {useRef} from 'react'; import { diff --git a/packages/@react-aria/tabs/docs/useTabList.mdx b/packages/@react-aria/tabs/docs/useTabList.mdx index 60805b696c3..1f9655ab5c3 100644 --- a/packages/@react-aria/tabs/docs/useTabList.mdx +++ b/packages/@react-aria/tabs/docs/useTabList.mdx @@ -12,8 +12,8 @@ export default Layout; import docs from 'docs:@react-aria-nutrient/tabs'; import utilsDocs from 'docs:@react-aria-nutrient/utils'; -import statelyDocs from 'docs:@react-stately/tabs'; -import collectionsDocs from 'docs:@react-stately/collections'; +import statelyDocs from 'docs:@react-stately-nutrient/tabs'; +import collectionsDocs from 'docs:@react-stately-nutrient/collections'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; import packageData from '@react-aria-nutrient/tabs/package.json'; @@ -81,7 +81,7 @@ Each tab can be clicked, tapped, or navigated to via arrow keys. Depending on th State is managed by the -hook in `@react-stately/tabs`. The state object should be passed as an option to `useTabList`, `useTab`, +hook in `@react-stately-nutrient/tabs`. The state object should be passed as an option to `useTabList`, `useTab`, and `useTabPanel`. The component is used to represent each tab, following the [Collections API](../react-stately/collections.html) used by many other components. @@ -90,9 +90,9 @@ is used to represent each tab, following the [Collections API](../react-stately/ This example displays a basic list of tabs. The currently selected tab receives a `tabIndex` of 0 while the rest are set to -1 ensuring that the whole tablist is a single tab stop. The selected tab has a different style so it's obvious which one is currently selected. `useTab` and `useTabPanel` handle associating the tabs and tab panels for assistive technology. The currently selected tab panel is rendered below the list of tabs. The `key` prop on the `TabPanel` element is important to ensure that DOM state (e.g. text field contents) is not shared between unrelated tabs. ```tsx example export=true -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {useTab, useTabList, useTabPanel} from '@react-aria-nutrient/tabs'; -import {useTabListState} from '@react-stately/tabs'; +import {useTabListState} from '@react-stately-nutrient/tabs'; function Tabs(props) { let state = useTabListState(props); diff --git a/packages/@react-aria/tabs/package.json b/packages/@react-aria/tabs/package.json index 43aacf5754a..4c371945c15 100644 --- a/packages/@react-aria/tabs/package.json +++ b/packages/@react-aria/tabs/package.json @@ -26,7 +26,7 @@ "@react-aria-nutrient/i18n": "^3.12.7", "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/tabs": "^3.8.0", + "@react-stately-nutrient/tabs": "^3.8.0", "@react-types/shared": "^3.28.0", "@react-types/tabs": "^3.3.13", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/tabs/src/useTab.ts b/packages/@react-aria/tabs/src/useTab.ts index 420e7bd9fde..519f527878b 100644 --- a/packages/@react-aria/tabs/src/useTab.ts +++ b/packages/@react-aria/tabs/src/useTab.ts @@ -14,7 +14,7 @@ import {AriaTabProps} from '@react-types/tabs'; import {DOMAttributes, FocusableElement, RefObject} from '@react-types/shared'; import {filterDOMProps, mergeProps, useLinkProps} from '@react-aria-nutrient/utils'; import {generateId} from './utils'; -import {TabListState} from '@react-stately/tabs'; +import {TabListState} from '@react-stately-nutrient/tabs'; import {useFocusable} from '@react-aria-nutrient/focus'; import {useSelectableItem} from '@react-aria-nutrient/selection'; diff --git a/packages/@react-aria/tabs/src/useTabList.ts b/packages/@react-aria/tabs/src/useTabList.ts index 3505efab1db..b573fd3bb9a 100644 --- a/packages/@react-aria/tabs/src/useTabList.ts +++ b/packages/@react-aria/tabs/src/useTabList.ts @@ -13,7 +13,7 @@ import {AriaTabListProps} from '@react-types/tabs'; import {DOMAttributes, RefObject} from '@react-types/shared'; import {mergeProps, useId, useLabels} from '@react-aria-nutrient/utils'; -import {TabListState} from '@react-stately/tabs'; +import {TabListState} from '@react-stately-nutrient/tabs'; import {tabsIds} from './utils'; import {TabsKeyboardDelegate} from './TabsKeyboardDelegate'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/tabs/src/useTabPanel.ts b/packages/@react-aria/tabs/src/useTabPanel.ts index b007688c606..3a03ec2fd3f 100644 --- a/packages/@react-aria/tabs/src/useTabPanel.ts +++ b/packages/@react-aria/tabs/src/useTabPanel.ts @@ -14,7 +14,7 @@ import {AriaTabPanelProps} from '@react-types/tabs'; import {DOMAttributes, RefObject} from '@react-types/shared'; import {generateId} from './utils'; import {mergeProps, useLabels} from '@react-aria-nutrient/utils'; -import {TabListState} from '@react-stately/tabs'; +import {TabListState} from '@react-stately-nutrient/tabs'; import {useHasTabbableChild} from '@react-aria-nutrient/focus'; export interface TabPanelAria { diff --git a/packages/@react-aria/tabs/src/utils.ts b/packages/@react-aria/tabs/src/utils.ts index f5c5d2f1e1a..1090da7155e 100644 --- a/packages/@react-aria/tabs/src/utils.ts +++ b/packages/@react-aria/tabs/src/utils.ts @@ -11,7 +11,7 @@ */ import {Key} from '@react-types/shared'; -import {TabListState} from '@react-stately/tabs'; +import {TabListState} from '@react-stately-nutrient/tabs'; export const tabsIds = new WeakMap, string>(); diff --git a/packages/@react-aria/tabs/stories/example.tsx b/packages/@react-aria/tabs/stories/example.tsx index 7ed5e3391da..8dca2e0a468 100644 --- a/packages/@react-aria/tabs/stories/example.tsx +++ b/packages/@react-aria/tabs/stories/example.tsx @@ -12,7 +12,7 @@ import {AriaTabListProps, useTab, useTabList, useTabPanel} from '@react-aria-nutrient/tabs'; import React from 'react'; -import {useTabListState} from '@react-stately/tabs'; +import {useTabListState} from '@react-stately-nutrient/tabs'; interface TabProps extends AriaTabListProps { shouldSelectOnPressUp?: boolean diff --git a/packages/@react-aria/tabs/stories/useTabList.stories.tsx b/packages/@react-aria/tabs/stories/useTabList.stories.tsx index b63fae799ae..65fe5bc235e 100644 --- a/packages/@react-aria/tabs/stories/useTabList.stories.tsx +++ b/packages/@react-aria/tabs/stories/useTabList.stories.tsx @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; import {Tabs} from './example'; diff --git a/packages/@react-aria/tag/docs/useTagGroup.mdx b/packages/@react-aria/tag/docs/useTagGroup.mdx index bae99e00927..b5a68ff417c 100644 --- a/packages/@react-aria/tag/docs/useTagGroup.mdx +++ b/packages/@react-aria/tag/docs/useTagGroup.mdx @@ -81,10 +81,10 @@ Each individual tag should use `rowProps` on its outer container, and use `gridC ```tsx example export=true import type {AriaTagGroupProps, AriaTagProps} from '@react-aria-nutrient/tag'; -import type {ListState} from '@react-stately/list'; +import type {ListState} from '@react-stately-nutrient/list'; import {useTag, useTagGroup} from '@react-aria-nutrient/tag'; -import {useListState} from '@react-stately/list'; -import {Item} from '@react-stately/collections'; +import {useListState} from '@react-stately-nutrient/list'; +import {Item} from '@react-stately-nutrient/collections'; import {useFocusRing} from '@react-aria-nutrient/focus'; // Reuse the Button from your component library. See below for details. @@ -253,7 +253,7 @@ function Button(props) { The `onRemove` prop can be used to include a remove button which can be used to remove a tag. This allows the user to press the remove button, or press the backspace key while the tag is focused to remove the tag from the group. Additionally, when [selection](#selection) is enabled, all selected items will be deleted when pressing the backspace key on a selected tag. ```tsx example -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; function Example() { let list = useListData({ diff --git a/packages/@react-aria/tag/package.json b/packages/@react-aria/tag/package.json index 7545cc4cedd..99c1ad77677 100644 --- a/packages/@react-aria/tag/package.json +++ b/packages/@react-aria/tag/package.json @@ -28,7 +28,7 @@ "@react-aria-nutrient/label": "^3.7.16", "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/list": "^3.12.0", + "@react-stately-nutrient/list": "^3.12.0", "@react-types/button": "^3.11.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/tag/src/useTag.ts b/packages/@react-aria/tag/src/useTag.ts index 78247f61ce7..3356621b012 100644 --- a/packages/@react-aria/tag/src/useTag.ts +++ b/packages/@react-aria/tag/src/useTag.ts @@ -17,7 +17,7 @@ import {hookData} from './useTagGroup'; // @ts-ignore import intlMessages from '../intl/*.json'; import {KeyboardEvent} from 'react'; -import type {ListState} from '@react-stately/list'; +import type {ListState} from '@react-stately-nutrient/list'; import {SelectableItemStates} from '@react-aria-nutrient/selection'; import {useFocusable, useInteractionModality} from '@react-aria-nutrient/interactions'; import {useGridListItem} from '@react-aria-nutrient/gridlist'; diff --git a/packages/@react-aria/tag/src/useTagGroup.ts b/packages/@react-aria/tag/src/useTagGroup.ts index 5242998bb8c..f39c7e46331 100644 --- a/packages/@react-aria/tag/src/useTagGroup.ts +++ b/packages/@react-aria/tag/src/useTagGroup.ts @@ -13,7 +13,7 @@ import {AriaLabelingProps, CollectionBase, DOMAttributes, DOMProps, HelpTextProps, Key, KeyboardDelegate, LabelableProps, MultipleSelection, RefObject, SelectionBehavior} from '@react-types/shared'; import {filterDOMProps, mergeProps} from '@react-aria-nutrient/utils'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; -import type {ListState} from '@react-stately/list'; +import type {ListState} from '@react-stately-nutrient/list'; import {ReactNode, useEffect, useRef, useState} from 'react'; import {useField} from '@react-aria-nutrient/label'; import {useFocusWithin} from '@react-aria-nutrient/interactions'; diff --git a/packages/@react-aria/tag/test/useTagGroup.test.js b/packages/@react-aria/tag/test/useTagGroup.test.js index 2581fb46bfa..814dffac7a7 100644 --- a/packages/@react-aria/tag/test/useTagGroup.test.js +++ b/packages/@react-aria/tag/test/useTagGroup.test.js @@ -10,11 +10,11 @@ * governing permissions and limitations under the License. */ -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {pointerMap, render, within} from '@react-spectrum/test-utils-internal'; import React from 'react'; import {useButton} from '@react-aria-nutrient/button'; -import {useListState} from '@react-stately/list'; +import {useListState} from '@react-stately-nutrient/list'; import userEvent from '@testing-library/user-event'; import {useTag, useTagGroup} from '../'; diff --git a/packages/@react-aria/textfield/package.json b/packages/@react-aria/textfield/package.json index 52788955a47..770574f9dc8 100644 --- a/packages/@react-aria/textfield/package.json +++ b/packages/@react-aria/textfield/package.json @@ -26,8 +26,8 @@ "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/label": "^3.7.16", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/form": "^3.1.2", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@react-types/textfield": "^3.12.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/textfield/src/useTextField.ts b/packages/@react-aria/textfield/src/useTextField.ts index d6d8bcc8abe..5418ecd7dd9 100644 --- a/packages/@react-aria/textfield/src/useTextField.ts +++ b/packages/@react-aria/textfield/src/useTextField.ts @@ -21,11 +21,11 @@ import React, { RefObject, useEffect } from 'react'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useField} from '@react-aria-nutrient/label'; import {useFocusable} from '@react-aria-nutrient/interactions'; import {useFormValidation} from '@react-aria-nutrient/form'; -import {useFormValidationState} from '@react-stately/form'; +import {useFormValidationState} from '@react-stately-nutrient/form'; /** * A map of HTML element names and their interface types. diff --git a/packages/@react-aria/toast/docs/useToast.mdx b/packages/@react-aria/toast/docs/useToast.mdx index 09d3457ffd1..8dc10b80f2c 100644 --- a/packages/@react-aria/toast/docs/useToast.mdx +++ b/packages/@react-aria/toast/docs/useToast.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/toast'; -import statelyDocs from 'docs:@react-stately/toast'; +import statelyDocs from 'docs:@react-stately-nutrient/toast'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, PageDescription, TypeLink} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/toast/package.json'; import Anatomy from './toast-anatomy.svg'; @@ -75,7 +75,7 @@ Landmark regions including the toast container can be navigated using the keyboa Toasts consist of three components. The first is a `ToastProvider` component which will manage the state for the toast queue with the hook. Alternatively, you could use a global toast queue ([see below](#global-toast-queue)). ```tsx -import {useToastState} from '@react-stately/toast'; +import {useToastState} from '@react-stately-nutrient/toast'; function ToastProvider({children, ...props}) { let state = useToastState({ @@ -102,7 +102,7 @@ The `ToastRegion` component will be rendered when there are toasts to display. I ```tsx example export=true render=false import type {AriaToastRegionProps} from '@react-aria-nutrient/toast'; -import type {ToastState} from '@react-stately/toast'; +import type {ToastState} from '@react-stately-nutrient/toast'; import {useToastRegion} from '@react-aria-nutrient/toast'; interface ToastRegionProps extends AriaToastRegionProps { @@ -286,7 +286,7 @@ function Example() { In the above examples, each `ToastProvider` has a separate queue. This setup is simple, and fine for most cases where you can wrap the entire app in a single `ToastProvider`. However, in more complex situations, you may want to keep the toast queue outside the React tree so that toasts can be queued from anywhere. This can be done by creating your own and subscribing to it using the hook rather than `useToastState`. ```tsx example export=true hidden -import {ToastQueue, useToastQueue} from '@react-stately/toast'; +import {ToastQueue, useToastQueue} from '@react-stately-nutrient/toast'; import {createPortal} from 'react-dom'; // Create a global toast queue. @@ -323,7 +323,7 @@ Now you can queue a toast from anywhere: A `ToastQueue` and `useToastState` use a generic type to represent toast content. The examples so far have used strings, but you can type this however you want to enable passing custom objects or options. This example uses a custom object to support toasts with both a title and description. ```tsx -import type {QueuedToast} from '@react-stately/toast'; +import type {QueuedToast} from '@react-stately-nutrient/toast'; /*- begin highlight -*/ interface MyToast { diff --git a/packages/@react-aria/toast/package.json b/packages/@react-aria/toast/package.json index 861eac099fa..1d188ed3b26 100644 --- a/packages/@react-aria/toast/package.json +++ b/packages/@react-aria/toast/package.json @@ -26,7 +26,7 @@ "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/landmark": "^3.0.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/toast": "^3.0.0", + "@react-stately-nutrient/toast": "^3.0.0", "@react-types/button": "^3.11.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/toast/src/useToast.ts b/packages/@react-aria/toast/src/useToast.ts index 56a08582e86..ddae10f15dc 100644 --- a/packages/@react-aria/toast/src/useToast.ts +++ b/packages/@react-aria/toast/src/useToast.ts @@ -15,7 +15,7 @@ import {AriaLabelingProps, DOMAttributes, FocusableElement, RefObject} from '@re import {filterDOMProps, useId, useSlotId} from '@react-aria-nutrient/utils'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {QueuedToast, ToastState} from '@react-stately/toast'; +import {QueuedToast, ToastState} from '@react-stately-nutrient/toast'; import {useEffect, useState} from 'react'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/toast/src/useToastRegion.ts b/packages/@react-aria/toast/src/useToastRegion.ts index 7e54a28637e..e8e2baa4d95 100644 --- a/packages/@react-aria/toast/src/useToastRegion.ts +++ b/packages/@react-aria/toast/src/useToastRegion.ts @@ -15,7 +15,7 @@ import {focusWithoutScrolling, mergeProps, useEffectEvent, useLayoutEffect} from import {getInteractionModality, useFocusWithin, useHover} from '@react-aria-nutrient/interactions'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {ToastState} from '@react-stately/toast'; +import {ToastState} from '@react-stately-nutrient/toast'; import {useEffect, useRef} from 'react'; import {useLandmark} from '@react-aria-nutrient/landmark'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/toast/stories/Example.tsx b/packages/@react-aria/toast/stories/Example.tsx index 9f86a592076..fddada00c1d 100644 --- a/packages/@react-aria/toast/stories/Example.tsx +++ b/packages/@react-aria/toast/stories/Example.tsx @@ -11,7 +11,7 @@ */ import React, {createContext, useContext, useRef} from 'react'; -import {ToastState, useToastState} from '@react-stately/toast'; +import {ToastState, useToastState} from '@react-stately-nutrient/toast'; import {useButton} from '@react-aria-nutrient/react-aria'; import {useToast, useToastRegion} from '../src'; diff --git a/packages/@react-aria/toggle/package.json b/packages/@react-aria/toggle/package.json index 5c9e19371d6..377374096de 100644 --- a/packages/@react-aria/toggle/package.json +++ b/packages/@react-aria/toggle/package.json @@ -24,7 +24,7 @@ "dependencies": { "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/toggle": "^3.8.2", + "@react-stately-nutrient/toggle": "^3.8.2", "@react-types/checkbox": "^3.9.2", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/toggle/src/useToggle.ts b/packages/@react-aria/toggle/src/useToggle.ts index 463d7199357..473a4721de6 100644 --- a/packages/@react-aria/toggle/src/useToggle.ts +++ b/packages/@react-aria/toggle/src/useToggle.ts @@ -14,7 +14,7 @@ import {AriaToggleProps} from '@react-types/checkbox'; import {filterDOMProps, mergeProps, useFormReset} from '@react-aria-nutrient/utils'; import {InputHTMLAttributes, LabelHTMLAttributes} from 'react'; import {RefObject} from '@react-types/shared'; -import {ToggleState} from '@react-stately/toggle'; +import {ToggleState} from '@react-stately-nutrient/toggle'; import {useFocusable, usePress} from '@react-aria-nutrient/interactions'; export interface ToggleAria { diff --git a/packages/@react-aria/tooltip/docs/useTooltipTrigger.mdx b/packages/@react-aria/tooltip/docs/useTooltipTrigger.mdx index 6f32614561a..f09bc238544 100644 --- a/packages/@react-aria/tooltip/docs/useTooltipTrigger.mdx +++ b/packages/@react-aria/tooltip/docs/useTooltipTrigger.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-aria-nutrient/tooltip'; -import statelyDocs from 'docs:@react-stately/tooltip'; +import statelyDocs from 'docs:@react-stately-nutrient/tooltip'; import {HeaderInfo, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-aria-nutrient/tooltip/package.json'; import Anatomy from './anatomy.svg'; @@ -69,7 +69,7 @@ Users may reveal the tooltip by hovering or focusing the trigger. Tooltip state is managed by the -hook in `@react-stately/tooltip`. The state object should be passed as an option to `useTooltipTrigger` and `useTooltip`. +hook in `@react-stately-nutrient/tooltip`. The state object should be passed as an option to `useTooltipTrigger` and `useTooltip`. ## Example @@ -79,7 +79,7 @@ Two instances of the example are rendered to demonstrate the behavior of the del ```tsx example export=true import {useTooltip, useTooltipTrigger} from '@react-aria-nutrient/tooltip'; -import {useTooltipTriggerState} from '@react-stately/tooltip'; +import {useTooltipTriggerState} from '@react-stately-nutrient/tooltip'; import {mergeProps} from '@react-aria-nutrient/utils'; function Tooltip({state, ...props}) { diff --git a/packages/@react-aria/tooltip/package.json b/packages/@react-aria/tooltip/package.json index 204cb49c30e..8177cab6d7a 100644 --- a/packages/@react-aria/tooltip/package.json +++ b/packages/@react-aria/tooltip/package.json @@ -24,7 +24,7 @@ "dependencies": { "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/tooltip": "^3.5.2", + "@react-stately-nutrient/tooltip": "^3.5.2", "@react-types/shared": "^3.28.0", "@react-types/tooltip": "^3.4.15", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/tooltip/src/useTooltip.ts b/packages/@react-aria/tooltip/src/useTooltip.ts index 93e525cbc51..4912849845c 100644 --- a/packages/@react-aria/tooltip/src/useTooltip.ts +++ b/packages/@react-aria/tooltip/src/useTooltip.ts @@ -13,7 +13,7 @@ import {AriaTooltipProps} from '@react-types/tooltip'; import {DOMAttributes} from '@react-types/shared'; import {filterDOMProps, mergeProps} from '@react-aria-nutrient/utils'; -import {TooltipTriggerState} from '@react-stately/tooltip'; +import {TooltipTriggerState} from '@react-stately-nutrient/tooltip'; import {useHover} from '@react-aria-nutrient/interactions'; export interface TooltipAria { diff --git a/packages/@react-aria/tooltip/src/useTooltipTrigger.ts b/packages/@react-aria/tooltip/src/useTooltipTrigger.ts index 9dbcc6f21c6..bd3a1abd772 100644 --- a/packages/@react-aria/tooltip/src/useTooltipTrigger.ts +++ b/packages/@react-aria/tooltip/src/useTooltipTrigger.ts @@ -14,7 +14,7 @@ import {DOMAttributes, FocusableElement, RefObject} from '@react-types/shared'; import {getInteractionModality, isFocusVisible, useFocusable, useHover} from '@react-aria-nutrient/interactions'; import {mergeProps, useId} from '@react-aria-nutrient/utils'; import {TooltipTriggerProps} from '@react-types/tooltip'; -import {TooltipTriggerState} from '@react-stately/tooltip'; +import {TooltipTriggerState} from '@react-stately-nutrient/tooltip'; import {useEffect, useRef} from 'react'; export interface TooltipTriggerAria { diff --git a/packages/@react-aria/tooltip/test/useTooltip.test.js b/packages/@react-aria/tooltip/test/useTooltip.test.js index 96188c6c5a4..6302052ad6d 100644 --- a/packages/@react-aria/tooltip/test/useTooltip.test.js +++ b/packages/@react-aria/tooltip/test/useTooltip.test.js @@ -14,7 +14,7 @@ import {act, fireEvent, render} from '@react-spectrum/test-utils-internal'; import React from 'react'; import {useInteractionModality} from '@react-aria-nutrient/interactions'; import {useTooltip, useTooltipTrigger} from '../'; -import {useTooltipTriggerState} from '@react-stately/tooltip'; +import {useTooltipTriggerState} from '@react-stately-nutrient/tooltip'; describe('useTooltip', function () { afterEach(() => { diff --git a/packages/@react-aria/tree/package.json b/packages/@react-aria/tree/package.json index 162369bcfa0..d785c707872 100644 --- a/packages/@react-aria/tree/package.json +++ b/packages/@react-aria/tree/package.json @@ -26,7 +26,7 @@ "@react-aria-nutrient/i18n": "^3.12.7", "@react-aria-nutrient/selection": "^3.23.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/tree": "^3.8.8", + "@react-stately-nutrient/tree": "^3.8.8", "@react-types/button": "^3.11.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-aria/tree/src/useTree.ts b/packages/@react-aria/tree/src/useTree.ts index 0e2eaf40f3f..c6b44f74139 100644 --- a/packages/@react-aria/tree/src/useTree.ts +++ b/packages/@react-aria/tree/src/useTree.ts @@ -16,7 +16,7 @@ import { KeyboardDelegate, RefObject } from '@react-types/shared'; -import {TreeState} from '@react-stately/tree'; +import {TreeState} from '@react-stately-nutrient/tree'; export interface TreeProps extends GridListProps {} diff --git a/packages/@react-aria/tree/src/useTreeItem.ts b/packages/@react-aria/tree/src/useTreeItem.ts index 41e3ba5615f..603454acd6b 100644 --- a/packages/@react-aria/tree/src/useTreeItem.ts +++ b/packages/@react-aria/tree/src/useTreeItem.ts @@ -16,7 +16,7 @@ import {DOMAttributes, FocusableElement, Node, RefObject} from '@react-types/sha // @ts-ignore import intlMessages from '../intl/*.json'; import {isAndroid, useLabels} from '@react-aria-nutrient/utils'; -import {TreeState} from '@react-stately/tree'; +import {TreeState} from '@react-stately-nutrient/tree'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; export interface AriaTreeItemOptions extends Omit { diff --git a/packages/@react-aria/utils/package.json b/packages/@react-aria/utils/package.json index fec4c850741..25aab14b510 100644 --- a/packages/@react-aria/utils/package.json +++ b/packages/@react-aria/utils/package.json @@ -23,8 +23,8 @@ }, "dependencies": { "@react-aria-nutrient/ssr": "^3.9.7", - "@react-stately/flags": "^3.1.0", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/flags": "^3.1.0", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0", "clsx": "^2.0.0" diff --git a/packages/@react-aria/utils/src/index.ts b/packages/@react-aria/utils/src/index.ts index 9db58b2ee24..932539b97a7 100644 --- a/packages/@react-aria/utils/src/index.ts +++ b/packages/@react-aria/utils/src/index.ts @@ -39,7 +39,7 @@ export {isMac, isIPhone, isIPad, isIOS, isAppleDevice, isWebKit, isChrome, isAnd export {useEvent} from './useEvent'; export {useValueEffect} from './useValueEffect'; export {scrollIntoView, scrollIntoViewport} from './scrollIntoView'; -export {clamp, snapValueToStep} from '@react-stately/utils'; +export {clamp, snapValueToStep} from '@react-stately-nutrient/utils'; export {isVirtualClick, isVirtualPointerEvent} from './isVirtualEvent'; export {useEffectEvent} from './useEffectEvent'; export {useDeepMemo} from './useDeepMemo'; diff --git a/packages/@react-aria/utils/src/shadowdom/DOMFunctions.ts b/packages/@react-aria/utils/src/shadowdom/DOMFunctions.ts index 1f822a0ef17..6a68f94a66f 100644 --- a/packages/@react-aria/utils/src/shadowdom/DOMFunctions.ts +++ b/packages/@react-aria/utils/src/shadowdom/DOMFunctions.ts @@ -1,7 +1,7 @@ // Source: https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/DOMFunctions.ts#L16 import {isShadowRoot} from '../domHelpers'; -import {shadowDOM} from '@react-stately/flags'; +import {shadowDOM} from '@react-stately-nutrient/flags'; /** * ShadowDOM safe version of Node.contains. diff --git a/packages/@react-aria/utils/src/shadowdom/ShadowTreeWalker.ts b/packages/@react-aria/utils/src/shadowdom/ShadowTreeWalker.ts index f1ae3d96585..12b88549041 100644 --- a/packages/@react-aria/utils/src/shadowdom/ShadowTreeWalker.ts +++ b/packages/@react-aria/utils/src/shadowdom/ShadowTreeWalker.ts @@ -1,7 +1,7 @@ // https://github.com/microsoft/tabster/blob/a89fc5d7e332d48f68d03b1ca6e344489d1c3898/src/Shadowdomize/ShadowTreeWalker.ts import {nodeContains} from './DOMFunctions'; -import {shadowDOM} from '@react-stately/flags'; +import {shadowDOM} from '@react-stately-nutrient/flags'; export class ShadowTreeWalker implements TreeWalker { public readonly filter: NodeFilter | null; diff --git a/packages/@react-aria/utils/test/domHelpers.test.js b/packages/@react-aria/utils/test/domHelpers.test.js index 8aa315f4ca1..54dfd2fb2f9 100644 --- a/packages/@react-aria/utils/test/domHelpers.test.js +++ b/packages/@react-aria/utils/test/domHelpers.test.js @@ -12,7 +12,7 @@ import {act} from 'react-dom/test-utils'; -import {enableShadowDOM} from '@react-stately/flags'; +import {enableShadowDOM} from '@react-stately-nutrient/flags'; import {getActiveElement, getOwnerWindow} from '../'; describe('getOwnerWindow', () => { diff --git a/packages/@react-aria/utils/test/shadowTreeWalker.test.tsx b/packages/@react-aria/utils/test/shadowTreeWalker.test.tsx index a454e16a1d9..146a63a4c7e 100644 --- a/packages/@react-aria/utils/test/shadowTreeWalker.test.tsx +++ b/packages/@react-aria/utils/test/shadowTreeWalker.test.tsx @@ -12,7 +12,7 @@ import {createShadowRoot, render} from '@react-spectrum/test-utils-internal'; import {createShadowTreeWalker} from '../src'; -import {enableShadowDOM} from '@react-stately/flags'; +import {enableShadowDOM} from '@react-stately-nutrient/flags'; import React from 'react'; import ReactDOM from 'react-dom'; diff --git a/packages/@react-aria/virtualizer/package.json b/packages/@react-aria/virtualizer/package.json index 687f1522e00..8e7abc53923 100644 --- a/packages/@react-aria/virtualizer/package.json +++ b/packages/@react-aria/virtualizer/package.json @@ -25,7 +25,7 @@ "@react-aria-nutrient/i18n": "^3.12.7", "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/utils": "^3.28.1", - "@react-stately/virtualizer": "^4.3.1", + "@react-stately-nutrient/virtualizer": "^4.3.1", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-aria/virtualizer/src/ScrollView.tsx b/packages/@react-aria/virtualizer/src/ScrollView.tsx index 6f59f9d176d..a61e0c94f91 100644 --- a/packages/@react-aria/virtualizer/src/ScrollView.tsx +++ b/packages/@react-aria/virtualizer/src/ScrollView.tsx @@ -24,7 +24,7 @@ import React, { useRef, useState } from 'react'; -import {Rect, Size} from '@react-stately/virtualizer'; +import {Rect, Size} from '@react-stately-nutrient/virtualizer'; import {useEffectEvent, useEvent, useLayoutEffect, useObjectRef, useResizeObserver} from '@react-aria-nutrient/utils'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-aria/virtualizer/src/Virtualizer.tsx b/packages/@react-aria/virtualizer/src/Virtualizer.tsx index ebd08378a6a..8fd881dcc63 100644 --- a/packages/@react-aria/virtualizer/src/Virtualizer.tsx +++ b/packages/@react-aria/virtualizer/src/Virtualizer.tsx @@ -11,7 +11,7 @@ */ import {Collection, Key, RefObject} from '@react-types/shared'; -import {Layout, Rect, ReusableView, useVirtualizerState} from '@react-stately/virtualizer'; +import {Layout, Rect, ReusableView, useVirtualizerState} from '@react-stately-nutrient/virtualizer'; import {mergeProps, useLoadMore, useObjectRef} from '@react-aria-nutrient/utils'; import React, {ForwardedRef, HTMLAttributes, ReactElement, ReactNode, useCallback} from 'react'; import {ScrollView} from './ScrollView'; diff --git a/packages/@react-aria/virtualizer/src/VirtualizerItem.tsx b/packages/@react-aria/virtualizer/src/VirtualizerItem.tsx index 63c8759b6c1..dab7bbfe5c2 100644 --- a/packages/@react-aria/virtualizer/src/VirtualizerItem.tsx +++ b/packages/@react-aria/virtualizer/src/VirtualizerItem.tsx @@ -11,7 +11,7 @@ */ import {Direction} from '@react-types/shared'; -import {LayoutInfo} from '@react-stately/virtualizer'; +import {LayoutInfo} from '@react-stately-nutrient/virtualizer'; import React, {CSSProperties, ReactNode, useRef} from 'react'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useVirtualizerItem, VirtualizerItemOptions} from './useVirtualizerItem'; diff --git a/packages/@react-aria/virtualizer/src/useVirtualizerItem.ts b/packages/@react-aria/virtualizer/src/useVirtualizerItem.ts index 080f00faa39..e661bc091f4 100644 --- a/packages/@react-aria/virtualizer/src/useVirtualizerItem.ts +++ b/packages/@react-aria/virtualizer/src/useVirtualizerItem.ts @@ -11,7 +11,7 @@ */ import {Key, RefObject} from '@react-types/shared'; -import {LayoutInfo, Size} from '@react-stately/virtualizer'; +import {LayoutInfo, Size} from '@react-stately-nutrient/virtualizer'; import {useCallback} from 'react'; import {useLayoutEffect} from '@react-aria-nutrient/utils'; diff --git a/packages/@react-spectrum/actionbar/package.json b/packages/@react-spectrum/actionbar/package.json index 7e6093b7739..9b0eabde9ac 100644 --- a/packages/@react-spectrum/actionbar/package.json +++ b/packages/@react-spectrum/actionbar/package.json @@ -46,7 +46,7 @@ "@react-spectrum/overlays": "^5.7.3", "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", + "@react-stately-nutrient/collections": "^3.12.2", "@react-types/actionbar": "^3.1.13", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/actionbar/src/index.ts b/packages/@react-spectrum/actionbar/src/index.ts index b07d20e23c2..12eba5faa6a 100644 --- a/packages/@react-spectrum/actionbar/src/index.ts +++ b/packages/@react-spectrum/actionbar/src/index.ts @@ -12,6 +12,6 @@ /// export {ActionBar} from './ActionBar'; export {ActionBarContainer} from './ActionBarContainer'; -export {Item} from '@react-stately/collections'; +export {Item} from '@react-stately-nutrient/collections'; export type {SpectrumActionBarContainerProps} from '@react-types/actionbar'; export type {SpectrumActionBarProps} from '@react-types/actionbar'; diff --git a/packages/@react-spectrum/actiongroup/chromatic/ActionGroup.stories.tsx b/packages/@react-spectrum/actiongroup/chromatic/ActionGroup.stories.tsx index aa988072e39..b8193805bdf 100644 --- a/packages/@react-spectrum/actiongroup/chromatic/ActionGroup.stories.tsx +++ b/packages/@react-spectrum/actiongroup/chromatic/ActionGroup.stories.tsx @@ -18,7 +18,7 @@ import DocumentIcon from '@spectrum-icons/workflow/Document'; import DrawIcon from '@spectrum-icons/workflow/Draw'; import {Flex} from '@react-spectrum/layout'; import InfoIcon from '@spectrum-icons/workflow/Info'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import PropertiesIcon from '@spectrum-icons/workflow/Properties'; import React from 'react'; import SettingsIcon from '@spectrum-icons/workflow/Settings'; diff --git a/packages/@react-spectrum/actiongroup/docs/ActionGroup.mdx b/packages/@react-spectrum/actiongroup/docs/ActionGroup.mdx index 5e611907df6..fff53a2e986 100644 --- a/packages/@react-spectrum/actiongroup/docs/ActionGroup.mdx +++ b/packages/@react-spectrum/actiongroup/docs/ActionGroup.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:@react-spectrum/actiongroup'; -import collectionsDocs from 'docs:@react-stately/collections'; +import collectionsDocs from 'docs:@react-stately-nutrient/collections'; import {HeaderInfo, PropTable, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-spectrum/actiongroup/package.json'; diff --git a/packages/@react-spectrum/actiongroup/package.json b/packages/@react-spectrum/actiongroup/package.json index c191fe8ee3e..49560790527 100644 --- a/packages/@react-spectrum/actiongroup/package.json +++ b/packages/@react-spectrum/actiongroup/package.json @@ -45,8 +45,8 @@ "@react-spectrum/text": "^3.5.13", "@react-spectrum/tooltip": "^3.7.3", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/list": "^3.12.0", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/list": "^3.12.0", "@react-types/actiongroup": "^3.4.15", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/actiongroup/src/ActionGroup.tsx b/packages/@react-spectrum/actiongroup/src/ActionGroup.tsx index eb37388c900..f0cb3095497 100644 --- a/packages/@react-spectrum/actiongroup/src/ActionGroup.tsx +++ b/packages/@react-spectrum/actiongroup/src/ActionGroup.tsx @@ -25,7 +25,7 @@ import { import {filterDOMProps, mergeProps, useId, useLayoutEffect, useResizeObserver, useValueEffect} from '@react-aria-nutrient/utils'; import {FocusScope} from '@react-aria-nutrient/focus'; import {Item, Menu, MenuTrigger} from '@react-spectrum/menu'; -import {ListState, useListState} from '@react-stately/list'; +import {ListState, useListState} from '@react-stately-nutrient/list'; import More from '@spectrum-icons/workflow/More'; import {PressResponder, useHover} from '@react-aria-nutrient/interactions'; import {Provider, useProviderProps} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/actiongroup/src/index.ts b/packages/@react-spectrum/actiongroup/src/index.ts index a72ca7baf34..3ae7cab332d 100644 --- a/packages/@react-spectrum/actiongroup/src/index.ts +++ b/packages/@react-spectrum/actiongroup/src/index.ts @@ -11,5 +11,5 @@ */ /// export {ActionGroup} from './ActionGroup'; -export {Item} from '@react-stately/collections'; +export {Item} from '@react-stately-nutrient/collections'; export type {SpectrumActionGroupProps} from '@react-types/actiongroup'; diff --git a/packages/@react-spectrum/actiongroup/stories/ActionGroup.stories.tsx b/packages/@react-spectrum/actiongroup/stories/ActionGroup.stories.tsx index 352e0addcad..62c8ba0a2da 100644 --- a/packages/@react-spectrum/actiongroup/stories/ActionGroup.stories.tsx +++ b/packages/@react-spectrum/actiongroup/stories/ActionGroup.stories.tsx @@ -23,7 +23,7 @@ import DuplicateIcon from '@spectrum-icons/workflow/Duplicate'; import {Flex} from '@react-spectrum/layout'; import Heal from '@spectrum-icons/workflow/Heal'; import InfoIcon from '@spectrum-icons/workflow/Info'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import MoveIcon from '@spectrum-icons/workflow/MoveTo'; import PropertiesIcon from '@spectrum-icons/workflow/Properties'; import React from 'react'; diff --git a/packages/@react-spectrum/actiongroup/stories/Toolbar.stories.tsx b/packages/@react-spectrum/actiongroup/stories/Toolbar.stories.tsx index 6f741d9f801..07ecb78553e 100644 --- a/packages/@react-spectrum/actiongroup/stories/Toolbar.stories.tsx +++ b/packages/@react-spectrum/actiongroup/stories/Toolbar.stories.tsx @@ -19,7 +19,7 @@ import DeleteIcon from '@spectrum-icons/workflow/Delete'; import {Divider} from '@react-spectrum/divider'; import DrawIcon from '@spectrum-icons/workflow/Draw'; import InfoIcon from '@spectrum-icons/workflow/Info'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import PropertiesIcon from '@spectrum-icons/workflow/Properties'; import {Toolbar as RACToolbar} from 'react-aria-components'; import React, {ForwardedRef, forwardRef, ReactElement, ReactNode, useMemo} from 'react'; diff --git a/packages/@react-spectrum/actiongroup/test/ActionGroup.test.js b/packages/@react-spectrum/actiongroup/test/ActionGroup.test.js index 6d5c8d5d83d..163d5ee694f 100644 --- a/packages/@react-spectrum/actiongroup/test/ActionGroup.test.js +++ b/packages/@react-spectrum/actiongroup/test/ActionGroup.test.js @@ -15,7 +15,7 @@ import {ActionGroup} from '../'; import {Button} from '@react-spectrum/button'; import {Dialog, DialogTrigger} from '@react-spectrum/dialog'; import Edit from '@spectrum-icons/workflow/Edit'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; import {Text} from '@react-spectrum/text'; diff --git a/packages/@react-spectrum/autocomplete/docs/SearchAutocomplete.mdx b/packages/@react-spectrum/autocomplete/docs/SearchAutocomplete.mdx index 3c5496bf1a6..4da3ad418f4 100644 --- a/packages/@react-spectrum/autocomplete/docs/SearchAutocomplete.mdx +++ b/packages/@react-spectrum/autocomplete/docs/SearchAutocomplete.mdx @@ -298,7 +298,7 @@ set by the `loadingState` prop. It also supports infinite scrolling to load more This example uses the [useAsyncList](../react-stately/useAsyncList.html) hook to handle loading the data. See the docs for more information. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string diff --git a/packages/@react-spectrum/autocomplete/package.json b/packages/@react-spectrum/autocomplete/package.json index 43e71cb2c01..354e81fb326 100644 --- a/packages/@react-spectrum/autocomplete/package.json +++ b/packages/@react-spectrum/autocomplete/package.json @@ -54,8 +54,8 @@ "@react-spectrum/progress": "^3.7.14", "@react-spectrum/textfield": "^3.13.1", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/combobox": "^3.10.3", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/combobox": "^3.10.3", "@react-types/autocomplete": "3.0.0-alpha.29", "@react-types/button": "^3.11.0", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-spectrum/autocomplete/src/MobileSearchAutocomplete.tsx b/packages/@react-spectrum/autocomplete/src/MobileSearchAutocomplete.tsx index a9bdae460a8..82d0d8ab9e3 100644 --- a/packages/@react-spectrum/autocomplete/src/MobileSearchAutocomplete.tsx +++ b/packages/@react-spectrum/autocomplete/src/MobileSearchAutocomplete.tsx @@ -15,7 +15,7 @@ import {AriaButtonProps} from '@react-types/button'; import CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium'; import {classNames, useFocusableRef} from '@react-spectrum/utils'; import {ClearButton} from '@react-spectrum/button'; -import {ComboBoxState, useComboBoxState} from '@react-stately/combobox'; +import {ComboBoxState, useComboBoxState} from '@react-stately-nutrient/combobox'; import {DismissButton, useOverlayTrigger} from '@react-aria-nutrient/overlays'; import {Field} from '@react-spectrum/label'; import {FocusableRef, ValidationState} from '@react-types/shared'; diff --git a/packages/@react-spectrum/autocomplete/src/SearchAutocomplete.tsx b/packages/@react-spectrum/autocomplete/src/SearchAutocomplete.tsx index 78d5fd97bc1..fbac66cd491 100644 --- a/packages/@react-spectrum/autocomplete/src/SearchAutocomplete.tsx +++ b/packages/@react-spectrum/autocomplete/src/SearchAutocomplete.tsx @@ -39,7 +39,7 @@ import {SpectrumSearchAutocompleteProps} from '@react-types/autocomplete'; import styles from '@adobe/spectrum-css-temp/components/inputgroup/vars.css'; import {TextFieldBase} from '@react-spectrum/textfield'; import textfieldStyles from '@adobe/spectrum-css-temp/components/textfield/vars.css'; -import {useComboBoxState} from '@react-stately/combobox'; +import {useComboBoxState} from '@react-stately-nutrient/combobox'; import {useFilter, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useFormProps} from '@react-spectrum/form'; import {useHover} from '@react-aria-nutrient/interactions'; diff --git a/packages/@react-spectrum/autocomplete/src/index.ts b/packages/@react-spectrum/autocomplete/src/index.ts index 113271364ab..3e88d052b41 100644 --- a/packages/@react-spectrum/autocomplete/src/index.ts +++ b/packages/@react-spectrum/autocomplete/src/index.ts @@ -11,5 +11,5 @@ */ /// export {SearchAutocomplete} from './SearchAutocomplete'; -export {Item, Section} from '@react-stately/collections'; +export {Item, Section} from '@react-stately-nutrient/collections'; export type {SpectrumSearchAutocompleteProps} from '@react-types/autocomplete'; diff --git a/packages/@react-spectrum/autocomplete/stories/SearchAutocomplete.stories.tsx b/packages/@react-spectrum/autocomplete/stories/SearchAutocomplete.stories.tsx index da2b9cd01ee..374aa0c8e00 100644 --- a/packages/@react-spectrum/autocomplete/stories/SearchAutocomplete.stories.tsx +++ b/packages/@react-spectrum/autocomplete/stories/SearchAutocomplete.stories.tsx @@ -20,7 +20,7 @@ import {Item, SearchAutocomplete} from '@react-spectrum/autocomplete'; import {mergeProps} from '@react-aria-nutrient/utils'; import React from 'react'; import {Text} from '@react-spectrum/text'; -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; type SearchAutocompleteStory = ComponentStoryObj; diff --git a/packages/@react-spectrum/breadcrumbs/package.json b/packages/@react-spectrum/breadcrumbs/package.json index 1cbf8e66a54..b03ab8b4866 100644 --- a/packages/@react-spectrum/breadcrumbs/package.json +++ b/packages/@react-spectrum/breadcrumbs/package.json @@ -44,7 +44,7 @@ "@react-spectrum/button": "^3.16.12", "@react-spectrum/menu": "^3.21.3", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", + "@react-stately-nutrient/collections": "^3.12.2", "@react-types/breadcrumbs": "^3.7.11", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/breadcrumbs/src/index.ts b/packages/@react-spectrum/breadcrumbs/src/index.ts index 650e47cee7d..e78255869a9 100644 --- a/packages/@react-spectrum/breadcrumbs/src/index.ts +++ b/packages/@react-spectrum/breadcrumbs/src/index.ts @@ -11,5 +11,5 @@ */ /// export {Breadcrumbs} from './Breadcrumbs'; -export {Item} from '@react-stately/collections'; +export {Item} from '@react-stately-nutrient/collections'; export type {SpectrumBreadcrumbsProps} from '@react-types/breadcrumbs'; diff --git a/packages/@react-spectrum/breadcrumbs/stories/Breadcrumbs.stories.tsx b/packages/@react-spectrum/breadcrumbs/stories/Breadcrumbs.stories.tsx index 8aae4aa358d..4393978b7d5 100644 --- a/packages/@react-spectrum/breadcrumbs/stories/Breadcrumbs.stories.tsx +++ b/packages/@react-spectrum/breadcrumbs/stories/Breadcrumbs.stories.tsx @@ -14,7 +14,7 @@ import {action} from '@storybook/addon-actions'; import {Breadcrumbs} from '../'; import {ComponentMeta, ComponentStoryObj} from '@storybook/react'; // import {Heading} from '@react-spectrum/text'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; let styles = { diff --git a/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.test.js b/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.test.js index 43c50730cae..815fbead9d4 100644 --- a/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.test.js +++ b/packages/@react-spectrum/breadcrumbs/test/Breadcrumbs.test.js @@ -12,7 +12,7 @@ import {act, pointerMap, render, within} from '@react-spectrum/test-utils-internal'; import {Breadcrumbs} from '../'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {Provider} from '@react-spectrum/provider'; import React, {useRef} from 'react'; import {theme} from '@react-spectrum/theme-default'; diff --git a/packages/@react-spectrum/button/package.json b/packages/@react-spectrum/button/package.json index 3f92ffea1d6..acce5b0163a 100644 --- a/packages/@react-spectrum/button/package.json +++ b/packages/@react-spectrum/button/package.json @@ -44,7 +44,7 @@ "@react-spectrum/progress": "^3.7.14", "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/toggle": "^3.8.2", + "@react-stately-nutrient/toggle": "^3.8.2", "@react-types/button": "^3.11.0", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/button/src/ToggleButton.tsx b/packages/@react-spectrum/button/src/ToggleButton.tsx index 12d17cec367..e0800fa9851 100644 --- a/packages/@react-spectrum/button/src/ToggleButton.tsx +++ b/packages/@react-spectrum/button/src/ToggleButton.tsx @@ -21,7 +21,7 @@ import {Text} from '@react-spectrum/text'; import {useHover} from '@react-aria-nutrient/interactions'; import {useProviderProps} from '@react-spectrum/provider'; import {useToggleButton} from '@react-aria-nutrient/button'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; /** * ToggleButtons allow users to toggle a selection on or off, for example diff --git a/packages/@react-spectrum/calendar/package.json b/packages/@react-spectrum/calendar/package.json index 62607359c3c..2621a0628be 100644 --- a/packages/@react-spectrum/calendar/package.json +++ b/packages/@react-spectrum/calendar/package.json @@ -46,7 +46,7 @@ "@react-spectrum/button": "^3.16.12", "@react-spectrum/label": "^3.16.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/calendar": "^3.7.1", + "@react-stately-nutrient/calendar": "^3.7.1", "@react-types/button": "^3.11.0", "@react-types/calendar": "^3.6.1", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-spectrum/calendar/src/Calendar.tsx b/packages/@react-spectrum/calendar/src/Calendar.tsx index 668c369c0f4..82e16021edd 100644 --- a/packages/@react-spectrum/calendar/src/Calendar.tsx +++ b/packages/@react-spectrum/calendar/src/Calendar.tsx @@ -17,7 +17,7 @@ import {DateValue, SpectrumCalendarProps} from '@react-types/calendar'; import {FocusableRef} from '@react-types/shared'; import React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react'; import {useCalendar} from '@react-aria-nutrient/calendar'; -import {useCalendarState} from '@react-stately/calendar'; +import {useCalendarState} from '@react-stately-nutrient/calendar'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useProviderProps} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/calendar/src/CalendarBase.tsx b/packages/@react-spectrum/calendar/src/CalendarBase.tsx index d3bc417dbb4..e2c621c2a5a 100644 --- a/packages/@react-spectrum/calendar/src/CalendarBase.tsx +++ b/packages/@react-spectrum/calendar/src/CalendarBase.tsx @@ -15,7 +15,7 @@ import {AriaButtonProps} from '@react-types/button'; import {CalendarDate} from '@internationalized/date'; import {CalendarMonth} from './CalendarMonth'; import {CalendarPropsBase} from '@react-types/calendar'; -import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; +import {CalendarState, RangeCalendarState} from '@react-stately-nutrient/calendar'; import ChevronLeft from '@spectrum-icons/ui/ChevronLeftLarge'; import ChevronRight from '@spectrum-icons/ui/ChevronRightLarge'; import {classNames, useStyleProps} from '@react-spectrum/utils'; diff --git a/packages/@react-spectrum/calendar/src/CalendarCell.tsx b/packages/@react-spectrum/calendar/src/CalendarCell.tsx index 7e800023b69..5efd8774607 100644 --- a/packages/@react-spectrum/calendar/src/CalendarCell.tsx +++ b/packages/@react-spectrum/calendar/src/CalendarCell.tsx @@ -12,7 +12,7 @@ import {AriaCalendarCellProps, useCalendarCell} from '@react-aria-nutrient/calendar'; import {CalendarDate, getDayOfWeek, isSameDay, isSameMonth, isToday} from '@internationalized/date'; -import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; +import {CalendarState, RangeCalendarState} from '@react-stately-nutrient/calendar'; import {classNames} from '@react-spectrum/utils'; import {mergeProps} from '@react-aria-nutrient/utils'; import React, {ReactNode, useRef} from 'react'; diff --git a/packages/@react-spectrum/calendar/src/CalendarMonth.tsx b/packages/@react-spectrum/calendar/src/CalendarMonth.tsx index 472cfddf294..a01e11f0f45 100644 --- a/packages/@react-spectrum/calendar/src/CalendarMonth.tsx +++ b/packages/@react-spectrum/calendar/src/CalendarMonth.tsx @@ -13,7 +13,7 @@ import {CalendarCell} from './CalendarCell'; import {CalendarDate, endOfMonth} from '@internationalized/date'; import {CalendarPropsBase} from '@react-types/calendar'; -import {CalendarState, RangeCalendarState} from '@react-stately/calendar'; +import {CalendarState, RangeCalendarState} from '@react-stately-nutrient/calendar'; import {classNames} from '@react-spectrum/utils'; import {DOMProps, StyleProps} from '@react-types/shared'; import React, {ReactNode} from 'react'; diff --git a/packages/@react-spectrum/calendar/src/RangeCalendar.tsx b/packages/@react-spectrum/calendar/src/RangeCalendar.tsx index c741b19667e..5d0cff95f81 100644 --- a/packages/@react-spectrum/calendar/src/RangeCalendar.tsx +++ b/packages/@react-spectrum/calendar/src/RangeCalendar.tsx @@ -19,7 +19,7 @@ import React, {ReactElement, useImperativeHandle, useMemo, useRef} from 'react'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useProviderProps} from '@react-spectrum/provider'; import {useRangeCalendar} from '@react-aria-nutrient/calendar'; -import {useRangeCalendarState} from '@react-stately/calendar'; +import {useRangeCalendarState} from '@react-stately-nutrient/calendar'; /** * RangeCalendars display a grid of days in one or more months and allow users to select a contiguous range of dates. diff --git a/packages/@react-spectrum/card/package.json b/packages/@react-spectrum/card/package.json index baee9b1033b..8b3d5952c5f 100644 --- a/packages/@react-spectrum/card/package.json +++ b/packages/@react-spectrum/card/package.json @@ -45,10 +45,10 @@ "@react-spectrum/checkbox": "^3.9.14", "@react-spectrum/progress": "^3.7.14", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/grid": "^3.11.0", - "@react-stately/list": "^3.12.0", - "@react-stately/virtualizer": "^4.3.1", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/grid": "^3.11.0", + "@react-stately-nutrient/list": "^3.12.0", + "@react-stately-nutrient/virtualizer": "^4.3.1", "@react-types/card": "3.0.0-alpha.34", "@react-types/provider": "^3.8.7", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-spectrum/card/src/BaseLayout.tsx b/packages/@react-spectrum/card/src/BaseLayout.tsx index 03e85fe0135..b1c0adc9e66 100644 --- a/packages/@react-spectrum/card/src/BaseLayout.tsx +++ b/packages/@react-spectrum/card/src/BaseLayout.tsx @@ -12,9 +12,9 @@ */ import {Direction, Key, KeyboardDelegate, Node} from '@react-types/shared'; -import {getChildNodes, getFirstItem} from '@react-stately/collections'; -import {GridCollection} from '@react-stately/grid'; -import {InvalidationContext, Layout, LayoutInfo, Rect, Size} from '@react-stately/virtualizer'; +import {getChildNodes, getFirstItem} from '@react-stately-nutrient/collections'; +import {GridCollection} from '@react-stately-nutrient/grid'; +import {InvalidationContext, Layout, LayoutInfo, Rect, Size} from '@react-stately-nutrient/virtualizer'; import {Scale} from '@react-types/provider'; export interface BaseLayoutOptions { diff --git a/packages/@react-spectrum/card/src/Card.tsx b/packages/@react-spectrum/card/src/Card.tsx index bfe6b3db1ed..57f68cc73fa 100644 --- a/packages/@react-spectrum/card/src/Card.tsx +++ b/packages/@react-spectrum/card/src/Card.tsx @@ -13,7 +13,7 @@ import {CardBase} from './CardBase'; import {DOMRef, DOMRefValue, ItemProps} from '@react-types/shared'; -import {PartialNode} from '@react-stately/collections'; +import {PartialNode} from '@react-stately-nutrient/collections'; import React, {forwardRef, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes} from 'react'; import {SpectrumCardProps} from '@react-types/card'; import {useCardViewContext} from './CardViewContext'; diff --git a/packages/@react-spectrum/card/src/CardView.tsx b/packages/@react-spectrum/card/src/CardView.tsx index 6d07e94530b..5cd6a3bd1b1 100644 --- a/packages/@react-spectrum/card/src/CardView.tsx +++ b/packages/@react-spectrum/card/src/CardView.tsx @@ -15,18 +15,18 @@ import {CardBase} from './CardBase'; import {CardViewContext, useCardViewContext} from './CardViewContext'; import {classNames, useDOMRef, useStyleProps, useUnwrapDOMRef} from '@react-spectrum/utils'; import {DOMRef, DOMRefValue, Node} from '@react-types/shared'; -import {GridCollection, useGridState} from '@react-stately/grid'; +import {GridCollection, useGridState} from '@react-stately-nutrient/grid'; // @ts-ignore import intlMessages from '../intl/*.json'; import {mergeProps} from '@react-aria-nutrient/utils'; import {ProgressCircle} from '@react-spectrum/progress'; import React, {ReactElement, ReactNode, useCallback, useMemo, useRef} from 'react'; -import {ReusableView} from '@react-stately/virtualizer'; +import {ReusableView} from '@react-stately-nutrient/virtualizer'; import {SpectrumCardViewProps} from '@react-types/card'; import styles from '@adobe/spectrum-css-temp/components/card/vars.css'; import {useCollator, useLocale, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useGrid, useGridCell, useGridRow} from '@react-aria-nutrient/grid'; -import {useListState} from '@react-stately/list'; +import {useListState} from '@react-stately-nutrient/list'; import {useProvider} from '@react-spectrum/provider'; import {Virtualizer, VirtualizerItem} from '@react-aria-nutrient/virtualizer'; diff --git a/packages/@react-spectrum/card/src/GalleryLayout.tsx b/packages/@react-spectrum/card/src/GalleryLayout.tsx index 63fffc5ea23..57f3062bb90 100644 --- a/packages/@react-spectrum/card/src/GalleryLayout.tsx +++ b/packages/@react-spectrum/card/src/GalleryLayout.tsx @@ -12,7 +12,7 @@ */ import {BaseLayout, BaseLayoutOptions} from './BaseLayout'; -import {LayoutInfo, Rect, Size} from '@react-stately/virtualizer'; +import {LayoutInfo, Rect, Size} from '@react-stately-nutrient/virtualizer'; export interface GalleryLayoutOptions extends BaseLayoutOptions { // /** diff --git a/packages/@react-spectrum/card/src/GridLayout.tsx b/packages/@react-spectrum/card/src/GridLayout.tsx index 69165185adc..69cf9bd7a09 100644 --- a/packages/@react-spectrum/card/src/GridLayout.tsx +++ b/packages/@react-spectrum/card/src/GridLayout.tsx @@ -12,9 +12,9 @@ */ import {BaseLayout, BaseLayoutOptions} from './BaseLayout'; -import {getChildNodes, getFirstItem} from '@react-stately/collections'; +import {getChildNodes, getFirstItem} from '@react-stately-nutrient/collections'; import {Key, Node, Orientation} from '@react-types/shared'; -import {LayoutInfo, Rect, Size} from '@react-stately/virtualizer'; +import {LayoutInfo, Rect, Size} from '@react-stately-nutrient/virtualizer'; export interface GridLayoutOptions extends BaseLayoutOptions { // /** diff --git a/packages/@react-spectrum/card/src/WaterfallLayout.tsx b/packages/@react-spectrum/card/src/WaterfallLayout.tsx index 677f97a5401..0633c43c12c 100644 --- a/packages/@react-spectrum/card/src/WaterfallLayout.tsx +++ b/packages/@react-spectrum/card/src/WaterfallLayout.tsx @@ -12,8 +12,8 @@ */ import {BaseLayout, BaseLayoutOptions} from './BaseLayout'; -import {getChildNodes, getFirstItem} from '@react-stately/collections'; -import {InvalidationContext, LayoutInfo, Rect, Size} from '@react-stately/virtualizer'; +import {getChildNodes, getFirstItem} from '@react-stately-nutrient/collections'; +import {InvalidationContext, LayoutInfo, Rect, Size} from '@react-stately-nutrient/virtualizer'; import {Key, KeyboardDelegate} from '@react-types/shared'; export interface WaterfallLayoutOptions extends BaseLayoutOptions { diff --git a/packages/@react-spectrum/card/stories/GalleryCardView.stories.tsx b/packages/@react-spectrum/card/stories/GalleryCardView.stories.tsx index d51524b1bdf..ca1dd6c7101 100644 --- a/packages/@react-spectrum/card/stories/GalleryCardView.stories.tsx +++ b/packages/@react-spectrum/card/stories/GalleryCardView.stories.tsx @@ -33,7 +33,7 @@ import {CardView, GalleryLayout} from '../'; import {ComponentStoryObj} from '@storybook/react'; import {GalleryLayoutOptions} from '../src/GalleryLayout'; import React, {useMemo} from 'react'; -import {Size} from '@react-stately/virtualizer'; +import {Size} from '@react-stately-nutrient/virtualizer'; import {SpectrumCardViewProps} from '@react-types/card'; import {useCollator} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-spectrum/card/stories/GridCardView.stories.tsx b/packages/@react-spectrum/card/stories/GridCardView.stories.tsx index 2d7362bf003..5ee14ac9646 100644 --- a/packages/@react-spectrum/card/stories/GridCardView.stories.tsx +++ b/packages/@react-spectrum/card/stories/GridCardView.stories.tsx @@ -25,10 +25,10 @@ import {Image} from '@react-spectrum/image'; import {Key} from '@react-types/shared'; import {Link} from '@react-spectrum/link'; import React, {useMemo, useState} from 'react'; -import {Size} from '@react-stately/virtualizer'; +import {Size} from '@react-stately-nutrient/virtualizer'; import {SpectrumCardViewProps} from '@react-types/card'; import {TextField} from '@react-spectrum/textfield'; -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; import {useCollator} from '@react-aria-nutrient/i18n'; import {useProvider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/card/stories/WaterfallCardView.stories.tsx b/packages/@react-spectrum/card/stories/WaterfallCardView.stories.tsx index 6994bdcddd8..0665c899938 100644 --- a/packages/@react-spectrum/card/stories/WaterfallCardView.stories.tsx +++ b/packages/@react-spectrum/card/stories/WaterfallCardView.stories.tsx @@ -32,7 +32,7 @@ import { import {CardView, WaterfallLayout} from '../'; import {ComponentStoryObj} from '@storybook/react'; import React, {useMemo} from 'react'; -import {Size} from '@react-stately/virtualizer'; +import {Size} from '@react-stately-nutrient/virtualizer'; import {SpectrumCardViewProps} from '@react-types/card'; import {useCollator} from '@react-aria-nutrient/i18n'; import {WaterfallLayoutOptions} from '../src/WaterfallLayout'; diff --git a/packages/@react-spectrum/checkbox/package.json b/packages/@react-spectrum/checkbox/package.json index cf32804abd9..e0bba35ddc3 100644 --- a/packages/@react-spectrum/checkbox/package.json +++ b/packages/@react-spectrum/checkbox/package.json @@ -42,8 +42,8 @@ "@react-spectrum/form": "^3.7.13", "@react-spectrum/label": "^3.16.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/checkbox": "^3.6.12", - "@react-stately/toggle": "^3.8.2", + "@react-stately-nutrient/checkbox": "^3.6.12", + "@react-stately-nutrient/toggle": "^3.8.2", "@react-types/checkbox": "^3.9.2", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/checkbox/src/Checkbox.tsx b/packages/@react-spectrum/checkbox/src/Checkbox.tsx index 21d47a5fa06..494ddeb2d7c 100644 --- a/packages/@react-spectrum/checkbox/src/Checkbox.tsx +++ b/packages/@react-spectrum/checkbox/src/Checkbox.tsx @@ -24,7 +24,7 @@ import {useCheckbox, useCheckboxGroupItem} from '@react-aria-nutrient/checkbox'; import {useFormProps} from '@react-spectrum/form'; import {useHover} from '@react-aria-nutrient/interactions'; import {useProviderProps} from '@react-spectrum/provider'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; /** * Checkboxes allow users to select multiple items from a list of individual items, diff --git a/packages/@react-spectrum/checkbox/src/CheckboxGroup.tsx b/packages/@react-spectrum/checkbox/src/CheckboxGroup.tsx index c16b0d50f93..c268c04894e 100644 --- a/packages/@react-spectrum/checkbox/src/CheckboxGroup.tsx +++ b/packages/@react-spectrum/checkbox/src/CheckboxGroup.tsx @@ -19,7 +19,7 @@ import React from 'react'; import {SpectrumCheckboxGroupProps} from '@react-types/checkbox'; import styles from '@adobe/spectrum-css-temp/components/fieldgroup/vars.css'; import {useCheckboxGroup} from '@react-aria-nutrient/checkbox'; -import {useCheckboxGroupState} from '@react-stately/checkbox'; +import {useCheckboxGroupState} from '@react-stately-nutrient/checkbox'; import {useFormProps} from '@react-spectrum/form'; /** diff --git a/packages/@react-spectrum/checkbox/src/context.ts b/packages/@react-spectrum/checkbox/src/context.ts index a92ecefa7ff..21edb266e11 100644 --- a/packages/@react-spectrum/checkbox/src/context.ts +++ b/packages/@react-spectrum/checkbox/src/context.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {CheckboxGroupState} from '@react-stately/checkbox'; +import {CheckboxGroupState} from '@react-stately-nutrient/checkbox'; import React from 'react'; export const CheckboxGroupContext = React.createContext(null); diff --git a/packages/@react-spectrum/color/chromatic/ColorArea.stories.tsx b/packages/@react-spectrum/color/chromatic/ColorArea.stories.tsx index 30ec42d48ea..935f779dd83 100644 --- a/packages/@react-spectrum/color/chromatic/ColorArea.stories.tsx +++ b/packages/@react-spectrum/color/chromatic/ColorArea.stories.tsx @@ -13,7 +13,7 @@ import {ColorArea, ColorField, ColorSlider, ColorSwatch, ColorWheel} from '../'; import {Flex} from '@adobe/react-spectrum'; import {Meta, StoryFn} from '@storybook/react'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import React, {useState} from 'react'; import {SpectrumColorAreaProps} from '@react-types/color'; diff --git a/packages/@react-spectrum/color/docs/ColorArea.mdx b/packages/@react-spectrum/color/docs/ColorArea.mdx index 80301747a7c..6e4bcff5b69 100644 --- a/packages/@react-spectrum/color/docs/ColorArea.mdx +++ b/packages/@react-spectrum/color/docs/ColorArea.mdx @@ -12,7 +12,7 @@ import docs from 'docs:@react-spectrum/color'; import {HeaderInfo, PropTable, TypeLink, PageDescription} from '@react-spectrum/docs'; import {Layout} from '@react-spectrum/docs'; import packageData from '@react-spectrum/color/package.json'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; export default Layout; @@ -61,7 +61,7 @@ so that `value`'s type remains consistent. import {ColorArea} from '@react-spectrum/color'; import {Flex} from '@react-spectrum/layout'; import {Label} from '@react-spectrum/label'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [value, setValue] = React.useState(parseColor('hsl(0, 100%, 50%)')); @@ -166,7 +166,7 @@ The example below uses `onChange` and `onChangeEnd` to update two separate eleme ```tsx example import {ColorArea} from '@react-spectrum/color'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [currentValue, setCurrentValue] = React.useState(parseColor('hsl(50, 100%, 50%)')); @@ -206,7 +206,7 @@ color is modified. import {ColorArea, ColorSlider} from '@react-spectrum/color'; import {Flex} from '@react-spectrum/layout'; import {Label} from '@react-spectrum/label'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; function Example() { let [color, setColor] = React.useState(parseColor('#ff00ff')); @@ -234,7 +234,7 @@ and a ColorWheel instead of a ColorSlider for the Hue channel. import {ColorArea, ColorSlider, ColorWheel} from '@react-spectrum/color'; import {Flex, Grid} from '@react-spectrum/layout'; import {Label} from '@react-spectrum/label'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import {View} from '@react-spectrum/view'; function Example() { @@ -282,7 +282,7 @@ This example shows how to build an HSBA color picker. import {ColorArea, ColorSlider, ColorWheel} from '@react-spectrum/color'; import {Flex, Grid} from '@react-spectrum/layout'; import {Label} from '@react-spectrum/label'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import {View} from '@react-spectrum/view'; function Example() { diff --git a/packages/@react-spectrum/color/docs/ColorField.mdx b/packages/@react-spectrum/color/docs/ColorField.mdx index f158d2bc9ee..0a1da00facd 100644 --- a/packages/@react-spectrum/color/docs/ColorField.mdx +++ b/packages/@react-spectrum/color/docs/ColorField.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:@react-spectrum/color'; import {HeaderInfo, PropTable, TypeLink, PageDescription} from '@react-spectrum/docs'; import packageData from '@react-spectrum/color/package.json'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import colorTypes from 'docs:@react-types/color/src/index.d.ts'; ```jsx import @@ -51,7 +51,7 @@ In the example below, the ; diff --git a/packages/@react-spectrum/color/stories/ColorWheel.stories.tsx b/packages/@react-spectrum/color/stories/ColorWheel.stories.tsx index 65e1a72620f..1bdcd5b0e1b 100644 --- a/packages/@react-spectrum/color/stories/ColorWheel.stories.tsx +++ b/packages/@react-spectrum/color/stories/ColorWheel.stories.tsx @@ -14,7 +14,7 @@ import {action} from '@storybook/addon-actions'; import {ColorSwatch, ColorWheel} from '../'; import {ComponentMeta, ComponentStoryObj} from '@storybook/react'; import {Flex, useLocale} from '@adobe/react-spectrum'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import React, {useState} from 'react'; export type ColorWheelStory = ComponentStoryObj; diff --git a/packages/@react-spectrum/color/test/ColorArea.test.tsx b/packages/@react-spectrum/color/test/ColorArea.test.tsx index 913e6514322..dcedb5ed998 100644 --- a/packages/@react-spectrum/color/test/ColorArea.test.tsx +++ b/packages/@react-spectrum/color/test/ColorArea.test.tsx @@ -13,7 +13,7 @@ import {ColorArea} from '../'; import {composeStories} from '@storybook/react'; import {fireEvent, installMouseEvent, installPointerEvent, pointerMap, renderv3 as render} from '@react-spectrum/test-utils-internal'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import React from 'react'; import * as stories from '../stories/ColorArea.stories'; import userEvent from '@testing-library/user-event'; diff --git a/packages/@react-spectrum/color/test/ColorField.test.js b/packages/@react-spectrum/color/test/ColorField.test.js index c2a3cd61fa4..9ae967fba55 100644 --- a/packages/@react-spectrum/color/test/ColorField.test.js +++ b/packages/@react-spectrum/color/test/ColorField.test.js @@ -15,7 +15,7 @@ import {Button} from '@react-spectrum/button'; import {chain} from '@react-aria-nutrient/utils'; import {ColorField} from '../'; import {Form} from '@react-spectrum/form'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import {Provider} from '@react-spectrum/provider'; import React, {useState} from 'react'; import {theme} from '@react-spectrum/theme-default'; diff --git a/packages/@react-spectrum/color/test/ColorSlider.test.tsx b/packages/@react-spectrum/color/test/ColorSlider.test.tsx index e461337bd96..2ae2e7ccb63 100644 --- a/packages/@react-spectrum/color/test/ColorSlider.test.tsx +++ b/packages/@react-spectrum/color/test/ColorSlider.test.tsx @@ -12,7 +12,7 @@ import {act, fireEvent, installMouseEvent, installPointerEvent, pointerMap, renderv3 as render} from '@react-spectrum/test-utils-internal'; import {ColorSlider} from '../'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import React from 'react'; import userEvent from '@testing-library/user-event'; diff --git a/packages/@react-spectrum/color/test/ColorWheel.test.tsx b/packages/@react-spectrum/color/test/ColorWheel.test.tsx index bdfdb1604c9..8066163510b 100644 --- a/packages/@react-spectrum/color/test/ColorWheel.test.tsx +++ b/packages/@react-spectrum/color/test/ColorWheel.test.tsx @@ -13,7 +13,7 @@ import {act, fireEvent, installMouseEvent, installPointerEvent, pointerMap, renderv3 as render} from '@react-spectrum/test-utils-internal'; import {ColorWheel} from '../'; import {ControlledHSL} from '../stories/ColorWheel.stories'; -import {parseColor} from '@react-stately/color'; +import {parseColor} from '@react-stately-nutrient/color'; import React from 'react'; import userEvent from '@testing-library/user-event'; diff --git a/packages/@react-spectrum/combobox/docs/ComboBox.mdx b/packages/@react-spectrum/combobox/docs/ComboBox.mdx index d7dda1e51de..13cf2f7119f 100644 --- a/packages/@react-spectrum/combobox/docs/ComboBox.mdx +++ b/packages/@react-spectrum/combobox/docs/ComboBox.mdx @@ -446,7 +446,7 @@ control the menu's open state when the user selects an option or blurs from the The below example demonstrates how you would construct the same example above in a completely controlled fashion. ```tsx example -import {useTreeData} from '@react-stately/data'; +import {useTreeData} from '@react-stately-nutrient/data'; function Example() { let options = [ @@ -563,7 +563,7 @@ set by the `loadingState` prop. It also supports infinite scrolling to load more This example uses the [useAsyncList](../react-stately/useAsyncList.html) hook to handle loading the data. See the docs for more information. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string diff --git a/packages/@react-spectrum/combobox/package.json b/packages/@react-spectrum/combobox/package.json index 95e6aa4f872..fd28f9fb6a4 100644 --- a/packages/@react-spectrum/combobox/package.json +++ b/packages/@react-spectrum/combobox/package.json @@ -54,8 +54,8 @@ "@react-spectrum/progress": "^3.7.14", "@react-spectrum/textfield": "^3.13.1", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/combobox": "^3.10.3", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/combobox": "^3.10.3", "@react-types/button": "^3.11.0", "@react-types/combobox": "^3.13.3", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-spectrum/combobox/src/ComboBox.tsx b/packages/@react-spectrum/combobox/src/ComboBox.tsx index c0cb8847066..629f4e75fb7 100644 --- a/packages/@react-spectrum/combobox/src/ComboBox.tsx +++ b/packages/@react-spectrum/combobox/src/ComboBox.tsx @@ -47,7 +47,7 @@ import styles from '@adobe/spectrum-css-temp/components/inputgroup/vars.css'; import {TextFieldBase} from '@react-spectrum/textfield'; import textfieldStyles from '@adobe/spectrum-css-temp/components/textfield/vars.css'; import {useComboBox} from '@react-aria-nutrient/combobox'; -import {useComboBoxState} from '@react-stately/combobox'; +import {useComboBoxState} from '@react-stately-nutrient/combobox'; import {useFilter, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useFormProps} from '@react-spectrum/form'; import {useLayoutEffect} from '@react-aria-nutrient/utils'; diff --git a/packages/@react-spectrum/combobox/src/MobileComboBox.tsx b/packages/@react-spectrum/combobox/src/MobileComboBox.tsx index ab3d89cd944..6ccde477b04 100644 --- a/packages/@react-spectrum/combobox/src/MobileComboBox.tsx +++ b/packages/@react-spectrum/combobox/src/MobileComboBox.tsx @@ -17,7 +17,7 @@ import CheckmarkMedium from '@spectrum-icons/ui/CheckmarkMedium'; import ChevronDownMedium from '@spectrum-icons/ui/ChevronDownMedium'; import {classNames, unwrapDOMRef, useFocusableRef} from '@react-spectrum/utils'; import {ClearButton} from '@react-spectrum/button'; -import {ComboBoxState, useComboBoxState} from '@react-stately/combobox'; +import {ComboBoxState, useComboBoxState} from '@react-stately-nutrient/combobox'; import comboboxStyles from './combobox.css'; import {DismissButton, useOverlayTrigger} from '@react-aria-nutrient/overlays'; import {Field} from '@react-spectrum/label'; diff --git a/packages/@react-spectrum/combobox/src/index.ts b/packages/@react-spectrum/combobox/src/index.ts index 4499d3795c0..df073c75a52 100644 --- a/packages/@react-spectrum/combobox/src/index.ts +++ b/packages/@react-spectrum/combobox/src/index.ts @@ -13,5 +13,5 @@ /// export {ComboBox} from './ComboBox'; -export {Item, Section} from '@react-stately/collections'; +export {Item, Section} from '@react-stately-nutrient/collections'; export type {SpectrumComboBoxProps} from '@react-types/combobox'; diff --git a/packages/@react-spectrum/combobox/stories/ComboBox.stories.tsx b/packages/@react-spectrum/combobox/stories/ComboBox.stories.tsx index 542e11b3ade..9d3749757b9 100644 --- a/packages/@react-spectrum/combobox/stories/ComboBox.stories.tsx +++ b/packages/@react-spectrum/combobox/stories/ComboBox.stories.tsx @@ -30,7 +30,7 @@ import {Heading, Text} from '@react-spectrum/text'; import {Key} from '@react-types/shared'; import {Link} from '@react-spectrum/link'; import React, {useRef, useState} from 'react'; -import {useAsyncList, useListData, useTreeData} from '@react-stately/data'; +import {useAsyncList, useListData, useTreeData} from '@react-stately-nutrient/data'; import {useFilter} from '@react-aria-nutrient/i18n'; let items = [ diff --git a/packages/@react-spectrum/combobox/test/ComboBox.test.js b/packages/@react-spectrum/combobox/test/ComboBox.test.js index 1a3ab0fe37f..021e80dd7e8 100644 --- a/packages/@react-spectrum/combobox/test/ComboBox.test.js +++ b/packages/@react-spectrum/combobox/test/ComboBox.test.js @@ -22,7 +22,7 @@ import React from 'react'; import scaleMedium from '@adobe/spectrum-css-temp/vars/spectrum-medium-unique.css'; import {SSRProvider} from '@react-aria-nutrient/ssr'; import themeLight from '@adobe/spectrum-css-temp/vars/spectrum-light-unique.css'; -import {useAsyncList, useListData} from '@react-stately/data'; +import {useAsyncList, useListData} from '@react-stately-nutrient/data'; import {useFilter} from '@react-aria-nutrient/i18n'; import {User} from '@react-aria-nutrient/test-utils'; import userEvent from '@testing-library/user-event'; diff --git a/packages/@react-spectrum/datepicker/package.json b/packages/@react-spectrum/datepicker/package.json index 1b883ffe4a5..a93129e151c 100644 --- a/packages/@react-spectrum/datepicker/package.json +++ b/packages/@react-spectrum/datepicker/package.json @@ -50,7 +50,7 @@ "@react-spectrum/layout": "^3.6.13", "@react-spectrum/utils": "^3.12.3", "@react-spectrum/view": "^3.6.17", - "@react-stately/datepicker": "^3.13.0", + "@react-stately-nutrient/datepicker": "^3.13.0", "@react-types/datepicker": "^3.11.0", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/datepicker/src/DateField.tsx b/packages/@react-spectrum/datepicker/src/DateField.tsx index 56c5e9aa1cf..1a808b509fe 100644 --- a/packages/@react-spectrum/datepicker/src/DateField.tsx +++ b/packages/@react-spectrum/datepicker/src/DateField.tsx @@ -20,7 +20,7 @@ import {FocusableRef} from '@react-types/shared'; import {Input} from './Input'; import React, {ReactElement, useRef} from 'react'; import {useDateField} from '@react-aria-nutrient/datepicker'; -import {useDateFieldState} from '@react-stately/datepicker'; +import {useDateFieldState} from '@react-stately-nutrient/datepicker'; import {useFocusManagerRef, useFormatHelpText, useFormattedDateWidth} from './utils'; import {useFormProps} from '@react-spectrum/form'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-spectrum/datepicker/src/DatePicker.tsx b/packages/@react-spectrum/datepicker/src/DatePicker.tsx index bd14306d37b..e9db6407490 100644 --- a/packages/@react-spectrum/datepicker/src/DatePicker.tsx +++ b/packages/@react-spectrum/datepicker/src/DatePicker.tsx @@ -30,7 +30,7 @@ import '@adobe/spectrum-css-temp/components/textfield/vars.css'; // HACK: must b import styles from '@adobe/spectrum-css-temp/components/inputgroup/vars.css'; import {TimeField} from './TimeField'; import {useDatePicker} from '@react-aria-nutrient/datepicker'; -import {useDatePickerState} from '@react-stately/datepicker'; +import {useDatePickerState} from '@react-stately-nutrient/datepicker'; import {useFocusManagerRef, useFormatHelpText, useFormattedDateWidth, useVisibleMonths} from './utils'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {useFormProps} from '@react-spectrum/form'; diff --git a/packages/@react-spectrum/datepicker/src/DatePickerField.tsx b/packages/@react-spectrum/datepicker/src/DatePickerField.tsx index fec3256e050..9c6a7939c8d 100644 --- a/packages/@react-spectrum/datepicker/src/DatePickerField.tsx +++ b/packages/@react-spectrum/datepicker/src/DatePickerField.tsx @@ -17,7 +17,7 @@ import datepickerStyles from './styles.css'; import {DateValue, SpectrumDatePickerProps} from '@react-types/datepicker'; import React, {ReactNode, useRef} from 'react'; import {useDateField} from '@react-aria-nutrient/datepicker'; -import {useDateFieldState} from '@react-stately/datepicker'; +import {useDateFieldState} from '@react-stately-nutrient/datepicker'; import {useLocale} from '@react-aria-nutrient/i18n'; interface DatePickerFieldProps extends SpectrumDatePickerProps { diff --git a/packages/@react-spectrum/datepicker/src/DatePickerSegment.tsx b/packages/@react-spectrum/datepicker/src/DatePickerSegment.tsx index 5ddf7fc37b2..1e1034ec6cb 100644 --- a/packages/@react-spectrum/datepicker/src/DatePickerSegment.tsx +++ b/packages/@react-spectrum/datepicker/src/DatePickerSegment.tsx @@ -11,7 +11,7 @@ */ import {classNames} from '@react-spectrum/utils'; -import {DateFieldState, DateSegment} from '@react-stately/datepicker'; +import {DateFieldState, DateSegment} from '@react-stately-nutrient/datepicker'; import {DatePickerBase, DateValue} from '@react-types/datepicker'; import React, {ReactNode, useRef} from 'react'; import styles from './styles.css'; diff --git a/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx b/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx index 5ea760316be..695b2210949 100644 --- a/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx +++ b/packages/@react-spectrum/datepicker/src/DateRangePicker.tsx @@ -30,7 +30,7 @@ import React, {ReactElement, useRef} from 'react'; import styles from '@adobe/spectrum-css-temp/components/inputgroup/vars.css'; import {TimeField} from './TimeField'; import {useDateRangePicker} from '@react-aria-nutrient/datepicker'; -import {useDateRangePickerState} from '@react-stately/datepicker'; +import {useDateRangePickerState} from '@react-stately-nutrient/datepicker'; import {useFocusManagerRef, useFormatHelpText, useFormattedDateWidth, useVisibleMonths} from './utils'; import {useFocusRing} from '@react-aria-nutrient/focus'; import {useFormProps} from '@react-spectrum/form'; diff --git a/packages/@react-spectrum/datepicker/src/TimeField.tsx b/packages/@react-spectrum/datepicker/src/TimeField.tsx index fb4622f260d..07e345c4603 100644 --- a/packages/@react-spectrum/datepicker/src/TimeField.tsx +++ b/packages/@react-spectrum/datepicker/src/TimeField.tsx @@ -23,7 +23,7 @@ import {useFormProps} from '@react-spectrum/form'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useProviderProps} from '@react-spectrum/provider'; import {useTimeField} from '@react-aria-nutrient/datepicker'; -import {useTimeFieldState} from '@react-stately/datepicker'; +import {useTimeFieldState} from '@react-stately-nutrient/datepicker'; /** * TimeFields allow users to enter and edit time values using a keyboard. diff --git a/packages/@react-spectrum/datepicker/src/utils.tsx b/packages/@react-spectrum/datepicker/src/utils.tsx index 0262c8742ba..f4541de06d3 100644 --- a/packages/@react-spectrum/datepicker/src/utils.tsx +++ b/packages/@react-spectrum/datepicker/src/utils.tsx @@ -13,7 +13,7 @@ import {createDOMRef} from '@react-spectrum/utils'; import {createFocusManager} from '@react-aria-nutrient/focus'; import {DateFormatter, useDateFormatter, useLocale} from '@react-aria-nutrient/i18n'; import {FocusableRef} from '@react-types/shared'; -import {FormatterOptions} from '@react-stately/datepicker'; +import {FormatterOptions} from '@react-stately-nutrient/datepicker'; import React, {ReactNode, useImperativeHandle, useMemo, useRef, useState} from 'react'; import {SpectrumDatePickerBase} from '@react-types/datepicker'; import {useDisplayNames} from '@react-aria-nutrient/datepicker'; diff --git a/packages/@react-spectrum/dialog/package.json b/packages/@react-spectrum/dialog/package.json index 04b57c9f083..18cadd947cd 100644 --- a/packages/@react-spectrum/dialog/package.json +++ b/packages/@react-spectrum/dialog/package.json @@ -49,7 +49,7 @@ "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", "@react-spectrum/view": "^3.6.17", - "@react-stately/overlays": "^3.6.14", + "@react-stately-nutrient/overlays": "^3.6.14", "@react-types/button": "^3.11.0", "@react-types/dialog": "^3.5.16", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-spectrum/dialog/src/DialogContainer.tsx b/packages/@react-spectrum/dialog/src/DialogContainer.tsx index 99646e1bbd4..696d4061483 100644 --- a/packages/@react-spectrum/dialog/src/DialogContainer.tsx +++ b/packages/@react-spectrum/dialog/src/DialogContainer.tsx @@ -14,7 +14,7 @@ import {DialogContext} from './context'; import {Modal} from '@react-spectrum/overlays'; import React, {ReactElement, ReactNode, useState} from 'react'; import {SpectrumDialogContainerProps} from '@react-types/dialog'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; /** * A DialogContainer accepts a single Dialog as a child, and manages showing and hiding diff --git a/packages/@react-spectrum/dialog/src/DialogTrigger.tsx b/packages/@react-spectrum/dialog/src/DialogTrigger.tsx index 588e9270957..fa01bea1620 100644 --- a/packages/@react-spectrum/dialog/src/DialogTrigger.tsx +++ b/packages/@react-spectrum/dialog/src/DialogTrigger.tsx @@ -12,7 +12,7 @@ import {DialogContext} from './context'; import {Modal, Popover, Tray} from '@react-spectrum/overlays'; -import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately/overlays'; +import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import {PressResponder} from '@react-aria-nutrient/interactions'; import React, {Fragment, JSX, ReactElement, useEffect, useRef} from 'react'; import {SpectrumDialogClose, SpectrumDialogProps, SpectrumDialogTriggerProps} from '@react-types/dialog'; diff --git a/packages/@react-spectrum/dnd/package.json b/packages/@react-spectrum/dnd/package.json index a58e983ac73..56d35bfc756 100644 --- a/packages/@react-spectrum/dnd/package.json +++ b/packages/@react-spectrum/dnd/package.json @@ -37,7 +37,7 @@ }, "dependencies": { "@react-aria-nutrient/dnd": "^3.9.1", - "@react-stately/dnd": "^3.5.2", + "@react-stately-nutrient/dnd": "^3.5.2", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-spectrum/dnd/src/useDragAndDrop.ts b/packages/@react-spectrum/dnd/src/useDragAndDrop.ts index afb19534758..f45af605502 100644 --- a/packages/@react-spectrum/dnd/src/useDragAndDrop.ts +++ b/packages/@react-spectrum/dnd/src/useDragAndDrop.ts @@ -36,7 +36,7 @@ import { DroppableCollectionStateOptions, useDraggableCollectionState, useDroppableCollectionState -} from '@react-stately/dnd'; +} from '@react-stately-nutrient/dnd'; import {JSX, useMemo} from 'react'; interface DraggableCollectionStateOpts extends Omit {} diff --git a/packages/@react-spectrum/form/package.json b/packages/@react-spectrum/form/package.json index b624194e02f..d12526e56b3 100644 --- a/packages/@react-spectrum/form/package.json +++ b/packages/@react-spectrum/form/package.json @@ -38,7 +38,7 @@ "dependencies": { "@react-aria-nutrient/utils": "^3.28.1", "@react-spectrum/utils": "^3.12.3", - "@react-stately/form": "^3.1.2", + "@react-stately-nutrient/form": "^3.1.2", "@react-types/form": "^3.7.10", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-spectrum/form/src/Form.tsx b/packages/@react-spectrum/form/src/Form.tsx index 483ad86c591..4e2e15171f1 100644 --- a/packages/@react-spectrum/form/src/Form.tsx +++ b/packages/@react-spectrum/form/src/Form.tsx @@ -13,7 +13,7 @@ import {Alignment, DOMRef, LabelPosition, SpectrumLabelableProps} from '@react-types/shared'; import {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {filterDOMProps} from '@react-aria-nutrient/utils'; -import {FormValidationContext} from '@react-stately/form'; +import {FormValidationContext} from '@react-stately-nutrient/form'; import {Provider, useProviderProps} from '@react-spectrum/provider'; import React, {useContext} from 'react'; import {SpectrumFormProps} from '@react-types/form'; diff --git a/packages/@react-spectrum/list/package.json b/packages/@react-spectrum/list/package.json index 807ffd8cb45..476cc684026 100644 --- a/packages/@react-spectrum/list/package.json +++ b/packages/@react-spectrum/list/package.json @@ -51,10 +51,10 @@ "@react-spectrum/progress": "^3.7.14", "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/layout": "^4.2.1", - "@react-stately/list": "^3.12.0", - "@react-stately/virtualizer": "^4.3.1", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/layout": "^4.2.1", + "@react-stately-nutrient/list": "^3.12.0", + "@react-stately-nutrient/virtualizer": "^4.3.1", "@react-types/grid": "^3.3.0", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", @@ -65,7 +65,7 @@ "@adobe/spectrum-css-temp": "3.0.0-alpha.1", "@react-aria-nutrient/dnd": "^3.0.0", "@react-spectrum/button": "^3.8.1", - "@react-stately/dnd": "^3.0.0" + "@react-stately-nutrient/dnd": "^3.0.0" }, "peerDependencies": { "@react-spectrum/provider": "^3.2.0", diff --git a/packages/@react-spectrum/list/src/ListView.tsx b/packages/@react-spectrum/list/src/ListView.tsx index 71850c88e54..7737dd56bca 100644 --- a/packages/@react-spectrum/list/src/ListView.tsx +++ b/packages/@react-spectrum/list/src/ListView.tsx @@ -14,7 +14,7 @@ import {AriaGridListProps, useGridList} from '@react-aria-nutrient/gridlist'; import {AsyncLoadable, DOMRef, Key, LoadingState, Node, SpectrumSelectionProps, StyleProps} from '@react-types/shared'; import {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import type {DragAndDropHooks} from '@react-spectrum/dnd'; -import type {DraggableCollectionState, DroppableCollectionState} from '@react-stately/dnd'; +import type {DraggableCollectionState, DroppableCollectionState} from '@react-stately-nutrient/dnd'; import type {DroppableCollectionResult} from '@react-aria-nutrient/dnd'; import {filterDOMProps, mergeProps, useLayoutEffect} from '@react-aria-nutrient/utils'; import {FocusRing, FocusScope} from '@react-aria-nutrient/focus'; @@ -22,7 +22,7 @@ import InsertionIndicator from './InsertionIndicator'; // @ts-ignore import intlMessages from '../intl/*.json'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; -import {ListState, useListState} from '@react-stately/list'; +import {ListState, useListState} from '@react-stately-nutrient/list'; import listStyles from './styles.css'; import {ListViewItem} from './ListViewItem'; import {ListViewLayout} from './ListViewLayout'; diff --git a/packages/@react-spectrum/list/src/ListViewLayout.ts b/packages/@react-spectrum/list/src/ListViewLayout.ts index bb9f0d1cce1..e57937b4aa4 100644 --- a/packages/@react-spectrum/list/src/ListViewLayout.ts +++ b/packages/@react-spectrum/list/src/ListViewLayout.ts @@ -9,8 +9,8 @@ * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ -import {InvalidationContext, LayoutInfo, Rect} from '@react-stately/virtualizer'; -import {LayoutNode, ListLayout, ListLayoutOptions} from '@react-stately/layout'; +import {InvalidationContext, LayoutInfo, Rect} from '@react-stately-nutrient/virtualizer'; +import {LayoutNode, ListLayout, ListLayoutOptions} from '@react-stately-nutrient/layout'; import {Node} from '@react-types/shared'; interface ListViewLayoutProps extends ListLayoutOptions { diff --git a/packages/@react-spectrum/list/src/index.ts b/packages/@react-spectrum/list/src/index.ts index 0b3c13f524f..4c2d2360609 100644 --- a/packages/@react-spectrum/list/src/index.ts +++ b/packages/@react-spectrum/list/src/index.ts @@ -11,5 +11,5 @@ */ export {ListView} from './ListView'; -export {Item} from '@react-stately/collections'; +export {Item} from '@react-stately-nutrient/collections'; export type {SpectrumListViewProps} from './ListView'; diff --git a/packages/@react-spectrum/list/stories/ListView.stories.tsx b/packages/@react-spectrum/list/stories/ListView.stories.tsx index eb0f3955545..9bbfe8a143b 100644 --- a/packages/@react-spectrum/list/stories/ListView.stories.tsx +++ b/packages/@react-spectrum/list/stories/ListView.stories.tsx @@ -20,7 +20,7 @@ import {Item, ListView} from '../'; import {Link} from '@react-spectrum/link'; import NoSearchResults from '@spectrum-icons/illustrations/NoSearchResults'; import React, {useEffect, useState} from 'react'; -import {useAsyncList, useListData} from '@react-stately/data'; +import {useAsyncList, useListData} from '@react-stately-nutrient/data'; export const items: any = [ {key: 'a', name: 'Adobe Photoshop', type: 'file'}, diff --git a/packages/@react-spectrum/list/stories/ListViewActions.stories.tsx b/packages/@react-spectrum/list/stories/ListViewActions.stories.tsx index 322d2538dd6..4bb02e5fb3e 100644 --- a/packages/@react-spectrum/list/stories/ListViewActions.stories.tsx +++ b/packages/@react-spectrum/list/stories/ListViewActions.stories.tsx @@ -12,7 +12,7 @@ import {Item, ListView} from '../'; import React from 'react'; import RemoveCircle from '@spectrum-icons/workflow/RemoveCircle'; import {Text} from '@react-spectrum/text'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; export default { title: 'ListView/Actions', diff --git a/packages/@react-spectrum/list/stories/ListViewDnDExamples.tsx b/packages/@react-spectrum/list/stories/ListViewDnDExamples.tsx index 3db9e480bf1..dfcf7ed2ecd 100644 --- a/packages/@react-spectrum/list/stories/ListViewDnDExamples.tsx +++ b/packages/@react-spectrum/list/stories/ListViewDnDExamples.tsx @@ -12,7 +12,7 @@ import {items} from './ListView.stories'; import React from 'react'; import {Text} from '@react-spectrum/text'; import {useDragAndDrop} from '@react-spectrum/dnd'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; export function DragExample(props?) { let {listViewProps, dragHookOptions} = props; diff --git a/packages/@react-spectrum/list/stories/ListViewDnDUtilExamples.tsx b/packages/@react-spectrum/list/stories/ListViewDnDUtilExamples.tsx index 3f1e5bc574c..6ab49fb3c4e 100644 --- a/packages/@react-spectrum/list/stories/ListViewDnDUtilExamples.tsx +++ b/packages/@react-spectrum/list/stories/ListViewDnDUtilExamples.tsx @@ -6,7 +6,7 @@ import {Item, ListView} from '../'; import React from 'react'; import {Text} from '@react-spectrum/text'; import {useDragAndDrop} from '@react-spectrum/dnd'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; let itemProcessor = async (items, acceptedDragTypes) => { let processedItems: any[] = []; diff --git a/packages/@react-spectrum/list/test/ListViewDnd.test.js b/packages/@react-spectrum/list/test/ListViewDnd.test.js index c1cae7e6172..2de894de771 100644 --- a/packages/@react-spectrum/list/test/ListViewDnd.test.js +++ b/packages/@react-spectrum/list/test/ListViewDnd.test.js @@ -34,7 +34,7 @@ import React from 'react'; import {Text} from '@react-spectrum/text'; import {theme} from '@react-spectrum/theme-default'; import {useDragAndDrop} from '@react-spectrum/dnd'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; import userEvent from '@testing-library/user-event'; let isReact18 = parseInt(React.version, 10) === 18; diff --git a/packages/@react-spectrum/listbox/docs/ListBox.mdx b/packages/@react-spectrum/listbox/docs/ListBox.mdx index 13edf558c3e..bac90fc5ca9 100644 --- a/packages/@react-spectrum/listbox/docs/ListBox.mdx +++ b/packages/@react-spectrum/listbox/docs/ListBox.mdx @@ -329,7 +329,7 @@ This example uses the [useAsyncList](../react-stately/useAsyncList.html) hook to See the docs for more information. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Pokemon { name: string diff --git a/packages/@react-spectrum/listbox/package.json b/packages/@react-spectrum/listbox/package.json index 93c9b44b223..d39287bf618 100644 --- a/packages/@react-spectrum/listbox/package.json +++ b/packages/@react-spectrum/listbox/package.json @@ -46,10 +46,10 @@ "@react-spectrum/progress": "^3.7.14", "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/layout": "^4.2.1", - "@react-stately/list": "^3.12.0", - "@react-stately/virtualizer": "^4.3.1", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/layout": "^4.2.1", + "@react-stately-nutrient/list": "^3.12.0", + "@react-stately-nutrient/virtualizer": "^4.3.1", "@react-types/listbox": "^3.5.5", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/listbox/src/ListBox.tsx b/packages/@react-spectrum/listbox/src/ListBox.tsx index c17db580ef8..39506dd6965 100644 --- a/packages/@react-spectrum/listbox/src/ListBox.tsx +++ b/packages/@react-spectrum/listbox/src/ListBox.tsx @@ -15,7 +15,7 @@ import {ListBoxBase, useListBoxLayout} from './ListBoxBase'; import React, {ReactElement} from 'react'; import {SpectrumListBoxProps} from '@react-types/listbox'; import {useDOMRef} from '@react-spectrum/utils'; -import {useListState} from '@react-stately/list'; +import {useListState} from '@react-stately-nutrient/list'; // forwardRef doesn't support generic parameters, so cast the result to the correct type // https://stackoverflow.com/questions/58469229/react-with-typescript-generics-while-using-react-forwardref diff --git a/packages/@react-spectrum/listbox/src/ListBoxBase.tsx b/packages/@react-spectrum/listbox/src/ListBoxBase.tsx index a30b75bfd5c..38204d7c9f3 100644 --- a/packages/@react-spectrum/listbox/src/ListBoxBase.tsx +++ b/packages/@react-spectrum/listbox/src/ListBoxBase.tsx @@ -20,11 +20,11 @@ import {ListBoxContext} from './ListBoxContext'; import {ListBoxLayout} from './ListBoxLayout'; import {ListBoxOption} from './ListBoxOption'; import {ListBoxSection} from './ListBoxSection'; -import {ListState} from '@react-stately/list'; +import {ListState} from '@react-stately-nutrient/list'; import {mergeProps, useObjectRef} from '@react-aria-nutrient/utils'; import {ProgressCircle} from '@react-spectrum/progress'; import React, {ForwardedRef, HTMLAttributes, ReactElement, ReactNode, useCallback, useContext, useMemo} from 'react'; -import {ReusableView} from '@react-stately/virtualizer'; +import {ReusableView} from '@react-stately-nutrient/virtualizer'; import styles from '@adobe/spectrum-css-temp/components/menu/vars.css'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useProvider} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/listbox/src/ListBoxContext.ts b/packages/@react-spectrum/listbox/src/ListBoxContext.ts index 346d222f2fe..943e167e141 100644 --- a/packages/@react-spectrum/listbox/src/ListBoxContext.ts +++ b/packages/@react-spectrum/listbox/src/ListBoxContext.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {ListState} from '@react-stately/list'; +import {ListState} from '@react-stately-nutrient/list'; import React, {ReactNode} from 'react'; interface ListBoxContextValue { diff --git a/packages/@react-spectrum/listbox/src/ListBoxLayout.ts b/packages/@react-spectrum/listbox/src/ListBoxLayout.ts index 212949e66c5..ca3d3f6c680 100644 --- a/packages/@react-spectrum/listbox/src/ListBoxLayout.ts +++ b/packages/@react-spectrum/listbox/src/ListBoxLayout.ts @@ -1,5 +1,5 @@ -import {InvalidationContext, LayoutInfo, Rect} from '@react-stately/virtualizer'; -import {LayoutNode, ListLayout, ListLayoutOptions} from '@react-stately/layout'; +import {InvalidationContext, LayoutInfo, Rect} from '@react-stately-nutrient/virtualizer'; +import {LayoutNode, ListLayout, ListLayoutOptions} from '@react-stately-nutrient/layout'; import {Node} from '@react-types/shared'; interface ListBoxLayoutProps extends ListLayoutOptions { diff --git a/packages/@react-spectrum/listbox/src/ListBoxSection.tsx b/packages/@react-spectrum/listbox/src/ListBoxSection.tsx index a3ad9cb467c..39961ae8a49 100644 --- a/packages/@react-spectrum/listbox/src/ListBoxSection.tsx +++ b/packages/@react-spectrum/listbox/src/ListBoxSection.tsx @@ -11,7 +11,7 @@ */ import {classNames} from '@react-spectrum/utils'; -import {LayoutInfo} from '@react-stately/virtualizer'; +import {LayoutInfo} from '@react-stately-nutrient/virtualizer'; import {layoutInfoToStyle, useVirtualizerItem, VirtualizerItemOptions} from '@react-aria-nutrient/virtualizer'; import {ListBoxContext} from './ListBoxContext'; import {Node} from '@react-types/shared'; diff --git a/packages/@react-spectrum/listbox/src/index.ts b/packages/@react-spectrum/listbox/src/index.ts index cde0e6831d2..5dc6ea17043 100644 --- a/packages/@react-spectrum/listbox/src/index.ts +++ b/packages/@react-spectrum/listbox/src/index.ts @@ -14,5 +14,5 @@ export {ListBox} from './ListBox'; export {useListBoxLayout, ListBoxBase} from './ListBoxBase'; -export {Item, Section} from '@react-stately/collections'; +export {Item, Section} from '@react-stately-nutrient/collections'; export type {SpectrumListBoxProps} from '@react-types/listbox'; diff --git a/packages/@react-spectrum/listbox/stories/ListBox.stories.tsx b/packages/@react-spectrum/listbox/stories/ListBox.stories.tsx index 952ce167ec3..75c6c6292ac 100644 --- a/packages/@react-spectrum/listbox/stories/ListBox.stories.tsx +++ b/packages/@react-spectrum/listbox/stories/ListBox.stories.tsx @@ -27,7 +27,7 @@ import {Label} from '@react-spectrum/label'; import Paste from '@spectrum-icons/workflow/Paste'; import React, {useRef, useState} from 'react'; import {TranslateListBox} from './../chromatic/ListBoxLanguages.stories'; -import {useAsyncList, useTreeData} from '@react-stately/data'; +import {useAsyncList, useTreeData} from '@react-stately-nutrient/data'; let iconMap = { AlignCenter, diff --git a/packages/@react-spectrum/listbox/test/ListBox.test.js b/packages/@react-spectrum/listbox/test/ListBox.test.js index 25ed6eafe31..683a55cc2c1 100644 --- a/packages/@react-spectrum/listbox/test/ListBox.test.js +++ b/packages/@react-spectrum/listbox/test/ListBox.test.js @@ -18,7 +18,7 @@ import {Provider} from '@react-spectrum/provider'; import React from 'react'; import {Text} from '@react-spectrum/text'; import {theme} from '@react-spectrum/theme-default'; -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; import {User} from '@react-aria-nutrient/test-utils'; import userEvent from '@testing-library/user-event'; diff --git a/packages/@react-spectrum/menu/package.json b/packages/@react-spectrum/menu/package.json index 45b1f6e67ca..6f96bab97c7 100644 --- a/packages/@react-spectrum/menu/package.json +++ b/packages/@react-spectrum/menu/package.json @@ -48,10 +48,10 @@ "@react-spectrum/overlays": "^5.7.3", "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/menu": "^3.9.2", - "@react-stately/overlays": "^3.6.14", - "@react-stately/tree": "^3.8.8", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/menu": "^3.9.2", + "@react-stately-nutrient/overlays": "^3.6.14", + "@react-stately-nutrient/tree": "^3.8.8", "@react-types/menu": "^3.9.15", "@react-types/overlays": "^3.8.13", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx b/packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx index cba211397bb..71aa8bdfcd1 100644 --- a/packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx +++ b/packages/@react-spectrum/menu/src/ContextualHelpTrigger.tsx @@ -22,7 +22,7 @@ import styles from '@adobe/spectrum-css-temp/components/menu/vars.css'; import {SubmenuTriggerContext, useMenuStateContext} from './context'; import {TrayHeaderWrapper} from './Menu'; import {useSubmenuTrigger} from '@react-aria-nutrient/menu'; -import {useSubmenuTriggerState} from '@react-stately/menu'; +import {useSubmenuTriggerState} from '@react-stately-nutrient/menu'; interface MenuDialogTriggerProps { /** Whether the menu item is currently unavailable. */ diff --git a/packages/@react-spectrum/menu/src/Menu.tsx b/packages/@react-spectrum/menu/src/Menu.tsx index 598584db477..78152cf6d42 100644 --- a/packages/@react-spectrum/menu/src/Menu.tsx +++ b/packages/@react-spectrum/menu/src/Menu.tsx @@ -22,10 +22,10 @@ import {MenuItem} from './MenuItem'; import {MenuSection} from './MenuSection'; import {mergeProps, useLayoutEffect, useSlotId, useSyncRef} from '@react-aria-nutrient/utils'; import React, {KeyboardEventHandler, ReactElement, ReactNode, RefObject, useContext, useEffect, useRef, useState} from 'react'; -import {RootMenuTriggerState} from '@react-stately/menu'; +import {RootMenuTriggerState} from '@react-stately-nutrient/menu'; import {SpectrumMenuProps} from '@react-types/menu'; import styles from '@adobe/spectrum-css-temp/components/menu/vars.css'; -import {TreeState, useTreeState} from '@react-stately/tree'; +import {TreeState, useTreeState} from '@react-stately-nutrient/tree'; import {useLocale, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useMenu} from '@react-aria-nutrient/menu'; diff --git a/packages/@react-spectrum/menu/src/MenuItem.tsx b/packages/@react-spectrum/menu/src/MenuItem.tsx index f32ea5a6235..888e3481ae3 100644 --- a/packages/@react-spectrum/menu/src/MenuItem.tsx +++ b/packages/@react-spectrum/menu/src/MenuItem.tsx @@ -24,7 +24,7 @@ import {mergeRefs, useObjectRef, useSlotId} from '@react-aria-nutrient/utils'; import React, {ReactNode, useMemo, useRef} from 'react'; import styles from '@adobe/spectrum-css-temp/components/menu/vars.css'; import {Text} from '@react-spectrum/text'; -import {TreeState} from '@react-stately/tree'; +import {TreeState} from '@react-stately-nutrient/tree'; import {useLocale, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useMenuContext, useSubmenuTriggerContext} from './context'; import {useMenuItem} from '@react-aria-nutrient/menu'; diff --git a/packages/@react-spectrum/menu/src/MenuSection.tsx b/packages/@react-spectrum/menu/src/MenuSection.tsx index 281f8bcc98a..92ff4b83c21 100644 --- a/packages/@react-spectrum/menu/src/MenuSection.tsx +++ b/packages/@react-spectrum/menu/src/MenuSection.tsx @@ -11,12 +11,12 @@ */ import {classNames} from '@react-spectrum/utils'; -import {getChildNodes} from '@react-stately/collections'; +import {getChildNodes} from '@react-stately-nutrient/collections'; import {MenuItem} from './MenuItem'; import {Node} from '@react-types/shared'; import React, {Fragment, ReactNode} from 'react'; import styles from '@adobe/spectrum-css-temp/components/menu/vars.css'; -import {TreeState} from '@react-stately/tree'; +import {TreeState} from '@react-stately-nutrient/tree'; import {useMenuSection} from '@react-aria-nutrient/menu'; import {useSeparator} from '@react-aria-nutrient/separator'; diff --git a/packages/@react-spectrum/menu/src/MenuTrigger.tsx b/packages/@react-spectrum/menu/src/MenuTrigger.tsx index 383a1629cbb..5a36dffef41 100644 --- a/packages/@react-spectrum/menu/src/MenuTrigger.tsx +++ b/packages/@react-spectrum/menu/src/MenuTrigger.tsx @@ -20,7 +20,7 @@ import React, {forwardRef, Fragment, useRef} from 'react'; import {SpectrumMenuTriggerProps} from '@react-types/menu'; import styles from '@adobe/spectrum-css-temp/components/menu/vars.css'; import {useMenuTrigger} from '@react-aria-nutrient/menu'; -import {useMenuTriggerState} from '@react-stately/menu'; +import {useMenuTriggerState} from '@react-stately-nutrient/menu'; /** * The MenuTrigger serves as a wrapper around a Menu and its associated trigger, diff --git a/packages/@react-spectrum/menu/src/SubmenuTrigger.tsx b/packages/@react-spectrum/menu/src/SubmenuTrigger.tsx index a6181f600bb..141949e9bd1 100644 --- a/packages/@react-spectrum/menu/src/SubmenuTrigger.tsx +++ b/packages/@react-spectrum/menu/src/SubmenuTrigger.tsx @@ -20,7 +20,7 @@ import ReactDOM from 'react-dom'; import styles from '@adobe/spectrum-css-temp/components/menu/vars.css'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useSubmenuTrigger} from '@react-aria-nutrient/menu'; -import {useSubmenuTriggerState} from '@react-stately/menu'; +import {useSubmenuTriggerState} from '@react-stately-nutrient/menu'; interface SubmenuTriggerProps { /** diff --git a/packages/@react-spectrum/menu/src/context.ts b/packages/@react-spectrum/menu/src/context.ts index 3ce267adbb8..3248eaac1be 100644 --- a/packages/@react-spectrum/menu/src/context.ts +++ b/packages/@react-spectrum/menu/src/context.ts @@ -12,8 +12,8 @@ import {DOMProps, FocusStrategy, HoverEvents, KeyboardEvents, PressEvents, RefObject} from '@react-types/shared'; import React, {HTMLAttributes, useContext} from 'react'; -import {RootMenuTriggerState} from '@react-stately/menu'; -import {TreeState} from '@react-stately/tree'; +import {RootMenuTriggerState} from '@react-stately-nutrient/menu'; +import {TreeState} from '@react-stately-nutrient/tree'; export interface MenuContextValue extends Omit, 'autoFocus' | 'onKeyDown'>, Pick { onClose?: () => void, diff --git a/packages/@react-spectrum/menu/src/index.ts b/packages/@react-spectrum/menu/src/index.ts index baea74b9b16..c8f4f146dae 100644 --- a/packages/@react-spectrum/menu/src/index.ts +++ b/packages/@react-spectrum/menu/src/index.ts @@ -17,7 +17,7 @@ export {SubmenuTrigger} from './SubmenuTrigger'; export {Menu} from './Menu'; export {ActionMenu} from './ActionMenu'; export {ContextualHelpTrigger} from './ContextualHelpTrigger'; -export {Item, Section} from '@react-stately/collections'; +export {Item, Section} from '@react-stately-nutrient/collections'; export type {SpectrumActionMenuProps, SpectrumMenuProps, SpectrumMenuTriggerProps} from '@react-types/menu'; export type {SpectrumMenuDialogTriggerProps} from './ContextualHelpTrigger'; export type {SpectrumSubmenuTriggerProps} from './SubmenuTrigger'; diff --git a/packages/@react-spectrum/numberfield/package.json b/packages/@react-spectrum/numberfield/package.json index 19e6003d5e8..5a0e4b34a2c 100644 --- a/packages/@react-spectrum/numberfield/package.json +++ b/packages/@react-spectrum/numberfield/package.json @@ -46,7 +46,7 @@ "@react-spectrum/label": "^3.16.13", "@react-spectrum/textfield": "^3.13.1", "@react-spectrum/utils": "^3.12.3", - "@react-stately/numberfield": "^3.9.10", + "@react-stately-nutrient/numberfield": "^3.9.10", "@react-types/button": "^3.11.0", "@react-types/numberfield": "^3.8.9", "@react-types/shared": "^3.28.0", diff --git a/packages/@react-spectrum/numberfield/src/NumberField.tsx b/packages/@react-spectrum/numberfield/src/NumberField.tsx index b675a3b323b..8d941506344 100644 --- a/packages/@react-spectrum/numberfield/src/NumberField.tsx +++ b/packages/@react-spectrum/numberfield/src/NumberField.tsx @@ -16,7 +16,7 @@ import {Field} from '@react-spectrum/label'; import {FocusableRef, RefObject} from '@react-types/shared'; import {FocusRing} from '@react-aria-nutrient/focus'; import {mergeProps} from '@react-aria-nutrient/utils'; -import {NumberFieldState, useNumberFieldState} from '@react-stately/numberfield'; +import {NumberFieldState, useNumberFieldState} from '@react-stately-nutrient/numberfield'; import React, {HTMLAttributes, InputHTMLAttributes, Ref, useRef} from 'react'; import {SpectrumNumberFieldProps} from '@react-types/numberfield'; import {StepButton} from './StepButton'; diff --git a/packages/@react-spectrum/overlays/package.json b/packages/@react-spectrum/overlays/package.json index 289fc5b9c30..63b1724d244 100644 --- a/packages/@react-spectrum/overlays/package.json +++ b/packages/@react-spectrum/overlays/package.json @@ -40,7 +40,7 @@ "@react-aria-nutrient/overlays": "^3.26.1", "@react-aria-nutrient/utils": "^3.28.1", "@react-spectrum/utils": "^3.12.3", - "@react-stately/overlays": "^3.6.14", + "@react-stately-nutrient/overlays": "^3.6.14", "@react-types/overlays": "^3.8.13", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0", diff --git a/packages/@react-spectrum/overlays/src/Modal.tsx b/packages/@react-spectrum/overlays/src/Modal.tsx index 56a74c6e0c2..55678e75d15 100644 --- a/packages/@react-spectrum/overlays/src/Modal.tsx +++ b/packages/@react-spectrum/overlays/src/Modal.tsx @@ -16,7 +16,7 @@ import {DOMRef, RefObject, StyleProps} from '@react-types/shared'; import modalStyles from '@adobe/spectrum-css-temp/components/modal/vars.css'; import {Overlay} from './Overlay'; import {OverlayProps} from '@react-types/overlays'; -import {OverlayTriggerState} from '@react-stately/overlays'; +import {OverlayTriggerState} from '@react-stately-nutrient/overlays'; import overrideStyles from './overlays.css'; import React, {ForwardedRef, forwardRef, ReactNode, useRef} from 'react'; import {Underlay} from './Underlay'; diff --git a/packages/@react-spectrum/overlays/src/Popover.tsx b/packages/@react-spectrum/overlays/src/Popover.tsx index f19e530e454..160cc5f4c22 100644 --- a/packages/@react-spectrum/overlays/src/Popover.tsx +++ b/packages/@react-spectrum/overlays/src/Popover.tsx @@ -16,7 +16,7 @@ import {DOMRef, RefObject, StyleProps} from '@react-types/shared'; import {FocusWithinProps, useFocusWithin} from '@react-aria-nutrient/interactions'; import {mergeProps, useLayoutEffect, useObjectRef} from '@react-aria-nutrient/utils'; import {Overlay} from './Overlay'; -import {OverlayTriggerState} from '@react-stately/overlays'; +import {OverlayTriggerState} from '@react-stately-nutrient/overlays'; import overrideStyles from './overlays.css'; import React, {ForwardedRef, forwardRef, ReactNode, useRef, useState} from 'react'; import styles from '@adobe/spectrum-css-temp/components/popover/vars.css'; diff --git a/packages/@react-spectrum/overlays/src/Tray.tsx b/packages/@react-spectrum/overlays/src/Tray.tsx index 6d9fbf078e7..0b66892b3c6 100644 --- a/packages/@react-spectrum/overlays/src/Tray.tsx +++ b/packages/@react-spectrum/overlays/src/Tray.tsx @@ -15,7 +15,7 @@ import {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils'; import {DOMRef, RefObject, StyleProps} from '@react-types/shared'; import {Overlay} from './Overlay'; import {OverlayProps} from '@react-types/overlays'; -import {OverlayTriggerState} from '@react-stately/overlays'; +import {OverlayTriggerState} from '@react-stately-nutrient/overlays'; import overrideStyles from './overlays.css'; import React, {ForwardedRef, forwardRef, ReactNode, useRef} from 'react'; import trayStyles from '@adobe/spectrum-css-temp/components/tray/vars.css'; diff --git a/packages/@react-spectrum/overlays/stories/Modal.stories.tsx b/packages/@react-spectrum/overlays/stories/Modal.stories.tsx index 5614927f924..65b8c756ff5 100644 --- a/packages/@react-spectrum/overlays/stories/Modal.stories.tsx +++ b/packages/@react-spectrum/overlays/stories/Modal.stories.tsx @@ -19,7 +19,7 @@ import {Flex} from '@react-spectrum/layout'; import {Heading, Text} from '@react-spectrum/text'; import {Modal} from '../'; import React, {Fragment} from 'react'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; export default { title: 'Modal', diff --git a/packages/@react-spectrum/overlays/test/Modal.test.js b/packages/@react-spectrum/overlays/test/Modal.test.js index fabd82907b6..7469833b791 100644 --- a/packages/@react-spectrum/overlays/test/Modal.test.js +++ b/packages/@react-spectrum/overlays/test/Modal.test.js @@ -15,7 +15,7 @@ import {Modal} from '../'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; import {theme} from '@react-spectrum/theme-default'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; function TestModal(props) { let state = useOverlayTriggerState(props); diff --git a/packages/@react-spectrum/overlays/test/Popover.test.js b/packages/@react-spectrum/overlays/test/Popover.test.js index 595635f8c0a..68290076638 100644 --- a/packages/@react-spectrum/overlays/test/Popover.test.js +++ b/packages/@react-spectrum/overlays/test/Popover.test.js @@ -16,7 +16,7 @@ import {Popover} from '../'; import {Provider} from '@react-spectrum/provider'; import React, {useRef} from 'react'; import {theme} from '@react-spectrum/theme-default'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import userEvent from '@testing-library/user-event'; function PopoverWithDialog({children}) { diff --git a/packages/@react-spectrum/overlays/test/Tray.test.js b/packages/@react-spectrum/overlays/test/Tray.test.js index 8ebccb2a347..fc2f6ac5f76 100644 --- a/packages/@react-spectrum/overlays/test/Tray.test.js +++ b/packages/@react-spectrum/overlays/test/Tray.test.js @@ -16,7 +16,7 @@ import {Provider} from '@react-spectrum/provider'; import React from 'react'; import {theme} from '@react-spectrum/theme-default'; import {Tray} from '../'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; function TestTray(props) { let state = useOverlayTriggerState(props); diff --git a/packages/@react-spectrum/picker/docs/Picker.mdx b/packages/@react-spectrum/picker/docs/Picker.mdx index 7f97ab69df5..a099be1d2a8 100644 --- a/packages/@react-spectrum/picker/docs/Picker.mdx +++ b/packages/@react-spectrum/picker/docs/Picker.mdx @@ -347,7 +347,7 @@ This example uses the [useAsyncList](../react-stately/useAsyncList.html) hook to See the docs for more information. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Pokemon { name: string diff --git a/packages/@react-spectrum/picker/package.json b/packages/@react-spectrum/picker/package.json index 65d796427b5..3bb14b1360b 100644 --- a/packages/@react-spectrum/picker/package.json +++ b/packages/@react-spectrum/picker/package.json @@ -48,8 +48,8 @@ "@react-spectrum/progress": "^3.7.14", "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/select": "^3.6.11", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/select": "^3.6.11", "@react-types/select": "^3.9.10", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/picker/src/Picker.tsx b/packages/@react-spectrum/picker/src/Picker.tsx index fffb841d77e..906715f2cc0 100644 --- a/packages/@react-spectrum/picker/src/Picker.tsx +++ b/packages/@react-spectrum/picker/src/Picker.tsx @@ -39,7 +39,7 @@ import {Text} from '@react-spectrum/text'; import {useFormProps} from '@react-spectrum/form'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useProvider, useProviderProps} from '@react-spectrum/provider'; -import {useSelectState} from '@react-stately/select'; +import {useSelectState} from '@react-stately-nutrient/select'; /** * Pickers allow users to choose a single option from a collapsible list of options when space is limited. diff --git a/packages/@react-spectrum/picker/src/index.ts b/packages/@react-spectrum/picker/src/index.ts index 428ace31e20..146e308a7fa 100644 --- a/packages/@react-spectrum/picker/src/index.ts +++ b/packages/@react-spectrum/picker/src/index.ts @@ -13,5 +13,5 @@ /// export {Picker} from './Picker'; -export {Item, Section} from '@react-stately/collections'; +export {Item, Section} from '@react-stately-nutrient/collections'; export type {SpectrumPickerProps} from '@react-types/select'; diff --git a/packages/@react-spectrum/picker/stories/Picker.stories.tsx b/packages/@react-spectrum/picker/stories/Picker.stories.tsx index 79c62b7b6b3..dd157bc8c4a 100644 --- a/packages/@react-spectrum/picker/stories/Picker.stories.tsx +++ b/packages/@react-spectrum/picker/stories/Picker.stories.tsx @@ -26,7 +26,7 @@ import {Heading, Text} from '@react-spectrum/text'; import {Item, Picker, Section, SpectrumPickerProps} from '../'; import Paste from '@spectrum-icons/workflow/Paste'; import React, {useState} from 'react'; -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; import {userEvent, within} from '@storybook/testing-library'; let flatOptions = [ diff --git a/packages/@react-spectrum/radio/package.json b/packages/@react-spectrum/radio/package.json index 4ead0dbc44b..ad6a2c3f888 100644 --- a/packages/@react-spectrum/radio/package.json +++ b/packages/@react-spectrum/radio/package.json @@ -42,7 +42,7 @@ "@react-spectrum/form": "^3.7.13", "@react-spectrum/label": "^3.16.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/radio": "^3.10.11", + "@react-stately-nutrient/radio": "^3.10.11", "@react-types/radio": "^3.8.7", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-spectrum/radio/src/RadioGroup.tsx b/packages/@react-spectrum/radio/src/RadioGroup.tsx index c562dc0e7ba..1292ae7481b 100644 --- a/packages/@react-spectrum/radio/src/RadioGroup.tsx +++ b/packages/@react-spectrum/radio/src/RadioGroup.tsx @@ -20,7 +20,7 @@ import styles from '@adobe/spectrum-css-temp/components/fieldgroup/vars.css'; import {useFormProps} from '@react-spectrum/form'; import {useProviderProps} from '@react-spectrum/provider'; import {useRadioGroup} from '@react-aria-nutrient/radio'; -import {useRadioGroupState} from '@react-stately/radio'; +import {useRadioGroupState} from '@react-stately-nutrient/radio'; /** * Radio groups allow users to select a single option from a list of mutually exclusive options. diff --git a/packages/@react-spectrum/radio/src/context.ts b/packages/@react-spectrum/radio/src/context.ts index 4f8a3bf3e41..842bfb30f29 100644 --- a/packages/@react-spectrum/radio/src/context.ts +++ b/packages/@react-spectrum/radio/src/context.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {RadioGroupState} from '@react-stately/radio'; +import {RadioGroupState} from '@react-stately-nutrient/radio'; import React, {useContext} from 'react'; interface RadioGroupContext { diff --git a/packages/@react-spectrum/s2/chromatic/TableView.stories.tsx b/packages/@react-spectrum/s2/chromatic/TableView.stories.tsx index 3445d905035..63b5460940c 100644 --- a/packages/@react-spectrum/s2/chromatic/TableView.stories.tsx +++ b/packages/@react-spectrum/s2/chromatic/TableView.stories.tsx @@ -16,7 +16,7 @@ import FolderOpen from '../spectrum-illustrations/linear/FolderOpen'; import type {Meta} from '@storybook/react'; import {SortDescriptor} from 'react-aria-components'; import {style} from '../style/spectrum-theme' with {type: 'macro'}; -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; import {useState} from 'react'; const meta: Meta = { diff --git a/packages/@react-spectrum/s2/package.json b/packages/@react-spectrum/s2/package.json index e1dbd62fd55..512639506b9 100644 --- a/packages/@react-spectrum/s2/package.json +++ b/packages/@react-spectrum/s2/package.json @@ -138,8 +138,8 @@ "@react-aria-nutrient/react-aria": "^3.38.1", "@react-aria-nutrient/utils": "^3.28.1", "@react-spectrum/utils": "^3.12.3", - "@react-stately/layout": "^4.2.1", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/layout": "^4.2.1", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/dialog": "^3.5.16", "@react-types/grid": "^3.3.0", "@react-types/provider": "^3.8.7", diff --git a/packages/@react-spectrum/s2/src/ActionBar.tsx b/packages/@react-spectrum/s2/src/ActionBar.tsx index bdbb5aa4ddf..f8b9fb22dc9 100644 --- a/packages/@react-spectrum/s2/src/ActionBar.tsx +++ b/packages/@react-spectrum/s2/src/ActionBar.tsx @@ -20,7 +20,7 @@ import {FocusScope, useKeyboard} from '@react-aria-nutrient/react-aria'; // @ts-ignore import intlMessages from '../intl/*.json'; import {style} from '../style' with {type: 'macro'}; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useDOMRef} from '@react-spectrum/utils'; import {useEnterAnimation, useExitAnimation, useObjectRef, useResizeObserver} from '@react-aria-nutrient/utils'; import {useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-spectrum/s2/src/TableView.tsx b/packages/@react-spectrum/s2/src/TableView.tsx index 6c3f96a73b7..3b36621a8b9 100644 --- a/packages/@react-spectrum/s2/src/TableView.tsx +++ b/packages/@react-spectrum/s2/src/TableView.tsx @@ -53,7 +53,7 @@ import {GridNode} from '@react-types/grid'; import {IconContext} from './Icon'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {LayoutNode} from '@react-stately/layout'; +import {LayoutNode} from '@react-stately-nutrient/layout'; import {Menu, MenuItem, MenuTrigger} from './Menu'; import {mergeStyles} from '../style/runtime'; import Nubbin from '../ui-icons/S2_MoveHorizontalTableWidget.svg'; diff --git a/packages/@react-spectrum/s2/src/Tabs.tsx b/packages/@react-spectrum/s2/src/Tabs.tsx index 51f5dc0832c..95e8411d266 100644 --- a/packages/@react-spectrum/s2/src/Tabs.tsx +++ b/packages/@react-spectrum/s2/src/Tabs.tsx @@ -34,7 +34,7 @@ import {IconContext} from './Icon'; import {inertValue, useEffectEvent, useId, useLabels, useLayoutEffect, useResizeObserver} from '@react-aria-nutrient/utils'; import {Picker, PickerItem} from './TabsPicker'; import {Text, TextContext} from './Content'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useDOMRef} from '@react-spectrum/utils'; import {useHasTabbableChild} from '@react-aria-nutrient/focus'; import {useLocale} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-spectrum/s2/stories/TableView.stories.tsx b/packages/@react-spectrum/s2/stories/TableView.stories.tsx index 9359daa0615..ebb969d0f53 100644 --- a/packages/@react-spectrum/s2/stories/TableView.stories.tsx +++ b/packages/@react-spectrum/s2/stories/TableView.stories.tsx @@ -17,7 +17,7 @@ import FolderOpen from '../spectrum-illustrations/linear/FolderOpen'; import type {Meta} from '@storybook/react'; import {SortDescriptor} from 'react-aria-components'; import {style} from '../style/spectrum-theme' with {type: 'macro'}; -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; import {useState} from 'react'; let onActionFunc = action('onAction'); diff --git a/packages/@react-spectrum/searchfield/package.json b/packages/@react-spectrum/searchfield/package.json index 5643404c1d6..724863e2ba9 100644 --- a/packages/@react-spectrum/searchfield/package.json +++ b/packages/@react-spectrum/searchfield/package.json @@ -41,7 +41,7 @@ "@react-spectrum/form": "^3.7.13", "@react-spectrum/textfield": "^3.13.1", "@react-spectrum/utils": "^3.12.3", - "@react-stately/searchfield": "^3.5.10", + "@react-stately-nutrient/searchfield": "^3.5.10", "@react-types/searchfield": "^3.6.0", "@react-types/textfield": "^3.12.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/searchfield/src/SearchField.tsx b/packages/@react-spectrum/searchfield/src/SearchField.tsx index e1e2f13d337..1e5c84ad03b 100644 --- a/packages/@react-spectrum/searchfield/src/SearchField.tsx +++ b/packages/@react-spectrum/searchfield/src/SearchField.tsx @@ -21,7 +21,7 @@ import {TextFieldRef} from '@react-types/textfield'; import {useFormProps} from '@react-spectrum/form'; import {useProviderProps} from '@react-spectrum/provider'; import {useSearchField} from '@react-aria-nutrient/searchfield'; -import {useSearchFieldState} from '@react-stately/searchfield'; +import {useSearchFieldState} from '@react-stately-nutrient/searchfield'; /** * A SearchField is a text field designed for searches. diff --git a/packages/@react-spectrum/slider/package.json b/packages/@react-spectrum/slider/package.json index d1e89343cde..8f8f1493212 100644 --- a/packages/@react-spectrum/slider/package.json +++ b/packages/@react-spectrum/slider/package.json @@ -43,7 +43,7 @@ "@react-aria-nutrient/utils": "^3.28.1", "@react-aria-nutrient/visually-hidden": "^3.8.21", "@react-spectrum/utils": "^3.12.3", - "@react-stately/slider": "^3.6.2", + "@react-stately-nutrient/slider": "^3.6.2", "@react-types/shared": "^3.28.0", "@react-types/slider": "^3.7.9", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-spectrum/slider/src/SliderBase.tsx b/packages/@react-spectrum/slider/src/SliderBase.tsx index a557e5453e7..387ac6ccdf7 100644 --- a/packages/@react-spectrum/slider/src/SliderBase.tsx +++ b/packages/@react-spectrum/slider/src/SliderBase.tsx @@ -13,7 +13,7 @@ import {classNames, SlotProvider, useFocusableRef, useStyleProps} from '@react-spectrum/utils'; import {FocusableRef, RefObject} from '@react-types/shared'; import React, {CSSProperties, ReactNode, useRef} from 'react'; -import {SliderState, useSliderState} from '@react-stately/slider'; +import {SliderState, useSliderState} from '@react-stately-nutrient/slider'; import {SpectrumBarSliderBase} from '@react-types/slider'; import styles from '@adobe/spectrum-css-temp/components/slider/vars.css'; import {useNumberFormatter} from '@react-aria-nutrient/i18n'; diff --git a/packages/@react-spectrum/slider/src/SliderThumb.tsx b/packages/@react-spectrum/slider/src/SliderThumb.tsx index 5a3d2cdb25c..2c126bf8ca6 100644 --- a/packages/@react-spectrum/slider/src/SliderThumb.tsx +++ b/packages/@react-spectrum/slider/src/SliderThumb.tsx @@ -16,7 +16,7 @@ import {FocusRing} from '@react-aria-nutrient/focus'; import {mergeProps} from '@react-aria-nutrient/utils'; import React, {ReactNode, useRef} from 'react'; import {RefObject} from '@react-types/shared'; -import {SliderState} from '@react-stately/slider'; +import {SliderState} from '@react-stately-nutrient/slider'; import styles from '@adobe/spectrum-css-temp/components/slider/vars.css'; import {useHover} from '@react-aria-nutrient/interactions'; import {useSliderThumb} from '@react-aria-nutrient/slider'; diff --git a/packages/@react-spectrum/steplist/package.json b/packages/@react-spectrum/steplist/package.json index 761249ca253..1da19016533 100644 --- a/packages/@react-spectrum/steplist/package.json +++ b/packages/@react-spectrum/steplist/package.json @@ -43,8 +43,8 @@ "@react-aria-nutrient/utils": "^3.28.1", "@react-aria-nutrient/visually-hidden": "^3.8.21", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/steplist": "3.0.0-alpha.12", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/steplist": "3.0.0-alpha.12", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-spectrum/steplist/src/StepList.tsx b/packages/@react-spectrum/steplist/src/StepList.tsx index 03b841ff7ab..66d30031288 100644 --- a/packages/@react-spectrum/steplist/src/StepList.tsx +++ b/packages/@react-spectrum/steplist/src/StepList.tsx @@ -18,7 +18,7 @@ import {StepListContext} from './StepListContext'; import {StepListItem} from './StepListItem'; import styles from '@adobe/spectrum-css-temp/components/steplist/vars.css'; import {useProviderProps} from '@react-spectrum/provider'; -import {useStepListState} from '@react-stately/steplist'; +import {useStepListState} from '@react-stately-nutrient/steplist'; export interface SpectrumStepListProps extends AriaStepListProps, StyleProps { /** diff --git a/packages/@react-spectrum/steplist/src/StepListContext.ts b/packages/@react-spectrum/steplist/src/StepListContext.ts index 0bf617a8d2d..fded11ae1b5 100644 --- a/packages/@react-spectrum/steplist/src/StepListContext.ts +++ b/packages/@react-spectrum/steplist/src/StepListContext.ts @@ -11,6 +11,6 @@ */ import React from 'react'; -import {StepListState} from '@react-stately/steplist'; +import {StepListState} from '@react-stately-nutrient/steplist'; export const StepListContext = React.createContext | null>(null); diff --git a/packages/@react-spectrum/steplist/src/index.ts b/packages/@react-spectrum/steplist/src/index.ts index aa9f8aff900..b892f8c6359 100644 --- a/packages/@react-spectrum/steplist/src/index.ts +++ b/packages/@react-spectrum/steplist/src/index.ts @@ -13,5 +13,5 @@ /// export {StepList} from './StepList'; -export {Item} from '@react-stately/collections'; +export {Item} from '@react-stately-nutrient/collections'; export type {SpectrumStepListProps} from './StepList'; diff --git a/packages/@react-spectrum/steplist/stories/StepList.stories.tsx b/packages/@react-spectrum/steplist/stories/StepList.stories.tsx index a3c2a55ae19..14bb83f14ed 100644 --- a/packages/@react-spectrum/steplist/stories/StepList.stories.tsx +++ b/packages/@react-spectrum/steplist/stories/StepList.stories.tsx @@ -15,7 +15,7 @@ import {Button} from '@react-spectrum/button'; import {ButtonGroup} from '@react-spectrum/buttongroup'; import {ComponentMeta, ComponentStoryObj} from '@storybook/react'; import {Flex} from '@react-spectrum/layout'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {Key} from '@react-types/shared'; import {Picker} from '@react-spectrum/picker'; import React, {useCallback, useMemo, useState} from 'react'; diff --git a/packages/@react-spectrum/steplist/test/StepList.test.tsx b/packages/@react-spectrum/steplist/test/StepList.test.tsx index 29ec602ee77..8f778b518f1 100644 --- a/packages/@react-spectrum/steplist/test/StepList.test.tsx +++ b/packages/@react-spectrum/steplist/test/StepList.test.tsx @@ -12,7 +12,7 @@ import {act} from '@testing-library/react'; import {DOMRefValue} from '@react-types/shared'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {pointerMap, render, within} from '@react-spectrum/test-utils-internal'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; diff --git a/packages/@react-spectrum/switch/package.json b/packages/@react-spectrum/switch/package.json index a932ef9de96..d584e8bddd7 100644 --- a/packages/@react-spectrum/switch/package.json +++ b/packages/@react-spectrum/switch/package.json @@ -40,7 +40,7 @@ "@react-aria-nutrient/interactions": "^3.24.1", "@react-aria-nutrient/switch": "^3.7.1", "@react-spectrum/utils": "^3.12.3", - "@react-stately/toggle": "^3.8.2", + "@react-stately-nutrient/toggle": "^3.8.2", "@react-types/shared": "^3.28.0", "@react-types/switch": "^3.5.9", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-spectrum/switch/src/Switch.tsx b/packages/@react-spectrum/switch/src/Switch.tsx index 1b624cf1f88..97930591f1b 100644 --- a/packages/@react-spectrum/switch/src/Switch.tsx +++ b/packages/@react-spectrum/switch/src/Switch.tsx @@ -19,7 +19,7 @@ import styles from '@adobe/spectrum-css-temp/components/toggle/vars.css'; import {useHover} from '@react-aria-nutrient/interactions'; import {useProviderProps} from '@react-spectrum/provider'; import {useSwitch} from '@react-aria-nutrient/switch'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; /** * Switches allow users to turn an individual option on or off. diff --git a/packages/@react-spectrum/table/chromatic/TreeGridTable.stories.tsx b/packages/@react-spectrum/table/chromatic/TreeGridTable.stories.tsx index 885b03d5cf0..000eb3581bb 100644 --- a/packages/@react-spectrum/table/chromatic/TreeGridTable.stories.tsx +++ b/packages/@react-spectrum/table/chromatic/TreeGridTable.stories.tsx @@ -14,7 +14,7 @@ import {ActionButton} from '@react-spectrum/button'; import {Cell, Column, Row, SpectrumTableProps, TableBody, TableHeader, TableView} from '../'; import {Content, View} from '@react-spectrum/view'; import Delete from '@spectrum-icons/workflow/Delete'; -import {enableTableNestedRows} from '@react-stately/flags'; +import {enableTableNestedRows} from '@react-stately-nutrient/flags'; import {generatePowerset} from '@react-spectrum/story-utils'; import {Grid, repeat} from '@react-spectrum/layout'; import {Heading} from '@react-spectrum/text'; diff --git a/packages/@react-spectrum/table/docs/TableView.mdx b/packages/@react-spectrum/table/docs/TableView.mdx index f5e4c7f117b..b1cee4bce8b 100644 --- a/packages/@react-spectrum/table/docs/TableView.mdx +++ b/packages/@react-spectrum/table/docs/TableView.mdx @@ -309,7 +309,7 @@ This example uses the [useAsyncList](../react-stately/useAsyncList.html) hook to See the docs for more information. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string, diff --git a/packages/@react-spectrum/table/package.json b/packages/@react-spectrum/table/package.json index ec25c74bc4e..7fd6cd58a3f 100644 --- a/packages/@react-spectrum/table/package.json +++ b/packages/@react-spectrum/table/package.json @@ -53,10 +53,10 @@ "@react-spectrum/progress": "^3.7.14", "@react-spectrum/tooltip": "^3.7.3", "@react-spectrum/utils": "^3.12.3", - "@react-stately/flags": "^3.1.0", - "@react-stately/layout": "^4.2.1", - "@react-stately/table": "^3.14.0", - "@react-stately/virtualizer": "^4.3.1", + "@react-stately-nutrient/flags": "^3.1.0", + "@react-stately-nutrient/layout": "^4.2.1", + "@react-stately-nutrient/table": "^3.14.0", + "@react-stately-nutrient/virtualizer": "^4.3.1", "@react-types/grid": "^3.3.0", "@react-types/shared": "^3.28.0", "@react-types/table": "^3.11.0", @@ -66,7 +66,7 @@ "devDependencies": { "@adobe/spectrum-css-temp": "3.0.0-alpha.1", "@react-aria-nutrient/dnd": "^3.1.0", - "@react-stately/dnd": "^3.1.0" + "@react-stately-nutrient/dnd": "^3.1.0" }, "peerDependencies": { "@react-spectrum/provider": "^3.0.0", diff --git a/packages/@react-spectrum/table/src/Resizer.tsx b/packages/@react-spectrum/table/src/Resizer.tsx index 872c9c12728..62068ae993f 100644 --- a/packages/@react-spectrum/table/src/Resizer.tsx +++ b/packages/@react-spectrum/table/src/Resizer.tsx @@ -12,7 +12,7 @@ import {Key, RefObject} from '@react-types/shared'; import React, {createContext, ForwardedRef, useContext, useEffect, useState} from 'react'; import ReactDOM from 'react-dom'; import styles from '@adobe/spectrum-css-temp/components/table/vars.css'; -import {TableColumnResizeState} from '@react-stately/table'; +import {TableColumnResizeState} from '@react-stately-nutrient/table'; import {useLocale, useLocalizedStringFormatter} from '@react-aria-nutrient/i18n'; import {useTableColumnResize} from '@react-aria-nutrient/table'; import {useTableContext, useVirtualizerContext} from './TableViewBase'; diff --git a/packages/@react-spectrum/table/src/TableView.tsx b/packages/@react-spectrum/table/src/TableView.tsx index 967f88eb104..6b4fbc87699 100644 --- a/packages/@react-spectrum/table/src/TableView.tsx +++ b/packages/@react-spectrum/table/src/TableView.tsx @@ -14,7 +14,7 @@ import {DOMRef} from '@react-types/shared'; import React, {ReactElement, useState} from 'react'; import {SpectrumTableProps} from './TableViewWrapper'; import {TableViewBase} from './TableViewBase'; -import {useTableState} from '@react-stately/table'; +import {useTableState} from '@react-stately-nutrient/table'; interface TableProps extends Omit, 'UNSTABLE_allowsExpandableRows'> {} diff --git a/packages/@react-spectrum/table/src/TableViewBase.tsx b/packages/@react-spectrum/table/src/TableViewBase.tsx index cd54a0c9ea9..143a015fa2c 100644 --- a/packages/@react-spectrum/table/src/TableViewBase.tsx +++ b/packages/@react-spectrum/table/src/TableViewBase.tsx @@ -25,7 +25,7 @@ import { import {ColumnSize, SpectrumColumnProps, TableCollection} from '@react-types/table'; import {DOMRef, DropTarget, FocusableElement, FocusableRef, Key, RefObject} from '@react-types/shared'; import type {DragAndDropHooks} from '@react-spectrum/dnd'; -import type {DraggableCollectionState, DroppableCollectionState} from '@react-stately/dnd'; +import type {DraggableCollectionState, DroppableCollectionState} from '@react-stately-nutrient/dnd'; import type {DraggableItemResult, DropIndicatorAria, DroppableCollectionResult} from '@react-aria-nutrient/dnd'; import {FocusRing, FocusScope, useFocusRing} from '@react-aria-nutrient/focus'; import {getInteractionModality, HoverProps, isFocusVisible, useHover, usePress} from '@react-aria-nutrient/interactions'; @@ -35,7 +35,7 @@ import {InsertionIndicator} from './InsertionIndicator'; import intlMessages from '../intl/*.json'; import {isAndroid, mergeProps, scrollIntoView, scrollIntoViewport, useLoadMore} from '@react-aria-nutrient/utils'; import {Item, Menu, MenuTrigger} from '@react-spectrum/menu'; -import {LayoutInfo, Rect, ReusableView, useVirtualizerState} from '@react-stately/virtualizer'; +import {LayoutInfo, Rect, ReusableView, useVirtualizerState} from '@react-stately-nutrient/virtualizer'; import {layoutInfoToStyle, ScrollView, setScrollLeft, VirtualizerItem} from '@react-aria-nutrient/virtualizer'; import ListGripper from '@spectrum-icons/ui/ListGripper'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; @@ -48,7 +48,7 @@ import {DragPreview as SpectrumDragPreview} from './DragPreview'; import {SpectrumTableProps} from './TableViewWrapper'; import styles from '@adobe/spectrum-css-temp/components/table/vars.css'; import stylesOverrides from './table.css'; -import {TableState, TreeGridState, useTableColumnResizeState} from '@react-stately/table'; +import {TableState, TreeGridState, useTableColumnResizeState} from '@react-stately-nutrient/table'; import {TableViewLayout} from './TableViewLayout'; import {Tooltip, TooltipTrigger} from '@react-spectrum/tooltip'; import {useButton} from '@react-aria-nutrient/button'; diff --git a/packages/@react-spectrum/table/src/TableViewLayout.ts b/packages/@react-spectrum/table/src/TableViewLayout.ts index e9ec9f7d271..7a62ebe237b 100644 --- a/packages/@react-spectrum/table/src/TableViewLayout.ts +++ b/packages/@react-spectrum/table/src/TableViewLayout.ts @@ -11,9 +11,9 @@ */ import {DropTarget} from '@react-types/shared'; import {GridNode} from '@react-types/grid'; -import {LayoutInfo, Rect} from '@react-stately/virtualizer'; -import {LayoutNode, TableLayout} from '@react-stately/layout'; -import {TableCollection} from '@react-stately/table'; +import {LayoutInfo, Rect} from '@react-stately-nutrient/virtualizer'; +import {LayoutNode, TableLayout} from '@react-stately-nutrient/layout'; +import {TableCollection} from '@react-stately-nutrient/table'; export class TableViewLayout extends TableLayout { private isLoading: boolean = false; diff --git a/packages/@react-spectrum/table/src/TableViewWrapper.tsx b/packages/@react-spectrum/table/src/TableViewWrapper.tsx index 5b02ba82dbc..592ab172eda 100644 --- a/packages/@react-spectrum/table/src/TableViewWrapper.tsx +++ b/packages/@react-spectrum/table/src/TableViewWrapper.tsx @@ -14,7 +14,7 @@ import type {AriaLabelingProps, DisabledBehavior, DOMProps, DOMRef, Key, Spectru import type {ColumnSize, TableProps} from '@react-types/table'; import type {DragAndDropHooks} from '@react-spectrum/dnd'; import React, {JSX, ReactElement} from 'react'; -import {tableNestedRows} from '@react-stately/flags'; +import {tableNestedRows} from '@react-stately-nutrient/flags'; import {TableView} from './TableView'; import {TreeGridTableView} from './TreeGridTableView'; diff --git a/packages/@react-spectrum/table/src/TreeGridTableView.tsx b/packages/@react-spectrum/table/src/TreeGridTableView.tsx index c3a4b466a9d..a03090a36d4 100644 --- a/packages/@react-spectrum/table/src/TreeGridTableView.tsx +++ b/packages/@react-spectrum/table/src/TreeGridTableView.tsx @@ -14,7 +14,7 @@ import {DOMRef} from '@react-types/shared'; import React, {ReactElement, useState} from 'react'; import {SpectrumTableProps} from './TableViewWrapper'; import {TableViewBase} from './TableViewBase'; -import {UNSTABLE_useTreeGridState} from '@react-stately/table'; +import {UNSTABLE_useTreeGridState} from '@react-stately-nutrient/table'; export interface TreeGridTableProps extends Omit, 'UNSTABLE_allowsExpandableRows'> {} diff --git a/packages/@react-spectrum/table/src/index.ts b/packages/@react-spectrum/table/src/index.ts index e365c1368a6..83081bc6dee 100644 --- a/packages/@react-spectrum/table/src/index.ts +++ b/packages/@react-spectrum/table/src/index.ts @@ -13,7 +13,7 @@ /// export {TableView} from './TableViewWrapper'; -import {Column} from '@react-stately/table'; +import {Column} from '@react-stately-nutrient/table'; import {JSX} from 'react'; import {SpectrumColumnProps} from '@react-types/table'; @@ -27,7 +27,7 @@ export { Section, Row, Cell -} from '@react-stately/table'; +} from '@react-stately-nutrient/table'; export type {SpectrumColumnProps, TableHeaderProps, TableBodyProps, RowProps, CellProps} from '@react-types/table'; export type {SpectrumTableProps} from './TableViewWrapper'; diff --git a/packages/@react-spectrum/table/stories/CRUDExample.tsx b/packages/@react-spectrum/table/stories/CRUDExample.tsx index 8fa0b32e694..c650d796c7d 100644 --- a/packages/@react-spectrum/table/stories/CRUDExample.tsx +++ b/packages/@react-spectrum/table/stories/CRUDExample.tsx @@ -29,7 +29,7 @@ import More from '@spectrum-icons/workflow/More'; import NoSearchResults from '@spectrum-icons/illustrations/NoSearchResults'; import React, {useState} from 'react'; import {TextField} from '@react-spectrum/textfield'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; export function CRUDExample(props) { let list = useListData({ diff --git a/packages/@react-spectrum/table/stories/Table.stories.tsx b/packages/@react-spectrum/table/stories/Table.stories.tsx index 7249db37d45..ac8a26f9d40 100644 --- a/packages/@react-spectrum/table/stories/Table.stories.tsx +++ b/packages/@react-spectrum/table/stories/Table.stories.tsx @@ -37,7 +37,7 @@ import React, {useCallback, useState} from 'react'; import {SearchField} from '@react-spectrum/searchfield'; import {Switch} from '@react-spectrum/switch'; import {TextField} from '@react-spectrum/textfield'; -import {useAsyncList, useListData} from '@react-stately/data'; +import {useAsyncList, useListData} from '@react-stately-nutrient/data'; import {useFilter} from '@react-aria-nutrient/i18n'; export default { diff --git a/packages/@react-spectrum/table/stories/TableDnDExamples.tsx b/packages/@react-spectrum/table/stories/TableDnDExamples.tsx index 686924d3a55..09836238fd4 100644 --- a/packages/@react-spectrum/table/stories/TableDnDExamples.tsx +++ b/packages/@react-spectrum/table/stories/TableDnDExamples.tsx @@ -7,7 +7,7 @@ import {ItemDropTarget, Key} from '@react-types/shared'; import React from 'react'; import {Text} from '@react-spectrum/text'; import {useDragAndDrop} from '@react-spectrum/dnd'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; let onSelectionChange = action('onSelectionChange'); diff --git a/packages/@react-spectrum/table/stories/TableDnDUtilExamples.tsx b/packages/@react-spectrum/table/stories/TableDnDUtilExamples.tsx index 62957cc62aa..a2a4573bbe6 100644 --- a/packages/@react-spectrum/table/stories/TableDnDUtilExamples.tsx +++ b/packages/@react-spectrum/table/stories/TableDnDUtilExamples.tsx @@ -5,7 +5,7 @@ import {DIRECTORY_DRAG_TYPE, useDragAndDrop} from '@react-spectrum/dnd'; import {Flex} from '@react-spectrum/layout'; import React from 'react'; import {Text} from '@react-spectrum/text'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; let onSelectionChange = action('onSelectionChange'); diff --git a/packages/@react-spectrum/table/stories/TreeGridTable.stories.tsx b/packages/@react-spectrum/table/stories/TreeGridTable.stories.tsx index d1c015b0941..e7cf272e8bf 100644 --- a/packages/@react-spectrum/table/stories/TreeGridTable.stories.tsx +++ b/packages/@react-spectrum/table/stories/TreeGridTable.stories.tsx @@ -16,7 +16,7 @@ import {Cell, Column, Row, SpectrumTableProps, TableBody, TableHeader, TableView import {chain} from '@react-aria-nutrient/utils'; import {ComponentMeta, ComponentStoryObj} from '@storybook/react'; import defaultConfig, {columns, EmptyStateTable, TableStory} from './Table.stories'; -import {enableTableNestedRows} from '@react-stately/flags'; +import {enableTableNestedRows} from '@react-stately-nutrient/flags'; import {Flex} from '@react-spectrum/layout'; import {Key} from '@react-types/shared'; import React, {useState} from 'react'; diff --git a/packages/@react-spectrum/table/test/Table.ssr.test.js b/packages/@react-spectrum/table/test/Table.ssr.test.js index 820c8b13ddf..cb37d229e1f 100644 --- a/packages/@react-spectrum/table/test/Table.ssr.test.js +++ b/packages/@react-spectrum/table/test/Table.ssr.test.js @@ -49,7 +49,7 @@ describe('Table Nested Rows SSR', function () { import {Provider} from '@react-spectrum/provider'; import {theme} from '@react-spectrum/theme-default'; import {Cell, Column, Row, TableBody, TableHeader, TableView} from '../'; - import {enableTableNestedRows} from '@react-stately/flags'; + import {enableTableNestedRows} from '@react-stately-nutrient/flags'; enableTableNestedRows(); let nestedItems = [ @@ -94,7 +94,7 @@ describe('Table Static SSR', function () { import {Provider} from '@react-spectrum/provider'; import {theme} from '@react-spectrum/theme-default'; import {Cell, Column, Row, TableBody, TableHeader, TableView} from '../'; - import {enableTableNestedRows} from '@react-stately/flags'; + import {enableTableNestedRows} from '@react-stately-nutrient/flags'; enableTableNestedRows(); diff --git a/packages/@react-spectrum/table/test/TableDnd.test.js b/packages/@react-spectrum/table/test/TableDnd.test.js index b66f127b741..78bccb99624 100644 --- a/packages/@react-spectrum/table/test/TableDnd.test.js +++ b/packages/@react-spectrum/table/test/TableDnd.test.js @@ -32,7 +32,7 @@ import {Provider} from '@react-spectrum/provider'; import React from 'react'; import {theme} from '@react-spectrum/theme-default'; import {useDragAndDrop} from '@react-spectrum/dnd'; -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; import userEvent from '@testing-library/user-event'; // getComputedStyle is very slow in our version of jsdom. diff --git a/packages/@react-spectrum/table/test/TableNestedRows.test.js b/packages/@react-spectrum/table/test/TableNestedRows.test.js index 1ddee124817..0c90620c314 100644 --- a/packages/@react-spectrum/table/test/TableNestedRows.test.js +++ b/packages/@react-spectrum/table/test/TableNestedRows.test.js @@ -14,7 +14,7 @@ jest.mock('@react-aria-nutrient/live-announcer'); jest.mock('@react-aria-nutrient/utils/src/scrollIntoView'); import {act, render as renderComponent} from '@react-spectrum/test-utils-internal'; import {Cell, Column, Row, TableBody, TableHeader, TableView} from '../'; -import {enableTableNestedRows} from '@react-stately/flags'; +import {enableTableNestedRows} from '@react-stately-nutrient/flags'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; import {tableTests} from './TableTests'; diff --git a/packages/@react-spectrum/table/test/TreeGridTable.test.tsx b/packages/@react-spectrum/table/test/TreeGridTable.test.tsx index 773fe89a4e0..79489e3de1d 100644 --- a/packages/@react-spectrum/table/test/TreeGridTable.test.tsx +++ b/packages/@react-spectrum/table/test/TreeGridTable.test.tsx @@ -22,7 +22,7 @@ import { } from '@react-spectrum/test-utils-internal'; import {announce} from '@react-aria-nutrient/live-announcer'; import {composeStories} from '@storybook/react'; -import {enableTableNestedRows} from '@react-stately/flags'; +import {enableTableNestedRows} from '@react-stately-nutrient/flags'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; import {Scale} from '@react-types/provider'; diff --git a/packages/@react-spectrum/tabs/package.json b/packages/@react-spectrum/tabs/package.json index a4ff898be22..e20f43be4cc 100644 --- a/packages/@react-spectrum/tabs/package.json +++ b/packages/@react-spectrum/tabs/package.json @@ -44,9 +44,9 @@ "@react-spectrum/picker": "^3.15.7", "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/list": "^3.12.0", - "@react-stately/tabs": "^3.8.0", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/list": "^3.12.0", + "@react-stately-nutrient/tabs": "^3.8.0", "@react-types/select": "^3.9.10", "@react-types/shared": "^3.28.0", "@react-types/tabs": "^3.3.13", diff --git a/packages/@react-spectrum/tabs/src/Tabs.tsx b/packages/@react-spectrum/tabs/src/Tabs.tsx index 60aa3fbe44d..6a0359f527e 100644 --- a/packages/@react-spectrum/tabs/src/Tabs.tsx +++ b/packages/@react-spectrum/tabs/src/Tabs.tsx @@ -16,7 +16,7 @@ import {DOMProps, DOMRef, DOMRefValue, Key, Node, Orientation, RefObject, StyleP import {filterDOMProps, mergeProps, useId, useLayoutEffect, useResizeObserver} from '@react-aria-nutrient/utils'; import {FocusRing} from '@react-aria-nutrient/focus'; import {Item, Picker} from '@react-spectrum/picker'; -import {ListCollection} from '@react-stately/list'; +import {ListCollection} from '@react-stately-nutrient/list'; import React, { CSSProperties, HTMLAttributes, @@ -30,9 +30,9 @@ import React, { } from 'react'; import {SpectrumPickerProps} from '@react-types/select'; import styles from '@adobe/spectrum-css-temp/components/tabs/vars.css'; -import {TabListState, useTabListState} from '@react-stately/tabs'; +import {TabListState, useTabListState} from '@react-stately-nutrient/tabs'; import {Text} from '@react-spectrum/text'; -import {useCollection} from '@react-stately/collections'; +import {useCollection} from '@react-stately-nutrient/collections'; import {useHover} from '@react-aria-nutrient/interactions'; import {useLocale} from '@react-aria-nutrient/i18n'; import {useProvider, useProviderProps} from '@react-spectrum/provider'; diff --git a/packages/@react-spectrum/tabs/src/index.ts b/packages/@react-spectrum/tabs/src/index.ts index f52aa986edb..892f1ebef5c 100644 --- a/packages/@react-spectrum/tabs/src/index.ts +++ b/packages/@react-spectrum/tabs/src/index.ts @@ -13,5 +13,5 @@ /// export {TabList, TabPanels, Tabs} from './Tabs'; -export {Item} from '@react-stately/collections'; +export {Item} from '@react-stately-nutrient/collections'; export type {SpectrumTabsProps, SpectrumTabListProps, SpectrumTabPanelsProps} from '@react-types/tabs'; diff --git a/packages/@react-spectrum/tag/package.json b/packages/@react-spectrum/tag/package.json index 729c8f1c321..e272cb3d544 100644 --- a/packages/@react-spectrum/tag/package.json +++ b/packages/@react-spectrum/tag/package.json @@ -47,8 +47,8 @@ "@react-spectrum/label": "^3.16.13", "@react-spectrum/text": "^3.5.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/collections": "^3.12.2", - "@react-stately/list": "^3.12.0", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/list": "^3.12.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-spectrum/tag/src/Tag.tsx b/packages/@react-spectrum/tag/src/Tag.tsx index 5643d247285..ee2fc0386ff 100644 --- a/packages/@react-spectrum/tag/src/Tag.tsx +++ b/packages/@react-spectrum/tag/src/Tag.tsx @@ -13,7 +13,7 @@ import {AriaTagProps, useTag} from '@react-aria-nutrient/tag'; import {classNames, ClearSlots, SlotProvider, useStyleProps} from '@react-spectrum/utils'; import {ClearButton} from '@react-spectrum/button'; -import type {ListState} from '@react-stately/list'; +import type {ListState} from '@react-stately-nutrient/list'; import {mergeProps} from '@react-aria-nutrient/utils'; import React, {ReactNode, useRef} from 'react'; import styles from '@adobe/spectrum-css-temp/components/tags/vars.css'; diff --git a/packages/@react-spectrum/tag/src/TagGroup.tsx b/packages/@react-spectrum/tag/src/TagGroup.tsx index c090c7c28aa..360878b2030 100644 --- a/packages/@react-spectrum/tag/src/TagGroup.tsx +++ b/packages/@react-spectrum/tag/src/TagGroup.tsx @@ -18,7 +18,7 @@ import {Field} from '@react-spectrum/label'; import {FocusRing, FocusScope} from '@react-aria-nutrient/focus'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {ListCollection, useListState} from '@react-stately/list'; +import {ListCollection, useListState} from '@react-stately-nutrient/list'; import {ListKeyboardDelegate} from '@react-aria-nutrient/selection'; import {Provider, useProvider, useProviderProps} from '@react-spectrum/provider'; import React, {JSX, ReactNode, useCallback, useEffect, useMemo, useRef, useState} from 'react'; diff --git a/packages/@react-spectrum/tag/src/index.ts b/packages/@react-spectrum/tag/src/index.ts index 59f733c31e1..a13074c2e02 100644 --- a/packages/@react-spectrum/tag/src/index.ts +++ b/packages/@react-spectrum/tag/src/index.ts @@ -11,5 +11,5 @@ */ export {TagGroup} from './TagGroup'; -export {Item} from '@react-stately/collections'; +export {Item} from '@react-stately-nutrient/collections'; export type {SpectrumTagGroupProps} from './TagGroup'; diff --git a/packages/@react-spectrum/tag/test/TagGroup.test.js b/packages/@react-spectrum/tag/test/TagGroup.test.js index 43f756c8300..f348b722319 100644 --- a/packages/@react-spectrum/tag/test/TagGroup.test.js +++ b/packages/@react-spectrum/tag/test/TagGroup.test.js @@ -13,7 +13,7 @@ import {act, fireEvent, mockClickDefault, mockImplementation, pointerMap, render, within} from '@react-spectrum/test-utils-internal'; import {Button} from '@react-spectrum/button'; import {chain} from '@react-aria-nutrient/utils'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import {Link} from '@react-spectrum/link'; import {Provider} from '@react-spectrum/provider'; import React from 'react'; diff --git a/packages/@react-spectrum/textfield/package.json b/packages/@react-spectrum/textfield/package.json index f9855e0ccfb..1784f47e270 100644 --- a/packages/@react-spectrum/textfield/package.json +++ b/packages/@react-spectrum/textfield/package.json @@ -43,7 +43,7 @@ "@react-spectrum/form": "^3.7.13", "@react-spectrum/label": "^3.16.13", "@react-spectrum/utils": "^3.12.3", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@react-types/textfield": "^3.12.0", "@spectrum-icons/ui": "^3.6.14", diff --git a/packages/@react-spectrum/textfield/src/TextArea.tsx b/packages/@react-spectrum/textfield/src/TextArea.tsx index 3ce3568391b..15c0e4385d8 100644 --- a/packages/@react-spectrum/textfield/src/TextArea.tsx +++ b/packages/@react-spectrum/textfield/src/TextArea.tsx @@ -14,7 +14,7 @@ import {chain, useLayoutEffect} from '@react-aria-nutrient/utils'; import React, {Ref, useCallback, useRef} from 'react'; import {SpectrumTextAreaProps, SpectrumTextFieldBaseProps, TextFieldRef} from '@react-types/textfield'; import {TextFieldBase} from './TextFieldBase'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useFormProps} from '@react-spectrum/form'; import {useProviderProps} from '@react-spectrum/provider'; import {useTextField} from '@react-aria-nutrient/textfield'; diff --git a/packages/@react-spectrum/toast/chromatic/Toast.stories.tsx b/packages/@react-spectrum/toast/chromatic/Toast.stories.tsx index 7050499b0e5..c0c94cd3c50 100644 --- a/packages/@react-spectrum/toast/chromatic/Toast.stories.tsx +++ b/packages/@react-spectrum/toast/chromatic/Toast.stories.tsx @@ -12,7 +12,7 @@ import React from 'react'; import {Toast} from '../src/Toast'; -import {useToastState} from '@react-stately/toast'; +import {useToastState} from '@react-stately-nutrient/toast'; function FakeToast(props) { let state = useToastState(); diff --git a/packages/@react-spectrum/toast/package.json b/packages/@react-spectrum/toast/package.json index c68a68daa55..a85078b6d13 100644 --- a/packages/@react-spectrum/toast/package.json +++ b/packages/@react-spectrum/toast/package.json @@ -43,7 +43,7 @@ "@react-aria-nutrient/utils": "^3.28.1", "@react-spectrum/button": "^3.16.12", "@react-spectrum/utils": "^3.12.3", - "@react-stately/toast": "^3.0.0", + "@react-stately-nutrient/toast": "^3.0.0", "@react-types/shared": "^3.28.0", "@spectrum-icons/ui": "^3.6.14", "@swc/helpers": "^0.5.0", diff --git a/packages/@react-spectrum/toast/src/Toast.tsx b/packages/@react-spectrum/toast/src/Toast.tsx index 02d3b1b75b8..3f1003f0e5f 100644 --- a/packages/@react-spectrum/toast/src/Toast.tsx +++ b/packages/@react-spectrum/toast/src/Toast.tsx @@ -19,7 +19,7 @@ import {filterDOMProps, mergeProps} from '@react-aria-nutrient/utils'; import InfoMedium from '@spectrum-icons/ui/InfoMedium'; // @ts-ignore import intlMessages from '../intl/*.json'; -import {QueuedToast, ToastState} from '@react-stately/toast'; +import {QueuedToast, ToastState} from '@react-stately-nutrient/toast'; import React from 'react'; import styles from '@adobe/spectrum-css-temp/components/toast/vars.css'; import SuccessMedium from '@spectrum-icons/ui/SuccessMedium'; diff --git a/packages/@react-spectrum/toast/src/ToastContainer.tsx b/packages/@react-spectrum/toast/src/ToastContainer.tsx index 316cf15bd4a..4c9fa060d4a 100644 --- a/packages/@react-spectrum/toast/src/ToastContainer.tsx +++ b/packages/@react-spectrum/toast/src/ToastContainer.tsx @@ -19,7 +19,7 @@ import React, {ReactElement, useEffect, useMemo, useRef} from 'react'; import {SpectrumToastValue, Toast} from './Toast'; import toastContainerStyles from './toastContainer.css'; import {Toaster} from './Toaster'; -import {ToastOptions, ToastQueue, useToastQueue} from '@react-stately/toast'; +import {ToastOptions, ToastQueue, useToastQueue} from '@react-stately-nutrient/toast'; import {useSyncExternalStore} from 'use-sync-external-store/shim/index.js'; export type ToastPlacement = 'top' | 'top end' | 'bottom' | 'bottom end'; diff --git a/packages/@react-spectrum/toast/src/Toaster.tsx b/packages/@react-spectrum/toast/src/Toaster.tsx index 9dd9909929f..1d5c1186ed5 100644 --- a/packages/@react-spectrum/toast/src/Toaster.tsx +++ b/packages/@react-spectrum/toast/src/Toaster.tsx @@ -19,7 +19,7 @@ import React, {createContext, ReactElement, ReactNode, useMemo, useRef} from 're import ReactDOM from 'react-dom'; import toastContainerStyles from './toastContainer.css'; import type {ToastPlacement} from './ToastContainer'; -import {ToastState} from '@react-stately/toast'; +import {ToastState} from '@react-stately-nutrient/toast'; import {useUNSAFE_PortalContext} from '@react-aria-nutrient/overlays'; interface ToastContainerProps extends AriaToastRegionProps { diff --git a/packages/@react-spectrum/tooltip/package.json b/packages/@react-spectrum/tooltip/package.json index 09b45fbf003..d1c0a9baf4f 100644 --- a/packages/@react-spectrum/tooltip/package.json +++ b/packages/@react-spectrum/tooltip/package.json @@ -42,7 +42,7 @@ "@react-aria-nutrient/utils": "^3.28.1", "@react-spectrum/overlays": "^5.7.3", "@react-spectrum/utils": "^3.12.3", - "@react-stately/tooltip": "^3.5.2", + "@react-stately-nutrient/tooltip": "^3.5.2", "@react-types/overlays": "^3.8.13", "@react-types/shared": "^3.28.0", "@react-types/tooltip": "^3.4.15", diff --git a/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx b/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx index 0a42d16384f..07392061eb1 100644 --- a/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx +++ b/packages/@react-spectrum/tooltip/src/TooltipTrigger.tsx @@ -18,7 +18,7 @@ import {TooltipContext} from './context'; import {useLayoutEffect} from '@react-aria-nutrient/utils'; import {useOverlayPosition} from '@react-aria-nutrient/overlays'; import {useTooltipTrigger} from '@react-aria-nutrient/tooltip'; -import {useTooltipTriggerState} from '@react-stately/tooltip'; +import {useTooltipTriggerState} from '@react-stately-nutrient/tooltip'; const DEFAULT_OFFSET = -1; // Offset needed to reach 4px/5px (med/large) distance between tooltip and trigger button const DEFAULT_CROSS_OFFSET = 0; diff --git a/packages/@react-spectrum/tooltip/src/context.ts b/packages/@react-spectrum/tooltip/src/context.ts index 1dcecea82f3..8e7b76940a3 100644 --- a/packages/@react-spectrum/tooltip/src/context.ts +++ b/packages/@react-spectrum/tooltip/src/context.ts @@ -13,7 +13,7 @@ import {PlacementAxis} from '@react-types/overlays'; import React, {HTMLAttributes} from 'react'; import {RefObject, StyleProps} from '@react-types/shared'; -import {TooltipTriggerState} from '@react-stately/tooltip'; +import {TooltipTriggerState} from '@react-stately-nutrient/tooltip'; interface TooltipContextProps extends StyleProps { state?: TooltipTriggerState, diff --git a/packages/@react-stately/autocomplete/README.md b/packages/@react-stately/autocomplete/README.md index ca449de39f4..3190dca281c 100644 --- a/packages/@react-stately/autocomplete/README.md +++ b/packages/@react-stately/autocomplete/README.md @@ -1,3 +1,3 @@ -# @react-stately/autocomplete +# @react-stately-nutrient/autocomplete This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/autocomplete/docs/useAutocompleteState.mdx b/packages/@react-stately/autocomplete/docs/useAutocompleteState.mdx index 10962de8d01..7444d4aa09e 100644 --- a/packages/@react-stately/autocomplete/docs/useAutocompleteState.mdx +++ b/packages/@react-stately/autocomplete/docs/useAutocompleteState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/autocomplete'; +import docs from 'docs:@react-stately-nutrient/autocomplete'; import {ClassAPI, HeaderInfo, FunctionAPI, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/autocomplete/package.json'; +import packageData from '@react-stately-nutrient/autocomplete/package.json'; import {InlineAlert, Content, Heading} from '@adobe/react-spectrum'; --- diff --git a/packages/@react-stately/autocomplete/package.json b/packages/@react-stately/autocomplete/package.json index 31953cd6a9e..9da2daefd4b 100644 --- a/packages/@react-stately/autocomplete/package.json +++ b/packages/@react-stately/autocomplete/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/autocomplete", + "name": "@react-stately-nutrient/autocomplete", "version": "3.0.0-beta.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/utils": "^3.10.4", + "@react-stately-nutrient/utils": "^3.10.4", "@swc/helpers": "^0.5.0" }, "peerDependencies": { diff --git a/packages/@react-stately/autocomplete/src/useAutocompleteState.ts b/packages/@react-stately/autocomplete/src/useAutocompleteState.ts index e9b4ce28d53..50f0cb6772d 100644 --- a/packages/@react-stately/autocomplete/src/useAutocompleteState.ts +++ b/packages/@react-stately/autocomplete/src/useAutocompleteState.ts @@ -11,7 +11,7 @@ */ import {ReactNode, useState} from 'react'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; export interface AutocompleteState { /** The current value of the autocomplete input. */ diff --git a/packages/@react-stately/calendar/README.md b/packages/@react-stately/calendar/README.md index 8e3b67fa82b..fb17463cf03 100644 --- a/packages/@react-stately/calendar/README.md +++ b/packages/@react-stately/calendar/README.md @@ -1,3 +1,3 @@ -# @react-stately/calendar +# @react-stately-nutrient/calendar This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/calendar/docs/useCalendarState.mdx b/packages/@react-stately/calendar/docs/useCalendarState.mdx index e6b8e91379c..314eca6c1c9 100644 --- a/packages/@react-stately/calendar/docs/useCalendarState.mdx +++ b/packages/@react-stately/calendar/docs/useCalendarState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/calendar'; +import docs from 'docs:@react-stately-nutrient/calendar'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/calendar/package.json'; +import packageData from '@react-stately-nutrient/calendar/package.json'; --- category: Date and Time diff --git a/packages/@react-stately/calendar/docs/useRangeCalendarState.mdx b/packages/@react-stately/calendar/docs/useRangeCalendarState.mdx index d29afae707f..293ba893c2f 100644 --- a/packages/@react-stately/calendar/docs/useRangeCalendarState.mdx +++ b/packages/@react-stately/calendar/docs/useRangeCalendarState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/calendar'; +import docs from 'docs:@react-stately-nutrient/calendar'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/calendar/package.json'; +import packageData from '@react-stately-nutrient/calendar/package.json'; --- category: Date and Time diff --git a/packages/@react-stately/calendar/package.json b/packages/@react-stately/calendar/package.json index 72c15d6a968..d7a0df820de 100644 --- a/packages/@react-stately/calendar/package.json +++ b/packages/@react-stately/calendar/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/calendar", + "name": "@react-stately-nutrient/calendar", "version": "3.7.1", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -23,7 +23,7 @@ }, "dependencies": { "@internationalized/date": "^3.7.0", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/calendar": "^3.6.1", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/calendar/src/useCalendarState.ts b/packages/@react-stately/calendar/src/useCalendarState.ts index d1da4d05b65..c8368555392 100644 --- a/packages/@react-stately/calendar/src/useCalendarState.ts +++ b/packages/@react-stately/calendar/src/useCalendarState.ts @@ -31,7 +31,7 @@ import { } from '@internationalized/date'; import {CalendarProps, DateValue, MappedDateValue} from '@react-types/calendar'; import {CalendarState} from './types'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo, useState} from 'react'; import {ValidationState} from '@react-types/shared'; diff --git a/packages/@react-stately/calendar/src/useRangeCalendarState.ts b/packages/@react-stately/calendar/src/useRangeCalendarState.ts index a9ef0b72ded..1c2c808dca7 100644 --- a/packages/@react-stately/calendar/src/useRangeCalendarState.ts +++ b/packages/@react-stately/calendar/src/useRangeCalendarState.ts @@ -16,7 +16,7 @@ import {CalendarState, RangeCalendarState} from './types'; import {DateValue, MappedDateValue, RangeCalendarProps} from '@react-types/calendar'; import {RangeValue, ValidationState} from '@react-types/shared'; import {useCalendarState} from './useCalendarState'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo, useRef, useState} from 'react'; export interface RangeCalendarStateOptions extends RangeCalendarProps { diff --git a/packages/@react-stately/checkbox/README.md b/packages/@react-stately/checkbox/README.md index cec3b216977..f3a65e2411c 100644 --- a/packages/@react-stately/checkbox/README.md +++ b/packages/@react-stately/checkbox/README.md @@ -1,3 +1,3 @@ -# @react-stately/checkbox +# @react-stately-nutrient/checkbox This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/checkbox/docs/useCheckboxGroupState.mdx b/packages/@react-stately/checkbox/docs/useCheckboxGroupState.mdx index 7108633db8a..9b420f8a232 100644 --- a/packages/@react-stately/checkbox/docs/useCheckboxGroupState.mdx +++ b/packages/@react-stately/checkbox/docs/useCheckboxGroupState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/checkbox'; +import docs from 'docs:@react-stately-nutrient/checkbox'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/checkbox/package.json'; +import packageData from '@react-stately-nutrient/checkbox/package.json'; --- category: Forms diff --git a/packages/@react-stately/checkbox/package.json b/packages/@react-stately/checkbox/package.json index 766739bbc46..bf9ed7da5c6 100644 --- a/packages/@react-stately/checkbox/package.json +++ b/packages/@react-stately/checkbox/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/checkbox", + "name": "@react-stately-nutrient/checkbox", "version": "3.6.12", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,8 +22,8 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/form": "^3.1.2", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/checkbox": "^3.9.2", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/checkbox/src/useCheckboxGroupState.ts b/packages/@react-stately/checkbox/src/useCheckboxGroupState.ts index db86598ff85..9cab2ab002a 100644 --- a/packages/@react-stately/checkbox/src/useCheckboxGroupState.ts +++ b/packages/@react-stately/checkbox/src/useCheckboxGroupState.ts @@ -11,8 +11,8 @@ */ import {CheckboxGroupProps} from '@react-types/checkbox'; -import {FormValidationState, mergeValidation, useFormValidationState} from '@react-stately/form'; -import {useControlledState} from '@react-stately/utils'; +import {FormValidationState, mergeValidation, useFormValidationState} from '@react-stately-nutrient/form'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useRef} from 'react'; import {ValidationResult, ValidationState} from '@react-types/shared'; diff --git a/packages/@react-stately/collections/README.md b/packages/@react-stately/collections/README.md index 60d70262703..28139f473a9 100644 --- a/packages/@react-stately/collections/README.md +++ b/packages/@react-stately/collections/README.md @@ -1,3 +1,3 @@ -# @react-stately/collections +# @react-stately-nutrient/collections This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/collections/docs/Collection.mdx b/packages/@react-stately/collections/docs/Collection.mdx index 7482f5cfc7b..c3f55c71412 100644 --- a/packages/@react-stately/collections/docs/Collection.mdx +++ b/packages/@react-stately/collections/docs/Collection.mdx @@ -10,10 +10,10 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/collections'; +import docs from 'docs:@react-stately-nutrient/collections'; import collectionsDocs from 'docs:@react-types/shared/src/collections.d.ts'; -import treeDocs from 'docs:@react-stately/tree'; -import listDocs from 'docs:@react-stately/list'; +import treeDocs from 'docs:@react-stately-nutrient/tree'; +import listDocs from 'docs:@react-stately-nutrient/list'; import listboxDocs from 'docs:@react-aria-nutrient/listbox'; import selectDocs from 'docs:@react-aria-nutrient/select'; import {HeaderInfo, TypeContext, InterfaceType, ClassAPI, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; diff --git a/packages/@react-stately/collections/docs/collections.mdx b/packages/@react-stately/collections/docs/collections.mdx index 25214620976..6b7b28aeb74 100644 --- a/packages/@react-stately/collections/docs/collections.mdx +++ b/packages/@react-stately/collections/docs/collections.mdx @@ -10,8 +10,8 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/collections'; -import dataDocs from 'docs:@react-stately/data'; +import docs from 'docs:@react-stately-nutrient/collections'; +import dataDocs from 'docs:@react-stately-nutrient/data'; import {HeaderInfo, PropTable, TypeLink} from '@react-spectrum/docs'; --- @@ -191,7 +191,7 @@ state when they are removed from the list. See the [useListBox docs](../react-ar The following example shows how you might append a new item to the list. ```tsx -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; let list = useListData({ initialItems: [ @@ -258,7 +258,7 @@ removing items from the selection when they are removed from the list. See the [useTreeData docs](useTreeData.html) for more details. ```tsx -import {useTreeData} from '@react-stately/data'; +import {useTreeData} from '@react-stately-nutrient/data'; let tree = useTreeData({ initialItems: [ @@ -302,7 +302,7 @@ Many collection components support loading data asynchronously. This is supporte which is `true` while the data is loading. Once the data is loaded, `isLoading` should be set to `false`, and the `items` prop should be set to the loaded data. -The hook from `@react-stately/data` can be +The hook from `@react-stately-nutrient/data` can be used to manage async data loading from an API. Pass a `load` function to `useAsyncList`, which returns the items to render. You can use whatever data fetching library you want, or the built-in [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) API. @@ -310,7 +310,7 @@ to render. You can use whatever data fetching library you want, or the built-in This example fetches a list of Pokemon from an API and displays them in a Picker. ```tsx -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; let list = useAsyncList({ async load({signal}) { @@ -339,7 +339,7 @@ collection components notifies you when you should load more data as the user sc This example expands on the previous one to support infinite scrolling through all known Pokemon. ```tsx -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; let list = useAsyncList({ async load({signal, cursor}) { diff --git a/packages/@react-stately/collections/package.json b/packages/@react-stately/collections/package.json index 9eccaa1e9be..8a752917ecf 100644 --- a/packages/@react-stately/collections/package.json +++ b/packages/@react-stately/collections/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/collections", + "name": "@react-stately-nutrient/collections", "version": "3.12.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", diff --git a/packages/@react-stately/color/README.md b/packages/@react-stately/color/README.md index e93ca7420ae..5da694bde81 100644 --- a/packages/@react-stately/color/README.md +++ b/packages/@react-stately/color/README.md @@ -1,3 +1,3 @@ -# @react-stately/color +# @react-stately-nutrient/color This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/color/docs/useColorAreaState.mdx b/packages/@react-stately/color/docs/useColorAreaState.mdx index 19c9ddfc16d..894ee1a26e5 100644 --- a/packages/@react-stately/color/docs/useColorAreaState.mdx +++ b/packages/@react-stately/color/docs/useColorAreaState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/color'; +import docs from 'docs:@react-stately-nutrient/color'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/color/package.json'; +import packageData from '@react-stately-nutrient/color/package.json'; --- category: Color diff --git a/packages/@react-stately/color/docs/useColorFieldState.mdx b/packages/@react-stately/color/docs/useColorFieldState.mdx index 37549665b9c..4fdb3c72690 100644 --- a/packages/@react-stately/color/docs/useColorFieldState.mdx +++ b/packages/@react-stately/color/docs/useColorFieldState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/color'; +import docs from 'docs:@react-stately-nutrient/color'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/color/package.json'; +import packageData from '@react-stately-nutrient/color/package.json'; --- category: Color diff --git a/packages/@react-stately/color/docs/useColorSliderState.mdx b/packages/@react-stately/color/docs/useColorSliderState.mdx index 6728b32889b..d6ff6063450 100644 --- a/packages/@react-stately/color/docs/useColorSliderState.mdx +++ b/packages/@react-stately/color/docs/useColorSliderState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/color'; +import docs from 'docs:@react-stately-nutrient/color'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/color/package.json'; +import packageData from '@react-stately-nutrient/color/package.json'; --- category: Color diff --git a/packages/@react-stately/color/docs/useColorWheelState.mdx b/packages/@react-stately/color/docs/useColorWheelState.mdx index 0a5565ebdef..db2917760dd 100644 --- a/packages/@react-stately/color/docs/useColorWheelState.mdx +++ b/packages/@react-stately/color/docs/useColorWheelState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/color'; +import docs from 'docs:@react-stately-nutrient/color'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/color/package.json'; +import packageData from '@react-stately-nutrient/color/package.json'; --- category: Color diff --git a/packages/@react-stately/color/package.json b/packages/@react-stately/color/package.json index 71d80968a94..842b10e364f 100644 --- a/packages/@react-stately/color/package.json +++ b/packages/@react-stately/color/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/color", + "name": "@react-stately-nutrient/color", "version": "3.8.3", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -24,10 +24,10 @@ "dependencies": { "@internationalized/number": "^3.6.0", "@internationalized/string": "^3.2.5", - "@react-stately/form": "^3.1.2", - "@react-stately/numberfield": "^3.9.10", - "@react-stately/slider": "^3.6.2", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/numberfield": "^3.9.10", + "@react-stately-nutrient/slider": "^3.6.2", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/color": "^3.0.3", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/color/src/Color.ts b/packages/@react-stately/color/src/Color.ts index bda7629642e..f4331db80e0 100644 --- a/packages/@react-stately/color/src/Color.ts +++ b/packages/@react-stately/color/src/Color.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {clamp, toFixedNumber} from '@react-stately/utils'; +import {clamp, toFixedNumber} from '@react-stately-nutrient/utils'; import {ColorAxes, ColorChannel, ColorChannelRange, ColorFormat, ColorSpace, Color as IColor} from '@react-types/color'; // @ts-ignore import intlMessages from '../intl/*.json'; @@ -112,7 +112,7 @@ abstract class Color implements IColor { } getChannelName(channel: ColorChannel, locale: string) { - let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately/color') || dictionary; + let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately-nutrient/color') || dictionary; return strings.getStringForLocale(channel, locale); } @@ -133,7 +133,7 @@ abstract class Color implements IColor { // Convert to oklch color space, which has perceptually uniform lightness across all hues. let [l, c, h] = toOKLCH(this); - let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately/color') || dictionary; + let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately-nutrient/color') || dictionary; if (l > 0.999) { return strings.getStringForLocale('white', locale); } @@ -197,7 +197,7 @@ abstract class Color implements IColor { } private getOklchHue(l: number, c: number, h: number, locale: string): [string, number] { - let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately/color') || dictionary; + let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately-nutrient/color') || dictionary; if (c < GRAY_THRESHOLD) { return [strings.getStringForLocale('gray', locale), l]; } diff --git a/packages/@react-stately/color/src/useColorAreaState.ts b/packages/@react-stately/color/src/useColorAreaState.ts index b6abee7faf2..b65f11f4990 100644 --- a/packages/@react-stately/color/src/useColorAreaState.ts +++ b/packages/@react-stately/color/src/useColorAreaState.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {clamp, snapValueToStep, useControlledState} from '@react-stately/utils'; +import {clamp, snapValueToStep, useControlledState} from '@react-stately-nutrient/utils'; import {Color, ColorAreaProps, ColorChannel} from '@react-types/color'; import {normalizeColor, parseColor} from './Color'; import {useMemo, useRef, useState} from 'react'; diff --git a/packages/@react-stately/color/src/useColorChannelFieldState.ts b/packages/@react-stately/color/src/useColorChannelFieldState.ts index 62c11f9660a..65bcd8b2f94 100644 --- a/packages/@react-stately/color/src/useColorChannelFieldState.ts +++ b/packages/@react-stately/color/src/useColorChannelFieldState.ts @@ -1,7 +1,7 @@ import {Color, ColorChannel, ColorFieldProps, ColorSpace} from '@react-types/color'; -import {NumberFieldState, useNumberFieldState} from '@react-stately/numberfield'; +import {NumberFieldState, useNumberFieldState} from '@react-stately-nutrient/numberfield'; import {useColor} from './useColor'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo} from 'react'; export interface ColorChannelFieldProps extends ColorFieldProps { diff --git a/packages/@react-stately/color/src/useColorFieldState.ts b/packages/@react-stately/color/src/useColorFieldState.ts index c591ed2d92e..11a80b0af17 100644 --- a/packages/@react-stately/color/src/useColorFieldState.ts +++ b/packages/@react-stately/color/src/useColorFieldState.ts @@ -11,10 +11,10 @@ */ import {Color, ColorFieldProps} from '@react-types/color'; -import {FormValidationState, useFormValidationState} from '@react-stately/form'; +import {FormValidationState, useFormValidationState} from '@react-stately-nutrient/form'; import {parseColor} from './Color'; import {useColor} from './useColor'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo, useState} from 'react'; export interface ColorFieldState extends FormValidationState { diff --git a/packages/@react-stately/color/src/useColorPickerState.ts b/packages/@react-stately/color/src/useColorPickerState.ts index 6592a513c35..638658c0787 100644 --- a/packages/@react-stately/color/src/useColorPickerState.ts +++ b/packages/@react-stately/color/src/useColorPickerState.ts @@ -1,7 +1,7 @@ import {Color} from '@react-types/color'; import {parseColor} from './Color'; import {useColor} from './useColor'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {ValueBase} from '@react-types/shared'; export interface ColorPickerProps extends ValueBase {} diff --git a/packages/@react-stately/color/src/useColorSliderState.ts b/packages/@react-stately/color/src/useColorSliderState.ts index db48ea2e3ce..cc41f4370f2 100644 --- a/packages/@react-stately/color/src/useColorSliderState.ts +++ b/packages/@react-stately/color/src/useColorSliderState.ts @@ -12,8 +12,8 @@ import {Color, ColorSliderProps} from '@react-types/color'; import {normalizeColor, parseColor} from './Color'; -import {SliderState, useSliderState} from '@react-stately/slider'; -import {useControlledState} from '@react-stately/utils'; +import {SliderState, useSliderState} from '@react-stately-nutrient/slider'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo} from 'react'; export interface ColorSliderState extends SliderState { diff --git a/packages/@react-stately/color/src/useColorWheelState.ts b/packages/@react-stately/color/src/useColorWheelState.ts index 16bba128e33..29b6ea985fd 100644 --- a/packages/@react-stately/color/src/useColorWheelState.ts +++ b/packages/@react-stately/color/src/useColorWheelState.ts @@ -12,7 +12,7 @@ import {Color, ColorWheelProps} from '@react-types/color'; import {normalizeColor, parseColor} from './Color'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo, useRef, useState} from 'react'; export interface ColorWheelState { diff --git a/packages/@react-stately/combobox/README.md b/packages/@react-stately/combobox/README.md index 516e2013ffb..51584b4ed6c 100644 --- a/packages/@react-stately/combobox/README.md +++ b/packages/@react-stately/combobox/README.md @@ -1,3 +1,3 @@ -# @react-stately/combobox +# @react-stately-nutrient/combobox This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/combobox/docs/useComboBoxState.mdx b/packages/@react-stately/combobox/docs/useComboBoxState.mdx index 5871ec964f5..9635d858c65 100644 --- a/packages/@react-stately/combobox/docs/useComboBoxState.mdx +++ b/packages/@react-stately/combobox/docs/useComboBoxState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/combobox'; +import docs from 'docs:@react-stately-nutrient/combobox'; import {ClassAPI, HeaderInfo, FunctionAPI, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/combobox/package.json'; +import packageData from '@react-stately-nutrient/combobox/package.json'; --- category: Pickers diff --git a/packages/@react-stately/combobox/package.json b/packages/@react-stately/combobox/package.json index 1576fc7f23c..93ee39cb52d 100644 --- a/packages/@react-stately/combobox/package.json +++ b/packages/@react-stately/combobox/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/combobox", + "name": "@react-stately-nutrient/combobox", "version": "3.10.3", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,12 +22,12 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/collections": "^3.12.2", - "@react-stately/form": "^3.1.2", - "@react-stately/list": "^3.12.0", - "@react-stately/overlays": "^3.6.14", - "@react-stately/select": "^3.6.11", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/list": "^3.12.0", + "@react-stately-nutrient/overlays": "^3.6.14", + "@react-stately-nutrient/select": "^3.6.11", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/combobox": "^3.13.3", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/combobox/src/useComboBoxState.ts b/packages/@react-stately/combobox/src/useComboBoxState.ts index 13f17f235da..b0b055eda8d 100644 --- a/packages/@react-stately/combobox/src/useComboBoxState.ts +++ b/packages/@react-stately/combobox/src/useComboBoxState.ts @@ -12,13 +12,13 @@ import {Collection, CollectionStateBase, FocusStrategy, Node} from '@react-types/shared'; import {ComboBoxProps, MenuTriggerAction} from '@react-types/combobox'; -import {FormValidationState, useFormValidationState} from '@react-stately/form'; -import {getChildNodes} from '@react-stately/collections'; -import {ListCollection, useSingleSelectListState} from '@react-stately/list'; -import {SelectState} from '@react-stately/select'; +import {FormValidationState, useFormValidationState} from '@react-stately-nutrient/form'; +import {getChildNodes} from '@react-stately-nutrient/collections'; +import {ListCollection, useSingleSelectListState} from '@react-stately-nutrient/list'; +import {SelectState} from '@react-stately-nutrient/select'; import {useCallback, useEffect, useMemo, useRef, useState} from 'react'; -import {useControlledState} from '@react-stately/utils'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useControlledState} from '@react-stately-nutrient/utils'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; export interface ComboBoxState extends SelectState, FormValidationState{ /** The current value of the combo box input. */ diff --git a/packages/@react-stately/combobox/test/useComboBoxState.test.js b/packages/@react-stately/combobox/test/useComboBoxState.test.js index 15ce6f1e705..831a60c530e 100644 --- a/packages/@react-stately/combobox/test/useComboBoxState.test.js +++ b/packages/@react-stately/combobox/test/useComboBoxState.test.js @@ -11,7 +11,7 @@ */ import {actHook as act, renderHook} from '@react-spectrum/test-utils-internal'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React from 'react'; import {useComboBoxState} from '../'; import {useFilter} from '@react-aria-nutrient/react-aria'; diff --git a/packages/@react-stately/data/README.md b/packages/@react-stately/data/README.md index 698e25590cb..94d3bb97639 100644 --- a/packages/@react-stately/data/README.md +++ b/packages/@react-stately/data/README.md @@ -1,3 +1,3 @@ -# @react-stately/data +# @react-stately-nutrient/data This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/data/docs/useAsyncList.mdx b/packages/@react-stately/data/docs/useAsyncList.mdx index 97993a7ed0e..7a3e0b6f4aa 100644 --- a/packages/@react-stately/data/docs/useAsyncList.mdx +++ b/packages/@react-stately/data/docs/useAsyncList.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/data'; +import docs from 'docs:@react-stately-nutrient/data'; import {HeaderInfo, TypeContext, ClassAPI, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/data/package.json'; +import packageData from '@react-stately-nutrient/data/package.json'; --- category: Data diff --git a/packages/@react-stately/data/docs/useListData.mdx b/packages/@react-stately/data/docs/useListData.mdx index c902a0812ed..eda1b3090f9 100644 --- a/packages/@react-stately/data/docs/useListData.mdx +++ b/packages/@react-stately/data/docs/useListData.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/data'; +import docs from 'docs:@react-stately-nutrient/data'; import {HeaderInfo, TypeContext, ClassAPI, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/data/package.json'; +import packageData from '@react-stately-nutrient/data/package.json'; --- category: Data diff --git a/packages/@react-stately/data/docs/useTreeData.mdx b/packages/@react-stately/data/docs/useTreeData.mdx index 9ec0c4c3ceb..ca6f079d16e 100644 --- a/packages/@react-stately/data/docs/useTreeData.mdx +++ b/packages/@react-stately/data/docs/useTreeData.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/data'; +import docs from 'docs:@react-stately-nutrient/data'; import {HeaderInfo, TypeContext, ClassAPI, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/data/package.json'; +import packageData from '@react-stately-nutrient/data/package.json'; --- category: Data diff --git a/packages/@react-stately/data/package.json b/packages/@react-stately/data/package.json index 6a29d1a131a..0f2eaed0caa 100644 --- a/packages/@react-stately/data/package.json +++ b/packages/@react-stately/data/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/data", + "name": "@react-stately-nutrient/data", "version": "3.12.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", diff --git a/packages/@react-stately/datepicker/README.md b/packages/@react-stately/datepicker/README.md index 90418c06abb..3d2c3a4ce38 100644 --- a/packages/@react-stately/datepicker/README.md +++ b/packages/@react-stately/datepicker/README.md @@ -1,3 +1,3 @@ -# @react-stately/datepicker +# @react-stately-nutrient/datepicker This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/datepicker/docs/useDateFieldState.mdx b/packages/@react-stately/datepicker/docs/useDateFieldState.mdx index cc3c96975b9..e1c6557c174 100644 --- a/packages/@react-stately/datepicker/docs/useDateFieldState.mdx +++ b/packages/@react-stately/datepicker/docs/useDateFieldState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/datepicker'; +import docs from 'docs:@react-stately-nutrient/datepicker'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/datepicker/package.json'; +import packageData from '@react-stately-nutrient/datepicker/package.json'; --- category: Date and Time diff --git a/packages/@react-stately/datepicker/docs/useDatePickerState.mdx b/packages/@react-stately/datepicker/docs/useDatePickerState.mdx index f446886f523..0f9b69895fe 100644 --- a/packages/@react-stately/datepicker/docs/useDatePickerState.mdx +++ b/packages/@react-stately/datepicker/docs/useDatePickerState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/datepicker'; +import docs from 'docs:@react-stately-nutrient/datepicker'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/datepicker/package.json'; +import packageData from '@react-stately-nutrient/datepicker/package.json'; --- category: Date and Time diff --git a/packages/@react-stately/datepicker/docs/useDateRangePickerState.mdx b/packages/@react-stately/datepicker/docs/useDateRangePickerState.mdx index b1ae8fa930d..eaa690e5840 100644 --- a/packages/@react-stately/datepicker/docs/useDateRangePickerState.mdx +++ b/packages/@react-stately/datepicker/docs/useDateRangePickerState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/datepicker'; +import docs from 'docs:@react-stately-nutrient/datepicker'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/datepicker/package.json'; +import packageData from '@react-stately-nutrient/datepicker/package.json'; --- category: Date and Time diff --git a/packages/@react-stately/datepicker/docs/useTimeFieldState.mdx b/packages/@react-stately/datepicker/docs/useTimeFieldState.mdx index 1094beaeb2d..444e4e261c4 100644 --- a/packages/@react-stately/datepicker/docs/useTimeFieldState.mdx +++ b/packages/@react-stately/datepicker/docs/useTimeFieldState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/datepicker'; +import docs from 'docs:@react-stately-nutrient/datepicker'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/datepicker/package.json'; +import packageData from '@react-stately-nutrient/datepicker/package.json'; --- category: Date and Time diff --git a/packages/@react-stately/datepicker/package.json b/packages/@react-stately/datepicker/package.json index cd7ad9fab37..d34551e3ca1 100644 --- a/packages/@react-stately/datepicker/package.json +++ b/packages/@react-stately/datepicker/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/datepicker", + "name": "@react-stately-nutrient/datepicker", "version": "3.13.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -24,9 +24,9 @@ "dependencies": { "@internationalized/date": "^3.7.0", "@internationalized/string": "^3.2.5", - "@react-stately/form": "^3.1.2", - "@react-stately/overlays": "^3.6.14", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/overlays": "^3.6.14", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/datepicker": "^3.11.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/datepicker/src/useDateFieldState.ts b/packages/@react-stately/datepicker/src/useDateFieldState.ts index 682dabe5018..f8c479141e0 100644 --- a/packages/@react-stately/datepicker/src/useDateFieldState.ts +++ b/packages/@react-stately/datepicker/src/useDateFieldState.ts @@ -13,9 +13,9 @@ import {Calendar, CalendarIdentifier, DateFormatter, getMinimumDayInMonth, getMinimumMonthInYear, GregorianCalendar, isEqualCalendar, toCalendar} from '@internationalized/date'; import {convertValue, createPlaceholderDate, FieldOptions, FormatterOptions, getFormatOptions, getValidationResult, useDefaultProps} from './utils'; import {DatePickerProps, DateValue, Granularity, MappedDateValue} from '@react-types/datepicker'; -import {FormValidationState, useFormValidationState} from '@react-stately/form'; +import {FormValidationState, useFormValidationState} from '@react-stately-nutrient/form'; import {getPlaceholder} from './placeholders'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useEffect, useMemo, useRef, useState} from 'react'; import {ValidationState} from '@react-types/shared'; diff --git a/packages/@react-stately/datepicker/src/useDatePickerState.ts b/packages/@react-stately/datepicker/src/useDatePickerState.ts index 2b2f1980968..72c96622889 100644 --- a/packages/@react-stately/datepicker/src/useDatePickerState.ts +++ b/packages/@react-stately/datepicker/src/useDatePickerState.ts @@ -13,9 +13,9 @@ import {CalendarDate, DateFormatter, toCalendarDate, toCalendarDateTime} from '@internationalized/date'; import {DatePickerProps, DateValue, Granularity, MappedDateValue, TimeValue} from '@react-types/datepicker'; import {FieldOptions, FormatterOptions, getFormatOptions, getPlaceholderTime, getValidationResult, useDefaultProps} from './utils'; -import {FormValidationState, useFormValidationState} from '@react-stately/form'; -import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately/overlays'; -import {useControlledState} from '@react-stately/utils'; +import {FormValidationState, useFormValidationState} from '@react-stately-nutrient/form'; +import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately-nutrient/overlays'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo, useState} from 'react'; import {ValidationState} from '@react-types/shared'; diff --git a/packages/@react-stately/datepicker/src/useDateRangePickerState.ts b/packages/@react-stately/datepicker/src/useDateRangePickerState.ts index 68e2e3e5b3a..e1337d0615c 100644 --- a/packages/@react-stately/datepicker/src/useDateRangePickerState.ts +++ b/packages/@react-stately/datepicker/src/useDateRangePickerState.ts @@ -14,10 +14,10 @@ import {DateFormatter, toCalendarDate, toCalendarDateTime} from '@internationalized/date'; import {DateRange, DateRangePickerProps, DateValue, Granularity, MappedDateValue, TimeValue} from '@react-types/datepicker'; import {FieldOptions, FormatterOptions, getFormatOptions, getPlaceholderTime, getRangeValidationResult, useDefaultProps} from './utils'; -import {FormValidationState, useFormValidationState} from '@react-stately/form'; -import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately/overlays'; +import {FormValidationState, useFormValidationState} from '@react-stately-nutrient/form'; +import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import {RangeValue, ValidationState} from '@react-types/shared'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo, useState} from 'react'; export interface DateRangePickerStateOptions extends DateRangePickerProps { diff --git a/packages/@react-stately/datepicker/src/useTimeFieldState.ts b/packages/@react-stately/datepicker/src/useTimeFieldState.ts index 4ff01e8b84a..e6980dea5fd 100644 --- a/packages/@react-stately/datepicker/src/useTimeFieldState.ts +++ b/packages/@react-stately/datepicker/src/useTimeFieldState.ts @@ -14,7 +14,7 @@ import {DateFieldState, useDateFieldState} from '.'; import {DateValue, MappedTimeValue, TimePickerProps, TimeValue} from '@react-types/datepicker'; import {getLocalTimeZone, GregorianCalendar, Time, toCalendarDateTime, today, toTime, toZoned} from '@internationalized/date'; import {useCallback, useMemo} from 'react'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; export interface TimeFieldStateOptions extends TimePickerProps { /** The locale to display and edit the value according to. */ diff --git a/packages/@react-stately/datepicker/src/utils.ts b/packages/@react-stately/datepicker/src/utils.ts index 148e8ac81bb..dce9edbed36 100644 --- a/packages/@react-stately/datepicker/src/utils.ts +++ b/packages/@react-stately/datepicker/src/utils.ts @@ -15,7 +15,7 @@ import {DatePickerProps, DateValue, Granularity, TimeValue} from '@react-types/d // @ts-ignore import i18nMessages from '../intl/*.json'; import {LocalizedStringDictionary, LocalizedStringFormatter} from '@internationalized/string'; -import {mergeValidation, VALID_VALIDITY_STATE} from '@react-stately/form'; +import {mergeValidation, VALID_VALIDITY_STATE} from '@react-stately-nutrient/form'; import {RangeValue, ValidationResult} from '@react-types/shared'; import {useState} from 'react'; @@ -43,7 +43,7 @@ export function getValidationResult( if (isInvalid) { let locale = getLocale(); - let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately/datepicker') || dictionary; + let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately-nutrient/datepicker') || dictionary; let formatter = new LocalizedStringFormatter(locale, strings); let dateFormatter = new DateFormatter(locale, getFormatOptions({}, options)); let timeZone = dateFormatter.resolvedOptions().timeZone; @@ -105,7 +105,7 @@ export function getRangeValidationResult( let result = mergeValidation(startValidation, endValidation); if (value?.end != null && value.start != null && value.end.compare(value.start) < 0) { - let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately/datepicker') || dictionary; + let strings = LocalizedStringDictionary.getGlobalDictionaryForPackage('@react-stately-nutrient/datepicker') || dictionary; result = mergeValidation(result, { isInvalid: true, validationErrors: [strings.getStringForLocale('rangeReversed', getLocale())], diff --git a/packages/@react-stately/disclosure/README.md b/packages/@react-stately/disclosure/README.md index 225e353737d..3cc1927b689 100644 --- a/packages/@react-stately/disclosure/README.md +++ b/packages/@react-stately/disclosure/README.md @@ -1,3 +1,3 @@ -# @react-stately/disclosure +# @react-stately-nutrient/disclosure This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/disclosure/docs/useDisclosureGroupState.mdx b/packages/@react-stately/disclosure/docs/useDisclosureGroupState.mdx index d9903ac0afa..1a5b8fc5fab 100644 --- a/packages/@react-stately/disclosure/docs/useDisclosureGroupState.mdx +++ b/packages/@react-stately/disclosure/docs/useDisclosureGroupState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/disclosure'; +import docs from 'docs:@react-stately-nutrient/disclosure'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/disclosure/package.json'; +import packageData from '@react-stately-nutrient/disclosure/package.json'; --- category: Navigation diff --git a/packages/@react-stately/disclosure/docs/useDisclosureState.mdx b/packages/@react-stately/disclosure/docs/useDisclosureState.mdx index bb65543910b..32dab8a36fe 100644 --- a/packages/@react-stately/disclosure/docs/useDisclosureState.mdx +++ b/packages/@react-stately/disclosure/docs/useDisclosureState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/disclosure'; +import docs from 'docs:@react-stately-nutrient/disclosure'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/disclosure/package.json'; +import packageData from '@react-stately-nutrient/disclosure/package.json'; --- category: Navigation diff --git a/packages/@react-stately/disclosure/package.json b/packages/@react-stately/disclosure/package.json index acf72b04887..13d8aa02544 100644 --- a/packages/@react-stately/disclosure/package.json +++ b/packages/@react-stately/disclosure/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/disclosure", + "name": "@react-stately-nutrient/disclosure", "version": "3.0.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/disclosure/src/useDisclosureGroupState.ts b/packages/@react-stately/disclosure/src/useDisclosureGroupState.ts index 81d04ae955b..c93ab6805d4 100644 --- a/packages/@react-stately/disclosure/src/useDisclosureGroupState.ts +++ b/packages/@react-stately/disclosure/src/useDisclosureGroupState.ts @@ -11,7 +11,7 @@ */ import {Key} from '@react-types/shared'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useEffect, useMemo} from 'react'; export interface DisclosureGroupProps { diff --git a/packages/@react-stately/disclosure/src/useDisclosureState.ts b/packages/@react-stately/disclosure/src/useDisclosureState.ts index c7b0d14b94c..14a4c961e8f 100644 --- a/packages/@react-stately/disclosure/src/useDisclosureState.ts +++ b/packages/@react-stately/disclosure/src/useDisclosureState.ts @@ -11,7 +11,7 @@ */ import {useCallback} from 'react'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; export interface DisclosureProps { /** Whether the disclosure is expanded (controlled). */ diff --git a/packages/@react-stately/dnd/README.md b/packages/@react-stately/dnd/README.md index 887e679158d..a3c47b7f972 100644 --- a/packages/@react-stately/dnd/README.md +++ b/packages/@react-stately/dnd/README.md @@ -1,3 +1,3 @@ -# @react-stately/dnd +# @react-stately-nutrient/dnd This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/dnd/docs/useDraggableCollectionState.mdx b/packages/@react-stately/dnd/docs/useDraggableCollectionState.mdx index 4f3b3b1fd38..22a026f906c 100644 --- a/packages/@react-stately/dnd/docs/useDraggableCollectionState.mdx +++ b/packages/@react-stately/dnd/docs/useDraggableCollectionState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/dnd'; +import docs from 'docs:@react-stately-nutrient/dnd'; import {HeaderInfo, TypeContext, InterfaceType, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/dnd/package.json'; +import packageData from '@react-stately-nutrient/dnd/package.json'; --- category: Drag and Drop diff --git a/packages/@react-stately/dnd/docs/useDroppableCollectionState.mdx b/packages/@react-stately/dnd/docs/useDroppableCollectionState.mdx index 9c4f1a13801..5e17f46df5e 100644 --- a/packages/@react-stately/dnd/docs/useDroppableCollectionState.mdx +++ b/packages/@react-stately/dnd/docs/useDroppableCollectionState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/dnd'; +import docs from 'docs:@react-stately-nutrient/dnd'; import {HeaderInfo, TypeContext, InterfaceType, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/dnd/package.json'; +import packageData from '@react-stately-nutrient/dnd/package.json'; --- category: Drag and Drop diff --git a/packages/@react-stately/dnd/package.json b/packages/@react-stately/dnd/package.json index cfe0b303a6f..9bc4f0c566f 100644 --- a/packages/@react-stately/dnd/package.json +++ b/packages/@react-stately/dnd/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/dnd", + "name": "@react-stately-nutrient/dnd", "version": "3.5.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/selection": "^3.20.0", + "@react-stately-nutrient/selection": "^3.20.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/dnd/src/useDraggableCollectionState.ts b/packages/@react-stately/dnd/src/useDraggableCollectionState.ts index c0ba9e798ae..3e11e4bfefd 100644 --- a/packages/@react-stately/dnd/src/useDraggableCollectionState.ts +++ b/packages/@react-stately/dnd/src/useDraggableCollectionState.ts @@ -11,7 +11,7 @@ */ import {Collection, DraggableCollectionEndEvent, DraggableCollectionProps, DragItem, DragMoveEvent, DragPreviewRenderer, DragStartEvent, DropOperation, Key, Node, RefObject} from '@react-types/shared'; -import {MultipleSelectionManager} from '@react-stately/selection'; +import {MultipleSelectionManager} from '@react-stately-nutrient/selection'; import {useRef, useState} from 'react'; export interface DraggableCollectionStateOptions extends DraggableCollectionProps { diff --git a/packages/@react-stately/dnd/src/useDroppableCollectionState.ts b/packages/@react-stately/dnd/src/useDroppableCollectionState.ts index 688c7315bb8..722e6ec28d5 100644 --- a/packages/@react-stately/dnd/src/useDroppableCollectionState.ts +++ b/packages/@react-stately/dnd/src/useDroppableCollectionState.ts @@ -11,7 +11,7 @@ */ import {Collection, DragTypes, DropOperation, DroppableCollectionProps, DropTarget, ItemDropTarget, Key, Node} from '@react-types/shared'; -import {MultipleSelectionManager} from '@react-stately/selection'; +import {MultipleSelectionManager} from '@react-stately-nutrient/selection'; import {useCallback, useRef, useState} from 'react'; interface DropOperationEvent { diff --git a/packages/@react-stately/flags/README.md b/packages/@react-stately/flags/README.md index 0a4801725d1..337830ce686 100644 --- a/packages/@react-stately/flags/README.md +++ b/packages/@react-stately/flags/README.md @@ -1,3 +1,3 @@ -# @react-stately/flags +# @react-stately-nutrient/flags This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/flags/package.json b/packages/@react-stately/flags/package.json index dfae49a4fd0..eb161186c1a 100644 --- a/packages/@react-stately/flags/package.json +++ b/packages/@react-stately/flags/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/flags", + "name": "@react-stately-nutrient/flags", "version": "3.1.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", diff --git a/packages/@react-stately/form/README.md b/packages/@react-stately/form/README.md index 41d98ae83d7..641e048236c 100644 --- a/packages/@react-stately/form/README.md +++ b/packages/@react-stately/form/README.md @@ -1,3 +1,3 @@ -# @react-stately/form +# @react-stately-nutrient/form This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/form/package.json b/packages/@react-stately/form/package.json index f78187adbc8..a983f94ee81 100644 --- a/packages/@react-stately/form/package.json +++ b/packages/@react-stately/form/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/form", + "name": "@react-stately-nutrient/form", "version": "3.1.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", diff --git a/packages/@react-stately/grid/README.md b/packages/@react-stately/grid/README.md index aa470b88fa8..a7ddb1dff8c 100644 --- a/packages/@react-stately/grid/README.md +++ b/packages/@react-stately/grid/README.md @@ -1,3 +1,3 @@ -# @react-stately/grid +# @react-stately-nutrient/grid This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/grid/package.json b/packages/@react-stately/grid/package.json index 81aea7c5167..521c6c1e582 100644 --- a/packages/@react-stately/grid/package.json +++ b/packages/@react-stately/grid/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/grid", + "name": "@react-stately-nutrient/grid", "version": "3.11.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,8 +22,8 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/collections": "^3.12.2", - "@react-stately/selection": "^3.20.0", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/selection": "^3.20.0", "@react-types/grid": "^3.3.0", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/grid/src/useGridState.ts b/packages/@react-stately/grid/src/useGridState.ts index 818c23391cb..e402503f737 100644 --- a/packages/@react-stately/grid/src/useGridState.ts +++ b/packages/@react-stately/grid/src/useGridState.ts @@ -1,7 +1,7 @@ -import {getChildNodes, getFirstItem, getLastItem} from '@react-stately/collections'; +import {getChildNodes, getFirstItem, getLastItem} from '@react-stately-nutrient/collections'; import {GridCollection, GridNode} from '@react-types/grid'; import {Key} from '@react-types/shared'; -import {MultipleSelectionState, MultipleSelectionStateProps, SelectionManager, useMultipleSelectionState} from '@react-stately/selection'; +import {MultipleSelectionState, MultipleSelectionStateProps, SelectionManager, useMultipleSelectionState} from '@react-stately-nutrient/selection'; import {useEffect, useMemo, useRef} from 'react'; export interface GridState> { diff --git a/packages/@react-stately/layout/README.md b/packages/@react-stately/layout/README.md index 66faa45d906..e44ad17665e 100644 --- a/packages/@react-stately/layout/README.md +++ b/packages/@react-stately/layout/README.md @@ -1,3 +1,3 @@ -# @react-stately/layout +# @react-stately-nutrient/layout This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/layout/package.json b/packages/@react-stately/layout/package.json index 77ad4ba91cb..5de95be482c 100644 --- a/packages/@react-stately/layout/package.json +++ b/packages/@react-stately/layout/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/layout", + "name": "@react-stately-nutrient/layout", "version": "4.2.1", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,9 +22,9 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/collections": "^3.12.2", - "@react-stately/table": "^3.14.0", - "@react-stately/virtualizer": "^4.3.1", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/table": "^3.14.0", + "@react-stately-nutrient/virtualizer": "^4.3.1", "@react-types/grid": "^3.3.0", "@react-types/shared": "^3.28.0", "@react-types/table": "^3.11.0", diff --git a/packages/@react-stately/layout/src/GridLayout.ts b/packages/@react-stately/layout/src/GridLayout.ts index 14c8e0865b4..4f71f7ff3be 100644 --- a/packages/@react-stately/layout/src/GridLayout.ts +++ b/packages/@react-stately/layout/src/GridLayout.ts @@ -11,7 +11,7 @@ */ import {DropTarget, DropTargetDelegate, ItemDropTarget, Key, Node} from '@react-types/shared'; -import {InvalidationContext, Layout, LayoutInfo, Rect, Size} from '@react-stately/virtualizer'; +import {InvalidationContext, Layout, LayoutInfo, Rect, Size} from '@react-stately-nutrient/virtualizer'; export interface GridLayoutOptions { /** diff --git a/packages/@react-stately/layout/src/ListLayout.ts b/packages/@react-stately/layout/src/ListLayout.ts index 999bd12b82e..532328006ed 100644 --- a/packages/@react-stately/layout/src/ListLayout.ts +++ b/packages/@react-stately/layout/src/ListLayout.ts @@ -11,8 +11,8 @@ */ import {Collection, DropTarget, DropTargetDelegate, ItemDropTarget, Key, Node} from '@react-types/shared'; -import {getChildNodes} from '@react-stately/collections'; -import {InvalidationContext, Layout, LayoutInfo, Rect, Size} from '@react-stately/virtualizer'; +import {getChildNodes} from '@react-stately-nutrient/collections'; +import {InvalidationContext, Layout, LayoutInfo, Rect, Size} from '@react-stately-nutrient/virtualizer'; export interface ListLayoutOptions { /** diff --git a/packages/@react-stately/layout/src/TableLayout.ts b/packages/@react-stately/layout/src/TableLayout.ts index 4c820b5b1e9..5a095c224c6 100644 --- a/packages/@react-stately/layout/src/TableLayout.ts +++ b/packages/@react-stately/layout/src/TableLayout.ts @@ -11,12 +11,12 @@ */ import {DropTarget, ItemDropTarget, Key} from '@react-types/shared'; -import {getChildNodes} from '@react-stately/collections'; +import {getChildNodes} from '@react-stately-nutrient/collections'; import {GridNode} from '@react-types/grid'; -import {InvalidationContext, LayoutInfo, Point, Rect, Size} from '@react-stately/virtualizer'; +import {InvalidationContext, LayoutInfo, Point, Rect, Size} from '@react-stately-nutrient/virtualizer'; import {LayoutNode, ListLayout, ListLayoutOptions} from './ListLayout'; import {TableCollection} from '@react-types/table'; -import {TableColumnLayout} from '@react-stately/table'; +import {TableColumnLayout} from '@react-stately-nutrient/table'; export interface TableLayoutProps extends ListLayoutOptions { columnWidths?: Map diff --git a/packages/@react-stately/layout/src/WaterfallLayout.ts b/packages/@react-stately/layout/src/WaterfallLayout.ts index 6e7b91ef421..a495142f8d4 100644 --- a/packages/@react-stately/layout/src/WaterfallLayout.ts +++ b/packages/@react-stately/layout/src/WaterfallLayout.ts @@ -11,7 +11,7 @@ */ import {DropTarget, DropTargetDelegate, Key, LayoutDelegate, Node} from '@react-types/shared'; -import {InvalidationContext, Layout, LayoutInfo, Point, Rect, Size} from '@react-stately/virtualizer'; +import {InvalidationContext, Layout, LayoutInfo, Point, Rect, Size} from '@react-stately-nutrient/virtualizer'; export interface WaterfallLayoutOptions { /** diff --git a/packages/@react-stately/list/README.md b/packages/@react-stately/list/README.md index 516cc2b1cf3..dd9ead529fd 100644 --- a/packages/@react-stately/list/README.md +++ b/packages/@react-stately/list/README.md @@ -1,3 +1,3 @@ -# @react-stately/list +# @react-stately-nutrient/list This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. \ No newline at end of file diff --git a/packages/@react-stately/list/docs/useListState.mdx b/packages/@react-stately/list/docs/useListState.mdx index c4badcf3b66..f6ead3011e9 100644 --- a/packages/@react-stately/list/docs/useListState.mdx +++ b/packages/@react-stately/list/docs/useListState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/list'; +import docs from 'docs:@react-stately-nutrient/list'; import {HeaderInfo, TypeContext, InterfaceType, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/list/package.json'; +import packageData from '@react-stately-nutrient/list/package.json'; --- category: Collections diff --git a/packages/@react-stately/list/docs/useSingleSelectListState.mdx b/packages/@react-stately/list/docs/useSingleSelectListState.mdx index bffa8074b07..1852a468284 100644 --- a/packages/@react-stately/list/docs/useSingleSelectListState.mdx +++ b/packages/@react-stately/list/docs/useSingleSelectListState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/list'; +import docs from 'docs:@react-stately-nutrient/list'; import {HeaderInfo, TypeContext, InterfaceType, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/list/package.json'; +import packageData from '@react-stately-nutrient/list/package.json'; --- category: Collections diff --git a/packages/@react-stately/list/package.json b/packages/@react-stately/list/package.json index c7a29bf6302..234ca58c9e7 100644 --- a/packages/@react-stately/list/package.json +++ b/packages/@react-stately/list/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/list", + "name": "@react-stately-nutrient/list", "version": "3.12.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,9 +22,9 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/collections": "^3.12.2", - "@react-stately/selection": "^3.20.0", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/selection": "^3.20.0", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/list/src/useListState.ts b/packages/@react-stately/list/src/useListState.ts index 15813f1dee4..8f9ee244326 100644 --- a/packages/@react-stately/list/src/useListState.ts +++ b/packages/@react-stately/list/src/useListState.ts @@ -12,9 +12,9 @@ import {Collection, CollectionStateBase, Key, LayoutDelegate, Node} from '@react-types/shared'; import {ListCollection} from './ListCollection'; -import {MultipleSelectionStateProps, SelectionManager, useMultipleSelectionState} from '@react-stately/selection'; +import {MultipleSelectionStateProps, SelectionManager, useMultipleSelectionState} from '@react-stately-nutrient/selection'; import {useCallback, useEffect, useMemo, useRef} from 'react'; -import {useCollection} from '@react-stately/collections'; +import {useCollection} from '@react-stately-nutrient/collections'; export interface ListProps extends CollectionStateBase, MultipleSelectionStateProps { /** Filter function to generate a filtered list of nodes. */ diff --git a/packages/@react-stately/list/src/useSingleSelectListState.ts b/packages/@react-stately/list/src/useSingleSelectListState.ts index b99a98af8ad..ee468ce738b 100644 --- a/packages/@react-stately/list/src/useSingleSelectListState.ts +++ b/packages/@react-stately/list/src/useSingleSelectListState.ts @@ -12,7 +12,7 @@ import {CollectionStateBase, Key, Node, Selection, SingleSelection} from '@react-types/shared'; import {ListState, useListState} from './useListState'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo} from 'react'; export interface SingleSelectListProps extends CollectionStateBase, Omit { diff --git a/packages/@react-stately/menu/README.md b/packages/@react-stately/menu/README.md index 11599c17062..43b05193b03 100644 --- a/packages/@react-stately/menu/README.md +++ b/packages/@react-stately/menu/README.md @@ -1,3 +1,3 @@ -# @react-stately/menu +# @react-stately-nutrient/menu This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/menu/docs/useMenuTriggerState.mdx b/packages/@react-stately/menu/docs/useMenuTriggerState.mdx index 70057622a51..c12a05c6862 100644 --- a/packages/@react-stately/menu/docs/useMenuTriggerState.mdx +++ b/packages/@react-stately/menu/docs/useMenuTriggerState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/menu'; +import docs from 'docs:@react-stately-nutrient/menu'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/menu/package.json'; +import packageData from '@react-stately-nutrient/menu/package.json'; --- category: Overlays diff --git a/packages/@react-stately/menu/package.json b/packages/@react-stately/menu/package.json index a0550fd7c58..c8686fef627 100644 --- a/packages/@react-stately/menu/package.json +++ b/packages/@react-stately/menu/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/menu", + "name": "@react-stately-nutrient/menu", "version": "3.9.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/overlays": "^3.6.14", + "@react-stately-nutrient/overlays": "^3.6.14", "@react-types/menu": "^3.9.15", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/menu/src/useMenuTriggerState.ts b/packages/@react-stately/menu/src/useMenuTriggerState.ts index 0901c052323..fa8cb0ac2b5 100644 --- a/packages/@react-stately/menu/src/useMenuTriggerState.ts +++ b/packages/@react-stately/menu/src/useMenuTriggerState.ts @@ -12,7 +12,7 @@ import {FocusStrategy, Key} from '@react-types/shared'; import {MenuTriggerProps} from '@react-types/menu'; -import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately/overlays'; +import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import {useState} from 'react'; export interface MenuTriggerState extends OverlayTriggerState { diff --git a/packages/@react-stately/menu/src/useSubmenuTriggerState.ts b/packages/@react-stately/menu/src/useSubmenuTriggerState.ts index 991a526a10d..38f73cbf796 100644 --- a/packages/@react-stately/menu/src/useSubmenuTriggerState.ts +++ b/packages/@react-stately/menu/src/useSubmenuTriggerState.ts @@ -11,7 +11,7 @@ */ import {FocusStrategy, Key} from '@react-types/shared'; -import type {OverlayTriggerState} from '@react-stately/overlays'; +import type {OverlayTriggerState} from '@react-stately-nutrient/overlays'; import {RootMenuTriggerState} from './useMenuTriggerState'; import {useCallback, useMemo, useState} from 'react'; diff --git a/packages/@react-stately/numberfield/README.md b/packages/@react-stately/numberfield/README.md index 3525fb5f73e..5bda86173de 100644 --- a/packages/@react-stately/numberfield/README.md +++ b/packages/@react-stately/numberfield/README.md @@ -1,3 +1,3 @@ -# @react-stately/numberfield +# @react-stately-nutrient/numberfield This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/numberfield/docs/useNumberFieldState.mdx b/packages/@react-stately/numberfield/docs/useNumberFieldState.mdx index 12c6968bbe9..d7cc84e95bc 100644 --- a/packages/@react-stately/numberfield/docs/useNumberFieldState.mdx +++ b/packages/@react-stately/numberfield/docs/useNumberFieldState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/numberfield'; +import docs from 'docs:@react-stately-nutrient/numberfield'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/numberfield/package.json'; +import packageData from '@react-stately-nutrient/numberfield/package.json'; --- category: Forms diff --git a/packages/@react-stately/numberfield/package.json b/packages/@react-stately/numberfield/package.json index a028adfbc31..9ce05447614 100644 --- a/packages/@react-stately/numberfield/package.json +++ b/packages/@react-stately/numberfield/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/numberfield", + "name": "@react-stately-nutrient/numberfield", "version": "3.9.10", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -23,8 +23,8 @@ }, "dependencies": { "@internationalized/number": "^3.6.0", - "@react-stately/form": "^3.1.2", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/numberfield": "^3.8.9", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/numberfield/src/useNumberFieldState.ts b/packages/@react-stately/numberfield/src/useNumberFieldState.ts index afd4110c65e..faeee80afac 100644 --- a/packages/@react-stately/numberfield/src/useNumberFieldState.ts +++ b/packages/@react-stately/numberfield/src/useNumberFieldState.ts @@ -10,8 +10,8 @@ * governing permissions and limitations under the License. */ -import {clamp, snapValueToStep, useControlledState} from '@react-stately/utils'; -import {FormValidationState, useFormValidationState} from '@react-stately/form'; +import {clamp, snapValueToStep, useControlledState} from '@react-stately-nutrient/utils'; +import {FormValidationState, useFormValidationState} from '@react-stately-nutrient/form'; import {NumberFieldProps} from '@react-types/numberfield'; import {NumberFormatter, NumberParser} from '@internationalized/number'; import {useCallback, useMemo, useState} from 'react'; diff --git a/packages/@react-stately/overlays/README.md b/packages/@react-stately/overlays/README.md index 1678a40c94d..31cf3b60d75 100644 --- a/packages/@react-stately/overlays/README.md +++ b/packages/@react-stately/overlays/README.md @@ -1,3 +1,3 @@ -# @react-stately/overlays +# @react-stately-nutrient/overlays This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/overlays/docs/useOverlayTriggerState.mdx b/packages/@react-stately/overlays/docs/useOverlayTriggerState.mdx index 702bce4d20e..e9013bcb1b4 100644 --- a/packages/@react-stately/overlays/docs/useOverlayTriggerState.mdx +++ b/packages/@react-stately/overlays/docs/useOverlayTriggerState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/overlays'; +import docs from 'docs:@react-stately-nutrient/overlays'; import {ClassAPI, HeaderInfo, FunctionAPI, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/overlays/package.json'; +import packageData from '@react-stately-nutrient/overlays/package.json'; --- category: Overlays diff --git a/packages/@react-stately/overlays/package.json b/packages/@react-stately/overlays/package.json index 9c3465a085c..ef1cfa5534f 100644 --- a/packages/@react-stately/overlays/package.json +++ b/packages/@react-stately/overlays/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/overlays", + "name": "@react-stately-nutrient/overlays", "version": "3.6.14", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/overlays": "^3.8.13", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/overlays/src/useOverlayTriggerState.ts b/packages/@react-stately/overlays/src/useOverlayTriggerState.ts index 8e698afeea2..71816b5b23f 100644 --- a/packages/@react-stately/overlays/src/useOverlayTriggerState.ts +++ b/packages/@react-stately/overlays/src/useOverlayTriggerState.ts @@ -12,7 +12,7 @@ import {OverlayTriggerProps} from '@react-types/overlays'; import {useCallback} from 'react'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; export interface OverlayTriggerState { /** Whether the overlay is currently open. */ diff --git a/packages/@react-stately/radio/README.md b/packages/@react-stately/radio/README.md index 746e1a9cd6b..95bf0f6a734 100644 --- a/packages/@react-stately/radio/README.md +++ b/packages/@react-stately/radio/README.md @@ -1,3 +1,3 @@ -# @react-stately/radio +# @react-stately-nutrient/radio This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/radio/docs/useRadioGroupState.mdx b/packages/@react-stately/radio/docs/useRadioGroupState.mdx index 3a53b5fcd5d..a7fcebdd98e 100644 --- a/packages/@react-stately/radio/docs/useRadioGroupState.mdx +++ b/packages/@react-stately/radio/docs/useRadioGroupState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/radio'; +import docs from 'docs:@react-stately-nutrient/radio'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/radio/package.json'; +import packageData from '@react-stately-nutrient/radio/package.json'; --- category: Forms diff --git a/packages/@react-stately/radio/package.json b/packages/@react-stately/radio/package.json index a64be6f80eb..aeb5a08a6ec 100644 --- a/packages/@react-stately/radio/package.json +++ b/packages/@react-stately/radio/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/radio", + "name": "@react-stately-nutrient/radio", "version": "3.10.11", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,8 +22,8 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/form": "^3.1.2", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/radio": "^3.8.7", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/radio/src/useRadioGroupState.ts b/packages/@react-stately/radio/src/useRadioGroupState.ts index 0e9349d0afd..6064a85a6e4 100644 --- a/packages/@react-stately/radio/src/useRadioGroupState.ts +++ b/packages/@react-stately/radio/src/useRadioGroupState.ts @@ -10,9 +10,9 @@ * governing permissions and limitations under the License. */ -import {FormValidationState, useFormValidationState} from '@react-stately/form'; +import {FormValidationState, useFormValidationState} from '@react-stately-nutrient/form'; import {RadioGroupProps} from '@react-types/radio'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo, useState} from 'react'; import {ValidationState} from '@react-types/shared'; diff --git a/packages/@react-stately/searchfield/README.md b/packages/@react-stately/searchfield/README.md index 4dbc759ccda..483c80ec06f 100644 --- a/packages/@react-stately/searchfield/README.md +++ b/packages/@react-stately/searchfield/README.md @@ -1,3 +1,3 @@ -# @react-stately/searchfield +# @react-stately-nutrient/searchfield This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/searchfield/docs/useSearchFieldState.mdx b/packages/@react-stately/searchfield/docs/useSearchFieldState.mdx index 93ef1bf2e8a..8f750441519 100644 --- a/packages/@react-stately/searchfield/docs/useSearchFieldState.mdx +++ b/packages/@react-stately/searchfield/docs/useSearchFieldState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/searchfield'; +import docs from 'docs:@react-stately-nutrient/searchfield'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/searchfield/package.json'; +import packageData from '@react-stately-nutrient/searchfield/package.json'; --- category: Forms diff --git a/packages/@react-stately/searchfield/package.json b/packages/@react-stately/searchfield/package.json index b0c7e7a5af4..3fa6724dc12 100644 --- a/packages/@react-stately/searchfield/package.json +++ b/packages/@react-stately/searchfield/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/searchfield", + "name": "@react-stately-nutrient/searchfield", "version": "3.5.10", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/searchfield": "^3.6.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/searchfield/src/useSearchFieldState.ts b/packages/@react-stately/searchfield/src/useSearchFieldState.ts index 3a338cf6ef0..f9815e13dbe 100644 --- a/packages/@react-stately/searchfield/src/useSearchFieldState.ts +++ b/packages/@react-stately/searchfield/src/useSearchFieldState.ts @@ -11,7 +11,7 @@ */ import {SearchFieldProps} from '@react-types/searchfield'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; export interface SearchFieldState { /** The current value of the search field. */ diff --git a/packages/@react-stately/select/README.md b/packages/@react-stately/select/README.md index bd1a7c0b2e5..9ab878949d2 100644 --- a/packages/@react-stately/select/README.md +++ b/packages/@react-stately/select/README.md @@ -1,3 +1,3 @@ -# @react-stately/select +# @react-stately-nutrient/select This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. \ No newline at end of file diff --git a/packages/@react-stately/select/docs/useSelectState.mdx b/packages/@react-stately/select/docs/useSelectState.mdx index b5e27269ec4..6d99931a8f6 100644 --- a/packages/@react-stately/select/docs/useSelectState.mdx +++ b/packages/@react-stately/select/docs/useSelectState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/select'; +import docs from 'docs:@react-stately-nutrient/select'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/select/package.json'; +import packageData from '@react-stately-nutrient/select/package.json'; --- category: Pickers diff --git a/packages/@react-stately/select/package.json b/packages/@react-stately/select/package.json index 175b257188f..85407f7382d 100644 --- a/packages/@react-stately/select/package.json +++ b/packages/@react-stately/select/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/select", + "name": "@react-stately-nutrient/select", "version": "3.6.11", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,9 +22,9 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/form": "^3.1.2", - "@react-stately/list": "^3.12.0", - "@react-stately/overlays": "^3.6.14", + "@react-stately-nutrient/form": "^3.1.2", + "@react-stately-nutrient/list": "^3.12.0", + "@react-stately-nutrient/overlays": "^3.6.14", "@react-types/select": "^3.9.10", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/select/src/useSelectState.ts b/packages/@react-stately/select/src/useSelectState.ts index 3aff970197e..0947e9e2ed7 100644 --- a/packages/@react-stately/select/src/useSelectState.ts +++ b/packages/@react-stately/select/src/useSelectState.ts @@ -11,10 +11,10 @@ */ import {CollectionStateBase, FocusStrategy} from '@react-types/shared'; -import {FormValidationState, useFormValidationState} from '@react-stately/form'; -import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately/overlays'; +import {FormValidationState, useFormValidationState} from '@react-stately-nutrient/form'; +import {OverlayTriggerState, useOverlayTriggerState} from '@react-stately-nutrient/overlays'; import {SelectProps} from '@react-types/select'; -import {SingleSelectListState, useSingleSelectListState} from '@react-stately/list'; +import {SingleSelectListState, useSingleSelectListState} from '@react-stately-nutrient/list'; import {useState} from 'react'; export interface SelectStateOptions extends Omit, 'children'>, CollectionStateBase {} diff --git a/packages/@react-stately/selection/README.md b/packages/@react-stately/selection/README.md index 8a272fcf245..6129ba12ba6 100644 --- a/packages/@react-stately/selection/README.md +++ b/packages/@react-stately/selection/README.md @@ -1,3 +1,3 @@ -# @react-stately/selection +# @react-stately-nutrient/selection This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/selection/docs/SelectionManager.mdx b/packages/@react-stately/selection/docs/SelectionManager.mdx index 1fcae96ce25..43e520b277e 100644 --- a/packages/@react-stately/selection/docs/SelectionManager.mdx +++ b/packages/@react-stately/selection/docs/SelectionManager.mdx @@ -10,13 +10,13 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/selection'; +import docs from 'docs:@react-stately-nutrient/selection'; import collectionsDocs from 'docs:@react-types/shared/src/collections.d.ts'; import ariaDocs from 'docs:@react-aria-nutrient/selection'; -import listDocs from 'docs:@react-stately/list'; -import treeDocs from 'docs:@react-stately/tree'; +import listDocs from 'docs:@react-stately-nutrient/list'; +import treeDocs from 'docs:@react-stately-nutrient/tree'; import {HeaderInfo, ClassAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/selection/package.json'; +import packageData from '@react-stately-nutrient/selection/package.json'; ```jsx import import '@react-spectrum/docs/src/client'; diff --git a/packages/@react-stately/selection/docs/selection.mdx b/packages/@react-stately/selection/docs/selection.mdx index bf5441b2ea6..201f457cd6f 100644 --- a/packages/@react-stately/selection/docs/selection.mdx +++ b/packages/@react-stately/selection/docs/selection.mdx @@ -10,8 +10,8 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/selection'; -import dataDocs from 'docs:@react-stately/data'; +import docs from 'docs:@react-stately-nutrient/selection'; +import dataDocs from 'docs:@react-stately-nutrient/data'; import {HeaderInfo, PropTable, TypeLink} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; diff --git a/packages/@react-stately/selection/docs/useMultipleSelectionState.mdx b/packages/@react-stately/selection/docs/useMultipleSelectionState.mdx index 747c6f0e0ec..62ac47e98d0 100644 --- a/packages/@react-stately/selection/docs/useMultipleSelectionState.mdx +++ b/packages/@react-stately/selection/docs/useMultipleSelectionState.mdx @@ -10,11 +10,11 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/selection'; -import listDocs from 'docs:@react-stately/list'; -import selectDocs from 'docs:@react-stately/select'; +import docs from 'docs:@react-stately-nutrient/selection'; +import listDocs from 'docs:@react-stately-nutrient/list'; +import selectDocs from 'docs:@react-stately-nutrient/select'; import {HeaderInfo, ClassAPI, FunctionAPI, TypeContext, InterfaceType, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/selection/package.json'; +import packageData from '@react-stately-nutrient/selection/package.json'; ```jsx import import '@react-spectrum/docs/src/client'; diff --git a/packages/@react-stately/selection/package.json b/packages/@react-stately/selection/package.json index d0110f6b9c8..13c71f75e8c 100644 --- a/packages/@react-stately/selection/package.json +++ b/packages/@react-stately/selection/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/selection", + "name": "@react-stately-nutrient/selection", "version": "3.20.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,8 +22,8 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/collections": "^3.12.2", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/selection/src/SelectionManager.ts b/packages/@react-stately/selection/src/SelectionManager.ts index 0a0d9f8bd75..6e248395689 100644 --- a/packages/@react-stately/selection/src/SelectionManager.ts +++ b/packages/@react-stately/selection/src/SelectionManager.ts @@ -22,7 +22,7 @@ import { SelectionBehavior, SelectionMode } from '@react-types/shared'; -import {compareNodeOrder, getChildNodes, getFirstItem} from '@react-stately/collections'; +import {compareNodeOrder, getChildNodes, getFirstItem} from '@react-stately-nutrient/collections'; import {MultipleSelectionManager, MultipleSelectionState} from './types'; import {Selection} from './Selection'; diff --git a/packages/@react-stately/selection/src/useMultipleSelectionState.ts b/packages/@react-stately/selection/src/useMultipleSelectionState.ts index e58d0823850..8c58022418a 100644 --- a/packages/@react-stately/selection/src/useMultipleSelectionState.ts +++ b/packages/@react-stately/selection/src/useMultipleSelectionState.ts @@ -13,7 +13,7 @@ import {DisabledBehavior, FocusStrategy, Key, MultipleSelection, SelectionBehavior, SelectionMode} from '@react-types/shared'; import {MultipleSelectionState} from './types'; import {Selection} from './Selection'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useEffect, useMemo, useRef, useState} from 'react'; function equalSets(setA, setB) { diff --git a/packages/@react-stately/slider/README.md b/packages/@react-stately/slider/README.md index 347721ff634..5e045051653 100644 --- a/packages/@react-stately/slider/README.md +++ b/packages/@react-stately/slider/README.md @@ -1,3 +1,3 @@ -# @react-stately/slider +# @react-stately-nutrient/slider This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. \ No newline at end of file diff --git a/packages/@react-stately/slider/docs/useSliderState.mdx b/packages/@react-stately/slider/docs/useSliderState.mdx index b8e58b9fb0c..c4ca7fcf371 100644 --- a/packages/@react-stately/slider/docs/useSliderState.mdx +++ b/packages/@react-stately/slider/docs/useSliderState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/slider'; +import docs from 'docs:@react-stately-nutrient/slider'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/slider/package.json'; +import packageData from '@react-stately-nutrient/slider/package.json'; --- category: Sliders diff --git a/packages/@react-stately/slider/package.json b/packages/@react-stately/slider/package.json index aa6ea020187..520dad538ea 100644 --- a/packages/@react-stately/slider/package.json +++ b/packages/@react-stately/slider/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/slider", + "name": "@react-stately-nutrient/slider", "version": "3.6.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@react-types/slider": "^3.7.9", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/slider/src/useSliderState.ts b/packages/@react-stately/slider/src/useSliderState.ts index d2de8e145a6..c777550cb0c 100644 --- a/packages/@react-stately/slider/src/useSliderState.ts +++ b/packages/@react-stately/slider/src/useSliderState.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {clamp, snapValueToStep, useControlledState} from '@react-stately/utils'; +import {clamp, snapValueToStep, useControlledState} from '@react-stately-nutrient/utils'; import {Orientation} from '@react-types/shared'; import {SliderProps} from '@react-types/slider'; import {useCallback, useMemo, useRef, useState} from 'react'; diff --git a/packages/@react-stately/steplist/README.md b/packages/@react-stately/steplist/README.md index 5a8b2faad76..ae593d8999a 100644 --- a/packages/@react-stately/steplist/README.md +++ b/packages/@react-stately/steplist/README.md @@ -1,3 +1,3 @@ -# @react-stately/steplist +# @react-stately-nutrient/steplist This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/steplist/docs/useStepListState.mdx b/packages/@react-stately/steplist/docs/useStepListState.mdx index a14a0721286..d1858fd95d9 100644 --- a/packages/@react-stately/steplist/docs/useStepListState.mdx +++ b/packages/@react-stately/steplist/docs/useStepListState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/steplist'; +import docs from 'docs:@react-stately-nutrient/steplist'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/steplist/package.json'; +import packageData from '@react-stately-nutrient/steplist/package.json'; --- category: Collections diff --git a/packages/@react-stately/steplist/package.json b/packages/@react-stately/steplist/package.json index 9998edff8e1..ef22d93509c 100644 --- a/packages/@react-stately/steplist/package.json +++ b/packages/@react-stately/steplist/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/steplist", + "name": "@react-stately-nutrient/steplist", "version": "3.0.0-alpha.12", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,8 +22,8 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/list": "^3.12.0", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/list": "^3.12.0", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/steplist/src/useStepListState.ts b/packages/@react-stately/steplist/src/useStepListState.ts index 7dddc99999a..2167b142deb 100644 --- a/packages/@react-stately/steplist/src/useStepListState.ts +++ b/packages/@react-stately/steplist/src/useStepListState.ts @@ -11,9 +11,9 @@ */ import {Collection, CollectionBase, Key, Node, SingleSelection} from '@react-types/shared'; -import {SingleSelectListState, useSingleSelectListState} from '@react-stately/list'; +import {SingleSelectListState, useSingleSelectListState} from '@react-stately-nutrient/list'; import {useCallback, useEffect, useMemo} from 'react'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; export interface StepListProps extends CollectionBase, SingleSelection { /** The key of the last completed step (controlled). */ diff --git a/packages/@react-stately/table/README.md b/packages/@react-stately/table/README.md index 5806daf5837..d64fd32d063 100644 --- a/packages/@react-stately/table/README.md +++ b/packages/@react-stately/table/README.md @@ -1,3 +1,3 @@ -# @react-stately/table +# @react-stately-nutrient/table This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/table/docs/useTableState.mdx b/packages/@react-stately/table/docs/useTableState.mdx index 0db46cd9a11..916a9544c95 100644 --- a/packages/@react-stately/table/docs/useTableState.mdx +++ b/packages/@react-stately/table/docs/useTableState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/table'; +import docs from 'docs:@react-stately-nutrient/table'; import {ClassAPI, HeaderInfo, FunctionAPI, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/table/package.json'; +import packageData from '@react-stately-nutrient/table/package.json'; --- category: Collections diff --git a/packages/@react-stately/table/package.json b/packages/@react-stately/table/package.json index 50b06b5299e..50ac66afdee 100644 --- a/packages/@react-stately/table/package.json +++ b/packages/@react-stately/table/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/table", + "name": "@react-stately-nutrient/table", "version": "3.14.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,11 +22,11 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/collections": "^3.12.2", - "@react-stately/flags": "^3.1.0", - "@react-stately/grid": "^3.11.0", - "@react-stately/selection": "^3.20.0", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/flags": "^3.1.0", + "@react-stately-nutrient/grid": "^3.11.0", + "@react-stately-nutrient/selection": "^3.20.0", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/grid": "^3.3.0", "@react-types/shared": "^3.28.0", "@react-types/table": "^3.11.0", diff --git a/packages/@react-stately/table/src/Cell.ts b/packages/@react-stately/table/src/Cell.ts index 58a45082d32..ee2ace359c0 100644 --- a/packages/@react-stately/table/src/Cell.ts +++ b/packages/@react-stately/table/src/Cell.ts @@ -12,7 +12,7 @@ import {CellProps} from '@react-types/table'; import {JSX, ReactElement} from 'react'; -import {PartialNode} from '@react-stately/collections'; +import {PartialNode} from '@react-stately-nutrient/collections'; function Cell(props: CellProps): ReactElement | null { // eslint-disable-line @typescript-eslint/no-unused-vars return null; diff --git a/packages/@react-stately/table/src/Column.ts b/packages/@react-stately/table/src/Column.ts index 6fd872cab19..e88a0394611 100644 --- a/packages/@react-stately/table/src/Column.ts +++ b/packages/@react-stately/table/src/Column.ts @@ -13,7 +13,7 @@ import {CollectionBuilderContext} from './useTableState'; import {ColumnProps} from '@react-types/table'; import {GridNode} from '@react-types/grid'; -import {PartialNode} from '@react-stately/collections'; +import {PartialNode} from '@react-stately-nutrient/collections'; import React, {JSX, ReactElement} from 'react'; function Column(props: ColumnProps): ReactElement | null { // eslint-disable-line @typescript-eslint/no-unused-vars diff --git a/packages/@react-stately/table/src/Row.ts b/packages/@react-stately/table/src/Row.ts index 9cc5595538f..0d4c122d860 100644 --- a/packages/@react-stately/table/src/Row.ts +++ b/packages/@react-stately/table/src/Row.ts @@ -11,7 +11,7 @@ */ import {CollectionBuilderContext} from './useTableState'; -import {PartialNode} from '@react-stately/collections'; +import {PartialNode} from '@react-stately-nutrient/collections'; import React, {JSX, ReactElement} from 'react'; import {RowProps} from '@react-types/table'; diff --git a/packages/@react-stately/table/src/TableBody.ts b/packages/@react-stately/table/src/TableBody.ts index 6355c3326f6..1ae7333402a 100644 --- a/packages/@react-stately/table/src/TableBody.ts +++ b/packages/@react-stately/table/src/TableBody.ts @@ -10,7 +10,7 @@ * governing permissions and limitations under the License. */ -import {PartialNode} from '@react-stately/collections'; +import {PartialNode} from '@react-stately-nutrient/collections'; import React, {JSX, ReactElement} from 'react'; import {TableBodyProps} from '@react-types/table'; diff --git a/packages/@react-stately/table/src/TableCollection.ts b/packages/@react-stately/table/src/TableCollection.ts index 346cd516347..f04c1199690 100644 --- a/packages/@react-stately/table/src/TableCollection.ts +++ b/packages/@react-stately/table/src/TableCollection.ts @@ -10,8 +10,8 @@ * governing permissions and limitations under the License. */ -import {getFirstItem, getLastItem} from '@react-stately/collections'; -import {GridCollection} from '@react-stately/grid'; +import {getFirstItem, getLastItem} from '@react-stately-nutrient/collections'; +import {GridCollection} from '@react-stately-nutrient/grid'; import {GridNode} from '@react-types/grid'; import {TableCollection as ITableCollection} from '@react-types/table'; import {Key} from '@react-types/shared'; diff --git a/packages/@react-stately/table/src/TableHeader.ts b/packages/@react-stately/table/src/TableHeader.ts index 70af4722f06..7e80adea65b 100644 --- a/packages/@react-stately/table/src/TableHeader.ts +++ b/packages/@react-stately/table/src/TableHeader.ts @@ -11,7 +11,7 @@ */ import {CollectionBuilderContext} from './useTableState'; -import {PartialNode} from '@react-stately/collections'; +import {PartialNode} from '@react-stately-nutrient/collections'; import React, {JSX, ReactElement} from 'react'; import {TableHeaderProps} from '@react-types/table'; diff --git a/packages/@react-stately/table/src/index.ts b/packages/@react-stately/table/src/index.ts index 3bc9b63806f..39e87a2aba7 100644 --- a/packages/@react-stately/table/src/index.ts +++ b/packages/@react-stately/table/src/index.ts @@ -22,7 +22,7 @@ export {TableBody} from './TableBody'; export {Column} from './Column'; export {Row} from './Row'; export {Cell} from './Cell'; -export {Section} from '@react-stately/collections'; +export {Section} from '@react-stately-nutrient/collections'; export {TableCollection, buildHeaderRows} from './TableCollection'; export {TableColumnLayout} from './TableColumnLayout'; export {UNSTABLE_useTreeGridState} from './useTreeGridState'; diff --git a/packages/@react-stately/table/src/useTableState.ts b/packages/@react-stately/table/src/useTableState.ts index 0addeb10a35..6728bf315ab 100644 --- a/packages/@react-stately/table/src/useTableState.ts +++ b/packages/@react-stately/table/src/useTableState.ts @@ -10,13 +10,13 @@ * governing permissions and limitations under the License. */ -import {GridState, useGridState} from '@react-stately/grid'; +import {GridState, useGridState} from '@react-stately-nutrient/grid'; import {TableCollection as ITableCollection, TableBodyProps, TableHeaderProps} from '@react-types/table'; import {Key, Node, SelectionMode, Sortable, SortDescriptor, SortDirection} from '@react-types/shared'; -import {MultipleSelectionState, MultipleSelectionStateProps} from '@react-stately/selection'; +import {MultipleSelectionState, MultipleSelectionStateProps} from '@react-stately-nutrient/selection'; import {ReactElement, useCallback, useMemo, useState} from 'react'; import {TableCollection} from './TableCollection'; -import {useCollection} from '@react-stately/collections'; +import {useCollection} from '@react-stately-nutrient/collections'; export interface TableState extends GridState> { /** A collection of rows and columns in the table. */ diff --git a/packages/@react-stately/table/src/useTreeGridState.ts b/packages/@react-stately/table/src/useTreeGridState.ts index 3e6e3247927..0c502006d06 100644 --- a/packages/@react-stately/table/src/useTreeGridState.ts +++ b/packages/@react-stately/table/src/useTreeGridState.ts @@ -10,14 +10,14 @@ * governing permissions and limitations under the License. */ -import {CollectionBuilder} from '@react-stately/collections'; +import {CollectionBuilder} from '@react-stately-nutrient/collections'; import {GridNode} from '@react-types/grid'; import {Key} from '@react-types/shared'; import {ReactElement, useMemo} from 'react'; import {TableCollection} from './TableCollection'; -import {tableNestedRows} from '@react-stately/flags'; +import {tableNestedRows} from '@react-stately-nutrient/flags'; import {TableState, TableStateProps, useTableState} from './useTableState'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; export interface TreeGridState extends TableState { /** A set of keys for items that are expanded. */ diff --git a/packages/@react-stately/tabs/README.md b/packages/@react-stately/tabs/README.md index 4a4a4956fe8..8ae836b2a26 100644 --- a/packages/@react-stately/tabs/README.md +++ b/packages/@react-stately/tabs/README.md @@ -1,3 +1,3 @@ -# @react-stately/tabs +# @react-stately-nutrient/tabs This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/tabs/docs/useTabListState.mdx b/packages/@react-stately/tabs/docs/useTabListState.mdx index cd6754248b8..004156498c9 100644 --- a/packages/@react-stately/tabs/docs/useTabListState.mdx +++ b/packages/@react-stately/tabs/docs/useTabListState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/tabs'; +import docs from 'docs:@react-stately-nutrient/tabs'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/tabs/package.json'; +import packageData from '@react-stately-nutrient/tabs/package.json'; --- category: Collections diff --git a/packages/@react-stately/tabs/package.json b/packages/@react-stately/tabs/package.json index 0329de8c37f..eaf7e648658 100644 --- a/packages/@react-stately/tabs/package.json +++ b/packages/@react-stately/tabs/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/tabs", + "name": "@react-stately-nutrient/tabs", "version": "3.8.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/list": "^3.12.0", + "@react-stately-nutrient/list": "^3.12.0", "@react-types/shared": "^3.28.0", "@react-types/tabs": "^3.3.13", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/tabs/src/useTabListState.ts b/packages/@react-stately/tabs/src/useTabListState.ts index c9bc6c3c23d..89114356f8a 100644 --- a/packages/@react-stately/tabs/src/useTabListState.ts +++ b/packages/@react-stately/tabs/src/useTabListState.ts @@ -11,7 +11,7 @@ */ import {Collection, CollectionStateBase, Key, Node} from '@react-types/shared'; -import {SingleSelectListState, useSingleSelectListState} from '@react-stately/list'; +import {SingleSelectListState, useSingleSelectListState} from '@react-stately-nutrient/list'; import {TabListProps} from '@react-types/tabs'; import {useEffect, useRef} from 'react'; diff --git a/packages/@react-stately/toast/README.md b/packages/@react-stately/toast/README.md index 5e93eaa2932..a43b9e829b4 100644 --- a/packages/@react-stately/toast/README.md +++ b/packages/@react-stately/toast/README.md @@ -1,3 +1,3 @@ -# @react-stately/toast +# @react-stately-nutrient/toast This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/toast/docs/useToastState.mdx b/packages/@react-stately/toast/docs/useToastState.mdx index 7a0cae63313..0576c4abf8c 100644 --- a/packages/@react-stately/toast/docs/useToastState.mdx +++ b/packages/@react-stately/toast/docs/useToastState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/toast'; +import docs from 'docs:@react-stately-nutrient/toast'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/toast/package.json'; +import packageData from '@react-stately-nutrient/toast/package.json'; --- category: Status diff --git a/packages/@react-stately/toast/package.json b/packages/@react-stately/toast/package.json index ced20c40ca9..f928b16145a 100644 --- a/packages/@react-stately/toast/package.json +++ b/packages/@react-stately/toast/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/toast", + "name": "@react-stately-nutrient/toast", "version": "3.0.0", "description": "Spectrum UI components in React", "license": "Apache-2.0", diff --git a/packages/@react-stately/toggle/README.md b/packages/@react-stately/toggle/README.md index f2b860b8d6f..293b06ce402 100644 --- a/packages/@react-stately/toggle/README.md +++ b/packages/@react-stately/toggle/README.md @@ -1,3 +1,3 @@ -# @react-stately/toggle +# @react-stately-nutrient/toggle This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/toggle/docs/useToggleState.mdx b/packages/@react-stately/toggle/docs/useToggleState.mdx index d22101cd187..97a68710596 100644 --- a/packages/@react-stately/toggle/docs/useToggleState.mdx +++ b/packages/@react-stately/toggle/docs/useToggleState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/toggle'; +import docs from 'docs:@react-stately-nutrient/toggle'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/toggle/package.json'; +import packageData from '@react-stately-nutrient/toggle/package.json'; --- category: Forms diff --git a/packages/@react-stately/toggle/package.json b/packages/@react-stately/toggle/package.json index 5d35fc456c7..9732b31728d 100644 --- a/packages/@react-stately/toggle/package.json +++ b/packages/@react-stately/toggle/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/toggle", + "name": "@react-stately-nutrient/toggle", "version": "3.8.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/checkbox": "^3.9.2", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" diff --git a/packages/@react-stately/toggle/src/useToggleGroupState.ts b/packages/@react-stately/toggle/src/useToggleGroupState.ts index 7e5c3b5d529..efaeb844e4c 100644 --- a/packages/@react-stately/toggle/src/useToggleGroupState.ts +++ b/packages/@react-stately/toggle/src/useToggleGroupState.ts @@ -11,7 +11,7 @@ */ import {Key} from '@react-types/shared'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; import {useMemo} from 'react'; export interface ToggleGroupProps { diff --git a/packages/@react-stately/toggle/src/useToggleState.ts b/packages/@react-stately/toggle/src/useToggleState.ts index c3a6ca0a06a..fbc74c35765 100644 --- a/packages/@react-stately/toggle/src/useToggleState.ts +++ b/packages/@react-stately/toggle/src/useToggleState.ts @@ -11,7 +11,7 @@ */ import {ToggleStateOptions} from '@react-types/checkbox'; -import {useControlledState} from '@react-stately/utils'; +import {useControlledState} from '@react-stately-nutrient/utils'; export type {ToggleStateOptions}; diff --git a/packages/@react-stately/tooltip/README.md b/packages/@react-stately/tooltip/README.md index 000d6aebfde..caa0ddd18e1 100644 --- a/packages/@react-stately/tooltip/README.md +++ b/packages/@react-stately/tooltip/README.md @@ -1,3 +1,3 @@ -# @react-stately/tooltip +# @react-stately-nutrient/tooltip This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/tooltip/docs/useTooltipTriggerState.mdx b/packages/@react-stately/tooltip/docs/useTooltipTriggerState.mdx index 883af720a38..5c3f6dc178e 100644 --- a/packages/@react-stately/tooltip/docs/useTooltipTriggerState.mdx +++ b/packages/@react-stately/tooltip/docs/useTooltipTriggerState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/tooltip'; +import docs from 'docs:@react-stately-nutrient/tooltip'; import {ClassAPI, HeaderInfo, FunctionAPI, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/tooltip/package.json'; +import packageData from '@react-stately-nutrient/tooltip/package.json'; --- category: Overlays diff --git a/packages/@react-stately/tooltip/package.json b/packages/@react-stately/tooltip/package.json index e061260271a..783d52b0c5c 100644 --- a/packages/@react-stately/tooltip/package.json +++ b/packages/@react-stately/tooltip/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/tooltip", + "name": "@react-stately-nutrient/tooltip", "version": "3.5.2", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,7 +22,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/overlays": "^3.6.14", + "@react-stately-nutrient/overlays": "^3.6.14", "@react-types/tooltip": "^3.4.15", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/tooltip/src/useTooltipTriggerState.ts b/packages/@react-stately/tooltip/src/useTooltipTriggerState.ts index 32227e8ba60..2ba15c91f9f 100644 --- a/packages/@react-stately/tooltip/src/useTooltipTriggerState.ts +++ b/packages/@react-stately/tooltip/src/useTooltipTriggerState.ts @@ -12,7 +12,7 @@ import {TooltipTriggerProps} from '@react-types/tooltip'; import {useEffect, useMemo, useRef} from 'react'; -import {useOverlayTriggerState} from '@react-stately/overlays'; +import {useOverlayTriggerState} from '@react-stately-nutrient/overlays'; const TOOLTIP_DELAY = 1500; // this seems to be a 1.5 second delay, check with design const TOOLTIP_COOLDOWN = 500; diff --git a/packages/@react-stately/tree/README.md b/packages/@react-stately/tree/README.md index a262a2adedc..2dd2b816cd3 100644 --- a/packages/@react-stately/tree/README.md +++ b/packages/@react-stately/tree/README.md @@ -1,3 +1,3 @@ -# @react-stately/tree +# @react-stately-nutrient/tree This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/tree/docs/useTreeState.mdx b/packages/@react-stately/tree/docs/useTreeState.mdx index ca838d7996f..b0fdc65f42a 100644 --- a/packages/@react-stately/tree/docs/useTreeState.mdx +++ b/packages/@react-stately/tree/docs/useTreeState.mdx @@ -10,9 +10,9 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import docs from 'docs:@react-stately/tree'; +import docs from 'docs:@react-stately-nutrient/tree'; import {ClassAPI, HeaderInfo, TypeContext, FunctionAPI, TypeLink, PageDescription} from '@react-spectrum/docs'; -import packageData from '@react-stately/tree/package.json'; +import packageData from '@react-stately-nutrient/tree/package.json'; --- category: Collections diff --git a/packages/@react-stately/tree/package.json b/packages/@react-stately/tree/package.json index e275f9ad241..ba8bbc164b6 100644 --- a/packages/@react-stately/tree/package.json +++ b/packages/@react-stately/tree/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/tree", + "name": "@react-stately-nutrient/tree", "version": "3.8.8", "description": "Spectrum UI components in React", "license": "Apache-2.0", @@ -22,9 +22,9 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/collections": "^3.12.2", - "@react-stately/selection": "^3.20.0", - "@react-stately/utils": "^3.10.5", + "@react-stately-nutrient/collections": "^3.12.2", + "@react-stately-nutrient/selection": "^3.20.0", + "@react-stately-nutrient/utils": "^3.10.5", "@react-types/shared": "^3.28.0", "@swc/helpers": "^0.5.0" }, diff --git a/packages/@react-stately/tree/src/useTreeState.ts b/packages/@react-stately/tree/src/useTreeState.ts index c454a13a9fe..7342eeee2fb 100644 --- a/packages/@react-stately/tree/src/useTreeState.ts +++ b/packages/@react-stately/tree/src/useTreeState.ts @@ -11,11 +11,11 @@ */ import {Collection, CollectionStateBase, DisabledBehavior, Expandable, Key, MultipleSelection, Node} from '@react-types/shared'; -import {SelectionManager, useMultipleSelectionState} from '@react-stately/selection'; +import {SelectionManager, useMultipleSelectionState} from '@react-stately-nutrient/selection'; import {TreeCollection} from './TreeCollection'; import {useCallback, useEffect, useMemo} from 'react'; -import {useCollection} from '@react-stately/collections'; -import {useControlledState} from '@react-stately/utils'; +import {useCollection} from '@react-stately-nutrient/collections'; +import {useControlledState} from '@react-stately-nutrient/utils'; export interface TreeProps extends CollectionStateBase, Expandable, MultipleSelection { /** Whether `disabledKeys` applies to all interactions, or only selection. */ diff --git a/packages/@react-stately/tree/stories/useTreeState.stories.tsx b/packages/@react-stately/tree/stories/useTreeState.stories.tsx index 960093a9253..6b93d7266cb 100644 --- a/packages/@react-stately/tree/stories/useTreeState.stories.tsx +++ b/packages/@react-stately/tree/stories/useTreeState.stories.tsx @@ -11,7 +11,7 @@ */ import {Collection, Key, Node} from '@react-types/shared'; -import {Item} from '@react-stately/collections'; +import {Item} from '@react-stately-nutrient/collections'; import React, {useMemo, useRef} from 'react'; import {TreeCollection} from '../src/TreeCollection'; import {usePress} from '@react-aria-nutrient/interactions'; diff --git a/packages/@react-stately/utils/README.md b/packages/@react-stately/utils/README.md index c8dcda7d050..8adc3ad90b3 100644 --- a/packages/@react-stately/utils/README.md +++ b/packages/@react-stately/utils/README.md @@ -1,3 +1,3 @@ -# @react-stately/utils +# @react-stately-nutrient/utils This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/utils/package.json b/packages/@react-stately/utils/package.json index e8d71e33755..c27302618e5 100644 --- a/packages/@react-stately/utils/package.json +++ b/packages/@react-stately/utils/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/utils", + "name": "@react-stately-nutrient/utils", "version": "3.10.5", "description": "Spectrum UI components in React", "license": "Apache-2.0", diff --git a/packages/@react-stately/virtualizer/README.md b/packages/@react-stately/virtualizer/README.md index 5f747ce5f5c..eb119996858 100644 --- a/packages/@react-stately/virtualizer/README.md +++ b/packages/@react-stately/virtualizer/README.md @@ -1,3 +1,3 @@ -# @react-stately/virtualizer +# @react-stately-nutrient/virtualizer This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details. diff --git a/packages/@react-stately/virtualizer/package.json b/packages/@react-stately/virtualizer/package.json index 2a7438d8fd1..3d29acaa326 100644 --- a/packages/@react-stately/virtualizer/package.json +++ b/packages/@react-stately/virtualizer/package.json @@ -1,5 +1,5 @@ { - "name": "@react-stately/virtualizer", + "name": "@react-stately-nutrient/virtualizer", "version": "4.3.1", "description": "Spectrum UI components in React", "license": "Apache-2.0", diff --git a/packages/@react-types/card/package.json b/packages/@react-types/card/package.json index 5afd6826ebb..4838e41db63 100644 --- a/packages/@react-types/card/package.json +++ b/packages/@react-types/card/package.json @@ -9,7 +9,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/virtualizer": "^4.3.1", + "@react-stately-nutrient/virtualizer": "^4.3.1", "@react-types/provider": "^3.8.7", "@react-types/shared": "^3.28.0" }, diff --git a/packages/@react-types/card/src/index.d.ts b/packages/@react-types/card/src/index.d.ts index 0c3cb1dae3b..4f71a0f67cd 100644 --- a/packages/@react-types/card/src/index.d.ts +++ b/packages/@react-types/card/src/index.d.ts @@ -11,7 +11,7 @@ */ import {AriaLabelingProps, AsyncLoadable, Collection, CollectionBase, Direction, DOMProps, KeyboardDelegate, LoadingState, MultipleSelection, Node, Orientation, StyleProps} from '@react-types/shared'; -import {Layout} from '@react-stately/virtualizer'; +import {Layout} from '@react-stately-nutrient/virtualizer'; import {ReactNode} from 'react'; import {Scale} from '@react-types/provider'; diff --git a/packages/@react-types/sidenav/package.json b/packages/@react-types/sidenav/package.json index 46e815247fe..531662ccdcb 100644 --- a/packages/@react-types/sidenav/package.json +++ b/packages/@react-types/sidenav/package.json @@ -10,7 +10,7 @@ "url": "https://github.com/adobe/react-spectrum" }, "dependencies": { - "@react-stately/virtualizer": "^4.0.0", + "@react-stately-nutrient/virtualizer": "^4.0.0", "@react-types/shared": "^3.1.0" }, "peerDependencies": { diff --git a/packages/dev/codemods/src/use-monopackages/README.md b/packages/dev/codemods/src/use-monopackages/README.md index f45bc449b90..9adf8626609 100644 --- a/packages/dev/codemods/src/use-monopackages/README.md +++ b/packages/dev/codemods/src/use-monopackages/README.md @@ -5,7 +5,7 @@ Replaces individual package imports with monopackage imports, where possible. Works for: - `@react-spectrum/*` -> `@adobe/react-spectrum`. - `@react-aria-nutrient/*` -> `react-aria`. -- `@react-stately/*` -> `react-stately`. +- `@react-stately-nutrient/*` -> `react-stately`. By default this will apply to all the above packages, or optionally you can specify which packages to apply this by passing a comma-separated list to the packages option: `--packages=react-aria,react-stately,react-spectrum`. diff --git a/packages/dev/codemods/src/use-monopackages/src/codemod.ts b/packages/dev/codemods/src/use-monopackages/src/codemod.ts index 061f132f3b0..baa614b2461 100644 --- a/packages/dev/codemods/src/use-monopackages/src/codemod.ts +++ b/packages/dev/codemods/src/use-monopackages/src/codemod.ts @@ -16,7 +16,7 @@ function areSpecifiersAlphabetized(specifiers: ImportSpecifier[]) { * Works for: * - `@react-spectrum/*` -> `@adobe/react-spectrum`. * - `@react-aria/*` -> `react-aria`. - * - `@react-stately/*` -> `react-stately`. + * - `@react-stately-nutrient/*` -> `react-stately`. * * By default this will apply to all the above packages, or optionally you can specify which packages to apply this by passing a comma-separated list to the packages option: `--packages=react-aria,react-stately,react-spectrum`. * @@ -37,7 +37,7 @@ export default function transformer(file: FileInfo, api: API, options: Options) }, 'react-stately': { monopackage: 'react-stately', - individualPrefix: '@react-stately/' + individualPrefix: '@react-stately-nutrient/' } }; diff --git a/packages/dev/docs/pages/blog/introducing-react-spectrum.mdx b/packages/dev/docs/pages/blog/introducing-react-spectrum.mdx index 290f1a287f1..1038b141b3f 100644 --- a/packages/dev/docs/pages/blog/introducing-react-spectrum.mdx +++ b/packages/dev/docs/pages/blog/introducing-react-spectrum.mdx @@ -27,7 +27,7 @@ import BulkEditUsers from '@spectrum-icons/workflow/BulkEditUsers'; import Draw from '@spectrum-icons/workflow/Draw'; import {useSwitch} from '@react-aria-nutrient/switch'; import {VisuallyHidden} from '@react-aria-nutrient/visually-hidden'; -import {useToggleState} from '@react-stately/toggle'; +import {useToggleState} from '@react-stately-nutrient/toggle'; import {useFocusRing} from '@react-aria-nutrient/focus'; ``` diff --git a/packages/dev/docs/pages/react-aria/collections.mdx b/packages/dev/docs/pages/react-aria/collections.mdx index 398fbe4f86e..d283d414984 100644 --- a/packages/dev/docs/pages/react-aria/collections.mdx +++ b/packages/dev/docs/pages/react-aria/collections.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import dataDocs from 'docs:@react-stately/data'; +import dataDocs from 'docs:@react-stately-nutrient/data'; import {HeaderInfo, TypeContext, InterfaceType, TypeLink} from '@react-spectrum/docs'; import {InlineAlert, Content, Heading} from '@adobe/react-spectrum'; @@ -156,7 +156,7 @@ state when they are removed from the list. See the [useListData](../react-statel The following example shows how you might append a new item to the list. ```tsx -import {useListData} from '@react-stately/data'; +import {useListData} from '@react-stately-nutrient/data'; let list = useListData({ initialItems: [ @@ -230,7 +230,7 @@ removing items from the selection when they are removed from the list. See the [useTreeData](../react-stately/useTreeData.html) docs for more details. ```tsx -import {useTreeData} from '@react-stately/data'; +import {useTreeData} from '@react-stately-nutrient/data'; let tree = useTreeData({ initialItems: [ @@ -284,7 +284,7 @@ to render. You can use whatever data fetching library you want, or the built-in This example fetches a list of Pokemon from an API and displays them in a Select. ```tsx -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; let list = useAsyncList({ async load({signal}) { diff --git a/packages/dev/docs/pages/react-aria/selection.mdx b/packages/dev/docs/pages/react-aria/selection.mdx index f0e275a3c74..be1e4a15038 100644 --- a/packages/dev/docs/pages/react-aria/selection.mdx +++ b/packages/dev/docs/pages/react-aria/selection.mdx @@ -10,7 +10,7 @@ governing permissions and limitations under the License. */} import {Layout} from '@react-spectrum/docs'; export default Layout; -import dataDocs from 'docs:@react-stately/data'; +import dataDocs from 'docs:@react-stately-nutrient/data'; import {HeaderInfo, PropTable, TypeLink} from '@react-spectrum/docs'; import {Keyboard} from '@react-spectrum/text'; diff --git a/packages/dev/docs/pages/react-stately/getting-started.mdx b/packages/dev/docs/pages/react-stately/getting-started.mdx index 664cbbaf8da..c3c04afabe6 100644 --- a/packages/dev/docs/pages/react-stately/getting-started.mdx +++ b/packages/dev/docs/pages/react-stately/getting-started.mdx @@ -43,7 +43,7 @@ install the hooks you use, or more granularly manage their versions. The individ under the [@react-stately](https://www.npmjs.com/org/react-stately) scope on npm. For example: ``` -yarn add @react-stately/radio +yarn add @react-stately-nutrient/radio ``` Once installed, hooks can be used from the monopackage or individual packages the same way. @@ -55,7 +55,7 @@ import {useRadioGroupState} from 'react-stately'; ```tsx keepIndividualImports // Individual packages -import {useRadioGroupState} from '@react-stately/radio'; +import {useRadioGroupState} from '@react-stately-nutrient/radio'; ``` ## Building a component @@ -66,7 +66,7 @@ selection state. The example shows [uncontrolled](https://reactjs.org/docs/uncon using the `defaultValue` prop, and `useRadioGroupState` handles firing the `onChange` event with the new selected value. ```tsx example -import {useRadioGroupState} from '@react-stately/radio'; +import {useRadioGroupState} from '@react-stately-nutrient/radio'; function RadioGroup(props) { let state = useRadioGroupState(props); diff --git a/packages/dev/docs/pages/releases/2020-07-23.mdx b/packages/dev/docs/pages/releases/2020-07-23.mdx index 1605b6494f6..a01511e3a8a 100644 --- a/packages/dev/docs/pages/releases/2020-07-23.mdx +++ b/packages/dev/docs/pages/releases/2020-07-23.mdx @@ -26,7 +26,7 @@ See below for details, as well as the package versions included in this release. - Replace `:hover` CSS pseudo class with [useHover](../../react-aria/useHover.html) hook across all components for improved touch/hybrid device support - [@so99ynoodles](https://github.com/so99ynoodles) - [PR](https://github.com/adobe/react-spectrum/pull/775) - Allow no props to be given to [useToggleState](../../react-stately/useToggleState.html) - [@Andarist](https://github.com/Andarist) - [PR](https://github.com/adobe/react-spectrum/pull/687) - Allow arbitrary number of prop objects to be passed to mergeProps - [@brookslybrand](https://github.com/brookslybrand) - [PR](https://github.com/adobe/react-spectrum/pull/776) -- Add [useSingleSelectListState](../../react-stately/useSingleSelectListState.html) hook to `@react-stately/list` - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/802) +- Add [useSingleSelectListState](../../react-stately/useSingleSelectListState.html) hook to `@react-stately-nutrient/list` - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/802) - Add active state to textfield for mobile - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/823) ## Fixed @@ -115,21 +115,21 @@ See below for details, as well as the package versions included in this release. - @react-spectrum/utils@3.1.0 - @react-spectrum/view@3.1.0 - @react-spectrum/well@3.1.0 -- @react-stately/collections@3.1.0 -- @react-stately/data@3.1.0 -- @react-stately/layout@3.1.0 -- @react-stately/list@3.1.0 -- @react-stately/menu@3.1.0 -- @react-stately/overlays@3.1.0 -- @react-stately/radio@3.1.0 -- @react-stately/searchfield@3.1.0 -- @react-stately/select@3.1.0 -- @react-stately/selection@3.1.0 -- @react-stately/table@3.0.0-alpha.5 -- @react-stately/toggle@3.1.0 -- @react-stately/tree@3.1.0 -- @react-stately/utils@3.1.0 -- @react-stately/virtualizer@3.1.0 +- @react-stately-nutrient/collections@3.1.0 +- @react-stately-nutrient/data@3.1.0 +- @react-stately-nutrient/layout@3.1.0 +- @react-stately-nutrient/list@3.1.0 +- @react-stately-nutrient/menu@3.1.0 +- @react-stately-nutrient/overlays@3.1.0 +- @react-stately-nutrient/radio@3.1.0 +- @react-stately-nutrient/searchfield@3.1.0 +- @react-stately-nutrient/select@3.1.0 +- @react-stately-nutrient/selection@3.1.0 +- @react-stately-nutrient/table@3.0.0-alpha.5 +- @react-stately-nutrient/toggle@3.1.0 +- @react-stately-nutrient/tree@3.1.0 +- @react-stately-nutrient/utils@3.1.0 +- @react-stately-nutrient/virtualizer@3.1.0 - @react-types/actiongroup@3.1.0 - @react-types/breadcrumbs@3.1.0 - @react-types/button@3.1.0 diff --git a/packages/dev/docs/pages/releases/2020-08-18.mdx b/packages/dev/docs/pages/releases/2020-08-18.mdx index 44ba3b11f48..f7729dc9a20 100644 --- a/packages/dev/docs/pages/releases/2020-08-18.mdx +++ b/packages/dev/docs/pages/releases/2020-08-18.mdx @@ -30,14 +30,14 @@ including ToggleButton, Slider, and Tabs! 😍 - **Tooltips** - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/843) - `@react-spectrum/tooltip` (alpha) - `@react-aria-nutrient/tooltip` (alpha) - - `@react-stately/tooltip` (alpha) + - `@react-stately-nutrient/tooltip` (alpha) - **Slider** - [@chungwu](https://github.com/chungwu) - [PR](https://github.com/adobe/react-spectrum/pull/809) - `@react-aria-nutrient/slider` (alpha) - - `@react-stately/slider` (alpha) + - `@react-stately-nutrient/slider` (alpha) - **Tabs** - [@so99ynoodles](https://github.com/so99ynoodles) - [PR](https://github.com/adobe/react-spectrum/pull/837) - `@react-spectrum/tabs` (alpha) - `@react-aria-nutrient/tabs` (alpha) - - `@react-stately/tabs` (alpha) + - `@react-stately-nutrient/tabs` (alpha) **Note:** Tooltips, Slider, and Tabs are available as alpha releases today, and will receive additional updates, documentation, and bugfixes before their stable release. Please feel free to test them out and [report any issues](https://github.com/adobe/react-spectrum/issues) you find. @@ -117,15 +117,15 @@ including ToggleButton, Slider, and Tabs! 😍 - @react-spectrum/textfield@3.1.1 - @react-spectrum/tooltip@3.0.0-alpha.0 - @react-spectrum/utils@3.2.0 -- @react-stately/collections@3.2.0 -- @react-stately/layout@3.1.1 -- @react-stately/list@3.2.0 -- @react-stately/menu@3.2.0 -- @react-stately/selection@3.2.0 -- @react-stately/slider@3.0.0-alpha.0 -- @react-stately/toggle@3.2.0 -- @react-stately/tooltip@3.0.0-alpha.0 -- @react-stately/tree@3.1.1 +- @react-stately-nutrient/collections@3.2.0 +- @react-stately-nutrient/layout@3.1.1 +- @react-stately-nutrient/list@3.2.0 +- @react-stately-nutrient/menu@3.2.0 +- @react-stately-nutrient/selection@3.2.0 +- @react-stately-nutrient/slider@3.0.0-alpha.0 +- @react-stately-nutrient/toggle@3.2.0 +- @react-stately-nutrient/tooltip@3.0.0-alpha.0 +- @react-stately-nutrient/tree@3.1.1 - @react-types/button@3.2.0 - @react-types/dialog@3.2.0 - @react-types/form@3.2.0 diff --git a/packages/dev/docs/pages/releases/2020-09-02.mdx b/packages/dev/docs/pages/releases/2020-09-02.mdx index e52ffa88b3d..7d4cdbf2edd 100644 --- a/packages/dev/docs/pages/releases/2020-09-02.mdx +++ b/packages/dev/docs/pages/releases/2020-09-02.mdx @@ -28,7 +28,7 @@ As always, a huge thank you to all our contributors for the new features, fixes - **CheckboxGroup** - [@Andarist](https://github.com/Andarist) - [PR](https://github.com/adobe/react-spectrum/pull/868) - [CheckboxGroup](../../react-spectrum/CheckboxGroup.html) component in `@react-spectrum/checkbox` - [useCheckboxGroup](../../react-aria/useCheckboxGroup.html) hook in `@react-aria-nutrient/checkbox` - - [useCheckboxGroupState](../../react-stately/useCheckboxGroupState.html) hook in `@react-stately/checkbox` + - [useCheckboxGroupState](../../react-stately/useCheckboxGroupState.html) hook in `@react-stately-nutrient/checkbox` - **SSRProvider** - [@devongovett](https://github.com/devongovett) - [PR](https://github.com/adobe/react-spectrum/pull/992) - [SSRProvider](../../react-aria/SSRProvider.html) component in `@react-aria-nutrient/ssr` - [useIsSSR](../../react-aria/useIsSSR.html) component in `@react-aria-nutrient/ssr` @@ -81,9 +81,9 @@ As always, a huge thank you to all our contributors for the new features, fixes - @react-spectrum/tabs@3.0.0-alpha.1 - @react-spectrum/textfield@3.1.2 - @react-spectrum/utils@3.2.1 - - @react-stately/checkbox@3.0.0 - - @react-stately/radio@3.2.0 - - @react-stately/slider@3.0.0-alpha.1 - - @react-stately/virtualizer@3.1.1 + - @react-stately-nutrient/checkbox@3.0.0 + - @react-stately-nutrient/radio@3.2.0 + - @react-stately-nutrient/slider@3.0.0-alpha.1 + - @react-stately-nutrient/virtualizer@3.1.1 - @react-types/checkbox@3.2.0 ``` diff --git a/packages/dev/docs/pages/releases/2020-10-01.mdx b/packages/dev/docs/pages/releases/2020-10-01.mdx index 3fa8f4dc755..8f0a2092218 100644 --- a/packages/dev/docs/pages/releases/2020-10-01.mdx +++ b/packages/dev/docs/pages/releases/2020-10-01.mdx @@ -36,7 +36,7 @@ Finally, make sure you check out the [last blog post](https://react-spectrum.ado - **Tooltip** - [@snowystinger](https://github.com/snowystinger) - [PR](https://github.com/adobe/react-spectrum/pull/843) - [documentation](https://react-spectrum.adobe.com/react-spectrum/Tooltip.html) - `@react-spectrum/tooltip` - `@react-aria-nutrient/tooltip` - - `@react-stately/tooltip` + - `@react-stately-nutrient/tooltip` ## New features @@ -139,24 +139,24 @@ Finally, make sure you check out the [last blog post](https://react-spectrum.ado - @react-spectrum/utils@3.3.0 - @react-spectrum/view@3.1.1 - @react-spectrum/well@3.1.1 - - @react-stately/checkbox@3.0.1 - - @react-stately/collections@3.2.1 - - @react-stately/data@3.1.1 - - @react-stately/layout@3.1.2 - - @react-stately/list@3.2.1 - - @react-stately/menu@3.2.1 - - @react-stately/overlays@3.1.1 - - @react-stately/radio@3.2.1 - - @react-stately/searchfield@3.1.1 - - @react-stately/select@3.1.1 - - @react-stately/selection@3.2.1 - - @react-stately/slider@3.0.0-alpha.2 - - @react-stately/table@3.0.0-alpha.6 - - @react-stately/toggle@3.2.1 - - @react-stately/tooltip@3.0.0 - - @react-stately/tree@3.1.2 - - @react-stately/utils@3.1.1 - - @react-stately/virtualizer@3.1.2 + - @react-stately-nutrient/checkbox@3.0.1 + - @react-stately-nutrient/collections@3.2.1 + - @react-stately-nutrient/data@3.1.1 + - @react-stately-nutrient/layout@3.1.2 + - @react-stately-nutrient/list@3.2.1 + - @react-stately-nutrient/menu@3.2.1 + - @react-stately-nutrient/overlays@3.1.1 + - @react-stately-nutrient/radio@3.2.1 + - @react-stately-nutrient/searchfield@3.1.1 + - @react-stately-nutrient/select@3.1.1 + - @react-stately-nutrient/selection@3.2.1 + - @react-stately-nutrient/slider@3.0.0-alpha.2 + - @react-stately-nutrient/table@3.0.0-alpha.6 + - @react-stately-nutrient/toggle@3.2.1 + - @react-stately-nutrient/tooltip@3.0.0 + - @react-stately-nutrient/tree@3.1.2 + - @react-stately-nutrient/utils@3.1.1 + - @react-stately-nutrient/virtualizer@3.1.2 - @react-types/actiongroup@3.1.1 - @react-types/breadcrumbs@3.1.1 - @react-types/button@3.2.1 diff --git a/packages/dev/docs/pages/releases/2020-10-29.mdx b/packages/dev/docs/pages/releases/2020-10-29.mdx index a89289b533b..f207bb7439b 100644 --- a/packages/dev/docs/pages/releases/2020-10-29.mdx +++ b/packages/dev/docs/pages/releases/2020-10-29.mdx @@ -61,10 +61,10 @@ Add links for Spectrum dimension values - [@filmaj](https://github.com/filmaj) - - @react-spectrum/slider@3.0.0-alpha.0 - @react-spectrum/table@3.0.0-alpha.8 - @react-spectrum/utils@3.4.0 - - @react-stately/layout@3.2.0 - - @react-stately/selection@3.3.0 - - @react-stately/slider@3.0.0-alpha.3 - - @react-stately/table@3.0.0-alpha.7 + - @react-stately-nutrient/layout@3.2.0 + - @react-stately-nutrient/selection@3.3.0 + - @react-stately-nutrient/slider@3.0.0-alpha.3 + - @react-stately-nutrient/table@3.0.0-alpha.7 - @react-types/overlays@3.3.0 - @react-types/provider@3.2.0 - @react-types/shared@3.3.0 diff --git a/packages/dev/docs/pages/releases/2020-11-30.mdx b/packages/dev/docs/pages/releases/2020-11-30.mdx index 5bec7c16e6d..72152ddb74c 100644 --- a/packages/dev/docs/pages/releases/2020-11-30.mdx +++ b/packages/dev/docs/pages/releases/2020-11-30.mdx @@ -86,12 +86,12 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/textfield@3.1.4 - @react-spectrum/tooltip@3.1.0 - @react-spectrum/utils@3.5.0 - - @react-stately/collections@3.3.0 - - @react-stately/combobox@3.0.0-alpha.0 - - @react-stately/data@3.1.2 - - @react-stately/list@3.2.2 - - @react-stately/tabs@3.0.0-alpha.0 - - @react-stately/tooltip@3.0.1 + - @react-stately-nutrient/collections@3.3.0 + - @react-stately-nutrient/combobox@3.0.0-alpha.0 + - @react-stately-nutrient/data@3.1.2 + - @react-stately-nutrient/list@3.2.2 + - @react-stately-nutrient/tabs@3.0.0-alpha.0 + - @react-stately-nutrient/tooltip@3.0.1 - @react-types/button@3.3.0 - @react-types/combobox@3.0.0-alpha.0 - @react-types/label@3.3.0 diff --git a/packages/dev/docs/pages/releases/2020-12-22.mdx b/packages/dev/docs/pages/releases/2020-12-22.mdx index 2e00556c63d..6605f0a4aaf 100644 --- a/packages/dev/docs/pages/releases/2020-12-22.mdx +++ b/packages/dev/docs/pages/releases/2020-12-22.mdx @@ -24,7 +24,7 @@ From the whole team, be safe and we will see you next year! - **Slider** - `@react-spectrum/slider` - `@react-aria-nutrient/slider` - - `@react-stately/slider` + - `@react-stately-nutrient/slider` ## Updated - Update `useBreadcrumbItem` type - [@stefanprobst](https://github.com/stefanprobst) - [PR](https://github.com/adobe/react-spectrum/pull/1317) @@ -38,7 +38,7 @@ From the whole team, be safe and we will see you next year! - @react-aria-nutrient/slider@3.0.0 - @react-aria-nutrient/utils@3.5.0 - @react-spectrum/slider@3.0.0 - - @react-stately/slider@3.0.0 + - @react-stately-nutrient/slider@3.0.0 - @react-types/breadcrumbs@3.2.0 - @react-types/slider@3.0.0 - react-aria@3.3.0 diff --git a/packages/dev/docs/pages/releases/2021-02-17.mdx b/packages/dev/docs/pages/releases/2021-02-17.mdx index 156f39e95d2..56bd22fdcc4 100644 --- a/packages/dev/docs/pages/releases/2021-02-17.mdx +++ b/packages/dev/docs/pages/releases/2021-02-17.mdx @@ -118,15 +118,15 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/textfield@3.1.5 - @react-spectrum/tooltip@3.1.1 - @react-spectrum/utils@3.5.1 -- @react-stately/color@3.0.0-alpha.0 -- @react-stately/combobox@3.0.0-alpha.1 -- @react-stately/data@3.2.0 -- @react-stately/numberfield@3.0.0-alpha.0 -- @react-stately/radio@3.3.0 -- @react-stately/slider@3.0.1 -- @react-stately/tabs@3.0.0-alpha.1 -- @react-stately/tooltip@3.0.2 -- @react-stately/utils@3.2.0 +- @react-stately-nutrient/color@3.0.0-alpha.0 +- @react-stately-nutrient/combobox@3.0.0-alpha.1 +- @react-stately-nutrient/data@3.2.0 +- @react-stately-nutrient/numberfield@3.0.0-alpha.0 +- @react-stately-nutrient/radio@3.3.0 +- @react-stately-nutrient/slider@3.0.1 +- @react-stately-nutrient/tabs@3.0.0-alpha.1 +- @react-stately-nutrient/tooltip@3.0.2 +- @react-stately-nutrient/utils@3.2.0 - @react-types/button@3.3.1 - @react-types/checkbox@3.2.2 - @react-types/color@3.0.0-alpha.0 diff --git a/packages/dev/docs/pages/releases/2021-03-24.mdx b/packages/dev/docs/pages/releases/2021-03-24.mdx index a6153b5848a..648cc0c1a58 100644 --- a/packages/dev/docs/pages/releases/2021-03-24.mdx +++ b/packages/dev/docs/pages/releases/2021-03-24.mdx @@ -137,20 +137,20 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/theme-default@3.2.0 - @react-spectrum/theme-light@3.1.0 - @react-spectrum/tooltip@3.1.2 -- @react-stately/collections@3.3.1 -- @react-stately/color@3.0.0-beta.0 -- @react-stately/combobox@3.0.0-beta.0 -- @react-stately/data@3.3.0 -- @react-stately/dnd@3.0.0-alpha.0 -- @react-stately/grid@3.0.0-alpha.0 -- @react-stately/layout@3.2.1 -- @react-stately/numberfield@3.0.0-rc.0 -- @react-stately/selection@3.4.0 -- @react-stately/table@3.0.0-alpha.8 -- @react-stately/tabs@3.0.0-beta.0 -- @react-stately/tooltip@3.0.3 -- @react-stately/tree@3.1.3 -- @react-stately/virtualizer@3.1.3 +- @react-stately-nutrient/collections@3.3.1 +- @react-stately-nutrient/color@3.0.0-beta.0 +- @react-stately-nutrient/combobox@3.0.0-beta.0 +- @react-stately-nutrient/data@3.3.0 +- @react-stately-nutrient/dnd@3.0.0-alpha.0 +- @react-stately-nutrient/grid@3.0.0-alpha.0 +- @react-stately-nutrient/layout@3.2.1 +- @react-stately-nutrient/numberfield@3.0.0-rc.0 +- @react-stately-nutrient/selection@3.4.0 +- @react-stately-nutrient/table@3.0.0-alpha.8 +- @react-stately-nutrient/tabs@3.0.0-beta.0 +- @react-stately-nutrient/tooltip@3.0.3 +- @react-stately-nutrient/tree@3.1.3 +- @react-stately-nutrient/virtualizer@3.1.3 - @react-types/accordion@3.0.0-alpha.0 - @react-types/color@3.0.0-beta.0 - @react-types/combobox@3.0.0-beta.0 diff --git a/packages/dev/docs/pages/releases/2021-05-05.mdx b/packages/dev/docs/pages/releases/2021-05-05.mdx index 7c2c4dae9b1..80750c01dc0 100644 --- a/packages/dev/docs/pages/releases/2021-05-05.mdx +++ b/packages/dev/docs/pages/releases/2021-05-05.mdx @@ -26,7 +26,7 @@ Thank you to all our contributors for their help with this release. - **NumberField** - `@react-spectrum/numberfield` - [Docs](https://react-spectrum.adobe.com/react-spectrum/NumberField.html) - `@react-aria-nutrient/numberfield` - [Docs](https://react-spectrum.adobe.com/react-aria/useNumberField.html) - - `@react-stately/numberfield` - [Docs](https://react-spectrum.adobe.com/react-stately/useNumberFieldState.html) + - `@react-stately-nutrient/numberfield` - [Docs](https://react-spectrum.adobe.com/react-stately/useNumberFieldState.html) ## New features @@ -170,30 +170,30 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/utils@3.5.2 - @react-spectrum/view@3.1.2 - @react-spectrum/well@3.1.2 -- @react-stately/checkbox@3.0.2 -- @react-stately/collections@3.3.2 -- @react-stately/color@3.0.0-beta.2 -- @react-stately/combobox@3.0.0-beta.1 -- @react-stately/data@3.4.0 -- @react-stately/dnd@3.0.0-alpha.1 -- @react-stately/grid@3.0.0-alpha.2 -- @react-stately/layout@3.2.2 -- @react-stately/list@3.2.3 -- @react-stately/menu@3.2.2 -- @react-stately/numberfield@3.0.0 -- @react-stately/overlays@3.1.2 -- @react-stately/radio@3.3.1 -- @react-stately/searchfield@3.1.2 -- @react-stately/select@3.1.2 -- @react-stately/selection@3.5.0 -- @react-stately/slider@3.0.2 -- @react-stately/table@3.0.0-alpha.10 -- @react-stately/tabs@3.0.0-rc.0 -- @react-stately/toggle@3.2.2 -- @react-stately/tooltip@3.0.4 -- @react-stately/tree@3.1.4 -- @react-stately/utils@3.2.1 -- @react-stately/virtualizer@3.1.4 +- @react-stately-nutrient/checkbox@3.0.2 +- @react-stately-nutrient/collections@3.3.2 +- @react-stately-nutrient/color@3.0.0-beta.2 +- @react-stately-nutrient/combobox@3.0.0-beta.1 +- @react-stately-nutrient/data@3.4.0 +- @react-stately-nutrient/dnd@3.0.0-alpha.1 +- @react-stately-nutrient/grid@3.0.0-alpha.2 +- @react-stately-nutrient/layout@3.2.2 +- @react-stately-nutrient/list@3.2.3 +- @react-stately-nutrient/menu@3.2.2 +- @react-stately-nutrient/numberfield@3.0.0 +- @react-stately-nutrient/overlays@3.1.2 +- @react-stately-nutrient/radio@3.3.1 +- @react-stately-nutrient/searchfield@3.1.2 +- @react-stately-nutrient/select@3.1.2 +- @react-stately-nutrient/selection@3.5.0 +- @react-stately-nutrient/slider@3.0.2 +- @react-stately-nutrient/table@3.0.0-alpha.10 +- @react-stately-nutrient/tabs@3.0.0-rc.0 +- @react-stately-nutrient/toggle@3.2.2 +- @react-stately-nutrient/tooltip@3.0.4 +- @react-stately-nutrient/tree@3.1.4 +- @react-stately-nutrient/utils@3.2.1 +- @react-stately-nutrient/virtualizer@3.1.4 - @react-types/combobox@3.0.0-beta.1 - @react-types/link@3.1.2 - @react-types/numberfield@3.0.0 diff --git a/packages/dev/docs/pages/releases/2021-06-15.mdx b/packages/dev/docs/pages/releases/2021-06-15.mdx index cc98e031125..ad36d91b580 100644 --- a/packages/dev/docs/pages/releases/2021-06-15.mdx +++ b/packages/dev/docs/pages/releases/2021-06-15.mdx @@ -31,7 +31,7 @@ Thank you to all our contributors for their support! 🤩 - **Tabs** - `@react-spectrum/tabs` - [Docs](https://react-spectrum.adobe.com/react-spectrum/Tabs.html) - `@react-aria-nutrient/tabs` - [Docs](https://react-spectrum.adobe.com/react-aria/useTabList.html) - - `@react-stately/tabs` - [Docs](https://react-spectrum.adobe.com/react-stately/useTabListState.html) + - `@react-stately-nutrient/tabs` - [Docs](https://react-spectrum.adobe.com/react-stately/useTabListState.html) ## New features - Add support for responsive style props - [@so99ynoodles](https://github.com/so99ynoodles) - [PR](https://github.com/adobe/react-spectrum/pull/1684) - [Docs](https://react-spectrum.adobe.com/react-spectrum/layout.html#responsive-layout) @@ -117,13 +117,13 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/table => 3.0.0-beta.0 - @react-spectrum/tabs => 3.0.0 - @react-spectrum/utils => 3.6.0 -- @react-stately/combobox => 3.0.0-rc.0 -- @react-stately/grid => 3.0.0-beta.0 -- @react-stately/layout => 3.3.0 -- @react-stately/numberfield => 3.0.1 -- @react-stately/selection => 3.6.0 -- @react-stately/table => 3.0.0-beta.0 -- @react-stately/tabs => 3.0.0 +- @react-stately-nutrient/combobox => 3.0.0-rc.0 +- @react-stately-nutrient/grid => 3.0.0-beta.0 +- @react-stately-nutrient/layout => 3.3.0 +- @react-stately-nutrient/numberfield => 3.0.1 +- @react-stately-nutrient/selection => 3.6.0 +- @react-stately-nutrient/table => 3.0.0-beta.0 +- @react-stately-nutrient/tabs => 3.0.0 - @react-types/actionbar => 3.0.0-alpha.0 - @react-types/actiongroup => 3.2.0 - @react-types/button => 3.4.0 diff --git a/packages/dev/docs/pages/releases/2021-07-12.mdx b/packages/dev/docs/pages/releases/2021-07-12.mdx index 7d2458a1a2a..37e67e450fc 100644 --- a/packages/dev/docs/pages/releases/2021-07-12.mdx +++ b/packages/dev/docs/pages/releases/2021-07-12.mdx @@ -29,7 +29,7 @@ After many months of research, development, and extensive testing across browser - **ComboBox** - `@react-spectrum/combobox` - [Docs](https://react-spectrum.adobe.com/react-spectrum/ComboBox.html) - `@react-aria-nutrient/combobox` - [Docs](https://react-spectrum.adobe.com/react-aria/useComboBox.html) - - `@react-stately/combobox` - [Docs](https://react-spectrum.adobe.com/react-stately/useComboBoxState.html) + - `@react-stately-nutrient/combobox` - [Docs](https://react-spectrum.adobe.com/react-stately/useComboBoxState.html) ## Released packages @@ -44,7 +44,7 @@ After many months of research, development, and extensive testing across browser - @react-spectrum/combobox@3.0.0 - @react-spectrum/listbox@3.5.0 - @react-spectrum/picker@3.3.0 -- @react-stately/combobox@3.0.0 +- @react-stately-nutrient/combobox@3.0.0 - @react-types/combobox@3.0.0 - @react-types/listbox@3.2.0 - @react-types/select@3.3.0 diff --git a/packages/dev/docs/pages/releases/2021-08-04.mdx b/packages/dev/docs/pages/releases/2021-08-04.mdx index d3f7fe13068..6a543e87f62 100644 --- a/packages/dev/docs/pages/releases/2021-08-04.mdx +++ b/packages/dev/docs/pages/releases/2021-08-04.mdx @@ -156,30 +156,30 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/utils => 3.6.2 - @react-spectrum/view => 3.1.3 - @react-spectrum/well => 3.1.3 -- @react-stately/checkbox => 3.0.3 -- @react-stately/collections => 3.3.3 -- @react-stately/color => 3.0.0-beta.3 -- @react-stately/combobox => 3.0.1 -- @react-stately/data => 3.4.1 -- @react-stately/dnd => 3.0.0-alpha.2 -- @react-stately/grid => 3.0.0-rc.0 -- @react-stately/layout => 3.4.0 -- @react-stately/list => 3.3.0 -- @react-stately/menu => 3.2.3 -- @react-stately/numberfield => 3.0.2 -- @react-stately/overlays => 3.1.3 -- @react-stately/radio => 3.3.2 -- @react-stately/searchfield => 3.1.3 -- @react-stately/select => 3.1.3 -- @react-stately/selection => 3.7.0 -- @react-stately/slider => 3.0.3 -- @react-stately/table => 3.0.0-rc.0 -- @react-stately/tabs => 3.0.1 -- @react-stately/toggle => 3.2.3 -- @react-stately/tooltip => 3.0.5 -- @react-stately/tree => 3.2.0 -- @react-stately/utils => 3.2.2 -- @react-stately/virtualizer => 3.1.5 +- @react-stately-nutrient/checkbox => 3.0.3 +- @react-stately-nutrient/collections => 3.3.3 +- @react-stately-nutrient/color => 3.0.0-beta.3 +- @react-stately-nutrient/combobox => 3.0.1 +- @react-stately-nutrient/data => 3.4.1 +- @react-stately-nutrient/dnd => 3.0.0-alpha.2 +- @react-stately-nutrient/grid => 3.0.0-rc.0 +- @react-stately-nutrient/layout => 3.4.0 +- @react-stately-nutrient/list => 3.3.0 +- @react-stately-nutrient/menu => 3.2.3 +- @react-stately-nutrient/numberfield => 3.0.2 +- @react-stately-nutrient/overlays => 3.1.3 +- @react-stately-nutrient/radio => 3.3.2 +- @react-stately-nutrient/searchfield => 3.1.3 +- @react-stately-nutrient/select => 3.1.3 +- @react-stately-nutrient/selection => 3.7.0 +- @react-stately-nutrient/slider => 3.0.3 +- @react-stately-nutrient/table => 3.0.0-rc.0 +- @react-stately-nutrient/tabs => 3.0.1 +- @react-stately-nutrient/toggle => 3.2.3 +- @react-stately-nutrient/tooltip => 3.0.5 +- @react-stately-nutrient/tree => 3.2.0 +- @react-stately-nutrient/utils => 3.2.2 +- @react-stately-nutrient/virtualizer => 3.1.5 - @react-types/accordion => 3.0.0-alpha.1 - @react-types/actionbar => 3.0.0-alpha.1 - @react-types/actiongroup => 3.2.1 diff --git a/packages/dev/docs/pages/releases/2021-09-13.mdx b/packages/dev/docs/pages/releases/2021-09-13.mdx index a433f922551..ce9e3b1ebc9 100644 --- a/packages/dev/docs/pages/releases/2021-09-13.mdx +++ b/packages/dev/docs/pages/releases/2021-09-13.mdx @@ -28,7 +28,7 @@ Plenty of other new features, bug fixes and updates to our documentation in the - **TableView** - `@react-spectrum/table` - [Docs](https://react-spectrum.adobe.com/react-spectrum/TableView.html) - `@react-aria-nutrient/table` - [Docs](https://react-spectrum.adobe.com/react-aria/useTable.html) - - `@react-stately/table` - [Docs](https://react-spectrum.adobe.com/react-stately/useTableState.html) + - `@react-stately-nutrient/table` - [Docs](https://react-spectrum.adobe.com/react-stately/useTableState.html) ## New features - Add `altKey` modifier to `usePress` hook events - [@jeroenwienk](https://github.com/jeroenwienk) - [PR](https://github.com/adobe/react-spectrum/pull/2240) @@ -107,11 +107,11 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/searchfield@3.2.0 - @react-spectrum/table@3.0.0 - @react-spectrum/textfield@3.2.0 -- @react-stately/color@3.0.0-beta.4 -- @react-stately/data@3.4.2 -- @react-stately/grid@3.0.0 -- @react-stately/layout@3.4.2 -- @react-stately/table@3.0.0 +- @react-stately-nutrient/color@3.0.0-beta.4 +- @react-stately-nutrient/data@3.4.2 +- @react-stately-nutrient/grid@3.0.0 +- @react-stately-nutrient/layout@3.4.2 +- @react-stately-nutrient/table@3.0.0 - @react-types/color@3.0.0-beta.3 - @react-types/combobox@3.1.0 - @react-types/grid@3.0.0 diff --git a/packages/dev/docs/pages/releases/2021-11-24.mdx b/packages/dev/docs/pages/releases/2021-11-24.mdx index cbd1ff06a10..fc16ea10544 100644 --- a/packages/dev/docs/pages/releases/2021-11-24.mdx +++ b/packages/dev/docs/pages/releases/2021-11-24.mdx @@ -137,16 +137,16 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/tabs@3.1.0 - @react-spectrum/textfield@3.3.0 - @react-spectrum/utils@3.6.3 -- @react-stately/calendar@3.0.0-alpha.0 -- @react-stately/color@3.0.0-beta.5 -- @react-stately/data@3.4.3 -- @react-stately/datepicker@3.0.0-alpha.0 -- @react-stately/grid@3.1.0 -- @react-stately/list@3.4.0 -- @react-stately/selection@3.8.0 -- @react-stately/table@3.1.0 -- @react-stately/utils@3.3.0 -- @react-stately/virtualizer@3.1.6 +- @react-stately-nutrient/calendar@3.0.0-alpha.0 +- @react-stately-nutrient/color@3.0.0-beta.5 +- @react-stately-nutrient/data@3.4.3 +- @react-stately-nutrient/datepicker@3.0.0-alpha.0 +- @react-stately-nutrient/grid@3.1.0 +- @react-stately-nutrient/list@3.4.0 +- @react-stately-nutrient/selection@3.8.0 +- @react-stately-nutrient/table@3.1.0 +- @react-stately-nutrient/utils@3.3.0 +- @react-stately-nutrient/virtualizer@3.1.6 - @react-types/calendar@3.0.0-alpha.0 - @react-types/card@3.0.0-alpha.1 - @react-types/combobox@3.2.0 diff --git a/packages/dev/docs/pages/releases/2021-12-16.mdx b/packages/dev/docs/pages/releases/2021-12-16.mdx index 700e993847d..29138e118e7 100644 --- a/packages/dev/docs/pages/releases/2021-12-16.mdx +++ b/packages/dev/docs/pages/releases/2021-12-16.mdx @@ -76,8 +76,8 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/list => 3.0.0-alpha.5 - @react-spectrum/table => 3.1.1 - @react-spectrum/tabs => 3.1.1 -- @react-stately/list => 3.4.1 -- @react-stately/selection => 3.9.0 +- @react-stately-nutrient/list => 3.4.1 +- @react-stately-nutrient/selection => 3.9.0 - @react-types/combobox => 3.2.1 - @react-types/select => 3.5.1 - @react-types/shared => 3.10.1 diff --git a/packages/dev/docs/pages/releases/2022-02-15.mdx b/packages/dev/docs/pages/releases/2022-02-15.mdx index b5edc8e6d8e..7ccf75a664f 100644 --- a/packages/dev/docs/pages/releases/2022-02-15.mdx +++ b/packages/dev/docs/pages/releases/2022-02-15.mdx @@ -173,32 +173,32 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/utils@3.6.4 - @react-spectrum/view@3.1.4 - @react-spectrum/well@3.1.4 -- @react-stately/calendar@3.0.0-alpha.2 -- @react-stately/checkbox@3.0.4 -- @react-stately/collections@3.3.5 -- @react-stately/color@3.0.0-beta.6 -- @react-stately/combobox@3.0.2 -- @react-stately/data@3.4.4 -- @react-stately/datepicker@3.0.0-alpha.2 -- @react-stately/dnd@3.0.0-alpha.3 -- @react-stately/grid@3.1.1 -- @react-stately/layout@3.4.3 -- @react-stately/list@3.4.2 -- @react-stately/menu@3.2.4 -- @react-stately/numberfield@3.0.3 -- @react-stately/overlays@3.1.4 -- @react-stately/radio@3.3.3 -- @react-stately/searchfield@3.1.4 -- @react-stately/select@3.1.4 -- @react-stately/selection@3.9.1 -- @react-stately/slider@3.0.4 -- @react-stately/table@3.1.1 -- @react-stately/tabs@3.0.2 -- @react-stately/toggle@3.2.4 -- @react-stately/tooltip@3.0.6 -- @react-stately/tree@3.2.1 -- @react-stately/utils@3.4.0 -- @react-stately/virtualizer@3.1.7-alpha.0 +- @react-stately-nutrient/calendar@3.0.0-alpha.2 +- @react-stately-nutrient/checkbox@3.0.4 +- @react-stately-nutrient/collections@3.3.5 +- @react-stately-nutrient/color@3.0.0-beta.6 +- @react-stately-nutrient/combobox@3.0.2 +- @react-stately-nutrient/data@3.4.4 +- @react-stately-nutrient/datepicker@3.0.0-alpha.2 +- @react-stately-nutrient/dnd@3.0.0-alpha.3 +- @react-stately-nutrient/grid@3.1.1 +- @react-stately-nutrient/layout@3.4.3 +- @react-stately-nutrient/list@3.4.2 +- @react-stately-nutrient/menu@3.2.4 +- @react-stately-nutrient/numberfield@3.0.3 +- @react-stately-nutrient/overlays@3.1.4 +- @react-stately-nutrient/radio@3.3.3 +- @react-stately-nutrient/searchfield@3.1.4 +- @react-stately-nutrient/select@3.1.4 +- @react-stately-nutrient/selection@3.9.1 +- @react-stately-nutrient/slider@3.0.4 +- @react-stately-nutrient/table@3.1.1 +- @react-stately-nutrient/tabs@3.0.2 +- @react-stately-nutrient/toggle@3.2.4 +- @react-stately-nutrient/tooltip@3.0.6 +- @react-stately-nutrient/tree@3.2.1 +- @react-stately-nutrient/utils@3.4.0 +- @react-stately-nutrient/virtualizer@3.1.7-alpha.0 - @react-types/accordion@3.0.0-alpha.2 - @react-types/actionbar@3.0.0-alpha.2 - @react-types/actiongroup@3.2.2 diff --git a/packages/dev/docs/pages/releases/2022-03-07.mdx b/packages/dev/docs/pages/releases/2022-03-07.mdx index b70be2e3e93..467a09f974e 100644 --- a/packages/dev/docs/pages/releases/2022-03-07.mdx +++ b/packages/dev/docs/pages/releases/2022-03-07.mdx @@ -148,29 +148,29 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/utils@3.6.6 - @react-spectrum/view@3.1.6 - @react-spectrum/well@3.1.6 -- @react-stately/checkbox@3.0.6 -- @react-stately/collections@3.3.7 -- @react-stately/color@3.0.0-beta.8 -- @react-stately/combobox@3.0.4 -- @react-stately/data@3.4.6 -- @react-stately/dnd@3.0.0-alpha.5 -- @react-stately/grid@3.1.3 -- @react-stately/layout@3.4.5 -- @react-stately/list@3.4.4 -- @react-stately/menu@3.2.6 -- @react-stately/numberfield@3.0.5 -- @react-stately/overlays@3.1.6 -- @react-stately/radio@3.3.5 -- @react-stately/searchfield@3.1.6 -- @react-stately/select@3.1.6 -- @react-stately/selection@3.9.3 -- @react-stately/slider@3.0.6 -- @react-stately/table@3.1.3 -- @react-stately/tabs@3.0.4 -- @react-stately/toggle@3.2.6 -- @react-stately/tooltip@3.0.8 -- @react-stately/tree@3.2.3 -- @react-stately/virtualizer@3.1.8 +- @react-stately-nutrient/checkbox@3.0.6 +- @react-stately-nutrient/collections@3.3.7 +- @react-stately-nutrient/color@3.0.0-beta.8 +- @react-stately-nutrient/combobox@3.0.4 +- @react-stately-nutrient/data@3.4.6 +- @react-stately-nutrient/dnd@3.0.0-alpha.5 +- @react-stately-nutrient/grid@3.1.3 +- @react-stately-nutrient/layout@3.4.5 +- @react-stately-nutrient/list@3.4.4 +- @react-stately-nutrient/menu@3.2.6 +- @react-stately-nutrient/numberfield@3.0.5 +- @react-stately-nutrient/overlays@3.1.6 +- @react-stately-nutrient/radio@3.3.5 +- @react-stately-nutrient/searchfield@3.1.6 +- @react-stately-nutrient/select@3.1.6 +- @react-stately-nutrient/selection@3.9.3 +- @react-stately-nutrient/slider@3.0.6 +- @react-stately-nutrient/table@3.1.3 +- @react-stately-nutrient/tabs@3.0.4 +- @react-stately-nutrient/toggle@3.2.6 +- @react-stately-nutrient/tooltip@3.0.8 +- @react-stately-nutrient/tree@3.2.3 +- @react-stately-nutrient/virtualizer@3.1.8 - @react-types/accordion@3.0.0-alpha.4 - @react-types/actionbar@3.0.0-alpha.4 - @react-types/actiongroup@3.2.4 diff --git a/packages/dev/docs/pages/releases/2022-03-21.mdx b/packages/dev/docs/pages/releases/2022-03-21.mdx index b09e8f508e3..0de88317b72 100644 --- a/packages/dev/docs/pages/releases/2022-03-21.mdx +++ b/packages/dev/docs/pages/releases/2022-03-21.mdx @@ -121,11 +121,11 @@ Updates to pre-released components listed below. Please feel free to try them ou - @react-spectrum/utils@3.6.7 - @react-spectrum/view@3.1.7 - @react-spectrum/well@3.1.7 -- @react-stately/calendar@3.0.0-alpha.4 -- @react-stately/color@3.0.0-beta.9 -- @react-stately/datepicker@3.0.0-alpha.4 -- @react-stately/numberfield@3.0.6 -- @react-stately/slider@3.0.7 +- @react-stately-nutrient/calendar@3.0.0-alpha.4 +- @react-stately-nutrient/color@3.0.0-beta.9 +- @react-stately-nutrient/datepicker@3.0.0-alpha.4 +- @react-stately-nutrient/numberfield@3.0.6 +- @react-stately-nutrient/slider@3.0.7 - @react-types/calendar@3.0.0-alpha.4 - @react-types/color@3.0.0-beta.7 - @react-types/datepicker@3.0.0-alpha.4 diff --git a/packages/dev/docs/pages/releases/2022-05-03.mdx b/packages/dev/docs/pages/releases/2022-05-03.mdx index a57aa23a60f..0f6c6123fd1 100644 --- a/packages/dev/docs/pages/releases/2022-05-03.mdx +++ b/packages/dev/docs/pages/releases/2022-05-03.mdx @@ -146,29 +146,29 @@ Pre-release versions of the following components have been released. Please feel - @react-spectrum/utils@3.6.8 - @react-spectrum/view@3.1.8 - @react-spectrum/well@3.1.8 -- @react-stately/calendar@3.0.0-rc.0 -- @react-stately/checkbox@3.0.7 -- @react-stately/collections@3.3.8 -- @react-stately/color@3.0.0-beta.10 -- @react-stately/combobox@3.0.5 -- @react-stately/data@3.4.7 -- @react-stately/datepicker@3.0.0-rc.0 -- @react-stately/dnd@3.0.0-alpha.6 -- @react-stately/grid@3.1.4 -- @react-stately/list@3.4.5 -- @react-stately/menu@3.2.7 -- @react-stately/numberfield@3.0.7 -- @react-stately/overlays@3.2.0 -- @react-stately/radio@3.3.6 -- @react-stately/searchfield@3.1.7 -- @react-stately/select@3.1.7 -- @react-stately/selection@3.9.4 -- @react-stately/slider@3.0.8 -- @react-stately/tabs@3.0.5 -- @react-stately/toggle@3.2.7 -- @react-stately/tooltip@3.0.9 -- @react-stately/tree@3.2.4 -- @react-stately/virtualizer@3.1.9 +- @react-stately-nutrient/calendar@3.0.0-rc.0 +- @react-stately-nutrient/checkbox@3.0.7 +- @react-stately-nutrient/collections@3.3.8 +- @react-stately-nutrient/color@3.0.0-beta.10 +- @react-stately-nutrient/combobox@3.0.5 +- @react-stately-nutrient/data@3.4.7 +- @react-stately-nutrient/datepicker@3.0.0-rc.0 +- @react-stately-nutrient/dnd@3.0.0-alpha.6 +- @react-stately-nutrient/grid@3.1.4 +- @react-stately-nutrient/list@3.4.5 +- @react-stately-nutrient/menu@3.2.7 +- @react-stately-nutrient/numberfield@3.0.7 +- @react-stately-nutrient/overlays@3.2.0 +- @react-stately-nutrient/radio@3.3.6 +- @react-stately-nutrient/searchfield@3.1.7 +- @react-stately-nutrient/select@3.1.7 +- @react-stately-nutrient/selection@3.9.4 +- @react-stately-nutrient/slider@3.0.8 +- @react-stately-nutrient/tabs@3.0.5 +- @react-stately-nutrient/toggle@3.2.7 +- @react-stately-nutrient/tooltip@3.0.9 +- @react-stately-nutrient/tree@3.2.4 +- @react-stately-nutrient/virtualizer@3.1.9 - @react-types/accordion@3.0.0-alpha.5 - @react-types/actionbar@3.0.0-alpha.5 - @react-types/actiongroup@3.2.5 diff --git a/packages/dev/docs/pages/releases/2022-05-27.mdx b/packages/dev/docs/pages/releases/2022-05-27.mdx index 102db1dbbf3..fe03a90ff86 100644 --- a/packages/dev/docs/pages/releases/2022-05-27.mdx +++ b/packages/dev/docs/pages/releases/2022-05-27.mdx @@ -166,32 +166,32 @@ Various icons were updated, including changes to `Circle` which is now `CircleFi - @react-spectrum/utils@3.7.0 - @react-spectrum/view@3.2.0 - @react-spectrum/well@3.2.0 - - @react-stately/calendar@3.0.0-rc.1 - - @react-stately/checkbox@3.1.0 - - @react-stately/collections@3.4.0 - - @react-stately/color@3.0.0-beta.11 - - @react-stately/combobox@3.1.0 - - @react-stately/data@3.5.0 - - @react-stately/datepicker@3.0.0-rc.1 - - @react-stately/dnd@3.0.0-alpha.7 - - @react-stately/grid@3.2.0 - - @react-stately/layout@3.5.0 - - @react-stately/list@3.5.0 - - @react-stately/menu@3.3.0 - - @react-stately/numberfield@3.1.0 - - @react-stately/overlays@3.3.0 - - @react-stately/radio@3.4.0 - - @react-stately/searchfield@3.2.0 - - @react-stately/select@3.2.0 - - @react-stately/selection@3.10.0 - - @react-stately/slider@3.1.0 - - @react-stately/table@3.2.0 - - @react-stately/tabs@3.1.0 - - @react-stately/toggle@3.3.0 - - @react-stately/tooltip@3.1.0 - - @react-stately/tree@3.3.0 - - @react-stately/utils@3.5.0 - - @react-stately/virtualizer@3.2.0 + - @react-stately-nutrient/calendar@3.0.0-rc.1 + - @react-stately-nutrient/checkbox@3.1.0 + - @react-stately-nutrient/collections@3.4.0 + - @react-stately-nutrient/color@3.0.0-beta.11 + - @react-stately-nutrient/combobox@3.1.0 + - @react-stately-nutrient/data@3.5.0 + - @react-stately-nutrient/datepicker@3.0.0-rc.1 + - @react-stately-nutrient/dnd@3.0.0-alpha.7 + - @react-stately-nutrient/grid@3.2.0 + - @react-stately-nutrient/layout@3.5.0 + - @react-stately-nutrient/list@3.5.0 + - @react-stately-nutrient/menu@3.3.0 + - @react-stately-nutrient/numberfield@3.1.0 + - @react-stately-nutrient/overlays@3.3.0 + - @react-stately-nutrient/radio@3.4.0 + - @react-stately-nutrient/searchfield@3.2.0 + - @react-stately-nutrient/select@3.2.0 + - @react-stately-nutrient/selection@3.10.0 + - @react-stately-nutrient/slider@3.1.0 + - @react-stately-nutrient/table@3.2.0 + - @react-stately-nutrient/tabs@3.1.0 + - @react-stately-nutrient/toggle@3.3.0 + - @react-stately-nutrient/tooltip@3.1.0 + - @react-stately-nutrient/tree@3.3.0 + - @react-stately-nutrient/utils@3.5.0 + - @react-stately-nutrient/virtualizer@3.2.0 - @react-types/accordion@3.0.0-alpha.6 - @react-types/actionbar@3.0.0-alpha.6 - @react-types/actiongroup@3.3.0 diff --git a/packages/dev/docs/pages/releases/2022-06-15.mdx b/packages/dev/docs/pages/releases/2022-06-15.mdx index e44f2fe5117..1abd4e3dc6a 100644 --- a/packages/dev/docs/pages/releases/2022-06-15.mdx +++ b/packages/dev/docs/pages/releases/2022-06-15.mdx @@ -165,29 +165,29 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.7.1 - @react-spectrum/view@3.2.1 - @react-spectrum/well@3.2.1 -- @react-stately/calendar@3.0.0 -- @react-stately/checkbox@3.1.1 -- @react-stately/collections@3.4.1 -- @react-stately/color@3.0.0 -- @react-stately/combobox@3.1.1 -- @react-stately/data@3.5.1 -- @react-stately/datepicker@3.0.0 -- @react-stately/dnd@3.0.0-alpha.8 -- @react-stately/grid@3.2.1 -- @react-stately/list@3.5.1 -- @react-stately/menu@3.3.1 -- @react-stately/numberfield@3.1.1 -- @react-stately/overlays@3.3.1 -- @react-stately/radio@3.4.1 -- @react-stately/searchfield@3.2.1 -- @react-stately/select@3.2.1 -- @react-stately/selection@3.10.1 -- @react-stately/slider@3.1.1 -- @react-stately/tabs@3.1.1 -- @react-stately/toggle@3.3.1 -- @react-stately/tooltip@3.1.1 -- @react-stately/tree@3.3.1 -- @react-stately/virtualizer@3.2.1 +- @react-stately-nutrient/calendar@3.0.0 +- @react-stately-nutrient/checkbox@3.1.1 +- @react-stately-nutrient/collections@3.4.1 +- @react-stately-nutrient/color@3.0.0 +- @react-stately-nutrient/combobox@3.1.1 +- @react-stately-nutrient/data@3.5.1 +- @react-stately-nutrient/datepicker@3.0.0 +- @react-stately-nutrient/dnd@3.0.0-alpha.8 +- @react-stately-nutrient/grid@3.2.1 +- @react-stately-nutrient/list@3.5.1 +- @react-stately-nutrient/menu@3.3.1 +- @react-stately-nutrient/numberfield@3.1.1 +- @react-stately-nutrient/overlays@3.3.1 +- @react-stately-nutrient/radio@3.4.1 +- @react-stately-nutrient/searchfield@3.2.1 +- @react-stately-nutrient/select@3.2.1 +- @react-stately-nutrient/selection@3.10.1 +- @react-stately-nutrient/slider@3.1.1 +- @react-stately-nutrient/tabs@3.1.1 +- @react-stately-nutrient/toggle@3.3.1 +- @react-stately-nutrient/tooltip@3.1.1 +- @react-stately-nutrient/tree@3.3.1 +- @react-stately-nutrient/virtualizer@3.2.1 - @react-types/accordion@3.0.0-alpha.7 - @react-types/actionbar@3.0.0-alpha.7 - @react-types/actiongroup@3.3.1 diff --git a/packages/dev/docs/pages/releases/2022-07-09.mdx b/packages/dev/docs/pages/releases/2022-07-09.mdx index 9b72b85a87d..e3b6b6be556 100644 --- a/packages/dev/docs/pages/releases/2022-07-09.mdx +++ b/packages/dev/docs/pages/releases/2022-07-09.mdx @@ -191,32 +191,32 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.7.2 - @react-spectrum/view@3.3.0 - @react-spectrum/well@3.3.0 -- @react-stately/calendar@3.0.1 -- @react-stately/checkbox@3.2.0 -- @react-stately/collections@3.4.2 -- @react-stately/color@3.1.0 -- @react-stately/combobox@3.2.0 -- @react-stately/data@3.6.0 -- @react-stately/datepicker@3.0.1 -- @react-stately/dnd@3.0.0-alpha.9 -- @react-stately/grid@3.3.0 -- @react-stately/layout@3.6.0 -- @react-stately/list@3.5.2 -- @react-stately/menu@3.4.0 -- @react-stately/numberfield@3.2.0 -- @react-stately/overlays@3.4.0 -- @react-stately/radio@3.5.0 -- @react-stately/searchfield@3.3.0 -- @react-stately/select@3.3.0 -- @react-stately/selection@3.10.2 -- @react-stately/slider@3.2.0 -- @react-stately/table@3.3.0 -- @react-stately/tabs@3.2.0 -- @react-stately/toggle@3.4.0 -- @react-stately/tooltip@3.2.0 -- @react-stately/tree@3.3.2 -- @react-stately/utils@3.5.1 -- @react-stately/virtualizer@3.2.2 +- @react-stately-nutrient/calendar@3.0.1 +- @react-stately-nutrient/checkbox@3.2.0 +- @react-stately-nutrient/collections@3.4.2 +- @react-stately-nutrient/color@3.1.0 +- @react-stately-nutrient/combobox@3.2.0 +- @react-stately-nutrient/data@3.6.0 +- @react-stately-nutrient/datepicker@3.0.1 +- @react-stately-nutrient/dnd@3.0.0-alpha.9 +- @react-stately-nutrient/grid@3.3.0 +- @react-stately-nutrient/layout@3.6.0 +- @react-stately-nutrient/list@3.5.2 +- @react-stately-nutrient/menu@3.4.0 +- @react-stately-nutrient/numberfield@3.2.0 +- @react-stately-nutrient/overlays@3.4.0 +- @react-stately-nutrient/radio@3.5.0 +- @react-stately-nutrient/searchfield@3.3.0 +- @react-stately-nutrient/select@3.3.0 +- @react-stately-nutrient/selection@3.10.2 +- @react-stately-nutrient/slider@3.2.0 +- @react-stately-nutrient/table@3.3.0 +- @react-stately-nutrient/tabs@3.2.0 +- @react-stately-nutrient/toggle@3.4.0 +- @react-stately-nutrient/tooltip@3.2.0 +- @react-stately-nutrient/tree@3.3.2 +- @react-stately-nutrient/utils@3.5.1 +- @react-stately-nutrient/virtualizer@3.2.2 - @react-types/accordion@3.0.0-alpha.8 - @react-types/actionbar@3.0.0-alpha.8 - @react-types/actiongroup@3.3.2 diff --git a/packages/dev/docs/pages/releases/2022-08-26.mdx b/packages/dev/docs/pages/releases/2022-08-26.mdx index 143aaf1d286..8dcba3a8ed5 100644 --- a/packages/dev/docs/pages/releases/2022-08-26.mdx +++ b/packages/dev/docs/pages/releases/2022-08-26.mdx @@ -162,31 +162,31 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.7.3 - @react-spectrum/view@3.3.1 - @react-spectrum/well@3.3.1 -- @react-stately/calendar@3.0.2 -- @react-stately/checkbox@3.2.1 -- @react-stately/collections@3.4.3 -- @react-stately/color@3.1.1 -- @react-stately/combobox@3.2.1 -- @react-stately/data@3.6.1 -- @react-stately/datepicker@3.0.2 -- @react-stately/dnd@3.0.0-alpha.10 -- @react-stately/grid@3.3.1 -- @react-stately/layout@3.7.0 -- @react-stately/list@3.5.3 -- @react-stately/menu@3.4.1 -- @react-stately/numberfield@3.2.1 -- @react-stately/overlays@3.4.1 -- @react-stately/radio@3.5.1 -- @react-stately/searchfield@3.3.1 -- @react-stately/select@3.3.1 -- @react-stately/selection@3.10.3 -- @react-stately/slider@3.2.1 -- @react-stately/table@3.4.0 -- @react-stately/tabs@3.2.1 -- @react-stately/toggle@3.4.1 -- @react-stately/tooltip@3.2.1 -- @react-stately/tree@3.3.3 -- @react-stately/virtualizer@3.3.0 +- @react-stately-nutrient/calendar@3.0.2 +- @react-stately-nutrient/checkbox@3.2.1 +- @react-stately-nutrient/collections@3.4.3 +- @react-stately-nutrient/color@3.1.1 +- @react-stately-nutrient/combobox@3.2.1 +- @react-stately-nutrient/data@3.6.1 +- @react-stately-nutrient/datepicker@3.0.2 +- @react-stately-nutrient/dnd@3.0.0-alpha.10 +- @react-stately-nutrient/grid@3.3.1 +- @react-stately-nutrient/layout@3.7.0 +- @react-stately-nutrient/list@3.5.3 +- @react-stately-nutrient/menu@3.4.1 +- @react-stately-nutrient/numberfield@3.2.1 +- @react-stately-nutrient/overlays@3.4.1 +- @react-stately-nutrient/radio@3.5.1 +- @react-stately-nutrient/searchfield@3.3.1 +- @react-stately-nutrient/select@3.3.1 +- @react-stately-nutrient/selection@3.10.3 +- @react-stately-nutrient/slider@3.2.1 +- @react-stately-nutrient/table@3.4.0 +- @react-stately-nutrient/tabs@3.2.1 +- @react-stately-nutrient/toggle@3.4.1 +- @react-stately-nutrient/tooltip@3.2.1 +- @react-stately-nutrient/tree@3.3.3 +- @react-stately-nutrient/virtualizer@3.3.0 - @react-types/accordion@3.0.0-alpha.9 - @react-types/actionbar@3.0.0-alpha.9 - @react-types/actiongroup@3.3.3 diff --git a/packages/dev/docs/pages/releases/2022-10-04.mdx b/packages/dev/docs/pages/releases/2022-10-04.mdx index d4c8198bcb6..3edaba1f574 100644 --- a/packages/dev/docs/pages/releases/2022-10-04.mdx +++ b/packages/dev/docs/pages/releases/2022-10-04.mdx @@ -200,31 +200,31 @@ Check out the new drag and drop documentation for [React Spectrum](https://react - @react-spectrum/utils@3.7.4 - @react-spectrum/view@3.3.2 - @react-spectrum/well@3.3.2 -- @react-stately/calendar@3.0.3 -- @react-stately/checkbox@3.3.0 -- @react-stately/collections@3.4.4 -- @react-stately/color@3.2.0 -- @react-stately/combobox@3.2.2 -- @react-stately/data@3.7.0 -- @react-stately/datepicker@3.1.0 -- @react-stately/dnd@3.0.0-rc.0 -- @react-stately/grid@3.4.0 -- @react-stately/layout@3.8.0 -- @react-stately/list@3.5.4 -- @react-stately/menu@3.4.2 -- @react-stately/numberfield@3.2.2 -- @react-stately/overlays@3.4.2 -- @react-stately/radio@3.6.0 -- @react-stately/searchfield@3.3.2 -- @react-stately/select@3.3.2 -- @react-stately/selection@3.11.0 -- @react-stately/slider@3.2.2 -- @react-stately/table@3.5.0 -- @react-stately/tabs@3.2.2 -- @react-stately/toggle@3.4.2 -- @react-stately/tooltip@3.2.2 -- @react-stately/tree@3.3.4 -- @react-stately/virtualizer@3.3.1 +- @react-stately-nutrient/calendar@3.0.3 +- @react-stately-nutrient/checkbox@3.3.0 +- @react-stately-nutrient/collections@3.4.4 +- @react-stately-nutrient/color@3.2.0 +- @react-stately-nutrient/combobox@3.2.2 +- @react-stately-nutrient/data@3.7.0 +- @react-stately-nutrient/datepicker@3.1.0 +- @react-stately-nutrient/dnd@3.0.0-rc.0 +- @react-stately-nutrient/grid@3.4.0 +- @react-stately-nutrient/layout@3.8.0 +- @react-stately-nutrient/list@3.5.4 +- @react-stately-nutrient/menu@3.4.2 +- @react-stately-nutrient/numberfield@3.2.2 +- @react-stately-nutrient/overlays@3.4.2 +- @react-stately-nutrient/radio@3.6.0 +- @react-stately-nutrient/searchfield@3.3.2 +- @react-stately-nutrient/select@3.3.2 +- @react-stately-nutrient/selection@3.11.0 +- @react-stately-nutrient/slider@3.2.2 +- @react-stately-nutrient/table@3.5.0 +- @react-stately-nutrient/tabs@3.2.2 +- @react-stately-nutrient/toggle@3.4.2 +- @react-stately-nutrient/tooltip@3.2.2 +- @react-stately-nutrient/tree@3.3.4 +- @react-stately-nutrient/virtualizer@3.3.1 - @react-types/accordion@3.0.0-alpha.10 - @react-types/actionbar@3.0.0-alpha.10 - @react-types/actiongroup@3.3.4 diff --git a/packages/dev/docs/pages/releases/2022-11-15.mdx b/packages/dev/docs/pages/releases/2022-11-15.mdx index 91d5ebceb46..1ed7e5f4ea4 100644 --- a/packages/dev/docs/pages/releases/2022-11-15.mdx +++ b/packages/dev/docs/pages/releases/2022-11-15.mdx @@ -211,31 +211,31 @@ We have made improvements to the `TagGroup` component, and it is now entering be - @react-spectrum/utils@3.8.0 - @react-spectrum/view@3.4.0 - @react-spectrum/well@3.3.3 -- @react-stately/calendar@3.0.4 -- @react-stately/checkbox@3.3.1 -- @react-stately/collections@3.5.0 -- @react-stately/color@3.2.1 -- @react-stately/combobox@3.3.0 -- @react-stately/data@3.8.0 -- @react-stately/datepicker@3.2.0 -- @react-stately/dnd@3.0.0 -- @react-stately/grid@3.4.1 -- @react-stately/layout@3.9.0 -- @react-stately/list@3.6.0 -- @react-stately/menu@3.4.3 -- @react-stately/numberfield@3.3.0 -- @react-stately/overlays@3.4.3 -- @react-stately/radio@3.6.1 -- @react-stately/searchfield@3.3.3 -- @react-stately/select@3.3.3 -- @react-stately/selection@3.11.1 -- @react-stately/slider@3.2.3 -- @react-stately/table@3.6.0 -- @react-stately/tabs@3.2.3 -- @react-stately/toggle@3.4.3 -- @react-stately/tooltip@3.2.3 -- @react-stately/tree@3.4.0 -- @react-stately/virtualizer@3.4.0 +- @react-stately-nutrient/calendar@3.0.4 +- @react-stately-nutrient/checkbox@3.3.1 +- @react-stately-nutrient/collections@3.5.0 +- @react-stately-nutrient/color@3.2.1 +- @react-stately-nutrient/combobox@3.3.0 +- @react-stately-nutrient/data@3.8.0 +- @react-stately-nutrient/datepicker@3.2.0 +- @react-stately-nutrient/dnd@3.0.0 +- @react-stately-nutrient/grid@3.4.1 +- @react-stately-nutrient/layout@3.9.0 +- @react-stately-nutrient/list@3.6.0 +- @react-stately-nutrient/menu@3.4.3 +- @react-stately-nutrient/numberfield@3.3.0 +- @react-stately-nutrient/overlays@3.4.3 +- @react-stately-nutrient/radio@3.6.1 +- @react-stately-nutrient/searchfield@3.3.3 +- @react-stately-nutrient/select@3.3.3 +- @react-stately-nutrient/selection@3.11.1 +- @react-stately-nutrient/slider@3.2.3 +- @react-stately-nutrient/table@3.6.0 +- @react-stately-nutrient/tabs@3.2.3 +- @react-stately-nutrient/toggle@3.4.3 +- @react-stately-nutrient/tooltip@3.2.3 +- @react-stately-nutrient/tree@3.4.0 +- @react-stately-nutrient/virtualizer@3.4.0 - @react-types/accordion@3.0.0-alpha.11 - @react-types/actionbar@3.0.0-alpha.11 - @react-types/actiongroup@3.3.5 diff --git a/packages/dev/docs/pages/releases/2022-12-16.mdx b/packages/dev/docs/pages/releases/2022-12-16.mdx index d50e1aab0a0..293868fd8ea 100644 --- a/packages/dev/docs/pages/releases/2022-12-16.mdx +++ b/packages/dev/docs/pages/releases/2022-12-16.mdx @@ -142,32 +142,32 @@ Thanks to all our contributors and happy holidays!! - @react-spectrum/utils@3.8.1 - @react-spectrum/view@3.4.1 - @react-spectrum/well@3.3.4 - - @react-stately/calendar@3.0.5 - - @react-stately/checkbox@3.3.2 - - @react-stately/collections@3.5.1 - - @react-stately/color@3.2.2 - - @react-stately/combobox@3.3.1 - - @react-stately/data@3.8.1 - - @react-stately/datepicker@3.2.1 - - @react-stately/dnd@3.0.1 - - @react-stately/grid@3.4.2 - - @react-stately/layout@3.10.0 - - @react-stately/list@3.6.1 - - @react-stately/menu@3.4.4 - - @react-stately/numberfield@3.3.1 - - @react-stately/overlays@3.4.4 - - @react-stately/radio@3.6.2 - - @react-stately/searchfield@3.3.4 - - @react-stately/select@3.3.4 - - @react-stately/selection@3.11.2 - - @react-stately/slider@3.2.4 - - @react-stately/table@3.7.0 - - @react-stately/tabs@3.2.4 - - @react-stately/toggle@3.4.4 - - @react-stately/tooltip@3.2.4 - - @react-stately/tree@3.4.1 - - @react-stately/utils@3.5.2 - - @react-stately/virtualizer@3.4.1 + - @react-stately-nutrient/calendar@3.0.5 + - @react-stately-nutrient/checkbox@3.3.2 + - @react-stately-nutrient/collections@3.5.1 + - @react-stately-nutrient/color@3.2.2 + - @react-stately-nutrient/combobox@3.3.1 + - @react-stately-nutrient/data@3.8.1 + - @react-stately-nutrient/datepicker@3.2.1 + - @react-stately-nutrient/dnd@3.0.1 + - @react-stately-nutrient/grid@3.4.2 + - @react-stately-nutrient/layout@3.10.0 + - @react-stately-nutrient/list@3.6.1 + - @react-stately-nutrient/menu@3.4.4 + - @react-stately-nutrient/numberfield@3.3.1 + - @react-stately-nutrient/overlays@3.4.4 + - @react-stately-nutrient/radio@3.6.2 + - @react-stately-nutrient/searchfield@3.3.4 + - @react-stately-nutrient/select@3.3.4 + - @react-stately-nutrient/selection@3.11.2 + - @react-stately-nutrient/slider@3.2.4 + - @react-stately-nutrient/table@3.7.0 + - @react-stately-nutrient/tabs@3.2.4 + - @react-stately-nutrient/toggle@3.4.4 + - @react-stately-nutrient/tooltip@3.2.4 + - @react-stately-nutrient/tree@3.4.1 + - @react-stately-nutrient/utils@3.5.2 + - @react-stately-nutrient/virtualizer@3.4.1 - @react-types/autocomplete@3.0.0-alpha.11 - @react-types/breadcrumbs@3.4.6 - @react-types/calendar@3.0.5 diff --git a/packages/dev/docs/pages/releases/2023-02-23.mdx b/packages/dev/docs/pages/releases/2023-02-23.mdx index 2c1b8e970db..e3f1a9dfa41 100644 --- a/packages/dev/docs/pages/releases/2023-02-23.mdx +++ b/packages/dev/docs/pages/releases/2023-02-23.mdx @@ -190,34 +190,34 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.9.0 - @react-spectrum/view@3.5.0 - @react-spectrum/well@3.4.0 -- @react-stately/calendar@3.1.0 -- @react-stately/checkbox@3.4.0 -- @react-stately/collections@3.6.0 -- @react-stately/color@3.3.0 -- @react-stately/combobox@3.4.0 -- @react-stately/data@3.9.0 -- @react-stately/datepicker@3.3.0 -- @react-stately/dnd@3.1.0 -- @react-stately/grid@3.5.0 -- @react-stately/layout@3.11.0 -- @react-stately/list@3.7.0 -- @react-stately/menu@3.5.0 -- @react-stately/numberfield@3.4.0 -- @react-stately/overlays@3.5.0 -- @react-stately/radio@3.7.0 -- @react-stately/searchfield@3.4.0 -- @react-stately/select@3.4.0 -- @react-stately/selection@3.12.0 -- @react-stately/slider@3.3.0 -- @react-stately/table@3.8.0 -- @react-stately/tabs@3.3.0 -- @react-stately/tag@3.0.0-beta.0 -- @react-stately/toast@3.0.0-alpha.0 -- @react-stately/toggle@3.5.0 -- @react-stately/tooltip@3.3.0 -- @react-stately/tree@3.5.0 -- @react-stately/utils@3.6.0 -- @react-stately/virtualizer@3.5.0 +- @react-stately-nutrient/calendar@3.1.0 +- @react-stately-nutrient/checkbox@3.4.0 +- @react-stately-nutrient/collections@3.6.0 +- @react-stately-nutrient/color@3.3.0 +- @react-stately-nutrient/combobox@3.4.0 +- @react-stately-nutrient/data@3.9.0 +- @react-stately-nutrient/datepicker@3.3.0 +- @react-stately-nutrient/dnd@3.1.0 +- @react-stately-nutrient/grid@3.5.0 +- @react-stately-nutrient/layout@3.11.0 +- @react-stately-nutrient/list@3.7.0 +- @react-stately-nutrient/menu@3.5.0 +- @react-stately-nutrient/numberfield@3.4.0 +- @react-stately-nutrient/overlays@3.5.0 +- @react-stately-nutrient/radio@3.7.0 +- @react-stately-nutrient/searchfield@3.4.0 +- @react-stately-nutrient/select@3.4.0 +- @react-stately-nutrient/selection@3.12.0 +- @react-stately-nutrient/slider@3.3.0 +- @react-stately-nutrient/table@3.8.0 +- @react-stately-nutrient/tabs@3.3.0 +- @react-stately-nutrient/tag@3.0.0-beta.0 +- @react-stately-nutrient/toast@3.0.0-alpha.0 +- @react-stately-nutrient/toggle@3.5.0 +- @react-stately-nutrient/tooltip@3.3.0 +- @react-stately-nutrient/tree@3.5.0 +- @react-stately-nutrient/utils@3.6.0 +- @react-stately-nutrient/virtualizer@3.5.0 - @react-types/accordion@3.0.0-alpha.12 - @react-types/actionbar@3.0.0-beta.0 - @react-types/actiongroup@3.4.0 diff --git a/packages/dev/docs/pages/releases/2023-04-05.mdx b/packages/dev/docs/pages/releases/2023-04-05.mdx index 4e7bd344a6e..10b933879c3 100644 --- a/packages/dev/docs/pages/releases/2023-04-05.mdx +++ b/packages/dev/docs/pages/releases/2023-04-05.mdx @@ -205,33 +205,33 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.9.1 - @react-spectrum/view@3.5.1 - @react-spectrum/well@3.4.1 -- @react-stately/calendar@3.2.0 -- @react-stately/checkbox@3.4.1 -- @react-stately/collections@3.7.0 -- @react-stately/color@3.3.1 -- @react-stately/combobox@3.5.0 -- @react-stately/data@3.9.1 -- @react-stately/datepicker@3.4.0 -- @react-stately/dnd@3.2.0 -- @react-stately/grid@3.6.0 -- @react-stately/layout@3.12.0 -- @react-stately/list@3.8.0 -- @react-stately/menu@3.5.1 -- @react-stately/numberfield@3.4.1 -- @react-stately/overlays@3.5.1 -- @react-stately/radio@3.8.0 -- @react-stately/searchfield@3.4.1 -- @react-stately/select@3.5.0 -- @react-stately/selection@3.13.0 -- @react-stately/slider@3.3.1 -- @react-stately/table@3.9.0 -- @react-stately/tabs@3.4.0 -- @react-stately/tag@3.0.0-rc.0 -- @react-stately/toast@3.0.0-beta.0 -- @react-stately/toggle@3.5.1 -- @react-stately/tooltip@3.4.0 -- @react-stately/tree@3.6.0 -- @react-stately/virtualizer@3.5.1 +- @react-stately-nutrient/calendar@3.2.0 +- @react-stately-nutrient/checkbox@3.4.1 +- @react-stately-nutrient/collections@3.7.0 +- @react-stately-nutrient/color@3.3.1 +- @react-stately-nutrient/combobox@3.5.0 +- @react-stately-nutrient/data@3.9.1 +- @react-stately-nutrient/datepicker@3.4.0 +- @react-stately-nutrient/dnd@3.2.0 +- @react-stately-nutrient/grid@3.6.0 +- @react-stately-nutrient/layout@3.12.0 +- @react-stately-nutrient/list@3.8.0 +- @react-stately-nutrient/menu@3.5.1 +- @react-stately-nutrient/numberfield@3.4.1 +- @react-stately-nutrient/overlays@3.5.1 +- @react-stately-nutrient/radio@3.8.0 +- @react-stately-nutrient/searchfield@3.4.1 +- @react-stately-nutrient/select@3.5.0 +- @react-stately-nutrient/selection@3.13.0 +- @react-stately-nutrient/slider@3.3.1 +- @react-stately-nutrient/table@3.9.0 +- @react-stately-nutrient/tabs@3.4.0 +- @react-stately-nutrient/tag@3.0.0-rc.0 +- @react-stately-nutrient/toast@3.0.0-beta.0 +- @react-stately-nutrient/toggle@3.5.1 +- @react-stately-nutrient/tooltip@3.4.0 +- @react-stately-nutrient/tree@3.6.0 +- @react-stately-nutrient/virtualizer@3.5.1 - @react-types/accordion@3.0.0-alpha.13 - @react-types/actionbar@3.0.0-rc.0 - @react-types/actiongroup@3.4.1 diff --git a/packages/dev/docs/pages/releases/2023-05-24.mdx b/packages/dev/docs/pages/releases/2023-05-24.mdx index b273f39c1f4..39dba0dfbe3 100644 --- a/packages/dev/docs/pages/releases/2023-05-24.mdx +++ b/packages/dev/docs/pages/releases/2023-05-24.mdx @@ -46,7 +46,7 @@ This release of TagGroup includes a few API changes. If you were using a pre-rel * Removed `allowsRemoval` prop and instead infer this from `onRemove` being present or not. * Removed `labelProps` from `useTag`. * Users no longer need to pass `onRemove` from `useTagGroup` to `useTag`. -* Removed `@react-stately/tag` package as functionality is covered by the `@react-stately/list` package. +* Removed `@react-stately-nutrient/tag` package as functionality is covered by the `@react-stately-nutrient/list` package. ## Enhancements @@ -195,31 +195,31 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.9.2 - @react-spectrum/view@3.5.2 - @react-spectrum/well@3.4.2 -- @react-stately/calendar@3.2.1 -- @react-stately/checkbox@3.4.2 -- @react-stately/collections@3.8.0 -- @react-stately/color@3.3.2 -- @react-stately/combobox@3.5.1 -- @react-stately/data@3.9.2 -- @react-stately/datepicker@3.4.1 -- @react-stately/dnd@3.2.1 -- @react-stately/grid@3.6.1 -- @react-stately/layout@3.12.1 -- @react-stately/list@3.8.1 -- @react-stately/menu@3.5.2 -- @react-stately/numberfield@3.4.2 -- @react-stately/overlays@3.5.2 -- @react-stately/radio@3.8.1 -- @react-stately/searchfield@3.4.2 -- @react-stately/select@3.5.1 -- @react-stately/selection@3.13.1 -- @react-stately/slider@3.3.2 -- @react-stately/table@3.9.1 -- @react-stately/tabs@3.4.1 -- @react-stately/toggle@3.5.2 -- @react-stately/tooltip@3.4.1 -- @react-stately/tree@3.6.1 -- @react-stately/virtualizer@3.5.2 +- @react-stately-nutrient/calendar@3.2.1 +- @react-stately-nutrient/checkbox@3.4.2 +- @react-stately-nutrient/collections@3.8.0 +- @react-stately-nutrient/color@3.3.2 +- @react-stately-nutrient/combobox@3.5.1 +- @react-stately-nutrient/data@3.9.2 +- @react-stately-nutrient/datepicker@3.4.1 +- @react-stately-nutrient/dnd@3.2.1 +- @react-stately-nutrient/grid@3.6.1 +- @react-stately-nutrient/layout@3.12.1 +- @react-stately-nutrient/list@3.8.1 +- @react-stately-nutrient/menu@3.5.2 +- @react-stately-nutrient/numberfield@3.4.2 +- @react-stately-nutrient/overlays@3.5.2 +- @react-stately-nutrient/radio@3.8.1 +- @react-stately-nutrient/searchfield@3.4.2 +- @react-stately-nutrient/select@3.5.1 +- @react-stately-nutrient/selection@3.13.1 +- @react-stately-nutrient/slider@3.3.2 +- @react-stately-nutrient/table@3.9.1 +- @react-stately-nutrient/tabs@3.4.1 +- @react-stately-nutrient/toggle@3.5.2 +- @react-stately-nutrient/tooltip@3.4.1 +- @react-stately-nutrient/tree@3.6.1 +- @react-stately-nutrient/virtualizer@3.5.2 - @react-types/accordion@3.0.0-alpha.14 - @react-types/actionbar@3.0.0 - @react-types/actiongroup@3.4.2 diff --git a/packages/dev/docs/pages/releases/2023-06-27.mdx b/packages/dev/docs/pages/releases/2023-06-27.mdx index c3f45aa060b..b049e93fbe6 100644 --- a/packages/dev/docs/pages/releases/2023-06-27.mdx +++ b/packages/dev/docs/pages/releases/2023-06-27.mdx @@ -201,34 +201,34 @@ In this release, we updated the [Tabs](https://react-spectrum.adobe.com/react-ar - @react-spectrum/utils@3.10.0 - @react-spectrum/view@3.6.0 - @react-spectrum/well@3.4.3 -- @react-stately/calendar@3.3.0 -- @react-stately/checkbox@3.4.3 -- @react-stately/collections@3.9.0 -- @react-stately/color@3.4.0 -- @react-stately/combobox@3.5.2 -- @react-stately/data@3.10.0 -- @react-stately/datepicker@3.5.0 -- @react-stately/dnd@3.2.2 -- @react-stately/flags@3.0.0-alpha.0 -- @react-stately/grid@3.7.0 -- @react-stately/layout@3.12.2 -- @react-stately/list@3.9.0 -- @react-stately/menu@3.5.3 -- @react-stately/numberfield@3.5.0 -- @react-stately/overlays@3.6.0 -- @react-stately/radio@3.8.2 -- @react-stately/searchfield@3.4.3 -- @react-stately/select@3.5.2 -- @react-stately/selection@3.13.2 -- @react-stately/slider@3.4.0 -- @react-stately/table@3.10.0 -- @react-stately/tabs@3.5.0 -- @react-stately/toast@3.0.0-beta.1 -- @react-stately/toggle@3.6.0 -- @react-stately/tooltip@3.4.2 -- @react-stately/tree@3.7.0 -- @react-stately/utils@3.7.0 -- @react-stately/virtualizer@3.6.0 +- @react-stately-nutrient/calendar@3.3.0 +- @react-stately-nutrient/checkbox@3.4.3 +- @react-stately-nutrient/collections@3.9.0 +- @react-stately-nutrient/color@3.4.0 +- @react-stately-nutrient/combobox@3.5.2 +- @react-stately-nutrient/data@3.10.0 +- @react-stately-nutrient/datepicker@3.5.0 +- @react-stately-nutrient/dnd@3.2.2 +- @react-stately-nutrient/flags@3.0.0-alpha.0 +- @react-stately-nutrient/grid@3.7.0 +- @react-stately-nutrient/layout@3.12.2 +- @react-stately-nutrient/list@3.9.0 +- @react-stately-nutrient/menu@3.5.3 +- @react-stately-nutrient/numberfield@3.5.0 +- @react-stately-nutrient/overlays@3.6.0 +- @react-stately-nutrient/radio@3.8.2 +- @react-stately-nutrient/searchfield@3.4.3 +- @react-stately-nutrient/select@3.5.2 +- @react-stately-nutrient/selection@3.13.2 +- @react-stately-nutrient/slider@3.4.0 +- @react-stately-nutrient/table@3.10.0 +- @react-stately-nutrient/tabs@3.5.0 +- @react-stately-nutrient/toast@3.0.0-beta.1 +- @react-stately-nutrient/toggle@3.6.0 +- @react-stately-nutrient/tooltip@3.4.2 +- @react-stately-nutrient/tree@3.7.0 +- @react-stately-nutrient/utils@3.7.0 +- @react-stately-nutrient/virtualizer@3.6.0 - @react-types/actionbar@3.1.0 - @react-types/breadcrumbs@3.6.0 - @react-types/calendar@3.3.0 diff --git a/packages/dev/docs/pages/releases/2023-08-09.mdx b/packages/dev/docs/pages/releases/2023-08-09.mdx index 29a6a770b62..dae1a626a62 100644 --- a/packages/dev/docs/pages/releases/2023-08-09.mdx +++ b/packages/dev/docs/pages/releases/2023-08-09.mdx @@ -191,32 +191,32 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.10.1 - @react-spectrum/view@3.6.1 - @react-spectrum/well@3.4.4 - - @react-stately/calendar@3.3.1 - - @react-stately/checkbox@3.4.4 - - @react-stately/collections@3.10.0 - - @react-stately/color@3.4.1 - - @react-stately/combobox@3.6.0 - - @react-stately/data@3.10.1 - - @react-stately/datepicker@3.6.0 - - @react-stately/dnd@3.2.3 - - @react-stately/flags@3.0.0 - - @react-stately/grid@3.8.0 - - @react-stately/layout@3.13.0 - - @react-stately/list@3.9.1 - - @react-stately/menu@3.5.4 - - @react-stately/numberfield@3.6.0 - - @react-stately/overlays@3.6.1 - - @react-stately/radio@3.8.3 - - @react-stately/searchfield@3.4.4 - - @react-stately/select@3.5.3 - - @react-stately/selection@3.13.3 - - @react-stately/slider@3.4.1 - - @react-stately/table@3.11.0 - - @react-stately/tabs@3.5.1 - - @react-stately/toggle@3.6.1 - - @react-stately/tooltip@3.4.3 - - @react-stately/tree@3.7.1 - - @react-stately/virtualizer@3.6.1 + - @react-stately-nutrient/calendar@3.3.1 + - @react-stately-nutrient/checkbox@3.4.4 + - @react-stately-nutrient/collections@3.10.0 + - @react-stately-nutrient/color@3.4.1 + - @react-stately-nutrient/combobox@3.6.0 + - @react-stately-nutrient/data@3.10.1 + - @react-stately-nutrient/datepicker@3.6.0 + - @react-stately-nutrient/dnd@3.2.3 + - @react-stately-nutrient/flags@3.0.0 + - @react-stately-nutrient/grid@3.8.0 + - @react-stately-nutrient/layout@3.13.0 + - @react-stately-nutrient/list@3.9.1 + - @react-stately-nutrient/menu@3.5.4 + - @react-stately-nutrient/numberfield@3.6.0 + - @react-stately-nutrient/overlays@3.6.1 + - @react-stately-nutrient/radio@3.8.3 + - @react-stately-nutrient/searchfield@3.4.4 + - @react-stately-nutrient/select@3.5.3 + - @react-stately-nutrient/selection@3.13.3 + - @react-stately-nutrient/slider@3.4.1 + - @react-stately-nutrient/table@3.11.0 + - @react-stately-nutrient/tabs@3.5.1 + - @react-stately-nutrient/toggle@3.6.1 + - @react-stately-nutrient/tooltip@3.4.3 + - @react-stately-nutrient/tree@3.7.1 + - @react-stately-nutrient/virtualizer@3.6.1 - @react-types/accordion@3.0.0-alpha.15 - @react-types/actionbar@3.1.1 - @react-types/actiongroup@3.4.3 diff --git a/packages/dev/docs/pages/releases/2023-09-07.mdx b/packages/dev/docs/pages/releases/2023-09-07.mdx index ef43c818ed2..4e8091ec37f 100644 --- a/packages/dev/docs/pages/releases/2023-09-07.mdx +++ b/packages/dev/docs/pages/releases/2023-09-07.mdx @@ -203,31 +203,31 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.10.2 - @react-spectrum/view@3.6.2 - @react-spectrum/well@3.4.5 -- @react-stately/calendar@3.4.0 -- @react-stately/checkbox@3.5.0 -- @react-stately/collections@3.10.1 -- @react-stately/color@3.4.2 -- @react-stately/combobox@3.7.0 -- @react-stately/data@3.10.2 -- @react-stately/datepicker@3.7.0 -- @react-stately/dnd@3.2.4 -- @react-stately/grid@3.8.1 -- @react-stately/layout@3.13.1 -- @react-stately/list@3.9.2 -- @react-stately/menu@3.5.5 -- @react-stately/numberfield@3.6.1 -- @react-stately/overlays@3.6.2 -- @react-stately/radio@3.9.0 -- @react-stately/searchfield@3.4.5 -- @react-stately/select@3.5.4 -- @react-stately/selection@3.13.4 -- @react-stately/slider@3.4.2 -- @react-stately/table@3.11.1 -- @react-stately/tabs@3.6.0 -- @react-stately/toggle@3.6.2 -- @react-stately/tooltip@3.4.4 -- @react-stately/tree@3.7.2 -- @react-stately/virtualizer@3.6.2 +- @react-stately-nutrient/calendar@3.4.0 +- @react-stately-nutrient/checkbox@3.5.0 +- @react-stately-nutrient/collections@3.10.1 +- @react-stately-nutrient/color@3.4.2 +- @react-stately-nutrient/combobox@3.7.0 +- @react-stately-nutrient/data@3.10.2 +- @react-stately-nutrient/datepicker@3.7.0 +- @react-stately-nutrient/dnd@3.2.4 +- @react-stately-nutrient/grid@3.8.1 +- @react-stately-nutrient/layout@3.13.1 +- @react-stately-nutrient/list@3.9.2 +- @react-stately-nutrient/menu@3.5.5 +- @react-stately-nutrient/numberfield@3.6.1 +- @react-stately-nutrient/overlays@3.6.2 +- @react-stately-nutrient/radio@3.9.0 +- @react-stately-nutrient/searchfield@3.4.5 +- @react-stately-nutrient/select@3.5.4 +- @react-stately-nutrient/selection@3.13.4 +- @react-stately-nutrient/slider@3.4.2 +- @react-stately-nutrient/table@3.11.1 +- @react-stately-nutrient/tabs@3.6.0 +- @react-stately-nutrient/toggle@3.6.2 +- @react-stately-nutrient/tooltip@3.4.4 +- @react-stately-nutrient/tree@3.7.2 +- @react-stately-nutrient/virtualizer@3.6.2 - @react-types/accordion@3.0.0-alpha.16 - @react-types/actionbar@3.1.2 - @react-types/actiongroup@3.4.4 diff --git a/packages/dev/docs/pages/releases/2023-10-02.mdx b/packages/dev/docs/pages/releases/2023-10-02.mdx index 19e20a27902..f8e2f591502 100644 --- a/packages/dev/docs/pages/releases/2023-10-02.mdx +++ b/packages/dev/docs/pages/releases/2023-10-02.mdx @@ -195,32 +195,32 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.11.0 - @react-spectrum/view@3.6.3 - @react-spectrum/well@3.4.6 - - @react-stately/calendar@3.4.1 - - @react-stately/checkbox@3.5.1 - - @react-stately/collections@3.10.2 - - @react-stately/color@3.4.3 - - @react-stately/combobox@3.7.1 - - @react-stately/data@3.10.3 - - @react-stately/datepicker@3.8.0 - - @react-stately/dnd@3.2.5 - - @react-stately/grid@3.8.2 - - @react-stately/layout@3.13.2 - - @react-stately/list@3.10.0 - - @react-stately/menu@3.5.6 - - @react-stately/numberfield@3.6.2 - - @react-stately/overlays@3.6.3 - - @react-stately/radio@3.9.1 - - @react-stately/searchfield@3.4.6 - - @react-stately/select@3.5.5 - - @react-stately/selection@3.14.0 - - @react-stately/slider@3.4.3 - - @react-stately/table@3.11.2 - - @react-stately/tabs@3.6.1 - - @react-stately/toggle@3.6.3 - - @react-stately/tooltip@3.4.5 - - @react-stately/tree@3.7.3 - - @react-stately/utils@3.8.0 - - @react-stately/virtualizer@3.6.3 + - @react-stately-nutrient/calendar@3.4.1 + - @react-stately-nutrient/checkbox@3.5.1 + - @react-stately-nutrient/collections@3.10.2 + - @react-stately-nutrient/color@3.4.3 + - @react-stately-nutrient/combobox@3.7.1 + - @react-stately-nutrient/data@3.10.3 + - @react-stately-nutrient/datepicker@3.8.0 + - @react-stately-nutrient/dnd@3.2.5 + - @react-stately-nutrient/grid@3.8.2 + - @react-stately-nutrient/layout@3.13.2 + - @react-stately-nutrient/list@3.10.0 + - @react-stately-nutrient/menu@3.5.6 + - @react-stately-nutrient/numberfield@3.6.2 + - @react-stately-nutrient/overlays@3.6.3 + - @react-stately-nutrient/radio@3.9.1 + - @react-stately-nutrient/searchfield@3.4.6 + - @react-stately-nutrient/select@3.5.5 + - @react-stately-nutrient/selection@3.14.0 + - @react-stately-nutrient/slider@3.4.3 + - @react-stately-nutrient/table@3.11.2 + - @react-stately-nutrient/tabs@3.6.1 + - @react-stately-nutrient/toggle@3.6.3 + - @react-stately-nutrient/tooltip@3.4.5 + - @react-stately-nutrient/tree@3.7.3 + - @react-stately-nutrient/utils@3.8.0 + - @react-stately-nutrient/virtualizer@3.6.3 - @react-types/accordion@3.0.0-alpha.17 - @react-types/actionbar@3.1.3 - @react-types/actiongroup@3.4.5 diff --git a/packages/dev/docs/pages/releases/2023-11-8.mdx b/packages/dev/docs/pages/releases/2023-11-8.mdx index 796683c8341..29699099323 100644 --- a/packages/dev/docs/pages/releases/2023-11-8.mdx +++ b/packages/dev/docs/pages/releases/2023-11-8.mdx @@ -218,34 +218,34 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.11.2 - @react-spectrum/view@3.6.5 - @react-spectrum/well@3.4.8 -- @react-stately/calendar@3.4.2 -- @react-stately/checkbox@3.6.0 -- @react-stately/collections@3.10.3 -- @react-stately/color@3.5.0 -- @react-stately/combobox@3.8.0 -- @react-stately/data@3.11.0 -- @react-stately/datepicker@3.9.0 -- @react-stately/dnd@3.2.6 -- @react-stately/form@3.0.0 -- @react-stately/grid@3.8.3 -- @react-stately/layout@3.13.4 -- @react-stately/list@3.10.1 -- @react-stately/menu@3.5.7 -- @react-stately/numberfield@3.7.0 -- @react-stately/overlays@3.6.4 -- @react-stately/radio@3.10.0 -- @react-stately/searchfield@3.5.0 -- @react-stately/select@3.6.0 -- @react-stately/selection@3.14.1 -- @react-stately/slider@3.4.5 -- @react-stately/steplist@3.0.0-alpha.0 -- @react-stately/table@3.11.3 -- @react-stately/tabs@3.6.2 -- @react-stately/toggle@3.7.0 -- @react-stately/tooltip@3.4.6 -- @react-stately/tree@3.7.4 -- @react-stately/utils@3.9.0 -- @react-stately/virtualizer@3.6.5 +- @react-stately-nutrient/calendar@3.4.2 +- @react-stately-nutrient/checkbox@3.6.0 +- @react-stately-nutrient/collections@3.10.3 +- @react-stately-nutrient/color@3.5.0 +- @react-stately-nutrient/combobox@3.8.0 +- @react-stately-nutrient/data@3.11.0 +- @react-stately-nutrient/datepicker@3.9.0 +- @react-stately-nutrient/dnd@3.2.6 +- @react-stately-nutrient/form@3.0.0 +- @react-stately-nutrient/grid@3.8.3 +- @react-stately-nutrient/layout@3.13.4 +- @react-stately-nutrient/list@3.10.1 +- @react-stately-nutrient/menu@3.5.7 +- @react-stately-nutrient/numberfield@3.7.0 +- @react-stately-nutrient/overlays@3.6.4 +- @react-stately-nutrient/radio@3.10.0 +- @react-stately-nutrient/searchfield@3.5.0 +- @react-stately-nutrient/select@3.6.0 +- @react-stately-nutrient/selection@3.14.1 +- @react-stately-nutrient/slider@3.4.5 +- @react-stately-nutrient/steplist@3.0.0-alpha.0 +- @react-stately-nutrient/table@3.11.3 +- @react-stately-nutrient/tabs@3.6.2 +- @react-stately-nutrient/toggle@3.7.0 +- @react-stately-nutrient/tooltip@3.4.6 +- @react-stately-nutrient/tree@3.7.4 +- @react-stately-nutrient/utils@3.9.0 +- @react-stately-nutrient/virtualizer@3.6.5 - @react-types/accordion@3.0.0-alpha.18 - @react-types/actionbar@3.1.4 - @react-types/actiongroup@3.4.6 diff --git a/packages/dev/docs/pages/releases/2023-12-20.mdx b/packages/dev/docs/pages/releases/2023-12-20.mdx index 76925722832..00bfea85943 100644 --- a/packages/dev/docs/pages/releases/2023-12-20.mdx +++ b/packages/dev/docs/pages/releases/2023-12-20.mdx @@ -231,27 +231,27 @@ Fixes to pre-released components are listed below. Please feel free to try them - @react-spectrum/utils@3.11.3 - @react-spectrum/view@3.6.6 - @react-spectrum/well@3.4.9 - - @react-stately/calendar@3.4.3 - - @react-stately/checkbox@3.6.1 - - @react-stately/collections@3.10.4 - - @react-stately/color@3.5.1 - - @react-stately/combobox@3.8.1 - - @react-stately/datepicker@3.9.1 - - @react-stately/dnd@3.2.7 - - @react-stately/grid@3.8.4 - - @react-stately/layout@3.13.5 - - @react-stately/list@3.10.2 - - @react-stately/menu@3.6.0 - - @react-stately/numberfield@3.8.0 - - @react-stately/radio@3.10.1 - - @react-stately/select@3.6.1 - - @react-stately/selection@3.14.2 - - @react-stately/slider@3.5.0 - - @react-stately/steplist@3.0.0-alpha.1 - - @react-stately/table@3.11.4 - - @react-stately/tabs@3.6.3 - - @react-stately/tree@3.7.5 - - @react-stately/virtualizer@3.6.6 + - @react-stately-nutrient/calendar@3.4.3 + - @react-stately-nutrient/checkbox@3.6.1 + - @react-stately-nutrient/collections@3.10.4 + - @react-stately-nutrient/color@3.5.1 + - @react-stately-nutrient/combobox@3.8.1 + - @react-stately-nutrient/datepicker@3.9.1 + - @react-stately-nutrient/dnd@3.2.7 + - @react-stately-nutrient/grid@3.8.4 + - @react-stately-nutrient/layout@3.13.5 + - @react-stately-nutrient/list@3.10.2 + - @react-stately-nutrient/menu@3.6.0 + - @react-stately-nutrient/numberfield@3.8.0 + - @react-stately-nutrient/radio@3.10.1 + - @react-stately-nutrient/select@3.6.1 + - @react-stately-nutrient/selection@3.14.2 + - @react-stately-nutrient/slider@3.5.0 + - @react-stately-nutrient/steplist@3.0.0-alpha.1 + - @react-stately-nutrient/table@3.11.4 + - @react-stately-nutrient/tabs@3.6.3 + - @react-stately-nutrient/tree@3.7.5 + - @react-stately-nutrient/virtualizer@3.6.6 - @react-types/autocomplete@3.0.0-alpha.19 - @react-types/calendar@3.4.3 - @react-types/card@3.0.0-alpha.22 diff --git a/packages/dev/docs/pages/releases/2024-02-13.mdx b/packages/dev/docs/pages/releases/2024-02-13.mdx index 240fdbbcfaf..c7a9ac7bd71 100644 --- a/packages/dev/docs/pages/releases/2024-02-13.mdx +++ b/packages/dev/docs/pages/releases/2024-02-13.mdx @@ -187,16 +187,16 @@ As always, huge thanks and appreciation for everyone in our community for their - @react-spectrum/utils@3.11.4 - @react-spectrum/view@3.6.7 - @react-spectrum/well@3.4.10 -- @react-stately/checkbox@3.6.2 -- @react-stately/color@3.5.2 -- @react-stately/data@3.11.1 -- @react-stately/layout@3.13.6 -- @react-stately/numberfield@3.9.0 -- @react-stately/slider@3.5.1 -- @react-stately/steplist@3.0.0-alpha.2 -- @react-stately/table@3.11.5 -- @react-stately/toggle@3.7.1 -- @react-stately/virtualizer@3.6.7 +- @react-stately-nutrient/checkbox@3.6.2 +- @react-stately-nutrient/color@3.5.2 +- @react-stately-nutrient/data@3.11.1 +- @react-stately-nutrient/layout@3.13.6 +- @react-stately-nutrient/numberfield@3.9.0 +- @react-stately-nutrient/slider@3.5.1 +- @react-stately-nutrient/steplist@3.0.0-alpha.2 +- @react-stately-nutrient/table@3.11.5 +- @react-stately-nutrient/toggle@3.7.1 +- @react-stately-nutrient/virtualizer@3.6.7 - @react-types/card@3.0.0-alpha.23 - @react-types/checkbox@3.7.0 - @react-types/color@3.0.0-beta.22 diff --git a/packages/dev/docs/pages/releases/2024-05-01.mdx b/packages/dev/docs/pages/releases/2024-05-01.mdx index bb19410cdd2..d00e82cce99 100644 --- a/packages/dev/docs/pages/releases/2024-05-01.mdx +++ b/packages/dev/docs/pages/releases/2024-05-01.mdx @@ -287,36 +287,36 @@ Last but not least, we want to acknowledge all the wonderful contributors who ha - @react-spectrum/utils@3.11.6 - @react-spectrum/view@3.6.9 - @react-spectrum/well@3.4.12 -- @react-stately/calendar@3.5.0 -- @react-stately/checkbox@3.6.4 -- @react-stately/collections@3.10.6 -- @react-stately/color@3.6.0 -- @react-stately/combobox@3.8.3 -- @react-stately/data@3.11.3 -- @react-stately/datepicker@3.9.3 -- @react-stately/dnd@3.3.0 -- @react-stately/flags@3.0.2 -- @react-stately/form@3.0.2 -- @react-stately/grid@3.8.6 -- @react-stately/layout@3.13.8 -- @react-stately/list@3.10.4 -- @react-stately/menu@3.7.0 -- @react-stately/numberfield@3.9.2 -- @react-stately/overlays@3.6.6 -- @react-stately/radio@3.10.3 -- @react-stately/searchfield@3.5.2 -- @react-stately/select@3.6.3 -- @react-stately/selection@3.15.0 -- @react-stately/slider@3.5.3 -- @react-stately/steplist@3.0.0-alpha.4 -- @react-stately/table@3.11.7 -- @react-stately/tabs@3.6.5 -- @react-stately/toast@3.0.0-beta.3 -- @react-stately/toggle@3.7.3 -- @react-stately/tooltip@3.4.8 -- @react-stately/tree@3.8.0 -- @react-stately/utils@3.10.0 -- @react-stately/virtualizer@3.7.0 +- @react-stately-nutrient/calendar@3.5.0 +- @react-stately-nutrient/checkbox@3.6.4 +- @react-stately-nutrient/collections@3.10.6 +- @react-stately-nutrient/color@3.6.0 +- @react-stately-nutrient/combobox@3.8.3 +- @react-stately-nutrient/data@3.11.3 +- @react-stately-nutrient/datepicker@3.9.3 +- @react-stately-nutrient/dnd@3.3.0 +- @react-stately-nutrient/flags@3.0.2 +- @react-stately-nutrient/form@3.0.2 +- @react-stately-nutrient/grid@3.8.6 +- @react-stately-nutrient/layout@3.13.8 +- @react-stately-nutrient/list@3.10.4 +- @react-stately-nutrient/menu@3.7.0 +- @react-stately-nutrient/numberfield@3.9.2 +- @react-stately-nutrient/overlays@3.6.6 +- @react-stately-nutrient/radio@3.10.3 +- @react-stately-nutrient/searchfield@3.5.2 +- @react-stately-nutrient/select@3.6.3 +- @react-stately-nutrient/selection@3.15.0 +- @react-stately-nutrient/slider@3.5.3 +- @react-stately-nutrient/steplist@3.0.0-alpha.4 +- @react-stately-nutrient/table@3.11.7 +- @react-stately-nutrient/tabs@3.6.5 +- @react-stately-nutrient/toast@3.0.0-beta.3 +- @react-stately-nutrient/toggle@3.7.3 +- @react-stately-nutrient/tooltip@3.4.8 +- @react-stately-nutrient/tree@3.8.0 +- @react-stately-nutrient/utils@3.10.0 +- @react-stately-nutrient/virtualizer@3.7.0 - @react-types/accordion@3.0.0-alpha.20 - @react-types/actionbar@3.1.6 - @react-types/actiongroup@3.4.8 diff --git a/packages/dev/docs/pages/releases/2024-07-22.mdx b/packages/dev/docs/pages/releases/2024-07-22.mdx index b28387f0c0b..ed20f24ac6a 100644 --- a/packages/dev/docs/pages/releases/2024-07-22.mdx +++ b/packages/dev/docs/pages/releases/2024-07-22.mdx @@ -25,7 +25,7 @@ Our color components are also moving to RC! Focus management within Toasts have Thank you to our ever growing list of contributors! ❤️ ### API updates -Because of various breaking changes, several packages are being bumped a major version, specifically @react-aria-nutrient/virtualizer , @react-stately/virtualizer , and @react-stately/layout. While these packages were undocumented and not yet intended for public use, we know this is not always the case, so please review the updated code carefully. +Because of various breaking changes, several packages are being bumped a major version, specifically @react-aria-nutrient/virtualizer , @react-stately-nutrient/virtualizer , and @react-stately-nutrient/layout. While these packages were undocumented and not yet intended for public use, we know this is not always the case, so please review the updated code carefully. ## Enhancements @@ -265,35 +265,35 @@ Because of various breaking changes, several packages are being bumped a major v - @react-spectrum/utils@3.11.8 - @react-spectrum/view@3.6.11 - @react-spectrum/well@3.4.14 - - @react-stately/calendar@3.5.2 - - @react-stately/checkbox@3.6.6 - - @react-stately/collections@3.10.8 - - @react-stately/color@3.7.0 - - @react-stately/combobox@3.9.0 - - @react-stately/data@3.11.5 - - @react-stately/datepicker@3.10.0 - - @react-stately/dnd@3.4.0 - - @react-stately/form@3.0.4 - - @react-stately/grid@3.9.0 - - @react-stately/layout@4.0.0 - - @react-stately/list@3.10.6 - - @react-stately/menu@3.8.0 - - @react-stately/numberfield@3.9.4 - - @react-stately/overlays@3.6.8 - - @react-stately/radio@3.10.5 - - @react-stately/searchfield@3.5.4 - - @react-stately/select@3.6.5 - - @react-stately/selection@3.16.0 - - @react-stately/slider@3.5.5 - - @react-stately/steplist@3.0.0-alpha.6 - - @react-stately/table@3.12.0 - - @react-stately/tabs@3.6.7 - - @react-stately/toast@3.0.0-beta.5 - - @react-stately/toggle@3.7.5 - - @react-stately/tooltip@3.4.10 - - @react-stately/tree@3.8.2 - - @react-stately/utils@3.10.2 - - @react-stately/virtualizer@4.0.0 + - @react-stately-nutrient/calendar@3.5.2 + - @react-stately-nutrient/checkbox@3.6.6 + - @react-stately-nutrient/collections@3.10.8 + - @react-stately-nutrient/color@3.7.0 + - @react-stately-nutrient/combobox@3.9.0 + - @react-stately-nutrient/data@3.11.5 + - @react-stately-nutrient/datepicker@3.10.0 + - @react-stately-nutrient/dnd@3.4.0 + - @react-stately-nutrient/form@3.0.4 + - @react-stately-nutrient/grid@3.9.0 + - @react-stately-nutrient/layout@4.0.0 + - @react-stately-nutrient/list@3.10.6 + - @react-stately-nutrient/menu@3.8.0 + - @react-stately-nutrient/numberfield@3.9.4 + - @react-stately-nutrient/overlays@3.6.8 + - @react-stately-nutrient/radio@3.10.5 + - @react-stately-nutrient/searchfield@3.5.4 + - @react-stately-nutrient/select@3.6.5 + - @react-stately-nutrient/selection@3.16.0 + - @react-stately-nutrient/slider@3.5.5 + - @react-stately-nutrient/steplist@3.0.0-alpha.6 + - @react-stately-nutrient/table@3.12.0 + - @react-stately-nutrient/tabs@3.6.7 + - @react-stately-nutrient/toast@3.0.0-beta.5 + - @react-stately-nutrient/toggle@3.7.5 + - @react-stately-nutrient/tooltip@3.4.10 + - @react-stately-nutrient/tree@3.8.2 + - @react-stately-nutrient/utils@3.10.2 + - @react-stately-nutrient/virtualizer@4.0.0 - @react-types/accordion@3.0.0-alpha.22 - @react-types/actionbar@3.1.8 - @react-types/actiongroup@3.4.10 diff --git a/packages/dev/docs/pages/releases/2024-09-30.mdx b/packages/dev/docs/pages/releases/2024-09-30.mdx index 5dd55072e47..f0a1e89f1d1 100644 --- a/packages/dev/docs/pages/releases/2024-09-30.mdx +++ b/packages/dev/docs/pages/releases/2024-09-30.mdx @@ -241,37 +241,37 @@ We have made improvements to the Accordion component, which includes moving away - @react-spectrum/utils@3.11.11 - @react-spectrum/view@3.6.13 - @react-spectrum/well@3.4.17 - - @react-stately/calendar@3.5.5 - - @react-stately/checkbox@3.6.9 - - @react-stately/collections@3.11.0 - - @react-stately/color@3.8.0 - - @react-stately/combobox@3.10.0 - - @react-stately/data@3.11.7 - - @react-stately/datepicker@3.10.3 - - @react-stately/disclosure@3.0.0-alpha.0 - - @react-stately/dnd@3.4.3 - - @react-stately/flags@3.0.4 - - @react-stately/form@3.0.6 - - @react-stately/grid@3.9.3 - - @react-stately/layout@4.0.3 - - @react-stately/list@3.11.0 - - @react-stately/menu@3.8.3 - - @react-stately/numberfield@3.9.7 - - @react-stately/overlays@3.6.11 - - @react-stately/radio@3.10.8 - - @react-stately/searchfield@3.5.7 - - @react-stately/select@3.6.8 - - @react-stately/selection@3.17.0 - - @react-stately/slider@3.5.8 - - @react-stately/steplist@3.0.0-alpha.9 - - @react-stately/table@3.12.3 - - @react-stately/tabs@3.6.10 - - @react-stately/toast@3.0.0-beta.6 - - @react-stately/toggle@3.7.8 - - @react-stately/tooltip@3.4.13 - - @react-stately/tree@3.8.5 - - @react-stately/utils@3.10.4 - - @react-stately/virtualizer@4.1.0 + - @react-stately-nutrient/calendar@3.5.5 + - @react-stately-nutrient/checkbox@3.6.9 + - @react-stately-nutrient/collections@3.11.0 + - @react-stately-nutrient/color@3.8.0 + - @react-stately-nutrient/combobox@3.10.0 + - @react-stately-nutrient/data@3.11.7 + - @react-stately-nutrient/datepicker@3.10.3 + - @react-stately-nutrient/disclosure@3.0.0-alpha.0 + - @react-stately-nutrient/dnd@3.4.3 + - @react-stately-nutrient/flags@3.0.4 + - @react-stately-nutrient/form@3.0.6 + - @react-stately-nutrient/grid@3.9.3 + - @react-stately-nutrient/layout@4.0.3 + - @react-stately-nutrient/list@3.11.0 + - @react-stately-nutrient/menu@3.8.3 + - @react-stately-nutrient/numberfield@3.9.7 + - @react-stately-nutrient/overlays@3.6.11 + - @react-stately-nutrient/radio@3.10.8 + - @react-stately-nutrient/searchfield@3.5.7 + - @react-stately-nutrient/select@3.6.8 + - @react-stately-nutrient/selection@3.17.0 + - @react-stately-nutrient/slider@3.5.8 + - @react-stately-nutrient/steplist@3.0.0-alpha.9 + - @react-stately-nutrient/table@3.12.3 + - @react-stately-nutrient/tabs@3.6.10 + - @react-stately-nutrient/toast@3.0.0-beta.6 + - @react-stately-nutrient/toggle@3.7.8 + - @react-stately-nutrient/tooltip@3.4.13 + - @react-stately-nutrient/tree@3.8.5 + - @react-stately-nutrient/utils@3.10.4 + - @react-stately-nutrient/virtualizer@4.1.0 - @react-types/accordion@3.0.0-alpha.24 - @react-types/actionbar@3.1.10 - @react-types/actiongroup@3.4.12 diff --git a/packages/dev/docs/pages/releases/2024-11-20.mdx b/packages/dev/docs/pages/releases/2024-11-20.mdx index 64f611e88bd..9dcedf9deb4 100644 --- a/packages/dev/docs/pages/releases/2024-11-20.mdx +++ b/packages/dev/docs/pages/releases/2024-11-20.mdx @@ -235,37 +235,37 @@ If you're using an older pre-release version of Accordion, see the [previous rel - @react-spectrum/utils@3.12.0 - @react-spectrum/view@3.6.14 - @react-spectrum/well@3.4.18 - - @react-stately/calendar@3.6.0 - - @react-stately/checkbox@3.6.10 - - @react-stately/collections@3.12.0 - - @react-stately/color@3.8.1 - - @react-stately/combobox@3.10.1 - - @react-stately/data@3.12.0 - - @react-stately/datepicker@3.11.0 - - @react-stately/disclosure@3.0.0 - - @react-stately/dnd@3.5.0 - - @react-stately/flags@3.0.5 - - @react-stately/form@3.1.0 - - @react-stately/grid@3.10.0 - - @react-stately/layout@4.1.0 - - @react-stately/list@3.11.1 - - @react-stately/menu@3.9.0 - - @react-stately/numberfield@3.9.8 - - @react-stately/overlays@3.6.12 - - @react-stately/radio@3.10.9 - - @react-stately/searchfield@3.5.8 - - @react-stately/select@3.6.9 - - @react-stately/selection@3.18.0 - - @react-stately/slider@3.6.0 - - @react-stately/steplist@3.0.0-alpha.10 - - @react-stately/table@3.13.0 - - @react-stately/tabs@3.7.0 - - @react-stately/toast@3.0.0-beta.7 - - @react-stately/toggle@3.8.0 - - @react-stately/tooltip@3.5.0 - - @react-stately/tree@3.8.6 - - @react-stately/utils@3.10.5 - - @react-stately/virtualizer@4.2.0 + - @react-stately-nutrient/calendar@3.6.0 + - @react-stately-nutrient/checkbox@3.6.10 + - @react-stately-nutrient/collections@3.12.0 + - @react-stately-nutrient/color@3.8.1 + - @react-stately-nutrient/combobox@3.10.1 + - @react-stately-nutrient/data@3.12.0 + - @react-stately-nutrient/datepicker@3.11.0 + - @react-stately-nutrient/disclosure@3.0.0 + - @react-stately-nutrient/dnd@3.5.0 + - @react-stately-nutrient/flags@3.0.5 + - @react-stately-nutrient/form@3.1.0 + - @react-stately-nutrient/grid@3.10.0 + - @react-stately-nutrient/layout@4.1.0 + - @react-stately-nutrient/list@3.11.1 + - @react-stately-nutrient/menu@3.9.0 + - @react-stately-nutrient/numberfield@3.9.8 + - @react-stately-nutrient/overlays@3.6.12 + - @react-stately-nutrient/radio@3.10.9 + - @react-stately-nutrient/searchfield@3.5.8 + - @react-stately-nutrient/select@3.6.9 + - @react-stately-nutrient/selection@3.18.0 + - @react-stately-nutrient/slider@3.6.0 + - @react-stately-nutrient/steplist@3.0.0-alpha.10 + - @react-stately-nutrient/table@3.13.0 + - @react-stately-nutrient/tabs@3.7.0 + - @react-stately-nutrient/toast@3.0.0-beta.7 + - @react-stately-nutrient/toggle@3.8.0 + - @react-stately-nutrient/tooltip@3.5.0 + - @react-stately-nutrient/tree@3.8.6 + - @react-stately-nutrient/utils@3.10.5 + - @react-stately-nutrient/virtualizer@4.2.0 - @react-types/accordion@3.0.0-alpha.25 - @react-types/actionbar@3.1.11 - @react-types/actiongroup@3.4.13 diff --git a/packages/dev/docs/pages/releases/2025-01-15.mdx b/packages/dev/docs/pages/releases/2025-01-15.mdx index 221ca3d52d6..c2efc068a36 100644 --- a/packages/dev/docs/pages/releases/2025-01-15.mdx +++ b/packages/dev/docs/pages/releases/2025-01-15.mdx @@ -197,35 +197,35 @@ We are also excited to announce the alpha release of the [@react-aria-nutrient/t - @react-spectrum/utils@3.12.1 - @react-spectrum/view@3.6.15 - @react-spectrum/well@3.4.19 - - @react-stately/autocomplete@3.0.0-alpha.0 - - @react-stately/calendar@3.7.0 - - @react-stately/checkbox@3.6.11 - - @react-stately/collections@3.12.1 - - @react-stately/color@3.8.2 - - @react-stately/combobox@3.10.2 - - @react-stately/data@3.12.1 - - @react-stately/datepicker@3.12.0 - - @react-stately/disclosure@3.0.1 - - @react-stately/dnd@3.5.1 - - @react-stately/form@3.1.1 - - @react-stately/grid@3.10.1 - - @react-stately/layout@4.1.1 - - @react-stately/list@3.11.2 - - @react-stately/menu@3.9.1 - - @react-stately/numberfield@3.9.9 - - @react-stately/overlays@3.6.13 - - @react-stately/radio@3.10.10 - - @react-stately/searchfield@3.5.9 - - @react-stately/select@3.6.10 - - @react-stately/selection@3.19.0 - - @react-stately/slider@3.6.1 - - @react-stately/steplist@3.0.0-alpha.11 - - @react-stately/table@3.13.1 - - @react-stately/tabs@3.7.1 - - @react-stately/toggle@3.8.1 - - @react-stately/tooltip@3.5.1 - - @react-stately/tree@3.8.7 - - @react-stately/virtualizer@4.2.1 + - @react-stately-nutrient/autocomplete@3.0.0-alpha.0 + - @react-stately-nutrient/calendar@3.7.0 + - @react-stately-nutrient/checkbox@3.6.11 + - @react-stately-nutrient/collections@3.12.1 + - @react-stately-nutrient/color@3.8.2 + - @react-stately-nutrient/combobox@3.10.2 + - @react-stately-nutrient/data@3.12.1 + - @react-stately-nutrient/datepicker@3.12.0 + - @react-stately-nutrient/disclosure@3.0.1 + - @react-stately-nutrient/dnd@3.5.1 + - @react-stately-nutrient/form@3.1.1 + - @react-stately-nutrient/grid@3.10.1 + - @react-stately-nutrient/layout@4.1.1 + - @react-stately-nutrient/list@3.11.2 + - @react-stately-nutrient/menu@3.9.1 + - @react-stately-nutrient/numberfield@3.9.9 + - @react-stately-nutrient/overlays@3.6.13 + - @react-stately-nutrient/radio@3.10.10 + - @react-stately-nutrient/searchfield@3.5.9 + - @react-stately-nutrient/select@3.6.10 + - @react-stately-nutrient/selection@3.19.0 + - @react-stately-nutrient/slider@3.6.1 + - @react-stately-nutrient/steplist@3.0.0-alpha.11 + - @react-stately-nutrient/table@3.13.1 + - @react-stately-nutrient/tabs@3.7.1 + - @react-stately-nutrient/toggle@3.8.1 + - @react-stately-nutrient/tooltip@3.5.1 + - @react-stately-nutrient/tree@3.8.7 + - @react-stately-nutrient/virtualizer@4.2.1 - @react-types/accordion@3.0.0-alpha.26 - @react-types/actionbar@3.1.12 - @react-types/actiongroup@3.4.14 diff --git a/packages/dev/docs/pages/releases/2025-03-05.mdx b/packages/dev/docs/pages/releases/2025-03-05.mdx index 96d320fd675..a1a0544e4db 100644 --- a/packages/dev/docs/pages/releases/2025-03-05.mdx +++ b/packages/dev/docs/pages/releases/2025-03-05.mdx @@ -244,37 +244,37 @@ Autocomplete - @react-spectrum/utils@3.12.2 - @react-spectrum/view@3.6.16 - @react-spectrum/well@3.4.20 - - @react-stately/autocomplete@3.0.0-beta.0 - - @react-stately/calendar@3.7.1 - - @react-stately/checkbox@3.6.12 - - @react-stately/collections@3.12.2 - - @react-stately/color@3.8.3 - - @react-stately/combobox@3.10.3 - - @react-stately/data@3.12.2 - - @react-stately/datepicker@3.13.0 - - @react-stately/disclosure@3.0.2 - - @react-stately/dnd@3.5.2 - - @react-stately/flags@3.1.0 - - @react-stately/form@3.1.2 - - @react-stately/grid@3.11.0 - - @react-stately/layout@4.2.0 - - @react-stately/list@3.12.0 - - @react-stately/menu@3.9.2 - - @react-stately/numberfield@3.9.10 - - @react-stately/overlays@3.6.14 - - @react-stately/radio@3.10.11 - - @react-stately/searchfield@3.5.10 - - @react-stately/select@3.6.11 - - @react-stately/selection@3.20.0 - - @react-stately/slider@3.6.2 - - @react-stately/steplist@3.0.0-alpha.12 - - @react-stately/table@3.14.0 - - @react-stately/tabs@3.8.0 - - @react-stately/toast@3.0.0 - - @react-stately/toggle@3.8.2 - - @react-stately/tooltip@3.5.2 - - @react-stately/tree@3.8.8 - - @react-stately/virtualizer@4.3.0 + - @react-stately-nutrient/autocomplete@3.0.0-beta.0 + - @react-stately-nutrient/calendar@3.7.1 + - @react-stately-nutrient/checkbox@3.6.12 + - @react-stately-nutrient/collections@3.12.2 + - @react-stately-nutrient/color@3.8.3 + - @react-stately-nutrient/combobox@3.10.3 + - @react-stately-nutrient/data@3.12.2 + - @react-stately-nutrient/datepicker@3.13.0 + - @react-stately-nutrient/disclosure@3.0.2 + - @react-stately-nutrient/dnd@3.5.2 + - @react-stately-nutrient/flags@3.1.0 + - @react-stately-nutrient/form@3.1.2 + - @react-stately-nutrient/grid@3.11.0 + - @react-stately-nutrient/layout@4.2.0 + - @react-stately-nutrient/list@3.12.0 + - @react-stately-nutrient/menu@3.9.2 + - @react-stately-nutrient/numberfield@3.9.10 + - @react-stately-nutrient/overlays@3.6.14 + - @react-stately-nutrient/radio@3.10.11 + - @react-stately-nutrient/searchfield@3.5.10 + - @react-stately-nutrient/select@3.6.11 + - @react-stately-nutrient/selection@3.20.0 + - @react-stately-nutrient/slider@3.6.2 + - @react-stately-nutrient/steplist@3.0.0-alpha.12 + - @react-stately-nutrient/table@3.14.0 + - @react-stately-nutrient/tabs@3.8.0 + - @react-stately-nutrient/toast@3.0.0 + - @react-stately-nutrient/toggle@3.8.2 + - @react-stately-nutrient/tooltip@3.5.2 + - @react-stately-nutrient/tree@3.8.8 + - @react-stately-nutrient/virtualizer@4.3.0 - @react-types/actionbar@3.1.13 - @react-types/actiongroup@3.4.15 - @react-types/autocomplete@3.0.0-alpha.29 diff --git a/packages/dev/parcel-transformer-mdx-docs/MDXTransformer.js b/packages/dev/parcel-transformer-mdx-docs/MDXTransformer.js index a03b0571d98..31a4f776914 100644 --- a/packages/dev/parcel-transformer-mdx-docs/MDXTransformer.js +++ b/packages/dev/parcel-transformer-mdx-docs/MDXTransformer.js @@ -567,7 +567,7 @@ function transformExample(node, preRelease, keepIndividualImports) { /* Replace individual package imports in the code * with monorepo imports if building for production and not a pre-release */ - if (!preRelease && /@react-spectrum|@react-aria|@react-stately/.test(node.value)) { + if (!preRelease && /@react-spectrum|@react-aria|@react-stately-nutrient/.test(node.value)) { let specifiers = {}; let typeSpecifiers = {}; const recast = require('recast'); diff --git a/packages/react-aria-components/docs/Autocomplete.mdx b/packages/react-aria-components/docs/Autocomplete.mdx index f9e2059d21e..d3f9951be5d 100644 --- a/packages/react-aria-components/docs/Autocomplete.mdx +++ b/packages/react-aria-components/docs/Autocomplete.mdx @@ -15,7 +15,7 @@ import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTab import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; import ChevronRight from '@spectrum-icons/workflow/ChevronRight'; -import statelyDocs from 'docs:@react-stately/autocomplete'; +import statelyDocs from 'docs:@react-stately-nutrient/autocomplete'; import {ExampleCard} from '@react-spectrum/docs/src/ExampleCard'; import {ExampleList} from '@react-spectrum/docs/src/ExampleList'; import SearchField from '@react-spectrum/docs/pages/assets/component-illustrations/SearchField.svg'; @@ -338,7 +338,7 @@ This example uses the [useAsyncList](../react-stately/useAsyncList.html) hook to and filtering of data from a server. No `filter` prop is provided to `Autocomplete` since filtering is done on the server. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; function AsyncLoadingExample() { let list = useAsyncList<{name: string}>({ diff --git a/packages/react-aria-components/docs/Calendar.mdx b/packages/react-aria-components/docs/Calendar.mdx index 17c21a55662..4b95403cb3f 100644 --- a/packages/react-aria-components/docs/Calendar.mdx +++ b/packages/react-aria-components/docs/Calendar.mdx @@ -13,7 +13,7 @@ export default Layout; import docs from 'docs:react-aria-components'; import i18nDocs from 'docs:@internationalized/date'; import ariaDocs from 'docs:@react-aria-nutrient/calendar'; -import statelyDocs from 'docs:@react-stately/calendar'; +import statelyDocs from 'docs:@react-stately-nutrient/calendar'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/CheckboxGroup.mdx b/packages/react-aria-components/docs/CheckboxGroup.mdx index 79b02f19d1d..b570c9cabbd 100644 --- a/packages/react-aria-components/docs/CheckboxGroup.mdx +++ b/packages/react-aria-components/docs/CheckboxGroup.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/checkbox'; +import statelyDocs from 'docs:@react-stately-nutrient/checkbox'; import typesDocs from 'docs:@react-types/shared/src/events.d.ts'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; diff --git a/packages/react-aria-components/docs/ColorArea.mdx b/packages/react-aria-components/docs/ColorArea.mdx index 5c8e861f16f..99828f5e850 100644 --- a/packages/react-aria-components/docs/ColorArea.mdx +++ b/packages/react-aria-components/docs/ColorArea.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/ColorField.mdx b/packages/react-aria-components/docs/ColorField.mdx index 39c13e3acef..cdf58591f89 100644 --- a/packages/react-aria-components/docs/ColorField.mdx +++ b/packages/react-aria-components/docs/ColorField.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/ColorPicker.mdx b/packages/react-aria-components/docs/ColorPicker.mdx index 17494ab7d04..0c18c9a556f 100644 --- a/packages/react-aria-components/docs/ColorPicker.mdx +++ b/packages/react-aria-components/docs/ColorPicker.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/ColorSlider.mdx b/packages/react-aria-components/docs/ColorSlider.mdx index 92b40f3494c..e187ecd238b 100644 --- a/packages/react-aria-components/docs/ColorSlider.mdx +++ b/packages/react-aria-components/docs/ColorSlider.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/ColorSwatch.mdx b/packages/react-aria-components/docs/ColorSwatch.mdx index eec5b919410..cce4dc37a4f 100644 --- a/packages/react-aria-components/docs/ColorSwatch.mdx +++ b/packages/react-aria-components/docs/ColorSwatch.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/ColorSwatchPicker.mdx b/packages/react-aria-components/docs/ColorSwatchPicker.mdx index 0b1fc0195d0..ce42b518e04 100644 --- a/packages/react-aria-components/docs/ColorSwatchPicker.mdx +++ b/packages/react-aria-components/docs/ColorSwatchPicker.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/ColorWheel.mdx b/packages/react-aria-components/docs/ColorWheel.mdx index c011379220b..587992eb66e 100644 --- a/packages/react-aria-components/docs/ColorWheel.mdx +++ b/packages/react-aria-components/docs/ColorWheel.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/color'; +import statelyDocs from 'docs:@react-stately-nutrient/color'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/ComboBox.mdx b/packages/react-aria-components/docs/ComboBox.mdx index c1b26e3cc37..6dd831ee0c8 100644 --- a/packages/react-aria-components/docs/ComboBox.mdx +++ b/packages/react-aria-components/docs/ComboBox.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/combobox'; +import statelyDocs from 'docs:@react-stately-nutrient/combobox'; import comboboxUtils from 'docs:@react-aria-nutrient/test-utils/src/combobox.ts'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable, ClassAPI, VersionBadge} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; @@ -905,7 +905,7 @@ state to the user, or support features like infinite scroll to load more data. S of a ComboBox supporting those features. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string diff --git a/packages/react-aria-components/docs/DateField.mdx b/packages/react-aria-components/docs/DateField.mdx index 807019e1b1e..6c2d40a4c16 100644 --- a/packages/react-aria-components/docs/DateField.mdx +++ b/packages/react-aria-components/docs/DateField.mdx @@ -12,7 +12,7 @@ export default Layout; import docs from 'docs:react-aria-components'; import i18nDocs from 'docs:@internationalized/date'; -import statelyDocs from 'docs:@react-stately/datepicker'; +import statelyDocs from 'docs:@react-stately-nutrient/datepicker'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/DatePicker.mdx b/packages/react-aria-components/docs/DatePicker.mdx index 50ca1b6e20c..a0b40d4e994 100644 --- a/packages/react-aria-components/docs/DatePicker.mdx +++ b/packages/react-aria-components/docs/DatePicker.mdx @@ -12,7 +12,7 @@ export default Layout; import docs from 'docs:react-aria-components'; import i18nDocs from 'docs:@internationalized/date'; -import statelyDocs from 'docs:@react-stately/datepicker'; +import statelyDocs from 'docs:@react-stately-nutrient/datepicker'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/DateRangePicker.mdx b/packages/react-aria-components/docs/DateRangePicker.mdx index c257f57d50c..24ff467f026 100644 --- a/packages/react-aria-components/docs/DateRangePicker.mdx +++ b/packages/react-aria-components/docs/DateRangePicker.mdx @@ -12,7 +12,7 @@ export default Layout; import docs from 'docs:react-aria-components'; import i18nDocs from 'docs:@internationalized/date'; -import statelyDocs from 'docs:@react-stately/datepicker'; +import statelyDocs from 'docs:@react-stately-nutrient/datepicker'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/Dialog.mdx b/packages/react-aria-components/docs/Dialog.mdx index 10d79a1051a..258c4cf26a2 100644 --- a/packages/react-aria-components/docs/Dialog.mdx +++ b/packages/react-aria-components/docs/Dialog.mdx @@ -12,7 +12,7 @@ export default Layout; import docs from 'docs:react-aria-components'; import typesDocs from 'docs:@react-types/overlays'; -import overlayStatelyDocs from 'docs:@react-stately/overlays'; +import overlayStatelyDocs from 'docs:@react-stately-nutrient/overlays'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/Disclosure.mdx b/packages/react-aria-components/docs/Disclosure.mdx index fdb3de0aeea..2bb05acb53c 100644 --- a/packages/react-aria-components/docs/Disclosure.mdx +++ b/packages/react-aria-components/docs/Disclosure.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/disclosure'; +import statelyDocs from 'docs:@react-stately-nutrient/disclosure'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/DisclosureGroup.mdx b/packages/react-aria-components/docs/DisclosureGroup.mdx index b59eea49116..4ded2030740 100644 --- a/packages/react-aria-components/docs/DisclosureGroup.mdx +++ b/packages/react-aria-components/docs/DisclosureGroup.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/disclosure'; +import statelyDocs from 'docs:@react-stately-nutrient/disclosure'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/GridList.mdx b/packages/react-aria-components/docs/GridList.mdx index 608f0f65307..7dd31866be3 100644 --- a/packages/react-aria-components/docs/GridList.mdx +++ b/packages/react-aria-components/docs/GridList.mdx @@ -614,7 +614,7 @@ This accepts a list of item ids that are disabled. An item is considered disable This example uses the [useAsyncList](../react-stately/useAsyncList.html) hook to handle asynchronous loading of data from a server. You may additionally want to display a spinner to indicate the loading state to the user, or support features like infinite scroll to load more data. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string diff --git a/packages/react-aria-components/docs/ListBox.mdx b/packages/react-aria-components/docs/ListBox.mdx index 32c9d2e9296..b85147b53c7 100644 --- a/packages/react-aria-components/docs/ListBox.mdx +++ b/packages/react-aria-components/docs/ListBox.mdx @@ -782,7 +782,7 @@ of data from a server. You may additionally want to display a spinner to indicat state to the user, or support features like infinite scroll to load more data. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string diff --git a/packages/react-aria-components/docs/NumberField.mdx b/packages/react-aria-components/docs/NumberField.mdx index 8e064a3d0e8..afdecc7c11c 100644 --- a/packages/react-aria-components/docs/NumberField.mdx +++ b/packages/react-aria-components/docs/NumberField.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/numberfield'; +import statelyDocs from 'docs:@react-stately-nutrient/numberfield'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/RadioGroup.mdx b/packages/react-aria-components/docs/RadioGroup.mdx index 0bb46a05701..42e3ce9bb95 100644 --- a/packages/react-aria-components/docs/RadioGroup.mdx +++ b/packages/react-aria-components/docs/RadioGroup.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/radio'; +import statelyDocs from 'docs:@react-stately-nutrient/radio'; import typesDocs from 'docs:@react-types/shared/src/events.d.ts'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; diff --git a/packages/react-aria-components/docs/RangeCalendar.mdx b/packages/react-aria-components/docs/RangeCalendar.mdx index 8d736bcdece..980b3c74931 100644 --- a/packages/react-aria-components/docs/RangeCalendar.mdx +++ b/packages/react-aria-components/docs/RangeCalendar.mdx @@ -12,7 +12,7 @@ export default Layout; import docs from 'docs:react-aria-components'; import i18nDocs from 'docs:@internationalized/date'; -import statelyDocs from 'docs:@react-stately/calendar'; +import statelyDocs from 'docs:@react-stately-nutrient/calendar'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/SearchField.mdx b/packages/react-aria-components/docs/SearchField.mdx index f6ca170c8fd..468b01b39ab 100644 --- a/packages/react-aria-components/docs/SearchField.mdx +++ b/packages/react-aria-components/docs/SearchField.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/searchfield'; +import statelyDocs from 'docs:@react-stately-nutrient/searchfield'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/Select.mdx b/packages/react-aria-components/docs/Select.mdx index 59e661dd2ca..3ea0ef21b1d 100644 --- a/packages/react-aria-components/docs/Select.mdx +++ b/packages/react-aria-components/docs/Select.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/select'; +import statelyDocs from 'docs:@react-stately-nutrient/select'; import selectUtil from 'docs:@react-aria-nutrient/test-utils/src/select.ts'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable, ClassAPI, VersionBadge} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; @@ -624,7 +624,7 @@ of data from a server. You may additionally want to display a spinner to indicat state to the user. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string diff --git a/packages/react-aria-components/docs/Slider.mdx b/packages/react-aria-components/docs/Slider.mdx index 4bfb2a5586b..0c95ad594fa 100644 --- a/packages/react-aria-components/docs/Slider.mdx +++ b/packages/react-aria-components/docs/Slider.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/slider'; +import statelyDocs from 'docs:@react-stately-nutrient/slider'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/Table.mdx b/packages/react-aria-components/docs/Table.mdx index b874eeffecd..37c0c8218a2 100644 --- a/packages/react-aria-components/docs/Table.mdx +++ b/packages/react-aria-components/docs/Table.mdx @@ -777,7 +777,7 @@ This example performs client side sorting by passing a `sort` function to the [u See the docs for more information on how to perform server side sorting. ```tsx example -import {useAsyncList} from '@react-stately/data'; +import {useAsyncList} from '@react-stately-nutrient/data'; interface Character { name: string, diff --git a/packages/react-aria-components/docs/Tabs.mdx b/packages/react-aria-components/docs/Tabs.mdx index 16ca47b2dd6..5efb857a595 100644 --- a/packages/react-aria-components/docs/Tabs.mdx +++ b/packages/react-aria-components/docs/Tabs.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/tabs'; +import statelyDocs from 'docs:@react-stately-nutrient/tabs'; import {PropTable, HeaderInfo, TypeLink, PageDescription, StateTable, ContextTable, ClassAPI, VersionBadge} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; diff --git a/packages/react-aria-components/docs/TagGroup.mdx b/packages/react-aria-components/docs/TagGroup.mdx index 46f2286916e..169a4d6e809 100644 --- a/packages/react-aria-components/docs/TagGroup.mdx +++ b/packages/react-aria-components/docs/TagGroup.mdx @@ -11,7 +11,7 @@ import {Layout} from '@react-spectrum/docs'; export default Layout; import docs from 'docs:react-aria-components'; -import statelyDocs from 'docs:@react-stately/list'; +import statelyDocs from 'docs:@react-stately-nutrient/list'; import {PropTable, HeaderInfo, PageDescription, StateTable, ContextTable, TypeLink} from '@react-spectrum/docs'; import styles from '@react-spectrum/docs/src/docs.css'; import packageData from 'react-aria-components/package.json'; @@ -253,7 +253,7 @@ function MyTag({children, ...props}: TagProps) { The `onRemove` prop can be used to allow the user to remove tags. In the above example, an additional `