@spectrum-web-components/action-button 1.1.0-beta.9 → 1.1.1

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/README.md CHANGED
@@ -540,3 +540,25 @@ With the application of the `toggles` attribute, the button will self manage its
540
540
  </div>
541
541
  </div>
542
542
  ```
543
+
544
+ ## Handling events
545
+
546
+ Events handlers for clicks and other user actions can be registered on a
547
+ `<sp-action-button>` as on a standard HTML `<button>` element.
548
+
549
+ ```html
550
+ <sp-button onclick="spAlert(this, '<sp-action-button> clicked!')">
551
+ Click me
552
+ </sp-button>
553
+ ```
554
+
555
+ In addition to handling events like a native `<button>` HTML element, one can also use a `<sp-action-button>` in place of the `<a>` HTML element by using the `href` and optional `target` attribute.
556
+
557
+ ```html
558
+ <sp-action-button
559
+ href="https://github.com/adobe/spectrum-web-components"
560
+ target="_blank"
561
+ >
562
+ Click me
563
+ </sp-action-button>
564
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/action-button",
3
- "version": "1.1.0-beta.9",
3
+ "version": "1.1.1",
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.1.0-beta.9",
62
- "@spectrum-web-components/button": "^1.1.0-beta.9",
63
- "@spectrum-web-components/icon": "^1.1.0-beta.9",
64
- "@spectrum-web-components/icons-ui": "^1.1.0-beta.9",
65
- "@spectrum-web-components/shared": "^1.1.0-beta.9"
61
+ "@spectrum-web-components/base": "^1.1.1",
62
+ "@spectrum-web-components/button": "^1.1.1",
63
+ "@spectrum-web-components/icon": "^1.1.1",
64
+ "@spectrum-web-components/icons-ui": "^1.1.1",
65
+ "@spectrum-web-components/shared": "^1.1.1"
66
66
  },
67
67
  "devDependencies": {
68
- "@spectrum-css/actionbutton": "^7.0.0-s2-foundations.22"
68
+ "@spectrum-css/actionbutton": "7.0.0-s2-foundations.22"
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": "56bdfbc0a26b76ff7c3ee454478d5ebd2a4d33dc"
76
+ "gitHead": "44870aa95001c1b995456d994ae31bbe7277fac9"
77
77
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["action-button-overrides.css.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*/\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-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;"],
5
5
  "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["action-button-overrides.css.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*/\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-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;"],
5
5
  "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["action-button.css.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*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--mod-button-font-family,var(--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--mod-button-line-height,var(--mod-line-height-100,var(--spectrum-line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,border-color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,box-shadow var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out;border-style:solid;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){max-block-size:100%;flex-shrink:0}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-actionbutton-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-actionbutton-background-color-default:Highlight;--highcontrast-actionbutton-background-color-hover:Highlight;--highcontrast-actionbutton-background-color-focus:Highlight;--highcontrast-actionbutton-background-color-down:Highlight;--highcontrast-actionbutton-background-color-disabled:ButtonFace;--highcontrast-actionbutton-border-color-default:HighlightText;--highcontrast-actionbutton-border-color-hover:HighlightText;--highcontrast-actionbutton-border-color-focus:HighlightText;--highcontrast-actionbutton-border-color-down:HighlightText;--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-default:HighlightText;--highcontrast-actionbutton-content-color-hover:HighlightText;--highcontrast-actionbutton-content-color-focus:HighlightText;--highcontrast-actionbutton-content-color-down:HighlightText;--highcontrast-actionbutton-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--spectrum-actionbutton-focus-indicator-border-radius:calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap));--spectrum-actionbutton-edge-to-visual:calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-text:calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width));min-inline-size:var(--mod-actionbutton-min-width,var(--spectrum-actionbutton-min-width));block-size:var(--mod-actionbutton-height,var(--spectrum-actionbutton-height));border-radius:var(--mod-actionbutton-border-radius,var(--spectrum-actionbutton-border-radius));border-width:var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width));gap:calc(var(--mod-actionbutton-text-to-visual,var(--spectrum-actionbutton-text-to-visual)) + var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)));padding-inline:var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text));background-color:var(--highcontrast-actionbutton-background-color-default,var(--mod-actionbutton-background-color-default,var(--spectrum-actionbutton-background-color-default)));border-color:var(--highcontrast-actionbutton-border-color-default,var(--mod-actionbutton-border-color-default,var(--spectrum-actionbutton-border-color-default)));color:var(--highcontrast-actionbutton-content-color-default,var(--mod-actionbutton-content-color-default,var(--spectrum-actionbutton-content-color-default)));position:relative}:host:dir(rtl),:host([dir=rtl]){--spectrum-logical-rotation:matrix(-1,0,0,1,0,0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-actionbutton-background-color-hover,var(--mod-actionbutton-background-color-hover,var(--spectrum-actionbutton-background-color-hover)));border-color:var(--highcontrast-actionbutton-border-color-hover,var(--mod-actionbutton-border-color-hover,var(--spectrum-actionbutton-border-color-hover)));color:var(--highcontrast-actionbutton-content-color-hover,var(--mod-actionbutton-content-color-hover,var(--spectrum-actionbutton-content-color-hover)))}}:host(:focus-visible){background-color:var(--highcontrast-actionbutton-background-color-focus,var(--mod-actionbutton-background-color-focus,var(--spectrum-actionbutton-background-color-focus)));border-color:var(--highcontrast-actionbutton-border-color-focus,var(--mod-actionbutton-border-color-focus,var(--spectrum-actionbutton-border-color-focus)));color:var(--highcontrast-actionbutton-content-color-focus,var(--mod-actionbutton-content-color-focus,var(--spectrum-actionbutton-content-color-focus)))}:host(:is(:active,[active])){background-color:var(--highcontrast-actionbutton-background-color-down,var(--mod-actionbutton-background-color-down,var(--spectrum-actionbutton-background-color-down)));border-color:var(--highcontrast-actionbutton-border-color-down,var(--mod-actionbutton-border-color-down,var(--spectrum-actionbutton-border-color-down)));color:var(--highcontrast-actionbutton-content-color-down,var(--mod-actionbutton-content-color-down,var(--spectrum-actionbutton-content-color-down)))}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-actionbutton-background-color-disabled,var(--mod-actionbutton-background-color-disabled,var(--spectrum-actionbutton-background-color-disabled)));border-color:var(--highcontrast-actionbutton-border-color-disabled,var(--mod-actionbutton-border-color-disabled,var(--spectrum-actionbutton-border-color-disabled)));color:var(--highcontrast-actionbutton-content-color-disabled,var(--mod-actionbutton-content-color-disabled,var(--spectrum-actionbutton-content-color-disabled)))}:host([selected]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected)}:host([selected][emphasized]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected-emphasized);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected-emphasized);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected-emphasized);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected-emphasized);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected-emphasized);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected-emphasized);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected-emphasized);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--mod-actionbutton-content-color-default:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-down:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-static-content-color)}::slotted([slot=icon]){inline-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));block-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));color:inherit;margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual,var(--spectrum-actionbutton-edge-to-visual)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)));margin-inline-end:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}.hold-affordance+::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}#label{pointer-events:none;font-size:var(--mod-actionbutton-font-size,var(--spectrum-actionbutton-font-size));white-space:nowrap;color:inherit;color:var(--mod-actionbutton-label-color,inherit);text-overflow:ellipsis;overflow:hidden}.hold-affordance{color:inherit;transform:var(--spectrum-logical-rotation);position:absolute;inset-block-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)));inset-inline-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))}:host{transition:border-color var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out}:host:after{margin:calc(( var(--mod-actionbutton-focus-indicator-gap,var(--spectrum-actionbutton-focus-indicator-gap)) + var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))*-1);border-radius:var(--mod-actionbutton-focus-indicator-border-radius,var(--spectrum-actionbutton-focus-indicator-border-radius));transition:box-shadow var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out;pointer-events:none;content:\"\";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--mod-actionbutton-focus-indicator-thickness,var(--spectrum-actionbutton-focus-indicator-thickness))var(--highcontrast-actionbutton-focus-indicator-color,var(--mod-actionbutton-focus-indicator-color,var(--spectrum-actionbutton-focus-indicator-color)))}: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)}::slotted([slot=icon]){flex-shrink:0}#label{flex-grow:var(--spectrum-actionbutton-label-flex-grow);text-align:var(--spectrum-actionbutton-label-text-align);pointer-events:none!important}:host([size=xs]){min-width:var(--spectrum-actionbutton-height,0);--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-50) - var(--spectrum-actionbutton-border-width))}:host([size=s]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-75) - var(--spectrum-actionbutton-border-width))}:host([size=m]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-100) - var(--spectrum-actionbutton-border-width))}:host([size=l]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-200) - var(--spectrum-actionbutton-border-width))}:host([size=xl]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-300) - var(--spectrum-actionbutton-border-width))}@media (forced-colors:active){:host{--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-disabled:GrayText}}\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{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--mod-button-font-family,var(--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--mod-button-line-height,var(--mod-line-height-100,var(--spectrum-line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,border-color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,box-shadow var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out;border-style:solid;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){max-block-size:100%;flex-shrink:0}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-actionbutton-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-actionbutton-background-color-default:Highlight;--highcontrast-actionbutton-background-color-hover:Highlight;--highcontrast-actionbutton-background-color-focus:Highlight;--highcontrast-actionbutton-background-color-down:Highlight;--highcontrast-actionbutton-background-color-disabled:ButtonFace;--highcontrast-actionbutton-border-color-default:HighlightText;--highcontrast-actionbutton-border-color-hover:HighlightText;--highcontrast-actionbutton-border-color-focus:HighlightText;--highcontrast-actionbutton-border-color-down:HighlightText;--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-default:HighlightText;--highcontrast-actionbutton-content-color-hover:HighlightText;--highcontrast-actionbutton-content-color-focus:HighlightText;--highcontrast-actionbutton-content-color-down:HighlightText;--highcontrast-actionbutton-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--spectrum-actionbutton-focus-indicator-border-radius:calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap));--spectrum-actionbutton-edge-to-visual:calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-text:calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width));min-inline-size:var(--mod-actionbutton-min-width,var(--spectrum-actionbutton-min-width));block-size:var(--mod-actionbutton-height,var(--spectrum-actionbutton-height));border-radius:var(--mod-actionbutton-border-radius,var(--spectrum-actionbutton-border-radius));border-width:var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width));gap:calc(var(--mod-actionbutton-text-to-visual,var(--spectrum-actionbutton-text-to-visual)) + var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)));padding-inline:var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text));background-color:var(--highcontrast-actionbutton-background-color-default,var(--mod-actionbutton-background-color-default,var(--spectrum-actionbutton-background-color-default)));border-color:var(--highcontrast-actionbutton-border-color-default,var(--mod-actionbutton-border-color-default,var(--spectrum-actionbutton-border-color-default)));color:var(--highcontrast-actionbutton-content-color-default,var(--mod-actionbutton-content-color-default,var(--spectrum-actionbutton-content-color-default)));position:relative}:host:dir(rtl),:host([dir=rtl]){--spectrum-logical-rotation:matrix(-1,0,0,1,0,0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-actionbutton-background-color-hover,var(--mod-actionbutton-background-color-hover,var(--spectrum-actionbutton-background-color-hover)));border-color:var(--highcontrast-actionbutton-border-color-hover,var(--mod-actionbutton-border-color-hover,var(--spectrum-actionbutton-border-color-hover)));color:var(--highcontrast-actionbutton-content-color-hover,var(--mod-actionbutton-content-color-hover,var(--spectrum-actionbutton-content-color-hover)))}}:host(:focus-visible){background-color:var(--highcontrast-actionbutton-background-color-focus,var(--mod-actionbutton-background-color-focus,var(--spectrum-actionbutton-background-color-focus)));border-color:var(--highcontrast-actionbutton-border-color-focus,var(--mod-actionbutton-border-color-focus,var(--spectrum-actionbutton-border-color-focus)));color:var(--highcontrast-actionbutton-content-color-focus,var(--mod-actionbutton-content-color-focus,var(--spectrum-actionbutton-content-color-focus)))}:host(:is(:active,[active])){background-color:var(--highcontrast-actionbutton-background-color-down,var(--mod-actionbutton-background-color-down,var(--spectrum-actionbutton-background-color-down)));border-color:var(--highcontrast-actionbutton-border-color-down,var(--mod-actionbutton-border-color-down,var(--spectrum-actionbutton-border-color-down)));color:var(--highcontrast-actionbutton-content-color-down,var(--mod-actionbutton-content-color-down,var(--spectrum-actionbutton-content-color-down)))}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-actionbutton-background-color-disabled,var(--mod-actionbutton-background-color-disabled,var(--spectrum-actionbutton-background-color-disabled)));border-color:var(--highcontrast-actionbutton-border-color-disabled,var(--mod-actionbutton-border-color-disabled,var(--spectrum-actionbutton-border-color-disabled)));color:var(--highcontrast-actionbutton-content-color-disabled,var(--mod-actionbutton-content-color-disabled,var(--spectrum-actionbutton-content-color-disabled)))}:host([selected]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected)}:host([selected][emphasized]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected-emphasized);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected-emphasized);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected-emphasized);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected-emphasized);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected-emphasized);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected-emphasized);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected-emphasized);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--mod-actionbutton-content-color-default:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-down:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-static-content-color)}::slotted([slot=icon]){inline-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));block-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));color:inherit;margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual,var(--spectrum-actionbutton-edge-to-visual)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)));margin-inline-end:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}.hold-affordance+::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}#label{pointer-events:none;font-size:var(--mod-actionbutton-font-size,var(--spectrum-actionbutton-font-size));white-space:nowrap;color:inherit;color:var(--mod-actionbutton-label-color,inherit);text-overflow:ellipsis;overflow:hidden}.hold-affordance{color:inherit;transform:var(--spectrum-logical-rotation);position:absolute;inset-block-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)));inset-inline-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))}:host{transition:border-color var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out}:host:after{margin:calc(( var(--mod-actionbutton-focus-indicator-gap,var(--spectrum-actionbutton-focus-indicator-gap)) + var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))*-1);border-radius:var(--mod-actionbutton-focus-indicator-border-radius,var(--spectrum-actionbutton-focus-indicator-border-radius));transition:box-shadow var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out;pointer-events:none;content:\"\";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--mod-actionbutton-focus-indicator-thickness,var(--spectrum-actionbutton-focus-indicator-thickness))var(--highcontrast-actionbutton-focus-indicator-color,var(--mod-actionbutton-focus-indicator-color,var(--spectrum-actionbutton-focus-indicator-color)))}: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)}::slotted([slot=icon]){flex-shrink:0}#label{flex-grow:var(--spectrum-actionbutton-label-flex-grow);text-align:var(--spectrum-actionbutton-label-text-align);pointer-events:none!important}:host([size=xs]){min-width:var(--spectrum-actionbutton-height,0);--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-50) - var(--spectrum-actionbutton-border-width))}:host([size=s]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-75) - var(--spectrum-actionbutton-border-width))}:host([size=m]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-100) - var(--spectrum-actionbutton-border-width))}:host([size=l]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-200) - var(--spectrum-actionbutton-border-width))}:host([size=xl]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-300) - var(--spectrum-actionbutton-border-width))}@media (forced-colors:active){:host{--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-disabled:GrayText}}\n`;\nexport default styles;"],
