Skip to content

Commit 49667e6

Browse files
committed
Merge branch 'main' into upgrade-sb-9
# Conflicts: # .storybook-s2/custom-addons/provider/index.js # .storybook-s2/custom-addons/provider/register.js # .storybook/custom-addons/descriptions/register.js # .storybook/custom-addons/provider/index.js # .storybook/custom-addons/provider/register.js # .storybook/custom-addons/scrolling/register.js # .storybook/custom-addons/strictmode/index.js # .storybook/custom-addons/strictmode/register.js # eslint.config.mjs # package.json # packages/@react-aria/interactions/stories/useInteractOutside.stories.tsx # packages/@react-aria/menu/stories/useMenu.stories.tsx # packages/@react-spectrum/button/stories/LogicButton.stories.tsx # packages/@react-spectrum/card/stories/GalleryCardView.stories.tsx # packages/@react-spectrum/card/stories/GridCardView.stories.tsx # packages/@react-spectrum/card/stories/WaterfallCardView.stories.tsx # packages/@react-spectrum/color/stories/ColorWheel.stories.tsx # packages/@react-spectrum/datepicker/chromatic/DatePicker.stories.tsx # packages/@react-spectrum/datepicker/chromatic/DateRangePicker.stories.tsx # packages/@react-spectrum/label/chromatic/HelpText.stories.tsx # packages/@react-spectrum/label/stories/HelpText.stories.tsx # packages/@react-spectrum/list/stories/ListView.stories.tsx # packages/@react-spectrum/list/stories/ListViewActions.stories.tsx # packages/@react-spectrum/list/stories/ListViewDnD.stories.tsx # packages/@react-spectrum/list/stories/ListViewDnDUtil.stories.tsx # packages/@react-spectrum/list/stories/ListViewSelection.stories.tsx # packages/@react-spectrum/listbox/stories/ListBox.stories.tsx # packages/@react-spectrum/menu/chromatic/Submenu.stories.tsx # packages/@react-spectrum/picker/stories/Picker.stories.tsx # packages/@react-spectrum/s2/chromatic/ActionMenu.stories.tsx # packages/@react-spectrum/s2/chromatic/AlertDialog.stories.tsx # packages/@react-spectrum/s2/chromatic/Breadcrumbs.stories.tsx # packages/@react-spectrum/s2/chromatic/Combobox.stories.tsx # packages/@react-spectrum/s2/chromatic/ContextualHelp.stories.tsx # packages/@react-spectrum/s2/chromatic/Dialog.stories.tsx # packages/@react-spectrum/s2/chromatic/Menu.stories.tsx # packages/@react-spectrum/s2/chromatic/Picker.stories.tsx # packages/@react-spectrum/s2/chromatic/TableView.stories.tsx # packages/@react-spectrum/s2/chromatic/Tooltip.stories.tsx # packages/@react-spectrum/s2/stories/CardView.stories.tsx # packages/@react-spectrum/s2/stories/SegmentedControl.stories.tsx # packages/@react-spectrum/s2/stories/TableView.stories.tsx # packages/@react-spectrum/s2/stories/Tabs.stories.tsx # packages/@react-spectrum/searchwithin/stories/SearchWithin.stories.tsx # packages/@react-spectrum/table/stories/Table.stories.tsx # packages/@react-spectrum/table/stories/TableDnD.stories.tsx # packages/@react-spectrum/table/stories/TableDnDExamples.tsx # packages/@react-spectrum/table/stories/TableDnDUtil.stories.tsx # packages/@react-spectrum/table/stories/TableDnDUtilExamples.tsx # packages/@react-spectrum/table/stories/TreeGridTable.stories.tsx # packages/dev/parcel-config-storybook/package.json # packages/dev/parcel-resolver-storybook/package.json # packages/dev/parcel-transformer-storybook/StoryTransformer.ts # packages/dev/parcel-transformer-storybook/package.json # packages/dev/storybook-builder-parcel/gen-iframe-modern.js # packages/dev/storybook-builder-parcel/gen-preview-modern.js # packages/dev/storybook-builder-parcel/package.json # packages/dev/storybook-react-parcel/package.json # packages/react-aria-components/stories/DateField.stories.tsx # packages/react-aria-components/stories/Menu.stories.tsx # packages/react-aria-components/stories/Toolbar.stories.tsx # packages/react-aria-components/stories/Tree.stories.tsx # starters/docs/.storybook/main.js # starters/docs/.storybook/preview.js # starters/docs/package.json # starters/tailwind/.storybook/main.js # starters/tailwind/package.json # yarn.lock
2 parents 087eed9 + 2d9262c commit 49667e6

