Skip to content

Commit 72be76a

Browse files
authored
Export pressScale and focusRing utilities from S2 (#7078)
* Export pressScale and focusRing utilities from S2 * Also export StyleString type
1 parent 766a5f0 commit 72be76a

File tree

100 files changed

+145
-129
lines changed

Some content is hidden

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

100 files changed

+145
-129
lines changed

packages/@react-spectrum/s2/chromatic/ActionButton.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import type {Meta} from '@storybook/react';
1717
import NewIcon from '../s2wf-icons/S2_Icon_New_20_N.svg';
1818
import {shortName} from './utils';
1919
import {StaticColorProvider} from '../stories/utils';
20-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
20+
import {style} from '../style' with { type: 'macro' };
2121

2222
const meta: Meta<typeof ActionButton> = {
2323
component: ActionButton,

packages/@react-spectrum/s2/chromatic/Avatar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import {Avatar} from '../src';
1414
import type {Meta} from '@storybook/react';
15-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
15+
import {style} from '../style' with { type: 'macro' };
1616

1717
const meta: Meta<typeof Avatar> = {
1818
component: Avatar,

packages/@react-spectrum/s2/chromatic/Badge.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {Example} from '../stories/Badge.stories';
1515
import {generatePowerset} from '@react-spectrum/story-utils';
1616
import type {Meta} from '@storybook/react';
1717
import {shortName} from './utils';
18-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
18+
import {style} from '../style' with { type: 'macro' };
1919

2020
const meta: Meta<typeof Badge> = {
2121
component: Badge,

packages/@react-spectrum/s2/chromatic/Breadcrumbs.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {generatePowerset} from '@react-spectrum/story-utils';
1515
import {Many} from '../stories/Breadcrumbs.stories';
1616
import type {Meta, StoryObj} from '@storybook/react';
1717
import {shortName} from './utils';
18-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
18+
import {style} from '../style' with { type: 'macro' };
1919
import {userEvent, within} from '@storybook/testing-library';
2020

2121
const meta: Meta<typeof Breadcrumbs> = {

packages/@react-spectrum/s2/chromatic/Button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type {Meta} from '@storybook/react';
1616
import NewIcon from '../s2wf-icons/S2_Icon_New_20_N.svg';
1717
import {shortName} from './utils';
1818
import {StaticColorProvider} from '../stories/utils';
19-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
19+
import {style} from '../style' with { type: 'macro' };
2020
import {Example as WithWrapping} from '../stories/Button.stories';
2121

2222
const meta: Meta<typeof Button> = {

packages/@react-spectrum/s2/chromatic/ButtonGroup.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {generatePowerset} from '@react-spectrum/story-utils';
1515
import type {Meta} from '@storybook/react';
1616
import NewIcon from '../s2wf-icons/S2_Icon_New_20_N.svg';
1717
import {shortName} from './utils';
18-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
18+
import {style} from '../style' with { type: 'macro' };
1919

2020
const meta: Meta<typeof ButtonGroup> = {
2121
component: ButtonGroup,

packages/@react-spectrum/s2/chromatic/Checkbox.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {Checkbox} from '../src';
1414
import {generateComboChunks, shortName} from './utils';
1515
import {LongLabel} from '../stories/Checkbox.stories';
1616
import type {Meta} from '@storybook/react';
17-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
17+
import {style} from '../style' with { type: 'macro' };
1818

1919
const meta: Meta<typeof Checkbox> = {
2020
component: Checkbox,

packages/@react-spectrum/s2/chromatic/CheckboxGroup.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import {Checkbox, CheckboxGroup, Content, ContextualHelp, Heading} from '../src';
1414
import {generateComboChunks, shortName} from './utils';
1515
import type {Meta} from '@storybook/react';
16-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
16+
import {style} from '../style' with { type: 'macro' };
1717

1818
const meta: Meta<typeof CheckboxGroup> = {
1919
component: CheckboxGroup,

packages/@react-spectrum/s2/chromatic/ColorField.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import {ColorField} from '../src';
1414
import {generateComboChunks, shortName} from './utils';
1515
import type {Meta} from '@storybook/react';
16-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
16+
import {style} from '../style' with { type: 'macro' };
1717

1818
const meta: Meta<typeof ColorField> = {
1919
component: ColorField,

packages/@react-spectrum/s2/chromatic/ColorSlider.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {ColorSlider, Content, ContextualHelp, Heading} from '../src';
1414
import {generatePowerset} from '@react-spectrum/story-utils';
1515
import type {Meta} from '@storybook/react';
1616
import {shortName} from './utils';
17-
import {style} from '../style/spectrum-theme' with { type: 'macro' };
17+
import {style} from '../style' with { type: 'macro' };
1818

1919
const meta: Meta<typeof ColorSlider> = {
2020
component: ColorSlider,

0 commit comments

Comments
 (0)