5
5
  "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["action-button.css.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*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--mod-button-font-family,var(--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--mod-button-line-height,var(--mod-line-height-100,var(--spectrum-line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,border-color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,box-shadow var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out;border-style:solid;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){max-block-size:100%;flex-shrink:0}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-actionbutton-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-actionbutton-background-color-default:Highlight;--highcontrast-actionbutton-background-color-hover:Highlight;--highcontrast-actionbutton-background-color-focus:Highlight;--highcontrast-actionbutton-background-color-down:Highlight;--highcontrast-actionbutton-background-color-disabled:ButtonFace;--highcontrast-actionbutton-border-color-default:HighlightText;--highcontrast-actionbutton-border-color-hover:HighlightText;--highcontrast-actionbutton-border-color-focus:HighlightText;--highcontrast-actionbutton-border-color-down:HighlightText;--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-default:HighlightText;--highcontrast-actionbutton-content-color-hover:HighlightText;--highcontrast-actionbutton-content-color-focus:HighlightText;--highcontrast-actionbutton-content-color-down:HighlightText;--highcontrast-actionbutton-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--spectrum-actionbutton-focus-indicator-border-radius:calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap));--spectrum-actionbutton-edge-to-visual:calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-text:calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width));min-inline-size:var(--mod-actionbutton-min-width,var(--spectrum-actionbutton-min-width));block-size:var(--mod-actionbutton-height,var(--spectrum-actionbutton-height));border-radius:var(--mod-actionbutton-border-radius,var(--spectrum-actionbutton-border-radius));border-width:var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width));gap:calc(var(--mod-actionbutton-text-to-visual,var(--spectrum-actionbutton-text-to-visual)) + var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)));padding-inline:var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text));background-color:var(--highcontrast-actionbutton-background-color-default,var(--mod-actionbutton-background-color-default,var(--spectrum-actionbutton-background-color-default)));border-color:var(--highcontrast-actionbutton-border-color-default,var(--mod-actionbutton-border-color-default,var(--spectrum-actionbutton-border-color-default)));color:var(--highcontrast-actionbutton-content-color-default,var(--mod-actionbutton-content-color-default,var(--spectrum-actionbutton-content-color-default)));position:relative}:host:dir(rtl),:host([dir=rtl]){--spectrum-logical-rotation:matrix(-1,0,0,1,0,0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-actionbutton-background-color-hover,var(--mod-actionbutton-background-color-hover,var(--spectrum-actionbutton-background-color-hover)));border-color:var(--highcontrast-actionbutton-border-color-hover,var(--mod-actionbutton-border-color-hover,var(--spectrum-actionbutton-border-color-hover)));color:var(--highcontrast-actionbutton-content-color-hover,var(--mod-actionbutton-content-color-hover,var(--spectrum-actionbutton-content-color-hover)))}}:host(:focus-visible){background-color:var(--highcontrast-actionbutton-background-color-focus,var(--mod-actionbutton-background-color-focus,var(--spectrum-actionbutton-background-color-focus)));border-color:var(--highcontrast-actionbutton-border-color-focus,var(--mod-actionbutton-border-color-focus,var(--spectrum-actionbutton-border-color-focus)));color:var(--highcontrast-actionbutton-content-color-focus,var(--mod-actionbutton-content-color-focus,var(--spectrum-actionbutton-content-color-focus)))}:host(:is(:active,[active])){background-color:var(--highcontrast-actionbutton-background-color-down,var(--mod-actionbutton-background-color-down,var(--spectrum-actionbutton-background-color-down)));border-color:var(--highcontrast-actionbutton-border-color-down,var(--mod-actionbutton-border-color-down,var(--spectrum-actionbutton-border-color-down)));color:var(--highcontrast-actionbutton-content-color-down,var(--mod-actionbutton-content-color-down,var(--spectrum-actionbutton-content-color-down)))}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-actionbutton-background-color-disabled,var(--mod-actionbutton-background-color-disabled,var(--spectrum-actionbutton-background-color-disabled)));border-color:var(--highcontrast-actionbutton-border-color-disabled,var(--mod-actionbutton-border-color-disabled,var(--spectrum-actionbutton-border-color-disabled)));color:var(--highcontrast-actionbutton-content-color-disabled,var(--mod-actionbutton-content-color-disabled,var(--spectrum-actionbutton-content-color-disabled)))}:host([selected]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected)}:host([selected][emphasized]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected-emphasized);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected-emphasized);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected-emphasized);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected-emphasized);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected-emphasized);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected-emphasized);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected-emphasized);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--mod-actionbutton-content-color-default:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-down:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-static-content-color)}::slotted([slot=icon]){inline-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));block-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));color:inherit;margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual,var(--spectrum-actionbutton-edge-to-visual)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)));margin-inline-end:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}.hold-affordance+::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}#label{pointer-events:none;font-size:var(--mod-actionbutton-font-size,var(--spectrum-actionbutton-font-size));white-space:nowrap;color:inherit;color:var(--mod-actionbutton-label-color,inherit);text-overflow:ellipsis;overflow:hidden}.hold-affordance{color:inherit;transform:var(--spectrum-logical-rotation);position:absolute;inset-block-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)));inset-inline-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))}:host{transition:border-color var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out}:host:after{margin:calc(( var(--mod-actionbutton-focus-indicator-gap,var(--spectrum-actionbutton-focus-indicator-gap)) + var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))*-1);border-radius:var(--mod-actionbutton-focus-indicator-border-radius,var(--spectrum-actionbutton-focus-indicator-border-radius));transition:box-shadow var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out;pointer-events:none;content:\"\";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--mod-actionbutton-focus-indicator-thickness,var(--spectrum-actionbutton-focus-indicator-thickness))var(--highcontrast-actionbutton-focus-indicator-color,var(--mod-actionbutton-focus-indicator-color,var(--spectrum-actionbutton-focus-indicator-color)))}: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)}::slotted([slot=icon]){flex-shrink:0}#label{flex-grow:var(--spectrum-actionbutton-label-flex-grow);text-align:var(--spectrum-actionbutton-label-text-align);pointer-events:none!important}:host([size=xs]){min-width:var(--spectrum-actionbutton-height,0);--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-50) - var(--spectrum-actionbutton-border-width))}:host([size=s]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-75) - var(--spectrum-actionbutton-border-width))}:host([size=m]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-100) - var(--spectrum-actionbutton-border-width))}:host([size=l]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-200) - var(--spectrum-actionbutton-border-width))}:host([size=xl]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-300) - var(--spectrum-actionbutton-border-width))}@media (forced-colors:active){:host{--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-disabled:GrayText}}\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{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--mod-button-font-family,var(--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--mod-button-line-height,var(--mod-line-height-100,var(--spectrum-line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,border-color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,box-shadow var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out;border-style:solid;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){max-block-size:100%;flex-shrink:0}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-actionbutton-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-actionbutton-background-color-default:Highlight;--highcontrast-actionbutton-background-color-hover:Highlight;--highcontrast-actionbutton-background-color-focus:Highlight;--highcontrast-actionbutton-background-color-down:Highlight;--highcontrast-actionbutton-background-color-disabled:ButtonFace;--highcontrast-actionbutton-border-color-default:HighlightText;--highcontrast-actionbutton-border-color-hover:HighlightText;--highcontrast-actionbutton-border-color-focus:HighlightText;--highcontrast-actionbutton-border-color-down:HighlightText;--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-default:HighlightText;--highcontrast-actionbutton-content-color-hover:HighlightText;--highcontrast-actionbutton-content-color-focus:HighlightText;--highcontrast-actionbutton-content-color-down:HighlightText;--highcontrast-actionbutton-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--spectrum-actionbutton-focus-indicator-border-radius:calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap));--spectrum-actionbutton-edge-to-visual:calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-text:calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width));min-inline-size:var(--mod-actionbutton-min-width,var(--spectrum-actionbutton-min-width));block-size:var(--mod-actionbutton-height,var(--spectrum-actionbutton-height));border-radius:var(--mod-actionbutton-border-radius,var(--spectrum-actionbutton-border-radius));border-width:var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width));gap:calc(var(--mod-actionbutton-text-to-visual,var(--spectrum-actionbutton-text-to-visual)) + var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)));padding-inline:var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text));background-color:var(--highcontrast-actionbutton-background-color-default,var(--mod-actionbutton-background-color-default,var(--spectrum-actionbutton-background-color-default)));border-color:var(--highcontrast-actionbutton-border-color-default,var(--mod-actionbutton-border-color-default,var(--spectrum-actionbutton-border-color-default)));color:var(--highcontrast-actionbutton-content-color-default,var(--mod-actionbutton-content-color-default,var(--spectrum-actionbutton-content-color-default)));position:relative}:host:dir(rtl),:host([dir=rtl]){--spectrum-logical-rotation:matrix(-1,0,0,1,0,0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-actionbutton-background-color-hover,var(--mod-actionbutton-background-color-hover,var(--spectrum-actionbutton-background-color-hover)));border-color:var(--highcontrast-actionbutton-border-color-hover,var(--mod-actionbutton-border-color-hover,var(--spectrum-actionbutton-border-color-hover)));color:var(--highcontrast-actionbutton-content-color-hover,var(--mod-actionbutton-content-color-hover,var(--spectrum-actionbutton-content-color-hover)))}}:host(:focus-visible){background-color:var(--highcontrast-actionbutton-background-color-focus,var(--mod-actionbutton-background-color-focus,var(--spectrum-actionbutton-background-color-focus)));border-color:var(--highcontrast-actionbutton-border-color-focus,var(--mod-actionbutton-border-color-focus,var(--spectrum-actionbutton-border-color-focus)));color:var(--highcontrast-actionbutton-content-color-focus,var(--mod-actionbutton-content-color-focus,var(--spectrum-actionbutton-content-color-focus)))}:host(:is(:active,[active])){background-color:var(--highcontrast-actionbutton-background-color-down,var(--mod-actionbutton-background-color-down,var(--spectrum-actionbutton-background-color-down)));border-color:var(--highcontrast-actionbutton-border-color-down,var(--mod-actionbutton-border-color-down,var(--spectrum-actionbutton-border-color-down)));color:var(--highcontrast-actionbutton-content-color-down,var(--mod-actionbutton-content-color-down,var(--spectrum-actionbutton-content-color-down)))}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-actionbutton-background-color-disabled,var(--mod-actionbutton-background-color-disabled,var(--spectrum-actionbutton-background-color-disabled)));border-color:var(--highcontrast-actionbutton-border-color-disabled,var(--mod-actionbutton-border-color-disabled,var(--spectrum-actionbutton-border-color-disabled)));color:var(--highcontrast-actionbutton-content-color-disabled,var(--mod-actionbutton-content-color-disabled,var(--spectrum-actionbutton-content-color-disabled)))}:host([selected]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected)}:host([selected][emphasized]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected-emphasized);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected-emphasized);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected-emphasized);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected-emphasized);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected-emphasized);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected-emphasized);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected-emphasized);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--mod-actionbutton-content-color-default:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-down:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-static-content-color)}::slotted([slot=icon]){inline-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));block-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));color:inherit;margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual,var(--spectrum-actionbutton-edge-to-visual)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)));margin-inline-end:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}.hold-affordance+::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}#label{pointer-events:none;font-size:var(--mod-actionbutton-font-size,var(--spectrum-actionbutton-font-size));white-space:nowrap;color:inherit;color:var(--mod-actionbutton-label-color,inherit);text-overflow:ellipsis;overflow:hidden}.hold-affordance{color:inherit;transform:var(--spectrum-logical-rotation);position:absolute;inset-block-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)));inset-inline-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))}:host{transition:border-color var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out}:host:after{margin:calc(( var(--mod-actionbutton-focus-indicator-gap,var(--spectrum-actionbutton-focus-indicator-gap)) + var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))*-1);border-radius:var(--mod-actionbutton-focus-indicator-border-radius,var(--spectrum-actionbutton-focus-indicator-border-radius));transition:box-shadow var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out;pointer-events:none;content:\"\";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--mod-actionbutton-focus-indicator-thickness,var(--spectrum-actionbutton-focus-indicator-thickness))var(--highcontrast-actionbutton-focus-indicator-color,var(--mod-actionbutton-focus-indicator-color,var(--spectrum-actionbutton-focus-indicator-color)))}: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)}::slotted([slot=icon]){flex-shrink:0}#label{flex-grow:var(--spectrum-actionbutton-label-flex-grow);text-align:var(--spectrum-actionbutton-label-text-align);pointer-events:none!important}:host([size=xs]){min-width:var(--spectrum-actionbutton-height,0);--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-50) - var(--spectrum-actionbutton-border-width))}:host([size=s]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-75) - var(--spectrum-actionbutton-border-width))}:host([size=m]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-100) - var(--spectrum-actionbutton-border-width))}:host([size=l]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-200) - var(--spectrum-actionbutton-border-width))}:host([size=xl]){--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-component-edge-to-visual-only-300) - var(--spectrum-actionbutton-border-width))}@media (forced-colors:active){:host{--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-disabled:GrayText}}\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
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-action-button.css.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*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--mod-button-font-family,var(--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--mod-button-line-height,var(--mod-line-height-100,var(--spectrum-line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,border-color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,box-shadow var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out;border-style:solid;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){max-block-size:100%;flex-shrink:0}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-actionbutton-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-actionbutton-background-color-default:Highlight;--highcontrast-actionbutton-background-color-hover:Highlight;--highcontrast-actionbutton-background-color-focus:Highlight;--highcontrast-actionbutton-background-color-down:Highlight;--highcontrast-actionbutton-background-color-disabled:ButtonFace;--highcontrast-actionbutton-border-color-default:HighlightText;--highcontrast-actionbutton-border-color-hover:HighlightText;--highcontrast-actionbutton-border-color-focus:HighlightText;--highcontrast-actionbutton-border-color-down:HighlightText;--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-default:HighlightText;--highcontrast-actionbutton-content-color-hover:HighlightText;--highcontrast-actionbutton-content-color-focus:HighlightText;--highcontrast-actionbutton-content-color-down:HighlightText;--highcontrast-actionbutton-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--spectrum-actionbutton-focus-indicator-border-radius:calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap));--spectrum-actionbutton-edge-to-visual:calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-text:calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width));min-inline-size:var(--mod-actionbutton-min-width,var(--spectrum-actionbutton-min-width));block-size:var(--mod-actionbutton-height,var(--spectrum-actionbutton-height));border-radius:var(--mod-actionbutton-border-radius,var(--spectrum-actionbutton-border-radius));border-width:var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width));gap:calc(var(--mod-actionbutton-text-to-visual,var(--spectrum-actionbutton-text-to-visual)) + var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)));padding-inline:var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text));background-color:var(--highcontrast-actionbutton-background-color-default,var(--mod-actionbutton-background-color-default,var(--spectrum-actionbutton-background-color-default)));border-color:var(--highcontrast-actionbutton-border-color-default,var(--mod-actionbutton-border-color-default,var(--spectrum-actionbutton-border-color-default)));color:var(--highcontrast-actionbutton-content-color-default,var(--mod-actionbutton-content-color-default,var(--spectrum-actionbutton-content-color-default)));position:relative}:host:dir(rtl),:host([dir=rtl]){--spectrum-logical-rotation:matrix(-1,0,0,1,0,0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-actionbutton-background-color-hover,var(--mod-actionbutton-background-color-hover,var(--spectrum-actionbutton-background-color-hover)));border-color:var(--highcontrast-actionbutton-border-color-hover,var(--mod-actionbutton-border-color-hover,var(--spectrum-actionbutton-border-color-hover)));color:var(--highcontrast-actionbutton-content-color-hover,var(--mod-actionbutton-content-color-hover,var(--spectrum-actionbutton-content-color-hover)))}}:host(:focus-visible){background-color:var(--highcontrast-actionbutton-background-color-focus,var(--mod-actionbutton-background-color-focus,var(--spectrum-actionbutton-background-color-focus)));border-color:var(--highcontrast-actionbutton-border-color-focus,var(--mod-actionbutton-border-color-focus,var(--spectrum-actionbutton-border-color-focus)));color:var(--highcontrast-actionbutton-content-color-focus,var(--mod-actionbutton-content-color-focus,var(--spectrum-actionbutton-content-color-focus)))}:host(:is(:active,[active])){background-color:var(--highcontrast-actionbutton-background-color-down,var(--mod-actionbutton-background-color-down,var(--spectrum-actionbutton-background-color-down)));border-color:var(--highcontrast-actionbutton-border-color-down,var(--mod-actionbutton-border-color-down,var(--spectrum-actionbutton-border-color-down)));color:var(--highcontrast-actionbutton-content-color-down,var(--mod-actionbutton-content-color-down,var(--spectrum-actionbutton-content-color-down)))}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-actionbutton-background-color-disabled,var(--mod-actionbutton-background-color-disabled,var(--spectrum-actionbutton-background-color-disabled)));border-color:var(--highcontrast-actionbutton-border-color-disabled,var(--mod-actionbutton-border-color-disabled,var(--spectrum-actionbutton-border-color-disabled)));color:var(--highcontrast-actionbutton-content-color-disabled,var(--mod-actionbutton-content-color-disabled,var(--spectrum-actionbutton-content-color-disabled)))}:host([selected]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected)}:host([selected][emphasized]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected-emphasized);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected-emphasized);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected-emphasized);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected-emphasized);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected-emphasized);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected-emphasized);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected-emphasized);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--mod-actionbutton-content-color-default:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-down:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-static-content-color)}::slotted([slot=icon]){inline-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));block-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));color:inherit;margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual,var(--spectrum-actionbutton-edge-to-visual)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)));margin-inline-end:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}.hold-affordance+::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}#label{pointer-events:none;font-size:var(--mod-actionbutton-font-size,var(--spectrum-actionbutton-font-size));white-space:nowrap;color:inherit;color:var(--mod-actionbutton-label-color,inherit);text-overflow:ellipsis;overflow:hidden}.hold-affordance{color:inherit;transform:var(--spectrum-logical-rotation);position:absolute;inset-block-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)));inset-inline-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))}:host{transition:border-color var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out}:host:after{margin:calc(( var(--mod-actionbutton-focus-indicator-gap,var(--spectrum-actionbutton-focus-indicator-gap)) + var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))*-1);border-radius:var(--mod-actionbutton-focus-indicator-border-radius,var(--spectrum-actionbutton-focus-indicator-border-radius));transition:box-shadow var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out;pointer-events:none;content:\"\";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--mod-actionbutton-focus-indicator-thickness,var(--spectrum-actionbutton-focus-indicator-thickness))var(--highcontrast-actionbutton-focus-indicator-color,var(--mod-actionbutton-focus-indicator-color,var(--spectrum-actionbutton-focus-indicator-color)))}\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{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--mod-button-font-family,var(--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--mod-button-line-height,var(--mod-line-height-100,var(--spectrum-line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,border-color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,box-shadow var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out;border-style:solid;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){max-block-size:100%;flex-shrink:0}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-actionbutton-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-actionbutton-background-color-default:Highlight;--highcontrast-actionbutton-background-color-hover:Highlight;--highcontrast-actionbutton-background-color-focus:Highlight;--highcontrast-actionbutton-background-color-down:Highlight;--highcontrast-actionbutton-background-color-disabled:ButtonFace;--highcontrast-actionbutton-border-color-default:HighlightText;--highcontrast-actionbutton-border-color-hover:HighlightText;--highcontrast-actionbutton-border-color-focus:HighlightText;--highcontrast-actionbutton-border-color-down:HighlightText;--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-default:HighlightText;--highcontrast-actionbutton-content-color-hover:HighlightText;--highcontrast-actionbutton-content-color-focus:HighlightText;--highcontrast-actionbutton-content-color-down:HighlightText;--highcontrast-actionbutton-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--spectrum-actionbutton-focus-indicator-border-radius:calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap));--spectrum-actionbutton-edge-to-visual:calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-text:calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width));min-inline-size:var(--mod-actionbutton-min-width,var(--spectrum-actionbutton-min-width));block-size:var(--mod-actionbutton-height,var(--spectrum-actionbutton-height));border-radius:var(--mod-actionbutton-border-radius,var(--spectrum-actionbutton-border-radius));border-width:var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width));gap:calc(var(--mod-actionbutton-text-to-visual,var(--spectrum-actionbutton-text-to-visual)) + var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)));padding-inline:var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text));background-color:var(--highcontrast-actionbutton-background-color-default,var(--mod-actionbutton-background-color-default,var(--spectrum-actionbutton-background-color-default)));border-color:var(--highcontrast-actionbutton-border-color-default,var(--mod-actionbutton-border-color-default,var(--spectrum-actionbutton-border-color-default)));color:var(--highcontrast-actionbutton-content-color-default,var(--mod-actionbutton-content-color-default,var(--spectrum-actionbutton-content-color-default)));position:relative}:host:dir(rtl),:host([dir=rtl]){--spectrum-logical-rotation:matrix(-1,0,0,1,0,0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-actionbutton-background-color-hover,var(--mod-actionbutton-background-color-hover,var(--spectrum-actionbutton-background-color-hover)));border-color:var(--highcontrast-actionbutton-border-color-hover,var(--mod-actionbutton-border-color-hover,var(--spectrum-actionbutton-border-color-hover)));color:var(--highcontrast-actionbutton-content-color-hover,var(--mod-actionbutton-content-color-hover,var(--spectrum-actionbutton-content-color-hover)))}}:host(:focus-visible){background-color:var(--highcontrast-actionbutton-background-color-focus,var(--mod-actionbutton-background-color-focus,var(--spectrum-actionbutton-background-color-focus)));border-color:var(--highcontrast-actionbutton-border-color-focus,var(--mod-actionbutton-border-color-focus,var(--spectrum-actionbutton-border-color-focus)));color:var(--highcontrast-actionbutton-content-color-focus,var(--mod-actionbutton-content-color-focus,var(--spectrum-actionbutton-content-color-focus)))}:host(:is(:active,[active])){background-color:var(--highcontrast-actionbutton-background-color-down,var(--mod-actionbutton-background-color-down,var(--spectrum-actionbutton-background-color-down)));border-color:var(--highcontrast-actionbutton-border-color-down,var(--mod-actionbutton-border-color-down,var(--spectrum-actionbutton-border-color-down)));color:var(--highcontrast-actionbutton-content-color-down,var(--mod-actionbutton-content-color-down,var(--spectrum-actionbutton-content-color-down)))}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-actionbutton-background-color-disabled,var(--mod-actionbutton-background-color-disabled,var(--spectrum-actionbutton-background-color-disabled)));border-color:var(--highcontrast-actionbutton-border-color-disabled,var(--mod-actionbutton-border-color-disabled,var(--spectrum-actionbutton-border-color-disabled)));color:var(--highcontrast-actionbutton-content-color-disabled,var(--mod-actionbutton-content-color-disabled,var(--spectrum-actionbutton-content-color-disabled)))}:host([selected]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected)}:host([selected][emphasized]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected-emphasized);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected-emphasized);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected-emphasized);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected-emphasized);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected-emphasized);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected-emphasized);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected-emphasized);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--mod-actionbutton-content-color-default:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-down:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-static-content-color)}::slotted([slot=icon]){inline-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));block-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));color:inherit;margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual,var(--spectrum-actionbutton-edge-to-visual)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)));margin-inline-end:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}.hold-affordance+::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}#label{pointer-events:none;font-size:var(--mod-actionbutton-font-size,var(--spectrum-actionbutton-font-size));white-space:nowrap;color:inherit;color:var(--mod-actionbutton-label-color,inherit);text-overflow:ellipsis;overflow:hidden}.hold-affordance{color:inherit;transform:var(--spectrum-logical-rotation);position:absolute;inset-block-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)));inset-inline-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))}:host{transition:border-color var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out}:host:after{margin:calc(( var(--mod-actionbutton-focus-indicator-gap,var(--spectrum-actionbutton-focus-indicator-gap)) + var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))*-1);border-radius:var(--mod-actionbutton-focus-indicator-border-radius,var(--spectrum-actionbutton-focus-indicator-border-radius));transition:box-shadow var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out;pointer-events:none;content:\"\";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--mod-actionbutton-focus-indicator-thickness,var(--spectrum-actionbutton-focus-indicator-thickness))var(--highcontrast-actionbutton-focus-indicator-color,var(--mod-actionbutton-focus-indicator-color,var(--spectrum-actionbutton-focus-indicator-color)))}\n`;\nexport default styles;"],
5
5
  "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-action-button.css.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*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--mod-button-font-family,var(--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--mod-button-line-height,var(--mod-line-height-100,var(--spectrum-line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,border-color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,box-shadow var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out;border-style:solid;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){max-block-size:100%;flex-shrink:0}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-actionbutton-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-actionbutton-background-color-default:Highlight;--highcontrast-actionbutton-background-color-hover:Highlight;--highcontrast-actionbutton-background-color-focus:Highlight;--highcontrast-actionbutton-background-color-down:Highlight;--highcontrast-actionbutton-background-color-disabled:ButtonFace;--highcontrast-actionbutton-border-color-default:HighlightText;--highcontrast-actionbutton-border-color-hover:HighlightText;--highcontrast-actionbutton-border-color-focus:HighlightText;--highcontrast-actionbutton-border-color-down:HighlightText;--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-default:HighlightText;--highcontrast-actionbutton-content-color-hover:HighlightText;--highcontrast-actionbutton-content-color-focus:HighlightText;--highcontrast-actionbutton-content-color-down:HighlightText;--highcontrast-actionbutton-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--spectrum-actionbutton-focus-indicator-border-radius:calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap));--spectrum-actionbutton-edge-to-visual:calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-text:calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width));min-inline-size:var(--mod-actionbutton-min-width,var(--spectrum-actionbutton-min-width));block-size:var(--mod-actionbutton-height,var(--spectrum-actionbutton-height));border-radius:var(--mod-actionbutton-border-radius,var(--spectrum-actionbutton-border-radius));border-width:var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width));gap:calc(var(--mod-actionbutton-text-to-visual,var(--spectrum-actionbutton-text-to-visual)) + var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)));padding-inline:var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text));background-color:var(--highcontrast-actionbutton-background-color-default,var(--mod-actionbutton-background-color-default,var(--spectrum-actionbutton-background-color-default)));border-color:var(--highcontrast-actionbutton-border-color-default,var(--mod-actionbutton-border-color-default,var(--spectrum-actionbutton-border-color-default)));color:var(--highcontrast-actionbutton-content-color-default,var(--mod-actionbutton-content-color-default,var(--spectrum-actionbutton-content-color-default)));position:relative}:host:dir(rtl),:host([dir=rtl]){--spectrum-logical-rotation:matrix(-1,0,0,1,0,0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-actionbutton-background-color-hover,var(--mod-actionbutton-background-color-hover,var(--spectrum-actionbutton-background-color-hover)));border-color:var(--highcontrast-actionbutton-border-color-hover,var(--mod-actionbutton-border-color-hover,var(--spectrum-actionbutton-border-color-hover)));color:var(--highcontrast-actionbutton-content-color-hover,var(--mod-actionbutton-content-color-hover,var(--spectrum-actionbutton-content-color-hover)))}}:host(:focus-visible){background-color:var(--highcontrast-actionbutton-background-color-focus,var(--mod-actionbutton-background-color-focus,var(--spectrum-actionbutton-background-color-focus)));border-color:var(--highcontrast-actionbutton-border-color-focus,var(--mod-actionbutton-border-color-focus,var(--spectrum-actionbutton-border-color-focus)));color:var(--highcontrast-actionbutton-content-color-focus,var(--mod-actionbutton-content-color-focus,var(--spectrum-actionbutton-content-color-focus)))}:host(:is(:active,[active])){background-color:var(--highcontrast-actionbutton-background-color-down,var(--mod-actionbutton-background-color-down,var(--spectrum-actionbutton-background-color-down)));border-color:var(--highcontrast-actionbutton-border-color-down,var(--mod-actionbutton-border-color-down,var(--spectrum-actionbutton-border-color-down)));color:var(--highcontrast-actionbutton-content-color-down,var(--mod-actionbutton-content-color-down,var(--spectrum-actionbutton-content-color-down)))}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-actionbutton-background-color-disabled,var(--mod-actionbutton-background-color-disabled,var(--spectrum-actionbutton-background-color-disabled)));border-color:var(--highcontrast-actionbutton-border-color-disabled,var(--mod-actionbutton-border-color-disabled,var(--spectrum-actionbutton-border-color-disabled)));color:var(--highcontrast-actionbutton-content-color-disabled,var(--mod-actionbutton-content-color-disabled,var(--spectrum-actionbutton-content-color-disabled)))}:host([selected]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected)}:host([selected][emphasized]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected-emphasized);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected-emphasized);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected-emphasized);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected-emphasized);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected-emphasized);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected-emphasized);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected-emphasized);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--mod-actionbutton-content-color-default:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-down:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-static-content-color)}::slotted([slot=icon]){inline-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));block-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));color:inherit;margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual,var(--spectrum-actionbutton-edge-to-visual)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)));margin-inline-end:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}.hold-affordance+::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}#label{pointer-events:none;font-size:var(--mod-actionbutton-font-size,var(--spectrum-actionbutton-font-size));white-space:nowrap;color:inherit;color:var(--mod-actionbutton-label-color,inherit);text-overflow:ellipsis;overflow:hidden}.hold-affordance{color:inherit;transform:var(--spectrum-logical-rotation);position:absolute;inset-block-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)));inset-inline-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))}:host{transition:border-color var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out}:host:after{margin:calc(( var(--mod-actionbutton-focus-indicator-gap,var(--spectrum-actionbutton-focus-indicator-gap)) + var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))*-1);border-radius:var(--mod-actionbutton-focus-indicator-border-radius,var(--spectrum-actionbutton-focus-indicator-border-radius));transition:box-shadow var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out;pointer-events:none;content:\"\";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--mod-actionbutton-focus-indicator-thickness,var(--spectrum-actionbutton-focus-indicator-thickness))var(--highcontrast-actionbutton-focus-indicator-color,var(--mod-actionbutton-focus-indicator-color,var(--spectrum-actionbutton-focus-indicator-color)))}\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{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--mod-button-font-family,var(--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--mod-button-line-height,var(--mod-line-height-100,var(--spectrum-line-height-100)));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,border-color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,color var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out,box-shadow var(--mod-button-animation-duration,var(--mod-animation-duration-100,var(--spectrum-animation-duration-100)))ease-out;border-style:solid;justify-content:center;align-items:center;margin:0;-webkit-text-decoration:none;text-decoration:none;display:inline-flex;overflow:visible}:host(:focus){outline:none}:host([disabled]),:host([disabled]){cursor:default}::slotted([slot=icon]){max-block-size:100%;flex-shrink:0}#label{text-align:center;place-self:center}#label:empty{display:none}@media (forced-colors:active){:host{--highcontrast-actionbutton-focus-indicator-color:ButtonText}:host:after{forced-color-adjust:none}:host([selected]){--highcontrast-actionbutton-background-color-default:Highlight;--highcontrast-actionbutton-background-color-hover:Highlight;--highcontrast-actionbutton-background-color-focus:Highlight;--highcontrast-actionbutton-background-color-down:Highlight;--highcontrast-actionbutton-background-color-disabled:ButtonFace;--highcontrast-actionbutton-border-color-default:HighlightText;--highcontrast-actionbutton-border-color-hover:HighlightText;--highcontrast-actionbutton-border-color-focus:HighlightText;--highcontrast-actionbutton-border-color-down:HighlightText;--highcontrast-actionbutton-border-color-disabled:GrayText;--highcontrast-actionbutton-content-color-default:HighlightText;--highcontrast-actionbutton-content-color-hover:HighlightText;--highcontrast-actionbutton-content-color-focus:HighlightText;--highcontrast-actionbutton-content-color-down:HighlightText;--highcontrast-actionbutton-content-color-disabled:GrayText}:host([selected]) .hold-affordance,:host([selected]) ::slotted([slot=icon]),:host([selected]) #label{forced-color-adjust:none}}:host{--spectrum-actionbutton-focus-indicator-border-radius:calc(var(--spectrum-actionbutton-border-radius) + var(--spectrum-actionbutton-focus-indicator-gap));--spectrum-actionbutton-edge-to-visual:calc(var(--spectrum-actionbutton-edge-to-visual-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-text:calc(var(--spectrum-actionbutton-edge-to-text-size) - var(--spectrum-actionbutton-border-width));--spectrum-actionbutton-edge-to-visual-only:calc(var(--spectrum-actionbutton-edge-to-visual-only-size) - var(--spectrum-actionbutton-border-width));min-inline-size:var(--mod-actionbutton-min-width,var(--spectrum-actionbutton-min-width));block-size:var(--mod-actionbutton-height,var(--spectrum-actionbutton-height));border-radius:var(--mod-actionbutton-border-radius,var(--spectrum-actionbutton-border-radius));border-width:var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width));gap:calc(var(--mod-actionbutton-text-to-visual,var(--spectrum-actionbutton-text-to-visual)) + var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)) - var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)));padding-inline:var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text));background-color:var(--highcontrast-actionbutton-background-color-default,var(--mod-actionbutton-background-color-default,var(--spectrum-actionbutton-background-color-default)));border-color:var(--highcontrast-actionbutton-border-color-default,var(--mod-actionbutton-border-color-default,var(--spectrum-actionbutton-border-color-default)));color:var(--highcontrast-actionbutton-content-color-default,var(--mod-actionbutton-content-color-default,var(--spectrum-actionbutton-content-color-default)));position:relative}:host:dir(rtl),:host([dir=rtl]){--spectrum-logical-rotation:matrix(-1,0,0,1,0,0)}@media (hover:hover){:host(:hover){background-color:var(--highcontrast-actionbutton-background-color-hover,var(--mod-actionbutton-background-color-hover,var(--spectrum-actionbutton-background-color-hover)));border-color:var(--highcontrast-actionbutton-border-color-hover,var(--mod-actionbutton-border-color-hover,var(--spectrum-actionbutton-border-color-hover)));color:var(--highcontrast-actionbutton-content-color-hover,var(--mod-actionbutton-content-color-hover,var(--spectrum-actionbutton-content-color-hover)))}}:host(:focus-visible){background-color:var(--highcontrast-actionbutton-background-color-focus,var(--mod-actionbutton-background-color-focus,var(--spectrum-actionbutton-background-color-focus)));border-color:var(--highcontrast-actionbutton-border-color-focus,var(--mod-actionbutton-border-color-focus,var(--spectrum-actionbutton-border-color-focus)));color:var(--highcontrast-actionbutton-content-color-focus,var(--mod-actionbutton-content-color-focus,var(--spectrum-actionbutton-content-color-focus)))}:host(:is(:active,[active])){background-color:var(--highcontrast-actionbutton-background-color-down,var(--mod-actionbutton-background-color-down,var(--spectrum-actionbutton-background-color-down)));border-color:var(--highcontrast-actionbutton-border-color-down,var(--mod-actionbutton-border-color-down,var(--spectrum-actionbutton-border-color-down)));color:var(--highcontrast-actionbutton-content-color-down,var(--mod-actionbutton-content-color-down,var(--spectrum-actionbutton-content-color-down)))}:host([disabled]),:host([disabled]){background-color:var(--highcontrast-actionbutton-background-color-disabled,var(--mod-actionbutton-background-color-disabled,var(--spectrum-actionbutton-background-color-disabled)));border-color:var(--highcontrast-actionbutton-border-color-disabled,var(--mod-actionbutton-border-color-disabled,var(--spectrum-actionbutton-border-color-disabled)));color:var(--highcontrast-actionbutton-content-color-disabled,var(--mod-actionbutton-content-color-disabled,var(--spectrum-actionbutton-content-color-disabled)))}:host([selected]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected)}:host([selected][emphasized]){--mod-actionbutton-background-color-default:var(--mod-actionbutton-background-color-default-selected-emphasized);--mod-actionbutton-background-color-hover:var(--mod-actionbutton-background-color-hover-selected-emphasized);--mod-actionbutton-background-color-down:var(--mod-actionbutton-background-color-down-selected-emphasized);--mod-actionbutton-background-color-focus:var(--mod-actionbutton-background-color-focus-selected-emphasized);--mod-actionbutton-content-color-default:var(--mod-actionbutton-content-color-default-selected-emphasized);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-content-color-hover-selected-emphasized);--mod-actionbutton-content-color-down:var(--mod-actionbutton-content-color-down-selected-emphasized);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-content-color-focus-selected-emphasized)}:host([selected][static-color=black]),:host([selected][static-color=white]){--mod-actionbutton-content-color-default:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-hover:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-down:var(--mod-actionbutton-static-content-color);--mod-actionbutton-content-color-focus:var(--mod-actionbutton-static-content-color)}::slotted([slot=icon]){inline-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));block-size:var(--mod-actionbutton-icon-size,var(--spectrum-actionbutton-icon-size));color:inherit;margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual,var(--spectrum-actionbutton-edge-to-visual)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)));margin-inline-end:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}.hold-affordance+::slotted([slot=icon]),[icon-only]::slotted([slot=icon]){margin-inline-start:calc(var(--mod-actionbutton-edge-to-visual-only,var(--spectrum-actionbutton-edge-to-visual-only)) - var(--mod-actionbutton-edge-to-text,var(--spectrum-actionbutton-edge-to-text)))}#label{pointer-events:none;font-size:var(--mod-actionbutton-font-size,var(--spectrum-actionbutton-font-size));white-space:nowrap;color:inherit;color:var(--mod-actionbutton-label-color,inherit);text-overflow:ellipsis;overflow:hidden}.hold-affordance{color:inherit;transform:var(--spectrum-logical-rotation);position:absolute;inset-block-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)));inset-inline-end:calc(var(--mod-actionbutton-edge-to-hold-icon,var(--spectrum-actionbutton-edge-to-hold-icon)) - var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))}:host{transition:border-color var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out}:host:after{margin:calc(( var(--mod-actionbutton-focus-indicator-gap,var(--spectrum-actionbutton-focus-indicator-gap)) + var(--mod-actionbutton-border-width,var(--spectrum-actionbutton-border-width)))*-1);border-radius:var(--mod-actionbutton-focus-indicator-border-radius,var(--spectrum-actionbutton-focus-indicator-border-radius));transition:box-shadow var(--mod-actionbutton-animation-duration,var(--spectrum-actionbutton-animation-duration))ease-in-out;pointer-events:none;content:\"\";position:absolute;inset:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--mod-actionbutton-focus-indicator-thickness,var(--spectrum-actionbutton-focus-indicator-thickness))var(--highcontrast-actionbutton-focus-indicator-color,var(--mod-actionbutton-focus-indicator-color,var(--spectrum-actionbutton-focus-indicator-color)))}\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
  }
