@spectrum-web-components/tray 0.5.0 → 0.5.1

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/tray",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -58,10 +58,10 @@
58
58
  ],
59
59
  "dependencies": {
60
60
  "@spectrum-web-components/base": "^0.7.4",
61
- "@spectrum-web-components/modal": "^0.7.7",
61
+ "@spectrum-web-components/modal": "^0.7.8",
62
62
  "@spectrum-web-components/reactive-controllers": "^0.3.5",
63
63
  "@spectrum-web-components/shared": "^0.15.5",
64
- "@spectrum-web-components/underlay": "^0.9.6"
64
+ "@spectrum-web-components/underlay": "^0.9.7"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@spectrum-css/tray": "^2.0.11"
@@ -72,5 +72,5 @@
72
72
  "./sp-*.js",
73
73
  "./**/*.dev.js"
74
74
  ],
75
- "gitHead": "007a762c0257af4cd74e3781d877a8a8343acfd0"
75
+ "gitHead": "1e25ee121f3bc838dbb99bac62f3c95857570f7a"
76
76
  }
@@ -1,44 +1,69 @@
1
+ // @ts-check
1
2
  /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
3
+ Copyright 2023 Adobe. All rights reserved.
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
6
7
 
7
8
  Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
10
  OF ANY KIND, either express or implied. See the License for the specific language
10
11
  governing permissions and limitations under the License.
11
12
  */
12
13
 