File tree

2,224 files changed

+61570
-16829
lines changed

Some content is hidden

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

2,224 files changed

+61570
-16829
lines changed

.chromatic/preview-head.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@
138138
<!--
139139
Load S2 adobe clean VF
140140
-->
141-
<link rel="preload" href="https://use.typekit.net/af/5e77d8/00000000000000007754d3a5/30/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n1&v=3" as="font" crossorigin="anonymous" />
142-
<link rel="stylesheet" href="https://use.typekit.net/yuq6kxz.css">
141+
<link rel="preload" href="https://use.typekit.net/af/b1226a/0000000000000000775c0485/31/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n1&v=3" as="font" crossorigin="anonymous" />
143142

144143
<!--
145144
This web project loads adobe clean, adobe clean serif, myriad-arabic, myriad-hebrew, adobe-clean-han-japanese,

.circleci/comment.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ async function run() {
5353
[RAC Tailwind Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/rac-tailwind/index.html)
5454
[RAC Spectrum + Tailwind Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/rac-spectrum-tailwind/index.html)
5555
[S2 Parcel Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-parcel-example/index.html)
56+
[S2 Custom Icons](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/icon-builder-fixture/index.html)
5657
[S2 Webpack Example](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/s2-webpack-5-example/index.html)
5758
[CRA Test App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/build-stats.txt)
5859
[NextJS App Size](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/publish-stats/next-build-stats.txt)
@@ -80,7 +81,8 @@ async function run() {
8081
8182
* [View the storybook](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook/index.html?path=/story/accordion--default)
8283
* [View the S2 storybook](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/storybook-s2/index.html)
83-
* [View the documentation](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/docs/index.html)`
84+
* [View the documentation](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/docs/index.html)
85+
* [View the S2 docs](https://reactspectrum.blob.core.windows.net/reactspectrum/${process.env.CIRCLE_SHA1}/s2-docs/index.html)`
8486
});
8587
} catch (err) {
8688
console.error(err)

.circleci/config.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ executors:
3737
CACHE_VERSION: v1
3838
working_directory: ~/react-spectrum
3939

40+
rsp-2xlarge:
41+
docker:
42+
- image: cimg/node:22.13.1
43+
resource_class: 2xlarge
44+
environment:
45+
CACHE_VERSION: v1
46+
working_directory: ~/react-spectrum
47+
4048
jobs:
4149
install:
4250
executor: rsp-large
@@ -325,7 +333,7 @@ jobs:
325333
path: ~/junit
326334

327335
test-esm:
328-
executor: rsp-xlarge
336+
executor: rsp-2xlarge
329337
steps:
330338
- restore_cache:
331339
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }}
@@ -470,6 +478,21 @@ jobs:
470478
paths:
471479
- '*/docs/'
472480

481+
s2-docs:
482+
executor: rsp-xlarge
483+
steps:
484+
- restore_cache:
485+
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }}
486+
487+
- run:
488+
name: build s2 docs
489+
command: make s2-docs
490+
491+
- persist_to_workspace:
492+
root: dist
493+
paths:
494+
- '*/s2-docs/'
495+
473496
verdaccio:
474497
executor: rsp-xlarge
475498
steps:
@@ -493,7 +516,7 @@ jobs:
493516
- storage
494517

