@spectrum-web-components/action-button 0.8.0 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +2 -2
- package/package.json +7 -7
- package/sp-action-button.d.ts +6 -0
- package/sp-action-button.js +14 -0
- package/sp-action-button.js.map +1 -0
- package/src/ActionButton.d.ts +63 -0
- package/src/ActionButton.js +202 -0
- package/src/ActionButton.js.map +1 -0
- package/src/action-button.css.d.ts +2 -0
- package/src/action-button.css.js +691 -0
- package/src/action-button.css.js.map +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +13 -0
- package/src/index.js.map +1 -0
- package/src/spectrum-action-button.css.d.ts +2 -0
- package/src/spectrum-action-button.css.js +655 -0
- package/src/spectrum-action-button.css.js.map +1 -0
- package/stories/action-button-black-quiet.stories.js +34 -0
- package/stories/action-button-black-quiet.stories.js.map +1 -0
- package/stories/action-button-black.stories.js +29 -0
- package/stories/action-button-black.stories.js.map +1 -0
- package/stories/action-button-emphasized-quiet.stories.js +32 -0
- package/stories/action-button-emphasized-quiet.stories.js.map +1 -0
- package/stories/action-button-emphasized.stories.js +27 -0
- package/stories/action-button-emphasized.stories.js.map +1 -0
- package/stories/action-button-quiet.stories.js +27 -0
- package/stories/action-button-quiet.stories.js.map +1 -0
- package/stories/action-button-standard.stories.js +22 -0
- package/stories/action-button-standard.stories.js.map +1 -0
- package/stories/action-button-white-quiet.stories.js +34 -0
- package/stories/action-button-white-quiet.stories.js.map +1 -0
- package/stories/action-button-white.stories.js +29 -0
- package/stories/action-button-white.stories.js.map +1 -0
- package/stories/action-button.stories.js +60 -0
- package/stories/action-button.stories.js.map +1 -0
- package/stories/index.js +71 -0
- package/stories/index.js.map +1 -0
- package/test/action-button-black-quiet.test-vrt.js +15 -0
- package/test/action-button-black-quiet.test-vrt.js.map +1 -0
- package/test/action-button-black.test-vrt.js +15 -0
- package/test/action-button-black.test-vrt.js.map +1 -0
- package/test/action-button-emphasized-quiet.test-vrt.js +15 -0
- package/test/action-button-emphasized-quiet.test-vrt.js.map +1 -0
- package/test/action-button-emphasized.test-vrt.js +15 -0
- package/test/action-button-emphasized.test-vrt.js.map +1 -0
- package/test/action-button-quiet.test-vrt.js +15 -0
- package/test/action-button-quiet.test-vrt.js.map +1 -0
- package/test/action-button-standard.test-vrt.js +15 -0
- package/test/action-button-standard.test-vrt.js.map +1 -0
- package/test/action-button-white-quiet.test-vrt.js +15 -0
- package/test/action-button-white-quiet.test-vrt.js.map +1 -0
- package/test/action-button-white.test-vrt.js +15 -0
- package/test/action-button-white.test-vrt.js.map +1 -0
- package/test/action-button.test-vrt.js +15 -0
- package/test/action-button.test-vrt.js.map +1 -0
- package/test/action-button.test.js +132 -0
- package/test/action-button.test.js.map +1 -0
- package/test/benchmark/basic-test.js +18 -0
- package/test/benchmark/basic-test.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spectrum-action-button.css.js","sourceRoot":"","sources":["spectrum-action-button.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgoBjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;align-items:center;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;display:inline-flex;font-family:var(\n--spectrum-alias-body-text-font-family,var(--spectrum-global-font-family-base)\n);justify-content:center;line-height:var(\n--spectrum-alias-component-text-line-height,var(--spectrum-global-font-line-height-small)\n);margin:0;overflow:visible;text-decoration:none;text-transform:none;transition:background var(--spectrum-global-animation-duration-100,.13s) ease-out,border-color var(--spectrum-global-animation-duration-100,.13s) ease-out,color var(--spectrum-global-animation-duration-100,.13s) ease-out,box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;user-select:none;-webkit-user-select:none;vertical-align:top}:host(:focus){outline:none}:host(::-moz-focus-inner){border:0;border-style:none;margin-bottom:-2px;margin-top:-2px;padding:0}:host([disabled]){cursor:default}::slotted([slot=icon]){flex-shrink:0;max-height:100%}#label{align-self:center;justify-self:center;text-align:center}#label:empty{display:none}:host([variant=black]:not([quiet])[disabled]){border-color:var(\n--spectrum-alias-actionbutton-staticBlack-border-color-disabled,rgba(0,0,0,.25)\n)}:host([variant=black]:not([quiet])[disabled][selected]){border-color:var(\n--spectrum-alias-actionbutton-staticBlack-border-color-disabled-selected,transparent\n)}:host([variant=black]:not([quiet])[disabled]:not([selected])){background-color:var(\n--spectrum-alias-actionbutton-staticBlack-background-color-disabled,transparent\n)}:host([variant=black]:not([quiet]):not([disabled])){border-color:var(\n--spectrum-alias-actionbutton-staticBlack-border-color-default,rgba(0,0,0,.4)\n)}:host([variant=black]:not([quiet]):not([disabled]):hover){border-color:var(\n--spectrum-alias-actionbutton-staticBlack-border-color-hover,rgba(0,0,0,.55)\n)}:host([variant=black]:not([quiet]):not([disabled])[active]){border-color:var(\n--spectrum-alias-actionbutton-staticBlack-border-color-down,rgba(0,0,0,.7)\n)}:host([variant=black]:not([quiet]):not([disabled]).focus-visible){border-color:var(\n--spectrum-alias-actionbutton-staticBlack-border-color-key-focus,rgba(0,0,0,.55)\n)}:host([variant=black]:not([quiet]):not([disabled]):focus-visible){border-color:var(\n--spectrum-alias-actionbutton-staticBlack-border-color-key-focus,rgba(0,0,0,.55)\n)}:host([variant=black]:not([quiet]):not([disabled]).is-keyboardFocused){border-color:var(\n--spectrum-alias-actionbutton-staticBlack-border-color-key-focus,rgba(0,0,0,.55)\n)}:host([variant=black]:not([quiet]):not([disabled]):not([selected])){background-color:var(\n--spectrum-alias-actionbutton-staticBlack-background-color-default,transparent\n)}:host([variant=black]:not([quiet]):not([disabled]):not([selected]):hover){background-color:var(\n--spectrum-alias-actionbutton-staticBlack-background-color-hover,rgba(0,0,0,.25)\n)}:host([variant=black]:not([quiet]):not([disabled]):not([selected])[active]){background-color:var(\n--spectrum-alias-actionbutton-staticBlack-background-color-down,rgba(0,0,0,.4)\n)}:host([variant=black]:not([quiet]):not([disabled]):not([selected]).focus-visible){background-color:var(\n--spectrum-alias-actionbutton-staticBlack-background-color-key-focus,rgba(0,0,0,.25)\n)}:host([variant=black]:not([quiet]):not([disabled]):not([selected]):focus-visible){background-color:var(\n--spectrum-alias-actionbutton-staticBlack-background-color-key-focus,rgba(0,0,0,.25)\n)}:host([variant=black]:not([quiet]):not([disabled]):not([selected]).is-keyboardFocused){background-color:var(\n--spectrum-alias-actionbutton-staticBlack-background-color-key-focus,rgba(0,0,0,.25)\n)}:host([variant=black][quiet][disabled]){border-color:transparent}:host([variant=black][quiet][disabled]:not([selected])){background-color:transparent}:host([variant=black][quiet]:not([disabled])){border-color:transparent}:host([variant=black][quiet]:not([disabled]):not([selected])){background-color:var(\n--spectrum-alias-component-background-color-quiet-default,var(--spectrum-alias-background-color-transparent)\n)}:host([variant=black][quiet]:not([disabled]):not([selected]):hover){background-color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-25))}:host([variant=black][quiet]:not([disabled]):not([selected])[active]){background-color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-40))}:host([variant=black][quiet]:not([disabled]):not([selected]).focus-visible){background-color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-25))}:host([variant=black][quiet]:not([disabled]):not([selected]):focus-visible){background-color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-25))}:host([variant=black][quiet]:not([disabled]):not([selected]).is-keyboardFocused){background-color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-25))}:host([size][variant=black][disabled][selected]){background-color:var(\n--spectrum-alias-actionbutton-staticBlack-background-color-disabled-selected,rgba(0,0,0,.1)\n)}:host([size][variant=black][disabled][selected]) .hold-affordance{color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-40))}:host([size][variant=black][disabled][selected]) #label{color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-40))}:host([size][variant=black][disabled][selected]) ::slotted([slot=icon]){color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-40))}:host([variant=black][disabled]) .hold-affordance{color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-40))}:host([variant=black][disabled]) #label{color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-40))}:host([variant=black][disabled]) ::slotted([slot=icon]){color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-40))}:host([variant=black][selected]:not([disabled])){background-color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-90))}:host([variant=black][selected]:not([disabled]):hover){background-color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black][selected]:not([disabled])[active]){background-color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black][selected]:not([disabled]).focus-visible){background-color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black][selected]:not([disabled]):focus-visible){background-color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black][selected]:not([disabled]).is-keyboardFocused){background-color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black][selected]:not([disabled])) .hold-affordance{color:inherit}:host([variant=black][selected]:not([disabled])) #label{color:inherit}:host([variant=black][selected]:not([disabled])) ::slotted([slot=icon]){color:inherit}:host([variant=black]) .hold-affordance{color:var(\n--spectrum-ActionButton-static-black-color\n)}:host([variant=black]:not([disabled]):not([selected])) .hold-affordance{color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-90))}:host([variant=black]:not([disabled]):not([selected]):hover) .hold-affordance{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]):hover) #label{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]):hover) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected])[active]) .hold-affordance{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected])[active]) #label{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected])[active]) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]).focus-visible) .hold-affordance{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]):focus-visible) .hold-affordance{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]).focus-visible) #label{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]):focus-visible) #label{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]).focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]):focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]).is-keyboardFocused) .hold-affordance{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]).is-keyboardFocused) #label{color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected]).is-keyboardFocused) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([variant=black]:not([disabled]):not([selected])) #label{color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-90))}:host([variant=black]:not([disabled]):not([selected])) ::slotted([slot=icon]){color:rgba(var(--spectrum-global-color-static-black-rgb,0,0,0),var(--spectrum-global-color-opacity-90))}:host([variant=black]) #label{color:var(\n--spectrum-ActionButton-static-black-color\n)}:host([variant=black]) ::slotted([slot=icon]){color:var(\n--spectrum-ActionButton-static-black-color\n)}:host([variant=white]:not([quiet])[disabled]){border-color:var(\n--spectrum-alias-actionbutton-staticWhite-border-color-disabled,hsla(0,0%,100%,.25)\n)}:host([variant=white]:not([quiet])[disabled][selected]){border-color:var(\n--spectrum-alias-actionbutton-staticWhite-border-color-disabled-selected,transparent\n)}:host([variant=white]:not([quiet])[disabled]:not([selected])){background-color:var(\n--spectrum-alias-actionbutton-staticWhite-background-color-disabled,transparent\n)}:host([variant=white]:not([quiet]):not([disabled])){border-color:var(\n--spectrum-alias-actionbutton-staticWhite-border-color-default,hsla(0,0%,100%,.4)\n)}:host([variant=white]:not([quiet]):not([disabled]):hover){border-color:var(\n--spectrum-alias-actionbutton-staticWhite-border-color-hover,hsla(0,0%,100%,.55)\n)}:host([variant=white]:not([quiet]):not([disabled])[active]){border-color:var(\n--spectrum-alias-actionbutton-staticWhite-border-color-down,hsla(0,0%,100%,.7)\n)}:host([variant=white]:not([quiet]):not([disabled]).focus-visible){border-color:var(\n--spectrum-alias-actionbutton-staticWhite-border-color-key-focus,hsla(0,0%,100%,.55)\n)}:host([variant=white]:not([quiet]):not([disabled]):focus-visible){border-color:var(\n--spectrum-alias-actionbutton-staticWhite-border-color-key-focus,hsla(0,0%,100%,.55)\n)}:host([variant=white]:not([quiet]):not([disabled]).is-keyboardFocused){border-color:var(\n--spectrum-alias-actionbutton-staticWhite-border-color-key-focus,hsla(0,0%,100%,.55)\n)}:host([variant=white]:not([quiet]):not([disabled]):not([selected])){background-color:var(\n--spectrum-alias-actionbutton-staticWhite-background-color-default,transparent\n)}:host([variant=white]:not([quiet]):not([disabled]):not([selected]):hover){background-color:var(\n--spectrum-alias-actionbutton-staticWhite-background-color-hover,hsla(0,0%,100%,.25)\n)}:host([variant=white]:not([quiet]):not([disabled]):not([selected])[active]){background-color:var(\n--spectrum-alias-actionbutton-staticWhite-background-color-down,hsla(0,0%,100%,.4)\n)}:host([variant=white]:not([quiet]):not([disabled]):not([selected]).focus-visible){background-color:var(\n--spectrum-alias-actionbutton-staticWhite-background-color-key-focus,hsla(0,0%,100%,.25)\n)}:host([variant=white]:not([quiet]):not([disabled]):not([selected]):focus-visible){background-color:var(\n--spectrum-alias-actionbutton-staticWhite-background-color-key-focus,hsla(0,0%,100%,.25)\n)}:host([variant=white]:not([quiet]):not([disabled]):not([selected]).is-keyboardFocused){background-color:var(\n--spectrum-alias-actionbutton-staticWhite-background-color-key-focus,hsla(0,0%,100%,.25)\n)}:host([variant=white][quiet][disabled]){border-color:transparent}:host([variant=white][quiet][disabled]:not([selected])){background-color:transparent}:host([variant=white][quiet]:not([disabled])){border-color:transparent}:host([variant=white][quiet]:not([disabled]):not([selected])){background-color:var(\n--spectrum-alias-component-background-color-quiet-default,var(--spectrum-alias-background-color-transparent)\n)}:host([variant=white][quiet]:not([disabled]):not([selected]):hover){background-color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-25))}:host([variant=white][quiet]:not([disabled]):not([selected])[active]){background-color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-40))}:host([variant=white][quiet]:not([disabled]):not([selected]).focus-visible){background-color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-25))}:host([variant=white][quiet]:not([disabled]):not([selected]):focus-visible){background-color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-25))}:host([variant=white][quiet]:not([disabled]):not([selected]).is-keyboardFocused){background-color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-25))}:host([variant=white][disabled][selected]){background-color:var(\n--spectrum-alias-actionbutton-staticWhite-background-color-disabled-selected,hsla(0,0%,100%,.1)\n)}:host([variant=white][disabled][selected]) .hold-affordance{color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-40))}:host([variant=white][disabled][selected]) #label{color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-40))}:host([variant=white][disabled][selected]) ::slotted([slot=icon]){color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-40))}:host([variant=white][disabled]) .hold-affordance{color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-40))}:host([variant=white][disabled]) #label{color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-40))}:host([variant=white][disabled]) ::slotted([slot=icon]){color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-40))}:host([variant=white][selected]:not([disabled])){background-color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-90))}:host([variant=white][selected]:not([disabled]):hover){background-color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white][selected]:not([disabled])[active]){background-color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white][selected]:not([disabled]).focus-visible){background-color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white][selected]:not([disabled]):focus-visible){background-color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white][selected]:not([disabled]).is-keyboardFocused){background-color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white][selected]:not([disabled])) .hold-affordance{color:inherit}:host([variant=white][selected]:not([disabled])) #label{color:inherit}:host([variant=white][selected]:not([disabled])) ::slotted([slot=icon]){color:inherit}:host([variant=white]) .hold-affordance{color:var(\n--spectrum-ActionButton-static-white-color\n)}:host([variant=white]:not([disabled]):not([selected])) .hold-affordance{color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-90))}:host([variant=white]:not([disabled]):not([selected]):hover) .hold-affordance{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]):hover) #label{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]):hover) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected])[active]) .hold-affordance{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected])[active]) #label{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected])[active]) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]).focus-visible) .hold-affordance{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]):focus-visible) .hold-affordance{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]).focus-visible) #label{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]):focus-visible) #label{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]).focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]):focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]).is-keyboardFocused) .hold-affordance{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]).is-keyboardFocused) #label{color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected]).is-keyboardFocused) ::slotted([slot=icon]){color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=white]:not([disabled]):not([selected])) #label{color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-90))}:host([variant=white]:not([disabled]):not([selected])) ::slotted([slot=icon]){color:rgba(var(--spectrum-global-color-static-white-rgb,255,255,255),var(--spectrum-global-color-opacity-90))}:host([variant=white]) #label{color:var(\n--spectrum-ActionButton-static-white-color\n)}:host([variant=white]) ::slotted([slot=icon]){color:var(\n--spectrum-ActionButton-static-white-color\n)}:host([size=s]){--spectrum-actionbutton-texticon-border-size:var(\n--spectrum-actionbutton-s-texticon-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-texticon-icon-gap:var(\n--spectrum-actionbutton-s-texticon-icon-gap,var(--spectrum-global-dimension-size-85)\n);--spectrum-actionbutton-texticon-padding-left:var(\n--spectrum-actionbutton-s-texticon-padding-left,var(--spectrum-global-dimension-size-85)\n);--spectrum-actionbutton-quiet-textonly-border-size:var(\n--spectrum-actionbutton-s-quiet-textonly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-quiet-textonly-text-size:var(\n--spectrum-actionbutton-s-quiet-textonly-text-size,var(--spectrum-global-dimension-font-size-75)\n);--spectrum-actionbutton-quiet-textonly-text-font-weight:var(\n--spectrum-actionbutton-s-quiet-textonly-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-actionbutton-quiet-textonly-border-radius:var(\n--spectrum-actionbutton-s-quiet-textonly-border-radius,var(--spectrum-alias-component-border-radius)\n);--spectrum-actionbutton-textonly-border-size:var(\n--spectrum-actionbutton-s-textonly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-textonly-hold-icon-padding-right:var(\n--spectrum-actionbutton-s-textonly-hold-icon-padding-right,var(--spectrum-global-dimension-size-40)\n);--spectrum-actionbutton-textonly-hold-icon-padding-bottom:var(\n--spectrum-actionbutton-s-textonly-hold-icon-padding-bottom,var(--spectrum-global-dimension-size-40)\n);--spectrum-actionbutton-textonly-text-size:var(\n--spectrum-actionbutton-s-textonly-text-size,var(--spectrum-global-dimension-font-size-75)\n);--spectrum-actionbutton-textonly-text-font-weight:var(\n--spectrum-actionbutton-s-textonly-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-actionbutton-textonly-text-line-height:var(\n--spectrum-actionbutton-s-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-actionbutton-textonly-height:var(\n--spectrum-actionbutton-s-textonly-height,var(--spectrum-global-dimension-size-300)\n);--spectrum-actionbutton-textonly-border-radius:var(\n--spectrum-actionbutton-s-textonly-border-radius,var(--spectrum-alias-component-border-radius)\n);--spectrum-actionbutton-textonly-padding-right:var(\n--spectrum-actionbutton-s-textonly-padding-right,var(--spectrum-global-dimension-size-115)\n);--spectrum-actionbutton-textonly-padding-left:var(\n--spectrum-actionbutton-s-textonly-padding-left,var(--spectrum-global-dimension-size-115)\n);--spectrum-actionbutton-icononly-border-size:var(\n--spectrum-actionbutton-s-icononly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-icononly-padding-right:var(\n--spectrum-actionbutton-s-icononly-padding-right,var(--spectrum-global-dimension-size-50)\n);--spectrum-actionbutton-icononly-padding-left:var(\n--spectrum-actionbutton-s-icononly-padding-left,var(--spectrum-global-dimension-size-50)\n);--spectrum-actionbutton-textonly-min-width:var(\n--spectrum-global-dimension-size-300\n)}:host([size=m]){--spectrum-actionbutton-texticon-padding-left:var(\n--spectrum-actionbutton-m-texticon-padding-left\n);--spectrum-actionbutton-texticon-border-size:var(\n--spectrum-actionbutton-m-texticon-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-texticon-icon-gap:var(\n--spectrum-actionbutton-m-texticon-icon-gap,var(--spectrum-global-dimension-size-100)\n);--spectrum-actionbutton-quiet-textonly-border-size:var(\n--spectrum-actionbutton-m-quiet-textonly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-quiet-textonly-text-size:var(\n--spectrum-actionbutton-m-quiet-textonly-text-size,var(--spectrum-global-dimension-font-size-100)\n);--spectrum-actionbutton-quiet-textonly-text-font-weight:var(\n--spectrum-actionbutton-m-quiet-textonly-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-actionbutton-quiet-textonly-border-radius:var(\n--spectrum-actionbutton-m-quiet-textonly-border-radius,var(--spectrum-alias-component-border-radius)\n);--spectrum-actionbutton-textonly-border-size:var(\n--spectrum-actionbutton-m-textonly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-textonly-hold-icon-padding-right:var(\n--spectrum-actionbutton-m-textonly-hold-icon-padding-right,var(--spectrum-global-dimension-size-50)\n);--spectrum-actionbutton-textonly-hold-icon-padding-bottom:var(\n--spectrum-actionbutton-m-textonly-hold-icon-padding-bottom,var(--spectrum-global-dimension-size-50)\n);--spectrum-actionbutton-textonly-text-size:var(\n--spectrum-actionbutton-m-textonly-text-size,var(--spectrum-global-dimension-font-size-100)\n);--spectrum-actionbutton-textonly-text-font-weight:var(\n--spectrum-actionbutton-m-textonly-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-actionbutton-textonly-text-line-height:var(\n--spectrum-actionbutton-m-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-actionbutton-textonly-min-width:var(\n--spectrum-actionbutton-m-textonly-min-width,var(--spectrum-global-dimension-size-400)\n);--spectrum-actionbutton-textonly-height:var(\n--spectrum-actionbutton-m-textonly-height,var(--spectrum-global-dimension-size-400)\n);--spectrum-actionbutton-textonly-border-radius:var(\n--spectrum-actionbutton-m-textonly-border-radius,var(--spectrum-alias-component-border-radius)\n);--spectrum-actionbutton-textonly-padding-right:var(\n--spectrum-actionbutton-m-textonly-padding-right,var(--spectrum-global-dimension-size-150)\n);--spectrum-actionbutton-textonly-padding-left:var(\n--spectrum-actionbutton-m-textonly-padding-left,var(--spectrum-global-dimension-size-150)\n);--spectrum-actionbutton-icononly-border-size:var(\n--spectrum-actionbutton-m-icononly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-icononly-padding-right:var(\n--spectrum-actionbutton-m-icononly-padding-right,var(--spectrum-global-dimension-size-85)\n);--spectrum-actionbutton-icononly-padding-left:var(\n--spectrum-actionbutton-m-icononly-padding-left,var(--spectrum-global-dimension-size-85)\n)}:host([size=l]){--spectrum-actionbutton-texticon-border-size:var(\n--spectrum-actionbutton-l-texticon-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-texticon-icon-gap:var(\n--spectrum-actionbutton-l-texticon-icon-gap,var(--spectrum-global-dimension-size-115)\n);--spectrum-actionbutton-texticon-padding-left:var(\n--spectrum-actionbutton-l-texticon-padding-left,var(--spectrum-global-dimension-size-160)\n);--spectrum-actionbutton-quiet-textonly-border-size:var(\n--spectrum-actionbutton-l-quiet-textonly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-quiet-textonly-text-size:var(\n--spectrum-actionbutton-l-quiet-textonly-text-size,var(--spectrum-global-dimension-font-size-200)\n);--spectrum-actionbutton-quiet-textonly-text-font-weight:var(\n--spectrum-actionbutton-l-quiet-textonly-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-actionbutton-quiet-textonly-border-radius:var(\n--spectrum-actionbutton-l-quiet-textonly-border-radius,var(--spectrum-alias-component-border-radius)\n);--spectrum-actionbutton-textonly-border-size:var(\n--spectrum-actionbutton-l-textonly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-textonly-hold-icon-padding-right:var(\n--spectrum-actionbutton-l-textonly-hold-icon-padding-right,var(--spectrum-global-dimension-size-65)\n);--spectrum-actionbutton-textonly-hold-icon-padding-bottom:var(\n--spectrum-actionbutton-l-textonly-hold-icon-padding-bottom,var(--spectrum-global-dimension-size-65)\n);--spectrum-actionbutton-textonly-text-size:var(\n--spectrum-actionbutton-l-textonly-text-size,var(--spectrum-global-dimension-font-size-200)\n);--spectrum-actionbutton-textonly-text-font-weight:var(\n--spectrum-actionbutton-l-textonly-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-actionbutton-textonly-text-line-height:var(\n--spectrum-actionbutton-l-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-actionbutton-textonly-min-width:var(\n--spectrum-actionbutton-l-textonly-min-width,var(--spectrum-global-dimension-size-400)\n);--spectrum-actionbutton-textonly-height:var(\n--spectrum-actionbutton-l-textonly-height,var(--spectrum-global-dimension-size-500)\n);--spectrum-actionbutton-textonly-border-radius:var(\n--spectrum-actionbutton-l-textonly-border-radius,var(--spectrum-alias-component-border-radius)\n);--spectrum-actionbutton-textonly-padding-right:var(\n--spectrum-actionbutton-l-textonly-padding-right,var(--spectrum-global-dimension-size-185)\n);--spectrum-actionbutton-textonly-padding-left:var(\n--spectrum-actionbutton-l-textonly-padding-left,var(--spectrum-global-dimension-size-185)\n);--spectrum-actionbutton-icononly-border-size:var(\n--spectrum-actionbutton-l-icononly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-icononly-padding-right:var(\n--spectrum-actionbutton-l-icononly-padding-right,var(--spectrum-global-dimension-size-125)\n);--spectrum-actionbutton-icononly-padding-left:var(\n--spectrum-actionbutton-l-icononly-padding-left,var(--spectrum-global-dimension-size-125)\n)}:host([size=xl]){--spectrum-actionbutton-texticon-border-size:var(\n--spectrum-actionbutton-xl-texticon-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-texticon-icon-gap:var(\n--spectrum-actionbutton-xl-texticon-icon-gap,var(--spectrum-global-dimension-size-125)\n);--spectrum-actionbutton-texticon-padding-left:var(\n--spectrum-actionbutton-xl-texticon-padding-left,var(--spectrum-global-dimension-size-185)\n);--spectrum-actionbutton-quiet-textonly-border-size:var(\n--spectrum-actionbutton-xl-quiet-textonly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-quiet-textonly-text-size:var(\n--spectrum-actionbutton-xl-quiet-textonly-text-size,var(--spectrum-global-dimension-font-size-300)\n);--spectrum-actionbutton-quiet-textonly-text-font-weight:var(\n--spectrum-actionbutton-xl-quiet-textonly-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-actionbutton-quiet-textonly-border-radius:var(\n--spectrum-actionbutton-xl-quiet-textonly-border-radius,var(--spectrum-alias-component-border-radius)\n);--spectrum-actionbutton-textonly-border-size:var(\n--spectrum-actionbutton-xl-textonly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-textonly-hold-icon-padding-right:var(\n--spectrum-actionbutton-xl-textonly-hold-icon-padding-right,var(--spectrum-global-dimension-size-75)\n);--spectrum-actionbutton-textonly-hold-icon-padding-bottom:var(\n--spectrum-actionbutton-xl-textonly-hold-icon-padding-bottom,var(--spectrum-global-dimension-size-75)\n);--spectrum-actionbutton-textonly-text-size:var(\n--spectrum-actionbutton-xl-textonly-text-size,var(--spectrum-global-dimension-font-size-300)\n);--spectrum-actionbutton-textonly-text-font-weight:var(\n--spectrum-actionbutton-xl-textonly-text-font-weight,var(--spectrum-alias-body-text-font-weight)\n);--spectrum-actionbutton-textonly-text-line-height:var(\n--spectrum-actionbutton-xl-textonly-text-line-height,var(--spectrum-alias-component-text-line-height)\n);--spectrum-actionbutton-textonly-min-width:var(\n--spectrum-actionbutton-xl-textonly-min-width,var(--spectrum-global-dimension-size-400)\n);--spectrum-actionbutton-textonly-height:var(\n--spectrum-actionbutton-xl-textonly-height,var(--spectrum-global-dimension-size-600)\n);--spectrum-actionbutton-textonly-border-radius:var(\n--spectrum-actionbutton-xl-textonly-border-radius,var(--spectrum-alias-component-border-radius)\n);--spectrum-actionbutton-textonly-padding-right:var(\n--spectrum-actionbutton-xl-textonly-padding-right,var(--spectrum-global-dimension-size-225)\n);--spectrum-actionbutton-textonly-padding-left:var(\n--spectrum-actionbutton-xl-textonly-padding-left,var(--spectrum-global-dimension-size-225)\n);--spectrum-actionbutton-icononly-border-size:var(\n--spectrum-actionbutton-xl-icononly-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-actionbutton-icononly-padding-right:var(\n--spectrum-actionbutton-xl-icononly-padding-right,var(--spectrum-global-dimension-size-160)\n);--spectrum-actionbutton-icononly-padding-left:var(\n--spectrum-actionbutton-xl-icononly-padding-left,var(--spectrum-global-dimension-size-160)\n)}:host{--spectrum-actionbutton-padding-left-adjusted:calc(var(--spectrum-actionbutton-texticon-padding-left) - var(--spectrum-actionbutton-texticon-border-size));--spectrum-actionbutton-textonly-padding-left-adjusted:calc(var(--spectrum-actionbutton-textonly-padding-left) - var(--spectrum-actionbutton-textonly-border-size));--spectrum-actionbutton-textonly-padding-right-adjusted:calc(var(--spectrum-actionbutton-textonly-padding-right) - var(--spectrum-actionbutton-textonly-border-size));--spectrum-actionbutton-icononly-padding-left-adjusted:calc(var(--spectrum-actionbutton-icononly-padding-left) - var(--spectrum-actionbutton-icononly-border-size));--spectrum-actionbutton-icononly-padding-right-adjusted:calc(var(--spectrum-actionbutton-icononly-padding-right) - var(--spectrum-actionbutton-icononly-border-size));--spectrum-actionbutton-focus-ring-border-radius-adjusted:calc(var(--spectrum-actionbutton-quiet-textonly-border-radius) + var(--spectrum-actionbutton-focus-ring-gap))}:host([dir=ltr]){padding-left:var(\n--spectrum-actionbutton-textonly-padding-left-adjusted\n);padding-right:var(--spectrum-actionbutton-textonly-padding-right-adjusted)}:host([dir=rtl]){padding-left:var(--spectrum-actionbutton-textonly-padding-right-adjusted);padding-right:var(\n--spectrum-actionbutton-textonly-padding-left-adjusted\n)}:host{border-radius:var(--spectrum-actionbutton-textonly-border-radius);border-width:var(--spectrum-actionbutton-textonly-border-size);color:inherit;font-size:var(--spectrum-actionbutton-textonly-text-size);font-weight:var(--spectrum-actionbutton-textonly-text-font-weight);height:var(--spectrum-actionbutton-textonly-height);line-height:var(--spectrum-actionbutton-textonly-text-line-height);min-width:var(--spectrum-actionbutton-textonly-min-width);position:relative}:host([dir=ltr]) ::slotted([slot=icon]){margin-left:calc((var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted))*-1)}:host([dir=rtl]) ::slotted([slot=icon]){margin-right:calc((var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-padding-left-adjusted))*-1)}:host([dir=ltr]) slot[name=icon]+#label{padding-left:var(\n--spectrum-actionbutton-texticon-icon-gap\n)}:host([dir=rtl]) slot[name=icon]+#label{padding-right:var(\n--spectrum-actionbutton-texticon-icon-gap\n)}:host([dir=ltr]) slot[name=icon]+#label{padding-right:0}:host([dir=rtl]) slot[name=icon]+#label{padding-left:0}.hold-affordance+::slotted([slot=icon]),:host([dir]) slot[icon-only] sp-icon,:host([dir]) slot[icon-only]::slotted([slot=icon]){margin-left:calc((var(--spectrum-actionbutton-textonly-padding-left-adjusted) - var(--spectrum-actionbutton-icononly-padding-left-adjusted))*-1);margin-right:calc((var(--spectrum-actionbutton-textonly-padding-right-adjusted) - var(--spectrum-actionbutton-icononly-padding-right-adjusted))*-1)}#label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([dir=ltr]) .hold-affordance{right:var(\n--spectrum-actionbutton-textonly-hold-icon-padding-right\n)}:host([dir=rtl]) .hold-affordance{left:var(\n--spectrum-actionbutton-textonly-hold-icon-padding-right\n)}:host([dir=rtl]) .hold-affordance{transform:matrix(-1,0,0,1,0,0)}.hold-affordance{bottom:var(--spectrum-actionbutton-textonly-hold-icon-padding-bottom);position:absolute}:host([quiet]){border-radius:var(--spectrum-actionbutton-quiet-textonly-border-radius);border-width:var(\n--spectrum-actionbutton-quiet-textonly-border-size\n);font-size:var(--spectrum-actionbutton-quiet-textonly-text-size);font-weight:var(--spectrum-actionbutton-quiet-textonly-text-font-weight)}:host{--spectrum-actionbutton-focus-ring-gap:var(\n--spectrum-alias-component-focusring-gap,var(--spectrum-global-dimension-static-size-0)\n);--spectrum-actionbutton-focus-ring-size:var(\n--spectrum-alias-component-focusring-size,var(--spectrum-global-dimension-static-size-10)\n);--spectrum-actionbutton-focus-ring-color:var(\n--spectrum-actionbutton-m-textonly-focus-ring-border-color-key-focus,var(--spectrum-alias-focus-ring-color)\n);transition:border-color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}:host:after{border-radius:var(\n--spectrum-actionbutton-focus-ring-border-radius-adjusted\n);bottom:0;content:\"\";left:0;margin:calc((var(--spectrum-actionbutton-focus-ring-gap) + var(--spectrum-actionbutton-textonly-border-size))*-1);pointer-events:none;position:absolute;right:0;top:0;transition:box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-in-out}:host(.focus-visible){box-shadow:none!important}:host(:focus-visible){box-shadow:none!important}:host(.focus-visible):after{box-shadow:0 0 0 var(--spectrum-actionbutton-focus-ring-size) var(--spectrum-actionbutton-focus-ring-color)}:host(:focus-visible):after{box-shadow:0 0 0 var(--spectrum-actionbutton-focus-ring-size) var(--spectrum-actionbutton-focus-ring-color)}:host([variant=white]){--spectrum-actionbutton-focus-ring-color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=black]){--spectrum-actionbutton-focus-ring-color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n)}:host([emphasized][selected]),:host([variant=black]),:host([variant=white]){--spectrum-actionbutton-focus-ring-gap:var(\n--spectrum-alias-component-focusring-gap-emphasized,var(--spectrum-global-dimension-static-size-25)\n);--spectrum-actionbutton-focus-ring-size:var(\n--spectrum-alias-component-focusring-size-emphasized,var(--spectrum-global-dimension-static-size-25)\n)}:host{background-color:var(\n--spectrum-actionbutton-m-textonly-background-color,var(--spectrum-alias-component-background-color-default)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color,var(--spectrum-alias-component-border-color-default)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color,var(--spectrum-alias-component-text-color-default)\n)}::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color,var(--spectrum-alias-component-icon-color-default)\n)}.hold-affordance{color:var(\n--spectrum-actionbutton-m-textonly-hold-icon-color,var(--spectrum-alias-component-icon-color-default)\n)}:host(:hover){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-hover,var(--spectrum-alias-component-background-color-hover)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-hover,var(--spectrum-alias-component-border-color-hover)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-hover,var(--spectrum-alias-component-text-color-hover)\n)}:host(:hover) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-hover,var(--spectrum-alias-component-icon-color-hover)\n)}:host(:hover) .hold-affordance{color:var(\n--spectrum-actionbutton-m-textonly-hold-icon-color-hover,var(--spectrum-alias-component-icon-color-hover)\n)}:host(.focus-visible){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-key-focus,var(--spectrum-alias-component-background-color-key-focus)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-key-focus,var(--spectrum-alias-component-border-color-key-focus)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host(:focus-visible){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-key-focus,var(--spectrum-alias-component-background-color-key-focus)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-key-focus,var(--spectrum-alias-component-border-color-key-focus)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host(.focus-visible[active]){border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-key-focus,var(--spectrum-alias-component-border-color-key-focus)\n)}:host(:focus-visible[active]){border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-key-focus,var(--spectrum-alias-component-border-color-key-focus)\n)}:host(.focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}:host(:focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}:host(.focus-visible) .hold-affordance{color:var(\n--spectrum-actionbutton-m-textonly-hold-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}:host(:focus-visible) .hold-affordance{color:var(\n--spectrum-actionbutton-m-textonly-hold-icon-color-key-focus,var(--spectrum-alias-component-icon-color-key-focus)\n)}:host([active]){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-down,var(--spectrum-alias-component-background-color-down)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-down,var(--spectrum-alias-component-border-color-down)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-down,var(--spectrum-alias-component-text-color-down)\n)}:host([active]) .hold-affordance{color:var(\n--spectrum-actionbutton-m-textonly-hold-icon-color-down,var(--spectrum-alias-component-icon-color-down)\n)}:host([disabled]),:host([disabled]){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-disabled,var(--spectrum-alias-component-background-color-disabled)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-disabled,var(--spectrum-alias-component-border-color-disabled)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}:host([disabled]) ::slotted([slot=icon]),:host([disabled]) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-disabled,var(--spectrum-alias-component-icon-color-disabled)\n)}:host([disabled]) .hold-affordance,:host([disabled]) .hold-affordance{color:var(\n--spectrum-actionbutton-m-textonly-hold-icon-color-disabled,var(--spectrum-alias-component-icon-color-disabled)\n)}:host([selected]){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-selected,var(--spectrum-alias-component-background-color-selected-default)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-selected,var(--spectrum-alias-component-border-color-selected-default)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-selected,var(--spectrum-alias-component-text-color-selected-default)\n)}:host([selected]) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-selected,var(--spectrum-alias-component-icon-color-selected)\n)}:host([selected].focus-visible){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-selected-key-focus,var(--spectrum-alias-component-background-color-selected-key-focus)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-selected-key-focus,var(--spectrum-alias-component-border-color-selected-key-focus)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-selected-key-focus,var(--spectrum-alias-component-text-color-selected-key-focus)\n)}:host([selected]:focus-visible){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-selected-key-focus,var(--spectrum-alias-component-background-color-selected-key-focus)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-selected-key-focus,var(--spectrum-alias-component-border-color-selected-key-focus)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-selected-key-focus,var(--spectrum-alias-component-text-color-selected-key-focus)\n)}:host([selected].focus-visible[active]){border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-key-focus,var(--spectrum-alias-component-border-color-key-focus)\n)}:host([selected]:focus-visible[active]){border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-key-focus,var(--spectrum-alias-component-border-color-key-focus)\n)}:host([selected].focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-selected-key-focus,var(--spectrum-alias-component-icon-color-selected)\n)}:host([selected]:focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-selected-key-focus,var(--spectrum-alias-component-icon-color-selected)\n)}:host([selected]:hover){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-selected-hover,var(--spectrum-alias-component-background-color-selected-hover)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-selected-hover,var(--spectrum-alias-component-border-color-selected-hover)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-selected-hover,var(--spectrum-alias-component-text-color-selected-hover)\n)}:host([selected]:hover) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-selected-hover,var(--spectrum-alias-component-icon-color-selected)\n)}:host([selected][active]){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-selected-down,var(--spectrum-alias-component-background-color-selected-down)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-selected-down,var(--spectrum-alias-component-border-color-selected-down)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-selected-down,var(--spectrum-alias-component-text-color-selected-down)\n)}:host([selected][active]) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-selected-down,var(--spectrum-alias-component-icon-color-selected)\n)}:host([selected][disabled]),:host([selected][disabled]){background-color:var(\n--spectrum-actionbutton-m-textonly-background-color-selected-disabled,var(--spectrum-alias-component-background-color-disabled)\n);border-color:var(\n--spectrum-actionbutton-m-textonly-border-color-selected-disabled,var(--spectrum-alias-component-border-color-disabled)\n);color:var(\n--spectrum-actionbutton-m-textonly-text-color-selected-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}:host([selected][disabled]) ::slotted([slot=icon]),:host([selected][disabled]) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-texticon-icon-color-selected-disabled,var(--spectrum-alias-component-icon-color-disabled)\n)}:host([emphasized][quiet][selected]),:host([emphasized][selected]){background-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-background-color-selected,var(\n--spectrum-alias-component-background-color-emphasized-selected-default\n)\n);border-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-border-color-selected,var(--spectrum-alias-component-border-color-emphasized-selected-default)\n);color:var(\n--spectrum-actionbutton-m-emphasized-textonly-text-color-selected,var(--spectrum-alias-component-text-color-emphasized-selected-default)\n)}:host([emphasized][quiet][selected]) ::slotted([slot=icon]),:host([emphasized][selected]) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected,var(--spectrum-alias-component-icon-color-emphasized-selected-default)\n)}:host([emphasized][quiet][selected].focus-visible),:host([emphasized][selected].focus-visible){background-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-key-focus,var(\n--spectrum-alias-component-background-color-emphasized-selected-key-focus\n)\n);border-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-key-focus,var(\n--spectrum-alias-component-border-color-emphasized-selected-key-focus\n)\n);color:var(\n--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-key-focus,var(--spectrum-alias-component-text-color-emphasized-selected-key-focus)\n)}:host([emphasized][quiet][selected]:focus-visible),:host([emphasized][selected]:focus-visible){background-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-key-focus,var(\n--spectrum-alias-component-background-color-emphasized-selected-key-focus\n)\n);border-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-key-focus,var(\n--spectrum-alias-component-border-color-emphasized-selected-key-focus\n)\n);color:var(\n--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-key-focus,var(--spectrum-alias-component-text-color-emphasized-selected-key-focus)\n)}:host([emphasized][quiet][selected].focus-visible) ::slotted([slot=icon]),:host([emphasized][selected].focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-key-focus,var(--spectrum-alias-component-icon-color-emphasized-selected-key-focus)\n)}:host([emphasized][quiet][selected]:focus-visible) ::slotted([slot=icon]),:host([emphasized][selected]:focus-visible) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-key-focus,var(--spectrum-alias-component-icon-color-emphasized-selected-key-focus)\n)}:host([emphasized][quiet][selected]:hover),:host([emphasized][selected]:hover){background-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-hover,var(\n--spectrum-alias-component-background-color-emphasized-selected-hover\n)\n);border-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-hover,var(--spectrum-alias-component-border-color-emphasized-selected-hover)\n);color:var(\n--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-hover,var(--spectrum-alias-component-text-color-emphasized-selected-hover)\n)}:host([emphasized][quiet][selected]:hover) ::slotted([slot=icon]),:host([emphasized][selected]:hover) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-hover,var(--spectrum-alias-component-icon-color-emphasized-selected-hover)\n)}:host([emphasized][quiet][selected][active]),:host([emphasized][selected][active]){background-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-down,var(\n--spectrum-alias-component-background-color-emphasized-selected-down\n)\n);border-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-down,var(--spectrum-alias-component-border-color-emphasized-selected-down)\n);color:var(\n--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-down,var(--spectrum-alias-component-text-color-emphasized-selected-down)\n)}:host([emphasized][quiet][selected][active]) ::slotted([slot=icon]),:host([emphasized][selected][active]) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-down,var(--spectrum-alias-component-icon-color-emphasized-selected-down)\n)}:host([emphasized][quiet][selected][disabled]),:host([emphasized][quiet][selected][disabled]),:host([emphasized][selected][disabled]){background-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-disabled,var(--spectrum-alias-component-background-color-disabled)\n);border-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-disabled,var(--spectrum-alias-component-border-color-disabled)\n);color:var(\n--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}:host([emphasized][quiet][selected][disabled]) ::slotted([slot=icon]),:host([emphasized][quiet][selected][disabled]) ::slotted([slot=icon]),:host([emphasized][selected][disabled]) ::slotted([slot=icon]){color:var(\n--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-disabled,var(--spectrum-alias-component-icon-color-disabled)\n)}:host([quiet]){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color,var(--spectrum-alias-component-background-color-quiet-default)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color,var(--spectrum-alias-component-border-color-quiet-default)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color,var(--spectrum-alias-component-text-color-default)\n)}:host([quiet]:hover){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-hover,var(--spectrum-alias-component-background-color-quiet-hover)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-hover,var(--spectrum-alias-component-border-color-quiet-hover)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-hover,var(--spectrum-alias-component-text-color-hover)\n)}:host([quiet].focus-visible){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-key-focus,var(--spectrum-alias-component-background-color-quiet-key-focus)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-key-focus,var(--spectrum-alias-component-border-color-quiet-key-focus)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host([quiet]:focus-visible){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-key-focus,var(--spectrum-alias-component-background-color-quiet-key-focus)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-key-focus,var(--spectrum-alias-component-border-color-quiet-key-focus)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-key-focus,var(--spectrum-alias-component-text-color-key-focus)\n)}:host([quiet][active]){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-down,var(--spectrum-alias-component-background-color-quiet-down)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-down,var(--spectrum-alias-component-border-color-quiet-down)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-down,var(--spectrum-alias-component-text-color-down)\n)}:host([quiet][disabled]),:host([quiet][disabled]){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-disabled,var(--spectrum-alias-component-background-color-quiet-disabled)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-disabled,var(--spectrum-alias-component-border-color-quiet-disabled)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}:host([quiet][selected]){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-selected,var(--spectrum-alias-component-background-color-selected-default)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-selected,var(--spectrum-alias-component-border-color-quiet-selected-default)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-selected,var(--spectrum-alias-component-text-color-selected-default)\n)}:host([quiet][selected].focus-visible){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-selected-key-focus,var(\n--spectrum-alias-component-background-color-quiet-selected-key-focus\n)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-selected-key-focus,var(--spectrum-alias-component-border-color-quiet-selected-key-focus)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-selected-key-focus,var(--spectrum-alias-component-text-color-selected-key-focus)\n)}:host([quiet][selected]:focus-visible){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-selected-key-focus,var(\n--spectrum-alias-component-background-color-quiet-selected-key-focus\n)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-selected-key-focus,var(--spectrum-alias-component-border-color-quiet-selected-key-focus)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-selected-key-focus,var(--spectrum-alias-component-text-color-selected-key-focus)\n)}:host([quiet][selected]:hover){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-selected-hover,var(--spectrum-alias-component-background-color-quiet-selected-hover)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-selected-hover,var(--spectrum-alias-component-border-color-quiet-selected-hover)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-selected-hover,var(--spectrum-alias-component-text-color-selected-hover)\n)}:host([quiet][selected][active]){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-selected-down,var(--spectrum-alias-component-background-color-quiet-selected-down)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-selected-down,var(--spectrum-alias-component-border-color-quiet-selected-down)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-selected-down,var(--spectrum-alias-component-text-color-selected-down)\n)}:host([quiet][selected][disabled]),:host([quiet][selected][disabled]){background-color:var(\n--spectrum-actionbutton-m-quiet-textonly-background-color-selected-disabled,var(--spectrum-alias-component-background-color-quiet-selected-disabled)\n);border-color:var(\n--spectrum-actionbutton-m-quiet-textonly-border-color-selected-disabled,var(--spectrum-alias-component-border-color-quiet-disabled)\n);color:var(\n--spectrum-actionbutton-m-quiet-textonly-text-color-selected-disabled,var(--spectrum-alias-component-text-color-disabled)\n)}:host([variant=black]),:host([variant=white]){--spectrum-global-color-static-black-rgb:0,0,0;--spectrum-global-color-static-white-rgb:255,255,255;--spectrum-ActionButton-static-black-color:var(\n--spectrum-global-color-static-black,rgb(var(--spectrum-global-color-static-black-rgb))\n);--spectrum-ActionButton-static-white-color:var(\n--spectrum-global-color-static-white,rgb(var(--spectrum-global-color-static-white-rgb))\n)}:host([variant=black][selected]),:host([variant=white][selected]){color:inherit!important}@media (forced-colors:active){:host{--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected:HighlightText;--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-disabled:GrayText;--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-down:HighlightText;--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-hover:HighlightText;--spectrum-actionbutton-m-emphasized-texticon-icon-color-selected-key-focus:HighlightText;--spectrum-actionbutton-m-emphasized-textonly-background-color-selected:Highlight;--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-disabled:ButtonFace;--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-down:Highlight;--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-hover:Highlight;--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-key-focus:Highlight;--spectrum-actionbutton-m-emphasized-textonly-border-color-selected:HighlightText;--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-disabled:GrayText;--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-down:HighlightText;--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-hover:HighlightText;--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-key-focus:HighlightText;--spectrum-actionbutton-m-emphasized-textonly-text-color-selected:HighlightText;--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-disabled:GrayText;--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-down:HighlightText;--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-hover:HighlightText;--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-key-focus:HighlightText;--spectrum-actionbutton-m-quiet-textonly-background-color:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-background-color-disabled:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-background-color-down:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-background-color-hover:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-background-color-key-focus:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-background-color-selected:Highlight;--spectrum-actionbutton-m-quiet-textonly-background-color-selected-disabled:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-background-color-selected-down:Highlight;--spectrum-actionbutton-m-quiet-textonly-background-color-selected-hover:Highlight;--spectrum-actionbutton-m-quiet-textonly-background-color-selected-key-focus:Highlight;--spectrum-actionbutton-m-quiet-textonly-border-color:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-border-color-disabled:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-border-color-down:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-border-color-hover:ButtonFace;--spectrum-actionbutton-m-quiet-textonly-border-color-key-focus:Highlight;--spectrum-actionbutton-m-quiet-textonly-border-color-selected:HighlightText;--spectrum-actionbutton-m-quiet-textonly-border-color-selected-disabled:GrayText;--spectrum-actionbutton-m-quiet-textonly-border-color-selected-down:HighlightText;--spectrum-actionbutton-m-quiet-textonly-border-color-selected-hover:HighlightText;--spectrum-actionbutton-m-quiet-textonly-border-color-selected-key-focus:HighlightText;--spectrum-actionbutton-m-quiet-textonly-text-color:ButtonText;--spectrum-actionbutton-m-quiet-textonly-text-color-disabled:GrayText;--spectrum-actionbutton-m-quiet-textonly-text-color-down:ButtonText;--spectrum-actionbutton-m-quiet-textonly-text-color-hover:ButtonText;--spectrum-actionbutton-m-quiet-textonly-text-color-key-focus:ButtonText;--spectrum-actionbutton-m-quiet-textonly-text-color-selected:HighlightText;--spectrum-actionbutton-m-quiet-textonly-text-color-selected-disabled:GrayText;--spectrum-actionbutton-m-quiet-textonly-text-color-selected-down:HighlightText;--spectrum-actionbutton-m-quiet-textonly-text-color-selected-hover:HighlightText;--spectrum-actionbutton-m-quiet-textonly-text-color-selected-key-focus:HighlightText;--spectrum-actionbutton-m-texticon-icon-color:ButtonText;--spectrum-actionbutton-m-texticon-icon-color-disabled:GrayText;--spectrum-actionbutton-m-texticon-icon-color-hover:ButtonText;--spectrum-actionbutton-m-texticon-icon-color-key-focus:ButtonText;--spectrum-actionbutton-m-texticon-icon-color-selected:HighlightText;--spectrum-actionbutton-m-texticon-icon-color-selected-disabled:GrayText;--spectrum-actionbutton-m-texticon-icon-color-selected-down:HighlightText;--spectrum-actionbutton-m-texticon-icon-color-selected-hover:HighlightText;--spectrum-actionbutton-m-texticon-icon-color-selected-key-focus:HighlightText;--spectrum-actionbutton-m-textonly-background-color:ButtonFace;--spectrum-actionbutton-m-textonly-background-color-disabled:ButtonFace;--spectrum-actionbutton-m-textonly-background-color-down:ButtonFace;--spectrum-actionbutton-m-textonly-background-color-hover:ButtonFace;--spectrum-actionbutton-m-textonly-background-color-key-focus:ButtonFace;--spectrum-actionbutton-m-textonly-background-color-selected:Highlight;--spectrum-actionbutton-m-textonly-background-color-selected-disabled:ButtonFace;--spectrum-actionbutton-m-textonly-background-color-selected-down:Highlight;--spectrum-actionbutton-m-textonly-background-color-selected-hover:Highlight;--spectrum-actionbutton-m-textonly-background-color-selected-key-focus:Highlight;--spectrum-actionbutton-m-textonly-border-color:ButtonText;--spectrum-actionbutton-m-textonly-border-color-disabled:GrayText;--spectrum-actionbutton-m-textonly-border-color-down:ButtonText;--spectrum-actionbutton-m-textonly-border-color-hover:ButtonText;--spectrum-actionbutton-m-textonly-border-color-key-focus:Highlight;--spectrum-actionbutton-m-textonly-border-color-selected:HighlightText;--spectrum-actionbutton-m-textonly-border-color-selected-disabled:GrayText;--spectrum-actionbutton-m-textonly-border-color-selected-down:HighlightText;--spectrum-actionbutton-m-textonly-border-color-selected-hover:HighlightText;--spectrum-actionbutton-m-textonly-border-color-selected-key-focus:HighlightText;--spectrum-actionbutton-m-textonly-hold-icon-color:ButtonText;--spectrum-actionbutton-m-textonly-hold-icon-color-disabled:GrayText;--spectrum-actionbutton-m-textonly-hold-icon-color-down:ButtonText;--spectrum-actionbutton-m-textonly-hold-icon-color-hover:ButtonText;--spectrum-actionbutton-m-textonly-hold-icon-color-key-focus:ButtonText;--spectrum-actionbutton-m-textonly-text-color:ButtonText;--spectrum-actionbutton-m-textonly-text-color-disabled:GrayText;--spectrum-actionbutton-m-textonly-text-color-down:ButtonText;--spectrum-actionbutton-m-textonly-text-color-hover:ButtonText;--spectrum-actionbutton-m-textonly-text-color-key-focus:ButtonText;--spectrum-actionbutton-m-textonly-text-color-selected:HighlightText;--spectrum-actionbutton-m-textonly-text-color-selected-disabled:GrayText;--spectrum-actionbutton-m-textonly-text-color-selected-down:HighlightText;--spectrum-actionbutton-m-textonly-text-color-selected-hover:HighlightText;--spectrum-actionbutton-m-textonly-text-color-selected-key-focus:HighlightText;forced-color-adjust:none}:host([quiet][emphasized]:not([disabled]):hover){background-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-hover,var(\n--spectrum-alias-component-background-color-emphasized-selected-hover\n)\n);border-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-hover,var(\n--spectrum-alias-component-border-color-emphasized-selected-hover\n)\n);color:var(\n--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-hover,var(--spectrum-alias-component-text-color-emphasized-selected-hover)\n)}:host([quiet][emphasized]:not([disabled])[active]){background-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-background-color-selected-down,var(\n--spectrum-alias-component-background-color-emphasized-selected-down\n)\n);border-color:var(\n--spectrum-actionbutton-m-emphasized-textonly-border-color-selected-down,var(\n--spectrum-alias-component-border-color-emphasized-selected-down\n)\n);color:var(\n--spectrum-actionbutton-m-emphasized-textonly-text-color-selected-down,var(--spectrum-alias-component-text-color-emphasized-selected-down)\n)}}\n`;\nexport default styles;"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { makeOverBackground } from '../../button/stories/index.js';
|
|
2
|
+
import { renderButtons } from './index.js';
|
|
3
|
+
export default {
|
|
4
|
+
component: 'sp-action-button',
|
|
5
|
+
title: 'Action Button/Static Black Quiet',
|
|
6
|
+
decorators: [makeOverBackground('black')],
|
|
7
|
+
};
|
|
8
|
+
const variant = 'black';
|
|
9
|
+
const quiet = true;
|
|
10
|
+
export const s = (args) => renderButtons(args);
|
|
11
|
+
s.args = {
|
|
12
|
+
size: 's',
|
|
13
|
+
quiet,
|
|
14
|
+
variant,
|
|
15
|
+
};
|
|
16
|
+
export const m = (args) => renderButtons(args);
|
|
17
|
+
m.args = {
|
|
18
|
+
size: 'm',
|
|
19
|
+
quiet,
|
|
20
|
+
variant,
|
|
21
|
+
};
|
|
22
|
+
export const l = (args) => renderButtons(args);
|
|
23
|
+
l.args = {
|
|
24
|
+
size: 'l',
|
|
25
|
+
quiet,
|
|
26
|
+
variant,
|
|
27
|
+
};
|
|
28
|
+
export const XL = (args) => renderButtons(args);
|
|
29
|
+
XL.args = {
|
|
30
|
+
size: 'xl',
|
|
31
|
+
quiet,
|
|
32
|
+
variant,
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=action-button-black-quiet.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button-black-quiet.stories.js","sourceRoot":"","sources":["action-button-black-quiet.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,kCAAkC;IACzC,UAAU,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;IACV,KAAK;IACL,OAAO;CACV,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static Black Quiet',\n decorators: [makeOverBackground('black')],\n};\n\nconst variant = 'black';\nconst quiet = true;\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n quiet,\n variant,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n quiet,\n variant,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n quiet,\n variant,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n quiet,\n variant,\n};\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { makeOverBackground } from '../../button/stories/index.js';
|
|
2
|
+
import { renderButtons } from './index.js';
|
|
3
|
+
export default {
|
|
4
|
+
component: 'sp-action-button',
|
|
5
|
+
title: 'Action Button/Static Black',
|
|
6
|
+
decorators: [makeOverBackground('black')],
|
|
7
|
+
};
|
|
8
|
+
const variant = 'black';
|
|
9
|
+
export const s = (args) => renderButtons(args);
|
|
10
|
+
s.args = {
|
|
11
|
+
size: 's',
|
|
12
|
+
variant,
|
|
13
|
+
};
|
|
14
|
+
export const m = (args) => renderButtons(args);
|
|
15
|
+
m.args = {
|
|
16
|
+
size: 'm',
|
|
17
|
+
variant,
|
|
18
|
+
};
|
|
19
|
+
export const l = (args) => renderButtons(args);
|
|
20
|
+
l.args = {
|
|
21
|
+
size: 'l',
|
|
22
|
+
variant,
|
|
23
|
+
};
|
|
24
|
+
export const XL = (args) => renderButtons(args);
|
|
25
|
+
XL.args = {
|
|
26
|
+
size: 'xl',
|
|
27
|
+
variant,
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=action-button-black.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button-black.stories.js","sourceRoot":"","sources":["action-button-black.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,4BAA4B;IACnC,UAAU,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAC;AAEF,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;IACV,OAAO;CACV,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static Black',\n decorators: [makeOverBackground('black')],\n};\n\nconst variant = 'black';\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n variant,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n variant,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n variant,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n variant,\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { renderButtons } from './index.js';
|
|
2
|
+
export default {
|
|
3
|
+
component: 'sp-action-button',
|
|
4
|
+
title: 'Action Button/Emphasized Quiet',
|
|
5
|
+
};
|
|
6
|
+
const emphasized = true;
|
|
7
|
+
const quiet = true;
|
|
8
|
+
export const s = (args) => renderButtons(args);
|
|
9
|
+
s.args = {
|
|
10
|
+
emphasized,
|
|
11
|
+
size: 's',
|
|
12
|
+
quiet,
|
|
13
|
+
};
|
|
14
|
+
export const m = (args) => renderButtons(args);
|
|
15
|
+
m.args = {
|
|
16
|
+
emphasized,
|
|
17
|
+
size: 'm',
|
|
18
|
+
quiet,
|
|
19
|
+
};
|
|
20
|
+
export const l = (args) => renderButtons(args);
|
|
21
|
+
l.args = {
|
|
22
|
+
emphasized,
|
|
23
|
+
size: 'l',
|
|
24
|
+
quiet,
|
|
25
|
+
};
|
|
26
|
+
export const XL = (args) => renderButtons(args);
|
|
27
|
+
XL.args = {
|
|
28
|
+
emphasized,
|
|
29
|
+
size: 'xl',
|
|
30
|
+
quiet,
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=action-button-emphasized-quiet.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button-emphasized-quiet.stories.js","sourceRoot":"","sources":["action-button-emphasized-quiet.stories.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,gCAAgC;CAC1C,CAAC;AAEF,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,UAAU;IACV,IAAI,EAAE,GAAG;IACT,KAAK;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,UAAU;IACV,IAAI,EAAE,GAAG;IACT,KAAK;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,UAAU;IACV,IAAI,EAAE,GAAG;IACT,KAAK;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,UAAU;IACV,IAAI,EAAE,IAAI;IACV,KAAK;CACR,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Emphasized Quiet',\n};\n\nconst emphasized = true;\nconst quiet = true;\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n emphasized,\n size: 's',\n quiet,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n emphasized,\n size: 'm',\n quiet,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n emphasized,\n size: 'l',\n quiet,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n emphasized,\n size: 'xl',\n quiet,\n};\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { renderButtons } from './index.js';
|
|
2
|
+
export default {
|
|
3
|
+
component: 'sp-action-button',
|
|
4
|
+
title: 'Action Button/Emphasized',
|
|
5
|
+
};
|
|
6
|
+
const emphasized = true;
|
|
7
|
+
export const s = (args) => renderButtons(args);
|
|
8
|
+
s.args = {
|
|
9
|
+
emphasized,
|
|
10
|
+
size: 's',
|
|
11
|
+
};
|
|
12
|
+
export const m = (args) => renderButtons(args);
|
|
13
|
+
m.args = {
|
|
14
|
+
emphasized,
|
|
15
|
+
size: 'm',
|
|
16
|
+
};
|
|
17
|
+
export const l = (args) => renderButtons(args);
|
|
18
|
+
l.args = {
|
|
19
|
+
emphasized,
|
|
20
|
+
size: 'l',
|
|
21
|
+
};
|
|
22
|
+
export const XL = (args) => renderButtons(args);
|
|
23
|
+
XL.args = {
|
|
24
|
+
emphasized,
|
|
25
|
+
size: 'xl',
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=action-button-emphasized.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button-emphasized.stories.js","sourceRoot":"","sources":["action-button-emphasized.stories.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,0BAA0B;CACpC,CAAC;AAEF,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,UAAU;IACV,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,UAAU;IACV,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,UAAU;IACV,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,UAAU;IACV,IAAI,EAAE,IAAI;CACb,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Emphasized',\n};\n\nconst emphasized = true;\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n emphasized,\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n emphasized,\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n emphasized,\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n emphasized,\n size: 'xl',\n};\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { renderButtons } from './index.js';
|
|
2
|
+
export default {
|
|
3
|
+
component: 'sp-action-button',
|
|
4
|
+
title: 'Action Button/Standard Quiet',
|
|
5
|
+
};
|
|
6
|
+
const quiet = true;
|
|
7
|
+
export const s = (args) => renderButtons(args);
|
|
8
|
+
s.args = {
|
|
9
|
+
size: 's',
|
|
10
|
+
quiet,
|
|
11
|
+
};
|
|
12
|
+
export const m = (args) => renderButtons(args);
|
|
13
|
+
m.args = {
|
|
14
|
+
size: 'm',
|
|
15
|
+
quiet,
|
|
16
|
+
};
|
|
17
|
+
export const l = (args) => renderButtons(args);
|
|
18
|
+
l.args = {
|
|
19
|
+
size: 'l',
|
|
20
|
+
quiet,
|
|
21
|
+
};
|
|
22
|
+
export const XL = (args) => renderButtons(args);
|
|
23
|
+
XL.args = {
|
|
24
|
+
size: 'xl',
|
|
25
|
+
quiet,
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=action-button-quiet.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button-quiet.stories.js","sourceRoot":"","sources":["action-button-quiet.stories.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,8BAA8B;CACxC,CAAC;AAEF,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;CACR,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;IACV,KAAK;CACR,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Standard Quiet',\n};\n\nconst quiet = true;\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n quiet,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n quiet,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n quiet,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n quiet,\n};\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { renderButtons } from './index.js';
|
|
2
|
+
export default {
|
|
3
|
+
component: 'sp-action-button',
|
|
4
|
+
title: 'Action Button/Standard',
|
|
5
|
+
};
|
|
6
|
+
export const s = (args) => renderButtons(args);
|
|
7
|
+
s.args = {
|
|
8
|
+
size: 's',
|
|
9
|
+
};
|
|
10
|
+
export const m = (args) => renderButtons(args);
|
|
11
|
+
m.args = {
|
|
12
|
+
size: 'm',
|
|
13
|
+
};
|
|
14
|
+
export const l = (args) => renderButtons(args);
|
|
15
|
+
l.args = {
|
|
16
|
+
size: 'l',
|
|
17
|
+
};
|
|
18
|
+
export const XL = (args) => renderButtons(args);
|
|
19
|
+
XL.args = {
|
|
20
|
+
size: 'xl',
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=action-button-standard.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button-standard.stories.js","sourceRoot":"","sources":["action-button-standard.stories.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,wBAAwB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;CACb,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Standard',\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n};\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { makeOverBackground } from '../../button/stories/index.js';
|
|
2
|
+
import { renderButtons } from './index.js';
|
|
3
|
+
export default {
|
|
4
|
+
component: 'sp-action-button',
|
|
5
|
+
title: 'Action Button/Static White Quiet',
|
|
6
|
+
decorators: [makeOverBackground()],
|
|
7
|
+
};
|
|
8
|
+
const variant = 'white';
|
|
9
|
+
const quiet = true;
|
|
10
|
+
export const s = (args) => renderButtons(args);
|
|
11
|
+
s.args = {
|
|
12
|
+
size: 's',
|
|
13
|
+
quiet,
|
|
14
|
+
variant,
|
|
15
|
+
};
|
|
16
|
+
export const m = (args) => renderButtons(args);
|
|
17
|
+
m.args = {
|
|
18
|
+
size: 'm',
|
|
19
|
+
quiet,
|
|
20
|
+
variant,
|
|
21
|
+
};
|
|
22
|
+
export const l = (args) => renderButtons(args);
|
|
23
|
+
l.args = {
|
|
24
|
+
size: 'l',
|
|
25
|
+
quiet,
|
|
26
|
+
variant,
|
|
27
|
+
};
|
|
28
|
+
export const XL = (args) => renderButtons(args);
|
|
29
|
+
XL.args = {
|
|
30
|
+
size: 'xl',
|
|
31
|
+
quiet,
|
|
32
|
+
variant,
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=action-button-white-quiet.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button-white-quiet.stories.js","sourceRoot":"","sources":["action-button-white-quiet.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,kCAAkC;IACzC,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,OAAO,GAAG,OAAO,CAAC;AACxB,MAAM,KAAK,GAAG,IAAI,CAAC;AAEnB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,KAAK;IACL,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;IACV,KAAK;IACL,OAAO;CACV,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static White Quiet',\n decorators: [makeOverBackground()],\n};\n\nconst variant = 'white';\nconst quiet = true;\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n quiet,\n variant,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n quiet,\n variant,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n quiet,\n variant,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n quiet,\n variant,\n};\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { makeOverBackground } from '../../button/stories/index.js';
|
|
2
|
+
import { renderButtons } from './index.js';
|
|
3
|
+
export default {
|
|
4
|
+
component: 'sp-action-button',
|
|
5
|
+
title: 'Action Button/Static White',
|
|
6
|
+
decorators: [makeOverBackground()],
|
|
7
|
+
};
|
|
8
|
+
const variant = 'white';
|
|
9
|
+
export const s = (args) => renderButtons(args);
|
|
10
|
+
s.args = {
|
|
11
|
+
size: 's',
|
|
12
|
+
variant,
|
|
13
|
+
};
|
|
14
|
+
export const m = (args) => renderButtons(args);
|
|
15
|
+
m.args = {
|
|
16
|
+
size: 'm',
|
|
17
|
+
variant,
|
|
18
|
+
};
|
|
19
|
+
export const l = (args) => renderButtons(args);
|
|
20
|
+
l.args = {
|
|
21
|
+
size: 'l',
|
|
22
|
+
variant,
|
|
23
|
+
};
|
|
24
|
+
export const XL = (args) => renderButtons(args);
|
|
25
|
+
XL.args = {
|
|
26
|
+
size: 'xl',
|
|
27
|
+
variant,
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=action-button-white.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button-white.stories.js","sourceRoot":"","sources":["action-button-white.stories.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,4BAA4B;IACnC,UAAU,EAAE,CAAC,kBAAkB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,OAAO,GAAG,OAAO,CAAC;AAExB,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3E,CAAC,CAAC,IAAI,GAAG;IACL,IAAI,EAAE,GAAG;IACT,OAAO;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAgB,EAAkB,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC5E,EAAE,CAAC,IAAI,GAAG;IACN,IAAI,EAAE,IAAI;IACV,OAAO;CACV,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static White',\n decorators: [makeOverBackground()],\n};\n\nconst variant = 'white';\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n variant,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n variant,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n variant,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n variant,\n};\n"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
import { html } from '@spectrum-web-components/base';
|
|
13
|
+
import '@spectrum-web-components/action-group/sp-action-group.js';
|
|
14
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';
|
|
15
|
+
import { renderButton } from './index.js';
|
|
16
|
+
import '../src';
|
|
17
|
+
import '../sp-action-button.js';
|
|
18
|
+
export default {
|
|
19
|
+
component: 'sp-action-button',
|
|
20
|
+
title: 'Action Button',
|
|
21
|
+
};
|
|
22
|
+
function renderButtonsSelected(args) {
|
|
23
|
+
const disabled = Object.assign({}, args, { disabled: true });
|
|
24
|
+
const selected = Object.assign({}, args, { selected: true });
|
|
25
|
+
return html `
|
|
26
|
+
<sp-action-group
|
|
27
|
+
?emphasized="${!!args.emphasized}"
|
|
28
|
+
?quiet="${!!args.quiet}"
|
|
29
|
+
>
|
|
30
|
+
${renderButton(args)} ${renderButton(selected)}
|
|
31
|
+
${renderButton(disabled)}
|
|
32
|
+
</sp-action-group>
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
35
|
+
export const toggles = (args) => renderButtonsSelected(args);
|
|
36
|
+
toggles.args = {
|
|
37
|
+
toggles: true,
|
|
38
|
+
icon: html `
|
|
39
|
+
<sp-icon-edit hidden slot="icon"></sp-icon-edit>
|
|
40
|
+
`,
|
|
41
|
+
};
|
|
42
|
+
export const iconSizeOverridden = (args) => {
|
|
43
|
+
return html `
|
|
44
|
+
${renderButton(args)}
|
|
45
|
+
<h1>For testing purposes only</h1>
|
|
46
|
+
<p>
|
|
47
|
+
This is a test to ensure that sizing the icon will still work when
|
|
48
|
+
it's in the scope of a parent element. You shouldn't normally do
|
|
49
|
+
this as it deviates from the Spectrum design specification.
|
|
50
|
+
</p>
|
|
51
|
+
`;
|
|
52
|
+
};
|
|
53
|
+
iconSizeOverridden.args = {
|
|
54
|
+
label: '',
|
|
55
|
+
size: 'xl',
|
|
56
|
+
icon: html `
|
|
57
|
+
<sp-icon-edit slot="icon" size="s"></sp-icon-edit>
|
|
58
|
+
`,
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=action-button.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-button.stories.js","sourceRoot":"","sources":["action-button.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AACrE,OAAO,0DAA0D,CAAC;AAClE,OAAO,+DAA+D,CAAC;AAEvE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,QAAQ,CAAC;AAChB,OAAO,wBAAwB,CAAC;AAEhC,eAAe;IACX,SAAS,EAAE,kBAAkB;IAC7B,KAAK,EAAE,eAAe;CACzB,CAAC;AAEF,SAAS,qBAAqB,CAAC,IAAgB;IAC3C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7D,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7D,OAAO,IAAI,CAAA;;2BAEY,CAAC,CAAC,IAAI,CAAC,UAAU;sBACtB,CAAC,CAAC,IAAI,CAAC,KAAK;;cAEpB,YAAY,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC;cAC5C,YAAY,CAAC,QAAQ,CAAC;;KAE/B,CAAC;AACN,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAgB,EAAkB,EAAE,CACxD,qBAAqB,CAAC,IAAI,CAAC,CAAC;AAChC,OAAO,CAAC,IAAI,GAAG;IACX,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,IAAI,CAAA;;KAET;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAgB,EAAkB,EAAE;IACnE,OAAO,IAAI,CAAA;UACL,YAAY,CAAC,IAAI,CAAC;;;;;;;KAOvB,CAAC;AACN,CAAC,CAAC;AACF,kBAAkB,CAAC,IAAI,GAAG;IACtB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI,CAAA;;KAET;CACJ,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\nimport type { Properties } from './index.js';\nimport { renderButton } from './index.js';\n\nimport '../src';\nimport '../sp-action-button.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button',\n};\n\nfunction renderButtonsSelected(args: Properties): TemplateResult {\n const disabled = Object.assign({}, args, { disabled: true });\n const selected = Object.assign({}, args, { selected: true });\n return html`\n <sp-action-group\n ?emphasized=\"${!!args.emphasized}\"\n ?quiet=\"${!!args.quiet}\"\n >\n ${renderButton(args)} ${renderButton(selected)}\n ${renderButton(disabled)}\n </sp-action-group>\n `;\n}\n\nexport const toggles = (args: Properties): TemplateResult =>\n renderButtonsSelected(args);\ntoggles.args = {\n toggles: true,\n icon: html`\n <sp-icon-edit hidden slot=\"icon\"></sp-icon-edit>\n `,\n};\n\nexport const iconSizeOverridden = (args: Properties): TemplateResult => {\n return html`\n ${renderButton(args)}\n <h1>For testing purposes only</h1>\n <p>\n This is a test to ensure that sizing the icon will still work when\n it's in the scope of a parent element. You shouldn't normally do\n this as it deviates from the Spectrum design specification.\n </p>\n `;\n};\niconSizeOverridden.args = {\n label: '',\n size: 'xl',\n icon: html`\n <sp-icon-edit slot=\"icon\" size=\"s\"></sp-icon-edit>\n `,\n};\n"]}
|
package/stories/index.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020 Adobe. All rights reserved.
|
|
3
|
+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
import { html } from '@spectrum-web-components/base';
|
|
13
|
+
import { ifDefined } from '@spectrum-web-components/base/src/directives.js';
|
|
14
|
+
import '@spectrum-web-components/action-group/sp-action-group.js';
|
|
15
|
+
import '@spectrum-web-components/icon/sp-icon.js';
|
|
16
|
+
import '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';
|
|
17
|
+
import '../src';
|
|
18
|
+
import '../sp-action-button.js';
|
|
19
|
+
export function renderButton(properties) {
|
|
20
|
+
return html `
|
|
21
|
+
<sp-action-button
|
|
22
|
+
?quiet="${!!properties.quiet}"
|
|
23
|
+
?emphasized="${!!properties.emphasized}"
|
|
24
|
+
variant="${ifDefined(properties.variant)}"
|
|
25
|
+
?disabled=${!!properties.disabled}
|
|
26
|
+
?selected=${!!properties.selected}
|
|
27
|
+
?toggles=${!!properties.toggles}
|
|
28
|
+
size=${properties.size || 'm'}
|
|
29
|
+
?hold-affordance=${!!properties.holdAffordance}
|
|
30
|
+
?active=${!!properties.active}
|
|
31
|
+
>
|
|
32
|
+
${properties.icon}${properties.label}
|
|
33
|
+
</sp-action-button>
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
36
|
+
function renderGroup(properties) {
|
|
37
|
+
const label = 'Edit';
|
|
38
|
+
const holdAffordance = true;
|
|
39
|
+
const icon = html `
|
|
40
|
+
<sp-icon-edit hidden slot="icon"></sp-icon-edit>
|
|
41
|
+
`;
|
|
42
|
+
return html `
|
|
43
|
+
<sp-action-group
|
|
44
|
+
?quiet="${!!properties.quiet}"
|
|
45
|
+
?emphasized="${!!properties.emphasized}"
|
|
46
|
+
>
|
|
47
|
+
${renderButton(Object.assign(Object.assign({}, properties), { label }))}
|
|
48
|
+
${renderButton(Object.assign(Object.assign({}, properties), { label,
|
|
49
|
+
icon }))}
|
|
50
|
+
${renderButton(Object.assign(Object.assign({}, properties), { icon }))}
|
|
51
|
+
${renderButton(Object.assign(Object.assign({}, properties), { icon,
|
|
52
|
+
holdAffordance }))}
|
|
53
|
+
</sp-action-group>
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
export function renderButtons(properties) {
|
|
57
|
+
const selected = true;
|
|
58
|
+
const disabled = true;
|
|
59
|
+
return html `
|
|
60
|
+
<div
|
|
61
|
+
style="display: flex; flex-direction: column; gap: var(--spectrum-global-dimension-size-100);"
|
|
62
|
+
>
|
|
63
|
+
${renderGroup(Object.assign({}, properties))}
|
|
64
|
+
${renderGroup(Object.assign(Object.assign({}, properties), { selected }))}
|
|
65
|
+
${renderGroup(Object.assign(Object.assign({}, properties), { disabled }))}
|
|
66
|
+
${renderGroup(Object.assign(Object.assign({}, properties), { disabled,
|
|
67
|
+
selected }))}
|
|
68
|
+
</div>
|
|
69
|
+
`;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAC5E,OAAO,0DAA0D,CAAC;AAClE,OAAO,0CAA0C,CAAC;AAClD,OAAO,+DAA+D,CAAC;AAEvE,OAAO,QAAQ,CAAC;AAChB,OAAO,wBAAwB,CAAC;AAiBhC,MAAM,UAAU,YAAY,CAAC,UAAsB;IAC/C,OAAO,IAAI,CAAA;;sBAEO,CAAC,CAAC,UAAU,CAAC,KAAK;2BACb,CAAC,CAAC,UAAU,CAAC,UAAU;uBAC3B,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC;wBAC5B,CAAC,CAAC,UAAU,CAAC,QAAQ;wBACrB,CAAC,CAAC,UAAU,CAAC,QAAQ;uBACtB,CAAC,CAAC,UAAU,CAAC,OAAO;mBACxB,UAAU,CAAC,IAAI,IAAI,GAAG;+BACV,CAAC,CAAC,UAAU,CAAC,cAAc;sBACpC,CAAC,CAAC,UAAU,CAAC,MAAM;;cAE3B,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC,KAAK;;KAE3C,CAAC;AACN,CAAC;AAED,SAAS,WAAW,CAAC,UAAsB;IACvC,MAAM,KAAK,GAAG,MAAM,CAAC;IACrB,MAAM,cAAc,GAAG,IAAI,CAAC;IAC5B,MAAM,IAAI,GAAG,IAAI,CAAA;;KAEhB,CAAC;IACF,OAAO,IAAI,CAAA;;sBAEO,CAAC,CAAC,UAAU,CAAC,KAAK;2BACb,CAAC,CAAC,UAAU,CAAC,UAAU;;cAEpC,YAAY,iCACP,UAAU,KACb,KAAK,IACP;cACA,YAAY,iCACP,UAAU,KACb,KAAK;QACL,IAAI,IACN;cACA,YAAY,iCACP,UAAU,KACb,IAAI,IACN;cACA,YAAY,iCACP,UAAU,KACb,IAAI;QACJ,cAAc,IAChB;;KAET,CAAC;AACN,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAAsB;IAChD,MAAM,QAAQ,GAAG,IAAI,CAAC;IACtB,MAAM,QAAQ,GAAG,IAAI,CAAC;IACtB,OAAO,IAAI,CAAA;;;;cAID,WAAW,mBACN,UAAU,EACf;cACA,WAAW,iCACN,UAAU,KACb,QAAQ,IACV;cACA,WAAW,iCACN,UAAU,KACb,QAAQ,IACV;cACA,WAAW,iCACN,UAAU,KACb,QAAQ;QACR,QAAQ,IACV;;KAET,CAAC;AACN,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\n\nimport '../src';\nimport '../sp-action-button.js';\n\nexport interface Properties {\n active?: boolean;\n quiet?: boolean;\n disabled?: boolean;\n selected?: boolean;\n toggles?: boolean;\n emphasized?: boolean;\n size?: 's' | 'm' | 'l' | 'xl';\n variant?: 'white' | 'black';\n holdAffordance?: boolean;\n icon?: TemplateResult;\n label?: string;\n [prop: string]: unknown;\n}\n\nexport function renderButton(properties: Properties): TemplateResult {\n return html`\n <sp-action-button\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n variant=\"${ifDefined(properties.variant)}\"\n ?disabled=${!!properties.disabled}\n ?selected=${!!properties.selected}\n ?toggles=${!!properties.toggles}\n size=${properties.size || 'm'}\n ?hold-affordance=${!!properties.holdAffordance}\n ?active=${!!properties.active}\n >\n ${properties.icon}${properties.label}\n </sp-action-button>\n `;\n}\n\nfunction renderGroup(properties: Properties): TemplateResult {\n const label = 'Edit';\n const holdAffordance = true;\n const icon = html`\n <sp-icon-edit hidden slot=\"icon\"></sp-icon-edit>\n `;\n return html`\n <sp-action-group\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n >\n ${renderButton({\n ...properties,\n label,\n })}\n ${renderButton({\n ...properties,\n label,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n holdAffordance,\n })}\n </sp-action-group>\n `;\n}\n\nexport function renderButtons(properties: Properties): TemplateResult {\n const selected = true;\n const disabled = true;\n return html`\n <div\n style=\"display: flex; flex-direction: column; gap: var(--spectrum-global-dimension-size-100);\"\n >\n ${renderGroup({\n ...properties,\n })}\n ${renderGroup({\n ...properties,\n selected,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n selected,\n })}\n </div>\n `;\n}\n"]}
|