@spectrum-web-components/action-button 1.2.0-beta.10 → 1.2.0-beta.12
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/package.json +8 -8
- package/src/ActionButton.dev.js +1 -7
- package/src/ActionButton.dev.js.map +2 -2
- package/src/ActionButton.js +2 -2
- package/src/ActionButton.js.map +3 -3
- package/src/action-button-overrides.css.dev.js +1 -1
- package/src/action-button-overrides.css.dev.js.map +1 -1
- package/src/action-button-overrides.css.js +3 -3
- package/src/action-button-overrides.css.js.map +1 -1
- package/src/action-button.css.dev.js +1 -1
- package/src/action-button.css.dev.js.map +1 -1
- package/src/action-button.css.js +1 -1
- package/src/action-button.css.js.map +1 -1
- package/src/spectrum-action-button.css.dev.js +1 -1
- package/src/spectrum-action-button.css.dev.js.map +1 -1
- package/src/spectrum-action-button.css.js +3 -3
- package/src/spectrum-action-button.css.js.map +1 -1
- package/src/spectrum-config.js +47 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/action-button",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"lit-html"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@spectrum-web-components/base": "^1.2.0-beta.
|
|
62
|
-
"@spectrum-web-components/button": "^1.2.0-beta.
|
|
63
|
-
"@spectrum-web-components/icon": "^1.2.0-beta.
|
|
64
|
-
"@spectrum-web-components/icons-ui": "^1.2.0-beta.
|
|
65
|
-
"@spectrum-web-components/shared": "^1.2.0-beta.
|
|
61
|
+
"@spectrum-web-components/base": "^1.2.0-beta.12",
|
|
62
|
+
"@spectrum-web-components/button": "^1.2.0-beta.12",
|
|
63
|
+
"@spectrum-web-components/icon": "^1.2.0-beta.12",
|
|
64
|
+
"@spectrum-web-components/icons-ui": "^1.2.0-beta.12",
|
|
65
|
+
"@spectrum-web-components/shared": "^1.2.0-beta.12"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@spectrum-css/actionbutton": "7.
|
|
68
|
+
"@spectrum-css/actionbutton": "7.1.1"
|
|
69
69
|
},
|
|
70
70
|
"types": "./src/index.d.ts",
|
|
71
71
|
"customElements": "custom-elements.json",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"./sp-*.js",
|
|
74
74
|
"./**/*.dev.js"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c14029936cd6224fb669993a9890b2ed0c3c9575"
|
|
77
77
|
}
|
package/src/ActionButton.dev.js
CHANGED
|
@@ -17,7 +17,6 @@ import { property } from "@spectrum-web-components/base/src/decorators.js";
|
|
|
17
17
|
import { ButtonBase } from "@spectrum-web-components/button";
|
|
18
18
|
import buttonStyles from "./action-button.css.js";
|
|
19
19
|
import cornerTriangleStyles from "@spectrum-web-components/icon/src/spectrum-icon-corner-triangle.css.js";
|
|
20
|
-
import cornerTriangleOverrides from "@spectrum-web-components/icon/src/icon-corner-triangle-overrides.css.js";
|
|
21
20
|
import "@spectrum-web-components/icons-ui/icons/sp-icon-corner-triangle300.js";
|
|
22
21
|
const holdAffordanceClass = {
|
|
23
22
|
xs: "spectrum-UIIcon-CornerTriangle75",
|
|
@@ -60,12 +59,7 @@ export class ActionButton extends SizedMixin(ButtonBase, {
|
|
|
60
59
|
this.addEventListener("click", this.onClick);
|
|
61
60
|
}
|
|
62
61
|
static get styles() {
|
|
63
|
-
return [
|
|
64
|
-
...super.styles,
|
|
65
|
-
buttonStyles,
|
|
66
|
-
cornerTriangleStyles,
|
|
67
|
-
cornerTriangleOverrides
|
|
68
|
-
];
|
|
62
|
+
return [...super.styles, buttonStyles, cornerTriangleStyles];
|
|
69
63
|
}
|
|
70
64
|
get value() {
|
|
71
65
|
return this._value || this.itemText;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["ActionButton.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 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 {\n CSSResultArray,\n DefaultElementSize,\n html,\n PropertyValues,\n SizedMixin,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { ButtonBase } from '@spectrum-web-components/button';\nimport buttonStyles from './action-button.css.js';\nimport cornerTriangleStyles from '@spectrum-web-components/icon/src/spectrum-icon-corner-triangle.css.js';\nimport
|
|
5
|
-
"mappings": ";;;;;;;;;;;AAYA;AAAA,EAGI;AAAA,EAEA;AAAA,OAEG;AACP,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,OAAO,kBAAkB;AACzB,OAAO,0BAA0B;AACjC,OAAO
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 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 {\n CSSResultArray,\n DefaultElementSize,\n html,\n PropertyValues,\n SizedMixin,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { ButtonBase } from '@spectrum-web-components/button';\nimport buttonStyles from './action-button.css.js';\nimport cornerTriangleStyles from '@spectrum-web-components/icon/src/spectrum-icon-corner-triangle.css.js';\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-corner-triangle300.js';\n\nconst holdAffordanceClass = {\n xs: 'spectrum-UIIcon-CornerTriangle75',\n s: 'spectrum-UIIcon-CornerTriangle75',\n m: 'spectrum-UIIcon-CornerTriangle100',\n l: 'spectrum-UIIcon-CornerTriangle200',\n xl: 'spectrum-UIIcon-CornerTriangle300',\n};\n\nexport const LONGPRESS_DURATION = 300;\nlet LONGPRESS_TIMEOUT: ReturnType<typeof setTimeout>;\n\nexport type LongpressEvent = {\n source: 'pointer' | 'keyboard';\n};\n\n/**\n * @element sp-action-button\n *\n * @slot - text label of the Action Button\n * @slot icon - The icon to use for Action Button\n * @fires change - Announces a change in the `selected` property of an action button\n * @fires longpress - Synthesizes a \"longpress\" interaction that signifies a\n * `pointerdown` event that is >=300ms or a keyboard event where code is `Space` or code is `ArrowDown`\n * while `altKey===true`.\n */\nexport class ActionButton extends SizedMixin(ButtonBase, {\n validSizes: ['xs', 's', 'm', 'l', 'xl'],\n noDefaultSize: true,\n}) {\n public static override get styles(): CSSResultArray {\n return [...super.styles, buttonStyles, cornerTriangleStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n public emphasized = false;\n\n @property({ type: Boolean, reflect: true, attribute: 'hold-affordance' })\n public holdAffordance = false;\n\n @property({ type: Boolean, reflect: true })\n public quiet = false;\n\n @property({ reflect: true })\n public override role = 'button';\n\n /**\n * Whether an Action Button with `role='button'`\n * should also be `aria-pressed='true'`\n */\n @property({ type: Boolean, reflect: true })\n public selected = false;\n\n /**\n * Whether to automatically manage the `selected`\n * attribute on interaction and whether `aria-pressed=\"false\"`\n * should be used when `selected === false`\n */\n @property({ type: Boolean, reflect: true })\n public toggles = false;\n\n /**\n * The static color variant to use for the action button.\n */\n @property({ reflect: true, attribute: 'static-color' })\n public staticColor?: 'white' | 'black';\n\n @property({ type: String })\n public get value(): string {\n return this._value || this.itemText;\n }\n public set value(value: string) {\n if (value === this._value) {\n return;\n }\n this._value = value || '';\n if (this._value) {\n this.setAttribute('value', this._value);\n } else {\n this.removeAttribute('value');\n }\n }\n private _value = '';\n\n /**\n * @private\n */\n public get itemText(): string {\n return (this.textContent || /* c8 ignore next */ '').trim();\n }\n\n constructor() {\n super();\n this.addEventListener('click', this.onClick);\n }\n\n private onClick = (): void => {\n if (!this.toggles) {\n return;\n }\n this.selected = !this.selected;\n const applyDefault = this.dispatchEvent(\n new Event('change', {\n cancelable: true,\n bubbles: true,\n composed: true,\n })\n );\n if (!applyDefault) {\n this.selected = !this.selected;\n }\n };\n\n private handlePointerdownHoldAffordance(event: PointerEvent): void {\n if (event.button !== 0) return;\n this.addEventListener('pointerup', this.handlePointerupHoldAffordance);\n this.addEventListener(\n 'pointercancel',\n this.handlePointerupHoldAffordance\n );\n LONGPRESS_TIMEOUT = setTimeout(() => {\n this.dispatchEvent(\n new CustomEvent<LongpressEvent>('longpress', {\n bubbles: true,\n composed: true,\n detail: {\n source: 'pointer',\n },\n })\n );\n }, LONGPRESS_DURATION);\n }\n\n private handlePointerupHoldAffordance(): void {\n clearTimeout(LONGPRESS_TIMEOUT);\n this.removeEventListener(\n 'pointerup',\n this.handlePointerupHoldAffordance\n );\n this.removeEventListener(\n 'pointercancel',\n this.handlePointerupHoldAffordance\n );\n }\n\n /**\n * @private\n */\n protected override handleKeydown(event: KeyboardEvent): void {\n if (!this.holdAffordance) {\n return super.handleKeydown(event);\n }\n const { code, altKey } = event;\n if (code === 'Space' || (altKey && code === 'ArrowDown')) {\n event.preventDefault();\n if (code === 'ArrowDown') {\n event.stopPropagation();\n event.stopImmediatePropagation();\n }\n this.addEventListener('keyup', this.handleKeyup);\n this.active = true;\n }\n }\n\n protected override handleKeyup(event: KeyboardEvent): void {\n if (!this.holdAffordance) {\n return super.handleKeyup(event);\n }\n const { code, altKey } = event;\n if (code === 'Space' || (altKey && code === 'ArrowDown')) {\n event.stopPropagation();\n this.dispatchEvent(\n new CustomEvent<LongpressEvent>('longpress', {\n bubbles: true,\n composed: true,\n detail: {\n source: 'keyboard',\n },\n })\n );\n this.active = false;\n }\n }\n\n protected override get buttonContent(): TemplateResult[] {\n const buttonContent = super.buttonContent;\n if (this.holdAffordance) {\n buttonContent.unshift(html`\n <sp-icon-corner-triangle300\n class=\"hold-affordance ${holdAffordanceClass[\n this.size as DefaultElementSize\n ]}\"\n ></sp-icon-corner-triangle300>\n `);\n }\n return buttonContent;\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n const isButton = this.role === 'button';\n const canBePressed =\n isButton &&\n (this.selected || this.toggles) &&\n !(\n this.hasAttribute('aria-haspopup') &&\n this.hasAttribute('aria-expanded')\n );\n if (changes.has('selected') || changes.has('role')) {\n // When role !== 'button' then the Action Button is within\n // an Action Group that manages selects which means the\n // Action Button is a \"checkbox\" or \"radio\" and cannot\n // accept the `aria-pressed` attribute.\n if (canBePressed) {\n this.setAttribute(\n 'aria-pressed',\n this.selected ? 'true' : 'false'\n );\n } else {\n // When !this.toggles the lack of \"aria-pressed\" is inconsequential.\n this.removeAttribute('aria-pressed');\n if (\n isButton &&\n this.toggles &&\n this.hasAttribute('aria-expanded')\n ) {\n this.setAttribute(\n 'aria-expanded',\n this.selected ? 'true' : 'false'\n );\n }\n }\n }\n if (changes.has('holdAffordance')) {\n if (this.holdAffordance) {\n this.addEventListener(\n 'pointerdown',\n this.handlePointerdownHoldAffordance\n );\n } else {\n this.removeEventListener(\n 'pointerdown',\n this.handlePointerdownHoldAffordance\n );\n this.handlePointerupHoldAffordance();\n }\n }\n }\n}\n\ndeclare global {\n interface GlobalEventHandlersEventMap {\n longpress: CustomEvent<LongpressEvent>;\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/ActionButton.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var p=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var o=(n,i,e,t)=>{for(var r=t>1?void 0:t?u(i,e):i,l=n.length-1,a;l>=0;l--)(a=n[l])&&(r=(t?a(i,e,r):a(r))||r);return t&&r&&p(i,e,r),r};import{html as c,SizedMixin as h}from"@spectrum-web-components/base";import{property as s}from"@spectrum-web-components/base/src/decorators.js";import{ButtonBase as f}from"@spectrum-web-components/button";import v from"./action-button.css.js";import b from"@spectrum-web-components/icon/src/spectrum-icon-corner-triangle.css.js";import
|
|
1
|
+
"use strict";var p=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var o=(n,i,e,t)=>{for(var r=t>1?void 0:t?u(i,e):i,l=n.length-1,a;l>=0;l--)(a=n[l])&&(r=(t?a(i,e,r):a(r))||r);return t&&r&&p(i,e,r),r};import{html as c,SizedMixin as h}from"@spectrum-web-components/base";import{property as s}from"@spectrum-web-components/base/src/decorators.js";import{ButtonBase as f}from"@spectrum-web-components/button";import v from"./action-button.css.js";import b from"@spectrum-web-components/icon/src/spectrum-icon-corner-triangle.css.js";import"@spectrum-web-components/icons-ui/icons/sp-icon-corner-triangle300.js";const m={xs:"spectrum-UIIcon-CornerTriangle75",s:"spectrum-UIIcon-CornerTriangle75",m:"spectrum-UIIcon-CornerTriangle100",l:"spectrum-UIIcon-CornerTriangle200",xl:"spectrum-UIIcon-CornerTriangle300"};export const LONGPRESS_DURATION=300;let d;export class ActionButton extends h(f,{validSizes:["xs","s","m","l","xl"],noDefaultSize:!0}){constructor(){super();this.emphasized=!1;this.holdAffordance=!1;this.quiet=!1;this.role="button";this.selected=!1;this.toggles=!1;this._value="";this.onClick=()=>{if(!this.toggles)return;this.selected=!this.selected,this.dispatchEvent(new Event("change",{cancelable:!0,bubbles:!0,composed:!0}))||(this.selected=!this.selected)};this.addEventListener("click",this.onClick)}static get styles(){return[...super.styles,v,b]}get value(){return this._value||this.itemText}set value(e){e!==this._value&&(this._value=e||"",this._value?this.setAttribute("value",this._value):this.removeAttribute("value"))}get itemText(){return(this.textContent||"").trim()}handlePointerdownHoldAffordance(e){e.button===0&&(this.addEventListener("pointerup",this.handlePointerupHoldAffordance),this.addEventListener("pointercancel",this.handlePointerupHoldAffordance),d=setTimeout(()=>{this.dispatchEvent(new CustomEvent("longpress",{bubbles:!0,composed:!0,detail:{source:"pointer"}}))},LONGPRESS_DURATION))}handlePointerupHoldAffordance(){clearTimeout(d),this.removeEventListener("pointerup",this.handlePointerupHoldAffordance),this.removeEventListener("pointercancel",this.handlePointerupHoldAffordance)}handleKeydown(e){if(!this.holdAffordance)return super.handleKeydown(e);const{code:t,altKey:r}=e;(t==="Space"||r&&t==="ArrowDown")&&(e.preventDefault(),t==="ArrowDown"&&(e.stopPropagation(),e.stopImmediatePropagation()),this.addEventListener("keyup",this.handleKeyup),this.active=!0)}handleKeyup(e){if(!this.holdAffordance)return super.handleKeyup(e);const{code:t,altKey:r}=e;(t==="Space"||r&&t==="ArrowDown")&&(e.stopPropagation(),this.dispatchEvent(new CustomEvent("longpress",{bubbles:!0,composed:!0,detail:{source:"keyboard"}})),this.active=!1)}get buttonContent(){const e=super.buttonContent;return this.holdAffordance&&e.unshift(c`
|
|
2
2
|
<sp-icon-corner-triangle300
|
|
3
|
-
class="hold-affordance ${
|
|
3
|
+
class="hold-affordance ${m[this.size]}"
|
|
4
4
|
></sp-icon-corner-triangle300>
|
|
5
5
|
`),e}updated(e){super.updated(e);const t=this.role==="button",r=t&&(this.selected||this.toggles)&&!(this.hasAttribute("aria-haspopup")&&this.hasAttribute("aria-expanded"));(e.has("selected")||e.has("role"))&&(r?this.setAttribute("aria-pressed",this.selected?"true":"false"):(this.removeAttribute("aria-pressed"),t&&this.toggles&&this.hasAttribute("aria-expanded")&&this.setAttribute("aria-expanded",this.selected?"true":"false"))),e.has("holdAffordance")&&(this.holdAffordance?this.addEventListener("pointerdown",this.handlePointerdownHoldAffordance):(this.removeEventListener("pointerdown",this.handlePointerdownHoldAffordance),this.handlePointerupHoldAffordance()))}}o([s({type:Boolean,reflect:!0})],ActionButton.prototype,"emphasized",2),o([s({type:Boolean,reflect:!0,attribute:"hold-affordance"})],ActionButton.prototype,"holdAffordance",2),o([s({type:Boolean,reflect:!0})],ActionButton.prototype,"quiet",2),o([s({reflect:!0})],ActionButton.prototype,"role",2),o([s({type:Boolean,reflect:!0})],ActionButton.prototype,"selected",2),o([s({type:Boolean,reflect:!0})],ActionButton.prototype,"toggles",2),o([s({reflect:!0,attribute:"static-color"})],ActionButton.prototype,"staticColor",2),o([s({type:String})],ActionButton.prototype,"value",1);
|
|
6
6
|
//# sourceMappingURL=ActionButton.js.map
|
package/src/ActionButton.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["ActionButton.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 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 {\n CSSResultArray,\n DefaultElementSize,\n html,\n PropertyValues,\n SizedMixin,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { ButtonBase } from '@spectrum-web-components/button';\nimport buttonStyles from './action-button.css.js';\nimport cornerTriangleStyles from '@spectrum-web-components/icon/src/spectrum-icon-corner-triangle.css.js';\nimport
|
|
5
|
-
"mappings": "qNAYA,OAGI,QAAAA,EAEA,cAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDACzB,OAAS,cAAAC,MAAkB,kCAC3B,OAAOC,MAAkB,yBACzB,OAAOC,MAA0B,yEACjC,
|
|
6
|
-
"names": ["html", "SizedMixin", "property", "ButtonBase", "buttonStyles", "cornerTriangleStyles", "
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 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 {\n CSSResultArray,\n DefaultElementSize,\n html,\n PropertyValues,\n SizedMixin,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { ButtonBase } from '@spectrum-web-components/button';\nimport buttonStyles from './action-button.css.js';\nimport cornerTriangleStyles from '@spectrum-web-components/icon/src/spectrum-icon-corner-triangle.css.js';\nimport '@spectrum-web-components/icons-ui/icons/sp-icon-corner-triangle300.js';\n\nconst holdAffordanceClass = {\n xs: 'spectrum-UIIcon-CornerTriangle75',\n s: 'spectrum-UIIcon-CornerTriangle75',\n m: 'spectrum-UIIcon-CornerTriangle100',\n l: 'spectrum-UIIcon-CornerTriangle200',\n xl: 'spectrum-UIIcon-CornerTriangle300',\n};\n\nexport const LONGPRESS_DURATION = 300;\nlet LONGPRESS_TIMEOUT: ReturnType<typeof setTimeout>;\n\nexport type LongpressEvent = {\n source: 'pointer' | 'keyboard';\n};\n\n/**\n * @element sp-action-button\n *\n * @slot - text label of the Action Button\n * @slot icon - The icon to use for Action Button\n * @fires change - Announces a change in the `selected` property of an action button\n * @fires longpress - Synthesizes a \"longpress\" interaction that signifies a\n * `pointerdown` event that is >=300ms or a keyboard event where code is `Space` or code is `ArrowDown`\n * while `altKey===true`.\n */\nexport class ActionButton extends SizedMixin(ButtonBase, {\n validSizes: ['xs', 's', 'm', 'l', 'xl'],\n noDefaultSize: true,\n}) {\n public static override get styles(): CSSResultArray {\n return [...super.styles, buttonStyles, cornerTriangleStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n public emphasized = false;\n\n @property({ type: Boolean, reflect: true, attribute: 'hold-affordance' })\n public holdAffordance = false;\n\n @property({ type: Boolean, reflect: true })\n public quiet = false;\n\n @property({ reflect: true })\n public override role = 'button';\n\n /**\n * Whether an Action Button with `role='button'`\n * should also be `aria-pressed='true'`\n */\n @property({ type: Boolean, reflect: true })\n public selected = false;\n\n /**\n * Whether to automatically manage the `selected`\n * attribute on interaction and whether `aria-pressed=\"false\"`\n * should be used when `selected === false`\n */\n @property({ type: Boolean, reflect: true })\n public toggles = false;\n\n /**\n * The static color variant to use for the action button.\n */\n @property({ reflect: true, attribute: 'static-color' })\n public staticColor?: 'white' | 'black';\n\n @property({ type: String })\n public get value(): string {\n return this._value || this.itemText;\n }\n public set value(value: string) {\n if (value === this._value) {\n return;\n }\n this._value = value || '';\n if (this._value) {\n this.setAttribute('value', this._value);\n } else {\n this.removeAttribute('value');\n }\n }\n private _value = '';\n\n /**\n * @private\n */\n public get itemText(): string {\n return (this.textContent || /* c8 ignore next */ '').trim();\n }\n\n constructor() {\n super();\n this.addEventListener('click', this.onClick);\n }\n\n private onClick = (): void => {\n if (!this.toggles) {\n return;\n }\n this.selected = !this.selected;\n const applyDefault = this.dispatchEvent(\n new Event('change', {\n cancelable: true,\n bubbles: true,\n composed: true,\n })\n );\n if (!applyDefault) {\n this.selected = !this.selected;\n }\n };\n\n private handlePointerdownHoldAffordance(event: PointerEvent): void {\n if (event.button !== 0) return;\n this.addEventListener('pointerup', this.handlePointerupHoldAffordance);\n this.addEventListener(\n 'pointercancel',\n this.handlePointerupHoldAffordance\n );\n LONGPRESS_TIMEOUT = setTimeout(() => {\n this.dispatchEvent(\n new CustomEvent<LongpressEvent>('longpress', {\n bubbles: true,\n composed: true,\n detail: {\n source: 'pointer',\n },\n })\n );\n }, LONGPRESS_DURATION);\n }\n\n private handlePointerupHoldAffordance(): void {\n clearTimeout(LONGPRESS_TIMEOUT);\n this.removeEventListener(\n 'pointerup',\n this.handlePointerupHoldAffordance\n );\n this.removeEventListener(\n 'pointercancel',\n this.handlePointerupHoldAffordance\n );\n }\n\n /**\n * @private\n */\n protected override handleKeydown(event: KeyboardEvent): void {\n if (!this.holdAffordance) {\n return super.handleKeydown(event);\n }\n const { code, altKey } = event;\n if (code === 'Space' || (altKey && code === 'ArrowDown')) {\n event.preventDefault();\n if (code === 'ArrowDown') {\n event.stopPropagation();\n event.stopImmediatePropagation();\n }\n this.addEventListener('keyup', this.handleKeyup);\n this.active = true;\n }\n }\n\n protected override handleKeyup(event: KeyboardEvent): void {\n if (!this.holdAffordance) {\n return super.handleKeyup(event);\n }\n const { code, altKey } = event;\n if (code === 'Space' || (altKey && code === 'ArrowDown')) {\n event.stopPropagation();\n this.dispatchEvent(\n new CustomEvent<LongpressEvent>('longpress', {\n bubbles: true,\n composed: true,\n detail: {\n source: 'keyboard',\n },\n })\n );\n this.active = false;\n }\n }\n\n protected override get buttonContent(): TemplateResult[] {\n const buttonContent = super.buttonContent;\n if (this.holdAffordance) {\n buttonContent.unshift(html`\n <sp-icon-corner-triangle300\n class=\"hold-affordance ${holdAffordanceClass[\n this.size as DefaultElementSize\n ]}\"\n ></sp-icon-corner-triangle300>\n `);\n }\n return buttonContent;\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n const isButton = this.role === 'button';\n const canBePressed =\n isButton &&\n (this.selected || this.toggles) &&\n !(\n this.hasAttribute('aria-haspopup') &&\n this.hasAttribute('aria-expanded')\n );\n if (changes.has('selected') || changes.has('role')) {\n // When role !== 'button' then the Action Button is within\n // an Action Group that manages selects which means the\n // Action Button is a \"checkbox\" or \"radio\" and cannot\n // accept the `aria-pressed` attribute.\n if (canBePressed) {\n this.setAttribute(\n 'aria-pressed',\n this.selected ? 'true' : 'false'\n );\n } else {\n // When !this.toggles the lack of \"aria-pressed\" is inconsequential.\n this.removeAttribute('aria-pressed');\n if (\n isButton &&\n this.toggles &&\n this.hasAttribute('aria-expanded')\n ) {\n this.setAttribute(\n 'aria-expanded',\n this.selected ? 'true' : 'false'\n );\n }\n }\n }\n if (changes.has('holdAffordance')) {\n if (this.holdAffordance) {\n this.addEventListener(\n 'pointerdown',\n this.handlePointerdownHoldAffordance\n );\n } else {\n this.removeEventListener(\n 'pointerdown',\n this.handlePointerdownHoldAffordance\n );\n this.handlePointerupHoldAffordance();\n }\n }\n }\n}\n\ndeclare global {\n interface GlobalEventHandlersEventMap {\n longpress: CustomEvent<LongpressEvent>;\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["html", "SizedMixin", "property", "ButtonBase", "buttonStyles", "cornerTriangleStyles", "holdAffordanceClass", "LONGPRESS_TIMEOUT", "value", "event", "code", "altKey", "buttonContent", "changes", "isButton", "canBePressed", "__decorateClass"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host{--spectrum-actionbutton-animation-duration:var(--system-action-button-animation-duration);--spectrum-actionbutton-border-radius:var(--system-action-button-border-radius);--spectrum-actionbutton-border-width:var(--system-action-button-border-width);--spectrum-actionbutton-content-color-default:var(--system-action-button-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-content-color-focus);--spectrum-actionbutton-focus-indicator-gap:var(--system-action-button-focus-indicator-gap);--spectrum-actionbutton-focus-indicator-thickness:var(--system-action-button-focus-indicator-thickness);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-focus-indicator-color);--spectrum-actionbutton-background-color-default:var(--system-action-button-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-background-color-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-border-color-disabled);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-content-color-disabled);--spectrum-actionbutton-min-width:var(--system-action-button-min-width);--spectrum-actionbutton-height:var(--system-action-button-height);--spectrum-actionbutton-icon-size:var(--system-action-button-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-edge-to-text-size)}:host([quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-quiet-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-quiet-border-color-disabled)}:host([selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-selected-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-selected-content-color-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-selected-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-selected-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-selected-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-selected-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-selected-border-color-disabled);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-selected-background-color-disabled)}:host([selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-selected-emphasized-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-selected-emphasized-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-selected-emphasized-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-selected-emphasized-content-color-focus)}:host([static-color=black][quiet]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-quiet-border-color-disabled)}:host([static-color=white][quiet]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-quiet-border-color-disabled)}:host([static-color=black]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-content-color-focus);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-static-black-content-color-disabled);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-static-black-focus-indicator-color)}:host([static-color=black][selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-selected-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-selected-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-selected-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-selected-content-color-focus)}:host([static-color=black][selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-selected-emphasized-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-selected-emphasized-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-selected-emphasized-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-selected-emphasized-content-color-focus)}:host([static-color=white]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-white-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-white-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-white-content-color-focus);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-static-white-content-color-disabled);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-static-white-focus-indicator-color)}:host([static-color=white][selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-selected-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-selected-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-selected-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-white-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-white-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-white-selected-content-color-focus)}:host([static-color=white][selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-selected-emphasized-content-color-default)}:host{--spectrum-actionbutton-min-width:var(--system-action-button-size-m-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-m-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-m-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-m-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-m-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-m-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-m-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-m-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-m-edge-to-text-size)}:host([size=xs]){--spectrum-actionbutton-min-width:var(--system-action-button-size-xs-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-xs-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-xs-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-xs-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-xs-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-xs-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-xs-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-xs-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-xs-edge-to-text-size)}:host([size=s]){--spectrum-actionbutton-min-width:var(--system-action-button-size-s-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-s-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-s-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-s-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-s-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-s-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-s-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-s-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-s-edge-to-text-size)}:host([size=l]){--spectrum-actionbutton-min-width:var(--system-action-button-size-l-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-l-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-l-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-l-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-l-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-l-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-l-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-l-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-l-edge-to-text-size)}:host([size=xl]){--spectrum-actionbutton-min-width:var(--system-action-button-size-xl-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-xl-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-xl-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-xl-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-xl-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-xl-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-xl-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-xl-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-xl-edge-to-text-size)}
|
|
4
|
+
:host{--spectrum-actionbutton-background-color-default:var(--system-action-button-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-background-color-disabled);--spectrum-actionbutton-background-color-selected:var(--system-action-button-background-color-selected);--spectrum-actionbutton-background-color-selected-hover:var(--system-action-button-background-color-selected-hover);--spectrum-actionbutton-background-color-selected-down:var(--system-action-button-background-color-selected-down);--spectrum-actionbutton-background-color-selected-focus:var(--system-action-button-background-color-selected-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-border-color-disabled);--spectrum-actionbutton-content-color-selected:var(--system-action-button-content-color-selected);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-background-color-selected-disabled)}:host{--spectrum-actionbutton-border-radius:var(--system-action-button-size-m-border-radius)}:host([size=xs]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-xs-border-radius)}:host([size=s]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-s-border-radius)}:host([size=l]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-l-border-radius)}:host([size=xl]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-xl-border-radius)}:host([quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-quiet-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-quiet-background-color-selected-disabled)}:host([static-color=black]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-static-black-background-color-selected-disabled);--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-background-color-focus)}:host([static-color=black][quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-quiet-background-color-disabled)}:host([static-color=white]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-static-white-background-color-selected-disabled);--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-background-color-focus)}:host([static-color=white][quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-quiet-background-color-disabled)}
|
|
5
5
|
`;
|
|
6
6
|
export default styles;
|
|
7
7
|
//# sourceMappingURL=action-button-overrides.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-button-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2025 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{--spectrum-actionbutton-animation-duration:var(--system-action-button-animation-duration);--spectrum-actionbutton-border-radius:var(--system-action-button-border-radius);--spectrum-actionbutton-border-width:var(--system-action-button-border-width);--spectrum-actionbutton-content-color-default:var(--system-action-button-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-content-color-focus);--spectrum-actionbutton-focus-indicator-gap:var(--system-action-button-focus-indicator-gap);--spectrum-actionbutton-focus-indicator-thickness:var(--system-action-button-focus-indicator-thickness);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-focus-indicator-color);--spectrum-actionbutton-background-color-default:var(--system-action-button-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-background-color-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-border-color-disabled);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-content-color-disabled);--spectrum-actionbutton-min-width:var(--system-action-button-min-width);--spectrum-actionbutton-height:var(--system-action-button-height);--spectrum-actionbutton-icon-size:var(--system-action-button-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-edge-to-text-size)}:host([quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-quiet-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-quiet-border-color-disabled)}:host([selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-selected-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-selected-content-color-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-selected-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-selected-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-selected-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-selected-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-selected-border-color-disabled);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-selected-background-color-disabled)}:host([selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-selected-emphasized-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-selected-emphasized-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-selected-emphasized-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-selected-emphasized-content-color-focus)}:host([static-color=black][quiet]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-quiet-border-color-disabled)}:host([static-color=white][quiet]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-quiet-border-color-disabled)}:host([static-color=black]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-content-color-focus);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-static-black-content-color-disabled);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-static-black-focus-indicator-color)}:host([static-color=black][selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-selected-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-selected-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-selected-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-selected-content-color-focus)}:host([static-color=black][selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-selected-emphasized-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-selected-emphasized-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-selected-emphasized-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-selected-emphasized-content-color-focus)}:host([static-color=white]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-white-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-white-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-white-content-color-focus);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-static-white-content-color-disabled);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-static-white-focus-indicator-color)}:host([static-color=white][selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-selected-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-selected-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-selected-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-white-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-white-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-white-selected-content-color-focus)}:host([static-color=white][selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-selected-emphasized-content-color-default)}:host{--spectrum-actionbutton-min-width:var(--system-action-button-size-m-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-m-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-m-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-m-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-m-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-m-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-m-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-m-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-m-edge-to-text-size)}:host([size=xs]){--spectrum-actionbutton-min-width:var(--system-action-button-size-xs-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-xs-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-xs-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-xs-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-xs-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-xs-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-xs-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-xs-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-xs-edge-to-text-size)}:host([size=s]){--spectrum-actionbutton-min-width:var(--system-action-button-size-s-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-s-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-s-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-s-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-s-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-s-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-s-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-s-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-s-edge-to-text-size)}:host([size=l]){--spectrum-actionbutton-min-width:var(--system-action-button-size-l-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-l-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-l-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-l-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-l-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-l-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-l-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-l-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-l-edge-to-text-size)}:host([size=xl]){--spectrum-actionbutton-min-width:var(--system-action-button-size-xl-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-xl-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-xl-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-xl-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-xl-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-xl-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-xl-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-xl-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-xl-edge-to-text-size)}\n`;\nexport default styles;"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{--spectrum-actionbutton-background-color-default:var(--system-action-button-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-background-color-disabled);--spectrum-actionbutton-background-color-selected:var(--system-action-button-background-color-selected);--spectrum-actionbutton-background-color-selected-hover:var(--system-action-button-background-color-selected-hover);--spectrum-actionbutton-background-color-selected-down:var(--system-action-button-background-color-selected-down);--spectrum-actionbutton-background-color-selected-focus:var(--system-action-button-background-color-selected-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-border-color-disabled);--spectrum-actionbutton-content-color-selected:var(--system-action-button-content-color-selected);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-background-color-selected-disabled)}:host{--spectrum-actionbutton-border-radius:var(--system-action-button-size-m-border-radius)}:host([size=xs]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-xs-border-radius)}:host([size=s]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-s-border-radius)}:host([size=l]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-l-border-radius)}:host([size=xl]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-xl-border-radius)}:host([quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-quiet-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-quiet-background-color-selected-disabled)}:host([static-color=black]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-static-black-background-color-selected-disabled);--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-background-color-focus)}:host([static-color=black][quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-quiet-background-color-disabled)}:host([static-color=white]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-static-white-background-color-selected-disabled);--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-background-color-focus)}:host([static-color=white][quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-quiet-background-color-disabled)}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";import{css as
|
|
2
|
-
:host{--spectrum-actionbutton-animation-duration:var(--system-action-button-animation-duration);--spectrum-actionbutton-border-radius:var(--system-action-button-border-radius);--spectrum-actionbutton-border-width:var(--system-action-button-border-width);--spectrum-actionbutton-content-color-default:var(--system-action-button-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-content-color-focus);--spectrum-actionbutton-focus-indicator-gap:var(--system-action-button-focus-indicator-gap);--spectrum-actionbutton-focus-indicator-thickness:var(--system-action-button-focus-indicator-thickness);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-focus-indicator-color);--spectrum-actionbutton-background-color-default:var(--system-action-button-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-background-color-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-border-color-disabled);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-content-color-disabled);--spectrum-actionbutton-min-width:var(--system-action-button-min-width);--spectrum-actionbutton-height:var(--system-action-button-height);--spectrum-actionbutton-icon-size:var(--system-action-button-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-edge-to-text-size)}:host([quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-quiet-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-quiet-border-color-disabled)}:host([selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-selected-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-selected-content-color-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-selected-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-selected-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-selected-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-selected-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-selected-border-color-disabled);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-selected-background-color-disabled)}:host([selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-selected-emphasized-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-selected-emphasized-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-selected-emphasized-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-selected-emphasized-content-color-focus)}:host([static-color=black][quiet]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-quiet-border-color-disabled)}:host([static-color=white][quiet]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-quiet-border-color-disabled)}:host([static-color=black]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-content-color-focus);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-static-black-content-color-disabled);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-static-black-focus-indicator-color)}:host([static-color=black][selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-selected-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-selected-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-selected-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-selected-content-color-focus)}:host([static-color=black][selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-selected-emphasized-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-selected-emphasized-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-selected-emphasized-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-selected-emphasized-content-color-focus)}:host([static-color=white]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-white-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-white-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-white-content-color-focus);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-static-white-content-color-disabled);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-static-white-focus-indicator-color)}:host([static-color=white][selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-selected-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-selected-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-selected-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-white-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-white-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-white-selected-content-color-focus)}:host([static-color=white][selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-selected-emphasized-content-color-default)}:host{--spectrum-actionbutton-min-width:var(--system-action-button-size-m-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-m-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-m-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-m-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-m-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-m-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-m-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-m-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-m-edge-to-text-size)}:host([size=xs]){--spectrum-actionbutton-min-width:var(--system-action-button-size-xs-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-xs-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-xs-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-xs-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-xs-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-xs-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-xs-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-xs-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-xs-edge-to-text-size)}:host([size=s]){--spectrum-actionbutton-min-width:var(--system-action-button-size-s-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-s-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-s-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-s-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-s-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-s-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-s-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-s-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-s-edge-to-text-size)}:host([size=l]){--spectrum-actionbutton-min-width:var(--system-action-button-size-l-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-l-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-l-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-l-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-l-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-l-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-l-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-l-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-l-edge-to-text-size)}:host([size=xl]){--spectrum-actionbutton-min-width:var(--system-action-button-size-xl-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-xl-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-xl-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-xl-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-xl-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-xl-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-xl-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-xl-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-xl-edge-to-text-size)}
|
|
3
|
-
`;export default
|
|
1
|
+
"use strict";import{css as o}from"@spectrum-web-components/base";const t=o`
|
|
2
|
+
:host{--spectrum-actionbutton-background-color-default:var(--system-action-button-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-background-color-disabled);--spectrum-actionbutton-background-color-selected:var(--system-action-button-background-color-selected);--spectrum-actionbutton-background-color-selected-hover:var(--system-action-button-background-color-selected-hover);--spectrum-actionbutton-background-color-selected-down:var(--system-action-button-background-color-selected-down);--spectrum-actionbutton-background-color-selected-focus:var(--system-action-button-background-color-selected-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-border-color-disabled);--spectrum-actionbutton-content-color-selected:var(--system-action-button-content-color-selected);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-background-color-selected-disabled)}:host{--spectrum-actionbutton-border-radius:var(--system-action-button-size-m-border-radius)}:host([size=xs]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-xs-border-radius)}:host([size=s]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-s-border-radius)}:host([size=l]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-l-border-radius)}:host([size=xl]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-xl-border-radius)}:host([quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-quiet-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-quiet-background-color-selected-disabled)}:host([static-color=black]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-static-black-background-color-selected-disabled);--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-background-color-focus)}:host([static-color=black][quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-quiet-background-color-disabled)}:host([static-color=white]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-static-white-background-color-selected-disabled);--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-background-color-focus)}:host([static-color=white][quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-quiet-background-color-disabled)}
|
|
3
|
+
`;export default t;
|
|
4
4
|
//# sourceMappingURL=action-button-overrides.css.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["action-button-overrides.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2025 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{--spectrum-actionbutton-animation-duration:var(--system-action-button-animation-duration);--spectrum-actionbutton-border-radius:var(--system-action-button-border-radius);--spectrum-actionbutton-border-width:var(--system-action-button-border-width);--spectrum-actionbutton-content-color-default:var(--system-action-button-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-content-color-focus);--spectrum-actionbutton-focus-indicator-gap:var(--system-action-button-focus-indicator-gap);--spectrum-actionbutton-focus-indicator-thickness:var(--system-action-button-focus-indicator-thickness);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-focus-indicator-color);--spectrum-actionbutton-background-color-default:var(--system-action-button-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-background-color-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-border-color-disabled);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-content-color-disabled);--spectrum-actionbutton-min-width:var(--system-action-button-min-width);--spectrum-actionbutton-height:var(--system-action-button-height);--spectrum-actionbutton-icon-size:var(--system-action-button-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-edge-to-text-size)}:host([quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-quiet-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-quiet-border-color-disabled)}:host([selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-selected-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-selected-content-color-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-selected-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-selected-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-selected-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-selected-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-selected-border-color-disabled);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-selected-background-color-disabled)}:host([selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-selected-emphasized-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-selected-emphasized-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-selected-emphasized-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-selected-emphasized-content-color-focus)}:host([static-color=black][quiet]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-quiet-border-color-disabled)}:host([static-color=white][quiet]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-quiet-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-quiet-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-quiet-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-quiet-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-quiet-border-color-disabled)}:host([static-color=black]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-content-color-focus);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-static-black-content-color-disabled);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-static-black-focus-indicator-color)}:host([static-color=black][selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-selected-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-selected-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-black-selected-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-selected-content-color-focus)}:host([static-color=black][selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-black-selected-emphasized-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-black-selected-emphasized-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-black-selected-emphasized-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-black-selected-emphasized-content-color-focus)}:host([static-color=white]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-background-color-disabled);--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-white-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-white-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-white-content-color-focus);--spectrum-actionbutton-content-color-disabled:var(--system-action-button-static-white-content-color-disabled);--spectrum-actionbutton-focus-indicator-color:var(--system-action-button-static-white-focus-indicator-color)}:host([static-color=white][selected]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-selected-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-selected-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-selected-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-selected-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-selected-background-color-disabled);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-static-white-selected-border-color-disabled);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-selected-content-color-default);--spectrum-actionbutton-content-color-hover:var(--system-action-button-static-white-selected-content-color-hover);--spectrum-actionbutton-content-color-down:var(--system-action-button-static-white-selected-content-color-down);--spectrum-actionbutton-content-color-focus:var(--system-action-button-static-white-selected-content-color-focus)}:host([static-color=white][selected][emphasized]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-selected-emphasized-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-selected-emphasized-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-selected-emphasized-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-selected-emphasized-background-color-focus);--spectrum-actionbutton-content-color-default:var(--system-action-button-static-white-selected-emphasized-content-color-default)}:host{--spectrum-actionbutton-min-width:var(--system-action-button-size-m-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-m-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-m-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-m-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-m-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-m-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-m-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-m-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-m-edge-to-text-size)}:host([size=xs]){--spectrum-actionbutton-min-width:var(--system-action-button-size-xs-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-xs-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-xs-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-xs-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-xs-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-xs-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-xs-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-xs-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-xs-edge-to-text-size)}:host([size=s]){--spectrum-actionbutton-min-width:var(--system-action-button-size-s-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-s-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-s-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-s-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-s-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-s-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-s-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-s-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-s-edge-to-text-size)}:host([size=l]){--spectrum-actionbutton-min-width:var(--system-action-button-size-l-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-l-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-l-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-l-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-l-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-l-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-l-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-l-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-l-edge-to-text-size)}:host([size=xl]){--spectrum-actionbutton-min-width:var(--system-action-button-size-xl-min-width);--spectrum-actionbutton-height:var(--system-action-button-size-xl-height);--spectrum-actionbutton-icon-size:var(--system-action-button-size-xl-icon-size);--spectrum-actionbutton-font-size:var(--system-action-button-size-xl-font-size);--spectrum-actionbutton-text-to-visual:var(--system-action-button-size-xl-text-to-visual);--spectrum-actionbutton-edge-to-hold-icon:var(--system-action-button-size-xl-edge-to-hold-icon);--spectrum-actionbutton-edge-to-visual-size:var(--system-action-button-size-xl-edge-to-visual-size);--spectrum-actionbutton-edge-to-visual-only-size:var(--system-action-button-size-xl-edge-to-visual-only-size);--spectrum-actionbutton-edge-to-text-size:var(--system-action-button-size-xl-edge-to-text-size)}\n`;\nexport default styles;"],
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2025 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{--spectrum-actionbutton-background-color-default:var(--system-action-button-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-background-color-disabled);--spectrum-actionbutton-background-color-selected:var(--system-action-button-background-color-selected);--spectrum-actionbutton-background-color-selected-hover:var(--system-action-button-background-color-selected-hover);--spectrum-actionbutton-background-color-selected-down:var(--system-action-button-background-color-selected-down);--spectrum-actionbutton-background-color-selected-focus:var(--system-action-button-background-color-selected-focus);--spectrum-actionbutton-border-color-default:var(--system-action-button-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-border-color-focus);--spectrum-actionbutton-border-color-disabled:var(--system-action-button-border-color-disabled);--spectrum-actionbutton-content-color-selected:var(--system-action-button-content-color-selected);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-background-color-selected-disabled)}:host{--spectrum-actionbutton-border-radius:var(--system-action-button-size-m-border-radius)}:host([size=xs]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-xs-border-radius)}:host([size=s]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-s-border-radius)}:host([size=l]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-l-border-radius)}:host([size=xl]){--spectrum-actionbutton-border-radius:var(--system-action-button-size-xl-border-radius)}:host([quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-quiet-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-quiet-background-color-selected-disabled)}:host([static-color=black]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-black-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-black-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-black-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-black-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-static-black-background-color-selected-disabled);--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-background-color-focus)}:host([static-color=black][quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-black-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-black-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-black-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-black-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-black-quiet-background-color-disabled)}:host([static-color=white]){--spectrum-actionbutton-border-color-default:var(--system-action-button-static-white-border-color-default);--spectrum-actionbutton-border-color-hover:var(--system-action-button-static-white-border-color-hover);--spectrum-actionbutton-border-color-down:var(--system-action-button-static-white-border-color-down);--spectrum-actionbutton-border-color-focus:var(--system-action-button-static-white-border-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-background-color-disabled);--spectrum-actionbutton-background-color-selected-disabled:var(--system-action-button-static-white-background-color-selected-disabled);--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-background-color-focus)}:host([static-color=white][quiet]){--spectrum-actionbutton-background-color-default:var(--system-action-button-static-white-quiet-background-color-default);--spectrum-actionbutton-background-color-hover:var(--system-action-button-static-white-quiet-background-color-hover);--spectrum-actionbutton-background-color-down:var(--system-action-button-static-white-quiet-background-color-down);--spectrum-actionbutton-background-color-focus:var(--system-action-button-static-white-quiet-background-color-focus);--spectrum-actionbutton-background-color-disabled:var(--system-action-button-static-white-quiet-background-color-disabled)}\n`;\nexport default styles;"],
|
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|