495518
v-docs:
496-
executor: rsp-xlarge
519+
executor: rsp-2xlarge
497520
steps:
498521
- restore_cache:
499522
key: react-spectrum-{{ .Environment.CACHE_VERSION }}-{{ .Environment.CIRCLE_SHA1 }}
@@ -509,6 +532,15 @@ jobs:
509532
environment:
510533
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
511534

535+
- run:
536+
name: build docs off verdaccio retry
537+
command: |
538+
./scripts/verdaccio-ci.sh
539+
./scripts/verdaccio-build.sh
540+
environment:
541+
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
542+
when: on_fail
543+
512544
- persist_to_workspace:
513545
root: verdaccio_dist
514546
paths:
@@ -685,6 +717,11 @@ jobs:
685717
environment:
686718
VERDACCIO_STORAGE_PATH: /tmp/verdaccio-workspace/storage
687719

720+
- persist_to_workspace:
721+
root: verdaccio_dist
722+
paths:
723+
- '*/verdaccio/icon-builder-fixture'
724+
688725
v-publish-stats:
689726
executor: rsp
690727
steps:
@@ -869,6 +906,9 @@ workflows:
869906
- docs:
870907
requires:
871908
- install
909+
- s2-docs:
910+
requires:
911+
- install
872912
- verdaccio:
873913
filters:
874914
branches:
@@ -923,6 +963,7 @@ workflows:
923963
- storybook
924964
- storybook-s2
925965
- docs
966+
- s2-docs
926967
- deploy-verdaccio:
927968
requires:
928969
- v-docs

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ test-reports.xml
1717
storage
1818
packages/dev/storybook-builder-parcel/iframe.html
1919
packages/dev/storybook-builder-parcel/preview.js
20+
starters/docs/registry
21+
starters/tailwind/registry

.parcelrc-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@parcel/transformer-react-refresh-wrap"
1717
]
1818
},
19-
"namers": ["parcel-namer-s2", "parcel-namer-intl", "..."],
19+
"namers": ["@react-spectrum/parcel-namer-s2", "parcel-namer-intl", "..."],
2020
"optimizers": {
2121
"**/spectrum-theme.cjs": ["parcel-optimizer-strict-mode"]
2222
}

