Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .chromatic-fc/custom-addons/chromatic/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expressThemes, locales, S2ColorThemes, scales, themes} from '../../constants';
import {makeDecorator} from '@storybook/preview-api';
import {makeDecorator} from 'storybook/preview-api';
import {Provider, View} from '@adobe/react-spectrum';
import {Provider as S2Provider} from '@react-spectrum/s2';
import React, {useEffect} from 'react';
Expand Down
2 changes: 1 addition & 1 deletion .chromatic-fc/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
'../packages/@react-spectrum/s2/chromatic/*.stories.@(js|jsx|mjs|ts|tsx)'
],
addons: process.env.NODE_ENV === 'production' ? [] : [
'@storybook/addon-actions',
'storybook/actions',
'@storybook/addon-a11y'
],
typescript: {
Expand Down
2 changes: 1 addition & 1 deletion .chromatic-fc/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons} from '@storybook/manager-api';
import {addons} from 'storybook/manager-api';

addons.setConfig({
enableShortcuts: false,
Expand Down
2 changes: 1 addition & 1 deletion .chromatic-fc/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {configureActions} from '@storybook/addon-actions';
import {configureActions} from 'storybook/actions';
import React from 'react';
import {VerticalCenter} from './layout';
import {withChromaticProvider} from './custom-addons/chromatic';
Expand Down
2 changes: 1 addition & 1 deletion .chromatic/custom-addons/chromatic/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {expressThemes, locales, S2Backgrounds, S2ColorThemes, scales, themes} from '../../constants';
import {makeDecorator} from '@storybook/preview-api';
import {makeDecorator} from 'storybook/preview-api';
import {Provider, View} from '@adobe/react-spectrum';
import {Provider as S2Provider} from '@react-spectrum/s2';
import React, {useEffect} from 'react';
Expand Down
2 changes: 1 addition & 1 deletion .chromatic/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
'../packages/@react-spectrum/s2/chromatic/*.stories.@(js|jsx|mjs|ts|tsx)'
],
addons: process.env.NODE_ENV === 'production' ? [] : [
'@storybook/addon-actions',
'storybook/actions',
'@storybook/addon-a11y'
],
typescript: {
Expand Down
2 changes: 1 addition & 1 deletion .chromatic/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons} from '@storybook/manager-api';
import {addons} from 'storybook/manager-api';

addons.setConfig({
enableShortcuts: false,
Expand Down
2 changes: 1 addition & 1 deletion .chromatic/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {configureActions} from '@storybook/addon-actions';
import {configureActions} from 'storybook/actions';
import React from 'react';
import {VerticalCenter} from './layout';
import {withChromaticProvider} from './custom-addons/chromatic';
Expand Down
2 changes: 1 addition & 1 deletion .circleci/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function run() {
break;
}
}
} else if (process.env.CIRCLE_BRANCH === 'main') {
} else if (!process.env.CIRCLE_PULL_REQUEST) {
// If it isn't a PR commit, then we are on main. Create a comment for the test app and docs build
await octokit.repos.createCommitComment({
owner: 'adobe',
Expand Down
3 changes: 1 addition & 2 deletions .storybook-s2/custom-addons/provider/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, {useEffect, useState} from 'react';
import {addons} from '@storybook/preview-api';
import {makeDecorator} from '@storybook/preview-api';
import {addons, makeDecorator} from 'storybook/preview-api';
// Importing from src so that HMR works.
// Without this, all HMR updates will bubble through the index.ts and up
// to the root instead of stopping at the story files.
Expand Down
2 changes: 1 addition & 1 deletion .storybook-s2/custom-addons/provider/register.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import {addons, types} from '@storybook/manager-api';
import {addons, types} from 'storybook/manager-api';
import {locales} from '../../constants';
import React, {useEffect, useState} from 'react';

Expand Down
8 changes: 3 additions & 5 deletions .storybook-s2/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { StorybookConfig } from "@storybook/types";
import type { StorybookConfig } from "storybook/internal/types";

// const excludedProps = new Set([
// 'id',
Expand All @@ -20,12 +20,10 @@ const config: StorybookConfig = {
"../packages/@react-spectrum/s2/stories/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
'./custom-addons/provider/register',
// "@storybook/addon-styling-webpack",
"storybook-dark-mode",
"@storybook/addon-docs",
"@vueless/storybook-dark-mode",
"@storybook/addon-a11y",
],
framework: {
Expand Down
2 changes: 1 addition & 1 deletion .storybook-s2/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons} from '@storybook/manager-api';
import {addons} from 'storybook/manager-api';

addons.setConfig({
enableShortcuts: false
Expand Down
17 changes: 9 additions & 8 deletions .storybook-s2/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import '@react-spectrum/s2/page.css';
import { themes } from '@storybook/theming';
import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode';
import { store } from 'storybook-dark-mode/dist/esm/Tool';
import { addons } from '@storybook/preview-api';
import { DocsContainer } from '@storybook/addon-docs';
import { themes } from 'storybook/theming';
import { DARK_MODE_EVENT_NAME } from '@vueless/storybook-dark-mode';
import { store } from '@vueless/storybook-dark-mode/dist/esm/Tool';
import { addons } from 'storybook/preview-api';
import React, { useEffect, useState } from 'react';
import {withProviderSwitcher} from './custom-addons/provider';
import {Controls, Description, Primary, Stories, Subtitle, Title} from '@storybook/blocks';
import {DocsContainer, Controls, Description, Primary, Stories, Subtitle, Title} from '@storybook/addon-docs/blocks';
import './global.css';

const channel = addons.getChannel();
Expand All @@ -30,6 +29,7 @@ const preview = {
var style = getComputedStyle(document.body)
return <DocsContainer {...props} theme={{...(dark ? themes.dark : themes.light), appContentBg: style.getPropertyValue('--s2-container-bg').trim()}} />;
},
codePanel: true,
source: {
// code: null, // Will disable code button, and show "No code available"
transform: (code: string, ctx) => {
Expand All @@ -43,7 +43,8 @@ const preview = {
return code;
}
},
page: () => (
page: () => {
return (
<>
<Title />
<Subtitle />
Expand All @@ -52,7 +53,7 @@ const preview = {
<Controls />
<Stories includePrimary={false} />
</>
)
)}
},
darkMode: {
light: {
Expand Down
4 changes: 2 additions & 2 deletions .storybook/custom-addons/descriptions/register.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {addons, types, useParameter} from '@storybook/manager-api';
import { AddonPanel } from '@storybook/components';
import {addons, types, useParameter} from 'storybook/manager-api';
import { AddonPanel } from 'storybook/internal/components';
import React from 'react';

const ADDON_ID = 'descriptionAddon';
Expand Down
4 changes: 2 additions & 2 deletions .storybook/custom-addons/provider/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {useEffect, useState} from 'react';
import {addons} from '@storybook/preview-api';
import {makeDecorator} from '@storybook/preview-api';
import {addons} from 'storybook/preview-api';
import {makeDecorator} from 'storybook/preview-api';
import {Provider} from '@react-spectrum/provider';
import {expressThemes, themes, defaultTheme} from '../../constants';

Expand Down
2 changes: 1 addition & 1 deletion .storybook/custom-addons/provider/register.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons, types} from '@storybook/manager-api';
import {addons, types} from 'storybook/manager-api';
import {locales} from '../../constants';
import React, {useEffect, useState} from 'react';

Expand Down
2 changes: 1 addition & 1 deletion .storybook/custom-addons/scrolling/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons} from '@storybook/preview-api';
import {addons} from 'storybook/preview-api';
import clsx from 'clsx';
import React, {useEffect, useState} from 'react';

Expand Down
2 changes: 1 addition & 1 deletion .storybook/custom-addons/scrolling/register.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons, types} from '@storybook/manager-api';
import {addons, types} from 'storybook/manager-api';
import React, {useEffect, useState} from 'react';

const ScrollingToolbar = ({api}) => {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/custom-addons/strictmode/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons, makeDecorator} from '@storybook/preview-api';
import {addons, makeDecorator} from 'storybook/preview-api';
import React, {StrictMode, useEffect, useState} from 'react';

function StrictModeDecorator(props) {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/custom-addons/strictmode/register.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons, types} from '@storybook/manager-api';
import {addons, types} from 'storybook/manager-api';
import React, {useEffect, useState} from 'react';

const StrictModeToolBar = ({api}) => {
Expand Down
6 changes: 3 additions & 3 deletions .storybook/custom-addons/theme/register.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {themes} from '@storybook/theming';
import {addons} from '@storybook/manager-api';
import {FORCE_RE_RENDER} from '@storybook/core-events';
import {themes} from 'storybook/theming';
import {addons} from 'storybook/manager-api';
import {FORCE_RE_RENDER} from 'storybook/internal/core-events';
// temporary until we have a better place to grab it from
import * as packageJSON from '../../../packages/@adobe/react-spectrum/package.json';

Expand Down
11 changes: 5 additions & 6 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ module.exports = {
],

addons: [
"@storybook/addon-actions",
"@storybook/addon-a11y",
"@storybook/addon-controls",
"storybook-dark-mode",
'storybook/actions',
'@storybook/addon-a11y',
'@vueless/storybook-dark-mode',
'./custom-addons/provider/register.js',
'./custom-addons/descriptions/register.js',
'./custom-addons/theme/register.js',
Expand All @@ -24,8 +23,8 @@ module.exports = {
},

framework: {
name: "storybook-react-parcel",
options: {},
name: 'storybook-react-parcel',
options: {}
},

core: {
Expand Down
2 changes: 1 addition & 1 deletion .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons} from '@storybook/manager-api';
import {addons} from 'storybook/manager-api';

addons.setConfig({
enableShortcuts: false,
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {configureActions} from '@storybook/addon-actions';
import {configureActions} from 'storybook/actions';
import React from 'react';
import {withProviderSwitcher} from './custom-addons/provider';
import {withScrollingSwitcher} from './custom-addons/scrolling';
Expand Down
2 changes: 1 addition & 1 deletion .storybook/test-runner.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const {configureAxe, checkA11y, injectAxe} = require('axe-playwright');
const {getStoryContext} = require('@storybook/test-runner');
const {getStoryContext} = require('storybook/test-runner');


/*
Expand Down
12 changes: 0 additions & 12 deletions .yarn/patches/@storybook-addon-a11y-npm-8.6.14-2119c57a0f.patch

This file was deleted.

12 changes: 0 additions & 12 deletions .yarn/patches/@storybook-addon-docs-npm-8.6.14-12ab3f55f8.patch

This file was deleted.

45 changes: 0 additions & 45 deletions .yarn/patches/@storybook-react-npm-8.6.14-bc3fc2208a.patch

This file was deleted.

23 changes: 7 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,11 @@
"@react-spectrum/s2-icon-builder": "^0.3.0",
"@spectrum-css/component-builder": "workspace:^",
"@spectrum-css/vars": "^2.3.0",
"@storybook/addon-a11y": "patch:@storybook/addon-a11y@npm%3A8.6.14#~/.yarn/patches/@storybook-addon-a11y-npm-8.6.14-2119c57a0f.patch",
"@storybook/addon-essentials": "^8.6.14",
"@storybook/addon-interactions": "^8.6.14",
"@storybook/addon-jest": "^8.6.14",
"@storybook/addon-links": "^8.6.14",
"@storybook/addon-onboarding": "^8.6.14",
"@storybook/addon-themes": "^8.6.14",
"@storybook/components": "^8.6.14",
"@storybook/manager-api": "^8.6.14",
"@storybook/preview": "^8.6.14",
"@storybook/preview-api": "^8.6.14",
"@storybook/react": "^8.6.14",
"@storybook/addon-a11y": "^9.0.18",
"@storybook/addon-docs": "^9.0.18",
"@storybook/addon-jest": "^9.0.18",
"@storybook/addon-themes": "^9.0.18",
"@storybook/react": "^9.0.18",
"@storybook/test-runner": "^0.22.0",
"@stylistic/eslint-plugin-ts": "^2.9.0",
"@swc/core": "^1.3.36",
Expand All @@ -140,6 +133,7 @@
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@typescript/native-preview": "^7.0.0-dev.20251223.1",
"@vueless/storybook-dark-mode": "^9.0.6",
"@yarnpkg/types": "^4.0.0",
"autoprefixer": "^9.6.0",
"axe-playwright": "^1.1.11",
Expand Down Expand Up @@ -199,8 +193,7 @@
"rimraf": "^6.0.1",
"shadow-dom-testing-library": "^1.13.1",
"sharp": "^0.33.5",
"storybook": "^8.6.14",
"storybook-dark-mode": "^4.0.2",
"storybook": "^9.0.18",
"storybook-react-parcel": "workspace:^",
"tailwind-variants": "patch:tailwind-variants@npm%3A0.3.1#~/.yarn/patches/tailwind-variants-npm-0.3.1-48888516de.patch",
"tailwindcss": "^4.0.0",
Expand Down Expand Up @@ -236,8 +229,6 @@
"@types/node@npm:*": "^24",
"@types/node@npm:^18.0.0": "^24",
"@types/node@npm:>= 8": "^24",
"@storybook/addon-docs@npm:8.6.14": "patch:@storybook/addon-docs@npm%3A8.6.14#~/.yarn/patches/@storybook-addon-docs-npm-8.6.14-12ab3f55f8.patch",
"@storybook/react": "patch:@storybook/react@npm%3A8.6.14#~/.yarn/patches/@storybook-react-npm-8.6.14-bc3fc2208a.patch",
"micromark-extension-mdxjs": "patch:micromark-extension-mdxjs@npm%3A1.0.0#~/.yarn/patches/micromark-extension-mdxjs-npm-1.0.0-d2b6b69e4a.patch",
"remark-mdx": "patch:remark-mdx@npm%3A2.0.0-rc.2#~/.yarn/patches/remark-mdx-npm-2.0.0-rc.2-7a71234e1f.patch",
"remark-parse": "patch:remark-parse@npm%3A10.0.1#~/.yarn/patches/remark-parse-npm-10.0.1-e654d7df78.patch",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import {action} from '@storybook/addon-actions';
import {action} from 'storybook/actions';
import {AriaCheckboxProps, useCheckbox} from '../';
import React from 'react';
import {StoryObj} from '@storybook/react';
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-aria/dnd/stories/DroppableListBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import {action} from '@storybook/addon-actions';
import {action} from 'storybook/actions';
import {chain, mergeProps} from '@react-aria/utils';
import {classNames} from '@react-spectrum/utils';
import dndStyles from './dnd.css';
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-aria/dnd/stories/Reorderable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import {action} from '@storybook/addon-actions';
import {action} from 'storybook/actions';
import {chain, mergeProps, useId} from '@react-aria/utils';
import {classNames} from '@react-spectrum/utils';
import dndStyles from './dnd.css';
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-aria/dnd/stories/VirtualizedListBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import {action} from '@storybook/addon-actions';
import {action} from 'storybook/actions';
import {chain, mergeProps} from '@react-aria/utils';
import {classNames} from '@react-spectrum/utils';
import dndStyles from './dnd.css';
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-aria/dnd/stories/dnd.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import {action} from '@storybook/addon-actions';
import {action} from 'storybook/actions';
import {ActionButton} from '@react-spectrum/button';
import {ActionGroup} from '@react-spectrum/actiongroup';
import {chain, mergeProps, useId} from '@react-aria/utils';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* governing permissions and limitations under the License.
*/

import {action} from '@storybook/addon-actions';
import {action} from 'storybook/actions';
import React, {JSX, useEffect, useRef} from 'react';
import {StoryObj} from '@storybook/react';
import {useInteractOutside, usePress} from '../';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

/* eslint-disable jsx-a11y/no-noninteractive-tabindex */

import {action} from '@storybook/addon-actions';
import {action} from 'storybook/actions';
import {clamp} from '@react-aria/utils';
import {Flex} from '@react-spectrum/layout';
import React, {JSX, useRef, useState} from 'react';
Expand Down
Loading
Loading