Skip to content

Commit fb80acd

Browse files
authored
chore: Rename @react-stately/* to @react-stately-nutrient/* (#10)
* chore: Rename @react-stately/* to @react-stately-nutrient/* * chore: Update yarn.lock to reflect package renaming from @react-stately-nutrient/* to @react-stately/*
1 parent 6f9ccfc commit fb80acd

File tree

703 files changed

+2276
-2276
lines changed

Some content is hidden

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

703 files changed

+2276
-2276
lines changed

examples/rsp-cra-18/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Provider, defaultTheme, Item, TagGroup, Cell, Column, Row, TableBody, Ta
33
import Lighting from './Lighting';
44
import {useState} from 'react'
55
import BodyContent from './BodyContent';
6-
import {enableTableNestedRows} from '@react-stately/flags';
6+
import {enableTableNestedRows} from '@react-stately-nutrient/flags';
77
import ButtonExamples from './sections/ButtonExamples';
88
import CollectionExamples from './sections/CollectionExamples';
99
import DateTimeExamples from './sections/DateTimeExamples';

examples/rsp-next-ts-17/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { useState } from "react";
1414
import Moon from "@spectrum-icons/workflow/Moon";
1515
import Light from "@spectrum-icons/workflow/Light";
1616
import { ToastContainer } from "@react-spectrum/toast";
17-
import {enableTableNestedRows} from '@react-stately/flags';
17+
import {enableTableNestedRows} from '@react-stately-nutrient/flags';
1818

1919
function MyApp({ Component, pageProps }: AppProps) {
2020
const [theme, setTheme] = useState<ColorScheme>("light");

examples/rsp-next-ts/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { useState } from "react";
1313
import Moon from "@spectrum-icons/workflow/Moon";
1414
import Light from "@spectrum-icons/workflow/Light";
1515
import { ToastContainer } from "@react-spectrum/toast";
16-
import {enableTableNestedRows} from '@react-stately/flags';
16+
import {enableTableNestedRows} from '@react-stately-nutrient/flags';
1717
import {useRouter, type NextRouter} from 'next/router';
1818
import Script from 'next/script';
1919

examples/rsp-webpack-4/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Provider, defaultTheme, Item, TagGroup, Cell, Column, InlineAlert, Row,
33
import Lighting from './Lighting';
44
import {useState} from 'react'
55
import BodyContent from './BodyContent';
6-
import {enableTableNestedRows} from '@react-stately/flags';
6+
import {enableTableNestedRows} from '@react-stately-nutrient/flags';
77

88
let columns = [
99
{name: 'Foo', key: 'foo'},

packages/@adobe/react-spectrum/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
"@react-spectrum/tree": "^3.0.1",
9898
"@react-spectrum/view": "^3.6.17",
9999
"@react-spectrum/well": "^3.4.21",
100-
"@react-stately/collections": "^3.12.2",
101-
"@react-stately/data": "^3.12.2",
100+
"@react-stately-nutrient/collections": "^3.12.2",
101+
"@react-stately-nutrient/data": "^3.12.2",
102102
"@react-types/shared": "^3.28.0",
103103
"client-only": "^0.0.1"
104104
},

packages/@adobe/react-spectrum/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export {Tooltip, TooltipTrigger} from '@react-spectrum/tooltip';
6666
export {TreeView, TreeViewItem, TreeViewItemContent} from '@react-spectrum/tree';
6767
export {Content, Footer, Header, View} from '@react-spectrum/view';
6868
export {Well} from '@react-spectrum/well';
69-
export {Item, Section} from '@react-stately/collections';
70-
export {useAsyncList, useListData, useTreeData} from '@react-stately/data';
69+
export {Item, Section} from '@react-stately-nutrient/collections';
70+
export {useAsyncList, useListData, useTreeData} from '@react-stately-nutrient/data';
7171
export {VisuallyHidden} from '@react-aria-nutrient/visually-hidden';
7272
export {useCollator, useDateFormatter, useFilter, useLocale, useLocalizedStringFormatter, useMessageFormatter, useNumberFormatter} from '@react-aria-nutrient/i18n';
7373
export {SSRProvider} from '@react-aria-nutrient/ssr';
@@ -122,7 +122,7 @@ export type {SpectrumTooltipProps, SpectrumTooltipTriggerProps} from '@react-spe
122122
export type {SpectrumTreeViewProps, SpectrumTreeViewItemProps, SpectrumTreeViewItemContentProps} from '@react-spectrum/tree';
123123
export type {ContentProps, FooterProps, HeaderProps, ViewProps} from '@react-spectrum/view';
124124
export type {SpectrumWellProps} from '@react-spectrum/well';
125-
export type {AsyncListData, AsyncListOptions, ListData, ListOptions, TreeData, TreeOptions} from '@react-stately/data';
125+
export type {AsyncListData, AsyncListOptions, ListData, ListOptions, TreeData, TreeOptions} from '@react-stately-nutrient/data';
126126
export type {VisuallyHiddenAria, VisuallyHiddenProps} from '@react-aria-nutrient/visually-hidden';
127127
export type {DateFormatter, DateFormatterOptions, Filter, FormatMessage, Locale, LocalizedStrings} from '@react-aria-nutrient/i18n';
128128
export type {SSRProviderProps} from '@react-aria-nutrient/ssr';

packages/@react-aria/actiongroup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@react-aria-nutrient/i18n": "^3.12.7",
2727
"@react-aria-nutrient/interactions": "^3.24.1",
2828
"@react-aria-nutrient/utils": "^3.28.1",
29-
"@react-stately/list": "^3.12.0",
29+
"@react-stately-nutrient/list": "^3.12.0",
3030
"@react-types/actiongroup": "^3.4.15",
3131
"@react-types/shared": "^3.28.0",
3232
"@swc/helpers": "^0.5.0"

packages/@react-aria/actiongroup/src/useActionGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {AriaActionGroupProps} from '@react-types/actiongroup';
1414
import {createFocusManager} from '@react-aria-nutrient/focus';
1515
import {DOMAttributes, FocusableElement, Orientation, RefObject} from '@react-types/shared';
1616
import {filterDOMProps, useLayoutEffect} from '@react-aria-nutrient/utils';
17-
import {ListState} from '@react-stately/list';
17+
import {ListState} from '@react-stately-nutrient/list';
1818
import {useLocale} from '@react-aria-nutrient/i18n';
1919
import {useState} from 'react';
2020

packages/@react-aria/actiongroup/src/useActionGroupItem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
import {DOMAttributes, FocusableElement, Key, RefObject} from '@react-types/shared';
14-
import {ListState} from '@react-stately/list';
14+
import {ListState} from '@react-stately-nutrient/list';
1515
import {mergeProps, useEffectEvent} from '@react-aria-nutrient/utils';
1616
import {PressProps} from '@react-aria-nutrient/interactions';
1717
import {useEffect} from 'react';

packages/@react-aria/actiongroup/test/useActionGroup.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {createRef} from 'react';
1414
import {FocusableElement} from '@react-types/shared';
1515
import {renderHook} from '@react-spectrum/test-utils-internal';
1616
import {useActionGroup} from '../';
17-
import {useListState} from '@react-stately/list';
17+
import {useListState} from '@react-stately-nutrient/list';
1818

1919
describe('useActionGroup', function () {
2020
let renderActionGroupHook = (props) => {

0 commit comments

Comments
 (0)