.storybook-s2/docs/Intro.jsx

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -140,41 +140,64 @@ export function Docs() {
140140
<P>You may also need to configure other tools such as TypeScript, Babel, ESLint, and Jest to support parsing import attributes. See <Link href="https://parceljs.org/features/macros/#usage-with-other-tools" target="_blank">these docs</Link> for details.</P>
141141
<P>See the <Link href="https://github.com/adobe/react-spectrum/tree/main/examples" target="_blank">examples folder</Link> in our repo for working setups with various build tools. For details on optimizing the output CSS, see the <Link href="?path=/docs/style-macro--docs#css-optimization" target="_top">style macro docs</Link>.</P>
142142
<H2>Setting up your app</H2>
143-
<P>Unlike React Spectrum v3, a <Code>Provider</Code> is not required. Instead, import <Code>@react-spectrum/s2/page.css</Code> in the entry component of your app to apply the background color and color scheme to the <Code>{'<html>'}</Code> element. This ensures that the entire page has the proper styles even before your JavaScript runs.</P>
144-
<Pre>{highlight(`import '@react-spectrum/s2/page.css';
145-
import {Button} from '@react-spectrum/s2';
143+
<P>Wrap your app in an S2 <Code>{'<Provider>'}</Code> component to load Spectrum 2 fonts for the user's locale and apply the appropriate Spectrum background layer for your app. When using S2 together with other versions of Spectrum, ensure that the S2 provider is the inner-most provider.</P>
144+
<Pre>{highlight(`import {Provider, Button} from '@react-spectrum/s2';
146145
147146
function App() {
148147
return (
149-
<Button
150-
variant="accent"
151-
onPress={() => alert('Hey there!')}>
152-
Hello Spectrum 2!
153-
</Button>
148+
// Wrap app in a <Provider> to load fonts, set background, set locale, etc.
149+
<Provider background="base">
150+
<Button
151+
variant="accent"
152+
onPress={() => alert('Hey there!')}>
153+
Hello Spectrum 2!
154+
</Button>
155+
</Provider>
154156
);
155157
}`)}</Pre>
156158
<Example>
157159
<Button variant="accent" onPress={() => alert('Hey there!')}>Hello Spectrum 2!</Button>
158160
</Example>
159-
<P><Strong>Note</Strong>: If you’re embedding Spectrum 2 as a section of a larger page rather than taking over the whole window, follow the <Link href="#embedded-sections" target="_self">directions below</Link> instead of using <Code>page.css</Code>.</P>
161+
<H3>Optimizing full-page apps</H3>
162+
<P>When building a full page S2 app that's not embedded within a larger page, import <Code>@react-spectrum/s2/page.css</Code> to apply the background color and color scheme to the <Code>{'<html>'}</Code> element instead of the <Code>{'<Provider>'}</Code>. This ensures that the page has styles even before your JavaScript loads. A <Code>{'<Provider>'}</Code> is still necessary in addition to <Code>page.css</Code> in order to include the fonts, set the locale, etc.</P>
163+
<Pre>{highlight(`// Apply S2 background to the <html> element
164+
import '@react-spectrum/s2/page.css';
165+
166+
function App() {
167+
return (
168+
<Provider>
169+
{/* ... */}
170+
</Provider>
171+
);
172+
}`)}</Pre>
173+
<P>By default, this uses the <Code>base</Code> background layer. This can be customized by setting the <Code>data-background</Code> attribute on the <Code>{'<html>'}</Code> element.</P>
174+
<Pre>{highlight(`<html data-background="layer-1">
175+
<!-- ... -->
176+
</html>`)}</Pre>
160177
<H3>Overriding the color scheme</H3>
161-
<P>By default, the page follows the user’s operating system color scheme setting, supporting both light and dark mode. The page background is set to the <Code>base</Code> Spectrum background layer by default. This can be configured by setting the <Code>data-color-scheme</Code> and <Code>data-background</Code> attributes on the <Code>{'<html>'}</Code> element. For example, to force the application to only render in light mode, set <Code>data-color-scheme="light"</Code>.</P>
178+
<P>By default, React Spectrum follows the operating system color scheme setting, supporting both light and dark mode. The <Code>colorScheme</Code> prop can be set on <Code>{'<Provider>'}</Code> to force the app to always render in a certain color scheme.</P>
179+
<Pre>{highlight(`import {Provider} from '@react-spectrum/s2';
180+
181+
<Provider colorScheme="light">
182+
{/* your app */}
183+
</Provider>`)}</Pre>
184+
<P>When using <Code>page.css</Code>, set the <Code>data-color-scheme</Code> attribute on the <Code>{'<html>'}</Code> element.</P>
162185
<Pre>{highlight(`<html data-color-scheme="light">
163186
<!-- ... -->
164187
</html>`)}</Pre>
165188
<H3>Overriding the locale</H3>
166-
<P>By default, React Spectrum uses the browser/operating system language setting for localized strings, date and number formatting, and to determine the layout direction (left-to-right or right-to-left). This can be overridden by rendering a <Code>{'<Provider>'}</Code> component at the root of your app, and setting the <Code>locale</Code> prop.</P>
189+
<P>By default, React Spectrum uses the browser/operating system language setting for localized strings, date and number formatting, and to determine the layout direction (left-to-right or right-to-left). This can be overridden by rendering setting the <Code>locale</Code> prop on the <Code>{'<Provider>'}</Code>.</P>
167190
<Pre>{highlight(`import {Provider} from '@react-spectrum/s2';
168191
169192
<Provider locale="en-US">
170193
{/* your app */}
171194
</Provider>`)}</Pre>
172-
<H3>Embedded sections</H3>
173-
<P>If you’re building an embedded section of a larger page using Spectrum 2, use the <Code>{'<Provider>'}</Code> component to set the background instead of importing <Code>page.css</Code>. The <Code>background</Code> prop should be set to the Spectrum background layer appropriate for your app, and the <Code>colorScheme</Code> can be overridden as well.</P>
174-
<Pre>{highlight(`import {Provider} from '@react-spectrum/s2';
175-
176-
<Provider background="base">
177-
{/* your app */}
195+
<H3>Server-side rendering</H3>
196+
<P>When using SSR, the <Code>{'<Provider>'}</Code> component can be rendered as the root <Code>{'<html>'}</Code> element. The <Code>locale</Code> prop should always be specified to avoid hydration errors. <Code>page.css</Code> is not needed in this case.</P>
197+
<Pre>{highlight(`<Provider elementType="html" locale="en-US">
198+
<body>
199+
{/* ... */}
200+
</body>
178201
</Provider>`)}</Pre>
179202
<H3>Usage with older React Spectrum versions</H3>
180203
<P>See Adobe internal documentation.</P>

.storybook-s2/docs/Migrating.jsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ export function Migrating() {
114114
<H3>ButtonGroup</H3>
115115
<P>No updates needed.</P>
116116

117+
<H3>Calendar</H3>
118+
<P>No updates needed.</P>
119+
117120
<H3>Checkbox</H3>
118121
<P>No updates needed.</P>
119122

@@ -158,6 +161,27 @@ export function Migrating() {
158161
<li className={style({font: 'body', marginY: 8})}>Update <Code>Item</Code> to be a <Code>ComboBoxItem</Code></li>
159162
</ul>
160163

164+
<H3>DateField</H3>
165+
<ul className="sb-unstyled">
166+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>isQuiet</Code> (it is no longer supported in Spectrum 2)</li>
167+
<li className={style({font: 'body', marginY: 8})}>Change <Code>validationState="invalid"</Code> to <Code>isInvalid</Code></li>
168+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>validationState="valid"</Code> (it is no longer supported in Spectrum 2)</li>
169+
</ul>
170+
171+
<H3>DatePicker</H3>
172+
<ul className="sb-unstyled">
173+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>isQuiet</Code> (it is no longer supported in Spectrum 2)</li>
174+
<li className={style({font: 'body', marginY: 8})}>Change <Code>validationState="invalid"</Code> to <Code>isInvalid</Code></li>
175+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>validationState="valid"</Code> (it is no longer supported in Spectrum 2)</li>
176+
</ul>
177+
178+
<H3>DateRangePicker</H3>
179+
<ul className="sb-unstyled">
180+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>isQuiet</Code> (it is no longer supported in Spectrum 2)</li>
181+
<li className={style({font: 'body', marginY: 8})}>Change <Code>validationState="invalid"</Code> to <Code>isInvalid</Code></li>
182+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>validationState="valid"</Code> (it is no longer supported in Spectrum 2)</li>
183+
</ul>
184+
161185
<H3>Dialog</H3>
162186
<ul className="sb-unstyled">
163187
<li className={style({font: 'body', marginY: 8})}>Update children to move render props from being the second child of <Code>DialogTrigger</Code> to being a child of <Code>Dialog</Code></li>
@@ -302,6 +326,9 @@ export function Migrating() {
302326
<li className={style({font: 'body', marginY: 8})}>Remove <Code>showErrorIcon</Code> (it has been removed due to accessibility issues)</li>
303327
</ul>
304328

329+
<H3>RangeCalendar</H3>
330+
<P>No updates needed.</P>
331+
305332
<H3>RangeSlider</H3>
306333
<ul className="sb-unstyled">
307334
<li className={style({font: 'body', marginY: 8})}>Remove <Code>showValueLabel</Code> (it has been removed due to accessibility issues)</li>
@@ -392,6 +419,13 @@ export function Migrating() {
392419
<li className={style({font: 'body', marginY: 8})}>Remove <Code>validationState="valid"</Code> (it is no longer supported in Spectrum 2)</li>
393420
</ul>
394421

422+
<H3>TimeField</H3>
423+
<ul className="sb-unstyled">
424+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>isQuiet</Code> (it is no longer supported in Spectrum 2)</li>
425+
<li className={style({font: 'body', marginY: 8})}>Change <Code>validationState="invalid"</Code> to <Code>isInvalid</Code></li>
426+
<li className={style({font: 'body', marginY: 8})}>Remove <Code>validationState="valid"</Code> (it is no longer supported in Spectrum 2)</li>
427+
</ul>
428+
395429
<H3>ToggleButton</H3>
396430
<P>No updates needed.</P>
397431

.storybook-s2/docs/Release Notes.mdx

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,40 @@ export default MDXLayout;
44

55
# Release Notes
66

7+
## v0.10.0
8+
9+
### Font update
10+
11+
This release introduces a new font for Spectrum 2: Adobe Clean Spectrum VF. This is an evolution of the previous Adobe Clean, with slightly updated metrics allowing for better vertical centering. Along with this update, the S2 Provider component now automatically handles loading the fonts needed for the user's language. The new font does not affect previous versions of React Spectrum.
12+
13+
If you previously used `page.css` without a `Provider`, you'll need to add a `Provider` around your app to load the fonts. See the [updated docs](?path=/docs/intro--docs#setting-up-your-app) for details.
14+
15+
### New Components
16+
17+
* [Calendar](?path=/docs/calendar--docs)
18+
* [RangeCalendar](?path=/docs/rangecalendar--docs)
19+
* [DateField](?path=/docs/datefield--docs)
20+
* [DatePicker](?path=/docs/datepicker--docs)
21+
* [DateRangePicker](?path=/docs/daterangepicker--docs)
22+
* [TimeField](?path=/docs/timefield--docs)
23+
24+
### Updates
25+
26+
* [CardView](?path=/docs/cardview--docs): Fix ActionBar from not scrolling
27+
* [ActionButton](?path=/docs/actionbutton--docs): Fix avatar-only ActionButtons to have square dimensions
28+
* [Tabs](?path=/docs/tabs--docs): Improve selection indicator animation, fix collasped tabs
29+
* [ProgressCircle](?path=/docs/progresscircle--docs): Add track outline in High Contrast Mode
30+
* [Switch](?path=/docs/switch--docs): Fix the toggle in RTL locales
31+
* [TreeView](?path=/docs/treeview--docs): Support async loading
32+
33+
## v0.9.1
34+
35+
### Updates
36+
* [Button](?path=/docs/button--docs): Fix focus visible styles from being applied on standard focus
37+
* [ContextualHelp](?path=/docs/contextualhelp--docs): Update width to match Spectrum designs
38+
* [Tabs](?path=/docs/tabs--docs): Update selection indicator when tab text changes
39+
* [TagGroup](?path=/docs/taggroup--docs): Fix focus visible styles from being applied on standard focus
40+
741
## v0.9.0
842

943
### Updates
@@ -24,7 +58,7 @@ We strongly discourage using `UNSAFE_className` because it results in inconsiste
2458

2559
### Style macro updates
2660

27-
We have made significant changes to the way our Style Macro generates class names in an effort to make them stable between version. While we work to stabilize the style macro class names, we have added a postfix based on the version number so that class names don't conflict with any prior or future version.
61+
We have made significant changes to the way our Style Macro generates class names in an effort to make them stable between versions. While we work to stabilize the style macro class names, we have added a postfix based on the version number so that class names don't conflict with any prior or future version.
2862

2963
We also made some changes to the available style macro values.
3064

.storybook-s2/docs/StyleMacro.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function MyComponent({variant}) {
205205
display: 'flex',
206206
alignItems: 'center',
207207
columnGap: 8
208-
};
208+
} as const;
209209
210210
const styles = style({
211211
...horizontalStack,
@@ -218,7 +218,7 @@ export function horizontalStack(gap: number) {
218218
display: 'flex',
219219
alignItems: 'center',
220220
columnGap: gap
221-
};
221+
} as const;
222222
}`)}</Pre>
223223
<P>Then, import your macro and use it in a component.</P>
224224
<Pre>{highlight(`// component.tsx

0 commit comments

Comments
 (0)