14
+ import {
15
+ builder,
16
+ converterFor,
17
+ } from '../../../tasks/process-spectrum-utils.js';
18
+
19
+ const converter = converterFor('');
20
+
21
+ /**
22
+ * @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
23
+ */
13
24
  const config = {
14
- spectrum: 'tray',
15
- components: [
25
+ conversions: [
16
26
  {
17
- name: 'tray-wrapper',
18
- host: {
19
- selector: '.spectrum-Tray-wrapper',
20
- },
21
- attributes: [
22
- {
23
- type: 'boolean',
24
- selector: '.is-open',
25
- name: 'open',
26
- },
27
+ inPackage: '@spectrum-css/tray',
28
+ outPackage: 'tray',
29
+ fileName: 'tray-wrapper',
30
+ components: [
31
+ converter.classToHost('spectrum-Tray-wrapper'),
32
+ converter.classToAttribute('is-open', 'open'),
27
33
  ],
34
+ excludeByComponents: [builder.class('spectrum-Tray')],
28
35
  },
29
36
  {
30
- name: 'tray',
31
- host: {
32
- selector: '.spectrum-Tray',
33
- shadowSelector: '.tray',
34
- },
35
- attributes: [
37
+ inPackage: '@spectrum-css/tray',
38
+ outPackage: 'tray',
39
+ fileName: 'tray',
40
+ hoistCustomPropertiesFrom: 'spectrum-Tray',
41
+ components: [
36
42
  {
37
- type: 'boolean',
38
- name: 'open',
39
- selector: '.is-open',
43
+ find: [
44
+ builder.class('spectrum-Tray'),
45
+ builder.class('is-open'),
46
+ ],
47
+ replace: [
48
+ {
49
+ replace: builder.attribute('open'),
50
+ hoist: true,
51
+ },
52
+ {
53
+ replace: {
54
+ type: 'combinator',
55
+ value: 'descendant',
56
+ },
57
+ },
58
+ {
59
+ replace: builder.class('tray'),
60
+ },
61
+ ],
40
62
  },
63
+ converter.classToClass('spectrum-Tray', 'tray'),
64
+ converter.classToAttribute('is-open', 'open'),
41
65
  ],
66
+ excludeByComponents: [builder.class('spectrum-Tray-wrapper')],
42
67
  },
43
68
  ],
44
69
  };
@@ -1,13 +1,7 @@
1
1
  "use strict";
2
2
  import { css } from "@spectrum-web-components/base";
3
3
  const styles = css`
4
- @media (forced-colors:active){.spectrum-Tray{--highcontrast-tray-background-color:Background}}:host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}@media screen and (orientation:landscape){.spectrum-Tray{border-top-left-radius:var(
5
- --mod-tray-corner-radius,var(--spectrum-tray-corner-radius)
6
- );border-top-right-radius:var(
7
- --mod-tray-corner-radius,var(--spectrum-tray-corner-radius)
8
- );max-inline-size:var(
9
- --mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)
10
- )}}
4
+ :host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}
11
5
  `;
12
6
  export default styles;
13
7
  //# sourceMappingURL=spectrum-tray-wrapper.css.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-tray-wrapper.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@media (forced-colors:active){.spectrum-Tray{--highcontrast-tray-background-color:Background}}:host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}@media screen and (orientation:landscape){.spectrum-Tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}\n`;\nexport default styles;"],
5
- "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASf,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{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,10 +1,4 @@
1
- "use strict";import{css as r}from"@spectrum-web-components/base";const e=r`
2
- @media (forced-colors:active){.spectrum-Tray{--highcontrast-tray-background-color:Background}}:host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}@media screen and (orientation:landscape){.spectrum-Tray{border-top-left-radius:var(
3
- --mod-tray-corner-radius,var(--spectrum-tray-corner-radius)
4
- );border-top-right-radius:var(
5
- --mod-tray-corner-radius,var(--spectrum-tray-corner-radius)
6
- );max-inline-size:var(
7
- --mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)
8
- )}}
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const e=t`
2
+ :host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}
9
3
  `;export default e;
10
4
  //# sourceMappingURL=spectrum-tray-wrapper.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-tray-wrapper.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@media (forced-colors:active){.spectrum-Tray{--highcontrast-tray-background-color:Background}}:host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}@media screen and (orientation:landscape){.spectrum-Tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}\n`;\nexport default styles;"],
5
- "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASf,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{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  import { css } from "@spectrum-web-components/base";
3
3
  const styles = css`
4
- :host{--spectrum-tray-exit-animation-delay:0ms;--spectrum-tray-entry-animation-delay:160ms;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(
4
+ :host{--spectrum-tray-exit-animation-delay:0s;--spectrum-tray-entry-animation-delay:0.16s;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(
5
5
  --spectrum-animation-duration-500
6
6
  );--spectrum-tray-exit-animation-duration:var(
7
7
  --spectrum-animation-duration-100
8
- );--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Background}}.spectrum-Tray-wrapper{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}.tray{background-color:var(
8
+ );--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){:host{--highcontrast-tray-background-color:Background}}.tray{background-color:var(
9
9
  --highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))
10
10
  );border-radius:unset;inline-size:100%;margin-block-start:var(
11
11
  --mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-tray.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-tray-exit-animation-delay:0ms;--spectrum-tray-entry-animation-delay:160ms;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(\n--spectrum-animation-duration-500\n);--spectrum-tray-exit-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Background}}.spectrum-Tray-wrapper{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}.tray{background-color:var(\n--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))\n);border-radius:unset;inline-size:100%;margin-block-start:var(\n--mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n);max-block-size:calc(100vh - var(\n--mod-tray-spacing-edge-to-tray-safe-zone,\nvar(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n));outline:none;overflow:auto;transform:translateY(100%);transition:opacity var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n),visibility var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) linear calc(var(\n--mod-tray-exit-animation-delay,\nvar(--spectrum-tray-exit-animation-delay)\n) + var(\n--mod-tray-exit-animation-duration,\nvar(--spectrum-tray-exit-animation-duration)\n)),transform var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n)}:host([open]) .tray{transform:translateY(0);transition:transform var(\n--mod-tray-entry-animation-duration,var(--spectrum-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n),opacity var(\n--spectrum-tray-entry-animation-duration,var(--mod-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n)}@media screen and (orientation:landscape){.tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}\n`;\nexport default styles;"],
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-tray-exit-animation-delay:0s;--spectrum-tray-entry-animation-delay:0.16s;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(\n--spectrum-animation-duration-500\n);--spectrum-tray-exit-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){:host{--highcontrast-tray-background-color:Background}}.tray{background-color:var(\n--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))\n);border-radius:unset;inline-size:100%;margin-block-start:var(\n--mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n);max-block-size:calc(100vh - var(\n--mod-tray-spacing-edge-to-tray-safe-zone,\nvar(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n));outline:none;overflow:auto;transform:translateY(100%);transition:opacity var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n),visibility var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) linear calc(var(\n--mod-tray-exit-animation-delay,\nvar(--spectrum-tray-exit-animation-delay)\n) + var(\n--mod-tray-exit-animation-duration,\nvar(--spectrum-tray-exit-animation-duration)\n)),transform var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n)}:host([open]) .tray{transform:translateY(0);transition:transform var(\n--mod-tray-entry-animation-duration,var(--spectrum-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n),opacity var(\n--spectrum-tray-entry-animation-duration,var(--mod-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n)}@media screen and (orientation:landscape){.tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}\n`;\nexport default styles;"],
5
5
  "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4Cf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,9 @@
1
1
  "use strict";import{css as a}from"@spectrum-web-components/base";const r=a`
2
- :host{--spectrum-tray-exit-animation-delay:0ms;--spectrum-tray-entry-animation-delay:160ms;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(
2
+ :host{--spectrum-tray-exit-animation-delay:0s;--spectrum-tray-entry-animation-delay:0.16s;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(
3
3
  --spectrum-animation-duration-500
4
4
  );--spectrum-tray-exit-animation-duration:var(
5
5
  --spectrum-animation-duration-100
6
- );--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Background}}.spectrum-Tray-wrapper{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}.tray{background-color:var(
6
+ );--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){:host{--highcontrast-tray-background-color:Background}}.tray{background-color:var(
7
7
  --highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))
8
8
  );border-radius:unset;inline-size:100%;margin-block-start:var(
9
9
  --mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-tray.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-tray-exit-animation-delay:0ms;--spectrum-tray-entry-animation-delay:160ms;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(\n--spectrum-animation-duration-500\n);--spectrum-tray-exit-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Background}}.spectrum-Tray-wrapper{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}.tray{background-color:var(\n--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))\n);border-radius:unset;inline-size:100%;margin-block-start:var(\n--mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n);max-block-size:calc(100vh - var(\n--mod-tray-spacing-edge-to-tray-safe-zone,\nvar(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n));outline:none;overflow:auto;transform:translateY(100%);transition:opacity var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n),visibility var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) linear calc(var(\n--mod-tray-exit-animation-delay,\nvar(--spectrum-tray-exit-animation-delay)\n) + var(\n--mod-tray-exit-animation-duration,\nvar(--spectrum-tray-exit-animation-duration)\n)),transform var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n)}:host([open]) .tray{transform:translateY(0);transition:transform var(\n--mod-tray-entry-animation-duration,var(--spectrum-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n),opacity var(\n--spectrum-tray-entry-animation-duration,var(--mod-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n)}@media screen and (orientation:landscape){.tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}\n`;\nexport default styles;"],
4
+ "sourcesContent": ["/*\nCopyright 2023 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-tray-exit-animation-delay:0s;--spectrum-tray-entry-animation-delay:0.16s;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(\n--spectrum-animation-duration-500\n);--spectrum-tray-exit-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){:host{--highcontrast-tray-background-color:Background}}.tray{background-color:var(\n--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))\n);border-radius:unset;inline-size:100%;margin-block-start:var(\n--mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n);max-block-size:calc(100vh - var(\n--mod-tray-spacing-edge-to-tray-safe-zone,\nvar(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n));outline:none;overflow:auto;transform:translateY(100%);transition:opacity var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n),visibility var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) linear calc(var(\n--mod-tray-exit-animation-delay,\nvar(--spectrum-tray-exit-animation-delay)\n) + var(\n--mod-tray-exit-animation-duration,\nvar(--spectrum-tray-exit-animation-duration)\n)),transform var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n)}:host([open]) .tray{transform:translateY(0);transition:transform var(\n--mod-tray-entry-animation-duration,var(--spectrum-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n),opacity var(\n--spectrum-tray-entry-animation-duration,var(--mod-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n)}@media screen and (orientation:landscape){.tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}\n`;\nexport default styles;"],
5
5
  "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA4Cf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -1,17 +1,11 @@
1
1
  "use strict";
2
2
  import { css } from "@spectrum-web-components/base";
3
3
  const styles = css`
4
- @media (forced-colors:active){.spectrum-Tray{--highcontrast-tray-background-color:Background}}:host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}@media screen and (orientation:landscape){.spectrum-Tray{border-top-left-radius:var(
5
- --mod-tray-corner-radius,var(--spectrum-tray-corner-radius)
6
- );border-top-right-radius:var(
7
- --mod-tray-corner-radius,var(--spectrum-tray-corner-radius)
8
- );max-inline-size:var(
9
- --mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)
10
- )}}:host{--spectrum-tray-exit-animation-delay:0ms;--spectrum-tray-entry-animation-delay:160ms;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(
4
+ :host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}:host{--spectrum-tray-exit-animation-delay:0s;--spectrum-tray-entry-animation-delay:0.16s;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(
11
5
  --spectrum-animation-duration-500
12
6
  );--spectrum-tray-exit-animation-duration:var(
13
7
  --spectrum-animation-duration-100
14
- );--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Background}}.spectrum-Tray-wrapper{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}.tray{background-color:var(
8
+ );--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){:host{--highcontrast-tray-background-color:Background}}.tray{background-color:var(
15
9
  --highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))
16
10
  );border-radius:unset;inline-size:100%;margin-block-start:var(
17
11
  --mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["tray.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@media (forced-colors:active){.spectrum-Tray{--highcontrast-tray-background-color:Background}}:host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}@media screen and (orientation:landscape){.spectrum-Tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}:host{--spectrum-tray-exit-animation-delay:0ms;--spectrum-tray-entry-animation-delay:160ms;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(\n--spectrum-animation-duration-500\n);--spectrum-tray-exit-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Background}}.spectrum-Tray-wrapper{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}.tray{background-color:var(\n--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))\n);border-radius:unset;inline-size:100%;margin-block-start:var(\n--mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n);max-block-size:calc(100vh - var(\n--mod-tray-spacing-edge-to-tray-safe-zone,\nvar(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n));outline:none;overflow:auto;transform:translateY(100%);transition:opacity var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n),visibility var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) linear calc(var(\n--mod-tray-exit-animation-delay,\nvar(--spectrum-tray-exit-animation-delay)\n) + var(\n--mod-tray-exit-animation-duration,\nvar(--spectrum-tray-exit-animation-duration)\n)),transform var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n)}:host([open]) .tray{transform:translateY(0);transition:transform var(\n--mod-tray-entry-animation-duration,var(--spectrum-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n),opacity var(\n--spectrum-tray-entry-animation-duration,var(--mod-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n)}@media screen and (orientation:landscape){.tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}:host{align-items:flex-end;max-height:100vh;max-height:100dvh;position:fixed!important}sp-underlay{touch-action:none}.tray{display:inline-flex;overscroll-behavior:contain;padding:var(--spectrum-tray-padding-y,0) var(--spectrum-tray-padding-x,0)}::slotted(.visually-hidden){clip:rect(0,0,0,0);border:0;clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}\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;AAkDf,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{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}:host{--spectrum-tray-exit-animation-delay:0s;--spectrum-tray-entry-animation-delay:0.16s;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(\n--spectrum-animation-duration-500\n);--spectrum-tray-exit-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){:host{--highcontrast-tray-background-color:Background}}.tray{background-color:var(\n--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))\n);border-radius:unset;inline-size:100%;margin-block-start:var(\n--mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n);max-block-size:calc(100vh - var(\n--mod-tray-spacing-edge-to-tray-safe-zone,\nvar(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n));outline:none;overflow:auto;transform:translateY(100%);transition:opacity var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n),visibility var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) linear calc(var(\n--mod-tray-exit-animation-delay,\nvar(--spectrum-tray-exit-animation-delay)\n) + var(\n--mod-tray-exit-animation-duration,\nvar(--spectrum-tray-exit-animation-duration)\n)),transform var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n)}:host([open]) .tray{transform:translateY(0);transition:transform var(\n--mod-tray-entry-animation-duration,var(--spectrum-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n),opacity var(\n--spectrum-tray-entry-animation-duration,var(--mod-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n)}@media screen and (orientation:landscape){.tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}:host{align-items:flex-end;max-height:100vh;max-height:100dvh;position:fixed!important}sp-underlay{touch-action:none}.tray{display:inline-flex;overscroll-behavior:contain;padding:var(--spectrum-tray-padding-y,0) var(--spectrum-tray-padding-x,0)}::slotted(.visually-hidden){clip:rect(0,0,0,0);border:0;clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}\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;AA4Cf,eAAe;",
6
6
  "names": []
7
7
  }
package/src/tray.css.js CHANGED
@@ -1,15 +1,9 @@
1
1
  "use strict";import{css as a}from"@spectrum-web-components/base";const r=a`
2
- @media (forced-colors:active){.spectrum-Tray{--highcontrast-tray-background-color:Background}}:host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}@media screen and (orientation:landscape){.spectrum-Tray{border-top-left-radius:var(
3
- --mod-tray-corner-radius,var(--spectrum-tray-corner-radius)
4
- );border-top-right-radius:var(
5
- --mod-tray-corner-radius,var(--spectrum-tray-corner-radius)
6
- );max-inline-size:var(
7
- --mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)
8
- )}}:host{--spectrum-tray-exit-animation-delay:0ms;--spectrum-tray-entry-animation-delay:160ms;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(
2
+ :host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}:host{--spectrum-tray-exit-animation-delay:0s;--spectrum-tray-entry-animation-delay:0.16s;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(
9
3
  --spectrum-animation-duration-500
10
4
  );--spectrum-tray-exit-animation-duration:var(
11
5
  --spectrum-animation-duration-100
12
- );--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Background}}.spectrum-Tray-wrapper{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}.tray{background-color:var(
6
+ );--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){:host{--highcontrast-tray-background-color:Background}}.tray{background-color:var(
13
7
  --highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))
