@spectrum-web-components/toast 0.11.13 → 0.11.14
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 +4 -4
- package/package.json +5 -5
- package/src/spectrum-config.js +31 -47
- package/src/spectrum-toast.css.dev.js +4 -6
- package/src/spectrum-toast.css.dev.js.map +2 -2
- package/src/spectrum-toast.css.js +4 -6
- package/src/spectrum-toast.css.js.map +2 -2
- package/src/toast.css.dev.js +4 -6
- package/src/toast.css.dev.js.map +2 -2
- package/src/toast.css.js +4 -6
- package/src/toast.css.js.map +2 -2
package/custom-elements.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-toast.
|
|
7
|
+
"path": "sp-toast.js",
|
|
8
8
|
"declarations": [],
|
|
9
9
|
"exports": [
|
|
10
10
|
{
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"kind": "javascript-module",
|
|
22
|
-
"path": "src/Toast.
|
|
22
|
+
"path": "src/Toast.js",
|
|
23
23
|
"declarations": [
|
|
24
24
|
{
|
|
25
25
|
"kind": "variable",
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
"name": "toastVariants",
|
|
272
272
|
"declaration": {
|
|
273
273
|
"name": "toastVariants",
|
|
274
|
-
"module": "src/Toast.
|
|
274
|
+
"module": "src/Toast.js"
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
{
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"name": "Toast",
|
|
280
280
|
"declaration": {
|
|
281
281
|
"name": "Toast",
|
|
282
|
-
"module": "src/Toast.
|
|
282
|
+
"module": "src/Toast.js"
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/toast",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@spectrum-web-components/base": "^0.7.4",
|
|
61
|
-
"@spectrum-web-components/button": "^0.20.
|
|
62
|
-
"@spectrum-web-components/icon": "^0.12.
|
|
63
|
-
"@spectrum-web-components/icons-workflow": "^0.9.
|
|
61
|
+
"@spectrum-web-components/button": "^0.20.3",
|
|
62
|
+
"@spectrum-web-components/icon": "^0.12.9",
|
|
63
|
+
"@spectrum-web-components/icons-workflow": "^0.9.10"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@spectrum-css/toast": "^8.0.15"
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"./sp-*.js",
|
|
72
72
|
"./**/*.dev.js"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "1e25ee121f3bc838dbb99bac62f3c95857570f7a"
|
|
75
75
|
}
|
package/src/spectrum-config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
// @ts-check
|
|
1
2
|
/*
|
|
2
|
-
Copyright
|
|
3
|
+
Copyright 2023 Adobe. All rights reserved.
|
|
3
4
|
This file is licensed to you under the Apache License, Version 2.0 (the 'License');
|
|
4
5
|
you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
6
|
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -10,55 +11,38 @@ OF ANY KIND, either express or implied. See the License for the specific languag
|
|
|
10
11
|
governing permissions and limitations under the License.
|
|
11
12
|
*/
|
|
12
13
|
|
|
14
|
+
import { converterFor } from '../../../tasks/process-spectrum-utils.js';
|
|
15
|
+
|
|
16
|
+
const converter = converterFor('spectrum-Toast');
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
|
|
20
|
+
*/
|
|
13
21
|
const config = {
|
|
14
|
-
|
|
15
|
-
components: [
|
|
22
|
+
conversions: [
|
|
16
23
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'.spectrum-Toast--warning',
|
|
31
|
-
'.spectrum-Toast--success',
|
|
24
|
+
inPackage: '@spectrum-css/toast',
|
|
25
|
+
outPackage: 'toast',
|
|
26
|
+
fileName: 'toast',
|
|
27
|
+
components: [
|
|
28
|
+
converter.classToHost(),
|
|
29
|
+
...converter.enumerateAttributes(
|
|
30
|
+
[
|
|
31
|
+
['spectrum-Toast--negative'],
|
|
32
|
+
['spectrum-Toast--positive'],
|
|
33
|
+
['spectrum-Toast--info'],
|
|
34
|
+
['spectrum-Toast--error'],
|
|
35
|
+
['spectrum-Toast--warning'],
|
|
36
|
+
['spectrum-Toast--success'],
|
|
32
37
|
],
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
selector: '.spectrum-Toast-buttons',
|
|
42
|
-
name: 'buttons',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
selector: '.spectrum-Toast-content',
|
|
46
|
-
name: 'content',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
selector: '.spectrum-Toast-typeIcon',
|
|
50
|
-
name: 'type',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
selector: '.spectrum-Toast-closeButton',
|
|
54
|
-
name: 'closeButton',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
slots: [
|
|
58
|
-
{
|
|
59
|
-
selector: '.spectrum-Button',
|
|
60
|
-
name: 'action',
|
|
61
|
-
},
|
|
38
|
+
'variant'
|
|
39
|
+
),
|
|
40
|
+
converter.classToClass('spectrum-Toast-body'),
|
|
41
|
+
converter.classToClass('spectrum-Toast-buttons'),
|
|
42
|
+
converter.classToClass('spectrum-Toast-content'),
|
|
43
|
+
converter.classToClass('spectrum-Toast-typeIcon', 'type'),
|
|
44
|
+
converter.classToClass('spectrum-Toast-closeButton'),
|
|
45
|
+
converter.classToSlotted('spectrum-Button', 'action'),
|
|
62
46
|
],
|
|
63
47
|
},
|
|
64
48
|
],
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host{--spectrum-toast-font-weight:var(
|
|
5
|
-
--spectrum-font-weight-regular
|
|
6
|
-
);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(
|
|
4
|
+
:host{--spectrum-toast-font-weight:var(--spectrum-font-weight-regular);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(
|
|
7
5
|
--spectrum-spacing-300
|
|
8
6
|
);--spectrum-toast-spacing-text-and-action-button-to-divider:var(
|
|
9
7
|
--spectrum-spacing-300
|
|
@@ -107,7 +105,7 @@ const styles = css`
|
|
|
107
105
|
--highcontrast-toast-text-and-icon-color,var(
|
|
108
106
|
--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)
|
|
109
107
|
)
|
|
110
|
-
)}.content{box-sizing:border-box;display:inline-block;flex:
|
|
108
|
+
)}.content{box-sizing:border-box;display:inline-block;flex:auto;line-height:var(
|
|
111
109
|
--mod-toast-line-height,var(--spectrum-toast-line-height)
|
|
112
110
|
);padding-block-end:calc(var(
|
|
113
111
|
--mod-toast-spacing-bottom-edge-to-text,
|
|
@@ -127,13 +125,13 @@ var(--spectrum-toast-spacing-block-start)
|
|
|
127
125
|
--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)
|
|
128
126
|
)}.buttons{align-items:flex-start;border-inline-start-color:var(
|
|
129
127
|
--mod-toast-divider-color,var(--spectrum-toast-divider-color)
|
|
130
|
-
);display:flex;flex:
|
|
128
|
+
);display:flex;flex:none;margin-block-end:var(
|
|
131
129
|
--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)
|
|
132
130
|
);margin-block-start:var(
|
|
133
131
|
--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)
|
|
134
132
|
);padding-inline-end:var(
|
|
135
133
|
--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)
|
|
136
|
-
)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:
|
|
134
|
+
)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:auto;flex-wrap:wrap;padding-block-end:var(
|
|
137
135
|
--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)
|
|
138
136
|
);padding-block-start:var(
|
|
139
137
|
--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-toast.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-toast-font-weight:var(
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-toast-font-weight:var(--spectrum-font-weight-regular);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-text-and-action-button-to-divider:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-top-edge-to-divider:var(--spectrum-spacing-100);--spectrum-toast-spacing-bottom-edge-to-divider:var(\n--spectrum-spacing-100\n);--spectrum-toast-spacing-top-edge-to-icon:var(\n--spectrum-toast-top-to-workflow-icon\n);--spectrum-toast-spacing-text-to-action-button-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-close-button:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-start:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-end:var(--spectrum-spacing-100);--spectrum-toast-spacing-top-edge-to-text:var(\n--spectrum-toast-top-to-text\n);--spectrum-toast-spacing-bottom-edge-to-text:var(\n--spectrum-toast-bottom-to-text\n);--spectrum-toast-negative-background-color-default:var(\n--spectrum-negative-background-color-default\n);--spectrum-toast-positive-background-color-default:var(\n--spectrum-positive-background-color-default\n);--spectrum-toast-informative-background-color-default:var(\n--spectrum-informative-background-color-default\n);--spectrum-toast-text-and-icon-color:var(--spectrum-white);--spectrum-toast-divider-color:var(--spectrum-transparent-white-300)}@media (forced-colors:active){:host{--highcontrast-toast-border-color:ButtonText;border:var(\n--mod-toast-border-width,var(--spectrum-toast-border-width)\n) solid var(--highcontrast-toast-border-color,transparent)}}:host{-webkit-font-smoothing:antialiased;align-items:stretch;background-color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);border-radius:var(\n--mod-toast-corner-radius,var(--spectrum-toast-corner-radius)\n);box-sizing:border-box;color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);display:inline-flex;flex-direction:row;font-size:var(--mod-toast-font-size,var(--spectrum-toast-font-size));font-weight:var(\n--mod-toast-font-weight,var(--spectrum-toast-font-weight)\n);min-block-size:var(--spectrum-toast-block-size);padding-inline-start:var(\n--mod-toast-spacing-start-edge-to-text-and-icon,var(--spectrum-toast-spacing-start-edge-to-text-and-icon)\n)}:host([variant=negative]){background-color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=info]){background-color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=positive]){background-color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n);color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}.type{flex-grow:0;flex-shrink:0;margin-block-start:var(\n--mod-toast-spacing-top-edge-to-icon,var(--spectrum-toast-spacing-top-edge-to-icon)\n);margin-inline-end:var(\n--mod-toast-spacing-icon-to-text,var(--spectrum-toast-spacing-icon-to-text)\n);margin-inline-start:0}.content,.type{color:var(\n--highcontrast-toast-text-and-icon-color,var(\n--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)\n)\n)}.content{box-sizing:border-box;display:inline-block;flex:auto;line-height:var(\n--mod-toast-line-height,var(--spectrum-toast-line-height)\n);padding-block-end:calc(var(\n--mod-toast-spacing-bottom-edge-to-text,\nvar(--spectrum-toast-spacing-bottom-edge-to-text)\n) - var(\n--mod-toast-spacing-block-end,\nvar(--spectrum-toast-spacing-block-end)\n));padding-block-start:calc(var(\n--mod-toast-spacing-top-edge-to-text,\nvar(--spectrum-toast-spacing-top-edge-to-text)\n) - var(\n--mod-toast-spacing-block-start,\nvar(--spectrum-toast-spacing-block-start)\n));padding-inline-end:var(\n--mod-toast-spacing-text-to-action-button-horizontal,var(--spectrum-toast-spacing-text-to-action-button-horizontal)\n);padding-inline-start:0;text-align:start}.content:lang(ja),.content:lang(ko),.content:lang(zh){line-height:var(\n--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)\n)}.buttons{align-items:flex-start;border-inline-start-color:var(\n--mod-toast-divider-color,var(--spectrum-toast-divider-color)\n);display:flex;flex:none;margin-block-end:var(\n--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)\n);margin-block-start:var(\n--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)\n);padding-inline-end:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:auto;flex-wrap:wrap;padding-block-end:var(\n--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)\n);padding-block-start:var(\n--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)\n)}.body ::slotted([slot=action]){margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}:host([dir=ltr]) .body ::slotted([slot=action]){margin-left:auto}:host([dir=rtl]) .body ::slotted([slot=action]){margin-right:auto;margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}.body+.buttons{border-inline-start-style:solid;border-inline-start-width:1px;padding-inline-start:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}:host{--spectrum-toast-background-color-default:var(\n--system-spectrum-toast-background-color-default\n)}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiJf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
|
|
2
|
-
:host{--spectrum-toast-font-weight:var(
|
|
3
|
-
--spectrum-font-weight-regular
|
|
4
|
-
);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(
|
|
2
|
+
:host{--spectrum-toast-font-weight:var(--spectrum-font-weight-regular);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(
|
|
5
3
|
--spectrum-spacing-300
|
|
6
4
|
);--spectrum-toast-spacing-text-and-action-button-to-divider:var(
|
|
7
5
|
--spectrum-spacing-300
|
|
@@ -105,7 +103,7 @@
|
|
|
105
103
|
--highcontrast-toast-text-and-icon-color,var(
|
|
106
104
|
--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)
|
|
107
105
|
)
|
|
108
|
-
)}.content{box-sizing:border-box;display:inline-block;flex:
|
|
106
|
+
)}.content{box-sizing:border-box;display:inline-block;flex:auto;line-height:var(
|
|
109
107
|
--mod-toast-line-height,var(--spectrum-toast-line-height)
|
|
110
108
|
);padding-block-end:calc(var(
|
|
111
109
|
--mod-toast-spacing-bottom-edge-to-text,
|
|
@@ -125,13 +123,13 @@ var(--spectrum-toast-spacing-block-start)
|
|
|
125
123
|
--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)
|
|
126
124
|
)}.buttons{align-items:flex-start;border-inline-start-color:var(
|
|
127
125
|
--mod-toast-divider-color,var(--spectrum-toast-divider-color)
|
|
128
|
-
);display:flex;flex:
|
|
126
|
+
);display:flex;flex:none;margin-block-end:var(
|
|
129
127
|
--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)
|
|
130
128
|
);margin-block-start:var(
|
|
131
129
|
--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)
|
|
132
130
|
);padding-inline-end:var(
|
|
133
131
|
--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)
|
|
134
|
-
)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:
|
|
132
|
+
)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:auto;flex-wrap:wrap;padding-block-end:var(
|
|
135
133
|
--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)
|
|
136
134
|
);padding-block-start:var(
|
|
137
135
|
--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["spectrum-toast.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-toast-font-weight:var(
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-toast-font-weight:var(--spectrum-font-weight-regular);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-text-and-action-button-to-divider:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-top-edge-to-divider:var(--spectrum-spacing-100);--spectrum-toast-spacing-bottom-edge-to-divider:var(\n--spectrum-spacing-100\n);--spectrum-toast-spacing-top-edge-to-icon:var(\n--spectrum-toast-top-to-workflow-icon\n);--spectrum-toast-spacing-text-to-action-button-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-close-button:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-start:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-end:var(--spectrum-spacing-100);--spectrum-toast-spacing-top-edge-to-text:var(\n--spectrum-toast-top-to-text\n);--spectrum-toast-spacing-bottom-edge-to-text:var(\n--spectrum-toast-bottom-to-text\n);--spectrum-toast-negative-background-color-default:var(\n--spectrum-negative-background-color-default\n);--spectrum-toast-positive-background-color-default:var(\n--spectrum-positive-background-color-default\n);--spectrum-toast-informative-background-color-default:var(\n--spectrum-informative-background-color-default\n);--spectrum-toast-text-and-icon-color:var(--spectrum-white);--spectrum-toast-divider-color:var(--spectrum-transparent-white-300)}@media (forced-colors:active){:host{--highcontrast-toast-border-color:ButtonText;border:var(\n--mod-toast-border-width,var(--spectrum-toast-border-width)\n) solid var(--highcontrast-toast-border-color,transparent)}}:host{-webkit-font-smoothing:antialiased;align-items:stretch;background-color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);border-radius:var(\n--mod-toast-corner-radius,var(--spectrum-toast-corner-radius)\n);box-sizing:border-box;color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);display:inline-flex;flex-direction:row;font-size:var(--mod-toast-font-size,var(--spectrum-toast-font-size));font-weight:var(\n--mod-toast-font-weight,var(--spectrum-toast-font-weight)\n);min-block-size:var(--spectrum-toast-block-size);padding-inline-start:var(\n--mod-toast-spacing-start-edge-to-text-and-icon,var(--spectrum-toast-spacing-start-edge-to-text-and-icon)\n)}:host([variant=negative]){background-color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=info]){background-color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=positive]){background-color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n);color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}.type{flex-grow:0;flex-shrink:0;margin-block-start:var(\n--mod-toast-spacing-top-edge-to-icon,var(--spectrum-toast-spacing-top-edge-to-icon)\n);margin-inline-end:var(\n--mod-toast-spacing-icon-to-text,var(--spectrum-toast-spacing-icon-to-text)\n);margin-inline-start:0}.content,.type{color:var(\n--highcontrast-toast-text-and-icon-color,var(\n--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)\n)\n)}.content{box-sizing:border-box;display:inline-block;flex:auto;line-height:var(\n--mod-toast-line-height,var(--spectrum-toast-line-height)\n);padding-block-end:calc(var(\n--mod-toast-spacing-bottom-edge-to-text,\nvar(--spectrum-toast-spacing-bottom-edge-to-text)\n) - var(\n--mod-toast-spacing-block-end,\nvar(--spectrum-toast-spacing-block-end)\n));padding-block-start:calc(var(\n--mod-toast-spacing-top-edge-to-text,\nvar(--spectrum-toast-spacing-top-edge-to-text)\n) - var(\n--mod-toast-spacing-block-start,\nvar(--spectrum-toast-spacing-block-start)\n));padding-inline-end:var(\n--mod-toast-spacing-text-to-action-button-horizontal,var(--spectrum-toast-spacing-text-to-action-button-horizontal)\n);padding-inline-start:0;text-align:start}.content:lang(ja),.content:lang(ko),.content:lang(zh){line-height:var(\n--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)\n)}.buttons{align-items:flex-start;border-inline-start-color:var(\n--mod-toast-divider-color,var(--spectrum-toast-divider-color)\n);display:flex;flex:none;margin-block-end:var(\n--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)\n);margin-block-start:var(\n--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)\n);padding-inline-end:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:auto;flex-wrap:wrap;padding-block-end:var(\n--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)\n);padding-block-start:var(\n--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)\n)}.body ::slotted([slot=action]){margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}:host([dir=ltr]) .body ::slotted([slot=action]){margin-left:auto}:host([dir=rtl]) .body ::slotted([slot=action]){margin-right:auto;margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}.body+.buttons{border-inline-start-style:solid;border-inline-start-width:1px;padding-inline-start:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}:host{--spectrum-toast-background-color-default:var(\n--system-spectrum-toast-background-color-default\n)}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiJf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
package/src/toast.css.dev.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host{--spectrum-toast-font-weight:var(
|
|
5
|
-
--spectrum-font-weight-regular
|
|
6
|
-
);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(
|
|
4
|
+
:host{--spectrum-toast-font-weight:var(--spectrum-font-weight-regular);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(
|
|
7
5
|
--spectrum-spacing-300
|
|
8
6
|
);--spectrum-toast-spacing-text-and-action-button-to-divider:var(
|
|
9
7
|
--spectrum-spacing-300
|
|
@@ -107,7 +105,7 @@ const styles = css`
|
|
|
107
105
|
--highcontrast-toast-text-and-icon-color,var(
|
|
108
106
|
--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)
|
|
109
107
|
)
|
|
110
|
-
)}.content{box-sizing:border-box;display:inline-block;flex:
|
|
108
|
+
)}.content{box-sizing:border-box;display:inline-block;flex:auto;line-height:var(
|
|
111
109
|
--mod-toast-line-height,var(--spectrum-toast-line-height)
|
|
112
110
|
);padding-block-end:calc(var(
|
|
113
111
|
--mod-toast-spacing-bottom-edge-to-text,
|
|
@@ -127,13 +125,13 @@ var(--spectrum-toast-spacing-block-start)
|
|
|
127
125
|
--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)
|
|
128
126
|
)}.buttons{align-items:flex-start;border-inline-start-color:var(
|
|
129
127
|
--mod-toast-divider-color,var(--spectrum-toast-divider-color)
|
|
130
|
-
);display:flex;flex:
|
|
128
|
+
);display:flex;flex:none;margin-block-end:var(
|
|
131
129
|
--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)
|
|
132
130
|
);margin-block-start:var(
|
|
133
131
|
--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)
|
|
134
132
|
);padding-inline-end:var(
|
|
135
133
|
--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)
|
|
136
|
-
)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:
|
|
134
|
+
)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:auto;flex-wrap:wrap;padding-block-end:var(
|
|
137
135
|
--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)
|
|
138
136
|
);padding-block-start:var(
|
|
139
137
|
--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)
|
package/src/toast.css.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["toast.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-toast-font-weight:var(\n--spectrum-font-weight-regular\n);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-text-and-action-button-to-divider:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-top-edge-to-divider:var(--spectrum-spacing-100);--spectrum-toast-spacing-bottom-edge-to-divider:var(\n--spectrum-spacing-100\n);--spectrum-toast-spacing-top-edge-to-icon:var(\n--spectrum-toast-top-to-workflow-icon\n);--spectrum-toast-spacing-text-to-action-button-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-close-button:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-start:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-end:var(--spectrum-spacing-100);--spectrum-toast-spacing-top-edge-to-text:var(\n--spectrum-toast-top-to-text\n);--spectrum-toast-spacing-bottom-edge-to-text:var(\n--spectrum-toast-bottom-to-text\n);--spectrum-toast-negative-background-color-default:var(\n--spectrum-negative-background-color-default\n);--spectrum-toast-positive-background-color-default:var(\n--spectrum-positive-background-color-default\n);--spectrum-toast-informative-background-color-default:var(\n--spectrum-informative-background-color-default\n);--spectrum-toast-text-and-icon-color:var(--spectrum-white);--spectrum-toast-divider-color:var(--spectrum-transparent-white-300)}@media (forced-colors:active){:host{--highcontrast-toast-border-color:ButtonText;border:var(\n--mod-toast-border-width,var(--spectrum-toast-border-width)\n) solid var(--highcontrast-toast-border-color,transparent)}}:host{-webkit-font-smoothing:antialiased;align-items:stretch;background-color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);border-radius:var(\n--mod-toast-corner-radius,var(--spectrum-toast-corner-radius)\n);box-sizing:border-box;color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);display:inline-flex;flex-direction:row;font-size:var(--mod-toast-font-size,var(--spectrum-toast-font-size));font-weight:var(\n--mod-toast-font-weight,var(--spectrum-toast-font-weight)\n);min-block-size:var(--spectrum-toast-block-size);padding-inline-start:var(\n--mod-toast-spacing-start-edge-to-text-and-icon,var(--spectrum-toast-spacing-start-edge-to-text-and-icon)\n)}:host([variant=negative]){background-color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=info]){background-color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=positive]){background-color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n);color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}.type{flex-grow:0;flex-shrink:0;margin-block-start:var(\n--mod-toast-spacing-top-edge-to-icon,var(--spectrum-toast-spacing-top-edge-to-icon)\n);margin-inline-end:var(\n--mod-toast-spacing-icon-to-text,var(--spectrum-toast-spacing-icon-to-text)\n);margin-inline-start:0}.content,.type{color:var(\n--highcontrast-toast-text-and-icon-color,var(\n--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)\n)\n)}.content{box-sizing:border-box;display:inline-block;flex:1 1 auto;line-height:var(\n--mod-toast-line-height,var(--spectrum-toast-line-height)\n);padding-block-end:calc(var(\n--mod-toast-spacing-bottom-edge-to-text,\nvar(--spectrum-toast-spacing-bottom-edge-to-text)\n) - var(\n--mod-toast-spacing-block-end,\nvar(--spectrum-toast-spacing-block-end)\n));padding-block-start:calc(var(\n--mod-toast-spacing-top-edge-to-text,\nvar(--spectrum-toast-spacing-top-edge-to-text)\n) - var(\n--mod-toast-spacing-block-start,\nvar(--spectrum-toast-spacing-block-start)\n));padding-inline-end:var(\n--mod-toast-spacing-text-to-action-button-horizontal,var(--spectrum-toast-spacing-text-to-action-button-horizontal)\n);padding-inline-start:0;text-align:start}.content:lang(ja),.content:lang(ko),.content:lang(zh){line-height:var(\n--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)\n)}.buttons{align-items:flex-start;border-inline-start-color:var(\n--mod-toast-divider-color,var(--spectrum-toast-divider-color)\n);display:flex;flex:0 0 auto;margin-block-end:var(\n--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)\n);margin-block-start:var(\n--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)\n);padding-inline-end:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:1 1 auto;flex-wrap:wrap;padding-block-end:var(\n--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)\n);padding-block-start:var(\n--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)\n)}.body ::slotted([slot=action]){margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}:host([dir=ltr]) .body ::slotted([slot=action]){margin-left:auto}:host([dir=rtl]) .body ::slotted([slot=action]){margin-right:auto;margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}.body+.buttons{border-inline-start-style:solid;border-inline-start-width:1px;padding-inline-start:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}:host{--spectrum-toast-background-color-default:var(\n--system-spectrum-toast-background-color-default\n)}:host(:not([open])){display:none}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-toast-font-weight:var(--spectrum-font-weight-regular);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-text-and-action-button-to-divider:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-top-edge-to-divider:var(--spectrum-spacing-100);--spectrum-toast-spacing-bottom-edge-to-divider:var(\n--spectrum-spacing-100\n);--spectrum-toast-spacing-top-edge-to-icon:var(\n--spectrum-toast-top-to-workflow-icon\n);--spectrum-toast-spacing-text-to-action-button-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-close-button:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-start:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-end:var(--spectrum-spacing-100);--spectrum-toast-spacing-top-edge-to-text:var(\n--spectrum-toast-top-to-text\n);--spectrum-toast-spacing-bottom-edge-to-text:var(\n--spectrum-toast-bottom-to-text\n);--spectrum-toast-negative-background-color-default:var(\n--spectrum-negative-background-color-default\n);--spectrum-toast-positive-background-color-default:var(\n--spectrum-positive-background-color-default\n);--spectrum-toast-informative-background-color-default:var(\n--spectrum-informative-background-color-default\n);--spectrum-toast-text-and-icon-color:var(--spectrum-white);--spectrum-toast-divider-color:var(--spectrum-transparent-white-300)}@media (forced-colors:active){:host{--highcontrast-toast-border-color:ButtonText;border:var(\n--mod-toast-border-width,var(--spectrum-toast-border-width)\n) solid var(--highcontrast-toast-border-color,transparent)}}:host{-webkit-font-smoothing:antialiased;align-items:stretch;background-color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);border-radius:var(\n--mod-toast-corner-radius,var(--spectrum-toast-corner-radius)\n);box-sizing:border-box;color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);display:inline-flex;flex-direction:row;font-size:var(--mod-toast-font-size,var(--spectrum-toast-font-size));font-weight:var(\n--mod-toast-font-weight,var(--spectrum-toast-font-weight)\n);min-block-size:var(--spectrum-toast-block-size);padding-inline-start:var(\n--mod-toast-spacing-start-edge-to-text-and-icon,var(--spectrum-toast-spacing-start-edge-to-text-and-icon)\n)}:host([variant=negative]){background-color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=info]){background-color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=positive]){background-color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n);color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}.type{flex-grow:0;flex-shrink:0;margin-block-start:var(\n--mod-toast-spacing-top-edge-to-icon,var(--spectrum-toast-spacing-top-edge-to-icon)\n);margin-inline-end:var(\n--mod-toast-spacing-icon-to-text,var(--spectrum-toast-spacing-icon-to-text)\n);margin-inline-start:0}.content,.type{color:var(\n--highcontrast-toast-text-and-icon-color,var(\n--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)\n)\n)}.content{box-sizing:border-box;display:inline-block;flex:auto;line-height:var(\n--mod-toast-line-height,var(--spectrum-toast-line-height)\n);padding-block-end:calc(var(\n--mod-toast-spacing-bottom-edge-to-text,\nvar(--spectrum-toast-spacing-bottom-edge-to-text)\n) - var(\n--mod-toast-spacing-block-end,\nvar(--spectrum-toast-spacing-block-end)\n));padding-block-start:calc(var(\n--mod-toast-spacing-top-edge-to-text,\nvar(--spectrum-toast-spacing-top-edge-to-text)\n) - var(\n--mod-toast-spacing-block-start,\nvar(--spectrum-toast-spacing-block-start)\n));padding-inline-end:var(\n--mod-toast-spacing-text-to-action-button-horizontal,var(--spectrum-toast-spacing-text-to-action-button-horizontal)\n);padding-inline-start:0;text-align:start}.content:lang(ja),.content:lang(ko),.content:lang(zh){line-height:var(\n--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)\n)}.buttons{align-items:flex-start;border-inline-start-color:var(\n--mod-toast-divider-color,var(--spectrum-toast-divider-color)\n);display:flex;flex:none;margin-block-end:var(\n--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)\n);margin-block-start:var(\n--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)\n);padding-inline-end:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:auto;flex-wrap:wrap;padding-block-end:var(\n--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)\n);padding-block-start:var(\n--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)\n)}.body ::slotted([slot=action]){margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}:host([dir=ltr]) .body ::slotted([slot=action]){margin-left:auto}:host([dir=rtl]) .body ::slotted([slot=action]){margin-right:auto;margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}.body+.buttons{border-inline-start-style:solid;border-inline-start-width:1px;padding-inline-start:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}:host{--spectrum-toast-background-color-default:var(\n--system-spectrum-toast-background-color-default\n)}:host(:not([open])){display:none}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiJf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/toast.css.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
|
|
2
|
-
:host{--spectrum-toast-font-weight:var(
|
|
3
|
-
--spectrum-font-weight-regular
|
|
4
|
-
);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(
|
|
2
|
+
:host{--spectrum-toast-font-weight:var(--spectrum-font-weight-regular);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(
|
|
5
3
|
--spectrum-spacing-300
|
|
6
4
|
);--spectrum-toast-spacing-text-and-action-button-to-divider:var(
|
|
7
5
|
--spectrum-spacing-300
|
|
@@ -105,7 +103,7 @@
|
|
|
105
103
|
--highcontrast-toast-text-and-icon-color,var(
|
|
106
104
|
--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)
|
|
107
105
|
)
|
|
108
|
-
)}.content{box-sizing:border-box;display:inline-block;flex:
|
|
106
|
+
)}.content{box-sizing:border-box;display:inline-block;flex:auto;line-height:var(
|
|
109
107
|
--mod-toast-line-height,var(--spectrum-toast-line-height)
|
|
110
108
|
);padding-block-end:calc(var(
|
|
111
109
|
--mod-toast-spacing-bottom-edge-to-text,
|
|
@@ -125,13 +123,13 @@ var(--spectrum-toast-spacing-block-start)
|
|
|
125
123
|
--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)
|
|
126
124
|
)}.buttons{align-items:flex-start;border-inline-start-color:var(
|
|
127
125
|
--mod-toast-divider-color,var(--spectrum-toast-divider-color)
|
|
128
|
-
);display:flex;flex:
|
|
126
|
+
);display:flex;flex:none;margin-block-end:var(
|
|
129
127
|
--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)
|
|
130
128
|
);margin-block-start:var(
|
|
131
129
|
--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)
|
|
132
130
|
);padding-inline-end:var(
|
|
133
131
|
--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)
|
|
134
|
-
)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:
|
|
132
|
+
)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:auto;flex-wrap:wrap;padding-block-end:var(
|
|
135
133
|
--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)
|
|
136
134
|
);padding-block-start:var(
|
|
137
135
|
--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)
|
package/src/toast.css.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["toast.css.ts"],
|
|
4
|
-
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-toast-font-weight:var(\n--spectrum-font-weight-regular\n);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-text-and-action-button-to-divider:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-top-edge-to-divider:var(--spectrum-spacing-100);--spectrum-toast-spacing-bottom-edge-to-divider:var(\n--spectrum-spacing-100\n);--spectrum-toast-spacing-top-edge-to-icon:var(\n--spectrum-toast-top-to-workflow-icon\n);--spectrum-toast-spacing-text-to-action-button-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-close-button:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-start:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-end:var(--spectrum-spacing-100);--spectrum-toast-spacing-top-edge-to-text:var(\n--spectrum-toast-top-to-text\n);--spectrum-toast-spacing-bottom-edge-to-text:var(\n--spectrum-toast-bottom-to-text\n);--spectrum-toast-negative-background-color-default:var(\n--spectrum-negative-background-color-default\n);--spectrum-toast-positive-background-color-default:var(\n--spectrum-positive-background-color-default\n);--spectrum-toast-informative-background-color-default:var(\n--spectrum-informative-background-color-default\n);--spectrum-toast-text-and-icon-color:var(--spectrum-white);--spectrum-toast-divider-color:var(--spectrum-transparent-white-300)}@media (forced-colors:active){:host{--highcontrast-toast-border-color:ButtonText;border:var(\n--mod-toast-border-width,var(--spectrum-toast-border-width)\n) solid var(--highcontrast-toast-border-color,transparent)}}:host{-webkit-font-smoothing:antialiased;align-items:stretch;background-color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);border-radius:var(\n--mod-toast-corner-radius,var(--spectrum-toast-corner-radius)\n);box-sizing:border-box;color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);display:inline-flex;flex-direction:row;font-size:var(--mod-toast-font-size,var(--spectrum-toast-font-size));font-weight:var(\n--mod-toast-font-weight,var(--spectrum-toast-font-weight)\n);min-block-size:var(--spectrum-toast-block-size);padding-inline-start:var(\n--mod-toast-spacing-start-edge-to-text-and-icon,var(--spectrum-toast-spacing-start-edge-to-text-and-icon)\n)}:host([variant=negative]){background-color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=info]){background-color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=positive]){background-color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n);color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}.type{flex-grow:0;flex-shrink:0;margin-block-start:var(\n--mod-toast-spacing-top-edge-to-icon,var(--spectrum-toast-spacing-top-edge-to-icon)\n);margin-inline-end:var(\n--mod-toast-spacing-icon-to-text,var(--spectrum-toast-spacing-icon-to-text)\n);margin-inline-start:0}.content,.type{color:var(\n--highcontrast-toast-text-and-icon-color,var(\n--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)\n)\n)}.content{box-sizing:border-box;display:inline-block;flex:1 1 auto;line-height:var(\n--mod-toast-line-height,var(--spectrum-toast-line-height)\n);padding-block-end:calc(var(\n--mod-toast-spacing-bottom-edge-to-text,\nvar(--spectrum-toast-spacing-bottom-edge-to-text)\n) - var(\n--mod-toast-spacing-block-end,\nvar(--spectrum-toast-spacing-block-end)\n));padding-block-start:calc(var(\n--mod-toast-spacing-top-edge-to-text,\nvar(--spectrum-toast-spacing-top-edge-to-text)\n) - var(\n--mod-toast-spacing-block-start,\nvar(--spectrum-toast-spacing-block-start)\n));padding-inline-end:var(\n--mod-toast-spacing-text-to-action-button-horizontal,var(--spectrum-toast-spacing-text-to-action-button-horizontal)\n);padding-inline-start:0;text-align:start}.content:lang(ja),.content:lang(ko),.content:lang(zh){line-height:var(\n--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)\n)}.buttons{align-items:flex-start;border-inline-start-color:var(\n--mod-toast-divider-color,var(--spectrum-toast-divider-color)\n);display:flex;flex:0 0 auto;margin-block-end:var(\n--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)\n);margin-block-start:var(\n--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)\n);padding-inline-end:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:1 1 auto;flex-wrap:wrap;padding-block-end:var(\n--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)\n);padding-block-start:var(\n--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)\n)}.body ::slotted([slot=action]){margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}:host([dir=ltr]) .body ::slotted([slot=action]){margin-left:auto}:host([dir=rtl]) .body ::slotted([slot=action]){margin-right:auto;margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}.body+.buttons{border-inline-start-style:solid;border-inline-start-width:1px;padding-inline-start:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}:host{--spectrum-toast-background-color-default:var(\n--system-spectrum-toast-background-color-default\n)}:host(:not([open])){display:none}\n`;\nexport default styles;"],
|
|
5
|
-
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-toast-font-weight:var(--spectrum-font-weight-regular);--spectrum-toast-font-size:var(--spectrum-font-size-100);--spectrum-toast-corner-radius:var(--spectrum-corner-radius-100);--spectrum-toast-block-size:var(--spectrum-toast-height);--spectrum-toast-border-width:var(--spectrum-border-width-100);--spectrum-toast-line-height:var(--spectrum-line-height-100);--spectrum-toast-line-height-cjk:var(--spectrum-line-height-cjk-100);--spectrum-toast-spacing-icon-to-text:var(--spectrum-text-to-visual-100);--spectrum-toast-spacing-start-edge-to-text-and-icon:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-text-and-action-button-to-divider:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-top-edge-to-divider:var(--spectrum-spacing-100);--spectrum-toast-spacing-bottom-edge-to-divider:var(\n--spectrum-spacing-100\n);--spectrum-toast-spacing-top-edge-to-icon:var(\n--spectrum-toast-top-to-workflow-icon\n);--spectrum-toast-spacing-text-to-action-button-horizontal:var(\n--spectrum-spacing-300\n);--spectrum-toast-spacing-close-button:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-start:var(--spectrum-spacing-100);--spectrum-toast-spacing-block-end:var(--spectrum-spacing-100);--spectrum-toast-spacing-top-edge-to-text:var(\n--spectrum-toast-top-to-text\n);--spectrum-toast-spacing-bottom-edge-to-text:var(\n--spectrum-toast-bottom-to-text\n);--spectrum-toast-negative-background-color-default:var(\n--spectrum-negative-background-color-default\n);--spectrum-toast-positive-background-color-default:var(\n--spectrum-positive-background-color-default\n);--spectrum-toast-informative-background-color-default:var(\n--spectrum-informative-background-color-default\n);--spectrum-toast-text-and-icon-color:var(--spectrum-white);--spectrum-toast-divider-color:var(--spectrum-transparent-white-300)}@media (forced-colors:active){:host{--highcontrast-toast-border-color:ButtonText;border:var(\n--mod-toast-border-width,var(--spectrum-toast-border-width)\n) solid var(--highcontrast-toast-border-color,transparent)}}:host{-webkit-font-smoothing:antialiased;align-items:stretch;background-color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);border-radius:var(\n--mod-toast-corner-radius,var(--spectrum-toast-corner-radius)\n);box-sizing:border-box;color:var(\n--highcontrast-toast-background-color-default,var(\n--mod-toast-background-color-default,var(--spectrum-toast-background-color-default)\n)\n);display:inline-flex;flex-direction:row;font-size:var(--mod-toast-font-size,var(--spectrum-toast-font-size));font-weight:var(\n--mod-toast-font-weight,var(--spectrum-toast-font-weight)\n);min-block-size:var(--spectrum-toast-block-size);padding-inline-start:var(\n--mod-toast-spacing-start-edge-to-text-and-icon,var(--spectrum-toast-spacing-start-edge-to-text-and-icon)\n)}:host([variant=negative]){background-color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=negative]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-negative-background-color-default,var(\n--mod-toast-negative-background-color-default,var(--spectrum-toast-negative-background-color-default)\n)\n)}:host([variant=info]){background-color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n);color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=info]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-informative-background-color-default,var(\n--mod-toast-informative-background-color-default,var(--spectrum-toast-informative-background-color-default)\n)\n)}:host([variant=positive]){background-color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n);color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton.focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}:host([variant=positive]) .closeButton:focus-visible:not(:active){color:var(\n--highcontrast-toast-positive-background-color-default,var(\n--mod-toast-positive-background-color-default,var(--spectrum-toast-positive-background-color-default)\n)\n)}.type{flex-grow:0;flex-shrink:0;margin-block-start:var(\n--mod-toast-spacing-top-edge-to-icon,var(--spectrum-toast-spacing-top-edge-to-icon)\n);margin-inline-end:var(\n--mod-toast-spacing-icon-to-text,var(--spectrum-toast-spacing-icon-to-text)\n);margin-inline-start:0}.content,.type{color:var(\n--highcontrast-toast-text-and-icon-color,var(\n--mod-toast-text-and-icon-color,var(--spectrum-toast-text-and-icon-color)\n)\n)}.content{box-sizing:border-box;display:inline-block;flex:auto;line-height:var(\n--mod-toast-line-height,var(--spectrum-toast-line-height)\n);padding-block-end:calc(var(\n--mod-toast-spacing-bottom-edge-to-text,\nvar(--spectrum-toast-spacing-bottom-edge-to-text)\n) - var(\n--mod-toast-spacing-block-end,\nvar(--spectrum-toast-spacing-block-end)\n));padding-block-start:calc(var(\n--mod-toast-spacing-top-edge-to-text,\nvar(--spectrum-toast-spacing-top-edge-to-text)\n) - var(\n--mod-toast-spacing-block-start,\nvar(--spectrum-toast-spacing-block-start)\n));padding-inline-end:var(\n--mod-toast-spacing-text-to-action-button-horizontal,var(--spectrum-toast-spacing-text-to-action-button-horizontal)\n);padding-inline-start:0;text-align:start}.content:lang(ja),.content:lang(ko),.content:lang(zh){line-height:var(\n--mod-toast-line-height-cjk,var(--spectrum-toast-line-height-cjk)\n)}.buttons{align-items:flex-start;border-inline-start-color:var(\n--mod-toast-divider-color,var(--spectrum-toast-divider-color)\n);display:flex;flex:none;margin-block-end:var(\n--mod-toast-spacing-bottom-edge-to-divider,var(--spectrum-toast-spacing-bottom-edge-to-divider)\n);margin-block-start:var(\n--mod-toast-spacing-top-edge-to-divider,var(--spectrum-toast-spacing-top-edge-to-divider)\n);padding-inline-end:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}.buttons .spectrum-CloseButton{align-self:flex-start}.body{align-items:center;align-self:center;display:flex;flex:auto;flex-wrap:wrap;padding-block-end:var(\n--mod-toast-spacing-block-end,var(--spectrum-toast-spacing-block-end)\n);padding-block-start:var(\n--mod-toast-spacing-block-start,var(--spectrum-toast-spacing-block-start)\n)}.body ::slotted([slot=action]){margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}:host([dir=ltr]) .body ::slotted([slot=action]){margin-left:auto}:host([dir=rtl]) .body ::slotted([slot=action]){margin-right:auto;margin-inline-end:var(\n--mod-toast-spacing-text-and-action-button-to-divider,var(--spectrum-toast-spacing-text-and-action-button-to-divider)\n)}.body+.buttons{border-inline-start-style:solid;border-inline-start-width:1px;padding-inline-start:var(\n--mod-toast-spacing-close-button,var(--spectrum-toast-spacing-close-button)\n)}:host{--spectrum-toast-background-color-default:var(\n--system-spectrum-toast-background-color-default\n)}:host(:not([open])){display:none}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiJf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|