@@ -28,4 +28,11 @@ toggles.args = {
28
28
  <sp-icon-edit hidden slot="icon"></sp-icon-edit>
29
29
  `
30
30
  };
31
+ export const href = (args) => renderButtonsSelected(args);
32
+ href.args = {
33
+ href: "https://github.com/adobe/spectrum-web-components",
34
+ icon: html`
35
+ <sp-icon-edit hidden slot="icon"></sp-icon-edit>
36
+ `
37
+ };
31
38
  //# sourceMappingURL=action-button.stories.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["action-button.stories.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\nimport type { Properties } from './index.js';\nimport { renderButton } from './index.js';\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button',\n};\n\nfunction renderButtonsSelected(args: Properties): TemplateResult {\n const disabled = Object.assign({}, args, { disabled: true });\n const selected = Object.assign({}, args, { selected: true });\n return html`\n <sp-action-group\n ?emphasized=\"${!!args.emphasized}\"\n ?quiet=\"${!!args.quiet}\"\n >\n ${renderButton(args)} ${renderButton(selected)}\n ${renderButton(disabled)}\n </sp-action-group>\n `;\n}\n\nexport const toggles = (args: Properties): TemplateResult =>\n renderButtonsSelected(args);\ntoggles.args = {\n toggles: true,\n icon: html`\n <sp-icon-edit hidden slot=\"icon\"></sp-icon-edit>\n `,\n};\n"],
