@spectrum-web-components/modal 0.41.0 → 0.41.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/src/modal-wrapper.css.dev.js +1 -3
- package/src/modal-wrapper.css.dev.js.map +2 -2
- package/src/modal-wrapper.css.js +1 -3
- package/src/modal-wrapper.css.js.map +2 -2
- package/src/modal.css.dev.js +1 -63
- package/src/modal.css.dev.js.map +2 -2
- package/src/modal.css.js +1 -63
- package/src/modal.css.js.map +2 -2
- package/src/spectrum-modal-wrapper.css.dev.js +1 -3
- package/src/spectrum-modal-wrapper.css.dev.js.map +2 -2
- package/src/spectrum-modal-wrapper.css.js +1 -3
- package/src/spectrum-modal-wrapper.css.js.map +2 -2
- package/src/spectrum-modal.css.dev.js +1 -61
- package/src/spectrum-modal.css.dev.js.map +2 -2
- package/src/spectrum-modal.css.js +3 -63
- package/src/spectrum-modal.css.js.map +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spectrum-web-components/modal",
|
3
|
-
"version": "0.41.
|
3
|
+
"version": "0.41.2",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -43,10 +43,10 @@
|
|
43
43
|
"lit-html"
|
44
44
|
],
|
45
45
|
"dependencies": {
|
46
|
-
"@spectrum-web-components/base": "^0.41.
|
46
|
+
"@spectrum-web-components/base": "^0.41.2"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
|
-
"@spectrum-css/modal": "^4.2.
|
49
|
+
"@spectrum-css/modal": "^4.2.4"
|
50
50
|
},
|
51
51
|
"types": "./src/index.d.ts",
|
52
52
|
"customElements": "custom-elements.json",
|
@@ -54,5 +54,5 @@
|
|
54
54
|
"./sp-*.js",
|
55
55
|
"./**/*.dev.js"
|
56
56
|
],
|
57
|
-
"gitHead": "
|
57
|
+
"gitHead": "78c3f16b08c9133c9e5ca88d0c9fef5ea7d2ab87"
|
58
58
|
}
|
@@ -1,9 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
3
3
|
const styles = css`
|
4
|
-
:host{
|
5
|
-
--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration)
|
6
|
-
);visibility:hidden;z-index:2}:host([open]){visibility:visible}@media only screen and (max-device-height:350px),only screen and (max-device-width:400px){:host([responsive]){border-radius:0;inline-size:100%;height:100%;max-inline-size:100%;max-height:100%}:host([responsive]){margin-top:0}}
|
4
|
+
:host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}}
|
7
5
|
`;
|
8
6
|
export default styles;
|
9
7
|
//# sourceMappingURL=modal-wrapper.css.dev.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["modal-wrapper.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}}\n`;\nexport default styles;"],
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
package/src/modal-wrapper.css.js
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
"use strict";import{css as i}from"@spectrum-web-components/base";const e=i`
|
2
|
-
:host{
|
3
|
-
--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration)
|
4
|
-
);visibility:hidden;z-index:2}:host([open]){visibility:visible}@media only screen and (max-device-height:350px),only screen and (max-device-width:400px){:host([responsive]){border-radius:0;inline-size:100%;height:100%;max-inline-size:100%;max-height:100%}:host([responsive]){margin-top:0}}
|
2
|
+
:host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}}
|
5
3
|
`;export default e;
|
6
4
|
//# sourceMappingURL=modal-wrapper.css.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["modal-wrapper.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
6
6
|
"names": ["css", "styles"]
|
7
7
|
}
|
package/src/modal.css.dev.js
CHANGED
@@ -1,69 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
3
3
|
const styles = css`
|
4
|
-
.modal{opacity:0;pointer-events:none;transition:transform var(
|
5
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
6
|
-
) ease-in-out,opacity var(
|
7
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
8
|
-
) ease-in-out,visibility 0s linear var(
|
9
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
10
|
-
);visibility:hidden}:host([open]) .modal{opacity:1;pointer-events:auto;transition-delay:var(
|
11
|
-
--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s)
|
12
|
-
);visibility:visible}:host{--spectrum-modal-confirm-exit-animation-delay:var(
|
13
|
-
--spectrum-animation-duration-0
|
14
|
-
);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(
|
15
|
-
--spectrum-animation-duration-100
|
16
|
-
);--spectrum-modal-confirm-entry-animation-duration:var(
|
17
|
-
--spectrum-animation-duration-500
|
18
|
-
);--spectrum-modal-confirm-entry-animation-delay:var(
|
19
|
-
--spectrum-animation-duration-200
|
20
|
-
);--spectrum-modal-transition-animation-duration:var(
|
21
|
-
--spectrum-animation-duration-100
|
22
|
-
)}.modal{background:var(
|
23
|
-
--mod-modal-background-color,var(--spectrum-modal-background-color)
|
24
|
-
);border-radius:var(
|
25
|
-
--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius)
|
26
|
-
);max-block-size:var(
|
27
|
-
--mod-modal-max-height,var(--spectrum-modal-max-height)
|
28
|
-
);max-inline-size:var(
|
29
|
-
--mod-modal-max-width,var(--spectrum-modal-max-width)
|
30
|
-
);outline:none;overflow:hidden;pointer-events:auto;transform:translateY(var(
|
31
|
-
--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)
|
32
|
-
));transition:opacity var(
|
33
|
-
--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)
|
34
|
-
) var(--spectrum-animation-ease-in) var(
|
35
|
-
--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)
|
36
|
-
),visibility 0s linear calc(var(
|
37
|
-
--mod-modal-confirm-exit-animation-delay,
|
38
|
-
var(--spectrum-modal-confirm-exit-animation-delay)
|
39
|
-
) + var(
|
40
|
-
--mod-modal-confirm-exit-animation-duration,
|
41
|
-
var(--spectrum-modal-confirm-exit-animation-duration)
|
42
|
-
)),transform 0s linear calc(var(
|
43
|
-
--mod-modal-confirm-exit-animation-delay,
|
44
|
-
var(--spectrum-modal-confirm-exit-animation-delay)
|
45
|
-
) + var(
|
46
|
-
--mod-modal-confirm-exit-animation-duration,
|
47
|
-
var(--spectrum-modal-confirm-exit-animation-duration)
|
48
|
-
));z-index:2}:host([open]) .modal{transform:translateY(0);transition:transform var(
|
49
|
-
--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration)
|
50
|
-
) var(--spectrum-animation-ease-out) var(
|
51
|
-
--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)
|
52
|
-
),opacity var(
|
53
|
-
--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration)
|
54
|
-
) var(--spectrum-animation-ease-out) var(
|
55
|
-
--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)
|
56
|
-
)}@media only screen and (max-device-height:350px),only screen and (max-device-width:400px){:host([responsive]) .modal{border-radius:0;inline-size:100%;height:100%;max-inline-size:100%;max-height:100%}}.fullscreen{inset-block-end:var(
|
57
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
58
|
-
);inset-block-start:var(
|
59
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
60
|
-
);inset-inline-end:var(
|
61
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
62
|
-
);inset-inline-start:var(
|
63
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
64
|
-
)}.fullscreen,.fullscreenTakeover{max-inline-size:none;max-height:none;position:fixed}.fullscreenTakeover{border:none;border-radius:0;box-sizing:border-box;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}:host{--spectrum-dialog-confirm-exit-animation-duration:var(--swc-test-duration);--spectrum-dialog-confirm-entry-animation-duration:var(
|
65
|
-
--swc-test-duration
|
66
|
-
);height:100dvh}.modal{overflow:visible}
|
4
|
+
.modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}:host{--spectrum-dialog-confirm-exit-animation-duration:var(--swc-test-duration);--spectrum-dialog-confirm-entry-animation-duration:var(--swc-test-duration);--spectrum-modal-confirm-entry-animation-distance:var(--spectrum-dialog-confirm-entry-animation-distance);height:100dvh}.modal{overflow:visible}
|
67
5
|
`;
|
68
6
|
export default styles;
|
69
7
|
//# sourceMappingURL=modal.css.dev.js.map
|
package/src/modal.css.dev.js.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["modal.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n.modal{
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n .modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}:host{--spectrum-dialog-confirm-exit-animation-duration:var(--swc-test-duration);--spectrum-dialog-confirm-entry-animation-duration:var(--swc-test-duration);--spectrum-modal-confirm-entry-animation-distance:var(--spectrum-dialog-confirm-entry-animation-distance);height:100dvh}.modal{overflow:visible}\n`;\nexport default styles;"],
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
package/src/modal.css.js
CHANGED
@@ -1,66 +1,4 @@
|
|
1
1
|
"use strict";import{css as a}from"@spectrum-web-components/base";const i=a`
|
2
|
-
.modal{opacity:0;pointer-events:none;transition:transform var(
|
3
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
4
|
-
) ease-in-out,opacity var(
|
5
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
6
|
-
) ease-in-out,visibility 0s linear var(
|
7
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
8
|
-
);visibility:hidden}:host([open]) .modal{opacity:1;pointer-events:auto;transition-delay:var(
|
9
|
-
--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s)
|
10
|
-
);visibility:visible}:host{--spectrum-modal-confirm-exit-animation-delay:var(
|
11
|
-
--spectrum-animation-duration-0
|
12
|
-
);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(
|
13
|
-
--spectrum-animation-duration-100
|
14
|
-
);--spectrum-modal-confirm-entry-animation-duration:var(
|
15
|
-
--spectrum-animation-duration-500
|
16
|
-
);--spectrum-modal-confirm-entry-animation-delay:var(
|
17
|
-
--spectrum-animation-duration-200
|
18
|
-
);--spectrum-modal-transition-animation-duration:var(
|
19
|
-
--spectrum-animation-duration-100
|
20
|
-
)}.modal{background:var(
|
21
|
-
--mod-modal-background-color,var(--spectrum-modal-background-color)
|
22
|
-
);border-radius:var(
|
23
|
-
--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius)
|
24
|
-
);max-block-size:var(
|
25
|
-
--mod-modal-max-height,var(--spectrum-modal-max-height)
|
26
|
-
);max-inline-size:var(
|
27
|
-
--mod-modal-max-width,var(--spectrum-modal-max-width)
|
28
|
-
);outline:none;overflow:hidden;pointer-events:auto;transform:translateY(var(
|
29
|
-
--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)
|
30
|
-
));transition:opacity var(
|
31
|
-
--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)
|
32
|
-
) var(--spectrum-animation-ease-in) var(
|
33
|
-
--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)
|
34
|
-
),visibility 0s linear calc(var(
|
35
|
-
--mod-modal-confirm-exit-animation-delay,
|
36
|
-
var(--spectrum-modal-confirm-exit-animation-delay)
|
37
|
-
) + var(
|
38
|
-
--mod-modal-confirm-exit-animation-duration,
|
39
|
-
var(--spectrum-modal-confirm-exit-animation-duration)
|
40
|
-
)),transform 0s linear calc(var(
|
41
|
-
--mod-modal-confirm-exit-animation-delay,
|
42
|
-
var(--spectrum-modal-confirm-exit-animation-delay)
|
43
|
-
) + var(
|
44
|
-
--mod-modal-confirm-exit-animation-duration,
|
45
|
-
var(--spectrum-modal-confirm-exit-animation-duration)
|
46
|
-
));z-index:2}:host([open]) .modal{transform:translateY(0);transition:transform var(
|
47
|
-
--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration)
|
48
|
-
) var(--spectrum-animation-ease-out) var(
|
49
|
-
--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)
|
50
|
-
),opacity var(
|
51
|
-
--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration)
|
52
|
-
) var(--spectrum-animation-ease-out) var(
|
53
|
-
--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)
|
54
|
-
)}@media only screen and (max-device-height:350px),only screen and (max-device-width:400px){:host([responsive]) .modal{border-radius:0;inline-size:100%;height:100%;max-inline-size:100%;max-height:100%}}.fullscreen{inset-block-end:var(
|
55
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
56
|
-
);inset-block-start:var(
|
57
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
58
|
-
);inset-inline-end:var(
|
59
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
60
|
-
);inset-inline-start:var(
|
61
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
62
|
-
)}.fullscreen,.fullscreenTakeover{max-inline-size:none;max-height:none;position:fixed}.fullscreenTakeover{border:none;border-radius:0;box-sizing:border-box;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}:host{--spectrum-dialog-confirm-exit-animation-duration:var(--swc-test-duration);--spectrum-dialog-confirm-entry-animation-duration:var(
|
63
|
-
--swc-test-duration
|
64
|
-
);height:100dvh}.modal{overflow:visible}
|
2
|
+
.modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}:host{--spectrum-dialog-confirm-exit-animation-duration:var(--swc-test-duration);--spectrum-dialog-confirm-entry-animation-duration:var(--swc-test-duration);--spectrum-modal-confirm-entry-animation-distance:var(--spectrum-dialog-confirm-entry-animation-distance);height:100dvh}.modal{overflow:visible}
|
65
3
|
`;export default i;
|
66
4
|
//# sourceMappingURL=modal.css.js.map
|
package/src/modal.css.js.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["modal.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n.modal{
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n .modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}:host{--spectrum-dialog-confirm-exit-animation-duration:var(--swc-test-duration);--spectrum-dialog-confirm-entry-animation-duration:var(--swc-test-duration);--spectrum-modal-confirm-entry-animation-distance:var(--spectrum-dialog-confirm-entry-animation-distance);height:100dvh}.modal{overflow:visible}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
6
6
|
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -1,9 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
3
3
|
const styles = css`
|
4
|
-
:host{
|
5
|
-
--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration)
|
6
|
-
);visibility:hidden;z-index:2}:host([open]){visibility:visible}@media only screen and (max-device-height:350px),only screen and (max-device-width:400px){:host([responsive]){border-radius:0;inline-size:100%;height:100%;max-inline-size:100%;max-height:100%}:host([responsive]){margin-top:0}}
|
4
|
+
:host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}}
|
7
5
|
`;
|
8
6
|
export default styles;
|
9
7
|
//# sourceMappingURL=spectrum-modal-wrapper.css.dev.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-modal-wrapper.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}}\n`;\nexport default styles;"],
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,6 +1,4 @@
|
|
1
1
|
"use strict";import{css as i}from"@spectrum-web-components/base";const e=i`
|
2
|
-
:host{
|
3
|
-
--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration)
|
4
|
-
);visibility:hidden;z-index:2}:host([open]){visibility:visible}@media only screen and (max-device-height:350px),only screen and (max-device-width:400px){:host([responsive]){border-radius:0;inline-size:100%;height:100%;max-inline-size:100%;max-height:100%}:host([responsive]){margin-top:0}}
|
2
|
+
:host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}}
|
5
3
|
`;export default e;
|
6
4
|
//# sourceMappingURL=spectrum-modal-wrapper.css.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-modal-wrapper.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n :host{box-sizing:border-box;visibility:hidden;pointer-events:none;z-index:2;transition:visibility 0s linear var(--mod-modal-transition-animation-duration,var(--spectrum-modal-transition-animation-duration));justify-content:center;align-items:center;block-size:stretch;inline-size:100vw;display:flex;position:fixed;top:0;left:0}:host([open]){visibility:visible}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]){inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%;margin-top:0}}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
6
6
|
"names": ["css", "styles"]
|
7
7
|
}
|
@@ -1,67 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
3
3
|
const styles = css`
|
4
|
-
.modal{opacity:0;pointer-events:none;transition:transform var(
|
5
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
6
|
-
) ease-in-out,opacity var(
|
7
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
8
|
-
) ease-in-out,visibility 0s linear var(
|
9
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
10
|
-
);visibility:hidden}:host([open]) .modal{opacity:1;pointer-events:auto;transition-delay:var(
|
11
|
-
--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s)
|
12
|
-
);visibility:visible}:host{--spectrum-modal-confirm-exit-animation-delay:var(
|
13
|
-
--spectrum-animation-duration-0
|
14
|
-
);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(
|
15
|
-
--spectrum-animation-duration-100
|
16
|
-
);--spectrum-modal-confirm-entry-animation-duration:var(
|
17
|
-
--spectrum-animation-duration-500
|
18
|
-
);--spectrum-modal-confirm-entry-animation-delay:var(
|
19
|
-
--spectrum-animation-duration-200
|
20
|
-
);--spectrum-modal-transition-animation-duration:var(
|
21
|
-
--spectrum-animation-duration-100
|
22
|
-
)}.modal{background:var(
|
23
|
-
--mod-modal-background-color,var(--spectrum-modal-background-color)
|
24
|
-
);border-radius:var(
|
25
|
-
--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius)
|
26
|
-
);max-block-size:var(
|
27
|
-
--mod-modal-max-height,var(--spectrum-modal-max-height)
|
28
|
-
);max-inline-size:var(
|
29
|
-
--mod-modal-max-width,var(--spectrum-modal-max-width)
|
30
|
-
);outline:none;overflow:hidden;pointer-events:auto;transform:translateY(var(
|
31
|
-
--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)
|
32
|
-
));transition:opacity var(
|
33
|
-
--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)
|
34
|
-
) var(--spectrum-animation-ease-in) var(
|
35
|
-
--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)
|
36
|
-
),visibility 0s linear calc(var(
|
37
|
-
--mod-modal-confirm-exit-animation-delay,
|
38
|
-
var(--spectrum-modal-confirm-exit-animation-delay)
|
39
|
-
) + var(
|
40
|
-
--mod-modal-confirm-exit-animation-duration,
|
41
|
-
var(--spectrum-modal-confirm-exit-animation-duration)
|
42
|
-
)),transform 0s linear calc(var(
|
43
|
-
--mod-modal-confirm-exit-animation-delay,
|
44
|
-
var(--spectrum-modal-confirm-exit-animation-delay)
|
45
|
-
) + var(
|
46
|
-
--mod-modal-confirm-exit-animation-duration,
|
47
|
-
var(--spectrum-modal-confirm-exit-animation-duration)
|
48
|
-
));z-index:2}:host([open]) .modal{transform:translateY(0);transition:transform var(
|
49
|
-
--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration)
|
50
|
-
) var(--spectrum-animation-ease-out) var(
|
51
|
-
--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)
|
52
|
-
),opacity var(
|
53
|
-
--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration)
|
54
|
-
) var(--spectrum-animation-ease-out) var(
|
55
|
-
--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)
|
56
|
-
)}@media only screen and (max-device-height:350px),only screen and (max-device-width:400px){:host([responsive]) .modal{border-radius:0;inline-size:100%;height:100%;max-inline-size:100%;max-height:100%}}.fullscreen{inset-block-end:var(
|
57
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
58
|
-
);inset-block-start:var(
|
59
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
60
|
-
);inset-inline-end:var(
|
61
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
62
|
-
);inset-inline-start:var(
|
63
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
64
|
-
)}.fullscreen,.fullscreenTakeover{max-inline-size:none;max-height:none;position:fixed}.fullscreenTakeover{border:none;border-radius:0;box-sizing:border-box;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}
|
4
|
+
.modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}
|
65
5
|
`;
|
66
6
|
export default styles;
|
67
7
|
//# sourceMappingURL=spectrum-modal.css.dev.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-modal.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n.modal{
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n .modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}\n`;\nexport default styles;"],
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,64 +1,4 @@
|
|
1
|
-
"use strict";import{css as a}from"@spectrum-web-components/base";const
|
2
|
-
.modal{opacity:0;pointer-events:none;transition:transform var(
|
3
|
-
|
4
|
-
) ease-in-out,opacity var(
|
5
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
6
|
-
) ease-in-out,visibility 0s linear var(
|
7
|
-
--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)
|
8
|
-
);visibility:hidden}:host([open]) .modal{opacity:1;pointer-events:auto;transition-delay:var(
|
9
|
-
--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s)
|
10
|
-
);visibility:visible}:host{--spectrum-modal-confirm-exit-animation-delay:var(
|
11
|
-
--spectrum-animation-duration-0
|
12
|
-
);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(
|
13
|
-
--spectrum-animation-duration-100
|
14
|
-
);--spectrum-modal-confirm-entry-animation-duration:var(
|
15
|
-
--spectrum-animation-duration-500
|
16
|
-
);--spectrum-modal-confirm-entry-animation-delay:var(
|
17
|
-
--spectrum-animation-duration-200
|
18
|
-
);--spectrum-modal-transition-animation-duration:var(
|
19
|
-
--spectrum-animation-duration-100
|
20
|
-
)}.modal{background:var(
|
21
|
-
--mod-modal-background-color,var(--spectrum-modal-background-color)
|
22
|
-
);border-radius:var(
|
23
|
-
--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius)
|
24
|
-
);max-block-size:var(
|
25
|
-
--mod-modal-max-height,var(--spectrum-modal-max-height)
|
26
|
-
);max-inline-size:var(
|
27
|
-
--mod-modal-max-width,var(--spectrum-modal-max-width)
|
28
|
-
);outline:none;overflow:hidden;pointer-events:auto;transform:translateY(var(
|
29
|
-
--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)
|
30
|
-
));transition:opacity var(
|
31
|
-
--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)
|
32
|
-
) var(--spectrum-animation-ease-in) var(
|
33
|
-
--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)
|
34
|
-
),visibility 0s linear calc(var(
|
35
|
-
--mod-modal-confirm-exit-animation-delay,
|
36
|
-
var(--spectrum-modal-confirm-exit-animation-delay)
|
37
|
-
) + var(
|
38
|
-
--mod-modal-confirm-exit-animation-duration,
|
39
|
-
var(--spectrum-modal-confirm-exit-animation-duration)
|
40
|
-
)),transform 0s linear calc(var(
|
41
|
-
--mod-modal-confirm-exit-animation-delay,
|
42
|
-
var(--spectrum-modal-confirm-exit-animation-delay)
|
43
|
-
) + var(
|
44
|
-
--mod-modal-confirm-exit-animation-duration,
|
45
|
-
var(--spectrum-modal-confirm-exit-animation-duration)
|
46
|
-
));z-index:2}:host([open]) .modal{transform:translateY(0);transition:transform var(
|
47
|
-
--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration)
|
48
|
-
) var(--spectrum-animation-ease-out) var(
|
49
|
-
--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)
|
50
|
-
),opacity var(
|
51
|
-
--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration)
|
52
|
-
) var(--spectrum-animation-ease-out) var(
|
53
|
-
--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)
|
54
|
-
)}@media only screen and (max-device-height:350px),only screen and (max-device-width:400px){:host([responsive]) .modal{border-radius:0;inline-size:100%;height:100%;max-inline-size:100%;max-height:100%}}.fullscreen{inset-block-end:var(
|
55
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
56
|
-
);inset-block-start:var(
|
57
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
58
|
-
);inset-inline-end:var(
|
59
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
60
|
-
);inset-inline-start:var(
|
61
|
-
--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin)
|
62
|
-
)}.fullscreen,.fullscreenTakeover{max-inline-size:none;max-height:none;position:fixed}.fullscreenTakeover{border:none;border-radius:0;box-sizing:border-box;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}
|
63
|
-
`;export default r;
|
1
|
+
"use strict";import{css as a}from"@spectrum-web-components/base";const i=a`
|
2
|
+
.modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}
|
3
|
+
`;export default i;
|
64
4
|
//# sourceMappingURL=spectrum-modal.css.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-modal.css.ts"],
|
4
|
-
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n.modal{
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA
|
4
|
+
"sourcesContent": ["/*\nCopyright 2024 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n .modal{pointer-events:none;visibility:hidden;opacity:0;transition:transform var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,opacity var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))ease-in-out,visibility 0s linear var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s))}:host([open]) .modal{pointer-events:auto;visibility:visible;opacity:1;transition-delay:var(--mod-overlay-animation-duration-opened,var(--spectrum-animation-duration-0,0s))}:host{--spectrum-modal-confirm-exit-animation-delay:var(--spectrum-animation-duration-0);--spectrum-modal-fullscreen-margin:32px;--spectrum-modal-max-height:90vh;--spectrum-modal-max-width:90%;--spectrum-modal-background-color:var(--spectrum-gray-100);--spectrum-modal-confirm-border-radius:var(--spectrum-corner-radius-100);--spectrum-modal-confirm-exit-animation-duration:var(--spectrum-animation-duration-100);--spectrum-modal-confirm-entry-animation-duration:var(--spectrum-animation-duration-500);--spectrum-modal-confirm-entry-animation-delay:var(--spectrum-animation-duration-200);--spectrum-modal-transition-animation-duration:var(--spectrum-animation-duration-100)}.modal{transform:translateY(var(--mod-modal-confirm-entry-animation-distance,var(--spectrum-modal-confirm-entry-animation-distance)));z-index:2;max-block-size:var(--mod-modal-max-height,var(--spectrum-modal-max-height));max-inline-size:var(--mod-modal-max-width,var(--spectrum-modal-max-width));background:var(--mod-modal-background-color,var(--spectrum-modal-background-color));border-radius:var(--mod-modal-confirm-border-radius,var(--spectrum-modal-confirm-border-radius));pointer-events:auto;transition:opacity var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))var(--spectrum-animation-ease-in)var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)),visibility 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration))),transform 0s linear calc(var(--mod-modal-confirm-exit-animation-delay,var(--spectrum-modal-confirm-exit-animation-delay)) + var(--mod-modal-confirm-exit-animation-duration,var(--spectrum-modal-confirm-exit-animation-duration)));outline:none;overflow:hidden}:host([open]) .modal{transition:transform var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay)),opacity var(--mod-modal-confirm-entry-animation-duration,var(--spectrum-modal-confirm-entry-animation-duration))var(--spectrum-animation-ease-out)var(--mod-modal-confirm-entry-animation-delay,var(--spectrum-modal-confirm-entry-animation-delay));transform:translateY(0)}@media only screen and (device-width<=400px),only screen and (device-height<=350px){:host([responsive]) .modal{inline-size:100%;height:100%;max-inline-size:100%;border-radius:0;max-height:100%}}.fullscreen{max-inline-size:none;max-height:none;position:fixed;inset-block-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-block-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-start:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin));inset-inline-end:var(--mod-modal-fullscreen-margin,var(--spectrum-modal-fullscreen-margin))}.fullscreenTakeover{box-sizing:border-box;max-inline-size:none;border:none;border-radius:0;max-height:none;position:fixed;inset:0}.fullscreenTakeover,:host([open]) .fullscreenTakeover{transform:none}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
|
6
6
|
"names": ["css", "styles"]
|
7
7
|
}
|