@spectrum-web-components/close-button 0.34.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/src/close-button.css.dev.js +15 -15
- package/src/close-button.css.dev.js.map +1 -1
- package/src/close-button.css.js +15 -15
- package/src/close-button.css.js.map +1 -1
- package/src/spectrum-close-button.css.dev.js +15 -15
- package/src/spectrum-close-button.css.dev.js.map +1 -1
- package/src/spectrum-close-button.css.js +15 -15
- package/src/spectrum-close-button.css.js.map +1 -1
- package/src/spectrum-config.js +1 -1
- package/custom-elements.json +0 -5
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spectrum-web-components/close-button",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.35.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -42,10 +42,10 @@
|
|
42
42
|
"lit-html"
|
43
43
|
],
|
44
44
|
"dependencies": {
|
45
|
-
"@spectrum-web-components/base": "^0.
|
45
|
+
"@spectrum-web-components/base": "^0.35.0"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
|
-
"@spectrum-css/closebutton": "^3.1.
|
48
|
+
"@spectrum-css/closebutton": "^3.1.10"
|
49
49
|
},
|
50
50
|
"types": "./src/index.d.ts",
|
51
51
|
"customElements": "custom-elements.json",
|
@@ -53,5 +53,5 @@
|
|
53
53
|
"./sp-*.js",
|
54
54
|
"./**/*.dev.js"
|
55
55
|
],
|
56
|
-
"gitHead": "
|
56
|
+
"gitHead": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
|
57
57
|
}
|
@@ -29,7 +29,7 @@ const styles = css`
|
|
29
29
|
--spectrum-focus-indicator-color
|
30
30
|
);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(
|
31
31
|
--spectrum-animation-duration-100
|
32
|
-
)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([
|
32
|
+
)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([static=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(
|
33
33
|
--spectrum-transparent-white-300
|
34
34
|
);--spectrum-closebutton-static-background-color-down:var(
|
35
35
|
--spectrum-transparent-white-400
|
@@ -39,7 +39,7 @@ const styles = css`
|
|
39
39
|
--spectrum-disabled-static-white-content-color
|
40
40
|
);--spectrum-closebutton-focus-indicator-color:var(
|
41
41
|
--spectrum-static-white-focus-indicator-color
|
42
|
-
)}:host([
|
42
|
+
)}:host([static=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(
|
43
43
|
--spectrum-transparent-black-300
|
44
44
|
);--spectrum-closebutton-static-background-color-down:var(
|
45
45
|
--spectrum-transparent-black-400
|
@@ -85,7 +85,7 @@ const styles = css`
|
|
85
85
|
--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)
|
86
86
|
) ease-out,margin var(
|
87
87
|
--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)
|
88
|
-
) ease-out}:host([
|
88
|
+
) ease-out}:host([static=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([static=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(
|
89
89
|
--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)
|
90
90
|
);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(
|
91
91
|
--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)
|
@@ -161,49 +161,49 @@ var(--spectrum-closebutton-focus-indicator-gap)
|
|
161
161
|
--highcontrast-closebutton-icon-color-disabled,var(
|
162
162
|
--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)
|
163
163
|
)
|
164
|
-
)}:host([
|
164
|
+
)}:host([static=black]:not([disabled])),:host([static=white]:not([disabled])){background-color:var(
|
165
165
|
--highcontrast-closebutton-static-background-color-default,var(
|
166
166
|
--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)
|
167
167
|
)
|
168
|
-
)}:host([
|
168
|
+
)}:host([static=black]:not([disabled]):hover),:host([static=white]:not([disabled]):hover){background-color:var(
|
169
169
|
--highcontrast-closebutton-static-background-color-hover,var(
|
170
170
|
--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)
|
171
171
|
)
|
172
|
-
)}:host([
|
172
|
+
)}:host([static=black]:not([disabled]):hover) .icon,:host([static=white]:not([disabled]):hover) .icon{color:var(
|
173
173
|
--highcontrast-closebutton-icon-color-default,var(
|
174
174
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
175
175
|
)
|
176
|
-
)}:host([
|
176
|
+
)}:host([static=black]:not([disabled])[active]),:host([static=white]:not([disabled])[active]){background-color:var(
|
177
177
|
--highcontrast-closebutton-static-background-color-down,var(
|
178
178
|
--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)
|
179
179
|
)
|
180
|
-
)}:host([
|
180
|
+
)}:host([static=black]:not([disabled])[active]) .icon,:host([static=white]:not([disabled])[active]) .icon{color:var(
|
181
181
|
--highcontrast-closebutton-icon-color-default,var(
|
182
182
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
183
183
|
)
|
184
|
-
)}:host([
|
184
|
+
)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
185
185
|
--highcontrast-closebutton-static-background-color-focus,var(
|
186
186
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
187
187
|
)
|
188
|
-
)}:host([
|
188
|
+
)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
189
189
|
--highcontrast-closebutton-static-background-color-focus,var(
|
190
190
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
191
191
|
)
|
192
|
-
)}:host([
|
192
|
+
)}:host([static=black]:not([disabled]):focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]):focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
193
193
|
--highcontrast-closebutton-static-background-color-focus,var(
|
194
194
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
195
195
|
)
|
196
|
-
)}:host([
|
196
|
+
)}:host([static=black]:not([disabled]).focus-visible) .icon,:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]).focus-visible) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(
|
197
197
|
--highcontrast-closebutton-icon-color-default,var(
|
198
198
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
199
199
|
)
|
200
|
-
)}:host([
|
200
|
+
)}:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled]):focus-visible) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled]):focus-visible) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(
|
201
201
|
--highcontrast-closebutton-icon-color-default,var(
|
202
202
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
203
203
|
)
|
204
|
-
)}:host([
|
204
|
+
)}:host([static=black]:not([disabled])) .icon,:host([static=white]:not([disabled])) .icon{color:var(
|
205
205
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
206
|
-
)}:host([
|
206
|
+
)}:host([static=black][disabled]) .icon,:host([static=white][disabled]) .icon{color:var(
|
207
207
|
--highcontrast-closebutton-icon-disabled,var(
|
208
208
|
--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)
|
209
209
|
)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["close-button.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;font-family:var(\n--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)\n);line-height:var(--mod-line-height-100,var(--spectrum-line-height-100));margin:0;overflow:visible;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:background var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,border-color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,box-shadow var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-appearance:none;-webkit-user-select:none;user-select:none}:host{--spectrum-closebutton-size-300:24px;--spectrum-closebutton-size-400:32px;--spectrum-closebutton-size-500:40px;--spectrum-closebutton-size-600:48px;--spectrum-closebutton-icon-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-closebutton-icon-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-closebutton-icon-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-closebutton-icon-color-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-closebutton-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-closebutton-focus-indicator-gap:var(\n--spectrum-focus-indicator-gap\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(\n--spectrum-animation-duration-100\n)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([variant=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-white-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-white);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-white-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-white-focus-indicator-color\n)}:host([variant=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-black-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-black);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-black-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-black-focus-indicator-color\n)}@media (forced-colors:active){:host{--highcontrast-closebutton-icon-color-disabled:GrayText;--highcontrast-closebutton-icon-color-down:Highlight;--highcontrast-closebutton-icon-color-hover:Highlight;--highcontrast-closebutton-icon-color-focus:Highlight;--highcontrast-closebutton-background-color-default:ButtonFace;--highcontrast-closebutton-focus-indicator-color:ButtonText}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(:focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host([variant=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([variant=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(\n--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)\n);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out;width:var(--mod-closebutton-width,var(--spectrum-closebutton-width))}:host:after{border-radius:calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n));content:\"\";inset:0;margin:calc(var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n)*-1);pointer-events:none;position:absolute;transition:box-shadow var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out}:host(.focus-visible){box-shadow:none}:host(.focus-visible){box-shadow:none}:host(:focus-visible){box-shadow:none}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:not([disabled])){background-color:var(\n--highcontrast-closebutton-background-color-default,var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)\n)}:host(:not([disabled]):hover){background-color:var(\n--mod-closebutton-background-color-hover,var(--spectrum-closebutton-background-color-hover)\n)}:host(:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-hover,var(\n--mod-closebutton-icon-color-hover,var(--spectrum-closebutton-icon-color-hover)\n)\n)}:host(:not([disabled])[active]){background-color:var(\n--mod-closebutton-background-color-down,var(--spectrum-closebutton-background-color-down)\n)}:host(:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-down,var(\n--mod-closebutton-icon-color-down,var(--spectrum-closebutton-icon-color-down)\n)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]):focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]):focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host(:not([disabled]):focus) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host([disabled]){background-color:var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)}:host([disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-color-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}:host([variant=black]:not([disabled])),:host([variant=white]:not([disabled])){background-color:var(\n--highcontrast-closebutton-static-background-color-default,var(\n--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)\n)\n)}:host([variant=black]:not([disabled]):hover),:host([variant=white]:not([disabled]):hover){background-color:var(\n--highcontrast-closebutton-static-background-color-hover,var(\n--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)\n)\n)}:host([variant=black]:not([disabled]):hover) .icon,:host([variant=white]:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled])[active]),:host([variant=white]:not([disabled])[active]){background-color:var(\n--highcontrast-closebutton-static-background-color-down,var(\n--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)\n)\n)}:host([variant=black]:not([disabled])[active]) .icon,:host([variant=white]:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled]).focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]).focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]).focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]).focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]):focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]):focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]).focus-visible) .icon,:host([variant=black]:not([disabled]):focus) .icon,:host([variant=black]:not([disabled])[focused]) .icon,:host([variant=white]:not([disabled]).focus-visible) .icon,:host([variant=white]:not([disabled]):focus) .icon,:host([variant=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled]):focus) .icon,:host([variant=black]:not([disabled]):focus-visible) .icon,:host([variant=black]:not([disabled])[focused]) .icon,:host([variant=white]:not([disabled]):focus) .icon,:host([variant=white]:not([disabled]):focus-visible) .icon,:host([variant=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled])) .icon,:host([variant=white]:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host([variant=black][disabled]) .icon,:host([variant=white][disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}.icon{margin:0}:host{--spectrum-closebutton-background-color-default:var(\n--system-spectrum-closebutton-background-color-default\n);--spectrum-closebutton-background-color-hover:var(\n--system-spectrum-closebutton-background-color-hover\n);--spectrum-closebutton-background-color-down:var(\n--system-spectrum-closebutton-background-color-down\n);--spectrum-closebutton-background-color-focus:var(\n--system-spectrum-closebutton-background-color-focus\n)}\n`;\nexport default styles;"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;font-family:var(\n--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)\n);line-height:var(--mod-line-height-100,var(--spectrum-line-height-100));margin:0;overflow:visible;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:background var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,border-color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,box-shadow var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-appearance:none;-webkit-user-select:none;user-select:none}:host{--spectrum-closebutton-size-300:24px;--spectrum-closebutton-size-400:32px;--spectrum-closebutton-size-500:40px;--spectrum-closebutton-size-600:48px;--spectrum-closebutton-icon-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-closebutton-icon-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-closebutton-icon-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-closebutton-icon-color-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-closebutton-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-closebutton-focus-indicator-gap:var(\n--spectrum-focus-indicator-gap\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(\n--spectrum-animation-duration-100\n)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([static=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-white-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-white);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-white-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-white-focus-indicator-color\n)}:host([static=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-black-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-black);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-black-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-black-focus-indicator-color\n)}@media (forced-colors:active){:host{--highcontrast-closebutton-icon-color-disabled:GrayText;--highcontrast-closebutton-icon-color-down:Highlight;--highcontrast-closebutton-icon-color-hover:Highlight;--highcontrast-closebutton-icon-color-focus:Highlight;--highcontrast-closebutton-background-color-default:ButtonFace;--highcontrast-closebutton-focus-indicator-color:ButtonText}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(:focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host([static=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([static=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(\n--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)\n);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out;width:var(--mod-closebutton-width,var(--spectrum-closebutton-width))}:host:after{border-radius:calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n));content:\"\";inset:0;margin:calc(var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n)*-1);pointer-events:none;position:absolute;transition:box-shadow var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out}:host(.focus-visible){box-shadow:none}:host(.focus-visible){box-shadow:none}:host(:focus-visible){box-shadow:none}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:not([disabled])){background-color:var(\n--highcontrast-closebutton-background-color-default,var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)\n)}:host(:not([disabled]):hover){background-color:var(\n--mod-closebutton-background-color-hover,var(--spectrum-closebutton-background-color-hover)\n)}:host(:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-hover,var(\n--mod-closebutton-icon-color-hover,var(--spectrum-closebutton-icon-color-hover)\n)\n)}:host(:not([disabled])[active]){background-color:var(\n--mod-closebutton-background-color-down,var(--spectrum-closebutton-background-color-down)\n)}:host(:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-down,var(\n--mod-closebutton-icon-color-down,var(--spectrum-closebutton-icon-color-down)\n)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]):focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]):focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host(:not([disabled]):focus) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host([disabled]){background-color:var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)}:host([disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-color-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}:host([static=black]:not([disabled])),:host([static=white]:not([disabled])){background-color:var(\n--highcontrast-closebutton-static-background-color-default,var(\n--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)\n)\n)}:host([static=black]:not([disabled]):hover),:host([static=white]:not([disabled]):hover){background-color:var(\n--highcontrast-closebutton-static-background-color-hover,var(\n--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)\n)\n)}:host([static=black]:not([disabled]):hover) .icon,:host([static=white]:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled])[active]),:host([static=white]:not([disabled])[active]){background-color:var(\n--highcontrast-closebutton-static-background-color-down,var(\n--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)\n)\n)}:host([static=black]:not([disabled])[active]) .icon,:host([static=white]:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]):focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]):focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]).focus-visible) .icon,:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]).focus-visible) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled]):focus-visible) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled]):focus-visible) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled])) .icon,:host([static=white]:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host([static=black][disabled]) .icon,:host([static=white][disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}.icon{margin:0}:host{--spectrum-closebutton-background-color-default:var(\n--system-spectrum-closebutton-background-color-default\n);--spectrum-closebutton-background-color-hover:var(\n--system-spectrum-closebutton-background-color-hover\n);--spectrum-closebutton-background-color-down:var(\n--system-spectrum-closebutton-background-color-down\n);--spectrum-closebutton-background-color-focus:var(\n--system-spectrum-closebutton-background-color-focus\n)}\n`;\nexport default styles;"],
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyNf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
package/src/close-button.css.js
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
--spectrum-focus-indicator-color
|
28
28
|
);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(
|
29
29
|
--spectrum-animation-duration-100
|
30
|
-
)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([
|
30
|
+
)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([static=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(
|
31
31
|
--spectrum-transparent-white-300
|
32
32
|
);--spectrum-closebutton-static-background-color-down:var(
|
33
33
|
--spectrum-transparent-white-400
|
@@ -37,7 +37,7 @@
|
|
37
37
|
--spectrum-disabled-static-white-content-color
|
38
38
|
);--spectrum-closebutton-focus-indicator-color:var(
|
39
39
|
--spectrum-static-white-focus-indicator-color
|
40
|
-
)}:host([
|
40
|
+
)}:host([static=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(
|
41
41
|
--spectrum-transparent-black-300
|
42
42
|
);--spectrum-closebutton-static-background-color-down:var(
|
43
43
|
--spectrum-transparent-black-400
|
@@ -83,7 +83,7 @@
|
|
83
83
|
--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)
|
84
84
|
) ease-out,margin var(
|
85
85
|
--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)
|
86
|
-
) ease-out}:host([
|
86
|
+
) ease-out}:host([static=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([static=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(
|
87
87
|
--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)
|
88
88
|
);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(
|
89
89
|
--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)
|
@@ -159,49 +159,49 @@ var(--spectrum-closebutton-focus-indicator-gap)
|
|
159
159
|
--highcontrast-closebutton-icon-color-disabled,var(
|
160
160
|
--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)
|
161
161
|
)
|
162
|
-
)}:host([
|
162
|
+
)}:host([static=black]:not([disabled])),:host([static=white]:not([disabled])){background-color:var(
|
163
163
|
--highcontrast-closebutton-static-background-color-default,var(
|
164
164
|
--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)
|
165
165
|
)
|
166
|
-
)}:host([
|
166
|
+
)}:host([static=black]:not([disabled]):hover),:host([static=white]:not([disabled]):hover){background-color:var(
|
167
167
|
--highcontrast-closebutton-static-background-color-hover,var(
|
168
168
|
--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)
|
169
169
|
)
|
170
|
-
)}:host([
|
170
|
+
)}:host([static=black]:not([disabled]):hover) .icon,:host([static=white]:not([disabled]):hover) .icon{color:var(
|
171
171
|
--highcontrast-closebutton-icon-color-default,var(
|
172
172
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
173
173
|
)
|
174
|
-
)}:host([
|
174
|
+
)}:host([static=black]:not([disabled])[active]),:host([static=white]:not([disabled])[active]){background-color:var(
|
175
175
|
--highcontrast-closebutton-static-background-color-down,var(
|
176
176
|
--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)
|
177
177
|
)
|
178
|
-
)}:host([
|
178
|
+
)}:host([static=black]:not([disabled])[active]) .icon,:host([static=white]:not([disabled])[active]) .icon{color:var(
|
179
179
|
--highcontrast-closebutton-icon-color-default,var(
|
180
180
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
181
181
|
)
|
182
|
-
)}:host([
|
182
|
+
)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
183
183
|
--highcontrast-closebutton-static-background-color-focus,var(
|
184
184
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
185
185
|
)
|
186
|
-
)}:host([
|
186
|
+
)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
187
187
|
--highcontrast-closebutton-static-background-color-focus,var(
|
188
188
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
189
189
|
)
|
190
|
-
)}:host([
|
190
|
+
)}:host([static=black]:not([disabled]):focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]):focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
191
191
|
--highcontrast-closebutton-static-background-color-focus,var(
|
192
192
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
193
193
|
)
|
194
|
-
)}:host([
|
194
|
+
)}:host([static=black]:not([disabled]).focus-visible) .icon,:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]).focus-visible) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(
|
195
195
|
--highcontrast-closebutton-icon-color-default,var(
|
196
196
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
197
197
|
)
|
198
|
-
)}:host([
|
198
|
+
)}:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled]):focus-visible) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled]):focus-visible) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(
|
199
199
|
--highcontrast-closebutton-icon-color-default,var(
|
200
200
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
201
201
|
)
|
202
|
-
)}:host([
|
202
|
+
)}:host([static=black]:not([disabled])) .icon,:host([static=white]:not([disabled])) .icon{color:var(
|
203
203
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
204
|
-
)}:host([
|
204
|
+
)}:host([static=black][disabled]) .icon,:host([static=white][disabled]) .icon{color:var(
|
205
205
|
--highcontrast-closebutton-icon-disabled,var(
|
206
206
|
--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)
|
207
207
|
)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["close-button.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;font-family:var(\n--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)\n);line-height:var(--mod-line-height-100,var(--spectrum-line-height-100));margin:0;overflow:visible;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:background var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,border-color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,box-shadow var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-appearance:none;-webkit-user-select:none;user-select:none}:host{--spectrum-closebutton-size-300:24px;--spectrum-closebutton-size-400:32px;--spectrum-closebutton-size-500:40px;--spectrum-closebutton-size-600:48px;--spectrum-closebutton-icon-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-closebutton-icon-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-closebutton-icon-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-closebutton-icon-color-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-closebutton-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-closebutton-focus-indicator-gap:var(\n--spectrum-focus-indicator-gap\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(\n--spectrum-animation-duration-100\n)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([variant=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-white-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-white);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-white-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-white-focus-indicator-color\n)}:host([variant=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-black-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-black);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-black-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-black-focus-indicator-color\n)}@media (forced-colors:active){:host{--highcontrast-closebutton-icon-color-disabled:GrayText;--highcontrast-closebutton-icon-color-down:Highlight;--highcontrast-closebutton-icon-color-hover:Highlight;--highcontrast-closebutton-icon-color-focus:Highlight;--highcontrast-closebutton-background-color-default:ButtonFace;--highcontrast-closebutton-focus-indicator-color:ButtonText}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(:focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host([variant=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([variant=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(\n--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)\n);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out;width:var(--mod-closebutton-width,var(--spectrum-closebutton-width))}:host:after{border-radius:calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n));content:\"\";inset:0;margin:calc(var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n)*-1);pointer-events:none;position:absolute;transition:box-shadow var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out}:host(.focus-visible){box-shadow:none}:host(.focus-visible){box-shadow:none}:host(:focus-visible){box-shadow:none}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:not([disabled])){background-color:var(\n--highcontrast-closebutton-background-color-default,var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)\n)}:host(:not([disabled]):hover){background-color:var(\n--mod-closebutton-background-color-hover,var(--spectrum-closebutton-background-color-hover)\n)}:host(:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-hover,var(\n--mod-closebutton-icon-color-hover,var(--spectrum-closebutton-icon-color-hover)\n)\n)}:host(:not([disabled])[active]){background-color:var(\n--mod-closebutton-background-color-down,var(--spectrum-closebutton-background-color-down)\n)}:host(:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-down,var(\n--mod-closebutton-icon-color-down,var(--spectrum-closebutton-icon-color-down)\n)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]):focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]):focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host(:not([disabled]):focus) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host([disabled]){background-color:var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)}:host([disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-color-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}:host([variant=black]:not([disabled])),:host([variant=white]:not([disabled])){background-color:var(\n--highcontrast-closebutton-static-background-color-default,var(\n--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)\n)\n)}:host([variant=black]:not([disabled]):hover),:host([variant=white]:not([disabled]):hover){background-color:var(\n--highcontrast-closebutton-static-background-color-hover,var(\n--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)\n)\n)}:host([variant=black]:not([disabled]):hover) .icon,:host([variant=white]:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled])[active]),:host([variant=white]:not([disabled])[active]){background-color:var(\n--highcontrast-closebutton-static-background-color-down,var(\n--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)\n)\n)}:host([variant=black]:not([disabled])[active]) .icon,:host([variant=white]:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled]).focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]).focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]).focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]).focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]):focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]):focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]).focus-visible) .icon,:host([variant=black]:not([disabled]):focus) .icon,:host([variant=black]:not([disabled])[focused]) .icon,:host([variant=white]:not([disabled]).focus-visible) .icon,:host([variant=white]:not([disabled]):focus) .icon,:host([variant=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled]):focus) .icon,:host([variant=black]:not([disabled]):focus-visible) .icon,:host([variant=black]:not([disabled])[focused]) .icon,:host([variant=white]:not([disabled]):focus) .icon,:host([variant=white]:not([disabled]):focus-visible) .icon,:host([variant=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled])) .icon,:host([variant=white]:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host([variant=black][disabled]) .icon,:host([variant=white][disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}.icon{margin:0}:host{--spectrum-closebutton-background-color-default:var(\n--system-spectrum-closebutton-background-color-default\n);--spectrum-closebutton-background-color-hover:var(\n--system-spectrum-closebutton-background-color-hover\n);--spectrum-closebutton-background-color-down:var(\n--system-spectrum-closebutton-background-color-down\n);--spectrum-closebutton-background-color-focus:var(\n--system-spectrum-closebutton-background-color-focus\n)}\n`;\nexport default styles;"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;font-family:var(\n--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)\n);line-height:var(--mod-line-height-100,var(--spectrum-line-height-100));margin:0;overflow:visible;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:background var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,border-color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,box-shadow var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-appearance:none;-webkit-user-select:none;user-select:none}:host{--spectrum-closebutton-size-300:24px;--spectrum-closebutton-size-400:32px;--spectrum-closebutton-size-500:40px;--spectrum-closebutton-size-600:48px;--spectrum-closebutton-icon-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-closebutton-icon-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-closebutton-icon-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-closebutton-icon-color-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-closebutton-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-closebutton-focus-indicator-gap:var(\n--spectrum-focus-indicator-gap\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(\n--spectrum-animation-duration-100\n)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([static=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-white-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-white);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-white-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-white-focus-indicator-color\n)}:host([static=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-black-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-black);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-black-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-black-focus-indicator-color\n)}@media (forced-colors:active){:host{--highcontrast-closebutton-icon-color-disabled:GrayText;--highcontrast-closebutton-icon-color-down:Highlight;--highcontrast-closebutton-icon-color-hover:Highlight;--highcontrast-closebutton-icon-color-focus:Highlight;--highcontrast-closebutton-background-color-default:ButtonFace;--highcontrast-closebutton-focus-indicator-color:ButtonText}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(:focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host([static=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([static=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(\n--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)\n);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out;width:var(--mod-closebutton-width,var(--spectrum-closebutton-width))}:host:after{border-radius:calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n));content:\"\";inset:0;margin:calc(var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n)*-1);pointer-events:none;position:absolute;transition:box-shadow var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out}:host(.focus-visible){box-shadow:none}:host(.focus-visible){box-shadow:none}:host(:focus-visible){box-shadow:none}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:not([disabled])){background-color:var(\n--highcontrast-closebutton-background-color-default,var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)\n)}:host(:not([disabled]):hover){background-color:var(\n--mod-closebutton-background-color-hover,var(--spectrum-closebutton-background-color-hover)\n)}:host(:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-hover,var(\n--mod-closebutton-icon-color-hover,var(--spectrum-closebutton-icon-color-hover)\n)\n)}:host(:not([disabled])[active]){background-color:var(\n--mod-closebutton-background-color-down,var(--spectrum-closebutton-background-color-down)\n)}:host(:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-down,var(\n--mod-closebutton-icon-color-down,var(--spectrum-closebutton-icon-color-down)\n)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]):focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]):focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host(:not([disabled]):focus) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host([disabled]){background-color:var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)}:host([disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-color-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}:host([static=black]:not([disabled])),:host([static=white]:not([disabled])){background-color:var(\n--highcontrast-closebutton-static-background-color-default,var(\n--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)\n)\n)}:host([static=black]:not([disabled]):hover),:host([static=white]:not([disabled]):hover){background-color:var(\n--highcontrast-closebutton-static-background-color-hover,var(\n--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)\n)\n)}:host([static=black]:not([disabled]):hover) .icon,:host([static=white]:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled])[active]),:host([static=white]:not([disabled])[active]){background-color:var(\n--highcontrast-closebutton-static-background-color-down,var(\n--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)\n)\n)}:host([static=black]:not([disabled])[active]) .icon,:host([static=white]:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]):focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]):focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]).focus-visible) .icon,:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]).focus-visible) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled]):focus-visible) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled]):focus-visible) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled])) .icon,:host([static=white]:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host([static=black][disabled]) .icon,:host([static=white][disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}.icon{margin:0}:host{--spectrum-closebutton-background-color-default:var(\n--system-spectrum-closebutton-background-color-default\n);--spectrum-closebutton-background-color-hover:var(\n--system-spectrum-closebutton-background-color-hover\n);--spectrum-closebutton-background-color-down:var(\n--system-spectrum-closebutton-background-color-down\n);--spectrum-closebutton-background-color-focus:var(\n--system-spectrum-closebutton-background-color-focus\n)}\n`;\nexport default styles;"],
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAyNf,eAAeC",
|
6
6
|
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -29,7 +29,7 @@ const styles = css`
|
|
29
29
|
--spectrum-focus-indicator-color
|
30
30
|
);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(
|
31
31
|
--spectrum-animation-duration-100
|
32
|
-
)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([
|
32
|
+
)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([static=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(
|
33
33
|
--spectrum-transparent-white-300
|
34
34
|
);--spectrum-closebutton-static-background-color-down:var(
|
35
35
|
--spectrum-transparent-white-400
|
@@ -39,7 +39,7 @@ const styles = css`
|
|
39
39
|
--spectrum-disabled-static-white-content-color
|
40
40
|
);--spectrum-closebutton-focus-indicator-color:var(
|
41
41
|
--spectrum-static-white-focus-indicator-color
|
42
|
-
)}:host([
|
42
|
+
)}:host([static=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(
|
43
43
|
--spectrum-transparent-black-300
|
44
44
|
);--spectrum-closebutton-static-background-color-down:var(
|
45
45
|
--spectrum-transparent-black-400
|
@@ -85,7 +85,7 @@ const styles = css`
|
|
85
85
|
--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)
|
86
86
|
) ease-out,margin var(
|
87
87
|
--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)
|
88
|
-
) ease-out}:host([
|
88
|
+
) ease-out}:host([static=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([static=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(
|
89
89
|
--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)
|
90
90
|
);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(
|
91
91
|
--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)
|
@@ -161,49 +161,49 @@ var(--spectrum-closebutton-focus-indicator-gap)
|
|
161
161
|
--highcontrast-closebutton-icon-color-disabled,var(
|
162
162
|
--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)
|
163
163
|
)
|
164
|
-
)}:host([
|
164
|
+
)}:host([static=black]:not([disabled])),:host([static=white]:not([disabled])){background-color:var(
|
165
165
|
--highcontrast-closebutton-static-background-color-default,var(
|
166
166
|
--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)
|
167
167
|
)
|
168
|
-
)}:host([
|
168
|
+
)}:host([static=black]:not([disabled]):hover),:host([static=white]:not([disabled]):hover){background-color:var(
|
169
169
|
--highcontrast-closebutton-static-background-color-hover,var(
|
170
170
|
--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)
|
171
171
|
)
|
172
|
-
)}:host([
|
172
|
+
)}:host([static=black]:not([disabled]):hover) .icon,:host([static=white]:not([disabled]):hover) .icon{color:var(
|
173
173
|
--highcontrast-closebutton-icon-color-default,var(
|
174
174
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
175
175
|
)
|
176
|
-
)}:host([
|
176
|
+
)}:host([static=black]:not([disabled])[active]),:host([static=white]:not([disabled])[active]){background-color:var(
|
177
177
|
--highcontrast-closebutton-static-background-color-down,var(
|
178
178
|
--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)
|
179
179
|
)
|
180
|
-
)}:host([
|
180
|
+
)}:host([static=black]:not([disabled])[active]) .icon,:host([static=white]:not([disabled])[active]) .icon{color:var(
|
181
181
|
--highcontrast-closebutton-icon-color-default,var(
|
182
182
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
183
183
|
)
|
184
|
-
)}:host([
|
184
|
+
)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
185
185
|
--highcontrast-closebutton-static-background-color-focus,var(
|
186
186
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
187
187
|
)
|
188
|
-
)}:host([
|
188
|
+
)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
189
189
|
--highcontrast-closebutton-static-background-color-focus,var(
|
190
190
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
191
191
|
)
|
192
|
-
)}:host([
|
192
|
+
)}:host([static=black]:not([disabled]):focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]):focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
193
193
|
--highcontrast-closebutton-static-background-color-focus,var(
|
194
194
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
195
195
|
)
|
196
|
-
)}:host([
|
196
|
+
)}:host([static=black]:not([disabled]).focus-visible) .icon,:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]).focus-visible) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(
|
197
197
|
--highcontrast-closebutton-icon-color-default,var(
|
198
198
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
199
199
|
)
|
200
|
-
)}:host([
|
200
|
+
)}:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled]):focus-visible) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled]):focus-visible) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(
|
201
201
|
--highcontrast-closebutton-icon-color-default,var(
|
202
202
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
203
203
|
)
|
204
|
-
)}:host([
|
204
|
+
)}:host([static=black]:not([disabled])) .icon,:host([static=white]:not([disabled])) .icon{color:var(
|
205
205
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
206
|
-
)}:host([
|
206
|
+
)}:host([static=black][disabled]) .icon,:host([static=white][disabled]) .icon{color:var(
|
207
207
|
--highcontrast-closebutton-icon-disabled,var(
|
208
208
|
--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)
|
209
209
|
)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-close-button.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;font-family:var(\n--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)\n);line-height:var(--mod-line-height-100,var(--spectrum-line-height-100));margin:0;overflow:visible;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:background var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,border-color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,box-shadow var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-appearance:none;-webkit-user-select:none;user-select:none}:host{--spectrum-closebutton-size-300:24px;--spectrum-closebutton-size-400:32px;--spectrum-closebutton-size-500:40px;--spectrum-closebutton-size-600:48px;--spectrum-closebutton-icon-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-closebutton-icon-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-closebutton-icon-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-closebutton-icon-color-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-closebutton-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-closebutton-focus-indicator-gap:var(\n--spectrum-focus-indicator-gap\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(\n--spectrum-animation-duration-100\n)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([variant=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-white-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-white);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-white-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-white-focus-indicator-color\n)}:host([variant=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-black-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-black);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-black-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-black-focus-indicator-color\n)}@media (forced-colors:active){:host{--highcontrast-closebutton-icon-color-disabled:GrayText;--highcontrast-closebutton-icon-color-down:Highlight;--highcontrast-closebutton-icon-color-hover:Highlight;--highcontrast-closebutton-icon-color-focus:Highlight;--highcontrast-closebutton-background-color-default:ButtonFace;--highcontrast-closebutton-focus-indicator-color:ButtonText}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(:focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host([variant=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([variant=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(\n--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)\n);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out;width:var(--mod-closebutton-width,var(--spectrum-closebutton-width))}:host:after{border-radius:calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n));content:\"\";inset:0;margin:calc(var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n)*-1);pointer-events:none;position:absolute;transition:box-shadow var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out}:host(.focus-visible){box-shadow:none}:host(.focus-visible){box-shadow:none}:host(:focus-visible){box-shadow:none}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:not([disabled])){background-color:var(\n--highcontrast-closebutton-background-color-default,var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)\n)}:host(:not([disabled]):hover){background-color:var(\n--mod-closebutton-background-color-hover,var(--spectrum-closebutton-background-color-hover)\n)}:host(:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-hover,var(\n--mod-closebutton-icon-color-hover,var(--spectrum-closebutton-icon-color-hover)\n)\n)}:host(:not([disabled])[active]){background-color:var(\n--mod-closebutton-background-color-down,var(--spectrum-closebutton-background-color-down)\n)}:host(:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-down,var(\n--mod-closebutton-icon-color-down,var(--spectrum-closebutton-icon-color-down)\n)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]):focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]):focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host(:not([disabled]):focus) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host([disabled]){background-color:var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)}:host([disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-color-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}:host([variant=black]:not([disabled])),:host([variant=white]:not([disabled])){background-color:var(\n--highcontrast-closebutton-static-background-color-default,var(\n--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)\n)\n)}:host([variant=black]:not([disabled]):hover),:host([variant=white]:not([disabled]):hover){background-color:var(\n--highcontrast-closebutton-static-background-color-hover,var(\n--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)\n)\n)}:host([variant=black]:not([disabled]):hover) .icon,:host([variant=white]:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled])[active]),:host([variant=white]:not([disabled])[active]){background-color:var(\n--highcontrast-closebutton-static-background-color-down,var(\n--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)\n)\n)}:host([variant=black]:not([disabled])[active]) .icon,:host([variant=white]:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled]).focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]).focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]).focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]).focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]):focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]):focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]).focus-visible) .icon,:host([variant=black]:not([disabled]):focus) .icon,:host([variant=black]:not([disabled])[focused]) .icon,:host([variant=white]:not([disabled]).focus-visible) .icon,:host([variant=white]:not([disabled]):focus) .icon,:host([variant=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled]):focus) .icon,:host([variant=black]:not([disabled]):focus-visible) .icon,:host([variant=black]:not([disabled])[focused]) .icon,:host([variant=white]:not([disabled]):focus) .icon,:host([variant=white]:not([disabled]):focus-visible) .icon,:host([variant=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled])) .icon,:host([variant=white]:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host([variant=black][disabled]) .icon,:host([variant=white][disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}.icon{margin:0}:host{--spectrum-closebutton-background-color-default:var(\n--system-spectrum-closebutton-background-color-default\n);--spectrum-closebutton-background-color-hover:var(\n--system-spectrum-closebutton-background-color-hover\n);--spectrum-closebutton-background-color-down:var(\n--system-spectrum-closebutton-background-color-down\n);--spectrum-closebutton-background-color-focus:var(\n--system-spectrum-closebutton-background-color-focus\n)}\n`;\nexport default styles;"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;font-family:var(\n--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)\n);line-height:var(--mod-line-height-100,var(--spectrum-line-height-100));margin:0;overflow:visible;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:background var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,border-color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,box-shadow var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-appearance:none;-webkit-user-select:none;user-select:none}:host{--spectrum-closebutton-size-300:24px;--spectrum-closebutton-size-400:32px;--spectrum-closebutton-size-500:40px;--spectrum-closebutton-size-600:48px;--spectrum-closebutton-icon-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-closebutton-icon-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-closebutton-icon-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-closebutton-icon-color-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-closebutton-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-closebutton-focus-indicator-gap:var(\n--spectrum-focus-indicator-gap\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(\n--spectrum-animation-duration-100\n)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([static=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-white-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-white);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-white-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-white-focus-indicator-color\n)}:host([static=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-black-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-black);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-black-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-black-focus-indicator-color\n)}@media (forced-colors:active){:host{--highcontrast-closebutton-icon-color-disabled:GrayText;--highcontrast-closebutton-icon-color-down:Highlight;--highcontrast-closebutton-icon-color-hover:Highlight;--highcontrast-closebutton-icon-color-focus:Highlight;--highcontrast-closebutton-background-color-default:ButtonFace;--highcontrast-closebutton-focus-indicator-color:ButtonText}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(:focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host([static=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([static=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(\n--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)\n);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out;width:var(--mod-closebutton-width,var(--spectrum-closebutton-width))}:host:after{border-radius:calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n));content:\"\";inset:0;margin:calc(var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n)*-1);pointer-events:none;position:absolute;transition:box-shadow var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out}:host(.focus-visible){box-shadow:none}:host(.focus-visible){box-shadow:none}:host(:focus-visible){box-shadow:none}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:not([disabled])){background-color:var(\n--highcontrast-closebutton-background-color-default,var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)\n)}:host(:not([disabled]):hover){background-color:var(\n--mod-closebutton-background-color-hover,var(--spectrum-closebutton-background-color-hover)\n)}:host(:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-hover,var(\n--mod-closebutton-icon-color-hover,var(--spectrum-closebutton-icon-color-hover)\n)\n)}:host(:not([disabled])[active]){background-color:var(\n--mod-closebutton-background-color-down,var(--spectrum-closebutton-background-color-down)\n)}:host(:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-down,var(\n--mod-closebutton-icon-color-down,var(--spectrum-closebutton-icon-color-down)\n)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]):focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]):focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host(:not([disabled]):focus) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host([disabled]){background-color:var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)}:host([disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-color-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}:host([static=black]:not([disabled])),:host([static=white]:not([disabled])){background-color:var(\n--highcontrast-closebutton-static-background-color-default,var(\n--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)\n)\n)}:host([static=black]:not([disabled]):hover),:host([static=white]:not([disabled]):hover){background-color:var(\n--highcontrast-closebutton-static-background-color-hover,var(\n--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)\n)\n)}:host([static=black]:not([disabled]):hover) .icon,:host([static=white]:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled])[active]),:host([static=white]:not([disabled])[active]){background-color:var(\n--highcontrast-closebutton-static-background-color-down,var(\n--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)\n)\n)}:host([static=black]:not([disabled])[active]) .icon,:host([static=white]:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]):focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]):focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]).focus-visible) .icon,:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]).focus-visible) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled]):focus-visible) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled]):focus-visible) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled])) .icon,:host([static=white]:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host([static=black][disabled]) .icon,:host([static=white][disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}.icon{margin:0}:host{--spectrum-closebutton-background-color-default:var(\n--system-spectrum-closebutton-background-color-default\n);--spectrum-closebutton-background-color-hover:var(\n--system-spectrum-closebutton-background-color-hover\n);--spectrum-closebutton-background-color-down:var(\n--system-spectrum-closebutton-background-color-down\n);--spectrum-closebutton-background-color-focus:var(\n--system-spectrum-closebutton-background-color-focus\n)}\n`;\nexport default styles;"],
|
5
5
|
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyNf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -27,7 +27,7 @@
|
|
27
27
|
--spectrum-focus-indicator-color
|
28
28
|
);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(
|
29
29
|
--spectrum-animation-duration-100
|
30
|
-
)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([
|
30
|
+
)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([static=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(
|
31
31
|
--spectrum-transparent-white-300
|
32
32
|
);--spectrum-closebutton-static-background-color-down:var(
|
33
33
|
--spectrum-transparent-white-400
|
@@ -37,7 +37,7 @@
|
|
37
37
|
--spectrum-disabled-static-white-content-color
|
38
38
|
);--spectrum-closebutton-focus-indicator-color:var(
|
39
39
|
--spectrum-static-white-focus-indicator-color
|
40
|
-
)}:host([
|
40
|
+
)}:host([static=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(
|
41
41
|
--spectrum-transparent-black-300
|
42
42
|
);--spectrum-closebutton-static-background-color-down:var(
|
43
43
|
--spectrum-transparent-black-400
|
@@ -83,7 +83,7 @@
|
|
83
83
|
--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)
|
84
84
|
) ease-out,margin var(
|
85
85
|
--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)
|
86
|
-
) ease-out}:host([
|
86
|
+
) ease-out}:host([static=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([static=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(
|
87
87
|
--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)
|
88
88
|
);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(
|
89
89
|
--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)
|
@@ -159,49 +159,49 @@ var(--spectrum-closebutton-focus-indicator-gap)
|
|
159
159
|
--highcontrast-closebutton-icon-color-disabled,var(
|
160
160
|
--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)
|
161
161
|
)
|
162
|
-
)}:host([
|
162
|
+
)}:host([static=black]:not([disabled])),:host([static=white]:not([disabled])){background-color:var(
|
163
163
|
--highcontrast-closebutton-static-background-color-default,var(
|
164
164
|
--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)
|
165
165
|
)
|
166
|
-
)}:host([
|
166
|
+
)}:host([static=black]:not([disabled]):hover),:host([static=white]:not([disabled]):hover){background-color:var(
|
167
167
|
--highcontrast-closebutton-static-background-color-hover,var(
|
168
168
|
--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)
|
169
169
|
)
|
170
|
-
)}:host([
|
170
|
+
)}:host([static=black]:not([disabled]):hover) .icon,:host([static=white]:not([disabled]):hover) .icon{color:var(
|
171
171
|
--highcontrast-closebutton-icon-color-default,var(
|
172
172
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
173
173
|
)
|
174
|
-
)}:host([
|
174
|
+
)}:host([static=black]:not([disabled])[active]),:host([static=white]:not([disabled])[active]){background-color:var(
|
175
175
|
--highcontrast-closebutton-static-background-color-down,var(
|
176
176
|
--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)
|
177
177
|
)
|
178
|
-
)}:host([
|
178
|
+
)}:host([static=black]:not([disabled])[active]) .icon,:host([static=white]:not([disabled])[active]) .icon{color:var(
|
179
179
|
--highcontrast-closebutton-icon-color-default,var(
|
180
180
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
181
181
|
)
|
182
|
-
)}:host([
|
182
|
+
)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
183
183
|
--highcontrast-closebutton-static-background-color-focus,var(
|
184
184
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
185
185
|
)
|
186
|
-
)}:host([
|
186
|
+
)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
187
187
|
--highcontrast-closebutton-static-background-color-focus,var(
|
188
188
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
189
189
|
)
|
190
|
-
)}:host([
|
190
|
+
)}:host([static=black]:not([disabled]):focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]):focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(
|
191
191
|
--highcontrast-closebutton-static-background-color-focus,var(
|
192
192
|
--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)
|
193
193
|
)
|
194
|
-
)}:host([
|
194
|
+
)}:host([static=black]:not([disabled]).focus-visible) .icon,:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]).focus-visible) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(
|
195
195
|
--highcontrast-closebutton-icon-color-default,var(
|
196
196
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
197
197
|
)
|
198
|
-
)}:host([
|
198
|
+
)}:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled]):focus-visible) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled]):focus-visible) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(
|
199
199
|
--highcontrast-closebutton-icon-color-default,var(
|
200
200
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
201
201
|
)
|
202
|
-
)}:host([
|
202
|
+
)}:host([static=black]:not([disabled])) .icon,:host([static=white]:not([disabled])) .icon{color:var(
|
203
203
|
--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)
|
204
|
-
)}:host([
|
204
|
+
)}:host([static=black][disabled]) .icon,:host([static=white][disabled]) .icon{color:var(
|
205
205
|
--highcontrast-closebutton-icon-disabled,var(
|
206
206
|
--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)
|
207
207
|
)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-close-button.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;font-family:var(\n--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)\n);line-height:var(--mod-line-height-100,var(--spectrum-line-height-100));margin:0;overflow:visible;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:background var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,border-color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,box-shadow var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-appearance:none;-webkit-user-select:none;user-select:none}:host{--spectrum-closebutton-size-300:24px;--spectrum-closebutton-size-400:32px;--spectrum-closebutton-size-500:40px;--spectrum-closebutton-size-600:48px;--spectrum-closebutton-icon-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-closebutton-icon-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-closebutton-icon-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-closebutton-icon-color-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-closebutton-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-closebutton-focus-indicator-gap:var(\n--spectrum-focus-indicator-gap\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(\n--spectrum-animation-duration-100\n)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([variant=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-white-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-white);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-white-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-white-focus-indicator-color\n)}:host([variant=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-black-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-black);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-black-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-black-focus-indicator-color\n)}@media (forced-colors:active){:host{--highcontrast-closebutton-icon-color-disabled:GrayText;--highcontrast-closebutton-icon-color-down:Highlight;--highcontrast-closebutton-icon-color-hover:Highlight;--highcontrast-closebutton-icon-color-focus:Highlight;--highcontrast-closebutton-background-color-default:ButtonFace;--highcontrast-closebutton-focus-indicator-color:ButtonText}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(:focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host([variant=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([variant=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(\n--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)\n);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out;width:var(--mod-closebutton-width,var(--spectrum-closebutton-width))}:host:after{border-radius:calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n));content:\"\";inset:0;margin:calc(var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n)*-1);pointer-events:none;position:absolute;transition:box-shadow var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out}:host(.focus-visible){box-shadow:none}:host(.focus-visible){box-shadow:none}:host(:focus-visible){box-shadow:none}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:not([disabled])){background-color:var(\n--highcontrast-closebutton-background-color-default,var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)\n)}:host(:not([disabled]):hover){background-color:var(\n--mod-closebutton-background-color-hover,var(--spectrum-closebutton-background-color-hover)\n)}:host(:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-hover,var(\n--mod-closebutton-icon-color-hover,var(--spectrum-closebutton-icon-color-hover)\n)\n)}:host(:not([disabled])[active]){background-color:var(\n--mod-closebutton-background-color-down,var(--spectrum-closebutton-background-color-down)\n)}:host(:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-down,var(\n--mod-closebutton-icon-color-down,var(--spectrum-closebutton-icon-color-down)\n)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]):focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]):focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host(:not([disabled]):focus) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host([disabled]){background-color:var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)}:host([disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-color-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}:host([variant=black]:not([disabled])),:host([variant=white]:not([disabled])){background-color:var(\n--highcontrast-closebutton-static-background-color-default,var(\n--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)\n)\n)}:host([variant=black]:not([disabled]):hover),:host([variant=white]:not([disabled]):hover){background-color:var(\n--highcontrast-closebutton-static-background-color-hover,var(\n--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)\n)\n)}:host([variant=black]:not([disabled]):hover) .icon,:host([variant=white]:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled])[active]),:host([variant=white]:not([disabled])[active]){background-color:var(\n--highcontrast-closebutton-static-background-color-down,var(\n--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)\n)\n)}:host([variant=black]:not([disabled])[active]) .icon,:host([variant=white]:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled]).focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]).focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]).focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]).focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]):focus-visible),:host([variant=black]:not([disabled])[focused]),:host([variant=white]:not([disabled]):focus-visible),:host([variant=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([variant=black]:not([disabled]).focus-visible) .icon,:host([variant=black]:not([disabled]):focus) .icon,:host([variant=black]:not([disabled])[focused]) .icon,:host([variant=white]:not([disabled]).focus-visible) .icon,:host([variant=white]:not([disabled]):focus) .icon,:host([variant=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled]):focus) .icon,:host([variant=black]:not([disabled]):focus-visible) .icon,:host([variant=black]:not([disabled])[focused]) .icon,:host([variant=white]:not([disabled]):focus) .icon,:host([variant=white]:not([disabled]):focus-visible) .icon,:host([variant=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([variant=black]:not([disabled])) .icon,:host([variant=white]:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host([variant=black][disabled]) .icon,:host([variant=white][disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}.icon{margin:0}:host{--spectrum-closebutton-background-color-default:var(\n--system-spectrum-closebutton-background-color-default\n);--spectrum-closebutton-background-color-hover:var(\n--system-spectrum-closebutton-background-color-hover\n);--spectrum-closebutton-background-color-down:var(\n--system-spectrum-closebutton-background-color-down\n);--spectrum-closebutton-background-color-focus:var(\n--system-spectrum-closebutton-background-color-focus\n)}\n`;\nexport default styles;"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-appearance:button;border-style:solid;box-sizing:border-box;cursor:pointer;font-family:var(\n--mod-sans-font-family-stack,var(--spectrum-sans-font-family-stack)\n);line-height:var(--mod-line-height-100,var(--spectrum-line-height-100));margin:0;overflow:visible;-webkit-text-decoration:none;text-decoration:none;text-transform:none;transition:background var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,border-color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,color var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out,box-shadow var(\n--mod-animation-duration-100,var(--spectrum-animation-duration-100)\n) ease-out;-webkit-user-select:none;user-select:none;vertical-align:top}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-appearance:none;-webkit-user-select:none;user-select:none}:host{--spectrum-closebutton-size-300:24px;--spectrum-closebutton-size-400:32px;--spectrum-closebutton-size-500:40px;--spectrum-closebutton-size-600:48px;--spectrum-closebutton-icon-color-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-closebutton-icon-color-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-closebutton-icon-color-down:var(\n--spectrum-neutral-content-color-down\n);--spectrum-closebutton-icon-color-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-content-color\n);--spectrum-closebutton-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-closebutton-focus-indicator-gap:var(\n--spectrum-focus-indicator-gap\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400);--spectrum-closebutton-animation-duration:var(\n--spectrum-animation-duration-100\n)}:host([size=s]){--spectrum-closebutton-height:var(--spectrum-component-height-75);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-300);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-300)}:host([size=m]){--spectrum-closebutton-height:var(--spectrum-component-height-100);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-400);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-400)}:host([size=l]){--spectrum-closebutton-height:var(--spectrum-component-height-200);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-500);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-500)}:host([size=xl]){--spectrum-closebutton-height:var(--spectrum-component-height-300);--spectrum-closebutton-width:var(--spectrum-closebutton-height);--spectrum-closebutton-size:var(--spectrum-closebutton-size-600);--spectrum-closebutton-border-radius:var(--spectrum-closebutton-size-600)}:host([static=white]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-white-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-white-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-white);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-white-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-white-focus-indicator-color\n)}:host([static=black]){--spectrum-closebutton-static-background-color-default:transparent;--spectrum-closebutton-static-background-color-hover:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-static-background-color-down:var(\n--spectrum-transparent-black-400\n);--spectrum-closebutton-static-background-color-focus:var(\n--spectrum-transparent-black-300\n);--spectrum-closebutton-icon-color-default:var(--spectrum-black);--spectrum-closebutton-icon-color-disabled:var(\n--spectrum-disabled-static-black-content-color\n);--spectrum-closebutton-focus-indicator-color:var(\n--spectrum-static-black-focus-indicator-color\n)}@media (forced-colors:active){:host{--highcontrast-closebutton-icon-color-disabled:GrayText;--highcontrast-closebutton-icon-color-down:Highlight;--highcontrast-closebutton-icon-color-hover:Highlight;--highcontrast-closebutton-icon-color-focus:Highlight;--highcontrast-closebutton-background-color-default:ButtonFace;--highcontrast-closebutton-focus-indicator-color:ButtonText}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(.focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host(:focus-visible):after{border-radius:100%;box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n);content:\"\";display:block;forced-color-adjust:none;inset:0;margin:var(\n--mod-closebutton-focus-indicator-gap,var(--spectrum-closebutton-focus-indicator-gap)\n);position:absolute;transition:opacity var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-out,margin var(\n--mod-closebutton-animation-duraction,var(--spectrum-closebutton-animation-duration)\n) ease-out}:host([static=black]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:GrayText}:host([static=white]){--highcontrast-closebutton-static-background-color-default:ButtonFace;--highcontrast-closebutton-icon-color-default:Highlight;--highcontrast-closebutton-icon-color-disabled:Highlight}}:host{align-items:center;align-self:var(--mod-closebutton-align-self);border-color:#0000;border-radius:var(\n--mod-closebutton-border-radius,var(--spectrum-closebutton-border-radius)\n);border-width:0;color:inherit;display:inline-flex;flex-direction:row;height:var(--mod-closebutton-height,var(--spectrum-closebutton-height));justify-content:center;margin-block-start:var(--mod-closebutton-margin-top);margin-inline:var(--mod-closebutton-margin-inline);padding:0;position:relative;transition:border-color var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out;width:var(--mod-closebutton-width,var(--spectrum-closebutton-width))}:host:after{border-radius:calc(var(--mod-closebutton-size, var(--spectrum-closebutton-size)) + var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n));content:\"\";inset:0;margin:calc(var(\n--mod-closebutton-focus-indicator-gap,\nvar(--spectrum-closebutton-focus-indicator-gap)\n)*-1);pointer-events:none;position:absolute;transition:box-shadow var(\n--mod-closebutton-animation-duration,var(--spectrum-closebutton-animation-duration)\n) ease-in-out}:host(.focus-visible){box-shadow:none}:host(.focus-visible){box-shadow:none}:host(:focus-visible){box-shadow:none}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(.focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:focus-visible):after{box-shadow:0 0 0 var(\n--mod-closebutton-focus-indicator-thickness,var(--spectrum-closebutton-focus-indicator-thickness)\n) var(\n--highcontrast-closebutton-focus-indicator-color,var(\n--mod-closebutton-focus-indicator-color,var(--spectrum-closebutton-focus-indicator-color)\n)\n)}:host(:not([disabled])){background-color:var(\n--highcontrast-closebutton-background-color-default,var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)\n)}:host(:not([disabled]):hover){background-color:var(\n--mod-closebutton-background-color-hover,var(--spectrum-closebutton-background-color-hover)\n)}:host(:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-hover,var(\n--mod-closebutton-icon-color-hover,var(--spectrum-closebutton-icon-color-hover)\n)\n)}:host(:not([disabled])[active]){background-color:var(\n--mod-closebutton-background-color-down,var(--spectrum-closebutton-background-color-down)\n)}:host(:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-down,var(\n--mod-closebutton-icon-color-down,var(--spectrum-closebutton-icon-color-down)\n)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]):focus-visible),:host(:not([disabled])[focused]){background-color:var(\n--mod-closebutton-background-color-focus,var(--spectrum-closebutton-background-color-focus)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]).focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled]):focus-visible) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host(:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host(:not([disabled]):focus) .icon,:host(:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-focus,var(\n--mod-closebutton-icon-color-focus,var(--spectrum-closebutton-icon-color-focus)\n)\n)}:host([disabled]){background-color:var(\n--mod-closebutton-background-color-default,var(--spectrum-closebutton-background-color-default)\n)}:host([disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-color-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}:host([static=black]:not([disabled])),:host([static=white]:not([disabled])){background-color:var(\n--highcontrast-closebutton-static-background-color-default,var(\n--mod-closebutton-static-background-color-default,var(--spectrum-closebutton-static-background-color-default)\n)\n)}:host([static=black]:not([disabled]):hover),:host([static=white]:not([disabled]):hover){background-color:var(\n--highcontrast-closebutton-static-background-color-hover,var(\n--mod-closebutton-static-background-color-hover,var(--spectrum-closebutton-static-background-color-hover)\n)\n)}:host([static=black]:not([disabled]):hover) .icon,:host([static=white]:not([disabled]):hover) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled])[active]),:host([static=white]:not([disabled])[active]){background-color:var(\n--highcontrast-closebutton-static-background-color-down,var(\n--mod-closebutton-static-background-color-down,var(--spectrum-closebutton-static-background-color-down)\n)\n)}:host([static=black]:not([disabled])[active]) .icon,:host([static=white]:not([disabled])[active]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]).focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]).focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]):focus-visible),:host([static=black]:not([disabled])[focused]),:host([static=white]:not([disabled]):focus-visible),:host([static=white]:not([disabled])[focused]){background-color:var(\n--highcontrast-closebutton-static-background-color-focus,var(\n--mod-closebutton-static-background-color-focus,var(--spectrum-closebutton-static-background-color-focus)\n)\n)}:host([static=black]:not([disabled]).focus-visible) .icon,:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]).focus-visible) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled]):focus) .icon,:host([static=black]:not([disabled]):focus-visible) .icon,:host([static=black]:not([disabled])[focused]) .icon,:host([static=white]:not([disabled]):focus) .icon,:host([static=white]:not([disabled]):focus-visible) .icon,:host([static=white]:not([disabled])[focused]) .icon{color:var(\n--highcontrast-closebutton-icon-color-default,var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)\n)}:host([static=black]:not([disabled])) .icon,:host([static=white]:not([disabled])) .icon{color:var(\n--mod-closebutton-icon-color-default,var(--spectrum-closebutton-icon-color-default)\n)}:host([static=black][disabled]) .icon,:host([static=white][disabled]) .icon{color:var(\n--highcontrast-closebutton-icon-disabled,var(\n--mod-closebutton-icon-color-disabled,var(--spectrum-closebutton-icon-color-disabled)\n)\n)}.icon{margin:0}:host{--spectrum-closebutton-background-color-default:var(\n--system-spectrum-closebutton-background-color-default\n);--spectrum-closebutton-background-color-hover:var(\n--system-spectrum-closebutton-background-color-hover\n);--spectrum-closebutton-background-color-down:var(\n--system-spectrum-closebutton-background-color-down\n);--spectrum-closebutton-background-color-focus:var(\n--system-spectrum-closebutton-background-color-focus\n)}\n`;\nexport default styles;"],
|
5
5
|
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAyNf,eAAeC",
|
6
6
|
"names": ["css", "styles"]
|
7
7
|
}
|
package/src/spectrum-config.js
CHANGED