5
- "mappings": ";AAWA,SAAS,YAA4B;AACrC,OAAO;AACP,OAAO;AAEP,SAAS,oBAAoB;AAE7B,OAAO;AAEP,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEA,SAAS,sBAAsB,MAAkC;AAC7D,QAAM,WAAW,OAAO,OAAO,CAAC,GAAG,MAAM,EAAE,UAAU,KAAK,CAAC;AAC3D,QAAM,WAAW,OAAO,OAAO,CAAC,GAAG,MAAM,EAAE,UAAU,KAAK,CAAC;AAC3D,SAAO;AAAA;AAAA,2BAEgB,CAAC,CAAC,KAAK,UAAU;AAAA,sBACtB,CAAC,CAAC,KAAK,KAAK;AAAA;AAAA,cAEpB,aAAa,IAAI,CAAC,IAAI,aAAa,QAAQ,CAAC;AAAA,cAC5C,aAAa,QAAQ,CAAC;AAAA;AAAA;AAGpC;AAEO,aAAM,UAAU,CAAC,SACpB,sBAAsB,IAAI;AAC9B,QAAQ,OAAO;AAAA,EACX,SAAS;AAAA,EACT,MAAM;AAAA;AAAA;AAGV;",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\nimport type { Properties } from './index.js';\nimport { renderButton } from './index.js';\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button',\n};\n\nfunction renderButtonsSelected(args: Properties): TemplateResult {\n const disabled = Object.assign({}, args, { disabled: true });\n const selected = Object.assign({}, args, { selected: true });\n return html`\n <sp-action-group\n ?emphasized=\"${!!args.emphasized}\"\n ?quiet=\"${!!args.quiet}\"\n >\n ${renderButton(args)} ${renderButton(selected)}\n ${renderButton(disabled)}\n </sp-action-group>\n `;\n}\n\nexport const toggles = (args: Properties): TemplateResult =>\n renderButtonsSelected(args);\ntoggles.args = {\n toggles: true,\n icon: html`\n <sp-icon-edit hidden slot=\"icon\"></sp-icon-edit>\n `,\n};\n\nexport const href = (args: Properties): TemplateResult =>\n renderButtonsSelected(args);\nhref.args = {\n href: 'https://github.com/adobe/spectrum-web-components',\n icon: html`\n <sp-icon-edit hidden slot=\"icon\"></sp-icon-edit>\n `,\n};\n"],
5
+ "mappings": ";AAWA,SAAS,YAA4B;AACrC,OAAO;AACP,OAAO;AAEP,SAAS,oBAAoB;AAE7B,OAAO;AAEP,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEA,SAAS,sBAAsB,MAAkC;AAC7D,QAAM,WAAW,OAAO,OAAO,CAAC,GAAG,MAAM,EAAE,UAAU,KAAK,CAAC;AAC3D,QAAM,WAAW,OAAO,OAAO,CAAC,GAAG,MAAM,EAAE,UAAU,KAAK,CAAC;AAC3D,SAAO;AAAA;AAAA,2BAEgB,CAAC,CAAC,KAAK,UAAU;AAAA,sBACtB,CAAC,CAAC,KAAK,KAAK;AAAA;AAAA,cAEpB,aAAa,IAAI,CAAC,IAAI,aAAa,QAAQ,CAAC;AAAA,cAC5C,aAAa,QAAQ,CAAC;AAAA;AAAA;AAGpC;AAEO,aAAM,UAAU,CAAC,SACpB,sBAAsB,IAAI;AAC9B,QAAQ,OAAO;AAAA,EACX,SAAS;AAAA,EACT,MAAM;AAAA;AAAA;AAGV;AAEO,aAAM,OAAO,CAAC,SACjB,sBAAsB,IAAI;AAC9B,KAAK,OAAO;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA;AAAA;AAGV;",
6
6
  "names": []
