-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: spectrum 2 foundations release
Breaking change: Migration of tokens to S2 foundations --- Co-authored-by: Patrick Fulton <[email protected]> Co-authored-by: Cory Dransfeldt <[email protected]> Co-authored-by: Aziz Ramos <[email protected]> Co-authored-by: Josh Winn <[email protected]> Co-authored-by: Rise Erpelding <[email protected]> Co-authored-by: Marissa Huysentruyt <[email protected]> Co-authored-by: Rajdeep Chandra <[email protected]> Co-authored-by: TarunAdobe <[email protected]> Co-authored-by: Dragan Eror <[email protected]>
- Loading branch information
1 parent
5540f87
commit e747618
Showing
739 changed files
with
24,117 additions
and
19,262 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@spectrum-css/preview": major | ||
--- | ||
|
||
## Breaking change | ||
|
||
This update removes the previously deprecated component documentation for **cyclebutton**, **quickaction**, **searchwithin**, and **splitbutton**. | ||
|
||
To support the Spectrum 2 (S2) Foundations release, Storybook has been updated to toggle token packages to connect the following labels with their appropriate data sources: | ||
|
||
- **Spectrum 1**: Flagged as the "legacy" context, this version is no longer the default for the component contexts. When selected, Storybook will load the `@spectrum-css/tokens` at release `v14.6.0` and attach the `.spectrum--legacy` class to the container. | ||
- **Spectrum 2**: The new default context, this version represents the "S2 Foundations" release which serves as a bridge between S1 and S2. Components in this context are not fully S2 and will not exactly match specifications but they do reflect a significant move toward the S2 designs. For full details, see the token and component-level changelogs. | ||
- **Express**: This now deprecated context is still rendered in Storybook by leveraging the `@spectrum-css/tokens` at release `v14.6.0`. Please note that Express and S1 will be removed in the next major release. | ||
|
||
This release also includes: | ||
|
||
- New migration documentation for S1 -> S2 updates | ||
- Fix for the duplicate line numbers in the code preview plugin | ||
- Updated styles to integrate Spectrum styling into the Storybook UI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
--- | ||
"@spectrum-css/floatingactionbutton": major | ||
"@spectrum-css/opacitycheckerboard": major | ||
"@spectrum-css/illustratedmessage": major | ||
"@spectrum-css/coachindicator": major | ||
"@spectrum-css/contextualhelp": major | ||
"@spectrum-css/progresscircle": major | ||
"@spectrum-css/dropindicator": major | ||
"@spectrum-css/infieldbutton": major | ||
"@spectrum-css/actionbutton": major | ||
"@spectrum-css/pickerbutton": major | ||
"@spectrum-css/actiongroup": major | ||
"@spectrum-css/alertbanner": major | ||
"@spectrum-css/alertdialog": major | ||
"@spectrum-css/buttongroup": major | ||
"@spectrum-css/clearbutton": major | ||
"@spectrum-css/closebutton": major | ||
"@spectrum-css/colorhandle": major | ||
"@spectrum-css/colorslider": major | ||
"@spectrum-css/inlinealert": major | ||
"@spectrum-css/logicbutton": major | ||
"@spectrum-css/progressbar": major | ||
"@spectrum-css/statuslight": major | ||
"@spectrum-css/swatchgroup": major | ||
"@spectrum-css/actionmenu": major | ||
"@spectrum-css/breadcrumb": major | ||
"@spectrum-css/colorloupe": major | ||
"@spectrum-css/colorwheel": major | ||
"@spectrum-css/datepicker": major | ||
"@spectrum-css/fieldgroup": major | ||
"@spectrum-css/fieldlabel": major | ||
"@spectrum-css/pagination": major | ||
"@spectrum-css/typography": major | ||
"@spectrum-css/accordion": major | ||
"@spectrum-css/actionbar": major | ||
"@spectrum-css/assetcard": major | ||
"@spectrum-css/assetlist": major | ||
"@spectrum-css/coachmark": major | ||
"@spectrum-css/colorarea": major | ||
"@spectrum-css/splitview": major | ||
"@spectrum-css/textfield": major | ||
"@spectrum-css/thumbnail": major | ||
"@spectrum-css/calendar": major | ||
"@spectrum-css/checkbox": major | ||
"@spectrum-css/combobox": major | ||
"@spectrum-css/dropzone": major | ||
"@spectrum-css/helptext": major | ||
"@spectrum-css/steplist": major | ||
"@spectrum-css/taggroup": major | ||
"@spectrum-css/treeview": major | ||
"@spectrum-css/underlay": major | ||
"@spectrum-css/commons": major | ||
"@spectrum-css/divider": major | ||
"@spectrum-css/popover": major | ||
"@spectrum-css/sidenav": major | ||
"@spectrum-css/stepper": major | ||
"@spectrum-css/tooltip": major | ||
"@spectrum-css/avatar": major | ||
"@spectrum-css/button": major | ||
"@spectrum-css/dialog": major | ||
"@spectrum-css/miller": major | ||
"@spectrum-css/picker": major | ||
"@spectrum-css/rating": major | ||
"@spectrum-css/search": major | ||
"@spectrum-css/slider": major | ||
"@spectrum-css/swatch": major | ||
"@spectrum-css/switch": major | ||
"@spectrum-css/asset": major | ||
"@spectrum-css/badge": major | ||
"@spectrum-css/meter": major | ||
"@spectrum-css/modal": major | ||
"@spectrum-css/radio": major | ||
"@spectrum-css/table": major | ||
"@spectrum-css/toast": major | ||
"@spectrum-css/card": major | ||
"@spectrum-css/dial": major | ||
"@spectrum-css/form": major | ||
"@spectrum-css/icon": major | ||
"@spectrum-css/link": major | ||
"@spectrum-css/menu": major | ||
"@spectrum-css/page": major | ||
"@spectrum-css/tabs": major | ||
"@spectrum-css/tray": major | ||
"@spectrum-css/well": major | ||
"@spectrum-css/tag": major | ||
--- | ||
|
||
## Breaking change | ||
|
||
This major update creates a bridge between the Spectrum 1 (S1) and Spectrum 2 (S2) designs, dubbed "Spectrum 2 Foundations". These do _NOT_ reflect a fully migrated S2 component. This approach allows consumers to swap the appearance of their components between S1, Express, and S2 by leveraging a "system" layer that remaps the necessary component-level tokens to the appropriate token dataset. | ||
|
||
For these components to appear S2, you must load the assets with the `@spectrum-css/tokens` at `v16` or higher. | ||
|
||
For S1 or Express, load assets with the `@spectrum-css/tokens` at `v14.x` or `v15.x`. | ||
|
||
If you are looking to implement a fully S2 design, please explore the `next` tag releases instead of using this foundations release. **This release is used in Spectrum Web Components 1.x**. | ||
|
||
### Deprecations | ||
|
||
The `metadata` folder containing the `mods.md` and `metadata.json` assets has been removed from source. To find information about the components including what selectors, modifiers, and passthroughs are used, please see the `dist/metadata.json` asset shipped with every component containing CSS. | ||
|
||
The `index-vars.css` asset has been removed in this release as it was previously deprecated and is no longer maintained. Please use the `index.css` or `index-base.css` | ||
|
||
### File usage | ||
|
||
If you are rendering components and need **only** the S2 Foundations styles, you can make use of the `index.css` asset which contains all the base styles plus the system mappings for S2 Foundations. | ||
|
||
If you are using this version to publish **only** an S1 or Express component, you can use the `index-base.css` plus the desired `themes/(spectrum|express).css` file. | ||
|
||
To render a component that can be easily swapped between the S2 Foundations, S1, or Express contexts, load `index-base.css` with the `index-theme.css` file and leverage the appropriate context classes (`.spectrum--legacy` for S1 and `.spectrum--express` for Express). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.