@spectrum-web-components/toast 0.11.13 → 0.11.15-overlay.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/toast",
3
- "version": "0.11.13",
3
+ "version": "0.11.15-overlay.8+eef228d8d",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,10 +57,10 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.7.4",
61
- "@spectrum-web-components/button": "^0.20.2",
62
- "@spectrum-web-components/icon": "^0.12.8",
63
- "@spectrum-web-components/icons-workflow": "^0.9.9"
60
+ "@spectrum-web-components/base": "^0.7.5-overlay.236+eef228d8d",
61
+ "@spectrum-web-components/button": "^0.20.4-overlay.8+eef228d8d",
62
+ "@spectrum-web-components/icon": "^0.12.10-overlay.8+eef228d8d",
63
+ "@spectrum-web-components/icons-workflow": "^0.9.11-overlay.8+eef228d8d"
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": "5e11d828243bb3ff572c25b33a8d58844a89f524"
74
+ "gitHead": "eef228d8defcf04fe32713c7232fd0873828752b"
75
75
  }
@@ -1,5 +1,6 @@
1
+ // @ts-check
1
2
  /*
2
- Copyright 2020 Adobe. All rights reserved.
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
- spectrum: 'toast',
15
- components: [
22
+ conversions: [
16
23
  {
17
- name: 'toast',
18
- host: {
19
- selector: '.spectrum-Toast',
20
- },
21
- attributes: [
22
- {
23
- type: 'enum',
24
- name: 'variant',
25
- values: [
26
- '.spectrum-Toast--negative',
27
- '.spectrum-Toast--positive',
28
- '.spectrum-Toast--info',
29
- '.spectrum-Toast--error',
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
- classes: [
36
- {
37
- selector: '.spectrum-Toast-body',
38
- name: 'body',
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:1 1 auto;line-height:var(
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:0 0 auto;margin-block-end:var(
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:1 1 auto;flex-wrap:wrap;padding-block-end:var(
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(\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)}\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;AAAA;AAAA;AAmJf,eAAe;",
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:1 1 auto;line-height:var(
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:0 0 auto;margin-block-end:var(
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:1 1 auto;flex-wrap:wrap;padding-block-end:var(
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(\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)}\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;AAAA;AAAA,EAmJf,eAAeC",
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
  }
@@ -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:1 1 auto;line-height:var(
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:0 0 auto;margin-block-end:var(
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:1 1 auto;flex-wrap:wrap;padding-block-end:var(
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": ["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;AAAA;AAAA;AAmJf,eAAe;",
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:1 1 auto;line-height:var(
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:0 0 auto;margin-block-end:var(
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:1 1 auto;flex-wrap:wrap;padding-block-end:var(
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": ["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;AAAA;AAAA,EAmJf,eAAeC",
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
  }
@@ -1,288 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-toast.ts",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-toast",
13
- "declaration": {
14
- "name": "Toast",
15
- "module": "/src/Toast.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/Toast.ts",
23
- "declarations": [
24
- {
25
- "kind": "variable",
26
- "name": "toastVariants",
27
- "type": {
28
- "text": "ToastVariants[]"
29
- },
30
- "default": "[\n 'negative',\n 'positive',\n 'info',\n 'error',\n 'warning',\n]"
31
- },
32
- {
33
- "kind": "class",
34
- "description": "",
35
- "name": "Toast",
36
- "slots": [
37
- {
38
- "description": "The toast content",
39
- "name": ""
40
- },
41
- {
42
- "description": "button element surfacing an action in the Toast",
43
- "name": "action"
44
- }
45
- ],
46
- "members": [
47
- {
48
- "kind": "field",
49
- "name": "open",
50
- "type": {
51
- "text": "boolean"
52
- },
53
- "privacy": "public",
54
- "default": "false",
55
- "attribute": "open",
56
- "reflects": true
57
- },
58
- {
59
- "kind": "field",
60
- "name": "timeout",
61
- "privacy": "public",
62
- "description": "When a timeout is provided it represents the number of milliseconds from when\nthe Toast was placed on the page before it will automatically dismiss itself.\nAccessibility concerns require that a Toast is available for at least 6000ms\nbefore being dismissed, so any timeout of less than 6000ms will be raised to\nthat baseline. It is suggested that messages longer than 120 words should\nreceive another 1000ms in their timeout for each additional 120 words in the\nmessage. E.G. 240 words = 7000ms, 360 words = 8000ms, etc.",
63
- "parameters": [
64
- {
65
- "name": "timeout",
66
- "type": {
67
- "text": "Number"
68
- }
69
- }
70
- ],
71
- "type": {
72
- "text": "number | null"
73
- },
74
- "attribute": "timeout"
75
- },
76
- {
77
- "kind": "field",
78
- "name": "_timeout",
79
- "type": {
80
- "text": "number | null"
81
- },
82
- "privacy": "public",
83
- "default": "null"
84
- },
85
- {
86
- "kind": "field",
87
- "name": "variant",
88
- "privacy": "public",
89
- "description": "The variant applies specific styling when set to `negative`, `positive`, `info`, `error`, or `warning`.\n`variant` attribute is removed when not matching one of the above.",
90
- "parameters": [
91
- {
92
- "name": "variant",
93
- "type": {
94
- "text": "String"
95
- }
96
- }
97
- ],
98
- "type": {
99
- "text": "ToastVariants"
100
- },
101
- "attribute": "variant"
102
- },
103
- {
104
- "kind": "field",
105
- "name": "_variant",
106
- "type": {
107
- "text": "ToastVariants"
108
- },
109
- "privacy": "private",
110
- "default": "''"
111
- },
112
- {
113
- "kind": "method",
114
- "name": "renderIcon",
115
- "privacy": "private",
116
- "return": {
117
- "type": {
118
- "text": "TemplateResult"
119
- }
120
- },
121
- "parameters": [
122
- {
123
- "name": "variant",
124
- "type": {
125
- "text": "string"
126
- }
127
- }
128
- ]
129
- },
130
- {
131
- "kind": "field",
132
- "name": "countdownStart",
133
- "type": {
134
- "text": "number"
135
- },
136
- "privacy": "private",
137
- "default": "0"
138
- },
139
- {
140
- "kind": "field",
141
- "name": "nextCount",
142
- "type": {
143
- "text": "number"
144
- },
145
- "privacy": "private",
146
- "default": "-1"
147
- },
148
- {
149
- "kind": "field",
150
- "name": "doCountdown",
151
- "privacy": "private"
152
- },
153
- {
154
- "kind": "field",
155
- "name": "countdown",
156
- "privacy": "private"
157
- },
158
- {
159
- "kind": "field",
160
- "name": "holdCountdown",
161
- "privacy": "private"
162
- },
163
- {
164
- "kind": "field",
165
- "name": "resumeCountdown",
166
- "privacy": "private"
167
- },
168
- {
169
- "kind": "method",
170
- "name": "startCountdown",
171
- "privacy": "private",
172
- "return": {
173
- "type": {
174
- "text": "void"
175
- }
176
- }
177
- },
178
- {
179
- "kind": "method",
180
- "name": "stopCountdown",
181
- "privacy": "private",
182
- "return": {
183
- "type": {
184
- "text": "void"
185
- }
186
- }
187
- },
188
- {
189
- "kind": "method",
190
- "name": "shouldClose",
191
- "privacy": "private",
192
- "return": {
193
- "type": {
194
- "text": "void"
195
- }
196
- }
197
- },
198
- {
199
- "kind": "method",
200
- "name": "close",
201
- "privacy": "public",
202
- "return": {
203
- "type": {
204
- "text": "void"
205
- }
206
- }
207
- }
208
- ],
209
- "events": [
210
- {
211
- "name": "close",
212
- "type": {
213
- "text": "CustomEvent"
214
- },
215
- "description": "Announces that the Toast has been closed by the user or by its timeout."
216
- }
217
- ],
218
- "attributes": [
219
- {
220
- "name": "open",
221
- "type": {
222
- "text": "boolean"
223
- },
224
- "default": "false",
225
- "fieldName": "open"
226
- },
227
- {
228
- "name": "timeout",
229
- "description": "When a timeout is provided it represents the number of milliseconds from when\nthe Toast was placed on the page before it will automatically dismiss itself.\nAccessibility concerns require that a Toast is available for at least 6000ms\nbefore being dismissed, so any timeout of less than 6000ms will be raised to\nthat baseline. It is suggested that messages longer than 120 words should\nreceive another 1000ms in their timeout for each additional 120 words in the\nmessage. E.G. 240 words = 7000ms, 360 words = 8000ms, etc.",
230
- "parameters": [
231
- {
232
- "name": "timeout",
233
- "type": {
234
- "text": "Number"
235
- }
236
- }
237
- ],
238
- "type": {
239
- "text": "number | null"
240
- },
241
- "fieldName": "timeout"
242
- },
243
- {
244
- "name": "variant",
245
- "description": "The variant applies specific styling when set to `negative`, `positive`, `info`, `error`, or `warning`.\n`variant` attribute is removed when not matching one of the above.",
246
- "parameters": [
247
- {
248
- "name": "variant",
249
- "type": {
250
- "text": "String"
251
- }
252
- }
253
- ],
254
- "type": {
255
- "text": "ToastVariants"
256
- },
257
- "fieldName": "variant"
258
- }
259
- ],
260
- "superclass": {
261
- "name": "SpectrumElement",
262
- "package": "@spectrum-web-components/base"
263
- },
264
- "tagName": "sp-toast",
265
- "customElement": true
266
- }
267
- ],
268
- "exports": [
269
- {
270
- "kind": "js",
271
- "name": "toastVariants",
272
- "declaration": {
273
- "name": "toastVariants",
274
- "module": "src/Toast.ts"
275
- }
276
- },
277
- {
278
- "kind": "js",
279
- "name": "Toast",
280
- "declaration": {
281
- "name": "Toast",
282
- "module": "src/Toast.ts"
283
- }
284
- }
285
- ]
286
- }
287
- ]
288
- }