7
7
  }
package/stories/index.js CHANGED
@@ -8,6 +8,7 @@ import "@spectrum-web-components/action-button/sp-action-button.js";
8
8
  export function renderButton(properties) {
9
9
  return html`
10
10
  <sp-action-button
11
+ href=${ifDefined(properties.href)}
11
12
  ?quiet="${!!properties.quiet}"
12
13
  ?emphasized="${!!properties.emphasized}"
13
14
  static-color="${ifDefined(properties.staticColor)}"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\n\nexport interface Properties {\n active?: boolean;\n quiet?: boolean;\n disabled?: boolean;\n selected?: boolean;\n toggles?: boolean;\n emphasized?: boolean;\n size?: 's' | 'm' | 'l' | 'xl';\n staticColor?: 'white' | 'black';\n holdAffordance?: boolean;\n icon?: TemplateResult;\n label?: string;\n [prop: string]: unknown;\n}\n\nexport function renderButton(properties: Properties): TemplateResult {\n return html`\n <sp-action-button\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n static-color=\"${ifDefined(properties.staticColor)}\"\n ?disabled=${!!properties.disabled}\n ?selected=${!!properties.selected}\n ?toggles=${!!properties.toggles}\n size=${properties.size || 'm'}\n ?hold-affordance=${!!properties.holdAffordance}\n ?active=${!!properties.active}\n >\n ${properties.icon}${properties.label}\n </sp-action-button>\n `;\n}\n\nfunction renderGroup(properties: Properties): TemplateResult {\n const label = 'Edit';\n const holdAffordance = true;\n const icon = html`\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n `;\n return html`\n <sp-action-group\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n size=${properties.size || 'm'}\n static-color=\"${ifDefined(properties.staticColor)}\"\n >\n ${renderButton({\n ...properties,\n label,\n })}\n ${renderButton({\n ...properties,\n label,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n holdAffordance,\n })}\n </sp-action-group>\n `;\n}\n\nexport function renderButtons(properties: Properties): TemplateResult {\n const selected = true;\n const disabled = true;\n return html`\n <div\n style=\"display: flex; flex-direction: column; gap: calc(var(--spectrum-spacing-100) * var(--swc-scale-factor));\"\n >\n ${renderGroup({\n ...properties,\n })}\n ${renderGroup({\n ...properties,\n selected,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n selected,\n })}\n </div>\n `;\n}\n"],