14
8
  );border-radius:unset;inline-size:100%;margin-block-start:var(
15
9
  --mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["tray.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@media (forced-colors:active){.spectrum-Tray{--highcontrast-tray-background-color:Background}}:host{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}@media screen and (orientation:landscape){.spectrum-Tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}:host{--spectrum-tray-exit-animation-delay:0ms;--spectrum-tray-entry-animation-delay:160ms;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(\n--spectrum-animation-duration-500\n);--spectrum-tray-exit-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){.tray{--highcontrast-tray-background-color:Background}}.spectrum-Tray-wrapper{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}.tray{background-color:var(\n--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))\n);border-radius:unset;inline-size:100%;margin-block-start:var(\n--mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n);max-block-size:calc(100vh - var(\n--mod-tray-spacing-edge-to-tray-safe-zone,\nvar(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n));outline:none;overflow:auto;transform:translateY(100%);transition:opacity var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n),visibility var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) linear calc(var(\n--mod-tray-exit-animation-delay,\nvar(--spectrum-tray-exit-animation-delay)\n) + var(\n--mod-tray-exit-animation-duration,\nvar(--spectrum-tray-exit-animation-duration)\n)),transform var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n)}:host([open]) .tray{transform:translateY(0);transition:transform var(\n--mod-tray-entry-animation-duration,var(--spectrum-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n),opacity var(\n--spectrum-tray-entry-animation-duration,var(--mod-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n)}@media screen and (orientation:landscape){.tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}:host{align-items:flex-end;max-height:100vh;max-height:100dvh;position:fixed!important}sp-underlay{touch-action:none}.tray{display:inline-flex;overscroll-behavior:contain;padding:var(--spectrum-tray-padding-y,0) var(--spectrum-tray-padding-x,0)}::slotted(.visually-hidden){clip:rect(0,0,0,0);border:0;clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}\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,EAkDf,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{bottom:0;display:flex;inline-size:100%;inset-inline-start:0;justify-content:center;position:fixed}:host{--spectrum-tray-exit-animation-delay:0s;--spectrum-tray-entry-animation-delay:0.16s;--spectrum-tray-max-inline-size:375px;--spectrum-tray-spacing-edge-to-tray-safe-zone:64px;--spectrum-tray-entry-animation-duration:var(\n--spectrum-animation-duration-500\n);--spectrum-tray-exit-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-tray-corner-radius:var(--spectrum-corner-radius-100);--spectrum-tray-background-color:var(--spectrum-background-layer-2-color)}@media (forced-colors:active){:host{--highcontrast-tray-background-color:Background}}.tray{background-color:var(\n--highcontrast-tray-background-color,var(--mod-tray-background-color,var(--spectrum-tray-background-color))\n);border-radius:unset;inline-size:100%;margin-block-start:var(\n--mod-tray-spacing-edge-to-tray-safe-zone,var(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n);max-block-size:calc(100vh - var(\n--mod-tray-spacing-edge-to-tray-safe-zone,\nvar(--spectrum-tray-spacing-edge-to-tray-safe-zone)\n));outline:none;overflow:auto;transform:translateY(100%);transition:opacity var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n),visibility var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) linear calc(var(\n--mod-tray-exit-animation-delay,\nvar(--spectrum-tray-exit-animation-delay)\n) + var(\n--mod-tray-exit-animation-duration,\nvar(--spectrum-tray-exit-animation-duration)\n)),transform var(\n--mod-tray-exit-animation-duration,var(--spectrum-tray-exit-animation-duration)\n) cubic-bezier(.5,0,1,1) var(\n--mod-tray-exit-animation-delay,var(--spectrum-tray-exit-animation-delay)\n)}:host([open]) .tray{transform:translateY(0);transition:transform var(\n--mod-tray-entry-animation-duration,var(--spectrum-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n),opacity var(\n--spectrum-tray-entry-animation-duration,var(--mod-tray-entry-animation-duration)\n) cubic-bezier(0,0,.4,1) var(\n--mod-tray-entry-animation-delay,var(--spectrum-tray-entry-animation-delay)\n)}@media screen and (orientation:landscape){.tray{border-top-left-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);border-top-right-radius:var(\n--mod-tray-corner-radius,var(--spectrum-tray-corner-radius)\n);max-inline-size:var(\n--mod-tray-max-inline-size,var(--spectrum-tray-max-inline-size)\n)}}:host{align-items:flex-end;max-height:100vh;max-height:100dvh;position:fixed!important}sp-underlay{touch-action:none}.tray{display:inline-flex;overscroll-behavior:contain;padding:var(--spectrum-tray-padding-y,0) var(--spectrum-tray-padding-x,0)}::slotted(.visually-hidden){clip:rect(0,0,0,0);border:0;clip-path:inset(50%);height:1px;margin:0 -1px -1px 0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}\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,EA4Cf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }