@spectrum-web-components/dialog 0.11.0-devmode.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +2 -0
- package/package.json +10 -10
- package/sp-dialog-wrapper.js +1 -2
- package/sp-dialog-wrapper.js.map +1 -1
- package/sp-dialog.js +1 -2
- package/sp-dialog.js.map +1 -1
- package/src/Dialog.js +15 -205
- package/src/Dialog.js.map +1 -1
- package/src/DialogWrapper.d.ts +3 -0
- package/src/DialogWrapper.dev.js.map +2 -2
- package/src/DialogWrapper.js +20 -214
- package/src/DialogWrapper.js.map +2 -2
- package/src/dialog.css.js +2 -4
- package/src/dialog.css.js.map +1 -1
- package/src/index.js +1 -2
- package/src/index.js.map +1 -1
- package/src/spectrum-dialog.css.js +2 -4
- package/src/spectrum-dialog.css.js.map +1 -1
- package/stories/dialog-wrapper.stories.js +56 -165
- package/stories/dialog-wrapper.stories.js.map +2 -2
- package/stories/dialog.stories.js +14 -60
- package/stories/dialog.stories.js.map +1 -1
- package/stories/images.js +1 -2
- package/stories/images.js.map +1 -1
- package/test/benchmark/basic-test.js +1 -4
- package/test/benchmark/basic-test.js.map +1 -1
- package/test/dialog-wrapper.test-vrt.js +1 -3
- package/test/dialog-wrapper.test-vrt.js.map +1 -1
- package/test/dialog-wrapper.test.js +3 -164
- package/test/dialog-wrapper.test.js.map +1 -1
- package/test/dialog.test-vrt.js +1 -3
- package/test/dialog.test-vrt.js.map +1 -1
- package/test/dialog.test.js +13 -136
- package/test/dialog.test.js.map +1 -1
package/src/DialogWrapper.js
CHANGED
|
@@ -1,139 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
-
if (decorator = decorators[i])
|
|
7
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
-
if (kind && result)
|
|
9
|
-
__defProp(target, key, result);
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
import {
|
|
13
|
-
html,
|
|
14
|
-
SpectrumElement
|
|
15
|
-
} from "@spectrum-web-components/base";
|
|
16
|
-
import {
|
|
17
|
-
property,
|
|
18
|
-
query
|
|
19
|
-
} from "@spectrum-web-components/base/src/decorators.js";
|
|
20
|
-
import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
|
|
21
|
-
import "@spectrum-web-components/underlay/sp-underlay.js";
|
|
22
|
-
import "@spectrum-web-components/button/sp-button.js";
|
|
23
|
-
import "../sp-dialog.js";
|
|
24
|
-
import modalWrapperStyles from "@spectrum-web-components/modal/src/modal-wrapper.css.js";
|
|
25
|
-
import modalStyles from "@spectrum-web-components/modal/src/modal.css.js";
|
|
26
|
-
import { FocusVisiblePolyfillMixin } from "@spectrum-web-components/shared";
|
|
27
|
-
import { firstFocusableIn } from "@spectrum-web-components/shared/src/first-focusable-in.js";
|
|
28
|
-
export class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {
|
|
29
|
-
constructor() {
|
|
30
|
-
super(...arguments);
|
|
31
|
-
this.error = false;
|
|
32
|
-
this.cancelLabel = "";
|
|
33
|
-
this.confirmLabel = "";
|
|
34
|
-
this.dismissable = false;
|
|
35
|
-
this.footer = "";
|
|
36
|
-
this.hero = "";
|
|
37
|
-
this.heroLabel = "";
|
|
38
|
-
this.noDivider = false;
|
|
39
|
-
this.open = false;
|
|
40
|
-
this.secondaryLabel = "";
|
|
41
|
-
this.headline = "";
|
|
42
|
-
this.responsive = false;
|
|
43
|
-
this.transitionPromise = Promise.resolve();
|
|
44
|
-
this.resolveTransitionPromise = () => {
|
|
45
|
-
return;
|
|
46
|
-
};
|
|
47
|
-
this.underlay = false;
|
|
48
|
-
}
|
|
49
|
-
static get styles() {
|
|
50
|
-
return [modalWrapperStyles, modalStyles];
|
|
51
|
-
}
|
|
52
|
-
focus() {
|
|
53
|
-
if (this.shadowRoot) {
|
|
54
|
-
const firstFocusable = firstFocusableIn(this.dialog);
|
|
55
|
-
if (firstFocusable) {
|
|
56
|
-
if (firstFocusable.updateComplete) {
|
|
57
|
-
firstFocusable.updateComplete.then(() => firstFocusable.focus());
|
|
58
|
-
} else {
|
|
59
|
-
firstFocusable.focus();
|
|
60
|
-
}
|
|
61
|
-
this.removeAttribute("tabindex");
|
|
62
|
-
} else {
|
|
63
|
-
this.dialog.focus();
|
|
64
|
-
}
|
|
65
|
-
} else {
|
|
66
|
-
super.focus();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
overlayWillCloseCallback() {
|
|
70
|
-
if (!this.open)
|
|
71
|
-
return false;
|
|
72
|
-
this.close();
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
dismiss() {
|
|
76
|
-
if (!this.dismissable) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
this.close();
|
|
80
|
-
}
|
|
81
|
-
clickSecondary() {
|
|
82
|
-
this.dispatchEvent(new Event("secondary", {
|
|
83
|
-
bubbles: true
|
|
84
|
-
}));
|
|
85
|
-
}
|
|
86
|
-
clickCancel() {
|
|
87
|
-
this.dispatchEvent(new Event("cancel", {
|
|
88
|
-
bubbles: true
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
clickConfirm() {
|
|
92
|
-
this.dispatchEvent(new Event("confirm", {
|
|
93
|
-
bubbles: true
|
|
94
|
-
}));
|
|
95
|
-
}
|
|
96
|
-
handleClose(event) {
|
|
97
|
-
event.stopPropagation();
|
|
98
|
-
this.close();
|
|
99
|
-
}
|
|
100
|
-
close() {
|
|
101
|
-
this.open = false;
|
|
102
|
-
}
|
|
103
|
-
dispatchClosed() {
|
|
104
|
-
this.dispatchEvent(new Event("close", {
|
|
105
|
-
bubbles: true
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
handleUnderlayTransitionend(event) {
|
|
109
|
-
if (!this.open && event.propertyName === "visibility") {
|
|
110
|
-
this.dispatchClosed();
|
|
111
|
-
this.resolveTransitionPromise();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
handleModalTransitionend() {
|
|
115
|
-
if (this.open || !this.underlay) {
|
|
116
|
-
this.resolveTransitionPromise();
|
|
117
|
-
if (!this.open) {
|
|
118
|
-
this.dispatchClosed();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
update(changes) {
|
|
123
|
-
if (changes.has("open") && changes.get("open") !== void 0) {
|
|
124
|
-
this.transitionPromise = new Promise((res) => this.resolveTransitionPromise = res);
|
|
125
|
-
}
|
|
126
|
-
super.update(changes);
|
|
127
|
-
}
|
|
128
|
-
render() {
|
|
129
|
-
return html`
|
|
130
|
-
${this.underlay ? html`
|
|
1
|
+
var u=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var t=(a,e,r,l)=>{for(var o=l>1?void 0:l?h(e,r):e,d=a.length-1,c;d>=0;d--)(c=a[d])&&(o=(l?c(e,r,o):c(o))||o);return l&&o&&u(e,r,o),o};import{html as i,SpectrumElement as p}from"@spectrum-web-components/base";import{property as s,query as b}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as n}from"@spectrum-web-components/base/src/directives.js";import"@spectrum-web-components/underlay/sp-underlay.js";import"@spectrum-web-components/button/sp-button.js";import"../sp-dialog.js";import m from"@spectrum-web-components/modal/src/modal-wrapper.css.js";import f from"@spectrum-web-components/modal/src/modal.css.js";import{FocusVisiblePolyfillMixin as v}from"@spectrum-web-components/shared";import{firstFocusableIn as y}from"@spectrum-web-components/shared/src/first-focusable-in.js";export class DialogWrapper extends v(p){constructor(){super(...arguments);this.error=!1;this.cancelLabel="";this.confirmLabel="";this.dismissable=!1;this.footer="";this.hero="";this.heroLabel="";this.noDivider=!1;this.open=!1;this.secondaryLabel="";this.headline="";this.responsive=!1;this.transitionPromise=Promise.resolve();this.resolveTransitionPromise=()=>{};this.underlay=!1}static get styles(){return[m,f]}focus(){if(this.shadowRoot){const e=y(this.dialog);e?(e.updateComplete?e.updateComplete.then(()=>e.focus()):e.focus(),this.removeAttribute("tabindex")):this.dialog.focus()}else super.focus()}overlayWillCloseCallback(){return this.open?(this.close(),!0):!1}dismiss(){!this.dismissable||this.close()}clickSecondary(){this.dispatchEvent(new Event("secondary",{bubbles:!0}))}clickCancel(){this.dispatchEvent(new Event("cancel",{bubbles:!0}))}clickConfirm(){this.dispatchEvent(new Event("confirm",{bubbles:!0}))}handleClose(e){e.stopPropagation(),this.close()}close(){this.open=!1}dispatchClosed(){this.dispatchEvent(new Event("close",{bubbles:!0}))}handleUnderlayTransitionend(e){!this.open&&e.propertyName==="visibility"&&(this.dispatchClosed(),this.resolveTransitionPromise())}handleModalTransitionend(){(this.open||!this.underlay)&&(this.resolveTransitionPromise(),this.open||this.dispatchClosed())}update(e){e.has("open")&&e.get("open")!==void 0&&(this.transitionPromise=new Promise(r=>this.resolveTransitionPromise=r)),super.update(e)}render(){return i`
|
|
2
|
+
${this.underlay?i`
|
|
131
3
|
<sp-underlay
|
|
132
4
|
?open=${this.open}
|
|
133
5
|
@click=${this.dismiss}
|
|
134
6
|
@transitionend=${this.handleUnderlayTransitionend}
|
|
135
7
|
></sp-underlay>
|
|
136
|
-
|
|
8
|
+
`:i``}
|
|
137
9
|
<div
|
|
138
10
|
class="modal ${this.mode}"
|
|
139
11
|
@transitionend=${this.handleModalTransitionend}
|
|
@@ -142,26 +14,26 @@ export class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {
|
|
|
142
14
|
?dismissable=${this.dismissable}
|
|
143
15
|
?no-divider=${this.noDivider}
|
|
144
16
|
?error=${this.error}
|
|
145
|
-
mode=${
|
|
146
|
-
size=${
|
|
17
|
+
mode=${n(this.mode?this.mode:void 0)}
|
|
18
|
+
size=${n(this.size?this.size:void 0)}
|
|
147
19
|
@close=${this.handleClose}
|
|
148
20
|
>
|
|
149
|
-
${this.hero
|
|
21
|
+
${this.hero?i`
|
|
150
22
|
<img
|
|
151
23
|
src="${this.hero}"
|
|
152
24
|
slot="hero"
|
|
153
|
-
aria-hidden=${
|
|
154
|
-
alt=${
|
|
25
|
+
aria-hidden=${n(this.heroLabel?void 0:"true")}
|
|
26
|
+
alt=${n(this.heroLabel?this.heroLabel:void 0)}
|
|
155
27
|
/>
|
|
156
|
-
|
|
157
|
-
${this.headline
|
|
28
|
+
`:i``}
|
|
29
|
+
${this.headline?i`
|
|
158
30
|
<h2 slot="heading">${this.headline}</h2>
|
|
159
|
-
|
|
31
|
+
`:i``}
|
|
160
32
|
<slot></slot>
|
|
161
|
-
${this.footer
|
|
33
|
+
${this.footer?i`
|
|
162
34
|
<div slot="footer">${this.footer}</div>
|
|
163
|
-
|
|
164
|
-
${this.secondaryLabel
|
|
35
|
+
`:i``}
|
|
36
|
+
${this.secondaryLabel?i`
|
|
165
37
|
<sp-button
|
|
166
38
|
variant="primary"
|
|
167
39
|
treatment="outline"
|
|
@@ -170,8 +42,8 @@ export class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {
|
|
|
170
42
|
>
|
|
171
43
|
${this.secondaryLabel}
|
|
172
44
|
</sp-button>
|
|
173
|
-
|
|
174
|
-
${this.cancelLabel
|
|
45
|
+
`:i``}
|
|
46
|
+
${this.cancelLabel?i`
|
|
175
47
|
<sp-button
|
|
176
48
|
variant="secondary"
|
|
177
49
|
treatment="outline"
|
|
@@ -180,8 +52,8 @@ export class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {
|
|
|
180
52
|
>
|
|
181
53
|
${this.cancelLabel}
|
|
182
54
|
</sp-button>
|
|
183
|
-
|
|
184
|
-
${this.confirmLabel
|
|
55
|
+
`:i``}
|
|
56
|
+
${this.confirmLabel?i`
|
|
185
57
|
<sp-button
|
|
186
58
|
variant="accent"
|
|
187
59
|
slot="button"
|
|
@@ -189,74 +61,8 @@ export class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {
|
|
|
189
61
|
>
|
|
190
62
|
${this.confirmLabel}
|
|
191
63
|
</sp-button>
|
|
192
|
-
|
|
64
|
+
`:i``}
|
|
193
65
|
</sp-dialog>
|
|
194
66
|
</div>
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
updated(changes) {
|
|
198
|
-
if (changes.has("open")) {
|
|
199
|
-
if (this.open) {
|
|
200
|
-
this.dialog.updateComplete.then(() => {
|
|
201
|
-
this.dialog.shouldManageTabOrderForScrolling();
|
|
202
|
-
});
|
|
203
|
-
} else {
|
|
204
|
-
this.tabIndex = 0;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
async getUpdateComplete() {
|
|
209
|
-
const complete = await super.getUpdateComplete();
|
|
210
|
-
await this.transitionPromise;
|
|
211
|
-
return complete;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
__decorateClass([
|
|
215
|
-
property({ type: Boolean, reflect: true })
|
|
216
|
-
], DialogWrapper.prototype, "error", 2);
|
|
217
|
-
__decorateClass([
|
|
218
|
-
property({ attribute: "cancel-label" })
|
|
219
|
-
], DialogWrapper.prototype, "cancelLabel", 2);
|
|
220
|
-
__decorateClass([
|
|
221
|
-
property({ attribute: "confirm-label" })
|
|
222
|
-
], DialogWrapper.prototype, "confirmLabel", 2);
|
|
223
|
-
__decorateClass([
|
|
224
|
-
property({ type: Boolean, reflect: true })
|
|
225
|
-
], DialogWrapper.prototype, "dismissable", 2);
|
|
226
|
-
__decorateClass([
|
|
227
|
-
property()
|
|
228
|
-
], DialogWrapper.prototype, "footer", 2);
|
|
229
|
-
__decorateClass([
|
|
230
|
-
property()
|
|
231
|
-
], DialogWrapper.prototype, "hero", 2);
|
|
232
|
-
__decorateClass([
|
|
233
|
-
property({ attribute: "hero-label" })
|
|
234
|
-
], DialogWrapper.prototype, "heroLabel", 2);
|
|
235
|
-
__decorateClass([
|
|
236
|
-
property({ type: Boolean, reflect: true, attribute: "no-divider" })
|
|
237
|
-
], DialogWrapper.prototype, "noDivider", 2);
|
|
238
|
-
__decorateClass([
|
|
239
|
-
property({ type: Boolean, reflect: true })
|
|
240
|
-
], DialogWrapper.prototype, "open", 2);
|
|
241
|
-
__decorateClass([
|
|
242
|
-
property({ type: String, reflect: true })
|
|
243
|
-
], DialogWrapper.prototype, "mode", 2);
|
|
244
|
-
__decorateClass([
|
|
245
|
-
property({ type: String, reflect: true })
|
|
246
|
-
], DialogWrapper.prototype, "size", 2);
|
|
247
|
-
__decorateClass([
|
|
248
|
-
property({ attribute: "secondary-label" })
|
|
249
|
-
], DialogWrapper.prototype, "secondaryLabel", 2);
|
|
250
|
-
__decorateClass([
|
|
251
|
-
property()
|
|
252
|
-
], DialogWrapper.prototype, "headline", 2);
|
|
253
|
-
__decorateClass([
|
|
254
|
-
property({ type: Boolean })
|
|
255
|
-
], DialogWrapper.prototype, "responsive", 2);
|
|
256
|
-
__decorateClass([
|
|
257
|
-
property({ type: Boolean })
|
|
258
|
-
], DialogWrapper.prototype, "underlay", 2);
|
|
259
|
-
__decorateClass([
|
|
260
|
-
query("sp-dialog")
|
|
261
|
-
], DialogWrapper.prototype, "dialog", 2);
|
|
67
|
+
`}updated(e){e.has("open")&&(this.open?this.dialog.updateComplete.then(()=>{this.dialog.shouldManageTabOrderForScrolling()}):this.tabIndex=0)}async getUpdateComplete(){const e=await super.getUpdateComplete();return await this.transitionPromise,e}}t([s({type:Boolean,reflect:!0})],DialogWrapper.prototype,"error",2),t([s({attribute:"cancel-label"})],DialogWrapper.prototype,"cancelLabel",2),t([s({attribute:"confirm-label"})],DialogWrapper.prototype,"confirmLabel",2),t([s({type:Boolean,reflect:!0})],DialogWrapper.prototype,"dismissable",2),t([s()],DialogWrapper.prototype,"footer",2),t([s()],DialogWrapper.prototype,"hero",2),t([s({attribute:"hero-label"})],DialogWrapper.prototype,"heroLabel",2),t([s({type:Boolean,reflect:!0,attribute:"no-divider"})],DialogWrapper.prototype,"noDivider",2),t([s({type:Boolean,reflect:!0})],DialogWrapper.prototype,"open",2),t([s({type:String,reflect:!0})],DialogWrapper.prototype,"mode",2),t([s({type:String,reflect:!0})],DialogWrapper.prototype,"size",2),t([s({attribute:"secondary-label"})],DialogWrapper.prototype,"secondaryLabel",2),t([s()],DialogWrapper.prototype,"headline",2),t([s({type:Boolean})],DialogWrapper.prototype,"responsive",2),t([s({type:Boolean})],DialogWrapper.prototype,"underlay",2),t([b("sp-dialog")],DialogWrapper.prototype,"dialog",2);
|
|
262
68
|
//# sourceMappingURL=DialogWrapper.js.map
|
package/src/DialogWrapper.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["DialogWrapper.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport '@spectrum-web-components/underlay/sp-underlay.js';\nimport '@spectrum-web-components/button/sp-button.js';\n\nimport '../sp-dialog.js';\nimport modalWrapperStyles from '@spectrum-web-components/modal/src/modal-wrapper.css.js';\nimport modalStyles from '@spectrum-web-components/modal/src/modal.css.js';\nimport { Dialog } from './Dialog.js';\nimport { FocusVisiblePolyfillMixin } from '@spectrum-web-components/shared';\nimport { firstFocusableIn } from '@spectrum-web-components/shared/src/first-focusable-in.js';\n\n/**\n * @element sp-dialog-wrapper\n *\n * @slot - content for the dialog\n * @fires secondary - Announces that the \"secondary\" button has been clicked.\n * @fires cancel - Announces that the \"cancel\" button has been clicked.\n * @fires confirm - Announces that the \"confirm\" button has been clicked.\n * @fires close - Announces that the dialog has been closed.\n */\nexport class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {\n public static override get styles(): CSSResultArray {\n return [modalWrapperStyles, modalStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n public error = false;\n\n @property({ attribute: 'cancel-label' })\n public cancelLabel = '';\n\n @property({ attribute: 'confirm-label' })\n public confirmLabel = '';\n\n @property({ type: Boolean, reflect: true })\n public dismissable = false;\n\n @property()\n public footer = '';\n\n @property()\n public hero = '';\n\n @property({ attribute: 'hero-label' })\n public heroLabel = '';\n\n @property({ type: Boolean, reflect: true, attribute: 'no-divider' })\n public noDivider = false;\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String, reflect: true })\n public mode?: 'fullscreen' | 'fullscreenTakeover';\n\n @property({ type: String, reflect: true })\n public size?: 's' | 'm' | 'l';\n\n @property({ attribute: 'secondary-label' })\n public secondaryLabel = '';\n\n @property()\n public headline = '';\n\n @property({ type: Boolean })\n public responsive = false;\n\n private transitionPromise = Promise.resolve();\n\n private resolveTransitionPromise = (): void => {\n return;\n };\n\n @property({ type: Boolean })\n public underlay = false;\n\n @query('sp-dialog')\n private dialog!: Dialog;\n\n public override focus(): void {\n if (this.shadowRoot) {\n const firstFocusable = firstFocusableIn(this.dialog);\n if (firstFocusable) {\n if (firstFocusable.updateComplete) {\n firstFocusable.updateComplete.then(() =>\n firstFocusable.focus()\n );\n /* c8 ignore next 3 */\n } else {\n firstFocusable.focus();\n }\n this.removeAttribute('tabindex');\n } else {\n this.dialog.focus();\n }\n /* c8 ignore next 3 */\n } else {\n super.focus();\n }\n }\n\n public overlayWillCloseCallback(): boolean {\n if (!this.open) return false;\n this.close();\n return true;\n }\n\n private dismiss(): void {\n if (!this.dismissable) {\n return;\n }\n this.close();\n }\n\n private clickSecondary(): void {\n this.dispatchEvent(\n new Event('secondary', {\n bubbles: true,\n })\n );\n }\n\n private clickCancel(): void {\n this.dispatchEvent(\n new Event('cancel', {\n bubbles: true,\n })\n );\n }\n\n private clickConfirm(): void {\n this.dispatchEvent(\n new Event('confirm', {\n bubbles: true,\n })\n );\n }\n\n protected handleClose(event: Event): void {\n event.stopPropagation();\n this.close();\n }\n\n public close(): void {\n this.open = false;\n }\n\n private dispatchClosed(): void {\n this.dispatchEvent(\n new Event('close', {\n bubbles: true,\n })\n );\n }\n\n protected handleUnderlayTransitionend(event: TransitionEvent): void {\n if (!this.open && event.propertyName === 'visibility') {\n this.dispatchClosed();\n this.resolveTransitionPromise();\n }\n }\n\n protected handleModalTransitionend(): void {\n if (this.open || !this.underlay) {\n this.resolveTransitionPromise();\n if (!this.open) {\n this.dispatchClosed();\n }\n }\n }\n\n protected override update(changes: PropertyValues<this>): void {\n if (changes.has('open') && changes.get('open') !== undefined) {\n this.transitionPromise = new Promise(\n (res) => (this.resolveTransitionPromise = res)\n );\n }\n super.update(changes);\n }\n\n protected override render(): TemplateResult {\n return html`\n ${this.underlay\n ? html`\n <sp-underlay\n ?open=${this.open}\n @click=${this.dismiss}\n @transitionend=${this.handleUnderlayTransitionend}\n ></sp-underlay>\n `\n : html``}\n <div\n class=\"modal ${this.mode}\"\n @transitionend=${this.handleModalTransitionend}\n >\n <sp-dialog\n ?dismissable=${this.dismissable}\n ?no-divider=${this.noDivider}\n ?error=${this.error}\n mode=${ifDefined(this.mode ? this.mode : undefined)}\n size=${ifDefined(this.size ? this.size : undefined)}\n @close=${this.handleClose}\n >\n ${this.hero\n ? html`\n <img\n src=\"${this.hero}\"\n slot=\"hero\"\n aria-hidden=${ifDefined(\n this.heroLabel ? undefined : 'true'\n )}\n alt=${ifDefined(\n this.heroLabel\n ? this.heroLabel\n : undefined\n )}\n />\n `\n : html``}\n ${this.headline\n ? html`\n <h2 slot=\"heading\">${this.headline}</h2>\n `\n : html``}\n <slot></slot>\n ${this.footer\n ? html`\n <div slot=\"footer\">${this.footer}</div>\n `\n : html``}\n ${this.secondaryLabel\n ? html`\n <sp-button\n variant=\"primary\"\n treatment=\"outline\"\n slot=\"button\"\n @click=${this.clickSecondary}\n >\n ${this.secondaryLabel}\n </sp-button>\n `\n : html``}\n ${this.cancelLabel\n ? html`\n <sp-button\n variant=\"secondary\"\n treatment=\"outline\"\n slot=\"button\"\n @click=${this.clickCancel}\n >\n ${this.cancelLabel}\n </sp-button>\n `\n : html``}\n ${this.confirmLabel\n ? html`\n <sp-button\n variant=\"accent\"\n slot=\"button\"\n @click=${this.clickConfirm}\n >\n ${this.confirmLabel}\n </sp-button>\n `\n : html``}\n </sp-dialog>\n </div>\n `;\n }\n\n protected override updated(changes: PropertyValues<this>): void {\n if (changes.has('open')) {\n if (this.open) {\n this.dialog.updateComplete.then(() => {\n this.dialog.shouldManageTabOrderForScrolling();\n });\n } else {\n this.tabIndex = 0;\n }\n }\n }\n\n /**\n * Bind the open/close transition into the update complete lifecycle so\n * that the overlay system can wait for it to be \"visibly ready\" before\n * attempting to throw focus into the content contained herein. Not\n * waiting for this can cause small amounts of page scroll to happen\n * while opening the Tray when focusable content is included: e.g. Menu\n * elements whose selected Menu Item is not the first Menu Item.\n */\n protected override async getUpdateComplete(): Promise<boolean> {\n const complete = (await super.getUpdateComplete()) as boolean;\n await this.transitionPromise;\n return complete;\n }\n}\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\n\nimport '@spectrum-web-components/underlay/sp-underlay.js';\nimport '@spectrum-web-components/button/sp-button.js';\n\nimport '../sp-dialog.js';\nimport modalWrapperStyles from '@spectrum-web-components/modal/src/modal-wrapper.css.js';\nimport modalStyles from '@spectrum-web-components/modal/src/modal.css.js';\nimport { Dialog } from './Dialog.js';\nimport { FocusVisiblePolyfillMixin } from '@spectrum-web-components/shared';\nimport { firstFocusableIn } from '@spectrum-web-components/shared/src/first-focusable-in.js';\n\n/**\n * @element sp-dialog-wrapper\n *\n * @slot - content for the dialog\n * @fires secondary - Announces that the \"secondary\" button has been clicked.\n * @fires cancel - Announces that the \"cancel\" button has been clicked.\n * @fires confirm - Announces that the \"confirm\" button has been clicked.\n * @fires close - Announces that the dialog has been closed.\n */\nexport class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {\n public static override get styles(): CSSResultArray {\n return [modalWrapperStyles, modalStyles];\n }\n\n @property({ type: Boolean, reflect: true })\n public error = false;\n\n @property({ attribute: 'cancel-label' })\n public cancelLabel = '';\n\n @property({ attribute: 'confirm-label' })\n public confirmLabel = '';\n\n @property({ type: Boolean, reflect: true })\n public dismissable = false;\n\n @property()\n public footer = '';\n\n @property()\n public hero = '';\n\n @property({ attribute: 'hero-label' })\n public heroLabel = '';\n\n @property({ type: Boolean, reflect: true, attribute: 'no-divider' })\n public noDivider = false;\n\n @property({ type: Boolean, reflect: true })\n public open = false;\n\n @property({ type: String, reflect: true })\n public mode?: 'fullscreen' | 'fullscreenTakeover';\n\n @property({ type: String, reflect: true })\n public size?: 's' | 'm' | 'l';\n\n @property({ attribute: 'secondary-label' })\n public secondaryLabel = '';\n\n @property()\n public headline = '';\n\n /**\n * When set to true, fills screens smaller than 350px high and 400px wide with the full dialog.\n */\n @property({ type: Boolean })\n public responsive = false;\n\n private transitionPromise = Promise.resolve();\n\n private resolveTransitionPromise = (): void => {\n return;\n };\n\n @property({ type: Boolean })\n public underlay = false;\n\n @query('sp-dialog')\n private dialog!: Dialog;\n\n public override focus(): void {\n if (this.shadowRoot) {\n const firstFocusable = firstFocusableIn(this.dialog);\n if (firstFocusable) {\n if (firstFocusable.updateComplete) {\n firstFocusable.updateComplete.then(() =>\n firstFocusable.focus()\n );\n /* c8 ignore next 3 */\n } else {\n firstFocusable.focus();\n }\n this.removeAttribute('tabindex');\n } else {\n this.dialog.focus();\n }\n /* c8 ignore next 3 */\n } else {\n super.focus();\n }\n }\n\n public overlayWillCloseCallback(): boolean {\n if (!this.open) return false;\n this.close();\n return true;\n }\n\n private dismiss(): void {\n if (!this.dismissable) {\n return;\n }\n this.close();\n }\n\n private clickSecondary(): void {\n this.dispatchEvent(\n new Event('secondary', {\n bubbles: true,\n })\n );\n }\n\n private clickCancel(): void {\n this.dispatchEvent(\n new Event('cancel', {\n bubbles: true,\n })\n );\n }\n\n private clickConfirm(): void {\n this.dispatchEvent(\n new Event('confirm', {\n bubbles: true,\n })\n );\n }\n\n protected handleClose(event: Event): void {\n event.stopPropagation();\n this.close();\n }\n\n public close(): void {\n this.open = false;\n }\n\n private dispatchClosed(): void {\n this.dispatchEvent(\n new Event('close', {\n bubbles: true,\n })\n );\n }\n\n protected handleUnderlayTransitionend(event: TransitionEvent): void {\n if (!this.open && event.propertyName === 'visibility') {\n this.dispatchClosed();\n this.resolveTransitionPromise();\n }\n }\n\n protected handleModalTransitionend(): void {\n if (this.open || !this.underlay) {\n this.resolveTransitionPromise();\n if (!this.open) {\n this.dispatchClosed();\n }\n }\n }\n\n protected override update(changes: PropertyValues<this>): void {\n if (changes.has('open') && changes.get('open') !== undefined) {\n this.transitionPromise = new Promise(\n (res) => (this.resolveTransitionPromise = res)\n );\n }\n super.update(changes);\n }\n\n protected override render(): TemplateResult {\n return html`\n ${this.underlay\n ? html`\n <sp-underlay\n ?open=${this.open}\n @click=${this.dismiss}\n @transitionend=${this.handleUnderlayTransitionend}\n ></sp-underlay>\n `\n : html``}\n <div\n class=\"modal ${this.mode}\"\n @transitionend=${this.handleModalTransitionend}\n >\n <sp-dialog\n ?dismissable=${this.dismissable}\n ?no-divider=${this.noDivider}\n ?error=${this.error}\n mode=${ifDefined(this.mode ? this.mode : undefined)}\n size=${ifDefined(this.size ? this.size : undefined)}\n @close=${this.handleClose}\n >\n ${this.hero\n ? html`\n <img\n src=\"${this.hero}\"\n slot=\"hero\"\n aria-hidden=${ifDefined(\n this.heroLabel ? undefined : 'true'\n )}\n alt=${ifDefined(\n this.heroLabel\n ? this.heroLabel\n : undefined\n )}\n />\n `\n : html``}\n ${this.headline\n ? html`\n <h2 slot=\"heading\">${this.headline}</h2>\n `\n : html``}\n <slot></slot>\n ${this.footer\n ? html`\n <div slot=\"footer\">${this.footer}</div>\n `\n : html``}\n ${this.secondaryLabel\n ? html`\n <sp-button\n variant=\"primary\"\n treatment=\"outline\"\n slot=\"button\"\n @click=${this.clickSecondary}\n >\n ${this.secondaryLabel}\n </sp-button>\n `\n : html``}\n ${this.cancelLabel\n ? html`\n <sp-button\n variant=\"secondary\"\n treatment=\"outline\"\n slot=\"button\"\n @click=${this.clickCancel}\n >\n ${this.cancelLabel}\n </sp-button>\n `\n : html``}\n ${this.confirmLabel\n ? html`\n <sp-button\n variant=\"accent\"\n slot=\"button\"\n @click=${this.clickConfirm}\n >\n ${this.confirmLabel}\n </sp-button>\n `\n : html``}\n </sp-dialog>\n </div>\n `;\n }\n\n protected override updated(changes: PropertyValues<this>): void {\n if (changes.has('open')) {\n if (this.open) {\n this.dialog.updateComplete.then(() => {\n this.dialog.shouldManageTabOrderForScrolling();\n });\n } else {\n this.tabIndex = 0;\n }\n }\n }\n\n /**\n * Bind the open/close transition into the update complete lifecycle so\n * that the overlay system can wait for it to be \"visibly ready\" before\n * attempting to throw focus into the content contained herein. Not\n * waiting for this can cause small amounts of page scroll to happen\n * while opening the Tray when focusable content is included: e.g. Menu\n * elements whose selected Menu Item is not the first Menu Item.\n */\n protected override async getUpdateComplete(): Promise<boolean> {\n const complete = (await super.getUpdateComplete()) as boolean;\n await this.transitionPromise;\n return complete;\n }\n}\n"],
|
|
5
|
+
"mappings": "wMAYA,0EAOA,sFAIA,4EAEA,yDACA,qDAEA,wBACA,uEACA,+DAEA,4EACA,6FAWO,aAAM,qBAAsB,GAA0B,CAAe,CAAE,CAAvE,kCAMI,WAAQ,GAGR,iBAAc,GAGd,kBAAe,GAGf,iBAAc,GAGd,YAAS,GAGT,UAAO,GAGP,eAAY,GAGZ,eAAY,GAGZ,UAAO,GASP,oBAAiB,GAGjB,cAAW,GAMX,gBAAa,GAEZ,uBAAoB,QAAQ,QAAQ,EAEpC,8BAA2B,IAAY,CAE/C,EAGO,cAAW,aAxDS,SAAyB,CAChD,MAAO,CAAC,EAAoB,CAAW,CAC3C,CA2DgB,OAAc,CAC1B,GAAI,KAAK,WAAY,CACjB,KAAM,GAAiB,EAAiB,KAAK,MAAM,EACnD,AAAI,EACA,CAAI,EAAe,eACf,EAAe,eAAe,KAAK,IAC/B,EAAe,MAAM,CACzB,EAGA,EAAe,MAAM,EAEzB,KAAK,gBAAgB,UAAU,GAE/B,KAAK,OAAO,MAAM,CAG1B,KACI,OAAM,MAAM,CAEpB,CAEO,0BAAoC,CACvC,MAAK,MAAK,KACV,MAAK,MAAM,EACJ,IAFgB,EAG3B,CAEQ,SAAgB,CACpB,AAAI,CAAC,KAAK,aAGV,KAAK,MAAM,CACf,CAEQ,gBAAuB,CAC3B,KAAK,cACD,GAAI,OAAM,YAAa,CACnB,QAAS,EACb,CAAC,CACL,CACJ,CAEQ,aAAoB,CACxB,KAAK,cACD,GAAI,OAAM,SAAU,CAChB,QAAS,EACb,CAAC,CACL,CACJ,CAEQ,cAAqB,CACzB,KAAK,cACD,GAAI,OAAM,UAAW,CACjB,QAAS,EACb,CAAC,CACL,CACJ,CAEU,YAAY,EAAoB,CACtC,EAAM,gBAAgB,EACtB,KAAK,MAAM,CACf,CAEO,OAAc,CACjB,KAAK,KAAO,EAChB,CAEQ,gBAAuB,CAC3B,KAAK,cACD,GAAI,OAAM,QAAS,CACf,QAAS,EACb,CAAC,CACL,CACJ,CAEU,4BAA4B,EAA8B,CAChE,AAAI,CAAC,KAAK,MAAQ,EAAM,eAAiB,cACrC,MAAK,eAAe,EACpB,KAAK,yBAAyB,EAEtC,CAEU,0BAAiC,CACvC,AAAI,MAAK,MAAQ,CAAC,KAAK,WACnB,MAAK,yBAAyB,EACzB,KAAK,MACN,KAAK,eAAe,EAGhC,CAEmB,OAAO,EAAqC,CAC3D,AAAI,EAAQ,IAAI,MAAM,GAAK,EAAQ,IAAI,MAAM,IAAM,QAC/C,MAAK,kBAAoB,GAAI,SACzB,AAAC,GAAS,KAAK,yBAA2B,CAC9C,GAEJ,MAAM,OAAO,CAAO,CACxB,CAEmB,QAAyB,CACxC,MAAO;AAAA,cACD,KAAK,SACD;AAAA;AAAA,kCAEgB,KAAK;AAAA,mCACJ,KAAK;AAAA,2CACG,KAAK;AAAA;AAAA,oBAG9B;AAAA;AAAA,+BAEa,KAAK;AAAA,iCACH,KAAK;AAAA;AAAA;AAAA,mCAGH,KAAK;AAAA,kCACN,KAAK;AAAA,6BACV,KAAK;AAAA,2BACP,EAAU,KAAK,KAAO,KAAK,KAAO,MAAS;AAAA,2BAC3C,EAAU,KAAK,KAAO,KAAK,KAAO,MAAS;AAAA,6BACzC,KAAK;AAAA;AAAA,sBAEZ,KAAK,KACD;AAAA;AAAA,yCAEe,KAAK;AAAA;AAAA,gDAEE,EACV,KAAK,UAAY,OAAY,MACjC;AAAA,wCACM,EACF,KAAK,UACC,KAAK,UACL,MACV;AAAA;AAAA,4BAGR;AAAA,sBACJ,KAAK,SACD;AAAA,mDACyB,KAAK;AAAA,4BAE9B;AAAA;AAAA,sBAEJ,KAAK,OACD;AAAA,mDACyB,KAAK;AAAA,4BAE9B;AAAA,sBACJ,KAAK,eACD;AAAA;AAAA;AAAA;AAAA;AAAA,2CAKiB,KAAK;AAAA;AAAA,oCAEZ,KAAK;AAAA;AAAA,4BAGf;AAAA,sBACJ,KAAK,YACD;AAAA;AAAA;AAAA;AAAA;AAAA,2CAKiB,KAAK;AAAA;AAAA,oCAEZ,KAAK;AAAA;AAAA,4BAGf;AAAA,sBACJ,KAAK,aACD;AAAA;AAAA;AAAA;AAAA,2CAIiB,KAAK;AAAA;AAAA,oCAEZ,KAAK;AAAA;AAAA,4BAGf;AAAA;AAAA;AAAA,SAItB,CAEmB,QAAQ,EAAqC,CAC5D,AAAI,EAAQ,IAAI,MAAM,GAClB,CAAI,KAAK,KACL,KAAK,OAAO,eAAe,KAAK,IAAM,CAClC,KAAK,OAAO,iCAAiC,CACjD,CAAC,EAED,KAAK,SAAW,EAG5B,MAUyB,oBAAsC,CAC3D,KAAM,GAAY,KAAM,OAAM,kBAAkB,EAChD,YAAM,MAAK,kBACJ,CACX,CACJ,CAhRW,GADP,AAAC,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GACnC,AANJ,cAMI,qBAGA,GADP,AAAC,EAAS,CAAE,UAAW,cAAe,CAAC,GAChC,AATJ,cASI,2BAGA,GADP,AAAC,EAAS,CAAE,UAAW,eAAgB,CAAC,GACjC,AAZJ,cAYI,4BAGA,GADP,AAAC,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GACnC,AAfJ,cAeI,2BAGA,GADP,AAAC,EAAS,GACH,AAlBJ,cAkBI,sBAGA,GADP,AAAC,EAAS,GACH,AArBJ,cAqBI,oBAGA,GADP,AAAC,EAAS,CAAE,UAAW,YAAa,CAAC,GAC9B,AAxBJ,cAwBI,yBAGA,GADP,AAAC,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,YAAa,CAAC,GAC5D,AA3BJ,cA2BI,yBAGA,GADP,AAAC,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GACnC,AA9BJ,cA8BI,oBAGA,GADP,AAAC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAClC,AAjCJ,cAiCI,oBAGA,GADP,AAAC,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAClC,AApCJ,cAoCI,oBAGA,GADP,AAAC,EAAS,CAAE,UAAW,iBAAkB,CAAC,GACnC,AAvCJ,cAuCI,8BAGA,GADP,AAAC,EAAS,GACH,AA1CJ,cA0CI,wBAMA,GADP,AAAC,EAAS,CAAE,KAAM,OAAQ,CAAC,GACpB,AAhDJ,cAgDI,0BASA,GADP,AAAC,EAAS,CAAE,KAAM,OAAQ,CAAC,GACpB,AAzDJ,cAyDI,wBAGC,GADR,AAAC,EAAM,WAAW,GACV,AA5DL,cA4DK",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/dialog.css.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const styles = css`
|
|
1
|
+
import{css as o}from"@spectrum-web-components/base";const e=o`
|
|
3
2
|
:host{--spectrum-dialog-fullscreen-header-text-size:28px;--spectrum-dialog-confirm-small-width:400px;--spectrum-dialog-confirm-medium-width:480px;--spectrum-dialog-confirm-large-width:640px;--spectrum-dialog-error-width:var(--spectrum-dialog-confirm-medium-width);--spectrum-dialog-confirm-hero-height:var(
|
|
4
3
|
--spectrum-global-dimension-size-1600
|
|
5
4
|
);--spectrum-dialog-confirm-description-padding:var(
|
|
@@ -94,6 +93,5 @@ var(--spectrum-global-dimension-size-25)
|
|
|
94
93
|
)}.content{overflow:hidden}.footer{color:var(
|
|
95
94
|
--spectrum-dialog-confirm-description-text-color,var(--spectrum-global-color-gray-800)
|
|
96
95
|
)}.content[tabindex]{overflow:auto}::slotted(img[slot=hero]){height:auto;width:100%}
|
|
97
|
-
`;
|
|
98
|
-
export default styles;
|
|
96
|
+
`;export default e;
|
|
99
97
|
//# sourceMappingURL=dialog.css.js.map
|
package/src/dialog.css.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["dialog.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-dialog-fullscreen-header-text-size:28px;--spectrum-dialog-confirm-small-width:400px;--spectrum-dialog-confirm-medium-width:480px;--spectrum-dialog-confirm-large-width:640px;--spectrum-dialog-error-width:var(--spectrum-dialog-confirm-medium-width);--spectrum-dialog-confirm-hero-height:var(\n--spectrum-global-dimension-size-1600\n);--spectrum-dialog-confirm-description-padding:var(\n--spectrum-global-dimension-size-25\n);--spectrum-dialog-confirm-description-margin:calc(var(--spectrum-global-dimension-size-25)*-1);--spectrum-dialog-confirm-footer-padding-top:var(\n--spectrum-global-dimension-static-size-500,40px\n);--spectrum-dialog-confirm-gap-size:var(\n--spectrum-global-dimension-size-200\n);--spectrum-dialog-confirm-buttongroup-padding-top:var(\n--spectrum-global-dimension-static-size-500,40px\n);--spectrum-dialog-confirm-close-button-size:var(\n--spectrum-global-dimension-size-400\n);--spectrum-dialog-confirm-close-button-padding:calc(26px - var(--spectrum-global-dimension-size-175));--spectrum-dialog-confirm-divider-height:var(\n--spectrum-global-dimension-static-size-25,2px\n)}:host{box-sizing:border-box;display:flex;max-height:inherit;max-width:100%;min-width:var(\n--spectrum-dialog-confirm-min-width,var(--spectrum-global-dimension-static-size-3600)\n);outline:none;width:-moz-fit-content;width:fit-content}:host([size=s]){width:var(\n--spectrum-dialog-confirm-small-width\n)}:host([size=m]){width:var(\n--spectrum-dialog-confirm-medium-width\n)}:host([size=l]){width:var(\n--spectrum-dialog-confirm-large-width\n)}::slotted([slot=hero]){background-position:50%;background-size:cover;border-top-left-radius:var(\n--spectrum-dialog-confirm-border-radius,var(--spectrum-alias-component-border-radius)\n);border-top-right-radius:var(\n--spectrum-dialog-confirm-border-radius,var(--spectrum-alias-component-border-radius)\n);grid-area:hero;height:var(--spectrum-dialog-confirm-hero-height);overflow:hidden}.grid{display:grid;grid-template-areas:\"hero hero hero hero hero hero\" \". . . . . .\" \". heading header header typeIcon .\" \". divider divider divider divider .\" \". content content content content .\" \". footer footer buttonGroup buttonGroup .\" \". . . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) auto 1fr auto minmax(0,auto) var(--spectrum-dialog-confirm-padding);grid-template-rows:auto var(--spectrum-dialog-confirm-padding) auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n);width:100%}:host([dir=ltr]) ::slotted([slot=heading]){padding-right:var(\n--spectrum-dialog-confirm-gap-size\n)}:host([dir=rtl]) ::slotted([slot=heading]){padding-left:var(\n--spectrum-dialog-confirm-gap-size\n)}::slotted([slot=heading]){font-size:var(--spectrum-dialog-confirm-title-text-size);font-weight:var(\n--spectrum-dialog-confirm-title-text-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);grid-area:heading;line-height:var(\n--spectrum-dialog-confirm-title-text-line-height,var(--spectrum-alias-heading-text-line-height)\n);margin:0;outline:none}:host([dir=ltr]) .no-header::slotted([slot=heading]){padding-right:0}:host([dir=rtl]) .no-header::slotted([slot=heading]){padding-left:0}.no-header::slotted([slot=heading]){grid-area:heading-start/heading-start/header-end/header-end}.header{align-items:center;box-sizing:border-box;display:flex;grid-area:header;justify-content:flex-end;outline:none}.type-icon{grid-area:typeIcon}.divider{grid-area:divider;margin-bottom:var(\n--spectrum-dialog-confirm-divider-margin-bottom,var(--spectrum-global-dimension-static-size-200)\n);margin-top:var(\n--spectrum-dialog-confirm-divider-margin-top,var(--spectrum-global-dimension-static-size-150)\n);width:100%}:host([no-divider]) .divider{display:none}:host([no-divider]) ::slotted([slot=heading]){padding-bottom:calc(var(\n--spectrum-dialog-confirm-divider-margin-top,\nvar(--spectrum-global-dimension-static-size-150)\n) + var(\n--spectrum-dialog-confirm-divider-margin-bottom,\nvar(--spectrum-global-dimension-static-size-200)\n) + var(\n--spectrum-dialog-confirm-divider-height,\nvar(--spectrum-global-dimension-size-25)\n))}.content{-webkit-overflow-scrolling:touch;box-sizing:border-box;font-size:var(--spectrum-dialog-confirm-description-text-size);font-weight:var(\n--spectrum-dialog-confirm-description-text-font-weight,var(--spectrum-global-font-weight-regular)\n);grid-area:content;line-height:var(\n--spectrum-dialog-confirm-description-text-line-height,var(--spectrum-alias-component-text-line-height)\n);margin:0 var(--spectrum-dialog-confirm-description-margin);overflow-y:auto;padding:0 var(--spectrum-dialog-confirm-description-padding)}.content,.footer{outline:none}.footer{display:flex;flex-wrap:wrap;grid-area:footer;padding-top:var(--spectrum-dialog-confirm-footer-padding-top)}.footer>.button+.button,.footer>::slotted(*){margin-bottom:0}:host([dir=ltr]) .button-group{padding-left:var(\n--spectrum-dialog-confirm-gap-size\n)}:host([dir=rtl]) .button-group{padding-right:var(\n--spectrum-dialog-confirm-gap-size\n)}.button-group{display:flex;grid-area:buttonGroup;justify-content:flex-end;padding-top:var(--spectrum-dialog-confirm-buttongroup-padding-top)}.button-group.button-group--noFooter{grid-area:footer-start/footer-start/buttonGroup-end/buttonGroup-end}:host([dismissable]) .grid{grid-template-areas:\"hero hero hero hero hero hero hero\" \". . . . . closeButton closeButton\" \". heading header header typeIcon closeButton closeButton\" \". divider divider divider divider divider .\" \". content content content content content .\" \". footer footer buttonGroup buttonGroup buttonGroup .\" \". . . . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) auto 1fr auto minmax(0,auto) minmax(0,var(--spectrum-dialog-confirm-close-button-size)) var(\n--spectrum-dialog-confirm-padding\n);grid-template-rows:auto var(--spectrum-dialog-confirm-padding) auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n)}:host([dismissable]) .grid .button-group{display:none}:host([dismissable]) .grid .footer{grid-area:footer/footer/buttonGroup/buttonGroup}:host([dir=ltr]) .close-button{margin-right:var(\n--spectrum-dialog-confirm-close-button-padding\n)}:host([dir=rtl]) .close-button{margin-left:var(\n--spectrum-dialog-confirm-close-button-padding\n)}.close-button{align-self:start;grid-area:closeButton;justify-self:end;margin-top:var(--spectrum-dialog-confirm-close-button-padding)}:host([error]){width:var(\n--spectrum-dialog-error-width,90%\n)}:host([mode=fullscreen]){height:100%;width:100%}:host([mode=fullscreenTakeover]){border-radius:0;height:100%;width:100%}:host([mode=fullscreenTakeover]),:host([mode=fullscreen]){max-height:none;max-width:none}:host([mode=fullscreenTakeover]) .grid,:host([mode=fullscreen]) .grid{display:grid;grid-template-areas:\". . . . .\" \". heading header buttonGroup .\" \". divider divider divider .\" \". content content content .\" \". . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) 1fr auto auto var(\n--spectrum-dialog-confirm-padding\n);grid-template-rows:var(--spectrum-dialog-confirm-padding) auto auto 1fr var(\n--spectrum-dialog-confirm-padding\n)}:host([mode=fullscreenTakeover]) ::slotted([slot=heading]),:host([mode=fullscreen]) ::slotted([slot=heading]){font-size:var(\n--spectrum-dialog-fullscreen-header-text-size\n)}:host([mode=fullscreenTakeover]) .content,:host([mode=fullscreen]) .content{max-height:none}:host([mode=fullscreenTakeover]) .button-group,:host([mode=fullscreenTakeover]) .footer,:host([mode=fullscreen]) .button-group,:host([mode=fullscreen]) .footer{padding-top:0}:host([mode=fullscreenTakeover]) .footer,:host([mode=fullscreen]) .footer{display:none}:host([mode=fullscreenTakeover]) .button-group,:host([mode=fullscreen]) .button-group{align-self:start;grid-area:buttonGroup}@media screen and (max-width:700px){.grid{grid-template-areas:\"hero hero hero hero hero hero\" \". . . . . .\" \". heading heading heading typeIcon .\" \". header header header header .\" \". divider divider divider divider .\" \". content content content content .\" \". footer footer buttonGroup buttonGroup .\" \". . . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) auto 1fr auto minmax(0,auto) var(--spectrum-dialog-confirm-padding);grid-template-rows:auto var(--spectrum-dialog-confirm-padding) auto auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n)}:host([dismissable]) .grid{grid-template-areas:\"hero hero hero hero hero hero hero\" \". . . . . closeButton closeButton\" \". heading heading heading typeIcon closeButton closeButton\" \". header header header header header .\" \". divider divider divider divider divider .\" \". content content content content content .\" \". footer footer buttonGroup buttonGroup buttonGroup .\" \". . . . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) auto 1fr auto minmax(0,auto) minmax(0,var(--spectrum-dialog-confirm-close-button-size)) var(\n--spectrum-dialog-confirm-padding\n);grid-template-rows:auto var(--spectrum-dialog-confirm-padding) auto auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n)}.header{justify-content:flex-start}:host([mode=fullscreenTakeover]) .grid,:host([mode=fullscreen]) .grid{display:grid;grid-template-areas:\". . .\" \". heading .\" \". header .\" \". divider .\" \". content .\" \". buttonGroup .\" \". . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) 1fr var(\n--spectrum-dialog-confirm-padding\n);grid-template-rows:var(--spectrum-dialog-confirm-padding) auto auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n)}:host([mode=fullscreenTakeover]) .button-group,:host([mode=fullscreen]) .button-group{padding-top:var(--spectrum-dialog-confirm-buttongroup-padding-top)}:host([mode=fullscreenTakeover]) ::slotted([slot=heading]),:host([mode=fullscreen]) ::slotted([slot=heading]){font-size:var(--spectrum-dialog-confirm-title-text-size)}}@media (forced-colors:active){:host{border:solid}}::slotted([slot=heading]){color:var(\n--spectrum-dialog-confirm-title-text-color,var(--spectrum-alias-heading-text-color)\n)}.content,.footer{color:var(\n--spectrum-dialog-confirm-description-text-color,var(--spectrum-global-color-gray-800)\n)}.type-icon{color:var(\n--spectrum-dialog-confirm-icon-color,var(--spectrum-global-color-gray-900)\n)}:host([error]) .type-icon{color:var(\n--spectrum-dialog-error-icon-color,var(--spectrum-semantic-negative-icon-color)\n)}.content{overflow:hidden}.footer{color:var(\n--spectrum-dialog-confirm-description-text-color,var(--spectrum-global-color-gray-800)\n)}.content[tabindex]{overflow:auto}::slotted(img[slot=hero]){height:auto;width:100%}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "AAWA
|
|
5
|
+
"mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgGf,cAAe",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/index.js
CHANGED
package/src/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './Dialog.js';\nexport * from './DialogWrapper.js';\n"],
|
|
5
|
-
"mappings": "AAWA
|
|
5
|
+
"mappings": "AAWA,yBACA",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const styles = css`
|
|
1
|
+
import{css as o}from"@spectrum-web-components/base";const e=o`
|
|
3
2
|
:host{--spectrum-dialog-fullscreen-header-text-size:28px;--spectrum-dialog-confirm-small-width:400px;--spectrum-dialog-confirm-medium-width:480px;--spectrum-dialog-confirm-large-width:640px;--spectrum-dialog-error-width:var(--spectrum-dialog-confirm-medium-width);--spectrum-dialog-confirm-hero-height:var(
|
|
4
3
|
--spectrum-global-dimension-size-1600
|
|
5
4
|
);--spectrum-dialog-confirm-description-padding:var(
|
|
@@ -92,6 +91,5 @@ var(--spectrum-global-dimension-size-25)
|
|
|
92
91
|
)}:host([error]) .type-icon{color:var(
|
|
93
92
|
--spectrum-dialog-error-icon-color,var(--spectrum-semantic-negative-icon-color)
|
|
94
93
|
)}
|
|
95
|
-
`;
|
|
96
|
-
export default styles;
|
|
94
|
+
`;export default e;
|
|
97
95
|
//# sourceMappingURL=spectrum-dialog.css.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-dialog.css.ts"],
|
|
4
4
|
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-dialog-fullscreen-header-text-size:28px;--spectrum-dialog-confirm-small-width:400px;--spectrum-dialog-confirm-medium-width:480px;--spectrum-dialog-confirm-large-width:640px;--spectrum-dialog-error-width:var(--spectrum-dialog-confirm-medium-width);--spectrum-dialog-confirm-hero-height:var(\n--spectrum-global-dimension-size-1600\n);--spectrum-dialog-confirm-description-padding:var(\n--spectrum-global-dimension-size-25\n);--spectrum-dialog-confirm-description-margin:calc(var(--spectrum-global-dimension-size-25)*-1);--spectrum-dialog-confirm-footer-padding-top:var(\n--spectrum-global-dimension-static-size-500,40px\n);--spectrum-dialog-confirm-gap-size:var(\n--spectrum-global-dimension-size-200\n);--spectrum-dialog-confirm-buttongroup-padding-top:var(\n--spectrum-global-dimension-static-size-500,40px\n);--spectrum-dialog-confirm-close-button-size:var(\n--spectrum-global-dimension-size-400\n);--spectrum-dialog-confirm-close-button-padding:calc(26px - var(--spectrum-global-dimension-size-175));--spectrum-dialog-confirm-divider-height:var(\n--spectrum-global-dimension-static-size-25,2px\n)}:host{box-sizing:border-box;display:flex;max-height:inherit;max-width:100%;min-width:var(\n--spectrum-dialog-confirm-min-width,var(--spectrum-global-dimension-static-size-3600)\n);outline:none;width:-moz-fit-content;width:fit-content}:host([size=s]){width:var(\n--spectrum-dialog-confirm-small-width\n)}:host([size=m]){width:var(\n--spectrum-dialog-confirm-medium-width\n)}:host([size=l]){width:var(\n--spectrum-dialog-confirm-large-width\n)}::slotted([slot=hero]){background-position:50%;background-size:cover;border-top-left-radius:var(\n--spectrum-dialog-confirm-border-radius,var(--spectrum-alias-component-border-radius)\n);border-top-right-radius:var(\n--spectrum-dialog-confirm-border-radius,var(--spectrum-alias-component-border-radius)\n);grid-area:hero;height:var(--spectrum-dialog-confirm-hero-height);overflow:hidden}.grid{display:grid;grid-template-areas:\"hero hero hero hero hero hero\" \". . . . . .\" \". heading header header typeIcon .\" \". divider divider divider divider .\" \". content content content content .\" \". footer footer buttonGroup buttonGroup .\" \". . . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) auto 1fr auto minmax(0,auto) var(--spectrum-dialog-confirm-padding);grid-template-rows:auto var(--spectrum-dialog-confirm-padding) auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n);width:100%}:host([dir=ltr]) ::slotted([slot=heading]){padding-right:var(\n--spectrum-dialog-confirm-gap-size\n)}:host([dir=rtl]) ::slotted([slot=heading]){padding-left:var(\n--spectrum-dialog-confirm-gap-size\n)}::slotted([slot=heading]){font-size:var(--spectrum-dialog-confirm-title-text-size);font-weight:var(\n--spectrum-dialog-confirm-title-text-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);grid-area:heading;line-height:var(\n--spectrum-dialog-confirm-title-text-line-height,var(--spectrum-alias-heading-text-line-height)\n);margin:0;outline:none}:host([dir=ltr]) .no-header::slotted([slot=heading]){padding-right:0}:host([dir=rtl]) .no-header::slotted([slot=heading]){padding-left:0}.no-header::slotted([slot=heading]){grid-area:heading-start/heading-start/header-end/header-end}.header{align-items:center;box-sizing:border-box;display:flex;grid-area:header;justify-content:flex-end;outline:none}.type-icon{grid-area:typeIcon}.divider{grid-area:divider;margin-bottom:var(\n--spectrum-dialog-confirm-divider-margin-bottom,var(--spectrum-global-dimension-static-size-200)\n);margin-top:var(\n--spectrum-dialog-confirm-divider-margin-top,var(--spectrum-global-dimension-static-size-150)\n);width:100%}:host([no-divider]) .divider{display:none}:host([no-divider]) ::slotted([slot=heading]){padding-bottom:calc(var(\n--spectrum-dialog-confirm-divider-margin-top,\nvar(--spectrum-global-dimension-static-size-150)\n) + var(\n--spectrum-dialog-confirm-divider-margin-bottom,\nvar(--spectrum-global-dimension-static-size-200)\n) + var(\n--spectrum-dialog-confirm-divider-height,\nvar(--spectrum-global-dimension-size-25)\n))}.content{-webkit-overflow-scrolling:touch;box-sizing:border-box;font-size:var(--spectrum-dialog-confirm-description-text-size);font-weight:var(\n--spectrum-dialog-confirm-description-text-font-weight,var(--spectrum-global-font-weight-regular)\n);grid-area:content;line-height:var(\n--spectrum-dialog-confirm-description-text-line-height,var(--spectrum-alias-component-text-line-height)\n);margin:0 var(--spectrum-dialog-confirm-description-margin);overflow-y:auto;padding:0 var(--spectrum-dialog-confirm-description-padding)}.content,.footer{outline:none}.footer{display:flex;flex-wrap:wrap;grid-area:footer;padding-top:var(--spectrum-dialog-confirm-footer-padding-top)}.footer>.button+.button,.footer>::slotted(*){margin-bottom:0}:host([dir=ltr]) .button-group{padding-left:var(\n--spectrum-dialog-confirm-gap-size\n)}:host([dir=rtl]) .button-group{padding-right:var(\n--spectrum-dialog-confirm-gap-size\n)}.button-group{display:flex;grid-area:buttonGroup;justify-content:flex-end;padding-top:var(--spectrum-dialog-confirm-buttongroup-padding-top)}.button-group.button-group--noFooter{grid-area:footer-start/footer-start/buttonGroup-end/buttonGroup-end}:host([dismissable]) .grid{grid-template-areas:\"hero hero hero hero hero hero hero\" \". . . . . closeButton closeButton\" \". heading header header typeIcon closeButton closeButton\" \". divider divider divider divider divider .\" \". content content content content content .\" \". footer footer buttonGroup buttonGroup buttonGroup .\" \". . . . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) auto 1fr auto minmax(0,auto) minmax(0,var(--spectrum-dialog-confirm-close-button-size)) var(\n--spectrum-dialog-confirm-padding\n);grid-template-rows:auto var(--spectrum-dialog-confirm-padding) auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n)}:host([dismissable]) .grid .button-group{display:none}:host([dismissable]) .grid .footer{grid-area:footer/footer/buttonGroup/buttonGroup}:host([dir=ltr]) .close-button{margin-right:var(\n--spectrum-dialog-confirm-close-button-padding\n)}:host([dir=rtl]) .close-button{margin-left:var(\n--spectrum-dialog-confirm-close-button-padding\n)}.close-button{align-self:start;grid-area:closeButton;justify-self:end;margin-top:var(--spectrum-dialog-confirm-close-button-padding)}:host([error]){width:var(\n--spectrum-dialog-error-width,90%\n)}:host([mode=fullscreen]){height:100%;width:100%}:host([mode=fullscreenTakeover]){border-radius:0;height:100%;width:100%}:host([mode=fullscreenTakeover]),:host([mode=fullscreen]){max-height:none;max-width:none}:host([mode=fullscreenTakeover]) .grid,:host([mode=fullscreen]) .grid{display:grid;grid-template-areas:\". . . . .\" \". heading header buttonGroup .\" \". divider divider divider .\" \". content content content .\" \". . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) 1fr auto auto var(\n--spectrum-dialog-confirm-padding\n);grid-template-rows:var(--spectrum-dialog-confirm-padding) auto auto 1fr var(\n--spectrum-dialog-confirm-padding\n)}:host([mode=fullscreenTakeover]) ::slotted([slot=heading]),:host([mode=fullscreen]) ::slotted([slot=heading]){font-size:var(\n--spectrum-dialog-fullscreen-header-text-size\n)}:host([mode=fullscreenTakeover]) .content,:host([mode=fullscreen]) .content{max-height:none}:host([mode=fullscreenTakeover]) .button-group,:host([mode=fullscreenTakeover]) .footer,:host([mode=fullscreen]) .button-group,:host([mode=fullscreen]) .footer{padding-top:0}:host([mode=fullscreenTakeover]) .footer,:host([mode=fullscreen]) .footer{display:none}:host([mode=fullscreenTakeover]) .button-group,:host([mode=fullscreen]) .button-group{align-self:start;grid-area:buttonGroup}@media screen and (max-width:700px){.grid{grid-template-areas:\"hero hero hero hero hero hero\" \". . . . . .\" \". heading heading heading typeIcon .\" \". header header header header .\" \". divider divider divider divider .\" \". content content content content .\" \". footer footer buttonGroup buttonGroup .\" \". . . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) auto 1fr auto minmax(0,auto) var(--spectrum-dialog-confirm-padding);grid-template-rows:auto var(--spectrum-dialog-confirm-padding) auto auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n)}:host([dismissable]) .grid{grid-template-areas:\"hero hero hero hero hero hero hero\" \". . . . . closeButton closeButton\" \". heading heading heading typeIcon closeButton closeButton\" \". header header header header header .\" \". divider divider divider divider divider .\" \". content content content content content .\" \". footer footer buttonGroup buttonGroup buttonGroup .\" \". . . . . . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) auto 1fr auto minmax(0,auto) minmax(0,var(--spectrum-dialog-confirm-close-button-size)) var(\n--spectrum-dialog-confirm-padding\n);grid-template-rows:auto var(--spectrum-dialog-confirm-padding) auto auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n)}.header{justify-content:flex-start}:host([mode=fullscreenTakeover]) .grid,:host([mode=fullscreen]) .grid{display:grid;grid-template-areas:\". . .\" \". heading .\" \". header .\" \". divider .\" \". content .\" \". buttonGroup .\" \". . .\";grid-template-columns:var(--spectrum-dialog-confirm-padding) 1fr var(\n--spectrum-dialog-confirm-padding\n);grid-template-rows:var(--spectrum-dialog-confirm-padding) auto auto auto 1fr auto var(\n--spectrum-dialog-confirm-padding\n)}:host([mode=fullscreenTakeover]) .button-group,:host([mode=fullscreen]) .button-group{padding-top:var(--spectrum-dialog-confirm-buttongroup-padding-top)}:host([mode=fullscreenTakeover]) ::slotted([slot=heading]),:host([mode=fullscreen]) ::slotted([slot=heading]){font-size:var(--spectrum-dialog-confirm-title-text-size)}}@media (forced-colors:active){:host{border:solid}}::slotted([slot=heading]){color:var(\n--spectrum-dialog-confirm-title-text-color,var(--spectrum-alias-heading-text-color)\n)}.content,.footer{color:var(\n--spectrum-dialog-confirm-description-text-color,var(--spectrum-global-color-gray-800)\n)}.type-icon{color:var(\n--spectrum-dialog-confirm-icon-color,var(--spectrum-global-color-gray-900)\n)}:host([error]) .type-icon{color:var(\n--spectrum-dialog-error-icon-color,var(--spectrum-semantic-negative-icon-color)\n)}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "AAWA
|
|
5
|
+
"mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA8Ff,cAAe",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|