5
- "mappings": ";AAYA,SAAS,YAA4B;AACrC,SAAS,iBAAiB;AAC1B,OAAO;AACP,OAAO;AACP,OAAO;AAEP,OAAO;AAiBA,gBAAS,aAAa,YAAwC;AACjE,SAAO;AAAA;AAAA,sBAEW,CAAC,CAAC,WAAW,KAAK;AAAA,2BACb,CAAC,CAAC,WAAW,UAAU;AAAA,4BACtB,UAAU,WAAW,WAAW,CAAC;AAAA,wBACrC,CAAC,CAAC,WAAW,QAAQ;AAAA,wBACrB,CAAC,CAAC,WAAW,QAAQ;AAAA,uBACtB,CAAC,CAAC,WAAW,OAAO;AAAA,mBACxB,WAAW,QAAQ,GAAG;AAAA,+BACV,CAAC,CAAC,WAAW,cAAc;AAAA,sBACpC,CAAC,CAAC,WAAW,MAAM;AAAA;AAAA,cAE3B,WAAW,IAAI,GAAG,WAAW,KAAK;AAAA;AAAA;AAGhD;AAEA,SAAS,YAAY,YAAwC;AACzD,QAAM,QAAQ;AACd,QAAM,iBAAiB;AACvB,QAAM,OAAO;AAAA;AAAA;AAGb,SAAO;AAAA;AAAA,sBAEW,CAAC,CAAC,WAAW,KAAK;AAAA,2BACb,CAAC,CAAC,WAAW,UAAU;AAAA,mBAC/B,WAAW,QAAQ,GAAG;AAAA,4BACb,UAAU,WAAW,WAAW,CAAC;AAAA;AAAA,cAE/C,aAAa;AAAA,IACX,GAAG;AAAA,IACH;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,aAAa;AAAA,IACX,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,aAAa;AAAA,IACX,GAAG;AAAA,IACH;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,aAAa;AAAA,IACX,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC,CAAC;AAAA;AAAA;AAGd;AAEO,gBAAS,cAAc,YAAwC;AAClE,QAAM,WAAW;AACjB,QAAM,WAAW;AACjB,SAAO;AAAA;AAAA;AAAA;AAAA,cAIG,YAAY;AAAA,IACV,GAAG;AAAA,EACP,CAAC,CAAC;AAAA,cACA,YAAY;AAAA,IACV,GAAG;AAAA,IACH;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,YAAY;AAAA,IACV,GAAG;AAAA,IACH;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,YAAY;AAAA,IACV,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC,CAAC;AAAA;AAAA;AAGd;",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, TemplateResult } from '@spectrum-web-components/base';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport '@spectrum-web-components/action-group/sp-action-group.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-edit.js';\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\n\nexport interface Properties {\n active?: boolean;\n quiet?: boolean;\n disabled?: boolean;\n selected?: boolean;\n toggles?: boolean;\n emphasized?: boolean;\n size?: 's' | 'm' | 'l' | 'xl';\n staticColor?: 'white' | 'black';\n holdAffordance?: boolean;\n icon?: TemplateResult;\n label?: string;\n [prop: string]: unknown;\n href: undefined;\n}\n\nexport function renderButton(properties: Properties): TemplateResult {\n return html`\n <sp-action-button\n href=${ifDefined(properties.href)}\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n static-color=\"${ifDefined(properties.staticColor)}\"\n ?disabled=${!!properties.disabled}\n ?selected=${!!properties.selected}\n ?toggles=${!!properties.toggles}\n size=${properties.size || 'm'}\n ?hold-affordance=${!!properties.holdAffordance}\n ?active=${!!properties.active}\n >\n ${properties.icon}${properties.label}\n </sp-action-button>\n `;\n}\n\nfunction renderGroup(properties: Properties): TemplateResult {\n const label = 'Edit';\n const holdAffordance = true;\n const icon = html`\n <sp-icon-edit slot=\"icon\"></sp-icon-edit>\n `;\n return html`\n <sp-action-group\n ?quiet=\"${!!properties.quiet}\"\n ?emphasized=\"${!!properties.emphasized}\"\n size=${properties.size || 'm'}\n static-color=\"${ifDefined(properties.staticColor)}\"\n >\n ${renderButton({\n ...properties,\n label,\n })}\n ${renderButton({\n ...properties,\n label,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n })}\n ${renderButton({\n ...properties,\n icon,\n holdAffordance,\n })}\n </sp-action-group>\n `;\n}\n\nexport function renderButtons(properties: Properties): TemplateResult {\n const selected = true;\n const disabled = true;\n return html`\n <div\n style=\"display: flex; flex-direction: column; gap: calc(var(--spectrum-spacing-100) * var(--swc-scale-factor));\"\n >\n ${renderGroup({\n ...properties,\n })}\n ${renderGroup({\n ...properties,\n selected,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n })}\n ${renderGroup({\n ...properties,\n disabled,\n selected,\n })}\n </div>\n `;\n}\n"],
5
+ "mappings": ";AAYA,SAAS,YAA4B;AACrC,SAAS,iBAAiB;AAC1B,OAAO;AACP,OAAO;AACP,OAAO;AAEP,OAAO;AAkBA,gBAAS,aAAa,YAAwC;AACjE,SAAO;AAAA;AAAA,mBAEQ,UAAU,WAAW,IAAI,CAAC;AAAA,sBACvB,CAAC,CAAC,WAAW,KAAK;AAAA,2BACb,CAAC,CAAC,WAAW,UAAU;AAAA,4BACtB,UAAU,WAAW,WAAW,CAAC;AAAA,wBACrC,CAAC,CAAC,WAAW,QAAQ;AAAA,wBACrB,CAAC,CAAC,WAAW,QAAQ;AAAA,uBACtB,CAAC,CAAC,WAAW,OAAO;AAAA,mBACxB,WAAW,QAAQ,GAAG;AAAA,+BACV,CAAC,CAAC,WAAW,cAAc;AAAA,sBACpC,CAAC,CAAC,WAAW,MAAM;AAAA;AAAA,cAE3B,WAAW,IAAI,GAAG,WAAW,KAAK;AAAA;AAAA;AAGhD;AAEA,SAAS,YAAY,YAAwC;AACzD,QAAM,QAAQ;AACd,QAAM,iBAAiB;AACvB,QAAM,OAAO;AAAA;AAAA;AAGb,SAAO;AAAA;AAAA,sBAEW,CAAC,CAAC,WAAW,KAAK;AAAA,2BACb,CAAC,CAAC,WAAW,UAAU;AAAA,mBAC/B,WAAW,QAAQ,GAAG;AAAA,4BACb,UAAU,WAAW,WAAW,CAAC;AAAA;AAAA,cAE/C,aAAa;AAAA,IACX,GAAG;AAAA,IACH;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,aAAa;AAAA,IACX,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,aAAa;AAAA,IACX,GAAG;AAAA,IACH;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,aAAa;AAAA,IACX,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC,CAAC;AAAA;AAAA;AAGd;AAEO,gBAAS,cAAc,YAAwC;AAClE,QAAM,WAAW;AACjB,QAAM,WAAW;AACjB,SAAO;AAAA;AAAA;AAAA;AAAA,cAIG,YAAY;AAAA,IACV,GAAG;AAAA,EACP,CAAC,CAAC;AAAA,cACA,YAAY;AAAA,IACV,GAAG;AAAA,IACH;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,YAAY;AAAA,IACV,GAAG;AAAA,IACH;AAAA,EACJ,CAAC,CAAC;AAAA,cACA,YAAY;AAAA,IACV,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACJ,CAAC,CAAC;AAAA;AAAA;AAGd;",
6
6
  "names": []
7
7
  }
@@ -15,6 +15,7 @@ import { sendKeys } from "@web/test-runner-commands";
15
15
  import { spy } from "sinon";
16
16
  import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
17
17
  import { m as BlackActionButton } from "../stories/action-button-black.stories.js";
