Skip to content

Commit

Permalink
fix: update latest Spectrum CSS beta releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Nov 24, 2020
1 parent 9f55520 commit 11b47df
Show file tree
Hide file tree
Showing 50 changed files with 663 additions and 644 deletions.
18 changes: 9 additions & 9 deletions documentation/src/components/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class HomeElement extends RouteComponent {
return html`
<section id="hero">
<div class="spectrum-Article">
<h1 class="spectrum-Heading spectrum-Heading--XXXL spectrum-Heading--serif">
<h1 class="spectrum-Heading spectrum-Heading--sizeXXXL spectrum-Heading--serif">
Spectrum Web Components
</h1>
</div>
<p class="spectrum-Body spectrum-Body--XL">
<p class="spectrum-Body spectrum-Body--sizeXL">
The Spectrum Web Components project is an implementation of <sp-link
href="https://spectrum.adobe.com/">Spectrum, Adobe’s design system</sp-link
>. It's designed to work with any web framework — or even
Expand All @@ -37,10 +37,10 @@ class HomeElement extends RouteComponent {
</section>
<section id="features">
<div class="feature">
<h2 class="spectrum-Heading spectrum-Heading--S">
<h2 class="spectrum-Heading spectrum-Heading--sizeS">
Standards based
</h2>
<p class="spectrum-Body spectrum-Body--M">
<p class="spectrum-Body spectrum-Body--sizeM">
<sp-link
href="https://developer.mozilla.org/en-US/docs/Web/Web_Components"
>
Expand All @@ -52,10 +52,10 @@ class HomeElement extends RouteComponent {
</p>
</div>
<div class="feature">
<h2 class="spectrum-Heading spectrum-Heading--S">
<h2 class="spectrum-Heading spectrum-Heading--sizeS">
Light weight
</h2>
<p class="spectrum-Body spectrum-Body--M">
<p class="spectrum-Body spectrum-Body--sizeM">
Spectrum Web Components are implemented using the
<sp-link
href="https://lit-element.polymer-project.org/"
Expand All @@ -67,18 +67,18 @@ class HomeElement extends RouteComponent {
</p>
</div>
<div class="feature">
<h2 class="spectrum-Heading spectrum-Heading--S">
<h2 class="spectrum-Heading spectrum-Heading--sizeS">
Framework agnostic
</h2>
<p class="spectrum-Body spectrum-Body--M">
<p class="spectrum-Body spectrum-Body--sizeM">
You can use web components with any framework, since
they’re supported and encapsulated at the browser level.
</p>
</div>
</section>
<section id="example" class="spectrum-Typography">
<div class="headerContainer">
<h2 class="spectrum-Heading2">
<h2 class="spectrum-Heading spectrum-Heading--sizeM">
Sample element usage
</h2>
<sp-rule size="large"></sp-rule>
Expand Down
10 changes: 5 additions & 5 deletions documentation/src/utils/posthtml-spectrum-typography.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const matchHelper = require('posthtml-match-helper');
const transformations = [
{
selector: 'p,ul,ol',
classes: ['spectrum-Body', 'spectrum-Body--M'],
classes: ['spectrum-Body', 'spectrum-Body--sizeM'],
},
{
// Wrap h1's in a .spectrum-Article to get nice typography
Expand All @@ -40,7 +40,7 @@ const transformations = [
tag: 'h1',
attrs: {
class:
'spectrum-Heading spectrum-Heading--XXXL spectrum-Heading--serif',
'spectrum-Heading spectrum-Heading--sizeXXXL spectrum-Heading--serif',
},
content: node.content,
},
Expand All @@ -67,7 +67,7 @@ const transformations = [
{
tag: 'h1',
attrs: {
class: 'spectrum-Heading spectrum-Heading--M',
class: 'spectrum-Heading spectrum-Heading--sizeM',
},
content: node.content,
},
Expand Down Expand Up @@ -98,7 +98,7 @@ const transformations = [
{
tag: 'h3',
attrs: {
class: 'spectrum-Heading spectrum-Heading--S',
class: 'spectrum-Heading spectrum-Heading--sizeS',
},
content: node.content,
},
Expand All @@ -112,7 +112,7 @@ const transformations = [
},
{
selector: 'h4',
classes: ['spectrum-Header', 'spectrum-Heading--XS'],
classes: ['spectrum-Header', 'spectrum-Heading--sizeXS'],
},
{
selector: 'hr',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@open-wc/demoing-storybook": "^2.4.4",
"@open-wc/polyfills-loader": "^0.3.3",
"@open-wc/testing": "^2.5.29",
"@spectrum-css/table": "^3.0.0-beta.4",
"@spectrum-css/table": "^3.0.0-beta.5",
"@types/chai": "^4.1.7",
"@types/command-line-args": "^5.0.0",
"@types/command-line-usage": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/accordion": "^3.0.0-beta.3"
"@spectrum-css/accordion": "^3.0.0-beta.4"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/action-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/actiongroup": "^1.0.0-beta.3",
"@spectrum-css/actiongroup": "^1.0.0-beta.4",
"@spectrum-web-components/button": "^0.9.4",
"@spectrum-web-components/icon": "^0.6.3",
"@spectrum-web-components/icons-workflow": "^0.3.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/actionbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/actionbar": "^3.0.0-beta.4",
"@spectrum-css/actionbar": "^3.0.0-beta.5",
"@spectrum-web-components/icon": "^0.6.1"
},
"dependencies": {
Expand Down
5 changes: 0 additions & 5 deletions packages/actionbar/src/actionbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@ governing permissions and limitations under the License.
*/

@import './spectrum-actionbar.css';

:host([dir='rtl']) #popover {
padding: 0 var(--spectrum-global-dimension-size-200) 0
calc(var(--spectrum-global-dimension-size-200) / 2);
}
16 changes: 14 additions & 2 deletions packages/actionbar/src/spectrum-actionbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
/* .spectrum-ActionBar--fixed */
position: fixed;
}
:host([dir='ltr']) #popover {
/* [dir=ltr] .spectrum-ActionBar-popover */
padding-left: var(
--spectrum-global-dimension-size-200
); /* [dir=ltr] .spectrum-ActionBar-popover */
padding-right: calc(var(--spectrum-global-dimension-size-200) / 2);
}
:host([dir='rtl']) #popover {
/* [dir=rtl] .spectrum-ActionBar-popover */
padding-right: var(
--spectrum-global-dimension-size-200
); /* [dir=rtl] .spectrum-ActionBar-popover */
padding-left: calc(var(--spectrum-global-dimension-size-200) / 2);
}
#popover {
/* .spectrum-ActionBar-popover */
position: relative;
Expand All @@ -70,8 +84,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
height: var(--spectrum-global-dimension-size-600);
min-width: 280px;
max-width: 960px;
padding: 0 calc(var(--spectrum-global-dimension-size-200) / 2) 0
var(--spectrum-global-dimension-size-200);
flex-direction: row;
align-items: center;
justify-content: space-between;
Expand Down
2 changes: 1 addition & 1 deletion packages/asset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/asset": "^3.0.0-beta.3"
"@spectrum-css/asset": "^3.0.0-beta.4"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/avatar": "^3.0.0-beta.3"
"@spectrum-css/avatar": "^3.0.0-beta.4"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/bar-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/progressbar": "^1.0.0-beta.1"
"@spectrum-css/progressbar": "^1.0.0-beta.2"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/button-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/buttongroup": "^3.0.0-beta.4",
"@spectrum-css/buttongroup": "^3.0.0-beta.5",
"@spectrum-web-components/button": "^0.9.4"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/button": "^3.0.0-beta.4"
"@spectrum-css/button": "^3.0.0-beta.5"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/card": "^3.0.0-beta.4"
"@spectrum-css/card": "^3.0.0-beta.5"
},
"dependencies": {
"@spectrum-web-components/asset": "^0.1.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/checkbox": "^3.0.0-beta.4",
"@spectrum-css/checkbox": "^3.0.0-beta.5",
"@spectrum-web-components/field-group": "^0.0.1"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/circle-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/progresscircle": "^1.0.0-beta.1"
"@spectrum-css/progresscircle": "^1.0.0-beta.2"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/coachmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/coachmark": "^3.0.0-beta.4"
"@spectrum-css/coachmark": "^3.0.0-beta.5"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/dialog": "^3.0.0-beta.4"
"@spectrum-css/dialog": "^3.0.0-beta.5"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/dropdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/picker": "^1.0.0-beta.1"
"@spectrum-css/picker": "^1.0.0-beta.2"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/dropzone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/dropzone": "^3.0.0-beta.3"
"@spectrum-css/dropzone": "^3.0.0-beta.4"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/field-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/fieldgroup": "^3.0.0-beta.4",
"@spectrum-css/fieldgroup": "^3.0.0-beta.5",
"@spectrum-web-components/checkbox": "^0.5.2",
"@spectrum-web-components/radio": "^0.4.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/icon": "3.0.0-beta.0"
"@spectrum-css/icon": "^3.0.0-beta.1"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/icons-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/icon": "^3.0.0-beta.0",
"@spectrum-css/icon": "^3.0.0-beta.1",
"@spectrum-web-components/icon": "^0.6.3",
"@spectrum-web-components/iconset": "^0.1.7",
"case": "^1.6.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/illustrated-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/illustratedmessage": "^3.0.0-beta.3"
"@spectrum-css/illustratedmessage": "^3.0.0-beta.4"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/link": "^3.0.1-beta.0"
"@spectrum-css/link": "^3.0.1-beta.1"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/menu": "^3.0.0-beta.3"
"@spectrum-css/menu": "^3.0.0-beta.4"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/modal": "^3.0.0-beta.1"
"@spectrum-css/modal": "^3.0.0-beta.2"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/popover": "^3.0.0-beta.4"
"@spectrum-css/popover": "^3.0.0-beta.5"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/quick-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/quickaction": "^3.0.0-beta.4"
"@spectrum-css/quickaction": "^3.0.0-beta.5"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/radio": "^3.0.0-beta.3"
"@spectrum-css/radio": "^3.0.0-beta.4"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/rule/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"@spectrum-css/divider": "^1.0.0-beta.1"
"@spectrum-css/divider": "^1.0.0-beta.2"
},
"dependencies": {
"@spectrum-web-components/base": "^0.1.3",
Expand Down
Loading

0 comments on commit 11b47df

Please sign in to comment.