18
+ import { sendMouse } from "../../../test/plugins/browser.js";
18
19
  describe("ActionButton", () => {
19
20
  testForLitDevWarnings(
20
21
  async () => await fixture(
@@ -240,5 +241,33 @@ describe("ActionButton", () => {
240
241
  expect(el.staticColor).to.be.null;
241
242
  expect(el.hasAttribute("static-color")).to.be.false;
242
243
  });
244
+ it("allows link click", async () => {
245
+ var _a, _b;
246
+ let clicked = false;
247
+ const el = await fixture(html`
248
+ <sp-action-button href="#top" target="_blank">
249
+ With Target
250
+ </sp-action-button>
251
+ `);
252
+ await elementUpdated(el);
253
+ (_b = (_a = el.shadowRoot) == null ? void 0 : _a.querySelector(".anchor")) == null ? void 0 : _b.addEventListener("click", (event) => {
254
+ event.preventDefault();
255
+ clicked = true;
256
+ });
257
+ const rect = el.getBoundingClientRect();
258
+ await sendMouse({
259
+ steps: [
260
+ {
261
+ position: [
262
+ rect.left + rect.width / 2,
263
+ rect.top + rect.height / 2
264
+ ],
265
+ type: "click"
266
+ }
267
+ ]
268
+ });
269
+ await elementUpdated(el);
270
+ expect(clicked).to.be.true;
271
+ });
243
272
  });
244
273
  //# sourceMappingURL=action-button.test.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["action-button.test.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport {\n ActionButton,\n LONGPRESS_DURATION,\n} from '@spectrum-web-components/action-button';\nimport {\n aTimeout,\n elementUpdated,\n expect,\n fixture,\n html,\n waitUntil,\n} from '@open-wc/testing';\nimport { sendKeys } from '@web/test-runner-commands';\nimport { spy } from 'sinon';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\nimport { m as BlackActionButton } from '../stories/action-button-black.stories.js';\n\ndescribe('ActionButton', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<ActionButton>(\n BlackActionButton(BlackActionButton.args)\n )\n );\n it('loads default', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.textContent).to.include('Button');\n await expect(el).to.be.accessible();\n });\n it('gardens \"value\" as a property', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el.hasAttribute('value')).to.be.false;\n el.value = 'Value';\n await elementUpdated(el);\n expect(el.hasAttribute('value')).to.be.true;\n el.value = '';\n await elementUpdated(el);\n expect(el.hasAttribute('value')).to.be.false;\n });\n it('loads [hold-affordance]', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button hold-affordance>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.textContent).to.include('Button');\n await expect(el).to.be.accessible();\n });\n it('manages a `tabindex`', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n expect(el.tabIndex).to.equal(0);\n expect(el.disabled).to.be.false;\n\n el.setAttribute('tabindex', '-1');\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(-1);\n expect(el.disabled).to.be.false;\n\n el.disabled = true;\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(-1);\n expect(el.disabled).to.be.true;\n\n el.disabled = false;\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(-1);\n expect(el.disabled).to.be.false;\n });\n it('manages a `size` attribute', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button size=\"xl\">Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el.size).to.equal('xl');\n expect(el.getAttribute('size')).to.equal('xl');\n el.removeAttribute('size');\n await elementUpdated(el);\n expect(el.size).to.equal('m');\n expect(el.hasAttribute('size')).to.be.false;\n });\n it('does not apply a default `size` attribute', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el.size).to.equal('m');\n expect(el.hasAttribute('size')).to.be.false;\n });\n it('dispatches `longpress` events when [hold-affordance]', async () => {\n const longpressSpy = spy();\n const el = await fixture<ActionButton>(html`\n <sp-action-button\n hold-affordance\n @longpress=${() => longpressSpy()}\n >\n Button\n </sp-action-button>\n `);\n\n await elementUpdated(el);\n\n el.focus();\n await sendKeys({\n press: 'Space',\n });\n\n expect(longpressSpy.callCount).to.equal(1);\n await sendKeys({\n press: 'Alt+ArrowDown',\n });\n\n expect(longpressSpy.callCount).to.equal(2);\n el.dispatchEvent(new PointerEvent('pointerdown', { button: 0 }));\n el.dispatchEvent(new PointerEvent('pointerup'));\n el.dispatchEvent(new PointerEvent('pointerdown', { button: 0 }));\n await waitUntil(() => longpressSpy.callCount === 3);\n });\n it('does not dispatch `longpress` events when \"right click\"ed', async () => {\n const longpressSpy = spy();\n const el = await fixture<ActionButton>(html`\n <sp-action-button\n hold-affordance\n @longpress=${() => longpressSpy()}\n >\n Button\n </sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(longpressSpy.callCount).to.equal(0);\n\n el.focus();\n el.dispatchEvent(new PointerEvent('pointerdown', { button: 1 }));\n await aTimeout(2 * LONGPRESS_DURATION);\n expect(longpressSpy.callCount).to.equal(0);\n });\n it(':not([toggles])', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n\n el.click();\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n });\n it('responds to [selected]', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n\n el.selected = true;\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n\n el.selected = false;\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n });\n it('toggles', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button toggles>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.false;\n expect(button.getAttribute('aria-pressed')).to.equal('false');\n\n el.focus();\n await sendKeys({\n press: 'Space',\n });\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n\n el.addEventListener('change', (event: Event) => event.preventDefault());\n el.click();\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n });\n it('toggles [aria-haspopup][aria-expanded]', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button\n toggles\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n Button\n </sp-action-button>\n `);\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.false;\n expect(button).not.to.have.attribute('aria-pressed');\n expect(button).to.have.attribute('aria-haspopup', 'true');\n expect(button).to.have.attribute('aria-expanded', 'false');\n\n el.focus();\n await sendKeys({\n press: 'Space',\n });\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button).not.to.have.attribute('aria-pressed');\n expect(button).to.have.attribute('aria-haspopup', 'true');\n expect(button).to.have.attribute('aria-expanded', 'true');\n\n el.addEventListener('change', (event: Event) => event.preventDefault());\n el.click();\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button).not.to.have.attribute('aria-pressed');\n expect(button).to.have.attribute('aria-haspopup', 'true');\n expect(button).to.have.attribute('aria-expanded', 'true');\n });\n it('manages a `static-color` attribute', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button static-color=\"black\">Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el.staticColor).to.equal('black');\n expect(el.getAttribute('static-color')).to.equal('black');\n el.removeAttribute('static-color');\n await elementUpdated(el);\n expect(el.staticColor).to.be.null;\n expect(el.hasAttribute('static-color')).to.be.false;\n });\n});\n"],
5
- "mappings": ";AAYA,OAAO;AACP;AAAA,EAEI;AAAA,OACG;AACP;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,SAAS,gBAAgB;AACzB,SAAS,WAAW;AACpB,SAAS,6BAA6B;AACtC,SAAS,KAAK,yBAAyB;AAEvC,SAAS,gBAAgB,MAAM;AAC3B;AAAA,IACI,YACI,MAAM;AAAA,MACF,kBAAkB,kBAAkB,IAAI;AAAA,IAC5C;AAAA,EACR;AACA,KAAG,iBAAiB,YAAY;AAC5B,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,WAAW,EAAE,GAAG,QAAQ,QAAQ;AAC1C,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,iCAAiC,YAAY;AAC5C,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,aAAa,OAAO,CAAC,EAAE,GAAG,GAAG;AACvC,OAAG,QAAQ;AACX,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,aAAa,OAAO,CAAC,EAAE,GAAG,GAAG;AACvC,OAAG,QAAQ;AACX,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,aAAa,OAAO,CAAC,EAAE,GAAG,GAAG;AAAA,EAC3C,CAAC;AACD,KAAG,2BAA2B,YAAY;AACtC,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,WAAW,EAAE,GAAG,QAAQ,QAAQ;AAC1C,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,wBAAwB,YAAY;AACnC,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,CAAC;AAC9B,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAE1B,OAAG,aAAa,YAAY,IAAI;AAChC,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE;AAC/B,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAE1B,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE;AAC/B,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAE1B,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE;AAC/B,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAAA,EAC9B,CAAC;AACD,KAAG,8BAA8B,YAAY;AACzC,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI;AAC7B,WAAO,GAAG,aAAa,MAAM,CAAC,EAAE,GAAG,MAAM,IAAI;AAC7C,OAAG,gBAAgB,MAAM;AACzB,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,IAAI,EAAE,GAAG,MAAM,GAAG;AAC5B,WAAO,GAAG,aAAa,MAAM,CAAC,EAAE,GAAG,GAAG;AAAA,EAC1C,CAAC;AACD,KAAG,6CAA6C,YAAY;AACxD,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,IAAI,EAAE,GAAG,MAAM,GAAG;AAC5B,WAAO,GAAG,aAAa,MAAM,CAAC,EAAE,GAAG,GAAG;AAAA,EAC1C,CAAC;AACD,KAAG,wDAAwD,YAAY;AACnE,UAAM,eAAe,IAAI;AACzB,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA;AAAA,6BAGlB,MAAM,aAAa,CAAC;AAAA;AAAA;AAAA;AAAA,SAIxC;AAED,UAAM,eAAe,EAAE;AAEvB,OAAG,MAAM;AACT,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AAED,WAAO,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC;AACzC,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AAED,WAAO,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC;AACzC,OAAG,cAAc,IAAI,aAAa,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,OAAG,cAAc,IAAI,aAAa,WAAW,CAAC;AAC9C,OAAG,cAAc,IAAI,aAAa,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,UAAM,UAAU,MAAM,aAAa,cAAc,CAAC;AAAA,EACtD,CAAC;AACD,KAAG,6DAA6D,YAAY;AACxE,UAAM,eAAe,IAAI;AACzB,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA;AAAA,6BAGlB,MAAM,aAAa,CAAC;AAAA;AAAA;AAAA;AAAA,SAIxC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC;AAEzC,OAAG,MAAM;AACT,OAAG,cAAc,IAAI,aAAa,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,UAAM,SAAS,IAAI,kBAAkB;AACrC,WAAO,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC;AAAA,EAC7C,CAAC;AACD,KAAG,mBAAmB,YAAY;AAC9B,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,SAAS,GAAG;AAElB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAElD,OAAG,MAAM;AACT,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAAA,EACtD,CAAC;AACD,KAAG,0BAA0B,YAAY;AACrC,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,SAAS,GAAG;AAElB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAElD,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,MAAM;AAE3D,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAAA,EACtD,CAAC;AACD,KAAG,WAAW,YAAY;AACtB,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,SAAS,GAAG;AAElB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,OAAO;AAE5D,OAAG,MAAM;AACT,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AACD,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,MAAM;AAE3D,OAAG,iBAAiB,UAAU,CAAC,UAAiB,MAAM,eAAe,CAAC;AACtE,OAAG,MAAM;AACT,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,MAAM;AAAA,EAC/D,CAAC;AACD,KAAG,0CAA0C,YAAY;AACrD,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAQtC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,SAAS,GAAG;AAElB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,MAAM,EAAE,IAAI,GAAG,KAAK,UAAU,cAAc;AACnD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AACxD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,OAAO;AAEzD,OAAG,MAAM;AACT,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AACD,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,MAAM,EAAE,IAAI,GAAG,KAAK,UAAU,cAAc;AACnD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AACxD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AAExD,OAAG,iBAAiB,UAAU,CAAC,UAAiB,MAAM,eAAe,CAAC;AACtE,OAAG,MAAM;AACT,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,MAAM,EAAE,IAAI,GAAG,KAAK,UAAU,cAAc;AACnD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AACxD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AAAA,EAC5D,CAAC;AACD,KAAG,sCAAsC,YAAY;AACjD,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,WAAW,EAAE,GAAG,MAAM,OAAO;AACvC,WAAO,GAAG,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,OAAO;AACxD,OAAG,gBAAgB,cAAc;AACjC,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,WAAW,EAAE,GAAG,GAAG;AAC7B,WAAO,GAAG,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAAA,EAClD,CAAC;AACL,CAAC;",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport {\n ActionButton,\n LONGPRESS_DURATION,\n} from '@spectrum-web-components/action-button';\nimport {\n aTimeout,\n elementUpdated,\n expect,\n fixture,\n html,\n waitUntil,\n} from '@open-wc/testing';\nimport { sendKeys } from '@web/test-runner-commands';\nimport { spy } from 'sinon';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\nimport { m as BlackActionButton } from '../stories/action-button-black.stories.js';\nimport { sendMouse } from '../../../test/plugins/browser.js';\n\ndescribe('ActionButton', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<ActionButton>(\n BlackActionButton(BlackActionButton.args)\n )\n );\n it('loads default', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.textContent).to.include('Button');\n await expect(el).to.be.accessible();\n });\n it('gardens \"value\" as a property', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el.hasAttribute('value')).to.be.false;\n el.value = 'Value';\n await elementUpdated(el);\n expect(el.hasAttribute('value')).to.be.true;\n el.value = '';\n await elementUpdated(el);\n expect(el.hasAttribute('value')).to.be.false;\n });\n it('loads [hold-affordance]', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button hold-affordance>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.textContent).to.include('Button');\n await expect(el).to.be.accessible();\n });\n it('manages a `tabindex`', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n expect(el.tabIndex).to.equal(0);\n expect(el.disabled).to.be.false;\n\n el.setAttribute('tabindex', '-1');\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(-1);\n expect(el.disabled).to.be.false;\n\n el.disabled = true;\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(-1);\n expect(el.disabled).to.be.true;\n\n el.disabled = false;\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(-1);\n expect(el.disabled).to.be.false;\n });\n it('manages a `size` attribute', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button size=\"xl\">Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el.size).to.equal('xl');\n expect(el.getAttribute('size')).to.equal('xl');\n el.removeAttribute('size');\n await elementUpdated(el);\n expect(el.size).to.equal('m');\n expect(el.hasAttribute('size')).to.be.false;\n });\n it('does not apply a default `size` attribute', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el.size).to.equal('m');\n expect(el.hasAttribute('size')).to.be.false;\n });\n it('dispatches `longpress` events when [hold-affordance]', async () => {\n const longpressSpy = spy();\n const el = await fixture<ActionButton>(html`\n <sp-action-button\n hold-affordance\n @longpress=${() => longpressSpy()}\n >\n Button\n </sp-action-button>\n `);\n\n await elementUpdated(el);\n\n el.focus();\n await sendKeys({\n press: 'Space',\n });\n\n expect(longpressSpy.callCount).to.equal(1);\n await sendKeys({\n press: 'Alt+ArrowDown',\n });\n\n expect(longpressSpy.callCount).to.equal(2);\n el.dispatchEvent(new PointerEvent('pointerdown', { button: 0 }));\n el.dispatchEvent(new PointerEvent('pointerup'));\n el.dispatchEvent(new PointerEvent('pointerdown', { button: 0 }));\n await waitUntil(() => longpressSpy.callCount === 3);\n });\n it('does not dispatch `longpress` events when \"right click\"ed', async () => {\n const longpressSpy = spy();\n const el = await fixture<ActionButton>(html`\n <sp-action-button\n hold-affordance\n @longpress=${() => longpressSpy()}\n >\n Button\n </sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(longpressSpy.callCount).to.equal(0);\n\n el.focus();\n el.dispatchEvent(new PointerEvent('pointerdown', { button: 1 }));\n await aTimeout(2 * LONGPRESS_DURATION);\n expect(longpressSpy.callCount).to.equal(0);\n });\n it(':not([toggles])', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n\n el.click();\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n });\n it('responds to [selected]', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n\n el.selected = true;\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n\n el.selected = false;\n await elementUpdated(el);\n\n expect(el.toggles).to.be.false;\n expect(el.selected).to.be.false;\n expect(button.hasAttribute('aria-pressed')).to.be.false;\n });\n it('toggles', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button toggles>Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.false;\n expect(button.getAttribute('aria-pressed')).to.equal('false');\n\n el.focus();\n await sendKeys({\n press: 'Space',\n });\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n\n el.addEventListener('change', (event: Event) => event.preventDefault());\n el.click();\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button.getAttribute('aria-pressed')).to.equal('true');\n });\n it('toggles [aria-haspopup][aria-expanded]', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button\n toggles\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n Button\n </sp-action-button>\n `);\n\n await elementUpdated(el);\n const button = el.focusElement;\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.false;\n expect(button).not.to.have.attribute('aria-pressed');\n expect(button).to.have.attribute('aria-haspopup', 'true');\n expect(button).to.have.attribute('aria-expanded', 'false');\n\n el.focus();\n await sendKeys({\n press: 'Space',\n });\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button).not.to.have.attribute('aria-pressed');\n expect(button).to.have.attribute('aria-haspopup', 'true');\n expect(button).to.have.attribute('aria-expanded', 'true');\n\n el.addEventListener('change', (event: Event) => event.preventDefault());\n el.click();\n await elementUpdated(el);\n\n expect(el.toggles).to.be.true;\n expect(el.selected).to.be.true;\n expect(button).not.to.have.attribute('aria-pressed');\n expect(button).to.have.attribute('aria-haspopup', 'true');\n expect(button).to.have.attribute('aria-expanded', 'true');\n });\n it('manages a `static-color` attribute', async () => {\n const el = await fixture<ActionButton>(html`\n <sp-action-button static-color=\"black\">Button</sp-action-button>\n `);\n\n await elementUpdated(el);\n expect(el.staticColor).to.equal('black');\n expect(el.getAttribute('static-color')).to.equal('black');\n el.removeAttribute('static-color');\n await elementUpdated(el);\n expect(el.staticColor).to.be.null;\n expect(el.hasAttribute('static-color')).to.be.false;\n });\n it('allows link click', async () => {\n let clicked = false;\n const el = await fixture<ActionButton>(html`\n <sp-action-button href=\"#top\" target=\"_blank\">\n With Target\n </sp-action-button>\n `);\n\n await elementUpdated(el);\n\n // prevents browser from activating link but records the proxy click\n el.shadowRoot\n ?.querySelector('.anchor')\n ?.addEventListener('click', (event: Event) => {\n event.preventDefault();\n clicked = true;\n });\n const rect = el.getBoundingClientRect();\n\n // tests mouse click events, and by extension VoiceOver CRTL+Option+Space click\n await sendMouse({\n steps: [\n {\n position: [\n rect.left + rect.width / 2,\n rect.top + rect.height / 2,\n ],\n type: 'click',\n },\n ],\n });\n await elementUpdated(el);\n expect(clicked).to.be.true;\n });\n});\n"],
5
+ "mappings": ";AAYA,OAAO;AACP;AAAA,EAEI;AAAA,OACG;AACP;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,SAAS,gBAAgB;AACzB,SAAS,WAAW;AACpB,SAAS,6BAA6B;AACtC,SAAS,KAAK,yBAAyB;AACvC,SAAS,iBAAiB;AAE1B,SAAS,gBAAgB,MAAM;AAC3B;AAAA,IACI,YACI,MAAM;AAAA,MACF,kBAAkB,kBAAkB,IAAI;AAAA,IAC5C;AAAA,EACR;AACA,KAAG,iBAAiB,YAAY;AAC5B,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,WAAW,EAAE,GAAG,QAAQ,QAAQ;AAC1C,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,iCAAiC,YAAY;AAC5C,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,aAAa,OAAO,CAAC,EAAE,GAAG,GAAG;AACvC,OAAG,QAAQ;AACX,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,aAAa,OAAO,CAAC,EAAE,GAAG,GAAG;AACvC,OAAG,QAAQ;AACX,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,aAAa,OAAO,CAAC,EAAE,GAAG,GAAG;AAAA,EAC3C,CAAC;AACD,KAAG,2BAA2B,YAAY;AACtC,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,WAAW,EAAE,GAAG,QAAQ,QAAQ;AAC1C,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,wBAAwB,YAAY;AACnC,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,CAAC;AAC9B,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAE1B,OAAG,aAAa,YAAY,IAAI;AAChC,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE;AAC/B,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAE1B,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE;AAC/B,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAE1B,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE;AAC/B,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAAA,EAC9B,CAAC;AACD,KAAG,8BAA8B,YAAY;AACzC,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,IAAI,EAAE,GAAG,MAAM,IAAI;AAC7B,WAAO,GAAG,aAAa,MAAM,CAAC,EAAE,GAAG,MAAM,IAAI;AAC7C,OAAG,gBAAgB,MAAM;AACzB,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,IAAI,EAAE,GAAG,MAAM,GAAG;AAC5B,WAAO,GAAG,aAAa,MAAM,CAAC,EAAE,GAAG,GAAG;AAAA,EAC1C,CAAC;AACD,KAAG,6CAA6C,YAAY;AACxD,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,IAAI,EAAE,GAAG,MAAM,GAAG;AAC5B,WAAO,GAAG,aAAa,MAAM,CAAC,EAAE,GAAG,GAAG;AAAA,EAC1C,CAAC;AACD,KAAG,wDAAwD,YAAY;AACnE,UAAM,eAAe,IAAI;AACzB,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA;AAAA,6BAGlB,MAAM,aAAa,CAAC;AAAA;AAAA;AAAA;AAAA,SAIxC;AAED,UAAM,eAAe,EAAE;AAEvB,OAAG,MAAM;AACT,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AAED,WAAO,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC;AACzC,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AAED,WAAO,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC;AACzC,OAAG,cAAc,IAAI,aAAa,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,OAAG,cAAc,IAAI,aAAa,WAAW,CAAC;AAC9C,OAAG,cAAc,IAAI,aAAa,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,UAAM,UAAU,MAAM,aAAa,cAAc,CAAC;AAAA,EACtD,CAAC;AACD,KAAG,6DAA6D,YAAY;AACxE,UAAM,eAAe,IAAI;AACzB,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA;AAAA,6BAGlB,MAAM,aAAa,CAAC;AAAA;AAAA;AAAA;AAAA,SAIxC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC;AAEzC,OAAG,MAAM;AACT,OAAG,cAAc,IAAI,aAAa,eAAe,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC/D,UAAM,SAAS,IAAI,kBAAkB;AACrC,WAAO,aAAa,SAAS,EAAE,GAAG,MAAM,CAAC;AAAA,EAC7C,CAAC;AACD,KAAG,mBAAmB,YAAY;AAC9B,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,SAAS,GAAG;AAElB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAElD,OAAG,MAAM;AACT,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAAA,EACtD,CAAC;AACD,KAAG,0BAA0B,YAAY;AACrC,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,SAAS,GAAG;AAElB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAElD,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,MAAM;AAE3D,OAAG,WAAW;AACd,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAAA,EACtD,CAAC;AACD,KAAG,WAAW,YAAY;AACtB,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,SAAS,GAAG;AAElB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,OAAO;AAE5D,OAAG,MAAM;AACT,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AACD,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,MAAM;AAE3D,OAAG,iBAAiB,UAAU,CAAC,UAAiB,MAAM,eAAe,CAAC;AACtE,OAAG,MAAM;AACT,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,OAAO,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,MAAM;AAAA,EAC/D,CAAC;AACD,KAAG,0CAA0C,YAAY;AACrD,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAQtC;AAED,UAAM,eAAe,EAAE;AACvB,UAAM,SAAS,GAAG;AAElB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,MAAM,EAAE,IAAI,GAAG,KAAK,UAAU,cAAc;AACnD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AACxD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,OAAO;AAEzD,OAAG,MAAM;AACT,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AACD,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,MAAM,EAAE,IAAI,GAAG,KAAK,UAAU,cAAc;AACnD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AACxD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AAExD,OAAG,iBAAiB,UAAU,CAAC,UAAiB,MAAM,eAAe,CAAC;AACtE,OAAG,MAAM;AACT,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,OAAO,EAAE,GAAG,GAAG;AACzB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG;AAC1B,WAAO,MAAM,EAAE,IAAI,GAAG,KAAK,UAAU,cAAc;AACnD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AACxD,WAAO,MAAM,EAAE,GAAG,KAAK,UAAU,iBAAiB,MAAM;AAAA,EAC5D,CAAC;AACD,KAAG,sCAAsC,YAAY;AACjD,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA,SAEtC;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,WAAW,EAAE,GAAG,MAAM,OAAO;AACvC,WAAO,GAAG,aAAa,cAAc,CAAC,EAAE,GAAG,MAAM,OAAO;AACxD,OAAG,gBAAgB,cAAc;AACjC,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,WAAW,EAAE,GAAG,GAAG;AAC7B,WAAO,GAAG,aAAa,cAAc,CAAC,EAAE,GAAG,GAAG;AAAA,EAClD,CAAC;AACD,KAAG,qBAAqB,YAAY;AA1SxC;AA2SQ,QAAI,UAAU;AACd,UAAM,KAAK,MAAM,QAAsB;AAAA;AAAA;AAAA;AAAA,SAItC;AAED,UAAM,eAAe,EAAE;AAGvB,mBAAG,eAAH,mBACM,cAAc,eADpB,mBAEM,iBAAiB,SAAS,CAAC,UAAiB;AAC1C,YAAM,eAAe;AACrB,gBAAU;AAAA,IACd;AACJ,UAAM,OAAO,GAAG,sBAAsB;AAGtC,UAAM,UAAU;AAAA,MACZ,OAAO;AAAA,QACH;AAAA,UACI,UAAU;AAAA,YACN,KAAK,OAAO,KAAK,QAAQ;AAAA,YACzB,KAAK,MAAM,KAAK,SAAS;AAAA,UAC7B;AAAA,UACA,MAAM;AAAA,QACV;AAAA,MACJ;AAAA,IACJ,CAAC;AACD,UAAM,eAAe,EAAE;AACvB,WAAO,OAAO,EAAE,GAAG,GAAG;AAAA,EAC1B,CAAC;AACL,CAAC;",
6
6
  "names": []
7
7
  }